Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Set loading state when opening project from dashboard (#1627)

Oleg Isonenef49e85362ad
diff --git a/.github/workflows/vis-reg-tests.yml b/.github/workflows/vis-reg-tests.yml
index f691a5db59..119ddc3b3d 100644
--- a/.github/workflows/vis-reg-tests.yml
+++ b/.github/workflows/vis-reg-tests.yml
@@ -20,8 +20,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- with:
- ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
+ #with:
+ #ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
- uses: ./.github/actions/ci-setup
@@ -41,8 +41,8 @@ jobs:
AUTH_SECRET: test
steps:
- uses: actions/checkout@v3
- with:
- ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
+ #with:
+ #ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
- uses: ./.github/actions/ci-setup
diff --git a/.gitignore b/.gitignore
index 6c2c9cda16..d4bdbd408a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ _build
# misc
.DS_Store
*.pem
+/.idea
# logs
npm-debug.log*
@@ -52,4 +53,4 @@ storybook-static
tsconfig.tsbuildinfo
# to save thunder https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client files
-.thunder
\ No newline at end of file
+.thunder
diff --git a/apps/builder/app/dashboard/projects/project-card.tsx b/apps/builder/app/dashboard/projects/project-card.tsx
index 415bff14ea..708625918a 100644
--- a/apps/builder/app/dashboard/projects/project-card.tsx
+++ b/apps/builder/app/dashboard/projects/project-card.tsx
@@ -21,6 +21,8 @@ import {
ShareProjectDialog,
} from "./project-dialogs";
import { ThumbnailLink } from "./thumbnail-link";
+import { useNavigation } from "@remix-run/react";
+import { Spinner } from "../spinner";
const containerStyle = css({
overflow: "hidden",
@@ -34,6 +36,14 @@ const containerStyle = css({
"&:hover, &:focus-within": {
boxShadow: theme.shadows.brandElevationBig,
},
+ "&:focus-visible": {
+ outline: `2px solid ${theme.colors.borderFocus}`,
+ },
+});
+
+const thumbnailStyle = css({
+ position: "relative",
+ overflow: "hidden",
});
const footerStyle = css({
@@ -174,24 +184,30 @@ export const ProjectCard = ({
const [isHidden, setIsHidden] = useState(false);
const { thumbnailRef, handleKeyDown } = useProjectCard();
const handleDuplicate = useDuplicate(id);
+ const { state, location } = useNavigation();
+ const linkPath = builderPath({ projectId: id });
+ // Transition to the project has started, we may need to show a spinner
+ const isTransitioning = state !== "idle" && linkPath === location.pathname;
return (
<Box as="article" hidden={isHidden}>
<Flex
direction="column"
+ align="center"
shrink={false}
className={containerStyle()}
tabIndex={0}
onKeyDown={handleKeyDown}
>
- <ThumbnailLink
- title={title}
- to={builderPath({ projectId: id })}
- ref={thumbnailRef}
- />
+ <Flex className={thumbnailStyle()}>
+ <ThumbnailLink title={title} to={linkPath} ref={thumbnailRef} />
+ {isTransitioning && <Spinner />}
+ </Flex>
+
<Flex
justify="between"
shrink={false}
+ alignSelf="stretch"
gap="1"
className={footerStyle()}
>
diff --git a/apps/builder/app/dashboard/projects/thumbnail-link.tsx b/apps/builder/app/dashboard/projects/thumbnail-link.tsx
index eb08fd141f..b7c61fead0 100644
--- a/apps/builder/app/dashboard/projects/thumbnail-link.tsx
+++ b/apps/builder/app/dashboard/projects/thumbnail-link.tsx
@@ -30,10 +30,12 @@ const getThumbnailAbbreviation = (title: string) =>
export const ThumbnailLink = forwardRef<
HTMLAnchorElement,
{ title: string; to: string }
->(({ title, to }, ref) => (
- <Link ref={ref} to={to} className={thumbnailStyle()} tabIndex={-1}>
- {getThumbnailAbbreviation(title)}
- </Link>
-));
+>(({ title, to }, ref) => {
+ return (
+ <Link ref={ref} to={to} className={thumbnailStyle()} tabIndex={-1}>
+ {getThumbnailAbbreviation(title)}
+ </Link>
+ );
+});
ThumbnailLink.displayName = "ThumbnailLink";
diff --git a/apps/builder/app/dashboard/spinner/index.tsx b/apps/builder/app/dashboard/spinner/index.tsx
new file mode 100644
index 0000000000..eff29707a5
--- /dev/null
+++ b/apps/builder/app/dashboard/spinner/index.tsx
@@ -0,0 +1 @@
+export * from "./spinner";
diff --git a/apps/builder/app/dashboard/spinner/spinner.tsx b/apps/builder/app/dashboard/spinner/spinner.tsx
new file mode 100644
index 0000000000..9bd3b1ea30
--- /dev/null
+++ b/apps/builder/app/dashboard/spinner/spinner.tsx
@@ -0,0 +1,35 @@
+import { css } from "@webstudio-is/design-system";
+import { useDebounce } from "use-debounce";
+import { SpinnerIcon } from "@webstudio-is/icons";
+
+const containerStyle = css({
+ position: "absolute",
+ inset: 0,
+ background:
+ "radial-gradient(34.37% 50% at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(248, 248, 248, 0.5) 100%);",
+ backdropFilter: "blur(8px)",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+});
+
+export const Spinner = ({
+ delay = 600,
+ size = 64,
+}: {
+ delay?: number;
+ size?: number;
+}) => {
+ const [isVisible, setIsVisible] = useDebounce(false, delay);
+ setIsVisible(true);
+
+ if (isVisible === false) {
+ return null;
+ }
+
+ return (
+ <div className={containerStyle()}>
+ <SpinnerIcon size={size} />
+ </div>
+ );
+};
diff --git a/packages/design-system/src/components/flex.tsx b/packages/design-system/src/components/flex.tsx
index 5713ea0473..7fc8e149a7 100644
--- a/packages/design-system/src/components/flex.tsx
+++ b/packages/design-system/src/components/flex.tsx
@@ -39,6 +39,23 @@ export const Flex = styled("div", {
alignItems: "baseline",
},
},
+ alignSelf: {
+ start: {
+ alignSelf: "flex-start",
+ },
+ center: {
+ alignSelf: "center",
+ },
+ end: {
+ alignSelf: "flex-end",
+ },
+ stretch: {
+ alignSelf: "stretch",
+ },
+ baseline: {
+ alignSelf: "baseline",
+ },
+ },
justify: {
start: {
justifyContent: "flex-start",
diff --git a/packages/icons/icons/spinner.svg b/packages/icons/icons/spinner.svg
new file mode 100644
index 0000000000..13dd0ac456
--- /dev/null
+++ b/packages/icons/icons/spinner.svg
@@ -0,0 +1,94 @@
+<svg
+ id="e2CRglijn891"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ viewBox="0 0 128 128"
+ shape-rendering="geometricPrecision"
+ text-rendering="geometricPrecision"
+>
+ <style>
+ <![CDATA[
+ #e2CRglijn892_tr {
+ animation: e2CRglijn892_tr__tr 3000ms linear infinite normal forwards
+ }
+
+ @keyframes e2CRglijn892_tr__tr {
+ 0% {
+ transform: translate(64px, 64px) rotate(90deg);
+ animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1)
+ }
+ 50% {
+ transform: translate(64px, 64px) rotate(810deg);
+ animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1)
+ }
+ 100% {
+ transform: translate(64px, 64px) rotate(1530deg)
+ }
+ }
+
+ #e2CRglijn892 {
+ animation-name: e2CRglijn892_s_p, e2CRglijn892_s_do;
+ animation-duration: 3000ms;
+ animation-fill-mode: forwards;
+ animation-timing-function: linear;
+ animation-direction: normal;
+ animation-iteration-count: infinite;
+ }
+
+ @keyframes e2CRglijn892_s_p {
+ 0% {
+ stroke: #39fbbb
+ }
+ 25% {
+ stroke: #4a4efa
+ }
+ 50% {
+ stroke: #e63cfe
+ }
+ 75% {
+ stroke: #ffae3c
+ }
+ 100% {
+ stroke: #39fbbb
+ }
+ }
+
+ @keyframes e2CRglijn892_s_do {
+ 0% {
+ stroke-dashoffset: 251.89
+ }
+ 2.5% {
+ stroke-dashoffset: 263.88;
+ animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1)
+ }
+ 25% {
+ stroke-dashoffset: 131.945
+ }
+ 52.5% {
+ stroke-dashoffset: 263.88;
+ animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1)
+ }
+ 100% {
+ stroke-dashoffset: 251.885909
+ }
+ 75% {
+ stroke-dashoffset: 131.945
+ }
+ }
+ ]]>
+ </style>
+ <g id="e2CRglijn892_tr" transform="translate(64,64) rotate(90)">
+ <ellipse
+ id="e2CRglijn892"
+ rx="42"
+ ry="42"
+ transform="scale(-1,1) translate(0,0)"
+ fill="none"
+ stroke="#39fbbb"
+ stroke-width="16"
+ stroke-linecap="round"
+ stroke-dashoffset="251.89"
+ stroke-dasharray="263.89"
+ />
+ </g>
+</svg>
diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.ts
index b697185ccc..654b712863 100644
--- a/packages/icons/src/__generated__/index.ts
+++ b/packages/icons/src/__generated__/index.ts
@@ -108,6 +108,7 @@ export * from "./section-link";
export * from "./shrink";
export * from "./slot-component";
export * from "./small-x";
+export * from "./spinner";
export * from "./subscript";
export * from "./subtract";
export * from "./superscript";
diff --git a/packages/icons/src/__generated__/spinner.tsx b/packages/icons/src/__generated__/spinner.tsx
new file mode 100644
index 0000000000..c9343449b2
--- /dev/null
+++ b/packages/icons/src/__generated__/spinner.tsx
@@ -0,0 +1,15 @@
+// Generated from icons/spinner.svg
+
+import { forwardRef } from "react";
+import type { IconProps } from "../types";
+
+// prettier-ignore
+export const SpinnerIcon = forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg xmlns="http://www.w3.org/2000/svg" id="e2CRglijn891" shapeRendering="geometricPrecision" textRendering="geometricPrecision" viewBox="0 0 128 128" width={size} height={size} fill={color} {...props} ref={forwardedRef}><style>{"@keyframes e2CRglijn892_tr__tr{0%{transform:translate(64px,64px) rotate(90deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{transform:translate(64px,64px) rotate(810deg);animation-timing-function:cubic-bezier(.42,0,.58,1)}to{transform:translate(64px,64px) rotate(1530deg)}}@keyframes e2CRglijn892_s_p{0%,to{stroke:#39fbbb}25%{stroke:#4a4efa}50%{stroke:#e63cfe}75%{stroke:#ffae3c}}@keyframes e2CRglijn892_s_do{0%{stroke-dashoffset:251.89}2.5%,52.5%{stroke-dashoffset:263.88;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%,75%{stroke-dashoffset:131.945}to{stroke-dashoffset:251.885909}}#e2CRglijn892_tr{animation:e2CRglijn892_tr__tr 3000ms linear infinite normal forwards}#e2CRglijn892{animation-name:e2CRglijn892_s_p,e2CRglijn892_s_do;animation-duration:3000ms;animation-fill-mode:forwards;animation-timing-function:linear;animation-direction:normal;animation-iteration-count:infinite}"}</style><g id="e2CRglijn892_tr" transform="translate(64,64) rotate(90)"><circle id="e2CRglijn892" r="42" fill="none" stroke="#39fbbb" strokeDasharray="263.89" strokeDashoffset="251.89" strokeLinecap="round" strokeWidth="16" transform="scale(-1,1) translate(0,0)" /></g></svg>
+ );
+ }
+);
+
+SpinnerIcon.displayName = "SpinnerIcon";
diff --git a/packages/icons/src/__generated__/webstudio.tsx b/packages/icons/src/__generated__/webstudio.tsx
index b41dcc65d3..f31fc63225 100644
--- a/packages/icons/src/__generated__/webstudio.tsx
+++ b/packages/icons/src/__generated__/webstudio.tsx
@@ -7,7 +7,7 @@ import type { IconProps } from "../types";
export const WebstudioIcon = forwardRef<SVGSVGElement, IconProps>(
({ color = "currentColor", size = 16, ...props }, forwardedRef) => {
return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 210" width={size} height={size} fill={color} {...props} ref={forwardedRef}><mask id="a" width="280" height="210" x="0" y="0" maskUnits="userSpaceOnUse" style={{"maskType":"alpha"}}><path fill="#000" fillRule="evenodd" d="M73.71 98.769 47.071 16.686C42.971 3.983 29.375-2.918 16.678 1.183 3.981 5.283-2.917 18.987 1.182 31.59L53.57 193.328c.176.546.43 1.041.753 1.487 3.324 8.339 11.18 14.469 20.742 15.117 13.297.9 24.794-9.102 25.694-22.406 0 0 2.399-36.008 14.997-64.815 2.799-6.401 6.098-12.503 10.297-17.304 3.689-4.389 8.074-7.882 14.047-7.902 5.873.02 10.258 3.513 14.047 7.902 4.099 4.901 7.498 10.903 10.297 17.304 12.698 28.807 15.097 64.815 15.097 64.815.9 13.304 12.397 23.406 25.694 22.406 10.761-.729 19.362-8.467 21.774-18.39L278.818 31.59c4.099-12.703-2.799-26.307-15.496-30.407-12.598-4.101-26.294 2.8-30.393 15.503L206.442 98.46c-13.815-28.497-36.054-49.266-66.292-49.266-30.347 0-52.637 20.92-66.44 49.575Zm66.39-1.264h-.05.1-.05Z" clipRule="evenodd" /></mask><g mask="url(#a)"><path fill="url(#b)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#c)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#d)" fillOpacity=".8" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#e)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><g fillRule="evenodd" clipRule="evenodd" style={{"mixBlendMode":"multiply"}}><path fill="url(#f)" d="M156.5 220.034 231.1-10.02 290 29.489l-61.8 190.545h-71.7Z" /><path fill="url(#g)" d="M156.5 220.034 231.1-10.02 290 29.489l-61.8 190.545h-71.7Z" /></g><path fill="#E63CFE" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#h)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#i)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#j)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#k)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><g fillRule="evenodd" clipRule="evenodd" style={{"mixBlendMode":"multiply"}}><path fill="url(#l)" d="M140.1 107.407c-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 111.75 0 95.397 68.316 0 68.316Z" /><path fill="url(#m)" d="M140.1 107.407c-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 111.75 0 95.397 68.316 0 68.316Z" /></g><path fill="url(#n)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#o)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#p)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#q)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#r)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#s)" d="M290-10.02H-10v230.054h300V-10.02Z" /><path fill="url(#t)" d="M290-10.02H-10v230.054h300V-10.02Z" /><path fill="url(#u)" d="M290-10.02H-10v230.054h300V-10.02Z" /></g><defs><radialGradient id="f" cx="0" cy="0" r="1" gradientTransform="rotate(83.438 43.842 167.73) scale(155.653 39.7647)" gradientUnits="userSpaceOnUse"><stop stopColor="#6F15A9" stopOpacity=".9" /><stop offset=".613" stopColor="#6F15A9" stopOpacity="0" /></radialGradient><radialGradient id="g" cx="0" cy="0" r="1" gradientTransform="matrix(24.69652 161.33978 -34.3153 5.2527 217.626 .959)" gradientUnits="userSpaceOnUse"><stop offset=".377" stopColor="#fff" /><stop offset="1" stopColor="#fff" stopOpacity="0" /></radialGradient><radialGradient id="h" cx="0" cy="0" r="1" gradientTransform="rotate(-82.825 148.387 -.173) scale(129.813 100.452)" gradientUnits="userSpaceOnUse"><stop stopColor="#39FBBB" stopOpacity=".5" /><stop offset=".701" stopColor="#39FBBB" /><stop offset=".949" stopColor="#39FBBB" stopOpacity="0" /></radialGradient><radialGradient id="i" cx="0" cy="0" r="1" gradientTransform="matrix(-159.54108 -251.31895 60.92249 -38.67452 296.764 204.529)" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="j" cx="0" cy="0" r="1" gradientTransform="matrix(0 -115.84 97.1865 0 136.481 174.605)" gradientUnits="userSpaceOnUse"><stop offset=".64" stopColor="#4A4EFA" /><stop offset="1" stopColor="#4A4EFA" stopOpacity="0" /></radialGradient><radialGradient id="k" cx="0" cy="0" r="1" gradientTransform="rotate(-71.666 204.704 51.35) scale(155.998 62.8576)" gradientUnits="userSpaceOnUse"><stop offset=".632" stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="l" cx="0" cy="0" r="1" gradientTransform="rotate(71.833 -38.114 102.588) scale(75.0284 46.6295)" gradientUnits="userSpaceOnUse"><stop stopColor="#6F15A9" /><stop offset="1" stopColor="#00127F" stopOpacity="0" /></radialGradient><radialGradient id="m" cx="0" cy="0" r="1" gradientTransform="rotate(175.292 74.822 60.88) scale(82.9292 111.991)" gradientUnits="userSpaceOnUse"><stop offset=".758" stopColor="#fff" /><stop offset="1" stopColor="#fff" stopOpacity="0" /></radialGradient><radialGradient id="s" cx="0" cy="0" r="1" gradientTransform="matrix(0 -229.783 165.804 0 96.901 219.762)" gradientUnits="userSpaceOnUse"><stop offset=".262" stopColor="#FFAE3C" /><stop offset=".527" stopColor="#FFAE3C" stopOpacity="0" /></radialGradient><radialGradient id="t" cx="0" cy="0" r="1" gradientTransform="matrix(0 -129.629 126.516 0 242.706 219.762)" gradientUnits="userSpaceOnUse"><stop offset=".283" stopColor="#E63CFE" /><stop offset=".857" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="u" cx="0" cy="0" r="1" gradientTransform="matrix(-24.1919 -176.1889 68.00682 -9.33778 164.141 219.762)" gradientUnits="userSpaceOnUse"><stop offset=".251" stopColor="#FFAE3C" /><stop offset=".656" stopColor="#FFAE3C" stopOpacity="0" /></radialGradient><linearGradient id="b" x1="328.489" x2="259.397" y1="-101.75" y2="227.415" gradientUnits="userSpaceOnUse"><stop stopColor="#4A4EFA" /><stop offset=".625" stopColor="#E63CFE" /></linearGradient><linearGradient id="c" x1="193.001" x2="247.46" y1="96.497" y2="115.178" gradientUnits="userSpaceOnUse"><stop offset=".259" stopColor="#4A4EFA" /><stop offset=".961" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="d" x1="202.309" x2="243.057" y1="71.375" y2="86.077" gradientUnits="userSpaceOnUse"><stop offset=".252" stopColor="#39FBBB" /><stop offset="1" stopColor="#39FBBB" stopOpacity="0" /></linearGradient><linearGradient id="e" x1="295.535" x2="286.169" y1="-10.021" y2="31.423" gradientUnits="userSpaceOnUse"><stop stopColor="#4A4EFA" /><stop offset=".933" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="n" x1="-18.948" x2="55.093" y1="1.039" y2="231.932" gradientUnits="userSpaceOnUse"><stop offset=".17" stopColor="#E63CFE" /><stop offset=".592" stopColor="#FFAE3C" /></linearGradient><linearGradient id="o" x1="63.506" x2="20.255" y1="74.425" y2="88.815" gradientUnits="userSpaceOnUse"><stop offset=".321" stopColor="#4A4EFA" /><stop offset="1" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="p" x1="82.497" x2="64.141" y1="106.838" y2="112.322" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></linearGradient><linearGradient id="q" x1="52.445" x2="17.265" y1="223.209" y2="146.13" gradientUnits="userSpaceOnUse"><stop offset=".372" stopColor="#FFAE3C" /><stop offset="1" stopColor="#FFAE3C" stopOpacity="0" /></linearGradient><linearGradient id="r" x1="20.419" x2="34.66" y1="-10.021" y2="23.34" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></linearGradient></defs></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 210" width={size} height={size} fill={color} {...props} ref={forwardedRef}><mask id="a" width="280" height="210" x="0" y="0" maskUnits="userSpaceOnUse" style={{"maskType":"alpha"}}><path fill="#000" fillRule="evenodd" d="M73.71 98.769 47.071 16.686C42.971 3.983 29.375-2.918 16.678 1.183 3.981 5.283-2.917 18.987 1.182 31.59L53.57 193.328c.176.546.43 1.041.753 1.487 3.324 8.339 11.18 14.469 20.742 15.117 13.297.9 24.794-9.102 25.694-22.406 0 0 2.399-36.008 14.997-64.815 2.799-6.401 6.098-12.503 10.297-17.304 3.689-4.389 8.074-7.882 14.047-7.902 5.873.02 10.258 3.513 14.047 7.902 4.099 4.901 7.498 10.903 10.297 17.304 12.698 28.807 15.097 64.815 15.097 64.815.9 13.304 12.397 23.406 25.694 22.406 10.761-.729 19.362-8.467 21.774-18.39L278.818 31.59c4.099-12.703-2.799-26.307-15.496-30.407-12.598-4.101-26.294 2.8-30.393 15.503L206.442 98.46c-13.815-28.497-36.054-49.266-66.292-49.266-30.347 0-52.637 20.92-66.44 49.575Zm66.39-1.264h-.05.1-.05Z" clipRule="evenodd" /></mask><g mask="url(#a)"><path fill="url(#b)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#c)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#d)" fillOpacity=".8" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><path fill="url(#e)" fillRule="evenodd" d="M156.5 220.034 231.1-10.02H290v39.509l-61.8 190.545h-71.7Z" clipRule="evenodd" /><g fillRule="evenodd" clipRule="evenodd" style={{"mixBlendMode":"multiply"}}><path fill="url(#f)" d="M156.5 220.034 231.1-10.02 290 29.489l-61.8 190.545h-71.7Z" /><path fill="url(#g)" d="M156.5 220.034 231.1-10.02 290 29.489l-61.8 190.545h-71.7Z" /></g><path fill="#E63CFE" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#h)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#i)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#j)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><path fill="url(#k)" fillRule="evenodd" d="M226.5 219.934h-51.4c-3.6-31.208-15-112.527-35-112.527-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 25.2 0 47.1 12.403 63.7 35.308l2.645 24.061s1.555 3.346 2.155 4.646c15.9 36.009 19 81.019 19 81.019.2 3.201-.2 6.302-1.1 9.102v26.707Z" clipRule="evenodd" /><g fillRule="evenodd" clipRule="evenodd" style={{"mixBlendMode":"multiply"}}><path fill="url(#l)" d="M140.1 107.407c-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 111.75 0 95.397 68.316 0 68.316Z" /><path fill="url(#m)" d="M140.1 107.407c-21.7 0-31.8 90.121-34 112.527H32.4c3.2-38.909 20.8-180.843 107.7-180.843 111.75 0 95.397 68.316 0 68.316Z" /></g><path fill="url(#n)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#o)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#p)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#q)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#r)" fillRule="evenodd" d="M-9.9 29.489v-39.51H49L76.4 74.5l-2.693 24.27L99.5 178.424c1 3.001 1.3 6.201 1.1 9.202 0 0-1.9 28.207-13.4 32.508H51.8L-9.9 29.489Z" clipRule="evenodd" /><path fill="url(#s)" d="M290-10.02H-10v230.054h300V-10.02Z" /><path fill="url(#t)" d="M290-10.02H-10v230.054h300V-10.02Z" /><path fill="url(#u)" d="M290-10.02H-10v230.054h300V-10.02Z" /></g><defs><radialGradient id="f" cx="0" cy="0" r="1" gradientTransform="translate(205.462 105.007) rotate(83.4379) scale(155.653 39.7647)" gradientUnits="userSpaceOnUse"><stop stopColor="#6F15A9" stopOpacity=".9" /><stop offset=".613" stopColor="#6F15A9" stopOpacity="0" /></radialGradient><radialGradient id="g" cx="0" cy="0" r="1" gradientTransform="translate(217.626 0.958547) rotate(81.2972) scale(163.219 34.715)" gradientUnits="userSpaceOnUse"><stop offset=".377" stopColor="#fff" /><stop offset="1" stopColor="#fff" stopOpacity="0" /></radialGradient><radialGradient id="h" cx="0" cy="0" r="1" gradientTransform="translate(130.025 147.074) rotate(-82.8248) scale(129.813 100.452)" gradientUnits="userSpaceOnUse"><stop stopColor="#39FBBB" stopOpacity=".5" /><stop offset=".701" stopColor="#39FBBB" /><stop offset=".949" stopColor="#39FBBB" stopOpacity="0" /></radialGradient><radialGradient id="i" cx="0" cy="0" r="1" gradientTransform="translate(296.764 204.529) rotate(-122.408) scale(297.682 72.1614)" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="j" cx="0" cy="0" r="1" gradientTransform="translate(136.481 174.605) rotate(-90) scale(115.84 97.1865)" gradientUnits="userSpaceOnUse"><stop offset=".64" stopColor="#4A4EFA" /><stop offset="1" stopColor="#4A4EFA" stopOpacity="0" /></radialGradient><radialGradient id="k" cx="0" cy="0" r="1" gradientTransform="translate(91.5691 229.51) rotate(-71.6657) scale(155.998 62.8576)" gradientUnits="userSpaceOnUse"><stop offset=".632" stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="l" cx="0" cy="0" r="1" gradientTransform="translate(71.244 106.816) rotate(71.8329) scale(75.0284 46.6295)" gradientUnits="userSpaceOnUse"><stop stopColor="#6F15A9" /><stop offset="1" stopColor="#00127F" stopOpacity="0" /></radialGradient><radialGradient id="m" cx="0" cy="0" r="1" gradientTransform="translate(154.389 115.414) rotate(175.292) scale(82.9292 111.991)" gradientUnits="userSpaceOnUse"><stop offset=".758" stopColor="#fff" /><stop offset="1" stopColor="#fff" stopOpacity="0" /></radialGradient><radialGradient id="s" cx="0" cy="0" r="1" gradientTransform="translate(96.9015 219.762) rotate(-90) scale(229.783 165.804)" gradientUnits="userSpaceOnUse"><stop offset=".262" stopColor="#FFAE3C" /><stop offset=".527" stopColor="#FFAE3C" stopOpacity="0" /></radialGradient><radialGradient id="t" cx="0" cy="0" r="1" gradientTransform="translate(242.706 219.762) rotate(-90) scale(129.629 126.516)" gradientUnits="userSpaceOnUse"><stop offset=".283" stopColor="#E63CFE" /><stop offset=".857" stopColor="#E63CFE" stopOpacity="0" /></radialGradient><radialGradient id="u" cx="0" cy="0" r="1" gradientTransform="translate(164.141 219.762) rotate(-97.8182) scale(177.842 68.6449)" gradientUnits="userSpaceOnUse"><stop offset=".251" stopColor="#FFAE3C" /><stop offset=".656" stopColor="#FFAE3C" stopOpacity="0" /></radialGradient><linearGradient id="b" x1="328.489" x2="259.397" y1="-101.75" y2="227.415" gradientUnits="userSpaceOnUse"><stop stopColor="#4A4EFA" /><stop offset=".625" stopColor="#E63CFE" /></linearGradient><linearGradient id="c" x1="193.001" x2="247.46" y1="96.497" y2="115.178" gradientUnits="userSpaceOnUse"><stop offset=".259" stopColor="#4A4EFA" /><stop offset=".961" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="d" x1="202.309" x2="243.057" y1="71.375" y2="86.077" gradientUnits="userSpaceOnUse"><stop offset=".252" stopColor="#39FBBB" /><stop offset="1" stopColor="#39FBBB" stopOpacity="0" /></linearGradient><linearGradient id="e" x1="295.535" x2="286.169" y1="-10.021" y2="31.423" gradientUnits="userSpaceOnUse"><stop stopColor="#4A4EFA" /><stop offset=".933" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="n" x1="-18.948" x2="55.093" y1="1.039" y2="231.932" gradientUnits="userSpaceOnUse"><stop offset=".17" stopColor="#E63CFE" /><stop offset=".592" stopColor="#FFAE3C" /></linearGradient><linearGradient id="o" x1="63.506" x2="20.255" y1="74.425" y2="88.815" gradientUnits="userSpaceOnUse"><stop offset=".321" stopColor="#4A4EFA" /><stop offset="1" stopColor="#4A4EFA" stopOpacity="0" /></linearGradient><linearGradient id="p" x1="82.497" x2="64.141" y1="106.838" y2="112.322" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></linearGradient><linearGradient id="q" x1="52.445" x2="17.265" y1="223.209" y2="146.13" gradientUnits="userSpaceOnUse"><stop offset=".372" stopColor="#FFAE3C" /><stop offset="1" stopColor="#FFAE3C" stopOpacity="0" /></linearGradient><linearGradient id="r" x1="20.419" x2="34.66" y1="-10.021" y2="23.34" gradientUnits="userSpaceOnUse"><stop stopColor="#E63CFE" /><stop offset="1" stopColor="#E63CFE" stopOpacity="0" /></linearGradient></defs></svg>
);
}
);
diff --git a/packages/icons/svgo-jsx.config.ts b/packages/icons/svgo-jsx.config.ts
index 1b86b7b7e3..4e694f4fd5 100644
--- a/packages/icons/svgo-jsx.config.ts
+++ b/packages/icons/svgo-jsx.config.ts
@@ -46,6 +46,8 @@ export const config: Config = {
overrides: {
// preserve viewBox
removeViewBox: false,
+ convertTransform: false,
+ inlineStyles: false,
},
},
},