@infonomic/uikit 5.41.0 → 5.43.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/@types/shared.d.ts +52 -0
- package/dist/components/@types/shared.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.module.css +1 -2
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.module.css +6 -7
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.module.css +6 -7
- package/dist/components/button/@types/button.d.ts +31 -1
- package/dist/components/button/@types/button.d.ts.map +1 -1
- package/dist/components/button/button-group.module.css +1 -3
- package/dist/components/button/button.module.css +48 -31
- package/dist/components/button/combo-button.d.ts.map +1 -1
- package/dist/components/button/combo-button.module.css +3 -3
- package/dist/components/button/control-buttons.module.css +1 -2
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.module.css +6 -7
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.module.css +6 -10
- package/dist/components/chips/@types/chip.d.ts +20 -0
- package/dist/components/chips/@types/chip.d.ts.map +1 -1
- package/dist/components/chips/chip.d.ts.map +1 -1
- package/dist/components/chips/chip.module.css +30 -19
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.module.css +6 -10
- package/dist/components/dropdown/dropdown.module.css +6 -7
- package/dist/components/forms/@types/checkbox.d.ts +28 -1
- package/dist/components/forms/@types/checkbox.d.ts.map +1 -1
- package/dist/components/forms/@types/input.d.ts +29 -1
- package/dist/components/forms/@types/input.d.ts.map +1 -1
- package/dist/components/forms/calendar.module.css +14 -14
- package/dist/components/forms/checkbox-group.d.ts.map +1 -1
- package/dist/components/forms/checkbox.d.ts.map +1 -1
- package/dist/components/forms/checkbox.module.css +12 -17
- package/dist/components/forms/checkbox.module.js +0 -1
- package/dist/components/forms/checkbox_module.css +3 -13
- package/dist/components/forms/error-text.module.css +6 -7
- package/dist/components/forms/help-text.d.ts.map +1 -1
- package/dist/components/forms/help-text.module.css +6 -7
- package/dist/components/forms/input-adornment.module.css +6 -7
- package/dist/components/forms/input-password.d.ts.map +1 -1
- package/dist/components/forms/input.d.ts.map +1 -1
- package/dist/components/forms/input.module.css +6 -7
- package/dist/components/forms/label.module.css +6 -7
- package/dist/components/forms/radio-group.module.css +6 -7
- package/dist/components/forms/select.d.ts.map +1 -1
- package/dist/components/forms/select.js +1 -1
- package/dist/components/forms/select.module.css +74 -3
- package/dist/components/forms/select.module.js +10 -0
- package/dist/components/forms/select_module.css +63 -3
- package/dist/components/forms/text-area.module.css +10 -9
- package/dist/components/notifications/@types/alert.d.ts +16 -1
- package/dist/components/notifications/@types/alert.d.ts.map +1 -1
- package/dist/components/notifications/@types/toast.d.ts +36 -1
- package/dist/components/notifications/@types/toast.d.ts.map +1 -1
- package/dist/components/notifications/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.module.css +6 -7
- package/dist/components/notifications/toast.module.css +6 -8
- package/dist/components/overlay/overlay.module.css +6 -4
- package/dist/components/pager/@types/index.d.ts +12 -0
- package/dist/components/pager/@types/index.d.ts.map +1 -1
- package/dist/components/pager/pagination.module.css +6 -8
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.module.css +6 -7
- package/dist/components/scroll-to-top/scroll-to-top.module.css +5 -7
- package/dist/components/section/section.d.ts.map +1 -1
- package/dist/components/section/section.module.css +6 -7
- package/dist/components/shimmer/shimmer.module.css +6 -8
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.module.css +6 -8
- package/dist/components/tabs/tabs.module.css +6 -7
- package/dist/components/tooltip/tooltip.module.css +6 -7
- package/dist/icons/eye-closed-icon.d.ts.map +1 -1
- package/dist/icons/eye-open-icon.d.ts.map +1 -1
- package/dist/icons/icons.module.css +1 -1
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.module.css +1 -2
- package/dist/widgets/drawer/drawer-container.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-content.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer.module.css +1 -3
- package/dist/widgets/modal/modal-actions.d.ts.map +1 -1
- package/dist/widgets/modal/modal-container.d.ts.map +1 -1
- package/dist/widgets/modal/modal-content.d.ts.map +1 -1
- package/dist/widgets/modal/modal.module.css +1 -3
- package/dist/widgets/timeline/timeline.module.css +6 -8
- package/package.json +1 -1
- package/src/components/@types/shared.ts +55 -0
- package/src/components/accordion/accordion.module.css +1 -2
- package/src/components/accordion/accordion.stories.tsx +1 -2
- package/src/components/accordion/accordion.tsx +25 -5
- package/src/components/avatar/avatar.module.css +6 -7
- package/src/components/avatar/avatar.tsx +9 -2
- package/src/components/badge/badge.module.css +6 -7
- package/src/components/badge/badge.tsx +7 -1
- package/src/components/button/@types/button.ts +36 -1
- package/src/components/button/button-group.module.css +1 -3
- package/src/components/button/button.module.css +48 -31
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/combo-button.module.css +3 -3
- package/src/components/button/combo-button.tsx +17 -5
- package/src/components/button/combo-buttons.stories.tsx +6 -3
- package/src/components/button/control-buttons.module.css +1 -2
- package/src/components/button/copy-button.module.css +6 -7
- package/src/components/button/copy-button.tsx +12 -3
- package/src/components/card/card.module.css +6 -10
- package/src/components/card/card.tsx +20 -4
- package/src/components/chips/@types/chip.ts +22 -0
- package/src/components/chips/chip.module.css +30 -19
- package/src/components/chips/chip.tsx +10 -5
- package/src/components/container/container.module.css +6 -10
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +6 -7
- package/src/components/forms/@types/checkbox.ts +31 -1
- package/src/components/forms/@types/input.ts +32 -1
- package/src/components/forms/calendar.module.css +14 -14
- package/src/components/forms/checkbox-group.tsx +1 -1
- package/src/components/forms/checkbox.module.css +12 -17
- package/src/components/forms/checkbox.tsx +4 -1
- package/src/components/forms/error-text.module.css +6 -7
- package/src/components/forms/help-text.module.css +6 -7
- package/src/components/forms/help-text.tsx +5 -1
- package/src/components/forms/input-adornment.module.css +6 -7
- package/src/components/forms/input-password.tsx +7 -1
- package/src/components/forms/input.module.css +6 -7
- package/src/components/forms/input.tsx +18 -2
- package/src/components/forms/label.module.css +6 -7
- package/src/components/forms/radio-group.module.css +6 -7
- package/src/components/forms/select.module.css +74 -3
- package/src/components/forms/select.stories.tsx +47 -9
- package/src/components/forms/select.tsx +4 -2
- package/src/components/forms/text-area.module.css +10 -9
- package/src/components/notifications/@types/alert.ts +17 -1
- package/src/components/notifications/@types/toast.ts +40 -1
- package/src/components/notifications/alert.module.css +6 -7
- package/src/components/notifications/alert.tsx +10 -3
- package/src/components/notifications/toast.module.css +6 -8
- package/src/components/overlay/overlay.module.css +6 -4
- package/src/components/pager/@types/index.ts +13 -0
- package/src/components/pager/pagination.module.css +6 -8
- package/src/components/pager/pagination.tsx +6 -1
- package/src/components/scroll-area/scroll-area.module.css +6 -7
- package/src/components/scroll-area/scroll-area.tsx +13 -4
- package/src/components/scroll-to-top/scroll-to-top.module.css +5 -7
- package/src/components/section/section.module.css +6 -7
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +6 -8
- package/src/components/table/table.module.css +6 -8
- package/src/components/table/table.tsx +6 -1
- package/src/components/tabs/tabs.module.css +6 -7
- package/src/components/tooltip/tooltip.module.css +6 -7
- package/src/icons/ai-icon.tsx +1 -1
- package/src/icons/eye-closed-icon.tsx +2 -1
- package/src/icons/eye-open-icon.tsx +1 -5
- package/src/icons/icons.module.css +1 -1
- package/src/styles/base/base.css +1 -1
- package/src/styles/base/colors.css +1 -2
- package/src/styles/components/loaders.css +1 -1
- package/src/styles/functional/colors.css +201 -56
- package/src/styles/functional/surfaces.css +1 -2
- package/src/styles/functional/typography.css +1 -1
- package/src/widgets/datepicker/datepicker.module.css +1 -2
- package/src/widgets/datepicker/datepicker.tsx +44 -16
- package/src/widgets/drawer/drawer-container.tsx +6 -1
- package/src/widgets/drawer/drawer-content.tsx +5 -1
- package/src/widgets/drawer/drawer.module.css +1 -3
- package/src/widgets/modal/modal-actions.tsx +5 -1
- package/src/widgets/modal/modal-container.tsx +5 -1
- package/src/widgets/modal/modal-content.tsx +5 -1
- package/src/widgets/modal/modal.module.css +1 -3
- package/src/widgets/timeline/timeline.module.css +6 -8
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
@layer infonomic-functional {
|
|
21
|
-
|
|
22
21
|
/* ===================================================================
|
|
23
22
|
LIGHT MODE (default)
|
|
24
23
|
=================================================================== */
|
|
@@ -37,7 +36,10 @@
|
|
|
37
36
|
|
|
38
37
|
--fill-primary-outlined: transparent;
|
|
39
38
|
--fill-primary-outlined-hover: oklch(from var(--primary-500) calc(l * 2) calc(c * 0.2) h / 0.7);
|
|
40
|
-
--fill-primary-outlined-disabled: oklch(
|
|
39
|
+
--fill-primary-outlined-disabled: oklch(
|
|
40
|
+
from var(--primary-500) calc(l * 2) calc(c * 0.2) h /
|
|
41
|
+
0.7
|
|
42
|
+
);
|
|
41
43
|
|
|
42
44
|
--fill-primary-text: transparent;
|
|
43
45
|
--fill-primary-text-hover: oklch(from var(--primary-500) calc(l * 2) calc(c * 0.2) h / 0.7);
|
|
@@ -54,7 +56,9 @@
|
|
|
54
56
|
|
|
55
57
|
--text-on-primary-outlined: oklch(from var(--primary-500) calc(l * 0.7) c h);
|
|
56
58
|
--text-on-primary-outlined-hover: oklch(from var(--primary-600) calc(l * 1.5) calc(c * 0.5) h);
|
|
57
|
-
--text-on-primary-outlined-disabled: oklch(
|
|
59
|
+
--text-on-primary-outlined-disabled: oklch(
|
|
60
|
+
from var(--primary-600) calc(l * 1.5) calc(c * 0.5) h
|
|
61
|
+
);
|
|
58
62
|
|
|
59
63
|
--text-primary: var(--primary-500);
|
|
60
64
|
--text-primary-weak: oklch(from var(--primary-500) calc(l * 0.7) c h);
|
|
@@ -81,19 +85,36 @@
|
|
|
81
85
|
/* Fill tokens - for filled variant */
|
|
82
86
|
--fill-secondary-strong: var(--secondary-500);
|
|
83
87
|
--fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
|
|
84
|
-
--fill-secondary-strong-disabled: oklch(
|
|
88
|
+
--fill-secondary-strong-disabled: oklch(
|
|
89
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h
|
|
90
|
+
);
|
|
85
91
|
|
|
86
92
|
--fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 1.6) calc(c * 0.4) h / 0.5);
|
|
87
|
-
--fill-secondary-weak-hover: oklch(
|
|
88
|
-
|
|
93
|
+
--fill-secondary-weak-hover: oklch(
|
|
94
|
+
from var(--secondary-500) calc(l * 1.2) calc(c * 0.4) h /
|
|
95
|
+
0.5
|
|
96
|
+
);
|
|
97
|
+
--fill-secondary-weak-disabled: oklch(
|
|
98
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
99
|
+
0.5
|
|
100
|
+
);
|
|
89
101
|
|
|
90
102
|
--fill-secondary-outlined: var(--fill-secondary-outlined);
|
|
91
|
-
--fill-secondary-outlined-hover: oklch(
|
|
92
|
-
|
|
103
|
+
--fill-secondary-outlined-hover: oklch(
|
|
104
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) h /
|
|
105
|
+
0.7
|
|
106
|
+
);
|
|
107
|
+
--fill-secondary-outlined-disabled: oklch(
|
|
108
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
109
|
+
0.7
|
|
110
|
+
);
|
|
93
111
|
|
|
94
112
|
--fill-secondary-text: transparent;
|
|
95
113
|
--fill-secondary-text-hover: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) h / 0.7);
|
|
96
|
-
--fill-secondary-text-disabled: oklch(
|
|
114
|
+
--fill-secondary-text-disabled: oklch(
|
|
115
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
116
|
+
0.7
|
|
117
|
+
);
|
|
97
118
|
|
|
98
119
|
/* Text tokens - for text/icons on top of fills */
|
|
99
120
|
--text-on-secondary-strong: black;
|
|
@@ -102,11 +123,17 @@
|
|
|
102
123
|
|
|
103
124
|
--text-on-secondary-weak: var(--secondary-900);
|
|
104
125
|
--text-on-secondary-weak-hover: oklch(from var(--secondary-900) calc(l * 1.5) calc(c * 0.5) h);
|
|
105
|
-
--text-on-secondary-weak-disabled: oklch(
|
|
126
|
+
--text-on-secondary-weak-disabled: oklch(
|
|
127
|
+
from var(--secondary-900) calc(l * 1.5) calc(c * 0.5) h
|
|
128
|
+
);
|
|
106
129
|
|
|
107
130
|
--text-on-secondary-outlined: var(--secondary-800);
|
|
108
|
-
--text-on-secondary-outlined-hover: oklch(
|
|
109
|
-
|
|
131
|
+
--text-on-secondary-outlined-hover: oklch(
|
|
132
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
133
|
+
);
|
|
134
|
+
--text-on-secondary-outlined-disabled: oklch(
|
|
135
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
136
|
+
);
|
|
110
137
|
|
|
111
138
|
--text-secondary: var(--secondary-800);
|
|
112
139
|
--text-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
@@ -186,15 +213,27 @@
|
|
|
186
213
|
|
|
187
214
|
--fill-success-weak: oklch(from var(--green-100) calc(l * 1.09) calc(c * 0.85) h / 0.5);
|
|
188
215
|
--fill-success-weak-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.5);
|
|
189
|
-
--fill-success-weak-disabled: oklch(
|
|
216
|
+
--fill-success-weak-disabled: oklch(
|
|
217
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
218
|
+
0.5
|
|
219
|
+
);
|
|
190
220
|
|
|
191
221
|
--fill-success-outlined: transparent;
|
|
192
|
-
--fill-success-outlined-hover: oklch(
|
|
193
|
-
|
|
222
|
+
--fill-success-outlined-hover: oklch(
|
|
223
|
+
from var(--green-100) calc(l * 0.975) calc(c * 0.85) h /
|
|
224
|
+
0.4
|
|
225
|
+
);
|
|
226
|
+
--fill-success-outlined-disabled: oklch(
|
|
227
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
228
|
+
0.4
|
|
229
|
+
);
|
|
194
230
|
|
|
195
231
|
--fill-success-text: transparent;
|
|
196
232
|
--fill-success-text-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.4);
|
|
197
|
-
--fill-success-text-disabled: oklch(
|
|
233
|
+
--fill-success-text-disabled: oklch(
|
|
234
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
235
|
+
0.4
|
|
236
|
+
);
|
|
198
237
|
|
|
199
238
|
/* Text tokens - for text/icons on top of fills */
|
|
200
239
|
--text-on-success-strong: white;
|
|
@@ -286,8 +325,14 @@
|
|
|
286
325
|
--fill-warning-weak-disabled: oklch(from var(--yellow-300) calc(l * 1.8) calc(c * 0.5) h / 0.7);
|
|
287
326
|
|
|
288
327
|
--fill-warning-outlined: transparent;
|
|
289
|
-
--fill-warning-outlined-hover: oklch(
|
|
290
|
-
|
|
328
|
+
--fill-warning-outlined-hover: oklch(
|
|
329
|
+
from var(--yellow-300) calc(l * 1.15) calc(c * 0.5) h /
|
|
330
|
+
0.7
|
|
331
|
+
);
|
|
332
|
+
--fill-warning-outlined-disabled: oklch(
|
|
333
|
+
from var(--yellow-300) calc(l * 1.8) calc(c * 0.5) h /
|
|
334
|
+
0.7
|
|
335
|
+
);
|
|
291
336
|
|
|
292
337
|
--fill-warning-text: transparent;
|
|
293
338
|
--fill-warning-text-hover: oklch(from var(--yellow-300) calc(l * 1.15) calc(c * 0.5) h / 0.7);
|
|
@@ -304,7 +349,9 @@
|
|
|
304
349
|
|
|
305
350
|
--text-on-warning-outlined: var(--yellow-800);
|
|
306
351
|
--text-on-warning-outlined-hover: oklch(from var(--yellow-800) calc(l * 0.9) calc(c * 0.85) h);
|
|
307
|
-
--text-on-warning-outlined-disabled: oklch(
|
|
352
|
+
--text-on-warning-outlined-disabled: oklch(
|
|
353
|
+
from var(--yellow-800) calc(l * 0.9) calc(c * 0.85) h
|
|
354
|
+
);
|
|
308
355
|
|
|
309
356
|
--text-warning: var(--yellow-700);
|
|
310
357
|
--text-warning-weak: oklch(from var(--yellow-700) calc(l * 0.6) c h);
|
|
@@ -336,7 +383,10 @@
|
|
|
336
383
|
|
|
337
384
|
--fill-danger-outlined: transparent;
|
|
338
385
|
--fill-danger-outlined-hover: oklch(from var(--red-300) calc(l * 1.65) calc(c * 0.5) h / 0.7);
|
|
339
|
-
--fill-danger-outlined-disabled: oklch(
|
|
386
|
+
--fill-danger-outlined-disabled: oklch(
|
|
387
|
+
from var(--red-300) calc(l * 1.65) calc(c * 0.5) h /
|
|
388
|
+
0.7
|
|
389
|
+
);
|
|
340
390
|
|
|
341
391
|
--fill-danger-text: transparent;
|
|
342
392
|
--fill-danger-text-hover: oklch(from var(--red-300) calc(l * 1.65) calc(c * 0.5) h / 0.7);
|
|
@@ -395,12 +445,21 @@
|
|
|
395
445
|
--fill-primary-weak-disabled: oklch(from var(--primary-500) l calc(c * 0.9) h / 0.5);
|
|
396
446
|
|
|
397
447
|
--fill-primary-outlined: transparent;
|
|
398
|
-
--fill-primary-outlined-hover: oklch(
|
|
399
|
-
|
|
448
|
+
--fill-primary-outlined-hover: oklch(
|
|
449
|
+
from var(--primary-500) calc(l * 0.9) calc(c * 0.9) h /
|
|
450
|
+
0.3
|
|
451
|
+
);
|
|
452
|
+
--fill-primary-outlined-disabled: oklch(
|
|
453
|
+
from var(--primary-500) calc(l * 0.9) calc(c * 0.9) h /
|
|
454
|
+
0.3
|
|
455
|
+
);
|
|
400
456
|
|
|
401
457
|
--fill-primary-text: transparent;
|
|
402
458
|
--fill-primary-text-hover: oklch(from var(--primary-500) calc(l * 0.9) calc(c * 0.9) h / 0.3);
|
|
403
|
-
--fill-primary-text-disabled: oklch(
|
|
459
|
+
--fill-primary-text-disabled: oklch(
|
|
460
|
+
from var(--primary-500) calc(l * 0.9) calc(c * 0.9) h /
|
|
461
|
+
0.3
|
|
462
|
+
);
|
|
404
463
|
|
|
405
464
|
/* Text tokens - for text/icons on top of fills */
|
|
406
465
|
--text-on-primary-strong: white;
|
|
@@ -439,19 +498,33 @@
|
|
|
439
498
|
/* Fill tokens - for filled variant */
|
|
440
499
|
--fill-secondary-strong: var(--secondary-500);
|
|
441
500
|
--fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
|
|
442
|
-
--fill-secondary-strong-disabled: oklch(
|
|
501
|
+
--fill-secondary-strong-disabled: oklch(
|
|
502
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h
|
|
503
|
+
);
|
|
443
504
|
|
|
444
505
|
--fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 1.1) calc(c * 0.8) h / 0.2);
|
|
445
506
|
--fill-secondary-weak-hover: oklch(from var(--secondary-500) l calc(c * 0.8) h / 0.2);
|
|
446
507
|
--fill-secondary-weak-disabled: oklch(from var(--secondary-500) l calc(c * 0.8) c h / 0.2);
|
|
447
508
|
|
|
448
509
|
--fill-secondary-outlined: transparent;
|
|
449
|
-
--fill-secondary-outlined-hover: oklch(
|
|
450
|
-
|
|
510
|
+
--fill-secondary-outlined-hover: oklch(
|
|
511
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.8) h /
|
|
512
|
+
0.1
|
|
513
|
+
);
|
|
514
|
+
--fill-secondary-outlined-disabled: oklch(
|
|
515
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.8) h /
|
|
516
|
+
0.1
|
|
517
|
+
);
|
|
451
518
|
|
|
452
519
|
--fill-secondary-text: transparent;
|
|
453
|
-
--fill-secondary-text-hover: oklch(
|
|
454
|
-
|
|
520
|
+
--fill-secondary-text-hover: oklch(
|
|
521
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.8) h /
|
|
522
|
+
0.1
|
|
523
|
+
);
|
|
524
|
+
--fill-secondary-text-disabled: oklch(
|
|
525
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.8) h /
|
|
526
|
+
0.1
|
|
527
|
+
);
|
|
455
528
|
|
|
456
529
|
/* Text tokens - for text/icons on top of fills */
|
|
457
530
|
--text-on-secondary-strong: black;
|
|
@@ -460,11 +533,17 @@
|
|
|
460
533
|
|
|
461
534
|
--text-on-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
462
535
|
--text-on-secondary-weak-hover: oklch(from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h);
|
|
463
|
-
--text-on-secondary-weak-disabled: oklch(
|
|
536
|
+
--text-on-secondary-weak-disabled: oklch(
|
|
537
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
538
|
+
);
|
|
464
539
|
|
|
465
540
|
--text-on-secondary-outlined: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
466
|
-
--text-on-secondary-outlined-hover: oklch(
|
|
467
|
-
|
|
541
|
+
--text-on-secondary-outlined-hover: oklch(
|
|
542
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
543
|
+
);
|
|
544
|
+
--text-on-secondary-outlined-disabled: oklch(
|
|
545
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
546
|
+
);
|
|
468
547
|
|
|
469
548
|
--text-secondary: var(--secondary-500);
|
|
470
549
|
--text-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
@@ -540,15 +619,27 @@
|
|
|
540
619
|
|
|
541
620
|
--fill-success-weak: oklch(from var(--green-100) calc(l * 1.09) calc(c * 0.85) h / 0.2);
|
|
542
621
|
--fill-success-weak-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.2);
|
|
543
|
-
--fill-success-weak-disabled: oklch(
|
|
622
|
+
--fill-success-weak-disabled: oklch(
|
|
623
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
624
|
+
0.2
|
|
625
|
+
);
|
|
544
626
|
|
|
545
627
|
--fill-success-outlined: transparent;
|
|
546
|
-
--fill-success-outlined-hover: oklch(
|
|
547
|
-
|
|
628
|
+
--fill-success-outlined-hover: oklch(
|
|
629
|
+
from var(--green-300) calc(l * 0.975) calc(c * 0.85) h /
|
|
630
|
+
0.2
|
|
631
|
+
);
|
|
632
|
+
--fill-success-outlined-disabled: oklch(
|
|
633
|
+
from var(--green-300) calc(l * 1.07) calc(c * 0.85) h /
|
|
634
|
+
0.2
|
|
635
|
+
);
|
|
548
636
|
|
|
549
637
|
--fill-success-text: transparent;
|
|
550
638
|
--fill-success-text-hover: oklch(from var(--green-300) calc(l * 0.975) calc(c * 0.85) h / 0.1);
|
|
551
|
-
--fill-success-text-disabled: oklch(
|
|
639
|
+
--fill-success-text-disabled: oklch(
|
|
640
|
+
from var(--green-300) calc(l * 1.07) calc(c * 0.85) h /
|
|
641
|
+
0.1
|
|
642
|
+
);
|
|
552
643
|
|
|
553
644
|
/* Text tokens - for text/icons on top of fills */
|
|
554
645
|
--text-on-success-strong: white;
|
|
@@ -635,8 +726,14 @@
|
|
|
635
726
|
--fill-warning-weak-disabled: oklch(from var(--yellow-300) calc(l * 1.8) calc(c * 0.8) h / 0.2);
|
|
636
727
|
|
|
637
728
|
--fill-warning-outlined: transparent;
|
|
638
|
-
--fill-warning-outlined-hover: oklch(
|
|
639
|
-
|
|
729
|
+
--fill-warning-outlined-hover: oklch(
|
|
730
|
+
from var(--yellow-300) calc(l * 1.15) calc(c * 0.8) h /
|
|
731
|
+
0.1
|
|
732
|
+
);
|
|
733
|
+
--fill-warning-outlined-disabled: oklch(
|
|
734
|
+
from var(--yellow-300) calc(l * 1.8) calc(c * 0.8) h /
|
|
735
|
+
0.1
|
|
736
|
+
);
|
|
640
737
|
|
|
641
738
|
--fill-warning-text: transparent;
|
|
642
739
|
--fill-warning-text-hover: oklch(from var(--yellow-300) calc(l * 1.15) calc(c * 0.8) h / 0.1);
|
|
@@ -653,7 +750,9 @@
|
|
|
653
750
|
|
|
654
751
|
--text-on-warning-outlined: var(--yellow-400);
|
|
655
752
|
--text-on-warning-outlined-hover: oklch(from var(--yellow-400) calc(l * 0.9) calc(c * 0.85) h);
|
|
656
|
-
--text-on-warning-outlined-disabled: oklch(
|
|
753
|
+
--text-on-warning-outlined-disabled: oklch(
|
|
754
|
+
from var(--yellow-400) calc(l * 0.9) calc(c * 0.85) h
|
|
755
|
+
);
|
|
657
756
|
|
|
658
757
|
--text-warning: var(--yellow-400);
|
|
659
758
|
--text-warning-weak: oklch(from var(--yellow-300) calc(l * 0.6) c h);
|
|
@@ -738,7 +837,10 @@
|
|
|
738
837
|
|
|
739
838
|
--fill-primary-outlined: transparent;
|
|
740
839
|
--fill-primary-outlined-hover: oklch(from var(--primary-500) calc(l * 2) calc(c * 0.2) h / 0.7);
|
|
741
|
-
--fill-primary-outlined-disabled: oklch(
|
|
840
|
+
--fill-primary-outlined-disabled: oklch(
|
|
841
|
+
from var(--primary-500) calc(l * 2) calc(c * 0.2) h /
|
|
842
|
+
0.7
|
|
843
|
+
);
|
|
742
844
|
|
|
743
845
|
--fill-primary-text: transparent;
|
|
744
846
|
--fill-primary-text-hover: oklch(from var(--primary-500) calc(l * 2) calc(c * 0.2) h / 0.7);
|
|
@@ -755,7 +857,9 @@
|
|
|
755
857
|
|
|
756
858
|
--text-on-primary-outlined: oklch(from var(--primary-500) calc(l * 0.7) c h);
|
|
757
859
|
--text-on-primary-outlined-hover: oklch(from var(--primary-600) calc(l * 1.5) calc(c * 0.5) h);
|
|
758
|
-
--text-on-primary-outlined-disabled: oklch(
|
|
860
|
+
--text-on-primary-outlined-disabled: oklch(
|
|
861
|
+
from var(--primary-600) calc(l * 1.5) calc(c * 0.5) h
|
|
862
|
+
);
|
|
759
863
|
|
|
760
864
|
--text-primary: var(--primary-500);
|
|
761
865
|
--text-primary-weak: oklch(from var(--primary-500) calc(l * 0.7) c h);
|
|
@@ -782,19 +886,33 @@
|
|
|
782
886
|
/* Fill tokens - for filled variant */
|
|
783
887
|
--fill-secondary-strong: var(--secondary-500);
|
|
784
888
|
--fill-secondary-strong-hover: oklch(from var(--secondary-500) calc(l * 0.95) c h);
|
|
785
|
-
--fill-secondary-strong-disabled: oklch(
|
|
889
|
+
--fill-secondary-strong-disabled: oklch(
|
|
890
|
+
from var(--secondary-500) calc(l * 1.1) calc(c * 0.85) h
|
|
891
|
+
);
|
|
786
892
|
|
|
787
893
|
--fill-secondary-weak: oklch(from var(--secondary-500) calc(l * 1.6) calc(c * 0.4) h / 0.5);
|
|
788
894
|
--fill-secondary-weak-hover: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) h / 0.5);
|
|
789
|
-
--fill-secondary-weak-disabled: oklch(
|
|
895
|
+
--fill-secondary-weak-disabled: oklch(
|
|
896
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
897
|
+
0.5
|
|
898
|
+
);
|
|
790
899
|
|
|
791
900
|
--fill-secondary-outlined: transparent;
|
|
792
|
-
--fill-secondary-outlined-hover: oklch(
|
|
793
|
-
|
|
901
|
+
--fill-secondary-outlined-hover: oklch(
|
|
902
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) h /
|
|
903
|
+
0.7
|
|
904
|
+
);
|
|
905
|
+
--fill-secondary-outlined-disabled: oklch(
|
|
906
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
907
|
+
0.7
|
|
908
|
+
);
|
|
794
909
|
|
|
795
910
|
--fill-secondary-text: transparent;
|
|
796
911
|
--fill-secondary-text-hover: oklch(from var(--secondary-500) calc(l * 2) calc(c * 0.4) h / 0.7);
|
|
797
|
-
--fill-secondary-text-disabled: oklch(
|
|
912
|
+
--fill-secondary-text-disabled: oklch(
|
|
913
|
+
from var(--secondary-500) calc(l * 2) calc(c * 0.4) c h /
|
|
914
|
+
0.7
|
|
915
|
+
);
|
|
798
916
|
|
|
799
917
|
/* Text tokens - for text/icons on top of fills */
|
|
800
918
|
--text-on-secondary-strong: black;
|
|
@@ -803,11 +921,17 @@
|
|
|
803
921
|
|
|
804
922
|
--text-on-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
805
923
|
--text-on-secondary-weak-hover: oklch(from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h);
|
|
806
|
-
--text-on-secondary-weak-disabled: oklch(
|
|
924
|
+
--text-on-secondary-weak-disabled: oklch(
|
|
925
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
926
|
+
);
|
|
807
927
|
|
|
808
928
|
--text-on-secondary-outlined: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
809
|
-
--text-on-secondary-outlined-hover: oklch(
|
|
810
|
-
|
|
929
|
+
--text-on-secondary-outlined-hover: oklch(
|
|
930
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
931
|
+
);
|
|
932
|
+
--text-on-secondary-outlined-disabled: oklch(
|
|
933
|
+
from var(--secondary-950) calc(l * 1.5) calc(c * 0.5) h
|
|
934
|
+
);
|
|
811
935
|
|
|
812
936
|
--text-secondary: var(--secondary-500);
|
|
813
937
|
--text-secondary-weak: oklch(from var(--secondary-500) calc(l * 0.7) c h);
|
|
@@ -883,15 +1007,27 @@
|
|
|
883
1007
|
|
|
884
1008
|
--fill-success-weak: oklch(from var(--green-100) calc(l * 1.09) calc(c * 0.85) h / 0.7);
|
|
885
1009
|
--fill-success-weak-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.7);
|
|
886
|
-
--fill-success-weak-disabled: oklch(
|
|
1010
|
+
--fill-success-weak-disabled: oklch(
|
|
1011
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
1012
|
+
0.7
|
|
1013
|
+
);
|
|
887
1014
|
|
|
888
1015
|
--fill-success-outlined: transparent;
|
|
889
|
-
--fill-success-outlined-hover: oklch(
|
|
890
|
-
|
|
1016
|
+
--fill-success-outlined-hover: oklch(
|
|
1017
|
+
from var(--green-100) calc(l * 0.975) calc(c * 0.85) h /
|
|
1018
|
+
0.7
|
|
1019
|
+
);
|
|
1020
|
+
--fill-success-outlined-disabled: oklch(
|
|
1021
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
1022
|
+
0.7
|
|
1023
|
+
);
|
|
891
1024
|
|
|
892
1025
|
--fill-success-text: transparent;
|
|
893
1026
|
--fill-success-text-hover: oklch(from var(--green-100) calc(l * 0.975) calc(c * 0.85) h / 0.7);
|
|
894
|
-
--fill-success-text-disabled: oklch(
|
|
1027
|
+
--fill-success-text-disabled: oklch(
|
|
1028
|
+
from var(--green-100) calc(l * 1.07) calc(c * 0.85) h /
|
|
1029
|
+
0.7
|
|
1030
|
+
);
|
|
895
1031
|
|
|
896
1032
|
/* Text tokens - for text/icons on top of fills */
|
|
897
1033
|
--text-on-success-strong: white;
|
|
@@ -983,8 +1119,14 @@
|
|
|
983
1119
|
--fill-warning-weak-disabled: oklch(from var(--yellow-300) calc(l * 1.8) calc(c * 0.5) h / 0.7);
|
|
984
1120
|
|
|
985
1121
|
--fill-warning-outlined: transparent;
|
|
986
|
-
--fill-warning-outlined-hover: oklch(
|
|
987
|
-
|
|
1122
|
+
--fill-warning-outlined-hover: oklch(
|
|
1123
|
+
from var(--yellow-300) calc(l * 1.15) calc(c * 0.5) h /
|
|
1124
|
+
0.7
|
|
1125
|
+
);
|
|
1126
|
+
--fill-warning-outlined-disabled: oklch(
|
|
1127
|
+
from var(--yellow-300) calc(l * 1.8) calc(c * 0.5) h /
|
|
1128
|
+
0.7
|
|
1129
|
+
);
|
|
988
1130
|
|
|
989
1131
|
--fill-warning-text: transparent;
|
|
990
1132
|
--fill-warning-text-hover: oklch(from var(--yellow-300) calc(l * 1.15) calc(c * 0.5) h / 0.7);
|
|
@@ -1033,7 +1175,10 @@
|
|
|
1033
1175
|
|
|
1034
1176
|
--fill-danger-outlined: transparent;
|
|
1035
1177
|
--fill-danger-outlined-hover: oklch(from var(--red-300) calc(l * 1.65) calc(c * 0.5) h / 0.7);
|
|
1036
|
-
--fill-danger-outlined-disabled: oklch(
|
|
1178
|
+
--fill-danger-outlined-disabled: oklch(
|
|
1179
|
+
from var(--red-300) calc(l * 1.65) calc(c * 0.5) h /
|
|
1180
|
+
0.7
|
|
1181
|
+
);
|
|
1037
1182
|
|
|
1038
1183
|
--fill-danger-text: transparent;
|
|
1039
1184
|
--fill-danger-text-hover: oklch(from var(--red-300) calc(l * 1.65) calc(c * 0.5) h / 0.7);
|
|
@@ -1068,4 +1213,4 @@
|
|
|
1068
1213
|
--gradient-danger-foreground: white;
|
|
1069
1214
|
--gradient-danger-disabled: oklch(from var(--red-700) calc(l * 1.2) calc(c * 0.85) h);
|
|
1070
1215
|
}
|
|
1071
|
-
}
|
|
1216
|
+
}
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
--foreground: var(--gray-900);
|
|
89
89
|
--shadow: var(--shadow-md);
|
|
90
90
|
--loader-color: currentColor;
|
|
91
|
-
;
|
|
92
91
|
|
|
93
92
|
/* SURFACE TOKENS (Force Light Mode)
|
|
94
93
|
----------------------------------------------------------------- */
|
|
@@ -113,4 +112,4 @@
|
|
|
113
112
|
--surface-panel-scrollbar: var(--gray-50);
|
|
114
113
|
--surface-panel-scrollbar-thumb: var(--primary-100);
|
|
115
114
|
}
|
|
116
|
-
}
|
|
115
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
|
|
5
4
|
.container,
|
|
6
5
|
:global(.infonomic-datepicker-container) {
|
|
7
6
|
position: relative;
|
|
@@ -205,4 +204,4 @@
|
|
|
205
204
|
transform: translateX(0);
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
|
-
}
|
|
207
|
+
}
|
|
@@ -39,7 +39,7 @@ export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElem
|
|
|
39
39
|
inputWrapperClassName?: string
|
|
40
40
|
inputClassName?: string
|
|
41
41
|
intent?: Intent
|
|
42
|
-
containerClassName?: string
|
|
42
|
+
containerClassName?: string
|
|
43
43
|
contentClassName?: string
|
|
44
44
|
helpText?: string
|
|
45
45
|
errorText?: string
|
|
@@ -70,8 +70,8 @@ export function DatePicker({
|
|
|
70
70
|
inputWrapperClassName,
|
|
71
71
|
containerClassName,
|
|
72
72
|
contentClassName,
|
|
73
|
-
onClear = () => {
|
|
74
|
-
onDateChange = () => {
|
|
73
|
+
onClear = () => {},
|
|
74
|
+
onDateChange = () => {},
|
|
75
75
|
validatorFn,
|
|
76
76
|
helpText,
|
|
77
77
|
errorText,
|
|
@@ -149,7 +149,11 @@ export function DatePicker({
|
|
|
149
149
|
inputSize={inputSize}
|
|
150
150
|
ref={inputRef}
|
|
151
151
|
className={cx('infonomic-datepicker-input', styles.input, inputClassName)}
|
|
152
|
-
inputWrapperClassName={cx(
|
|
152
|
+
inputWrapperClassName={cx(
|
|
153
|
+
'infonomic-datepicker-input-wrapper',
|
|
154
|
+
styles['input-wrapper'],
|
|
155
|
+
inputWrapperClassName
|
|
156
|
+
)}
|
|
153
157
|
onKeyDown={handleOnKeyDown}
|
|
154
158
|
onClick={(e) => {
|
|
155
159
|
e.preventDefault()
|
|
@@ -200,8 +204,16 @@ export function DatePicker({
|
|
|
200
204
|
</div>
|
|
201
205
|
</Popover.Trigger>
|
|
202
206
|
<Popover.Portal>
|
|
203
|
-
<Popover.Content
|
|
204
|
-
|
|
207
|
+
<Popover.Content
|
|
208
|
+
sideOffset={5}
|
|
209
|
+
className={cx('infonomic-datepicker-content', styles.content, contentClassName)}
|
|
210
|
+
>
|
|
211
|
+
<div
|
|
212
|
+
className={cx(
|
|
213
|
+
'infonomic-datepicker-content-components',
|
|
214
|
+
styles['content-components']
|
|
215
|
+
)}
|
|
216
|
+
>
|
|
205
217
|
<div ref={calendarRef}>
|
|
206
218
|
<Calendar
|
|
207
219
|
mode="single"
|
|
@@ -224,11 +236,11 @@ export function DatePicker({
|
|
|
224
236
|
}}
|
|
225
237
|
startMonth={new Date(new Date().getFullYear() - yearsInPast, 0)}
|
|
226
238
|
endMonth={new Date(new Date().getFullYear() + yearsInFuture, 0)}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
239
|
+
// TODO: add props
|
|
240
|
+
// disabled={(date) =>
|
|
241
|
+
// Number(date) < Date.now() - 1000 * 60 * 60 * 24 ||
|
|
242
|
+
// Number(date) > Date.now() + 1000 * 60 * 60 * 24 * 30
|
|
243
|
+
// }
|
|
232
244
|
/>
|
|
233
245
|
</div>
|
|
234
246
|
{mode === 'datetime' && (
|
|
@@ -270,16 +282,26 @@ export function DatePicker({
|
|
|
270
282
|
</div>
|
|
271
283
|
)}
|
|
272
284
|
</div>
|
|
273
|
-
<div
|
|
285
|
+
<div
|
|
286
|
+
className={cx(
|
|
287
|
+
'infonomic-datepicker-status-and-actions',
|
|
288
|
+
styles['status-and-actions']
|
|
289
|
+
)}
|
|
290
|
+
>
|
|
274
291
|
<div className={cx('infonomic-datepicker-content-status', styles['content-status'])}>
|
|
275
292
|
{date ? format(date, mode === 'datetime' ? 'PPPp' : 'PPP') : 'No date selected'}
|
|
276
293
|
</div>
|
|
277
|
-
<div
|
|
294
|
+
<div
|
|
295
|
+
className={cx('infonomic-datepicker-content-actions', styles['content-actions'])}
|
|
296
|
+
>
|
|
278
297
|
<div>
|
|
279
298
|
<Button
|
|
280
299
|
variant="outlined"
|
|
281
300
|
size="sm"
|
|
282
|
-
className={cx(
|
|
301
|
+
className={cx(
|
|
302
|
+
'infonomic-datepicker-content-actions-button',
|
|
303
|
+
styles['content-actions-button']
|
|
304
|
+
)}
|
|
283
305
|
onClick={() => {
|
|
284
306
|
const today = new Date()
|
|
285
307
|
setDate(today)
|
|
@@ -294,7 +316,10 @@ export function DatePicker({
|
|
|
294
316
|
<Button
|
|
295
317
|
size="sm"
|
|
296
318
|
intent="noeffect"
|
|
297
|
-
className={cx(
|
|
319
|
+
className={cx(
|
|
320
|
+
'infonomic-datepicker-content-actions-button',
|
|
321
|
+
styles['content-actions-button']
|
|
322
|
+
)}
|
|
298
323
|
onClick={() => {
|
|
299
324
|
setIsOpen(false)
|
|
300
325
|
}}
|
|
@@ -304,7 +329,10 @@ export function DatePicker({
|
|
|
304
329
|
<Button
|
|
305
330
|
variant="outlined"
|
|
306
331
|
size="sm"
|
|
307
|
-
className={cx(
|
|
332
|
+
className={cx(
|
|
333
|
+
'infonomic-datepicker-content-actions-button',
|
|
334
|
+
styles['content-actions-button']
|
|
335
|
+
)}
|
|
308
336
|
onClick={() => {
|
|
309
337
|
setIsOpen(false)
|
|
310
338
|
handleOnDateChange(date)
|
|
@@ -20,7 +20,12 @@ export function DrawerContainer({
|
|
|
20
20
|
ref?: React.RefObject<HTMLDivElement>
|
|
21
21
|
}) {
|
|
22
22
|
return (
|
|
23
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
ref={ref}
|
|
25
|
+
role="dialog"
|
|
26
|
+
className={cx('infonomic-drawer-container', styles['drawer-container'], className)}
|
|
27
|
+
{...rest}
|
|
28
|
+
>
|
|
24
29
|
{children}
|
|
25
30
|
</div>
|
|
26
31
|
)
|
|
@@ -20,7 +20,11 @@ export function DrawerContent({
|
|
|
20
20
|
ref?: React.RefObject<HTMLDivElement>
|
|
21
21
|
}) {
|
|
22
22
|
return (
|
|
23
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
ref={ref}
|
|
25
|
+
{...rest}
|
|
26
|
+
className={cx('infonomic-drawer-content', styles['drawer-content'], className)}
|
|
27
|
+
>
|
|
24
28
|
{children}
|
|
25
29
|
</div>
|
|
26
30
|
)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
|
|
5
4
|
.drawer-wrapper,
|
|
6
5
|
:global(.infonomic-drawer-wrapper) {
|
|
7
6
|
position: fixed;
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
@media (min-width: 48rem) {
|
|
56
|
-
|
|
57
55
|
.drawer-depth-0.drawer-medium .drawer-container,
|
|
58
56
|
:global(.infonomic-drawer-depth-0.drawer-medium .drawer-container) {
|
|
59
57
|
width: 600px;
|
|
@@ -129,4 +127,4 @@
|
|
|
129
127
|
opacity: 1;
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
|
-
}
|
|
130
|
+
}
|
|
@@ -20,7 +20,11 @@ export const ModalActions = function ModalActions({
|
|
|
20
20
|
ref?: React.RefObject<HTMLDivElement>
|
|
21
21
|
}) {
|
|
22
22
|
return (
|
|
23
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
ref={ref}
|
|
25
|
+
{...rest}
|
|
26
|
+
className={cx('infonomic-modal-actions', styles['modal-actions'], className)}
|
|
27
|
+
>
|
|
24
28
|
{children}
|
|
25
29
|
</div>
|
|
26
30
|
)
|