@byline/ui 1.10.2 → 1.11.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 +6 -6
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/avatar/avatar_module.css +4 -4
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge_module.css +8 -8
- 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 +38 -38
- package/dist/components/button/combo-button_module.css +6 -6
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.js +2 -2
- 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 +9 -9
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip_module.css +35 -35
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown_module.css +8 -8
- package/dist/components/hamburger/hamburger.js +3 -3
- package/dist/components/hamburger/hamburger_module.css +16 -16
- package/dist/components/inputs/autocomplete.js +9 -9
- package/dist/components/inputs/autocomplete_module.css +36 -36
- package/dist/components/inputs/checkbox-group.js +1 -1
- package/dist/components/inputs/checkbox-group_module.css +1 -1
- package/dist/components/inputs/checkbox.js +5 -5
- package/dist/components/inputs/checkbox_module.css +31 -31
- package/dist/components/inputs/error-text_module.css +4 -4
- package/dist/components/inputs/help-text.js +1 -1
- package/dist/components/inputs/help-text_module.css +4 -4
- package/dist/components/inputs/input-adornment.js +1 -1
- package/dist/components/inputs/input-adornment_module.css +3 -3
- package/dist/components/inputs/input.js +5 -5
- package/dist/components/inputs/input_module.css +38 -38
- package/dist/components/inputs/label_module.css +2 -2
- package/dist/components/inputs/radio-group.js +1 -1
- package/dist/components/inputs/radio-group_module.css +18 -18
- package/dist/components/inputs/select.js +3 -3
- package/dist/components/inputs/select_module.css +8 -8
- package/dist/components/inputs/text-area.js +1 -1
- package/dist/components/inputs/text-area_module.css +3 -3
- package/dist/components/notifications/alert.js +10 -10
- package/dist/components/notifications/alert_module.css +16 -16
- package/dist/components/notifications/toast.js +7 -7
- package/dist/components/notifications/toast_module.css +24 -24
- package/dist/components/pager/pagination.js +2 -2
- package/dist/components/pager/pagination_module.css +6 -6
- package/dist/components/scroll-area/scroll-area.js +7 -7
- 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 +9 -9
- package/dist/components/section/section.js +1 -1
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer_module.css +6 -6
- package/dist/components/table/table.js +8 -8
- package/dist/components/table/table_module.css +15 -15
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/tabs/tabs_module.css +9 -9
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tooltip/tooltip_module.css +6 -6
- package/dist/fields/checkbox/checkbox-field.js +2 -1
- package/dist/fields/checkbox/checkbox-field.module.js +6 -0
- package/dist/fields/checkbox/checkbox-field_module.css +4 -0
- package/dist/forms/form-context.d.ts +1 -0
- package/dist/forms/form-context.js +3 -2
- package/dist/loaders/ellipses.js +2 -2
- package/dist/loaders/ellipses_module.css +2 -2
- package/dist/loaders/ring.js +2 -2
- package/dist/loaders/ring_module.css +2 -2
- package/dist/loaders/spinner.js +3 -3
- package/dist/loaders/spinner_module.css +3 -3
- package/dist/styles/styles.css +12 -0
- package/dist/widgets/datepicker/datepicker.js +11 -11
- package/dist/widgets/datepicker/datepicker_module.css +21 -21
- 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.js +2 -2
- package/dist/widgets/drawer/drawer_module.css +11 -11
- 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.js +2 -2
- package/dist/widgets/modal/modal_module.css +12 -12
- package/dist/widgets/search/search.js +6 -0
- package/dist/widgets/timeline/timeline_module.css +10 -10
- package/package.json +4 -4
- package/src/components/accordion/accordion.module.css +4 -4
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/components/avatar/avatar.module.css +4 -4
- package/src/components/avatar/avatar.tsx +4 -4
- package/src/components/badge/badge.module.css +8 -8
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/button/button-group.module.css +2 -2
- package/src/components/button/button.module.css +50 -50
- package/src/components/button/button.tsx +4 -4
- package/src/components/button/combo-button.module.css +7 -7
- package/src/components/button/control-buttons.module.css +5 -5
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +7 -7
- package/src/components/button/copy-button.tsx +5 -5
- package/src/components/card/card.module.css +9 -9
- package/src/components/card/card.tsx +6 -6
- package/src/components/chips/chip.module.css +45 -45
- package/src/components/chips/chip.tsx +8 -12
- package/src/components/container/container.module.css +4 -4
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +7 -7
- package/src/components/dropdown/dropdown.tsx +8 -8
- package/src/components/hamburger/hamburger.module.css +16 -16
- package/src/components/hamburger/hamburger.tsx +3 -3
- package/src/components/inputs/autocomplete.module.css +42 -42
- package/src/components/inputs/autocomplete.tsx +12 -14
- package/src/components/inputs/checkbox-group.module.css +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.module.css +33 -33
- package/src/components/inputs/checkbox.tsx +8 -11
- package/src/components/inputs/error-text.module.css +4 -4
- package/src/components/inputs/help-text.module.css +4 -4
- package/src/components/inputs/help-text.tsx +1 -3
- package/src/components/inputs/input-adornment.module.css +3 -3
- package/src/components/inputs/input-adornment.tsx +2 -2
- package/src/components/inputs/input.module.css +45 -45
- package/src/components/inputs/input.tsx +8 -12
- package/src/components/inputs/label.module.css +2 -2
- package/src/components/inputs/radio-group.module.css +17 -17
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.module.css +8 -8
- package/src/components/inputs/select.tsx +3 -3
- package/src/components/inputs/text-area.module.css +4 -4
- package/src/components/inputs/text-area.tsx +3 -3
- package/src/components/notifications/alert.module.css +16 -16
- package/src/components/notifications/alert.tsx +11 -11
- package/src/components/notifications/toast.module.css +26 -26
- package/src/components/notifications/toast.tsx +7 -9
- package/src/components/pager/pagination.module.css +6 -6
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +5 -5
- package/src/components/scroll-area/scroll-area.tsx +7 -7
- package/src/components/scroll-to-top/scroll-to-top.module.css +9 -9
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +6 -6
- package/src/components/table/table.module.css +15 -15
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +4 -4
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +2 -2
- package/src/components/tooltip/tooltip.tsx +2 -2
- package/src/fields/checkbox/checkbox-field.module.css +4 -0
- package/src/fields/checkbox/checkbox-field.tsx +2 -1
- package/src/forms/form-context.tsx +10 -2
- package/src/icons/source/icon-infonomic.svg +2 -2
- package/src/loaders/ellipses.module.css +2 -2
- package/src/loaders/ellipses.tsx +2 -2
- package/src/loaders/ring.module.css +2 -2
- package/src/loaders/ring.tsx +2 -2
- package/src/loaders/spinner.module.css +3 -3
- package/src/loaders/spinner.tsx +3 -6
- package/src/styles/styles.css +12 -0
- package/src/widgets/datepicker/datepicker.module.css +15 -15
- package/src/widgets/datepicker/datepicker.tsx +11 -21
- 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.module.css +11 -11
- package/src/widgets/drawer/drawer.tsx +2 -2
- 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.module.css +12 -12
- package/src/widgets/modal/modal.tsx +2 -2
- package/src/widgets/search/search.tsx +2 -0
- package/src/widgets/timeline/timeline.module.css +10 -10
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.dropdown-content,
|
|
14
14
|
.dropdown-subcontent,
|
|
15
|
-
:global(.
|
|
16
|
-
:global(.
|
|
15
|
+
:global(.byline-dropdown-content),
|
|
16
|
+
:global(.byline-dropdown-subcontent) {
|
|
17
17
|
z-index: 20;
|
|
18
18
|
background-color: var(--surface-panel-elevated);
|
|
19
19
|
padding: 4px;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.dropdown-item,
|
|
47
|
-
:global(.
|
|
47
|
+
:global(.byline-dropdown-item) {
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
gap: var(--gap-1);
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
.dropdown-item:hover,
|
|
64
64
|
.dropdown-item:focus,
|
|
65
65
|
.dropdown-item[data-highlighted],
|
|
66
|
-
:global(.
|
|
67
|
-
:global(.
|
|
68
|
-
:global(.
|
|
66
|
+
:global(.byline-dropdown-item):hover,
|
|
67
|
+
:global(.byline-dropdown-item):focus,
|
|
68
|
+
:global(.byline-dropdown-item)[data-highlighted] {
|
|
69
69
|
background-color: var(--surface-item-hover);
|
|
70
70
|
color: var(--surface-item-text-hover);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.dropdown-separator,
|
|
74
|
-
:global(.
|
|
74
|
+
:global(.byline-dropdown-separator) {
|
|
75
75
|
width: 90%;
|
|
76
76
|
background-color: var(--surface-panel-border);
|
|
77
77
|
margin: var(--spacing-4) 0;
|
|
@@ -20,7 +20,7 @@ const Trigger = ({
|
|
|
20
20
|
ref?: React.RefObject<React.ComponentRef<'button'>>
|
|
21
21
|
}): React.JSX.Element => {
|
|
22
22
|
return (
|
|
23
|
-
<Menu.Trigger className={cx('
|
|
23
|
+
<Menu.Trigger className={cx('byline-dropdown-trigger', className)} ref={ref} {...rest}>
|
|
24
24
|
{children}
|
|
25
25
|
</Menu.Trigger>
|
|
26
26
|
)
|
|
@@ -64,7 +64,7 @@ const Content = ({
|
|
|
64
64
|
>
|
|
65
65
|
<Menu.Popup
|
|
66
66
|
ref={ref}
|
|
67
|
-
className={cx('
|
|
67
|
+
className={cx('byline-dropdown-content', styles['dropdown-content'], className)}
|
|
68
68
|
{...rest}
|
|
69
69
|
>
|
|
70
70
|
{children}
|
|
@@ -83,7 +83,7 @@ const Group = ({
|
|
|
83
83
|
ref?: React.RefObject<React.ComponentRef<'div'>>
|
|
84
84
|
}): React.JSX.Element => {
|
|
85
85
|
return (
|
|
86
|
-
<Menu.Group ref={ref} className={cx('
|
|
86
|
+
<Menu.Group ref={ref} className={cx('byline-dropdown-group', className)} {...rest}>
|
|
87
87
|
{children}
|
|
88
88
|
</Menu.Group>
|
|
89
89
|
)
|
|
@@ -101,7 +101,7 @@ const Item = ({
|
|
|
101
101
|
return (
|
|
102
102
|
<Menu.Item
|
|
103
103
|
ref={ref}
|
|
104
|
-
className={cx('
|
|
104
|
+
className={cx('byline-dropdown-item', styles['dropdown-item'], className)}
|
|
105
105
|
{...rest}
|
|
106
106
|
>
|
|
107
107
|
{children}
|
|
@@ -119,7 +119,7 @@ const Label = ({
|
|
|
119
119
|
ref?: React.RefObject<React.ComponentRef<'div'>>
|
|
120
120
|
}): React.JSX.Element => {
|
|
121
121
|
return (
|
|
122
|
-
<Menu.GroupLabel ref={ref} className={cx('
|
|
122
|
+
<Menu.GroupLabel ref={ref} className={cx('byline-dropdown-label', className)} {...rest}>
|
|
123
123
|
{children}
|
|
124
124
|
</Menu.GroupLabel>
|
|
125
125
|
)
|
|
@@ -136,7 +136,7 @@ const Separator = ({
|
|
|
136
136
|
return (
|
|
137
137
|
<Menu.Separator
|
|
138
138
|
ref={ref}
|
|
139
|
-
className={cx('
|
|
139
|
+
className={cx('byline-dropdown-separator', styles['dropdown-separator'], className)}
|
|
140
140
|
{...props}
|
|
141
141
|
/>
|
|
142
142
|
)
|
|
@@ -180,7 +180,7 @@ const SubContent = ({
|
|
|
180
180
|
>
|
|
181
181
|
<Menu.Popup
|
|
182
182
|
ref={ref}
|
|
183
|
-
className={cx('
|
|
183
|
+
className={cx('byline-dropdown-subcontent', styles['dropdown-subcontent'], className)}
|
|
184
184
|
{...rest}
|
|
185
185
|
>
|
|
186
186
|
{children}
|
|
@@ -201,7 +201,7 @@ const SubTrigger = ({
|
|
|
201
201
|
return (
|
|
202
202
|
<Menu.SubmenuTrigger
|
|
203
203
|
ref={ref}
|
|
204
|
-
className={cx('
|
|
204
|
+
className={cx('byline-dropdown-subtrigger', className)}
|
|
205
205
|
{...rest}
|
|
206
206
|
>
|
|
207
207
|
{children}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.hamburger,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-hamburger) {
|
|
15
15
|
--hamburger-color: currentColor;
|
|
16
16
|
--hamburger-focus-ring-color: currentColor;
|
|
17
17
|
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.hamburger:focus-visible,
|
|
41
|
-
:global(.
|
|
41
|
+
:global(.byline-hamburger):focus-visible {
|
|
42
42
|
outline: 2px solid var(--hamburger-focus-ring-color);
|
|
43
43
|
outline-offset: 2px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* Box container for the bars */
|
|
47
47
|
.box,
|
|
48
|
-
:global(.
|
|
48
|
+
:global(.byline-hamburger-box) {
|
|
49
49
|
width: 24px;
|
|
50
50
|
height: 24px;
|
|
51
51
|
display: block;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
/* Inner bar + ::before/::after pseudo-elements form the 3 lines */
|
|
57
57
|
.inner,
|
|
58
|
-
:global(.
|
|
58
|
+
:global(.byline-hamburger-inner) {
|
|
59
59
|
display: block;
|
|
60
60
|
top: 50%;
|
|
61
61
|
margin-top: -1px;
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
.inner,
|
|
67
67
|
.inner::before,
|
|
68
68
|
.inner::after,
|
|
69
|
-
:global(.
|
|
70
|
-
:global(.
|
|
71
|
-
:global(.
|
|
69
|
+
:global(.byline-hamburger-inner),
|
|
70
|
+
:global(.byline-hamburger-inner)::before,
|
|
71
|
+
:global(.byline-hamburger-inner)::after {
|
|
72
72
|
position: absolute;
|
|
73
73
|
width: 24px;
|
|
74
74
|
height: 2px;
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
|
|
82
82
|
.inner::before,
|
|
83
83
|
.inner::after,
|
|
84
|
-
:global(.
|
|
85
|
-
:global(.
|
|
84
|
+
:global(.byline-hamburger-inner)::before,
|
|
85
|
+
:global(.byline-hamburger-inner)::after {
|
|
86
86
|
content: "";
|
|
87
87
|
display: block;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.inner::before,
|
|
91
|
-
:global(.
|
|
91
|
+
:global(.byline-hamburger-inner)::before {
|
|
92
92
|
top: -8px;
|
|
93
93
|
transition:
|
|
94
94
|
top 0.075s 0.12s ease,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.inner::after,
|
|
99
|
-
:global(.
|
|
99
|
+
:global(.byline-hamburger-inner)::after {
|
|
100
100
|
bottom: -8px;
|
|
101
101
|
transition:
|
|
102
102
|
bottom 0.075s 0.12s ease,
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
|
|
106
106
|
/* Open state */
|
|
107
107
|
.open .inner,
|
|
108
|
-
:global(.
|
|
108
|
+
:global(.byline-hamburger-open) :global(.byline-hamburger-inner) {
|
|
109
109
|
transform: rotate(45deg);
|
|
110
110
|
transition-delay: 0.12s;
|
|
111
111
|
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.open .inner::before,
|
|
115
|
-
:global(.
|
|
115
|
+
:global(.byline-hamburger-open) :global(.byline-hamburger-inner)::before {
|
|
116
116
|
top: 0;
|
|
117
117
|
opacity: 0;
|
|
118
118
|
transition:
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.open .inner::after,
|
|
124
|
-
:global(.
|
|
124
|
+
:global(.byline-hamburger-open) :global(.byline-hamburger-inner)::after {
|
|
125
125
|
bottom: 0;
|
|
126
126
|
transform: rotate(-90deg);
|
|
127
127
|
transition:
|
|
@@ -131,14 +131,14 @@
|
|
|
131
131
|
|
|
132
132
|
/* Color scheme: onDark (white bars for dark backgrounds) */
|
|
133
133
|
.onDark,
|
|
134
|
-
:global(.
|
|
134
|
+
:global(.byline-hamburger-on-dark) {
|
|
135
135
|
--hamburger-color: white;
|
|
136
136
|
--hamburger-focus-ring-color: rgba(255, 255, 255, 0.7);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/* Color scheme: onLight (dark bars for light backgrounds) */
|
|
140
140
|
.onLight,
|
|
141
|
-
:global(.
|
|
141
|
+
:global(.byline-hamburger-on-light) {
|
|
142
142
|
--hamburger-color: var(--foreground, #1a1a1a);
|
|
143
143
|
--hamburger-focus-ring-color: var(--foreground, #1a1a1a);
|
|
144
144
|
}
|
|
@@ -53,7 +53,7 @@ export function Hamburger({
|
|
|
53
53
|
type="button"
|
|
54
54
|
onClick={handleClick}
|
|
55
55
|
className={cx(
|
|
56
|
-
'
|
|
56
|
+
'byline-hamburger',
|
|
57
57
|
styles.hamburger,
|
|
58
58
|
{
|
|
59
59
|
[styles.open]: open,
|
|
@@ -67,8 +67,8 @@ export function Hamburger({
|
|
|
67
67
|
aria-expanded={open}
|
|
68
68
|
{...other}
|
|
69
69
|
>
|
|
70
|
-
<span className={cx('
|
|
71
|
-
<span className={cx('
|
|
70
|
+
<span className={cx('byline-hamburger-box', styles.box)} aria-hidden="true">
|
|
71
|
+
<span className={cx('byline-hamburger-inner', styles.inner)} />
|
|
72
72
|
</span>
|
|
73
73
|
</button>
|
|
74
74
|
)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/* ── Wrapper ── */
|
|
14
14
|
|
|
15
15
|
.autocomplete-wrapper,
|
|
16
|
-
:global(.
|
|
16
|
+
:global(.byline-autocomplete-wrapper) {
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
gap: var(--gap-1);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/* ── Input ── */
|
|
23
23
|
|
|
24
24
|
.input,
|
|
25
|
-
:global(.
|
|
25
|
+
:global(.byline-autocomplete-input) {
|
|
26
26
|
border: none;
|
|
27
27
|
outline: 1px solid transparent;
|
|
28
28
|
outline-offset: 2px;
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
|
|
38
38
|
.input:focus,
|
|
39
39
|
.input:active,
|
|
40
|
-
:global(.
|
|
41
|
-
:global(.
|
|
40
|
+
:global(.byline-autocomplete-input):focus,
|
|
41
|
+
:global(.byline-autocomplete-input):active {
|
|
42
42
|
outline-color: var(--ring-color);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.input:disabled,
|
|
46
46
|
.input[disabled],
|
|
47
|
-
:global(.
|
|
48
|
-
:global(.
|
|
47
|
+
:global(.byline-autocomplete-input):disabled,
|
|
48
|
+
:global(.byline-autocomplete-input)[disabled] {
|
|
49
49
|
pointer-events: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/* ── Sizes ── */
|
|
53
53
|
|
|
54
54
|
.sm,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-autocomplete-input-sm) {
|
|
56
56
|
min-height: 32px;
|
|
57
57
|
font-size: 0.875rem;
|
|
58
58
|
line-height: 0;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.md,
|
|
63
|
-
:global(.
|
|
63
|
+
:global(.byline-autocomplete-input-md) {
|
|
64
64
|
min-height: 36px;
|
|
65
65
|
font-size: 1rem;
|
|
66
66
|
line-height: 0;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.lg,
|
|
71
|
-
:global(.
|
|
71
|
+
:global(.byline-autocomplete-input-lg) {
|
|
72
72
|
min-height: 40px;
|
|
73
73
|
font-size: 1.175rem;
|
|
74
74
|
line-height: 0;
|
|
@@ -78,25 +78,25 @@
|
|
|
78
78
|
/* ── Variants ── */
|
|
79
79
|
|
|
80
80
|
.outlined,
|
|
81
|
-
:global(.
|
|
81
|
+
:global(.byline-autocomplete-input-outlined) {
|
|
82
82
|
border: 1px solid var(--input-variant-outlined-border);
|
|
83
83
|
background-color: transparent;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.outlined:hover,
|
|
87
|
-
:global(.
|
|
87
|
+
:global(.byline-autocomplete-input-outlined):hover {
|
|
88
88
|
border: 1px solid var(--input-variant-outlined-hover-border);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.outlined:focus,
|
|
92
92
|
.outlined:active,
|
|
93
|
-
:global(.
|
|
94
|
-
:global(.
|
|
93
|
+
:global(.byline-autocomplete-input-outlined):focus,
|
|
94
|
+
:global(.byline-autocomplete-input-outlined):active {
|
|
95
95
|
--ring-color: var(--input-variant-outline-ring-color);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.underlined,
|
|
99
|
-
:global(.
|
|
99
|
+
:global(.byline-autocomplete-input-underlined) {
|
|
100
100
|
border-bottom: 1px solid var(--input-variant-underlined-border);
|
|
101
101
|
border-radius: 0;
|
|
102
102
|
gap: var(--gap-1);
|
|
@@ -104,63 +104,63 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.underlined.sm,
|
|
107
|
-
:global(.
|
|
107
|
+
:global(.byline-autocomplete-input-underlined.byline-autocomplete-input-sm) {
|
|
108
108
|
padding: 0.25rem 0.1rem;
|
|
109
109
|
min-height: 26px;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.underlined.md,
|
|
113
|
-
:global(.
|
|
113
|
+
:global(.byline-autocomplete-input-underlined.byline-autocomplete-input-md) {
|
|
114
114
|
padding: 0.25rem 0.1rem;
|
|
115
115
|
min-height: 30px;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.underlined.lg,
|
|
119
|
-
:global(.
|
|
119
|
+
:global(.byline-autocomplete-input-underlined.byline-autocomplete-input-lg) {
|
|
120
120
|
padding: 0 0.1rem;
|
|
121
121
|
min-height: 34px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.underlined:hover,
|
|
125
|
-
:global(.
|
|
125
|
+
:global(.byline-autocomplete-input-underlined):hover {
|
|
126
126
|
border-bottom: 1px solid var(--input-variant-underlined-hover-border);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.underlined:focus,
|
|
130
130
|
.underlined:active,
|
|
131
|
-
:global(.
|
|
132
|
-
:global(.
|
|
131
|
+
:global(.byline-autocomplete-input-underlined):focus,
|
|
132
|
+
:global(.byline-autocomplete-input-underlined):active {
|
|
133
133
|
outline: none;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.filled,
|
|
137
|
-
:global(.
|
|
137
|
+
:global(.byline-autocomplete-input-filled) {
|
|
138
138
|
background-color: var(--input-variant-filled);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/* ── Error ── */
|
|
142
142
|
|
|
143
143
|
.error,
|
|
144
|
-
:global(.
|
|
144
|
+
:global(.byline-autocomplete-input-error) {
|
|
145
145
|
border: 1px solid var(--field-border-invalid);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.error:hover,
|
|
149
|
-
:global(.
|
|
149
|
+
:global(.byline-autocomplete-input-error):hover {
|
|
150
150
|
border: 1px solid var(--field-border-invalid);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.error:focus,
|
|
154
154
|
.error:active,
|
|
155
|
-
:global(.
|
|
156
|
-
:global(.
|
|
155
|
+
:global(.byline-autocomplete-input-error):focus,
|
|
156
|
+
:global(.byline-autocomplete-input-error):active {
|
|
157
157
|
--ring-color: var(--field-ring-invalid);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/* ── Intents ── */
|
|
161
161
|
|
|
162
162
|
.primary,
|
|
163
|
-
:global(.
|
|
163
|
+
:global(.byline-autocomplete-input-primary) {
|
|
164
164
|
--input-variant-outlined-border: var(--stroke-primary);
|
|
165
165
|
--input-variant-outlined-hover-border: var(--stroke-primary-hover);
|
|
166
166
|
--input-variant-outline-ring-color: var(--ring-primary);
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.secondary,
|
|
173
|
-
:global(.
|
|
173
|
+
:global(.byline-autocomplete-input-secondary) {
|
|
174
174
|
--input-variant-outlined-border: var(--stroke-secondary);
|
|
175
175
|
--input-variant-outlined-hover-border: var(--stroke-secondary-hover);
|
|
176
176
|
--input-variant-outline-ring-color: var(--ring-secondary);
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.noeffect,
|
|
183
|
-
:global(.
|
|
183
|
+
:global(.byline-autocomplete-input-noeffect) {
|
|
184
184
|
--input-variant-outlined-border: var(--stroke-noeffect);
|
|
185
185
|
--input-variant-outlined-hover-border: var(--stroke-noeffect-hover);
|
|
186
186
|
--input-variant-outline-ring-color: var(--ring-noeffect);
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.success,
|
|
193
|
-
:global(.
|
|
193
|
+
:global(.byline-autocomplete-input-success) {
|
|
194
194
|
--input-variant-outlined-border: var(--stroke-success);
|
|
195
195
|
--input-variant-outlined-hover-border: var(--stroke-success-hover);
|
|
196
196
|
--input-variant-outline-ring-color: var(--ring-success);
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.info,
|
|
203
|
-
:global(.
|
|
203
|
+
:global(.byline-autocomplete-input-info) {
|
|
204
204
|
--input-variant-outlined-border: var(--stroke-info);
|
|
205
205
|
--input-variant-outlined-hover-border: var(--stroke-info-hover);
|
|
206
206
|
--input-variant-outline-ring-color: var(--ring-info);
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.warning,
|
|
213
|
-
:global(.
|
|
213
|
+
:global(.byline-autocomplete-input-warning) {
|
|
214
214
|
--input-variant-outlined-border: var(--stroke-warning);
|
|
215
215
|
--input-variant-outlined-hover-border: var(--stroke-warning-hover);
|
|
216
216
|
--input-variant-outline-ring-color: var(--ring-warning);
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.danger,
|
|
223
|
-
:global(.
|
|
223
|
+
:global(.byline-autocomplete-input-danger) {
|
|
224
224
|
--input-variant-outlined-border: var(--stroke-danger);
|
|
225
225
|
--input-variant-outlined-hover-border: var(--stroke-danger-hover);
|
|
226
226
|
--input-variant-outline-ring-color: var(--ring-danger);
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
/* ── Positioner ── */
|
|
233
233
|
|
|
234
234
|
.positioner,
|
|
235
|
-
:global(.
|
|
235
|
+
:global(.byline-autocomplete-positioner) {
|
|
236
236
|
z-index: 50;
|
|
237
237
|
outline: 0;
|
|
238
238
|
}
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
/* ── Popup ── */
|
|
241
241
|
|
|
242
242
|
.popup,
|
|
243
|
-
:global(.
|
|
243
|
+
:global(.byline-autocomplete-popup) {
|
|
244
244
|
z-index: 50;
|
|
245
245
|
margin-top: 2px;
|
|
246
246
|
border: 1px solid var(--surface-panel-border);
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
/* ── List ── */
|
|
269
269
|
|
|
270
270
|
.list,
|
|
271
|
-
:global(.
|
|
271
|
+
:global(.byline-autocomplete-list) {
|
|
272
272
|
box-sizing: border-box;
|
|
273
273
|
overflow-y: auto;
|
|
274
274
|
overscroll-behavior: contain;
|
|
@@ -279,14 +279,14 @@
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.list[data-empty],
|
|
282
|
-
:global(.
|
|
282
|
+
:global(.byline-autocomplete-list)[data-empty] {
|
|
283
283
|
padding: 0;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
/* ── Item ── */
|
|
287
287
|
|
|
288
288
|
.autocomplete-item,
|
|
289
|
-
:global(.
|
|
289
|
+
:global(.byline-autocomplete-item) {
|
|
290
290
|
position: relative;
|
|
291
291
|
user-select: none;
|
|
292
292
|
cursor: default;
|
|
@@ -304,13 +304,13 @@
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.autocomplete-item[data-disabled],
|
|
307
|
-
:global(.
|
|
307
|
+
:global(.byline-autocomplete-item[data-disabled]) {
|
|
308
308
|
color: var(--surface-item-text-disabled);
|
|
309
309
|
pointer-events: none;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
.autocomplete-item[data-highlighted],
|
|
313
|
-
:global(.
|
|
313
|
+
:global(.byline-autocomplete-item[data-highlighted]) {
|
|
314
314
|
outline: none;
|
|
315
315
|
background-color: var(--surface-item-hover);
|
|
316
316
|
color: var(--surface-item-text-hover);
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
/* ── Group label ── */
|
|
342
342
|
|
|
343
343
|
.group-label,
|
|
344
|
-
:global(.
|
|
344
|
+
:global(.byline-autocomplete-group-label) {
|
|
345
345
|
padding: 0.375rem 0.75rem;
|
|
346
346
|
font-size: 0.75rem;
|
|
347
347
|
font-weight: 600;
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
/* ── Separator ── */
|
|
354
354
|
|
|
355
355
|
.separator,
|
|
356
|
-
:global(.
|
|
356
|
+
:global(.byline-autocomplete-separator) {
|
|
357
357
|
margin: 0.375rem 0.75rem;
|
|
358
358
|
height: 1px;
|
|
359
359
|
background-color: var(--surface-panel-border);
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
/* ── Empty ── */
|
|
363
363
|
|
|
364
364
|
.empty:not(:empty),
|
|
365
|
-
:global(.
|
|
365
|
+
:global(.byline-autocomplete-empty):not(:empty) {
|
|
366
366
|
box-sizing: border-box;
|
|
367
367
|
padding: 1rem;
|
|
368
368
|
font-size: 0.925rem;
|
|
@@ -59,7 +59,7 @@ export function Autocomplete<Item = string>({
|
|
|
59
59
|
return (
|
|
60
60
|
<div
|
|
61
61
|
className={cx(
|
|
62
|
-
'
|
|
62
|
+
'byline-autocomplete-wrapper',
|
|
63
63
|
styles['autocomplete-wrapper'],
|
|
64
64
|
wrapperClassName
|
|
65
65
|
)}
|
|
@@ -76,10 +76,10 @@ export function Autocomplete<Item = string>({
|
|
|
76
76
|
aria-errormessage={error ? errorText : undefined}
|
|
77
77
|
aria-describedby={error ? `error-for-${id}` : undefined}
|
|
78
78
|
className={cx(
|
|
79
|
-
'
|
|
80
|
-
`
|
|
81
|
-
`
|
|
82
|
-
`
|
|
79
|
+
'byline-autocomplete-input',
|
|
80
|
+
`byline-autocomplete-input-${variant}`,
|
|
81
|
+
`byline-autocomplete-input-${inputSize}`,
|
|
82
|
+
`byline-autocomplete-input-${intent}`,
|
|
83
83
|
styles.input,
|
|
84
84
|
styles[variant],
|
|
85
85
|
styles[inputSize],
|
|
@@ -92,24 +92,22 @@ export function Autocomplete<Item = string>({
|
|
|
92
92
|
|
|
93
93
|
<AutocompletePrimitive.Portal>
|
|
94
94
|
<AutocompletePrimitive.Positioner
|
|
95
|
-
className={cx('
|
|
95
|
+
className={cx('byline-autocomplete-positioner', styles.positioner)}
|
|
96
96
|
sideOffset={sideOffset}
|
|
97
97
|
>
|
|
98
98
|
<AutocompletePrimitive.Popup
|
|
99
99
|
className={cx(
|
|
100
|
-
'
|
|
100
|
+
'byline-autocomplete-popup',
|
|
101
101
|
styles.popup,
|
|
102
102
|
inputSize != null && styles[`popup-${inputSize}`]
|
|
103
103
|
)}
|
|
104
104
|
>
|
|
105
105
|
<AutocompletePrimitive.Empty
|
|
106
|
-
className={cx('
|
|
106
|
+
className={cx('byline-autocomplete-empty', styles.empty)}
|
|
107
107
|
>
|
|
108
108
|
{emptyText}
|
|
109
109
|
</AutocompletePrimitive.Empty>
|
|
110
|
-
<AutocompletePrimitive.List
|
|
111
|
-
className={cx('infonomic-autocomplete-list', styles.list)}
|
|
112
|
-
>
|
|
110
|
+
<AutocompletePrimitive.List className={cx('byline-autocomplete-list', styles.list)}>
|
|
113
111
|
{children}
|
|
114
112
|
</AutocompletePrimitive.List>
|
|
115
113
|
</AutocompletePrimitive.Popup>
|
|
@@ -135,7 +133,7 @@ export const AutocompleteItem = ({
|
|
|
135
133
|
}) => {
|
|
136
134
|
return (
|
|
137
135
|
<AutocompletePrimitive.Item
|
|
138
|
-
className={cx('
|
|
136
|
+
className={cx('byline-autocomplete-item', styles['autocomplete-item'], className)}
|
|
139
137
|
{...props}
|
|
140
138
|
ref={forwardedRef}
|
|
141
139
|
>
|
|
@@ -154,7 +152,7 @@ export const AutocompleteGroupLabel = ({
|
|
|
154
152
|
}: React.ComponentProps<typeof AutocompletePrimitive.GroupLabel>) => {
|
|
155
153
|
return (
|
|
156
154
|
<AutocompletePrimitive.GroupLabel
|
|
157
|
-
className={cx('
|
|
155
|
+
className={cx('byline-autocomplete-group-label', styles['group-label'], className)}
|
|
158
156
|
{...props}
|
|
159
157
|
>
|
|
160
158
|
{children}
|
|
@@ -170,7 +168,7 @@ export const AutocompleteSeparator = ({
|
|
|
170
168
|
}: React.ComponentProps<typeof AutocompletePrimitive.Separator>) => {
|
|
171
169
|
return (
|
|
172
170
|
<AutocompletePrimitive.Separator
|
|
173
|
-
className={cx('
|
|
171
|
+
className={cx('byline-autocomplete-separator', styles.separator, className)}
|
|
174
172
|
{...props}
|
|
175
173
|
/>
|
|
176
174
|
)
|
|
@@ -68,7 +68,7 @@ export const CheckboxGroup: React.FC<CheckboxGroupProps> = ({
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
|
-
<div className={cx('
|
|
71
|
+
<div className={cx('byline-checkbox-group', styles['checkbox-group'], className)}>
|
|
72
72
|
{checkBoxes.map((cb) => (
|
|
73
73
|
<Checkbox
|
|
74
74
|
key={cb.id}
|