@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
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Quik and dirty implementation of tailwind classes conversion to webstudio styles.
|
|
3
3
|
*/
|
|
4
4
|
import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import type { StyleProperty } from "@webstudio-is/css-engine";
|
|
6
|
+
import * as theme from "./__generated__/tailwind-theme";
|
|
7
7
|
export declare const property: (property: StyleProperty, value: string) => EmbedTemplateStyleDecl;
|
|
8
|
-
export declare const z: (
|
|
8
|
+
export declare const z: (value: StringEnumToNumeric<keyof typeof theme.zIndex>) => EmbedTemplateStyleDecl[];
|
|
9
9
|
export declare const overflow: (value: "hidden" | "visible" | "scroll" | "auto") => EmbedTemplateStyleDecl[];
|
|
10
|
-
export declare const rounded: (
|
|
10
|
+
export declare const rounded: (value?: keyof typeof theme.borderRadius) => EmbedTemplateStyleDecl[];
|
|
11
11
|
type StringEnumToNumeric<T extends string> = T extends `${infer Z extends number}` ? Z : never;
|
|
12
12
|
type NonNumeric<T extends string> = T extends `${infer Z extends number}` ? never : T;
|
|
13
|
-
export declare const border: (borderWidthOrColor?: StringEnumToNumeric<keyof
|
|
14
|
-
export declare const borderB: (borderWidthOrColor?: StringEnumToNumeric<keyof
|
|
15
|
-
declare const paddingProperty: (property: "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft") => (padding:
|
|
13
|
+
export declare const border: (borderWidthOrColor?: StringEnumToNumeric<keyof typeof theme.borderWidth> | keyof typeof theme.colors) => EmbedTemplateStyleDecl[];
|
|
14
|
+
export declare const borderB: (borderWidthOrColor?: StringEnumToNumeric<keyof typeof theme.borderWidth> | keyof typeof theme.colors) => EmbedTemplateStyleDecl[];
|
|
15
|
+
declare const paddingProperty: (property: "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft") => (padding: 0 | "px" | 2 | 4 | 6 | 8 | 1 | 14 | 3 | 5 | 7 | 9 | 10 | 11 | 12 | 16 | 32 | 80 | 0.5 | 1.5 | 2.5 | 3.5 | 20 | 24 | 40 | 60 | 28 | 36 | 48 | 56 | 64 | 72 | 44 | 52 | 96) => EmbedTemplateStyleDecl[];
|
|
16
16
|
export declare const pt: ReturnType<typeof paddingProperty>;
|
|
17
17
|
export declare const pb: ReturnType<typeof paddingProperty>;
|
|
18
18
|
export declare const pl: ReturnType<typeof paddingProperty>;
|
|
@@ -20,7 +20,7 @@ export declare const pr: ReturnType<typeof paddingProperty>;
|
|
|
20
20
|
export declare const px: ReturnType<typeof paddingProperty>;
|
|
21
21
|
export declare const py: ReturnType<typeof paddingProperty>;
|
|
22
22
|
export declare const p: ReturnType<typeof paddingProperty>;
|
|
23
|
-
declare const marginProperty: (property: "marginTop" | "marginRight" | "marginBottom" | "marginLeft") => (margin:
|
|
23
|
+
declare const marginProperty: (property: "marginTop" | "marginRight" | "marginBottom" | "marginLeft") => (margin: 0 | "px" | 2 | 4 | 6 | 8 | 1 | 14 | 3 | "auto" | 5 | 7 | 9 | 10 | 11 | 12 | 16 | 32 | 80 | 0.5 | 1.5 | 2.5 | 3.5 | 20 | 24 | 40 | 60 | 28 | 36 | 48 | 56 | 64 | 72 | 44 | 52 | 96) => EmbedTemplateStyleDecl[];
|
|
24
24
|
export declare const ml: ReturnType<typeof marginProperty>;
|
|
25
25
|
export declare const mr: ReturnType<typeof marginProperty>;
|
|
26
26
|
export declare const mt: ReturnType<typeof marginProperty>;
|
|
@@ -28,22 +28,22 @@ export declare const mb: ReturnType<typeof marginProperty>;
|
|
|
28
28
|
export declare const mx: ReturnType<typeof marginProperty>;
|
|
29
29
|
export declare const my: ReturnType<typeof marginProperty>;
|
|
30
30
|
export declare const m: ReturnType<typeof marginProperty>;
|
|
31
|
-
export declare const w: (spacing: StringEnumToNumeric<keyof
|
|
32
|
-
export declare const h: (spacing: StringEnumToNumeric<keyof
|
|
33
|
-
export declare const minH: (spacing: StringEnumToNumeric<keyof
|
|
34
|
-
export declare const opacity: (opacity:
|
|
35
|
-
export declare const cursor: (cursor:
|
|
36
|
-
export declare const maxW: (spacing: StringEnumToNumeric<keyof
|
|
37
|
-
export declare const top: (spacing: StringEnumToNumeric<keyof
|
|
38
|
-
export declare const right: (spacing: StringEnumToNumeric<keyof
|
|
39
|
-
export declare const bottom: (spacing: StringEnumToNumeric<keyof
|
|
40
|
-
export declare const left: (spacing: StringEnumToNumeric<keyof
|
|
41
|
-
export declare const inset: (spacing: StringEnumToNumeric<keyof
|
|
31
|
+
export declare const w: (spacing: StringEnumToNumeric<keyof typeof theme.width> | NonNumeric<keyof typeof theme.width>) => EmbedTemplateStyleDecl[];
|
|
32
|
+
export declare const h: (spacing: StringEnumToNumeric<keyof typeof theme.height> | NonNumeric<keyof typeof theme.height>) => EmbedTemplateStyleDecl[];
|
|
33
|
+
export declare const minH: (spacing: StringEnumToNumeric<keyof typeof theme.minHeight>) => EmbedTemplateStyleDecl[];
|
|
34
|
+
export declare const opacity: (opacity: 0 | 5 | 10 | 100 | 80 | 75 | 20 | 50 | 25 | 40 | 60 | 30 | 70 | 90 | 95) => EmbedTemplateStyleDecl[];
|
|
35
|
+
export declare const cursor: (cursor: "default" | "auto" | "none" | "progress" | "text" | "copy" | "cell" | "move" | "pointer" | "wait" | "help" | "not-allowed" | "context-menu" | "crosshair" | "vertical-text" | "alias" | "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") => EmbedTemplateStyleDecl[];
|
|
36
|
+
export declare const maxW: (spacing: StringEnumToNumeric<keyof typeof theme.maxWidth> | NonNumeric<keyof typeof theme.maxWidth>) => EmbedTemplateStyleDecl[];
|
|
37
|
+
export declare const top: (spacing: StringEnumToNumeric<keyof typeof theme.inset> | NonNumeric<keyof typeof theme.inset>) => EmbedTemplateStyleDecl[];
|
|
38
|
+
export declare const right: (spacing: StringEnumToNumeric<keyof typeof theme.inset> | NonNumeric<keyof typeof theme.inset>) => EmbedTemplateStyleDecl[];
|
|
39
|
+
export declare const bottom: (spacing: StringEnumToNumeric<keyof typeof theme.inset> | NonNumeric<keyof typeof theme.inset>) => EmbedTemplateStyleDecl[];
|
|
40
|
+
export declare const left: (spacing: StringEnumToNumeric<keyof typeof theme.inset> | NonNumeric<keyof typeof theme.inset>) => EmbedTemplateStyleDecl[];
|
|
41
|
+
export declare const inset: (spacing: StringEnumToNumeric<keyof typeof theme.inset> | NonNumeric<keyof typeof theme.inset>) => EmbedTemplateStyleDecl[];
|
|
42
42
|
export declare const aspect: (value: "auto" | "square" | "video") => EmbedTemplateStyleDecl[];
|
|
43
|
-
export declare const backdropBlur: (blur:
|
|
44
|
-
export declare const list: (listStyle: keyof
|
|
45
|
-
export declare const select: (
|
|
46
|
-
export declare const bg: (color: keyof
|
|
43
|
+
export declare const backdropBlur: (blur: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "DEFAULT" | "inner") => EmbedTemplateStyleDecl[];
|
|
44
|
+
export declare const list: (listStyle: keyof typeof theme.listStyleType) => EmbedTemplateStyleDecl[];
|
|
45
|
+
export declare const select: (_selectValue: "none") => EmbedTemplateStyleDecl[];
|
|
46
|
+
export declare const bg: (color: keyof typeof theme.colors, alpha?: number) => EmbedTemplateStyleDecl[];
|
|
47
47
|
export declare const fixed: () => EmbedTemplateStyleDecl[];
|
|
48
48
|
export declare const relative: () => EmbedTemplateStyleDecl[];
|
|
49
49
|
export declare const absolute: () => EmbedTemplateStyleDecl[];
|
|
@@ -79,20 +79,20 @@ type FlexSizing = 1 | "auto" | "initial" | "none";
|
|
|
79
79
|
export declare const flex: (flexParam?: FlexDirection | FlexSizing) => EmbedTemplateStyleDecl[];
|
|
80
80
|
export declare const grow: () => EmbedTemplateStyleDecl[];
|
|
81
81
|
export declare const shrink: (value: number) => EmbedTemplateStyleDecl[];
|
|
82
|
-
export declare const gap: (gapValue: StringEnumToNumeric<keyof
|
|
83
|
-
export declare const lineClamp: (lineClampValue: StringEnumToNumeric<keyof
|
|
84
|
-
export declare const leading: (lineHeight:
|
|
85
|
-
export declare const tracking: (letterSpacing:
|
|
86
|
-
export declare const outline: (
|
|
87
|
-
type TextSize = keyof
|
|
88
|
-
export declare const text: (sizeOrColor: TextSize | keyof
|
|
82
|
+
export declare const gap: (gapValue: StringEnumToNumeric<keyof typeof theme.spacing>) => EmbedTemplateStyleDecl[];
|
|
83
|
+
export declare const lineClamp: (lineClampValue: StringEnumToNumeric<keyof typeof theme.lineClamp>) => EmbedTemplateStyleDecl[];
|
|
84
|
+
export declare const leading: (lineHeight: 4 | 6 | 8 | "normal" | 3 | "none" | 5 | 7 | 9 | 10 | "tight" | "snug" | "relaxed" | "loose") => EmbedTemplateStyleDecl[];
|
|
85
|
+
export declare const tracking: (letterSpacing: "normal" | "tight" | "tighter" | "wide" | "wider" | "widest") => EmbedTemplateStyleDecl[];
|
|
86
|
+
export declare const outline: (_value: "none") => EmbedTemplateStyleDecl[];
|
|
87
|
+
type TextSize = keyof typeof theme.fontSize;
|
|
88
|
+
export declare const text: (sizeOrColor: TextSize | keyof typeof theme.colors) => EmbedTemplateStyleDecl[];
|
|
89
89
|
export declare const noUnderline: () => EmbedTemplateStyleDecl[];
|
|
90
90
|
export declare const underline: () => EmbedTemplateStyleDecl[];
|
|
91
|
-
export declare const underlineOffset: (offset: StringEnumToNumeric<keyof
|
|
91
|
+
export declare const underlineOffset: (offset: StringEnumToNumeric<keyof typeof theme.textUnderlineOffset>) => EmbedTemplateStyleDecl[];
|
|
92
92
|
export declare const font: (weight: "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black") => EmbedTemplateStyleDecl[];
|
|
93
93
|
export declare const whitespace: (value: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "break-spaces") => EmbedTemplateStyleDecl[];
|
|
94
|
-
export declare const shadow: (shadowSize: keyof
|
|
95
|
-
export declare const ring: (ringColor: keyof
|
|
94
|
+
export declare const shadow: (shadowSize: keyof typeof theme.boxShadow) => EmbedTemplateStyleDecl[];
|
|
95
|
+
export declare const ring: (ringColor: keyof typeof theme.colors, ringWidth: 0 | 2 | 4 | 8 | 1, ringOffsetColor?: keyof typeof theme.colors, ringOffsetWidth?: 0 | 2 | 4 | 8 | 1) => EmbedTemplateStyleDecl[];
|
|
96
96
|
export declare const pointerEvents: (value: "none" | "auto") => EmbedTemplateStyleDecl[];
|
|
97
97
|
export declare const transition: (value: "none" | "all" | "transform") => EmbedTemplateStyleDecl[];
|
|
98
98
|
export declare const duration: (ms: number) => EmbedTemplateStyleDecl[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-radix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -10,32 +10,28 @@
|
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"files": [
|
|
12
12
|
"lib/*",
|
|
13
|
-
"
|
|
13
|
+
"!*.{test,stories}.*"
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"source": "./src/components.ts",
|
|
18
18
|
"types": "./lib/types/components.d.ts",
|
|
19
|
-
"import": "./lib/components.js"
|
|
20
|
-
"require": "./lib/cjs/components.js"
|
|
19
|
+
"import": "./lib/components.js"
|
|
21
20
|
},
|
|
22
21
|
"./metas": {
|
|
23
22
|
"source": "./src/metas.ts",
|
|
24
23
|
"types": "./lib/types/metas.d.ts",
|
|
25
|
-
"import": "./lib/metas.js"
|
|
26
|
-
"require": "./lib/cjs/metas.js"
|
|
24
|
+
"import": "./lib/metas.js"
|
|
27
25
|
},
|
|
28
26
|
"./props": {
|
|
29
27
|
"source": "./src/props.ts",
|
|
30
28
|
"types": "./lib/types/props.d.ts",
|
|
31
|
-
"import": "./lib/props.js"
|
|
32
|
-
"require": "./lib/cjs/props.js"
|
|
29
|
+
"import": "./lib/props.js"
|
|
33
30
|
},
|
|
34
31
|
"./hooks": {
|
|
35
32
|
"source": "./src/hooks.ts",
|
|
36
33
|
"types": "./lib/types/hooks.d.ts",
|
|
37
|
-
"import": "./lib/hooks.js"
|
|
38
|
-
"require": "./lib/cjs/hooks.js"
|
|
34
|
+
"import": "./lib/hooks.js"
|
|
39
35
|
}
|
|
40
36
|
},
|
|
41
37
|
"peerDependencies": {
|
|
@@ -55,28 +51,29 @@
|
|
|
55
51
|
"@radix-ui/react-switch": "^1.0.3",
|
|
56
52
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
57
53
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
58
|
-
"
|
|
59
|
-
"@webstudio-is/
|
|
60
|
-
"@webstudio-is/
|
|
61
|
-
"@webstudio-is/icons": "^0.90.0",
|
|
62
|
-
"@webstudio-is/react-sdk": "^0.90.0"
|
|
54
|
+
"@webstudio-is/css-engine": "^0.92.0",
|
|
55
|
+
"@webstudio-is/icons": "^0.92.0",
|
|
56
|
+
"@webstudio-is/react-sdk": "^0.92.0"
|
|
63
57
|
},
|
|
64
58
|
"devDependencies": {
|
|
65
|
-
"@storybook/react": "^7.
|
|
66
|
-
"@types/react": "^18.2.
|
|
59
|
+
"@storybook/react": "^7.4.0",
|
|
60
|
+
"@types/react": "^18.2.21",
|
|
67
61
|
"@types/react-dom": "^18.2.7",
|
|
68
62
|
"react": "^18.2.0",
|
|
69
63
|
"react-dom": "^18.2.0",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"@webstudio-is/
|
|
64
|
+
"tailwindcss": "^3.3.3",
|
|
65
|
+
"typescript": "^5.2.2",
|
|
66
|
+
"@webstudio-is/css-data": "^0.92.0",
|
|
67
|
+
"@webstudio-is/generate-arg-types": "^0.92.0",
|
|
68
|
+
"@webstudio-is/sdk-components-react": "^0.92.0",
|
|
73
69
|
"@webstudio-is/storybook-config": "^0.0.0",
|
|
74
70
|
"@webstudio-is/tsconfig": "^1.0.7"
|
|
75
71
|
},
|
|
76
72
|
"scripts": {
|
|
77
|
-
"dev": "build
|
|
78
|
-
"build": "
|
|
79
|
-
"build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
|
|
73
|
+
"dev": "pnpm build --watch",
|
|
74
|
+
"build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
|
|
75
|
+
"build:args": "NODE_OPTIONS=--conditions=source generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
|
|
76
|
+
"build:tailwind": "tsx scripts/generate-tailwind-theme.ts && prettier --write src/theme/__generated__",
|
|
80
77
|
"dts": "tsc --project tsconfig.dts.json",
|
|
81
78
|
"typecheck": "tsc",
|
|
82
79
|
"checks": "pnpm typecheck",
|