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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Generate preparsed tailwind theme (#2249)
Bogdan Chadkin96348aaa5a74
diff --git a/packages/sdk-components-react-radix/package.json b/packages/sdk-components-react-radix/package.jsonindex 32f2120ffb..5e27ff9b12 100644--- a/packages/sdk-components-react-radix/package.json+++ b/packages/sdk-components-react-radix/package.json@@ -42,6 +42,7 @@"dev": "build-package --watch","build": "build-package","build:args": "NODE_OPTIONS=--conditions=source generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",+ "build:tailwind": "tsx scripts/generate-tailwind-theme.ts && prettier --write src/theme/__generated__","dts": "tsc --project tsconfig.dts.json","typecheck": "tsc","checks": "pnpm typecheck",@@ -67,8 +68,7 @@"@radix-ui/react-tooltip": "^1.0.6","@webstudio-is/css-data": "workspace:^","@webstudio-is/icons": "workspace:^",- "@webstudio-is/react-sdk": "workspace:^",- "tailwindcss": "^3.3.3"+ "@webstudio-is/react-sdk": "workspace:^"},"devDependencies": {"@storybook/react": "^7.2.1",@@ -81,6 +81,7 @@"@webstudio-is/tsconfig": "workspace:^","react": "^18.2.0","react-dom": "^18.2.0",+ "tailwindcss": "^3.3.3","typescript": "^5.2.2"}}diff --git a/packages/sdk-components-react-radix/scripts/generate-tailwind-theme.ts b/packages/sdk-components-react-radix/scripts/generate-tailwind-theme.tsnew file mode 100644index 0000000000..a73f50a854--- /dev/null+++ b/packages/sdk-components-react-radix/scripts/generate-tailwind-theme.ts@@ -0,0 +1,221 @@+import { writeFile, mkdir } from "node:fs/promises";+// Imported theme https://github.com/tailwindlabs/tailwindcss/blob/e0c52a9332a64ef7eb0ba23d2a0fd5a16fe57ab7/stubs/config.full.js+// eslint-disable-next-line import/no-internal-modules+import defaultTheme from "tailwindcss/defaultTheme";+import {+ StyleValue,+ parseCssValue,+ type StyleProperty,+ parseBoxShadow,+} from "@webstudio-is/css-data";+import type { ResolvableTo } from "tailwindcss/types/config";+import { colors as colorOverrides } from "../src/theme/tailwind-colors";++const theme = {+ ...defaultTheme,+ colors: colorOverrides,+ borderRadius: {+ ...defaultTheme.borderRadius,+ DEFAULT: "0.5rem",+ },+};++type GeneratedThemeItem = {+ name: string;+ extends?: string;+ values: Record<string, StyleValue>;+};++// preparse each object value to avoid loading csstree in cli+const parsePropertyValues = (+ property: StyleProperty,+ values: ResolvableTo<Record<string, string>> | Record<string, string>+) => {+ return Object.fromEntries(+ Object.entries(values).map(([name, value]) => [+ name,+ parseCssValue(property, value),+ ])+ );+};++// some theme fields are functions returning values+// usually to reuse other values like spacing in margin+const invokeResolvable = (+ values?: ResolvableTo<Record<string, string>> | Record<string, string>+) => {+ if (typeof values === "function") {+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment+ // @ts-ignore stub empty because no need to return anything+ return values({ theme: () => {}, breakpoints: () => ({}) });+ }+ return values;+};++const generatedThemeData: GeneratedThemeItem[] = [+ {+ name: "spacing",+ values: parsePropertyValues("paddingLeft", theme.spacing),+ },+ {+ name: "padding",+ extends: "spacing",+ values: {},+ },+ {+ name: "margin",+ extends: "spacing",+ values: parsePropertyValues("marginLeft", {+ ...invokeResolvable(theme.margin),+ }),+ },+ {+ name: "width",+ extends: "spacing",+ values: parsePropertyValues("width", {+ ...invokeResolvable(theme.width),+ }),+ },+ {+ name: "maxWidth",+ values: parsePropertyValues("maxWidth", {+ ...invokeResolvable(theme.maxWidth),+ }),+ },+ {+ name: "height",+ extends: "spacing",+ values: parsePropertyValues("height", {+ ...invokeResolvable(theme.height),+ }),+ },+ {+ name: "minHeight",+ values: parsePropertyValues("minHeight", {+ ...invokeResolvable(theme.minHeight),+ }),+ },+ {+ name: "inset",+ extends: "spacing",+ values: parsePropertyValues("top", {+ ...invokeResolvable(theme.inset),+ }),+ },+ {+ name: "borderWidth",+ values: parsePropertyValues("borderTopWidth", theme.borderWidth),+ },+ {+ name: "borderRadius",+ values: parsePropertyValues("borderStartStartRadius", theme.borderRadius),+ },+ {+ name: "colors",+ values: parsePropertyValues("color", theme.colors),+ },+ {+ name: "zIndex",+ values: parsePropertyValues("zIndex", theme.zIndex),+ },+ {+ name: "opacity",+ values: parsePropertyValues("opacity", theme.opacity),+ },+ {+ name: "cursor",+ values: parsePropertyValues("cursor", theme.cursor),+ },+ {+ name: "lineHeight",+ values: parsePropertyValues("lineHeight", theme.lineHeight),+ },+ {+ name: "letterSpacing",+ values: parsePropertyValues("letterSpacing", theme.letterSpacing),+ },+ {+ name: "listStyleType",+ values: parsePropertyValues("listStyleType", theme.listStyleType),+ },+ {+ name: "lineClamp",+ values: parsePropertyValues("lineClamp", theme.lineClamp),+ },+ {+ name: "textUnderlineOffset",+ values: parsePropertyValues(+ "textUnderlineOffset",+ theme.textUnderlineOffset+ ),+ },+ {+ name: "ringWidth",+ values: parsePropertyValues("width", theme.ringWidth),+ },+ {+ name: "ringOffsetWidth",+ values: parsePropertyValues("width", theme.ringOffsetWidth),+ },+ {+ name: "boxShadow",+ // there is a special parser for shadow+ values: Object.fromEntries(+ Object.entries(theme.boxShadow).map(([name, value]) => [+ name,+ parseBoxShadow(value),+ ])+ ),+ },+ {+ name: "blur",+ values: Object.fromEntries(+ Object.entries(theme.boxShadow).map(([name, value]) => [+ name,+ // original blur theme provides pixel values+ // though they need to be represented as style value+ // so wrap with blur() and convert to unparsed+ { type: "unparsed", value: `blur(${value})` },+ ])+ ),+ },+ // fontSize use complex tuple to describe multiple values+ // here replace with 2 theme values instead+ {+ name: "fontSize",+ values: Object.fromEntries(+ Object.entries(theme.fontSize).map(([name, [fontSize]]) => [+ name,+ parseCssValue("fontSize", fontSize),+ ])+ ),+ },+ {+ name: "fontSizeLineHeight",+ values: Object.fromEntries(+ Object.entries(theme.fontSize).map(+ ([name, [_fontSize, { lineHeight }]]) => [+ name,+ parseCssValue("lineHeight", lineHeight),+ ]+ )+ ),+ },+];++let generatedTheme = "";+generatedTheme += `import type { StyleValue } from '@webstudio-is/css-data';\n\n`;+for (const item of generatedThemeData) {+ const enumItems = Object.keys(item.values).map((key) => JSON.stringify(key));+ let jsonString = JSON.stringify(item.values);+ // extend both record keys and runtime values+ if (item.extends) {+ enumItems.unshift(`keyof typeof ${item.extends}`);+ jsonString = `{\n ...${item.extends},\n${jsonString.slice(1)}`;+ }+ const enumString = enumItems.join(" | ");+ generatedTheme += `export const ${item.name}: Record<${enumString}, StyleValue> = ${jsonString};\n\n`;+}++await mkdir("./src/theme/__generated__", { recursive: true });+await writeFile("./src/theme/__generated__/tailwind-theme.ts", generatedTheme);diff --git a/packages/sdk-components-react-radix/src/theme/__generated__/tailwind-theme.ts b/packages/sdk-components-react-radix/src/theme/__generated__/tailwind-theme.tsnew file mode 100644index 0000000000..3671e38fa1--- /dev/null+++ b/packages/sdk-components-react-radix/src/theme/__generated__/tailwind-theme.ts@@ -0,0 +1,825 @@+import type { StyleValue } from "@webstudio-is/css-data";++export const spacing: Record<+ | "0"+ | "1"+ | "2"+ | "3"+ | "4"+ | "5"+ | "6"+ | "7"+ | "8"+ | "9"+ | "10"+ | "11"+ | "12"+ | "14"+ | "16"+ | "20"+ | "24"+ | "28"+ | "32"+ | "36"+ | "40"+ | "44"+ | "48"+ | "52"+ | "56"+ | "60"+ | "64"+ | "72"+ | "80"+ | "96"+ | "px"+ | "0.5"+ | "1.5"+ | "2.5"+ | "3.5",+ StyleValue+> = {+ "0": { type: "unit", unit: "px", value: 0 },+ "1": { type: "unit", unit: "rem", value: 0.25 },+ "2": { type: "unit", unit: "rem", value: 0.5 },+ "3": { type: "unit", unit: "rem", value: 0.75 },+ "4": { type: "unit", unit: "rem", value: 1 },+ "5": { type: "unit", unit: "rem", value: 1.25 },+ "6": { type: "unit", unit: "rem", value: 1.5 },+ "7": { type: "unit", unit: "rem", value: 1.75 },+ "8": { type: "unit", unit: "rem", value: 2 },+ "9": { type: "unit", unit: "rem", value: 2.25 },+ "10": { type: "unit", unit: "rem", value: 2.5 },+ "11": { type: "unit", unit: "rem", value: 2.75 },+ "12": { type: "unit", unit: "rem", value: 3 },+ "14": { type: "unit", unit: "rem", value: 3.5 },+ "16": { type: "unit", unit: "rem", value: 4 },+ "20": { type: "unit", unit: "rem", value: 5 },+ "24": { type: "unit", unit: "rem", value: 6 },+ "28": { type: "unit", unit: "rem", value: 7 },+ "32": { type: "unit", unit: "rem", value: 8 },+ "36": { type: "unit", unit: "rem", value: 9 },+ "40": { type: "unit", unit: "rem", value: 10 },+ "44": { type: "unit", unit: "rem", value: 11 },+ "48": { type: "unit", unit: "rem", value: 12 },+ "52": { type: "unit", unit: "rem", value: 13 },+ "56": { type: "unit", unit: "rem", value: 14 },+ "60": { type: "unit", unit: "rem", value: 15 },+ "64": { type: "unit", unit: "rem", value: 16 },+ "72": { type: "unit", unit: "rem", value: 18 },+ "80": { type: "unit", unit: "rem", value: 20 },+ "96": { type: "unit", unit: "rem", value: 24 },+ px: { type: "unit", unit: "px", value: 1 },+ "0.5": { type: "unit", unit: "rem", value: 0.125 },+ "1.5": { type: "unit", unit: "rem", value: 0.375 },+ "2.5": { type: "unit", unit: "rem", value: 0.625 },+ "3.5": { type: "unit", unit: "rem", value: 0.875 },+};++export const padding: Record<keyof typeof spacing, StyleValue> = {+ ...spacing,+};++export const margin: Record<keyof typeof spacing | "auto", StyleValue> = {+ ...spacing,+ auto: { type: "keyword", value: "auto" },+};++export const width: Record<+ | keyof typeof spacing+ | "auto"+ | "1/2"+ | "1/3"+ | "2/3"+ | "1/4"+ | "2/4"+ | "3/4"+ | "1/5"+ | "2/5"+ | "3/5"+ | "4/5"+ | "1/6"+ | "2/6"+ | "3/6"+ | "4/6"+ | "5/6"+ | "1/12"+ | "2/12"+ | "3/12"+ | "4/12"+ | "5/12"+ | "6/12"+ | "7/12"+ | "8/12"+ | "9/12"+ | "10/12"+ | "11/12"+ | "full"+ | "screen"+ | "min"+ | "max"+ | "fit",+ StyleValue+> = {+ ...spacing,+ auto: { type: "keyword", value: "auto" },+ "1/2": { type: "unit", unit: "%", value: 50 },+ "1/3": { type: "unit", unit: "%", value: 33.333333 },+ "2/3": { type: "unit", unit: "%", value: 66.666667 },+ "1/4": { type: "unit", unit: "%", value: 25 },+ "2/4": { type: "unit", unit: "%", value: 50 },+ "3/4": { type: "unit", unit: "%", value: 75 },+ "1/5": { type: "unit", unit: "%", value: 20 },+ "2/5": { type: "unit", unit: "%", value: 40 },+ "3/5": { type: "unit", unit: "%", value: 60 },+ "4/5": { type: "unit", unit: "%", value: 80 },+ "1/6": { type: "unit", unit: "%", value: 16.666667 },+ "2/6": { type: "unit", unit: "%", value: 33.333333 },+ "3/6": { type: "unit", unit: "%", value: 50 },+ "4/6": { type: "unit", unit: "%", value: 66.666667 },+ "5/6": { type: "unit", unit: "%", value: 83.333333 },+ "1/12": { type: "unit", unit: "%", value: 8.333333 },+ "2/12": { type: "unit", unit: "%", value: 16.666667 },+ "3/12": { type: "unit", unit: "%", value: 25 },+ "4/12": { type: "unit", unit: "%", value: 33.333333 },+ "5/12": { type: "unit", unit: "%", value: 41.666667 },+ "6/12": { type: "unit", unit: "%", value: 50 },+ "7/12": { type: "unit", unit: "%", value: 58.333333 },+ "8/12": { type: "unit", unit: "%", value: 66.666667 },+ "9/12": { type: "unit", unit: "%", value: 75 },+ "10/12": { type: "unit", unit: "%", value: 83.333333 },+ "11/12": { type: "unit", unit: "%", value: 91.666667 },+ full: { type: "unit", unit: "%", value: 100 },+ screen: { type: "unit", unit: "vw", value: 100 },+ min: { type: "keyword", value: "min-content" },+ max: { type: "keyword", value: "max-content" },+ fit: { type: "keyword", value: "fit-content" },+};++export const maxWidth: Record<+ | "0"+ | "none"+ | "xs"+ | "sm"+ | "md"+ | "lg"+ | "xl"+ | "2xl"+ | "3xl"+ | "4xl"+ | "5xl"+ | "6xl"+ | "7xl"+ | "full"+ | "min"+ | "max"+ | "fit"+ | "prose",+ StyleValue+> = {+ "0": { type: "unit", unit: "rem", value: 0 },+ none: { type: "keyword", value: "none" },+ xs: { type: "unit", unit: "rem", value: 20 },+ sm: { type: "unit", unit: "rem", value: 24 },+ md: { type: "unit", unit: "rem", value: 28 },+ lg: { type: "unit", unit: "rem", value: 32 },+ xl: { type: "unit", unit: "rem", value: 36 },+ "2xl": { type: "unit", unit: "rem", value: 42 },+ "3xl": { type: "unit", unit: "rem", value: 48 },+ "4xl": { type: "unit", unit: "rem", value: 56 },+ "5xl": { type: "unit", unit: "rem", value: 64 },+ "6xl": { type: "unit", unit: "rem", value: 72 },+ "7xl": { type: "unit", unit: "rem", value: 80 },+ full: { type: "unit", unit: "%", value: 100 },+ min: { type: "keyword", value: "min-content" },+ max: { type: "keyword", value: "max-content" },+ fit: { type: "keyword", value: "fit-content" },+ prose: { type: "unit", unit: "ch", value: 65 },+};++export const height: Record<+ | keyof typeof spacing+ | "auto"+ | "1/2"+ | "1/3"+ | "2/3"+ | "1/4"+ | "2/4"+ | "3/4"+ | "1/5"+ | "2/5"+ | "3/5"+ | "4/5"+ | "1/6"+ | "2/6"+ | "3/6"+ | "4/6"+ | "5/6"+ | "full"+ | "screen"+ | "min"+ | "max"+ | "fit",+ StyleValue+> = {+ ...spacing,+ auto: { type: "keyword", value: "auto" },+ "1/2": { type: "unit", unit: "%", value: 50 },+ "1/3": { type: "unit", unit: "%", value: 33.333333 },+ "2/3": { type: "unit", unit: "%", value: 66.666667 },+ "1/4": { type: "unit", unit: "%", value: 25 },+ "2/4": { type: "unit", unit: "%", value: 50 },+ "3/4": { type: "unit", unit: "%", value: 75 },+ "1/5": { type: "unit", unit: "%", value: 20 },+ "2/5": { type: "unit", unit: "%", value: 40 },+ "3/5": { type: "unit", unit: "%", value: 60 },+ "4/5": { type: "unit", unit: "%", value: 80 },+ "1/6": { type: "unit", unit: "%", value: 16.666667 },+ "2/6": { type: "unit", unit: "%", value: 33.333333 },+ "3/6": { type: "unit", unit: "%", value: 50 },+ "4/6": { type: "unit", unit: "%", value: 66.666667 },+ "5/6": { type: "unit", unit: "%", value: 83.333333 },+ full: { type: "unit", unit: "%", value: 100 },+ screen: { type: "unit", unit: "vh", value: 100 },+ min: { type: "keyword", value: "min-content" },+ max: { type: "keyword", value: "max-content" },+ fit: { type: "keyword", value: "fit-content" },+};++export const minHeight: Record<+ "0" | "full" | "screen" | "min" | "max" | "fit",+ StyleValue+> = {+ "0": { type: "unit", unit: "px", value: 0 },+ full: { type: "unit", unit: "%", value: 100 },+ screen: { type: "unit", unit: "vh", value: 100 },+ min: { type: "keyword", value: "min-content" },+ max: { type: "keyword", value: "max-content" },+ fit: { type: "keyword", value: "fit-content" },+};++export const inset: Record<+ | keyof typeof spacing+ | "auto"+ | "1/2"+ | "1/3"+ | "2/3"+ | "1/4"+ | "2/4"+ | "3/4"+ | "full",+ StyleValue+> = {+ ...spacing,+ auto: { type: "keyword", value: "auto" },+ "1/2": { type: "unit", unit: "%", value: 50 },+ "1/3": { type: "unit", unit: "%", value: 33.333333 },+ "2/3": { type: "unit", unit: "%", value: 66.666667 },+ "1/4": { type: "unit", unit: "%", value: 25 },+ "2/4": { type: "unit", unit: "%", value: 50 },+ "3/4": { type: "unit", unit: "%", value: 75 },+ full: { type: "unit", unit: "%", value: 100 },+};++export const borderWidth: Record<+ "0" | "2" | "4" | "8" | "DEFAULT",+ StyleValue+> = {+ "0": { type: "unit", unit: "px", value: 0 },+ "2": { type: "unit", unit: "px", value: 2 },+ "4": { type: "unit", unit: "px", value: 4 },+ "8": { type: "unit", unit: "px", value: 8 },+ DEFAULT: { type: "unit", unit: "px", value: 1 },+};++export const borderRadius: Record<+ "none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full",+ StyleValue+> = {+ none: { type: "unit", unit: "px", value: 0 },+ sm: { type: "unit", unit: "rem", value: 0.125 },+ DEFAULT: { type: "unit", unit: "rem", value: 0.5 },+ md: { type: "unit", unit: "rem", value: 0.375 },+ lg: { type: "unit", unit: "rem", value: 0.5 },+ xl: { type: "unit", unit: "rem", value: 0.75 },+ "2xl": { type: "unit", unit: "rem", value: 1 },+ "3xl": { type: "unit", unit: "rem", value: 1.5 },+ full: { type: "unit", unit: "px", value: 9999 },+};++export const colors: Record<+ | "transparent"+ | "current"+ | "inherit"+ | "popover"+ | "popoverForeground"+ | "border"+ | "background"+ | "foreground"+ | "ring"+ | "mutedForeground"+ | "muted"+ | "primary"+ | "primaryForeground"+ | "destructive"+ | "destructiveForeground"+ | "accent"+ | "accentForeground"+ | "input"+ | "secondary"+ | "secondaryForeground",+ StyleValue+> = {+ transparent: { type: "keyword", value: "transparent" },+ current: { type: "keyword", value: "currentColor" },+ inherit: { type: "keyword", value: "inherit" },+ popover: { type: "rgb", alpha: 1, r: 255, g: 255, b: 255 },+ popoverForeground: { type: "rgb", alpha: 1, r: 2, g: 8, b: 23 },+ border: { type: "rgb", alpha: 1, r: 226, g: 232, b: 240 },+ background: { type: "rgb", alpha: 1, r: 255, g: 255, b: 255 },+ foreground: { type: "rgb", alpha: 1, r: 2, g: 8, b: 23 },+ ring: { type: "rgb", alpha: 1, r: 148, g: 163, b: 184 },+ mutedForeground: { type: "rgb", alpha: 1, r: 100, g: 116, b: 139 },+ muted: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },+ primary: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 },+ primaryForeground: { type: "rgb", alpha: 1, r: 248, g: 250, b: 252 },+ destructive: { type: "rgb", alpha: 1, r: 239, g: 68, b: 68 },+ destructiveForeground: { type: "rgb", alpha: 1, r: 248, g: 250, b: 252 },+ accent: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },+ accentForeground: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 },+ input: { type: "rgb", alpha: 1, r: 226, g: 232, b: 240 },+ secondary: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },+ secondaryForeground: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 },+};++export const zIndex: Record<+ "0" | "10" | "20" | "30" | "40" | "50" | "auto",+ StyleValue+> = {+ "0": { type: "unit", unit: "number", value: 0 },+ "10": { type: "unit", unit: "number", value: 10 },+ "20": { type: "unit", unit: "number", value: 20 },+ "30": { type: "unit", unit: "number", value: 30 },+ "40": { type: "unit", unit: "number", value: 40 },+ "50": { type: "unit", unit: "number", value: 50 },+ auto: { type: "keyword", value: "auto" },+};++export const opacity: Record<+ | "0"+ | "5"+ | "10"+ | "20"+ | "25"+ | "30"+ | "40"+ | "50"+ | "60"+ | "70"+ | "75"+ | "80"+ | "90"+ | "95"+ | "100",+ StyleValue+> = {+ "0": { type: "unit", unit: "number", value: 0 },+ "5": { type: "unit", unit: "number", value: 0.05 },+ "10": { type: "unit", unit: "number", value: 0.1 },+ "20": { type: "unit", unit: "number", value: 0.2 },+ "25": { type: "unit", unit: "number", value: 0.25 },+ "30": { type: "unit", unit: "number", value: 0.3 },+ "40": { type: "unit", unit: "number", value: 0.4 },+ "50": { type: "unit", unit: "number", value: 0.5 },+ "60": { type: "unit", unit: "number", value: 0.6 },+ "70": { type: "unit", unit: "number", value: 0.7 },+ "75": { type: "unit", unit: "number", value: 0.75 },+ "80": { type: "unit", unit: "number", value: 0.8 },+ "90": { type: "unit", unit: "number", value: 0.9 },+ "95": { type: "unit", unit: "number", value: 0.95 },+ "100": { type: "unit", unit: "number", value: 1 },+};++export const cursor: Record<+ | "auto"+ | "default"+ | "pointer"+ | "wait"+ | "text"+ | "move"+ | "help"+ | "not-allowed"+ | "none"+ | "context-menu"+ | "progress"+ | "cell"+ | "crosshair"+ | "vertical-text"+ | "alias"+ | "copy"+ | "no-drop"+ | "grab"+ | "grabbing"+ | "all-scroll"+ | "col-resize"+ | "row-resize"+ | "n-resize"+ | "e-resize"+ | "s-resize"+ | "w-resize"+ | "ne-resize"+ | "nw-resize"+ | "se-resize"+ | "sw-resize"+ | "ew-resize"+ | "ns-resize"+ | "nesw-resize"+ | "nwse-resize"+ | "zoom-in"+ | "zoom-out",+ StyleValue+> = {+ auto: { type: "keyword", value: "auto" },+ default: { type: "keyword", value: "default" },+ pointer: { type: "keyword", value: "pointer" },+ wait: { type: "keyword", value: "wait" },+ text: { type: "keyword", value: "text" },+ move: { type: "keyword", value: "move" },+ help: { type: "keyword", value: "help" },+ "not-allowed": { type: "keyword", value: "not-allowed" },+ none: { type: "keyword", value: "none" },+ "context-menu": { type: "keyword", value: "context-menu" },+ progress: { type: "keyword", value: "progress" },+ cell: { type: "keyword", value: "cell" },+ crosshair: { type: "keyword", value: "crosshair" },+ "vertical-text": { type: "keyword", value: "vertical-text" },+ alias: { type: "keyword", value: "alias" },+ copy: { type: "keyword", value: "copy" },+ "no-drop": { type: "keyword", value: "no-drop" },+ grab: { type: "keyword", value: "grab" },+ grabbing: { type: "keyword", value: "grabbing" },+ "all-scroll": { type: "keyword", value: "all-scroll" },+ "col-resize": { type: "keyword", value: "col-resize" },+ "row-resize": { type: "keyword", value: "row-resize" },+ "n-resize": { type: "keyword", value: "n-resize" },+ "e-resize": { type: "keyword", value: "e-resize" },+ "s-resize": { type: "keyword", value: "s-resize" },+ "w-resize": { type: "keyword", value: "w-resize" },+ "ne-resize": { type: "keyword", value: "ne-resize" },+ "nw-resize": { type: "keyword", value: "nw-resize" },+ "se-resize": { type: "keyword", value: "se-resize" },+ "sw-resize": { type: "keyword", value: "sw-resize" },+ "ew-resize": { type: "keyword", value: "ew-resize" },+ "ns-resize": { type: "keyword", value: "ns-resize" },+ "nesw-resize": { type: "keyword", value: "nesw-resize" },+ "nwse-resize": { type: "keyword", value: "nwse-resize" },+ "zoom-in": { type: "keyword", value: "zoom-in" },+ "zoom-out": { type: "keyword", value: "zoom-out" },+};++export const lineHeight: Record<+ | "3"+ | "4"+ | "5"+ | "6"+ | "7"+ | "8"+ | "9"+ | "10"+ | "none"+ | "tight"+ | "snug"+ | "normal"+ | "relaxed"+ | "loose",+ StyleValue+> = {+ "3": { type: "unit", unit: "rem", value: 0.75 },+ "4": { type: "unit", unit: "rem", value: 1 },+ "5": { type: "unit", unit: "rem", value: 1.25 },+ "6": { type: "unit", unit: "rem", value: 1.5 },+ "7": { type: "unit", unit: "rem", value: 1.75 },+ "8": { type: "unit", unit: "rem", value: 2 },+ "9": { type: "unit", unit: "rem", value: 2.25 },+ "10": { type: "unit", unit: "rem", value: 2.5 },+ none: { type: "unit", unit: "number", value: 1 },+ tight: { type: "unit", unit: "number", value: 1.25 },+ snug: { type: "unit", unit: "number", value: 1.375 },+ normal: { type: "unit", unit: "number", value: 1.5 },+ relaxed: { type: "unit", unit: "number", value: 1.625 },+ loose: { type: "unit", unit: "number", value: 2 },+};++export const letterSpacing: Record<+ "tighter" | "tight" | "normal" | "wide" | "wider" | "widest",+ StyleValue+> = {+ tighter: { type: "unit", unit: "em", value: -0.05 },+ tight: { type: "unit", unit: "em", value: -0.025 },+ normal: { type: "unit", unit: "em", value: 0 },+ wide: { type: "unit", unit: "em", value: 0.025 },+ wider: { type: "unit", unit: "em", value: 0.05 },+ widest: { type: "unit", unit: "em", value: 0.1 },+};++export const listStyleType: Record<"none" | "disc" | "decimal", StyleValue> = {+ none: { type: "keyword", value: "none" },+ disc: { type: "keyword", value: "disc" },+ decimal: { type: "keyword", value: "decimal" },+};++export const lineClamp: Record<"1" | "2" | "3" | "4" | "5" | "6", StyleValue> =+ {+ "1": { type: "unit", unit: "number", value: 1 },+ "2": { type: "unit", unit: "number", value: 2 },+ "3": { type: "unit", unit: "number", value: 3 },+ "4": { type: "unit", unit: "number", value: 4 },+ "5": { type: "unit", unit: "number", value: 5 },+ "6": { type: "unit", unit: "number", value: 6 },+ };++export const textUnderlineOffset: Record<+ "0" | "1" | "2" | "4" | "8" | "auto",+ StyleValue+> = {+ "0": { type: "unit", unit: "px", value: 0 },+ "1": { type: "unit", unit: "px", value: 1 },+ "2": { type: "unit", unit: "px", value: 2 },+ "4": { type: "unit", unit: "px", value: 4 },+ "8": { type: "unit", unit: "px", value: 8 },+ auto: { type: "keyword", value: "auto" },+};++export const ringWidth: Record<+ "0" | "1" | "2" | "4" | "8" | "DEFAULT",+ StyleValue+> = {+ "0": { type: "unit", unit: "px", value: 0 },+ "1": { type: "unit", unit: "px", value: 1 },+ "2": { type: "unit", unit: "px", value: 2 },+ "4": { type: "unit", unit: "px", value: 4 },+ "8": { type: "unit", unit: "px", value: 8 },+ DEFAULT: { type: "unit", unit: "px", value: 3 },+};++export const ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", StyleValue> =+ {+ "0": { type: "unit", unit: "px", value: 0 },+ "1": { type: "unit", unit: "px", value: 1 },+ "2": { type: "unit", unit: "px", value: 2 },+ "4": { type: "unit", unit: "px", value: 4 },+ "8": { type: "unit", unit: "px", value: 8 },+ };++export const boxShadow: Record<+ "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none",+ StyleValue+> = {+ sm: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 1, unit: "px" },+ { type: "unit", value: 2, unit: "px" },+ { type: "unit", value: 0, unit: "number" },+ { type: "rgb", alpha: 0.05, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ DEFAULT: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 1, unit: "px" },+ { type: "unit", value: 3, unit: "px" },+ { type: "unit", value: 0, unit: "number" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 1, unit: "px" },+ { type: "unit", value: 2, unit: "px" },+ { type: "unit", value: -1, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ md: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 4, unit: "px" },+ { type: "unit", value: 6, unit: "px" },+ { type: "unit", value: -1, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 2, unit: "px" },+ { type: "unit", value: 4, unit: "px" },+ { type: "unit", value: -2, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ lg: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 10, unit: "px" },+ { type: "unit", value: 15, unit: "px" },+ { type: "unit", value: -3, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 4, unit: "px" },+ { type: "unit", value: 6, unit: "px" },+ { type: "unit", value: -4, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ xl: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 20, unit: "px" },+ { type: "unit", value: 25, unit: "px" },+ { type: "unit", value: -5, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 8, unit: "px" },+ { type: "unit", value: 10, unit: "px" },+ { type: "unit", value: -6, unit: "px" },+ { type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ "2xl": {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 25, unit: "px" },+ { type: "unit", value: 50, unit: "px" },+ { type: "unit", value: -12, unit: "px" },+ { type: "rgb", alpha: 0.25, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ inner: {+ type: "layers",+ value: [+ {+ type: "tuple",+ value: [+ { type: "keyword", value: "inset" },+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 2, unit: "px" },+ { type: "unit", value: 4, unit: "px" },+ { type: "unit", value: 0, unit: "number" },+ { type: "rgb", alpha: 0.05, r: 0, g: 0, b: 0 },+ ],+ },+ ],+ },+ none: {+ type: "layers",+ value: [{ type: "tuple", value: [{ type: "keyword", value: "none" }] }],+ },+};++export const blur: Record<+ "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none",+ StyleValue+> = {+ sm: { type: "unparsed", value: "blur(0 1px 2px 0 rgb(0 0 0 / 0.05))" },+ DEFAULT: {+ type: "unparsed",+ value:+ "blur(0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1))",+ },+ md: {+ type: "unparsed",+ value:+ "blur(0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))",+ },+ lg: {+ type: "unparsed",+ value:+ "blur(0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))",+ },+ xl: {+ type: "unparsed",+ value:+ "blur(0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))",+ },+ "2xl": {+ type: "unparsed",+ value: "blur(0 25px 50px -12px rgb(0 0 0 / 0.25))",+ },+ inner: {+ type: "unparsed",+ value: "blur(inset 0 2px 4px 0 rgb(0 0 0 / 0.05))",+ },+ none: { type: "unparsed", value: "blur(none)" },+};++export const fontSize: Record<+ | "xs"+ | "sm"+ | "base"+ | "lg"+ | "xl"+ | "2xl"+ | "3xl"+ | "4xl"+ | "5xl"+ | "6xl"+ | "7xl"+ | "8xl"+ | "9xl",+ StyleValue+> = {+ xs: { type: "unit", unit: "rem", value: 0.75 },+ sm: { type: "unit", unit: "rem", value: 0.875 },+ base: { type: "unit", unit: "rem", value: 1 },+ lg: { type: "unit", unit: "rem", value: 1.125 },+ xl: { type: "unit", unit: "rem", value: 1.25 },+ "2xl": { type: "unit", unit: "rem", value: 1.5 },+ "3xl": { type: "unit", unit: "rem", value: 1.875 },+ "4xl": { type: "unit", unit: "rem", value: 2.25 },+ "5xl": { type: "unit", unit: "rem", value: 3 },+ "6xl": { type: "unit", unit: "rem", value: 3.75 },+ "7xl": { type: "unit", unit: "rem", value: 4.5 },+ "8xl": { type: "unit", unit: "rem", value: 6 },+ "9xl": { type: "unit", unit: "rem", value: 8 },+};++export const fontSizeLineHeight: Record<+ | "xs"+ | "sm"+ | "base"+ | "lg"+ | "xl"+ | "2xl"+ | "3xl"+ | "4xl"+ | "5xl"+ | "6xl"+ | "7xl"+ | "8xl"+ | "9xl",+ StyleValue+> = {+ xs: { type: "unit", unit: "rem", value: 1 },+ sm: { type: "unit", unit: "rem", value: 1.25 },+ base: { type: "unit", unit: "rem", value: 1.5 },+ lg: { type: "unit", unit: "rem", value: 1.75 },+ xl: { type: "unit", unit: "rem", value: 1.75 },+ "2xl": { type: "unit", unit: "rem", value: 2 },+ "3xl": { type: "unit", unit: "rem", value: 2.25 },+ "4xl": { type: "unit", unit: "rem", value: 2.5 },+ "5xl": { type: "unit", unit: "number", value: 1 },+ "6xl": { type: "unit", unit: "number", value: 1 },+ "7xl": { type: "unit", unit: "number", value: 1 },+ "8xl": { type: "unit", unit: "number", value: 1 },+ "9xl": { type: "unit", unit: "number", value: 1 },+};diff --git a/packages/sdk-components-react-radix/src/theme/radix-common-types.ts b/packages/sdk-components-react-radix/src/theme/radix-common-types.tsdeleted file mode 100644index e2f3ccd51a..0000000000--- a/packages/sdk-components-react-radix/src/theme/radix-common-types.ts+++ /dev/null@@ -1,496 +0,0 @@-// Source: "tailwindcss/types/generated/default-theme"--import type { colors } from "./tailwind-colors";--// Removed `Config['theme'] &`-type DefaultTheme = {- animation: Record<"none" | "spin" | "ping" | "pulse" | "bounce", string>;- aria: Record<- | "busy"- | "checked"- | "disabled"- | "expanded"- | "hidden"- | "pressed"- | "readonly"- | "required"- | "selected",- string- >;- aspectRatio: Record<"auto" | "square" | "video", string>;- backgroundImage: Record<- | "none"- | "gradient-to-t"- | "gradient-to-tr"- | "gradient-to-r"- | "gradient-to-br"- | "gradient-to-b"- | "gradient-to-bl"- | "gradient-to-l"- | "gradient-to-tl",- string- >;- backgroundPosition: Record<- | "bottom"- | "center"- | "left"- | "left-bottom"- | "left-top"- | "right"- | "right-bottom"- | "right-top"- | "top",- string- >;- backgroundSize: Record<"auto" | "cover" | "contain", string>;- blur: Record<- "0" | "none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl",- string- >;- borderRadius: Record<- "none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full",- string- >;- borderWidth: Record<"0" | "2" | "4" | "8" | "DEFAULT", string>;- boxShadow: Record<- "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none",- string- >;- brightness: Record<- | "0"- | "50"- | "75"- | "90"- | "95"- | "100"- | "105"- | "110"- | "125"- | "150"- | "200",- string- >;- columns: Record<- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "auto"- | "3xs"- | "2xs"- | "xs"- | "sm"- | "md"- | "lg"- | "xl"- | "2xl"- | "3xl"- | "4xl"- | "5xl"- | "6xl"- | "7xl",- string- >;- content: Record<"none", string>;- contrast: Record<"0" | "50" | "75" | "100" | "125" | "150" | "200", string>;- cursor: Record<- | "auto"- | "default"- | "pointer"- | "wait"- | "text"- | "move"- | "help"- | "not-allowed"- | "none"- | "context-menu"- | "progress"- | "cell"- | "crosshair"- | "vertical-text"- | "alias"- | "copy"- | "no-drop"- | "grab"- | "grabbing"- | "all-scroll"- | "col-resize"- | "row-resize"- | "n-resize"- | "e-resize"- | "s-resize"- | "w-resize"- | "ne-resize"- | "nw-resize"- | "se-resize"- | "sw-resize"- | "ew-resize"- | "ns-resize"- | "nesw-resize"- | "nwse-resize"- | "zoom-in"- | "zoom-out",- string- >;- dropShadow: Record<- "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "none",- string | string[]- >;- flex: Record<"1" | "auto" | "initial" | "none", string>;- flexGrow: Record<"0" | "DEFAULT", string>;- flexShrink: Record<"0" | "DEFAULT", string>;- fontFamily: Record<"sans" | "serif" | "mono", string[]>;- fontSize: Record<- | "xs"- | "sm"- | "base"- | "lg"- | "xl"- | "2xl"- | "3xl"- | "4xl"- | "5xl"- | "6xl"- | "7xl"- | "8xl"- | "9xl",- [string, { lineHeight: string }]- >;- fontWeight: Record<- | "thin"- | "extralight"- | "light"- | "normal"- | "medium"- | "semibold"- | "bold"- | "extrabold"- | "black",- string- >;- gradientColorStopPositions: Record<- | "0%"- | "5%"- | "10%"- | "15%"- | "20%"- | "25%"- | "30%"- | "35%"- | "40%"- | "45%"- | "50%"- | "55%"- | "60%"- | "65%"- | "70%"- | "75%"- | "80%"- | "85%"- | "90%"- | "95%"- | "100%",- string- >;- grayscale: Record<"0" | "DEFAULT", string>;- gridAutoColumns: Record<"auto" | "min" | "max" | "fr", string>;- gridAutoRows: Record<"auto" | "min" | "max" | "fr", string>;- gridColumn: Record<- | "auto"- | "span-1"- | "span-2"- | "span-3"- | "span-4"- | "span-5"- | "span-6"- | "span-7"- | "span-8"- | "span-9"- | "span-10"- | "span-11"- | "span-12"- | "span-full",- string- >;- gridColumnEnd: Record<- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "13"- | "auto",- string- >;- gridColumnStart: Record<- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "13"- | "auto",- string- >;- gridRow: Record<- | "auto"- | "span-1"- | "span-2"- | "span-3"- | "span-4"- | "span-5"- | "span-6"- | "span-full",- string- >;- gridRowEnd: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "auto", string>;- gridRowStart: Record<- "1" | "2" | "3" | "4" | "5" | "6" | "7" | "auto",- string- >;- gridTemplateColumns: Record<- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "none",- string- >;- gridTemplateRows: Record<"1" | "2" | "3" | "4" | "5" | "6" | "none", string>;- hueRotate: Record<"0" | "15" | "30" | "60" | "90" | "180", string>;- invert: Record<"0" | "DEFAULT", string>;- letterSpacing: Record<- "tighter" | "tight" | "normal" | "wide" | "wider" | "widest",- string- >;- lineHeight: Record<- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "none"- | "tight"- | "snug"- | "normal"- | "relaxed"- | "loose",- string- >;- listStyleType: Record<"none" | "disc" | "decimal", string>;- listStyleImage: Record<"none", string>;- lineClamp: Record<"1" | "2" | "3" | "4" | "5" | "6", string>;- minHeight: Record<"0" | "full" | "screen" | "min" | "max" | "fit", string>;- minWidth: Record<"0" | "full" | "min" | "max" | "fit", string>;- objectPosition: Record<- | "bottom"- | "center"- | "left"- | "left-bottom"- | "left-top"- | "right"- | "right-bottom"- | "right-top"- | "top",- string- >;- opacity: Record<- | "0"- | "5"- | "10"- | "20"- | "25"- | "30"- | "40"- | "50"- | "60"- | "70"- | "75"- | "80"- | "90"- | "95"- | "100",- string- >;- order: Record<- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "first"- | "last"- | "none",- string- >;- outlineOffset: Record<"0" | "1" | "2" | "4" | "8", string>;- outlineWidth: Record<"0" | "1" | "2" | "4" | "8", string>;- ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", string>;- ringWidth: Record<"0" | "1" | "2" | "4" | "8" | "DEFAULT", string>;- rotate: Record<- "0" | "1" | "2" | "3" | "6" | "12" | "45" | "90" | "180",- string- >;- saturate: Record<"0" | "50" | "100" | "150" | "200", string>;- scale: Record<- "0" | "50" | "75" | "90" | "95" | "100" | "105" | "110" | "125" | "150",- string- >;- screens: Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;- sepia: Record<"0" | "DEFAULT", string>;- skew: Record<"0" | "1" | "2" | "3" | "6" | "12", string>;- spacing: Record<- | "0"- | "1"- | "2"- | "3"- | "4"- | "5"- | "6"- | "7"- | "8"- | "9"- | "10"- | "11"- | "12"- | "14"- | "16"- | "20"- | "24"- | "28"- | "32"- | "36"- | "40"- | "44"- | "48"- | "52"- | "56"- | "60"- | "64"- | "72"- | "80"- | "96"- | "px"- | "0.5"- | "1.5"- | "2.5"- | "3.5",- string- >;- strokeWidth: Record<"0" | "1" | "2", string>;- textDecorationThickness: Record<- "0" | "1" | "2" | "4" | "8" | "auto" | "from-font",- string- >;- textUnderlineOffset: Record<"0" | "1" | "2" | "4" | "8" | "auto", string>;- transformOrigin: Record<- | "center"- | "top"- | "top-right"- | "right"- | "bottom-right"- | "bottom"- | "bottom-left"- | "left"- | "top-left",- string- >;- transitionDelay: Record<- "0" | "75" | "100" | "150" | "200" | "300" | "500" | "700" | "1000",- string- >;- transitionDuration: Record<- | "0"- | "75"- | "100"- | "150"- | "200"- | "300"- | "500"- | "700"- | "1000"- | "DEFAULT",- string- >;- transitionProperty: Record<- "none" | "all" | "DEFAULT" | "colors" | "opacity" | "shadow" | "transform",- string- >;- transitionTimingFunction: Record<- "DEFAULT" | "linear" | "in" | "out" | "in-out",- string- >;- willChange: Record<"auto" | "scroll" | "contents" | "transform", string>;- zIndex: Record<"0" | "10" | "20" | "30" | "40" | "50" | "auto", string>;-};--export type EvaluatedDefaultTheme = DefaultTheme & {- padding: DefaultTheme["spacing"];- colors: typeof colors;- inset: DefaultTheme["spacing"] & Record<"full", string>;- width: DefaultTheme["spacing"] & Record<"full" | "max", string>;- height: DefaultTheme["spacing"] & Record<"max", string>;- margin: DefaultTheme["spacing"] & Record<"auto", string>;- maxWidth: DefaultTheme["spacing"] &- Record<- | "none"- | "0"- | "xs"- | "sm"- | "md"- | "lg"- | "xl"- | "2xl"- | "3xl"- | "4xl"- | "5xl"- | "6xl"- | "7xl"- | "full"- | "min"- | "max"- | "fit"- | "prose",- string- >;-};diff --git a/packages/sdk-components-react-radix/src/theme/tailwind-classes.ts b/packages/sdk-components-react-radix/src/theme/tailwind-classes.tsindex 8a397daaf6..7602f52b6a 100644--- a/packages/sdk-components-react-radix/src/theme/tailwind-classes.ts+++ b/packages/sdk-components-react-radix/src/theme/tailwind-classes.ts@@ -2,14 +2,13 @@* Quik and dirty implementation of tailwind classes conversion to webstudio styles.*/import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";-import { theme } from "./tailwind-theme";-import {- parseCssValue,- parseBoxShadow,+import type {StyleValue,- type StyleProperty,+ StyleProperty,+ TupleValue,+ TupleValueItem,} from "@webstudio-is/css-data";-import type { EvaluatedDefaultTheme } from "./radix-common-types";+import * as theme from "./__generated__/tailwind-theme";export const property = (property: StyleProperty,@@ -29,7 +28,7 @@ export const property = (// https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.cssconst preflight = (): EmbedTemplateStyleDecl[] => {- const borderColorValue = parseCssValue("color", theme("colors")["border"]);+ const borderColorValue = theme.colors.border;return [{@@ -69,15 +68,12 @@ const preflight = (): EmbedTemplateStyleDecl[] => {};export const z = (- zIndex?: StringEnumToNumeric<keyof EvaluatedDefaultTheme["zIndex"]>+ value: StringEnumToNumeric<keyof typeof theme.zIndex>): EmbedTemplateStyleDecl[] => {- const valueString = theme("zIndex")[zIndex ?? "auto"];- const value = parseCssValue("zIndex", valueString);-return [{property: "zIndex",- value,+ value: theme.zIndex[value],},];};@@ -92,28 +88,14 @@ export const overflow = (];export const rounded = (- radius?: keyof EvaluatedDefaultTheme["borderRadius"]+ value: keyof typeof theme.borderRadius = "DEFAULT"): EmbedTemplateStyleDecl[] => {- const valueString = theme("borderRadius")[radius ?? "DEFAULT"];- const value = parseCssValue("borderTopWidth", valueString);-+ const styleValue = theme.borderRadius[value];return [- {- property: "borderTopLeftRadius",- value,- },- {- property: "borderTopRightRadius",- value,- },- {- property: "borderBottomRightRadius",- value,- },- {- property: "borderBottomLeftRadius",- value,- },+ { property: "borderTopLeftRadius", value: styleValue },+ { property: "borderTopRightRadius", value: styleValue },+ { property: "borderBottomRightRadius", value: styleValue },+ { property: "borderBottomLeftRadius", value: styleValue },];};@@ -128,68 +110,47 @@ type NonNumeric<T extends string> = T extends `${infer Z extends number}`export const border = (borderWidthOrColor?:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["borderWidth"]>- | keyof EvaluatedDefaultTheme["colors"]+ | StringEnumToNumeric<keyof typeof theme.borderWidth>+ | keyof typeof theme.colors): EmbedTemplateStyleDecl[] => {if (typeof borderWidthOrColor === "number" ||borderWidthOrColor === undefined) {- const key = `${borderWidthOrColor ?? "DEFAULT"}` as const;-- const valueString = theme("borderWidth")?.[key] ?? "1px";-- const value = parseCssValue("borderTopWidth", valueString);+ const styleValue = theme.borderWidth[borderWidthOrColor ?? "DEFAULT"];return [...preflight(),- { property: "borderTopWidth", value },- { property: "borderRightWidth", value },- { property: "borderBottomWidth", value },- { property: "borderLeftWidth", value },+ { property: "borderTopWidth", value: styleValue },+ { property: "borderRightWidth", value: styleValue },+ { property: "borderBottomWidth", value: styleValue },+ { property: "borderLeftWidth", value: styleValue },];}- const value = parseCssValue("color", theme("colors")[borderWidthOrColor]);+ const styleValue = theme.colors[borderWidthOrColor];return [- {- property: "borderTopColor",- value,- },- {- property: "borderRightColor",- value,- },- {- property: "borderBottomColor",- value,- },- {- property: "borderLeftColor",- value,- },+ { property: "borderTopColor", value: styleValue },+ { property: "borderRightColor", value: styleValue },+ { property: "borderBottomColor", value: styleValue },+ { property: "borderLeftColor", value: styleValue },];};export const borderB = (borderWidthOrColor?:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["borderWidth"]>- | keyof EvaluatedDefaultTheme["colors"]+ | StringEnumToNumeric<keyof typeof theme.borderWidth>+ | keyof typeof theme.colors): EmbedTemplateStyleDecl[] => {let widthValue: StyleValue = { type: "unit", value: 1, unit: "number" };- let colorValue: StyleValue = parseCssValue(- "color",- theme("colors")["border"]- );+ let colorValue: StyleValue = theme.colors.border;if (typeof borderWidthOrColor === "number" ||borderWidthOrColor === undefined) {- const key = `${borderWidthOrColor ?? "DEFAULT"}` as const;- const valueString = theme("borderWidth")[key] ?? "1px";- widthValue = parseCssValue("borderTopWidth", valueString);+ widthValue = theme.borderWidth[borderWidthOrColor ?? "DEFAULT"];} else {- colorValue = parseCssValue("color", theme("colors")[borderWidthOrColor]);+ colorValue = theme.colors[borderWidthOrColor];}return [@@ -212,14 +173,10 @@ const paddingProperty =(property: "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft") =>(padding:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["padding"]>- | NonNumeric<keyof EvaluatedDefaultTheme["padding"]>+ | StringEnumToNumeric<keyof typeof theme.padding>+ | NonNumeric<keyof typeof theme.padding>): EmbedTemplateStyleDecl[] => {- const key = `${padding}` as const;- const valueString = theme("padding")?.[key] ?? "0";- const value = parseCssValue(property, valueString);-- return [{ property, value }];+ return [{ property, value: theme.padding[padding] }];};export const pt: ReturnType<typeof paddingProperty> = (padding) => {@@ -254,14 +211,10 @@ const marginProperty =(property: "marginTop" | "marginRight" | "marginBottom" | "marginLeft") =>(margin:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["margin"]>- | NonNumeric<keyof EvaluatedDefaultTheme["margin"]>+ | StringEnumToNumeric<keyof typeof theme.margin>+ | NonNumeric<keyof typeof theme.margin>): EmbedTemplateStyleDecl[] => {- const key = `${margin}` as const;- const valueString = theme("margin")?.[key] ?? "0";- const value = parseCssValue(property, valueString);-- return [{ property, value }];+ return [{ property, value: theme.margin[margin] }];};export const ml: ReturnType<typeof marginProperty> = (margin) => {@@ -294,120 +247,93 @@ export const m: ReturnType<typeof marginProperty> = (margin) => {export const w = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["width"]>- | NonNumeric<keyof EvaluatedDefaultTheme["width"]>+ | StringEnumToNumeric<keyof typeof theme.width>+ | NonNumeric<keyof typeof theme.width>): EmbedTemplateStyleDecl[] => {- const key = `${spacing}` as const;- const valueString = theme("width")?.[key] ?? "0";- const value = parseCssValue("width", valueString);-- return [{ property: "width", value }];+ return [{ property: "width", value: theme.width[spacing] }];};export const h = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["height"]>- | NonNumeric<keyof EvaluatedDefaultTheme["height"]>+ | StringEnumToNumeric<keyof typeof theme.height>+ | NonNumeric<keyof typeof theme.height>): EmbedTemplateStyleDecl[] => {- const key = `${spacing}` as const;- const valueString = theme("height")?.[key] ?? "0";- const value = parseCssValue("height", valueString);-- return [{ property: "height", value }];+ return [{ property: "height", value: theme.height[spacing] }];};export const minH = (- spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["height"]>+ spacing: StringEnumToNumeric<keyof typeof theme.minHeight>): EmbedTemplateStyleDecl[] => {- const key = `${spacing}` as const;- const valueString = theme("height")?.[key] ?? "0";- const value = parseCssValue("minHeight", valueString);-- return [{ property: "minHeight", value }];+ return [{ property: "minHeight", value: theme.minHeight[spacing] }];};export const opacity = (- opacity: StringEnumToNumeric<keyof EvaluatedDefaultTheme["opacity"]>+ opacity: StringEnumToNumeric<keyof typeof theme.opacity>): EmbedTemplateStyleDecl[] => {- const key = `${opacity}` as const;- const valueString = theme("opacity")?.[key] ?? "0";- const value = parseCssValue("opacity", valueString);-return [{property: "opacity",- value,+ value: theme.opacity[opacity],},];};export const cursor = (- cursor: keyof EvaluatedDefaultTheme["cursor"]+ cursor: keyof typeof theme.cursor): EmbedTemplateStyleDecl[] => {- const valueString = theme("cursor")?.[cursor] ?? "auto";- const value = parseCssValue("cursor", valueString);-return [{property: "cursor",- value,+ value: theme.cursor[cursor],},];};export const maxW = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["maxWidth"]>- | NonNumeric<keyof EvaluatedDefaultTheme["maxWidth"]>+ | StringEnumToNumeric<keyof typeof theme.maxWidth>+ | NonNumeric<keyof typeof theme.maxWidth>): EmbedTemplateStyleDecl[] => {- const key = `${spacing}` as const;- const valueString = theme("maxWidth")?.[key] ?? "0";- const value = parseCssValue("width", valueString);-- return [{ property: "maxWidth", value }];+ return [{ property: "maxWidth", value: theme.maxWidth[spacing] }];};const positionStyle = (property: "left" | "right" | "top" | "bottom",spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl => {- const key = `${spacing}` as const;- const valueString = theme("inset")?.[key] ?? "0";- const value = parseCssValue(property, valueString);-- return { property, value };+ return { property, value: theme.inset[spacing] };};export const top = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl[] => [positionStyle("top", spacing)];export const right = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl[] => [positionStyle("right", spacing)];export const bottom = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl[] => [positionStyle("bottom", spacing)];export const left = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl[] => [positionStyle("left", spacing)];export const inset = (spacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]>- | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>+ | StringEnumToNumeric<keyof typeof theme.inset>+ | NonNumeric<keyof typeof theme.inset>): EmbedTemplateStyleDecl[] => [positionStyle("left", spacing),positionStyle("right", spacing),@@ -434,27 +360,18 @@ export const aspect = (};export const backdropBlur = (- blur: keyof EvaluatedDefaultTheme["blur"]+ blur: keyof typeof theme.blur): EmbedTemplateStyleDecl[] => {- const valueString = theme("blur")[blur];- const value = {- type: "unparsed" as const,- value: `blur(${valueString})`,- };-- return [{ property: "backdropFilter", value }];+ return [{ property: "backdropFilter", value: theme.blur[blur] }];};export const list = (- listStyle: keyof EvaluatedDefaultTheme["listStyleType"]+ listStyle: keyof typeof theme.listStyleType): EmbedTemplateStyleDecl[] => {- const valueString = theme("listStyleType")[listStyle];- const value = parseCssValue("listStyleType", valueString);-- return [{ property: "listStyleType", value }];+ return [{ property: "listStyleType", value: theme.listStyleType[listStyle] }];};-export const select = (selectValue: "none"): EmbedTemplateStyleDecl[] => {+export const select = (_selectValue: "none"): EmbedTemplateStyleDecl[] => {return [{property: "userSelect",@@ -467,10 +384,10 @@ export const select = (selectValue: "none"): EmbedTemplateStyleDecl[] => {};export const bg = (- color: keyof EvaluatedDefaultTheme["colors"],+ color: keyof typeof theme.colors,alpha?: number): EmbedTemplateStyleDecl[] => {- const value = parseCssValue("backgroundColor", theme("colors")[color]);+ const value = theme.colors[color];if (alpha !== undefined && value.type === "rgb") {value.alpha = alpha / 100;@@ -672,11 +589,9 @@ export const shrink = (value: number): EmbedTemplateStyleDecl[] => {};export const gap = (- gapValue: StringEnumToNumeric<keyof EvaluatedDefaultTheme["spacing"]>+ gapValue: StringEnumToNumeric<keyof typeof theme.spacing>): EmbedTemplateStyleDecl[] => {- const key = `${gapValue}` as const;- const valueString = theme("spacing")?.[key] ?? "0";- const value = parseCssValue("rowGap", valueString);+ const value = theme.spacing[gapValue];return [{ property: "rowGap", value },@@ -685,11 +600,8 @@ export const gap = (};export const lineClamp = (- lineClampValue: StringEnumToNumeric<keyof EvaluatedDefaultTheme["lineClamp"]>+ lineClampValue: StringEnumToNumeric<keyof typeof theme.lineClamp>): EmbedTemplateStyleDecl[] => {- const key = `${lineClampValue}` as const;- const valueString = theme("lineClamp")?.[key];-return [{property: "overflow",@@ -715,39 +627,30 @@ export const lineClamp = (},{property: "-webkit-line-clamp" as "display",- value: {- type: "keyword",- value: valueString,- },+ value: theme.lineClamp[lineClampValue],},];};export const leading = (lineHeight:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["lineHeight"]>- | NonNumeric<keyof EvaluatedDefaultTheme["lineHeight"]>+ | StringEnumToNumeric<keyof typeof theme.lineHeight>+ | NonNumeric<keyof typeof theme.lineHeight>): EmbedTemplateStyleDecl[] => {- const key = `${lineHeight}` as const;- const valueString = theme("lineHeight")[key];- const value = parseCssValue("lineHeight", valueString);-- return [{ property: "lineHeight", value }];+ return [{ property: "lineHeight", value: theme.lineHeight[lineHeight] }];};export const tracking = (letterSpacing:- | StringEnumToNumeric<keyof EvaluatedDefaultTheme["letterSpacing"]>- | NonNumeric<keyof EvaluatedDefaultTheme["letterSpacing"]>+ | StringEnumToNumeric<keyof typeof theme.letterSpacing>+ | NonNumeric<keyof typeof theme.letterSpacing>): EmbedTemplateStyleDecl[] => {- const key = `${letterSpacing}` as const;- const valueString = theme("letterSpacing")[key];- const value = parseCssValue("letterSpacing", valueString);-- return [{ property: "letterSpacing", value }];+ return [+ { property: "letterSpacing", value: theme.letterSpacing[letterSpacing] },+ ];};-export const outline = (value: "none"): EmbedTemplateStyleDecl[] => {+export const outline = (_value: "none"): EmbedTemplateStyleDecl[] => {return [{property: "outlineWidth",@@ -768,47 +671,25 @@ export const outline = (value: "none"): EmbedTemplateStyleDecl[] => {];};-const textSizes = [- "sm",- "base",- "lg",- "xs",- "xl",- "2xl",- "3xl",- "4xl",- "5xl",- "6xl",- "7xl",- "8xl",- "9xl",-] as const satisfies readonly (keyof EvaluatedDefaultTheme["fontSize"])[];-type TextSize = keyof EvaluatedDefaultTheme["fontSize"];+const textSizes = Object.keys(theme.fontSize);+type TextSize = keyof typeof theme.fontSize;const isTextSize = (value: string): value is TextSize =>- textSizes.includes(value as TextSize);+ textSizes.includes(value);export const text = (- sizeOrColor: TextSize | keyof EvaluatedDefaultTheme["colors"]+ sizeOrColor: TextSize | keyof typeof theme.colors): EmbedTemplateStyleDecl[] => {if (isTextSize(sizeOrColor)) {- const valueArr = theme("fontSize")[sizeOrColor];- const [fontSizeString, { lineHeight: lineHeightString }] = valueArr;-- const fontSize = parseCssValue("fontSize", fontSizeString);- const lineHeight = parseCssValue("lineHeight", lineHeightString);return [- { property: "fontSize", value: fontSize },- { property: "lineHeight", value: lineHeight },+ { property: "fontSize", value: theme.fontSize[sizeOrColor] },+ { property: "lineHeight", value: theme.fontSizeLineHeight[sizeOrColor] },];}-- const value = parseCssValue("color", theme("colors")[sizeOrColor]);-return [{property: "color",- value,+ value: theme.colors[sizeOrColor],},];};@@ -832,18 +713,12 @@ export const underline = (): EmbedTemplateStyleDecl[] => {};export const underlineOffset = (- offset: StringEnumToNumeric<- keyof EvaluatedDefaultTheme["textUnderlineOffset"]- >+ offset: StringEnumToNumeric<keyof typeof theme.textUnderlineOffset>): EmbedTemplateStyleDecl[] => {- const key = `${offset}` as const;- const valueString = theme("textUnderlineOffset")[key];- const value = parseCssValue("textUnderlineOffset", valueString);-return [{property: "textUnderlineOffset",- value,+ value: theme.textUnderlineOffset[offset],},];};@@ -892,47 +767,72 @@ export const whitespace = (};export const shadow = (- shadowSize: keyof EvaluatedDefaultTheme["boxShadow"]+ shadowSize: keyof typeof theme.boxShadow): EmbedTemplateStyleDecl[] => {- const valueString = theme("boxShadow")[shadowSize];- const value = parseBoxShadow(valueString);-return [{property: "boxShadow",- value,+ value: theme.boxShadow[shadowSize],},];};export const ring = (- ringColor: keyof EvaluatedDefaultTheme["colors"],- ringWidth: StringEnumToNumeric<keyof EvaluatedDefaultTheme["ringWidth"]>,- ringOffsetColor: keyof EvaluatedDefaultTheme["colors"] = "background",- ringOffsetWidth: StringEnumToNumeric<- keyof EvaluatedDefaultTheme["ringOffsetWidth"]- > = 0,- inset: "inset" | "" = ""-): EmbedTemplateStyleDecl[] => {- const ringWidthUnits = theme("ringWidth")[ringWidth];- const ringOffsetWidthUnits = theme("ringOffsetWidth")[ringOffsetWidth];- const ringColorRgb = theme("colors")[ringColor];- const ringOffsetColorRgb = theme("colors")[ringOffsetColor];- const ringOffsetShadow = `${inset} 0 0 0 ${ringOffsetWidthUnits} ${ringOffsetColorRgb}`;-- const ringWidthParsed = parseFloat(ringWidthUnits);- const ringOffsetWidthParsed = parseFloat(ringOffsetWidthUnits);-- const ringShadow = `${inset} 0 0 0 ${- ringWidthParsed + ringOffsetWidthParsed- }px ${ringColorRgb}`;+ ringColor: keyof typeof theme.colors,+ ringWidth: StringEnumToNumeric<keyof typeof theme.ringWidth>,+ ringOffsetColor: keyof typeof theme.colors = "background",+ ringOffsetWidth: StringEnumToNumeric<keyof typeof theme.ringOffsetWidth> = 0+): EmbedTemplateStyleDecl[] => {+ const ringWidthStyleValue = theme.ringWidth[ringWidth];+ const ringOffsetWidthStyleValue = theme.ringOffsetWidth[ringOffsetWidth];+ const ringColorStyleValue = theme.colors[ringColor];+ const ringOffsetColorStyleValue = theme.colors[ringOffsetColor];++ // 0 0 0 ringOffsetWidth ringOffsetColor+ const ringOffsetShadow: TupleValue = {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 0, unit: "number" },+ ringOffsetWidthStyleValue as TupleValueItem,+ ringOffsetColorStyleValue as TupleValueItem,+ ],+ };- const value = parseBoxShadow(`${ringOffsetShadow}, ${ringShadow}`);+ const ringWidthValue =+ ringWidthStyleValue.type === "unit" ? ringWidthStyleValue.value : 0;+ const ringOffsetWidthValue =+ ringOffsetWidthStyleValue.type === "unit"+ ? ringOffsetWidthStyleValue.value+ : 0;++ // 0 0 0 ringWidth + ringOffsetWidth ringColor+ const ringShadow: TupleValue = {+ type: "tuple",+ value: [+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 0, unit: "number" },+ { type: "unit", value: 0, unit: "number" },+ {+ type: "unit",+ value: ringWidthValue + ringOffsetWidthValue,+ unit:+ ringWidthStyleValue.type === "unit"+ ? ringWidthStyleValue.unit+ : "number",+ },+ ringColorStyleValue as TupleValueItem,+ ],+ };return [{property: "boxShadow",- value,+ value: {+ type: "layers",+ value: [ringOffsetShadow, ringShadow],+ },},];};diff --git a/packages/sdk-components-react-radix/src/theme/tailwind-theme.ts b/packages/sdk-components-react-radix/src/theme/tailwind-theme.tsdeleted file mode 100644index 12bb3967f0..0000000000--- a/packages/sdk-components-react-radix/src/theme/tailwind-theme.ts+++ /dev/null@@ -1,24 +0,0 @@-// eslint-disable-next-line import/no-internal-modules-import defaultTheme from "tailwindcss/defaultTheme"; // Imported theme https://github.com/tailwindlabs/tailwindcss/blob/e0c52a9332a64ef7eb0ba23d2a0fd5a16fe57ab7/stubs/config.full.js-import type { EvaluatedDefaultTheme } from "./radix-common-types";-import { colors } from "./tailwind-colors";--// Override the default theme with our own colors and other values if needed-const localTheme = { ...defaultTheme };--export const theme = <T extends keyof EvaluatedDefaultTheme>(- name: T-): EvaluatedDefaultTheme[T] => {- const value = localTheme?.[name] as unknown;-- if (typeof value === "function") {- return value({ theme, colors, breakpoints: () => ({}) });- }-- return value as never;-};--// Override with our own colors, and other values if needed-localTheme.colors = colors;-localTheme.borderRadius = { ...theme("borderRadius") };-localTheme.borderRadius.DEFAULT = "0.5rem";diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e79a114918..2e83aa3fe2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1465,9 +1465,6 @@ importers:'@webstudio-is/react-sdk':specifier: workspace:^version: link:../react-sdk- tailwindcss:- specifier: ^3.3.3- version: 3.3.3devDependencies:'@storybook/react':specifier: ^7.2.1@@ -1499,6 +1496,9 @@ importers:react-dom:specifier: ^18.2.0version: 18.2.0([email protected])+ tailwindcss:+ specifier: ^3.3.3+ version: 3.3.3typescript:specifier: ^5.2.2version: 5.2.2@@ -1680,7 +1680,7 @@ packages:/@alloc/[email protected]:resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}engines: {node: '>=10'}- dev: false+ dev: true/@ampproject/[email protected]:resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==}@@ -8045,7 +8045,7 @@ packages:resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}- dev: false+ dev: trueresolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}@@ -8071,6 +8071,7 @@ packages:resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}+ dev: trueresolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}@@ -8607,7 +8608,7 @@ packages:resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}engines: {node: '>= 6'}- dev: false+ dev: trueresolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}@@ -8860,7 +8861,7 @@ packages:resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}engines: {node: '>= 6'}- dev: false+ dev: trueresolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}@@ -9030,6 +9031,7 @@ packages:resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}engines: {node: '>=4'}hasBin: true+ dev: trueresolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==}@@ -9264,7 +9266,7 @@ packages:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}- dev: false+ dev: trueresolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}@@ -9283,7 +9285,7 @@ packages:resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}- dev: false+ dev: trueresolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}@@ -10584,7 +10586,6 @@ packages:engines: {node: '>=10.13.0'}dependencies:is-glob: 4.0.3- dev: falseresolution: {integrity: sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==}@@ -10618,7 +10619,7 @@ packages:minimatch: 3.1.2once: 1.4.0path-is-absolute: 1.0.1- dev: false+ dev: trueresolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}@@ -11877,7 +11878,7 @@ packages:resolution: {integrity: sha512-oVhqoRDaBXf7sjkll95LHVS6Myyyb1zaunVwk4Z0+WPSW4gjS0pl01zYKHScTuyEhQsFxV5L4DR5r+YqSyqyyg==}hasBin: true- dev: false+ dev: trueresolution: {integrity: sha512-njj0VL2TsIxCtgzhO+9RRobBvws4oYyCM8TpvoUQwl/MbIM3NFJRR9+e6x0sS5xXaP1t6OCBkaBME98OV9zU5A==}@@ -12057,6 +12058,7 @@ packages:resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}engines: {node: '>=10'}+ dev: trueresolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}@@ -13286,7 +13288,7 @@ packages:any-promise: 1.3.0object-assign: 4.1.1thenify-all: 1.6.0- dev: false+ dev: trueresolution: {integrity: sha512-vSB9X12bbNu4ALBu7nigJgRViZ6ja3OU7CeuiV1zMIbXOdmkLahgtPmh3GBOlDxbKY0CitqlPdOReGlBLSp+yg==}@@ -13489,7 +13491,7 @@ packages:resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}engines: {node: '>= 6'}- dev: false+ dev: trueresolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==}@@ -13858,7 +13860,7 @@ packages:resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}engines: {node: '>=0.10.0'}- dev: false+ dev: trueresolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}@@ -13930,7 +13932,7 @@ packages:postcss-value-parser: 4.2.0read-cache: 1.0.0resolve: 1.22.3- dev: false+ dev: trueresolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}@@ -13940,7 +13942,7 @@ packages:dependencies:camelcase-css: 2.0.1postcss: 8.4.27- dev: false+ dev: trueresolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}@@ -13957,6 +13959,7 @@ packages:lilconfig: 2.1.0postcss: 8.4.27yaml: 2.2.1+ dev: trueresolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}@@ -14023,7 +14026,7 @@ packages:dependencies:postcss: 8.4.27postcss-selector-parser: 6.0.11- dev: false+ dev: trueresolution: {integrity: sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==}@@ -14031,9 +14034,11 @@ packages:dependencies:cssesc: 3.0.0util-deprecate: 1.0.2+ dev: trueresolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}+ dev: trueresolution: {integrity: sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==}@@ -14552,7 +14557,7 @@ packages:resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}dependencies:pify: 2.3.0- dev: false+ dev: trueresolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}@@ -15559,7 +15564,7 @@ packages:mz: 2.7.0pirates: 4.0.5ts-interface-checker: 0.1.13- dev: false+ dev: trueresolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}@@ -15628,7 +15633,7 @@ packages:sucrase: 3.34.0transitivePeerDependencies:- ts-node- dev: false+ dev: trueresolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==}@@ -15701,13 +15706,13 @@ packages:engines: {node: '>=0.8'}dependencies:thenify: 3.3.1- dev: false+ dev: trueresolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}dependencies:any-promise: 1.3.0- dev: false+ dev: trueresolution: {integrity: sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==}@@ -15820,7 +15825,7 @@ packages:resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}- dev: false+ dev: trueresolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==}@@ -16724,6 +16729,7 @@ packages:resolution: {integrity: sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==}engines: {node: '>= 14'}+ dev: trueresolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}