@okshaun/components 1.0.2 → 2.0.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/dist/.mcp.json +2 -5
- package/dist/icon-metadata.json +5173 -0
- package/dist/index.js +17126 -9342
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +693 -0
- package/dist/playroom-static.css +187432 -0
- package/dist/{preset-DCCViEDs.js → preset-Coz-VwQR.js} +3535 -2697
- package/dist/preset-Coz-VwQR.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/color-palette.json +22 -1
- package/dist/specs/patterns.json +0 -16
- package/dist/specs/recipes.json +411 -247
- package/dist/specs/semantic-tokens.json +330 -115
- package/dist/specs/text-styles.json +72 -0
- package/dist/specs/tokens.json +237 -27
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +6662 -320
- package/dist/styles.css +36938 -5
- package/dist/svgs/calendar-lock.svg +1 -0
- package/dist/svgs/computer.svg +1 -0
- package/dist/svgs/cookie.svg +1 -0
- package/dist/svgs/folder-check.svg +1 -0
- package/dist/svgs/folder-copy.svg +1 -0
- package/dist/svgs/folder-dashed.svg +1 -0
- package/dist/svgs/folder-open.svg +1 -0
- package/dist/svgs/folder-topic.svg +1 -0
- package/dist/svgs/folder.svg +1 -0
- package/dist/svgs/mobile.svg +1 -0
- package/dist/svgs/numpad.svg +1 -0
- package/dist/svgs/phone.svg +1 -0
- package/dist/svgs/qr-code.svg +1 -0
- package/dist/svgs/sparkle.svg +1 -0
- package/dist/svgs/trolley.svg +1 -0
- package/dist/types/index.d.ts +836 -342
- package/package.json +49 -24
- package/src/recipes/avatar.ts +98 -98
- package/src/recipes/badge.ts +22 -39
- package/src/recipes/box.ts +1 -7
- package/src/recipes/breadcrumbs.ts +42 -25
- package/src/recipes/button.ts +151 -85
- package/src/recipes/card.ts +5 -1
- package/src/recipes/checkbox.ts +23 -24
- package/src/recipes/checkboxInput.ts +25 -0
- package/src/recipes/chip.ts +35 -37
- package/src/recipes/code.ts +4 -4
- package/src/recipes/datePicker.ts +223 -0
- package/src/recipes/divider.ts +38 -32
- package/src/recipes/formField.ts +41 -23
- package/src/recipes/highlightText.ts +14 -0
- package/src/recipes/icon.ts +13 -0
- package/src/recipes/list.ts +14 -0
- package/src/recipes/listItem.ts +310 -0
- package/src/recipes/listItemGroup.ts +62 -0
- package/src/recipes/menu.ts +90 -163
- package/src/recipes/modal.ts +55 -25
- package/src/recipes/radio.ts +29 -20
- package/src/recipes/radioInput.ts +25 -0
- package/src/recipes/recipes-regular.ts +14 -0
- package/src/recipes/recipes-slot.ts +19 -0
- package/src/recipes/select.ts +1 -1
- package/src/recipes/spinner.ts +49 -23
- package/src/recipes/tag.ts +80 -84
- package/src/recipes/text.ts +18 -19
- package/src/recipes/textInput.ts +205 -0
- package/src/recipes/textarea.ts +65 -138
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timePicker.ts +199 -0
- package/src/recipes/toggle.ts +72 -99
- package/src/recipes/toggleInput.ts +26 -0
- package/src/recipes/tooltip.ts +52 -343
- package/src/styles/index.css +1 -1
- package/src/styles/primitives/borders.ts +7 -1
- package/src/styles/primitives/colors.ts +51 -0
- package/src/styles/primitives/fontSizes.ts +1 -0
- package/src/styles/primitives/index.ts +2 -1
- package/src/styles/primitives/shadows.ts +9 -9
- package/src/styles/primitives/sizes.ts +1 -0
- package/src/styles/primitives/zIndex.ts +17 -0
- package/src/styles/semantics/colors.ts +137 -82
- package/src/styles/semantics/index.ts +1 -0
- package/src/styles/semantics/zIndex.ts +18 -0
- package/src/styles/utilities/breakpoints.ts +6 -6
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/textStyles.ts +70 -0
- package/src/utils/splitProps.ts +3 -3
- package/dist/preset-DCCViEDs.js.map +0 -1
- package/dist/styles/global.css +0 -148
- package/dist/styles/recipes/avatar.css +0 -185
- package/dist/styles/recipes/badge.css +0 -85
- package/dist/styles/recipes/breadcrumbs.css +0 -38
- package/dist/styles/recipes/button.css +0 -195
- package/dist/styles/recipes/card.css +0 -57
- package/dist/styles/recipes/checkbox-input.css +0 -12
- package/dist/styles/recipes/checkbox.css +0 -90
- package/dist/styles/recipes/chip.css +0 -137
- package/dist/styles/recipes/code.css +0 -12
- package/dist/styles/recipes/divider.css +0 -40
- package/dist/styles/recipes/form-field.css +0 -39
- package/dist/styles/recipes/heading.css +0 -40
- package/dist/styles/recipes/icon-button.css +0 -181
- package/dist/styles/recipes/label.css +0 -14
- package/dist/styles/recipes/link.css +0 -49
- package/dist/styles/recipes/menu.css +0 -141
- package/dist/styles/recipes/modal.css +0 -99
- package/dist/styles/recipes/pre.css +0 -16
- package/dist/styles/recipes/radio-input.css +0 -7
- package/dist/styles/recipes/radio.css +0 -82
- package/dist/styles/recipes/select.css +0 -103
- package/dist/styles/recipes/spinner.css +0 -36
- package/dist/styles/recipes/tag.css +0 -27
- package/dist/styles/recipes/text.css +0 -46
- package/dist/styles/recipes/textarea.css +0 -91
- package/dist/styles/recipes/textinput.css +0 -87
- package/dist/styles/recipes/theme-switcher.css +0 -53
- package/dist/styles/recipes/toggle-input.css +0 -12
- package/dist/styles/recipes/toggle.css +0 -125
- package/dist/styles/recipes/tooltip.css +0 -133
- package/dist/styles/recipes.css +0 -30
- package/dist/styles/reset.css +0 -1
- package/dist/styles/tokens.css +0 -1016
- package/dist/styles/utilities.css +0 -1694
- package/src/recipes/checkboxinput.ts +0 -15
- package/src/recipes/index.ts +0 -28
- package/src/recipes/radioinput.ts +0 -12
- package/src/recipes/textinput.ts +0 -100
- package/src/recipes/toggleinput.ts +0 -16
- package/src/utils/injectSprite.ts +0 -36
- package/src/utils/spriteContent.ts +0 -4
package/src/recipes/tooltip.ts
CHANGED
|
@@ -1,359 +1,68 @@
|
|
|
1
|
+
// src/recipes/tooltip.ts
|
|
1
2
|
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
height: 'fit-content',
|
|
8
|
-
cursor: 'default',
|
|
9
|
-
},
|
|
10
|
-
tooltipContent: {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
flexDirection: 'column',
|
|
13
|
-
gap: '4',
|
|
14
|
-
bg: { base: 'gray.90', _dark: 'gray.10' },
|
|
15
|
-
color: { base: 'gray.10', _dark: 'gray.90' },
|
|
16
|
-
fontFamily: 'sans',
|
|
17
|
-
fontWeight: 'normal',
|
|
18
|
-
borderRadius: '4',
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
maxWidth: 'max-content',
|
|
21
|
-
width: 'max-content',
|
|
22
|
-
boxShadow: 'medium',
|
|
23
|
-
zIndex: 1,
|
|
24
|
-
pointerEvents: 'none',
|
|
25
|
-
_after: {
|
|
26
|
-
content: "''",
|
|
27
|
-
position: 'absolute',
|
|
28
|
-
width: '0',
|
|
29
|
-
height: '0',
|
|
30
|
-
borderWidth: '9',
|
|
31
|
-
borderStyle: 'solid',
|
|
32
|
-
borderColor: 'transparent',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
title: {
|
|
36
|
-
fontWeight: 'bold',
|
|
37
|
-
color: 'text',
|
|
38
|
-
},
|
|
39
|
-
text: {
|
|
40
|
-
color: 'text.subtlest',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
4
|
+
export const tooltipRecipe = defineSlotRecipe({
|
|
5
|
+
className: 'tooltip',
|
|
6
|
+
jsx: ['Tooltip'],
|
|
7
|
+
slots: ['tooltipContent', 'title', 'text'],
|
|
43
8
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
transform: 'translate(-50%, 2%)',
|
|
69
|
-
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
left: {
|
|
74
|
-
tooltipContent: {
|
|
75
|
-
top: '50%',
|
|
76
|
-
right: 'calc(100% - 0.75rem)',
|
|
77
|
-
transform: 'translate(-10%, -50%)',
|
|
78
|
-
_after: {
|
|
79
|
-
top: '50%',
|
|
80
|
-
right: '-6%',
|
|
81
|
-
transform: 'translate(48%, -50%)',
|
|
82
|
-
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
right: {
|
|
87
|
-
tooltipContent: {
|
|
88
|
-
top: '50%',
|
|
89
|
-
left: 'calc(100% - 0.75rem)',
|
|
90
|
-
transform: 'translate(10%, -50%)',
|
|
91
|
-
_after: {
|
|
92
|
-
top: '50%',
|
|
93
|
-
left: '-6%',
|
|
94
|
-
transform: 'translate(-48%, -50%)',
|
|
95
|
-
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
'top-start': {
|
|
100
|
-
tooltipContent: {
|
|
101
|
-
bottom: '100%',
|
|
102
|
-
left: '0',
|
|
103
|
-
_after: {
|
|
104
|
-
top: '100%',
|
|
105
|
-
left: '8',
|
|
106
|
-
transform: 'translate(0, -2%)',
|
|
107
|
-
borderTopColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
'bottom-start': {
|
|
112
|
-
tooltipContent: {
|
|
113
|
-
top: '100%',
|
|
114
|
-
left: '0',
|
|
115
|
-
transform: 'translateX(0)',
|
|
116
|
-
_after: {
|
|
117
|
-
bottom: '100%',
|
|
118
|
-
left: '8',
|
|
119
|
-
transform: 'translate(0%, 2%)',
|
|
120
|
-
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
'left-start': {
|
|
125
|
-
tooltipContent: {
|
|
126
|
-
top: '0',
|
|
127
|
-
right: 'calc(100% - 0.75rem)',
|
|
128
|
-
transform: 'translate(-10%, -0%)',
|
|
129
|
-
_after: {
|
|
130
|
-
top: '8',
|
|
131
|
-
right: '-6%',
|
|
132
|
-
transform: 'translate(48%, 0)',
|
|
133
|
-
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
'right-start': {
|
|
138
|
-
tooltipContent: {
|
|
139
|
-
top: '0',
|
|
140
|
-
left: 'calc(100% - 0.75rem)',
|
|
141
|
-
transform: 'translate(10%, 0%)',
|
|
142
|
-
_after: {
|
|
143
|
-
top: '8',
|
|
144
|
-
left: '-6%',
|
|
145
|
-
transform: 'translate(-48%, 0)',
|
|
146
|
-
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
'top-end': {
|
|
151
|
-
tooltipContent: {
|
|
152
|
-
bottom: '100%',
|
|
153
|
-
right: '0',
|
|
154
|
-
_after: {
|
|
155
|
-
top: '100%',
|
|
156
|
-
right: '8',
|
|
157
|
-
transform: 'translate(0, -2%)',
|
|
158
|
-
borderTopColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
'bottom-end': {
|
|
163
|
-
tooltipContent: {
|
|
164
|
-
top: '100%',
|
|
165
|
-
right: '0',
|
|
166
|
-
transform: 'translateX(0)',
|
|
167
|
-
_after: {
|
|
168
|
-
bottom: '100%',
|
|
169
|
-
right: '8',
|
|
170
|
-
transform: 'translate(0%, 2%)',
|
|
171
|
-
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
'left-end': {
|
|
176
|
-
tooltipContent: {
|
|
177
|
-
bottom: '0',
|
|
178
|
-
right: 'calc(100% - 0.75rem)',
|
|
179
|
-
transform: 'translate(-10%, -0%)',
|
|
180
|
-
_after: {
|
|
181
|
-
bottom: '8',
|
|
182
|
-
right: '-6%',
|
|
183
|
-
transform: 'translate(48%, 0)',
|
|
184
|
-
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
'right-end': {
|
|
189
|
-
tooltipContent: {
|
|
190
|
-
bottom: '0',
|
|
191
|
-
left: 'calc(100% - 0.75rem)',
|
|
192
|
-
transform: 'translate(10%, -0%)',
|
|
193
|
-
_after: {
|
|
194
|
-
bottom: '8',
|
|
195
|
-
left: '-6%',
|
|
196
|
-
transform: 'translate(-48%, 0)',
|
|
197
|
-
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
198
|
-
},
|
|
199
|
-
},
|
|
9
|
+
base: {
|
|
10
|
+
tooltipContent: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
// Inverted surface: dark in light mode, light in dark mode
|
|
14
|
+
bg: 'bg.neutral.inverse',
|
|
15
|
+
color: 'text.inverse',
|
|
16
|
+
fontFamily: 'body',
|
|
17
|
+
fontWeight: 'normal',
|
|
18
|
+
borderRadius: '4',
|
|
19
|
+
maxWidth: '240',
|
|
20
|
+
boxShadow: 'elevated',
|
|
21
|
+
zIndex: 'tooltip',
|
|
22
|
+
pointerEvents: 'none',
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
fontWeight: 'bold',
|
|
26
|
+
color: 'text.inverse',
|
|
27
|
+
lineHeight: 'tight',
|
|
28
|
+
},
|
|
29
|
+
text: {
|
|
30
|
+
// Default — overridden by hasTitle variant
|
|
31
|
+
color: 'text.inverse.subtlest',
|
|
32
|
+
lineHeight: 'tight',
|
|
200
33
|
},
|
|
201
34
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
_position: {
|
|
210
|
-
top: {
|
|
211
|
-
tooltipContent: {
|
|
212
|
-
mb: '12',
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
false: {
|
|
218
|
-
tooltipContent: {
|
|
219
|
-
_after: {
|
|
220
|
-
display: 'none',
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
_position: {
|
|
224
|
-
top: {
|
|
225
|
-
tooltipContent: {
|
|
226
|
-
mb: '8',
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
size: {
|
|
233
|
-
sm: {
|
|
234
|
-
tooltipContent: {
|
|
235
|
-
py: '4',
|
|
236
|
-
px: '8',
|
|
237
|
-
},
|
|
238
|
-
title: {
|
|
239
|
-
fontSize: '12',
|
|
240
|
-
},
|
|
241
|
-
text: {
|
|
242
|
-
fontSize: '12',
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
md: {
|
|
246
|
-
tooltipContent: {
|
|
247
|
-
py: '8',
|
|
248
|
-
px: '12',
|
|
35
|
+
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
sm: {
|
|
39
|
+
tooltipContent: { py: '2', px: '6' },
|
|
40
|
+
title: { fontSize: '10' },
|
|
41
|
+
text: { fontSize: '10' },
|
|
249
42
|
},
|
|
250
|
-
|
|
251
|
-
|
|
43
|
+
md: {
|
|
44
|
+
tooltipContent: { py: '4', px: '8' },
|
|
45
|
+
title: { fontSize: '12' },
|
|
46
|
+
text: { fontSize: '12' },
|
|
252
47
|
},
|
|
253
|
-
|
|
254
|
-
|
|
48
|
+
lg: {
|
|
49
|
+
tooltipContent: { py: '6', px: '12' },
|
|
50
|
+
title: { fontSize: '14' },
|
|
51
|
+
text: { fontSize: '14' },
|
|
255
52
|
},
|
|
256
53
|
},
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
text: {
|
|
266
|
-
fontSize: '16',
|
|
267
|
-
},
|
|
54
|
+
|
|
55
|
+
// Controls whether title text uses full contrast (has title = true means
|
|
56
|
+
// the text slot uses subtlest color; already in base, but without a title
|
|
57
|
+
// the text slot should use full text color)
|
|
58
|
+
hasTitle: {
|
|
59
|
+
true: { text: { color: 'text.inverse.subtlest' } },
|
|
60
|
+
false: { text: { color: 'text.inverse' } },
|
|
268
61
|
},
|
|
269
62
|
},
|
|
270
|
-
};
|
|
271
63
|
|
|
272
|
-
export const tooltipRecipe = defineSlotRecipe({
|
|
273
|
-
className: 'tooltip',
|
|
274
|
-
jsx: ['Tooltip'],
|
|
275
|
-
slots: ['wrapper', 'tooltipContent', 'title', 'text'],
|
|
276
|
-
base: tooltipBase,
|
|
277
|
-
variants: {
|
|
278
|
-
...tooltipVariants,
|
|
279
|
-
},
|
|
280
64
|
defaultVariants: {
|
|
281
|
-
position: 'bottom',
|
|
282
|
-
caret: true,
|
|
283
65
|
size: 'md',
|
|
66
|
+
hasTitle: false,
|
|
284
67
|
},
|
|
285
|
-
compoundVariants: [
|
|
286
|
-
{
|
|
287
|
-
position: ['top', 'top-start', 'top-end'],
|
|
288
|
-
caret: true,
|
|
289
|
-
css: {
|
|
290
|
-
tooltipContent: {
|
|
291
|
-
mb: '12',
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
position: ['top', 'top-start', 'top-end'],
|
|
297
|
-
caret: false,
|
|
298
|
-
css: {
|
|
299
|
-
tooltipContent: {
|
|
300
|
-
mb: '8',
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
position: ['bottom', 'bottom-start', 'bottom-end'],
|
|
306
|
-
caret: true,
|
|
307
|
-
css: {
|
|
308
|
-
tooltipContent: {
|
|
309
|
-
mt: '12',
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
position: ['bottom', 'bottom-start', 'bottom-end'],
|
|
315
|
-
caret: false,
|
|
316
|
-
css: {
|
|
317
|
-
tooltipContent: {
|
|
318
|
-
mt: '8',
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
position: ['left', 'left-start', 'left-end'],
|
|
324
|
-
caret: true,
|
|
325
|
-
css: {
|
|
326
|
-
tooltipContent: {
|
|
327
|
-
mr: '12',
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
position: ['left', 'left-start', 'left-end'],
|
|
333
|
-
caret: false,
|
|
334
|
-
css: {
|
|
335
|
-
tooltipContent: {
|
|
336
|
-
mr: '8',
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
position: ['right', 'right-start', 'right-end'],
|
|
342
|
-
caret: true,
|
|
343
|
-
css: {
|
|
344
|
-
tooltipContent: {
|
|
345
|
-
ml: '12',
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
position: ['right', 'right-start', 'right-end'],
|
|
351
|
-
caret: false,
|
|
352
|
-
css: {
|
|
353
|
-
tooltipContent: {
|
|
354
|
-
ml: '8',
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
],
|
|
359
68
|
});
|
package/src/styles/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer reset, base, tokens, recipes, utilities;
|
|
1
|
+
@layer legacy, reset, base, tokens, recipes, utilities;
|
|
@@ -9,9 +9,15 @@ export const borders = defineTokens.borders({
|
|
|
9
9
|
default: {
|
|
10
10
|
value: '{borderWidths.1} solid {colors.border}',
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
bold: {
|
|
13
13
|
value: '{borderWidths.2} solid {colors.border.bold}',
|
|
14
14
|
},
|
|
15
|
+
inverse: {
|
|
16
|
+
value: '{borderWidths.1} solid {colors.border.inverse}',
|
|
17
|
+
},
|
|
18
|
+
disabled: {
|
|
19
|
+
value: '{borderWidths.1} solid {colors.border.disabled}',
|
|
20
|
+
},
|
|
15
21
|
input: {
|
|
16
22
|
value: '{borderWidths.1} solid {colors.border.input}',
|
|
17
23
|
},
|
|
@@ -40,6 +40,7 @@ export const colors = defineTokens.colors({
|
|
|
40
40
|
'90': { value: '#BFC1C4' },
|
|
41
41
|
'100': { value: '#CECFD2' },
|
|
42
42
|
'110': { value: '#E2E3E4' },
|
|
43
|
+
'120': { value: '#F1F1F2' },
|
|
43
44
|
},
|
|
44
45
|
darkNeutralA: {
|
|
45
46
|
'-10': { value: '#01040475' },
|
|
@@ -225,4 +226,54 @@ export const colors = defineTokens.colors({
|
|
|
225
226
|
'90': { value: '#1E1E1E' },
|
|
226
227
|
'100': { value: '#000000' },
|
|
227
228
|
},
|
|
229
|
+
shadow: {
|
|
230
|
+
raised: {
|
|
231
|
+
1: {
|
|
232
|
+
light: { value: 'rgba(30, 31, 33, 0.25)' },
|
|
233
|
+
dark: { value: 'rgba(1, 4, 4, 0.5)' },
|
|
234
|
+
},
|
|
235
|
+
2: {
|
|
236
|
+
light: { value: 'rgba(30, 31, 33, 0.31)' },
|
|
237
|
+
dark: { value: 'rgba(1, 4, 4, 0.5)' },
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
elevated: {
|
|
241
|
+
1: {
|
|
242
|
+
light: { value: 'rgba(0, 0, 0, 0)' },
|
|
243
|
+
dark: { value: 'rgba(95, 95, 95, 0.06)' },
|
|
244
|
+
},
|
|
245
|
+
2: {
|
|
246
|
+
light: { value: 'rgba(30, 31, 33, 0.2)' },
|
|
247
|
+
dark: { value: 'rgba(1, 4, 4, 0.43)' },
|
|
248
|
+
},
|
|
249
|
+
3: {
|
|
250
|
+
light: { value: 'rgba(30, 31, 33, 0.31)' },
|
|
251
|
+
dark: { value: 'rgba(1, 4, 4, 0.5)' },
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
overlay: {
|
|
255
|
+
1: {
|
|
256
|
+
light: { value: 'rgba(0, 0, 0, 0)' },
|
|
257
|
+
dark: { value: 'rgba(189, 189, 189, 0.12)' },
|
|
258
|
+
},
|
|
259
|
+
2: {
|
|
260
|
+
light: { value: 'rgba(30, 31, 33, 0.15)' },
|
|
261
|
+
dark: { value: 'rgba(1, 4, 4, 0.36)' },
|
|
262
|
+
},
|
|
263
|
+
3: {
|
|
264
|
+
light: { value: 'rgba(30, 31, 33, 0.31)' },
|
|
265
|
+
dark: { value: 'rgba(1, 4, 4, 0.5)' },
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
overflow: {
|
|
269
|
+
1: {
|
|
270
|
+
light: { value: 'rgba(30, 31, 33, 0.16)' },
|
|
271
|
+
dark: { value: 'rgba(1, 4, 4, 0.56)' },
|
|
272
|
+
},
|
|
273
|
+
2: {
|
|
274
|
+
light: { value: 'rgba(30, 31, 33, 0.12)' },
|
|
275
|
+
dark: { value: 'rgba(1, 4, 4, 0.5)' },
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
},
|
|
228
279
|
});
|
|
@@ -6,8 +6,8 @@ export * from './borderWidths';
|
|
|
6
6
|
export * from './colors';
|
|
7
7
|
export * from './durations';
|
|
8
8
|
export * from './easings';
|
|
9
|
-
export * from './fonts';
|
|
10
9
|
export * from './fontSizes';
|
|
10
|
+
export * from './fonts';
|
|
11
11
|
export * from './fontWeights';
|
|
12
12
|
export * from './letterSpacings';
|
|
13
13
|
export * from './lineHeights';
|
|
@@ -15,6 +15,7 @@ export * from './radii';
|
|
|
15
15
|
export * from './shadows';
|
|
16
16
|
export * from './sizes';
|
|
17
17
|
export * from './spacings';
|
|
18
|
+
export * from './zIndex';
|
|
18
19
|
|
|
19
20
|
/*
|
|
20
21
|
Officially supported token types
|
|
@@ -3,39 +3,39 @@ import { defineTokens } from '@pandacss/dev';
|
|
|
3
3
|
export const shadows = defineTokens.shadows({
|
|
4
4
|
zeroShadow: {
|
|
5
5
|
value:
|
|
6
|
-
'{sizes.0} {sizes.0} {sizes.0}
|
|
6
|
+
'{sizes.0} {sizes.0} {sizes.0} {colors.transparent}, {sizes.0} {sizes.0} {sizes.0} {colors.transparent}',
|
|
7
7
|
},
|
|
8
8
|
raisedLight: {
|
|
9
9
|
value:
|
|
10
|
-
'{sizes.0} {sizes.1} {sizes.1}
|
|
10
|
+
'{sizes.0} {sizes.1} {sizes.1} {colors.shadow.raised.1.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.raised.2.light}',
|
|
11
11
|
},
|
|
12
12
|
raisedDark: {
|
|
13
13
|
value:
|
|
14
|
-
'{sizes.0} {sizes.
|
|
14
|
+
'{sizes.0} {sizes.1} {sizes.1} {colors.shadow.raised.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.raised.2.dark}',
|
|
15
15
|
},
|
|
16
16
|
elevatedLight: {
|
|
17
17
|
value:
|
|
18
|
-
'{sizes.0} {sizes.
|
|
18
|
+
'{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.light}, {sizes.0} {sizes.4} {sizes.7} {colors.shadow.elevated.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.light}',
|
|
19
19
|
},
|
|
20
20
|
elevatedDark: {
|
|
21
21
|
value:
|
|
22
|
-
'{sizes.0} {sizes.0} {sizes.0}
|
|
22
|
+
'{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.dark}, {sizes.0} {sizes.4} {sizes.7} {colors.shadow.elevated.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.dark}',
|
|
23
23
|
},
|
|
24
24
|
overlayLight: {
|
|
25
25
|
value:
|
|
26
|
-
'{sizes.0} {sizes.
|
|
26
|
+
'{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.light}, {sizes.0} {sizes.8} {sizes.12} {colors.shadow.overlay.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.light}',
|
|
27
27
|
},
|
|
28
28
|
overlayDark: {
|
|
29
29
|
value:
|
|
30
|
-
'{sizes.0} {sizes.0} {sizes.0}
|
|
30
|
+
'{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.dark}, {sizes.0} {sizes.8} {sizes.12} {colors.shadow.overlay.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.dark}',
|
|
31
31
|
},
|
|
32
32
|
overflowLight: {
|
|
33
33
|
value:
|
|
34
|
-
'{sizes.0} {sizes.0} {sizes.8}
|
|
34
|
+
'{sizes.0} {sizes.0} {sizes.8} {colors.shadow.overflow.1.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.light}',
|
|
35
35
|
},
|
|
36
36
|
overflowDark: {
|
|
37
37
|
value:
|
|
38
|
-
'{sizes.0} {sizes.0} {sizes.12}
|
|
38
|
+
'{sizes.0} {sizes.0} {sizes.12} {colors.shadow.overflow.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.dark}',
|
|
39
39
|
},
|
|
40
40
|
// TODO: delete below once migration is complete
|
|
41
41
|
lowLight: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/styles/primitives/zIndex.ts
|
|
2
|
+
import { defineTokens } from '@pandacss/dev';
|
|
3
|
+
|
|
4
|
+
export const zIndex = defineTokens.zIndex({
|
|
5
|
+
'-1': { value: -1 },
|
|
6
|
+
'0': { value: 0 },
|
|
7
|
+
'1': { value: 1 },
|
|
8
|
+
'2': { value: 2 },
|
|
9
|
+
'3': { value: 3 },
|
|
10
|
+
'4': { value: 4 },
|
|
11
|
+
'5': { value: 5 },
|
|
12
|
+
'10': { value: 10 },
|
|
13
|
+
'1000': { value: 1000 },
|
|
14
|
+
'1100': { value: 1100 },
|
|
15
|
+
'1101': { value: 1101 },
|
|
16
|
+
'1200': { value: 1200 },
|
|
17
|
+
});
|