@infonomic/uikit 5.27.0 → 5.28.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/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion.module.css +11 -5
- package/dist/components/accordion/accordion_module.css +7 -7
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +5 -4
- package/dist/components/avatar/avatar.module.css +17 -11
- package/dist/components/avatar/avatar_module.css +6 -6
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.module.css +8 -8
- package/dist/components/badge/badge_module.css +8 -8
- package/dist/components/button/button-group.module.css +5 -3
- package/dist/components/button/button-group_module.css +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.module.css +50 -50
- package/dist/components/button/button_module.css +38 -38
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons.module.css +6 -2
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/copy-button.module.css +14 -13
- package/dist/components/button/copy-button_module.css +7 -7
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card.module.css +10 -10
- package/dist/components/card/card_module.css +10 -10
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip.module.css +49 -45
- package/dist/components/chips/chip_module.css +35 -35
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container.module.css +14 -10
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown.module.css +18 -11
- package/dist/components/dropdown/dropdown_module.css +8 -9
- package/dist/components/forms/checkbox.js +5 -5
- package/dist/components/forms/checkbox.module.css +62 -33
- package/dist/components/forms/checkbox_module.css +26 -26
- package/dist/components/forms/error-text.module.css +8 -7
- package/dist/components/forms/error-text_module.css +1 -1
- package/dist/components/forms/help-text.js +1 -1
- package/dist/components/forms/help-text.module.css +8 -7
- package/dist/components/forms/help-text_module.css +1 -1
- package/dist/components/forms/input-adornment.js +1 -1
- package/dist/components/forms/input-adornment.module.css +10 -9
- package/dist/components/forms/input-adornment_module.css +3 -3
- package/dist/components/forms/input.js +5 -5
- package/dist/components/forms/input.module.css +50 -49
- package/dist/components/forms/input_module.css +37 -37
- package/dist/components/forms/label.module.css +9 -8
- package/dist/components/forms/label_module.css +2 -2
- package/dist/components/forms/radio-group.js +1 -1
- package/dist/components/forms/radio-group.module.css +44 -24
- package/dist/components/forms/radio-group_module.css +42 -15
- package/dist/components/forms/select.js +3 -3
- package/dist/components/forms/select.module.css +23 -14
- package/dist/components/forms/select_module.css +17 -6
- package/dist/components/forms/text-area.js +1 -1
- package/dist/components/forms/text-area.module.css +12 -12
- package/dist/components/forms/text-area_module.css +2 -2
- package/dist/components/notifications/alert.js +10 -10
- package/dist/components/notifications/alert.module.css +39 -22
- package/dist/components/notifications/alert_module.css +19 -15
- package/dist/components/notifications/toast.js +5 -5
- package/dist/components/notifications/toast.module.css +53 -24
- package/dist/components/notifications/toast_module.css +66 -13
- package/dist/components/overlay/overlay.module.css +14 -6
- package/dist/components/overlay/overlay_module.css +4 -4
- package/dist/components/pager/pagination.js +2 -2
- package/dist/components/pager/pagination.module.css +12 -11
- package/dist/components/pager/pagination_module.css +18 -2
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +7 -7
- package/dist/components/scroll-area/scroll-area.module.css +17 -11
- package/dist/components/scroll-area/scroll-area_module.css +9 -9
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/scroll-to-top/scroll-to-top.module.css +16 -14
- package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
- package/dist/components/section/section.d.ts.map +1 -1
- package/dist/components/section/section.js +1 -1
- package/dist/components/section/section.module.css +8 -7
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer.module.css +14 -6
- package/dist/components/shimmer/shimmer_module.css +6 -6
- package/dist/components/table/table.js +8 -8
- package/dist/components/table/table.module.css +29 -14
- package/dist/components/table/table_module.css +25 -13
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/tabs/tabs.module.css +15 -10
- package/dist/components/tabs/tabs_module.css +9 -9
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +3 -2
- package/dist/components/tooltip/tooltip.module.css +11 -10
- package/dist/components/tooltip/tooltip_module.css +2 -2
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/widgets/datepicker/datepicker.module.css +2 -2
- package/dist/widgets/datepicker/datepicker.module.js +0 -1
- package/dist/widgets/datepicker/datepicker_module.css +1 -1
- package/dist/widgets/drawer/drawer-container.js +1 -1
- package/dist/widgets/drawer/drawer-content.js +1 -1
- package/dist/widgets/drawer/drawer-header.js +1 -1
- package/dist/widgets/drawer/drawer-top-actions.js +1 -1
- package/dist/widgets/drawer/drawer-wrapper.js +1 -1
- package/dist/widgets/drawer/drawer.module.css +37 -16
- package/dist/widgets/drawer/drawer_module.css +63 -5
- package/dist/widgets/modal/modal-actions.js +1 -1
- package/dist/widgets/modal/modal-container.js +1 -1
- package/dist/widgets/modal/modal-content.js +1 -1
- package/dist/widgets/modal/modal-header.js +1 -1
- package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
- package/dist/widgets/modal/modal-wrapper.js +2 -1
- package/dist/widgets/modal/modal.module.css +18 -8
- package/dist/widgets/modal/modal_module.css +14 -6
- package/dist/widgets/timeline/timeline.module.css +28 -16
- package/dist/widgets/timeline/timeline_module.css +15 -9
- package/package.json +17 -17
- package/src/components/accordion/accordion.module.css +11 -5
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/components/avatar/avatar.module.css +17 -11
- package/src/components/avatar/avatar.tsx +5 -4
- package/src/components/badge/badge.module.css +8 -8
- package/src/components/badge/badge.tsx +1 -1
- package/src/components/button/button-group.module.css +5 -3
- package/src/components/button/button.module.css +50 -50
- package/src/components/button/button.tsx +5 -5
- package/src/components/button/control-buttons.module.css +6 -2
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +14 -13
- package/src/components/button/copy-button.tsx +6 -2
- package/src/components/card/card.module.css +10 -10
- package/src/components/card/card.tsx +6 -6
- package/src/components/chips/chip.module.css +49 -45
- package/src/components/chips/chip.tsx +10 -10
- package/src/components/container/container.module.css +14 -10
- package/src/components/container/container.tsx +2 -2
- package/src/components/dropdown/dropdown.module.css +18 -11
- package/src/components/dropdown/dropdown.tsx +8 -8
- package/src/components/forms/checkbox.module.css +62 -33
- package/src/components/forms/checkbox.tsx +8 -8
- package/src/components/forms/error-text.module.css +8 -7
- package/src/components/forms/help-text.module.css +8 -7
- package/src/components/forms/help-text.tsx +1 -1
- package/src/components/forms/input-adornment.module.css +10 -9
- package/src/components/forms/input-adornment.tsx +2 -2
- package/src/components/forms/input.module.css +50 -49
- package/src/components/forms/input.tsx +8 -8
- package/src/components/forms/label.module.css +9 -8
- package/src/components/forms/radio-group.module.css +44 -24
- package/src/components/forms/radio-group.tsx +1 -1
- package/src/components/forms/select.module.css +23 -14
- package/src/components/forms/select.tsx +3 -3
- package/src/components/forms/text-area.module.css +12 -12
- package/src/components/forms/text-area.tsx +3 -3
- package/src/components/notifications/alert.module.css +39 -22
- package/src/components/notifications/alert.tsx +10 -10
- package/src/components/notifications/toast.module.css +53 -24
- package/src/components/notifications/toast.tsx +5 -5
- package/src/components/overlay/overlay.module.css +14 -6
- package/src/components/pager/pagination.module.css +12 -11
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +17 -11
- package/src/components/scroll-area/scroll-area.tsx +8 -8
- package/src/components/scroll-to-top/scroll-to-top.module.css +16 -14
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +8 -7
- package/src/components/section/section.tsx +2 -2
- package/src/components/shimmer/shimmer.module.css +14 -6
- package/src/components/table/table.module.css +29 -14
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +15 -10
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +11 -10
- package/src/components/tooltip/tooltip.tsx +5 -2
- package/src/styles/components/loaders.css +1 -1
- package/src/widgets/datepicker/datepicker.module.css +2 -2
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer-wrapper.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +37 -16
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal-wrapper.tsx +2 -1
- package/src/widgets/modal/modal.module.css +18 -8
- package/src/widgets/timeline/timeline.module.css +28 -16
|
@@ -1,12 +1,14 @@
|
|
|
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
|
+
.alert,
|
|
11
|
+
:global(.infonomic-alert) {
|
|
10
12
|
display: flex;
|
|
11
13
|
align-items: start;
|
|
12
14
|
width: 100%;
|
|
@@ -22,13 +24,15 @@
|
|
|
22
24
|
margin-bottom: 1rem;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
.alert-with-title
|
|
27
|
+
.alert-with-title,
|
|
28
|
+
:global(.infonomic-alert-with-title) {
|
|
26
29
|
display: flex;
|
|
27
30
|
flex-direction: column;
|
|
28
31
|
width: 100%;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
.icon
|
|
34
|
+
.icon,
|
|
35
|
+
:global(.infonomic-alert-icon) {
|
|
32
36
|
display: flex;
|
|
33
37
|
align-items: center;
|
|
34
38
|
justify-content: center;
|
|
@@ -38,7 +42,8 @@
|
|
|
38
42
|
height: 24px;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
|
-
.close
|
|
45
|
+
.close,
|
|
46
|
+
:global(.infonomic-alert-close) {
|
|
42
47
|
display: flex;
|
|
43
48
|
align-items: center;
|
|
44
49
|
justify-content: center;
|
|
@@ -52,12 +57,14 @@
|
|
|
52
57
|
margin-top: -2px;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
|
-
.fade
|
|
60
|
+
.fade,
|
|
61
|
+
:global(.infonomic-alert-fade) {
|
|
56
62
|
opacity: 0;
|
|
57
63
|
transition: opacity 0.4s ease-in-out;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
|
-
.header
|
|
66
|
+
.header,
|
|
67
|
+
:global(.infonomic-alert-header) {
|
|
61
68
|
display: flex;
|
|
62
69
|
align-items: start;
|
|
63
70
|
width: 100%;
|
|
@@ -65,7 +72,8 @@
|
|
|
65
72
|
gap: var(--gap-2);
|
|
66
73
|
}
|
|
67
74
|
|
|
68
|
-
.title
|
|
75
|
+
.title,
|
|
76
|
+
:global(.infonomic-alert-title) {
|
|
69
77
|
display: flex;
|
|
70
78
|
font-weight: bold;
|
|
71
79
|
font-size: 1.2rem;
|
|
@@ -73,48 +81,57 @@
|
|
|
73
81
|
padding-top: 1px;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
|
-
.content
|
|
84
|
+
.content,
|
|
85
|
+
:global(.infonomic-alert-content) {
|
|
77
86
|
padding-top: 1px;
|
|
78
87
|
font-size: var(--font-size-sm);
|
|
79
88
|
}
|
|
80
89
|
|
|
81
|
-
.content:first-child
|
|
90
|
+
.content:first-child,
|
|
91
|
+
:global(.infonomic-alert-content:first-child) {
|
|
82
92
|
margin-top: 0;
|
|
83
93
|
}
|
|
84
94
|
|
|
85
95
|
/* Intents */
|
|
86
|
-
.primary
|
|
96
|
+
.primary,
|
|
97
|
+
:global(.infonomic-alert-primary) {
|
|
87
98
|
--alert-border: var(--stroke-primary);
|
|
88
99
|
--alert-background: var(--fill-primary-weak);
|
|
89
100
|
}
|
|
90
101
|
|
|
91
|
-
.secondary
|
|
102
|
+
.secondary,
|
|
103
|
+
:global(.infonomic-alert-secondary) {
|
|
92
104
|
--alert-border: var(--stroke-secondary);
|
|
93
105
|
--alert-background: var(--fill-secondary-weak);
|
|
94
106
|
}
|
|
95
107
|
|
|
96
|
-
.noeffect
|
|
108
|
+
.noeffect,
|
|
109
|
+
:global(.infonomic-alert-noeffect) {
|
|
97
110
|
--alert-border: var(--stroke-noeffect);
|
|
98
111
|
--alert-background: var(--fill-noeffect-weak);
|
|
99
112
|
}
|
|
100
113
|
|
|
101
|
-
.success
|
|
114
|
+
.success,
|
|
115
|
+
:global(.infonomic-alert-success) {
|
|
102
116
|
--alert-border: var(--stroke-success);
|
|
103
117
|
--alert-background: var(--fill-success-weak);
|
|
104
118
|
}
|
|
105
119
|
|
|
106
|
-
.info
|
|
120
|
+
.info,
|
|
121
|
+
:global(.infonomic-alert-info) {
|
|
107
122
|
--alert-border: var(--stroke-info);
|
|
108
123
|
--alert-background: var(--fill-info-weak);
|
|
109
124
|
}
|
|
110
125
|
|
|
111
|
-
.warning
|
|
126
|
+
.warning,
|
|
127
|
+
:global(.infonomic-alert-warning) {
|
|
112
128
|
--alert-border: var(--stroke-warning);
|
|
113
129
|
--alert-background: var(--fill-warning-weak);
|
|
114
130
|
}
|
|
115
131
|
|
|
116
|
-
.danger
|
|
132
|
+
.danger,
|
|
133
|
+
:global(.infonomic-alert-danger) {
|
|
117
134
|
--alert-border: var(--stroke-danger);
|
|
118
135
|
--alert-background: var(--fill-danger-weak);
|
|
119
136
|
}
|
|
120
|
-
}
|
|
137
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
.alert-dXimWG {
|
|
4
|
+
:is(.alert-dXimWG, .infonomic-alert) {
|
|
5
5
|
align-items: start;
|
|
6
6
|
gap: var(--gap-2);
|
|
7
7
|
border-radius: var(--border-radius-md);
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
display: flex;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.alert-with-title-SylcSu {
|
|
20
|
+
:is(.alert-with-title-SylcSu, .infonomic-alert-with-title) {
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
width: 100%;
|
|
23
23
|
display: flex;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.icon-RcHAGq {
|
|
26
|
+
:is(.icon-RcHAGq, .infonomic-alert-icon) {
|
|
27
27
|
justify-content: center;
|
|
28
28
|
align-items: center;
|
|
29
29
|
width: 24px;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
display: flex;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.close-BUVZO7 {
|
|
36
|
+
:is(.close-BUVZO7, .infonomic-alert-close) {
|
|
37
37
|
border-radius: 100%;
|
|
38
38
|
justify-content: center;
|
|
39
39
|
align-items: center;
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.fade-VGuhOJ {
|
|
50
|
+
:is(.fade-VGuhOJ, .infonomic-alert-fade) {
|
|
51
51
|
opacity: 0;
|
|
52
52
|
transition: opacity .4s ease-in-out;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.header-y_AKgG {
|
|
55
|
+
:is(.header-y_AKgG, .infonomic-alert-header) {
|
|
56
56
|
width: 100%;
|
|
57
57
|
margin-bottom: var(--spacing-8);
|
|
58
58
|
align-items: start;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
display: flex;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.title-M6aCqW {
|
|
63
|
+
:is(.title-M6aCqW, .infonomic-alert-title) {
|
|
64
64
|
padding-top: 1px;
|
|
65
65
|
font-size: 1.2rem;
|
|
66
66
|
font-weight: bold;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
display: flex;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.content-oyoXMS {
|
|
71
|
+
:is(.content-oyoXMS, .infonomic-alert-content) {
|
|
72
72
|
font-size: var(--font-size-sm);
|
|
73
73
|
padding-top: 1px;
|
|
74
74
|
}
|
|
@@ -77,37 +77,41 @@
|
|
|
77
77
|
margin-top: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
.infonomic-alert-content:first-child {
|
|
81
|
+
margin-top: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:is(.primary-Y1uhvt, .infonomic-alert-primary) {
|
|
81
85
|
--alert-border: var(--stroke-primary);
|
|
82
86
|
--alert-background: var(--fill-primary-weak);
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
.secondary-A_6wDq {
|
|
89
|
+
:is(.secondary-A_6wDq, .infonomic-alert-secondary) {
|
|
86
90
|
--alert-border: var(--stroke-secondary);
|
|
87
91
|
--alert-background: var(--fill-secondary-weak);
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
.noeffect-4mzRDQ {
|
|
94
|
+
:is(.noeffect-4mzRDQ, .infonomic-alert-noeffect) {
|
|
91
95
|
--alert-border: var(--stroke-noeffect);
|
|
92
96
|
--alert-background: var(--fill-noeffect-weak);
|
|
93
97
|
}
|
|
94
98
|
|
|
95
|
-
.success-FCgDMo {
|
|
99
|
+
:is(.success-FCgDMo, .infonomic-alert-success) {
|
|
96
100
|
--alert-border: var(--stroke-success);
|
|
97
101
|
--alert-background: var(--fill-success-weak);
|
|
98
102
|
}
|
|
99
103
|
|
|
100
|
-
.info-KZnWBW {
|
|
104
|
+
:is(.info-KZnWBW, .infonomic-alert-info) {
|
|
101
105
|
--alert-border: var(--stroke-info);
|
|
102
106
|
--alert-background: var(--fill-info-weak);
|
|
103
107
|
}
|
|
104
108
|
|
|
105
|
-
.warning-UtouDH {
|
|
109
|
+
:is(.warning-UtouDH, .infonomic-alert-warning) {
|
|
106
110
|
--alert-border: var(--stroke-warning);
|
|
107
111
|
--alert-background: var(--fill-warning-weak);
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
.danger-QFtDqI {
|
|
114
|
+
:is(.danger-QFtDqI, .infonomic-alert-danger) {
|
|
111
115
|
--alert-border: var(--stroke-danger);
|
|
112
116
|
--alert-background: var(--fill-danger-weak);
|
|
113
117
|
}
|
|
@@ -30,12 +30,12 @@ const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right
|
|
|
30
30
|
};
|
|
31
31
|
return /*#__PURE__*/ jsxs(external_radix_ui_Toast.Root, {
|
|
32
32
|
ref: mergedRef,
|
|
33
|
-
className: classnames('toast', toast_module.root, toast_module[position]),
|
|
33
|
+
className: classnames('infonomic-toast', toast_module.root, toast_module[position]),
|
|
34
34
|
open: open,
|
|
35
35
|
onOpenChange: onOpenChange,
|
|
36
36
|
children: [
|
|
37
37
|
/*#__PURE__*/ jsxs("div", {
|
|
38
|
-
className: classnames('toast-header', toast_module.header),
|
|
38
|
+
className: classnames('infonomic-toast-header', toast_module.header),
|
|
39
39
|
children: [
|
|
40
40
|
/*#__PURE__*/ jsx("time", {
|
|
41
41
|
dateTime: eventDateRef.current.toISOString(),
|
|
@@ -54,7 +54,7 @@ const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right
|
|
|
54
54
|
tabIndex: 0,
|
|
55
55
|
variant: "filled",
|
|
56
56
|
"aria-label": "Close",
|
|
57
|
-
className: toast_module.close,
|
|
57
|
+
className: classnames('infonomic-toast-close', toast_module.close),
|
|
58
58
|
type: "button",
|
|
59
59
|
onClick: handleOnClose,
|
|
60
60
|
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
@@ -66,14 +66,14 @@ const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right
|
|
|
66
66
|
]
|
|
67
67
|
}),
|
|
68
68
|
/*#__PURE__*/ jsxs(external_radix_ui_Toast.Title, {
|
|
69
|
-
className: classnames('toast-title', toast_module.title),
|
|
69
|
+
className: classnames('infonomic-toast-title', toast_module.title),
|
|
70
70
|
children: [
|
|
71
71
|
null != icon && /*#__PURE__*/ jsx(Icon, {}),
|
|
72
72
|
title
|
|
73
73
|
]
|
|
74
74
|
}),
|
|
75
75
|
/*#__PURE__*/ jsx(external_radix_ui_Toast.Description, {
|
|
76
|
-
className: classnames("toast-description", toast_module.description),
|
|
76
|
+
className: classnames("infonomic-toast-description", toast_module.description),
|
|
77
77
|
children: message
|
|
78
78
|
})
|
|
79
79
|
]
|
|
@@ -9,7 +9,8 @@ infonomic-components;
|
|
|
9
9
|
/* Positions are relative to the toast viewport which is set
|
|
10
10
|
globally in components/toast.css */
|
|
11
11
|
|
|
12
|
-
.root
|
|
12
|
+
.root,
|
|
13
|
+
:global(.infonomic-toast-root) {
|
|
13
14
|
position: absolute;
|
|
14
15
|
display: flex;
|
|
15
16
|
flex-direction: column;
|
|
@@ -26,39 +27,50 @@ infonomic-components;
|
|
|
26
27
|
|
|
27
28
|
:global(.dark),
|
|
28
29
|
:global([data-theme="dark"]) {
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
.root,
|
|
32
|
+
:global(.infonomic-toast-root) {
|
|
30
33
|
background: var(--canvas-800);
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
.root[data-state="open"]
|
|
37
|
+
.root[data-state="open"],
|
|
38
|
+
:global(.infonomic-toast-root[data-state="open"]) {
|
|
35
39
|
animation: slideInFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
.root[data-state="closed"]
|
|
42
|
+
.root[data-state="closed"],
|
|
43
|
+
:global(.infonomic-toast-root[data-state="closed"]) {
|
|
39
44
|
animation: hide 100ms ease-in;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
.root[data-swipe="move"]
|
|
47
|
+
.root[data-swipe="move"],
|
|
48
|
+
:global(.infonomic-toast-root[data-swipe="move"]) {
|
|
43
49
|
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
.root[data-swipe="cancel"]
|
|
52
|
+
.root[data-swipe="cancel"],
|
|
53
|
+
:global(.infonomic-toast-root[data-swipe="cancel"]) {
|
|
47
54
|
transform: translateX(0);
|
|
48
55
|
transition: transform 200ms ease-out;
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
.root.top-right[data-swipe="end"],
|
|
52
|
-
.root.bottom-right[data-swipe="end"]
|
|
59
|
+
.root.bottom-right[data-swipe="end"],
|
|
60
|
+
:global(.infonomic-toast-root.top-right[data-swipe="end"]),
|
|
61
|
+
:global(.infonomic-toast-root.bottom-right[data-swipe="end"]) {
|
|
53
62
|
animation: swipeOutToRight 100ms ease-out;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
.root.top-left[data-swipe="end"],
|
|
57
|
-
.root.bottom-left[data-swipe="end"]
|
|
66
|
+
.root.bottom-left[data-swipe="end"],
|
|
67
|
+
:global(.infonomic-toast-root.top-left[data-swipe="end"]),
|
|
68
|
+
:global(.infonomic-toast-root.bottom-left[data-swipe="end"]) {
|
|
58
69
|
animation: swipeOutToLeft 100ms ease-out;
|
|
59
70
|
}
|
|
60
71
|
|
|
61
|
-
.header
|
|
72
|
+
.header,
|
|
73
|
+
:global(.infonomic-toast-header) {
|
|
62
74
|
display: flex;
|
|
63
75
|
padding: 0 16px 0 12px;
|
|
64
76
|
align-items: start;
|
|
@@ -66,7 +78,8 @@ infonomic-components;
|
|
|
66
78
|
justify-content: space-between;
|
|
67
79
|
}
|
|
68
80
|
|
|
69
|
-
.close
|
|
81
|
+
.close,
|
|
82
|
+
:global(.infonomic-toast-close) {
|
|
70
83
|
display: flex;
|
|
71
84
|
align-items: center;
|
|
72
85
|
justify-content: center;
|
|
@@ -80,11 +93,13 @@ infonomic-components;
|
|
|
80
93
|
margin-top: -2px;
|
|
81
94
|
}
|
|
82
95
|
|
|
83
|
-
.close svg
|
|
96
|
+
.close svg,
|
|
97
|
+
:global(.infonomic-toast-close svg) {
|
|
84
98
|
fill: white;
|
|
85
99
|
}
|
|
86
100
|
|
|
87
|
-
.title
|
|
101
|
+
.title,
|
|
102
|
+
:global(.infonomic-toast-title) {
|
|
88
103
|
display: flex;
|
|
89
104
|
padding: 0 12px 0 8px;
|
|
90
105
|
align-items: start;
|
|
@@ -94,14 +109,16 @@ infonomic-components;
|
|
|
94
109
|
font-size: 15px;
|
|
95
110
|
}
|
|
96
111
|
|
|
97
|
-
.description
|
|
112
|
+
.description,
|
|
113
|
+
:global(.infonomic-toast-description) {
|
|
98
114
|
margin: 0;
|
|
99
115
|
padding: 0 8px 0 12px;
|
|
100
116
|
font-size: var(--font-size-sm);
|
|
101
117
|
line-height: 1.3;
|
|
102
118
|
}
|
|
103
119
|
|
|
104
|
-
.action
|
|
120
|
+
.action,
|
|
121
|
+
:global(.infonomic-toast-action) {
|
|
105
122
|
display: flex;
|
|
106
123
|
justify-content: end;
|
|
107
124
|
padding: 0 12px 0 12px;
|
|
@@ -110,25 +127,29 @@ infonomic-components;
|
|
|
110
127
|
/* Positions are relative to the toast viewport which is set
|
|
111
128
|
globally in components/toast.css */
|
|
112
129
|
|
|
113
|
-
.top-left
|
|
130
|
+
.top-left,
|
|
131
|
+
:global(.infonomic-toast-top-left) {
|
|
114
132
|
top: 88px;
|
|
115
133
|
right: 16px;
|
|
116
134
|
left: 16px;
|
|
117
135
|
}
|
|
118
136
|
|
|
119
|
-
.top-right
|
|
137
|
+
.top-right,
|
|
138
|
+
:global(.infonomic-toast-top-right) {
|
|
120
139
|
top: 88px;
|
|
121
140
|
right: 16px;
|
|
122
141
|
left: 16px;
|
|
123
142
|
}
|
|
124
143
|
|
|
125
|
-
.bottom-left
|
|
144
|
+
.bottom-left,
|
|
145
|
+
:global(.infonomic-toast-bottom-left) {
|
|
126
146
|
bottom: 16px;
|
|
127
147
|
right: 16px;
|
|
128
148
|
left: 16px;
|
|
129
149
|
}
|
|
130
150
|
|
|
131
|
-
.bottom-right
|
|
151
|
+
.bottom-right,
|
|
152
|
+
:global(.infonomic-toast-bottom-right) {
|
|
132
153
|
bottom: 16px;
|
|
133
154
|
right: 16px;
|
|
134
155
|
left: 16px;
|
|
@@ -137,16 +158,21 @@ infonomic-components;
|
|
|
137
158
|
@media (min-width: 48rem) {
|
|
138
159
|
|
|
139
160
|
.root.top-right[data-state="open"],
|
|
140
|
-
.root.bottom-right[data-state="open"]
|
|
161
|
+
.root.bottom-right[data-state="open"],
|
|
162
|
+
:global(.infonomic-toast-root.top-right[data-state="open"]),
|
|
163
|
+
:global(.infonomic-toast-root.bottom-right[data-state="open"]) {
|
|
141
164
|
animation: slideInFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
142
165
|
}
|
|
143
166
|
|
|
144
167
|
.root.top-left[data-state="open"],
|
|
145
|
-
.root.bottom-left[data-state="open"]
|
|
168
|
+
.root.bottom-left[data-state="open"],
|
|
169
|
+
:global(.infonomic-toast-root.top-left[data-state="open"]),
|
|
170
|
+
:global(.infonomic-toast-root.bottom-left[data-state="open"]) {
|
|
146
171
|
animation: slideInFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
147
172
|
}
|
|
148
173
|
|
|
149
|
-
.bottom-right
|
|
174
|
+
.bottom-right,
|
|
175
|
+
:global(.infonomic-toast-bottom-right) {
|
|
150
176
|
bottom: 16px;
|
|
151
177
|
right: 16px;
|
|
152
178
|
left: auto;
|
|
@@ -154,7 +180,8 @@ infonomic-components;
|
|
|
154
180
|
max-width: 390px;
|
|
155
181
|
}
|
|
156
182
|
|
|
157
|
-
.bottom-left
|
|
183
|
+
.bottom-left,
|
|
184
|
+
:global(.infonomic-toast-bottom-left) {
|
|
158
185
|
bottom: 16px;
|
|
159
186
|
left: 16px;
|
|
160
187
|
right: auto;
|
|
@@ -162,7 +189,8 @@ infonomic-components;
|
|
|
162
189
|
max-width: 390px;
|
|
163
190
|
}
|
|
164
191
|
|
|
165
|
-
.top-left
|
|
192
|
+
.top-left,
|
|
193
|
+
:global(.infonomic-toast-top-left) {
|
|
166
194
|
top: 88px;
|
|
167
195
|
left: 16px;
|
|
168
196
|
right: auto;
|
|
@@ -171,7 +199,8 @@ infonomic-components;
|
|
|
171
199
|
max-width: 390px;
|
|
172
200
|
}
|
|
173
201
|
|
|
174
|
-
.top-right
|
|
202
|
+
.top-right,
|
|
203
|
+
:global(.infonomic-toast-top-right) {
|
|
175
204
|
top: 88px;
|
|
176
205
|
right: 16px;
|
|
177
206
|
bottom: auto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
.root-dWN7jD {
|
|
4
|
+
:is(.root-dWN7jD, .infonomic-toast-root) {
|
|
5
5
|
gap: var(--gap-1);
|
|
6
6
|
background: var(--gray-25);
|
|
7
7
|
border-width: var(--border-width-thin);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
position: absolute;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
:is(.dark, [data-theme="dark"]) .root-dWN7jD {
|
|
19
|
+
:is(:is(.dark, [data-theme="dark"]) .root-dWN7jD, :is(.dark, [data-theme="dark"]) .infonomic-toast-root) {
|
|
20
20
|
background: var(--canvas-800);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -24,28 +24,61 @@
|
|
|
24
24
|
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromBottom-O94u9U;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.infonomic-toast-root[data-state="open"] {
|
|
28
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromBottom-O94u9U;
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
.root-dWN7jD[data-state="closed"] {
|
|
28
32
|
animation: .1s ease-in hide-vlOoW0;
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
.infonomic-toast-root[data-state="closed"] {
|
|
36
|
+
animation: .1s ease-in hide-vlOoW0;
|
|
37
|
+
}
|
|
38
|
+
|
|
31
39
|
.root-dWN7jD[data-swipe="move"] {
|
|
32
40
|
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
33
41
|
}
|
|
34
42
|
|
|
43
|
+
.infonomic-toast-root[data-swipe="move"] {
|
|
44
|
+
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
.root-dWN7jD[data-swipe="cancel"] {
|
|
36
48
|
transition: transform .2s ease-out;
|
|
37
49
|
transform: translateX(0);
|
|
38
50
|
}
|
|
39
51
|
|
|
52
|
+
.infonomic-toast-root[data-swipe="cancel"] {
|
|
53
|
+
transition: transform .2s ease-out;
|
|
54
|
+
transform: translateX(0);
|
|
55
|
+
}
|
|
56
|
+
|
|
40
57
|
.root-dWN7jD.top-right-OsKbVb[data-swipe="end"], .root-dWN7jD.bottom-right-Nzuhur[data-swipe="end"] {
|
|
41
58
|
animation: .1s ease-out swipeOutToRight-FWaeVx;
|
|
42
59
|
}
|
|
43
60
|
|
|
61
|
+
.infonomic-toast-root.top-right[data-swipe="end"] {
|
|
62
|
+
animation: .1s ease-out swipeOutToRight-FWaeVx;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.infonomic-toast-root.bottom-right[data-swipe="end"] {
|
|
66
|
+
animation: .1s ease-out swipeOutToRight-FWaeVx;
|
|
67
|
+
}
|
|
68
|
+
|
|
44
69
|
.root-dWN7jD.top-left-dy_IMc[data-swipe="end"], .root-dWN7jD.bottom-left-_RdEZn[data-swipe="end"] {
|
|
45
70
|
animation: .1s ease-out swipeOutToLeft-OI9y6O;
|
|
46
71
|
}
|
|
47
72
|
|
|
48
|
-
.
|
|
73
|
+
.infonomic-toast-root.top-left[data-swipe="end"] {
|
|
74
|
+
animation: .1s ease-out swipeOutToLeft-OI9y6O;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.infonomic-toast-root.bottom-left[data-swipe="end"] {
|
|
78
|
+
animation: .1s ease-out swipeOutToLeft-OI9y6O;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:is(.header-ItoxDs, .infonomic-toast-header) {
|
|
49
82
|
align-items: start;
|
|
50
83
|
gap: var(--gap-2);
|
|
51
84
|
justify-content: space-between;
|
|
@@ -53,7 +86,7 @@
|
|
|
53
86
|
display: flex;
|
|
54
87
|
}
|
|
55
88
|
|
|
56
|
-
.close-HwTMjn {
|
|
89
|
+
:is(.close-HwTMjn, .infonomic-toast-close) {
|
|
57
90
|
border-radius: 100%;
|
|
58
91
|
justify-content: center;
|
|
59
92
|
align-items: center;
|
|
@@ -71,7 +104,11 @@
|
|
|
71
104
|
fill: #fff;
|
|
72
105
|
}
|
|
73
106
|
|
|
74
|
-
.
|
|
107
|
+
.infonomic-toast-close svg {
|
|
108
|
+
fill: #fff;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:is(.title-qfQE8M, .infonomic-toast-title) {
|
|
75
112
|
align-items: start;
|
|
76
113
|
gap: var(--gap-2);
|
|
77
114
|
margin-bottom: 5px;
|
|
@@ -81,26 +118,26 @@
|
|
|
81
118
|
display: flex;
|
|
82
119
|
}
|
|
83
120
|
|
|
84
|
-
.description-nQWtgX {
|
|
121
|
+
:is(.description-nQWtgX, .infonomic-toast-description) {
|
|
85
122
|
font-size: var(--font-size-sm);
|
|
86
123
|
margin: 0;
|
|
87
124
|
padding: 0 8px 0 12px;
|
|
88
125
|
line-height: 1.3;
|
|
89
126
|
}
|
|
90
127
|
|
|
91
|
-
.action-PunqB2 {
|
|
128
|
+
:is(.action-PunqB2, .infonomic-toast-action) {
|
|
92
129
|
justify-content: end;
|
|
93
130
|
padding: 0 12px;
|
|
94
131
|
display: flex;
|
|
95
132
|
}
|
|
96
133
|
|
|
97
|
-
.top-left-dy_IMc, .top-right-OsKbVb {
|
|
134
|
+
:is(.top-left-dy_IMc, .infonomic-toast-top-left), :is(.top-right-OsKbVb, .infonomic-toast-top-right) {
|
|
98
135
|
top: 88px;
|
|
99
136
|
left: 16px;
|
|
100
137
|
right: 16px;
|
|
101
138
|
}
|
|
102
139
|
|
|
103
|
-
.bottom-left-_RdEZn, .bottom-right-Nzuhur {
|
|
140
|
+
:is(.bottom-left-_RdEZn, .infonomic-toast-bottom-left), :is(.bottom-right-Nzuhur, .infonomic-toast-bottom-right) {
|
|
104
141
|
bottom: 16px;
|
|
105
142
|
left: 16px;
|
|
106
143
|
right: 16px;
|
|
@@ -111,11 +148,27 @@
|
|
|
111
148
|
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromRight-G4Hu_M;
|
|
112
149
|
}
|
|
113
150
|
|
|
151
|
+
.infonomic-toast-root.top-right[data-state="open"] {
|
|
152
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromRight-G4Hu_M;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.infonomic-toast-root.bottom-right[data-state="open"] {
|
|
156
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromRight-G4Hu_M;
|
|
157
|
+
}
|
|
158
|
+
|
|
114
159
|
.root-dWN7jD.top-left-dy_IMc[data-state="open"], .root-dWN7jD.bottom-left-_RdEZn[data-state="open"] {
|
|
115
160
|
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromLeft-m703fy;
|
|
116
161
|
}
|
|
117
162
|
|
|
118
|
-
.
|
|
163
|
+
.infonomic-toast-root.top-left[data-state="open"] {
|
|
164
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromLeft-m703fy;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.infonomic-toast-root.bottom-left[data-state="open"] {
|
|
168
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromLeft-m703fy;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:is(.bottom-right-Nzuhur, .infonomic-toast-bottom-right) {
|
|
119
172
|
width: 100%;
|
|
120
173
|
max-width: 390px;
|
|
121
174
|
bottom: 16px;
|
|
@@ -123,7 +176,7 @@
|
|
|
123
176
|
right: 16px;
|
|
124
177
|
}
|
|
125
178
|
|
|
126
|
-
.bottom-left-_RdEZn {
|
|
179
|
+
:is(.bottom-left-_RdEZn, .infonomic-toast-bottom-left) {
|
|
127
180
|
width: 100%;
|
|
128
181
|
max-width: 390px;
|
|
129
182
|
bottom: 16px;
|
|
@@ -131,13 +184,13 @@
|
|
|
131
184
|
right: auto;
|
|
132
185
|
}
|
|
133
186
|
|
|
134
|
-
.top-left-dy_IMc {
|
|
187
|
+
:is(.top-left-dy_IMc, .infonomic-toast-top-left) {
|
|
135
188
|
width: 100%;
|
|
136
189
|
max-width: 390px;
|
|
137
190
|
inset: 88px auto auto 16px;
|
|
138
191
|
}
|
|
139
192
|
|
|
140
|
-
.top-right-OsKbVb {
|
|
193
|
+
:is(.top-right-OsKbVb, .infonomic-toast-top-right) {
|
|
141
194
|
width: 100%;
|
|
142
195
|
max-width: 390px;
|
|
143
196
|
inset: 88px 16px auto auto;
|