@iress-oss/ids-theme-preset 6.0.0-alpha.1
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/README.md +102 -0
- package/dist/chunk-6T7NHIQQ.js +2994 -0
- package/dist/chunk-OGLE65KO.js +149 -0
- package/dist/chunk-V3SF6JCX.js +75 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +25 -0
- package/dist/constants.d.ts +150 -0
- package/dist/constants.js +22 -0
- package/dist/hooks/index.d.ts +23 -0
- package/dist/hooks/index.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.js +38 -0
- package/package.json +74 -0
- package/src/config-recipes/button.ts +739 -0
- package/src/config-recipes/table.ts +258 -0
- package/src/config-recipes/text.ts +237 -0
- package/src/constants.ts +193 -0
- package/src/createMinimalConfig.ts +29 -0
- package/src/globalCss.ts +8 -0
- package/src/hooks/codegenPrepareHook.test.ts +55 -0
- package/src/hooks/codegenPrepareHook.ts +57 -0
- package/src/hooks/cssgenDoneHook.test.ts +57 -0
- package/src/hooks/cssgenDoneHook.ts +31 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/spacingAliasMap.test.ts +15 -0
- package/src/hooks/spacingAliasMap.ts +13 -0
- package/src/index.ts +133 -0
- package/src/staticCss.ts +103 -0
- package/src/tokens/animationStyles.ts +79 -0
- package/src/tokens/borders.ts +54 -0
- package/src/tokens/breakpoints.ts +9 -0
- package/src/tokens/colors.ts +286 -0
- package/src/tokens/keyframes.ts +74 -0
- package/src/tokens/layerStyles.ts +99 -0
- package/src/tokens/radii.ts +52 -0
- package/src/tokens/sizes.ts +184 -0
- package/src/tokens/spacing.ts +82 -0
- package/src/tokens/textStyles.ts +130 -0
- package/src/tokens/zIndex.ts +25 -0
- package/src/utilities/chevron.ts +33 -0
- package/src/utilities/focusable.ts +202 -0
- package/src/utilities/gutter.ts +20 -0
- package/src/utilities/horizontalAlign.ts +27 -0
- package/src/utilities/materialSymbols.ts +28 -0
- package/src/utilities/noGutter.ts +15 -0
- package/src/utilities/offset.ts +90 -0
- package/src/utilities/scrollable.ts +53 -0
- package/src/utilities/sliderThumb.ts +29 -0
- package/src/utilities/span.ts +136 -0
- package/src/utilities/stretch.ts +15 -0
- package/src/utilities/verticalAlign.ts +27 -0
- package/src/vite.ts +47 -0
|
@@ -0,0 +1,2994 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BREAKPOINT_DETAILS,
|
|
3
|
+
FORM_ELEMENT_WIDTHS,
|
|
4
|
+
GRID_SIZE,
|
|
5
|
+
HORIZONTAL_ALIGNS,
|
|
6
|
+
MATERIAL_SYMBOLS,
|
|
7
|
+
TEXT_ALIGNS,
|
|
8
|
+
VERTICAL_ALIGNS,
|
|
9
|
+
Z_INDEX
|
|
10
|
+
} from "./chunk-OGLE65KO.js";
|
|
11
|
+
|
|
12
|
+
// src/index.ts
|
|
13
|
+
import { definePreset } from "@pandacss/dev";
|
|
14
|
+
|
|
15
|
+
// src/globalCss.ts
|
|
16
|
+
import { cssVars } from "@iress-oss/ids-tokens";
|
|
17
|
+
import { defineGlobalStyles } from "@pandacss/dev";
|
|
18
|
+
var globalCss = defineGlobalStyles({
|
|
19
|
+
body: {
|
|
20
|
+
background: cssVars.colour.neutral[10]
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/tokens/colors.ts
|
|
25
|
+
import { colour, cssVars as cssVars2 } from "@iress-oss/ids-tokens";
|
|
26
|
+
var colors = {
|
|
27
|
+
"colour.neutral.10": {
|
|
28
|
+
description: colour.neutral["10"].$description,
|
|
29
|
+
value: cssVars2.colour.neutral["10"]
|
|
30
|
+
},
|
|
31
|
+
"colour.neutral.20": {
|
|
32
|
+
description: colour.neutral["20"].$description,
|
|
33
|
+
value: cssVars2.colour.neutral["20"]
|
|
34
|
+
},
|
|
35
|
+
"colour.neutral.30": {
|
|
36
|
+
description: colour.neutral["30"].$description,
|
|
37
|
+
value: cssVars2.colour.neutral["30"]
|
|
38
|
+
},
|
|
39
|
+
"colour.neutral.40": {
|
|
40
|
+
description: colour.neutral["40"].$description,
|
|
41
|
+
value: cssVars2.colour.neutral["40"]
|
|
42
|
+
},
|
|
43
|
+
"colour.neutral.50": {
|
|
44
|
+
description: colour.neutral["50"].$description,
|
|
45
|
+
value: cssVars2.colour.neutral["50"]
|
|
46
|
+
},
|
|
47
|
+
"colour.neutral.60": {
|
|
48
|
+
description: colour.neutral["60"].$description,
|
|
49
|
+
value: cssVars2.colour.neutral["60"]
|
|
50
|
+
},
|
|
51
|
+
"colour.neutral.70": {
|
|
52
|
+
description: colour.neutral["70"].$description,
|
|
53
|
+
value: cssVars2.colour.neutral["70"]
|
|
54
|
+
},
|
|
55
|
+
"colour.neutral.80": {
|
|
56
|
+
description: colour.neutral["80"].$description,
|
|
57
|
+
value: cssVars2.colour.neutral["80"]
|
|
58
|
+
},
|
|
59
|
+
"colour.neutral.90": {
|
|
60
|
+
description: colour.neutral["90"].$description,
|
|
61
|
+
value: cssVars2.colour.neutral["90"]
|
|
62
|
+
},
|
|
63
|
+
"colour.primary.fill": {
|
|
64
|
+
description: colour.primary.fill.$description,
|
|
65
|
+
value: cssVars2.colour.primary.fill
|
|
66
|
+
},
|
|
67
|
+
"colour.primary.fillHover": {
|
|
68
|
+
description: colour.primary.fillHover.$description,
|
|
69
|
+
value: cssVars2.colour.primary.fillHover
|
|
70
|
+
},
|
|
71
|
+
"colour.primary.onFill": {
|
|
72
|
+
description: colour.primary.onFill.$description,
|
|
73
|
+
value: cssVars2.colour.primary.onFill
|
|
74
|
+
},
|
|
75
|
+
"colour.primary.surface": {
|
|
76
|
+
description: colour.primary.surface.$description,
|
|
77
|
+
value: cssVars2.colour.primary.surface
|
|
78
|
+
},
|
|
79
|
+
"colour.primary.surfaceHover": {
|
|
80
|
+
description: colour.primary.surfaceHover.$description,
|
|
81
|
+
value: cssVars2.colour.primary.surfaceHover
|
|
82
|
+
},
|
|
83
|
+
"colour.primary.text": {
|
|
84
|
+
description: colour.primary.text.$description,
|
|
85
|
+
value: cssVars2.colour.primary.text
|
|
86
|
+
},
|
|
87
|
+
"colour.accent.fill": {
|
|
88
|
+
description: colour.accent.fill.$description,
|
|
89
|
+
value: cssVars2.colour.accent.fill
|
|
90
|
+
},
|
|
91
|
+
"colour.accent.fillHover": {
|
|
92
|
+
description: colour.accent.fillHover.$description,
|
|
93
|
+
value: cssVars2.colour.accent.fillHover
|
|
94
|
+
},
|
|
95
|
+
"colour.accent.onFill": {
|
|
96
|
+
description: colour.accent.onFill.$description,
|
|
97
|
+
value: cssVars2.colour.accent.onFill
|
|
98
|
+
},
|
|
99
|
+
"colour.accent.surface": {
|
|
100
|
+
description: colour.accent.surface.$description,
|
|
101
|
+
value: cssVars2.colour.accent.surface
|
|
102
|
+
},
|
|
103
|
+
"colour.accent.surfaceHover": {
|
|
104
|
+
description: colour.accent.surfaceHover.$description,
|
|
105
|
+
value: cssVars2.colour.accent.surfaceHover
|
|
106
|
+
},
|
|
107
|
+
"colour.accent.text": {
|
|
108
|
+
description: colour.accent.text.$description,
|
|
109
|
+
value: cssVars2.colour.accent.text
|
|
110
|
+
},
|
|
111
|
+
"colour.system.success.fill": {
|
|
112
|
+
description: colour.system.success.fill.$description,
|
|
113
|
+
value: cssVars2.colour.system.success.fill
|
|
114
|
+
},
|
|
115
|
+
"colour.system.success.fillHover": {
|
|
116
|
+
description: colour.system.success.fillHover.$description,
|
|
117
|
+
value: cssVars2.colour.system.success.fillHover
|
|
118
|
+
},
|
|
119
|
+
"colour.system.success.onFill": {
|
|
120
|
+
description: colour.system.success.onFill.$description,
|
|
121
|
+
value: cssVars2.colour.system.success.onFill
|
|
122
|
+
},
|
|
123
|
+
"colour.system.success.surface": {
|
|
124
|
+
description: colour.system.success.surface.$description,
|
|
125
|
+
value: cssVars2.colour.system.success.surface
|
|
126
|
+
},
|
|
127
|
+
"colour.system.success.surfaceHover": {
|
|
128
|
+
description: colour.system.success.surfaceHover.$description,
|
|
129
|
+
value: cssVars2.colour.system.success.surfaceHover
|
|
130
|
+
},
|
|
131
|
+
"colour.system.success.text": {
|
|
132
|
+
description: colour.system.success.text.$description,
|
|
133
|
+
value: cssVars2.colour.system.success.text
|
|
134
|
+
},
|
|
135
|
+
"colour.system.danger.fill": {
|
|
136
|
+
description: colour.system.danger.fill.$description,
|
|
137
|
+
value: cssVars2.colour.system.danger.fill
|
|
138
|
+
},
|
|
139
|
+
"colour.system.danger.fillHover": {
|
|
140
|
+
description: colour.system.danger.fillHover.$description,
|
|
141
|
+
value: cssVars2.colour.system.danger.fillHover
|
|
142
|
+
},
|
|
143
|
+
"colour.system.danger.onFill": {
|
|
144
|
+
description: colour.system.danger.onFill.$description,
|
|
145
|
+
value: cssVars2.colour.system.danger.onFill
|
|
146
|
+
},
|
|
147
|
+
"colour.system.danger.surface": {
|
|
148
|
+
description: colour.system.danger.surface.$description,
|
|
149
|
+
value: cssVars2.colour.system.danger.surface
|
|
150
|
+
},
|
|
151
|
+
"colour.system.danger.surfaceHover": {
|
|
152
|
+
description: colour.system.danger.surfaceHover.$description,
|
|
153
|
+
value: cssVars2.colour.system.danger.surfaceHover
|
|
154
|
+
},
|
|
155
|
+
"colour.system.danger.text": {
|
|
156
|
+
description: colour.system.danger.text.$description,
|
|
157
|
+
value: cssVars2.colour.system.danger.text
|
|
158
|
+
},
|
|
159
|
+
"colour.system.warning.fill": {
|
|
160
|
+
description: colour.system.warning.fill.$description,
|
|
161
|
+
value: cssVars2.colour.system.warning.fill
|
|
162
|
+
},
|
|
163
|
+
"colour.system.warning.onFill": {
|
|
164
|
+
description: colour.system.warning.onFill.$description,
|
|
165
|
+
value: cssVars2.colour.system.warning.onFill
|
|
166
|
+
},
|
|
167
|
+
"colour.system.warning.fillHover": {
|
|
168
|
+
description: colour.system.warning.fillHover.$description,
|
|
169
|
+
value: cssVars2.colour.system.warning.fillHover
|
|
170
|
+
},
|
|
171
|
+
"colour.system.warning.surface": {
|
|
172
|
+
description: colour.system.warning.surface.$description,
|
|
173
|
+
value: cssVars2.colour.system.warning.surface
|
|
174
|
+
},
|
|
175
|
+
"colour.system.warning.text": {
|
|
176
|
+
description: colour.system.warning.text.$description,
|
|
177
|
+
value: cssVars2.colour.system.warning.text
|
|
178
|
+
},
|
|
179
|
+
"colour.system.warning.surfaceHover": {
|
|
180
|
+
description: colour.system.warning.surfaceHover.$description,
|
|
181
|
+
value: cssVars2.colour.system.warning.surfaceHover
|
|
182
|
+
},
|
|
183
|
+
"colour.system.info.fill": {
|
|
184
|
+
description: colour.system.info.fill.$description,
|
|
185
|
+
value: cssVars2.colour.system.info.fill
|
|
186
|
+
},
|
|
187
|
+
"colour.system.info.onFill": {
|
|
188
|
+
description: colour.system.info.onFill.$description,
|
|
189
|
+
value: cssVars2.colour.system.info.onFill
|
|
190
|
+
},
|
|
191
|
+
"colour.system.info.fillHover": {
|
|
192
|
+
description: colour.system.info.fillHover.$description,
|
|
193
|
+
value: cssVars2.colour.system.info.fillHover
|
|
194
|
+
},
|
|
195
|
+
"colour.system.info.surface": {
|
|
196
|
+
description: colour.system.info.surface.$description,
|
|
197
|
+
value: cssVars2.colour.system.info.surface
|
|
198
|
+
},
|
|
199
|
+
"colour.system.info.text": {
|
|
200
|
+
description: colour.system.info.text.$description,
|
|
201
|
+
value: cssVars2.colour.system.info.text
|
|
202
|
+
},
|
|
203
|
+
"colour.system.info.surfaceHover": {
|
|
204
|
+
description: colour.system.info.surfaceHover.$description,
|
|
205
|
+
value: cssVars2.colour.system.info.surfaceHover
|
|
206
|
+
},
|
|
207
|
+
"colour.data.subtle.10": {
|
|
208
|
+
description: colour.data.subtle["10"].$description,
|
|
209
|
+
value: cssVars2.colour.data.subtle["10"]
|
|
210
|
+
},
|
|
211
|
+
"colour.data.subtle.20": {
|
|
212
|
+
description: colour.data.subtle["20"].$description,
|
|
213
|
+
value: cssVars2.colour.data.subtle["20"]
|
|
214
|
+
},
|
|
215
|
+
"colour.data.subtle.30": {
|
|
216
|
+
description: colour.data.subtle["30"].$description,
|
|
217
|
+
value: cssVars2.colour.data.subtle["30"]
|
|
218
|
+
},
|
|
219
|
+
"colour.data.subtle.40": {
|
|
220
|
+
description: colour.data.subtle["40"].$description,
|
|
221
|
+
value: cssVars2.colour.data.subtle["40"]
|
|
222
|
+
},
|
|
223
|
+
"colour.data.subtle.50": {
|
|
224
|
+
description: colour.data.subtle["50"].$description,
|
|
225
|
+
value: cssVars2.colour.data.subtle["50"]
|
|
226
|
+
},
|
|
227
|
+
"colour.data.subtle.60": {
|
|
228
|
+
description: colour.data.subtle["60"].$description,
|
|
229
|
+
value: cssVars2.colour.data.subtle["60"]
|
|
230
|
+
},
|
|
231
|
+
"colour.data.subtle.70": {
|
|
232
|
+
description: colour.data.subtle["70"].$description,
|
|
233
|
+
value: cssVars2.colour.data.subtle["70"]
|
|
234
|
+
},
|
|
235
|
+
"colour.data.subtle.80": {
|
|
236
|
+
description: colour.data.subtle["80"].$description,
|
|
237
|
+
value: cssVars2.colour.data.subtle["80"]
|
|
238
|
+
},
|
|
239
|
+
"colour.data.subtle.90": {
|
|
240
|
+
description: colour.data.subtle["90"].$description,
|
|
241
|
+
value: cssVars2.colour.data.subtle["90"]
|
|
242
|
+
},
|
|
243
|
+
"colour.data.bold.10": {
|
|
244
|
+
description: colour.data.bold["10"].$description,
|
|
245
|
+
value: cssVars2.colour.data.bold["10"]
|
|
246
|
+
},
|
|
247
|
+
"colour.data.bold.20": {
|
|
248
|
+
description: colour.data.bold["20"].$description,
|
|
249
|
+
value: cssVars2.colour.data.bold["20"]
|
|
250
|
+
},
|
|
251
|
+
"colour.data.bold.30": {
|
|
252
|
+
description: colour.data.bold["30"].$description,
|
|
253
|
+
value: cssVars2.colour.data.bold["30"]
|
|
254
|
+
},
|
|
255
|
+
"colour.data.bold.40": {
|
|
256
|
+
description: colour.data.bold["40"].$description,
|
|
257
|
+
value: cssVars2.colour.data.bold["40"]
|
|
258
|
+
},
|
|
259
|
+
"colour.data.bold.50": {
|
|
260
|
+
description: colour.data.bold["50"].$description,
|
|
261
|
+
value: cssVars2.colour.data.bold["50"]
|
|
262
|
+
},
|
|
263
|
+
"colour.data.bold.60": {
|
|
264
|
+
description: colour.data.bold["60"].$description,
|
|
265
|
+
value: cssVars2.colour.data.bold["60"]
|
|
266
|
+
},
|
|
267
|
+
"colour.data.bold.70": {
|
|
268
|
+
description: colour.data.bold["70"].$description,
|
|
269
|
+
value: cssVars2.colour.data.bold["70"]
|
|
270
|
+
},
|
|
271
|
+
"colour.data.bold.80": {
|
|
272
|
+
description: colour.data.bold["80"].$description,
|
|
273
|
+
value: cssVars2.colour.data.bold["80"]
|
|
274
|
+
},
|
|
275
|
+
"colour.data.bold.90": {
|
|
276
|
+
description: colour.data.bold["90"].$description,
|
|
277
|
+
value: cssVars2.colour.data.bold["90"]
|
|
278
|
+
},
|
|
279
|
+
"colour.globalInteractions.backdrop": {
|
|
280
|
+
description: colour.globalInteractions.backdrop.$description,
|
|
281
|
+
value: cssVars2.colour.globalInteractions.backdrop
|
|
282
|
+
},
|
|
283
|
+
"colour.globalInteractions.focusRing": {
|
|
284
|
+
description: colour.globalInteractions.focusRing.$description,
|
|
285
|
+
value: cssVars2.colour.globalInteractions.focusRing
|
|
286
|
+
},
|
|
287
|
+
transparent: {
|
|
288
|
+
description: "Transparent colour, used to create a transparent background.",
|
|
289
|
+
value: "rgba(0, 0, 0, 0)"
|
|
290
|
+
},
|
|
291
|
+
page: {
|
|
292
|
+
description: "Page colour, used for backgrounds.",
|
|
293
|
+
value: cssVars2.colour.neutral["10"]
|
|
294
|
+
},
|
|
295
|
+
alt: {
|
|
296
|
+
description: "Alternative colour, used for alternative backgrounds.",
|
|
297
|
+
value: cssVars2.colour.neutral["20"]
|
|
298
|
+
},
|
|
299
|
+
muted: {
|
|
300
|
+
description: "Muted colour, used for less prominent text.",
|
|
301
|
+
value: cssVars2.colour.neutral["70"]
|
|
302
|
+
},
|
|
303
|
+
text: {
|
|
304
|
+
description: "Text colour, used for primary text content.",
|
|
305
|
+
value: cssVars2.colour.neutral["80"]
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
var COLOR_TOKENS = Object.keys(colors);
|
|
309
|
+
|
|
310
|
+
// src/tokens/radii.ts
|
|
311
|
+
import { radius, cssVars as cssVars3 } from "@iress-oss/ids-tokens";
|
|
312
|
+
var radii = {
|
|
313
|
+
"radius.0": {
|
|
314
|
+
description: radius[0].$description,
|
|
315
|
+
value: cssVars3.radius["0"]
|
|
316
|
+
},
|
|
317
|
+
"radius.1": {
|
|
318
|
+
description: radius[1].$description,
|
|
319
|
+
value: cssVars3.radius["1"]
|
|
320
|
+
},
|
|
321
|
+
"radius.2": {
|
|
322
|
+
description: radius[2].$description,
|
|
323
|
+
value: cssVars3.radius["2"]
|
|
324
|
+
},
|
|
325
|
+
"radius.3": {
|
|
326
|
+
description: radius[3].$description,
|
|
327
|
+
value: cssVars3.radius["3"]
|
|
328
|
+
},
|
|
329
|
+
"radius.4": {
|
|
330
|
+
description: radius[4].$description,
|
|
331
|
+
value: cssVars3.radius["4"]
|
|
332
|
+
},
|
|
333
|
+
"radius.system.button": {
|
|
334
|
+
description: radius.system.button.$description,
|
|
335
|
+
value: cssVars3.radius.system.button
|
|
336
|
+
},
|
|
337
|
+
"radius.system.form": {
|
|
338
|
+
description: radius.system.form.$description,
|
|
339
|
+
value: cssVars3.radius.system.form
|
|
340
|
+
},
|
|
341
|
+
"radius.system.layout": {
|
|
342
|
+
description: radius.system.layout.$description,
|
|
343
|
+
value: cssVars3.radius.system.layout
|
|
344
|
+
},
|
|
345
|
+
"radius.system.pill": {
|
|
346
|
+
description: radius.system.pill.$description,
|
|
347
|
+
value: cssVars3.radius.system.pill
|
|
348
|
+
},
|
|
349
|
+
"radius.system.tag": {
|
|
350
|
+
description: radius.system.tag.$description,
|
|
351
|
+
value: cssVars3.radius.system.tag
|
|
352
|
+
},
|
|
353
|
+
none: {
|
|
354
|
+
description: "No border radius",
|
|
355
|
+
value: cssVars3.radius["0"]
|
|
356
|
+
},
|
|
357
|
+
"50%": {
|
|
358
|
+
description: "Circle radius",
|
|
359
|
+
value: "50%"
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
// src/tokens/textStyles.ts
|
|
364
|
+
import { defineTextStyles } from "@pandacss/dev";
|
|
365
|
+
import { typography, cssVars as cssVars4 } from "@iress-oss/ids-tokens";
|
|
366
|
+
var textCompositions = {
|
|
367
|
+
"typography.heading.1": {
|
|
368
|
+
description: typography.heading["1"].$description,
|
|
369
|
+
value: {
|
|
370
|
+
font: cssVars4.typography.heading["1"]
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"typography.heading.2": {
|
|
374
|
+
description: typography.heading["2"].$description,
|
|
375
|
+
value: {
|
|
376
|
+
font: cssVars4.typography.heading["2"]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"typography.heading.3": {
|
|
380
|
+
description: typography.heading["3"].$description,
|
|
381
|
+
value: {
|
|
382
|
+
font: cssVars4.typography.heading["3"]
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"typography.heading.4": {
|
|
386
|
+
description: typography.heading["4"].$description,
|
|
387
|
+
value: {
|
|
388
|
+
font: cssVars4.typography.heading["4"]
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"typography.heading.5": {
|
|
392
|
+
description: typography.heading["5"].$description,
|
|
393
|
+
value: {
|
|
394
|
+
font: cssVars4.typography.heading["5"]
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"typography.body.sm": {
|
|
398
|
+
description: typography.body.sm.$description,
|
|
399
|
+
value: {
|
|
400
|
+
font: cssVars4.typography.body.sm.regular,
|
|
401
|
+
"& strong:not([class]), &:is(strong)": {
|
|
402
|
+
font: cssVars4.typography.body.sm.strong
|
|
403
|
+
},
|
|
404
|
+
"& em:not([class]), &:is(em)": {
|
|
405
|
+
font: cssVars4.typography.body.sm.em
|
|
406
|
+
},
|
|
407
|
+
"& code:not([class])": {
|
|
408
|
+
fontSize: "0.9em !important"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"typography.body.sm.regular": {
|
|
413
|
+
description: typography.body.sm.regular.$description,
|
|
414
|
+
value: {
|
|
415
|
+
font: cssVars4.typography.body.sm.regular
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"typography.body.sm.medium": {
|
|
419
|
+
description: typography.body.sm.medium.$description,
|
|
420
|
+
value: {
|
|
421
|
+
font: cssVars4.typography.body.sm.medium
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"typography.body.sm.strong": {
|
|
425
|
+
description: typography.body.sm.strong.$description,
|
|
426
|
+
value: {
|
|
427
|
+
font: cssVars4.typography.body.sm.strong
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"typography.body.sm.em": {
|
|
431
|
+
description: typography.body.sm.em.$description,
|
|
432
|
+
value: {
|
|
433
|
+
font: cssVars4.typography.body.sm.em
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"typography.body.md.regular": {
|
|
437
|
+
description: typography.body.md.regular.$description,
|
|
438
|
+
value: {
|
|
439
|
+
font: cssVars4.typography.body.md.regular
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"typography.body.md": {
|
|
443
|
+
description: typography.body.md.$description,
|
|
444
|
+
value: {
|
|
445
|
+
font: cssVars4.typography.body.md.regular,
|
|
446
|
+
"& strong:not([class]), &:is(strong)": {
|
|
447
|
+
font: cssVars4.typography.body.md.strong
|
|
448
|
+
},
|
|
449
|
+
"& em:not([class]), &:is(em)": {
|
|
450
|
+
font: cssVars4.typography.body.md.em
|
|
451
|
+
},
|
|
452
|
+
"& code:not([class])": {
|
|
453
|
+
fontSize: "0.9em !important"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"typography.body.md.medium": {
|
|
458
|
+
description: typography.body.md.medium.$description,
|
|
459
|
+
value: {
|
|
460
|
+
font: cssVars4.typography.body.md.medium
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"typography.body.md.strong": {
|
|
464
|
+
description: typography.body.md.strong.$description,
|
|
465
|
+
value: {
|
|
466
|
+
font: cssVars4.typography.body.md.strong
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"typography.body.md.em": {
|
|
470
|
+
description: typography.body.md.em.$description,
|
|
471
|
+
value: {
|
|
472
|
+
font: cssVars4.typography.body.md.em
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"typography.code": {
|
|
476
|
+
description: typography.code.$description,
|
|
477
|
+
value: {
|
|
478
|
+
font: cssVars4.typography.code
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
inherit: {
|
|
482
|
+
description: "Inherit text styles from parent",
|
|
483
|
+
value: {
|
|
484
|
+
font: "inherit"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
var textStyles = defineTextStyles(textCompositions);
|
|
489
|
+
var TEXT_STYLES = Object.keys(
|
|
490
|
+
textCompositions
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
// src/utilities/span.ts
|
|
494
|
+
import { defineUtility } from "@pandacss/dev";
|
|
495
|
+
var spanCompositions = {
|
|
496
|
+
auto: {
|
|
497
|
+
description: "column spans 12/12 or the remaining space of the container width",
|
|
498
|
+
value: {
|
|
499
|
+
flexGrow: 1,
|
|
500
|
+
flexShrink: 0,
|
|
501
|
+
flexBasis: 0,
|
|
502
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"1": {
|
|
506
|
+
description: "column spans 1/12 of the container width",
|
|
507
|
+
value: {
|
|
508
|
+
flexGrow: 0,
|
|
509
|
+
flexShrink: 0,
|
|
510
|
+
flexBasis: "calc(1 / 12 * 100%)",
|
|
511
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"2": {
|
|
515
|
+
description: "column spans 2/12 of the container width",
|
|
516
|
+
value: {
|
|
517
|
+
flexGrow: 0,
|
|
518
|
+
flexShrink: 0,
|
|
519
|
+
flexBasis: "calc(2 / 12 * 100%)",
|
|
520
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"3": {
|
|
524
|
+
description: "column spans 3/12 of the container width",
|
|
525
|
+
value: {
|
|
526
|
+
flexGrow: 0,
|
|
527
|
+
flexShrink: 0,
|
|
528
|
+
flexBasis: "calc(3 / 12 * 100%)",
|
|
529
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"4": {
|
|
533
|
+
description: "column spans 1/12 of the container width",
|
|
534
|
+
value: {
|
|
535
|
+
flexGrow: 0,
|
|
536
|
+
flexShrink: 0,
|
|
537
|
+
flexBasis: "calc(4 / 12 * 100%)",
|
|
538
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"5": {
|
|
542
|
+
description: "column spans 2/12 of the container width",
|
|
543
|
+
value: {
|
|
544
|
+
flexGrow: 0,
|
|
545
|
+
flexShrink: 0,
|
|
546
|
+
flexBasis: "calc(5 / 12 * 100%)",
|
|
547
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"6": {
|
|
551
|
+
description: "column spans 3/12 of the container width",
|
|
552
|
+
value: {
|
|
553
|
+
flexGrow: 0,
|
|
554
|
+
flexShrink: 0,
|
|
555
|
+
flexBasis: "calc(6 / 12 * 100%)",
|
|
556
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"7": {
|
|
560
|
+
description: "column spans 1/12 of the container width",
|
|
561
|
+
value: {
|
|
562
|
+
flexGrow: 0,
|
|
563
|
+
flexShrink: 0,
|
|
564
|
+
flexBasis: "calc(7 / 12 * 100%)",
|
|
565
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"8": {
|
|
569
|
+
description: "column spans 2/12 of the container width",
|
|
570
|
+
value: {
|
|
571
|
+
flexGrow: 0,
|
|
572
|
+
flexShrink: 0,
|
|
573
|
+
flexBasis: "calc(8 / 12 * 100%)",
|
|
574
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"9": {
|
|
578
|
+
description: "column spans 3/12 of the container width",
|
|
579
|
+
value: {
|
|
580
|
+
flexGrow: 0,
|
|
581
|
+
flexShrink: 0,
|
|
582
|
+
flexBasis: "calc(9 / 12 * 100%)",
|
|
583
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"10": {
|
|
587
|
+
description: "column spans 1/12 of the container width",
|
|
588
|
+
value: {
|
|
589
|
+
flexGrow: 0,
|
|
590
|
+
flexShrink: 0,
|
|
591
|
+
flexBasis: "calc(10 / 12 * 100%)",
|
|
592
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"11": {
|
|
596
|
+
description: "column spans 2/12 of the container width",
|
|
597
|
+
value: {
|
|
598
|
+
flexGrow: 0,
|
|
599
|
+
flexShrink: 0,
|
|
600
|
+
flexBasis: "calc(11 / 12 * 100%)",
|
|
601
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"12": {
|
|
605
|
+
description: "column spans 3/12 of the container width",
|
|
606
|
+
value: {
|
|
607
|
+
flexGrow: 0,
|
|
608
|
+
flexShrink: 0,
|
|
609
|
+
flexBasis: "100%",
|
|
610
|
+
paddingInline: "calc(var(--col-gap) / 2)"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
var span = defineUtility({
|
|
615
|
+
className: "span",
|
|
616
|
+
values: Object.keys(spanCompositions),
|
|
617
|
+
transform: (value) => {
|
|
618
|
+
if (!value) {
|
|
619
|
+
return {};
|
|
620
|
+
}
|
|
621
|
+
return spanCompositions[value].value;
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// src/utilities/offset.ts
|
|
626
|
+
import { defineUtility as defineUtility2 } from "@pandacss/dev";
|
|
627
|
+
var offsetCompositions = {
|
|
628
|
+
"0": {
|
|
629
|
+
description: "0 grid column to offset",
|
|
630
|
+
value: {
|
|
631
|
+
marginLeft: "0px"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"1": {
|
|
635
|
+
description: "1 grid column to offset",
|
|
636
|
+
value: {
|
|
637
|
+
marginLeft: "calc(1 / 12 * 100%)"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"2": {
|
|
641
|
+
description: "2 grid columns to offset",
|
|
642
|
+
value: {
|
|
643
|
+
marginLeft: "calc(2 / 12 * 100%)"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"3": {
|
|
647
|
+
description: "3 grid columns to offset",
|
|
648
|
+
value: {
|
|
649
|
+
marginLeft: "calc(3 / 12 * 100%)"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"4": {
|
|
653
|
+
description: "4 grid columns to offset",
|
|
654
|
+
value: {
|
|
655
|
+
marginLeft: "calc(4 / 12 * 100%)"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"5": {
|
|
659
|
+
description: "5 grid columns to offset",
|
|
660
|
+
value: {
|
|
661
|
+
marginLeft: "calc(5 / 12 * 100%)"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"6": {
|
|
665
|
+
description: "6 grid columns to offset",
|
|
666
|
+
value: {
|
|
667
|
+
marginLeft: "calc(6 / 12 * 100%)"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"7": {
|
|
671
|
+
description: "7 grid columns to offset",
|
|
672
|
+
value: {
|
|
673
|
+
marginLeft: "calc(7 / 12 * 100%)"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"8": {
|
|
677
|
+
description: "8 grid columns to offset",
|
|
678
|
+
value: {
|
|
679
|
+
marginLeft: "calc(8 / 12 * 100%)"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
"9": {
|
|
683
|
+
description: "9 grid columns to offset",
|
|
684
|
+
value: {
|
|
685
|
+
marginLeft: "calc(9 / 12 * 100%)"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"10": {
|
|
689
|
+
description: "10 grid columns to offset",
|
|
690
|
+
value: {
|
|
691
|
+
marginLeft: "calc(10 / 12 * 100%)"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"11": {
|
|
695
|
+
description: "11 grid columns to offset",
|
|
696
|
+
value: {
|
|
697
|
+
marginLeft: "calc(11 / 12 * 100%)"
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
var offset = defineUtility2({
|
|
702
|
+
className: "offset",
|
|
703
|
+
values: Object.keys(offsetCompositions),
|
|
704
|
+
transform: (value) => {
|
|
705
|
+
if (!value) {
|
|
706
|
+
return {};
|
|
707
|
+
}
|
|
708
|
+
return offsetCompositions[value].value;
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
// src/tokens/spacing.ts
|
|
713
|
+
import {
|
|
714
|
+
spacing as spacingSchema,
|
|
715
|
+
cssVars as cssVars6
|
|
716
|
+
} from "@iress-oss/ids-tokens";
|
|
717
|
+
|
|
718
|
+
// src/tokens/sizes.ts
|
|
719
|
+
import { cssVars as cssVars5 } from "@iress-oss/ids-tokens";
|
|
720
|
+
var containerSizes = Object.fromEntries(
|
|
721
|
+
Object.entries(BREAKPOINT_DETAILS).map(([breakpoint, detail]) => [
|
|
722
|
+
`container.${breakpoint}`,
|
|
723
|
+
{
|
|
724
|
+
description: `Width of the container at the ${breakpoint} breakpoint`,
|
|
725
|
+
value: detail.containerMaxWidth
|
|
726
|
+
}
|
|
727
|
+
])
|
|
728
|
+
);
|
|
729
|
+
var inputSizes = {
|
|
730
|
+
...Object.fromEntries(
|
|
731
|
+
FORM_ELEMENT_WIDTHS.filter((value) => !value.includes("%")).map((width) => {
|
|
732
|
+
const description = `1rem * ${width}`;
|
|
733
|
+
let value;
|
|
734
|
+
if (width === "2") {
|
|
735
|
+
value = `calc(${cssVars5.typography.base.size} * ${width} + ${cssVars5.typography.base.size})`;
|
|
736
|
+
} else {
|
|
737
|
+
value = `calc(${cssVars5.typography.base.size} * ${width})`;
|
|
738
|
+
}
|
|
739
|
+
return [
|
|
740
|
+
`input.${width}`,
|
|
741
|
+
{
|
|
742
|
+
description,
|
|
743
|
+
value
|
|
744
|
+
}
|
|
745
|
+
];
|
|
746
|
+
})
|
|
747
|
+
),
|
|
748
|
+
"input.height": {
|
|
749
|
+
description: "input height based on typography size",
|
|
750
|
+
value: `calc(${cssVars5.typography.base.size} * (34 / 14))`
|
|
751
|
+
},
|
|
752
|
+
"input.height.sm": {
|
|
753
|
+
description: "input height based on typography size (sm)",
|
|
754
|
+
value: `calc(${cssVars5.typography.base.size} * (30 / 14))`
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
var gridSizes = Object.fromEntries(
|
|
758
|
+
Array.from({ length: GRID_SIZE }, (_, i) => i + 1).map((size) => [
|
|
759
|
+
`${size}/${GRID_SIZE}`,
|
|
760
|
+
{
|
|
761
|
+
description: `Grid size ${size}`,
|
|
762
|
+
value: `${size / GRID_SIZE * 100}%`
|
|
763
|
+
}
|
|
764
|
+
])
|
|
765
|
+
);
|
|
766
|
+
var overlaySizes = {
|
|
767
|
+
"overlay.sm": {
|
|
768
|
+
description: "Used for small modals and slideouts. Small overlays communicate the outcome of an irreversible action. They should be concise and straightforward, containing a single action and, in some cases, a single input field.",
|
|
769
|
+
value: "368px"
|
|
770
|
+
},
|
|
771
|
+
"overlay.md": {
|
|
772
|
+
description: "Used for medium modals and slideouts. Medium overlays provide optional supporting information to help users understand the context of a word or screen. They may contain a single action and, in some cases, a larger input such as a textarea.",
|
|
773
|
+
value: "628px"
|
|
774
|
+
},
|
|
775
|
+
"overlay.lg": {
|
|
776
|
+
description: "Large modals facilitate sub-flows within a primary flow, allowing users to focus on tasks that will impact the underlying screen once the modal is closed (e.g., adding an item to a table or bulk uploading items). They should be used sparingly and only when there is a direct relationship to the underlying screen, where the action would not warrant a separate dedicated screen.",
|
|
777
|
+
value: "800px"
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
var chevronSizes = {
|
|
781
|
+
"chevron.select": {
|
|
782
|
+
description: "Used for the chevron when selecting an option in a dropdown or select component.",
|
|
783
|
+
value: `calc(${cssVars5.typography.base.size} * 0.7)`
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
var progressSizes = {
|
|
787
|
+
"progress.height": {
|
|
788
|
+
description: "Height of the progress bar",
|
|
789
|
+
value: cssVars5.spacing["2"]
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
var sliderSizes = {
|
|
793
|
+
"slider.track": {
|
|
794
|
+
description: "Height of the slider track",
|
|
795
|
+
value: `calc(${cssVars5.typography.base.size} * (10 / 14))`
|
|
796
|
+
},
|
|
797
|
+
"slider.thumb": {
|
|
798
|
+
description: "Size of the slider thumb",
|
|
799
|
+
value: `calc(${cssVars5.typography.base.size} * 2)`
|
|
800
|
+
},
|
|
801
|
+
"slider.tick": {
|
|
802
|
+
description: "Size of the slider tick",
|
|
803
|
+
value: `calc(${cssVars5.typography.base.size} * (5 / 14))`
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
var toggleSizes = {
|
|
807
|
+
"toggle.width": {
|
|
808
|
+
description: "Total width of the toggle",
|
|
809
|
+
value: `calc(${cssVars5.typography.base.size} * (48 / 14))`
|
|
810
|
+
},
|
|
811
|
+
"toggle.thumb": {
|
|
812
|
+
description: "Size of the toggle thumb",
|
|
813
|
+
value: `calc(${cssVars5.typography.base.size} * (24 / 14))`
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
var typographySizes = {
|
|
817
|
+
"typography.base": {
|
|
818
|
+
description: "Base typography size",
|
|
819
|
+
value: cssVars5.typography.base.size
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
var componentSizes = {
|
|
823
|
+
"input.innerHeight": {
|
|
824
|
+
description: "Inner height of input (accounting for border)",
|
|
825
|
+
value: `calc(${cssVars5.typography.base.size} * (34 / 14) - 2px)`
|
|
826
|
+
},
|
|
827
|
+
"mark.size": {
|
|
828
|
+
description: "Size of checkbox/radio marks",
|
|
829
|
+
value: "1.4em"
|
|
830
|
+
},
|
|
831
|
+
"icon.sm": {
|
|
832
|
+
description: "Small icon size",
|
|
833
|
+
value: "1em"
|
|
834
|
+
},
|
|
835
|
+
"icon.md": {
|
|
836
|
+
description: "Medium icon size",
|
|
837
|
+
value: "1.5em"
|
|
838
|
+
},
|
|
839
|
+
"spinner.dot": {
|
|
840
|
+
description: "Size of spinner dots",
|
|
841
|
+
value: "0.5em"
|
|
842
|
+
},
|
|
843
|
+
"pill.minHeight": {
|
|
844
|
+
description: "Minimum height of pill",
|
|
845
|
+
value: "1.35em"
|
|
846
|
+
},
|
|
847
|
+
"pill.minWidth": {
|
|
848
|
+
description: "Minimum width of pill",
|
|
849
|
+
value: "1.5em"
|
|
850
|
+
},
|
|
851
|
+
"tab.indicator": {
|
|
852
|
+
description: "Height of tab active indicator",
|
|
853
|
+
value: "2px"
|
|
854
|
+
},
|
|
855
|
+
"menu.indicator": {
|
|
856
|
+
description: "Width of menu group indicator",
|
|
857
|
+
value: "4px"
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
var sizes = {
|
|
861
|
+
...containerSizes,
|
|
862
|
+
...inputSizes,
|
|
863
|
+
...gridSizes,
|
|
864
|
+
...overlaySizes,
|
|
865
|
+
...chevronSizes,
|
|
866
|
+
...progressSizes,
|
|
867
|
+
...sliderSizes,
|
|
868
|
+
...toggleSizes,
|
|
869
|
+
...typographySizes,
|
|
870
|
+
...componentSizes
|
|
871
|
+
};
|
|
872
|
+
var SIZE_TOKENS = Object.keys({
|
|
873
|
+
...containerSizes,
|
|
874
|
+
...inputSizes,
|
|
875
|
+
...gridSizes,
|
|
876
|
+
...overlaySizes,
|
|
877
|
+
...typographySizes
|
|
878
|
+
});
|
|
879
|
+
|
|
880
|
+
// src/tokens/spacing.ts
|
|
881
|
+
var canonicalSpacing = Object.fromEntries(
|
|
882
|
+
Object.entries(spacingSchema).filter(([key]) => key in cssVars6.spacing).map(([key, token]) => [
|
|
883
|
+
`spacing.${key}`,
|
|
884
|
+
{
|
|
885
|
+
description: token.$description,
|
|
886
|
+
value: cssVars6.spacing[key]
|
|
887
|
+
}
|
|
888
|
+
])
|
|
889
|
+
);
|
|
890
|
+
var aliasSpacing = Object.fromEntries(
|
|
891
|
+
Object.entries(spacingSchema).flatMap(([key, token]) => {
|
|
892
|
+
const aliases = token.$extensions?.["iress.aliases"];
|
|
893
|
+
if (!aliases || !(key in cssVars6.spacing)) return [];
|
|
894
|
+
return aliases.map((alias) => [
|
|
895
|
+
alias,
|
|
896
|
+
{
|
|
897
|
+
description: token.$description,
|
|
898
|
+
value: cssVars6.spacing[key]
|
|
899
|
+
}
|
|
900
|
+
]);
|
|
901
|
+
})
|
|
902
|
+
);
|
|
903
|
+
var componentSpacing = {
|
|
904
|
+
"button.inline": {
|
|
905
|
+
description: "Spacing on the left and right of inline button content",
|
|
906
|
+
value: `calc((${cssVars6.radius.system._button.topLeft} * 0.25) + ${cssVars6.spacing["3"]})`
|
|
907
|
+
},
|
|
908
|
+
"button.iconInline": {
|
|
909
|
+
description: "Spacing on the left and right of inline button content",
|
|
910
|
+
value: `calc((${cssVars6.radius.system._button.topLeft} * 0.25) + ${cssVars6.spacing["2"]})`
|
|
911
|
+
},
|
|
912
|
+
"button.block": {
|
|
913
|
+
description: "Spacing on the top and bottom of block button content",
|
|
914
|
+
value: `calc(${cssVars6.radius.system._button.topLeft} * 0.25)`
|
|
915
|
+
},
|
|
916
|
+
"field.footer": {
|
|
917
|
+
description: "Spacing below the field to account for the height of the footer content",
|
|
918
|
+
value: `calc(${cssVars6.typography.base.size} * 2)`
|
|
919
|
+
},
|
|
920
|
+
"slider.tick": {
|
|
921
|
+
description: "Spacing between top and bottom of the slider tick marks from the track",
|
|
922
|
+
value: `calc((${sizes["slider.track"].value} - ${sizes["slider.tick"].value}) / 2)`
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
var spacing = {
|
|
926
|
+
...canonicalSpacing,
|
|
927
|
+
...aliasSpacing,
|
|
928
|
+
...componentSpacing
|
|
929
|
+
};
|
|
930
|
+
var SPACING_TOKENS = Object.keys(canonicalSpacing);
|
|
931
|
+
var SPACING_AND_ALIAS_TOKENS = Object.keys({
|
|
932
|
+
...canonicalSpacing,
|
|
933
|
+
...aliasSpacing
|
|
934
|
+
});
|
|
935
|
+
var MARGIN_TOKENS = [
|
|
936
|
+
...SPACING_TOKENS,
|
|
937
|
+
...SPACING_TOKENS.map((token) => `-${token}`),
|
|
938
|
+
"auto"
|
|
939
|
+
];
|
|
940
|
+
|
|
941
|
+
// src/tokens/breakpoints.ts
|
|
942
|
+
var breakpoints = Object.fromEntries(
|
|
943
|
+
Object.entries(BREAKPOINT_DETAILS).map(([breakpoint, detail]) => [
|
|
944
|
+
breakpoint,
|
|
945
|
+
detail.minScreenWidth
|
|
946
|
+
])
|
|
947
|
+
);
|
|
948
|
+
|
|
949
|
+
// src/staticCss.ts
|
|
950
|
+
var responsiveProps = {
|
|
951
|
+
columnGap: SPACING_TOKENS,
|
|
952
|
+
gap: SPACING_TOKENS,
|
|
953
|
+
// We can't use margin shorthand because it won't generate the correct CSS
|
|
954
|
+
margin: MARGIN_TOKENS,
|
|
955
|
+
marginBlock: MARGIN_TOKENS,
|
|
956
|
+
marginInline: MARGIN_TOKENS,
|
|
957
|
+
marginTop: MARGIN_TOKENS,
|
|
958
|
+
marginBottom: MARGIN_TOKENS,
|
|
959
|
+
marginLeft: MARGIN_TOKENS,
|
|
960
|
+
marginRight: MARGIN_TOKENS,
|
|
961
|
+
// We can't use padding shorthand because it won't generate the correct CSS
|
|
962
|
+
padding: SPACING_TOKENS,
|
|
963
|
+
paddingBlock: SPACING_TOKENS,
|
|
964
|
+
paddingInline: SPACING_TOKENS,
|
|
965
|
+
paddingTop: SPACING_TOKENS,
|
|
966
|
+
paddingBottom: SPACING_TOKENS,
|
|
967
|
+
paddingLeft: SPACING_TOKENS,
|
|
968
|
+
paddingRight: SPACING_TOKENS,
|
|
969
|
+
rowGap: SPACING_TOKENS,
|
|
970
|
+
srOnly: ["true", "false"],
|
|
971
|
+
width: ["*"],
|
|
972
|
+
// Only available in IressCol
|
|
973
|
+
offset: Object.keys(offsetCompositions),
|
|
974
|
+
span: Object.keys(spanCompositions),
|
|
975
|
+
// Only available in IressRow
|
|
976
|
+
gutter: SPACING_TOKENS
|
|
977
|
+
};
|
|
978
|
+
var staticProps = {
|
|
979
|
+
alignSelf: ["start", "end", "center", "stretch"],
|
|
980
|
+
bg: Object.keys(colors),
|
|
981
|
+
borderRadius: Object.keys(radii),
|
|
982
|
+
color: Object.keys(colors),
|
|
983
|
+
flex: ["1"],
|
|
984
|
+
focusable: [
|
|
985
|
+
"true",
|
|
986
|
+
"within",
|
|
987
|
+
"within:inset",
|
|
988
|
+
"inset",
|
|
989
|
+
"has-button",
|
|
990
|
+
"has-input",
|
|
991
|
+
"has-switch",
|
|
992
|
+
"label-after",
|
|
993
|
+
"expander-activator",
|
|
994
|
+
"select-activator",
|
|
995
|
+
"slider",
|
|
996
|
+
"group"
|
|
997
|
+
],
|
|
998
|
+
hideBelow: Object.keys(breakpoints),
|
|
999
|
+
hideFrom: Object.keys(breakpoints),
|
|
1000
|
+
flexHorizontalAlign: [...HORIZONTAL_ALIGNS],
|
|
1001
|
+
maxWidth: ["*"],
|
|
1002
|
+
noGutter: ["true"],
|
|
1003
|
+
scrollable: ["x", "y", "true"],
|
|
1004
|
+
stretch: ["true"],
|
|
1005
|
+
textAlign: [...TEXT_ALIGNS],
|
|
1006
|
+
textStyle: Object.keys(textCompositions),
|
|
1007
|
+
flexVerticalAlign: [...VERTICAL_ALIGNS]
|
|
1008
|
+
};
|
|
1009
|
+
var staticCss = {
|
|
1010
|
+
css: [
|
|
1011
|
+
{
|
|
1012
|
+
properties: responsiveProps,
|
|
1013
|
+
responsive: true
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
properties: staticProps,
|
|
1017
|
+
responsive: false
|
|
1018
|
+
}
|
|
1019
|
+
]
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
// src/config-recipes/text.ts
|
|
1023
|
+
import { cssVars as cssVars7 } from "@iress-oss/ids-tokens";
|
|
1024
|
+
import { defineRecipe } from "@pandacss/dev";
|
|
1025
|
+
var inlineStyles = {
|
|
1026
|
+
"& code": {
|
|
1027
|
+
textStyle: "typography.code",
|
|
1028
|
+
paddingBlock: "spacing.0",
|
|
1029
|
+
paddingInline: "spacing.1",
|
|
1030
|
+
background: "colour.neutral.20",
|
|
1031
|
+
color: "colour.neutral.80",
|
|
1032
|
+
borderWidth: "0.5px",
|
|
1033
|
+
borderColor: "colour.neutral.30",
|
|
1034
|
+
borderRadius: "radius.system.form",
|
|
1035
|
+
alignSelf: "flex-start"
|
|
1036
|
+
},
|
|
1037
|
+
"& small": {
|
|
1038
|
+
textStyle: "typography.body.sm"
|
|
1039
|
+
},
|
|
1040
|
+
"& cite": {
|
|
1041
|
+
textStyle: "typography.body.sm"
|
|
1042
|
+
},
|
|
1043
|
+
"& caption:not(table[class] *)": {
|
|
1044
|
+
textStyle: "typography.body.sm",
|
|
1045
|
+
display: "block"
|
|
1046
|
+
},
|
|
1047
|
+
"& a:not([class])": {
|
|
1048
|
+
color: "colour.primary.text",
|
|
1049
|
+
fontWeight: cssVars7.typography.body.md._medium.fontWeight,
|
|
1050
|
+
textDecoration: "underline",
|
|
1051
|
+
_hover: {
|
|
1052
|
+
textDecoration: "none"
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
var blockStyles = {
|
|
1057
|
+
"& h1": {
|
|
1058
|
+
textStyle: "typography.heading.1"
|
|
1059
|
+
},
|
|
1060
|
+
"& h2": {
|
|
1061
|
+
textStyle: "typography.heading.2"
|
|
1062
|
+
},
|
|
1063
|
+
"& h3": {
|
|
1064
|
+
textStyle: "typography.heading.3"
|
|
1065
|
+
},
|
|
1066
|
+
"& h4": {
|
|
1067
|
+
textStyle: "typography.heading.4"
|
|
1068
|
+
},
|
|
1069
|
+
"& h5": {
|
|
1070
|
+
textStyle: "typography.heading.5"
|
|
1071
|
+
},
|
|
1072
|
+
"& h6": {
|
|
1073
|
+
textStyle: "typography.body.sm.strong"
|
|
1074
|
+
},
|
|
1075
|
+
_nestedHeadings: {
|
|
1076
|
+
marginBlockStart: "spacing.4",
|
|
1077
|
+
marginBlockEnd: "spacing.2",
|
|
1078
|
+
"&:first-child": {
|
|
1079
|
+
marginBlockStart: "spacing.0"
|
|
1080
|
+
},
|
|
1081
|
+
"&:has(+ p)": {
|
|
1082
|
+
marginBlockEnd: "spacing.1"
|
|
1083
|
+
},
|
|
1084
|
+
"& + p": {
|
|
1085
|
+
marginBlockStart: "spacing.1"
|
|
1086
|
+
},
|
|
1087
|
+
"& *": {
|
|
1088
|
+
fontSize: "inherit"
|
|
1089
|
+
},
|
|
1090
|
+
"& code": {
|
|
1091
|
+
fontSize: "0.9em !important"
|
|
1092
|
+
// TODO: Remove this when we have a better solution for code in headings
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
"& p": {
|
|
1096
|
+
marginBlock: "spacing.4",
|
|
1097
|
+
_siblingHeadings: {
|
|
1098
|
+
marginBlockStart: "spacing.8"
|
|
1099
|
+
},
|
|
1100
|
+
"&:first-child": {
|
|
1101
|
+
marginBlockStart: "spacing.0"
|
|
1102
|
+
},
|
|
1103
|
+
"&:last-child": {
|
|
1104
|
+
marginBlockEnd: "spacing.0"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"& blockquote": {
|
|
1108
|
+
fontStyle: "italic",
|
|
1109
|
+
marginBlockStart: "[0px]",
|
|
1110
|
+
marginInlineStart: "[0px]",
|
|
1111
|
+
position: "relative",
|
|
1112
|
+
paddingInlineStart: "spacing.7",
|
|
1113
|
+
_after: {
|
|
1114
|
+
content: `''`,
|
|
1115
|
+
backgroundColor: "colour.neutral.30",
|
|
1116
|
+
width: "var(--iress-blockquote-border-width, var(--iress-text-blockquote-border-width, var(--iress-default-border-width--lg, 5px)))",
|
|
1117
|
+
insetBlockStart: "[0px]",
|
|
1118
|
+
insetInlineStart: "[0px]",
|
|
1119
|
+
position: "absolute",
|
|
1120
|
+
height: "[100%]"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"& hr": {
|
|
1124
|
+
border: 0,
|
|
1125
|
+
borderBlockStart: "divider",
|
|
1126
|
+
marginBlock: "spacing.6"
|
|
1127
|
+
},
|
|
1128
|
+
"& ul": {
|
|
1129
|
+
listStyleType: "disc",
|
|
1130
|
+
marginBlockEnd: "spacing.4",
|
|
1131
|
+
paddingInlineStart: "spacing.4",
|
|
1132
|
+
"& > li": {
|
|
1133
|
+
marginBlockEnd: "spacing.1"
|
|
1134
|
+
},
|
|
1135
|
+
_siblingHeadings: {
|
|
1136
|
+
marginBlockStart: "spacing.8"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"& ol": {
|
|
1140
|
+
listStyleType: "decimal",
|
|
1141
|
+
marginBlockEnd: "spacing.4",
|
|
1142
|
+
paddingInlineStart: "spacing.6",
|
|
1143
|
+
"& > li": {
|
|
1144
|
+
marginBlockEnd: "spacing.1"
|
|
1145
|
+
},
|
|
1146
|
+
_siblingHeadings: {
|
|
1147
|
+
marginBlockStart: "spacing.8"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
"& table:not([class])": {
|
|
1151
|
+
border: "none",
|
|
1152
|
+
borderCollapse: "collapse",
|
|
1153
|
+
borderSpacing: 0,
|
|
1154
|
+
minWidth: "100%",
|
|
1155
|
+
mb: "xl",
|
|
1156
|
+
"& th, & td": {
|
|
1157
|
+
paddingInline: "spacing.1",
|
|
1158
|
+
paddingBlock: "spacing.4",
|
|
1159
|
+
border: "table",
|
|
1160
|
+
borderLeftWidth: "0px",
|
|
1161
|
+
borderRightWidth: "0px"
|
|
1162
|
+
},
|
|
1163
|
+
"& th:first-child, & td:first-child": {
|
|
1164
|
+
paddingInlineStart: "spacing.0"
|
|
1165
|
+
},
|
|
1166
|
+
"& th:last-child, & td:last-child": {
|
|
1167
|
+
paddingInlineEnd: "spacing.0"
|
|
1168
|
+
},
|
|
1169
|
+
"& th": {
|
|
1170
|
+
textAlign: "start",
|
|
1171
|
+
textStyle: "typography.regular.md.strong"
|
|
1172
|
+
},
|
|
1173
|
+
"& thead th": {
|
|
1174
|
+
textStyle: "typography.heading.5"
|
|
1175
|
+
},
|
|
1176
|
+
"& thead tr:first-child th, & thead tr:first-child td, &:not(:has(thead)) tbody tr:first-child th, &:not(:has(thead)) tbody tr:first-child td": {
|
|
1177
|
+
borderTopWidth: "0px"
|
|
1178
|
+
},
|
|
1179
|
+
"& tfoot tr:last-child th, & tfoot tr:last-child td, &:not(:has(tfoot)) tbody tr:last-child th, &:not(:has(tfoot)) tbody tr:last-child td": {
|
|
1180
|
+
borderBottomWidth: "0px"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"& pre:not(:has(.docblock-source:only-child), [class], .sbdocs-diff-viewer *)": {
|
|
1184
|
+
textStyle: "typography.code",
|
|
1185
|
+
paddingBlock: "spacing.2",
|
|
1186
|
+
paddingInline: "spacing.2",
|
|
1187
|
+
background: "colour.neutral.20",
|
|
1188
|
+
color: "colour.neutral.80",
|
|
1189
|
+
borderWidth: "0.5px",
|
|
1190
|
+
borderColor: "colour.neutral.30",
|
|
1191
|
+
borderRadius: "radius.system.form",
|
|
1192
|
+
overflow: "auto"
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
var textRecipe = defineRecipe({
|
|
1196
|
+
className: "text",
|
|
1197
|
+
description: "The styles for an element that displays text based on the design system guidelines.",
|
|
1198
|
+
base: {
|
|
1199
|
+
color: "colour.neutral.80",
|
|
1200
|
+
textStyle: "typography.body.md"
|
|
1201
|
+
},
|
|
1202
|
+
variants: {
|
|
1203
|
+
/**
|
|
1204
|
+
* The HTML element that should be rendered.
|
|
1205
|
+
*/
|
|
1206
|
+
element: {
|
|
1207
|
+
p: {
|
|
1208
|
+
marginBlockEnd: "spacing.2"
|
|
1209
|
+
},
|
|
1210
|
+
div: blockStyles,
|
|
1211
|
+
span: {},
|
|
1212
|
+
h1: blockStyles["& h1"],
|
|
1213
|
+
h2: blockStyles["& h2"],
|
|
1214
|
+
h3: blockStyles["& h3"],
|
|
1215
|
+
h4: blockStyles["& h4"],
|
|
1216
|
+
h5: blockStyles["& h5"],
|
|
1217
|
+
h6: blockStyles["& h6"],
|
|
1218
|
+
code: inlineStyles["& code"],
|
|
1219
|
+
small: inlineStyles["& small"],
|
|
1220
|
+
cite: inlineStyles["& cite"],
|
|
1221
|
+
caption: inlineStyles["& caption:not(table[class] *)"],
|
|
1222
|
+
strong: {
|
|
1223
|
+
textStyle: "typography.body.md.strong"
|
|
1224
|
+
},
|
|
1225
|
+
em: {
|
|
1226
|
+
textStyle: "typography.body.md.em"
|
|
1227
|
+
},
|
|
1228
|
+
a: inlineStyles["& a:not([class])"],
|
|
1229
|
+
blockquote: blockStyles["& blockquote"],
|
|
1230
|
+
pre: blockStyles["& pre:not(:has(.docblock-source:only-child), [class], .sbdocs-diff-viewer *)"]
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
compoundVariants: [
|
|
1234
|
+
{
|
|
1235
|
+
element: ["p", "div", "span"],
|
|
1236
|
+
css: inlineStyles
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
defaultVariants: {
|
|
1240
|
+
element: "div"
|
|
1241
|
+
},
|
|
1242
|
+
staticCss: ["*"]
|
|
1243
|
+
});
|
|
1244
|
+
|
|
1245
|
+
// src/config-recipes/table.ts
|
|
1246
|
+
import { cssVars as cssVars8 } from "@iress-oss/ids-tokens";
|
|
1247
|
+
import { defineSlotRecipe } from "@pandacss/dev";
|
|
1248
|
+
var tableRecipe = defineSlotRecipe({
|
|
1249
|
+
className: "table",
|
|
1250
|
+
slots: [
|
|
1251
|
+
"root",
|
|
1252
|
+
"table",
|
|
1253
|
+
"caption",
|
|
1254
|
+
"sortHeader",
|
|
1255
|
+
"sortIcon",
|
|
1256
|
+
"sortIconInactive",
|
|
1257
|
+
"activator",
|
|
1258
|
+
"rowGroupHeader",
|
|
1259
|
+
"headerContent",
|
|
1260
|
+
"filterButton",
|
|
1261
|
+
"filterIndicator"
|
|
1262
|
+
],
|
|
1263
|
+
base: {
|
|
1264
|
+
root: {
|
|
1265
|
+
display: "block",
|
|
1266
|
+
scrollable: "true"
|
|
1267
|
+
},
|
|
1268
|
+
table: {
|
|
1269
|
+
textStyle: "typography.body.md",
|
|
1270
|
+
bg: "colour.neutral.10",
|
|
1271
|
+
color: "colour.neutral.90",
|
|
1272
|
+
borderRadius: "radius.system.layout",
|
|
1273
|
+
borderSpacing: "spacing.0",
|
|
1274
|
+
minWidth: "12/12",
|
|
1275
|
+
borderCollapse: "collapse",
|
|
1276
|
+
margin: "spacing.0",
|
|
1277
|
+
"& th, & td": {
|
|
1278
|
+
paddingBlock: "spacing.4",
|
|
1279
|
+
paddingInline: "spacing.4",
|
|
1280
|
+
border: "table",
|
|
1281
|
+
borderLeftWidth: "0px",
|
|
1282
|
+
borderRightWidth: "0px"
|
|
1283
|
+
},
|
|
1284
|
+
"& th": {
|
|
1285
|
+
textAlign: "start",
|
|
1286
|
+
textStyle: "typography.body.md.strong"
|
|
1287
|
+
},
|
|
1288
|
+
"& thead th": {
|
|
1289
|
+
textStyle: "typography.heading.5",
|
|
1290
|
+
paddingBlock: "spacing.2",
|
|
1291
|
+
focusable: "within:inset"
|
|
1292
|
+
},
|
|
1293
|
+
"& thead tr:first-child th, & thead tr:first-child td, &:not(:has(thead)) tbody tr:first-child th, &:not(:has(thead)) tbody tr:first-child td": {
|
|
1294
|
+
borderTopWidth: "0px"
|
|
1295
|
+
},
|
|
1296
|
+
'& tfoot tr:last-child th, & tfoot tr:last-child td, &:not(:has(tfoot)) tbody tr:last-child th:not([scope="rowgroup"]), &:not(:has(tfoot)) tbody tr:last-child td': {
|
|
1297
|
+
borderBottomWidth: "0px"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
caption: {
|
|
1301
|
+
textAlign: "center",
|
|
1302
|
+
textStyle: "typography.heading.3",
|
|
1303
|
+
paddingBlockEnd: "spacing.2"
|
|
1304
|
+
},
|
|
1305
|
+
sortHeader: {
|
|
1306
|
+
all: "unset",
|
|
1307
|
+
fontFamily: "inherit",
|
|
1308
|
+
fontWeight: "inherit",
|
|
1309
|
+
fontSize: "inherit",
|
|
1310
|
+
cursor: "pointer"
|
|
1311
|
+
},
|
|
1312
|
+
sortIcon: {
|
|
1313
|
+
fill: "colour.neutral.90",
|
|
1314
|
+
width: "[1.31em]",
|
|
1315
|
+
height: "[1.31em]",
|
|
1316
|
+
display: "inline-block",
|
|
1317
|
+
ml: "spacing.1",
|
|
1318
|
+
"& path": {
|
|
1319
|
+
transition: "fill 0.2s"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
sortIconInactive: {
|
|
1323
|
+
fill: "colour.neutral.60"
|
|
1324
|
+
},
|
|
1325
|
+
activator: {
|
|
1326
|
+
display: "flex",
|
|
1327
|
+
alignItems: "center",
|
|
1328
|
+
justifyContent: "space-between",
|
|
1329
|
+
position: "relative",
|
|
1330
|
+
width: "12/12",
|
|
1331
|
+
cursor: "pointer",
|
|
1332
|
+
transition: "all",
|
|
1333
|
+
_hover: {
|
|
1334
|
+
color: "colour.primary.text"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
headerContent: {
|
|
1338
|
+
display: "flex",
|
|
1339
|
+
alignItems: "center",
|
|
1340
|
+
gap: "spacing.1"
|
|
1341
|
+
},
|
|
1342
|
+
filterIndicator: {
|
|
1343
|
+
position: "absolute",
|
|
1344
|
+
top: "[0px]",
|
|
1345
|
+
right: "[.05em]",
|
|
1346
|
+
width: "[8px]",
|
|
1347
|
+
height: "[8px]",
|
|
1348
|
+
borderRadius: "50%",
|
|
1349
|
+
bg: "colour.accent.fill",
|
|
1350
|
+
border: "[1.5px solid var(--iress-filter-button-bg, {colors.colour.primary.surfaceHover})]",
|
|
1351
|
+
animationName: "filterIndicatorBounceIn",
|
|
1352
|
+
animationDuration: "0.4s",
|
|
1353
|
+
animationTimingFunction: "ease-out",
|
|
1354
|
+
animationFillMode: "both"
|
|
1355
|
+
},
|
|
1356
|
+
rowGroupHeader: {
|
|
1357
|
+
textStyle: "typography.heading.4",
|
|
1358
|
+
cursor: "pointer",
|
|
1359
|
+
borderBlockEnd: "divider",
|
|
1360
|
+
transition: "all",
|
|
1361
|
+
_hover: {
|
|
1362
|
+
borderBlockEnd: "hover"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
variants: {
|
|
1367
|
+
alternate: {
|
|
1368
|
+
true: {
|
|
1369
|
+
table: {
|
|
1370
|
+
"& tbody tr": {
|
|
1371
|
+
_odd: {
|
|
1372
|
+
bg: "colour.neutral.20"
|
|
1373
|
+
},
|
|
1374
|
+
_even: {
|
|
1375
|
+
bg: "colour.neutral.10"
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
compact: {
|
|
1382
|
+
true: {
|
|
1383
|
+
table: {
|
|
1384
|
+
border: "table",
|
|
1385
|
+
borderRadius: "radius.system.layout",
|
|
1386
|
+
borderCollapse: "separate",
|
|
1387
|
+
"& th, & td": {
|
|
1388
|
+
padding: "spacing.2",
|
|
1389
|
+
borderTopWidth: "0px"
|
|
1390
|
+
},
|
|
1391
|
+
"& thead th, & thead td": {
|
|
1392
|
+
bg: "colour.primary.surface"
|
|
1393
|
+
},
|
|
1394
|
+
"& th, & thead th": {
|
|
1395
|
+
textStyle: "typography.body.md.medium"
|
|
1396
|
+
},
|
|
1397
|
+
"& > thead:first-of-type > :first-child > :first-child": {
|
|
1398
|
+
borderTopLeftRadius: cssVars8.radius.system._layout.topLeft
|
|
1399
|
+
},
|
|
1400
|
+
"& > thead:first-of-type > :first-child > :last-child": {
|
|
1401
|
+
borderTopRightRadius: cssVars8.radius.system._layout.topRight
|
|
1402
|
+
},
|
|
1403
|
+
"& > tbody:last-of-type > :last-child > :first-child": {
|
|
1404
|
+
borderBottomLeftRadius: cssVars8.radius.system._layout.bottomLeft
|
|
1405
|
+
},
|
|
1406
|
+
"& > tbody:last-of-type > :last-child > :last-child": {
|
|
1407
|
+
borderBottomRightRadius: cssVars8.radius.system._layout.bottomRight
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
caption: {
|
|
1411
|
+
paddingBlock: "spacing.5",
|
|
1412
|
+
textAlign: "left"
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
hover: {
|
|
1417
|
+
true: {
|
|
1418
|
+
table: {
|
|
1419
|
+
"& tbody tr": {
|
|
1420
|
+
_hover: {
|
|
1421
|
+
bg: "colour.primary.surfaceHover"
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
removeRowBorders: {
|
|
1428
|
+
true: {
|
|
1429
|
+
table: {
|
|
1430
|
+
"& tbody th, & tbody td": {
|
|
1431
|
+
borderBlockWidth: "0px"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
sortButtonNoWrap: {
|
|
1437
|
+
true: {
|
|
1438
|
+
sortHeader: {
|
|
1439
|
+
whiteSpace: "nowrap"
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
tableBodyOpen: {
|
|
1444
|
+
true: {}
|
|
1445
|
+
},
|
|
1446
|
+
hiddenCaption: {
|
|
1447
|
+
true: {
|
|
1448
|
+
caption: {
|
|
1449
|
+
srOnly: true
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
hasFilterButton: {
|
|
1454
|
+
true: {
|
|
1455
|
+
filterButton: {
|
|
1456
|
+
color: "colour.neutral.60",
|
|
1457
|
+
textStyle: "typography.body.sm.medium",
|
|
1458
|
+
p: "spacing.1",
|
|
1459
|
+
aspectRatio: "1",
|
|
1460
|
+
minWidth: "[0]",
|
|
1461
|
+
minHeight: "[0]",
|
|
1462
|
+
position: "relative",
|
|
1463
|
+
mr: "spacing.1",
|
|
1464
|
+
'&:hover:not([aria-expanded="true"])': {
|
|
1465
|
+
"--iress-filter-button-bg": "{colors.colour.neutral.20}"
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
hasActiveFilter: {
|
|
1471
|
+
true: {
|
|
1472
|
+
filterButton: {
|
|
1473
|
+
color: "colour.primary.fill",
|
|
1474
|
+
bg: "colour.primary.surfaceHover",
|
|
1475
|
+
'&[aria-expanded="true"]': {
|
|
1476
|
+
"--iress-filter-button-bg": "{colors.colour.primary.surface}"
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
defaultVariants: {
|
|
1483
|
+
compact: false,
|
|
1484
|
+
hover: false,
|
|
1485
|
+
sortButtonNoWrap: false,
|
|
1486
|
+
tableBodyOpen: false
|
|
1487
|
+
},
|
|
1488
|
+
staticCss: ["*"]
|
|
1489
|
+
});
|
|
1490
|
+
|
|
1491
|
+
// src/tokens/borders.ts
|
|
1492
|
+
import { cssVars as cssVars9 } from "@iress-oss/ids-tokens";
|
|
1493
|
+
var borders = {
|
|
1494
|
+
alert: {
|
|
1495
|
+
description: "Used for alert borders",
|
|
1496
|
+
value: {
|
|
1497
|
+
width: "1px",
|
|
1498
|
+
style: "solid",
|
|
1499
|
+
color: "currentColor"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
divider: {
|
|
1503
|
+
description: "Used to divide content",
|
|
1504
|
+
value: {
|
|
1505
|
+
width: "1px",
|
|
1506
|
+
style: "solid",
|
|
1507
|
+
color: cssVars9.colour.neutral["50"]
|
|
1508
|
+
}
|
|
1509
|
+
},
|
|
1510
|
+
input: {
|
|
1511
|
+
description: "Border for input fields",
|
|
1512
|
+
value: {
|
|
1513
|
+
width: "1px",
|
|
1514
|
+
style: "solid",
|
|
1515
|
+
color: cssVars9.colour.neutral["70"]
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
hover: {
|
|
1519
|
+
description: "Used when hovering over elements such as expanders",
|
|
1520
|
+
value: {
|
|
1521
|
+
width: "1px",
|
|
1522
|
+
style: "solid",
|
|
1523
|
+
color: cssVars9.colour.primary.fill
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
table: {
|
|
1527
|
+
description: "Used for tables, search bar and cards",
|
|
1528
|
+
value: {
|
|
1529
|
+
width: "1px",
|
|
1530
|
+
style: "solid",
|
|
1531
|
+
color: cssVars9.colour.neutral["40"]
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
transparent: {
|
|
1535
|
+
description: "Used to make a border transparent (e.g. for specific variants)",
|
|
1536
|
+
value: {
|
|
1537
|
+
width: "1px",
|
|
1538
|
+
style: "solid",
|
|
1539
|
+
color: "transparent"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
// src/tokens/zIndex.ts
|
|
1545
|
+
var zIndex = {
|
|
1546
|
+
"000": {
|
|
1547
|
+
value: Z_INDEX.DEFAULT
|
|
1548
|
+
},
|
|
1549
|
+
"100": {
|
|
1550
|
+
value: Z_INDEX.NAVBAR
|
|
1551
|
+
},
|
|
1552
|
+
"200": {
|
|
1553
|
+
value: Z_INDEX.POPOVER
|
|
1554
|
+
},
|
|
1555
|
+
"300": {
|
|
1556
|
+
value: Z_INDEX.SLIDEOUT
|
|
1557
|
+
},
|
|
1558
|
+
"400": {
|
|
1559
|
+
value: Z_INDEX.MODAL
|
|
1560
|
+
},
|
|
1561
|
+
"500": {
|
|
1562
|
+
value: Z_INDEX.TOAST
|
|
1563
|
+
},
|
|
1564
|
+
"600": {
|
|
1565
|
+
value: Z_INDEX.TOOLTIP
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
// src/tokens/layerStyles.ts
|
|
1570
|
+
import { defineLayerStyles } from "@pandacss/dev";
|
|
1571
|
+
import { cssVars as cssVars10 } from "@iress-oss/ids-tokens";
|
|
1572
|
+
var internalLayerStyles = {
|
|
1573
|
+
dropdown: {
|
|
1574
|
+
description: "Used for dropdown elements (eg. DropdownMenu, Select and Popover)",
|
|
1575
|
+
value: {
|
|
1576
|
+
boxShadow: "0 4px 8px #141F4D0A",
|
|
1577
|
+
border: `1px solid ${cssVars10.colour.neutral[40]}`
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
dots: {
|
|
1581
|
+
description: "Used to represent a loading state with dots",
|
|
1582
|
+
value: {
|
|
1583
|
+
background: `radial-gradient(circle closest-side, currentcolor 90%, transparent) 0 / calc(100% / 3) 100% space`
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
floating: {
|
|
1587
|
+
description: "Used to represent a floating element (eg. Slideout)",
|
|
1588
|
+
value: {
|
|
1589
|
+
boxShadow: "0 10px 18px #091E4215",
|
|
1590
|
+
border: "0.5px solid #091E4215"
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
overflow: {
|
|
1594
|
+
description: "Used to indicate an element is scrollable when its content overflows (eg. TabSet and Table)",
|
|
1595
|
+
value: {
|
|
1596
|
+
boxShadow: "inset -13px 0px 18.8px #091E420D"
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
skeleton: {
|
|
1600
|
+
description: "Used to represent a skeleton background",
|
|
1601
|
+
value: {
|
|
1602
|
+
background: `linear-gradient(110deg, ${cssVars10.colour.neutral[30]} 63%, ${cssVars10.colour.neutral[20]} 74%, ${cssVars10.colour.neutral[20]} 78%, ${cssVars10.colour.neutral[30]} 84%, ${cssVars10.colour.neutral[30]} 100%)`,
|
|
1603
|
+
backgroundSize: "200% 100%",
|
|
1604
|
+
backgroundPosition: "0 center"
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
"focusRing.primary.sm": {
|
|
1608
|
+
description: "Focus ring for primary interactive elements (2px)",
|
|
1609
|
+
value: {
|
|
1610
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.primary.fill}, transparent 80%) 0px 0px 0px 2px`
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
"focusRing.primary.md": {
|
|
1614
|
+
description: "Focus ring for primary interactive elements (3px)",
|
|
1615
|
+
value: {
|
|
1616
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.primary.fill}, transparent 80%) 0px 0px 0px 3px`
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"focusRing.primary.subtle": {
|
|
1620
|
+
description: "Subtle focus ring for secondary/quaternary primary elements",
|
|
1621
|
+
value: {
|
|
1622
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.primary.fill}, transparent 90%) 0px 0px 0px 2px`
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"focusRing.danger.md": {
|
|
1626
|
+
description: "Focus ring for danger interactive elements (3px)",
|
|
1627
|
+
value: {
|
|
1628
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.danger.fill}, transparent 80%) 0px 0px 0px 3px`
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
"focusRing.danger.surface": {
|
|
1632
|
+
description: "Focus ring using danger surface colour",
|
|
1633
|
+
value: {
|
|
1634
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.danger.surface}, transparent 40%) 0px 0px 0px 3px`
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
"focusRing.success.md": {
|
|
1638
|
+
description: "Focus ring for success interactive elements (3px)",
|
|
1639
|
+
value: {
|
|
1640
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.success.fill}, transparent 80%) 0px 0px 0px 3px`
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
"focusRing.success.surface": {
|
|
1644
|
+
description: "Focus ring using success surface colour",
|
|
1645
|
+
value: {
|
|
1646
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.success.surface}, transparent 40%) 0px 0px 0px 3px`
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
"focusRing.info.surface": {
|
|
1650
|
+
description: "Focus ring using info surface colour",
|
|
1651
|
+
value: {
|
|
1652
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.info.surface}, transparent 40%) 0px 0px 0px 3px`
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
"focusRing.warning.surface": {
|
|
1656
|
+
description: "Focus ring using warning surface colour",
|
|
1657
|
+
value: {
|
|
1658
|
+
boxShadow: `color-mix(in srgb, ${cssVars10.colour.system.warning.surface}, transparent 40%) 0px 0px 0px 3px`
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
var layerStyles = defineLayerStyles({
|
|
1663
|
+
...internalLayerStyles
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
// src/tokens/keyframes.ts
|
|
1667
|
+
import { cssVars as cssVars11 } from "@iress-oss/ids-tokens";
|
|
1668
|
+
import { defineKeyframes } from "@pandacss/dev";
|
|
1669
|
+
var keyframes = defineKeyframes({
|
|
1670
|
+
chatty: {
|
|
1671
|
+
"0%, 60%, 100%": { transform: "translateY(0)", opacity: "0.7" },
|
|
1672
|
+
"30%": { transform: "translateY(50%)", opacity: "1" }
|
|
1673
|
+
},
|
|
1674
|
+
fieldFooter: {
|
|
1675
|
+
"0%": {
|
|
1676
|
+
display: "none",
|
|
1677
|
+
opacity: 0,
|
|
1678
|
+
transform: `translateY(calc(${cssVars11.spacing[2]} * -1))`
|
|
1679
|
+
},
|
|
1680
|
+
"100%": { display: "block", opacity: 1, transform: "translateY(0)" }
|
|
1681
|
+
},
|
|
1682
|
+
iconRotation: {
|
|
1683
|
+
from: { transform: "rotate(0deg)" },
|
|
1684
|
+
to: { transform: "rotate(359deg)" }
|
|
1685
|
+
},
|
|
1686
|
+
loadingDots: {
|
|
1687
|
+
to: { clipPath: "inset(0 -34% 0 0)" }
|
|
1688
|
+
},
|
|
1689
|
+
loadingFadeNext: {
|
|
1690
|
+
from: { opacity: 0, gridTemplateRows: "0fr" },
|
|
1691
|
+
to: { opacity: 1, gridTemplateRows: "1fr" }
|
|
1692
|
+
},
|
|
1693
|
+
loadingSlideNext: {
|
|
1694
|
+
from: { opacity: 0, transform: "translateX(2.5em)" },
|
|
1695
|
+
to: { opacity: 1, transform: "translateX(0)" }
|
|
1696
|
+
},
|
|
1697
|
+
loadingItemFill: {
|
|
1698
|
+
"0%": { boxShadow: "inset 0px 0px 0px currentColor" },
|
|
1699
|
+
"100%": { boxShadow: "inset 0px 0px 0px 30px currentColor" }
|
|
1700
|
+
},
|
|
1701
|
+
loadingItemScale: {
|
|
1702
|
+
"0%, 100%": { transform: "none" },
|
|
1703
|
+
"50%": { transform: "scale3d(1.1, 1.1, 1)" }
|
|
1704
|
+
},
|
|
1705
|
+
loadingItemStroke: {
|
|
1706
|
+
"100%": { strokeDashoffset: 0 }
|
|
1707
|
+
},
|
|
1708
|
+
skeletonLoading: {
|
|
1709
|
+
"0%": { backgroundPositionX: "0" },
|
|
1710
|
+
"40%": { backgroundPositionX: "-200%" },
|
|
1711
|
+
"100%": { backgroundPositionX: "-200%" }
|
|
1712
|
+
},
|
|
1713
|
+
modalStatusIcon: {
|
|
1714
|
+
"0%": {
|
|
1715
|
+
boxShadow: "0 0 0 0 color-mix(in srgb, var(--alert-fill) 0%, transparent)"
|
|
1716
|
+
},
|
|
1717
|
+
"50%": {
|
|
1718
|
+
boxShadow: "0 0 0 6px color-mix(in srgb, var(--alert-fill) 25%, transparent)"
|
|
1719
|
+
},
|
|
1720
|
+
"100%": {
|
|
1721
|
+
boxShadow: "0 0 0 12px color-mix(in srgb, var(--alert-fill) 0%, transparent)"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
filterIndicatorBounceIn: {
|
|
1725
|
+
"0%": { opacity: 0, transform: "scale(0)" },
|
|
1726
|
+
"50%": { opacity: 1, transform: "scale(1.4)" },
|
|
1727
|
+
"70%": { transform: "scale(0.85)" },
|
|
1728
|
+
"100%": { transform: "scale(1)" }
|
|
1729
|
+
},
|
|
1730
|
+
toggleActive: {
|
|
1731
|
+
"0%": { opacity: 0, transform: "scale(1)" },
|
|
1732
|
+
"40%": { opacity: 1, transform: "scaleX(1.25) scaleY(1.5)" },
|
|
1733
|
+
"99%": { opacity: 0, transform: "scaleX(1.5) scaleY(1.75)" },
|
|
1734
|
+
"100%": { opacity: 0, transform: "scale(1)" }
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
// src/tokens/animationStyles.ts
|
|
1739
|
+
import { defineAnimationStyles } from "@pandacss/dev";
|
|
1740
|
+
var animationStyles = defineAnimationStyles({
|
|
1741
|
+
"field-footer": {
|
|
1742
|
+
value: {
|
|
1743
|
+
animationName: "fieldFooter",
|
|
1744
|
+
animationDuration: "0.5s",
|
|
1745
|
+
animationTimingFunction: "ease-in-out",
|
|
1746
|
+
animationFillMode: "forwards"
|
|
1747
|
+
}
|
|
1748
|
+
},
|
|
1749
|
+
"icon-spin-half": {
|
|
1750
|
+
value: {
|
|
1751
|
+
animationName: "iconRotation",
|
|
1752
|
+
animationDuration: "0.5s",
|
|
1753
|
+
animationTimingFunction: "linear",
|
|
1754
|
+
animationIterationCount: "infinite"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"icon-spin-1": {
|
|
1758
|
+
value: {
|
|
1759
|
+
animationName: "iconRotation",
|
|
1760
|
+
animationDuration: "1s",
|
|
1761
|
+
animationTimingFunction: "linear",
|
|
1762
|
+
animationIterationCount: "infinite"
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
"icon-spin-2": {
|
|
1766
|
+
value: {
|
|
1767
|
+
animationName: "iconRotation",
|
|
1768
|
+
animationDuration: "2s",
|
|
1769
|
+
animationTimingFunction: "linear",
|
|
1770
|
+
animationIterationCount: "infinite"
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
"icon-spin-3": {
|
|
1774
|
+
value: {
|
|
1775
|
+
animationName: "iconRotation",
|
|
1776
|
+
animationDuration: "3s",
|
|
1777
|
+
animationTimingFunction: "linear",
|
|
1778
|
+
animationIterationCount: "infinite"
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"loading-fade-next": {
|
|
1782
|
+
value: {
|
|
1783
|
+
animationName: "loadingFadeNext",
|
|
1784
|
+
animationDuration: "0.6s",
|
|
1785
|
+
animationTimingFunction: "linear",
|
|
1786
|
+
animationFillMode: "forwards"
|
|
1787
|
+
}
|
|
1788
|
+
},
|
|
1789
|
+
"loading-slide-next": {
|
|
1790
|
+
value: {
|
|
1791
|
+
animationName: "loadingSlideNext",
|
|
1792
|
+
animationDuration: "0.5s",
|
|
1793
|
+
animationTimingFunction: "ease-in-out",
|
|
1794
|
+
animationFillMode: "forwards"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"skeleton-loading": {
|
|
1798
|
+
value: {
|
|
1799
|
+
animationName: "skeletonLoading",
|
|
1800
|
+
animationDuration: "2s",
|
|
1801
|
+
animationTimingFunction: "ease-in-out",
|
|
1802
|
+
animationIterationCount: "infinite"
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
"toggle-active": {
|
|
1806
|
+
value: {
|
|
1807
|
+
animationName: "toggleActive",
|
|
1808
|
+
animationDuration: "0.3s",
|
|
1809
|
+
animationTimingFunction: "ease-in-out",
|
|
1810
|
+
animationFillMode: "forwards"
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
|
|
1815
|
+
// src/utilities/gutter.ts
|
|
1816
|
+
import { defineUtility as defineUtility3 } from "@pandacss/dev";
|
|
1817
|
+
import { cssVars as cssVars12 } from "@iress-oss/ids-tokens";
|
|
1818
|
+
var gutter = defineUtility3({
|
|
1819
|
+
className: "gutter",
|
|
1820
|
+
values: SPACING_TOKENS,
|
|
1821
|
+
transform: (value) => {
|
|
1822
|
+
if (!value || !(value in spacing)) {
|
|
1823
|
+
return {};
|
|
1824
|
+
}
|
|
1825
|
+
return {
|
|
1826
|
+
"--col-gap": spacing[value].value,
|
|
1827
|
+
marginInline: `calc(-1 * var(--col-gap) / 2)`,
|
|
1828
|
+
columnGap: cssVars12.spacing[0],
|
|
1829
|
+
rowGap: `var(--col-gap)`
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
});
|
|
1833
|
+
|
|
1834
|
+
// src/utilities/chevron.ts
|
|
1835
|
+
import { defineUtility as defineUtility4 } from "@pandacss/dev";
|
|
1836
|
+
import { cssVars as cssVars13 } from "@iress-oss/ids-tokens";
|
|
1837
|
+
var selectChevron = defineUtility4({
|
|
1838
|
+
className: "selectChevron",
|
|
1839
|
+
values: { type: "boolean" },
|
|
1840
|
+
transform: (value) => {
|
|
1841
|
+
return {
|
|
1842
|
+
"&:after": {
|
|
1843
|
+
content: `''`,
|
|
1844
|
+
width: sizes["chevron.select"].value,
|
|
1845
|
+
height: sizes["chevron.select"].value,
|
|
1846
|
+
top: "50%",
|
|
1847
|
+
insetInlineEnd: `calc(${cssVars13.spacing[2]} + calc(0.25 * ${cssVars13.spacing[2]}))`,
|
|
1848
|
+
position: "absolute",
|
|
1849
|
+
mask: `no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")`,
|
|
1850
|
+
transform: value === true ? "translateY(-50%)" : "translateY(-50%) rotate(180deg)",
|
|
1851
|
+
backgroundColor: `var(--iress-chevron-color, ${cssVars13.colour.neutral[90]})`,
|
|
1852
|
+
pointerEvents: "none"
|
|
1853
|
+
},
|
|
1854
|
+
'&[aria-expanded="true"]:after, [aria-expanded="true"] > &:after': {
|
|
1855
|
+
transform: value === true ? "translateY(-50%) rotate(180deg)" : "translateY(-50%)"
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
});
|
|
1860
|
+
|
|
1861
|
+
// src/config-recipes/button.ts
|
|
1862
|
+
import { defineSlotRecipe as defineSlotRecipe2 } from "@pandacss/dev";
|
|
1863
|
+
var slots = ["root", "prepend", "append", "spinner"];
|
|
1864
|
+
var fluidStyles = {
|
|
1865
|
+
alignItems: "center",
|
|
1866
|
+
alignSelf: "stretch",
|
|
1867
|
+
display: "flex",
|
|
1868
|
+
justifyContent: "center",
|
|
1869
|
+
marginInlineEnd: "spacing.0",
|
|
1870
|
+
width: "12/12"
|
|
1871
|
+
};
|
|
1872
|
+
var buttonRecipe = defineSlotRecipe2({
|
|
1873
|
+
className: "button",
|
|
1874
|
+
description: "Button styles",
|
|
1875
|
+
slots,
|
|
1876
|
+
base: {
|
|
1877
|
+
append: {
|
|
1878
|
+
display: "contents"
|
|
1879
|
+
},
|
|
1880
|
+
root: {
|
|
1881
|
+
alignItems: "center",
|
|
1882
|
+
borderRadius: "radius.system.button",
|
|
1883
|
+
borderStyle: "solid",
|
|
1884
|
+
borderWidth: "[1px]",
|
|
1885
|
+
boxSizing: "border-box",
|
|
1886
|
+
cursor: "pointer",
|
|
1887
|
+
display: "inline-flex",
|
|
1888
|
+
fontKerning: "[none]",
|
|
1889
|
+
gap: "spacing.2",
|
|
1890
|
+
justifyContent: "center",
|
|
1891
|
+
maxWidth: "12/12",
|
|
1892
|
+
minWidth: "input.height",
|
|
1893
|
+
minHeight: "input.height",
|
|
1894
|
+
my: "spacing.0",
|
|
1895
|
+
pointerEvents: "auto",
|
|
1896
|
+
px: "button.inline",
|
|
1897
|
+
py: "button.block",
|
|
1898
|
+
textAlign: "center",
|
|
1899
|
+
textDecoration: "none",
|
|
1900
|
+
textStyle: "typography.body.md.medium",
|
|
1901
|
+
transition: "all",
|
|
1902
|
+
"--transition-easing": "linear",
|
|
1903
|
+
"--transition-duration": "0.2s",
|
|
1904
|
+
userSelect: "none",
|
|
1905
|
+
whiteSpace: "normal",
|
|
1906
|
+
width: "auto",
|
|
1907
|
+
verticalAlign: "middle",
|
|
1908
|
+
_focusVisible: {
|
|
1909
|
+
outline: "none",
|
|
1910
|
+
focusable: "true"
|
|
1911
|
+
},
|
|
1912
|
+
'&[data-active="true"]': {
|
|
1913
|
+
bg: "colour.primary.surface",
|
|
1914
|
+
borderColor: "colour.primary.fill",
|
|
1915
|
+
color: "colour.primary.text"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
prepend: {
|
|
1919
|
+
display: "contents"
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
variants: {
|
|
1923
|
+
active: {
|
|
1924
|
+
true: {
|
|
1925
|
+
root: {
|
|
1926
|
+
bg: "colour.primary.surface",
|
|
1927
|
+
borderColor: "colour.primary.text",
|
|
1928
|
+
color: "colour.primary.text"
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
compact: {
|
|
1933
|
+
true: {
|
|
1934
|
+
root: {
|
|
1935
|
+
textStyle: "typography.body.sm.medium",
|
|
1936
|
+
minWidth: "input.height.sm",
|
|
1937
|
+
minHeight: "input.height.sm"
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
fluid: {
|
|
1942
|
+
true: {
|
|
1943
|
+
root: {
|
|
1944
|
+
alignItems: "center",
|
|
1945
|
+
alignSelf: "stretch",
|
|
1946
|
+
display: "flex",
|
|
1947
|
+
justifyContent: "center",
|
|
1948
|
+
marginInlineEnd: "spacing.0",
|
|
1949
|
+
width: "12/12"
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
xs: {
|
|
1953
|
+
root: {
|
|
1954
|
+
xsOnly: { ...fluidStyles }
|
|
1955
|
+
}
|
|
1956
|
+
},
|
|
1957
|
+
sm: {
|
|
1958
|
+
root: {
|
|
1959
|
+
xsToSm: { ...fluidStyles }
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1962
|
+
md: {
|
|
1963
|
+
root: {
|
|
1964
|
+
xsToMd: { ...fluidStyles }
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
lg: {
|
|
1968
|
+
root: {
|
|
1969
|
+
xsToLg: { ...fluidStyles }
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
xl: {
|
|
1973
|
+
root: {
|
|
1974
|
+
xsToXl: { ...fluidStyles }
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
xxl: {
|
|
1978
|
+
root: {
|
|
1979
|
+
xsToXl: { ...fluidStyles }
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
inButtonGroup: {
|
|
1984
|
+
true: {
|
|
1985
|
+
root: {
|
|
1986
|
+
py: "spacing.0",
|
|
1987
|
+
borderWidth: "[0px]"
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
iconOnly: {
|
|
1992
|
+
true: {
|
|
1993
|
+
root: {
|
|
1994
|
+
paddingInline: "button.iconInline"
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
loading: {
|
|
1999
|
+
true: {
|
|
2000
|
+
root: {
|
|
2001
|
+
cursor: "not-allowed",
|
|
2002
|
+
bg: "colour.neutral.30",
|
|
2003
|
+
color: "colour.neutral.60",
|
|
2004
|
+
borderColor: "colour.neutral.30"
|
|
2005
|
+
},
|
|
2006
|
+
spinner: {
|
|
2007
|
+
color: "colour.neutral.60"
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
2011
|
+
mode: {
|
|
2012
|
+
primary: {
|
|
2013
|
+
root: {
|
|
2014
|
+
bg: "colour.primary.fill",
|
|
2015
|
+
borderColor: "colour.primary.fill",
|
|
2016
|
+
color: "colour.primary.onFill",
|
|
2017
|
+
_hover: {
|
|
2018
|
+
bg: "colour.primary.fillHover",
|
|
2019
|
+
borderColor: "colour.primary.fillHover"
|
|
2020
|
+
},
|
|
2021
|
+
_active: {
|
|
2022
|
+
layerStyle: "focusRing.primary.sm"
|
|
2023
|
+
},
|
|
2024
|
+
'&[data-active="true"]': {
|
|
2025
|
+
bg: "colour.primary.surface",
|
|
2026
|
+
borderColor: "colour.primary.fill",
|
|
2027
|
+
color: "colour.primary.text"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
spinner: {
|
|
2031
|
+
color: "colour.primary.onFill"
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
secondary: {
|
|
2035
|
+
root: {
|
|
2036
|
+
bg: "colour.primary.surface",
|
|
2037
|
+
borderColor: "colour.neutral.40",
|
|
2038
|
+
color: "colour.primary.text",
|
|
2039
|
+
_hover: {
|
|
2040
|
+
bg: "colour.primary.surfaceHover",
|
|
2041
|
+
boxShadow: "{colors.colour.neutral.40} 0px 0px 0px 1px"
|
|
2042
|
+
},
|
|
2043
|
+
_active: {
|
|
2044
|
+
layerStyle: "focusRing.primary.subtle"
|
|
2045
|
+
},
|
|
2046
|
+
'&[data-active="true"]': {
|
|
2047
|
+
bg: "colour.primary.surface",
|
|
2048
|
+
borderColor: "colour.primary.fill",
|
|
2049
|
+
color: "colour.primary.text"
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
spinner: {
|
|
2053
|
+
color: "colour.primary.text"
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
tertiary: {
|
|
2057
|
+
root: {
|
|
2058
|
+
bg: "transparent",
|
|
2059
|
+
borderColor: "colour.primary.text",
|
|
2060
|
+
color: "colour.primary.text",
|
|
2061
|
+
_hover: {
|
|
2062
|
+
bg: "colour.primary.surfaceHover"
|
|
2063
|
+
},
|
|
2064
|
+
_active: {
|
|
2065
|
+
layerStyle: "focusRing.primary.sm"
|
|
2066
|
+
},
|
|
2067
|
+
'&[data-active="true"]': {
|
|
2068
|
+
bg: "colour.primary.surface",
|
|
2069
|
+
borderColor: "colour.primary.fill",
|
|
2070
|
+
color: "colour.primary.text"
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
spinner: {
|
|
2074
|
+
color: "colour.primary.text"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
quaternary: {
|
|
2078
|
+
root: {
|
|
2079
|
+
bg: "transparent",
|
|
2080
|
+
borderColor: "colour.neutral.40",
|
|
2081
|
+
color: "colour.primary.text",
|
|
2082
|
+
_hover: {
|
|
2083
|
+
bg: "colour.neutral.20"
|
|
2084
|
+
},
|
|
2085
|
+
_active: {
|
|
2086
|
+
layerStyle: "focusRing.primary.subtle"
|
|
2087
|
+
},
|
|
2088
|
+
'&[data-active="true"]': {
|
|
2089
|
+
bg: "colour.primary.surface",
|
|
2090
|
+
borderColor: "colour.primary.fill",
|
|
2091
|
+
color: "colour.primary.text"
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
spinner: {
|
|
2095
|
+
color: "colour.primary.text"
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
2098
|
+
muted: {
|
|
2099
|
+
root: {
|
|
2100
|
+
bg: "transparent",
|
|
2101
|
+
borderColor: "transparent",
|
|
2102
|
+
color: "colour.neutral.70",
|
|
2103
|
+
_hover: {
|
|
2104
|
+
bg: "colour.neutral.20",
|
|
2105
|
+
borderColor: "colour.neutral.20",
|
|
2106
|
+
color: "colour.primary.text"
|
|
2107
|
+
},
|
|
2108
|
+
_active: {
|
|
2109
|
+
layerStyle: "focusRing.primary.subtle"
|
|
2110
|
+
},
|
|
2111
|
+
'&[data-active="true"]': {
|
|
2112
|
+
bg: "colour.primary.surface",
|
|
2113
|
+
borderColor: "colour.primary.fill",
|
|
2114
|
+
color: "colour.primary.text"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
spinner: {
|
|
2118
|
+
color: "colour.neutral.70"
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
noWrap: {
|
|
2123
|
+
true: {
|
|
2124
|
+
root: {
|
|
2125
|
+
minWidth: "[fit-content]",
|
|
2126
|
+
whiteSpace: "nowrap"
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
status: {
|
|
2131
|
+
success: {
|
|
2132
|
+
root: {
|
|
2133
|
+
color: "colour.system.success.onFill"
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
danger: {
|
|
2137
|
+
root: {
|
|
2138
|
+
color: "colour.system.danger.onFill"
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
info: {
|
|
2142
|
+
root: {
|
|
2143
|
+
color: "colour.system.info.onFill"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
warning: {
|
|
2147
|
+
root: {
|
|
2148
|
+
color: "colour.system.warning.onFill"
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
compoundVariants: [
|
|
2154
|
+
{
|
|
2155
|
+
mode: "primary",
|
|
2156
|
+
status: "danger",
|
|
2157
|
+
css: {
|
|
2158
|
+
root: {
|
|
2159
|
+
bg: "colour.system.danger.fill",
|
|
2160
|
+
borderColor: "colour.system.danger.fill",
|
|
2161
|
+
color: "colour.system.danger.onFill",
|
|
2162
|
+
_hover: {
|
|
2163
|
+
bg: "colour.system.danger.fillHover",
|
|
2164
|
+
borderColor: "colour.system.danger.fillHover"
|
|
2165
|
+
},
|
|
2166
|
+
_active: {
|
|
2167
|
+
layerStyle: "focusRing.danger.md"
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
spinner: {
|
|
2171
|
+
color: "colour.system.danger.onFill"
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
mode: "secondary",
|
|
2177
|
+
status: "danger",
|
|
2178
|
+
css: {
|
|
2179
|
+
root: {
|
|
2180
|
+
bg: "colour.system.danger.surface",
|
|
2181
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surface}, black 5%)]",
|
|
2182
|
+
color: "colour.system.danger.text",
|
|
2183
|
+
_hover: {
|
|
2184
|
+
bg: "colour.system.danger.surfaceHover",
|
|
2185
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.danger.surfaceHover}, black 5%)]"
|
|
2186
|
+
},
|
|
2187
|
+
_active: {
|
|
2188
|
+
layerStyle: "focusRing.danger.surface"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
spinner: {
|
|
2192
|
+
color: "colour.system.danger.text"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
mode: "tertiary",
|
|
2198
|
+
status: "danger",
|
|
2199
|
+
css: {
|
|
2200
|
+
root: {
|
|
2201
|
+
borderColor: "colour.system.danger.fill",
|
|
2202
|
+
color: "colour.system.danger.text",
|
|
2203
|
+
_hover: {
|
|
2204
|
+
bg: "colour.system.danger.surfaceHover"
|
|
2205
|
+
},
|
|
2206
|
+
_active: {
|
|
2207
|
+
layerStyle: "focusRing.danger.surface"
|
|
2208
|
+
}
|
|
2209
|
+
},
|
|
2210
|
+
spinner: {
|
|
2211
|
+
color: "colour.system.danger.text"
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
mode: "quaternary",
|
|
2217
|
+
status: "danger",
|
|
2218
|
+
css: {
|
|
2219
|
+
root: {
|
|
2220
|
+
borderColor: "colour.system.danger.surface",
|
|
2221
|
+
color: "colour.system.danger.text",
|
|
2222
|
+
_hover: {
|
|
2223
|
+
bg: "colour.system.danger.surfaceHover"
|
|
2224
|
+
},
|
|
2225
|
+
_active: {
|
|
2226
|
+
layerStyle: "focusRing.danger.surface"
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
spinner: {
|
|
2230
|
+
color: "colour.system.danger.text"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
mode: "muted",
|
|
2236
|
+
status: "danger",
|
|
2237
|
+
css: {
|
|
2238
|
+
root: {
|
|
2239
|
+
color: "colour.system.danger.text",
|
|
2240
|
+
_hover: {
|
|
2241
|
+
bg: "colour.system.danger.surfaceHover",
|
|
2242
|
+
borderColor: "colour.system.danger.surfaceHover"
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
spinner: {
|
|
2246
|
+
color: "colour.system.danger.text"
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
mode: "primary",
|
|
2252
|
+
status: "success",
|
|
2253
|
+
css: {
|
|
2254
|
+
root: {
|
|
2255
|
+
bg: "colour.system.success.fill",
|
|
2256
|
+
borderColor: "colour.system.success.fill",
|
|
2257
|
+
color: "colour.system.success.onFill",
|
|
2258
|
+
_hover: {
|
|
2259
|
+
bg: "colour.system.success.fillHover"
|
|
2260
|
+
},
|
|
2261
|
+
_active: {
|
|
2262
|
+
layerStyle: "focusRing.success.md"
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
2265
|
+
spinner: {
|
|
2266
|
+
color: "colour.system.success.onFill"
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
mode: "secondary",
|
|
2272
|
+
status: "success",
|
|
2273
|
+
css: {
|
|
2274
|
+
root: {
|
|
2275
|
+
bg: "colour.system.success.surface",
|
|
2276
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.success.surface}, black 5%)]",
|
|
2277
|
+
color: "colour.system.success.text",
|
|
2278
|
+
_hover: {
|
|
2279
|
+
bg: "colour.system.success.surfaceHover",
|
|
2280
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.success.surfaceHover}, black 5%)]"
|
|
2281
|
+
},
|
|
2282
|
+
_active: {
|
|
2283
|
+
layerStyle: "focusRing.success.surface"
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
spinner: {
|
|
2287
|
+
color: "colour.system.success.text"
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
mode: "tertiary",
|
|
2293
|
+
status: "success",
|
|
2294
|
+
css: {
|
|
2295
|
+
root: {
|
|
2296
|
+
borderColor: "colour.system.success.fill",
|
|
2297
|
+
color: "colour.system.success.text",
|
|
2298
|
+
_hover: {
|
|
2299
|
+
bg: "colour.system.success.surfaceHover"
|
|
2300
|
+
},
|
|
2301
|
+
_active: {
|
|
2302
|
+
layerStyle: "focusRing.success.surface"
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
spinner: {
|
|
2306
|
+
color: "colour.system.success.text"
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
mode: "quaternary",
|
|
2312
|
+
status: "success",
|
|
2313
|
+
css: {
|
|
2314
|
+
root: {
|
|
2315
|
+
borderColor: "colour.system.success.surface",
|
|
2316
|
+
color: "colour.system.success.text",
|
|
2317
|
+
_hover: {
|
|
2318
|
+
bg: "colour.system.success.surfaceHover"
|
|
2319
|
+
},
|
|
2320
|
+
_active: {
|
|
2321
|
+
layerStyle: "focusRing.success.surface"
|
|
2322
|
+
}
|
|
2323
|
+
},
|
|
2324
|
+
spinner: {
|
|
2325
|
+
color: "colour.system.success.text"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
mode: "muted",
|
|
2331
|
+
status: "success",
|
|
2332
|
+
css: {
|
|
2333
|
+
root: {
|
|
2334
|
+
color: "colour.system.success.text",
|
|
2335
|
+
_hover: {
|
|
2336
|
+
bg: "colour.system.success.surfaceHover",
|
|
2337
|
+
borderColor: "colour.system.success.surfaceHover"
|
|
2338
|
+
}
|
|
2339
|
+
},
|
|
2340
|
+
spinner: {
|
|
2341
|
+
color: "colour.system.success.text"
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
mode: "secondary",
|
|
2347
|
+
status: "info",
|
|
2348
|
+
css: {
|
|
2349
|
+
root: {
|
|
2350
|
+
bg: "colour.system.info.surface",
|
|
2351
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.info.surface}, black 5%)]",
|
|
2352
|
+
color: "colour.system.info.text",
|
|
2353
|
+
_hover: {
|
|
2354
|
+
bg: "colour.system.info.surfaceHover",
|
|
2355
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.info.surfaceHover}, black 5%)]"
|
|
2356
|
+
},
|
|
2357
|
+
_active: {
|
|
2358
|
+
layerStyle: "focusRing.info.surface"
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2361
|
+
spinner: {
|
|
2362
|
+
color: "colour.system.info.text"
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
mode: "tertiary",
|
|
2368
|
+
status: "info",
|
|
2369
|
+
css: {
|
|
2370
|
+
root: {
|
|
2371
|
+
borderColor: "colour.system.info.fill",
|
|
2372
|
+
color: "colour.system.info.text",
|
|
2373
|
+
_hover: {
|
|
2374
|
+
bg: "colour.system.info.surfaceHover"
|
|
2375
|
+
},
|
|
2376
|
+
_active: {
|
|
2377
|
+
layerStyle: "focusRing.info.surface"
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
spinner: {
|
|
2381
|
+
color: "colour.system.info.text"
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
mode: "secondary",
|
|
2387
|
+
status: "warning",
|
|
2388
|
+
css: {
|
|
2389
|
+
root: {
|
|
2390
|
+
bg: "colour.system.warning.surface",
|
|
2391
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surface}, black 5%)]",
|
|
2392
|
+
color: "colour.system.warning.text",
|
|
2393
|
+
_hover: {
|
|
2394
|
+
bg: "colour.system.warning.surfaceHover",
|
|
2395
|
+
borderColor: "[color-mix(in srgb, {colors.colour.system.warning.surfaceHover}, black 5%)]"
|
|
2396
|
+
},
|
|
2397
|
+
_active: {
|
|
2398
|
+
layerStyle: "focusRing.warning.surface"
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
spinner: {
|
|
2402
|
+
color: "colour.system.warning.text"
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
mode: "tertiary",
|
|
2408
|
+
status: "warning",
|
|
2409
|
+
css: {
|
|
2410
|
+
root: {
|
|
2411
|
+
borderColor: "colour.system.warning.fill",
|
|
2412
|
+
color: "colour.system.warning.text",
|
|
2413
|
+
_hover: {
|
|
2414
|
+
bg: "colour.system.warning.surfaceHover"
|
|
2415
|
+
},
|
|
2416
|
+
_active: {
|
|
2417
|
+
layerStyle: "focusRing.warning.surface"
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
spinner: {
|
|
2421
|
+
color: "colour.system.warning.text"
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
{
|
|
2426
|
+
mode: "primary",
|
|
2427
|
+
loading: true,
|
|
2428
|
+
css: {
|
|
2429
|
+
root: {
|
|
2430
|
+
bg: "colour.neutral.20",
|
|
2431
|
+
borderColor: "colour.neutral.20",
|
|
2432
|
+
color: "colour.neutral.70"
|
|
2433
|
+
},
|
|
2434
|
+
spinner: {
|
|
2435
|
+
color: "colour.neutral.70"
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
mode: ["secondary", "quaternary"],
|
|
2441
|
+
loading: true,
|
|
2442
|
+
css: {
|
|
2443
|
+
root: {
|
|
2444
|
+
bg: "colour.neutral.20",
|
|
2445
|
+
borderColor: "colour.neutral.40",
|
|
2446
|
+
color: "colour.neutral.70",
|
|
2447
|
+
_hover: {
|
|
2448
|
+
boxShadow: "none"
|
|
2449
|
+
}
|
|
2450
|
+
},
|
|
2451
|
+
spinner: {
|
|
2452
|
+
color: "colour.neutral.70"
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
mode: "tertiary",
|
|
2458
|
+
loading: true,
|
|
2459
|
+
css: {
|
|
2460
|
+
root: {
|
|
2461
|
+
bg: "colour.neutral.20",
|
|
2462
|
+
borderColor: "colour.neutral.70",
|
|
2463
|
+
color: "colour.neutral.70"
|
|
2464
|
+
},
|
|
2465
|
+
spinner: {
|
|
2466
|
+
color: "colour.neutral.70"
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
mode: "muted",
|
|
2472
|
+
loading: true,
|
|
2473
|
+
css: {
|
|
2474
|
+
root: {
|
|
2475
|
+
bg: "transparent",
|
|
2476
|
+
borderColor: "transparent",
|
|
2477
|
+
color: "colour.neutral.60"
|
|
2478
|
+
},
|
|
2479
|
+
spinner: {
|
|
2480
|
+
color: "colour.neutral.60"
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
mode: "tertiary",
|
|
2486
|
+
inButtonGroup: true,
|
|
2487
|
+
css: {
|
|
2488
|
+
root: {
|
|
2489
|
+
color: "colour.neutral.80",
|
|
2490
|
+
_hover: {
|
|
2491
|
+
bg: "colour.primary.surfaceHover"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2498
|
+
active: true,
|
|
2499
|
+
css: {
|
|
2500
|
+
root: {
|
|
2501
|
+
bg: "colour.primary.surface",
|
|
2502
|
+
borderColor: "colour.primary.text",
|
|
2503
|
+
color: "colour.primary.text"
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
],
|
|
2508
|
+
staticCss: [
|
|
2509
|
+
{ mode: ["*"] },
|
|
2510
|
+
{ status: ["*"] },
|
|
2511
|
+
{ compact: ["*"] },
|
|
2512
|
+
{ fluid: ["true"] },
|
|
2513
|
+
{ loading: ["*"] },
|
|
2514
|
+
{ iconOnly: ["*"] },
|
|
2515
|
+
{ noWrap: ["*"] },
|
|
2516
|
+
{ inButtonGroup: ["*"] },
|
|
2517
|
+
{ active: ["*"] },
|
|
2518
|
+
{
|
|
2519
|
+
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2520
|
+
status: ["danger"]
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2524
|
+
status: ["success"]
|
|
2525
|
+
},
|
|
2526
|
+
{ mode: ["secondary", "tertiary"], status: ["info"] },
|
|
2527
|
+
{ mode: ["secondary", "tertiary"], status: ["warning"] },
|
|
2528
|
+
{
|
|
2529
|
+
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2530
|
+
loading: ["true"]
|
|
2531
|
+
},
|
|
2532
|
+
{ mode: ["tertiary"], inButtonGroup: ["true"] },
|
|
2533
|
+
{
|
|
2534
|
+
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2535
|
+
active: ["true"]
|
|
2536
|
+
}
|
|
2537
|
+
]
|
|
2538
|
+
});
|
|
2539
|
+
|
|
2540
|
+
// src/utilities/sliderThumb.ts
|
|
2541
|
+
import { defineUtility as defineUtility5 } from "@pandacss/dev";
|
|
2542
|
+
var sliderThumb = defineUtility5({
|
|
2543
|
+
className: "sliderThumb",
|
|
2544
|
+
values: { type: "boolean" },
|
|
2545
|
+
transform: (value) => {
|
|
2546
|
+
if (value !== true) {
|
|
2547
|
+
return {
|
|
2548
|
+
display: "none"
|
|
2549
|
+
};
|
|
2550
|
+
}
|
|
2551
|
+
return {
|
|
2552
|
+
aspectRatio: 1,
|
|
2553
|
+
width: sizes["slider.thumb"].value,
|
|
2554
|
+
height: sizes["slider.thumb"].value,
|
|
2555
|
+
cursor: "pointer",
|
|
2556
|
+
borderColor: colors["colour.neutral.10"].value,
|
|
2557
|
+
borderRadius: `calc(${sizes["slider.thumb"].value} / 2)`,
|
|
2558
|
+
borderStyle: "solid",
|
|
2559
|
+
borderWidth: "1.5px",
|
|
2560
|
+
backgroundColor: colors["colour.primary.fill"].value,
|
|
2561
|
+
position: "relative",
|
|
2562
|
+
zIndex: "200"
|
|
2563
|
+
};
|
|
2564
|
+
}
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2567
|
+
// src/utilities/noGutter.ts
|
|
2568
|
+
import { defineUtility as defineUtility6 } from "@pandacss/dev";
|
|
2569
|
+
var noGutter = defineUtility6({
|
|
2570
|
+
className: "noGutter",
|
|
2571
|
+
values: { type: "boolean" },
|
|
2572
|
+
transform: (value) => {
|
|
2573
|
+
if (!value) return {};
|
|
2574
|
+
return {
|
|
2575
|
+
"& > :last-child": {
|
|
2576
|
+
marginBlockEnd: "0px"
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
});
|
|
2581
|
+
|
|
2582
|
+
// src/utilities/stretch.ts
|
|
2583
|
+
import { defineUtility as defineUtility7 } from "@pandacss/dev";
|
|
2584
|
+
var stretch = defineUtility7({
|
|
2585
|
+
className: "stretch",
|
|
2586
|
+
values: { type: "boolean" },
|
|
2587
|
+
transform: (value) => {
|
|
2588
|
+
if (!value) return {};
|
|
2589
|
+
return {
|
|
2590
|
+
alignSelf: "stretch",
|
|
2591
|
+
flex: 1,
|
|
2592
|
+
height: "100%"
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
});
|
|
2596
|
+
|
|
2597
|
+
// src/utilities/focusable.ts
|
|
2598
|
+
import { cssVars as cssVars14 } from "@iress-oss/ids-tokens";
|
|
2599
|
+
import { defineUtility as defineUtility8 } from "@pandacss/dev";
|
|
2600
|
+
var focusable = defineUtility8({
|
|
2601
|
+
className: "focusable",
|
|
2602
|
+
values: [
|
|
2603
|
+
"true",
|
|
2604
|
+
"within",
|
|
2605
|
+
"has-button",
|
|
2606
|
+
"has-input",
|
|
2607
|
+
"has-switch",
|
|
2608
|
+
"label-after",
|
|
2609
|
+
"expander-activator",
|
|
2610
|
+
"select-activator",
|
|
2611
|
+
"slider",
|
|
2612
|
+
"group",
|
|
2613
|
+
"inset",
|
|
2614
|
+
"within:inset",
|
|
2615
|
+
"colour.primary.onFill"
|
|
2616
|
+
],
|
|
2617
|
+
transform: (value) => {
|
|
2618
|
+
if (value === "has-input") {
|
|
2619
|
+
return {
|
|
2620
|
+
background: cssVars14.colour.neutral[10],
|
|
2621
|
+
borderColor: `var(--iress-border-color--default, var(--iress-border-color, ${cssVars14.colour.neutral[70]}))`,
|
|
2622
|
+
'&:has(input:disabled, textarea:disabled, select:disabled, [contenteditable][aria-disabled="true"])': {
|
|
2623
|
+
background: `var(--iress-background--disabled, ${cssVars14.colour.neutral[20]})`,
|
|
2624
|
+
"--iress-chevron-color": cssVars14.colour.neutral[60],
|
|
2625
|
+
cursor: "not-allowed"
|
|
2626
|
+
},
|
|
2627
|
+
'&:hover:not(:has(input:disabled, textarea:disabled, select:disabled, [contenteditable][aria-disabled="true"]))': {
|
|
2628
|
+
background: `var(--iress-background-hover, ${cssVars14.colour.neutral[20]})`,
|
|
2629
|
+
borderColor: `var(--iress-border-color--hover, ${cssVars14.colour.neutral[70]})`
|
|
2630
|
+
},
|
|
2631
|
+
'input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus': {
|
|
2632
|
+
outline: "none"
|
|
2633
|
+
},
|
|
2634
|
+
'&:has(input:focus:not(:disabled), textarea:focus:not(:disabled), select:focus:not(:disabled), [contenteditable="true"]:focus:not([aria-disabled="true"]))': {
|
|
2635
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[90]})`,
|
|
2636
|
+
boxShadow: `var(--iress-shadow-focus, 0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[90]}))`,
|
|
2637
|
+
"&:hover": {
|
|
2638
|
+
background: cssVars14.colour.neutral[10]
|
|
2639
|
+
},
|
|
2640
|
+
"& .ids-input__addon": {
|
|
2641
|
+
color: cssVars14.colour.neutral[90]
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
if (value === "expander-activator") {
|
|
2647
|
+
return {
|
|
2648
|
+
"&:focus-visible": {
|
|
2649
|
+
boxShadow: `0 0 0 2px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2650
|
+
},
|
|
2651
|
+
'&[aria-expanded="true"]:focus-visible': {
|
|
2652
|
+
borderRadius: cssVars14.radius.system.layout,
|
|
2653
|
+
bg: cssVars14.colour.neutral[10]
|
|
2654
|
+
}
|
|
2655
|
+
};
|
|
2656
|
+
}
|
|
2657
|
+
if (value === "has-switch") {
|
|
2658
|
+
return {
|
|
2659
|
+
"&:focus-visible": {
|
|
2660
|
+
outline: "none"
|
|
2661
|
+
},
|
|
2662
|
+
'&:has([role="switch"]:focus-visible)': {
|
|
2663
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
if (value === "has-button") {
|
|
2668
|
+
return {
|
|
2669
|
+
"&:focus-visible": {
|
|
2670
|
+
outline: "none"
|
|
2671
|
+
},
|
|
2672
|
+
"&:has(:focus-visible)": {
|
|
2673
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`,
|
|
2674
|
+
"& :focus-visible": {
|
|
2675
|
+
outline: "none",
|
|
2676
|
+
boxShadow: "none"
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
};
|
|
2680
|
+
}
|
|
2681
|
+
if (value === "group") {
|
|
2682
|
+
return {
|
|
2683
|
+
".group:has(:focus-visible) &": {
|
|
2684
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2685
|
+
}
|
|
2686
|
+
};
|
|
2687
|
+
}
|
|
2688
|
+
if (value === "label-after") {
|
|
2689
|
+
return {
|
|
2690
|
+
"&:focus-visible": {
|
|
2691
|
+
outline: "none"
|
|
2692
|
+
},
|
|
2693
|
+
"&:focus-visible + label": {
|
|
2694
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2695
|
+
}
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2698
|
+
if (value === "within") {
|
|
2699
|
+
return {
|
|
2700
|
+
"&:focus-visible, & :focus": {
|
|
2701
|
+
outline: "none"
|
|
2702
|
+
},
|
|
2703
|
+
"&:focus-within": {
|
|
2704
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2705
|
+
}
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
if (value === "within:inset") {
|
|
2709
|
+
return {
|
|
2710
|
+
"&:focus-visible, & :focus": {
|
|
2711
|
+
outline: "none"
|
|
2712
|
+
},
|
|
2713
|
+
"&:focus-within": {
|
|
2714
|
+
boxShadow: `inset 0 0 0 2px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
}
|
|
2718
|
+
if (value === "select-activator") {
|
|
2719
|
+
return {
|
|
2720
|
+
"&:hover": {
|
|
2721
|
+
backgroundColor: cssVars14.colour.neutral[20]
|
|
2722
|
+
},
|
|
2723
|
+
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
2724
|
+
backgroundColor: cssVars14.colour.neutral[10],
|
|
2725
|
+
outline: "none",
|
|
2726
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[90]})`,
|
|
2727
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars14.colour.neutral[90]})`
|
|
2728
|
+
},
|
|
2729
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
2730
|
+
backgroundColor: cssVars14.colour.neutral[30],
|
|
2731
|
+
color: cssVars14.colour.neutral[60],
|
|
2732
|
+
"--iress-chevron-color": cssVars14.colour.neutral[60],
|
|
2733
|
+
cursor: "not-allowed",
|
|
2734
|
+
'&:focus-within, &:active, &[aria-expanded="true"]': {
|
|
2735
|
+
borderColor: "unset",
|
|
2736
|
+
boxShadow: "none"
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2740
|
+
}
|
|
2741
|
+
if (value === "inset") {
|
|
2742
|
+
return {
|
|
2743
|
+
"&:focus-visible": {
|
|
2744
|
+
outline: "none",
|
|
2745
|
+
boxShadow: `inset 0 0 0 2px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2746
|
+
}
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
if (value === "slider") {
|
|
2750
|
+
return {
|
|
2751
|
+
"&:focus": {
|
|
2752
|
+
outline: "none"
|
|
2753
|
+
},
|
|
2754
|
+
"&:focus-visible::-webkit-slider-thumb": {
|
|
2755
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2756
|
+
},
|
|
2757
|
+
"&:focus-visible::-moz-range-thumb": {
|
|
2758
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2759
|
+
}
|
|
2760
|
+
};
|
|
2761
|
+
}
|
|
2762
|
+
if (value === "colour.primary.onFill") {
|
|
2763
|
+
return {
|
|
2764
|
+
"&:focus-visible": {
|
|
2765
|
+
outline: "none",
|
|
2766
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.primary.fill}, 0 0 0 3.5px ${cssVars14.colour.primary.onFill}`
|
|
2767
|
+
}
|
|
2768
|
+
};
|
|
2769
|
+
}
|
|
2770
|
+
return {
|
|
2771
|
+
"&:focus-visible": {
|
|
2772
|
+
outline: "none",
|
|
2773
|
+
boxShadow: `0 0 0 1.5px ${cssVars14.colour.neutral[10]}, 0 0 0 3.5px ${cssVars14.colour.globalInteractions.focusRing}`
|
|
2774
|
+
}
|
|
2775
|
+
};
|
|
2776
|
+
}
|
|
2777
|
+
});
|
|
2778
|
+
|
|
2779
|
+
// src/utilities/scrollable.ts
|
|
2780
|
+
import { defineUtility as defineUtility9 } from "@pandacss/dev";
|
|
2781
|
+
var scrollable = defineUtility9({
|
|
2782
|
+
className: "scrollable",
|
|
2783
|
+
values: ["x", "y", "true"],
|
|
2784
|
+
transform: (direction = true) => {
|
|
2785
|
+
if (direction === false) {
|
|
2786
|
+
return {};
|
|
2787
|
+
}
|
|
2788
|
+
let overflowProp = "overflow";
|
|
2789
|
+
if (direction === "x") {
|
|
2790
|
+
overflowProp = "overflowX";
|
|
2791
|
+
} else if (direction === "y") {
|
|
2792
|
+
overflowProp = "overflowY";
|
|
2793
|
+
}
|
|
2794
|
+
return {
|
|
2795
|
+
[overflowProp]: "auto",
|
|
2796
|
+
"&::-webkit-scrollbar": {
|
|
2797
|
+
width: sizes["typography.base"].value,
|
|
2798
|
+
height: sizes["typography.base"].value
|
|
2799
|
+
},
|
|
2800
|
+
"&::-webkit-scrollbar-track": {
|
|
2801
|
+
background: colors.page.value,
|
|
2802
|
+
borderRadius: radii["radius.system.layout"].value
|
|
2803
|
+
},
|
|
2804
|
+
"&::-webkit-scrollbar-thumb": {
|
|
2805
|
+
backgroundColor: colors["colour.neutral.50"].value,
|
|
2806
|
+
borderRadius: radii["radius.system.form"].value
|
|
2807
|
+
},
|
|
2808
|
+
"&::-webkit-scrollbar-thumb:hover": {
|
|
2809
|
+
backgroundColor: colors["colour.primary.fill"].value
|
|
2810
|
+
},
|
|
2811
|
+
"&::-webkit-scrollbar-corner": {
|
|
2812
|
+
background: colors.transparent.value
|
|
2813
|
+
},
|
|
2814
|
+
scrollbarWidth: "thin",
|
|
2815
|
+
scrollbarColor: `${colors["colour.neutral.50"].value} ${colors.page.value}`
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2818
|
+
});
|
|
2819
|
+
|
|
2820
|
+
// src/utilities/materialSymbols.ts
|
|
2821
|
+
import { defineUtility as defineUtility10 } from "@pandacss/dev";
|
|
2822
|
+
var baseStyles = {
|
|
2823
|
+
fontFamily: MATERIAL_SYMBOLS.family,
|
|
2824
|
+
fontWeight: String(MATERIAL_SYMBOLS.weight),
|
|
2825
|
+
verticalAlign: "middle",
|
|
2826
|
+
fontFeatureSettings: "'liga'",
|
|
2827
|
+
display: "inline-block"
|
|
2828
|
+
};
|
|
2829
|
+
var materialSymbols = defineUtility10({
|
|
2830
|
+
className: "ids_ms",
|
|
2831
|
+
values: ["true", "filled"],
|
|
2832
|
+
transform: (value) => {
|
|
2833
|
+
if (value === "filled") {
|
|
2834
|
+
return {
|
|
2835
|
+
...baseStyles,
|
|
2836
|
+
fontVariationSettings: `'FILL' 1, 'wght' ${MATERIAL_SYMBOLS.weight}, 'GRAD' ${MATERIAL_SYMBOLS.grade}, 'opsz' ${MATERIAL_SYMBOLS.opticalSize}`
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
return {
|
|
2840
|
+
...baseStyles,
|
|
2841
|
+
fontVariationSettings: `'FILL' 0, 'wght' ${MATERIAL_SYMBOLS.weight}, 'GRAD' ${MATERIAL_SYMBOLS.grade}, 'opsz' ${MATERIAL_SYMBOLS.opticalSize}`
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
});
|
|
2845
|
+
|
|
2846
|
+
// src/utilities/horizontalAlign.ts
|
|
2847
|
+
import { defineUtility as defineUtility11 } from "@pandacss/dev";
|
|
2848
|
+
var ALIGN_MAP = {
|
|
2849
|
+
left: "flex-start",
|
|
2850
|
+
center: "center",
|
|
2851
|
+
right: "flex-end",
|
|
2852
|
+
around: "space-around",
|
|
2853
|
+
between: "space-between",
|
|
2854
|
+
evenly: "space-evenly",
|
|
2855
|
+
stretch: "stretch"
|
|
2856
|
+
};
|
|
2857
|
+
var flexHorizontalAlign = defineUtility11({
|
|
2858
|
+
className: "fha",
|
|
2859
|
+
values: Object.keys(ALIGN_MAP),
|
|
2860
|
+
transform: (value) => {
|
|
2861
|
+
const cssValue = ALIGN_MAP[value];
|
|
2862
|
+
return {
|
|
2863
|
+
'&:where([data-flex-dir="row"], :not([data-flex-dir]))': {
|
|
2864
|
+
...cssValue === "stretch" ? {} : { justifyContent: cssValue }
|
|
2865
|
+
},
|
|
2866
|
+
'&:where([data-flex-dir="column"])': {
|
|
2867
|
+
alignItems: cssValue
|
|
2868
|
+
}
|
|
2869
|
+
};
|
|
2870
|
+
}
|
|
2871
|
+
});
|
|
2872
|
+
|
|
2873
|
+
// src/utilities/verticalAlign.ts
|
|
2874
|
+
import { defineUtility as defineUtility12 } from "@pandacss/dev";
|
|
2875
|
+
var ALIGN_MAP2 = {
|
|
2876
|
+
top: "flex-start",
|
|
2877
|
+
middle: "center",
|
|
2878
|
+
bottom: "flex-end",
|
|
2879
|
+
between: "space-between",
|
|
2880
|
+
around: "space-around",
|
|
2881
|
+
evenly: "space-evenly",
|
|
2882
|
+
stretch: "stretch"
|
|
2883
|
+
};
|
|
2884
|
+
var flexVerticalAlign = defineUtility12({
|
|
2885
|
+
className: "fva",
|
|
2886
|
+
values: Object.keys(ALIGN_MAP2),
|
|
2887
|
+
transform: (value) => {
|
|
2888
|
+
const cssValue = ALIGN_MAP2[value];
|
|
2889
|
+
return {
|
|
2890
|
+
'&:where([data-flex-dir="row"], :not([data-flex-dir]))': {
|
|
2891
|
+
alignItems: cssValue
|
|
2892
|
+
},
|
|
2893
|
+
'&:where([data-flex-dir="column"])': {
|
|
2894
|
+
...cssValue === "stretch" ? {} : { justifyContent: cssValue }
|
|
2895
|
+
}
|
|
2896
|
+
};
|
|
2897
|
+
}
|
|
2898
|
+
});
|
|
2899
|
+
|
|
2900
|
+
// src/index.ts
|
|
2901
|
+
var idsThemePreset = definePreset({
|
|
2902
|
+
name: "theme-preset",
|
|
2903
|
+
globalCss,
|
|
2904
|
+
staticCss,
|
|
2905
|
+
conditions: {
|
|
2906
|
+
extend: {
|
|
2907
|
+
nestedFormElements: [
|
|
2908
|
+
"& .iress-form-element:not(& .iress-form-element .iress-form-element)",
|
|
2909
|
+
"& .iress-form-element__inner:not(& .iress-form-element .iress-form-element)"
|
|
2910
|
+
].join(", "),
|
|
2911
|
+
nestedFormLabels: "& .iress-form-label:not(.sr_true)",
|
|
2912
|
+
directNestedFormElements: "& > .iress-form-element",
|
|
2913
|
+
directNestedSizedElements: [
|
|
2914
|
+
'& > :has([class*="w_input"])',
|
|
2915
|
+
'& > :has([class*="sizes.chevron.select"])',
|
|
2916
|
+
"& > .iress-form-element"
|
|
2917
|
+
].join(", "),
|
|
2918
|
+
nestedFieldsExceptFirst: [
|
|
2919
|
+
"& > .iress-form-element:not(:first-child)",
|
|
2920
|
+
"& > .iress-form-element:not(:first-child) .iress-form-element__inner",
|
|
2921
|
+
"& .ids-field:not(:first-child) .iress-form-element",
|
|
2922
|
+
"& .ids-field:not(:first-child) .iress-form-element__inner"
|
|
2923
|
+
].join(", "),
|
|
2924
|
+
nestedFieldsExceptLast: [
|
|
2925
|
+
"& > .iress-form-element:not(:last-child)",
|
|
2926
|
+
"& > .iress-form-element:not(:last-child) .iress-form-element__inner",
|
|
2927
|
+
"& .ids-field:not(:last-child) .iress-form-element",
|
|
2928
|
+
"& .ids-field:not(:last-child) .iress-form-element__inner"
|
|
2929
|
+
].join(", "),
|
|
2930
|
+
progressBar: ["&::-webkit-progress-bar", "&::-webkit-meter-bar"].join(
|
|
2931
|
+
", "
|
|
2932
|
+
),
|
|
2933
|
+
progressValue: [
|
|
2934
|
+
"&::-webkit-progress-value",
|
|
2935
|
+
"&::-webkit-meter-optimum-value",
|
|
2936
|
+
"&::-webkit-meter-suboptimum-value"
|
|
2937
|
+
].join(", "),
|
|
2938
|
+
mozProgressValue: ["&::-moz-progress-bar", "&::-moz-meter-bar"].join(
|
|
2939
|
+
", "
|
|
2940
|
+
),
|
|
2941
|
+
webkitSliderThumb: "&::-webkit-slider-thumb",
|
|
2942
|
+
mozRangeThumb: "&::-moz-range-thumb",
|
|
2943
|
+
webkitSliderRunnableTrack: "&::-webkit-slider-runnable-track",
|
|
2944
|
+
mozRangeTrack: "&::-moz-range-track",
|
|
2945
|
+
directNestedHeadings: "& > h1, & > h2, & > h3, & > h4, & > h5, & > h6",
|
|
2946
|
+
siblingHeadings: "& + h1:not(.ids-text), & + h2:not(.ids-text), & + h3:not(.ids-text), & + h4:not(.ids-text), & + h5:not(.ids-text), & + h6:not(.ids-text)",
|
|
2947
|
+
nestedHeadings: "& h1:not(.ids-text), & h2:not(.ids-text), & h3:not(.ids-text), & h4:not(.ids-text), & h5:not(.ids-text), & h6:not(.ids-text)"
|
|
2948
|
+
}
|
|
2949
|
+
},
|
|
2950
|
+
theme: {
|
|
2951
|
+
tokens: {
|
|
2952
|
+
borders,
|
|
2953
|
+
colors,
|
|
2954
|
+
radii,
|
|
2955
|
+
sizes,
|
|
2956
|
+
spacing,
|
|
2957
|
+
zIndex
|
|
2958
|
+
},
|
|
2959
|
+
extend: {
|
|
2960
|
+
breakpoints,
|
|
2961
|
+
keyframes,
|
|
2962
|
+
layerStyles,
|
|
2963
|
+
textStyles,
|
|
2964
|
+
animationStyles,
|
|
2965
|
+
recipes: {
|
|
2966
|
+
button: buttonRecipe,
|
|
2967
|
+
table: tableRecipe,
|
|
2968
|
+
text: textRecipe
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
},
|
|
2972
|
+
utilities: {
|
|
2973
|
+
extend: {
|
|
2974
|
+
focusable,
|
|
2975
|
+
gutter,
|
|
2976
|
+
flexHorizontalAlign,
|
|
2977
|
+
flexVerticalAlign,
|
|
2978
|
+
selectChevron,
|
|
2979
|
+
materialSymbols,
|
|
2980
|
+
offset,
|
|
2981
|
+
span,
|
|
2982
|
+
sliderThumb,
|
|
2983
|
+
noGutter,
|
|
2984
|
+
scrollable,
|
|
2985
|
+
stretch
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
var src_default = idsThemePreset;
|
|
2990
|
+
|
|
2991
|
+
export {
|
|
2992
|
+
idsThemePreset,
|
|
2993
|
+
src_default
|
|
2994
|
+
};
|