@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
package/lib/tabs.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import {
|
|
3
4
|
forwardRef
|
|
@@ -7,18 +8,18 @@ import {
|
|
|
7
8
|
getClosestInstance,
|
|
8
9
|
getIndexWithinAncestorFromComponentProps
|
|
9
10
|
} from "@webstudio-is/react-sdk";
|
|
10
|
-
const Tabs = Root;
|
|
11
|
-
const TabsList = List;
|
|
12
|
-
const TabsTrigger = forwardRef(({ value, ...props }, ref) => {
|
|
11
|
+
export const Tabs = Root;
|
|
12
|
+
export const TabsList = List;
|
|
13
|
+
export const TabsTrigger = forwardRef(({ value, ...props }, ref) => {
|
|
13
14
|
const index = getIndexWithinAncestorFromComponentProps(props);
|
|
14
15
|
return /* @__PURE__ */ jsx(Trigger, { ref, value: value ?? index, ...props });
|
|
15
16
|
});
|
|
16
|
-
const TabsContent = forwardRef(({ value, ...props }, ref) => {
|
|
17
|
+
export const TabsContent = forwardRef(({ value, ...props }, ref) => {
|
|
17
18
|
const index = getIndexWithinAncestorFromComponentProps(props);
|
|
18
19
|
return /* @__PURE__ */ jsx(Content, { ref, value: value ?? index, ...props });
|
|
19
20
|
});
|
|
20
21
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
21
|
-
const hooksTabs = {
|
|
22
|
+
export const hooksTabs = {
|
|
22
23
|
onNavigatorSelect: (context, event) => {
|
|
23
24
|
for (const instance of event.instancePath) {
|
|
24
25
|
if (instance.component === `${namespace}:TabsContent`) {
|
|
@@ -35,10 +36,3 @@ const hooksTabs = {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
|
-
export {
|
|
39
|
-
Tabs,
|
|
40
|
-
TabsContent,
|
|
41
|
-
TabsList,
|
|
42
|
-
TabsTrigger,
|
|
43
|
-
hooksTabs
|
|
44
|
-
};
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
import { renderComponentTemplate } from "@webstudio-is/react-sdk";
|
|
3
3
|
import { Tabs as TabsPrimitive } from "./tabs";
|
|
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/Tabs",
|
|
11
|
-
component: TabsPrimitive
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
metas: { ...baseMetas, ...radixMetas },
|
|
20
|
-
}),
|
|
10
|
+
component: TabsPrimitive
|
|
11
|
+
};
|
|
12
|
+
export const Tabs = {
|
|
13
|
+
render: () => renderComponentTemplate({
|
|
14
|
+
name: "Tabs",
|
|
15
|
+
components: { ...baseComponents, ...radixComponents },
|
|
16
|
+
metas: { ...baseMetas, ...radixMetas }
|
|
17
|
+
})
|
|
21
18
|
};
|
package/lib/tabs.ws.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import {
|
|
2
3
|
ContentIcon,
|
|
3
4
|
HeaderIcon,
|
|
@@ -45,7 +46,7 @@ const tabsContentStyles = [
|
|
|
45
46
|
[tc.outline("none"), tc.ring("ring", 2, "background", 2)].flat()
|
|
46
47
|
)
|
|
47
48
|
].flat();
|
|
48
|
-
const metaTabs = {
|
|
49
|
+
export const metaTabs = {
|
|
49
50
|
category: "radix",
|
|
50
51
|
order: 2,
|
|
51
52
|
type: "container",
|
|
@@ -117,7 +118,7 @@ const metaTabs = {
|
|
|
117
118
|
}
|
|
118
119
|
]
|
|
119
120
|
};
|
|
120
|
-
const metaTabsList = {
|
|
121
|
+
export const metaTabsList = {
|
|
121
122
|
category: "hidden",
|
|
122
123
|
detachable: false,
|
|
123
124
|
type: "container",
|
|
@@ -125,7 +126,7 @@ const metaTabsList = {
|
|
|
125
126
|
requiredAncestors: ["Tabs"],
|
|
126
127
|
presetStyle
|
|
127
128
|
};
|
|
128
|
-
const metaTabsTrigger = {
|
|
129
|
+
export const metaTabsTrigger = {
|
|
129
130
|
category: "hidden",
|
|
130
131
|
type: "container",
|
|
131
132
|
icon: TriggerIcon,
|
|
@@ -145,7 +146,7 @@ const metaTabsTrigger = {
|
|
|
145
146
|
button: [button, buttonReset].flat()
|
|
146
147
|
}
|
|
147
148
|
};
|
|
148
|
-
const metaTabsContent = {
|
|
149
|
+
export const metaTabsContent = {
|
|
149
150
|
category: "hidden",
|
|
150
151
|
type: "container",
|
|
151
152
|
label: "Tab Content",
|
|
@@ -154,25 +155,15 @@ const metaTabsContent = {
|
|
|
154
155
|
indexWithinAncestor: "Tabs",
|
|
155
156
|
presetStyle
|
|
156
157
|
};
|
|
157
|
-
const propsMetaTabs = {
|
|
158
|
+
export const propsMetaTabs = {
|
|
158
159
|
props: propsTabs
|
|
159
160
|
};
|
|
160
|
-
const propsMetaTabsList = {
|
|
161
|
+
export const propsMetaTabsList = {
|
|
161
162
|
props: propsTabsList
|
|
162
163
|
};
|
|
163
|
-
const propsMetaTabsTrigger = {
|
|
164
|
+
export const propsMetaTabsTrigger = {
|
|
164
165
|
props: propsTabsTrigger
|
|
165
166
|
};
|
|
166
|
-
const propsMetaTabsContent = {
|
|
167
|
+
export const propsMetaTabsContent = {
|
|
167
168
|
props: propsTabsContent
|
|
168
169
|
};
|
|
169
|
-
export {
|
|
170
|
-
metaTabs,
|
|
171
|
-
metaTabsContent,
|
|
172
|
-
metaTabsList,
|
|
173
|
-
metaTabsTrigger,
|
|
174
|
-
propsMetaTabs,
|
|
175
|
-
propsMetaTabsContent,
|
|
176
|
-
propsMetaTabsList,
|
|
177
|
-
propsMetaTabsTrigger
|
|
178
|
-
};
|
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
export const spacing = {
|
|
3
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
4
|
+
"1": { type: "unit", unit: "rem", value: 0.25 },
|
|
5
|
+
"2": { type: "unit", unit: "rem", value: 0.5 },
|
|
6
|
+
"3": { type: "unit", unit: "rem", value: 0.75 },
|
|
7
|
+
"4": { type: "unit", unit: "rem", value: 1 },
|
|
8
|
+
"5": { type: "unit", unit: "rem", value: 1.25 },
|
|
9
|
+
"6": { type: "unit", unit: "rem", value: 1.5 },
|
|
10
|
+
"7": { type: "unit", unit: "rem", value: 1.75 },
|
|
11
|
+
"8": { type: "unit", unit: "rem", value: 2 },
|
|
12
|
+
"9": { type: "unit", unit: "rem", value: 2.25 },
|
|
13
|
+
"10": { type: "unit", unit: "rem", value: 2.5 },
|
|
14
|
+
"11": { type: "unit", unit: "rem", value: 2.75 },
|
|
15
|
+
"12": { type: "unit", unit: "rem", value: 3 },
|
|
16
|
+
"14": { type: "unit", unit: "rem", value: 3.5 },
|
|
17
|
+
"16": { type: "unit", unit: "rem", value: 4 },
|
|
18
|
+
"20": { type: "unit", unit: "rem", value: 5 },
|
|
19
|
+
"24": { type: "unit", unit: "rem", value: 6 },
|
|
20
|
+
"28": { type: "unit", unit: "rem", value: 7 },
|
|
21
|
+
"32": { type: "unit", unit: "rem", value: 8 },
|
|
22
|
+
"36": { type: "unit", unit: "rem", value: 9 },
|
|
23
|
+
"40": { type: "unit", unit: "rem", value: 10 },
|
|
24
|
+
"44": { type: "unit", unit: "rem", value: 11 },
|
|
25
|
+
"48": { type: "unit", unit: "rem", value: 12 },
|
|
26
|
+
"52": { type: "unit", unit: "rem", value: 13 },
|
|
27
|
+
"56": { type: "unit", unit: "rem", value: 14 },
|
|
28
|
+
"60": { type: "unit", unit: "rem", value: 15 },
|
|
29
|
+
"64": { type: "unit", unit: "rem", value: 16 },
|
|
30
|
+
"72": { type: "unit", unit: "rem", value: 18 },
|
|
31
|
+
"80": { type: "unit", unit: "rem", value: 20 },
|
|
32
|
+
"96": { type: "unit", unit: "rem", value: 24 },
|
|
33
|
+
px: { type: "unit", unit: "px", value: 1 },
|
|
34
|
+
"0.5": { type: "unit", unit: "rem", value: 0.125 },
|
|
35
|
+
"1.5": { type: "unit", unit: "rem", value: 0.375 },
|
|
36
|
+
"2.5": { type: "unit", unit: "rem", value: 0.625 },
|
|
37
|
+
"3.5": { type: "unit", unit: "rem", value: 0.875 }
|
|
38
|
+
};
|
|
39
|
+
export const padding = {
|
|
40
|
+
...spacing
|
|
41
|
+
};
|
|
42
|
+
export const margin = {
|
|
43
|
+
...spacing,
|
|
44
|
+
auto: { type: "keyword", value: "auto" }
|
|
45
|
+
};
|
|
46
|
+
export const width = {
|
|
47
|
+
...spacing,
|
|
48
|
+
auto: { type: "keyword", value: "auto" },
|
|
49
|
+
"1/2": { type: "unit", unit: "%", value: 50 },
|
|
50
|
+
"1/3": { type: "unit", unit: "%", value: 33.333333 },
|
|
51
|
+
"2/3": { type: "unit", unit: "%", value: 66.666667 },
|
|
52
|
+
"1/4": { type: "unit", unit: "%", value: 25 },
|
|
53
|
+
"2/4": { type: "unit", unit: "%", value: 50 },
|
|
54
|
+
"3/4": { type: "unit", unit: "%", value: 75 },
|
|
55
|
+
"1/5": { type: "unit", unit: "%", value: 20 },
|
|
56
|
+
"2/5": { type: "unit", unit: "%", value: 40 },
|
|
57
|
+
"3/5": { type: "unit", unit: "%", value: 60 },
|
|
58
|
+
"4/5": { type: "unit", unit: "%", value: 80 },
|
|
59
|
+
"1/6": { type: "unit", unit: "%", value: 16.666667 },
|
|
60
|
+
"2/6": { type: "unit", unit: "%", value: 33.333333 },
|
|
61
|
+
"3/6": { type: "unit", unit: "%", value: 50 },
|
|
62
|
+
"4/6": { type: "unit", unit: "%", value: 66.666667 },
|
|
63
|
+
"5/6": { type: "unit", unit: "%", value: 83.333333 },
|
|
64
|
+
"1/12": { type: "unit", unit: "%", value: 8.333333 },
|
|
65
|
+
"2/12": { type: "unit", unit: "%", value: 16.666667 },
|
|
66
|
+
"3/12": { type: "unit", unit: "%", value: 25 },
|
|
67
|
+
"4/12": { type: "unit", unit: "%", value: 33.333333 },
|
|
68
|
+
"5/12": { type: "unit", unit: "%", value: 41.666667 },
|
|
69
|
+
"6/12": { type: "unit", unit: "%", value: 50 },
|
|
70
|
+
"7/12": { type: "unit", unit: "%", value: 58.333333 },
|
|
71
|
+
"8/12": { type: "unit", unit: "%", value: 66.666667 },
|
|
72
|
+
"9/12": { type: "unit", unit: "%", value: 75 },
|
|
73
|
+
"10/12": { type: "unit", unit: "%", value: 83.333333 },
|
|
74
|
+
"11/12": { type: "unit", unit: "%", value: 91.666667 },
|
|
75
|
+
full: { type: "unit", unit: "%", value: 100 },
|
|
76
|
+
screen: { type: "unit", unit: "vw", value: 100 },
|
|
77
|
+
min: { type: "keyword", value: "min-content" },
|
|
78
|
+
max: { type: "keyword", value: "max-content" },
|
|
79
|
+
fit: { type: "keyword", value: "fit-content" }
|
|
80
|
+
};
|
|
81
|
+
export const maxWidth = {
|
|
82
|
+
"0": { type: "unit", unit: "rem", value: 0 },
|
|
83
|
+
none: { type: "keyword", value: "none" },
|
|
84
|
+
xs: { type: "unit", unit: "rem", value: 20 },
|
|
85
|
+
sm: { type: "unit", unit: "rem", value: 24 },
|
|
86
|
+
md: { type: "unit", unit: "rem", value: 28 },
|
|
87
|
+
lg: { type: "unit", unit: "rem", value: 32 },
|
|
88
|
+
xl: { type: "unit", unit: "rem", value: 36 },
|
|
89
|
+
"2xl": { type: "unit", unit: "rem", value: 42 },
|
|
90
|
+
"3xl": { type: "unit", unit: "rem", value: 48 },
|
|
91
|
+
"4xl": { type: "unit", unit: "rem", value: 56 },
|
|
92
|
+
"5xl": { type: "unit", unit: "rem", value: 64 },
|
|
93
|
+
"6xl": { type: "unit", unit: "rem", value: 72 },
|
|
94
|
+
"7xl": { type: "unit", unit: "rem", value: 80 },
|
|
95
|
+
full: { type: "unit", unit: "%", value: 100 },
|
|
96
|
+
min: { type: "keyword", value: "min-content" },
|
|
97
|
+
max: { type: "keyword", value: "max-content" },
|
|
98
|
+
fit: { type: "keyword", value: "fit-content" },
|
|
99
|
+
prose: { type: "unit", unit: "ch", value: 65 }
|
|
100
|
+
};
|
|
101
|
+
export const height = {
|
|
102
|
+
...spacing,
|
|
103
|
+
auto: { type: "keyword", value: "auto" },
|
|
104
|
+
"1/2": { type: "unit", unit: "%", value: 50 },
|
|
105
|
+
"1/3": { type: "unit", unit: "%", value: 33.333333 },
|
|
106
|
+
"2/3": { type: "unit", unit: "%", value: 66.666667 },
|
|
107
|
+
"1/4": { type: "unit", unit: "%", value: 25 },
|
|
108
|
+
"2/4": { type: "unit", unit: "%", value: 50 },
|
|
109
|
+
"3/4": { type: "unit", unit: "%", value: 75 },
|
|
110
|
+
"1/5": { type: "unit", unit: "%", value: 20 },
|
|
111
|
+
"2/5": { type: "unit", unit: "%", value: 40 },
|
|
112
|
+
"3/5": { type: "unit", unit: "%", value: 60 },
|
|
113
|
+
"4/5": { type: "unit", unit: "%", value: 80 },
|
|
114
|
+
"1/6": { type: "unit", unit: "%", value: 16.666667 },
|
|
115
|
+
"2/6": { type: "unit", unit: "%", value: 33.333333 },
|
|
116
|
+
"3/6": { type: "unit", unit: "%", value: 50 },
|
|
117
|
+
"4/6": { type: "unit", unit: "%", value: 66.666667 },
|
|
118
|
+
"5/6": { type: "unit", unit: "%", value: 83.333333 },
|
|
119
|
+
full: { type: "unit", unit: "%", value: 100 },
|
|
120
|
+
screen: { type: "unit", unit: "vh", value: 100 },
|
|
121
|
+
min: { type: "keyword", value: "min-content" },
|
|
122
|
+
max: { type: "keyword", value: "max-content" },
|
|
123
|
+
fit: { type: "keyword", value: "fit-content" }
|
|
124
|
+
};
|
|
125
|
+
export const minHeight = {
|
|
126
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
127
|
+
full: { type: "unit", unit: "%", value: 100 },
|
|
128
|
+
screen: { type: "unit", unit: "vh", value: 100 },
|
|
129
|
+
min: { type: "keyword", value: "min-content" },
|
|
130
|
+
max: { type: "keyword", value: "max-content" },
|
|
131
|
+
fit: { type: "keyword", value: "fit-content" }
|
|
132
|
+
};
|
|
133
|
+
export const inset = {
|
|
134
|
+
...spacing,
|
|
135
|
+
auto: { type: "keyword", value: "auto" },
|
|
136
|
+
"1/2": { type: "unit", unit: "%", value: 50 },
|
|
137
|
+
"1/3": { type: "unit", unit: "%", value: 33.333333 },
|
|
138
|
+
"2/3": { type: "unit", unit: "%", value: 66.666667 },
|
|
139
|
+
"1/4": { type: "unit", unit: "%", value: 25 },
|
|
140
|
+
"2/4": { type: "unit", unit: "%", value: 50 },
|
|
141
|
+
"3/4": { type: "unit", unit: "%", value: 75 },
|
|
142
|
+
full: { type: "unit", unit: "%", value: 100 }
|
|
143
|
+
};
|
|
144
|
+
export const borderWidth = {
|
|
145
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
146
|
+
"2": { type: "unit", unit: "px", value: 2 },
|
|
147
|
+
"4": { type: "unit", unit: "px", value: 4 },
|
|
148
|
+
"8": { type: "unit", unit: "px", value: 8 },
|
|
149
|
+
DEFAULT: { type: "unit", unit: "px", value: 1 }
|
|
150
|
+
};
|
|
151
|
+
export const borderRadius = {
|
|
152
|
+
none: { type: "unit", unit: "px", value: 0 },
|
|
153
|
+
sm: { type: "unit", unit: "rem", value: 0.125 },
|
|
154
|
+
DEFAULT: { type: "unit", unit: "rem", value: 0.5 },
|
|
155
|
+
md: { type: "unit", unit: "rem", value: 0.375 },
|
|
156
|
+
lg: { type: "unit", unit: "rem", value: 0.5 },
|
|
157
|
+
xl: { type: "unit", unit: "rem", value: 0.75 },
|
|
158
|
+
"2xl": { type: "unit", unit: "rem", value: 1 },
|
|
159
|
+
"3xl": { type: "unit", unit: "rem", value: 1.5 },
|
|
160
|
+
full: { type: "unit", unit: "px", value: 9999 }
|
|
161
|
+
};
|
|
162
|
+
export const colors = {
|
|
163
|
+
transparent: { type: "keyword", value: "transparent" },
|
|
164
|
+
current: { type: "keyword", value: "currentColor" },
|
|
165
|
+
inherit: { type: "keyword", value: "inherit" },
|
|
166
|
+
popover: { type: "rgb", alpha: 1, r: 255, g: 255, b: 255 },
|
|
167
|
+
popoverForeground: { type: "rgb", alpha: 1, r: 2, g: 8, b: 23 },
|
|
168
|
+
border: { type: "rgb", alpha: 1, r: 226, g: 232, b: 240 },
|
|
169
|
+
background: { type: "rgb", alpha: 1, r: 255, g: 255, b: 255 },
|
|
170
|
+
foreground: { type: "rgb", alpha: 1, r: 2, g: 8, b: 23 },
|
|
171
|
+
ring: { type: "rgb", alpha: 1, r: 148, g: 163, b: 184 },
|
|
172
|
+
mutedForeground: { type: "rgb", alpha: 1, r: 100, g: 116, b: 139 },
|
|
173
|
+
muted: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },
|
|
174
|
+
primary: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 },
|
|
175
|
+
primaryForeground: { type: "rgb", alpha: 1, r: 248, g: 250, b: 252 },
|
|
176
|
+
destructive: { type: "rgb", alpha: 1, r: 239, g: 68, b: 68 },
|
|
177
|
+
destructiveForeground: { type: "rgb", alpha: 1, r: 248, g: 250, b: 252 },
|
|
178
|
+
accent: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },
|
|
179
|
+
accentForeground: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 },
|
|
180
|
+
input: { type: "rgb", alpha: 1, r: 226, g: 232, b: 240 },
|
|
181
|
+
secondary: { type: "rgb", alpha: 1, r: 241, g: 245, b: 249 },
|
|
182
|
+
secondaryForeground: { type: "rgb", alpha: 1, r: 15, g: 23, b: 42 }
|
|
183
|
+
};
|
|
184
|
+
export const zIndex = {
|
|
185
|
+
"0": { type: "unit", unit: "number", value: 0 },
|
|
186
|
+
"10": { type: "unit", unit: "number", value: 10 },
|
|
187
|
+
"20": { type: "unit", unit: "number", value: 20 },
|
|
188
|
+
"30": { type: "unit", unit: "number", value: 30 },
|
|
189
|
+
"40": { type: "unit", unit: "number", value: 40 },
|
|
190
|
+
"50": { type: "unit", unit: "number", value: 50 },
|
|
191
|
+
auto: { type: "keyword", value: "auto" }
|
|
192
|
+
};
|
|
193
|
+
export const opacity = {
|
|
194
|
+
"0": { type: "unit", unit: "number", value: 0 },
|
|
195
|
+
"5": { type: "unit", unit: "number", value: 0.05 },
|
|
196
|
+
"10": { type: "unit", unit: "number", value: 0.1 },
|
|
197
|
+
"20": { type: "unit", unit: "number", value: 0.2 },
|
|
198
|
+
"25": { type: "unit", unit: "number", value: 0.25 },
|
|
199
|
+
"30": { type: "unit", unit: "number", value: 0.3 },
|
|
200
|
+
"40": { type: "unit", unit: "number", value: 0.4 },
|
|
201
|
+
"50": { type: "unit", unit: "number", value: 0.5 },
|
|
202
|
+
"60": { type: "unit", unit: "number", value: 0.6 },
|
|
203
|
+
"70": { type: "unit", unit: "number", value: 0.7 },
|
|
204
|
+
"75": { type: "unit", unit: "number", value: 0.75 },
|
|
205
|
+
"80": { type: "unit", unit: "number", value: 0.8 },
|
|
206
|
+
"90": { type: "unit", unit: "number", value: 0.9 },
|
|
207
|
+
"95": { type: "unit", unit: "number", value: 0.95 },
|
|
208
|
+
"100": { type: "unit", unit: "number", value: 1 }
|
|
209
|
+
};
|
|
210
|
+
export const cursor = {
|
|
211
|
+
auto: { type: "keyword", value: "auto" },
|
|
212
|
+
default: { type: "keyword", value: "default" },
|
|
213
|
+
pointer: { type: "keyword", value: "pointer" },
|
|
214
|
+
wait: { type: "keyword", value: "wait" },
|
|
215
|
+
text: { type: "keyword", value: "text" },
|
|
216
|
+
move: { type: "keyword", value: "move" },
|
|
217
|
+
help: { type: "keyword", value: "help" },
|
|
218
|
+
"not-allowed": { type: "keyword", value: "not-allowed" },
|
|
219
|
+
none: { type: "keyword", value: "none" },
|
|
220
|
+
"context-menu": { type: "keyword", value: "context-menu" },
|
|
221
|
+
progress: { type: "keyword", value: "progress" },
|
|
222
|
+
cell: { type: "keyword", value: "cell" },
|
|
223
|
+
crosshair: { type: "keyword", value: "crosshair" },
|
|
224
|
+
"vertical-text": { type: "keyword", value: "vertical-text" },
|
|
225
|
+
alias: { type: "keyword", value: "alias" },
|
|
226
|
+
copy: { type: "keyword", value: "copy" },
|
|
227
|
+
"no-drop": { type: "keyword", value: "no-drop" },
|
|
228
|
+
grab: { type: "keyword", value: "grab" },
|
|
229
|
+
grabbing: { type: "keyword", value: "grabbing" },
|
|
230
|
+
"all-scroll": { type: "keyword", value: "all-scroll" },
|
|
231
|
+
"col-resize": { type: "keyword", value: "col-resize" },
|
|
232
|
+
"row-resize": { type: "keyword", value: "row-resize" },
|
|
233
|
+
"n-resize": { type: "keyword", value: "n-resize" },
|
|
234
|
+
"e-resize": { type: "keyword", value: "e-resize" },
|
|
235
|
+
"s-resize": { type: "keyword", value: "s-resize" },
|
|
236
|
+
"w-resize": { type: "keyword", value: "w-resize" },
|
|
237
|
+
"ne-resize": { type: "keyword", value: "ne-resize" },
|
|
238
|
+
"nw-resize": { type: "keyword", value: "nw-resize" },
|
|
239
|
+
"se-resize": { type: "keyword", value: "se-resize" },
|
|
240
|
+
"sw-resize": { type: "keyword", value: "sw-resize" },
|
|
241
|
+
"ew-resize": { type: "keyword", value: "ew-resize" },
|
|
242
|
+
"ns-resize": { type: "keyword", value: "ns-resize" },
|
|
243
|
+
"nesw-resize": { type: "keyword", value: "nesw-resize" },
|
|
244
|
+
"nwse-resize": { type: "keyword", value: "nwse-resize" },
|
|
245
|
+
"zoom-in": { type: "keyword", value: "zoom-in" },
|
|
246
|
+
"zoom-out": { type: "keyword", value: "zoom-out" }
|
|
247
|
+
};
|
|
248
|
+
export const lineHeight = {
|
|
249
|
+
"3": { type: "unit", unit: "rem", value: 0.75 },
|
|
250
|
+
"4": { type: "unit", unit: "rem", value: 1 },
|
|
251
|
+
"5": { type: "unit", unit: "rem", value: 1.25 },
|
|
252
|
+
"6": { type: "unit", unit: "rem", value: 1.5 },
|
|
253
|
+
"7": { type: "unit", unit: "rem", value: 1.75 },
|
|
254
|
+
"8": { type: "unit", unit: "rem", value: 2 },
|
|
255
|
+
"9": { type: "unit", unit: "rem", value: 2.25 },
|
|
256
|
+
"10": { type: "unit", unit: "rem", value: 2.5 },
|
|
257
|
+
none: { type: "unit", unit: "number", value: 1 },
|
|
258
|
+
tight: { type: "unit", unit: "number", value: 1.25 },
|
|
259
|
+
snug: { type: "unit", unit: "number", value: 1.375 },
|
|
260
|
+
normal: { type: "unit", unit: "number", value: 1.5 },
|
|
261
|
+
relaxed: { type: "unit", unit: "number", value: 1.625 },
|
|
262
|
+
loose: { type: "unit", unit: "number", value: 2 }
|
|
263
|
+
};
|
|
264
|
+
export const letterSpacing = {
|
|
265
|
+
tighter: { type: "unit", unit: "em", value: -0.05 },
|
|
266
|
+
tight: { type: "unit", unit: "em", value: -0.025 },
|
|
267
|
+
normal: { type: "unit", unit: "em", value: 0 },
|
|
268
|
+
wide: { type: "unit", unit: "em", value: 0.025 },
|
|
269
|
+
wider: { type: "unit", unit: "em", value: 0.05 },
|
|
270
|
+
widest: { type: "unit", unit: "em", value: 0.1 }
|
|
271
|
+
};
|
|
272
|
+
export const listStyleType = {
|
|
273
|
+
none: { type: "keyword", value: "none" },
|
|
274
|
+
disc: { type: "keyword", value: "disc" },
|
|
275
|
+
decimal: { type: "keyword", value: "decimal" }
|
|
276
|
+
};
|
|
277
|
+
export const lineClamp = {
|
|
278
|
+
"1": { type: "unit", unit: "number", value: 1 },
|
|
279
|
+
"2": { type: "unit", unit: "number", value: 2 },
|
|
280
|
+
"3": { type: "unit", unit: "number", value: 3 },
|
|
281
|
+
"4": { type: "unit", unit: "number", value: 4 },
|
|
282
|
+
"5": { type: "unit", unit: "number", value: 5 },
|
|
283
|
+
"6": { type: "unit", unit: "number", value: 6 }
|
|
284
|
+
};
|
|
285
|
+
export const textUnderlineOffset = {
|
|
286
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
287
|
+
"1": { type: "unit", unit: "px", value: 1 },
|
|
288
|
+
"2": { type: "unit", unit: "px", value: 2 },
|
|
289
|
+
"4": { type: "unit", unit: "px", value: 4 },
|
|
290
|
+
"8": { type: "unit", unit: "px", value: 8 },
|
|
291
|
+
auto: { type: "keyword", value: "auto" }
|
|
292
|
+
};
|
|
293
|
+
export const ringWidth = {
|
|
294
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
295
|
+
"1": { type: "unit", unit: "px", value: 1 },
|
|
296
|
+
"2": { type: "unit", unit: "px", value: 2 },
|
|
297
|
+
"4": { type: "unit", unit: "px", value: 4 },
|
|
298
|
+
"8": { type: "unit", unit: "px", value: 8 },
|
|
299
|
+
DEFAULT: { type: "unit", unit: "px", value: 3 }
|
|
300
|
+
};
|
|
301
|
+
export const ringOffsetWidth = {
|
|
302
|
+
"0": { type: "unit", unit: "px", value: 0 },
|
|
303
|
+
"1": { type: "unit", unit: "px", value: 1 },
|
|
304
|
+
"2": { type: "unit", unit: "px", value: 2 },
|
|
305
|
+
"4": { type: "unit", unit: "px", value: 4 },
|
|
306
|
+
"8": { type: "unit", unit: "px", value: 8 }
|
|
307
|
+
};
|
|
308
|
+
export const boxShadow = {
|
|
309
|
+
sm: {
|
|
310
|
+
type: "layers",
|
|
311
|
+
value: [
|
|
312
|
+
{
|
|
313
|
+
type: "tuple",
|
|
314
|
+
value: [
|
|
315
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
316
|
+
{ type: "unit", value: 1, unit: "px" },
|
|
317
|
+
{ type: "unit", value: 2, unit: "px" },
|
|
318
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
319
|
+
{ type: "rgb", alpha: 0.05, r: 0, g: 0, b: 0 }
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
DEFAULT: {
|
|
325
|
+
type: "layers",
|
|
326
|
+
value: [
|
|
327
|
+
{
|
|
328
|
+
type: "tuple",
|
|
329
|
+
value: [
|
|
330
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
331
|
+
{ type: "unit", value: 1, unit: "px" },
|
|
332
|
+
{ type: "unit", value: 3, unit: "px" },
|
|
333
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
334
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
type: "tuple",
|
|
339
|
+
value: [
|
|
340
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
341
|
+
{ type: "unit", value: 1, unit: "px" },
|
|
342
|
+
{ type: "unit", value: 2, unit: "px" },
|
|
343
|
+
{ type: "unit", value: -1, unit: "px" },
|
|
344
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
md: {
|
|
350
|
+
type: "layers",
|
|
351
|
+
value: [
|
|
352
|
+
{
|
|
353
|
+
type: "tuple",
|
|
354
|
+
value: [
|
|
355
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
356
|
+
{ type: "unit", value: 4, unit: "px" },
|
|
357
|
+
{ type: "unit", value: 6, unit: "px" },
|
|
358
|
+
{ type: "unit", value: -1, unit: "px" },
|
|
359
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
type: "tuple",
|
|
364
|
+
value: [
|
|
365
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
366
|
+
{ type: "unit", value: 2, unit: "px" },
|
|
367
|
+
{ type: "unit", value: 4, unit: "px" },
|
|
368
|
+
{ type: "unit", value: -2, unit: "px" },
|
|
369
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
lg: {
|
|
375
|
+
type: "layers",
|
|
376
|
+
value: [
|
|
377
|
+
{
|
|
378
|
+
type: "tuple",
|
|
379
|
+
value: [
|
|
380
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
381
|
+
{ type: "unit", value: 10, unit: "px" },
|
|
382
|
+
{ type: "unit", value: 15, unit: "px" },
|
|
383
|
+
{ type: "unit", value: -3, unit: "px" },
|
|
384
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
type: "tuple",
|
|
389
|
+
value: [
|
|
390
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
391
|
+
{ type: "unit", value: 4, unit: "px" },
|
|
392
|
+
{ type: "unit", value: 6, unit: "px" },
|
|
393
|
+
{ type: "unit", value: -4, unit: "px" },
|
|
394
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
xl: {
|
|
400
|
+
type: "layers",
|
|
401
|
+
value: [
|
|
402
|
+
{
|
|
403
|
+
type: "tuple",
|
|
404
|
+
value: [
|
|
405
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
406
|
+
{ type: "unit", value: 20, unit: "px" },
|
|
407
|
+
{ type: "unit", value: 25, unit: "px" },
|
|
408
|
+
{ type: "unit", value: -5, unit: "px" },
|
|
409
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
type: "tuple",
|
|
414
|
+
value: [
|
|
415
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
416
|
+
{ type: "unit", value: 8, unit: "px" },
|
|
417
|
+
{ type: "unit", value: 10, unit: "px" },
|
|
418
|
+
{ type: "unit", value: -6, unit: "px" },
|
|
419
|
+
{ type: "rgb", alpha: 0.1, r: 0, g: 0, b: 0 }
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"2xl": {
|
|
425
|
+
type: "layers",
|
|
426
|
+
value: [
|
|
427
|
+
{
|
|
428
|
+
type: "tuple",
|
|
429
|
+
value: [
|
|
430
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
431
|
+
{ type: "unit", value: 25, unit: "px" },
|
|
432
|
+
{ type: "unit", value: 50, unit: "px" },
|
|
433
|
+
{ type: "unit", value: -12, unit: "px" },
|
|
434
|
+
{ type: "rgb", alpha: 0.25, r: 0, g: 0, b: 0 }
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
inner: {
|
|
440
|
+
type: "layers",
|
|
441
|
+
value: [
|
|
442
|
+
{
|
|
443
|
+
type: "tuple",
|
|
444
|
+
value: [
|
|
445
|
+
{ type: "keyword", value: "inset" },
|
|
446
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
447
|
+
{ type: "unit", value: 2, unit: "px" },
|
|
448
|
+
{ type: "unit", value: 4, unit: "px" },
|
|
449
|
+
{ type: "unit", value: 0, unit: "number" },
|
|
450
|
+
{ type: "rgb", alpha: 0.05, r: 0, g: 0, b: 0 }
|
|
451
|
+
]
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
455
|
+
none: {
|
|
456
|
+
type: "layers",
|
|
457
|
+
value: [{ type: "tuple", value: [{ type: "keyword", value: "none" }] }]
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
export const blur = {
|
|
461
|
+
sm: { type: "unparsed", value: "blur(0 1px 2px 0 rgb(0 0 0 / 0.05))" },
|
|
462
|
+
DEFAULT: {
|
|
463
|
+
type: "unparsed",
|
|
464
|
+
value: "blur(0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1))"
|
|
465
|
+
},
|
|
466
|
+
md: {
|
|
467
|
+
type: "unparsed",
|
|
468
|
+
value: "blur(0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))"
|
|
469
|
+
},
|
|
470
|
+
lg: {
|
|
471
|
+
type: "unparsed",
|
|
472
|
+
value: "blur(0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))"
|
|
473
|
+
},
|
|
474
|
+
xl: {
|
|
475
|
+
type: "unparsed",
|
|
476
|
+
value: "blur(0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))"
|
|
477
|
+
},
|
|
478
|
+
"2xl": {
|
|
479
|
+
type: "unparsed",
|
|
480
|
+
value: "blur(0 25px 50px -12px rgb(0 0 0 / 0.25))"
|
|
481
|
+
},
|
|
482
|
+
inner: {
|
|
483
|
+
type: "unparsed",
|
|
484
|
+
value: "blur(inset 0 2px 4px 0 rgb(0 0 0 / 0.05))"
|
|
485
|
+
},
|
|
486
|
+
none: { type: "unparsed", value: "blur(none)" }
|
|
487
|
+
};
|
|
488
|
+
export const fontSize = {
|
|
489
|
+
xs: { type: "unit", unit: "rem", value: 0.75 },
|
|
490
|
+
sm: { type: "unit", unit: "rem", value: 0.875 },
|
|
491
|
+
base: { type: "unit", unit: "rem", value: 1 },
|
|
492
|
+
lg: { type: "unit", unit: "rem", value: 1.125 },
|
|
493
|
+
xl: { type: "unit", unit: "rem", value: 1.25 },
|
|
494
|
+
"2xl": { type: "unit", unit: "rem", value: 1.5 },
|
|
495
|
+
"3xl": { type: "unit", unit: "rem", value: 1.875 },
|
|
496
|
+
"4xl": { type: "unit", unit: "rem", value: 2.25 },
|
|
497
|
+
"5xl": { type: "unit", unit: "rem", value: 3 },
|
|
498
|
+
"6xl": { type: "unit", unit: "rem", value: 3.75 },
|
|
499
|
+
"7xl": { type: "unit", unit: "rem", value: 4.5 },
|
|
500
|
+
"8xl": { type: "unit", unit: "rem", value: 6 },
|
|
501
|
+
"9xl": { type: "unit", unit: "rem", value: 8 }
|
|
502
|
+
};
|
|
503
|
+
export const fontSizeLineHeight = {
|
|
504
|
+
xs: { type: "unit", unit: "rem", value: 1 },
|
|
505
|
+
sm: { type: "unit", unit: "rem", value: 1.25 },
|
|
506
|
+
base: { type: "unit", unit: "rem", value: 1.5 },
|
|
507
|
+
lg: { type: "unit", unit: "rem", value: 1.75 },
|
|
508
|
+
xl: { type: "unit", unit: "rem", value: 1.75 },
|
|
509
|
+
"2xl": { type: "unit", unit: "rem", value: 2 },
|
|
510
|
+
"3xl": { type: "unit", unit: "rem", value: 2.25 },
|
|
511
|
+
"4xl": { type: "unit", unit: "rem", value: 2.5 },
|
|
512
|
+
"5xl": { type: "unit", unit: "number", value: 1 },
|
|
513
|
+
"6xl": { type: "unit", unit: "number", value: 1 },
|
|
514
|
+
"7xl": { type: "unit", unit: "number", value: 1 },
|
|
515
|
+
"8xl": { type: "unit", unit: "number", value: 1 },
|
|
516
|
+
"9xl": { type: "unit", unit: "number", value: 1 }
|
|
517
|
+
};
|