@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
|
@@ -8,7 +8,7 @@ infonomic-components;
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
9
|
|
|
10
10
|
.chip,
|
|
11
|
-
:global(.chip) {
|
|
11
|
+
:global(.infonomic-chip) {
|
|
12
12
|
--chip-font-size: 0.9rem;
|
|
13
13
|
--chip-height: 34px;
|
|
14
14
|
--chip-padding-y: 0.35rem;
|
|
@@ -36,47 +36,51 @@ infonomic-components;
|
|
|
36
36
|
|
|
37
37
|
.chip:disabled,
|
|
38
38
|
.chip[disabled],
|
|
39
|
-
:global(.chip):disabled,
|
|
40
|
-
:global(.chip)[disabled] {
|
|
39
|
+
:global(.infonomic-chip):disabled,
|
|
40
|
+
:global(.infonomic-chip)[disabled] {
|
|
41
41
|
pointer-events: none;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.chip:focus,
|
|
45
45
|
.chip:active,
|
|
46
|
-
:global(.chip):focus,
|
|
47
|
-
:global(.chip):active {
|
|
46
|
+
:global(.infonomic-chip):focus,
|
|
47
|
+
:global(.infonomic-chip):active {
|
|
48
48
|
--ring-offset-color: var(--background);
|
|
49
49
|
--ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
|
|
50
50
|
--ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
|
|
51
51
|
box-shadow: var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.label
|
|
54
|
+
.label,
|
|
55
|
+
:global(.infonomic-chip-label) {
|
|
55
56
|
display: inline-flex;
|
|
56
57
|
align-items: center;
|
|
57
58
|
white-space: nowrap;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
.icon
|
|
61
|
+
.icon,
|
|
62
|
+
:global(.infonomic-chip-icon) {
|
|
61
63
|
width: var(--chip-icon-size);
|
|
62
64
|
height: var(--chip-icon-size);
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
.iconWrapper
|
|
67
|
+
.iconWrapper,
|
|
68
|
+
:global(.infonomic-chip-icon-wrapper) {
|
|
66
69
|
display: inline-flex;
|
|
67
70
|
align-items: center;
|
|
68
71
|
justify-content: center;
|
|
69
72
|
line-height: 0;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
.close-icon
|
|
75
|
+
.close-icon,
|
|
76
|
+
:global(.infonomic-chip-close-icon) {
|
|
73
77
|
width: calc(var(--chip-icon-size) * 0.9);
|
|
74
78
|
height: calc(var(--chip-icon-size) * 0.9);
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
/* Sizes ----------------------------------------------------------- */
|
|
78
82
|
.xs,
|
|
79
|
-
:global(.chip-xs) {
|
|
83
|
+
:global(.infonomic-chip-xs) {
|
|
80
84
|
--chip-height: 24px;
|
|
81
85
|
--chip-padding-y: 0.15rem;
|
|
82
86
|
--chip-padding-x: 0.3rem;
|
|
@@ -86,7 +90,7 @@ infonomic-components;
|
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
.sm,
|
|
89
|
-
:global(.chip-sm) {
|
|
93
|
+
:global(.infonomic-chip-sm) {
|
|
90
94
|
--chip-height: 28px;
|
|
91
95
|
--chip-padding-y: 0.2rem;
|
|
92
96
|
--chip-padding-x: 0.3rem;
|
|
@@ -95,7 +99,7 @@ infonomic-components;
|
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
.md,
|
|
98
|
-
:global(.chip-md) {
|
|
102
|
+
:global(.infonomic-chip-md) {
|
|
99
103
|
--chip-height: 32px;
|
|
100
104
|
--chip-padding-y: 0.25rem;
|
|
101
105
|
--chip-padding-x: 0.3rem;
|
|
@@ -104,7 +108,7 @@ infonomic-components;
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
.lg,
|
|
107
|
-
:global(.chip-lg) {
|
|
111
|
+
:global(.infonomic-chip-lg) {
|
|
108
112
|
--chip-gap: var(--gap-2);
|
|
109
113
|
--chip-height: 36px;
|
|
110
114
|
--chip-padding-y: 0.3rem;
|
|
@@ -114,7 +118,7 @@ infonomic-components;
|
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
.xl,
|
|
117
|
-
:global(.chip-xl) {
|
|
121
|
+
:global(.infonomic-chip-xl) {
|
|
118
122
|
--chip-gap: var(--gap-2);
|
|
119
123
|
--chip-height: 40px;
|
|
120
124
|
--chip-padding-y: 0.3rem;
|
|
@@ -126,27 +130,27 @@ infonomic-components;
|
|
|
126
130
|
/* Variants -------------------------------------------------------- */
|
|
127
131
|
/* Variants - Consuming Variables */
|
|
128
132
|
.filled,
|
|
129
|
-
:global(.chip-filled) {
|
|
133
|
+
:global(.infonomic-chip-filled) {
|
|
130
134
|
color: var(--chip-variant-filled-foreground);
|
|
131
135
|
background-color: var(--chip-variant-filled);
|
|
132
136
|
}
|
|
133
137
|
|
|
134
138
|
.filled:hover,
|
|
135
|
-
:global(.chip-filled):hover {
|
|
139
|
+
:global(.infonomic-chip-filled):hover {
|
|
136
140
|
background-color: var(--chip-variant-filled-hover);
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
.filled:focus,
|
|
140
144
|
.filled:active,
|
|
141
|
-
:global(.chip-filled):focus,
|
|
142
|
-
:global(.chip-filled):active {
|
|
145
|
+
:global(.infonomic-chip-filled):focus,
|
|
146
|
+
:global(.infonomic-chip-filled):active {
|
|
143
147
|
--ring-color: var(--chip-ring-color);
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
.filled:disabled,
|
|
147
151
|
.filled[disabled],
|
|
148
|
-
:global(.chip-filled):disabled,
|
|
149
|
-
:global(.chip-filled)[disabled] {
|
|
152
|
+
:global(.infonomic-chip-filled):disabled,
|
|
153
|
+
:global(.infonomic-chip-filled)[disabled] {
|
|
150
154
|
background-color: var(--chip-variant-filled-disabled,
|
|
151
155
|
oklch(from var(--chip-variant-filled) calc(l * 1.1) calc(c * 0.85) h));
|
|
152
156
|
color: var(--chip-variant-filled-foreground-disabled,
|
|
@@ -157,27 +161,27 @@ infonomic-components;
|
|
|
157
161
|
/* Weak variant for close button on selected chip */
|
|
158
162
|
|
|
159
163
|
.filled-weak,
|
|
160
|
-
:global(.chip-filled-weak) {
|
|
164
|
+
:global(.infonomic-chip-filled-weak) {
|
|
161
165
|
color: var(--chip-variant-filled-weak-foreground);
|
|
162
166
|
background-color: var(--chip-variant-filled-weak);
|
|
163
167
|
}
|
|
164
168
|
|
|
165
169
|
.filled-weak:hover,
|
|
166
|
-
:global(.chip-filled-weak):hover {
|
|
170
|
+
:global(.infonomic-chip-filled-weak):hover {
|
|
167
171
|
background-color: var(--chip-variant-filled-weak-hover);
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
.filled-weak:focus,
|
|
171
175
|
.filled-weak:active,
|
|
172
|
-
:global(.chip-filled-weak):focus,
|
|
173
|
-
:global(.chip-filled-weak):active {
|
|
176
|
+
:global(.infonomic-chip-filled-weak):focus,
|
|
177
|
+
:global(.infonomic-chip-filled-weak):active {
|
|
174
178
|
--ring-color: var(--chip-ring-color);
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
.filled-weak:disabled,
|
|
178
182
|
.filled-weak[disabled],
|
|
179
|
-
:global(.chip-filled-weak):disabled,
|
|
180
|
-
:global(.chip-filled-weak)[disabled] {
|
|
183
|
+
:global(.infonomic-chip-filled-weak):disabled,
|
|
184
|
+
:global(.infonomic-chip-filled-weak)[disabled] {
|
|
181
185
|
background-color: var(--chip-variant-filled-weak-disabled,
|
|
182
186
|
oklch(from var(--chip-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h));
|
|
183
187
|
color: var(--chip-variant-filled-weak-foreground-disabled,
|
|
@@ -188,7 +192,7 @@ infonomic-components;
|
|
|
188
192
|
/* Outlined variant */
|
|
189
193
|
|
|
190
194
|
.outlined,
|
|
191
|
-
:global(.chip-outlined) {
|
|
195
|
+
:global(.infonomic-chip-outlined) {
|
|
192
196
|
border: 1px solid var(--chip-variant-outlined-border);
|
|
193
197
|
color: var(--chip-variant-outlined-foreground);
|
|
194
198
|
background-color: var(--chip-variant-outlined);
|
|
@@ -196,8 +200,8 @@ infonomic-components;
|
|
|
196
200
|
|
|
197
201
|
.outlined:disabled,
|
|
198
202
|
.outlined[disabled],
|
|
199
|
-
:global(.chip-outlined):disabled,
|
|
200
|
-
:global(.chip-outlined)[disabled] {
|
|
203
|
+
:global(.infonomic-chip-outlined):disabled,
|
|
204
|
+
:global(.infonomic-chip-outlined)[disabled] {
|
|
201
205
|
border-color: var(--chip-variant-outlined-border-disabled,
|
|
202
206
|
oklch(from var(--chip-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h));
|
|
203
207
|
color: var(--chip-variant-outlined-foreground-disabled,
|
|
@@ -205,45 +209,45 @@ infonomic-components;
|
|
|
205
209
|
}
|
|
206
210
|
|
|
207
211
|
.outlined:hover,
|
|
208
|
-
:global(.chip-outlined):hover {
|
|
212
|
+
:global(.infonomic-chip-outlined):hover {
|
|
209
213
|
background-color: var(--chip-variant-outlined-hover);
|
|
210
214
|
}
|
|
211
215
|
|
|
212
216
|
.outlined:focus,
|
|
213
217
|
.outlined:active,
|
|
214
|
-
:global(.chip-outlined):focus,
|
|
215
|
-
:global(.chip-outlined):active {
|
|
218
|
+
:global(.infonomic-chip-outlined):focus,
|
|
219
|
+
:global(.infonomic-chip-outlined):active {
|
|
216
220
|
--ring-color: var(--chip-ring-color);
|
|
217
221
|
}
|
|
218
222
|
|
|
219
223
|
.text,
|
|
220
|
-
:global(.chip-text) {
|
|
224
|
+
:global(.infonomic-chip-text) {
|
|
221
225
|
background-color: var(--chip-variant-text);
|
|
222
226
|
color: var(--chip-variant-text-foreground);
|
|
223
227
|
}
|
|
224
228
|
|
|
225
229
|
.text:disabled,
|
|
226
230
|
.text[disabled],
|
|
227
|
-
:global(.chip-text):disabled,
|
|
228
|
-
:global(.chip-text)[disabled] {
|
|
231
|
+
:global(.infonomic-chip-text):disabled,
|
|
232
|
+
:global(.infonomic-chip-text)[disabled] {
|
|
229
233
|
color: oklch(from var(--chip-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h);
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
.text:hover,
|
|
233
|
-
:global(.chip-text):hover {
|
|
237
|
+
:global(.infonomic-chip-text):hover {
|
|
234
238
|
background-color: var(--chip-variant-text-hover);
|
|
235
239
|
}
|
|
236
240
|
|
|
237
241
|
.text:focus,
|
|
238
242
|
.text:active,
|
|
239
|
-
:global(.chip-text):focus,
|
|
240
|
-
:global(.chip-text):active {
|
|
243
|
+
:global(.infonomic-chip-text):focus,
|
|
244
|
+
:global(.infonomic-chip-text):active {
|
|
241
245
|
--ring-color: var(--chip-ring-color);
|
|
242
246
|
}
|
|
243
247
|
|
|
244
248
|
/* Intents - Defining Variables */
|
|
245
249
|
.primary,
|
|
246
|
-
:global(.chip-primary) {
|
|
250
|
+
:global(.infonomic-chip-primary) {
|
|
247
251
|
--chip-ring-color: var(--ring-primary);
|
|
248
252
|
|
|
249
253
|
/* Filled */
|
|
@@ -270,7 +274,7 @@ infonomic-components;
|
|
|
270
274
|
}
|
|
271
275
|
|
|
272
276
|
.secondary,
|
|
273
|
-
:global(.chip-secondary) {
|
|
277
|
+
:global(.infonomic-chip-secondary) {
|
|
274
278
|
--chip-ring-color: var(--ring-secondary);
|
|
275
279
|
|
|
276
280
|
/* Filled */
|
|
@@ -297,7 +301,7 @@ infonomic-components;
|
|
|
297
301
|
}
|
|
298
302
|
|
|
299
303
|
.noeffect,
|
|
300
|
-
:global(.chip-noeffect) {
|
|
304
|
+
:global(.infonomic-chip-noeffect) {
|
|
301
305
|
--chip-ring-color: var(--ring-noeffect);
|
|
302
306
|
|
|
303
307
|
/* Filled */
|
|
@@ -324,7 +328,7 @@ infonomic-components;
|
|
|
324
328
|
}
|
|
325
329
|
|
|
326
330
|
.success,
|
|
327
|
-
:global(.chip-success) {
|
|
331
|
+
:global(.infonomic-chip-success) {
|
|
328
332
|
--chip-ring-color: var(--ring-success);
|
|
329
333
|
|
|
330
334
|
/* Filled */
|
|
@@ -351,7 +355,7 @@ infonomic-components;
|
|
|
351
355
|
}
|
|
352
356
|
|
|
353
357
|
.info,
|
|
354
|
-
:global(.chip-info) {
|
|
358
|
+
:global(.infonomic-chip-info) {
|
|
355
359
|
--chip-ring-color: var(--ring-info);
|
|
356
360
|
|
|
357
361
|
/* Filled */
|
|
@@ -378,7 +382,7 @@ infonomic-components;
|
|
|
378
382
|
}
|
|
379
383
|
|
|
380
384
|
.warning,
|
|
381
|
-
:global(.chip-warning) {
|
|
385
|
+
:global(.infonomic-chip-warning) {
|
|
382
386
|
--chip-ring-color: var(--ring-warning);
|
|
383
387
|
|
|
384
388
|
/* Filled */
|
|
@@ -405,7 +409,7 @@ infonomic-components;
|
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
.danger,
|
|
408
|
-
:global(.chip-danger) {
|
|
412
|
+
:global(.infonomic-chip-danger) {
|
|
409
413
|
--chip-ring-color: var(--ring-danger);
|
|
410
414
|
|
|
411
415
|
/* Filled */
|
|
@@ -70,7 +70,7 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
if (onClick) {
|
|
73
|
-
;(onClick as React.MouseEventHandler<HTMLElement>)(event)
|
|
73
|
+
; (onClick as React.MouseEventHandler<HTMLElement>)(event)
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
if (isSelectable && onToggle) {
|
|
@@ -86,7 +86,7 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
86
86
|
if ((event.key === 'Enter' || event.key === ' ') && asChild === true) {
|
|
87
87
|
event.preventDefault()
|
|
88
88
|
if (onClick) {
|
|
89
|
-
;(onClick as React.MouseEventHandler<HTMLElement>)(
|
|
89
|
+
; (onClick as React.MouseEventHandler<HTMLElement>)(
|
|
90
90
|
event as unknown as React.MouseEvent<HTMLElement>
|
|
91
91
|
)
|
|
92
92
|
}
|
|
@@ -147,7 +147,7 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
147
147
|
onClick={handleRemoveClick}
|
|
148
148
|
onKeyDown={handleRemoveKeyDown}
|
|
149
149
|
>
|
|
150
|
-
<CloseIcon className={cx(styles.icon, styles['close-icon'])} />
|
|
150
|
+
<CloseIcon className={cx('infonomic-chip-close-icon', styles.icon, styles['close-icon'])} />
|
|
151
151
|
</button>
|
|
152
152
|
) : (
|
|
153
153
|
endIcon
|
|
@@ -165,10 +165,10 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
165
165
|
aria-pressed={isSelectable ? isSelected : undefined}
|
|
166
166
|
aria-selected={isSelectable ? isSelected : undefined}
|
|
167
167
|
className={cx(
|
|
168
|
-
'chip',
|
|
169
|
-
variant
|
|
170
|
-
intent
|
|
171
|
-
size
|
|
168
|
+
'infonomic-chip',
|
|
169
|
+
`infonomic-chip-${variant}`,
|
|
170
|
+
`infonomic-chip-${intent}`,
|
|
171
|
+
`infonomic-chip-${size}`,
|
|
172
172
|
{ selected: isSelected, disabled, removable: isRemovable },
|
|
173
173
|
styles.chip,
|
|
174
174
|
styles[appliedVariant],
|
|
@@ -181,9 +181,9 @@ export const Chip = <C extends React.ElementType = 'button'>({
|
|
|
181
181
|
onKeyDown={handleKeyDown}
|
|
182
182
|
{...restProps}
|
|
183
183
|
>
|
|
184
|
-
{leadingIcon != null && <span className={cx(styles.iconWrapper)}>{leadingIcon}</span>}
|
|
185
|
-
<span className={styles.label}>{children}</span>
|
|
186
|
-
{trailingIcon != null && <span className={cx(styles.iconWrapper)}>{trailingIcon}</span>}
|
|
184
|
+
{leadingIcon != null && <span className={cx('infonomic-chip-icon-wrapper', styles.iconWrapper)}>{leadingIcon}</span>}
|
|
185
|
+
<span className={cx('infonomic-chip-label', styles.label)}>{children}</span>
|
|
186
|
+
{trailingIcon != null && <span className={cx('infonomic-chip-icon-wrapper', styles.iconWrapper)}>{trailingIcon}</span>}
|
|
187
187
|
</Comp>
|
|
188
188
|
)
|
|
189
189
|
}
|
|
@@ -1,13 +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
|
.container,
|
|
10
|
-
:global(.container) {
|
|
11
|
+
:global(.infonomic-container) {
|
|
11
12
|
width: 100%;
|
|
12
13
|
padding: 0 1rem;
|
|
13
14
|
margin: 0 auto;
|
|
@@ -17,25 +18,28 @@
|
|
|
17
18
|
/* Shy edges */
|
|
18
19
|
/* Large */
|
|
19
20
|
@media (min-width: 66rem) {
|
|
21
|
+
|
|
20
22
|
.container,
|
|
21
|
-
:global(.container) {
|
|
23
|
+
:global(.infonomic-container) {
|
|
22
24
|
max-width: 64rem;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
/* X-Large */
|
|
27
29
|
@media (min-width: 77rem) {
|
|
30
|
+
|
|
28
31
|
.container,
|
|
29
|
-
:global(.container) {
|
|
32
|
+
:global(.infonomic-container) {
|
|
30
33
|
max-width: 74.375rem;
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
/* 2X-Large */
|
|
35
38
|
@media (min-width: 94rem) {
|
|
39
|
+
|
|
36
40
|
.container,
|
|
37
|
-
:global(.container) {
|
|
41
|
+
:global(.infonomic-container) {
|
|
38
42
|
max-width: 87.5rem;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
|
-
}
|
|
45
|
+
}
|
|
@@ -5,7 +5,7 @@ import cx from 'classnames'
|
|
|
5
5
|
import styles from './container.module.css'
|
|
6
6
|
|
|
7
7
|
type ContainerIntrinsicProps = React.JSX.IntrinsicElements['div']
|
|
8
|
-
export interface ContainerProps extends ContainerIntrinsicProps {}
|
|
8
|
+
export interface ContainerProps extends ContainerIntrinsicProps { }
|
|
9
9
|
|
|
10
10
|
export const Container = function Container({
|
|
11
11
|
ref,
|
|
@@ -16,7 +16,7 @@ export const Container = function Container({
|
|
|
16
16
|
ref?: React.RefObject<HTMLDivElement>
|
|
17
17
|
}): React.JSX.Element {
|
|
18
18
|
return (
|
|
19
|
-
<div ref={ref} {...rest} className={cx('container', styles.container, className)}>
|
|
19
|
+
<div ref={ref} {...rest} className={cx('infonomic-container', styles.container, className)}>
|
|
20
20
|
{children}
|
|
21
21
|
</div>
|
|
22
22
|
)
|
|
@@ -1,13 +1,16 @@
|
|
|
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
|
.dropdown-content,
|
|
10
|
-
.dropdown-subcontent
|
|
11
|
+
.dropdown-subcontent,
|
|
12
|
+
:global(.infonomic-dropdown-content),
|
|
13
|
+
:global(.infonomic-dropdown-subcontent) {
|
|
11
14
|
z-index: 20;
|
|
12
15
|
background-color: var(--surface-panel-elevated);
|
|
13
16
|
padding: 4px;
|
|
@@ -37,7 +40,8 @@
|
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
.dropdown-item
|
|
43
|
+
.dropdown-item,
|
|
44
|
+
:global(.infonomic-dropdown-item) {
|
|
41
45
|
display: flex;
|
|
42
46
|
align-items: center;
|
|
43
47
|
gap: var(--gap-1);
|
|
@@ -55,13 +59,16 @@
|
|
|
55
59
|
/* Updated to also cover data-highlighted presence */
|
|
56
60
|
.dropdown-item:hover,
|
|
57
61
|
.dropdown-item:focus,
|
|
58
|
-
.dropdown-item[data-highlighted]
|
|
62
|
+
.dropdown-item[data-highlighted],
|
|
63
|
+
:global(.infonomic-dropdown-item):hover,
|
|
64
|
+
:global(.infonomic-dropdown-item):focus,
|
|
65
|
+
:global(.infonomic-dropdown-item)[data-highlighted] {
|
|
59
66
|
background-color: var(--surface-item-hover);
|
|
60
67
|
color: var(--surface-item-text-hover);
|
|
61
68
|
}
|
|
62
69
|
|
|
63
|
-
.dropdown-separator
|
|
64
|
-
|
|
70
|
+
.dropdown-separator,
|
|
71
|
+
:global(.infonomic-dropdown-separator) {
|
|
65
72
|
width: 90%;
|
|
66
73
|
background-color: var(--surface-panel-border);
|
|
67
74
|
margin: var(--spacing-4) 0;
|
|
@@ -119,4 +126,4 @@
|
|
|
119
126
|
transform: translateX(0);
|
|
120
127
|
}
|
|
121
128
|
}
|
|
122
|
-
}
|
|
129
|
+
}
|
|
@@ -21,7 +21,7 @@ const Trigger = ({
|
|
|
21
21
|
}): React.JSX.Element => {
|
|
22
22
|
return (
|
|
23
23
|
<DropdownMenuPrimitive.Trigger
|
|
24
|
-
className={cx('dropdown-
|
|
24
|
+
className={cx('infonomic-dropdown-trigger', className)}
|
|
25
25
|
ref={ref}
|
|
26
26
|
{...rest}
|
|
27
27
|
>
|
|
@@ -49,7 +49,7 @@ const Content = ({
|
|
|
49
49
|
return (
|
|
50
50
|
<DropdownMenuPrimitive.Content
|
|
51
51
|
ref={ref}
|
|
52
|
-
className={cx('dropdown-
|
|
52
|
+
className={cx('infonomic-dropdown-content', styles['dropdown-content'], className)}
|
|
53
53
|
{...rest}
|
|
54
54
|
>
|
|
55
55
|
{children}
|
|
@@ -69,7 +69,7 @@ const Group = ({
|
|
|
69
69
|
return (
|
|
70
70
|
<DropdownMenuPrimitive.Group
|
|
71
71
|
ref={ref}
|
|
72
|
-
className={cx('dropdown-
|
|
72
|
+
className={cx('infonomic-dropdown-group', className)}
|
|
73
73
|
{...rest}
|
|
74
74
|
>
|
|
75
75
|
{children}
|
|
@@ -89,7 +89,7 @@ const Item = ({
|
|
|
89
89
|
return (
|
|
90
90
|
<DropdownMenuPrimitive.Item
|
|
91
91
|
ref={ref}
|
|
92
|
-
className={cx('dropdown-
|
|
92
|
+
className={cx('infonomic-dropdown-item', styles['dropdown-item'], className)}
|
|
93
93
|
{...rest}
|
|
94
94
|
>
|
|
95
95
|
{children}
|
|
@@ -109,7 +109,7 @@ const Label = ({
|
|
|
109
109
|
return (
|
|
110
110
|
<DropdownMenuPrimitive.Label
|
|
111
111
|
ref={ref}
|
|
112
|
-
className={cx('dropdown-
|
|
112
|
+
className={cx('infonomic-dropdown-label', className)}
|
|
113
113
|
{...rest}
|
|
114
114
|
>
|
|
115
115
|
{children}
|
|
@@ -128,7 +128,7 @@ const Separator = ({
|
|
|
128
128
|
return (
|
|
129
129
|
<DropdownMenuPrimitive.Separator
|
|
130
130
|
ref={ref}
|
|
131
|
-
className={cx('dropdown-
|
|
131
|
+
className={cx('infonomic-dropdown-separator', styles['dropdown-separator'], className)}
|
|
132
132
|
{...props}
|
|
133
133
|
/>
|
|
134
134
|
)
|
|
@@ -150,7 +150,7 @@ const SubContent = ({
|
|
|
150
150
|
return (
|
|
151
151
|
<DropdownMenuPrimitive.SubContent
|
|
152
152
|
ref={ref}
|
|
153
|
-
className={cx('dropdown-
|
|
153
|
+
className={cx('infonomic-dropdown-subcontent', styles['dropdown-subcontent'], className)}
|
|
154
154
|
{...rest}
|
|
155
155
|
>
|
|
156
156
|
{children}
|
|
@@ -170,7 +170,7 @@ const SubTrigger = ({
|
|
|
170
170
|
return (
|
|
171
171
|
<DropdownMenuPrimitive.SubTrigger
|
|
172
172
|
ref={ref}
|
|
173
|
-
className={cx('dropdown-
|
|
173
|
+
className={cx('infonomic-dropdown-subtrigger', className)}
|
|
174
174
|
{...rest}
|
|
175
175
|
>
|
|
176
176
|
{children}
|