@webstudio-is/sdk-components-react-radix 0.90.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__generated__/accordion.props.js +6 -12
- package/lib/__generated__/checkbox.props.js +3 -6
- package/lib/__generated__/collapsible.props.js +4 -8
- package/lib/__generated__/dialog.props.js +8 -16
- package/lib/__generated__/label.props.js +2 -4
- package/lib/__generated__/navigation-menu.props.js +8 -16
- package/lib/__generated__/popover.props.js +4 -8
- package/lib/__generated__/radio-group.props.js +4 -8
- package/lib/__generated__/select.props.js +15 -19
- package/lib/__generated__/sheet.props.js +8 -16
- package/lib/__generated__/switch.props.js +3 -6
- package/lib/__generated__/tabs.props.js +5 -10
- package/lib/__generated__/tooltip.props.js +4 -8
- package/lib/accordion.js +7 -14
- package/{src/accordion.stories.tsx → lib/accordion.stories.js} +9 -12
- package/lib/accordion.ws.js +11 -22
- package/lib/checkbox.js +3 -6
- package/lib/checkbox.stories.js +19 -0
- package/lib/checkbox.ws.js +5 -10
- package/lib/collapsible.js +5 -10
- package/{src/collapsible.stories.tsx → lib/collapsible.stories.js} +9 -12
- package/lib/collapsible.ws.js +7 -14
- package/lib/components.js +13 -62
- package/lib/dialog.js +9 -18
- package/{src/dialog.stories.tsx → lib/dialog.stories.js} +9 -12
- package/lib/dialog.ws.js +17 -30
- package/lib/hooks.js +2 -4
- package/lib/label.js +2 -4
- package/lib/label.stories.js +19 -0
- package/lib/label.ws.js +3 -6
- package/lib/metas.js +55 -105
- package/lib/navigation-menu.js +9 -18
- package/{src/navigation-menu.stories.tsx → lib/navigation-menu.stories.js} +9 -12
- package/lib/navigation-menu.ws.js +16 -31
- package/lib/popover.js +5 -10
- package/{src/popover.stories.tsx → lib/popover.stories.js} +9 -12
- package/lib/popover.ws.js +7 -14
- package/lib/props-descriptions.js +2 -4
- package/lib/props.js +54 -103
- package/lib/radio-group.js +4 -8
- package/lib/radio-group.stories.js +19 -0
- package/lib/radio-group.ws.js +7 -14
- package/lib/select.js +10 -20
- package/{src/select.stories.tsx → lib/select.stories.js} +9 -12
- package/lib/select.ws.js +17 -34
- package/lib/sheet.js +9 -18
- package/{src/sheet.stories.tsx → lib/sheet.stories.js} +9 -12
- package/lib/sheet.ws.js +2 -4
- package/lib/switch.js +3 -6
- package/lib/switch.stories.js +19 -0
- package/lib/switch.ws.js +5 -10
- package/lib/tabs.js +6 -12
- package/{src/tabs.stories.tsx → lib/tabs.stories.js} +9 -12
- package/lib/tabs.ws.js +9 -18
- package/lib/theme/__generated__/tailwind-theme.js +517 -0
- package/lib/theme/styles.js +3 -6
- package/lib/theme/tailwind-classes.js +149 -301
- package/lib/theme/tailwind-colors.js +2 -4
- package/lib/tooltip.js +5 -10
- package/{src/tooltip.stories.tsx → lib/tooltip.stories.js} +9 -12
- package/lib/tooltip.ws.js +7 -14
- package/lib/types/__generated__/accordion.props.d.ts +1 -1
- package/lib/types/__generated__/checkbox.props.d.ts +1 -1
- package/lib/types/__generated__/collapsible.props.d.ts +1 -1
- package/lib/types/__generated__/dialog.props.d.ts +1 -1
- package/lib/types/__generated__/label.props.d.ts +1 -1
- package/lib/types/__generated__/navigation-menu.props.d.ts +1 -1
- package/lib/types/__generated__/popover.props.d.ts +1 -1
- package/lib/types/__generated__/radio-group.props.d.ts +1 -1
- package/lib/types/__generated__/select.props.d.ts +1 -1
- package/lib/types/__generated__/sheet.props.d.ts +1 -1
- package/lib/types/__generated__/switch.props.d.ts +1 -1
- package/lib/types/__generated__/tabs.props.d.ts +1 -1
- package/lib/types/__generated__/tooltip.props.d.ts +1 -1
- package/lib/types/accordion.d.ts +1 -1
- package/lib/types/sheet.d.ts +1 -1
- package/lib/types/theme/__generated__/tailwind-theme.d.ts +26 -0
- package/lib/types/theme/styles.d.ts +60 -60
- package/lib/types/theme/tailwind-classes.d.ts +33 -33
- package/package.json +20 -23
- package/lib/__generated__/button.props.js +0 -565
- package/lib/__generated__/input.props.js +0 -668
- package/lib/__generated__/textarea.props.js +0 -577
- package/lib/cjs/__generated__/accordion.props.js +0 -2645
- package/lib/cjs/__generated__/button.props.js +0 -585
- package/lib/cjs/__generated__/checkbox.props.js +0 -1103
- package/lib/cjs/__generated__/collapsible.props.js +0 -1050
- package/lib/cjs/__generated__/dialog.props.js +0 -2623
- package/lib/cjs/__generated__/input.props.js +0 -688
- package/lib/cjs/__generated__/label.props.js +0 -541
- package/lib/cjs/__generated__/navigation-menu.props.js +0 -2585
- package/lib/cjs/__generated__/popover.props.js +0 -582
- package/lib/cjs/__generated__/radio-group.props.js +0 -1647
- package/lib/cjs/__generated__/select.props.js +0 -3698
- package/lib/cjs/__generated__/sheet.props.js +0 -2642
- package/lib/cjs/__generated__/switch.props.js +0 -1103
- package/lib/cjs/__generated__/tabs.props.js +0 -2144
- package/lib/cjs/__generated__/textarea.props.js +0 -597
- package/lib/cjs/__generated__/tooltip.props.js +0 -593
- package/lib/cjs/accordion.js +0 -67
- package/lib/cjs/accordion.ws.js +0 -285
- package/lib/cjs/checkbox.js +0 -31
- package/lib/cjs/checkbox.ws.js +0 -174
- package/lib/cjs/collapsible.js +0 -53
- package/lib/cjs/collapsible.ws.js +0 -122
- package/lib/cjs/components.js +0 -82
- package/lib/cjs/dialog.js +0 -89
- package/lib/cjs/dialog.ws.js +0 -314
- package/lib/cjs/hooks.js +0 -43
- package/lib/cjs/label.js +0 -37
- package/lib/cjs/label.ws.js +0 -75
- package/lib/cjs/metas.js +0 -84
- package/lib/cjs/navigation-menu.js +0 -107
- package/lib/cjs/navigation-menu.ws.js +0 -514
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/popover.js +0 -90
- package/lib/cjs/popover.ws.js +0 -142
- package/lib/cjs/props-descriptions.js +0 -56
- package/lib/cjs/props.js +0 -82
- package/lib/cjs/radio-group.js +0 -30
- package/lib/cjs/radio-group.ws.js +0 -191
- package/lib/cjs/select.js +0 -83
- package/lib/cjs/select.ws.js +0 -350
- package/lib/cjs/sheet.js +0 -96
- package/lib/cjs/sheet.ws.js +0 -257
- package/lib/cjs/switch.js +0 -27
- package/lib/cjs/switch.ws.js +0 -173
- package/lib/cjs/tabs.js +0 -59
- package/lib/cjs/tabs.ws.js +0 -196
- package/lib/cjs/theme/radix-common-types.js +0 -16
- package/lib/cjs/theme/styles.js +0 -96
- package/lib/cjs/theme/tailwind-classes.js +0 -819
- package/lib/cjs/theme/tailwind-colors.js +0 -45
- package/lib/cjs/theme/tailwind-theme.js +0 -46
- package/lib/cjs/tooltip.js +0 -87
- package/lib/cjs/tooltip.ws.js +0 -143
- package/lib/theme/radix-common-types.js +0 -0
- package/lib/theme/tailwind-theme.js +0 -16
- package/lib/types/__generated__/button.props.d.ts +0 -2
- package/lib/types/__generated__/input.props.d.ts +0 -2
- package/lib/types/__generated__/textarea.props.d.ts +0 -2
- package/lib/types/theme/radix-common-types.d.ts +0 -85
- package/lib/types/theme/tailwind-theme.d.ts +0 -72
- package/src/__generated__/accordion.props.ts +0 -2949
- package/src/__generated__/button.props.ts +0 -635
- package/src/__generated__/checkbox.props.ts +0 -1217
- package/src/__generated__/collapsible.props.ts +0 -1156
- package/src/__generated__/dialog.props.ts +0 -2923
- package/src/__generated__/input.props.ts +0 -748
- package/src/__generated__/label.props.ts +0 -585
- package/src/__generated__/navigation-menu.props.ts +0 -2882
- package/src/__generated__/popover.props.ts +0 -626
- package/src/__generated__/radio-group.props.ts +0 -1828
- package/src/__generated__/select.props.ts +0 -4130
- package/src/__generated__/sheet.props.ts +0 -2942
- package/src/__generated__/switch.props.ts +0 -1217
- package/src/__generated__/tabs.props.ts +0 -2386
- package/src/__generated__/textarea.props.ts +0 -645
- package/src/__generated__/tooltip.props.ts +0 -639
- package/src/accordion.tsx +0 -88
- package/src/accordion.ws.ts +0 -296
- package/src/checkbox.stories.ts +0 -22
- package/src/checkbox.tsx +0 -22
- package/src/checkbox.ws.ts +0 -154
- package/src/collapsible.tsx +0 -62
- package/src/collapsible.ws.ts +0 -115
- package/src/components.ts +0 -50
- package/src/dialog.tsx +0 -92
- package/src/dialog.ws.tsx +0 -318
- package/src/hooks.ts +0 -22
- package/src/label.stories.ts +0 -22
- package/src/label.tsx +0 -15
- package/src/label.ws.ts +0 -50
- package/src/metas.ts +0 -74
- package/src/navigation-menu.tsx +0 -130
- package/src/navigation-menu.ws.ts +0 -524
- package/src/popover.tsx +0 -96
- package/src/popover.ws.tsx +0 -128
- package/src/props-descriptions.ts +0 -43
- package/src/props.ts +0 -73
- package/src/radio-group.stories.ts +0 -22
- package/src/radio-group.tsx +0 -17
- package/src/radio-group.ws.ts +0 -178
- package/src/select.tsx +0 -112
- package/src/select.ws.ts +0 -349
- package/src/sheet.tsx +0 -79
- package/src/sheet.ws.tsx +0 -236
- package/src/switch.stories.ts +0 -22
- package/src/switch.tsx +0 -10
- package/src/switch.ws.ts +0 -146
- package/src/tabs.tsx +0 -64
- package/src/tabs.ws.ts +0 -198
- package/src/theme/radix-common-types.ts +0 -496
- package/src/theme/styles.ts +0 -76
- package/src/theme/tailwind-classes.ts +0 -1026
- package/src/theme/tailwind-colors.ts +0 -39
- package/src/theme/tailwind-theme.ts +0 -24
- package/src/tooltip.tsx +0 -95
- package/src/tooltip.ws.tsx +0 -130
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const colors = {
|
|
2
3
|
transparent: "transparent",
|
|
3
4
|
current: "currentColor",
|
|
4
5
|
inherit: "inherit",
|
|
@@ -20,6 +21,3 @@ const colors = {
|
|
|
20
21
|
secondary: "rgb(241, 245, 249)",
|
|
21
22
|
secondaryForeground: "rgb(15, 23, 42)"
|
|
22
23
|
};
|
|
23
|
-
export {
|
|
24
|
-
colors
|
|
25
|
-
};
|
package/lib/tooltip.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
4
|
import { getClosestInstance } from "@webstudio-is/react-sdk";
|
|
@@ -5,14 +6,14 @@ import {
|
|
|
5
6
|
forwardRef,
|
|
6
7
|
Children
|
|
7
8
|
} from "react";
|
|
8
|
-
const Tooltip = forwardRef((props, _ref) => {
|
|
9
|
+
export const Tooltip = forwardRef((props, _ref) => {
|
|
9
10
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props }) });
|
|
10
11
|
});
|
|
11
|
-
const TooltipTrigger = forwardRef(({ children, ...props }, ref) => {
|
|
12
|
+
export const TooltipTrigger = forwardRef(({ children, ...props }, ref) => {
|
|
12
13
|
const firstChild = Children.toArray(children)[0];
|
|
13
14
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, ref, ...props, children: firstChild ?? /* @__PURE__ */ jsx("button", { children: "Add button or link" }) });
|
|
14
15
|
});
|
|
15
|
-
const TooltipContent = forwardRef(({ sideOffset = 4, hideWhenDetached = true, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
16
|
+
export const TooltipContent = forwardRef(({ sideOffset = 4, hideWhenDetached = true, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
16
17
|
TooltipPrimitive.Content,
|
|
17
18
|
{
|
|
18
19
|
ref,
|
|
@@ -22,7 +23,7 @@ const TooltipContent = forwardRef(({ sideOffset = 4, hideWhenDetached = true, ..
|
|
|
22
23
|
}
|
|
23
24
|
) }));
|
|
24
25
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
25
|
-
const hooksTooltip = {
|
|
26
|
+
export const hooksTooltip = {
|
|
26
27
|
onNavigatorUnselect: (context, event) => {
|
|
27
28
|
for (const instance of event.instancePath) {
|
|
28
29
|
if (instance.component === `${namespace}:TooltipContent`) {
|
|
@@ -52,9 +53,3 @@ const hooksTooltip = {
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
|
-
export {
|
|
56
|
-
Tooltip,
|
|
57
|
-
TooltipContent,
|
|
58
|
-
TooltipTrigger,
|
|
59
|
-
hooksTooltip
|
|
60
|
-
};
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
import { renderComponentTemplate } from "@webstudio-is/react-sdk";
|
|
3
3
|
import { Tooltip as TooltipPrimitive } from "./tooltip";
|
|
4
4
|
import * as baseComponents from "@webstudio-is/sdk-components-react";
|
|
5
5
|
import * as baseMetas from "@webstudio-is/sdk-components-react/metas";
|
|
6
6
|
import * as radixComponents from "./components";
|
|
7
7
|
import * as radixMetas from "./metas";
|
|
8
|
-
|
|
9
8
|
export default {
|
|
10
9
|
title: "Components/Tooltip",
|
|
11
|
-
component: TooltipPrimitive
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
metas: { ...baseMetas, ...radixMetas },
|
|
20
|
-
}),
|
|
10
|
+
component: TooltipPrimitive
|
|
11
|
+
};
|
|
12
|
+
export const Tooltip = {
|
|
13
|
+
render: () => renderComponentTemplate({
|
|
14
|
+
name: "Tooltip",
|
|
15
|
+
components: { ...baseComponents, ...radixComponents },
|
|
16
|
+
metas: { ...baseMetas, ...radixMetas }
|
|
17
|
+
})
|
|
21
18
|
};
|
package/lib/tooltip.ws.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import { TooltipIcon, TriggerIcon, ContentIcon } from "@webstudio-is/icons/svg";
|
|
2
3
|
import {
|
|
3
4
|
} from "@webstudio-is/react-sdk";
|
|
@@ -12,21 +13,21 @@ import { getButtonStyles } from "./theme/styles";
|
|
|
12
13
|
const presetStyle = {
|
|
13
14
|
div
|
|
14
15
|
};
|
|
15
|
-
const metaTooltipTrigger = {
|
|
16
|
+
export const metaTooltipTrigger = {
|
|
16
17
|
category: "hidden",
|
|
17
18
|
detachable: false,
|
|
18
19
|
type: "container",
|
|
19
20
|
icon: TriggerIcon,
|
|
20
21
|
stylable: false
|
|
21
22
|
};
|
|
22
|
-
const metaTooltipContent = {
|
|
23
|
+
export const metaTooltipContent = {
|
|
23
24
|
category: "hidden",
|
|
24
25
|
detachable: false,
|
|
25
26
|
type: "container",
|
|
26
27
|
presetStyle,
|
|
27
28
|
icon: ContentIcon
|
|
28
29
|
};
|
|
29
|
-
const metaTooltip = {
|
|
30
|
+
export const metaTooltip = {
|
|
30
31
|
category: "radix",
|
|
31
32
|
order: 7,
|
|
32
33
|
type: "container",
|
|
@@ -97,22 +98,14 @@ const metaTooltip = {
|
|
|
97
98
|
}
|
|
98
99
|
]
|
|
99
100
|
};
|
|
100
|
-
const propsMetaTooltip = {
|
|
101
|
+
export const propsMetaTooltip = {
|
|
101
102
|
props: propsTooltip,
|
|
102
103
|
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
103
104
|
};
|
|
104
|
-
const propsMetaTooltipTrigger = {
|
|
105
|
+
export const propsMetaTooltipTrigger = {
|
|
105
106
|
props: propsTooltipTrigger
|
|
106
107
|
};
|
|
107
|
-
const propsMetaTooltipContent = {
|
|
108
|
+
export const propsMetaTooltipContent = {
|
|
108
109
|
props: propsTooltipContent,
|
|
109
110
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
110
111
|
};
|
|
111
|
-
export {
|
|
112
|
-
metaTooltip,
|
|
113
|
-
metaTooltipContent,
|
|
114
|
-
metaTooltipTrigger,
|
|
115
|
-
propsMetaTooltip,
|
|
116
|
-
propsMetaTooltipContent,
|
|
117
|
-
propsMetaTooltipTrigger
|
|
118
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsAccordion: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsAccordionItem: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsAccordionHeader: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsCollapsible: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsCollapsibleTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsCollapsibleContent: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsDialog: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsDialogTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsDialogOverlay: Record<string, PropMeta>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const props: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsNavigationMenu: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsNavigationMenuList: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsNavigationMenuViewport: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsPopover: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsPopoverTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsPopoverContent: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsRadioGroup: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsRadioGroupItem: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsRadioGroupIndicator: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsSelect: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsSelectTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsSelectValue: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsSheet: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsSheetTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsSheetOverlay: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsTabs: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsTabsList: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsTabsTrigger: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const propsTooltip: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsTooltipTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsTooltipContent: Record<string, PropMeta>;
|
package/lib/types/accordion.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ForwardRefExoticComponent, type ComponentPropsWithRef } from "react";
|
|
2
2
|
import { Header, Trigger, Content } from "@radix-ui/react-accordion";
|
|
3
3
|
import { type Hook } from "@webstudio-is/react-sdk";
|
|
4
|
-
export declare const Accordion: ForwardRefExoticComponent<Omit<ComponentPropsWithoutRef<ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>>, "
|
|
4
|
+
export declare const Accordion: ForwardRefExoticComponent<Omit<ComponentPropsWithoutRef<ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>>, "type" | "value" | "defaultValue" | "asChild" | "onValueChange"> & {
|
|
5
5
|
value: string;
|
|
6
6
|
onValueChange: (value: string) => void;
|
|
7
7
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
package/lib/types/sheet.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export declare const SheetTitle: import("react").ForwardRefExoticComponent<impor
|
|
|
10
10
|
export declare const SheetDescription: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
11
11
|
export declare const SheetContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
12
|
tag?: "div" | "nav" | undefined;
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "bottom" | "left" | "right" | "top" | undefined;
|
|
14
14
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export declare const hooksSheet: Hook;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StyleValue } from "@webstudio-is/css-engine";
|
|
2
|
+
export declare const spacing: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "px" | "0.5" | "1.5" | "2.5" | "3.5", StyleValue>;
|
|
3
|
+
export declare const padding: Record<keyof typeof spacing, StyleValue>;
|
|
4
|
+
export declare const margin: Record<keyof typeof spacing | "auto", StyleValue>;
|
|
5
|
+
export declare const width: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
6
|
+
export declare const maxWidth: Record<"0" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full" | "min" | "max" | "fit" | "prose", StyleValue>;
|
|
7
|
+
export declare const height: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
8
|
+
export declare const minHeight: Record<"0" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
9
|
+
export declare const inset: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full", StyleValue>;
|
|
10
|
+
export declare const borderWidth: Record<"0" | "2" | "4" | "8" | "DEFAULT", StyleValue>;
|
|
11
|
+
export declare const borderRadius: Record<"none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full", StyleValue>;
|
|
12
|
+
export declare const colors: Record<"transparent" | "current" | "inherit" | "popover" | "popoverForeground" | "border" | "background" | "foreground" | "ring" | "mutedForeground" | "muted" | "primary" | "primaryForeground" | "destructive" | "destructiveForeground" | "accent" | "accentForeground" | "input" | "secondary" | "secondaryForeground", StyleValue>;
|
|
13
|
+
export declare const zIndex: Record<"0" | "10" | "20" | "30" | "40" | "50" | "auto", StyleValue>;
|
|
14
|
+
export declare const opacity: Record<"0" | "5" | "10" | "20" | "25" | "30" | "40" | "50" | "60" | "70" | "75" | "80" | "90" | "95" | "100", StyleValue>;
|
|
15
|
+
export declare const cursor: Record<"auto" | "default" | "pointer" | "wait" | "text" | "move" | "help" | "not-allowed" | "none" | "context-menu" | "progress" | "cell" | "crosshair" | "vertical-text" | "alias" | "copy" | "no-drop" | "grab" | "grabbing" | "all-scroll" | "col-resize" | "row-resize" | "n-resize" | "e-resize" | "s-resize" | "w-resize" | "ne-resize" | "nw-resize" | "se-resize" | "sw-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "zoom-in" | "zoom-out", StyleValue>;
|
|
16
|
+
export declare const lineHeight: Record<"3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "none" | "tight" | "snug" | "normal" | "relaxed" | "loose", StyleValue>;
|
|
17
|
+
export declare const letterSpacing: Record<"tighter" | "tight" | "normal" | "wide" | "wider" | "widest", StyleValue>;
|
|
18
|
+
export declare const listStyleType: Record<"none" | "disc" | "decimal", StyleValue>;
|
|
19
|
+
export declare const lineClamp: Record<"1" | "2" | "3" | "4" | "5" | "6", StyleValue>;
|
|
20
|
+
export declare const textUnderlineOffset: Record<"0" | "1" | "2" | "4" | "8" | "auto", StyleValue>;
|
|
21
|
+
export declare const ringWidth: Record<"0" | "1" | "2" | "4" | "8" | "DEFAULT", StyleValue>;
|
|
22
|
+
export declare const ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", StyleValue>;
|
|
23
|
+
export declare const boxShadow: Record<"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none", StyleValue>;
|
|
24
|
+
export declare const blur: Record<"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none", StyleValue>;
|
|
25
|
+
export declare const fontSize: Record<"xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl", StyleValue>;
|
|
26
|
+
export declare const fontSizeLineHeight: Record<"xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl", StyleValue>;
|
|
@@ -1,215 +1,215 @@
|
|
|
1
1
|
import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "default" | "sm" | "icon") => {
|
|
3
3
|
value: {
|
|
4
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
5
|
-
value: number;
|
|
6
4
|
type: "unit";
|
|
5
|
+
value: number;
|
|
6
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
7
7
|
} | {
|
|
8
|
-
value: string;
|
|
9
8
|
type: "keyword";
|
|
10
|
-
} | {
|
|
11
9
|
value: string;
|
|
10
|
+
} | {
|
|
12
11
|
type: "unparsed";
|
|
12
|
+
value: string;
|
|
13
13
|
hidden?: boolean | undefined;
|
|
14
14
|
} | {
|
|
15
|
-
value: string[];
|
|
16
15
|
type: "fontFamily";
|
|
16
|
+
value: string[];
|
|
17
17
|
} | {
|
|
18
|
-
alpha: number;
|
|
19
18
|
type: "rgb";
|
|
20
19
|
r: number;
|
|
21
20
|
g: number;
|
|
22
21
|
b: number;
|
|
22
|
+
alpha: number;
|
|
23
23
|
} | {
|
|
24
|
+
type: "image";
|
|
24
25
|
value: {
|
|
25
|
-
value: string;
|
|
26
26
|
type: "asset";
|
|
27
|
+
value: string;
|
|
27
28
|
} | {
|
|
28
29
|
type: "url";
|
|
29
30
|
url: string;
|
|
30
31
|
};
|
|
31
|
-
type: "image";
|
|
32
32
|
hidden?: boolean | undefined;
|
|
33
33
|
} | {
|
|
34
|
-
value: string;
|
|
35
34
|
type: "invalid";
|
|
35
|
+
value: string;
|
|
36
36
|
} | {
|
|
37
|
-
value: "";
|
|
38
37
|
type: "unset";
|
|
38
|
+
value: "";
|
|
39
39
|
} | {
|
|
40
|
+
type: "tuple";
|
|
40
41
|
value: ({
|
|
41
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
42
|
-
value: number;
|
|
43
42
|
type: "unit";
|
|
43
|
+
value: number;
|
|
44
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
44
45
|
} | {
|
|
45
|
-
value: string;
|
|
46
46
|
type: "keyword";
|
|
47
|
-
} | {
|
|
48
47
|
value: string;
|
|
48
|
+
} | {
|
|
49
49
|
type: "unparsed";
|
|
50
|
+
value: string;
|
|
50
51
|
hidden?: boolean | undefined;
|
|
51
52
|
} | {
|
|
52
|
-
alpha: number;
|
|
53
53
|
type: "rgb";
|
|
54
54
|
r: number;
|
|
55
55
|
g: number;
|
|
56
56
|
b: number;
|
|
57
|
+
alpha: number;
|
|
57
58
|
})[];
|
|
58
|
-
type: "tuple";
|
|
59
59
|
hidden?: boolean | undefined;
|
|
60
60
|
} | {
|
|
61
|
+
type: "layers";
|
|
61
62
|
value: ({
|
|
62
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
63
|
-
value: number;
|
|
64
63
|
type: "unit";
|
|
64
|
+
value: number;
|
|
65
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
65
66
|
} | {
|
|
66
|
-
value: string;
|
|
67
67
|
type: "keyword";
|
|
68
|
-
} | {
|
|
69
68
|
value: string;
|
|
69
|
+
} | {
|
|
70
70
|
type: "unparsed";
|
|
71
|
+
value: string;
|
|
71
72
|
hidden?: boolean | undefined;
|
|
72
73
|
} | {
|
|
74
|
+
type: "image";
|
|
73
75
|
value: {
|
|
74
|
-
value: string;
|
|
75
76
|
type: "asset";
|
|
77
|
+
value: string;
|
|
76
78
|
} | {
|
|
77
79
|
type: "url";
|
|
78
80
|
url: string;
|
|
79
81
|
};
|
|
80
|
-
type: "image";
|
|
81
82
|
hidden?: boolean | undefined;
|
|
82
83
|
} | {
|
|
83
|
-
value: string;
|
|
84
84
|
type: "invalid";
|
|
85
|
+
value: string;
|
|
85
86
|
} | {
|
|
87
|
+
type: "tuple";
|
|
86
88
|
value: ({
|
|
87
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
88
|
-
value: number;
|
|
89
89
|
type: "unit";
|
|
90
|
+
value: number;
|
|
91
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
90
92
|
} | {
|
|
91
|
-
value: string;
|
|
92
93
|
type: "keyword";
|
|
93
|
-
} | {
|
|
94
94
|
value: string;
|
|
95
|
+
} | {
|
|
95
96
|
type: "unparsed";
|
|
97
|
+
value: string;
|
|
96
98
|
hidden?: boolean | undefined;
|
|
97
99
|
} | {
|
|
98
|
-
alpha: number;
|
|
99
100
|
type: "rgb";
|
|
100
101
|
r: number;
|
|
101
102
|
g: number;
|
|
102
103
|
b: number;
|
|
104
|
+
alpha: number;
|
|
103
105
|
})[];
|
|
104
|
-
type: "tuple";
|
|
105
106
|
hidden?: boolean | undefined;
|
|
106
107
|
})[];
|
|
107
|
-
type: "layers";
|
|
108
108
|
} | {
|
|
109
|
-
value: string;
|
|
110
109
|
type: "var";
|
|
110
|
+
value: string;
|
|
111
111
|
fallbacks: ({
|
|
112
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
113
|
-
value: number;
|
|
114
112
|
type: "unit";
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
115
115
|
} | {
|
|
116
|
-
value: string;
|
|
117
116
|
type: "keyword";
|
|
118
|
-
} | {
|
|
119
117
|
value: string;
|
|
118
|
+
} | {
|
|
120
119
|
type: "unparsed";
|
|
120
|
+
value: string;
|
|
121
121
|
hidden?: boolean | undefined;
|
|
122
122
|
} | {
|
|
123
|
-
value: string[];
|
|
124
123
|
type: "fontFamily";
|
|
124
|
+
value: string[];
|
|
125
125
|
} | {
|
|
126
|
-
alpha: number;
|
|
127
126
|
type: "rgb";
|
|
128
127
|
r: number;
|
|
129
128
|
g: number;
|
|
130
129
|
b: number;
|
|
130
|
+
alpha: number;
|
|
131
131
|
} | {
|
|
132
|
+
type: "image";
|
|
132
133
|
value: {
|
|
133
|
-
value: string;
|
|
134
134
|
type: "asset";
|
|
135
|
+
value: string;
|
|
135
136
|
} | {
|
|
136
137
|
type: "url";
|
|
137
138
|
url: string;
|
|
138
139
|
};
|
|
139
|
-
type: "image";
|
|
140
140
|
hidden?: boolean | undefined;
|
|
141
141
|
} | {
|
|
142
|
+
type: "tuple";
|
|
142
143
|
value: ({
|
|
143
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
144
|
-
value: number;
|
|
145
144
|
type: "unit";
|
|
145
|
+
value: number;
|
|
146
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
146
147
|
} | {
|
|
147
|
-
value: string;
|
|
148
148
|
type: "keyword";
|
|
149
|
-
} | {
|
|
150
149
|
value: string;
|
|
150
|
+
} | {
|
|
151
151
|
type: "unparsed";
|
|
152
|
+
value: string;
|
|
152
153
|
hidden?: boolean | undefined;
|
|
153
154
|
} | {
|
|
154
|
-
alpha: number;
|
|
155
155
|
type: "rgb";
|
|
156
156
|
r: number;
|
|
157
157
|
g: number;
|
|
158
158
|
b: number;
|
|
159
|
+
alpha: number;
|
|
159
160
|
})[];
|
|
160
|
-
type: "tuple";
|
|
161
161
|
hidden?: boolean | undefined;
|
|
162
162
|
} | {
|
|
163
|
+
type: "layers";
|
|
163
164
|
value: ({
|
|
164
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
165
|
-
value: number;
|
|
166
165
|
type: "unit";
|
|
166
|
+
value: number;
|
|
167
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
167
168
|
} | {
|
|
168
|
-
value: string;
|
|
169
169
|
type: "keyword";
|
|
170
|
-
} | {
|
|
171
170
|
value: string;
|
|
171
|
+
} | {
|
|
172
172
|
type: "unparsed";
|
|
173
|
+
value: string;
|
|
173
174
|
hidden?: boolean | undefined;
|
|
174
175
|
} | {
|
|
176
|
+
type: "image";
|
|
175
177
|
value: {
|
|
176
|
-
value: string;
|
|
177
178
|
type: "asset";
|
|
179
|
+
value: string;
|
|
178
180
|
} | {
|
|
179
181
|
type: "url";
|
|
180
182
|
url: string;
|
|
181
183
|
};
|
|
182
|
-
type: "image";
|
|
183
184
|
hidden?: boolean | undefined;
|
|
184
185
|
} | {
|
|
185
|
-
value: string;
|
|
186
186
|
type: "invalid";
|
|
187
|
+
value: string;
|
|
187
188
|
} | {
|
|
189
|
+
type: "tuple";
|
|
188
190
|
value: ({
|
|
189
|
-
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
190
|
-
value: number;
|
|
191
191
|
type: "unit";
|
|
192
|
+
value: number;
|
|
193
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
192
194
|
} | {
|
|
193
|
-
value: string;
|
|
194
195
|
type: "keyword";
|
|
195
|
-
} | {
|
|
196
196
|
value: string;
|
|
197
|
+
} | {
|
|
197
198
|
type: "unparsed";
|
|
199
|
+
value: string;
|
|
198
200
|
hidden?: boolean | undefined;
|
|
199
201
|
} | {
|
|
200
|
-
alpha: number;
|
|
201
202
|
type: "rgb";
|
|
202
203
|
r: number;
|
|
203
204
|
g: number;
|
|
204
205
|
b: number;
|
|
206
|
+
alpha: number;
|
|
205
207
|
})[];
|
|
206
|
-
type: "tuple";
|
|
207
208
|
hidden?: boolean | undefined;
|
|
208
209
|
})[];
|
|
209
|
-
type: "layers";
|
|
210
210
|
})[];
|
|
211
211
|
};
|
|
212
212
|
state?: string | undefined;
|
|
213
|
-
property: "
|
|
213
|
+
property: import("@webstudio-is/css-engine").StyleProperty;
|
|
214
214
|
}[];
|
|
215
215
|
export declare const buttonReset: EmbedTemplateStyleDecl[];
|