@infonomic/uikit 6.5.1 → 6.7.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/README.md +76 -4
- package/dist/components/accordion/accordion.module.css +1 -2
- package/dist/components/avatar/avatar.module.css +2 -19
- package/dist/components/avatar/avatar_module.css +2 -10
- package/dist/components/button/button-group.d.ts.map +1 -1
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button.module.css +56 -37
- package/dist/components/button/button_module.css +12 -12
- package/dist/components/button/combo-button.d.ts.map +1 -1
- package/dist/components/button/combo-button.module.css +3 -3
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +14 -7
- package/dist/components/card/card.module.css +1 -9
- package/dist/components/card/card_module.css +1 -5
- package/dist/components/chips/chip.module.css +32 -21
- package/dist/components/chips/chip_module.css +2 -2
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/hamburger/hamburger.module.css +6 -7
- package/dist/components/inputs/autocomplete.d.ts.map +1 -1
- package/dist/components/inputs/autocomplete.module.css +9 -10
- package/dist/components/inputs/autocomplete_module.css +2 -2
- package/dist/components/inputs/checkbox-group.module.css +6 -7
- package/dist/components/inputs/checkbox.module.css +16 -18
- package/dist/components/inputs/checkbox_module.css +2 -2
- package/dist/components/inputs/error-text.module.css +1 -1
- package/dist/components/inputs/error-text_module.css +1 -1
- package/dist/components/inputs/input.module.css +10 -11
- package/dist/components/inputs/input_module.css +2 -2
- package/dist/components/inputs/label.module.css +1 -1
- package/dist/components/inputs/label_module.css +1 -1
- package/dist/components/inputs/radio-group.module.css +6 -7
- package/dist/components/inputs/select.d.ts.map +1 -1
- package/dist/components/inputs/select.module.css +6 -7
- package/dist/components/inputs/text-area.module.css +10 -9
- package/dist/components/notifications/toast.module.css +9 -19
- package/dist/components/notifications/toast_module.css +3 -6
- package/dist/components/pager/first-button.d.ts.map +1 -1
- package/dist/components/pager/last-button.d.ts.map +1 -1
- package/dist/components/pager/next-button.d.ts.map +1 -1
- package/dist/components/pager/number-button.d.ts.map +1 -1
- package/dist/components/pager/pagination.module.css +1 -6
- package/dist/components/pager/pagination_module.css +1 -1
- package/dist/components/pager/previous-button.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-to-top/scroll-to-top.module.css +3 -3
- package/dist/components/scroll-to-top/scroll-to-top_module.css +6 -6
- package/dist/components/tabs/tabs.module.css +6 -7
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.module.css +10 -11
- package/dist/lib/ripple.js +3 -3
- package/dist/loaders/ellipses.d.ts.map +1 -1
- package/dist/loaders/ring.d.ts.map +1 -1
- package/dist/loaders/spinner.d.ts.map +1 -1
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.module.css +1 -2
- package/dist/widgets/drawer/drawer.module.css +1 -2
- package/dist/widgets/modal/modal.d.ts.map +1 -1
- package/dist/widgets/modal/modal.module.css +1 -4
- package/package.json +2 -2
- package/src/components/accordion/accordion.module.css +1 -2
- package/src/components/avatar/avatar.module.css +2 -19
- package/src/components/button/button-group.tsx +3 -9
- package/src/components/button/button.module.css +56 -37
- package/src/components/button/combo-button.module.css +3 -3
- package/src/components/button/combo-button.tsx +1 -7
- package/src/components/button/copy-button.tsx +23 -9
- package/src/components/card/card.module.css +1 -9
- package/src/components/chips/chip.module.css +32 -21
- package/src/components/chips/chip.stories.tsx +2 -2
- package/src/components/chips/chip.tsx +2 -2
- package/src/components/dropdown/dropdown.tsx +4 -19
- package/src/components/hamburger/hamburger.module.css +6 -7
- package/src/components/hamburger/hamburger.stories.tsx +0 -1
- package/src/components/inputs/autocomplete.module.css +9 -10
- package/src/components/inputs/autocomplete.tsx +10 -4
- package/src/components/inputs/calendar.stories.tsx +18 -18
- package/src/components/inputs/checkbox-group.module.css +6 -7
- package/src/components/inputs/checkbox-group.stories.tsx +4 -7
- package/src/components/inputs/checkbox.module.css +16 -18
- package/src/components/inputs/error-text.module.css +1 -1
- package/src/components/inputs/input.module.css +10 -11
- package/src/components/inputs/label.module.css +1 -1
- package/src/components/inputs/radio-group.module.css +6 -7
- package/src/components/inputs/select.module.css +6 -7
- package/src/components/inputs/select.stories.tsx +21 -4
- package/src/components/inputs/select.tsx +9 -7
- package/src/components/inputs/text-area.module.css +10 -9
- package/src/components/notifications/toast.module.css +9 -19
- package/src/components/notifications/toast.tsx +2 -11
- package/src/components/pager/first-button.tsx +5 -1
- package/src/components/pager/last-button.tsx +5 -1
- package/src/components/pager/next-button.tsx +5 -1
- package/src/components/pager/number-button.tsx +6 -3
- package/src/components/pager/pagination.module.css +1 -6
- package/src/components/pager/previous-button.tsx +5 -1
- package/src/components/scroll-area/scroll-area.tsx +1 -1
- package/src/components/scroll-to-top/scroll-to-top.module.css +3 -3
- package/src/components/tabs/tabs.module.css +6 -7
- package/src/components/tooltip/tooltip.module.css +10 -11
- package/src/components/tooltip/tooltip.tsx +12 -12
- package/src/lib/ripple.ts +3 -3
- package/src/loaders/ellipses.tsx +1 -1
- package/src/loaders/loaders.stories.tsx +44 -10
- package/src/loaders/ring.tsx +1 -1
- package/src/loaders/spinner.tsx +2 -2
- package/src/styles/components/hamburger.css +6 -6
- package/src/styles/components/loaders.css +1 -1
- package/src/styles/functional/README.md +67 -0
- package/src/styles/functional/borders.css +19 -0
- package/src/styles/functional/colors.css +237 -69
- package/src/styles/functional/functional.css +1 -0
- package/src/styles/functional/shadcn-compat.css +90 -0
- package/src/styles/functional/surfaces.css +17 -0
- package/src/styles/functional/typography.css +14 -6
- package/src/styles/local-fonts.css +1 -1
- package/src/styles/theme/theme.css +1 -1
- package/src/styles/utils/utility-classes.css +12 -22
- package/src/widgets/datepicker/datepicker.module.css +1 -2
- package/src/widgets/datepicker/datepicker.tsx +10 -8
- package/src/widgets/drawer/drawer.module.css +1 -2
- package/src/widgets/modal/modal.module.css +1 -4
- package/src/widgets/modal/modal.tsx +2 -6
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
:global(.infonomic-checkbox-group),
|
|
11
10
|
.checkbox-group {
|
|
12
11
|
display: flex;
|
|
13
12
|
flex-direction: column;
|
|
14
13
|
gap: var(--spacing-8);
|
|
15
14
|
}
|
|
16
|
-
}
|
|
15
|
+
}
|
|
@@ -4,7 +4,6 @@ import { useState } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { CheckboxGroup } from './checkbox-group.js'
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
export default {
|
|
9
8
|
title: 'Components/Inputs/CheckboxGroup',
|
|
10
9
|
component: CheckboxGroup,
|
|
@@ -14,7 +13,7 @@ export default {
|
|
|
14
13
|
export const Default = (): React.JSX.Element => {
|
|
15
14
|
const [checked, setChecked] = useState(false)
|
|
16
15
|
|
|
17
|
-
const
|
|
16
|
+
const _handleOnClick = (): void => {
|
|
18
17
|
console.log('clicked')
|
|
19
18
|
setChecked(!checked)
|
|
20
19
|
}
|
|
@@ -34,14 +33,12 @@ export const Default = (): React.JSX.Element => {
|
|
|
34
33
|
{ id: 'editor', label: 'Editor' },
|
|
35
34
|
{ id: 'viewer', label: 'Viewer' },
|
|
36
35
|
]}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
// onChange={(selected) => {
|
|
37
|
+
// handleOnClick(selected)
|
|
38
|
+
// }}
|
|
40
39
|
/>
|
|
41
40
|
</div>
|
|
42
41
|
</div>
|
|
43
42
|
</div>
|
|
44
43
|
)
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.container,
|
|
11
10
|
:global(.infonomic-checkbox-container) {
|
|
12
11
|
width: 100%;
|
|
@@ -93,8 +92,8 @@ infonomic-components;
|
|
|
93
92
|
color: var(--label-color);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
.checkbox[data-disabled]
|
|
97
|
-
:global(.infonomic-checkbox)[data-disabled]~ :global(.infonomic-checkbox-label) {
|
|
95
|
+
.checkbox[data-disabled] ~ .label,
|
|
96
|
+
:global(.infonomic-checkbox)[data-disabled] ~ :global(.infonomic-checkbox-label) {
|
|
98
97
|
pointer-events: none;
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -118,8 +117,8 @@ infonomic-components;
|
|
|
118
117
|
height: 16px;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
.sm
|
|
122
|
-
:global(.infonomic-checkbox-sm)~ :global(.infonomic-checkbox-label) {
|
|
120
|
+
.sm ~ .label,
|
|
121
|
+
:global(.infonomic-checkbox-sm) ~ :global(.infonomic-checkbox-label) {
|
|
123
122
|
font-size: 0.85rem;
|
|
124
123
|
}
|
|
125
124
|
|
|
@@ -135,8 +134,8 @@ infonomic-components;
|
|
|
135
134
|
height: 18px;
|
|
136
135
|
}
|
|
137
136
|
|
|
138
|
-
.md
|
|
139
|
-
:global(.infonomic-checkbox-md)~ :global(.infonomic-checkbox-label) {
|
|
137
|
+
.md ~ .label,
|
|
138
|
+
:global(.infonomic-checkbox-md) ~ :global(.infonomic-checkbox-label) {
|
|
140
139
|
font-size: 0.875rem;
|
|
141
140
|
}
|
|
142
141
|
|
|
@@ -152,8 +151,8 @@ infonomic-components;
|
|
|
152
151
|
height: 22px;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
.lg
|
|
156
|
-
:global(.infonomic-checkbox-lg)~ :global(.infonomic-checkbox-label) {
|
|
154
|
+
.lg ~ .label,
|
|
155
|
+
:global(.infonomic-checkbox-lg) ~ :global(.infonomic-checkbox-label) {
|
|
157
156
|
font-size: 1rem;
|
|
158
157
|
}
|
|
159
158
|
|
|
@@ -209,7 +208,7 @@ infonomic-components;
|
|
|
209
208
|
--checkbox-variant-outlined-hover-border: var(--fill-noeffect-strong-hover);
|
|
210
209
|
--checkbox-variant-outline-ring-color: var(--ring-noeffect);
|
|
211
210
|
--checkbox-variant-filled: var(--fill-noeffect-strong);
|
|
212
|
-
--checkbox-icon-color: var(--text-on-noeffect);
|
|
211
|
+
--checkbox-icon-color: var(--text-on-noeffect-strong);
|
|
213
212
|
}
|
|
214
213
|
|
|
215
214
|
.success,
|
|
@@ -239,7 +238,7 @@ infonomic-components;
|
|
|
239
238
|
--checkbox-variant-outlined-hover-border: var(--fill-warning-strong-hover);
|
|
240
239
|
--checkbox-variant-outline-ring-color: var(--ring-warning);
|
|
241
240
|
--checkbox-variant-filled: var(--fill-warning-strong);
|
|
242
|
-
--checkbox-icon-color: var(--text-on-warning);
|
|
241
|
+
--checkbox-icon-color: var(--text-on-warning-strong);
|
|
243
242
|
}
|
|
244
243
|
|
|
245
244
|
.danger,
|
|
@@ -276,5 +275,4 @@ infonomic-components;
|
|
|
276
275
|
/* Settle */
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
|
-
|
|
280
|
-
}
|
|
278
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.input-wrapper,
|
|
11
10
|
:global(.infonomic-input-wrapper) {
|
|
12
11
|
display: flex;
|
|
@@ -172,23 +171,23 @@ infonomic-components;
|
|
|
172
171
|
background-color: var(--input-variant-filled);
|
|
173
172
|
}
|
|
174
173
|
|
|
175
|
-
/* Error classes last, so that they override all
|
|
174
|
+
/* Error classes last, so that they override all
|
|
176
175
|
of the above */
|
|
177
176
|
.error,
|
|
178
177
|
:global(.infonomic-input-error) {
|
|
179
|
-
border: 1px solid var(--
|
|
178
|
+
border: 1px solid var(--field-border-invalid);
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.error:hover,
|
|
183
182
|
:global(.infonomic-input-error):hover {
|
|
184
|
-
border: 1px solid var(--
|
|
183
|
+
border: 1px solid var(--field-border-invalid);
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
.error:focus,
|
|
188
187
|
.error:active,
|
|
189
188
|
:global(.infonomic-input-error):focus,
|
|
190
189
|
:global(.infonomic-input-error):active {
|
|
191
|
-
--ring-color: var(--
|
|
190
|
+
--ring-color: var(--field-ring-invalid);
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
.underlined.start-adornment-padding,
|
|
@@ -287,4 +286,4 @@ infonomic-components;
|
|
|
287
286
|
}
|
|
288
287
|
|
|
289
288
|
/* Dark mode handled by semantic tokens in theme layer */
|
|
290
|
-
}
|
|
289
|
+
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
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
|
-
|
|
11
10
|
.column,
|
|
12
11
|
:global(.infonomic-radio-group-column) {
|
|
13
12
|
display: flex;
|
|
@@ -173,4 +172,4 @@ infonomic-components;
|
|
|
173
172
|
transform: scale(0.8);
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
|
-
}
|
|
175
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.positioner,
|
|
11
10
|
:global(.infonomic-select-positioner) {
|
|
12
11
|
z-index: 50;
|
|
@@ -150,4 +149,4 @@ infonomic-components;
|
|
|
150
149
|
.popup-xl .select-item-indicator {
|
|
151
150
|
width: 28px;
|
|
152
151
|
}
|
|
153
|
-
}
|
|
152
|
+
}
|
|
@@ -21,7 +21,12 @@ export const Default = (): React.JSX.Element => {
|
|
|
21
21
|
return (
|
|
22
22
|
<>
|
|
23
23
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
24
|
-
<Select
|
|
24
|
+
<Select
|
|
25
|
+
items={values}
|
|
26
|
+
size="xl"
|
|
27
|
+
placeholder="Select one..."
|
|
28
|
+
helpText="Extra Large select."
|
|
29
|
+
/>
|
|
25
30
|
</div>
|
|
26
31
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
27
32
|
<Select items={values} size="lg" placeholder="Select one..." helpText="Large select." />
|
|
@@ -33,7 +38,12 @@ export const Default = (): React.JSX.Element => {
|
|
|
33
38
|
<Select items={values} size="sm" placeholder="Select one..." helpText="Small select." />
|
|
34
39
|
</div>
|
|
35
40
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
36
|
-
<Select
|
|
41
|
+
<Select
|
|
42
|
+
items={values}
|
|
43
|
+
size="xs"
|
|
44
|
+
placeholder="Select one..."
|
|
45
|
+
helpText="Extra small select."
|
|
46
|
+
/>
|
|
37
47
|
</div>
|
|
38
48
|
</>
|
|
39
49
|
)
|
|
@@ -42,10 +52,17 @@ export const Default = (): React.JSX.Element => {
|
|
|
42
52
|
export const CustomChildren = (): React.JSX.Element => {
|
|
43
53
|
return (
|
|
44
54
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
45
|
-
<Select
|
|
55
|
+
<Select
|
|
56
|
+
items={values}
|
|
57
|
+
size="md"
|
|
58
|
+
placeholder="Select one..."
|
|
59
|
+
helpText="Custom children rendering."
|
|
60
|
+
>
|
|
46
61
|
{values.map((value) => (
|
|
47
62
|
<SelectItem key={value.value} value={value.value} label={value.label}>
|
|
48
|
-
{value.prefix}
|
|
63
|
+
{value.prefix}
|
|
64
|
+
{value.label}
|
|
65
|
+
{value.suffix}
|
|
49
66
|
</SelectItem>
|
|
50
67
|
))}
|
|
51
68
|
</Select>
|
|
@@ -84,13 +84,16 @@ export function Select<Value extends string | number = string>({
|
|
|
84
84
|
<SelectPrimitive.ScrollUpArrow className={styles['scroll-arrow']}>
|
|
85
85
|
<ChevronUpIcon />
|
|
86
86
|
</SelectPrimitive.ScrollUpArrow>
|
|
87
|
-
<SelectPrimitive.Popup
|
|
87
|
+
<SelectPrimitive.Popup
|
|
88
|
+
className={cx(styles.popup, size != null && styles[`popup-${size}`])}
|
|
89
|
+
>
|
|
88
90
|
<SelectPrimitive.List className={styles.list}>
|
|
89
|
-
{children ??
|
|
90
|
-
|
|
91
|
-
{item.label}
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
{children ??
|
|
92
|
+
items?.map((item) => (
|
|
93
|
+
<SelectItem key={item.value} value={item.value} label={item.label}>
|
|
94
|
+
{item.label}
|
|
95
|
+
</SelectItem>
|
|
96
|
+
))}
|
|
94
97
|
</SelectPrimitive.List>
|
|
95
98
|
</SelectPrimitive.Popup>
|
|
96
99
|
<SelectPrimitive.ScrollDownArrow className={styles['scroll-arrow']}>
|
|
@@ -98,7 +101,6 @@ export function Select<Value extends string | number = string>({
|
|
|
98
101
|
</SelectPrimitive.ScrollDownArrow>
|
|
99
102
|
</SelectPrimitive.Positioner>
|
|
100
103
|
</SelectPrimitive.Portal>
|
|
101
|
-
|
|
102
104
|
</SelectPrimitive.Root>
|
|
103
105
|
{helpText != null && helpText?.length > 0 && <HelpText text={helpText} />}
|
|
104
106
|
</div>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.text-area,
|
|
11
10
|
:global(.infonomic-text-area) {
|
|
12
11
|
font-size: 1rem;
|
|
@@ -27,7 +26,9 @@ infonomic-components;
|
|
|
27
26
|
outline: none;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
.outlined {
|
|
29
|
+
.outlined {
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
.filled {
|
|
33
|
-
}
|
|
32
|
+
.filled {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
9
|
/* ============================================
|
|
@@ -53,7 +53,6 @@ infonomic-components;
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
@media (min-width: 48rem) {
|
|
56
|
-
|
|
57
56
|
.bottom-right,
|
|
58
57
|
:global(.infonomic-toast-bottom-right) {
|
|
59
58
|
bottom: var(--viewport-padding);
|
|
@@ -104,27 +103,19 @@ infonomic-components;
|
|
|
104
103
|
gap: var(--gap-1);
|
|
105
104
|
padding-top: 12px;
|
|
106
105
|
padding-bottom: 16px;
|
|
107
|
-
background: var(--
|
|
106
|
+
background: var(--surface-panel-elevated);
|
|
108
107
|
border-width: var(--border-width-thin);
|
|
109
108
|
border-color: var(--border-color);
|
|
110
109
|
border-style: var(--border-style-solid);
|
|
111
110
|
border-radius: var(--border-radius-md);
|
|
112
111
|
box-shadow: var(--shadow-sm);
|
|
113
|
-
transform: translateX(var(--toast-swipe-movement-x, 0))
|
|
112
|
+
transform: translateX(var(--toast-swipe-movement-x, 0))
|
|
113
|
+
translateY(var(--toast-swipe-movement-y, 0));
|
|
114
114
|
transition:
|
|
115
115
|
transform 200ms ease-out,
|
|
116
116
|
opacity 150ms ease-in;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
:global(.dark),
|
|
120
|
-
:global([data-theme="dark"]) {
|
|
121
|
-
|
|
122
|
-
.root,
|
|
123
|
-
:global(.infonomic-toast-root) {
|
|
124
|
-
background: var(--canvas-800);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
119
|
/* Entry animation */
|
|
129
120
|
.root[data-starting-style],
|
|
130
121
|
:global(.infonomic-toast-root[data-starting-style]) {
|
|
@@ -133,7 +124,6 @@ infonomic-components;
|
|
|
133
124
|
}
|
|
134
125
|
|
|
135
126
|
@media (min-width: 48rem) {
|
|
136
|
-
|
|
137
127
|
.viewport.top-right .root[data-starting-style],
|
|
138
128
|
.viewport.bottom-right .root[data-starting-style],
|
|
139
129
|
:global(.infonomic-toast-viewport.top-right .infonomic-toast-root[data-starting-style]),
|
|
@@ -241,4 +231,4 @@ infonomic-components;
|
|
|
241
231
|
justify-content: end;
|
|
242
232
|
padding: 0 12px 0 12px;
|
|
243
233
|
}
|
|
244
|
-
}
|
|
234
|
+
}
|
|
@@ -65,17 +65,8 @@ export function ToastViewport({ position = 'bottom-right', className }: ToastVie
|
|
|
65
65
|
)
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
function ToastItem({
|
|
69
|
-
toast
|
|
70
|
-
}: {
|
|
71
|
-
toast: ToastPrimitive.Root.ToastObject<ToastData>
|
|
72
|
-
}) {
|
|
73
|
-
const {
|
|
74
|
-
intent = 'success',
|
|
75
|
-
iconType = 'success',
|
|
76
|
-
icon = true,
|
|
77
|
-
close = true,
|
|
78
|
-
} = toast.data ?? {}
|
|
68
|
+
function ToastItem({ toast }: { toast: ToastPrimitive.Root.ToastObject<ToastData> }) {
|
|
69
|
+
const { intent = 'success', iconType = 'success', icon = true, close = true } = toast.data ?? {}
|
|
79
70
|
const eventDateRef = React.useRef(new Date())
|
|
80
71
|
const Icon = toastIcons[iconType as keyof typeof toastIcons]
|
|
81
72
|
|
|
@@ -39,7 +39,11 @@ export const FirstButton = ({
|
|
|
39
39
|
return (
|
|
40
40
|
<li className={styles['mobile-toggle']}>
|
|
41
41
|
{render ? (
|
|
42
|
-
React.cloneElement(
|
|
42
|
+
React.cloneElement(
|
|
43
|
+
render,
|
|
44
|
+
{ ref, ...sharedProps } as React.Attributes & Record<string, unknown>,
|
|
45
|
+
children
|
|
46
|
+
)
|
|
43
47
|
) : (
|
|
44
48
|
<button ref={ref as React.RefObject<HTMLButtonElement>} {...sharedProps}>
|
|
45
49
|
{children ?? <ChevronLeftDoubleIcon width="18px" height="18px" />}
|
|
@@ -44,7 +44,11 @@ export const LastButton = ({
|
|
|
44
44
|
return (
|
|
45
45
|
<li className={styles['mobile-toggle']}>
|
|
46
46
|
{render ? (
|
|
47
|
-
React.cloneElement(
|
|
47
|
+
React.cloneElement(
|
|
48
|
+
render,
|
|
49
|
+
{ ref, ...sharedProps } as React.Attributes & Record<string, unknown>,
|
|
50
|
+
children
|
|
51
|
+
)
|
|
48
52
|
) : (
|
|
49
53
|
<button ref={ref as React.RefObject<HTMLButtonElement>} {...sharedProps}>
|
|
50
54
|
{children ?? <ChevronRightDoubleIcon width="18px" height="18px" />}
|
|
@@ -44,7 +44,11 @@ export const NextButton = ({
|
|
|
44
44
|
return (
|
|
45
45
|
<li className={styles['mobile-toggle']}>
|
|
46
46
|
{render ? (
|
|
47
|
-
React.cloneElement(
|
|
47
|
+
React.cloneElement(
|
|
48
|
+
render,
|
|
49
|
+
{ ref, ...sharedProps } as React.Attributes & Record<string, unknown>,
|
|
50
|
+
children
|
|
51
|
+
)
|
|
48
52
|
) : (
|
|
49
53
|
<button ref={ref as React.RefObject<HTMLButtonElement>} {...sharedProps}>
|
|
50
54
|
{children ?? <ChevronRightIcon width="18px" height="18px" />}
|
|
@@ -51,8 +51,7 @@ export const NumberButton = ({
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
[styles['rounded-right']]:
|
|
54
|
-
page === count &&
|
|
55
|
-
((!(showLastButton ?? false) && (hideNextButton ?? false)) || mobile),
|
|
54
|
+
page === count && ((!(showLastButton ?? false) && (hideNextButton ?? false)) || mobile),
|
|
56
55
|
},
|
|
57
56
|
'pagination-number',
|
|
58
57
|
className
|
|
@@ -71,7 +70,11 @@ export const NumberButton = ({
|
|
|
71
70
|
return (
|
|
72
71
|
<li className="flex">
|
|
73
72
|
{render ? (
|
|
74
|
-
React.cloneElement(
|
|
73
|
+
React.cloneElement(
|
|
74
|
+
render,
|
|
75
|
+
{ ref, ...sharedProps } as React.Attributes & Record<string, unknown>,
|
|
76
|
+
children
|
|
77
|
+
)
|
|
75
78
|
) : (
|
|
76
79
|
<button ref={ref as React.RefObject<HTMLButtonElement>} {...sharedProps}>
|
|
77
80
|
{children ?? page}
|
|
@@ -133,11 +133,6 @@
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
/* 🌙 Dark via `.dark` class. We rely on the
|
|
137
|
-
* consuming application to detect a user's preferred
|
|
138
|
-
* color scheme - either by header or cookie, and set
|
|
139
|
-
* a root html class accordingly
|
|
140
|
-
*/
|
|
141
136
|
:global(.dark),
|
|
142
137
|
:global([data-theme="dark"]) {
|
|
143
138
|
.ellipses,
|
|
@@ -146,7 +141,7 @@
|
|
|
146
141
|
.last-button,
|
|
147
142
|
.previous-button,
|
|
148
143
|
.first-button {
|
|
149
|
-
border-color: var(--
|
|
144
|
+
border-color: var(--border-color);
|
|
150
145
|
}
|
|
151
146
|
}
|
|
152
147
|
}
|
|
@@ -39,7 +39,11 @@ export const PreviousButton = ({
|
|
|
39
39
|
return (
|
|
40
40
|
<li className={styles['mobile-toggle']}>
|
|
41
41
|
{render ? (
|
|
42
|
-
React.cloneElement(
|
|
42
|
+
React.cloneElement(
|
|
43
|
+
render,
|
|
44
|
+
{ ref, ...sharedProps } as React.Attributes & Record<string, unknown>,
|
|
45
|
+
children
|
|
46
|
+
)
|
|
43
47
|
) : (
|
|
44
48
|
<button ref={ref as React.RefObject<HTMLButtonElement>} {...sharedProps}>
|
|
45
49
|
{children ?? <ChevronLeftIcon width="18px" height="18px" />}
|
|
@@ -5,7 +5,7 @@ import cx from 'classnames'
|
|
|
5
5
|
|
|
6
6
|
import styles from './scroll-area.module.css'
|
|
7
7
|
|
|
8
|
-
interface ScrollAreaProps extends React.ComponentProps<typeof ScrollAreaPrimitive.Root> {
|
|
8
|
+
interface ScrollAreaProps extends React.ComponentProps<typeof ScrollAreaPrimitive.Root> {}
|
|
9
9
|
|
|
10
10
|
export const ScrollArea = ({ children, style, className }: ScrollAreaProps) => (
|
|
11
11
|
<ScrollAreaPrimitive.Root
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
justify-content: center;
|
|
24
24
|
bottom: 45px;
|
|
25
25
|
right: 30px;
|
|
26
|
-
color: var(--text-on-primary);
|
|
26
|
+
color: var(--text-on-primary-strong);
|
|
27
27
|
background-color: var(--fill-primary-strong);
|
|
28
28
|
transition-property: all, color;
|
|
29
29
|
transition-duration: 0.3s, 1ms;
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
.scroll-to-top span svg path,
|
|
42
42
|
:global(.infonomic-scroll-to-top span svg path) {
|
|
43
43
|
stroke: none;
|
|
44
|
-
fill: var(--text-on-primary);
|
|
44
|
+
fill: var(--text-on-primary-strong);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.scroll-to-top:hover,
|
|
48
48
|
.scroll-to-top:focus,
|
|
49
49
|
:global(.infonomic-scroll-to-top:hover),
|
|
50
50
|
:global(.infonomic-scroll-to-top:focus) {
|
|
51
|
-
color: var(--text-on-primary);
|
|
51
|
+
color: var(--text-on-primary-strong);
|
|
52
52
|
background-color: var(--fill-primary-strong-hover);
|
|
53
53
|
transform: translateY(-5px);
|
|
54
54
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.tabs-root,
|
|
11
10
|
:global(.infonomic-tabs-root) {
|
|
12
11
|
display: flex;
|
|
@@ -62,4 +61,4 @@ infonomic-components;
|
|
|
62
61
|
outline: none;
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
|
-
}
|
|
64
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@layer infonomic-base,
|
|
2
|
-
infonomic-functional,
|
|
3
|
-
infonomic-utilities,
|
|
4
|
-
infonomic-theme,
|
|
5
|
-
infonomic-typography,
|
|
6
|
-
infonomic-components;
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
7
7
|
|
|
8
8
|
@layer infonomic-components {
|
|
9
|
-
|
|
10
9
|
.tooltip,
|
|
11
10
|
:global(.infonomic-tooltip) {
|
|
12
11
|
font-size: 0.75rem;
|
|
@@ -46,22 +45,22 @@ infonomic-components;
|
|
|
46
45
|
:global(.infonomic-tooltip-arrow) {
|
|
47
46
|
display: flex;
|
|
48
47
|
|
|
49
|
-
&[data-side=
|
|
48
|
+
&[data-side="top"] {
|
|
50
49
|
bottom: -6px;
|
|
51
50
|
rotate: 180deg;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
&[data-side=
|
|
53
|
+
&[data-side="bottom"] {
|
|
55
54
|
top: -6px;
|
|
56
55
|
rotate: 0deg;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
&[data-side=
|
|
58
|
+
&[data-side="left"] {
|
|
60
59
|
right: -10px;
|
|
61
60
|
rotate: 90deg;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
&[data-side=
|
|
63
|
+
&[data-side="right"] {
|
|
65
64
|
left: -10px;
|
|
66
65
|
rotate: -90deg;
|
|
67
66
|
}
|
|
@@ -78,4 +77,4 @@ infonomic-components;
|
|
|
78
77
|
.arrow-inner-stroke {
|
|
79
78
|
fill: var(--surface-panel-elevated);
|
|
80
79
|
}
|
|
81
|
-
}
|
|
80
|
+
}
|