@infonomic/uikit 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/badge/badge.module.css +14 -13
- package/dist/components/badge/badge_module.css +7 -7
- package/dist/components/button/button.module.css +103 -119
- package/dist/components/button/button_module.css +72 -71
- package/dist/components/chips/chip.d.ts.map +1 -1
- package/dist/components/chips/chip.js +3 -6
- package/dist/components/chips/chip.module.css +82 -96
- package/dist/components/chips/chip.module.js +2 -3
- package/dist/components/chips/chip_module.css +63 -65
- package/dist/components/pager/pagination.module.css +9 -8
- package/dist/components/pager/pagination_module.css +2 -2
- package/dist/react.d.ts +1 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +2 -0
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/styles/styles.css +1 -1
- package/package.json +11 -11
- package/src/components/badge/badge.module.css +14 -13
- package/src/components/button/button.module.css +103 -119
- package/src/components/chips/chip.module.css +82 -96
- package/src/components/chips/chip.tsx +4 -6
- package/src/components/pager/pagination.module.css +9 -8
- package/src/react.ts +4 -0
- package/src/styles/functional/colors.css +613 -180
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
+
|
|
9
10
|
.chip,
|
|
10
11
|
:global(.chip) {
|
|
11
12
|
--chip-font-size: 0.9rem;
|
|
@@ -13,13 +14,13 @@
|
|
|
13
14
|
--chip-padding-y: 0.35rem;
|
|
14
15
|
--chip-padding-x: 0.4rem;
|
|
15
16
|
--chip-icon-size: 1rem;
|
|
16
|
-
|
|
17
|
+
--chip-gap: var(--gap-1);
|
|
17
18
|
appearance: none;
|
|
18
19
|
outline: 2px solid transparent;
|
|
19
20
|
outline-offset: 2px;
|
|
20
21
|
display: inline-flex;
|
|
21
22
|
align-items: center;
|
|
22
|
-
gap: var(--gap
|
|
23
|
+
gap: var(--chip-gap);
|
|
23
24
|
border-radius: var(--border-radius-sm);
|
|
24
25
|
cursor: pointer;
|
|
25
26
|
line-height: 1.1;
|
|
@@ -61,10 +62,6 @@
|
|
|
61
62
|
height: var(--chip-icon-size);
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
.end-icon {
|
|
65
|
-
margin-left: 0.3rem;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
65
|
.iconWrapper {
|
|
69
66
|
display: inline-flex;
|
|
70
67
|
align-items: center;
|
|
@@ -72,10 +69,9 @@
|
|
|
72
69
|
line-height: 0;
|
|
73
70
|
}
|
|
74
71
|
|
|
75
|
-
.
|
|
76
|
-
width: calc(var(--chip-icon-size) * 0.
|
|
77
|
-
height: calc(var(--chip-icon-size) * 0.
|
|
78
|
-
min-height: calc(var(--chip-icon-size) * 0.85);
|
|
72
|
+
.close-icon {
|
|
73
|
+
width: calc(var(--chip-icon-size) * 0.9);
|
|
74
|
+
height: calc(var(--chip-icon-size) * 0.9);
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
/* Sizes ----------------------------------------------------------- */
|
|
@@ -93,7 +89,7 @@
|
|
|
93
89
|
:global(.chip-sm) {
|
|
94
90
|
--chip-height: 28px;
|
|
95
91
|
--chip-padding-y: 0.2rem;
|
|
96
|
-
--chip-padding-x: 0.
|
|
92
|
+
--chip-padding-x: 0.3rem;
|
|
97
93
|
--chip-font-size: 0.82rem;
|
|
98
94
|
--chip-icon-size: 1.2rem;
|
|
99
95
|
}
|
|
@@ -102,25 +98,27 @@
|
|
|
102
98
|
:global(.chip-md) {
|
|
103
99
|
--chip-height: 32px;
|
|
104
100
|
--chip-padding-y: 0.25rem;
|
|
105
|
-
--chip-padding-x: 0.
|
|
101
|
+
--chip-padding-x: 0.3rem;
|
|
106
102
|
--chip-font-size: 0.9rem;
|
|
107
103
|
--chip-icon-size: 1.3rem;
|
|
108
104
|
}
|
|
109
105
|
|
|
110
106
|
.lg,
|
|
111
107
|
:global(.chip-lg) {
|
|
108
|
+
--chip-gap: var(--gap-2);
|
|
112
109
|
--chip-height: 36px;
|
|
113
110
|
--chip-padding-y: 0.3rem;
|
|
114
|
-
--chip-padding-x: 0.
|
|
111
|
+
--chip-padding-x: 0.4rem;
|
|
115
112
|
--chip-font-size: 0.98rem;
|
|
116
113
|
--chip-icon-size: 1.35rem;
|
|
117
114
|
}
|
|
118
115
|
|
|
119
116
|
.xl,
|
|
120
117
|
:global(.chip-xl) {
|
|
118
|
+
--chip-gap: var(--gap-2);
|
|
121
119
|
--chip-height: 40px;
|
|
122
120
|
--chip-padding-y: 0.3rem;
|
|
123
|
-
--chip-padding-x: 0.
|
|
121
|
+
--chip-padding-x: 0.5rem;
|
|
124
122
|
--chip-font-size: 1rem;
|
|
125
123
|
--chip-icon-size: 1.4rem;
|
|
126
124
|
}
|
|
@@ -149,14 +147,10 @@
|
|
|
149
147
|
.filled[disabled],
|
|
150
148
|
:global(.chip-filled):disabled,
|
|
151
149
|
:global(.chip-filled)[disabled] {
|
|
152
|
-
background-color: var(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
color: var(
|
|
157
|
-
--chip-variant-filled-foreground-disabled,
|
|
158
|
-
oklch(from var(--chip-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
159
|
-
);
|
|
150
|
+
background-color: var(--chip-variant-filled-disabled,
|
|
151
|
+
oklch(from var(--chip-variant-filled) calc(l * 1.1) calc(c * 0.85) h));
|
|
152
|
+
color: var(--chip-variant-filled-foreground-disabled,
|
|
153
|
+
oklch(from var(--chip-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85) h));
|
|
160
154
|
}
|
|
161
155
|
|
|
162
156
|
/* -------------------------------------------------------- */
|
|
@@ -184,14 +178,10 @@
|
|
|
184
178
|
.filled-weak[disabled],
|
|
185
179
|
:global(.chip-filled-weak):disabled,
|
|
186
180
|
:global(.chip-filled-weak)[disabled] {
|
|
187
|
-
background-color: var(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
color: var(
|
|
192
|
-
--chip-variant-filled-weak-foreground-disabled,
|
|
193
|
-
oklch(from var(--chip-variant-filled-weak-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
194
|
-
);
|
|
181
|
+
background-color: var(--chip-variant-filled-weak-disabled,
|
|
182
|
+
oklch(from var(--chip-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h));
|
|
183
|
+
color: var(--chip-variant-filled-weak-foreground-disabled,
|
|
184
|
+
oklch(from var(--chip-variant-filled-weak-foreground) calc(l * 0.9) calc(c * 0.85) h));
|
|
195
185
|
}
|
|
196
186
|
|
|
197
187
|
/* -------------------------------------------------------- */
|
|
@@ -208,14 +198,10 @@
|
|
|
208
198
|
.outlined[disabled],
|
|
209
199
|
:global(.chip-outlined):disabled,
|
|
210
200
|
:global(.chip-outlined)[disabled] {
|
|
211
|
-
border-color: var(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
color: var(
|
|
216
|
-
--chip-variant-outlined-foreground-disabled,
|
|
217
|
-
oklch(from var(--chip-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7) h)
|
|
218
|
-
);
|
|
201
|
+
border-color: var(--chip-variant-outlined-border-disabled,
|
|
202
|
+
oklch(from var(--chip-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h));
|
|
203
|
+
color: var(--chip-variant-outlined-foreground-disabled,
|
|
204
|
+
oklch(from var(--chip-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7) h));
|
|
219
205
|
}
|
|
220
206
|
|
|
221
207
|
.outlined:hover,
|
|
@@ -262,25 +248,25 @@
|
|
|
262
248
|
|
|
263
249
|
/* Filled */
|
|
264
250
|
--chip-variant-filled: var(--fill-primary-strong);
|
|
265
|
-
--chip-variant-filled-foreground: var(--text-on-primary);
|
|
266
251
|
--chip-variant-filled-hover: var(--fill-primary-strong-hover);
|
|
267
252
|
--chip-variant-filled-disabled: var(--fill-primary-strong-disabled);
|
|
268
|
-
--chip-variant-filled-foreground
|
|
253
|
+
--chip-variant-filled-foreground: var(--text-on-primary-strong);
|
|
254
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-primary-strong-disabled);
|
|
269
255
|
|
|
270
256
|
/* Filled Weak */
|
|
271
257
|
--chip-variant-filled-weak: var(--fill-primary-weak);
|
|
272
|
-
--chip-variant-filled-weak-foreground: var(--text-on-primary);
|
|
273
258
|
--chip-variant-filled-weak-hover: var(--fill-primary-weak-hover);
|
|
274
259
|
--chip-variant-filled-weak-disabled: var(--fill-primary-weak-disabled);
|
|
275
|
-
--chip-variant-filled-weak-foreground
|
|
260
|
+
--chip-variant-filled-weak-foreground: var(--text-on-primary-weak);
|
|
261
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-primary-weak-disabled);
|
|
276
262
|
|
|
277
263
|
/* Outlined */
|
|
278
|
-
--chip-variant-outlined:
|
|
279
|
-
--chip-variant-outlined-
|
|
280
|
-
--chip-variant-outlined-hover: var(--fill-primary-weak);
|
|
264
|
+
--chip-variant-outlined: var(--fill-primary-outlined);
|
|
265
|
+
--chip-variant-outlined-hover: var(--fill-primary-outlined-hover);
|
|
281
266
|
--chip-variant-outlined-border: var(--stroke-primary);
|
|
282
267
|
--chip-variant-outlined-border-disabled: var(--stroke-primary-disabled);
|
|
283
|
-
--chip-variant-outlined-foreground
|
|
268
|
+
--chip-variant-outlined-foreground: var(--text-on-primary-outlined);
|
|
269
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-primary-outlined-disabled);
|
|
284
270
|
}
|
|
285
271
|
|
|
286
272
|
.secondary,
|
|
@@ -289,10 +275,10 @@
|
|
|
289
275
|
|
|
290
276
|
/* Filled */
|
|
291
277
|
--chip-variant-filled: var(--fill-secondary-strong);
|
|
292
|
-
--chip-variant-filled-foreground: var(--text-on-secondary);
|
|
293
278
|
--chip-variant-filled-hover: var(--fill-secondary-strong-hover);
|
|
294
279
|
--chip-variant-filled-disabled: var(--fill-secondary-strong-disabled);
|
|
295
|
-
--chip-variant-filled-foreground
|
|
280
|
+
--chip-variant-filled-foreground: var(--text-on-secondary-strong);
|
|
281
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-secondary-strong-disabled);
|
|
296
282
|
|
|
297
283
|
/* Filled Weak */
|
|
298
284
|
--chip-variant-filled-weak: var(--fill-secondary-weak);
|
|
@@ -302,12 +288,12 @@
|
|
|
302
288
|
--chip-variant-filled-weak-foreground-disabled: var(--text-on-secondary-disabled);
|
|
303
289
|
|
|
304
290
|
/* Outlined */
|
|
305
|
-
--chip-variant-outlined:
|
|
306
|
-
--chip-variant-outlined-
|
|
307
|
-
--chip-variant-outlined-hover: var(--fill-secondary-weak);
|
|
291
|
+
--chip-variant-outlined: var(--fill-secondary-outlined);
|
|
292
|
+
--chip-variant-outlined-hover: var(--fill-secondary-outlined-hover);
|
|
308
293
|
--chip-variant-outlined-border: var(--stroke-secondary);
|
|
309
294
|
--chip-variant-outlined-border-disabled: var(--stroke-secondary-disabled);
|
|
310
|
-
--chip-variant-outlined-foreground
|
|
295
|
+
--chip-variant-outlined-foreground: var(--text-on-secondary-outlined);
|
|
296
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-secondary-outlined-disabled);
|
|
311
297
|
}
|
|
312
298
|
|
|
313
299
|
.noeffect,
|
|
@@ -316,25 +302,25 @@
|
|
|
316
302
|
|
|
317
303
|
/* Filled */
|
|
318
304
|
--chip-variant-filled: var(--fill-noeffect-strong);
|
|
319
|
-
--chip-variant-filled-foreground: var(--text-on-noeffect);
|
|
320
305
|
--chip-variant-filled-hover: var(--fill-noeffect-strong-hover);
|
|
321
306
|
--chip-variant-filled-disabled: var(--fill-noeffect-strong-disabled);
|
|
322
|
-
--chip-variant-filled-foreground
|
|
307
|
+
--chip-variant-filled-foreground: var(--text-on-noeffect-strong);
|
|
308
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-noeffect-strong-disabled);
|
|
323
309
|
|
|
324
310
|
/* Filled Weak */
|
|
325
311
|
--chip-variant-filled-weak: var(--fill-noeffect-weak);
|
|
326
|
-
--chip-variant-filled-weak-foreground: var(--text-on-noeffect);
|
|
327
312
|
--chip-variant-filled-weak-hover: var(--fill-noeffect-weak-hover);
|
|
328
313
|
--chip-variant-filled-weak-disabled: var(--fill-noeffect-weak-disabled);
|
|
329
|
-
--chip-variant-filled-weak-foreground
|
|
314
|
+
--chip-variant-filled-weak-foreground: var(--text-on-noeffect-weak);
|
|
315
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-noeffect-weak-disabled);
|
|
330
316
|
|
|
331
317
|
/* Outlined */
|
|
332
|
-
--chip-variant-outlined:
|
|
333
|
-
--chip-variant-outlined-
|
|
334
|
-
--chip-variant-outlined-hover: var(--fill-noeffect-weak);
|
|
318
|
+
--chip-variant-outlined: var(--fill-noeffect-outlined);
|
|
319
|
+
--chip-variant-outlined-hover: var(--fill-noeffect-outlined-hover);
|
|
335
320
|
--chip-variant-outlined-border: var(--stroke-noeffect);
|
|
336
321
|
--chip-variant-outlined-border-disabled: var(--stroke-noeffect-disabled);
|
|
337
|
-
--chip-variant-outlined-foreground
|
|
322
|
+
--chip-variant-outlined-foreground: var(--text-on-noeffect-outlined);
|
|
323
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-noeffect-outlined-disabled);
|
|
338
324
|
}
|
|
339
325
|
|
|
340
326
|
.success,
|
|
@@ -343,25 +329,25 @@
|
|
|
343
329
|
|
|
344
330
|
/* Filled */
|
|
345
331
|
--chip-variant-filled: var(--fill-success-strong);
|
|
346
|
-
--chip-variant-filled-foreground: var(--text-on-success);
|
|
347
332
|
--chip-variant-filled-hover: var(--fill-success-strong-hover);
|
|
348
333
|
--chip-variant-filled-disabled: var(--fill-success-strong-disabled);
|
|
349
|
-
--chip-variant-filled-foreground
|
|
334
|
+
--chip-variant-filled-foreground: var(--text-on-success-strong);
|
|
335
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-success-strong-disabled);
|
|
350
336
|
|
|
351
337
|
/* Filled Weak */
|
|
352
338
|
--chip-variant-filled-weak: var(--fill-success-weak);
|
|
353
|
-
--chip-variant-filled-weak-foreground: var(--text-on-success);
|
|
354
339
|
--chip-variant-filled-weak-hover: var(--fill-success-weak-hover);
|
|
355
340
|
--chip-variant-filled-weak-disabled: var(--fill-success-weak-disabled);
|
|
356
|
-
--chip-variant-filled-weak-foreground
|
|
341
|
+
--chip-variant-filled-weak-foreground: var(--text-on-success-weak);
|
|
342
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-success-weak-disabled);
|
|
357
343
|
|
|
358
344
|
/* Outlined */
|
|
359
|
-
--chip-variant-outlined:
|
|
360
|
-
--chip-variant-outlined-
|
|
361
|
-
--chip-variant-outlined-hover: var(--fill-success-weak);
|
|
345
|
+
--chip-variant-outlined: var(--fill-success-outlined);
|
|
346
|
+
--chip-variant-outlined-hover: var(--fill-success-outlined-hover);
|
|
362
347
|
--chip-variant-outlined-border: var(--stroke-success);
|
|
363
348
|
--chip-variant-outlined-border-disabled: var(--stroke-success-disabled);
|
|
364
|
-
--chip-variant-outlined-foreground
|
|
349
|
+
--chip-variant-outlined-foreground: var(--text-on-success-outlined);
|
|
350
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-success-outlined-disabled);
|
|
365
351
|
}
|
|
366
352
|
|
|
367
353
|
.info,
|
|
@@ -370,25 +356,25 @@
|
|
|
370
356
|
|
|
371
357
|
/* Filled */
|
|
372
358
|
--chip-variant-filled: var(--fill-info-strong);
|
|
373
|
-
--chip-variant-filled-foreground: var(--text-on-info);
|
|
374
359
|
--chip-variant-filled-hover: var(--fill-info-strong-hover);
|
|
375
360
|
--chip-variant-filled-disabled: var(--fill-info-strong-disabled);
|
|
376
|
-
--chip-variant-filled-foreground
|
|
361
|
+
--chip-variant-filled-foreground: var(--text-on-info-strong);
|
|
362
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-info-strong-disabled);
|
|
377
363
|
|
|
378
364
|
/* Filled Weak */
|
|
379
365
|
--chip-variant-filled-weak: var(--fill-info-weak);
|
|
380
|
-
--chip-variant-filled-weak-foreground: var(--text-on-info);
|
|
381
366
|
--chip-variant-filled-weak-hover: var(--fill-info-weak-hover);
|
|
382
367
|
--chip-variant-filled-weak-disabled: var(--fill-info-weak-disabled);
|
|
383
|
-
--chip-variant-filled-weak-foreground
|
|
368
|
+
--chip-variant-filled-weak-foreground: var(--text-on-info-weak);
|
|
369
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-info-weak-disabled);
|
|
384
370
|
|
|
385
371
|
/* Outlined */
|
|
386
|
-
--chip-variant-outlined:
|
|
387
|
-
--chip-variant-outlined-
|
|
388
|
-
--chip-variant-outlined-hover: var(--fill-info-weak);
|
|
372
|
+
--chip-variant-outlined: var(--fill-info-outlined);
|
|
373
|
+
--chip-variant-outlined-hover: var(--fill-info-outlined-hover);
|
|
389
374
|
--chip-variant-outlined-border: var(--stroke-info);
|
|
390
375
|
--chip-variant-outlined-border-disabled: var(--stroke-info-disabled);
|
|
391
|
-
--chip-variant-outlined-foreground
|
|
376
|
+
--chip-variant-outlined-foreground: var(--text-on-info-outlined);
|
|
377
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-info-outlined-disabled);
|
|
392
378
|
}
|
|
393
379
|
|
|
394
380
|
.warning,
|
|
@@ -397,25 +383,25 @@
|
|
|
397
383
|
|
|
398
384
|
/* Filled */
|
|
399
385
|
--chip-variant-filled: var(--fill-warning-strong);
|
|
400
|
-
--chip-variant-filled-foreground: var(--text-on-warning);
|
|
401
386
|
--chip-variant-filled-hover: var(--fill-warning-strong-hover);
|
|
402
387
|
--chip-variant-filled-disabled: var(--fill-warning-strong-disabled);
|
|
403
|
-
--chip-variant-filled-foreground
|
|
388
|
+
--chip-variant-filled-foreground: var(--text-on-warning-strong);
|
|
389
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-warning-strong-disabled);
|
|
404
390
|
|
|
405
391
|
/* Filled Weak */
|
|
406
392
|
--chip-variant-filled-weak: var(--fill-warning-weak);
|
|
407
|
-
--chip-variant-filled-weak-foreground: var(--text-on-warning);
|
|
408
393
|
--chip-variant-filled-weak-hover: var(--fill-warning-weak-hover);
|
|
409
394
|
--chip-variant-filled-weak-disabled: var(--fill-warning-weak-disabled);
|
|
410
|
-
--chip-variant-filled-weak-foreground
|
|
395
|
+
--chip-variant-filled-weak-foreground: var(--text-on-warning-weak);
|
|
396
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-warning-weak-disabled);
|
|
411
397
|
|
|
412
398
|
/* Outlined */
|
|
413
|
-
--chip-variant-outlined:
|
|
414
|
-
--chip-variant-outlined-
|
|
415
|
-
--chip-variant-outlined-hover: var(--fill-warning-weak);
|
|
399
|
+
--chip-variant-outlined: var(--fill-warning-outlined);
|
|
400
|
+
--chip-variant-outlined-hover: var(--fill-warning-outlined-hover);
|
|
416
401
|
--chip-variant-outlined-border: var(--stroke-warning);
|
|
417
402
|
--chip-variant-outlined-border-disabled: var(--stroke-warning-disabled);
|
|
418
|
-
--chip-variant-outlined-foreground
|
|
403
|
+
--chip-variant-outlined-foreground: var(--text-on-warning-outlined);
|
|
404
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-warning-outlined-disabled);
|
|
419
405
|
}
|
|
420
406
|
|
|
421
407
|
.danger,
|
|
@@ -424,24 +410,24 @@
|
|
|
424
410
|
|
|
425
411
|
/* Filled */
|
|
426
412
|
--chip-variant-filled: var(--fill-danger-strong);
|
|
427
|
-
--chip-variant-filled-foreground: var(--text-on-danger);
|
|
428
413
|
--chip-variant-filled-hover: var(--fill-danger-strong-hover);
|
|
429
414
|
--chip-variant-filled-disabled: var(--fill-danger-strong-disabled);
|
|
430
|
-
--chip-variant-filled-foreground
|
|
415
|
+
--chip-variant-filled-foreground: var(--text-on-danger-strong);
|
|
416
|
+
--chip-variant-filled-foreground-disabled: var(--text-on-danger-strong-disabled);
|
|
431
417
|
|
|
432
418
|
/* Filled Weak */
|
|
433
419
|
--chip-variant-filled-weak: var(--fill-danger-weak);
|
|
434
|
-
--chip-variant-filled-weak-foreground: var(--text-on-danger);
|
|
435
420
|
--chip-variant-filled-weak-hover: var(--fill-danger-weak-hover);
|
|
436
421
|
--chip-variant-filled-weak-disabled: var(--fill-danger-weak-disabled);
|
|
437
|
-
--chip-variant-filled-weak-foreground
|
|
422
|
+
--chip-variant-filled-weak-foreground: var(--text-on-danger-weak);
|
|
423
|
+
--chip-variant-filled-weak-foreground-disabled: var(--text-on-danger-weak-disabled);
|
|
438
424
|
|
|
439
425
|
/* Outlined */
|
|
440
426
|
--chip-variant-outlined: transparent;
|
|
441
|
-
--chip-variant-outlined-foreground: var(--text-danger-strong);
|
|
442
427
|
--chip-variant-outlined-hover: var(--fill-danger-weak);
|
|
443
428
|
--chip-variant-outlined-border: var(--stroke-danger);
|
|
444
429
|
--chip-variant-outlined-border-disabled: var(--stroke-danger-disabled);
|
|
445
|
-
--chip-variant-outlined-foreground
|
|
430
|
+
--chip-variant-outlined-foreground: var(--text-on-danger-outlined);
|
|
431
|
+
--chip-variant-outlined-foreground-disabled: var(--text-on-danger-outlined-disabled);
|
|
446
432
|
}
|
|
447
|
-
}
|
|
433
|
+
}
|
|
@@ -139,18 +139,16 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
139
139
|
(isSelectable && isSelected ? (selectedIcon ?? <CheckIcon className={styles.icon} />) : null)
|
|
140
140
|
|
|
141
141
|
const trailingIcon = isRemovable ? (
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
variant={isSelected ? 'filled-weak' : 'outlined'}
|
|
145
|
-
className={cx('remove', styles.remove, styles['end-icon'])}
|
|
142
|
+
<button
|
|
143
|
+
type="button"
|
|
146
144
|
tabIndex={disabled ? -1 : 0}
|
|
147
145
|
disabled={disabled}
|
|
148
146
|
aria-label={removeLabel}
|
|
149
147
|
onClick={handleRemoveClick}
|
|
150
148
|
onKeyDown={handleRemoveKeyDown}
|
|
151
149
|
>
|
|
152
|
-
<CloseIcon className={styles.icon} />
|
|
153
|
-
</
|
|
150
|
+
<CloseIcon className={cx(styles.icon, styles['close-icon'])} />
|
|
151
|
+
</button>
|
|
154
152
|
) : (
|
|
155
153
|
endIcon
|
|
156
154
|
)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
9
|
.pagination-root {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
.number-button:hover,
|
|
101
101
|
.previous-button:hover,
|
|
102
102
|
.first-button:hover {
|
|
103
|
-
color: var(--text-on-primary);
|
|
103
|
+
color: var(--text-on-primary-strong);
|
|
104
104
|
background-color: var(--fill-primary-strong);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.number-button.active {
|
|
121
|
-
color: var(--text-on-primary);
|
|
121
|
+
color: var(--text-on-primary-strong);
|
|
122
122
|
background-color: var(--fill-primary-strong);
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
* a root html class accordingly
|
|
140
140
|
*/
|
|
141
141
|
:global(.dark) {
|
|
142
|
+
|
|
142
143
|
.ellipses,
|
|
143
144
|
.number-button,
|
|
144
145
|
.next-button,
|
|
@@ -148,4 +149,4 @@
|
|
|
148
149
|
border-color: var(--canvas-700);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
}
|
|
152
|
+
}
|
package/src/react.ts
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
* NOTE: We put a .js ending on imports here to satisfy
|
|
3
3
|
* TS / dist output
|
|
4
4
|
*/
|
|
5
|
+
|
|
6
|
+
// Used for creating theme test pages in client applications
|
|
5
7
|
export * from './components/@types/shared.js'
|
|
6
8
|
export * from './components/accordion/accordion.js'
|
|
7
9
|
export * from './components/animation/fade-in-lift.js'
|
|
8
10
|
export * from './components/avatar/avatar.js'
|
|
9
11
|
export * from './components/badge/badge.js'
|
|
12
|
+
// Used for creating theme test pages in client applications
|
|
13
|
+
export { variant as buttonVariant } from './components/button/@types/button.js'
|
|
10
14
|
export * from './components/button/button.js'
|
|
11
15
|
export * from './components/button/button-group.js'
|
|
12
16
|
export * from './components/button/control-buttons.js'
|