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.

feat: CSS engine has now a Style Sheet rendering with atomic classes which will lead to a 10x smaller bundle size (#2713)

Oleg Isonenc6bdef5084d5
diff --git a/apps/builder/app/builder/features/ai/ai-fetch-result.ts b/apps/builder/app/builder/features/ai/ai-fetch-result.ts
index 5cb36b4e4a..526ca3b0a3 100644
--- a/apps/builder/app/builder/features/ai/ai-fetch-result.ts
+++ b/apps/builder/app/builder/features/ai/ai-fetch-result.ts
@@ -5,7 +5,7 @@ import {
handleAiRequest,
commandDetect,
} from "@webstudio-is/ai";
-import { createCssEngine } from "@webstudio-is/css-engine";
+import { createRegularStyleSheet } from "@webstudio-is/css-engine";
import {
generateJsxElement,
generateJsxChildren,
@@ -304,17 +304,17 @@ const $jsx = computed(
)
);
- const engine = createCssEngine({ name: "ssr" });
+ const sheet = createRegularStyleSheet({ name: "ssr" });
const styleRules = getStyleRules(styles, treeStyleSourceSelections);
for (const { breakpointId, instanceId, state, style } of styleRules) {
- engine.addStyleRule(`[${idAttribute}="${instanceId}"]${state ?? ""}`, {
- breakpoint: breakpointId,
- style,
- });
+ sheet.addStyleRule(
+ { breakpoint: breakpointId, style },
+ `[${idAttribute}="${instanceId}"]${state ?? ""}`
+ );
}
- const css = engine.cssText.replace(/\n/gm, " ");
+ const css = sheet.cssText.replace(/\n/gm, " ");
return [
css.length > 0 ? `<style>{\`${css}\`}</style>` : "",
jsx
diff --git a/apps/builder/app/builder/features/sidebar-left/navigator/css-preview.tsx b/apps/builder/app/builder/features/sidebar-left/navigator/css-preview.tsx
index 85b7bd3cd9..8eb319fe90 100644
--- a/apps/builder/app/builder/features/sidebar-left/navigator/css-preview.tsx
+++ b/apps/builder/app/builder/features/sidebar-left/navigator/css-preview.tsx
@@ -9,7 +9,7 @@ import {
useStyleInfo,
type StyleValueInfo,
} from "../../style-panel/shared/style-info";
-import { createCssEngine } from "@webstudio-is/css-engine";
+import { createRegularStyleSheet } from "@webstudio-is/css-engine";
import { CollapsibleSection } from "~/builder/shared/collapsible-section";
import { useMemo } from "react";
import * as Prism from "prismjs";
@@ -26,7 +26,7 @@ const preStyle = css(textVariants.mono, {
// - Compiles a CSS string from the style info
// - Groups by category and separates categories with comments
const getCssText = (instanceStyle: StyleInfo) => {
- const cssEngine = createCssEngine();
+ const sheet = createRegularStyleSheet();
type StyleValueInfoMap = Map<
StyleProperty,
StyleValueInfo[keyof StyleValueInfo]
@@ -72,9 +72,10 @@ const getCssText = (instanceStyle: StyleInfo) => {
if (styles.size === 0) {
return;
}
- const rule = cssEngine.addStyleRule(comment, {
- style: Object.fromEntries(styles) as Style,
- });
+ const rule = sheet.addStyleRule(
+ { style: Object.fromEntries(styles) as Style },
+ comment
+ );
result.push(`/* ${comment} */`);
result.push(rule.styleMap.toString());
};
diff --git a/apps/builder/app/canvas/features/text-editor/text-editor.tsx b/apps/builder/app/canvas/features/text-editor/text-editor.tsx
index 592c309c06..c05c319680 100644
--- a/apps/builder/app/canvas/features/text-editor/text-editor.tsx
+++ b/apps/builder/app/canvas/features/text-editor/text-editor.tsx
@@ -18,7 +18,7 @@ import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
import { OnChangePlugin } from "@lexical/react/LexicalOnChangePlugin";
import { LinkPlugin } from "@lexical/react/LexicalLinkPlugin";
import { nanoid } from "nanoid";
-import { createCssEngine } from "@webstudio-is/css-engine";
+import { createRegularStyleSheet } from "@webstudio-is/css-engine";
import type { Instance, Instances } from "@webstudio-is/sdk";
import { idAttribute } from "@webstudio-is/react-sdk";
import type { InstanceSelector } from "~/shared/tree-utils";
@@ -82,10 +82,10 @@ const CaretColorPlugin = () => {
const color = colord(elementColor).toRgb();
if (color.a < 0.1) {
// Apply caret color with animated color
- const engine = createCssEngine({ name: "text-editor-caret" });
+ const sheet = createRegularStyleSheet({ name: "text-editor-caret" });
// Animation on cursor needed to make it visible on any background
- engine.addPlaintextRule(`
+ sheet.addPlaintextRule(`
@keyframes ${caretClassName}-keyframes {
from {caret-color: #666;}
@@ -101,11 +101,11 @@ const CaretColorPlugin = () => {
`);
rootElement.classList.add(caretClassName);
- engine.render();
+ sheet.render();
return () => {
rootElement.classList.remove(caretClassName);
- engine.unmount();
+ sheet.unmount();
};
}
}, [caretClassName, editor]);
@@ -198,19 +198,19 @@ export const TextEditor = ({
const [italicClassName] = useState(() => `a${nanoid()}`);
useLayoutEffect(() => {
- const engine = createCssEngine({ name: "text-editor" });
+ const sheet = createRegularStyleSheet({ name: "text-editor" });
// reset paragraph styles and make it work inside <a>
- engine.addPlaintextRule(`
+ sheet.addPlaintextRule(`
.${paragraphClassName} { display: inline-block; margin: 0; }
`);
/// set italic style for bold italic combination on the same element
- engine.addPlaintextRule(`
+ sheet.addPlaintextRule(`
.${italicClassName} { font-style: italic; }
`);
- engine.render();
+ sheet.render();
return () => {
- engine.unmount();
+ sheet.unmount();
};
}, [paragraphClassName, italicClassName]);
diff --git a/apps/builder/app/canvas/shared/styles.ts b/apps/builder/app/canvas/shared/styles.ts
index 9968ac427e..3a6ceac0e1 100644
--- a/apps/builder/app/canvas/shared/styles.ts
+++ b/apps/builder/app/canvas/shared/styles.ts
@@ -28,18 +28,18 @@ import {
import {
type StyleRule,
type PlaintextRule,
- createCssEngine,
+ createRegularStyleSheet,
toValue,
compareMedia,
} from "@webstudio-is/css-engine";
import { $ephemeralStyles } from "../stores";
-const userCssEngine = createCssEngine({ name: "user-styles" });
-const helpersCssEngine = createCssEngine({ name: "helpers" });
-const fontsAndDefaultsCssEngine = createCssEngine({
+const userSheet = createRegularStyleSheet({ name: "user-styles" });
+const helpersSheet = createRegularStyleSheet({ name: "helpers" });
+const fontsAndDefaultsSheet = createRegularStyleSheet({
name: "fonts-and-defaults",
});
-const presetStylesEngine = createCssEngine({ name: "preset-styles" });
+const presetSheet = createRegularStyleSheet({ name: "preset-styles" });
// Helper styles on for canvas in design mode
// - Only instances that would collapse without helper should receive helper
@@ -95,19 +95,19 @@ const subscribePreviewMode = () => {
let isRendered = false;
const unsubscribe = $isPreviewMode.subscribe((isPreviewMode) => {
- helpersCssEngine.setAttribute("media", isPreviewMode ? "not all" : "all");
+ helpersSheet.setAttribute("media", isPreviewMode ? "not all" : "all");
if (isRendered === false) {
for (const style of helperStyles) {
- helpersCssEngine.addPlaintextRule(style);
+ helpersSheet.addPlaintextRule(style);
}
- helpersCssEngine.render();
+ helpersSheet.render();
isRendered = true;
}
});
return () => {
- helpersCssEngine.clear();
- helpersCssEngine.render();
+ helpersSheet.clear();
+ helpersSheet.render();
unsubscribe();
isRendered = false;
};
@@ -157,7 +157,7 @@ const subscribeEphemeralStyle = (params: Params) => {
}
// rerender style rules if new vars added
- userCssEngine.render();
+ userSheet.render();
});
};
@@ -176,22 +176,22 @@ export const GlobalStyles = ({ params }: { params: Params }) => {
compareMedia
);
for (const breakpoint of sortedBreakpoints) {
- userCssEngine.addMediaRule(breakpoint.id, breakpoint);
+ userSheet.addMediaRule(breakpoint.id, breakpoint);
}
- userCssEngine.render();
+ userSheet.render();
}, [breakpoints]);
useIsomorphicLayoutEffect(() => {
- fontsAndDefaultsCssEngine.clear();
- addGlobalRules(fontsAndDefaultsCssEngine, {
+ fontsAndDefaultsSheet.clear();
+ addGlobalRules(fontsAndDefaultsSheet, {
assets,
assetBaseUrl: params.assetBaseUrl,
});
- fontsAndDefaultsCssEngine.render();
+ fontsAndDefaultsSheet.render();
}, [assets]);
useIsomorphicLayoutEffect(() => {
- presetStylesEngine.clear();
+ presetSheet.clear();
for (const [component, meta] of metas) {
const presetStyle = meta.presetStyle;
if (presetStyle === undefined) {
@@ -199,10 +199,10 @@ export const GlobalStyles = ({ params }: { params: Params }) => {
}
const rules = getPresetStyleRules(component, presetStyle);
for (const [selector, style] of rules) {
- presetStylesEngine.addStyleRule(selector, { style });
+ presetSheet.addStyleRule({ style }, selector);
}
}
- presetStylesEngine.render();
+ presetSheet.render();
}, [metas]);
return null;
@@ -247,12 +247,12 @@ const getOrCreateRule = ({
const key = `${instanceId}:${breakpointId}:${state}`;
let rule = wrappedRulesMap.get(key);
if (rule === undefined) {
- rule = userCssEngine.addStyleRule(
- `[${idAttribute}="${instanceId}"]${state}`,
+ rule = userSheet.addStyleRule(
{
breakpoint: breakpointId,
style: {},
- }
+ },
+ `[${idAttribute}="${instanceId}"]${state}`
);
wrappedRulesMap.set(key, rule);
}
@@ -354,7 +354,7 @@ export const useCssRules = ({
}
}
- userCssEngine.render();
+ userSheet.render();
}, [instanceId, selectedState, instanceStyles, breakpoints]);
};
diff --git a/packages/cli/src/prebuild.ts b/packages/cli/src/prebuild.ts
index 6271000b96..943b524f16 100644
--- a/packages/cli/src/prebuild.ts
+++ b/packages/cli/src/prebuild.ts
@@ -16,7 +16,7 @@ import pLimit from "p-limit";
import ora from "ora";
import merge from "deepmerge";
import {
- generateCssText,
+ generateCss,
generateUtilsExport,
generatePageComponent,
getIndexesWithinAncestors,
@@ -396,6 +396,25 @@ export const prebuild = async (options: {
}
}
+ spinner.text = "Generating css file";
+ const { cssText, classesMap } = generateCss(
+ {
+ assets: siteData.assets,
+ breakpoints: siteData.build?.breakpoints,
+ styles: siteData.build?.styles,
+ styleSourceSelections: siteData.build?.styleSourceSelections,
+ // pass only used metas to not generate unused preset styles
+ componentMetas: projectMetas,
+ },
+ {
+ assetBaseUrl,
+ // @todo switch to atomic depending on site settings
+ atomic: false,
+ }
+ );
+
+ await ensureFileInPath(join(generatedDir, "index.css"), cssText);
+
spinner.text = "Generating routes and pages";
const routeFileTemplate = await readFile(
@@ -488,6 +507,7 @@ export const prebuild = async (options: {
instances,
props,
dataSources,
+ classesMap,
indexesWithinAncestors: getIndexesWithinAncestors(
projectMetas,
instances,
@@ -554,22 +574,6 @@ ${utilsExport}
);
}
- spinner.text = "Generating css file";
- const cssText = generateCssText(
- {
- assets: siteData.assets,
- breakpoints: siteData.build?.breakpoints,
- styles: siteData.build?.styles,
- styleSourceSelections: siteData.build?.styleSourceSelections,
- // pass only used metas to not generate unused preset styles
- componentMetas: projectMetas,
- },
- {
- assetBaseUrl,
- }
- );
- await ensureFileInPath(join(generatedDir, "index.css"), cssText);
-
await writeFile(
join(generatedDir, "[sitemap.xml].ts"),
`
diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json
index 593fd20962..f0f558db40 100644
--- a/packages/css-engine/package.json
+++ b/packages/css-engine/package.json
@@ -16,6 +16,7 @@
"storybook:build": "storybook build"
},
"dependencies": {
+ "@emotion/hash": "^0.9.1",
"@webstudio-is/error-utils": "workspace:*",
"@webstudio-is/fonts": "workspace:*",
"hyphenate-style-name": "^1.0.4"
diff --git a/packages/css-engine/src/core/create-css-engine.ts b/packages/css-engine/src/core/create-css-engine.ts
deleted file mode 100644
index 9ae2db6187..0000000000
--- a/packages/css-engine/src/core/create-css-engine.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { CssEngine, type CssEngineOptions } from "./css-engine";
-
-export const createCssEngine = (options: CssEngineOptions = {}) => {
- return new CssEngine(options);
-};
diff --git a/packages/css-engine/src/core/create-style-sheet.ts b/packages/css-engine/src/core/create-style-sheet.ts
new file mode 100644
index 0000000000..2df93aba5f
--- /dev/null
+++ b/packages/css-engine/src/core/create-style-sheet.ts
@@ -0,0 +1,13 @@
+import { StyleSheetRegular } from "./style-sheet-regular";
+import { StyleSheetAtomic } from "./style-sheet-atomic";
+import { StyleElement } from "./style-element";
+
+export const createRegularStyleSheet = (options?: { name?: string }) => {
+ const element = new StyleElement(options?.name);
+ return new StyleSheetRegular(element);
+};
+
+export const createAtomicStyleSheet = (options?: { name?: string }) => {
+ const element = new StyleElement(options?.name);
+ return new StyleSheetAtomic(element);
+};
diff --git a/packages/css-engine/src/core/css-engine.stories.tsx b/packages/css-engine/src/core/css-engine.stories.tsx
index 996c71f7fb..e133a0b259 100644
--- a/packages/css-engine/src/core/css-engine.stories.tsx
+++ b/packages/css-engine/src/core/css-engine.stories.tsx
@@ -1,4 +1,4 @@
-import { CssEngine } from "./css-engine";
+import { createRegularStyleSheet } from "./create-style-sheet";
export default {
component: "CssEngine",
@@ -12,33 +12,31 @@ const mediaRuleOptions0 = { minWidth: 0 } as const;
const mediaId = "0";
export const Basic = () => {
- const engine = new CssEngine({ name: "test" });
- engine.addMediaRule(mediaId, mediaRuleOptions0);
- const rule = engine.addStyleRule(".test", {
- style: style0,
- breakpoint: "0",
- });
- engine.render();
+ const sheet = createRegularStyleSheet();
+ sheet.addMediaRule(mediaId, mediaRuleOptions0);
+ const rule = sheet.addStyleRule({ style: style0, breakpoint: "0" }, ".test");
+ sheet.render();
return (
<>
<div className="test">Should be red</div>
<button
onClick={() => {
rule.styleMap.set("color", { type: "keyword", value: "green" });
- engine.render();
+ sheet.render();
}}
>
Make it green
</button>
<button
onClick={() => {
- engine.addStyleRule(".test", {
- style: {
- backgroundColor: { type: "keyword", value: "yellow" },
+ sheet.addStyleRule(
+ {
+ style: { backgroundColor: { type: "keyword", value: "yellow" } },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- engine.render();
+ ".test"
+ );
+ sheet.render();
}}
>
Add rule with yellow background
diff --git a/packages/css-engine/src/core/css-engine.ts b/packages/css-engine/src/core/css-engine.ts
deleted file mode 100644
index 80547f7a49..0000000000
--- a/packages/css-engine/src/core/css-engine.ts
+++ /dev/null
@@ -1,128 +0,0 @@
-import type { Style } from "../schema";
-import {
- FontFaceRule,
- MediaRule,
- PlaintextRule,
- StyleRule,
- type FontFaceOptions,
- type MediaRuleOptions,
-} from "./rules";
-import { compareMedia } from "./compare-media";
-import { StyleElement } from "./style-element";
-import { StyleSheet } from "./style-sheet";
-import type { TransformValue } from "./to-value";
-
-const defaultMediaRuleId = "__default-media-rule__";
-
-type CssRule = {
- style: Style;
- breakpoint?: string;
-};
-
-export type CssEngineOptions = { name?: string };
-
-export class CssEngine {
- #element;
- #mediaRules: Map<string, MediaRule> = new Map();
- #plainRules: Map<string, PlaintextRule> = new Map();
- #fontFaceRules: Array<FontFaceRule> = [];
- #sheet: StyleSheet;
- #isDirty = false;
- #cssText = "";
- constructor({ name }: CssEngineOptions) {
- this.#element = new StyleElement(name);
- this.#sheet = new StyleSheet(this.#element);
- }
- addMediaRule(id: string, options?: MediaRuleOptions) {
- let mediaRule = this.#mediaRules.get(id);
- if (mediaRule === undefined) {
- mediaRule = new MediaRule(options);
- this.#mediaRules.set(id, mediaRule);
- this.#isDirty = true;
- return mediaRule;
- }
-
- if (options) {
- mediaRule.options = options;
- this.#isDirty = true;
- }
-
- return mediaRule;
- }
- addStyleRule(
- selectorText: string,
- rule: CssRule,
- transformValue?: TransformValue
- ) {
- const mediaRule = this.addMediaRule(rule.breakpoint || defaultMediaRuleId);
- this.#isDirty = true;
- const styleRule = new StyleRule(selectorText, rule.style, transformValue);
- styleRule.onChange = this.#onChangeRule;
- if (mediaRule === undefined) {
- // Should be impossible to reach.
- throw new Error("No media rule found");
- }
- mediaRule.insertRule(styleRule);
- return styleRule;
- }
- addPlaintextRule(cssText: string) {
- const rule = this.#plainRules.get(cssText);
- if (rule !== undefined) {
- return rule;
- }
- this.#isDirty = true;
- return this.#plainRules.set(cssText, new PlaintextRule(cssText));
- }
- addFontFaceRule(options: FontFaceOptions) {
- this.#isDirty = true;
- return this.#fontFaceRules.push(new FontFaceRule(options));
- }
- clear() {
- this.#mediaRules.clear();
- this.#plainRules.clear();
- this.#fontFaceRules = [];
- this.#isDirty = true;
- }
- render() {
- this.#element.mount();
- // This isn't going to do anything if the `cssText` hasn't changed.
- this.#sheet.replaceSync(this.cssText);
- }
- unmount() {
- this.#element.unmount();
- }
- setAttribute(name: string, value: string) {
- this.#element.setAttribute(name, value);
- }
- getAttribute(name: string) {
- return this.#element.getAttribute(name);
- }
- get cssText() {
- if (this.#isDirty === false) {
- return this.#cssText;
- }
- this.#isDirty = false;
- const css: Array<string> = [];
-
- css.push(...this.#fontFaceRules.map((rule) => rule.cssText));
- for (const plaintextRule of this.#plainRules.values()) {
- css.push(plaintextRule.cssText);
- }
-
- const sortedMediaRules = Array.from(this.#mediaRules.values()).sort(
- (ruleA, ruleB) => compareMedia(ruleA.options, ruleB.options)
- );
- for (const mediaRule of sortedMediaRules) {
- const { cssText } = mediaRule;
- if (cssText !== "") {
- css.push(cssText);
- }
- }
- this.#cssText = css.join("\n");
- return this.#cssText;
- }
-
- #onChangeRule = () => {
- this.#isDirty = true;
- };
-}
diff --git a/packages/css-engine/src/core/index.ts b/packages/css-engine/src/core/index.ts
index 0a95ff3cf1..2622ddfd7c 100644
--- a/packages/css-engine/src/core/index.ts
+++ b/packages/css-engine/src/core/index.ts
@@ -1,4 +1,3 @@
-export { CssEngine } from "./css-engine";
export type {
AnyRule,
StyleRule,
@@ -6,7 +5,9 @@ export type {
PlaintextRule,
FontFaceRule,
} from "./rules";
-export * from "./create-css-engine";
+export type { StyleSheetRegular } from "./style-sheet-regular";
+export type { StyleSheetAtomic } from "./style-sheet-atomic";
+export * from "./create-style-sheet";
export * from "./to-value";
export * from "./to-property";
export * from "./match-media";
diff --git a/packages/css-engine/src/core/rules.ts b/packages/css-engine/src/core/rules.ts
index 6a5302f350..cbf2508fe3 100644
--- a/packages/css-engine/src/core/rules.ts
+++ b/packages/css-engine/src/core/rules.ts
@@ -2,15 +2,24 @@ import type { Style, StyleProperty, StyleValue } from "../schema";
import { toValue, type TransformValue } from "./to-value";
import { toProperty } from "./to-property";
-class StylePropertyMap {
+export class StylePropertyMap {
#styleMap: Map<StyleProperty, StyleValue | undefined> = new Map();
- #isDirty = false;
+ #isDirty = true;
#string = "";
#indent = 0;
#transformValue?: TransformValue;
- onChange?: () => void;
- constructor(transformValue?: TransformValue) {
+ #onChange?: () => void;
+ constructor(
+ style: Style,
+ transformValue?: TransformValue,
+ onChange?: () => void
+ ) {
this.#transformValue = transformValue;
+ this.#onChange = onChange;
+ let property: StyleProperty;
+ for (property in style) {
+ this.#styleMap.set(property, style[property]);
+ }
}
setTransformer(transformValue: TransformValue) {
this.#transformValue = transformValue;
@@ -18,7 +27,10 @@ class StylePropertyMap {
set(property: StyleProperty, value?: StyleValue) {
this.#styleMap.set(property, value);
this.#isDirty = true;
- this.onChange?.();
+ this.#onChange?.();
+ }
+ get(property: StyleProperty) {
+ return this.#styleMap.get(property);
}
has(property: StyleProperty) {
return this.#styleMap.has(property);
@@ -32,12 +44,12 @@ class StylePropertyMap {
delete(property: StyleProperty) {
this.#styleMap.delete(property);
this.#isDirty = true;
- this.onChange?.();
+ this.#onChange?.();
}
clear() {
this.#styleMap.clear();
this.#isDirty = true;
- this.onChange?.();
+ this.#onChange?.();
}
toString({ indent = 0 } = {}) {
if (this.#isDirty === false && indent === this.#indent) {
@@ -66,23 +78,18 @@ class StylePropertyMap {
export class StyleRule {
styleMap;
selectorText;
- onChange?: () => void;
constructor(
selectorText: string,
- style: Style,
- transformValue?: TransformValue
+ style: StylePropertyMap | Style,
+ transformValue?: TransformValue,
+ onChange?: () => void
) {
- this.styleMap = new StylePropertyMap(transformValue);
this.selectorText = selectorText;
- let property: StyleProperty;
- for (property in style) {
- this.styleMap.set(property, style[property]);
- }
- this.styleMap.onChange = this.#onChange;
+ this.styleMap =
+ style instanceof StylePropertyMap
+ ? style
+ : new StylePropertyMap(style, transformValue, onChange);
}
- #onChange = () => {
- this.onChange?.();
- };
get cssText() {
return this.toString();
}
@@ -102,25 +109,29 @@ export type MediaRuleOptions = {
export class MediaRule {
options: MediaRuleOptions;
- rules: Array<StyleRule | PlaintextRule> = [];
+ rules: Map<string, StyleRule | PlaintextRule>;
#mediaType;
constructor(options: MediaRuleOptions = {}) {
this.options = options;
+ this.rules = new Map();
this.#mediaType = options.mediaType ?? "all";
}
insertRule(rule: StyleRule | PlaintextRule) {
- this.rules.push(rule);
+ this.rules.set(
+ "selectorText" in rule ? rule.selectorText : rule.cssText,
+ rule
+ );
return rule;
}
get cssText() {
return this.toString();
}
toString() {
- if (this.rules.length === 0) {
+ if (this.rules.size === 0) {
return "";
}
const rules = [];
- for (const rule of this.rules) {
+ for (const rule of this.rules.values()) {
rules.push(rule.toString({ indent: 2 }));
}
let conditionText = "";
@@ -139,9 +150,10 @@ export class MediaRule {
export class PlaintextRule {
cssText;
- styleMap = new StylePropertyMap();
+ styleMap: StylePropertyMap;
constructor(cssText: string) {
this.cssText = cssText;
+ this.styleMap = new StylePropertyMap({});
}
toString() {
return this.cssText;
diff --git a/packages/css-engine/src/core/style-sheet-atomic.test.ts b/packages/css-engine/src/core/style-sheet-atomic.test.ts
new file mode 100644
index 0000000000..30dbf58b91
--- /dev/null
+++ b/packages/css-engine/src/core/style-sheet-atomic.test.ts
@@ -0,0 +1,132 @@
+import { describe, beforeEach, test, expect } from "@jest/globals";
+import type { StyleSheetAtomic } from "./style-sheet-atomic";
+import { createAtomicStyleSheet } from "./create-style-sheet";
+
+const mediaRuleOptions0 = { minWidth: 0 } as const;
+const mediaId0 = "0";
+
+describe("Style Sheet Atomic", () => {
+ let sheet: StyleSheetAtomic;
+
+ const reset = () => {
+ sheet = createAtomicStyleSheet();
+ };
+
+ beforeEach(reset);
+
+ test("use default media rule when there is no matching one registered", () => {
+ sheet.addStyleRule({
+ style: { display: { type: "keyword", value: "block" } },
+ breakpoint: "x",
+ });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all {
+ .c19k25ej {
+ display: block
+ }
+}"
+`);
+ sheet.addStyleRule({
+ style: { color: { type: "keyword", value: "red" } },
+ breakpoint: "x",
+ });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all {
+ .c19k25ej {
+ display: block
+ }
+ .cs9ip66 {
+ color: red
+ }
+}"
+`);
+ });
+
+ test("use state suffix", () => {
+ sheet.addStyleRule(
+ {
+ style: { display: { type: "keyword", value: "block" } },
+ breakpoint: "x",
+ },
+ ":hover"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all {
+ .cmyojan:hover {
+ display: block
+ }
+}"
+`);
+ });
+
+ test("added classes", () => {
+ const { classes } = sheet.addStyleRule({
+ style: { display: { type: "keyword", value: "block" } },
+ breakpoint: "x",
+ });
+ expect(classes).toEqual(["c19k25ej"]);
+ });
+
+ test("rule with multiple properties", () => {
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule({
+ style: {
+ display: { type: "keyword", value: "block" },
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
+ });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all and (min-width: 0px) {
+ .cusz56a {
+ display: block
+ }
+ .cswg5vq {
+ color: red
+ }
+}"
+`);
+ });
+
+ test("add style rule to an existing media rule", () => {
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule({
+ style: {
+ display: { type: "keyword", value: "block" },
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
+ });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all and (min-width: 0px) {
+ .cusz56a {
+ display: block
+ }
+ .cswg5vq {
+ color: red
+ }
+}"
+`);
+ sheet.addStyleRule({
+ style: {
+ // It should prevent duplicates
+ display: { type: "keyword", value: "block" },
+ color: { type: "keyword", value: "green" },
+ },
+ breakpoint: "0",
+ });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
+"@media all and (min-width: 0px) {
+ .cusz56a {
+ display: block
+ }
+ .cswg5vq {
+ color: red
+ }
+ .c8jb4vi {
+ color: green
+ }
+}"
+`);
+ });
+});
diff --git a/packages/css-engine/src/core/style-sheet-atomic.ts b/packages/css-engine/src/core/style-sheet-atomic.ts
new file mode 100644
index 0000000000..ed520885e2
--- /dev/null
+++ b/packages/css-engine/src/core/style-sheet-atomic.ts
@@ -0,0 +1,50 @@
+import type { Style, StyleProperty } from "../schema";
+import { StylePropertyMap, StyleRule } from "./rules";
+import type { TransformValue } from "./to-value";
+import hash from "@emotion/hash";
+import { StyleSheet, type CssRule } from "./style-sheet";
+
+const defaultMediaRuleId = "__default-media-rule__";
+
+export class StyleSheetAtomic extends StyleSheet {
+ addStyleRule(
+ { style, breakpoint }: CssRule,
+ selectorSuffix: string = "",
+ transformValue?: TransformValue
+ ) {
+ const mediaRule = this.addMediaRule(breakpoint || defaultMediaRuleId);
+ const styleRules = [];
+ const classes = [];
+
+ let property: StyleProperty;
+ for (property in style) {
+ const stylePropertyMap = new StylePropertyMap(
+ { [property]: style[property] } as Style,
+ transformValue
+ );
+ // "c" makes sure hash always starts with a letter.
+ const className = `c${hash(
+ stylePropertyMap + selectorSuffix + breakpoint
+ )}`;
+ classes.push(className);
+ const newStyleRule = new StyleRule(
+ `.${className}${selectorSuffix}`,
+ stylePropertyMap,
+ transformValue,
+ this.#onChangeRule
+ );
+ styleRules.push(newStyleRule);
+
+ if (mediaRule.rules.has(newStyleRule.selectorText) === false) {
+ mediaRule.insertRule(newStyleRule);
+ this.markAsDirty();
+ }
+ }
+
+ return { styleRules, classes };
+ }
+
+ #onChangeRule = () => {
+ this.markAsDirty();
+ };
+}
diff --git a/packages/css-engine/src/core/css-engine.test.ts b/packages/css-engine/src/core/style-sheet-regular.test.ts
similarity index 52%
rename from packages/css-engine/src/core/css-engine.test.ts
rename to packages/css-engine/src/core/style-sheet-regular.test.ts
index 12c9658e6c..cf53467732 100644
--- a/packages/css-engine/src/core/css-engine.test.ts
+++ b/packages/css-engine/src/core/style-sheet-regular.test.ts
@@ -1,5 +1,6 @@
import { describe, beforeEach, test, expect } from "@jest/globals";
-import { CssEngine } from "./css-engine";
+import type { StyleSheetRegular } from "./style-sheet-regular";
+import { createRegularStyleSheet } from "./create-style-sheet";
const style0 = {
display: { type: "keyword", value: "block" },
@@ -20,22 +21,25 @@ const style2 = {
const mediaRuleOptions1 = { minWidth: 300 } as const;
const mediaId1 = "1";
-describe("CssEngine", () => {
- let engine: CssEngine;
+describe("Style Sheet Regular", () => {
+ let sheet: StyleSheetRegular;
const reset = () => {
- engine = new CssEngine({ name: "test" });
+ sheet = createRegularStyleSheet();
};
beforeEach(reset);
test("minWidth media rule", () => {
- engine.addMediaRule("0", { minWidth: 0 });
- engine.addStyleRule(".c1", {
- style: { color: { type: "keyword", value: "red" } },
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule("0", { minWidth: 0 });
+ sheet.addStyleRule(
+ {
+ style: { color: { type: "keyword", value: "red" } },
+ breakpoint: "0",
+ },
+ ".c1"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c1 {
color: red
@@ -45,12 +49,15 @@ describe("CssEngine", () => {
});
test("maxWidth media rule", () => {
- engine.addMediaRule("0", { maxWidth: 1000 });
- engine.addStyleRule(".c1", {
- style: { color: { type: "keyword", value: "red" } },
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule("0", { maxWidth: 1000 });
+ sheet.addStyleRule(
+ {
+ style: { color: { type: "keyword", value: "red" } },
+ breakpoint: "0",
+ },
+ ".c1"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (max-width: 1000px) {
.c1 {
color: red
@@ -60,12 +67,15 @@ describe("CssEngine", () => {
});
test("maxWidth and maxWith media rule", () => {
- engine.addMediaRule("0", { maxWidth: 1000, minWidth: 360 });
- engine.addStyleRule(".c1", {
- style: { color: { type: "keyword", value: "red" } },
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule("0", { maxWidth: 1000, minWidth: 360 });
+ sheet.addStyleRule(
+ {
+ style: { color: { type: "keyword", value: "red" } },
+ breakpoint: "0",
+ },
+ ".c1"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 360px) and (max-width: 1000px) {
.c1 {
color: red
@@ -75,22 +85,28 @@ describe("CssEngine", () => {
});
test("use default media rule when there is no matching one registered", () => {
- engine.addStyleRule(".c", {
- style: style0,
- breakpoint: "x",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "x",
+ },
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c {
display: block
}
}"
`);
- engine.addStyleRule(".c1", {
- style: { color: { type: "keyword", value: "red" } },
- breakpoint: "x",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addStyleRule(
+ {
+ style: { color: { type: "keyword", value: "red" } },
+ breakpoint: "x",
+ },
+ ".c1"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c {
display: block
@@ -101,13 +117,16 @@ describe("CssEngine", () => {
}"
`);
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c1", {
- style: { color: { type: "keyword", value: "blue" } },
- breakpoint: mediaId0,
- });
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: { color: { type: "keyword", value: "blue" } },
+ breakpoint: mediaId0,
+ },
+ ".c1"
+ );
// Default media query should allways be the first to have the lowest source order specificity
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c {
display: block
@@ -125,25 +144,34 @@ describe("CssEngine", () => {
});
test("sort media queries based on lower min-width", () => {
- engine.addMediaRule(mediaId1, mediaRuleOptions1);
- engine.addStyleRule(".c2", {
- style: style1,
- breakpoint: mediaId1,
- });
+ sheet.addMediaRule(mediaId1, mediaRuleOptions1);
+ sheet.addStyleRule(
+ {
+ style: style1,
+ breakpoint: mediaId1,
+ },
+ ".c2"
+ );
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c1", {
- style: style0,
- breakpoint: mediaId0,
- });
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: mediaId0,
+ },
+ ".c1"
+ );
- engine.addStyleRule(".c3", {
- style: style0,
- breakpoint: "x",
- });
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "x",
+ },
+ ".c3"
+ );
// Default media query should allways be the first to have the lowest source order specificity
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c3 {
display: block
@@ -163,15 +191,21 @@ describe("CssEngine", () => {
});
test("keep the sort order when minWidth is not defined", () => {
- engine.addStyleRule(".c0", {
- style: style0,
- breakpoint: "x",
- });
- engine.addStyleRule(".c1", {
- style: style1,
- breakpoint: "x",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "x",
+ },
+ ".c0"
+ );
+ sheet.addStyleRule(
+ {
+ style: style1,
+ breakpoint: "x",
+ },
+ ".c1"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c0 {
display: block
@@ -184,15 +218,21 @@ describe("CssEngine", () => {
reset();
- engine.addStyleRule(".c1", {
- style: style1,
- breakpoint: "x",
- });
- engine.addStyleRule(".c0", {
- style: style0,
- breakpoint: "x",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addStyleRule(
+ {
+ style: style1,
+ breakpoint: "x",
+ },
+ ".c1"
+ );
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "x",
+ },
+ ".c0"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c1 {
display: flex
@@ -205,15 +245,18 @@ describe("CssEngine", () => {
});
test("rule with multiple properties", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c", {
- style: {
- ...style0,
- color: { type: "keyword", value: "red" },
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: {
+ ...style0,
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block;
@@ -224,14 +267,17 @@ describe("CssEngine", () => {
});
test("hyphenate property", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c", {
- style: {
- backgroundColor: { type: "keyword", value: "red" },
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: {
+ backgroundColor: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
background-color: red
@@ -241,15 +287,18 @@ describe("CssEngine", () => {
});
test("add rule", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- const rule1 = engine.addStyleRule(".c", {
- style: {
- ...style0,
- color: { type: "keyword", value: "red" },
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ const rule1 = sheet.addStyleRule(
+ {
+ style: {
+ ...style0,
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block;
@@ -263,14 +312,17 @@ describe("CssEngine", () => {
color: red
}"
`);
- engine.addStyleRule(".c2", {
- style: {
- ...style0,
- color: { type: "keyword", value: "green" },
+ sheet.addStyleRule(
+ {
+ style: {
+ ...style0,
+ color: { type: "keyword", value: "green" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c2"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block;
@@ -285,15 +337,18 @@ describe("CssEngine", () => {
});
test("update rule", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- const rule = engine.addStyleRule(".c", {
- style: {
- ...style0,
- color: { type: "keyword", value: "red" },
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ const rule = sheet.addStyleRule(
+ {
+ style: {
+ ...style0,
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block;
@@ -317,7 +372,7 @@ describe("CssEngine", () => {
}"
`);
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block;
@@ -328,22 +383,25 @@ describe("CssEngine", () => {
});
test("update media rule options", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c", {
- style: {
- color: { type: "keyword", value: "red" },
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: {
+ color: { type: "keyword", value: "red" },
+ },
+ breakpoint: "0",
},
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
color: red
}
}"
`);
- engine.addMediaRule(mediaId0, { minWidth: 10 });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule(mediaId0, { minWidth: 10 });
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 10px) {
.c {
color: red
@@ -353,20 +411,23 @@ describe("CssEngine", () => {
});
test("don't override media queries", () => {
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- engine.addStyleRule(".c", {
- style: style0,
- breakpoint: "0",
- });
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "0",
+ },
+ ".c"
+ );
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block
}
}"
`);
- engine.addMediaRule(mediaId0, mediaRuleOptions0);
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addMediaRule(mediaId0, mediaRuleOptions0);
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all and (min-width: 0px) {
.c {
display: block
@@ -376,29 +437,29 @@ describe("CssEngine", () => {
});
test("plaintext rule", () => {
- engine.addPlaintextRule(".c { color: red }");
- expect(engine.cssText).toMatchInlineSnapshot(`".c { color: red }"`);
+ sheet.addPlaintextRule(".c { color: red }");
+ expect(sheet.cssText).toMatchInlineSnapshot(`".c { color: red }"`);
});
test("plaintext - no duplicates", () => {
- engine.addPlaintextRule(".c { color: red }");
- engine.addPlaintextRule(".c { color: red }");
- engine.addPlaintextRule(".c { color: green }");
- expect(engine.cssText).toMatchInlineSnapshot(`
+ sheet.addPlaintextRule(".c { color: red }");
+ sheet.addPlaintextRule(".c { color: red }");
+ sheet.addPlaintextRule(".c { color: green }");
+ expect(sheet.cssText).toMatchInlineSnapshot(`
".c { color: red }
.c { color: green }"
`);
});
test("font family rule", () => {
- engine.addFontFaceRule({
+ sheet.addFontFaceRule({
fontFamily: "Roboto",
fontStyle: "normal",
fontWeight: 400,
fontDisplay: "swap",
src: "url(/src)",
});
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@font-face {
font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(/src);
}"
@@ -406,19 +467,25 @@ describe("CssEngine", () => {
});
test("clear", () => {
- engine.addStyleRule(".c", {
- style: style0,
- breakpoint: "0",
- });
- engine.clear();
- expect(engine.cssText).toMatchInlineSnapshot(`""`);
+ sheet.addStyleRule(
+ {
+ style: style0,
+ breakpoint: "0",
+ },
+ ".c"
+ );
+ sheet.clear();
+ expect(sheet.cssText).toMatchInlineSnapshot(`""`);
});
test("get all rule style keys", () => {
- const rule = engine.addStyleRule(".c", {
- style: style2,
- breakpoint: "0",
- });
+ const rule = sheet.addStyleRule(
+ {
+ style: style2,
+ breakpoint: "0",
+ },
+ ".c"
+ );
expect(Array.from(rule.styleMap.keys())).toMatchInlineSnapshot(`
[
"display",
@@ -428,12 +495,15 @@ describe("CssEngine", () => {
});
test("delete style from rule", () => {
- const rule = engine.addStyleRule(".c", {
- style: style2,
- breakpoint: "0",
- });
+ const rule = sheet.addStyleRule(
+ {
+ style: style2,
+ breakpoint: "0",
+ },
+ ".c"
+ );
rule.styleMap.delete("display");
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c {
color: black
@@ -446,8 +516,7 @@ describe("CssEngine", () => {
const assets = new Map<string, { path: string }>([
["1234", { path: "foo.png" }],
]);
- const rule = engine.addStyleRule(
- ".c",
+ const rule = sheet.addStyleRule(
{
style: {
backgroundImage: {
@@ -460,6 +529,7 @@ describe("CssEngine", () => {
},
breakpoint: "0",
},
+ ".c",
(styleValue) => {
if (styleValue.type === "image" && styleValue.value.type === "asset") {
const asset = assets.get(styleValue.value.value);
@@ -477,7 +547,7 @@ describe("CssEngine", () => {
}
);
rule.styleMap.delete("display");
- expect(engine.cssText).toMatchInlineSnapshot(`
+ expect(sheet.cssText).toMatchInlineSnapshot(`
"@media all {
.c {
background-image: url("foo.png")
diff --git a/packages/css-engine/src/core/style-sheet-regular.ts b/packages/css-engine/src/core/style-sheet-regular.ts
new file mode 100644
index 0000000000..54e6f7f487
--- /dev/null
+++ b/packages/css-engine/src/core/style-sheet-regular.ts
@@ -0,0 +1,29 @@
+import { StyleRule } from "./rules";
+import type { TransformValue } from "./to-value";
+import { StyleSheet, type CssRule } from "./style-sheet";
+
+const defaultMediaRuleId = "__default-media-rule__";
+
+export class StyleSheetRegular extends StyleSheet {
+ addStyleRule(
+ rule: CssRule,
+ selectorText: string,
+ transformValue?: TransformValue
+ ) {
+ const mediaRule = this.addMediaRule(rule.breakpoint || defaultMediaRuleId);
+
+ this.markAsDirty();
+ const styleRule = new StyleRule(
+ selectorText,
+ rule.style,
+ transformValue,
+ this.#onChangeRule
+ );
+ mediaRule.insertRule(styleRule);
+ return styleRule;
+ }
+
+ #onChangeRule = () => {
+ this.markAsDirty();
+ };
+}
diff --git a/packages/css-engine/src/core/style-sheet.ts b/packages/css-engine/src/core/style-sheet.ts
index 17c23e2488..5f9439e887 100644
--- a/packages/css-engine/src/core/style-sheet.ts
+++ b/packages/css-engine/src/core/style-sheet.ts
@@ -1,15 +1,106 @@
-import type { StyleElement } from "./style-element";
+import type { Style } from "../schema";
+import {
+ FontFaceRule,
+ MediaRule,
+ PlaintextRule,
+ type FontFaceOptions,
+ type MediaRuleOptions,
+} from "./rules";
+import { compareMedia } from "./compare-media";
+import { StyleElement } from "./style-element";
+
+export type CssRule = {
+ style: Style;
+ breakpoint?: string;
+};
export class StyleSheet {
#cssText = "";
- #element;
+ #mediaRules: Map<string, MediaRule> = new Map();
+ #plainRules: Map<string, PlaintextRule> = new Map();
+ #fontFaceRules: Array<FontFaceRule> = [];
+ #isDirty = false;
+ #element: StyleElement;
constructor(element: StyleElement) {
this.#element = element;
}
- replaceSync(cssText: string) {
- if (cssText !== this.#cssText) {
- this.#cssText = cssText;
- this.#element.render(cssText);
+ addMediaRule(id: string, options?: MediaRuleOptions) {
+ let mediaRule = this.#mediaRules.get(id);
+ if (mediaRule === undefined) {
+ mediaRule = new MediaRule(options);
+ this.#mediaRules.set(id, mediaRule);
+ this.#isDirty = true;
+ return mediaRule;
+ }
+
+ if (options) {
+ mediaRule.options = options;
+ this.#isDirty = true;
}
+
+ if (mediaRule === undefined) {
+ // Should be impossible to reach.
+ throw new Error("No media rule found");
+ }
+
+ return mediaRule;
+ }
+ addPlaintextRule(cssText: string) {
+ const rule = this.#plainRules.get(cssText);
+ if (rule !== undefined) {
+ return rule;
+ }
+ this.#isDirty = true;
+ return this.#plainRules.set(cssText, new PlaintextRule(cssText));
+ }
+ addFontFaceRule(options: FontFaceOptions) {
+ this.#isDirty = true;
+ return this.#fontFaceRules.push(new FontFaceRule(options));
+ }
+ markAsDirty() {
+ this.#isDirty = true;
+ }
+ get cssText() {
+ if (this.#isDirty === false) {
+ return this.#cssText;
+ }
+ this.#isDirty = false;
+ const css: Array<string> = [];
+
+ css.push(...this.#fontFaceRules.map((rule) => rule.cssText));
+ for (const plaintextRule of this.#plainRules.values()) {
+ css.push(plaintextRule.cssText);
+ }
+
+ const sortedMediaRules = Array.from(this.#mediaRules.values()).sort(
+ (ruleA, ruleB) => compareMedia(ruleA.options, ruleB.options)
+ );
+ for (const mediaRule of sortedMediaRules) {
+ const { cssText } = mediaRule;
+ if (cssText !== "") {
+ css.push(cssText);
+ }
+ }
+ this.#cssText = css.join("\n");
+ return this.#cssText;
+ }
+ clear() {
+ this.#mediaRules.clear();
+ this.#plainRules.clear();
+ this.#fontFaceRules = [];
+ this.#isDirty = true;
+ }
+ render() {
+ this.#element.mount();
+ this.#element.render(this.cssText);
+ }
+ unmount() {
+ this.#element.unmount();
+ }
+ setAttribute(name: string, value: string) {
+ this.#element.setAttribute(name, value);
+ }
+ getAttribute(name: string) {
+ return this.#element.getAttribute(name);
}
}
diff --git a/packages/react-sdk/src/component-generator.test.ts b/packages/react-sdk/src/component-generator.test.ts
index 36eeb55ba7..00f5286c36 100644
--- a/packages/react-sdk/src/component-generator.test.ts
+++ b/packages/react-sdk/src/component-generator.test.ts
@@ -560,6 +560,7 @@ test("generate collection component as map", () => {
test("generate page component with variables and actions", () => {
expect(
generatePageComponent({
+ classesMap: new Map(),
scope: createScope(),
page: { rootInstanceId: "body" } as Page,
instances: new Map([
@@ -623,9 +624,43 @@ test("generate page component with variables and actions", () => {
);
});
+test("add classes and merge classes", () => {
+ expect(
+ generatePageComponent({
+ classesMap: new Map([["body", ["cls1"]]]),
+ scope: createScope(),
+ page: { rootInstanceId: "body" } as Page,
+ instances: new Map([createInstancePair("body", "Body", [])]),
+ dataSources: new Map(),
+ props: new Map([
+ createPropPair({
+ id: "1",
+ instanceId: "body",
+ name: "className",
+ type: "string",
+ value: "cls2",
+ }),
+ ]),
+ indexesWithinAncestors: new Map(),
+ })
+ ).toEqual(
+ clear(`
+ type Params = Record<string, string | undefined>
+ type Resources = Record<string, unknown>
+ const Page = (_props: { params: Params, resources: Resources }) => {
+ return <Body
+ data-ws-id="body"
+ data-ws-component="Body"
+ className="cls1 cls2" />
+ }
+ `)
+ );
+});
+
test("avoid generating collection parameter variable as state", () => {
expect(
generatePageComponent({
+ classesMap: new Map(),
scope: createScope(),
page: { rootInstanceId: "body" } as Page,
instances: new Map([
@@ -687,6 +722,7 @@ test("avoid generating collection parameter variable as state", () => {
test("generate params variable when present", () => {
expect(
generatePageComponent({
+ classesMap: new Map(),
scope: createScope(["params"]),
page: { rootInstanceId: "body", pathVariableId: "pathParamsId" } as Page,
instances: new Map([createInstancePair("body", "Body", [])]),
@@ -727,6 +763,7 @@ test("generate params variable when present", () => {
test("generate resources loading", () => {
expect(
generatePageComponent({
+ classesMap: new Map(),
scope: createScope(),
page: { rootInstanceId: "body" } as Page,
instances: new Map([createInstancePair("body", "Body", [])]),
diff --git a/packages/react-sdk/src/component-generator.ts b/packages/react-sdk/src/component-generator.ts
index dc1a5c9c5f..8620d4b3a9 100644
--- a/packages/react-sdk/src/component-generator.ts
+++ b/packages/react-sdk/src/component-generator.ts
@@ -69,6 +69,7 @@ export const generateJsxElement = ({
dataSources,
indexesWithinAncestors,
children,
+ classesMap,
}: {
scope: Scope;
instance: Instance;
@@ -76,6 +77,7 @@ export const generateJsxElement = ({
dataSources: DataSources;
indexesWithinAncestors: IndexesWithinAncestors;
children: string;
+ classesMap?: Map<string, Array<string>>;
}) => {
let generatedProps = "";
@@ -92,6 +94,8 @@ export const generateJsxElement = ({
let conditionValue: undefined | string;
let collectionDataValue: undefined | string;
let collectionItemValue: undefined | string;
+
+ const classes = Array.from(classesMap?.get(instance.id) ?? []);
for (const prop of props.values()) {
if (prop.instanceId !== instance.id) {
continue;
@@ -120,11 +124,22 @@ export const generateJsxElement = ({
}
continue;
}
+ // We need to merge atomic classes with user-defined className prop.
+ if (prop.name === "className") {
+ if (prop.type === "string") {
+ classes.push(prop.value);
+ }
+ continue;
+ }
if (propValue !== undefined) {
generatedProps += `\n${prop.name}={${propValue}}`;
}
}
+ if (classes.length !== 0) {
+ generatedProps += `\nclassName="${classes.join(" ")}"`;
+ }
+
let generatedElement = "";
// coditionally render instance when show prop is data source
// {dataSourceVariable && <Instance>}
@@ -173,6 +188,7 @@ export const generateJsxChildren = ({
props,
dataSources,
indexesWithinAncestors,
+ classesMap,
}: {
scope: Scope;
children: Instance["children"];
@@ -180,6 +196,7 @@ export const generateJsxChildren = ({
props: Props;
dataSources: DataSources;
indexesWithinAncestors: IndexesWithinAncestors;
+ classesMap?: Map<string, Array<string>>;
}) => {
let generatedChildren = "";
for (const child of children) {
@@ -204,7 +221,9 @@ export const generateJsxChildren = ({
props,
dataSources,
indexesWithinAncestors,
+ classesMap,
children: generateJsxChildren({
+ classesMap,
scope,
children: instance.children,
instances,
@@ -227,6 +246,7 @@ export const generatePageComponent = ({
props,
dataSources,
indexesWithinAncestors,
+ classesMap,
}: {
scope: Scope;
page: Page;
@@ -234,6 +254,7 @@ export const generatePageComponent = ({
props: Props;
dataSources: DataSources;
indexesWithinAncestors: IndexesWithinAncestors;
+ classesMap: Map<string, Array<string>>;
}) => {
const instance = instances.get(page.rootInstanceId);
if (instance === undefined) {
@@ -283,6 +304,7 @@ export const generatePageComponent = ({
props,
dataSources,
indexesWithinAncestors,
+ classesMap,
children: generateJsxChildren({
scope,
children: instance.children,
@@ -290,6 +312,7 @@ export const generatePageComponent = ({
props,
dataSources,
indexesWithinAncestors,
+ classesMap,
}),
});
diff --git a/packages/react-sdk/src/css/css.ts b/packages/react-sdk/src/css/css.ts
index 9810f8db4d..004c2a323a 100644
--- a/packages/react-sdk/src/css/css.ts
+++ b/packages/react-sdk/src/css/css.ts
@@ -1,4 +1,8 @@
-import { createCssEngine, type TransformValue } from "@webstudio-is/css-engine";
+import {
+ createRegularStyleSheet,
+ createAtomicStyleSheet,
+ type TransformValue,
+} from "@webstudio-is/css-engine";
import type {
Asset,
Assets,
@@ -23,10 +27,14 @@ type Data = {
type CssOptions = {
assetBaseUrl: string;
+ atomic: boolean;
};
export const createImageValueTransformer =
- (assets: Assets, options: CssOptions): TransformValue =>
+ (
+ assets: Assets,
+ { assetBaseUrl }: { assetBaseUrl: string }
+ ): TransformValue =>
(styleValue) => {
if (styleValue.type === "image" && styleValue.value.type === "asset") {
const asset = assets.get(styleValue.value.value);
@@ -35,7 +43,6 @@ export const createImageValueTransformer =
}
// @todo reuse image loaders and generate image-set
- const { assetBaseUrl } = options;
const url = `${assetBaseUrl}${asset.name}`;
return {
@@ -49,21 +56,25 @@ export const createImageValueTransformer =
}
};
-export const generateCssText = (data: Data, options: CssOptions) => {
+export const generateCss = (
+ data: Data,
+ { assetBaseUrl, atomic = false }: CssOptions
+) => {
const assets: Assets = new Map(data.assets.map((asset) => [asset.id, asset]));
const breakpoints = new Map(data.breakpoints);
const styles = new Map(data.styles);
const styleSourceSelections = new Map(data.styleSourceSelections);
+ const classesMap = new Map<string, Array<string>>();
- const engine = createCssEngine({ name: "ssr" });
+ const regularSheet = createRegularStyleSheet({ name: "ssr-regular" });
+ const atomicSheet = atomic
+ ? createAtomicStyleSheet({ name: "ssr-atomic" })
+ : undefined;
- addGlobalRules(engine, {
- assets,
- assetBaseUrl: options.assetBaseUrl,
- });
+ addGlobalRules(regularSheet, { assets, assetBaseUrl });
for (const breakpoint of breakpoints.values()) {
- engine.addMediaRule(breakpoint.id, breakpoint);
+ (atomicSheet ?? regularSheet).addMediaRule(breakpoint.id, breakpoint);
}
for (const [component, meta] of data.componentMetas) {
@@ -73,21 +84,38 @@ export const generateCssText = (data: Data, options: CssOptions) => {
}
const rules = getPresetStyleRules(component, presetStyle);
for (const [selector, style] of rules) {
- engine.addStyleRule(selector, { style });
+ regularSheet.addStyleRule({ style }, selector);
}
}
const styleRules = getStyleRules(styles, styleSourceSelections);
+
+ const imageValueTransformer = createImageValueTransformer(assets, {
+ assetBaseUrl,
+ });
+
for (const { breakpointId, instanceId, state, style } of styleRules) {
- engine.addStyleRule(
+ if (atomicSheet) {
+ const { classes } = atomicSheet.addStyleRule(
+ { breakpoint: breakpointId, style },
+ state,
+ imageValueTransformer
+ );
+ classesMap.set(instanceId, [
+ ...(classesMap.get(instanceId) ?? []),
+ ...classes,
+ ]);
+ continue;
+ }
+ regularSheet.addStyleRule(
+ { breakpoint: breakpointId, style },
`[${idAttribute}="${instanceId}"]${state ?? ""}`,
- {
- breakpoint: breakpointId,
- style,
- },
- createImageValueTransformer(assets, options)
+ imageValueTransformer
);
}
- return engine.cssText;
+ return {
+ cssText: regularSheet.cssText + (atomicSheet?.cssText ?? ""),
+ classesMap,
+ };
};
diff --git a/packages/react-sdk/src/css/global-rules.ts b/packages/react-sdk/src/css/global-rules.ts
index 2cf23c4195..0984cd065a 100644
--- a/packages/react-sdk/src/css/global-rules.ts
+++ b/packages/react-sdk/src/css/global-rules.ts
@@ -1,16 +1,19 @@
-import type { CssEngine } from "@webstudio-is/css-engine";
+import type {
+ StyleSheetAtomic,
+ StyleSheetRegular,
+} from "@webstudio-is/css-engine";
import type { Assets, FontAsset } from "@webstudio-is/sdk";
import { getFontFaces } from "@webstudio-is/fonts";
export const addGlobalRules = (
- engine: CssEngine,
+ sheet: StyleSheetRegular | StyleSheetAtomic,
{ assets, assetBaseUrl }: { assets: Assets; assetBaseUrl: string }
) => {
// @todo we need to figure out all global resets while keeping
// the engine aware of all of them.
// Ideally, the user is somehow aware and in control of the reset
// Layout source https://twitter.com/ChallengesCss/status/1471128244720181258
- engine.addPlaintextRule("html {margin: 0; display: grid; min-height: 100%}");
+ sheet.addPlaintextRule("html {margin: 0; display: grid; min-height: 100%}");
const fontAssets: FontAsset[] = [];
for (const asset of assets.values()) {
@@ -21,6 +24,6 @@ export const addGlobalRules = (
const fontFaces = getFontFaces(fontAssets, { assetBaseUrl });
for (const fontFace of fontFaces) {
- engine.addFontFaceRule(fontFace);
+ sheet.addFontFaceRule(fontFace);
}
};
diff --git a/packages/sdk-cli/src/generate-stories.ts b/packages/sdk-cli/src/generate-stories.ts
index acb74a9468..e1278983dc 100644
--- a/packages/sdk-cli/src/generate-stories.ts
+++ b/packages/sdk-cli/src/generate-stories.ts
@@ -12,7 +12,7 @@ import {
} from "@webstudio-is/sdk";
import {
type WsComponentMeta,
- generateCssText,
+ generateCss,
generateDataFromEmbedTemplate,
generatePageComponent,
getIndexesWithinAncestors,
@@ -146,6 +146,21 @@ export const generateStories = async () => {
usedMetas.set(instance.component, meta);
}
}
+ const { cssText, classesMap } = generateCss(
+ {
+ assets: [],
+ breakpoints: [
+ [baseBreakpointId, { id: baseBreakpointId, label: "base" }],
+ ],
+ styles: data.styles.map((item) => [getStyleDeclKey(item), item]),
+ styleSourceSelections: data.styleSourceSelections.map((item) => [
+ item.instanceId,
+ item,
+ ]),
+ componentMetas: usedMetas,
+ },
+ { assetBaseUrl: "/", atomic: true }
+ );
const scope = createScope(["Page", "Story", "props", "useState"]);
let content = "";
content += getStoriesImports({
@@ -160,6 +175,7 @@ export const generateStories = async () => {
});
content += `\n`;
content += generatePageComponent({
+ classesMap,
scope,
page: { rootInstanceId } as Page,
instances,
@@ -169,22 +185,8 @@ export const generateStories = async () => {
rootInstanceId,
]),
});
- const css = generateCssText(
- {
- assets: [],
- breakpoints: [
- [baseBreakpointId, { id: baseBreakpointId, label: "base" }],
- ],
- styles: data.styles.map((item) => [getStyleDeclKey(item), item]),
- styleSourceSelections: data.styleSourceSelections.map((item) => [
- item.instanceId,
- item,
- ]),
- componentMetas: usedMetas,
- },
- { assetBaseUrl: "/" }
- );
- content += getStoriesExports(name, css);
+
+ content += getStoriesExports(name, cssText);
await writeFile(
join(storiesDir, kebabCase(name) + ".stories.tsx"),
content
diff --git a/packages/sdk-components-react-radix/src/__generated__/accordion.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/accordion.stories.tsx
index ccec035e66..4b27708ffe 100644
--- a/packages/sdk-components-react-radix/src/__generated__/accordion.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/accordion.stories.tsx
@@ -33,16 +33,26 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="6"
data-ws-component="AccordionItem"
data-ws-index="0"
+ className="cjrlou9 c1uf7v01 c1x5uwe6"
>
- <AccordionHeader data-ws-id="8" data-ws-component="AccordionHeader">
+ <AccordionHeader
+ data-ws-id="8"
+ data-ws-component="AccordionHeader"
+ className="c6gk6ar"
+ >
<AccordionTrigger
data-ws-id="10"
data-ws-component="AccordionTrigger"
+ className="c6gk6ar cn4ngym c1ee1pe1 c1xcrn9h c4v7k5r csg71e3 c1mdun74 c1bfvzwl cwry1sa cvfe049 clf46de c2xz4jt"
>
<Text data-ws-id="12" data-ws-component="Text">
{"Is it accessible?"}
</Text>
- <Box data-ws-id="13" data-ws-component="Box">
+ <Box
+ data-ws-id="13"
+ data-ws-component="Box"
+ className="c1h3z08b c18dp5gp clw3og8 c1qmz361 cu8n5i6 cqhjzs2 c1498b83"
+ >
<HtmlEmbed
data-ws-id="15"
data-ws-component="HtmlEmbed"
@@ -56,6 +66,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
<AccordionContent
data-ws-id="17"
data-ws-component="AccordionContent"
+ className="c1e2gixt c1mfk609 c121vm9z c1bfvzwl"
>
{"Yes. It adheres to the WAI-ARIA design pattern."}
</AccordionContent>
@@ -64,16 +75,26 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="19"
data-ws-component="AccordionItem"
data-ws-index="1"
+ className="cjrlou9 c1uf7v01 c1x5uwe6"
>
- <AccordionHeader data-ws-id="21" data-ws-component="AccordionHeader">
+ <AccordionHeader
+ data-ws-id="21"
+ data-ws-component="AccordionHeader"
+ className="c6gk6ar"
+ >
<AccordionTrigger
data-ws-id="23"
data-ws-component="AccordionTrigger"
+ className="c6gk6ar cn4ngym c1ee1pe1 c1xcrn9h c4v7k5r csg71e3 c1mdun74 c1bfvzwl cwry1sa cvfe049 clf46de c2xz4jt"
>
<Text data-ws-id="25" data-ws-component="Text">
{"Is it styled?"}
</Text>
- <Box data-ws-id="26" data-ws-component="Box">
+ <Box
+ data-ws-id="26"
+ data-ws-component="Box"
+ className="c1h3z08b c18dp5gp clw3og8 c1qmz361 cu8n5i6 cqhjzs2 c1498b83"
+ >
<HtmlEmbed
data-ws-id="28"
data-ws-component="HtmlEmbed"
@@ -87,6 +108,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
<AccordionContent
data-ws-id="30"
data-ws-component="AccordionContent"
+ className="c1e2gixt c1mfk609 c121vm9z c1bfvzwl"
>
{
"Yes. It comes with default styles that matches the other components' aesthetic."
@@ -97,16 +119,26 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="32"
data-ws-component="AccordionItem"
data-ws-index="2"
+ className="cjrlou9 c1uf7v01 c1x5uwe6"
>
- <AccordionHeader data-ws-id="34" data-ws-component="AccordionHeader">
+ <AccordionHeader
+ data-ws-id="34"
+ data-ws-component="AccordionHeader"
+ className="c6gk6ar"
+ >
<AccordionTrigger
data-ws-id="36"
data-ws-component="AccordionTrigger"
+ className="c6gk6ar cn4ngym c1ee1pe1 c1xcrn9h c4v7k5r csg71e3 c1mdun74 c1bfvzwl cwry1sa cvfe049 clf46de c2xz4jt"
>
<Text data-ws-id="38" data-ws-component="Text">
{"Is it animated?"}
</Text>
- <Box data-ws-id="39" data-ws-component="Box">
+ <Box
+ data-ws-id="39"
+ data-ws-component="Box"
+ className="c1h3z08b c18dp5gp clw3og8 c1qmz361 cu8n5i6 cqhjzs2 c1498b83"
+ >
<HtmlEmbed
data-ws-id="41"
data-ws-component="HtmlEmbed"
@@ -120,6 +152,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
<AccordionContent
data-ws-id="43"
data-ws-component="AccordionContent"
+ className="c1e2gixt c1mfk609 c121vm9z c1bfvzwl"
>
{
"Yes. It's animated by default, but you can disable it if you prefer."
@@ -311,129 +344,242 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="6"] {
- border-bottom-width: 1px;
- border-bottom-style: solid;
+}@media all {
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .c1x5uwe6 {
border-bottom-color: rgba(226, 232, 240, 1)
}
- [data-ws-id="8"] {
+ .c6gk6ar {
display: flex
}
- [data-ws-id="10"] {
- display: flex;
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 0%;
- align-items: center;
- justify-content: space-between;
- padding-top: 1rem;
- padding-bottom: 1rem;
- font-weight: 500;
+ .c6gk6ar {
+ display: flex
+ }
+ .cn4ngym {
+ flex-grow: 1
+ }
+ .c1ee1pe1 {
+ flex-shrink: 1
+ }
+ .c1xcrn9h {
+ flex-basis: 0%
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .csg71e3 {
+ justify-content: space-between
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .cvfe049 {
--accordion-trigger-icon-transform: 0deg
}
- [data-ws-id="10"]:hover {
+ .clf46de:hover {
text-decoration-line: underline
}
- [data-ws-id="10"][data-state=open] {
+ .c2xz4jt[data-state=open] {
--accordion-trigger-icon-transform: 180deg
}
- [data-ws-id="13"] {
- rotate: var(--accordion-trigger-icon-transform);
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c1h3z08b {
+ rotate: var(--accordion-trigger-icon-transform)
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .c1498b83 {
transition-duration: 200ms
}
- [data-ws-id="17"] {
- overflow: hidden;
- font-size: 0.875rem;
- line-height: 1.25rem;
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c1bfvzwl {
padding-bottom: 1rem
}
- [data-ws-id="19"] {
- border-bottom-width: 1px;
- border-bottom-style: solid;
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .c1x5uwe6 {
border-bottom-color: rgba(226, 232, 240, 1)
}
- [data-ws-id="21"] {
+ .c6gk6ar {
+ display: flex
+ }
+ .c6gk6ar {
display: flex
}
- [data-ws-id="23"] {
- display: flex;
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 0%;
- align-items: center;
- justify-content: space-between;
- padding-top: 1rem;
- padding-bottom: 1rem;
- font-weight: 500;
+ .cn4ngym {
+ flex-grow: 1
+ }
+ .c1ee1pe1 {
+ flex-shrink: 1
+ }
+ .c1xcrn9h {
+ flex-basis: 0%
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .csg71e3 {
+ justify-content: space-between
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .cvfe049 {
--accordion-trigger-icon-transform: 0deg
}
- [data-ws-id="23"]:hover {
+ .clf46de:hover {
text-decoration-line: underline
}
- [data-ws-id="23"][data-state=open] {
+ .c2xz4jt[data-state=open] {
--accordion-trigger-icon-transform: 180deg
}
- [data-ws-id="26"] {
- rotate: var(--accordion-trigger-icon-transform);
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c1h3z08b {
+ rotate: var(--accordion-trigger-icon-transform)
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .c1498b83 {
transition-duration: 200ms
}
- [data-ws-id="30"] {
- overflow: hidden;
- font-size: 0.875rem;
- line-height: 1.25rem;
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c1bfvzwl {
padding-bottom: 1rem
}
- [data-ws-id="32"] {
- border-bottom-width: 1px;
- border-bottom-style: solid;
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .c1x5uwe6 {
border-bottom-color: rgba(226, 232, 240, 1)
}
- [data-ws-id="34"] {
+ .c6gk6ar {
+ display: flex
+ }
+ .c6gk6ar {
display: flex
}
- [data-ws-id="36"] {
- display: flex;
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 0%;
- align-items: center;
- justify-content: space-between;
- padding-top: 1rem;
- padding-bottom: 1rem;
- font-weight: 500;
+ .cn4ngym {
+ flex-grow: 1
+ }
+ .c1ee1pe1 {
+ flex-shrink: 1
+ }
+ .c1xcrn9h {
+ flex-basis: 0%
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .csg71e3 {
+ justify-content: space-between
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .cvfe049 {
--accordion-trigger-icon-transform: 0deg
}
- [data-ws-id="36"]:hover {
+ .clf46de:hover {
text-decoration-line: underline
}
- [data-ws-id="36"][data-state=open] {
+ .c2xz4jt[data-state=open] {
--accordion-trigger-icon-transform: 180deg
}
- [data-ws-id="39"] {
- rotate: var(--accordion-trigger-icon-transform);
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c1h3z08b {
+ rotate: var(--accordion-trigger-icon-transform)
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .c1498b83 {
transition-duration: 200ms
}
- [data-ws-id="43"] {
- overflow: hidden;
- font-size: 0.875rem;
- line-height: 1.25rem;
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c1bfvzwl {
padding-bottom: 1rem
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/checkbox.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/checkbox.stories.tsx
index db4b0711bf..c4ba291f7a 100644
--- a/packages/sdk-components-react-radix/src/__generated__/checkbox.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/checkbox.stories.tsx
@@ -20,16 +20,22 @@ const Page = (_props: { params: Params; resources: Resources }) => {
};
return (
<Box data-ws-id="root" data-ws-component="Box">
- <Label data-ws-id="1" data-ws-component="Label">
+ <Label
+ data-ws-id="1"
+ data-ws-component="Label"
+ className="c6gk6ar cgt00fz cydvc77 c4v7k5r"
+ >
<Checkbox
data-ws-id="3"
data-ws-component="Checkbox"
checked={checkboxChecked}
onCheckedChange={onCheckedChange}
+ className="c18dp5gp clw3og8 c1qmz361 c1d9pxa5 cnjyf56 c1jpjw0a c1lxvq7u c1inucbi c1dab7w1 c1uf7v01 czynn8e cuelx18 c17v08sn c1czmfdb c8nta89 cgassre c1ndsw6v cjrlou9 c945vvj c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l cegrmbm c1grhw0w ccop5vc c19tq2u"
>
<CheckboxIndicator
data-ws-id="8"
data-ws-component="CheckboxIndicator"
+ className="c6gk6ar c4v7k5r cvzkkb6 c2a7z25"
>
<HtmlEmbed
data-ws-id="10"
@@ -210,54 +216,110 @@ html {margin: 0; display: grid; min-height: 100%}
outline-width: 1px;
min-height: 1em
}
-}
-@media all {
- [data-ws-id="1"] {
- display: flex;
- row-gap: 0.5rem;
- column-gap: 0.5rem;
+}@media all {
+ .c6gk6ar {
+ display: flex
+ }
+ .cgt00fz {
+ row-gap: 0.5rem
+ }
+ .cydvc77 {
+ column-gap: 0.5rem
+ }
+ .c4v7k5r {
align-items: center
}
- [data-ws-id="3"] {
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- border-top-left-radius: 0.125rem;
- border-top-right-radius: 0.125rem;
- border-bottom-right-radius: 0.125rem;
- border-bottom-left-radius: 0.125rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(15, 23, 42, 1);
- border-right-color: rgba(15, 23, 42, 1);
- border-bottom-color: rgba(15, 23, 42, 1);
- border-left-color: rgba(15, 23, 42, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .c1d9pxa5 {
+ border-top-left-radius: 0.125rem
+ }
+ .cnjyf56 {
+ border-top-right-radius: 0.125rem
+ }
+ .c1jpjw0a {
+ border-bottom-right-radius: 0.125rem
+ }
+ .c1lxvq7u {
+ border-bottom-left-radius: 0.125rem
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .cuelx18 {
+ border-top-color: rgba(15, 23, 42, 1)
+ }
+ .c17v08sn {
+ border-right-color: rgba(15, 23, 42, 1)
+ }
+ .c1czmfdb {
+ border-bottom-color: rgba(15, 23, 42, 1)
+ }
+ .c8nta89 {
+ border-left-color: rgba(15, 23, 42, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
border-left-width: 1px
}
- [data-ws-id="3"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="3"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="3"][data-state=checked] {
- background-color: rgba(15, 23, 42, 1);
+ .ccop5vc[data-state=checked] {
+ background-color: rgba(15, 23, 42, 1)
+ }
+ .c19tq2u[data-state=checked] {
color: rgba(248, 250, 252, 1)
}
- [data-ws-id="8"] {
- display: flex;
- align-items: center;
- justify-content: center;
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .c2a7z25 {
color: currentColor
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/collapsible.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/collapsible.stories.tsx
index 49db3ed61f..a0987c353a 100644
--- a/packages/sdk-components-react-radix/src/__generated__/collapsible.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/collapsible.stories.tsx
@@ -30,7 +30,11 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="5"
data-ws-component="CollapsibleTrigger"
>
- <Button data-ws-id="6" data-ws-component="Button">
+ <Button
+ data-ws-id="6"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1y5f9qa cjw7gx9 c1peybss chh2z1n c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
{"Click to toggle content"}
</Button>
</CollapsibleTrigger>
@@ -195,51 +199,116 @@ html {margin: 0; display: grid; min-height: 100%}
outline-width: 1px;
min-height: 1em
}
-}
-@media all {
- [data-ws-id="6"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 0.5rem;
+}@media all {
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
padding-bottom: 0.5rem
}
- [data-ws-id="6"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="6"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="6"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/dialog.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/dialog.stories.tsx
index 54e245ea1d..c2b51e957c 100644
--- a/packages/sdk-components-react-radix/src/__generated__/dialog.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/dialog.stories.tsx
@@ -32,19 +32,40 @@ const Page = (_props: { params: Params; resources: Resources }) => {
onOpenChange={onOpenChange}
>
<DialogTrigger data-ws-id="5" data-ws-component="DialogTrigger">
- <Button data-ws-id="6" data-ws-component="Button">
+ <Button
+ data-ws-id="6"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1y5f9qa cjw7gx9 c1peybss chh2z1n c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
{"Button"}
</Button>
</DialogTrigger>
- <DialogOverlay data-ws-id="8" data-ws-component="DialogOverlay">
- <DialogContent data-ws-id="10" data-ws-component="DialogContent">
- <Box data-ws-id="12" data-ws-component="Box">
- <DialogTitle data-ws-id="14" data-ws-component="DialogTitle">
+ <DialogOverlay
+ data-ws-id="8"
+ data-ws-component="DialogOverlay"
+ className="c1g0ebn8 c17k6ftv co2vb1i ci9y33x ckl9uqx c1wyidsg c15mffxy c1c159w3 c6gk6ar c19jsld4"
+ >
+ <DialogContent
+ data-ws-id="10"
+ data-ws-component="DialogContent"
+ className="c1i2mn37 c1wyidsg c6gk6ar c13wsd00 cb99ak4 ctl64vj c1ullep4 c1rj6y8a c1moepyh cxwv2s0 c12edzjb c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy cm3zvb4 c174435h c1xpn2dk c3vgloq cbzcu1y cnhoj7b"
+ >
+ <Box
+ data-ws-id="12"
+ data-ws-component="Box"
+ className="c6gk6ar c13wsd00 cu0fd6l c8098d3"
+ >
+ <DialogTitle
+ data-ws-id="14"
+ data-ws-component="DialogTitle"
+ className="c1u5xdcd cdf5ze5 c1ma6tz6 c1kjryeq cs0zr08"
+ >
{"Dialog Title"}
</DialogTitle>
<DialogDescription
data-ws-id="16"
data-ws-component="DialogDescription"
+ className="c1u5xdcd cdf5ze5 c1mfk609 c121vm9z caa8yt3"
>
{"Dialog description text you can edit"}
</DialogDescription>
@@ -52,7 +73,11 @@ const Page = (_props: { params: Params; resources: Resources }) => {
<Text data-ws-id="18" data-ws-component="Text">
{"The text you can edit"}
</Text>
- <DialogClose data-ws-id="19" data-ws-component="DialogClose">
+ <DialogClose
+ data-ws-id="19"
+ data-ws-component="DialogClose"
+ className="c1kb88y7 caboyml c1y1em6x c1d9pxa5 cnjyf56 c1jpjw0a c1lxvq7u c1jcn3uk c6gk6ar c4v7k5r cvzkkb6 c18dp5gp clw3og8 c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c601nqx c9i3lxo c1sz664l cm8bc7h c1m9udid c175y1wr"
+ >
<HtmlEmbed
data-ws-id="21"
data-ws-component="HtmlEmbed"
@@ -261,153 +286,368 @@ html {margin: 0; display: grid; min-height: 100%}
box-sizing: border-box;
text-transform: none
}
-}
-@media all {
- [data-ws-id="6"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 0.5rem;
+}@media all {
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
padding-bottom: 0.5rem
}
- [data-ws-id="6"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="6"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="6"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="8"] {
- position: fixed;
- left: 0px;
- right: 0px;
- top: 0px;
- bottom: 0px;
- z-index: 50;
- background-color: rgba(255, 255, 255, 0.8);
- backdrop-filter: blur(0 1px 2px 0 rgb(0 0 0 / 0.05));
- display: flex;
+ .c1g0ebn8 {
+ position: fixed
+ }
+ .c17k6ftv {
+ left: 0px
+ }
+ .co2vb1i {
+ right: 0px
+ }
+ .ci9y33x {
+ top: 0px
+ }
+ .ckl9uqx {
+ bottom: 0px
+ }
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1c159w3 {
+ backdrop-filter: blur(0 1px 2px 0 rgb(0 0 0 / 0.05))
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c19jsld4 {
overflow: auto
}
- [data-ws-id="10"] {
- width: 100%;
- z-index: 50;
- display: flex;
- flex-direction: column;
- row-gap: 1rem;
- column-gap: 1rem;
- margin-left: auto;
- margin-right: auto;
- margin-top: auto;
- margin-bottom: auto;
- max-width: 32rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- padding-left: 1.5rem;
- padding-right: 1.5rem;
- padding-top: 1.5rem;
- padding-bottom: 1.5rem;
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
+ .c1i2mn37 {
+ width: 100%
+ }
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c1ullep4 {
+ margin-left: auto
+ }
+ .c1rj6y8a {
+ margin-right: auto
+ }
+ .c1moepyh {
+ margin-top: auto
+ }
+ .cxwv2s0 {
+ margin-bottom: auto
+ }
+ .c12edzjb {
+ max-width: 32rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .cm3zvb4 {
+ padding-left: 1.5rem
+ }
+ .c174435h {
+ padding-right: 1.5rem
+ }
+ .c1xpn2dk {
+ padding-top: 1.5rem
+ }
+ .c3vgloq {
+ padding-bottom: 1.5rem
+ }
+ .cbzcu1y {
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)
+ }
+ .cnhoj7b {
position: relative
}
- [data-ws-id="12"] {
- display: flex;
- flex-direction: column;
- row-gap: 0.25rem;
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
column-gap: 0.25rem
}
- [data-ws-id="14"] {
- margin-top: 0px;
- margin-bottom: 0px;
- line-height: 1.75rem;
- font-size: 1.125rem;
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1ma6tz6 {
+ line-height: 1.75rem
+ }
+ .c1kjryeq {
+ font-size: 1.125rem
+ }
+ .cs0zr08 {
letter-spacing: -0.025em
}
- [data-ws-id="16"] {
- margin-top: 0px;
- margin-bottom: 0px;
- font-size: 0.875rem;
- line-height: 1.25rem;
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .caa8yt3 {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="19"] {
- position: absolute;
- right: 1rem;
- top: 1rem;
- border-top-left-radius: 0.125rem;
- border-top-right-radius: 0.125rem;
- border-bottom-right-radius: 0.125rem;
- border-bottom-left-radius: 0.125rem;
- opacity: 0.7;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 1rem;
- width: 1rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c1kb88y7 {
+ position: absolute
+ }
+ .caboyml {
+ right: 1rem
+ }
+ .c1y1em6x {
+ top: 1rem
+ }
+ .c1d9pxa5 {
+ border-top-left-radius: 0.125rem
+ }
+ .cnjyf56 {
+ border-top-right-radius: 0.125rem
+ }
+ .c1jpjw0a {
+ border-bottom-right-radius: 0.125rem
+ }
+ .c1lxvq7u {
+ border-bottom-left-radius: 0.125rem
+ }
+ .c1jcn3uk {
+ opacity: 0.7
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
+ }
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="19"]:hover {
+ .c1m9udid:hover {
opacity: 1
}
- [data-ws-id="19"]:focus {
+ .c175y1wr:focus {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/label.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/label.stories.tsx
index 7b75f5d65f..64c0847fa6 100644
--- a/packages/sdk-components-react-radix/src/__generated__/label.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/label.stories.tsx
@@ -6,7 +6,11 @@ type Resources = Record<string, unknown>;
const Page = (_props: { params: Params; resources: Resources }) => {
return (
<Box data-ws-id="root" data-ws-component="Box">
- <Label data-ws-id="1" data-ws-component="Label">
+ <Label
+ data-ws-id="1"
+ data-ws-component="Label"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Form Label"}
</Label>
</Box>
@@ -129,11 +133,14 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="1"] {
- font-size: 0.875rem;
- line-height: 1;
+}@media all {
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
font-weight: 500
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.stories.tsx
index 7e9d5c65ac..55efc9fa99 100644
--- a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.stories.tsx
@@ -32,10 +32,12 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-component="NavigationMenu"
value={menuValue}
onValueChange={onValueChange}
+ className="cnhoj7b c1a0z5in"
>
<NavigationMenuList
data-ws-id="6"
data-ws-component="NavigationMenuList"
+ className="c1hxtwzc c1j0bzjz cbjj14v c15sjadq c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c6gk6ar cn4ngym c1ee1pe1 c1xcrn9h csrd2h5 c4v7k5r cvzkkb6 cu0fd6l c8098d3"
>
<NavigationMenuItem
data-ws-id="8"
@@ -46,11 +48,19 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="9"
data-ws-component="NavigationMenuTrigger"
>
- <Button data-ws-id="10" data-ws-component="Button">
+ <Button
+ data-ws-id="10"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1kc4g4w c1hi2fgx c1jrmp29 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie c157d2k6"
+ >
<Text data-ws-id="12" data-ws-component="Text">
{"About"}
</Text>
- <Box data-ws-id="13" data-ws-component="Box">
+ <Box
+ data-ws-id="13"
+ data-ws-component="Box"
+ className="ck5mafm cm547tf c18dp5gp clw3og8 c1qmz361 cu8n5i6 cqhjzs2 c1498b83"
+ >
<HtmlEmbed
data-ws-id="15"
data-ws-component="HtmlEmbed"
@@ -65,12 +75,25 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="17"
data-ws-component="NavigationMenuContent"
data-ws-index="0"
+ className="c17k6ftv ci9y33x c1kb88y7 cbgnvea c1y5f9qa cjw7gx9 c1mdun74 c1bfvzwl"
>
- <Box data-ws-id="19" data-ws-component="Box">
- <Box data-ws-id="21" data-ws-component="Box">
+ <Box
+ data-ws-id="19"
+ data-ws-component="Box"
+ className="c6gk6ar cb99ak4 ctl64vj cbxivag c18gyxfs c1peybss chh2z1n"
+ >
+ <Box
+ data-ws-id="21"
+ data-ws-component="Box"
+ className="c1af0hjb c1y5f9qa cjw7gx9 c1mdun74 c1bfvzwl c1187wgd cym38jd cqimob0 c2tr68t cjdtj3f"
+ >
{""}
</Box>
- <Box data-ws-id="23" data-ws-component="Box">
+ <Box
+ data-ws-id="23"
+ data-ws-component="Box"
+ className="c88y2pm c6gk6ar cb99ak4 ctl64vj c13wsd00"
+ >
<NavigationMenuLink
data-ws-id="25"
data-ws-component="NavigationMenuLink"
@@ -79,11 +102,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="26"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/sheet"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="29" data-ws-component="Text">
+ <Text
+ data-ws-id="29"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Sheet"}
</Text>
- <Paragraph data-ws-id="31" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="31"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"Extends the Dialog component to display content that complements the main content of the screen."
}
@@ -100,11 +132,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
href={
"https://ui.shadcn.com/docs/components/navigation-menu"
}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="37" data-ws-component="Text">
+ <Text
+ data-ws-id="37"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Navigation Menu"}
</Text>
- <Paragraph data-ws-id="39" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="39"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{"A collection of links for navigating websites."}
</Paragraph>
</Link>
@@ -117,11 +158,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="42"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/tabs"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="45" data-ws-component="Text">
+ <Text
+ data-ws-id="45"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Tabs"}
</Text>
- <Paragraph data-ws-id="47" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="47"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"A set of layered sections of content—known as tab panels—that are displayed one at a time."
}
@@ -141,11 +191,19 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="50"
data-ws-component="NavigationMenuTrigger"
>
- <Button data-ws-id="51" data-ws-component="Button">
+ <Button
+ data-ws-id="51"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1kc4g4w c1hi2fgx c1jrmp29 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie c157d2k6"
+ >
<Text data-ws-id="53" data-ws-component="Text">
{"Components"}
</Text>
- <Box data-ws-id="54" data-ws-component="Box">
+ <Box
+ data-ws-id="54"
+ data-ws-component="Box"
+ className="ck5mafm cm547tf c18dp5gp clw3og8 c1qmz361 cu8n5i6 cqhjzs2 c1498b83"
+ >
<HtmlEmbed
data-ws-id="56"
data-ws-component="HtmlEmbed"
@@ -160,9 +218,18 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="58"
data-ws-component="NavigationMenuContent"
data-ws-index="1"
+ className="c17k6ftv ci9y33x c1kb88y7 cbgnvea c1y5f9qa cjw7gx9 c1mdun74 c1bfvzwl"
>
- <Box data-ws-id="60" data-ws-component="Box">
- <Box data-ws-id="62" data-ws-component="Box">
+ <Box
+ data-ws-id="60"
+ data-ws-component="Box"
+ className="c6gk6ar cb99ak4 ctl64vj c1hxtwzc c1j0bzjz cbjj14v c15sjadq"
+ >
+ <Box
+ data-ws-id="62"
+ data-ws-component="Box"
+ className="c88y2pm c6gk6ar cb99ak4 ctl64vj c13wsd00"
+ >
<NavigationMenuLink
data-ws-id="64"
data-ws-component="NavigationMenuLink"
@@ -171,11 +238,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="65"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/accordion"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="68" data-ws-component="Text">
+ <Text
+ data-ws-id="68"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Accordion"}
</Text>
- <Paragraph data-ws-id="70" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="70"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"A vertically stacked set of interactive headings that each reveal a section of content."
}
@@ -190,11 +266,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="73"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/dialog"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="76" data-ws-component="Text">
+ <Text
+ data-ws-id="76"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Dialog"}
</Text>
- <Paragraph data-ws-id="78" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="78"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"A window overlaid on either the primary window or another dialog window, rendering the content underneath inert."
}
@@ -209,11 +294,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="81"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/collapsible"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="84" data-ws-component="Text">
+ <Text
+ data-ws-id="84"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Collapsible"}
</Text>
- <Paragraph data-ws-id="86" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="86"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"An interactive component which expands/collapses a panel."
}
@@ -221,7 +315,11 @@ const Page = (_props: { params: Params; resources: Resources }) => {
</Link>
</NavigationMenuLink>
</Box>
- <Box data-ws-id="88" data-ws-component="Box">
+ <Box
+ data-ws-id="88"
+ data-ws-component="Box"
+ className="c88y2pm c6gk6ar cb99ak4 ctl64vj c13wsd00"
+ >
<NavigationMenuLink
data-ws-id="90"
data-ws-component="NavigationMenuLink"
@@ -230,11 +328,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="91"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/popover"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="94" data-ws-component="Text">
+ <Text
+ data-ws-id="94"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Popover"}
</Text>
- <Paragraph data-ws-id="96" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="96"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"Displays rich content in a portal, triggered by a button."
}
@@ -249,11 +356,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="99"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/tooltip"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="102" data-ws-component="Text">
+ <Text
+ data-ws-id="102"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Tooltip"}
</Text>
- <Paragraph data-ws-id="104" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="104"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it."
}
@@ -268,11 +384,20 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="107"
data-ws-component="Link"
href={"https://ui.shadcn.com/docs/components/button"}
+ className="c1wv658c c6gk6ar c13wsd00 c1hl4mbg cu0fd6l c8098d3 cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx c16a2e8i c1y90k37 cvjxq2s chhysup c601nqx c9i3lxo c1sz664l cm8bc7h c8xqq0k cjs8iie cbt1ziu c1ci4uzu"
>
- <Text data-ws-id="110" data-ws-component="Text">
+ <Text
+ data-ws-id="110"
+ data-ws-component="Text"
+ className="c1mfk609 cvjxq2s cwry1sa"
+ >
{"Button"}
</Text>
- <Paragraph data-ws-id="112" data-ws-component="Paragraph">
+ <Paragraph
+ data-ws-id="112"
+ data-ws-component="Paragraph"
+ className="c3rzppk c17ybgbw c1u5xdcd cdf5ze5 c1e2gixt c16sc1pt c78rgey c1mxykr c1mfk609 c18mq0f5 caa8yt3"
+ >
{
"Displays a button or a component that looks like a button."
}
@@ -292,16 +417,25 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="115"
data-ws-component="NavigationMenuLink"
>
- <Link data-ws-id="116" data-ws-component="Link">
+ <Link
+ data-ws-id="116"
+ data-ws-component="Link"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1kc4g4w c1hi2fgx chhysup c2a7z25 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
{"Standalone"}
</Link>
</NavigationMenuLink>
</NavigationMenuItem>
</NavigationMenuList>
- <Box data-ws-id="118" data-ws-component="Box">
+ <Box
+ data-ws-id="118"
+ data-ws-component="Box"
+ className="c1kb88y7 c17k6ftv cd2po1q c6gk6ar cvzkkb6"
+ >
<NavigationMenuViewport
data-ws-id="120"
data-ws-component="NavigationMenuViewport"
+ className="cnhoj7b c1t5p0zw c1e2gixt cym38jd cqimob0 c2tr68t cjdtj3f c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c4mw8gp cj0w9yo cbzcu1y c1srbwx8 cr0e7oa"
/>
</Box>
</NavigationMenu>
@@ -515,724 +649,1718 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="1"] {
- position: relative;
+}@media all {
+ .cnhoj7b {
+ position: relative
+ }
+ .c1a0z5in {
max-width: max-content
}
- [data-ws-id="6"] {
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- padding-bottom: 0px;
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- display: flex;
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 0%;
- list-style-type: none;
- align-items: center;
- justify-content: center;
- row-gap: 0.25rem;
+ .c1hxtwzc {
+ padding-left: 0px
+ }
+ .c1j0bzjz {
+ padding-right: 0px
+ }
+ .cbjj14v {
+ padding-top: 0px
+ }
+ .c15sjadq {
+ padding-bottom: 0px
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cn4ngym {
+ flex-grow: 1
+ }
+ .c1ee1pe1 {
+ flex-shrink: 1
+ }
+ .c1xcrn9h {
+ flex-basis: 0%
+ }
+ .csrd2h5 {
+ list-style-type: none
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
column-gap: 0.25rem
}
- [data-ws-id="10"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
+ }
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c1jrmp29 {
--navigation-menu-trigger-icon-transform: 0deg
}
- [data-ws-id="10"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="10"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="10"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="10"][data-state=open] {
+ .c157d2k6[data-state=open] {
--navigation-menu-trigger-icon-transform: 180deg
}
- [data-ws-id="13"] {
- margin-left: 0.25rem;
- rotate: var(--navigation-menu-trigger-icon-transform);
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .ck5mafm {
+ margin-left: 0.25rem
+ }
+ .cm547tf {
+ rotate: var(--navigation-menu-trigger-icon-transform)
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .c1498b83 {
transition-duration: 200ms
}
- [data-ws-id="17"] {
- left: 0px;
- top: 0px;
- position: absolute;
- width: max-content;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 1rem;
+ .c17k6ftv {
+ left: 0px
+ }
+ .ci9y33x {
+ top: 0px
+ }
+ .c1kb88y7 {
+ position: absolute
+ }
+ .cbgnvea {
+ width: max-content
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
padding-bottom: 1rem
}
- [data-ws-id="19"] {
- display: flex;
- row-gap: 1rem;
- column-gap: 1rem;
- padding-left: 0.5rem;
- padding-right: 0.5rem;
- padding-top: 0.5rem;
+ .c6gk6ar {
+ display: flex
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .cbxivag {
+ padding-left: 0.5rem
+ }
+ .c18gyxfs {
+ padding-right: 0.5rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
padding-bottom: 0.5rem
}
- [data-ws-id="21"] {
- background-color: rgba(226, 232, 240, 1);
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 1rem;
- padding-bottom: 1rem;
- width: 12rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
+ .c1af0hjb {
+ background-color: rgba(226, 232, 240, 1)
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .c1187wgd {
+ width: 12rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
border-bottom-left-radius: 0.375rem
}
- [data-ws-id="23"] {
- width: 16rem;
- display: flex;
- row-gap: 1rem;
- column-gap: 1rem;
+ .c88y2pm {
+ width: 16rem
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c13wsd00 {
flex-direction: column
}
- [data-ws-id="26"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c1wv658c {
+ color: inherit
}
- [data-ws-id="26"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c6gk6ar {
+ display: flex
}
- [data-ws-id="26"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c13wsd00 {
+ flex-direction: column
}
- [data-ws-id="29"] {
- font-size: 0.875rem;
- line-height: 1;
- font-weight: 500
+ .c1hl4mbg {
+ user-select: none
}
- [data-ws-id="31"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .cu0fd6l {
+ row-gap: 0.25rem
}
- [data-ws-id="34"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c8098d3 {
+ column-gap: 0.25rem
}
- [data-ws-id="34"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .cym38jd {
+ border-top-left-radius: 0.375rem
}
- [data-ws-id="34"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
}
- [data-ws-id="37"] {
- font-size: 0.875rem;
- line-height: 1;
- font-weight: 500
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
}
- [data-ws-id="39"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
}
- [data-ws-id="42"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="42"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="42"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="45"] {
- font-size: 0.875rem;
- line-height: 1;
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
font-weight: 500
}
- [data-ws-id="47"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .c3rzppk {
+ margin-left: 0px
}
- [data-ws-id="51"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- --navigation-menu-trigger-icon-transform: 0deg
+ .c17ybgbw {
+ margin-right: 0px
}
- [data-ws-id="51"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
+ .c1u5xdcd {
+ margin-top: 0px
}
- [data-ws-id="51"]:disabled {
- pointer-events: none;
- opacity: 0.5
+ .cdf5ze5 {
+ margin-bottom: 0px
}
- [data-ws-id="51"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c1e2gixt {
+ overflow: hidden
}
- [data-ws-id="51"][data-state=open] {
- --navigation-menu-trigger-icon-transform: 180deg
+ .c16sc1pt {
+ display: -webkit-box
}
- [data-ws-id="54"] {
- margin-left: 0.25rem;
- rotate: var(--navigation-menu-trigger-icon-transform);
- height: 1rem;
- width: 1rem;
- flex-grow: 0;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
- transition-duration: 200ms
+ .c78rgey {
+ -webkit-box-orient: vertical
}
- [data-ws-id="58"] {
- left: 0px;
- top: 0px;
- position: absolute;
- width: max-content;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 1rem;
- padding-bottom: 1rem
+ .c1mxykr {
+ -webkit-line-clamp: 2
}
- [data-ws-id="60"] {
- display: flex;
- row-gap: 1rem;
- column-gap: 1rem;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- padding-bottom: 0px
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
}
- [data-ws-id="62"] {
- width: 16rem;
- display: flex;
- row-gap: 1rem;
- column-gap: 1rem;
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
flex-direction: column
}
- [data-ws-id="65"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c1hl4mbg {
+ user-select: none
}
- [data-ws-id="65"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .cu0fd6l {
+ row-gap: 0.25rem
}
- [data-ws-id="65"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c8098d3 {
+ column-gap: 0.25rem
}
- [data-ws-id="68"] {
- font-size: 0.875rem;
- line-height: 1;
- font-weight: 500
+ .cym38jd {
+ border-top-left-radius: 0.375rem
}
- [data-ws-id="70"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
}
- [data-ws-id="73"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
}
- [data-ws-id="73"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
}
- [data-ws-id="73"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c1kc4g4w {
+ padding-left: 0.75rem
}
- [data-ws-id="76"] {
- font-size: 0.875rem;
- line-height: 1;
- font-weight: 500
+ .c1hi2fgx {
+ padding-right: 0.75rem
}
- [data-ws-id="78"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .c16a2e8i {
+ padding-top: 0.75rem
}
- [data-ws-id="81"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="81"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="81"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="84"] {
- font-size: 0.875rem;
- line-height: 1;
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
font-weight: 500
}
- [data-ws-id="86"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="88"] {
- width: 16rem;
- display: flex;
- row-gap: 1rem;
- column-gap: 1rem;
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
flex-direction: column
}
- [data-ws-id="91"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c1hl4mbg {
+ user-select: none
}
- [data-ws-id="91"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .cu0fd6l {
+ row-gap: 0.25rem
}
- [data-ws-id="91"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c8098d3 {
+ column-gap: 0.25rem
}
- [data-ws-id="94"] {
- font-size: 0.875rem;
- line-height: 1;
- font-weight: 500
+ .cym38jd {
+ border-top-left-radius: 0.375rem
}
- [data-ws-id="96"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
}
- [data-ws-id="99"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="99"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="99"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="102"] {
- font-size: 0.875rem;
- line-height: 1;
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
font-weight: 500
}
- [data-ws-id="104"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="107"] {
- color: inherit;
- display: flex;
- flex-direction: column;
- user-select: none;
- row-gap: 0.25rem;
- column-gap: 0.25rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- line-height: 1;
- text-decoration-line: none;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px
+ .c1inucbi {
+ border-top-style: solid
}
- [data-ws-id="107"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c1dab7w1 {
+ border-right-style: solid
}
- [data-ws-id="107"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
- color: rgba(15, 23, 42, 1)
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
}
- [data-ws-id="110"] {
- font-size: 0.875rem;
- line-height: 1;
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
font-weight: 500
}
- [data-ws-id="112"] {
- margin-left: 0px;
- margin-right: 0px;
- margin-top: 0px;
- margin-bottom: 0px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 0.875rem;
- line-height: 1.375;
- color: rgba(100, 116, 139, 1)
+ .c1b8xvex {
+ height: 2.5rem
}
- [data-ws-id="116"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- text-decoration-line: none;
- color: currentColor
+ .c1kc4g4w {
+ padding-left: 0.75rem
}
- [data-ws-id="116"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c1jrmp29 {
+ --navigation-menu-trigger-icon-transform: 0deg
+ }
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="116"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="116"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="118"] {
- position: absolute;
- left: 0px;
- top: 100%;
- display: flex;
- justify-content: center
+ .c157d2k6[data-state=open] {
+ --navigation-menu-trigger-icon-transform: 180deg
}
- [data-ws-id="120"] {
- position: relative;
- margin-top: 0.375rem;
- overflow: hidden;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(2, 8, 23, 1);
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
- height: var(--radix-navigation-menu-viewport-height);
+ .ck5mafm {
+ margin-left: 0.25rem
+ }
+ .cm547tf {
+ rotate: var(--navigation-menu-trigger-icon-transform)
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .c1498b83 {
+ transition-duration: 200ms
+ }
+ .c17k6ftv {
+ left: 0px
+ }
+ .ci9y33x {
+ top: 0px
+ }
+ .c1kb88y7 {
+ position: absolute
+ }
+ .cbgnvea {
+ width: max-content
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c1hxtwzc {
+ padding-left: 0px
+ }
+ .c1j0bzjz {
+ padding-right: 0px
+ }
+ .cbjj14v {
+ padding-top: 0px
+ }
+ .c15sjadq {
+ padding-bottom: 0px
+ }
+ .c88y2pm {
+ width: 16rem
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c88y2pm {
+ width: 16rem
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1wv658c {
+ color: inherit
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
+ column-gap: 0.25rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c16a2e8i {
+ padding-top: 0.75rem
+ }
+ .c1y90k37 {
+ padding-bottom: 0.75rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
+ outline-offset: 2px
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .cvjxq2s {
+ line-height: 1
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c3rzppk {
+ margin-left: 0px
+ }
+ .c17ybgbw {
+ margin-right: 0px
+ }
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .c16sc1pt {
+ display: -webkit-box
+ }
+ .c78rgey {
+ -webkit-box-orient: vertical
+ }
+ .c1mxykr {
+ -webkit-line-clamp: 2
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c18mq0f5 {
+ line-height: 1.375
+ }
+ .caa8yt3 {
+ color: rgba(100, 116, 139, 1)
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
+ }
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .chhysup {
+ text-decoration-line: none
+ }
+ .c2a7z25 {
+ color: currentColor
+ }
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
+ }
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
+ opacity: 0.5
+ }
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
+ color: rgba(15, 23, 42, 1)
+ }
+ .c1kb88y7 {
+ position: absolute
+ }
+ .c17k6ftv {
+ left: 0px
+ }
+ .cd2po1q {
+ top: 100%
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .c1t5p0zw {
+ margin-top: 0.375rem
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c4mw8gp {
+ background-color: rgba(255, 255, 255, 1)
+ }
+ .cj0w9yo {
+ color: rgba(2, 8, 23, 1)
+ }
+ .cbzcu1y {
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)
+ }
+ .c1srbwx8 {
+ height: var(--radix-navigation-menu-viewport-height)
+ }
+ .cr0e7oa {
width: var(--radix-navigation-menu-viewport-width)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/popover.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/popover.stories.tsx
index 8064f54b25..99325ba15b 100644
--- a/packages/sdk-components-react-radix/src/__generated__/popover.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/popover.stories.tsx
@@ -27,11 +27,19 @@ const Page = (_props: { params: Params; resources: Resources }) => {
onOpenChange={onOpenChange}
>
<PopoverTrigger data-ws-id="5" data-ws-component="PopoverTrigger">
- <Button data-ws-id="6" data-ws-component="Button">
+ <Button
+ data-ws-id="6"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1y5f9qa cjw7gx9 c1peybss chh2z1n c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
{"Button"}
</Button>
</PopoverTrigger>
- <PopoverContent data-ws-id="8" data-ws-component="PopoverContent">
+ <PopoverContent
+ data-ws-id="8"
+ data-ws-component="PopoverContent"
+ className="c1wyidsg c1s33lcz cym38jd cqimob0 c2tr68t cjdtj3f c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c4mw8gp c1y5f9qa cjw7gx9 c1mdun74 c1bfvzwl cj0w9yo ci3o5ma c601nqx c9i3lxo c1sz664l cm8bc7h"
+ >
<Text data-ws-id="10" data-ws-component="Text">
{"The text you can edit"}
</Text>
@@ -181,82 +189,200 @@ html {margin: 0; display: grid; min-height: 100%}
outline-width: 1px;
min-height: 1em
}
-}
-@media all {
- [data-ws-id="6"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 0.5rem;
+}@media all {
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
padding-bottom: 0.5rem
}
- [data-ws-id="6"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="6"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="6"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="8"] {
- z-index: 50;
- width: 18rem;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 1);
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 1rem;
- padding-bottom: 1rem;
- color: rgba(2, 8, 23, 1);
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c1s33lcz {
+ width: 18rem
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c4mw8gp {
+ background-color: rgba(255, 255, 255, 1)
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1mdun74 {
+ padding-top: 1rem
+ }
+ .c1bfvzwl {
+ padding-bottom: 1rem
+ }
+ .cj0w9yo {
+ color: rgba(2, 8, 23, 1)
+ }
+ .ci3o5ma {
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/radio-group.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/radio-group.stories.tsx
index 0593aea488..332153ab8c 100644
--- a/packages/sdk-components-react-radix/src/__generated__/radio-group.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/radio-group.stories.tsx
@@ -26,12 +26,18 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-component="RadioGroup"
value={radioGroupValue}
onValueChange={onValueChange}
+ className="c6gk6ar c13wsd00 cgt00fz cydvc77"
>
- <Label data-ws-id="6" data-ws-component="Label">
+ <Label
+ data-ws-id="6"
+ data-ws-component="Label"
+ className="c6gk6ar c4v7k5r cgt00fz cydvc77"
+ >
<RadioGroupItem
data-ws-id="8"
data-ws-component="RadioGroupItem"
value={"default"}
+ className="c1rc9sce c18dp5gp clw3og8 c17f8p6x c15ce0qo c1yisi8r cpvsov c1inucbi c1dab7w1 c1uf7v01 czynn8e cuelx18 c17v08sn c1czmfdb c8nta89 cgassre c1ndsw6v cjrlou9 c945vvj c132tyaz c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l cegrmbm c1grhw0w"
>
<RadioGroupIndicator
data-ws-id="11"
@@ -50,11 +56,16 @@ const Page = (_props: { params: Params; resources: Resources }) => {
{"Default"}
</Text>
</Label>
- <Label data-ws-id="15" data-ws-component="Label">
+ <Label
+ data-ws-id="15"
+ data-ws-component="Label"
+ className="c6gk6ar c4v7k5r cgt00fz cydvc77"
+ >
<RadioGroupItem
data-ws-id="17"
data-ws-component="RadioGroupItem"
value={"comfortable"}
+ className="c1rc9sce c18dp5gp clw3og8 c17f8p6x c15ce0qo c1yisi8r cpvsov c1inucbi c1dab7w1 c1uf7v01 czynn8e cuelx18 c17v08sn c1czmfdb c8nta89 cgassre c1ndsw6v cjrlou9 c945vvj c132tyaz c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l cegrmbm c1grhw0w"
>
<RadioGroupIndicator
data-ws-id="20"
@@ -73,11 +84,16 @@ const Page = (_props: { params: Params; resources: Resources }) => {
{"Comfortable"}
</Text>
</Label>
- <Label data-ws-id="24" data-ws-component="Label">
+ <Label
+ data-ws-id="24"
+ data-ws-component="Label"
+ className="c6gk6ar c4v7k5r cgt00fz cydvc77"
+ >
<RadioGroupItem
data-ws-id="26"
data-ws-component="RadioGroupItem"
value={"compact"}
+ className="c1rc9sce c18dp5gp clw3og8 c17f8p6x c15ce0qo c1yisi8r cpvsov c1inucbi c1dab7w1 c1uf7v01 czynn8e cuelx18 c17v08sn c1czmfdb c8nta89 cgassre c1ndsw6v cjrlou9 c945vvj c132tyaz c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l cegrmbm c1grhw0w"
>
<RadioGroupIndicator
data-ws-id="29"
@@ -271,129 +287,287 @@ html {margin: 0; display: grid; min-height: 100%}
outline-width: 1px;
min-height: 1em
}
-}
-@media all {
- [data-ws-id="1"] {
- display: flex;
- flex-direction: column;
- row-gap: 0.5rem;
+}@media all {
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .cgt00fz {
+ row-gap: 0.5rem
+ }
+ .cydvc77 {
column-gap: 0.5rem
}
- [data-ws-id="6"] {
- display: flex;
- align-items: center;
- row-gap: 0.5rem;
+ .c4v7k5r {
+ align-items: center
+ }
+ .cgt00fz {
+ row-gap: 0.5rem
+ }
+ .cydvc77 {
column-gap: 0.5rem
}
- [data-ws-id="8"] {
- aspect-ratio: 1 / 1;
- height: 1rem;
- width: 1rem;
- border-top-left-radius: 9999px;
- border-top-right-radius: 9999px;
- border-bottom-right-radius: 9999px;
- border-bottom-left-radius: 9999px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(15, 23, 42, 1);
- border-right-color: rgba(15, 23, 42, 1);
- border-bottom-color: rgba(15, 23, 42, 1);
- border-left-color: rgba(15, 23, 42, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
+ .c1rc9sce {
+ aspect-ratio: 1 / 1
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c17f8p6x {
+ border-top-left-radius: 9999px
+ }
+ .c15ce0qo {
+ border-top-right-radius: 9999px
+ }
+ .c1yisi8r {
+ border-bottom-right-radius: 9999px
+ }
+ .cpvsov {
+ border-bottom-left-radius: 9999px
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .cuelx18 {
+ border-top-color: rgba(15, 23, 42, 1)
+ }
+ .c17v08sn {
+ border-right-color: rgba(15, 23, 42, 1)
+ }
+ .c1czmfdb {
+ border-bottom-color: rgba(15, 23, 42, 1)
+ }
+ .c8nta89 {
+ border-left-color: rgba(15, 23, 42, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c132tyaz {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="8"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="8"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="15"] {
- display: flex;
- align-items: center;
- row-gap: 0.5rem;
+ .c4v7k5r {
+ align-items: center
+ }
+ .cgt00fz {
+ row-gap: 0.5rem
+ }
+ .cydvc77 {
column-gap: 0.5rem
}
- [data-ws-id="17"] {
- aspect-ratio: 1 / 1;
- height: 1rem;
- width: 1rem;
- border-top-left-radius: 9999px;
- border-top-right-radius: 9999px;
- border-bottom-right-radius: 9999px;
- border-bottom-left-radius: 9999px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(15, 23, 42, 1);
- border-right-color: rgba(15, 23, 42, 1);
- border-bottom-color: rgba(15, 23, 42, 1);
- border-left-color: rgba(15, 23, 42, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
+ .c1rc9sce {
+ aspect-ratio: 1 / 1
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c17f8p6x {
+ border-top-left-radius: 9999px
+ }
+ .c15ce0qo {
+ border-top-right-radius: 9999px
+ }
+ .c1yisi8r {
+ border-bottom-right-radius: 9999px
+ }
+ .cpvsov {
+ border-bottom-left-radius: 9999px
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .cuelx18 {
+ border-top-color: rgba(15, 23, 42, 1)
+ }
+ .c17v08sn {
+ border-right-color: rgba(15, 23, 42, 1)
+ }
+ .c1czmfdb {
+ border-bottom-color: rgba(15, 23, 42, 1)
+ }
+ .c8nta89 {
+ border-left-color: rgba(15, 23, 42, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c132tyaz {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="17"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="17"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="24"] {
- display: flex;
- align-items: center;
- row-gap: 0.5rem;
+ .c4v7k5r {
+ align-items: center
+ }
+ .cgt00fz {
+ row-gap: 0.5rem
+ }
+ .cydvc77 {
column-gap: 0.5rem
}
- [data-ws-id="26"] {
- aspect-ratio: 1 / 1;
- height: 1rem;
- width: 1rem;
- border-top-left-radius: 9999px;
- border-top-right-radius: 9999px;
- border-bottom-right-radius: 9999px;
- border-bottom-left-radius: 9999px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(15, 23, 42, 1);
- border-right-color: rgba(15, 23, 42, 1);
- border-bottom-color: rgba(15, 23, 42, 1);
- border-left-color: rgba(15, 23, 42, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
+ .c1rc9sce {
+ aspect-ratio: 1 / 1
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c17f8p6x {
+ border-top-left-radius: 9999px
+ }
+ .c15ce0qo {
+ border-top-right-radius: 9999px
+ }
+ .c1yisi8r {
+ border-bottom-right-radius: 9999px
+ }
+ .cpvsov {
+ border-bottom-left-radius: 9999px
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .cuelx18 {
+ border-top-color: rgba(15, 23, 42, 1)
+ }
+ .c17v08sn {
+ border-right-color: rgba(15, 23, 42, 1)
+ }
+ .c1czmfdb {
+ border-bottom-color: rgba(15, 23, 42, 1)
+ }
+ .c8nta89 {
+ border-left-color: rgba(15, 23, 42, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c132tyaz {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="26"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="26"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/select.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/select.stories.tsx
index 9a110a629c..0d51cc1d91 100644
--- a/packages/sdk-components-react-radix/src/__generated__/select.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/select.stories.tsx
@@ -37,23 +37,37 @@ const Page = (_props: { params: Params; resources: Resources }) => {
open={selectOpen}
onOpenChange={onOpenChange}
>
- <SelectTrigger data-ws-id="8" data-ws-component="SelectTrigger">
+ <SelectTrigger
+ data-ws-id="8"
+ data-ws-component="SelectTrigger"
+ className="c6gk6ar c1b8xvex c1i2mn37 c4v7k5r csg71e3 cym38jd cqimob0 c2tr68t cjdtj3f c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy c1kc4g4w c1hi2fgx c1peybss chh2z1n c1mfk609 c121vm9z c13c0q0m c3jm2m1 c1tqca1w chqc64d cjfm7wi c175y1wr cegrmbm c1grhw0w"
+ >
<SelectValue
data-ws-id="10"
data-ws-component="SelectValue"
placeholder={"Theme"}
/>
</SelectTrigger>
- <SelectContent data-ws-id="12" data-ws-component="SelectContent">
- <SelectViewport data-ws-id="14" data-ws-component="SelectViewport">
+ <SelectContent
+ data-ws-id="12"
+ data-ws-component="SelectContent"
+ className="cnhoj7b c1wyidsg c82b0cd c1e2gixt cym38jd cqimob0 c2tr68t cjdtj3f c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c4mw8gp cj0w9yo ci3o5ma"
+ >
+ <SelectViewport
+ data-ws-id="14"
+ data-ws-component="SelectViewport"
+ className="ckc6u2x cue5i4p c1wiz3di c1364qo7 cu1cnl4 c1i2mn37 c1lciyms"
+ >
<SelectItem
data-ws-id="16"
data-ws-component="SelectItem"
value={"light"}
+ className="cnhoj7b c6gk6ar c1i2mn37 ch0kuv9 c1hl4mbg c4v7k5r cym38jd cqimob0 c2tr68t cjdtj3f cs5tzic cl10cx8 c11bwakb c18gyxfs c1mfk609 c121vm9z c601nqx c9i3lxo c1sz664l cm8bc7h cbt1ziu c1ci4uzu c144pucd c4g4hty"
>
<SelectItemIndicator
data-ws-id="19"
data-ws-component="SelectItemIndicator"
+ className="c1kb88y7 col5989 c6gk6ar cw8nk89 c192xk4i c4v7k5r cvzkkb6"
>
<HtmlEmbed
data-ws-id="21"
@@ -74,10 +88,12 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="24"
data-ws-component="SelectItem"
value={"dark"}
+ className="cnhoj7b c6gk6ar c1i2mn37 ch0kuv9 c1hl4mbg c4v7k5r cym38jd cqimob0 c2tr68t cjdtj3f cs5tzic cl10cx8 c11bwakb c18gyxfs c1mfk609 c121vm9z c601nqx c9i3lxo c1sz664l cm8bc7h cbt1ziu c1ci4uzu c144pucd c4g4hty"
>
<SelectItemIndicator
data-ws-id="27"
data-ws-component="SelectItemIndicator"
+ className="c1kb88y7 col5989 c6gk6ar cw8nk89 c192xk4i c4v7k5r cvzkkb6"
>
<HtmlEmbed
data-ws-id="29"
@@ -98,10 +114,12 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="32"
data-ws-component="SelectItem"
value={"system"}
+ className="cnhoj7b c6gk6ar c1i2mn37 ch0kuv9 c1hl4mbg c4v7k5r cym38jd cqimob0 c2tr68t cjdtj3f cs5tzic cl10cx8 c11bwakb c18gyxfs c1mfk609 c121vm9z c601nqx c9i3lxo c1sz664l cm8bc7h cbt1ziu c1ci4uzu c144pucd c4g4hty"
>
<SelectItemIndicator
data-ws-id="35"
data-ws-component="SelectItemIndicator"
+ className="c1kb88y7 col5989 c6gk6ar cw8nk89 c192xk4i c4v7k5r cvzkkb6"
>
<HtmlEmbed
data-ws-id="37"
@@ -296,201 +314,464 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="8"] {
- display: flex;
- height: 2.5rem;
- width: 100%;
- align-items: center;
- justify-content: space-between;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.5rem;
- padding-bottom: 0.5rem;
- font-size: 0.875rem;
+}@media all {
+ .c6gk6ar {
+ display: flex
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1i2mn37 {
+ width: 100%
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .csg71e3 {
+ justify-content: space-between
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
+ padding-bottom: 0.5rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
line-height: 1.25rem
}
- [data-ws-id="8"]::placeholder {
+ .c13c0q0m::placeholder {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="8"]:focus {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c3jm2m1:focus {
+ outline-width: 2px
+ }
+ .c1tqca1w:focus {
+ outline-style: solid
+ }
+ .chqc64d:focus {
+ outline-color: transparent
+ }
+ .cjfm7wi:focus {
+ outline-offset: 2px
+ }
+ .c175y1wr:focus {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="8"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="12"] {
- position: relative;
- z-index: 50;
- min-width: 8rem;
- overflow: hidden;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 1);
- color: rgba(2, 8, 23, 1);
+ .cnhoj7b {
+ position: relative
+ }
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c82b0cd {
+ min-width: 8rem
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c4mw8gp {
+ background-color: rgba(255, 255, 255, 1)
+ }
+ .cj0w9yo {
+ color: rgba(2, 8, 23, 1)
+ }
+ .ci3o5ma {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)
}
- [data-ws-id="14"] {
- padding-left: 0.25rem;
- padding-right: 0.25rem;
- padding-top: 0.25rem;
- padding-bottom: 0.25rem;
- height: var(--radix-select-trigger-height);
- width: 100%;
+ .ckc6u2x {
+ padding-left: 0.25rem
+ }
+ .cue5i4p {
+ padding-right: 0.25rem
+ }
+ .c1wiz3di {
+ padding-top: 0.25rem
+ }
+ .c1364qo7 {
+ padding-bottom: 0.25rem
+ }
+ .cu1cnl4 {
+ height: var(--radix-select-trigger-height)
+ }
+ .c1i2mn37 {
+ width: 100%
+ }
+ .c1lciyms {
min-width: var(--radix-select-trigger-width)
}
- [data-ws-id="16"] {
- position: relative;
- display: flex;
- width: 100%;
- cursor: default;
- user-select: none;
- align-items: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- padding-left: 2rem;
- padding-right: 0.5rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .cnhoj7b {
+ position: relative
+ }
+ .c1i2mn37 {
+ width: 100%
+ }
+ .ch0kuv9 {
+ cursor: default
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c11bwakb {
+ padding-left: 2rem
+ }
+ .c18gyxfs {
+ padding-right: 0.5rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="16"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="16"][data-disabled] {
- pointer-events: none;
+ .c144pucd[data-disabled] {
+ pointer-events: none
+ }
+ .c4g4hty[data-disabled] {
opacity: 0.5
}
- [data-ws-id="19"] {
- position: absolute;
- left: 0.5rem;
- display: flex;
- height: 0.875rem;
- width: 0.875rem;
- align-items: center;
+ .c1kb88y7 {
+ position: absolute
+ }
+ .col5989 {
+ left: 0.5rem
+ }
+ .cw8nk89 {
+ height: 0.875rem
+ }
+ .c192xk4i {
+ width: 0.875rem
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
justify-content: center
}
- [data-ws-id="24"] {
- position: relative;
- display: flex;
- width: 100%;
- cursor: default;
- user-select: none;
- align-items: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- padding-left: 2rem;
- padding-right: 0.5rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .cnhoj7b {
+ position: relative
+ }
+ .c1i2mn37 {
+ width: 100%
+ }
+ .ch0kuv9 {
+ cursor: default
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c11bwakb {
+ padding-left: 2rem
+ }
+ .c18gyxfs {
+ padding-right: 0.5rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="24"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="24"][data-disabled] {
- pointer-events: none;
+ .c144pucd[data-disabled] {
+ pointer-events: none
+ }
+ .c4g4hty[data-disabled] {
opacity: 0.5
}
- [data-ws-id="27"] {
- position: absolute;
- left: 0.5rem;
- display: flex;
- height: 0.875rem;
- width: 0.875rem;
- align-items: center;
+ .c1kb88y7 {
+ position: absolute
+ }
+ .col5989 {
+ left: 0.5rem
+ }
+ .cw8nk89 {
+ height: 0.875rem
+ }
+ .c192xk4i {
+ width: 0.875rem
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
justify-content: center
}
- [data-ws-id="32"] {
- position: relative;
- display: flex;
- width: 100%;
- cursor: default;
- user-select: none;
- align-items: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- padding-left: 2rem;
- padding-right: 0.5rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .cnhoj7b {
+ position: relative
+ }
+ .c1i2mn37 {
+ width: 100%
+ }
+ .ch0kuv9 {
+ cursor: default
+ }
+ .c1hl4mbg {
+ user-select: none
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c11bwakb {
+ padding-left: 2rem
+ }
+ .c18gyxfs {
+ padding-right: 0.5rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="32"]:focus {
- background-color: rgba(241, 245, 249, 0.9);
+ .cbt1ziu:focus {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .c1ci4uzu:focus {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="32"][data-disabled] {
- pointer-events: none;
+ .c144pucd[data-disabled] {
+ pointer-events: none
+ }
+ .c4g4hty[data-disabled] {
opacity: 0.5
}
- [data-ws-id="35"] {
- position: absolute;
- left: 0.5rem;
- display: flex;
- height: 0.875rem;
- width: 0.875rem;
- align-items: center;
+ .c1kb88y7 {
+ position: absolute
+ }
+ .col5989 {
+ left: 0.5rem
+ }
+ .cw8nk89 {
+ height: 0.875rem
+ }
+ .c192xk4i {
+ width: 0.875rem
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
justify-content: center
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/sheet.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/sheet.stories.tsx
index 8a66e18b7e..ae25a87e8f 100644
--- a/packages/sdk-components-react-radix/src/__generated__/sheet.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/sheet.stories.tsx
@@ -32,7 +32,11 @@ const Page = (_props: { params: Params; resources: Resources }) => {
onOpenChange={onOpenChange}
>
<DialogTrigger data-ws-id="5" data-ws-component="DialogTrigger">
- <Button data-ws-id="6" data-ws-component="Button">
+ <Button
+ data-ws-id="6"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c347ys1 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
<HtmlEmbed
data-ws-id="8"
data-ws-component="HtmlEmbed"
@@ -42,21 +46,38 @@ const Page = (_props: { params: Params; resources: Resources }) => {
/>
</Button>
</DialogTrigger>
- <DialogOverlay data-ws-id="10" data-ws-component="DialogOverlay">
- <DialogContent data-ws-id="12" data-ws-component="DialogContent">
+ <DialogOverlay
+ data-ws-id="10"
+ data-ws-component="DialogOverlay"
+ className="c1g0ebn8 c17k6ftv co2vb1i ci9y33x ckl9uqx c1wyidsg c15mffxy c1c159w3 c6gk6ar c13wsd00 c19jsld4"
+ >
+ <DialogContent
+ data-ws-id="12"
+ data-ws-component="DialogContent"
+ className="c1i2mn37 c1wyidsg c6gk6ar c13wsd00 cb99ak4 ctl64vj c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy cm3zvb4 c174435h c1xpn2dk c3vgloq cbzcu1y cnhoj7b c1rj6y8a cgfujm0 cn4ngym"
+ >
<Box
data-ws-id="14"
data-ws-component="Box"
tag={"nav"}
role={"navigation"}
>
- <Box data-ws-id="17" data-ws-component="Box">
- <DialogTitle data-ws-id="19" data-ws-component="DialogTitle">
+ <Box
+ data-ws-id="17"
+ data-ws-component="Box"
+ className="c6gk6ar c13wsd00 cu0fd6l c8098d3"
+ >
+ <DialogTitle
+ data-ws-id="19"
+ data-ws-component="DialogTitle"
+ className="c1u5xdcd cdf5ze5 c1ma6tz6 c1kjryeq cs0zr08"
+ >
{"Sheet Title"}
</DialogTitle>
<DialogDescription
data-ws-id="21"
data-ws-component="DialogDescription"
+ className="c1u5xdcd cdf5ze5 c1mfk609 c121vm9z caa8yt3"
>
{"Sheet description text you can edit"}
</DialogDescription>
@@ -65,7 +86,11 @@ const Page = (_props: { params: Params; resources: Resources }) => {
{"The text you can edit"}
</Text>
</Box>
- <DialogClose data-ws-id="24" data-ws-component="DialogClose">
+ <DialogClose
+ data-ws-id="24"
+ data-ws-component="DialogClose"
+ className="c1kb88y7 caboyml c1y1em6x c1d9pxa5 cnjyf56 c1jpjw0a c1lxvq7u c1jcn3uk c6gk6ar c4v7k5r cvzkkb6 c18dp5gp clw3og8 c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l c1v4k4ip c2iozhh c1j5pqo1 cmqevnc cvxnx00 c601nqx c9i3lxo c1sz664l cm8bc7h c1m9udid c175y1wr"
+ >
<HtmlEmbed
data-ws-id="26"
data-ws-component="HtmlEmbed"
@@ -274,149 +299,356 @@ html {margin: 0; display: grid; min-height: 100%}
box-sizing: border-box;
text-transform: none
}
-}
-@media all {
- [data-ws-id="6"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
+}@media all {
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
+ }
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c347ys1 {
width: 2.5rem
}
- [data-ws-id="6"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="6"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="6"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="10"] {
- position: fixed;
- left: 0px;
- right: 0px;
- top: 0px;
- bottom: 0px;
- z-index: 50;
- background-color: rgba(255, 255, 255, 0.8);
- backdrop-filter: blur(0 1px 2px 0 rgb(0 0 0 / 0.05));
- display: flex;
- flex-direction: column;
+ .c1g0ebn8 {
+ position: fixed
+ }
+ .c17k6ftv {
+ left: 0px
+ }
+ .co2vb1i {
+ right: 0px
+ }
+ .ci9y33x {
+ top: 0px
+ }
+ .ckl9uqx {
+ bottom: 0px
+ }
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1c159w3 {
+ backdrop-filter: blur(0 1px 2px 0 rgb(0 0 0 / 0.05))
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .c19jsld4 {
overflow: auto
}
- [data-ws-id="12"] {
- width: 100%;
- z-index: 50;
- display: flex;
- flex-direction: column;
- row-gap: 1rem;
- column-gap: 1rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- padding-left: 1.5rem;
- padding-right: 1.5rem;
- padding-top: 1.5rem;
- padding-bottom: 1.5rem;
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
- position: relative;
- margin-right: auto;
- max-width: 24rem;
+ .c1i2mn37 {
+ width: 100%
+ }
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .cb99ak4 {
+ row-gap: 1rem
+ }
+ .ctl64vj {
+ column-gap: 1rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .cm3zvb4 {
+ padding-left: 1.5rem
+ }
+ .c174435h {
+ padding-right: 1.5rem
+ }
+ .c1xpn2dk {
+ padding-top: 1.5rem
+ }
+ .c3vgloq {
+ padding-bottom: 1.5rem
+ }
+ .cbzcu1y {
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)
+ }
+ .cnhoj7b {
+ position: relative
+ }
+ .c1rj6y8a {
+ margin-right: auto
+ }
+ .cgfujm0 {
+ max-width: 24rem
+ }
+ .cn4ngym {
flex-grow: 1
}
- [data-ws-id="17"] {
- display: flex;
- flex-direction: column;
- row-gap: 0.25rem;
+ .c6gk6ar {
+ display: flex
+ }
+ .c13wsd00 {
+ flex-direction: column
+ }
+ .cu0fd6l {
+ row-gap: 0.25rem
+ }
+ .c8098d3 {
column-gap: 0.25rem
}
- [data-ws-id="19"] {
- margin-top: 0px;
- margin-bottom: 0px;
- line-height: 1.75rem;
- font-size: 1.125rem;
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1ma6tz6 {
+ line-height: 1.75rem
+ }
+ .c1kjryeq {
+ font-size: 1.125rem
+ }
+ .cs0zr08 {
letter-spacing: -0.025em
}
- [data-ws-id="21"] {
- margin-top: 0px;
- margin-bottom: 0px;
- font-size: 0.875rem;
- line-height: 1.25rem;
+ .c1u5xdcd {
+ margin-top: 0px
+ }
+ .cdf5ze5 {
+ margin-bottom: 0px
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .caa8yt3 {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="24"] {
- position: absolute;
- right: 1rem;
- top: 1rem;
- border-top-left-radius: 0.125rem;
- border-top-right-radius: 0.125rem;
- border-bottom-right-radius: 0.125rem;
- border-bottom-left-radius: 0.125rem;
- opacity: 0.7;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 1rem;
- width: 1rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- background-color: transparent;
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
+ .c1kb88y7 {
+ position: absolute
+ }
+ .caboyml {
+ right: 1rem
+ }
+ .c1y1em6x {
+ top: 1rem
+ }
+ .c1d9pxa5 {
+ border-top-left-radius: 0.125rem
+ }
+ .cnjyf56 {
+ border-top-right-radius: 0.125rem
+ }
+ .c1jpjw0a {
+ border-bottom-right-radius: 0.125rem
+ }
+ .c1lxvq7u {
+ border-bottom-left-radius: 0.125rem
+ }
+ .c1jcn3uk {
+ opacity: 0.7
+ }
+ .c6gk6ar {
+ display: flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .c18dp5gp {
+ height: 1rem
+ }
+ .clw3og8 {
+ width: 1rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .c1v4k4ip {
+ border-top-width: 0px
+ }
+ .c2iozhh {
+ border-right-width: 0px
+ }
+ .c1j5pqo1 {
+ border-bottom-width: 0px
+ }
+ .cmqevnc {
+ border-left-width: 0px
+ }
+ .cvxnx00 {
+ background-color: transparent
+ }
+ .c601nqx {
+ outline-width: 2px
+ }
+ .c9i3lxo {
+ outline-style: solid
+ }
+ .c1sz664l {
+ outline-color: transparent
+ }
+ .cm8bc7h {
outline-offset: 2px
}
- [data-ws-id="24"]:hover {
+ .c1m9udid:hover {
opacity: 1
}
- [data-ws-id="24"]:focus {
+ .c175y1wr:focus {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/switch.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/switch.stories.tsx
index 448ad0fca7..f7ae79d195 100644
--- a/packages/sdk-components-react-radix/src/__generated__/switch.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/switch.stories.tsx
@@ -17,8 +17,13 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-component="Switch"
checked={switchChecked}
onCheckedChange={onCheckedChange}
+ className="c1mnuzt9 c1d1at8d c12hfef4 c1qmz361 c1c97wd6 c4v7k5r c17f8p6x c15ce0qo c1yisi8r cpvsov c1inucbi c1dab7w1 c1uf7v01 czynn8e cnwyako cthomhq c1rxblly c1chcr7b c1jdmvgd cro9q3k cunuc6r c1gtx6ev cu8n5i6 cqhjzs2 cxcp0y5 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l cegrmbm c1grhw0w ccop5vc c10u8nhz"
>
- <SwitchThumb data-ws-id="6" data-ws-component="SwitchThumb" />
+ <SwitchThumb
+ data-ws-id="6"
+ data-ws-component="SwitchThumb"
+ className="c18myu9o c13oituv ckaw9ej c16fb3rt c17f8p6x c15ce0qo c1yisi8r cpvsov c15mffxy cbzcu1y c119ylpf cqhjzs2 cxcp0y5 c166bn31 cgmn562"
+ />
</Switch>
</Box>
);
@@ -169,71 +174,152 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="1"] {
- display: inline-flex;
- height: 24px;
- width: 44px;
- flex-grow: 0;
- cursor: pointer;
- align-items: center;
- border-top-left-radius: 9999px;
- border-top-right-radius: 9999px;
- border-bottom-right-radius: 9999px;
- border-bottom-left-radius: 9999px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: transparent;
- border-right-color: transparent;
- border-bottom-color: transparent;
- border-left-color: transparent;
- border-top-width: 2px;
- border-right-width: 2px;
- border-bottom-width: 2px;
- border-left-width: 2px;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+}@media all {
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c1d1at8d {
+ height: 24px
+ }
+ .c12hfef4 {
+ width: 44px
+ }
+ .c1qmz361 {
+ flex-grow: 0
+ }
+ .c1c97wd6 {
+ cursor: pointer
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .c17f8p6x {
+ border-top-left-radius: 9999px
+ }
+ .c15ce0qo {
+ border-top-right-radius: 9999px
+ }
+ .c1yisi8r {
+ border-bottom-right-radius: 9999px
+ }
+ .cpvsov {
+ border-bottom-left-radius: 9999px
+ }
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .cnwyako {
+ border-top-color: transparent
+ }
+ .cthomhq {
+ border-right-color: transparent
+ }
+ .c1rxblly {
+ border-bottom-color: transparent
+ }
+ .c1chcr7b {
+ border-left-color: transparent
+ }
+ .c1jdmvgd {
+ border-top-width: 2px
+ }
+ .cro9q3k {
+ border-right-width: 2px
+ }
+ .cunuc6r {
+ border-bottom-width: 2px
+ }
+ .c1gtx6ev {
+ border-left-width: 2px
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .cxcp0y5 {
transition-duration: 150ms
}
- [data-ws-id="1"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="1"]:disabled {
- cursor: not-allowed;
+ .cegrmbm:disabled {
+ cursor: not-allowed
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="1"][data-state=checked] {
+ .ccop5vc[data-state=checked] {
background-color: rgba(15, 23, 42, 1)
}
- [data-ws-id="1"][data-state=unchecked] {
+ .c10u8nhz[data-state=unchecked] {
background-color: rgba(226, 232, 240, 1)
}
- [data-ws-id="6"] {
- pointer-events: none;
- display: block;
- height: 1.25rem;
- width: 1.25rem;
- border-top-left-radius: 9999px;
- border-top-right-radius: 9999px;
- border-bottom-right-radius: 9999px;
- border-bottom-left-radius: 9999px;
- background-color: rgba(255, 255, 255, 0.8);
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
- transition-property: transform;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c18myu9o {
+ pointer-events: none
+ }
+ .c13oituv {
+ display: block
+ }
+ .ckaw9ej {
+ height: 1.25rem
+ }
+ .c16fb3rt {
+ width: 1.25rem
+ }
+ .c17f8p6x {
+ border-top-left-radius: 9999px
+ }
+ .c15ce0qo {
+ border-top-right-radius: 9999px
+ }
+ .c1yisi8r {
+ border-bottom-right-radius: 9999px
+ }
+ .cpvsov {
+ border-bottom-left-radius: 9999px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .cbzcu1y {
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)
+ }
+ .c119ylpf {
+ transition-property: transform
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .cxcp0y5 {
transition-duration: 150ms
}
- [data-ws-id="6"][data-state=checked] {
+ .c166bn31[data-state=checked] {
transform: translateX(20px)
}
- [data-ws-id="6"][data-state=unchecked] {
+ .cgmn562[data-state=unchecked] {
transform: translateX(0px)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/tabs.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/tabs.stories.tsx
index 0287aabce3..fdff0bcafa 100644
--- a/packages/sdk-components-react-radix/src/__generated__/tabs.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/tabs.stories.tsx
@@ -23,11 +23,16 @@ const Page = (_props: { params: Params; resources: Resources }) => {
value={tabsValue}
onValueChange={onValueChange}
>
- <TabsList data-ws-id="5" data-ws-component="TabsList">
+ <TabsList
+ data-ws-id="5"
+ data-ws-component="TabsList"
+ className="c1mnuzt9 c1b8xvex c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f cqcyl9r ckc6u2x cue5i4p c1wiz3di c1364qo7 caa8yt3"
+ >
<TabsTrigger
data-ws-id="7"
data-ws-component="TabsTrigger"
data-ws-index="0"
+ className="c1mnuzt9 c4v7k5r cvzkkb6 cwmcr0n cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx cs5tzic cl10cx8 c1mfk609 c121vm9z cwry1sa cu8n5i6 cqhjzs2 cxcp0y5 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w cz3we07 c18pp6i cww7dfg"
>
{"Account"}
</TabsTrigger>
@@ -35,6 +40,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="9"
data-ws-component="TabsTrigger"
data-ws-index="1"
+ className="c1mnuzt9 c4v7k5r cvzkkb6 cwmcr0n cym38jd cqimob0 c2tr68t cjdtj3f c1kc4g4w c1hi2fgx cs5tzic cl10cx8 c1mfk609 c121vm9z cwry1sa cu8n5i6 cqhjzs2 cxcp0y5 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w cz3we07 c18pp6i cww7dfg"
>
{"Password"}
</TabsTrigger>
@@ -43,6 +49,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="11"
data-ws-component="TabsContent"
data-ws-index="0"
+ className="c1culj6 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l"
>
{"Make changes to your account here."}
</TabsContent>
@@ -50,6 +57,7 @@ const Page = (_props: { params: Params; resources: Resources }) => {
data-ws-id="13"
data-ws-component="TabsContent"
data-ws-index="1"
+ className="c1culj6 c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l"
>
{"Change your password here."}
</TabsContent>
@@ -219,114 +227,245 @@ html {margin: 0; display: grid; min-height: 100%}
border-left-width: 1px;
outline-width: 1px
}
-}
-@media all {
- [data-ws-id="5"] {
- display: inline-flex;
- height: 2.5rem;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- background-color: rgba(241, 245, 249, 1);
- padding-left: 0.25rem;
- padding-right: 0.25rem;
- padding-top: 0.25rem;
- padding-bottom: 0.25rem;
+}@media all {
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .cqcyl9r {
+ background-color: rgba(241, 245, 249, 1)
+ }
+ .ckc6u2x {
+ padding-left: 0.25rem
+ }
+ .cue5i4p {
+ padding-right: 0.25rem
+ }
+ .c1wiz3di {
+ padding-top: 0.25rem
+ }
+ .c1364qo7 {
+ padding-bottom: 0.25rem
+ }
+ .caa8yt3 {
color: rgba(100, 116, 139, 1)
}
- [data-ws-id="7"] {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- white-space: nowrap;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cwmcr0n {
+ white-space: nowrap
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .cxcp0y5 {
transition-duration: 150ms
}
- [data-ws-id="7"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="7"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="7"][data-state=active] {
- background-color: rgba(255, 255, 255, 0.8);
- color: rgba(2, 8, 23, 1);
+ .cz3we07[data-state=active] {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c18pp6i[data-state=active] {
+ color: rgba(2, 8, 23, 1)
+ }
+ .cww7dfg[data-state=active] {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)
}
- [data-ws-id="9"] {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- white-space: nowrap;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- transition-property: all;
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cwmcr0n {
+ white-space: nowrap
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .cu8n5i6 {
+ transition-property: all
+ }
+ .cqhjzs2 {
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
+ }
+ .cxcp0y5 {
transition-duration: 150ms
}
- [data-ws-id="9"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="9"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="9"][data-state=active] {
- background-color: rgba(255, 255, 255, 0.8);
- color: rgba(2, 8, 23, 1);
+ .cz3we07[data-state=active] {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c18pp6i[data-state=active] {
+ color: rgba(2, 8, 23, 1)
+ }
+ .cww7dfg[data-state=active] {
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)
}
- [data-ws-id="11"] {
+ .c1culj6 {
margin-top: 0.5rem
}
- [data-ws-id="11"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="13"] {
+ .c1culj6 {
margin-top: 0.5rem
}
- [data-ws-id="13"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
}
diff --git a/packages/sdk-components-react-radix/src/__generated__/tooltip.stories.tsx b/packages/sdk-components-react-radix/src/__generated__/tooltip.stories.tsx
index 4cc5c5eca9..2126a75d6e 100644
--- a/packages/sdk-components-react-radix/src/__generated__/tooltip.stories.tsx
+++ b/packages/sdk-components-react-radix/src/__generated__/tooltip.stories.tsx
@@ -27,11 +27,19 @@ const Page = (_props: { params: Params; resources: Resources }) => {
onOpenChange={onOpenChange}
>
<TooltipTrigger data-ws-id="5" data-ws-component="TooltipTrigger">
- <Button data-ws-id="6" data-ws-component="Button">
+ <Button
+ data-ws-id="6"
+ data-ws-component="Button"
+ className="c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c15mffxy c1mnuzt9 c4v7k5r cvzkkb6 cym38jd cqimob0 c2tr68t cjdtj3f c1mfk609 c121vm9z cwry1sa c1b8xvex c1y5f9qa cjw7gx9 c1peybss chh2z1n c1t6bql4 czph7hf cncn1ro cb270vo c1rgsd1l c1srwcmr c1grhw0w c8xqq0k cjs8iie"
+ >
{"Button"}
</Button>
</TooltipTrigger>
- <TooltipContent data-ws-id="8" data-ws-component="TooltipContent">
+ <TooltipContent
+ data-ws-id="8"
+ data-ws-component="TooltipContent"
+ className="c1wyidsg c1e2gixt cym38jd cqimob0 c2tr68t cjdtj3f c1inucbi c1dab7w1 c1uf7v01 czynn8e c6z96ps c9t5qyz c1x5uwe6 csnt51l cgassre c1ndsw6v cjrlou9 c945vvj c4mw8gp c1kc4g4w c1hi2fgx cs5tzic cl10cx8 c1mfk609 c121vm9z cj0w9yo ci3o5ma"
+ >
<Text data-ws-id="10" data-ws-component="Text">
{"The text you can edit"}
</Text>
@@ -181,80 +189,194 @@ html {margin: 0; display: grid; min-height: 100%}
outline-width: 1px;
min-height: 1em
}
-}
-@media all {
- [data-ws-id="6"] {
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 0.8);
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 500;
- height: 2.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-top: 0.5rem;
+}@media all {
+ .c1inucbi {
+ border-top-style: solid
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c15mffxy {
+ background-color: rgba(255, 255, 255, 0.8)
+ }
+ .c1mnuzt9 {
+ display: inline-flex
+ }
+ .c4v7k5r {
+ align-items: center
+ }
+ .cvzkkb6 {
+ justify-content: center
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cwry1sa {
+ font-weight: 500
+ }
+ .c1b8xvex {
+ height: 2.5rem
+ }
+ .c1y5f9qa {
+ padding-left: 1rem
+ }
+ .cjw7gx9 {
+ padding-right: 1rem
+ }
+ .c1peybss {
+ padding-top: 0.5rem
+ }
+ .chh2z1n {
padding-bottom: 0.5rem
}
- [data-ws-id="6"]:focus-visible {
- outline-width: 2px;
- outline-style: solid;
- outline-color: transparent;
- outline-offset: 2px;
+ .c1t6bql4:focus-visible {
+ outline-width: 2px
+ }
+ .czph7hf:focus-visible {
+ outline-style: solid
+ }
+ .cncn1ro:focus-visible {
+ outline-color: transparent
+ }
+ .cb270vo:focus-visible {
+ outline-offset: 2px
+ }
+ .c1rgsd1l:focus-visible {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(148, 163, 184, 1)
}
- [data-ws-id="6"]:disabled {
- pointer-events: none;
+ .c1srwcmr:disabled {
+ pointer-events: none
+ }
+ .c1grhw0w:disabled {
opacity: 0.5
}
- [data-ws-id="6"]:hover {
- background-color: rgba(241, 245, 249, 0.9);
+ .c8xqq0k:hover {
+ background-color: rgba(241, 245, 249, 0.9)
+ }
+ .cjs8iie:hover {
color: rgba(15, 23, 42, 1)
}
- [data-ws-id="8"] {
- z-index: 50;
- overflow: hidden;
- border-top-left-radius: 0.375rem;
- border-top-right-radius: 0.375rem;
- border-bottom-right-radius: 0.375rem;
- border-bottom-left-radius: 0.375rem;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgba(226, 232, 240, 1);
- border-right-color: rgba(226, 232, 240, 1);
- border-bottom-color: rgba(226, 232, 240, 1);
- border-left-color: rgba(226, 232, 240, 1);
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- background-color: rgba(255, 255, 255, 1);
- padding-left: 0.75rem;
- padding-right: 0.75rem;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- font-size: 0.875rem;
- line-height: 1.25rem;
- color: rgba(2, 8, 23, 1);
+ .c1wyidsg {
+ z-index: 50
+ }
+ .c1e2gixt {
+ overflow: hidden
+ }
+ .cym38jd {
+ border-top-left-radius: 0.375rem
+ }
+ .cqimob0 {
+ border-top-right-radius: 0.375rem
+ }
+ .c2tr68t {
+ border-bottom-right-radius: 0.375rem
+ }
+ .cjdtj3f {
+ border-bottom-left-radius: 0.375rem
+ }
+ .c1dab7w1 {
+ border-right-style: solid
+ }
+ .c1uf7v01 {
+ border-bottom-style: solid
+ }
+ .czynn8e {
+ border-left-style: solid
+ }
+ .c6z96ps {
+ border-top-color: rgba(226, 232, 240, 1)
+ }
+ .c9t5qyz {
+ border-right-color: rgba(226, 232, 240, 1)
+ }
+ .c1x5uwe6 {
+ border-bottom-color: rgba(226, 232, 240, 1)
+ }
+ .csnt51l {
+ border-left-color: rgba(226, 232, 240, 1)
+ }
+ .cgassre {
+ border-top-width: 1px
+ }
+ .c1ndsw6v {
+ border-right-width: 1px
+ }
+ .cjrlou9 {
+ border-bottom-width: 1px
+ }
+ .c945vvj {
+ border-left-width: 1px
+ }
+ .c4mw8gp {
+ background-color: rgba(255, 255, 255, 1)
+ }
+ .c1kc4g4w {
+ padding-left: 0.75rem
+ }
+ .c1hi2fgx {
+ padding-right: 0.75rem
+ }
+ .cs5tzic {
+ padding-top: 0.375rem
+ }
+ .cl10cx8 {
+ padding-bottom: 0.375rem
+ }
+ .c1mfk609 {
+ font-size: 0.875rem
+ }
+ .c121vm9z {
+ line-height: 1.25rem
+ }
+ .cj0w9yo {
+ color: rgba(2, 8, 23, 1)
+ }
+ .ci3o5ma {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 119413fbf6..c1c4d92b23 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -965,6 +965,9 @@ importers:
packages/css-engine:
dependencies:
+ '@emotion/hash':
+ specifier: ^0.9.1
+ version: 0.9.1
'@webstudio-is/error-utils':
specifier: workspace:*
version: link:../error-utils
@@ -3382,6 +3385,10 @@ packages:
resolution: {integrity: sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==}
dev: true
+ /@emotion/[email protected]:
+ resolution: {integrity: sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==}
+ dev: false
+
resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==}
peerDependencies: