@okshaun/components 3.0.0 → 4.1.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/icon-metadata.json +359 -42
- package/dist/index.js +12890 -5844
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +523 -501
- package/dist/playroom-static.css +2 -2
- package/dist/{preset-BAn5LBiW.js → preset-CLoY9s9i.js} +2031 -2086
- package/dist/preset-CLoY9s9i.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/conditions.json +75 -51
- package/dist/specs/keyframes.json +22 -0
- package/dist/specs/recipes.json +222 -106
- package/dist/specs/semantic-tokens.json +194 -86
- package/dist/specs/tokens.json +16 -36
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +445 -44
- package/dist/styles.css +11441 -13424
- package/dist/svgs/cheese.svg +1 -0
- package/dist/svgs/collapse-vertical.svg +1 -0
- package/dist/svgs/expand-vertical.svg +1 -0
- package/dist/svgs/magnet.svg +1 -0
- package/dist/svgs/to-date-backward.svg +1 -0
- package/dist/svgs/to-date-forward.svg +1 -0
- package/dist/types/index.d.ts +2815 -288
- package/package.json +4 -2
- package/src/recipes/autocomplete.ts +266 -0
- package/src/recipes/badge.ts +25 -54
- package/src/recipes/button.ts +155 -316
- package/src/recipes/calendar.ts +91 -0
- package/src/recipes/card.ts +4 -70
- package/src/recipes/chip.ts +212 -266
- package/src/recipes/dateMenus.ts +40 -0
- package/src/recipes/dateTimeMenus.ts +43 -0
- package/src/recipes/formField.ts +1 -1
- package/src/recipes/kbd.ts +42 -39
- package/src/recipes/list.ts +11 -85
- package/src/recipes/listDensity.ts +66 -0
- package/src/recipes/listItem.ts +27 -166
- package/src/recipes/listItemGroup.ts +16 -16
- package/src/recipes/menu.ts +17 -3
- package/src/recipes/modal.ts +65 -65
- package/src/recipes/radio.ts +6 -6
- package/src/recipes/recipes-slot.ts +7 -2
- package/src/recipes/segmentedFields.ts +192 -0
- package/src/recipes/segmentedInputs.ts +109 -0
- package/src/recipes/tag.ts +218 -210
- package/src/recipes/text.ts +37 -19
- package/src/recipes/textInput.ts +103 -155
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timeMenus.ts +110 -0
- package/src/recipes/toggle.ts +3 -1
- package/src/styles/primitives/shadows.ts +26 -60
- package/src/styles/primitives/zIndex.ts +1 -0
- package/src/styles/semantics/colors.ts +84 -37
- package/src/styles/semantics/shadows.ts +4 -30
- package/src/styles/semantics/zIndex.ts +2 -0
- package/src/styles/utilities/conditions.ts +61 -51
- package/src/styles/utilities/dropShadows.ts +51 -0
- package/src/styles/utilities/filters.ts +22 -7
- package/src/styles/utilities/globalStyle.ts +5 -2
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/keyframes.ts +27 -4
- package/src/styles/utilities/recipeGlobalStyles.ts +22 -0
- package/src/styles/utilities/shadowDefinitions.ts +112 -0
- package/src/utils/dsChain.ts +113 -0
- package/src/utils/dsComponent.ts +44 -0
- package/src/utils/dsPart.ts +41 -0
- package/dist/preset-BAn5LBiW.js.map +0 -1
- package/src/recipes/datePicker.ts +0 -234
- package/src/recipes/timePicker.ts +0 -216
package/src/recipes/button.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
fill: 'icon.decorative',
|
|
5
|
-
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
6
|
-
_groupHover: { fill: 'current' },
|
|
7
|
-
_groupActive: { fill: 'current' },
|
|
8
|
-
};
|
|
3
|
+
import { globalBaseStyles } from '~/styles/utilities';
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_groupActive: { fill: 'icon.decorative.inverse' },
|
|
15
|
-
};
|
|
5
|
+
// Ported from the Cetec design system: slots, the custom-property sizing
|
|
6
|
+
// mechanism, the size variant and the style-variant set. The recipe's
|
|
7
|
+
// before/after variants are internal, computed from Button's props, so the
|
|
8
|
+
// public before, after, iconBefore and iconAfter props are unchanged.
|
|
16
9
|
|
|
17
|
-
const
|
|
10
|
+
const buttonBaseStyles = {
|
|
18
11
|
container: {
|
|
12
|
+
...globalBaseStyles,
|
|
13
|
+
'--main-py': 'token(sizes.3)',
|
|
14
|
+
'--main-px': 'token(sizes.10)',
|
|
15
|
+
'--main-slot-side-padding': 'token(sizes.0)',
|
|
16
|
+
'--main-fs': 'token(sizes.16)',
|
|
17
|
+
'--slot-size': 'token(sizes.20)',
|
|
18
|
+
'--slot-px': 'token(sizes.6)',
|
|
19
19
|
position: 'relative',
|
|
20
20
|
appearance: 'none',
|
|
21
21
|
display: 'flex',
|
|
@@ -24,14 +24,13 @@ const baseButtonStyles = {
|
|
|
24
24
|
minWidth: '0',
|
|
25
25
|
width: 'fit',
|
|
26
26
|
height: 'fit',
|
|
27
|
+
flexShrink: 0,
|
|
27
28
|
transitionDuration: 'fast',
|
|
28
29
|
transitionProperty: 'background, border-color, color, box-shadow',
|
|
29
30
|
transitionTimingFunction: 'default',
|
|
30
31
|
userSelect: 'none',
|
|
31
32
|
verticalAlign: 'middle',
|
|
32
|
-
fontFamily: 'sans',
|
|
33
33
|
fontWeight: 'medium',
|
|
34
|
-
fontSize: '16',
|
|
35
34
|
lineHeight: 'default',
|
|
36
35
|
borderWidth: '1',
|
|
37
36
|
borderStyle: 'solid',
|
|
@@ -40,6 +39,7 @@ const baseButtonStyles = {
|
|
|
40
39
|
outlineWidth: '2',
|
|
41
40
|
outlineStyle: 'solid',
|
|
42
41
|
outlineColor: 'transparent',
|
|
42
|
+
outlineOffset: '1',
|
|
43
43
|
textDecoration: 'none',
|
|
44
44
|
whiteSpace: 'nowrap',
|
|
45
45
|
cursor: 'pointer',
|
|
@@ -60,29 +60,28 @@ const baseButtonStyles = {
|
|
|
60
60
|
alignItems: 'center',
|
|
61
61
|
width: 'fit',
|
|
62
62
|
height: 'fit',
|
|
63
|
+
py: 'var(--main-py)',
|
|
64
|
+
px: 'var(--main-px)',
|
|
65
|
+
fontSize: 'var(--main-fs)',
|
|
63
66
|
},
|
|
64
67
|
slot: {
|
|
65
68
|
display: 'inline-flex',
|
|
66
69
|
alignItems: 'center',
|
|
67
70
|
transitionDuration: 'fast',
|
|
68
|
-
transitionProperty: '
|
|
69
|
-
transitionTimingFunction: 'default',
|
|
70
|
-
flex: '0 0 auto',
|
|
71
|
-
},
|
|
72
|
-
icon: {
|
|
73
|
-
aspectRatio: 'square',
|
|
74
|
-
transitionDuration: 'fast',
|
|
75
|
-
transitionProperty: 'fill',
|
|
71
|
+
transitionProperty: 'all',
|
|
76
72
|
transitionTimingFunction: 'default',
|
|
73
|
+
flex: '0 0 var(--slot-size)',
|
|
74
|
+
px: 'var(--slot-px)',
|
|
77
75
|
},
|
|
78
76
|
};
|
|
79
77
|
|
|
78
|
+
// Variants only hold color-related styles
|
|
80
79
|
const buttonVariants = {
|
|
81
80
|
variant: {
|
|
82
|
-
|
|
81
|
+
standard: {
|
|
83
82
|
container: {
|
|
84
83
|
bg: 'bg.neutral',
|
|
85
|
-
|
|
84
|
+
borderColor: 'transparent',
|
|
86
85
|
_hover: {
|
|
87
86
|
bg: 'bg.neutral.hovered',
|
|
88
87
|
},
|
|
@@ -90,89 +89,86 @@ const buttonVariants = {
|
|
|
90
89
|
bg: 'bg.neutral.pressed',
|
|
91
90
|
},
|
|
92
91
|
},
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
mainContent: {
|
|
93
|
+
color: 'text',
|
|
94
|
+
},
|
|
95
|
+
slot: {
|
|
96
|
+
fill: 'icon.decorative',
|
|
97
|
+
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
98
|
+
_groupHover: { fill: 'current' },
|
|
99
|
+
_groupActive: { fill: 'current' },
|
|
100
|
+
},
|
|
95
101
|
},
|
|
96
102
|
primary: {
|
|
97
103
|
container: {
|
|
98
|
-
bg: 'bg.
|
|
99
|
-
|
|
104
|
+
bg: 'bg.neutral.boldest',
|
|
105
|
+
borderColor: 'transparent',
|
|
100
106
|
_hover: {
|
|
101
|
-
bg: 'bg.
|
|
107
|
+
bg: 'bg.neutral.bold.hovered',
|
|
102
108
|
},
|
|
103
109
|
_active: {
|
|
104
|
-
bg: 'bg.
|
|
110
|
+
bg: 'bg.neutral.bold.pressed',
|
|
105
111
|
},
|
|
106
112
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
fill: 'icon.decorative.inverse.subtle',
|
|
110
|
-
_groupDisabled: {
|
|
111
|
-
fill: 'icon.decorative.inverse.subtle',
|
|
112
|
-
},
|
|
113
|
+
mainContent: {
|
|
114
|
+
color: 'text.inverse',
|
|
113
115
|
},
|
|
114
116
|
slot: {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
fill: 'icon.decorative.inverse',
|
|
118
|
+
mixBlendMode: { base: 'screen', _dark: 'multiply' },
|
|
119
|
+
_groupHover: { fill: 'icon.decorative.inverse.hovered' },
|
|
120
|
+
_groupActive: { fill: 'icon.decorative.inverse.hovered' },
|
|
117
121
|
_groupDisabled: {
|
|
118
|
-
fill: 'icon.decorative.inverse
|
|
122
|
+
fill: 'icon.decorative.inverse',
|
|
119
123
|
},
|
|
120
124
|
},
|
|
121
125
|
},
|
|
122
|
-
|
|
126
|
+
hollow: {
|
|
123
127
|
container: {
|
|
124
128
|
bg: 'bg.neutral.subtle',
|
|
125
|
-
|
|
129
|
+
borderColor: 'border',
|
|
126
130
|
_hover: {
|
|
127
131
|
bg: 'bg.neutral.subtle.hovered',
|
|
128
|
-
color: 'text',
|
|
129
132
|
},
|
|
130
133
|
_active: {
|
|
131
134
|
bg: 'bg.neutral.subtle.pressed',
|
|
132
|
-
color: 'text',
|
|
133
135
|
},
|
|
134
136
|
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
mainContent: {
|
|
138
|
+
color: 'text',
|
|
139
|
+
},
|
|
140
|
+
slot: {
|
|
141
|
+
fill: 'icon.decorative',
|
|
142
|
+
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
143
|
+
_groupHover: { fill: 'current' },
|
|
144
|
+
_groupActive: { fill: 'current' },
|
|
145
|
+
},
|
|
137
146
|
},
|
|
138
|
-
|
|
147
|
+
ghost: {
|
|
139
148
|
container: {
|
|
140
149
|
bg: 'bg.neutral.subtle',
|
|
141
|
-
|
|
150
|
+
borderColor: 'transparent',
|
|
142
151
|
_hover: {
|
|
143
152
|
bg: 'bg.neutral.subtle.hovered',
|
|
144
|
-
color: 'text',
|
|
145
153
|
},
|
|
146
154
|
_active: {
|
|
147
155
|
bg: 'bg.neutral.subtle.pressed',
|
|
148
|
-
color: 'text',
|
|
149
156
|
},
|
|
150
157
|
},
|
|
151
|
-
|
|
152
|
-
slot: iconDefaultStyles,
|
|
153
|
-
},
|
|
154
|
-
hollow: {
|
|
155
|
-
container: {
|
|
156
|
-
bg: 'bg.neutral.subtle',
|
|
157
|
-
borderColor: 'border',
|
|
158
|
+
mainContent: {
|
|
158
159
|
color: 'text',
|
|
159
|
-
_hover: {
|
|
160
|
-
bg: 'bg.neutral.subtle.hovered',
|
|
161
|
-
},
|
|
162
|
-
_active: {
|
|
163
|
-
bg: 'bg.neutral.subtle.pressed',
|
|
164
|
-
},
|
|
165
|
-
_disabled: {
|
|
166
|
-
borderColor: 'border.disabled',
|
|
167
|
-
},
|
|
168
160
|
},
|
|
169
|
-
|
|
170
|
-
|
|
161
|
+
slot: {
|
|
162
|
+
fill: 'icon.decorative',
|
|
163
|
+
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
164
|
+
_groupHover: { fill: 'current' },
|
|
165
|
+
_groupActive: { fill: 'current' },
|
|
166
|
+
},
|
|
171
167
|
},
|
|
172
168
|
danger: {
|
|
173
169
|
container: {
|
|
174
170
|
bg: 'red.50',
|
|
175
|
-
|
|
171
|
+
borderColor: 'transparent',
|
|
176
172
|
_hover: {
|
|
177
173
|
bg: 'red.40',
|
|
178
174
|
},
|
|
@@ -180,14 +176,14 @@ const buttonVariants = {
|
|
|
180
176
|
bg: 'red.60',
|
|
181
177
|
},
|
|
182
178
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
_groupDisabled: {
|
|
186
|
-
fill: 'icon.decorative.inverse',
|
|
187
|
-
},
|
|
179
|
+
mainContent: {
|
|
180
|
+
color: 'neutral.0',
|
|
188
181
|
},
|
|
189
182
|
slot: {
|
|
190
|
-
|
|
183
|
+
fill: 'icon.decorative.inverse',
|
|
184
|
+
mixBlendMode: 'screen',
|
|
185
|
+
_groupHover: { fill: 'icon.decorative.inverse.hovered' },
|
|
186
|
+
_groupActive: { fill: 'icon.decorative.inverse.hovered' },
|
|
191
187
|
_groupDisabled: {
|
|
192
188
|
fill: 'icon.decorative.inverse',
|
|
193
189
|
},
|
|
@@ -196,24 +192,18 @@ const buttonVariants = {
|
|
|
196
192
|
selected: {
|
|
197
193
|
container: {
|
|
198
194
|
bg: 'bg.selected',
|
|
199
|
-
|
|
195
|
+
borderColor: 'transparent',
|
|
200
196
|
_hover: {
|
|
201
197
|
bg: 'bg.selected.hovered',
|
|
202
|
-
color: 'text.selected
|
|
198
|
+
color: 'text.selected',
|
|
203
199
|
},
|
|
204
200
|
_active: {
|
|
205
201
|
bg: 'bg.selected.pressed',
|
|
206
202
|
color: 'text.selected',
|
|
207
203
|
},
|
|
208
204
|
},
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
212
|
-
_groupHover: { fill: 'icon.selected' },
|
|
213
|
-
_groupActive: { fill: 'icon.selected' },
|
|
214
|
-
_groupDisabled: {
|
|
215
|
-
fill: 'icon.selected',
|
|
216
|
-
},
|
|
205
|
+
mainContent: {
|
|
206
|
+
color: 'text.selected',
|
|
217
207
|
},
|
|
218
208
|
slot: {
|
|
219
209
|
fill: 'icon.selected',
|
|
@@ -228,7 +218,7 @@ const buttonVariants = {
|
|
|
228
218
|
selectedBold: {
|
|
229
219
|
container: {
|
|
230
220
|
bg: 'bg.selected.bold',
|
|
231
|
-
|
|
221
|
+
borderColor: 'transparent',
|
|
232
222
|
_hover: {
|
|
233
223
|
bg: 'bg.selected.bold.hovered',
|
|
234
224
|
},
|
|
@@ -236,202 +226,88 @@ const buttonVariants = {
|
|
|
236
226
|
bg: 'bg.selected.bold.pressed',
|
|
237
227
|
},
|
|
238
228
|
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
mixBlendMode: { base: 'screen', _dark: 'multiply' },
|
|
242
|
-
_groupHover: { fill: 'icon.inverse' },
|
|
243
|
-
_groupActive: { fill: 'icon.inverse' },
|
|
244
|
-
_groupDisabled: {
|
|
245
|
-
fill: 'icon.inverse',
|
|
246
|
-
},
|
|
229
|
+
mainContent: {
|
|
230
|
+
color: 'text.inverse',
|
|
247
231
|
},
|
|
248
232
|
slot: {
|
|
249
|
-
fill: 'icon.inverse',
|
|
233
|
+
fill: 'icon.decorative.inverse',
|
|
250
234
|
mixBlendMode: { base: 'screen', _dark: 'multiply' },
|
|
251
|
-
_groupHover: { fill: 'icon.inverse' },
|
|
252
|
-
_groupActive: { fill: 'icon.inverse' },
|
|
235
|
+
_groupHover: { fill: 'icon.decorative.inverse.hovered' },
|
|
236
|
+
_groupActive: { fill: 'icon.decorative.inverse.hovered' },
|
|
253
237
|
_groupDisabled: {
|
|
254
|
-
fill: 'icon.inverse',
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
selectedSubtle: {
|
|
259
|
-
container: {
|
|
260
|
-
bg: 'bg.selected',
|
|
261
|
-
color: 'text.selected',
|
|
262
|
-
_hover: {
|
|
263
|
-
bg: 'bg.selected.hovered',
|
|
264
|
-
color: 'text.selected.hovered',
|
|
265
|
-
},
|
|
266
|
-
_active: {
|
|
267
|
-
bg: 'bg.selected.pressed',
|
|
268
|
-
color: 'text.selected',
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
icon: {
|
|
272
|
-
fill: 'icon.selected',
|
|
273
|
-
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
274
|
-
_groupHover: { fill: 'icon.selected' },
|
|
275
|
-
_groupActive: { fill: 'icon.selected' },
|
|
276
|
-
_groupDisabled: {
|
|
277
|
-
fill: 'icon.selected',
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
slot: {
|
|
281
|
-
fill: 'icon.selected',
|
|
282
|
-
mixBlendMode: { base: 'multiply', _dark: 'screen' },
|
|
283
|
-
_groupHover: { fill: 'icon.selected' },
|
|
284
|
-
_groupActive: { fill: 'icon.selected' },
|
|
285
|
-
_groupDisabled: {
|
|
286
|
-
fill: 'icon.selected',
|
|
238
|
+
fill: 'icon.decorative.inverse',
|
|
287
239
|
},
|
|
288
240
|
},
|
|
289
241
|
},
|
|
290
242
|
},
|
|
291
243
|
};
|
|
292
244
|
|
|
293
|
-
const buttonSizes = {
|
|
294
|
-
sm: {
|
|
295
|
-
container: {
|
|
296
|
-
fontSize: '14',
|
|
297
|
-
py: '1',
|
|
298
|
-
px: '8',
|
|
299
|
-
},
|
|
300
|
-
slot: {
|
|
301
|
-
w: '16',
|
|
302
|
-
h: '16',
|
|
303
|
-
px: '4',
|
|
304
|
-
},
|
|
305
|
-
icon: {
|
|
306
|
-
w: '22',
|
|
307
|
-
h: '22',
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
md: {
|
|
311
|
-
container: {
|
|
312
|
-
fontSize: '16',
|
|
313
|
-
py: '3',
|
|
314
|
-
px: '12',
|
|
315
|
-
},
|
|
316
|
-
slot: {
|
|
317
|
-
w: '20',
|
|
318
|
-
h: '20',
|
|
319
|
-
px: '6',
|
|
320
|
-
},
|
|
321
|
-
icon: {
|
|
322
|
-
w: '24',
|
|
323
|
-
h: '24',
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
lg: {
|
|
327
|
-
container: {
|
|
328
|
-
fontSize: '16',
|
|
329
|
-
py: '7',
|
|
330
|
-
px: '14',
|
|
331
|
-
},
|
|
332
|
-
slot: {
|
|
333
|
-
w: '24',
|
|
334
|
-
h: '24',
|
|
335
|
-
px: '8',
|
|
336
|
-
},
|
|
337
|
-
icon: {
|
|
338
|
-
w: '24',
|
|
339
|
-
h: '24',
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
xl: {
|
|
343
|
-
container: {
|
|
344
|
-
fontSize: '20',
|
|
345
|
-
py: '9',
|
|
346
|
-
px: '16',
|
|
347
|
-
},
|
|
348
|
-
slot: {
|
|
349
|
-
w: '28',
|
|
350
|
-
h: '28',
|
|
351
|
-
px: '10',
|
|
352
|
-
},
|
|
353
|
-
icon: {
|
|
354
|
-
w: '28',
|
|
355
|
-
h: '28',
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
};
|
|
359
|
-
|
|
360
245
|
export const buttonRecipe = defineSlotRecipe({
|
|
361
246
|
className: 'button',
|
|
362
247
|
jsx: ['Button'],
|
|
363
|
-
slots: ['container', 'mainContent', 'slot'
|
|
364
|
-
base:
|
|
248
|
+
slots: ['container', 'mainContent', 'slot'],
|
|
249
|
+
base: buttonBaseStyles,
|
|
365
250
|
variants: {
|
|
366
251
|
...buttonVariants,
|
|
367
|
-
size:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
size: 'sm',
|
|
378
|
-
iconBefore: true,
|
|
379
|
-
css: {
|
|
380
|
-
container: { ps: '2' },
|
|
381
|
-
},
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
size: 'sm',
|
|
385
|
-
iconAfter: true,
|
|
386
|
-
css: {
|
|
387
|
-
container: { pe: '2' },
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
size: 'md',
|
|
392
|
-
iconBefore: true,
|
|
393
|
-
css: {
|
|
394
|
-
container: { ps: '3' },
|
|
252
|
+
size: {
|
|
253
|
+
sm: {
|
|
254
|
+
container: {
|
|
255
|
+
'--main-py': 'token(sizes.0)',
|
|
256
|
+
'--main-px': 'token(sizes.8)',
|
|
257
|
+
'--main-slot-side-padding': 'token(sizes.0)',
|
|
258
|
+
'--main-fs': 'token(sizes.14)',
|
|
259
|
+
'--slot-size': 'token(sizes.16)',
|
|
260
|
+
'--slot-px': 'token(sizes.4)',
|
|
261
|
+
},
|
|
395
262
|
},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
263
|
+
md: {
|
|
264
|
+
container: {
|
|
265
|
+
'--main-py': 'token(sizes.3)',
|
|
266
|
+
'--main-px': 'token(sizes.10)',
|
|
267
|
+
'--main-slot-side-padding': 'token(sizes.0)',
|
|
268
|
+
'--main-fs': 'token(sizes.16)',
|
|
269
|
+
'--slot-size': 'token(sizes.20)',
|
|
270
|
+
'--slot-px': 'token(sizes.6)',
|
|
271
|
+
},
|
|
402
272
|
},
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
273
|
+
lg: {
|
|
274
|
+
container: {
|
|
275
|
+
'--main-py': 'token(sizes.7)',
|
|
276
|
+
'--main-px': 'token(sizes.12)',
|
|
277
|
+
'--main-slot-side-padding': 'token(sizes.0)',
|
|
278
|
+
'--main-fs': 'token(sizes.16)',
|
|
279
|
+
'--slot-size': 'token(sizes.24)',
|
|
280
|
+
'--slot-px': 'token(sizes.8)',
|
|
281
|
+
},
|
|
409
282
|
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
283
|
+
xl: {
|
|
284
|
+
container: {
|
|
285
|
+
'--main-py': 'token(sizes.9)',
|
|
286
|
+
'--main-px': 'token(sizes.16)',
|
|
287
|
+
'--main-slot-side-padding': 'token(sizes.0)',
|
|
288
|
+
'--main-fs': 'token(sizes.20)',
|
|
289
|
+
'--slot-size': 'token(sizes.28)',
|
|
290
|
+
'--slot-px': 'token(sizes.10)',
|
|
291
|
+
},
|
|
416
292
|
},
|
|
417
293
|
},
|
|
418
|
-
{
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
294
|
+
before: {
|
|
295
|
+
true: {
|
|
296
|
+
mainContent: {
|
|
297
|
+
ps: '0',
|
|
298
|
+
},
|
|
423
299
|
},
|
|
424
300
|
},
|
|
425
|
-
{
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
301
|
+
after: {
|
|
302
|
+
true: {
|
|
303
|
+
mainContent: {
|
|
304
|
+
pe: '0',
|
|
305
|
+
},
|
|
430
306
|
},
|
|
431
307
|
},
|
|
432
|
-
|
|
308
|
+
},
|
|
433
309
|
defaultVariants: {
|
|
434
|
-
variant: '
|
|
310
|
+
variant: 'standard',
|
|
435
311
|
size: 'md',
|
|
436
312
|
},
|
|
437
313
|
});
|
|
@@ -439,87 +315,50 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
439
315
|
export const iconButtonRecipe = defineSlotRecipe({
|
|
440
316
|
className: 'iconButton',
|
|
441
317
|
jsx: ['IconButton'],
|
|
442
|
-
slots: ['container', 'mainContent', 'slot'
|
|
443
|
-
base:
|
|
318
|
+
slots: ['container', 'mainContent', 'slot'],
|
|
319
|
+
base: {
|
|
320
|
+
...buttonBaseStyles,
|
|
321
|
+
mainContent: {
|
|
322
|
+
w: 'calc(var(--slot-size) + (var(--slot-px) * 2))',
|
|
323
|
+
h: 'calc(var(--slot-size) + (var(--slot-px) * 2))',
|
|
324
|
+
p: 'var(--slot-px)',
|
|
325
|
+
},
|
|
326
|
+
slot: {
|
|
327
|
+
w: 'var(--slot-size)',
|
|
328
|
+
h: 'var(--slot-size)',
|
|
329
|
+
},
|
|
330
|
+
},
|
|
444
331
|
variants: {
|
|
445
332
|
...buttonVariants,
|
|
446
333
|
size: {
|
|
447
334
|
sm: {
|
|
448
335
|
container: {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
slot: {
|
|
453
|
-
w: '22',
|
|
454
|
-
h: '22',
|
|
455
|
-
},
|
|
456
|
-
mainContent: {
|
|
457
|
-
width: 'fit',
|
|
458
|
-
height: 'fit',
|
|
459
|
-
},
|
|
460
|
-
icon: {
|
|
461
|
-
w: '22',
|
|
462
|
-
h: '22',
|
|
336
|
+
'--slot-size': 'token(sizes.16)',
|
|
337
|
+
'--slot-px': 'token(sizes.3)',
|
|
463
338
|
},
|
|
464
339
|
},
|
|
465
340
|
md: {
|
|
466
341
|
container: {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
slot: {
|
|
471
|
-
w: '24',
|
|
472
|
-
h: '24',
|
|
473
|
-
},
|
|
474
|
-
mainContent: {
|
|
475
|
-
width: 'fit',
|
|
476
|
-
height: 'fit',
|
|
477
|
-
},
|
|
478
|
-
icon: {
|
|
479
|
-
w: '24',
|
|
480
|
-
h: '24',
|
|
342
|
+
'--slot-size': 'token(sizes.20)',
|
|
343
|
+
'--slot-px': 'token(sizes.5)',
|
|
481
344
|
},
|
|
482
345
|
},
|
|
483
346
|
lg: {
|
|
484
347
|
container: {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
slot: {
|
|
489
|
-
w: '24',
|
|
490
|
-
h: '24',
|
|
491
|
-
},
|
|
492
|
-
mainContent: {
|
|
493
|
-
width: 'fit',
|
|
494
|
-
height: 'fit',
|
|
495
|
-
},
|
|
496
|
-
icon: {
|
|
497
|
-
w: '24',
|
|
498
|
-
h: '24',
|
|
348
|
+
'--slot-size': 'token(sizes.24)',
|
|
349
|
+
'--slot-px': 'token(sizes.7)',
|
|
499
350
|
},
|
|
500
351
|
},
|
|
501
352
|
xl: {
|
|
502
353
|
container: {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
slot: {
|
|
507
|
-
w: '28',
|
|
508
|
-
h: '28',
|
|
509
|
-
},
|
|
510
|
-
mainContent: {
|
|
511
|
-
width: 'fit',
|
|
512
|
-
height: 'fit',
|
|
513
|
-
},
|
|
514
|
-
icon: {
|
|
515
|
-
w: '28',
|
|
516
|
-
h: '28',
|
|
354
|
+
'--slot-size': 'token(sizes.28)',
|
|
355
|
+
'--slot-px': 'token(sizes.9)',
|
|
517
356
|
},
|
|
518
357
|
},
|
|
519
358
|
},
|
|
520
359
|
},
|
|
521
360
|
defaultVariants: {
|
|
522
|
-
variant: '
|
|
361
|
+
variant: 'standard',
|
|
523
362
|
size: 'md',
|
|
524
363
|
},
|
|
525
364
|
});
|