@iress-oss/ids-theme-preset 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WDJWG3KI.js → chunk-BWMHFZSS.js} +8 -79
- package/dist/config.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/src/config-recipes/button.ts +7 -79
- package/src/utilities/focusable.test.ts +28 -0
- package/src/utilities/focusable.ts +1 -0
|
@@ -2026,16 +2026,13 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
},
|
|
2029
|
-
|
|
2029
|
+
disabled: {
|
|
2030
2030
|
true: {
|
|
2031
2031
|
root: {
|
|
2032
2032
|
cursor: "not-allowed",
|
|
2033
2033
|
bg: "colour.neutral.30",
|
|
2034
2034
|
color: "colour.neutral.60",
|
|
2035
2035
|
borderColor: "colour.neutral.30"
|
|
2036
|
-
},
|
|
2037
|
-
spinner: {
|
|
2038
|
-
color: "colour.neutral.60"
|
|
2039
2036
|
}
|
|
2040
2037
|
}
|
|
2041
2038
|
},
|
|
@@ -2057,9 +2054,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2057
2054
|
borderColor: "colour.primary.fill",
|
|
2058
2055
|
color: "colour.primary.text"
|
|
2059
2056
|
}
|
|
2060
|
-
},
|
|
2061
|
-
spinner: {
|
|
2062
|
-
color: "colour.primary.onFill"
|
|
2063
2057
|
}
|
|
2064
2058
|
},
|
|
2065
2059
|
secondary: {
|
|
@@ -2079,9 +2073,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2079
2073
|
borderColor: "colour.primary.fill",
|
|
2080
2074
|
color: "colour.primary.text"
|
|
2081
2075
|
}
|
|
2082
|
-
},
|
|
2083
|
-
spinner: {
|
|
2084
|
-
color: "colour.primary.text"
|
|
2085
2076
|
}
|
|
2086
2077
|
},
|
|
2087
2078
|
tertiary: {
|
|
@@ -2100,9 +2091,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2100
2091
|
borderColor: "colour.primary.fill",
|
|
2101
2092
|
color: "colour.primary.text"
|
|
2102
2093
|
}
|
|
2103
|
-
},
|
|
2104
|
-
spinner: {
|
|
2105
|
-
color: "colour.primary.text"
|
|
2106
2094
|
}
|
|
2107
2095
|
},
|
|
2108
2096
|
quaternary: {
|
|
@@ -2121,9 +2109,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2121
2109
|
borderColor: "colour.primary.fill",
|
|
2122
2110
|
color: "colour.primary.text"
|
|
2123
2111
|
}
|
|
2124
|
-
},
|
|
2125
|
-
spinner: {
|
|
2126
|
-
color: "colour.primary.text"
|
|
2127
2112
|
}
|
|
2128
2113
|
},
|
|
2129
2114
|
muted: {
|
|
@@ -2144,9 +2129,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2144
2129
|
borderColor: "colour.primary.fill",
|
|
2145
2130
|
color: "colour.primary.text"
|
|
2146
2131
|
}
|
|
2147
|
-
},
|
|
2148
|
-
spinner: {
|
|
2149
|
-
color: "colour.neutral.70"
|
|
2150
2132
|
}
|
|
2151
2133
|
}
|
|
2152
2134
|
},
|
|
@@ -2197,9 +2179,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2197
2179
|
_active: {
|
|
2198
2180
|
layerStyle: "focusRing.danger.md"
|
|
2199
2181
|
}
|
|
2200
|
-
},
|
|
2201
|
-
spinner: {
|
|
2202
|
-
color: "colour.system.danger.onFill"
|
|
2203
2182
|
}
|
|
2204
2183
|
}
|
|
2205
2184
|
},
|
|
@@ -2218,9 +2197,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2218
2197
|
_active: {
|
|
2219
2198
|
layerStyle: "focusRing.danger.surface"
|
|
2220
2199
|
}
|
|
2221
|
-
},
|
|
2222
|
-
spinner: {
|
|
2223
|
-
color: "colour.system.danger.text"
|
|
2224
2200
|
}
|
|
2225
2201
|
}
|
|
2226
2202
|
},
|
|
@@ -2237,9 +2213,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2237
2213
|
_active: {
|
|
2238
2214
|
layerStyle: "focusRing.danger.surface"
|
|
2239
2215
|
}
|
|
2240
|
-
},
|
|
2241
|
-
spinner: {
|
|
2242
|
-
color: "colour.system.danger.text"
|
|
2243
2216
|
}
|
|
2244
2217
|
}
|
|
2245
2218
|
},
|
|
@@ -2256,9 +2229,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2256
2229
|
_active: {
|
|
2257
2230
|
layerStyle: "focusRing.danger.surface"
|
|
2258
2231
|
}
|
|
2259
|
-
},
|
|
2260
|
-
spinner: {
|
|
2261
|
-
color: "colour.system.danger.text"
|
|
2262
2232
|
}
|
|
2263
2233
|
}
|
|
2264
2234
|
},
|
|
@@ -2272,9 +2242,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2272
2242
|
bg: "colour.system.danger.surfaceHover",
|
|
2273
2243
|
borderColor: "colour.system.danger.surfaceHover"
|
|
2274
2244
|
}
|
|
2275
|
-
},
|
|
2276
|
-
spinner: {
|
|
2277
|
-
color: "colour.system.danger.text"
|
|
2278
2245
|
}
|
|
2279
2246
|
}
|
|
2280
2247
|
},
|
|
@@ -2292,9 +2259,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2292
2259
|
_active: {
|
|
2293
2260
|
layerStyle: "focusRing.success.md"
|
|
2294
2261
|
}
|
|
2295
|
-
},
|
|
2296
|
-
spinner: {
|
|
2297
|
-
color: "colour.system.success.onFill"
|
|
2298
2262
|
}
|
|
2299
2263
|
}
|
|
2300
2264
|
},
|
|
@@ -2313,9 +2277,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2313
2277
|
_active: {
|
|
2314
2278
|
layerStyle: "focusRing.success.surface"
|
|
2315
2279
|
}
|
|
2316
|
-
},
|
|
2317
|
-
spinner: {
|
|
2318
|
-
color: "colour.system.success.text"
|
|
2319
2280
|
}
|
|
2320
2281
|
}
|
|
2321
2282
|
},
|
|
@@ -2332,9 +2293,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2332
2293
|
_active: {
|
|
2333
2294
|
layerStyle: "focusRing.success.surface"
|
|
2334
2295
|
}
|
|
2335
|
-
},
|
|
2336
|
-
spinner: {
|
|
2337
|
-
color: "colour.system.success.text"
|
|
2338
2296
|
}
|
|
2339
2297
|
}
|
|
2340
2298
|
},
|
|
@@ -2351,9 +2309,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2351
2309
|
_active: {
|
|
2352
2310
|
layerStyle: "focusRing.success.surface"
|
|
2353
2311
|
}
|
|
2354
|
-
},
|
|
2355
|
-
spinner: {
|
|
2356
|
-
color: "colour.system.success.text"
|
|
2357
2312
|
}
|
|
2358
2313
|
}
|
|
2359
2314
|
},
|
|
@@ -2367,9 +2322,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2367
2322
|
bg: "colour.system.success.surfaceHover",
|
|
2368
2323
|
borderColor: "colour.system.success.surfaceHover"
|
|
2369
2324
|
}
|
|
2370
|
-
},
|
|
2371
|
-
spinner: {
|
|
2372
|
-
color: "colour.system.success.text"
|
|
2373
2325
|
}
|
|
2374
2326
|
}
|
|
2375
2327
|
},
|
|
@@ -2388,9 +2340,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2388
2340
|
_active: {
|
|
2389
2341
|
layerStyle: "focusRing.info.surface"
|
|
2390
2342
|
}
|
|
2391
|
-
},
|
|
2392
|
-
spinner: {
|
|
2393
|
-
color: "colour.system.info.text"
|
|
2394
2343
|
}
|
|
2395
2344
|
}
|
|
2396
2345
|
},
|
|
@@ -2407,9 +2356,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2407
2356
|
_active: {
|
|
2408
2357
|
layerStyle: "focusRing.info.surface"
|
|
2409
2358
|
}
|
|
2410
|
-
},
|
|
2411
|
-
spinner: {
|
|
2412
|
-
color: "colour.system.info.text"
|
|
2413
2359
|
}
|
|
2414
2360
|
}
|
|
2415
2361
|
},
|
|
@@ -2428,9 +2374,6 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2428
2374
|
_active: {
|
|
2429
2375
|
layerStyle: "focusRing.warning.surface"
|
|
2430
2376
|
}
|
|
2431
|
-
},
|
|
2432
|
-
spinner: {
|
|
2433
|
-
color: "colour.system.warning.text"
|
|
2434
2377
|
}
|
|
2435
2378
|
}
|
|
2436
2379
|
},
|
|
@@ -2447,29 +2390,23 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2447
2390
|
_active: {
|
|
2448
2391
|
layerStyle: "focusRing.warning.surface"
|
|
2449
2392
|
}
|
|
2450
|
-
},
|
|
2451
|
-
spinner: {
|
|
2452
|
-
color: "colour.system.warning.text"
|
|
2453
2393
|
}
|
|
2454
2394
|
}
|
|
2455
2395
|
},
|
|
2456
2396
|
{
|
|
2457
2397
|
mode: "primary",
|
|
2458
|
-
|
|
2398
|
+
disabled: true,
|
|
2459
2399
|
css: {
|
|
2460
2400
|
root: {
|
|
2461
2401
|
bg: "colour.neutral.20",
|
|
2462
2402
|
borderColor: "colour.neutral.20",
|
|
2463
2403
|
color: "colour.neutral.70"
|
|
2464
|
-
},
|
|
2465
|
-
spinner: {
|
|
2466
|
-
color: "colour.neutral.70"
|
|
2467
2404
|
}
|
|
2468
2405
|
}
|
|
2469
2406
|
},
|
|
2470
2407
|
{
|
|
2471
2408
|
mode: ["secondary", "quaternary"],
|
|
2472
|
-
|
|
2409
|
+
disabled: true,
|
|
2473
2410
|
css: {
|
|
2474
2411
|
root: {
|
|
2475
2412
|
bg: "colour.neutral.20",
|
|
@@ -2478,37 +2415,28 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2478
2415
|
_hover: {
|
|
2479
2416
|
boxShadow: "none"
|
|
2480
2417
|
}
|
|
2481
|
-
},
|
|
2482
|
-
spinner: {
|
|
2483
|
-
color: "colour.neutral.70"
|
|
2484
2418
|
}
|
|
2485
2419
|
}
|
|
2486
2420
|
},
|
|
2487
2421
|
{
|
|
2488
2422
|
mode: "tertiary",
|
|
2489
|
-
|
|
2423
|
+
disabled: true,
|
|
2490
2424
|
css: {
|
|
2491
2425
|
root: {
|
|
2492
2426
|
bg: "colour.neutral.20",
|
|
2493
2427
|
borderColor: "colour.neutral.70",
|
|
2494
2428
|
color: "colour.neutral.70"
|
|
2495
|
-
},
|
|
2496
|
-
spinner: {
|
|
2497
|
-
color: "colour.neutral.70"
|
|
2498
2429
|
}
|
|
2499
2430
|
}
|
|
2500
2431
|
},
|
|
2501
2432
|
{
|
|
2502
2433
|
mode: "muted",
|
|
2503
|
-
|
|
2434
|
+
disabled: true,
|
|
2504
2435
|
css: {
|
|
2505
2436
|
root: {
|
|
2506
2437
|
bg: "transparent",
|
|
2507
2438
|
borderColor: "transparent",
|
|
2508
2439
|
color: "colour.neutral.60"
|
|
2509
|
-
},
|
|
2510
|
-
spinner: {
|
|
2511
|
-
color: "colour.neutral.60"
|
|
2512
2440
|
}
|
|
2513
2441
|
}
|
|
2514
2442
|
},
|
|
@@ -2541,7 +2469,7 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2541
2469
|
{ status: ["*"] },
|
|
2542
2470
|
{ compact: ["*"] },
|
|
2543
2471
|
{ fluid: ["true"] },
|
|
2544
|
-
{
|
|
2472
|
+
{ disabled: ["*"] },
|
|
2545
2473
|
{ iconOnly: ["*"] },
|
|
2546
2474
|
{ noWrap: ["*"] },
|
|
2547
2475
|
{ inButtonGroup: ["*"] },
|
|
@@ -2558,7 +2486,7 @@ var buttonRecipe = defineSlotRecipe2({
|
|
|
2558
2486
|
{ mode: ["secondary", "tertiary"], status: ["warning"] },
|
|
2559
2487
|
{
|
|
2560
2488
|
mode: ["primary", "secondary", "tertiary", "quaternary", "muted"],
|
|
2561
|
-
|
|
2489
|
+
disabled: ["true"]
|
|
2562
2490
|
},
|
|
2563
2491
|
{ mode: ["tertiary"], inButtonGroup: ["true"] },
|
|
2564
2492
|
{
|
|
@@ -2748,6 +2676,7 @@ var focusable = defineUtility8({
|
|
|
2748
2676
|
}
|
|
2749
2677
|
if (value === "select-activator") {
|
|
2750
2678
|
return {
|
|
2679
|
+
borderColor: `var(--iress-border-color, ${cssVars14.colour.neutral[70]})`,
|
|
2751
2680
|
"&:hover": {
|
|
2752
2681
|
backgroundColor: cssVars14.colour.neutral[20]
|
|
2753
2682
|
},
|
package/dist/config.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _pandacss_dev from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
declare const idsThemePreset:
|
|
3
|
+
declare const idsThemePreset: _pandacss_dev.Preset;
|
|
4
4
|
|
|
5
5
|
export { idsThemePreset as default, idsThemePreset };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iress-oss/ids-theme-preset",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Panda CSS preset for the Iress Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@pandacss/dev": "1.9.1",
|
|
61
|
-
"@pandacss/types": "1.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
63
|
-
"@typescript-eslint/parser": "^8.
|
|
64
|
-
"eslint": "^10.
|
|
61
|
+
"@pandacss/types": "1.11.4",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
63
|
+
"@typescript-eslint/parser": "^8.62.1",
|
|
64
|
+
"eslint": "^10.6.0",
|
|
65
65
|
"eslint-plugin-file-progress": "^4.0.0",
|
|
66
66
|
"rimraf": "^6.1.3",
|
|
67
67
|
"tsup": "^8.4.0",
|
|
68
68
|
"typescript": "6.0.3",
|
|
69
|
-
"vitest": "4.1.
|
|
69
|
+
"vitest": "4.1.12"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|
|
@@ -145,7 +145,7 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
147
|
},
|
|
148
|
-
|
|
148
|
+
disabled: {
|
|
149
149
|
true: {
|
|
150
150
|
root: {
|
|
151
151
|
cursor: 'not-allowed',
|
|
@@ -153,9 +153,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
153
153
|
color: 'colour.neutral.60',
|
|
154
154
|
borderColor: 'colour.neutral.30',
|
|
155
155
|
},
|
|
156
|
-
spinner: {
|
|
157
|
-
color: 'colour.neutral.60',
|
|
158
|
-
},
|
|
159
156
|
},
|
|
160
157
|
},
|
|
161
158
|
mode: {
|
|
@@ -180,9 +177,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
180
177
|
color: 'colour.primary.text',
|
|
181
178
|
},
|
|
182
179
|
},
|
|
183
|
-
spinner: {
|
|
184
|
-
color: 'colour.primary.onFill',
|
|
185
|
-
},
|
|
186
180
|
},
|
|
187
181
|
secondary: {
|
|
188
182
|
root: {
|
|
@@ -205,9 +199,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
205
199
|
color: 'colour.primary.text',
|
|
206
200
|
},
|
|
207
201
|
},
|
|
208
|
-
spinner: {
|
|
209
|
-
color: 'colour.primary.text',
|
|
210
|
-
},
|
|
211
202
|
},
|
|
212
203
|
tertiary: {
|
|
213
204
|
root: {
|
|
@@ -229,9 +220,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
229
220
|
color: 'colour.primary.text',
|
|
230
221
|
},
|
|
231
222
|
},
|
|
232
|
-
spinner: {
|
|
233
|
-
color: 'colour.primary.text',
|
|
234
|
-
},
|
|
235
223
|
},
|
|
236
224
|
quaternary: {
|
|
237
225
|
root: {
|
|
@@ -253,9 +241,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
253
241
|
color: 'colour.primary.text',
|
|
254
242
|
},
|
|
255
243
|
},
|
|
256
|
-
spinner: {
|
|
257
|
-
color: 'colour.primary.text',
|
|
258
|
-
},
|
|
259
244
|
},
|
|
260
245
|
muted: {
|
|
261
246
|
root: {
|
|
@@ -279,9 +264,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
279
264
|
color: 'colour.primary.text',
|
|
280
265
|
},
|
|
281
266
|
},
|
|
282
|
-
spinner: {
|
|
283
|
-
color: 'colour.neutral.70',
|
|
284
|
-
},
|
|
285
267
|
},
|
|
286
268
|
},
|
|
287
269
|
noWrap: {
|
|
@@ -334,9 +316,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
334
316
|
layerStyle: 'focusRing.danger.md',
|
|
335
317
|
},
|
|
336
318
|
},
|
|
337
|
-
spinner: {
|
|
338
|
-
color: 'colour.system.danger.onFill',
|
|
339
|
-
},
|
|
340
319
|
},
|
|
341
320
|
},
|
|
342
321
|
{
|
|
@@ -359,9 +338,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
359
338
|
layerStyle: 'focusRing.danger.surface',
|
|
360
339
|
},
|
|
361
340
|
},
|
|
362
|
-
spinner: {
|
|
363
|
-
color: 'colour.system.danger.text',
|
|
364
|
-
},
|
|
365
341
|
},
|
|
366
342
|
},
|
|
367
343
|
{
|
|
@@ -380,9 +356,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
380
356
|
layerStyle: 'focusRing.danger.surface',
|
|
381
357
|
},
|
|
382
358
|
},
|
|
383
|
-
spinner: {
|
|
384
|
-
color: 'colour.system.danger.text',
|
|
385
|
-
},
|
|
386
359
|
},
|
|
387
360
|
},
|
|
388
361
|
{
|
|
@@ -401,9 +374,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
401
374
|
layerStyle: 'focusRing.danger.surface',
|
|
402
375
|
},
|
|
403
376
|
},
|
|
404
|
-
spinner: {
|
|
405
|
-
color: 'colour.system.danger.text',
|
|
406
|
-
},
|
|
407
377
|
},
|
|
408
378
|
},
|
|
409
379
|
{
|
|
@@ -418,9 +388,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
418
388
|
borderColor: 'colour.system.danger.surfaceHover',
|
|
419
389
|
},
|
|
420
390
|
},
|
|
421
|
-
spinner: {
|
|
422
|
-
color: 'colour.system.danger.text',
|
|
423
|
-
},
|
|
424
391
|
},
|
|
425
392
|
},
|
|
426
393
|
{
|
|
@@ -440,9 +407,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
440
407
|
layerStyle: 'focusRing.success.md',
|
|
441
408
|
},
|
|
442
409
|
},
|
|
443
|
-
spinner: {
|
|
444
|
-
color: 'colour.system.success.onFill',
|
|
445
|
-
},
|
|
446
410
|
},
|
|
447
411
|
},
|
|
448
412
|
{
|
|
@@ -465,9 +429,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
465
429
|
layerStyle: 'focusRing.success.surface',
|
|
466
430
|
},
|
|
467
431
|
},
|
|
468
|
-
spinner: {
|
|
469
|
-
color: 'colour.system.success.text',
|
|
470
|
-
},
|
|
471
432
|
},
|
|
472
433
|
},
|
|
473
434
|
{
|
|
@@ -486,9 +447,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
486
447
|
layerStyle: 'focusRing.success.surface',
|
|
487
448
|
},
|
|
488
449
|
},
|
|
489
|
-
spinner: {
|
|
490
|
-
color: 'colour.system.success.text',
|
|
491
|
-
},
|
|
492
450
|
},
|
|
493
451
|
},
|
|
494
452
|
{
|
|
@@ -507,9 +465,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
507
465
|
layerStyle: 'focusRing.success.surface',
|
|
508
466
|
},
|
|
509
467
|
},
|
|
510
|
-
spinner: {
|
|
511
|
-
color: 'colour.system.success.text',
|
|
512
|
-
},
|
|
513
468
|
},
|
|
514
469
|
},
|
|
515
470
|
{
|
|
@@ -524,9 +479,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
524
479
|
borderColor: 'colour.system.success.surfaceHover',
|
|
525
480
|
},
|
|
526
481
|
},
|
|
527
|
-
spinner: {
|
|
528
|
-
color: 'colour.system.success.text',
|
|
529
|
-
},
|
|
530
482
|
},
|
|
531
483
|
},
|
|
532
484
|
{
|
|
@@ -549,9 +501,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
549
501
|
layerStyle: 'focusRing.info.surface',
|
|
550
502
|
},
|
|
551
503
|
},
|
|
552
|
-
spinner: {
|
|
553
|
-
color: 'colour.system.info.text',
|
|
554
|
-
},
|
|
555
504
|
},
|
|
556
505
|
},
|
|
557
506
|
{
|
|
@@ -570,9 +519,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
570
519
|
layerStyle: 'focusRing.info.surface',
|
|
571
520
|
},
|
|
572
521
|
},
|
|
573
|
-
spinner: {
|
|
574
|
-
color: 'colour.system.info.text',
|
|
575
|
-
},
|
|
576
522
|
},
|
|
577
523
|
},
|
|
578
524
|
{
|
|
@@ -595,9 +541,6 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
595
541
|
layerStyle: 'focusRing.warning.surface',
|
|
596
542
|
},
|
|
597
543
|
},
|
|
598
|
-
spinner: {
|
|
599
|
-
color: 'colour.system.warning.text',
|
|
600
|
-
},
|
|
601
544
|
},
|
|
602
545
|
},
|
|
603
546
|
{
|
|
@@ -616,28 +559,22 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
616
559
|
layerStyle: 'focusRing.warning.surface',
|
|
617
560
|
},
|
|
618
561
|
},
|
|
619
|
-
spinner: {
|
|
620
|
-
color: 'colour.system.warning.text',
|
|
621
|
-
},
|
|
622
562
|
},
|
|
623
563
|
},
|
|
624
564
|
{
|
|
625
565
|
mode: 'primary',
|
|
626
|
-
|
|
566
|
+
disabled: true,
|
|
627
567
|
css: {
|
|
628
568
|
root: {
|
|
629
569
|
bg: 'colour.neutral.20',
|
|
630
570
|
borderColor: 'colour.neutral.20',
|
|
631
571
|
color: 'colour.neutral.70',
|
|
632
572
|
},
|
|
633
|
-
spinner: {
|
|
634
|
-
color: 'colour.neutral.70',
|
|
635
|
-
},
|
|
636
573
|
},
|
|
637
574
|
},
|
|
638
575
|
{
|
|
639
576
|
mode: ['secondary', 'quaternary'],
|
|
640
|
-
|
|
577
|
+
disabled: true,
|
|
641
578
|
css: {
|
|
642
579
|
root: {
|
|
643
580
|
bg: 'colour.neutral.20',
|
|
@@ -648,37 +585,28 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
648
585
|
boxShadow: 'none',
|
|
649
586
|
},
|
|
650
587
|
},
|
|
651
|
-
spinner: {
|
|
652
|
-
color: 'colour.neutral.70',
|
|
653
|
-
},
|
|
654
588
|
},
|
|
655
589
|
},
|
|
656
590
|
{
|
|
657
591
|
mode: 'tertiary',
|
|
658
|
-
|
|
592
|
+
disabled: true,
|
|
659
593
|
css: {
|
|
660
594
|
root: {
|
|
661
595
|
bg: 'colour.neutral.20',
|
|
662
596
|
borderColor: 'colour.neutral.70',
|
|
663
597
|
color: 'colour.neutral.70',
|
|
664
598
|
},
|
|
665
|
-
spinner: {
|
|
666
|
-
color: 'colour.neutral.70',
|
|
667
|
-
},
|
|
668
599
|
},
|
|
669
600
|
},
|
|
670
601
|
{
|
|
671
602
|
mode: 'muted',
|
|
672
|
-
|
|
603
|
+
disabled: true,
|
|
673
604
|
css: {
|
|
674
605
|
root: {
|
|
675
606
|
bg: 'transparent',
|
|
676
607
|
borderColor: 'transparent',
|
|
677
608
|
color: 'colour.neutral.60',
|
|
678
609
|
},
|
|
679
|
-
spinner: {
|
|
680
|
-
color: 'colour.neutral.60',
|
|
681
|
-
},
|
|
682
610
|
},
|
|
683
611
|
},
|
|
684
612
|
{
|
|
@@ -711,7 +639,7 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
711
639
|
{ status: ['*'] },
|
|
712
640
|
{ compact: ['*'] },
|
|
713
641
|
{ fluid: ['true'] },
|
|
714
|
-
{
|
|
642
|
+
{ disabled: ['*'] },
|
|
715
643
|
{ iconOnly: ['*'] },
|
|
716
644
|
{ noWrap: ['*'] },
|
|
717
645
|
{ inButtonGroup: ['*'] },
|
|
@@ -728,7 +656,7 @@ export const buttonRecipe = defineSlotRecipe({
|
|
|
728
656
|
{ mode: ['secondary', 'tertiary'], status: ['warning'] },
|
|
729
657
|
{
|
|
730
658
|
mode: ['primary', 'secondary', 'tertiary', 'quaternary', 'muted'],
|
|
731
|
-
|
|
659
|
+
disabled: ['true'],
|
|
732
660
|
},
|
|
733
661
|
{ mode: ['tertiary'], inButtonGroup: ['true'] },
|
|
734
662
|
{
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
+
import { cssVars } from '@iress-oss/ids-tokens';
|
|
3
|
+
import { focusable } from './focusable';
|
|
4
|
+
|
|
5
|
+
describe('focusable select-activator', () => {
|
|
6
|
+
const styles = focusable.transform?.('select-activator', {
|
|
7
|
+
token: Object.assign(vi.fn(), { raw: vi.fn() }),
|
|
8
|
+
raw: 'select-activator',
|
|
9
|
+
utils: { colorMix: vi.fn() },
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('uses the validation border colour even when unfocused', () => {
|
|
13
|
+
expect(styles).toHaveProperty(
|
|
14
|
+
'borderColor',
|
|
15
|
+
`var(--iress-border-color, ${cssVars.colour.neutral[70]})`,
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('keeps the validation border colour while focused, active or expanded', () => {
|
|
20
|
+
expect(styles).toHaveProperty(
|
|
21
|
+
'&:focus-within, &:active, &[aria-expanded="true"]',
|
|
22
|
+
expect.objectContaining({
|
|
23
|
+
borderColor: `var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
24
|
+
boxShadow: `0 0 0 1px var(--iress-border-color, ${cssVars.colour.neutral[80]})`,
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
});
|