@infonomic/uikit 5.27.0 → 5.29.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.d.ts +2 -1
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.js +2 -2
- package/dist/widgets/datepicker/datepicker.module.css +33 -16
- package/dist/widgets/datepicker/datepicker.module.js +0 -1
- package/dist/widgets/datepicker/datepicker_module.css +23 -22
- 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 +33 -16
- package/src/widgets/datepicker/datepicker.tsx +11 -9
- 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/drawer/drawer.stories.tsx +13 -0
- 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
|
@@ -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;
|
|
@@ -79,11 +79,11 @@ export const Toast = function Toast({
|
|
|
79
79
|
return (
|
|
80
80
|
<ToastPrimitive.Root
|
|
81
81
|
ref={mergedRef}
|
|
82
|
-
className={cx('toast', styles.root, styles[position])}
|
|
82
|
+
className={cx('infonomic-toast', styles.root, styles[position])}
|
|
83
83
|
open={open}
|
|
84
84
|
onOpenChange={onOpenChange}
|
|
85
85
|
>
|
|
86
|
-
<div className={cx('toast-header', styles.header)}>
|
|
86
|
+
<div className={cx('infonomic-toast-header', styles.header)}>
|
|
87
87
|
<time dateTime={eventDateRef.current.toISOString()} className="text-sm">
|
|
88
88
|
{new Intl.DateTimeFormat('default', {
|
|
89
89
|
hour12: true,
|
|
@@ -98,7 +98,7 @@ export const Toast = function Toast({
|
|
|
98
98
|
tabIndex={0}
|
|
99
99
|
variant="filled"
|
|
100
100
|
aria-label="Close"
|
|
101
|
-
className={styles.close}
|
|
101
|
+
className={cx('infonomic-toast-close', styles.close)}
|
|
102
102
|
type="button"
|
|
103
103
|
onClick={handleOnClose}
|
|
104
104
|
>
|
|
@@ -107,11 +107,11 @@ export const Toast = function Toast({
|
|
|
107
107
|
</ToastPrimitive.Close>
|
|
108
108
|
)}
|
|
109
109
|
</div>
|
|
110
|
-
<ToastPrimitive.Title className={cx('toast-title', styles.title)}>
|
|
110
|
+
<ToastPrimitive.Title className={cx('infonomic-toast-title', styles.title)}>
|
|
111
111
|
{icon != null && <Icon />}
|
|
112
112
|
{title}
|
|
113
113
|
</ToastPrimitive.Title>
|
|
114
|
-
<ToastPrimitive.Description className={cx('toast-description', styles.description)}>
|
|
114
|
+
<ToastPrimitive.Description className={cx('infonomic-toast-description', styles.description)}>
|
|
115
115
|
{message}
|
|
116
116
|
</ToastPrimitive.Description>
|
|
117
117
|
{/* <ToastPrimitive.Action className={styles.action} asChild altText="Goto schedule to undo">
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
.overlay,
|
|
6
|
+
:global(.infonomic-overlay) {
|
|
5
7
|
position: fixed;
|
|
6
8
|
top: 0;
|
|
7
9
|
left: 0;
|
|
@@ -11,16 +13,22 @@
|
|
|
11
13
|
z-index: 20;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
:global(.dark)
|
|
15
|
-
:global([data-theme="dark"])
|
|
16
|
-
|
|
16
|
+
:global(.dark),
|
|
17
|
+
:global([data-theme="dark"]) {
|
|
18
|
+
|
|
19
|
+
.overlay,
|
|
20
|
+
:global(.infonomic-overlay) {
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
|
|
19
|
-
.animate-fade-in
|
|
25
|
+
.animate-fade-in,
|
|
26
|
+
:global(.infonomic-animate-fade-in) {
|
|
20
27
|
animation: fade-in 0.3s ease-in-out;
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
.animate-fade-out
|
|
30
|
+
.animate-fade-out,
|
|
31
|
+
:global(.infonomic-animate-fade-out) {
|
|
24
32
|
animation: fade-out 0.3s ease-in-out;
|
|
25
33
|
}
|
|
26
34
|
|
|
@@ -6,34 +6,35 @@ infonomic-typography,
|
|
|
6
6
|
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
.pagination-root {
|
|
10
|
-
display: flex;
|
|
11
|
-
padding: 0;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
9
|
|
|
15
|
-
.pagination-
|
|
10
|
+
.pagination-root,
|
|
11
|
+
:global(.infonomic-pagination-root) {
|
|
16
12
|
display: flex;
|
|
13
|
+
padding: 0;
|
|
17
14
|
align-items: center;
|
|
18
|
-
list-style: none;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
|
-
.pagination-items
|
|
17
|
+
.pagination-items,
|
|
18
|
+
:global(.infonomic-pagination-items) {
|
|
22
19
|
display: flex;
|
|
23
20
|
align-items: center;
|
|
24
21
|
list-style: none;
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
.pagination-items.dashboard li,
|
|
28
|
-
.pagination-items.default li
|
|
25
|
+
.pagination-items.default li,
|
|
26
|
+
:global(.infonomic-pagination-items.dashboard) li,
|
|
27
|
+
:global(.infonomic-pagination-items.default) li {
|
|
29
28
|
margin-right: -1px;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
.pagination-items.classic li
|
|
31
|
+
.pagination-items.classic li,
|
|
32
|
+
:global(.infonomic-pagination-items.classic) li {
|
|
33
33
|
margin-right: 0;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.pagination-items.classic
|
|
36
|
+
.pagination-items.classic,
|
|
37
|
+
:global(.infonomic-pagination-items.classic) {
|
|
37
38
|
gap: 6px;
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -237,13 +237,13 @@ const Root = ({
|
|
|
237
237
|
<nav
|
|
238
238
|
data-testid={dataTestId}
|
|
239
239
|
ref={ref}
|
|
240
|
-
className={cx('pagination-root', styles['pagination-root'], 'pagination-root', className)}
|
|
240
|
+
className={cx('infonomic-pagination-root', styles['pagination-root'], 'pagination-root', className)}
|
|
241
241
|
{...rest}
|
|
242
242
|
aria-label={ariaLabel ?? 'Pager navigation'}
|
|
243
243
|
>
|
|
244
244
|
<ul
|
|
245
245
|
className={cx(
|
|
246
|
-
'pagination-items',
|
|
246
|
+
'infonomic-pagination-items',
|
|
247
247
|
styles['pagination-items'],
|
|
248
248
|
styles[variant],
|
|
249
249
|
itemsClassName
|
|
@@ -1,25 +1,29 @@
|
|
|
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
|
+
.root,
|
|
11
|
+
:global(.infonomic-scroll-area) {
|
|
10
12
|
border-radius: 4px;
|
|
11
13
|
overflow: hidden;
|
|
12
14
|
background-color: inherit;
|
|
13
15
|
--scrollbar-size: 10px;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
.viewport
|
|
18
|
+
.viewport,
|
|
19
|
+
:global(.infonomic-scroll-area-viewport) {
|
|
17
20
|
width: 100%;
|
|
18
21
|
height: 100%;
|
|
19
22
|
border-radius: inherit;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
.scrollbar
|
|
25
|
+
.scrollbar,
|
|
26
|
+
:global(.infonomic-scroll-area-scrollbar) {
|
|
23
27
|
display: flex;
|
|
24
28
|
/* ensures no selection */
|
|
25
29
|
user-select: none;
|
|
@@ -43,7 +47,8 @@
|
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
|
|
46
|
-
.thumb
|
|
50
|
+
.thumb,
|
|
51
|
+
:global(.infonomic-scroll-area-thumb) {
|
|
47
52
|
flex: 1;
|
|
48
53
|
background: var(--surface-panel-scrollbar-thumb);
|
|
49
54
|
border-radius: var(--border-radius-sm);
|
|
@@ -63,7 +68,8 @@
|
|
|
63
68
|
}
|
|
64
69
|
}
|
|
65
70
|
|
|
66
|
-
.corner
|
|
71
|
+
.corner,
|
|
72
|
+
:global(.infonomic-scroll-area-corner) {
|
|
67
73
|
background: var(--surface-panel-scrollbar);
|
|
68
74
|
}
|
|
69
|
-
}
|
|
75
|
+
}
|
|
@@ -5,19 +5,19 @@ import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui'
|
|
|
5
5
|
|
|
6
6
|
import styles from './scroll-area.module.css'
|
|
7
7
|
|
|
8
|
-
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {}
|
|
8
|
+
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> { }
|
|
9
9
|
|
|
10
10
|
export const ScrollArea = ({ children, style, className }: ScrollAreaProps) => (
|
|
11
|
-
<ScrollAreaPrimitive.Root style={style} className={cx('scroll-area', styles.root, className)}>
|
|
12
|
-
<ScrollAreaPrimitive.Viewport className={styles.viewport}>
|
|
11
|
+
<ScrollAreaPrimitive.Root style={style} className={cx('infonomic-scroll-area', styles.root, className)}>
|
|
12
|
+
<ScrollAreaPrimitive.Viewport className={cx('infonomic-scroll-area-viewport', styles.viewport)}>
|
|
13
13
|
{children}
|
|
14
14
|
</ScrollAreaPrimitive.Viewport>
|
|
15
|
-
<ScrollAreaPrimitive.Scrollbar className={styles.scrollbar} orientation="vertical">
|
|
16
|
-
<ScrollAreaPrimitive.Thumb className={styles.thumb} />
|
|
15
|
+
<ScrollAreaPrimitive.Scrollbar className={cx('infonomic-scroll-area-scrollbar', styles.scrollbar)} orientation="vertical">
|
|
16
|
+
<ScrollAreaPrimitive.Thumb className={cx('infonomic-scroll-area-thumb', styles.thumb)} />
|
|
17
17
|
</ScrollAreaPrimitive.Scrollbar>
|
|
18
|
-
<ScrollAreaPrimitive.Scrollbar className={styles.scrollbar} orientation="horizontal">
|
|
19
|
-
<ScrollAreaPrimitive.Thumb className={styles.thumb} />
|
|
18
|
+
<ScrollAreaPrimitive.Scrollbar className={cx('infonomic-scroll-area-scrollbar', styles.scrollbar)} orientation="horizontal">
|
|
19
|
+
<ScrollAreaPrimitive.Thumb className={cx('infonomic-scroll-area-thumb', styles.thumb)} />
|
|
20
20
|
</ScrollAreaPrimitive.Scrollbar>
|
|
21
|
-
<ScrollAreaPrimitive.Corner className={styles.corner} />
|
|
21
|
+
<ScrollAreaPrimitive.Corner className={cx('infonomic-scroll-area-corner', styles.corner)} />
|
|
22
22
|
</ScrollAreaPrimitive.Root>
|
|
23
23
|
)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
infonomic-utilities,
|
|
3
|
+
infonomic-theme,
|
|
4
|
+
infonomic-typography,
|
|
5
|
+
infonomic-components;
|
|
6
6
|
|
|
7
7
|
@layer infonomic-components {
|
|
8
|
+
|
|
8
9
|
.scroll-to-top,
|
|
9
|
-
:global(.scroll-to-top) {
|
|
10
|
+
:global(.infonomic-scroll-to-top) {
|
|
10
11
|
display: flex;
|
|
11
12
|
position: fixed;
|
|
12
13
|
width: 0;
|
|
@@ -33,28 +34,28 @@
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.scroll-to-top span,
|
|
36
|
-
:global(.scroll-to-top span) {
|
|
37
|
+
:global(.infonomic-scroll-to-top span) {
|
|
37
38
|
width: 18px;
|
|
38
39
|
padding-bottom: 3px;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
.scroll-to-top span svg path,
|
|
42
|
-
:global(.scroll-to-top span svg path) {
|
|
43
|
+
:global(.infonomic-scroll-to-top span svg path) {
|
|
43
44
|
stroke: none;
|
|
44
45
|
fill: var(--text-on-primary);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
.scroll-to-top:hover,
|
|
48
49
|
.scroll-to-top:focus,
|
|
49
|
-
:global(.scroll-to-top:hover),
|
|
50
|
-
:global(.scroll-to-top:focus) {
|
|
50
|
+
:global(.infonomic-scroll-to-top:hover),
|
|
51
|
+
:global(.infonomic-scroll-to-top:focus) {
|
|
51
52
|
color: var(--text-on-primary);
|
|
52
53
|
background-color: var(--fill-primary-strong-hover);
|
|
53
54
|
transform: translateY(-5px);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
.scroll-to-top-shown,
|
|
57
|
-
:global(.scroll-to-top-shown) {
|
|
58
|
+
:global(.infonomic-scroll-to-top-shown) {
|
|
58
59
|
min-width: 0;
|
|
59
60
|
opacity: 1;
|
|
60
61
|
visibility: visible;
|
|
@@ -67,19 +68,20 @@
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
@media screen and (min-width: 587px) {
|
|
71
|
+
|
|
70
72
|
.scroll-to-top,
|
|
71
|
-
:global(.scroll-to-top) {
|
|
73
|
+
:global(.infonomic-scroll-to-top) {
|
|
72
74
|
bottom: 45px;
|
|
73
75
|
right: 45px;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.scroll-to-top span,
|
|
77
|
-
:global(.scroll-to-top span) {
|
|
79
|
+
:global(.infonomic-scroll-to-top span) {
|
|
78
80
|
width: 18px;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
.scroll-to-top-shown,
|
|
82
|
-
:global(.scroll-to-top-shown) {
|
|
84
|
+
:global(.infonomic-scroll-to-top-shown) {
|
|
83
85
|
width: 42px;
|
|
84
86
|
height: 42px;
|
|
85
87
|
border-radius: 21px;
|
|
@@ -87,4 +89,4 @@
|
|
|
87
89
|
right: 22px;
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
|
-
}
|
|
92
|
+
}
|
|
@@ -61,10 +61,10 @@ export function ScrollToTop({
|
|
|
61
61
|
aria-label={ariaLabel}
|
|
62
62
|
onClick={handleOnClick}
|
|
63
63
|
className={cx(
|
|
64
|
-
'scroll-to-top',
|
|
64
|
+
'infonomic-scroll-to-top',
|
|
65
65
|
styles['scroll-to-top'],
|
|
66
66
|
{
|
|
67
|
-
'scroll-to-top-shown': show,
|
|
67
|
+
'infonomic-scroll-to-top-shown': show,
|
|
68
68
|
[styles['scroll-to-top-shown']]: show,
|
|
69
69
|
},
|
|
70
70
|
className
|
|
@@ -1,14 +1,15 @@
|
|
|
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
|
.section,
|
|
10
|
-
:global(.section) {
|
|
11
|
+
:global(.infonomic-section) {
|
|
11
12
|
width: 100%;
|
|
12
13
|
position: relative;
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
}
|
|
@@ -5,7 +5,7 @@ import cx from 'classnames'
|
|
|
5
5
|
import styles from './section.module.css'
|
|
6
6
|
|
|
7
7
|
type SectionIntrinsicProps = React.JSX.IntrinsicElements['section']
|
|
8
|
-
export interface SectionProps extends SectionIntrinsicProps {}
|
|
8
|
+
export interface SectionProps extends SectionIntrinsicProps { }
|
|
9
9
|
|
|
10
10
|
export const Section = function Section({
|
|
11
11
|
ref,
|
|
@@ -16,7 +16,7 @@ export const Section = function Section({
|
|
|
16
16
|
ref?: React.RefObject<HTMLElement>
|
|
17
17
|
}): React.JSX.Element {
|
|
18
18
|
return (
|
|
19
|
-
<section className={cx('section', styles.section, className)} ref={ref} {...rest}>
|
|
19
|
+
<section className={cx('infonomic-section', styles.section, className)} ref={ref} {...rest}>
|
|
20
20
|
{children}
|
|
21
21
|
</section>
|
|
22
22
|
)
|
|
@@ -7,7 +7,9 @@ infonomic-components;
|
|
|
7
7
|
|
|
8
8
|
/* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
|
|
9
9
|
@layer infonomic-components {
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
.shimmer,
|
|
12
|
+
:global(.infonomic-shimmer) {
|
|
11
13
|
position: relative;
|
|
12
14
|
overflow: hidden;
|
|
13
15
|
background-color: #f0f0f0;
|
|
@@ -18,27 +20,33 @@ infonomic-components;
|
|
|
18
20
|
|
|
19
21
|
:global(.dark),
|
|
20
22
|
:global([data-theme="dark"]) {
|
|
21
|
-
|
|
23
|
+
|
|
24
|
+
.shimmer,
|
|
25
|
+
:global(.infonomic-shimmer) {
|
|
22
26
|
background-color: #141414;
|
|
23
27
|
background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01), transparent);
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
.shimmerContainer
|
|
31
|
+
.shimmerContainer,
|
|
32
|
+
:global(.infonomic-shimmer-container) {
|
|
28
33
|
display: flex;
|
|
29
34
|
flex-direction: column;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
.rectangular
|
|
37
|
+
.rectangular,
|
|
38
|
+
:global(.infonomic-shimmer-rectangular) {
|
|
33
39
|
border-radius: 0.25rem;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
|
-
.text
|
|
42
|
+
.text,
|
|
43
|
+
:global(.infonomic-shimmer-text) {
|
|
37
44
|
border-radius: 0.125rem;
|
|
38
45
|
height: 1rem;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
|
-
.circular
|
|
48
|
+
.circular,
|
|
49
|
+
:global(.infonomic-shimmer-circular) {
|
|
42
50
|
border-radius: 50%;
|
|
43
51
|
aspect-ratio: 1;
|
|
44
52
|
}
|