@webstudio-is/sdk-components-react-radix 0.83.0 → 0.85.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__/dialog.props.js +2120 -0
- package/lib/__generated__/popover.props.js +468 -0
- package/lib/__generated__/sheet.props.js +2159 -0
- package/lib/__generated__/tabs.props.js +1286 -0
- package/lib/__generated__/tooltip.props.js +478 -0
- package/lib/cjs/__generated__/dialog.props.js +2140 -0
- package/lib/cjs/__generated__/popover.props.js +488 -0
- package/lib/cjs/__generated__/sheet.props.js +2179 -0
- package/lib/cjs/__generated__/tabs.props.js +1306 -0
- package/lib/cjs/__generated__/tooltip.props.js +498 -0
- package/lib/cjs/collapsible.js +34 -4
- package/lib/cjs/collapsible.ws.js +14 -9
- package/lib/cjs/components.js +30 -1
- package/lib/cjs/dialog.js +57 -0
- package/lib/cjs/dialog.ws.js +311 -0
- package/lib/cjs/hooks.js +25 -0
- package/lib/cjs/metas.js +30 -1
- package/lib/cjs/popover.js +58 -0
- package/lib/cjs/popover.ws.js +141 -0
- package/lib/cjs/props.js +30 -1
- package/lib/cjs/sheet.js +63 -0
- package/lib/cjs/sheet.ws.js +317 -0
- package/lib/cjs/tabs.js +41 -0
- package/lib/cjs/tabs.ws.js +213 -0
- package/lib/cjs/theme/radix-common-types.js +16 -0
- package/lib/cjs/theme/tailwind-classes.js +547 -0
- package/lib/cjs/theme/tailwind-colors.js +35 -0
- package/lib/cjs/theme/tailwind-theme.js +46 -0
- package/lib/cjs/tooltip.js +55 -0
- package/lib/cjs/tooltip.ws.js +142 -0
- package/lib/collapsible.js +35 -7
- package/lib/collapsible.ws.js +19 -10
- package/lib/components.js +46 -1
- package/lib/dialog.js +30 -0
- package/lib/dialog.ws.js +298 -0
- package/lib/hooks.js +5 -0
- package/lib/metas.js +59 -1
- package/lib/popover.js +31 -0
- package/lib/popover.ws.js +116 -0
- package/lib/props.js +59 -1
- package/lib/sheet.js +35 -0
- package/lib/sheet.ws.js +304 -0
- package/lib/tabs.js +24 -0
- package/lib/tabs.ws.js +193 -0
- package/lib/theme/radix-common-types.js +0 -0
- package/lib/theme/tailwind-classes.js +527 -0
- package/lib/theme/tailwind-colors.js +15 -0
- package/lib/theme/tailwind-theme.js +16 -0
- package/lib/tooltip.js +28 -0
- package/lib/tooltip.ws.js +117 -0
- package/lib/types/__generated__/dialog.props.d.ts +8 -0
- package/lib/types/__generated__/popover.props.d.ts +4 -0
- package/lib/types/__generated__/sheet.props.d.ts +8 -0
- package/lib/types/__generated__/tabs.props.d.ts +5 -0
- package/lib/types/__generated__/tooltip.props.d.ts +4 -0
- package/lib/types/collapsible.d.ts +4 -3
- package/lib/types/components.d.ts +5 -0
- package/lib/types/dialog.d.ts +25 -0
- package/lib/types/dialog.ws.d.ts +23 -0
- package/lib/types/hooks.d.ts +2 -0
- package/lib/types/metas.d.ts +5 -0
- package/lib/types/popover.d.ts +21 -0
- package/lib/types/popover.ws.d.ts +15 -0
- package/lib/types/props.d.ts +5 -0
- package/lib/types/sheet.d.ts +15 -0
- package/lib/types/sheet.ws.d.ts +23 -0
- package/lib/types/tabs.d.ts +15 -0
- package/lib/types/tabs.ws.d.ts +9 -0
- package/lib/types/theme/radix-common-types.d.ts +84 -0
- package/lib/types/theme/tailwind-classes.d.ts +83 -0
- package/lib/types/theme/tailwind-colors.d.ts +21 -0
- package/lib/types/theme/tailwind-theme.d.ts +72 -0
- package/lib/types/tooltip.d.ts +21 -0
- package/lib/types/tooltip.ws.d.ts +15 -0
- package/package.json +23 -6
- package/src/__generated__/dialog.props.ts +2363 -0
- package/src/__generated__/popover.props.ts +515 -0
- package/src/__generated__/sheet.props.ts +2402 -0
- package/src/__generated__/tabs.props.ts +1434 -0
- package/src/__generated__/tooltip.props.ts +526 -0
- package/src/collapsible.stories.tsx +21 -0
- package/src/collapsible.tsx +44 -21
- package/src/collapsible.ws.ts +21 -10
- package/src/components.ts +21 -0
- package/src/dialog.tsx +66 -0
- package/src/dialog.ws.tsx +315 -0
- package/src/hooks.ts +4 -0
- package/src/metas.ts +34 -0
- package/src/popover.tsx +70 -0
- package/src/popover.ws.tsx +127 -0
- package/src/props.ts +34 -0
- package/src/sheet.stories.tsx +21 -0
- package/src/sheet.tsx +40 -0
- package/src/sheet.ws.tsx +326 -0
- package/src/tabs.stories.tsx +21 -0
- package/src/tabs.tsx +46 -0
- package/src/tabs.ws.ts +211 -0
- package/src/theme/radix-common-types.ts +495 -0
- package/src/theme/tailwind-classes.ts +695 -0
- package/src/theme/tailwind-colors.ts +45 -0
- package/src/theme/tailwind-theme.ts +24 -0
- package/src/tooltip.tsx +69 -0
- package/src/tooltip.ws.tsx +128 -0
package/src/tabs.ws.ts
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContentIcon,
|
|
3
|
+
HeaderIcon,
|
|
4
|
+
TabsIcon,
|
|
5
|
+
TriggerIcon,
|
|
6
|
+
} from "@webstudio-is/icons/svg";
|
|
7
|
+
import type {
|
|
8
|
+
EmbedTemplateStyleDecl,
|
|
9
|
+
PresetStyle,
|
|
10
|
+
WsComponentMeta,
|
|
11
|
+
WsComponentPropsMeta,
|
|
12
|
+
} from "@webstudio-is/react-sdk";
|
|
13
|
+
import { div } from "@webstudio-is/react-sdk/css-normalize";
|
|
14
|
+
import * as tc from "./theme/tailwind-classes";
|
|
15
|
+
import {
|
|
16
|
+
propsTabs,
|
|
17
|
+
propsTabsList,
|
|
18
|
+
propsTabsTrigger,
|
|
19
|
+
propsTabsContent,
|
|
20
|
+
} from "./__generated__/tabs.props";
|
|
21
|
+
|
|
22
|
+
const presetStyle = {
|
|
23
|
+
div,
|
|
24
|
+
} satisfies PresetStyle<"div">;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Styles source without animations:
|
|
28
|
+
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/tabs.tsx
|
|
29
|
+
*
|
|
30
|
+
* Attributions
|
|
31
|
+
* MIT License
|
|
32
|
+
* Copyright (c) 2023 shadcn
|
|
33
|
+
**/
|
|
34
|
+
|
|
35
|
+
// inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm
|
|
36
|
+
const tabsTriggerStyles: EmbedTemplateStyleDecl[] = [
|
|
37
|
+
tc.inlineFlex(),
|
|
38
|
+
tc.items("center"),
|
|
39
|
+
tc.justify("center"),
|
|
40
|
+
tc.whitespace("nowrap"),
|
|
41
|
+
tc.rounded("md"),
|
|
42
|
+
tc.px(3),
|
|
43
|
+
tc.py(1.5),
|
|
44
|
+
tc.text("sm"),
|
|
45
|
+
tc.font("medium"),
|
|
46
|
+
tc.transition("all"),
|
|
47
|
+
tc.focusVisible(
|
|
48
|
+
[tc.outline("none"), tc.ring("ring", 2, "background", 2)].flat()
|
|
49
|
+
),
|
|
50
|
+
tc.disabled([tc.pointerEvents("none"), tc.opacity(50)].flat()),
|
|
51
|
+
tc.state(
|
|
52
|
+
[tc.bg("background"), tc.text("foreground"), tc.shadow("sm")].flat(),
|
|
53
|
+
"[data-state=active]"
|
|
54
|
+
),
|
|
55
|
+
].flat();
|
|
56
|
+
|
|
57
|
+
// mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|
58
|
+
const tabsContentStyles: EmbedTemplateStyleDecl[] = [
|
|
59
|
+
tc.mt(2),
|
|
60
|
+
tc.focusVisible(
|
|
61
|
+
[tc.outline("none"), tc.ring("ring", 2, "background", 2)].flat()
|
|
62
|
+
),
|
|
63
|
+
].flat();
|
|
64
|
+
|
|
65
|
+
export const metaTabs: WsComponentMeta = {
|
|
66
|
+
category: "radix",
|
|
67
|
+
type: "container",
|
|
68
|
+
label: "Tabs",
|
|
69
|
+
icon: TabsIcon,
|
|
70
|
+
presetStyle,
|
|
71
|
+
template: [
|
|
72
|
+
{
|
|
73
|
+
type: "instance",
|
|
74
|
+
component: "Tabs",
|
|
75
|
+
dataSources: {
|
|
76
|
+
tabsValue: { type: "variable", initialValue: "0" },
|
|
77
|
+
},
|
|
78
|
+
props: [
|
|
79
|
+
{ type: "dataSource", name: "value", dataSourceName: "tabsValue" },
|
|
80
|
+
{
|
|
81
|
+
name: "onValueChange",
|
|
82
|
+
type: "action",
|
|
83
|
+
value: [
|
|
84
|
+
{
|
|
85
|
+
type: "execute",
|
|
86
|
+
args: ["value"],
|
|
87
|
+
code: `tabsValue = value`,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
children: [
|
|
93
|
+
{
|
|
94
|
+
type: "instance",
|
|
95
|
+
component: "TabsList",
|
|
96
|
+
// inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground
|
|
97
|
+
styles: [
|
|
98
|
+
tc.inlineFlex(),
|
|
99
|
+
tc.h(10),
|
|
100
|
+
tc.items("center"),
|
|
101
|
+
tc.justify("center"),
|
|
102
|
+
tc.rounded("md"),
|
|
103
|
+
tc.bg("muted"),
|
|
104
|
+
tc.p(1),
|
|
105
|
+
tc.text("mutedForeground"),
|
|
106
|
+
].flat(),
|
|
107
|
+
children: [
|
|
108
|
+
{
|
|
109
|
+
type: "instance",
|
|
110
|
+
component: "TabsTrigger",
|
|
111
|
+
children: [
|
|
112
|
+
{
|
|
113
|
+
type: "instance",
|
|
114
|
+
component: "Button",
|
|
115
|
+
styles: tabsTriggerStyles,
|
|
116
|
+
children: [{ type: "text", value: "Account" }],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: "instance",
|
|
122
|
+
component: "TabsTrigger",
|
|
123
|
+
children: [
|
|
124
|
+
{
|
|
125
|
+
type: "instance",
|
|
126
|
+
component: "Button",
|
|
127
|
+
styles: tabsTriggerStyles,
|
|
128
|
+
children: [{ type: "text", value: "Password" }],
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "instance",
|
|
136
|
+
component: "TabsContent",
|
|
137
|
+
styles: tabsContentStyles,
|
|
138
|
+
children: [
|
|
139
|
+
{ type: "text", value: "Make changes to your account here." },
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "instance",
|
|
144
|
+
component: "TabsContent",
|
|
145
|
+
styles: tabsContentStyles,
|
|
146
|
+
children: [{ type: "text", value: "Change your password here." }],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const metaTabsList: WsComponentMeta = {
|
|
154
|
+
category: "hidden",
|
|
155
|
+
detachable: false,
|
|
156
|
+
type: "container",
|
|
157
|
+
label: "Tabs List",
|
|
158
|
+
icon: HeaderIcon,
|
|
159
|
+
requiredAncestors: ["Tabs"],
|
|
160
|
+
presetStyle,
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export const metaTabsTrigger: WsComponentMeta = {
|
|
164
|
+
category: "hidden",
|
|
165
|
+
type: "container",
|
|
166
|
+
label: "Tabs Trigger",
|
|
167
|
+
icon: TriggerIcon,
|
|
168
|
+
requiredAncestors: ["TabsList"],
|
|
169
|
+
invalidAncestors: ["TabsTrigger"],
|
|
170
|
+
indexWithinAncestor: "Tabs",
|
|
171
|
+
template: [
|
|
172
|
+
{
|
|
173
|
+
type: "instance",
|
|
174
|
+
component: "TabsTrigger",
|
|
175
|
+
children: [{ type: "text", value: "New Tab" }],
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export const metaTabsContent: WsComponentMeta = {
|
|
181
|
+
category: "hidden",
|
|
182
|
+
type: "container",
|
|
183
|
+
label: "Tabs Content",
|
|
184
|
+
icon: ContentIcon,
|
|
185
|
+
requiredAncestors: ["Tabs"],
|
|
186
|
+
indexWithinAncestor: "Tabs",
|
|
187
|
+
presetStyle,
|
|
188
|
+
template: [
|
|
189
|
+
{
|
|
190
|
+
type: "instance",
|
|
191
|
+
component: "TabsContent",
|
|
192
|
+
children: [{ type: "text", value: "New Tab Content" }],
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export const propsMetaTabs: WsComponentPropsMeta = {
|
|
198
|
+
props: propsTabs,
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export const propsMetaTabsList: WsComponentPropsMeta = {
|
|
202
|
+
props: propsTabsList,
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export const propsMetaTabsTrigger: WsComponentPropsMeta = {
|
|
206
|
+
props: propsTabsTrigger,
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export const propsMetaTabsContent: WsComponentPropsMeta = {
|
|
210
|
+
props: propsTabsContent,
|
|
211
|
+
};
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
// Source: "tailwindcss/types/generated/default-theme"
|
|
2
|
+
|
|
3
|
+
import type { colors } from "./tailwind-colors";
|
|
4
|
+
|
|
5
|
+
// Removed `Config['theme'] &`
|
|
6
|
+
type DefaultTheme = {
|
|
7
|
+
animation: Record<"none" | "spin" | "ping" | "pulse" | "bounce", string>;
|
|
8
|
+
aria: Record<
|
|
9
|
+
| "busy"
|
|
10
|
+
| "checked"
|
|
11
|
+
| "disabled"
|
|
12
|
+
| "expanded"
|
|
13
|
+
| "hidden"
|
|
14
|
+
| "pressed"
|
|
15
|
+
| "readonly"
|
|
16
|
+
| "required"
|
|
17
|
+
| "selected",
|
|
18
|
+
string
|
|
19
|
+
>;
|
|
20
|
+
aspectRatio: Record<"auto" | "square" | "video", string>;
|
|
21
|
+
backgroundImage: Record<
|
|
22
|
+
| "none"
|
|
23
|
+
| "gradient-to-t"
|
|
24
|
+
| "gradient-to-tr"
|
|
25
|
+
| "gradient-to-r"
|
|
26
|
+
| "gradient-to-br"
|
|
27
|
+
| "gradient-to-b"
|
|
28
|
+
| "gradient-to-bl"
|
|
29
|
+
| "gradient-to-l"
|
|
30
|
+
| "gradient-to-tl",
|
|
31
|
+
string
|
|
32
|
+
>;
|
|
33
|
+
backgroundPosition: Record<
|
|
34
|
+
| "bottom"
|
|
35
|
+
| "center"
|
|
36
|
+
| "left"
|
|
37
|
+
| "left-bottom"
|
|
38
|
+
| "left-top"
|
|
39
|
+
| "right"
|
|
40
|
+
| "right-bottom"
|
|
41
|
+
| "right-top"
|
|
42
|
+
| "top",
|
|
43
|
+
string
|
|
44
|
+
>;
|
|
45
|
+
backgroundSize: Record<"auto" | "cover" | "contain", string>;
|
|
46
|
+
blur: Record<
|
|
47
|
+
"0" | "none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl",
|
|
48
|
+
string
|
|
49
|
+
>;
|
|
50
|
+
borderRadius: Record<
|
|
51
|
+
"none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full",
|
|
52
|
+
string
|
|
53
|
+
>;
|
|
54
|
+
borderWidth: Record<"0" | "2" | "4" | "8" | "DEFAULT", string>;
|
|
55
|
+
boxShadow: Record<
|
|
56
|
+
"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none",
|
|
57
|
+
string
|
|
58
|
+
>;
|
|
59
|
+
brightness: Record<
|
|
60
|
+
| "0"
|
|
61
|
+
| "50"
|
|
62
|
+
| "75"
|
|
63
|
+
| "90"
|
|
64
|
+
| "95"
|
|
65
|
+
| "100"
|
|
66
|
+
| "105"
|
|
67
|
+
| "110"
|
|
68
|
+
| "125"
|
|
69
|
+
| "150"
|
|
70
|
+
| "200",
|
|
71
|
+
string
|
|
72
|
+
>;
|
|
73
|
+
columns: Record<
|
|
74
|
+
| "1"
|
|
75
|
+
| "2"
|
|
76
|
+
| "3"
|
|
77
|
+
| "4"
|
|
78
|
+
| "5"
|
|
79
|
+
| "6"
|
|
80
|
+
| "7"
|
|
81
|
+
| "8"
|
|
82
|
+
| "9"
|
|
83
|
+
| "10"
|
|
84
|
+
| "11"
|
|
85
|
+
| "12"
|
|
86
|
+
| "auto"
|
|
87
|
+
| "3xs"
|
|
88
|
+
| "2xs"
|
|
89
|
+
| "xs"
|
|
90
|
+
| "sm"
|
|
91
|
+
| "md"
|
|
92
|
+
| "lg"
|
|
93
|
+
| "xl"
|
|
94
|
+
| "2xl"
|
|
95
|
+
| "3xl"
|
|
96
|
+
| "4xl"
|
|
97
|
+
| "5xl"
|
|
98
|
+
| "6xl"
|
|
99
|
+
| "7xl",
|
|
100
|
+
string
|
|
101
|
+
>;
|
|
102
|
+
content: Record<"none", string>;
|
|
103
|
+
contrast: Record<"0" | "50" | "75" | "100" | "125" | "150" | "200", string>;
|
|
104
|
+
cursor: Record<
|
|
105
|
+
| "auto"
|
|
106
|
+
| "default"
|
|
107
|
+
| "pointer"
|
|
108
|
+
| "wait"
|
|
109
|
+
| "text"
|
|
110
|
+
| "move"
|
|
111
|
+
| "help"
|
|
112
|
+
| "not-allowed"
|
|
113
|
+
| "none"
|
|
114
|
+
| "context-menu"
|
|
115
|
+
| "progress"
|
|
116
|
+
| "cell"
|
|
117
|
+
| "crosshair"
|
|
118
|
+
| "vertical-text"
|
|
119
|
+
| "alias"
|
|
120
|
+
| "copy"
|
|
121
|
+
| "no-drop"
|
|
122
|
+
| "grab"
|
|
123
|
+
| "grabbing"
|
|
124
|
+
| "all-scroll"
|
|
125
|
+
| "col-resize"
|
|
126
|
+
| "row-resize"
|
|
127
|
+
| "n-resize"
|
|
128
|
+
| "e-resize"
|
|
129
|
+
| "s-resize"
|
|
130
|
+
| "w-resize"
|
|
131
|
+
| "ne-resize"
|
|
132
|
+
| "nw-resize"
|
|
133
|
+
| "se-resize"
|
|
134
|
+
| "sw-resize"
|
|
135
|
+
| "ew-resize"
|
|
136
|
+
| "ns-resize"
|
|
137
|
+
| "nesw-resize"
|
|
138
|
+
| "nwse-resize"
|
|
139
|
+
| "zoom-in"
|
|
140
|
+
| "zoom-out",
|
|
141
|
+
string
|
|
142
|
+
>;
|
|
143
|
+
dropShadow: Record<
|
|
144
|
+
"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "none",
|
|
145
|
+
string | string[]
|
|
146
|
+
>;
|
|
147
|
+
flex: Record<"1" | "auto" | "initial" | "none", string>;
|
|
148
|
+
flexGrow: Record<"0" | "DEFAULT", string>;
|
|
149
|
+
flexShrink: Record<"0" | "DEFAULT", string>;
|
|
150
|
+
fontFamily: Record<"sans" | "serif" | "mono", string[]>;
|
|
151
|
+
fontSize: Record<
|
|
152
|
+
| "xs"
|
|
153
|
+
| "sm"
|
|
154
|
+
| "base"
|
|
155
|
+
| "lg"
|
|
156
|
+
| "xl"
|
|
157
|
+
| "2xl"
|
|
158
|
+
| "3xl"
|
|
159
|
+
| "4xl"
|
|
160
|
+
| "5xl"
|
|
161
|
+
| "6xl"
|
|
162
|
+
| "7xl"
|
|
163
|
+
| "8xl"
|
|
164
|
+
| "9xl",
|
|
165
|
+
[string, { lineHeight: string }]
|
|
166
|
+
>;
|
|
167
|
+
fontWeight: Record<
|
|
168
|
+
| "thin"
|
|
169
|
+
| "extralight"
|
|
170
|
+
| "light"
|
|
171
|
+
| "normal"
|
|
172
|
+
| "medium"
|
|
173
|
+
| "semibold"
|
|
174
|
+
| "bold"
|
|
175
|
+
| "extrabold"
|
|
176
|
+
| "black",
|
|
177
|
+
string
|
|
178
|
+
>;
|
|
179
|
+
gradientColorStopPositions: Record<
|
|
180
|
+
| "0%"
|
|
181
|
+
| "5%"
|
|
182
|
+
| "10%"
|
|
183
|
+
| "15%"
|
|
184
|
+
| "20%"
|
|
185
|
+
| "25%"
|
|
186
|
+
| "30%"
|
|
187
|
+
| "35%"
|
|
188
|
+
| "40%"
|
|
189
|
+
| "45%"
|
|
190
|
+
| "50%"
|
|
191
|
+
| "55%"
|
|
192
|
+
| "60%"
|
|
193
|
+
| "65%"
|
|
194
|
+
| "70%"
|
|
195
|
+
| "75%"
|
|
196
|
+
| "80%"
|
|
197
|
+
| "85%"
|
|
198
|
+
| "90%"
|
|
199
|
+
| "95%"
|
|
200
|
+
| "100%",
|
|
201
|
+
string
|
|
202
|
+
>;
|
|
203
|
+
grayscale: Record<"0" | "DEFAULT", string>;
|
|
204
|
+
gridAutoColumns: Record<"auto" | "min" | "max" | "fr", string>;
|
|
205
|
+
gridAutoRows: Record<"auto" | "min" | "max" | "fr", string>;
|
|
206
|
+
gridColumn: Record<
|
|
207
|
+
| "auto"
|
|
208
|
+
| "span-1"
|
|
209
|
+
| "span-2"
|
|
210
|
+
| "span-3"
|
|
211
|
+
| "span-4"
|
|
212
|
+
| "span-5"
|
|
213
|
+
| "span-6"
|
|
214
|
+
| "span-7"
|
|
215
|
+
| "span-8"
|
|
216
|
+
| "span-9"
|
|
217
|
+
| "span-10"
|
|
218
|
+
| "span-11"
|
|
219
|
+
| "span-12"
|
|
220
|
+
| "span-full",
|
|
221
|
+
string
|
|
222
|
+
>;
|
|
223
|
+
gridColumnEnd: Record<
|
|
224
|
+
| "1"
|
|
225
|
+
| "2"
|
|
226
|
+
| "3"
|
|
227
|
+
| "4"
|
|
228
|
+
| "5"
|
|
229
|
+
| "6"
|
|
230
|
+
| "7"
|
|
231
|
+
| "8"
|
|
232
|
+
| "9"
|
|
233
|
+
| "10"
|
|
234
|
+
| "11"
|
|
235
|
+
| "12"
|
|
236
|
+
| "13"
|
|
237
|
+
| "auto",
|
|
238
|
+
string
|
|
239
|
+
>;
|
|
240
|
+
gridColumnStart: Record<
|
|
241
|
+
| "1"
|
|
242
|
+
| "2"
|
|
243
|
+
| "3"
|
|
244
|
+
| "4"
|
|
245
|
+
| "5"
|
|
246
|
+
| "6"
|
|
247
|
+
| "7"
|
|
248
|
+
| "8"
|
|
249
|
+
| "9"
|
|
250
|
+
| "10"
|
|
251
|
+
| "11"
|
|
252
|
+
| "12"
|
|
253
|
+
| "13"
|
|
254
|
+
| "auto",
|
|
255
|
+
string
|
|
256
|
+
>;
|
|
257
|
+
gridRow: Record<
|
|
258
|
+
| "auto"
|
|
259
|
+
| "span-1"
|
|
260
|
+
| "span-2"
|
|
261
|
+
| "span-3"
|
|
262
|
+
| "span-4"
|
|
263
|
+
| "span-5"
|
|
264
|
+
| "span-6"
|
|
265
|
+
| "span-full",
|
|
266
|
+
string
|
|
267
|
+
>;
|
|
268
|
+
gridRowEnd: Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "auto", string>;
|
|
269
|
+
gridRowStart: Record<
|
|
270
|
+
"1" | "2" | "3" | "4" | "5" | "6" | "7" | "auto",
|
|
271
|
+
string
|
|
272
|
+
>;
|
|
273
|
+
gridTemplateColumns: Record<
|
|
274
|
+
| "1"
|
|
275
|
+
| "2"
|
|
276
|
+
| "3"
|
|
277
|
+
| "4"
|
|
278
|
+
| "5"
|
|
279
|
+
| "6"
|
|
280
|
+
| "7"
|
|
281
|
+
| "8"
|
|
282
|
+
| "9"
|
|
283
|
+
| "10"
|
|
284
|
+
| "11"
|
|
285
|
+
| "12"
|
|
286
|
+
| "none",
|
|
287
|
+
string
|
|
288
|
+
>;
|
|
289
|
+
gridTemplateRows: Record<"1" | "2" | "3" | "4" | "5" | "6" | "none", string>;
|
|
290
|
+
hueRotate: Record<"0" | "15" | "30" | "60" | "90" | "180", string>;
|
|
291
|
+
invert: Record<"0" | "DEFAULT", string>;
|
|
292
|
+
letterSpacing: Record<
|
|
293
|
+
"tighter" | "tight" | "normal" | "wide" | "wider" | "widest",
|
|
294
|
+
string
|
|
295
|
+
>;
|
|
296
|
+
lineHeight: Record<
|
|
297
|
+
| "3"
|
|
298
|
+
| "4"
|
|
299
|
+
| "5"
|
|
300
|
+
| "6"
|
|
301
|
+
| "7"
|
|
302
|
+
| "8"
|
|
303
|
+
| "9"
|
|
304
|
+
| "10"
|
|
305
|
+
| "none"
|
|
306
|
+
| "tight"
|
|
307
|
+
| "snug"
|
|
308
|
+
| "normal"
|
|
309
|
+
| "relaxed"
|
|
310
|
+
| "loose",
|
|
311
|
+
string
|
|
312
|
+
>;
|
|
313
|
+
listStyleType: Record<"none" | "disc" | "decimal", string>;
|
|
314
|
+
listStyleImage: Record<"none", string>;
|
|
315
|
+
lineClamp: Record<"1" | "2" | "3" | "4" | "5" | "6", string>;
|
|
316
|
+
minHeight: Record<"0" | "full" | "screen" | "min" | "max" | "fit", string>;
|
|
317
|
+
minWidth: Record<"0" | "full" | "min" | "max" | "fit", string>;
|
|
318
|
+
objectPosition: Record<
|
|
319
|
+
| "bottom"
|
|
320
|
+
| "center"
|
|
321
|
+
| "left"
|
|
322
|
+
| "left-bottom"
|
|
323
|
+
| "left-top"
|
|
324
|
+
| "right"
|
|
325
|
+
| "right-bottom"
|
|
326
|
+
| "right-top"
|
|
327
|
+
| "top",
|
|
328
|
+
string
|
|
329
|
+
>;
|
|
330
|
+
opacity: Record<
|
|
331
|
+
| "0"
|
|
332
|
+
| "5"
|
|
333
|
+
| "10"
|
|
334
|
+
| "20"
|
|
335
|
+
| "25"
|
|
336
|
+
| "30"
|
|
337
|
+
| "40"
|
|
338
|
+
| "50"
|
|
339
|
+
| "60"
|
|
340
|
+
| "70"
|
|
341
|
+
| "75"
|
|
342
|
+
| "80"
|
|
343
|
+
| "90"
|
|
344
|
+
| "95"
|
|
345
|
+
| "100",
|
|
346
|
+
string
|
|
347
|
+
>;
|
|
348
|
+
order: Record<
|
|
349
|
+
| "1"
|
|
350
|
+
| "2"
|
|
351
|
+
| "3"
|
|
352
|
+
| "4"
|
|
353
|
+
| "5"
|
|
354
|
+
| "6"
|
|
355
|
+
| "7"
|
|
356
|
+
| "8"
|
|
357
|
+
| "9"
|
|
358
|
+
| "10"
|
|
359
|
+
| "11"
|
|
360
|
+
| "12"
|
|
361
|
+
| "first"
|
|
362
|
+
| "last"
|
|
363
|
+
| "none",
|
|
364
|
+
string
|
|
365
|
+
>;
|
|
366
|
+
outlineOffset: Record<"0" | "1" | "2" | "4" | "8", string>;
|
|
367
|
+
outlineWidth: Record<"0" | "1" | "2" | "4" | "8", string>;
|
|
368
|
+
ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", string>;
|
|
369
|
+
ringWidth: Record<"0" | "1" | "2" | "4" | "8" | "DEFAULT", string>;
|
|
370
|
+
rotate: Record<
|
|
371
|
+
"0" | "1" | "2" | "3" | "6" | "12" | "45" | "90" | "180",
|
|
372
|
+
string
|
|
373
|
+
>;
|
|
374
|
+
saturate: Record<"0" | "50" | "100" | "150" | "200", string>;
|
|
375
|
+
scale: Record<
|
|
376
|
+
"0" | "50" | "75" | "90" | "95" | "100" | "105" | "110" | "125" | "150",
|
|
377
|
+
string
|
|
378
|
+
>;
|
|
379
|
+
screens: Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
|
|
380
|
+
sepia: Record<"0" | "DEFAULT", string>;
|
|
381
|
+
skew: Record<"0" | "1" | "2" | "3" | "6" | "12", string>;
|
|
382
|
+
spacing: Record<
|
|
383
|
+
| "0"
|
|
384
|
+
| "1"
|
|
385
|
+
| "2"
|
|
386
|
+
| "3"
|
|
387
|
+
| "4"
|
|
388
|
+
| "5"
|
|
389
|
+
| "6"
|
|
390
|
+
| "7"
|
|
391
|
+
| "8"
|
|
392
|
+
| "9"
|
|
393
|
+
| "10"
|
|
394
|
+
| "11"
|
|
395
|
+
| "12"
|
|
396
|
+
| "14"
|
|
397
|
+
| "16"
|
|
398
|
+
| "20"
|
|
399
|
+
| "24"
|
|
400
|
+
| "28"
|
|
401
|
+
| "32"
|
|
402
|
+
| "36"
|
|
403
|
+
| "40"
|
|
404
|
+
| "44"
|
|
405
|
+
| "48"
|
|
406
|
+
| "52"
|
|
407
|
+
| "56"
|
|
408
|
+
| "60"
|
|
409
|
+
| "64"
|
|
410
|
+
| "72"
|
|
411
|
+
| "80"
|
|
412
|
+
| "96"
|
|
413
|
+
| "px"
|
|
414
|
+
| "0.5"
|
|
415
|
+
| "1.5"
|
|
416
|
+
| "2.5"
|
|
417
|
+
| "3.5",
|
|
418
|
+
string
|
|
419
|
+
>;
|
|
420
|
+
strokeWidth: Record<"0" | "1" | "2", string>;
|
|
421
|
+
textDecorationThickness: Record<
|
|
422
|
+
"0" | "1" | "2" | "4" | "8" | "auto" | "from-font",
|
|
423
|
+
string
|
|
424
|
+
>;
|
|
425
|
+
textUnderlineOffset: Record<"0" | "1" | "2" | "4" | "8" | "auto", string>;
|
|
426
|
+
transformOrigin: Record<
|
|
427
|
+
| "center"
|
|
428
|
+
| "top"
|
|
429
|
+
| "top-right"
|
|
430
|
+
| "right"
|
|
431
|
+
| "bottom-right"
|
|
432
|
+
| "bottom"
|
|
433
|
+
| "bottom-left"
|
|
434
|
+
| "left"
|
|
435
|
+
| "top-left",
|
|
436
|
+
string
|
|
437
|
+
>;
|
|
438
|
+
transitionDelay: Record<
|
|
439
|
+
"0" | "75" | "100" | "150" | "200" | "300" | "500" | "700" | "1000",
|
|
440
|
+
string
|
|
441
|
+
>;
|
|
442
|
+
transitionDuration: Record<
|
|
443
|
+
| "0"
|
|
444
|
+
| "75"
|
|
445
|
+
| "100"
|
|
446
|
+
| "150"
|
|
447
|
+
| "200"
|
|
448
|
+
| "300"
|
|
449
|
+
| "500"
|
|
450
|
+
| "700"
|
|
451
|
+
| "1000"
|
|
452
|
+
| "DEFAULT",
|
|
453
|
+
string
|
|
454
|
+
>;
|
|
455
|
+
transitionProperty: Record<
|
|
456
|
+
"none" | "all" | "DEFAULT" | "colors" | "opacity" | "shadow" | "transform",
|
|
457
|
+
string
|
|
458
|
+
>;
|
|
459
|
+
transitionTimingFunction: Record<
|
|
460
|
+
"DEFAULT" | "linear" | "in" | "out" | "in-out",
|
|
461
|
+
string
|
|
462
|
+
>;
|
|
463
|
+
willChange: Record<"auto" | "scroll" | "contents" | "transform", string>;
|
|
464
|
+
zIndex: Record<"0" | "10" | "20" | "30" | "40" | "50" | "auto", string>;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export type EvaluatedDefaultTheme = DefaultTheme & {
|
|
468
|
+
padding: DefaultTheme["spacing"];
|
|
469
|
+
colors: typeof colors;
|
|
470
|
+
width: DefaultTheme["spacing"] & Record<"full", string>;
|
|
471
|
+
height: DefaultTheme["spacing"];
|
|
472
|
+
margin: DefaultTheme["spacing"] & Record<"auto", string>;
|
|
473
|
+
maxWidth: DefaultTheme["spacing"] &
|
|
474
|
+
Record<
|
|
475
|
+
| "none"
|
|
476
|
+
| "0"
|
|
477
|
+
| "xs"
|
|
478
|
+
| "sm"
|
|
479
|
+
| "md"
|
|
480
|
+
| "lg"
|
|
481
|
+
| "xl"
|
|
482
|
+
| "2xl"
|
|
483
|
+
| "3xl"
|
|
484
|
+
| "4xl"
|
|
485
|
+
| "5xl"
|
|
486
|
+
| "6xl"
|
|
487
|
+
| "7xl"
|
|
488
|
+
| "full"
|
|
489
|
+
| "min"
|
|
490
|
+
| "max"
|
|
491
|
+
| "fit"
|
|
492
|
+
| "prose",
|
|
493
|
+
string
|
|
494
|
+
>;
|
|
495
|
+
};
|