@infonomic/uikit 5.26.0 → 5.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion.module.css +11 -5
- package/dist/components/accordion/accordion_module.css +7 -7
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +5 -4
- package/dist/components/avatar/avatar.module.css +17 -11
- package/dist/components/avatar/avatar_module.css +6 -6
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge.module.css +8 -8
- package/dist/components/badge/badge_module.css +8 -8
- package/dist/components/button/button-group.module.css +5 -3
- package/dist/components/button/button-group_module.css +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.module.css +50 -50
- package/dist/components/button/button_module.css +38 -38
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons.module.css +6 -2
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/copy-button.module.css +14 -13
- package/dist/components/button/copy-button_module.css +7 -7
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card.module.css +10 -10
- package/dist/components/card/card_module.css +10 -10
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip.module.css +49 -45
- package/dist/components/chips/chip_module.css +35 -35
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container.module.css +14 -10
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown.module.css +18 -11
- package/dist/components/dropdown/dropdown_module.css +8 -9
- package/dist/components/forms/checkbox.js +5 -5
- package/dist/components/forms/checkbox.module.css +62 -33
- package/dist/components/forms/checkbox_module.css +26 -26
- package/dist/components/forms/error-text.module.css +8 -7
- package/dist/components/forms/error-text_module.css +1 -1
- package/dist/components/forms/help-text.js +1 -1
- package/dist/components/forms/help-text.module.css +8 -7
- package/dist/components/forms/help-text_module.css +1 -1
- package/dist/components/forms/input-adornment.js +1 -1
- package/dist/components/forms/input-adornment.module.css +10 -9
- package/dist/components/forms/input-adornment_module.css +3 -3
- package/dist/components/forms/input.js +5 -5
- package/dist/components/forms/input.module.css +50 -49
- package/dist/components/forms/input_module.css +37 -37
- package/dist/components/forms/label.module.css +9 -8
- package/dist/components/forms/label_module.css +2 -2
- package/dist/components/forms/radio-group.js +1 -1
- package/dist/components/forms/radio-group.module.css +44 -24
- package/dist/components/forms/radio-group_module.css +42 -15
- package/dist/components/forms/select.js +3 -3
- package/dist/components/forms/select.module.css +23 -14
- package/dist/components/forms/select_module.css +17 -6
- package/dist/components/forms/text-area.js +2 -2
- 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/styles/styles.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/widgets/datepicker/datepicker.module.css +2 -2
- package/dist/widgets/datepicker/datepicker.module.js +0 -1
- package/dist/widgets/datepicker/datepicker_module.css +1 -1
- package/dist/widgets/drawer/drawer-container.js +1 -1
- package/dist/widgets/drawer/drawer-content.js +1 -1
- package/dist/widgets/drawer/drawer-header.js +1 -1
- package/dist/widgets/drawer/drawer-top-actions.js +1 -1
- package/dist/widgets/drawer/drawer-wrapper.js +1 -1
- package/dist/widgets/drawer/drawer.module.css +37 -16
- package/dist/widgets/drawer/drawer_module.css +63 -5
- package/dist/widgets/modal/modal-actions.js +1 -1
- package/dist/widgets/modal/modal-container.js +1 -1
- package/dist/widgets/modal/modal-content.js +1 -1
- package/dist/widgets/modal/modal-header.js +1 -1
- package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
- package/dist/widgets/modal/modal-wrapper.js +2 -1
- package/dist/widgets/modal/modal.module.css +18 -8
- package/dist/widgets/modal/modal_module.css +14 -6
- package/dist/widgets/timeline/timeline.module.css +28 -16
- package/dist/widgets/timeline/timeline_module.css +15 -9
- package/package.json +23 -23
- 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 +5 -5
- package/src/components/notifications/alert.module.css +39 -22
- package/src/components/notifications/alert.tsx +10 -10
- package/src/components/notifications/toast.module.css +53 -24
- package/src/components/notifications/toast.tsx +5 -5
- package/src/components/overlay/overlay.module.css +14 -6
- package/src/components/pager/pagination.module.css +12 -11
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +17 -11
- package/src/components/scroll-area/scroll-area.tsx +8 -8
- package/src/components/scroll-to-top/scroll-to-top.module.css +16 -14
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +8 -7
- package/src/components/section/section.tsx +2 -2
- package/src/components/shimmer/shimmer.module.css +14 -6
- package/src/components/table/table.module.css +29 -14
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +15 -10
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +11 -10
- package/src/components/tooltip/tooltip.tsx +5 -2
- package/src/styles/components/loaders.css +1 -1
- package/src/widgets/datepicker/datepicker.module.css +2 -2
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer-wrapper.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +37 -16
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal-wrapper.tsx +2 -1
- package/src/widgets/modal/modal.module.css +18 -8
- package/src/widgets/timeline/timeline.module.css +28 -16
|
@@ -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}
|
|
@@ -1,17 +1,20 @@
|
|
|
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,
|
|
11
|
+
:global(.infonomic-checkbox-container) {
|
|
10
12
|
width: 100%;
|
|
11
13
|
padding: 0;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
.component
|
|
16
|
+
.component,
|
|
17
|
+
:global(.infonomic-checkbox-component) {
|
|
15
18
|
display: flex;
|
|
16
19
|
width: 100%;
|
|
17
20
|
padding: 0;
|
|
@@ -19,11 +22,13 @@
|
|
|
19
22
|
gap: var(--gap-2);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
.reverse
|
|
25
|
+
.reverse,
|
|
26
|
+
:global(.infonomic-checkbox-reverse) {
|
|
23
27
|
flex-direction: row-reverse;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
.checkbox
|
|
30
|
+
.checkbox,
|
|
31
|
+
:global(.infonomic-checkbox) {
|
|
27
32
|
display: inline-flex;
|
|
28
33
|
align-items: center;
|
|
29
34
|
justify-content: center;
|
|
@@ -31,7 +36,8 @@
|
|
|
31
36
|
transition: all var(--transition-normal);
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
.checkbox[data-state="checked"]
|
|
39
|
+
.checkbox[data-state="checked"],
|
|
40
|
+
:global(.infonomic-checkbox)[data-state="checked"] {
|
|
35
41
|
--ring-offset-color: var(--background);
|
|
36
42
|
--ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
|
|
37
43
|
--ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
|
|
@@ -39,88 +45,105 @@
|
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.checkbox:disabled,
|
|
42
|
-
.checkbox
|
|
48
|
+
:global(.infonomic-checkbox):disabled,
|
|
49
|
+
.checkbox[disabled],
|
|
50
|
+
:global(.infonomic-checkbox)[disabled] {
|
|
43
51
|
pointer-events: none;
|
|
44
52
|
}
|
|
45
53
|
|
|
46
|
-
.indicator
|
|
54
|
+
.indicator,
|
|
55
|
+
:global(.infonomic-checkbox-indicator) {
|
|
47
56
|
display: flex;
|
|
48
57
|
align-items: center;
|
|
49
58
|
justify-content: center;
|
|
50
59
|
}
|
|
51
60
|
|
|
52
|
-
.icon
|
|
61
|
+
.icon,
|
|
62
|
+
:global(.infonomic-checkbox-icon) {
|
|
53
63
|
width: 20px;
|
|
54
64
|
height: 20px;
|
|
55
65
|
color: var(--checkbox-icon-color);
|
|
56
66
|
}
|
|
57
67
|
|
|
58
68
|
/* Style for the "checked" state */
|
|
59
|
-
.indicator[data-state="checked"] .icon
|
|
69
|
+
.indicator[data-state="checked"] .icon,
|
|
70
|
+
:global(.infonomic-checkbox-indicator)[data-state="checked"] :global(.infonomic-checkbox-icon) {
|
|
60
71
|
animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
|
|
61
72
|
opacity: 1;
|
|
62
73
|
transform: scale(1);
|
|
63
74
|
}
|
|
64
75
|
|
|
65
76
|
/* Style for the "unchecked" state */
|
|
66
|
-
.indicator[data-state="unchecked"] .icon
|
|
77
|
+
.indicator[data-state="unchecked"] .icon,
|
|
78
|
+
:global(.infonomic-checkbox-indicator)[data-state="unchecked"] :global(.infonomic-checkbox-icon) {
|
|
67
79
|
animation: checkBoxOut 0.2s ease-in;
|
|
68
80
|
opacity: 0;
|
|
69
81
|
transform: scale(0.8);
|
|
70
82
|
}
|
|
71
83
|
|
|
72
|
-
.label
|
|
84
|
+
.label,
|
|
85
|
+
:global(.infonomic-checkbox-label) {
|
|
73
86
|
margin-left: 0.25rem;
|
|
74
87
|
cursor: pointer;
|
|
75
88
|
font-weight: 500;
|
|
76
89
|
color: var(--label-color);
|
|
77
90
|
}
|
|
78
91
|
|
|
79
|
-
.checkbox:disabled
|
|
80
|
-
.checkbox[disabled]
|
|
92
|
+
.checkbox:disabled~.label,
|
|
93
|
+
.checkbox[disabled]~.label,
|
|
94
|
+
:global(.infonomic-checkbox):disabled~:global(.infonomic-checkbox-label),
|
|
95
|
+
:global(.infonomic-checkbox)[disabled]~:global(.infonomic-checkbox-label) {
|
|
81
96
|
pointer-events: none;
|
|
82
97
|
}
|
|
83
98
|
|
|
84
|
-
.errorText
|
|
99
|
+
.errorText,
|
|
100
|
+
:global(.infonomic-dropdown-error-text) {
|
|
85
101
|
margin-top: 0.25rem;
|
|
86
102
|
font-size: 0.875rem;
|
|
87
103
|
color: red;
|
|
88
104
|
}
|
|
89
105
|
|
|
90
106
|
/* Sizes */
|
|
91
|
-
.sm
|
|
107
|
+
.sm,
|
|
108
|
+
:global(.infonomic-checkbox-sm) {
|
|
92
109
|
width: 18px;
|
|
93
110
|
height: 18px;
|
|
94
111
|
}
|
|
95
112
|
|
|
96
|
-
.md
|
|
113
|
+
.md,
|
|
114
|
+
:global(.infonomic-checkbox-md) {
|
|
97
115
|
width: 20px;
|
|
98
116
|
height: 20px;
|
|
99
117
|
}
|
|
100
118
|
|
|
101
|
-
.lg
|
|
119
|
+
.lg,
|
|
120
|
+
:global(.infonomic-checkbox-lg) {
|
|
102
121
|
width: 22px;
|
|
103
122
|
height: 22px;
|
|
104
123
|
}
|
|
105
124
|
|
|
106
125
|
/* Variants */
|
|
107
|
-
.outlined
|
|
126
|
+
.outlined,
|
|
127
|
+
:global(.infonomic-checkbox-outlined) {
|
|
108
128
|
border: 2px solid var(--checkbox-variant-outlined-border);
|
|
109
129
|
--checkbox-icon-color: white;
|
|
110
130
|
}
|
|
111
131
|
|
|
112
|
-
.outlined[data-state="checked"]
|
|
132
|
+
.outlined[data-state="checked"],
|
|
133
|
+
:global(.infonomic-checkbox-outlined)[data-state="checked"] {
|
|
113
134
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
114
135
|
background-color: var(--checkbox-variant-outlined);
|
|
115
136
|
}
|
|
116
137
|
|
|
117
|
-
.filled
|
|
138
|
+
.filled,
|
|
139
|
+
:global(.infonomic-checkbox-filled) {
|
|
118
140
|
background-color: var(--checkbox-variant-filled);
|
|
119
141
|
--checkbox-icon-color: white;
|
|
120
142
|
}
|
|
121
143
|
|
|
122
144
|
/* Intents */
|
|
123
|
-
.primary
|
|
145
|
+
.primary,
|
|
146
|
+
:global(.infonomic-checkbox-primary) {
|
|
124
147
|
--checkbox-variant-outlined-border: var(--fill-primary-strong);
|
|
125
148
|
--checkbox-variant-outlined: var(--fill-primary-strong);
|
|
126
149
|
--checkbox-variant-outlined-hover-border: var(--fill-primary-strong-hover);
|
|
@@ -129,7 +152,8 @@
|
|
|
129
152
|
--checkbox-icon-color: var(--text-on-primary);
|
|
130
153
|
}
|
|
131
154
|
|
|
132
|
-
.secondary
|
|
155
|
+
.secondary,
|
|
156
|
+
:global(.infonomic-checkbox-secondary) {
|
|
133
157
|
--checkbox-variant-outlined-border: var(--fill-secondary-strong);
|
|
134
158
|
--checkbox-variant-outlined: var(--fill-secondary-strong);
|
|
135
159
|
--checkbox-variant-outlined-hover-border: var(--fill-secondary-strong-hover);
|
|
@@ -138,7 +162,8 @@
|
|
|
138
162
|
--checkbox-icon-color: var(--text-on-secondary);
|
|
139
163
|
}
|
|
140
164
|
|
|
141
|
-
.noeffect
|
|
165
|
+
.noeffect,
|
|
166
|
+
:global(.infonomic-checkbox-noeffect) {
|
|
142
167
|
--checkbox-variant-outlined-border: var(--fill-noeffect-strong);
|
|
143
168
|
--checkbox-variant-outlined: var(--fill-noeffect-strong);
|
|
144
169
|
--checkbox-variant-outlined-hover-border: var(--fill-noeffect-strong-hover);
|
|
@@ -147,7 +172,8 @@
|
|
|
147
172
|
--checkbox-icon-color: var(--text-on-noeffect);
|
|
148
173
|
}
|
|
149
174
|
|
|
150
|
-
.success
|
|
175
|
+
.success,
|
|
176
|
+
:global(.infonomic-checkbox-success) {
|
|
151
177
|
--checkbox-variant-outlined-border: var(--fill-success-strong);
|
|
152
178
|
--checkbox-variant-outlined: var(--fill-success-strong);
|
|
153
179
|
--checkbox-variant-outlined-hover-border: var(--fill-success-strong-hover);
|
|
@@ -156,7 +182,8 @@
|
|
|
156
182
|
--checkbox-icon-color: var(--text-on-success);
|
|
157
183
|
}
|
|
158
184
|
|
|
159
|
-
.info
|
|
185
|
+
.info,
|
|
186
|
+
:global(.infonomic-checkbox-info) {
|
|
160
187
|
--checkbox-variant-outlined-border: var(--fill-info-strong);
|
|
161
188
|
--checkbox-variant-outlined: var(--fill-info-strong);
|
|
162
189
|
--checkbox-variant-outlined-hover-border: var(--fill-info-strong-hover);
|
|
@@ -165,7 +192,8 @@
|
|
|
165
192
|
--checkbox-icon-color: var(--text-on-info);
|
|
166
193
|
}
|
|
167
194
|
|
|
168
|
-
.warning
|
|
195
|
+
.warning,
|
|
196
|
+
:global(.infonomic-checkbox-warning) {
|
|
169
197
|
--checkbox-variant-outlined-border: var(--fill-warning-strong);
|
|
170
198
|
--checkbox-variant-outlined: var(--fill-warning-strong);
|
|
171
199
|
--checkbox-variant-outlined-hover-border: var(--fill-warning-strong-hover);
|
|
@@ -174,7 +202,8 @@
|
|
|
174
202
|
--checkbox-icon-color: var(--text-on-warning);
|
|
175
203
|
}
|
|
176
204
|
|
|
177
|
-
.danger
|
|
205
|
+
.danger,
|
|
206
|
+
:global(.infonomic-checkbox-danger) {
|
|
178
207
|
--checkbox-variant-outlined-border: var(--fill-danger-strong);
|
|
179
208
|
--checkbox-variant-outlined: var(--fill-danger-strong);
|
|
180
209
|
--checkbox-variant-outlined-hover-border: var(--fill-danger-strong-hover);
|
|
@@ -220,4 +249,4 @@
|
|
|
220
249
|
transform: scale(0.8);
|
|
221
250
|
}
|
|
222
251
|
}
|
|
223
|
-
}
|
|
252
|
+
}
|
|
@@ -53,9 +53,9 @@ export const Checkbox = function Checkbox({
|
|
|
53
53
|
ref?: React.RefObject<HTMLButtonElement>
|
|
54
54
|
}): React.JSX.Element {
|
|
55
55
|
return (
|
|
56
|
-
<div className={cx('checkbox-container', styles.container, containerClasses)}>
|
|
56
|
+
<div className={cx('infonomic-checkbox-container', styles.container, containerClasses)}>
|
|
57
57
|
<div
|
|
58
|
-
className={cx('checkbox-component', styles.component, componentClasses, {
|
|
58
|
+
className={cx('infonomic-checkbox-component', styles.component, componentClasses, {
|
|
59
59
|
[styles.reverse]: reverse,
|
|
60
60
|
})}
|
|
61
61
|
>
|
|
@@ -64,10 +64,10 @@ export const Checkbox = function Checkbox({
|
|
|
64
64
|
id={id}
|
|
65
65
|
name={name}
|
|
66
66
|
className={cx(
|
|
67
|
-
'checkbox',
|
|
68
|
-
variant
|
|
69
|
-
size
|
|
70
|
-
intent
|
|
67
|
+
'infonomic-checkbox',
|
|
68
|
+
`infonomic-checkbox-${variant}`,
|
|
69
|
+
`infonomic-checkbox-${size}`,
|
|
70
|
+
`infonomic-checkbox-${intent}`,
|
|
71
71
|
styles.checkbox,
|
|
72
72
|
styles[variant],
|
|
73
73
|
styles[size],
|
|
@@ -79,14 +79,14 @@ export const Checkbox = function Checkbox({
|
|
|
79
79
|
>
|
|
80
80
|
<CheckboxPrimitive.Indicator
|
|
81
81
|
forceMount
|
|
82
|
-
className={cx('checkbox-indicator', styles.indicator)}
|
|
82
|
+
className={cx('infonomic-checkbox-indicator', styles.indicator)}
|
|
83
83
|
>
|
|
84
84
|
<CheckIcon className={styles.icon} />
|
|
85
85
|
</CheckboxPrimitive.Indicator>
|
|
86
86
|
</CheckboxPrimitive.Root>
|
|
87
87
|
|
|
88
88
|
{label != null && (
|
|
89
|
-
<LabelPrimitive.Label htmlFor={id} className={cx(styles.label, labelClasses)}>
|
|
89
|
+
<LabelPrimitive.Label htmlFor={id} className={cx('infonomic-checkbox-label', styles.label, labelClasses)}>
|
|
90
90
|
{label}
|
|
91
91
|
</LabelPrimitive.Label>
|
|
92
92
|
)}
|
|
@@ -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
|
.text,
|
|
10
|
-
:global(.error-text) {
|
|
11
|
+
:global(.infonomic-error-text) {
|
|
11
12
|
font-size: 0.875rem;
|
|
12
13
|
color: var(--error);
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
}
|
|
@@ -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
|
.text,
|
|
10
|
-
:global(.help-text) {
|
|
11
|
+
:global(.infonomic-help-text) {
|
|
11
12
|
font-size: 0.875rem;
|
|
12
13
|
color: var(--muted);
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
+
}
|
|
@@ -10,5 +10,5 @@ interface HelpTextProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function HelpText({ className, text }: HelpTextProps): React.JSX.Element {
|
|
13
|
-
return <p className={cx('help-text', styles.text, className)}>{text}</p>
|
|
13
|
+
return <p className={cx('infonomic-help-text', styles.text, className)}>{text}</p>
|
|
14
14
|
}
|
|
@@ -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
|
.adornment,
|
|
10
|
-
:global(.input-adornment) {
|
|
11
|
+
:global(.infonomic-input-adornment) {
|
|
11
12
|
display: flex;
|
|
12
13
|
align-items: center;
|
|
13
14
|
line-height: 0;
|
|
@@ -15,12 +16,12 @@
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
.start,
|
|
18
|
-
:global(.input-adornment-start) {
|
|
19
|
+
:global(.infonomic-input-adornment-start) {
|
|
19
20
|
justify-content: flex-start;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.end,
|
|
23
|
-
:global(.input-adornment-end) {
|
|
24
|
+
:global(.infonomic-input-adornment-end) {
|
|
24
25
|
justify-content: flex-end;
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
|
+
}
|
|
@@ -22,8 +22,8 @@ export function InputAdornment({
|
|
|
22
22
|
return (
|
|
23
23
|
<div
|
|
24
24
|
className={cx(
|
|
25
|
-
'input-adornment',
|
|
26
|
-
position
|
|
25
|
+
'infonomic-input-adornment',
|
|
26
|
+
`infonomic-input-adornment-${position}`,
|
|
27
27
|
styles.adornment,
|
|
28
28
|
{ [styles.start]: position === 'start' },
|
|
29
29
|
{ [styles.end]: position === 'end' },
|