@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.hamburger-CFjgP7, .
|
|
4
|
+
:is(.hamburger-CFjgP7, .byline-hamburger) {
|
|
5
5
|
--hamburger-color: currentColor;
|
|
6
6
|
--hamburger-focus-ring-color: currentColor;
|
|
7
7
|
z-index: 200;
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
:is(.hamburger-CFjgP7:focus-visible, .
|
|
29
|
+
:is(.hamburger-CFjgP7:focus-visible, .byline-hamburger:focus-visible) {
|
|
30
30
|
outline: 2px solid var(--hamburger-focus-ring-color);
|
|
31
31
|
outline-offset: 2px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:is(.box-E9EZxm, .
|
|
34
|
+
:is(.box-E9EZxm, .byline-hamburger-box) {
|
|
35
35
|
pointer-events: none;
|
|
36
36
|
width: 24px;
|
|
37
37
|
height: 24px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
:is(.inner-G4BGMv, .
|
|
42
|
+
:is(.inner-G4BGMv, .byline-hamburger-inner) {
|
|
43
43
|
margin-top: -1px;
|
|
44
44
|
transition-duration: 75ms;
|
|
45
45
|
transition-timing-function: cubic-bezier(.55, .055, .675, .19);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
position: absolute;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.
|
|
61
|
+
.byline-hamburger-inner {
|
|
62
62
|
background-color: var(--hamburger-color);
|
|
63
63
|
border-radius: 0;
|
|
64
64
|
width: 24px;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
position: absolute;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
.byline-hamburger-inner:before {
|
|
73
73
|
background-color: var(--hamburger-color);
|
|
74
74
|
border-radius: 0;
|
|
75
75
|
width: 24px;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
position: absolute;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.
|
|
83
|
+
.byline-hamburger-inner:after {
|
|
84
84
|
background-color: var(--hamburger-color);
|
|
85
85
|
border-radius: 0;
|
|
86
86
|
width: 24px;
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
display: block;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.
|
|
99
|
+
.byline-hamburger-inner:before {
|
|
100
100
|
content: "";
|
|
101
101
|
display: block;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
.byline-hamburger-inner:after {
|
|
105
105
|
content: "";
|
|
106
106
|
display: block;
|
|
107
107
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
top: -8px;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.
|
|
114
|
+
.byline-hamburger-inner:before {
|
|
115
115
|
transition: top 75ms .12s, opacity 75ms;
|
|
116
116
|
top: -8px;
|
|
117
117
|
}
|
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
bottom: -8px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.
|
|
124
|
+
.byline-hamburger-inner:after {
|
|
125
125
|
transition: bottom 75ms .12s, transform 75ms cubic-bezier(.55, .055, .675, .19);
|
|
126
126
|
bottom: -8px;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
:is(.open-OQO244 .inner-G4BGMv, .
|
|
129
|
+
:is(.open-OQO244 .inner-G4BGMv, .byline-hamburger-open .byline-hamburger-inner) {
|
|
130
130
|
transition-delay: .12s;
|
|
131
131
|
transition-timing-function: cubic-bezier(.215, .61, .355, 1);
|
|
132
132
|
transform: rotate(45deg);
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
top: 0;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.
|
|
141
|
+
.byline-hamburger-open .byline-hamburger-inner:before {
|
|
142
142
|
opacity: 0;
|
|
143
143
|
transition: top 75ms, opacity 75ms .12s;
|
|
144
144
|
top: 0;
|
|
@@ -150,18 +150,18 @@
|
|
|
150
150
|
transform: rotate(-90deg);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.
|
|
153
|
+
.byline-hamburger-open .byline-hamburger-inner:after {
|
|
154
154
|
transition: bottom 75ms, transform 75ms cubic-bezier(.215, .61, .355, 1) .12s;
|
|
155
155
|
bottom: 0;
|
|
156
156
|
transform: rotate(-90deg);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
:is(.onDark-ZAa2Qt, .
|
|
159
|
+
:is(.onDark-ZAa2Qt, .byline-hamburger-on-dark) {
|
|
160
160
|
--hamburger-color: white;
|
|
161
161
|
--hamburger-focus-ring-color: #ffffffb3;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
:is(.onLight-s1LZFP, .
|
|
164
|
+
:is(.onLight-s1LZFP, .byline-hamburger-on-light) {
|
|
165
165
|
--hamburger-color: var(--foreground, #1a1a1a);
|
|
166
166
|
--hamburger-focus-ring-color: var(--foreground, #1a1a1a);
|
|
167
167
|
}
|
|
@@ -8,7 +8,7 @@ import { HelpText } from "./help-text.js";
|
|
|
8
8
|
import { Label } from "./label.js";
|
|
9
9
|
function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize = 'md', intent = 'primary', required, placeholder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', emptyText = 'No results found.', className, inputClassName, wrapperClassName, items, children, sideOffset = 4, ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className: classnames('
|
|
11
|
+
className: classnames('byline-autocomplete-wrapper', autocomplete_module["autocomplete-wrapper"], wrapperClassName),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs(Autocomplete.Root, {
|
|
14
14
|
items: items,
|
|
@@ -29,23 +29,23 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
29
29
|
"aria-required": required,
|
|
30
30
|
"aria-errormessage": error ? errorText : void 0,
|
|
31
31
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
32
|
-
className: classnames('
|
|
32
|
+
className: classnames('byline-autocomplete-input', `byline-autocomplete-input-${variant}`, `byline-autocomplete-input-${inputSize}`, `byline-autocomplete-input-${intent}`, autocomplete_module.input, autocomplete_module[variant], autocomplete_module[inputSize], autocomplete_module[intent], {
|
|
33
33
|
[autocomplete_module.error]: error
|
|
34
34
|
}, className, inputClassName)
|
|
35
35
|
}),
|
|
36
36
|
/*#__PURE__*/ jsx(Autocomplete.Portal, {
|
|
37
37
|
children: /*#__PURE__*/ jsx(Autocomplete.Positioner, {
|
|
38
|
-
className: classnames('
|
|
38
|
+
className: classnames('byline-autocomplete-positioner', autocomplete_module.positioner),
|
|
39
39
|
sideOffset: sideOffset,
|
|
40
40
|
children: /*#__PURE__*/ jsxs(Autocomplete.Popup, {
|
|
41
|
-
className: classnames('
|
|
41
|
+
className: classnames('byline-autocomplete-popup', autocomplete_module.popup, null != inputSize && autocomplete_module[`popup-${inputSize}`]),
|
|
42
42
|
children: [
|
|
43
43
|
/*#__PURE__*/ jsx(Autocomplete.Empty, {
|
|
44
|
-
className: classnames('
|
|
44
|
+
className: classnames('byline-autocomplete-empty', autocomplete_module.empty),
|
|
45
45
|
children: emptyText
|
|
46
46
|
}),
|
|
47
47
|
/*#__PURE__*/ jsx(Autocomplete.List, {
|
|
48
|
-
className: classnames('
|
|
48
|
+
className: classnames('byline-autocomplete-list', autocomplete_module.list),
|
|
49
49
|
children: children
|
|
50
50
|
})
|
|
51
51
|
]
|
|
@@ -66,7 +66,7 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Item, {
|
|
69
|
-
className: classnames('
|
|
69
|
+
className: classnames('byline-autocomplete-item', autocomplete_module["autocomplete-item"], className),
|
|
70
70
|
...props,
|
|
71
71
|
ref: forwardedRef,
|
|
72
72
|
children: children
|
|
@@ -74,13 +74,13 @@ const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=
|
|
|
74
74
|
AutocompleteItem.displayName = 'AutocompleteItem';
|
|
75
75
|
const AutocompleteGroup = Autocomplete.Group;
|
|
76
76
|
const AutocompleteGroupLabel = ({ children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.GroupLabel, {
|
|
77
|
-
className: classnames('
|
|
77
|
+
className: classnames('byline-autocomplete-group-label', autocomplete_module["group-label"], className),
|
|
78
78
|
...props,
|
|
79
79
|
children: children
|
|
80
80
|
});
|
|
81
81
|
AutocompleteGroupLabel.displayName = 'AutocompleteGroupLabel';
|
|
82
82
|
const AutocompleteSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Separator, {
|
|
83
|
-
className: classnames('
|
|
83
|
+
className: classnames('byline-autocomplete-separator', autocomplete_module.separator, className),
|
|
84
84
|
...props
|
|
85
85
|
});
|
|
86
86
|
AutocompleteSeparator.displayName = 'AutocompleteSeparator';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.autocomplete-wrapper-JirsmI, .
|
|
4
|
+
:is(.autocomplete-wrapper-JirsmI, .byline-autocomplete-wrapper) {
|
|
5
5
|
gap: var(--gap-1);
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
display: flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:is(.input-nIzHob, .
|
|
10
|
+
:is(.input-nIzHob, .byline-autocomplete-input) {
|
|
11
11
|
outline-offset: 2px;
|
|
12
12
|
gap: var(--gap-2);
|
|
13
13
|
width: 100%;
|
|
@@ -20,49 +20,49 @@
|
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:is(.input-nIzHob:focus, .input-nIzHob:active, .
|
|
23
|
+
:is(.input-nIzHob:focus, .input-nIzHob:active, .byline-autocomplete-input:focus, .byline-autocomplete-input:active) {
|
|
24
24
|
outline-color: var(--ring-color);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(.input-nIzHob:disabled, .input-nIzHob[disabled], .
|
|
27
|
+
:is(.input-nIzHob:disabled, .input-nIzHob[disabled], .byline-autocomplete-input:disabled, .byline-autocomplete-input[disabled]) {
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:is(.sm-m41uwR, .
|
|
31
|
+
:is(.sm-m41uwR, .byline-autocomplete-input-sm) {
|
|
32
32
|
min-height: 32px;
|
|
33
33
|
padding: .25rem .5rem;
|
|
34
34
|
font-size: .875rem;
|
|
35
35
|
line-height: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:is(.md-pauitB, .
|
|
38
|
+
:is(.md-pauitB, .byline-autocomplete-input-md) {
|
|
39
39
|
min-height: 36px;
|
|
40
40
|
padding: .3rem .5rem;
|
|
41
41
|
font-size: 1rem;
|
|
42
42
|
line-height: 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
:is(.lg-XirY1c, .
|
|
45
|
+
:is(.lg-XirY1c, .byline-autocomplete-input-lg) {
|
|
46
46
|
min-height: 40px;
|
|
47
47
|
padding: .4rem .5rem;
|
|
48
48
|
font-size: 1.175rem;
|
|
49
49
|
line-height: 0;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:is(.outlined-Sg0shm, .
|
|
52
|
+
:is(.outlined-Sg0shm, .byline-autocomplete-input-outlined) {
|
|
53
53
|
border: 1px solid var(--input-variant-outlined-border);
|
|
54
54
|
background-color: #0000;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
:is(.outlined-Sg0shm:hover, .
|
|
57
|
+
:is(.outlined-Sg0shm:hover, .byline-autocomplete-input-outlined:hover) {
|
|
58
58
|
border: 1px solid var(--input-variant-outlined-hover-border);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
:is(.outlined-Sg0shm:focus, .outlined-Sg0shm:active, .
|
|
61
|
+
:is(.outlined-Sg0shm:focus, .outlined-Sg0shm:active, .byline-autocomplete-input-outlined:focus, .byline-autocomplete-input-outlined:active) {
|
|
62
62
|
--ring-color: var(--input-variant-outline-ring-color);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
:is(.underlined-TOTDkZ, .
|
|
65
|
+
:is(.underlined-TOTDkZ, .byline-autocomplete-input-underlined) {
|
|
66
66
|
border-bottom: 1px solid var(--input-variant-underlined-border);
|
|
67
67
|
gap: var(--gap-1);
|
|
68
68
|
background-color: var(--input-variant-underlined);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
padding: .25rem .1rem;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
.byline-autocomplete-input-underlined.byline-autocomplete-input-sm {
|
|
78
78
|
min-height: 26px;
|
|
79
79
|
padding: .25rem .1rem;
|
|
80
80
|
}
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
padding: .25rem .1rem;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.
|
|
87
|
+
.byline-autocomplete-input-underlined.byline-autocomplete-input-md {
|
|
88
88
|
min-height: 30px;
|
|
89
89
|
padding: .25rem .1rem;
|
|
90
90
|
}
|
|
@@ -94,32 +94,32 @@
|
|
|
94
94
|
padding: 0 .1rem;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.
|
|
97
|
+
.byline-autocomplete-input-underlined.byline-autocomplete-input-lg {
|
|
98
98
|
min-height: 34px;
|
|
99
99
|
padding: 0 .1rem;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
:is(.underlined-TOTDkZ:hover, .
|
|
102
|
+
:is(.underlined-TOTDkZ:hover, .byline-autocomplete-input-underlined:hover) {
|
|
103
103
|
border-bottom: 1px solid var(--input-variant-underlined-hover-border);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
:is(.underlined-TOTDkZ:focus, .underlined-TOTDkZ:active, .
|
|
106
|
+
:is(.underlined-TOTDkZ:focus, .underlined-TOTDkZ:active, .byline-autocomplete-input-underlined:focus, .byline-autocomplete-input-underlined:active) {
|
|
107
107
|
outline: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
:is(.filled-LBQC5g, .
|
|
110
|
+
:is(.filled-LBQC5g, .byline-autocomplete-input-filled) {
|
|
111
111
|
background-color: var(--input-variant-filled);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
:is(.error-Wyckbu, .
|
|
114
|
+
:is(.error-Wyckbu, .byline-autocomplete-input-error), :is(.error-Wyckbu:hover, .byline-autocomplete-input-error:hover) {
|
|
115
115
|
border: 1px solid var(--field-border-invalid);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
:is(.error-Wyckbu:focus, .error-Wyckbu:active, .
|
|
118
|
+
:is(.error-Wyckbu:focus, .error-Wyckbu:active, .byline-autocomplete-input-error:focus, .byline-autocomplete-input-error:active) {
|
|
119
119
|
--ring-color: var(--field-ring-invalid);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
:is(.primary-j2veZ2, .
|
|
122
|
+
:is(.primary-j2veZ2, .byline-autocomplete-input-primary) {
|
|
123
123
|
--input-variant-outlined-border: var(--stroke-primary);
|
|
124
124
|
--input-variant-outlined-hover-border: var(--stroke-primary-hover);
|
|
125
125
|
--input-variant-outline-ring-color: var(--ring-primary);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
--input-variant-filled: var(--fill-primary-weak);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
:is(.secondary-zC8OiE, .
|
|
131
|
+
:is(.secondary-zC8OiE, .byline-autocomplete-input-secondary) {
|
|
132
132
|
--input-variant-outlined-border: var(--stroke-secondary);
|
|
133
133
|
--input-variant-outlined-hover-border: var(--stroke-secondary-hover);
|
|
134
134
|
--input-variant-outline-ring-color: var(--ring-secondary);
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
--input-variant-filled: var(--fill-secondary-weak);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
:is(.noeffect-sFS4eb, .
|
|
140
|
+
:is(.noeffect-sFS4eb, .byline-autocomplete-input-noeffect) {
|
|
141
141
|
--input-variant-outlined-border: var(--stroke-noeffect);
|
|
142
142
|
--input-variant-outlined-hover-border: var(--stroke-noeffect-hover);
|
|
143
143
|
--input-variant-outline-ring-color: var(--ring-noeffect);
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
--input-variant-filled: var(--fill-noeffect-weak);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
:is(.success-rkhMDk, .
|
|
149
|
+
:is(.success-rkhMDk, .byline-autocomplete-input-success) {
|
|
150
150
|
--input-variant-outlined-border: var(--stroke-success);
|
|
151
151
|
--input-variant-outlined-hover-border: var(--stroke-success-hover);
|
|
152
152
|
--input-variant-outline-ring-color: var(--ring-success);
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
--input-variant-filled: var(--fill-success-weak);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
:is(.info-Fnv8u5, .
|
|
158
|
+
:is(.info-Fnv8u5, .byline-autocomplete-input-info) {
|
|
159
159
|
--input-variant-outlined-border: var(--stroke-info);
|
|
160
160
|
--input-variant-outlined-hover-border: var(--stroke-info-hover);
|
|
161
161
|
--input-variant-outline-ring-color: var(--ring-info);
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
--input-variant-filled: var(--fill-info-weak);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
:is(.warning-MCe1Jq, .
|
|
167
|
+
:is(.warning-MCe1Jq, .byline-autocomplete-input-warning) {
|
|
168
168
|
--input-variant-outlined-border: var(--stroke-warning);
|
|
169
169
|
--input-variant-outlined-hover-border: var(--stroke-warning-hover);
|
|
170
170
|
--input-variant-outline-ring-color: var(--ring-warning);
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
--input-variant-filled: var(--fill-warning-weak);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
:is(.danger-uyUS1z, .
|
|
176
|
+
:is(.danger-uyUS1z, .byline-autocomplete-input-danger) {
|
|
177
177
|
--input-variant-outlined-border: var(--stroke-danger);
|
|
178
178
|
--input-variant-outlined-hover-border: var(--stroke-danger-hover);
|
|
179
179
|
--input-variant-outline-ring-color: var(--ring-danger);
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
--input-variant-filled: var(--fill-danger-weak);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
:is(.positioner-LkIIwT, .
|
|
185
|
+
:is(.positioner-LkIIwT, .byline-autocomplete-positioner) {
|
|
186
186
|
z-index: 50;
|
|
187
187
|
outline: 0;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
:is(.popup-MGvAiW, .
|
|
190
|
+
:is(.popup-MGvAiW, .byline-autocomplete-popup) {
|
|
191
191
|
z-index: 50;
|
|
192
192
|
border: 1px solid var(--surface-panel-border);
|
|
193
193
|
box-shadow: var(--shadow-md);
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
padding: 8px;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
:is(.list-U6_3IW, .
|
|
215
|
+
:is(.list-U6_3IW, .byline-autocomplete-list) {
|
|
216
216
|
box-sizing: border-box;
|
|
217
217
|
overscroll-behavior: contain;
|
|
218
218
|
max-height: min(23rem, var(--available-height));
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
overflow-y: auto;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
:is(.list-U6_3IW[data-empty], .
|
|
225
|
+
:is(.list-U6_3IW[data-empty], .byline-autocomplete-list[data-empty]) {
|
|
226
226
|
padding: 0;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
:is(.autocomplete-item-GHvdpB, .
|
|
229
|
+
:is(.autocomplete-item-GHvdpB, .byline-autocomplete-item) {
|
|
230
230
|
-webkit-user-select: none;
|
|
231
231
|
user-select: none;
|
|
232
232
|
cursor: default;
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
pointer-events: none;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.
|
|
252
|
+
.byline-autocomplete-item[data-disabled] {
|
|
253
253
|
color: var(--surface-item-text-disabled);
|
|
254
254
|
pointer-events: none;
|
|
255
255
|
}
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
outline: none;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
.
|
|
263
|
+
.byline-autocomplete-item[data-highlighted] {
|
|
264
264
|
background-color: var(--surface-item-hover);
|
|
265
265
|
color: var(--surface-item-text-hover);
|
|
266
266
|
outline: none;
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
font-size: 1.125rem;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
:is(.group-label-yz4GS8, .
|
|
289
|
+
:is(.group-label-yz4GS8, .byline-autocomplete-group-label) {
|
|
290
290
|
color: var(--muted);
|
|
291
291
|
text-transform: uppercase;
|
|
292
292
|
letter-spacing: .05em;
|
|
@@ -295,13 +295,13 @@
|
|
|
295
295
|
font-weight: 600;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
:is(.separator-sgreyb, .
|
|
298
|
+
:is(.separator-sgreyb, .byline-autocomplete-separator) {
|
|
299
299
|
background-color: var(--surface-panel-border);
|
|
300
300
|
height: 1px;
|
|
301
301
|
margin: .375rem .75rem;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
:is(.empty-xvhK78:not(:empty), .
|
|
304
|
+
:is(.empty-xvhK78:not(:empty), .byline-autocomplete-empty:not(:empty)) {
|
|
305
305
|
box-sizing: border-box;
|
|
306
306
|
color: var(--muted);
|
|
307
307
|
padding: 1rem;
|
|
@@ -30,7 +30,7 @@ const CheckboxGroup = ({ groupName, className, checkBoxClasses, checkBoxes, defa
|
|
|
30
30
|
onChange?.(s);
|
|
31
31
|
};
|
|
32
32
|
return /*#__PURE__*/ jsx("div", {
|
|
33
|
-
className: classnames('
|
|
33
|
+
className: classnames('byline-checkbox-group', checkbox_group_module["checkbox-group"], className),
|
|
34
34
|
children: checkBoxes.map((cb)=>/*#__PURE__*/ jsx(Checkbox, {
|
|
35
35
|
id: `${groupName}-${cb.id}`,
|
|
36
36
|
name: `${groupName}-${cb.id}`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.
|
|
4
|
+
:is(.byline-checkbox-group, .checkbox-group-hPRXiQ) {
|
|
5
5
|
gap: var(--spacing-8);
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
display: flex;
|
|
@@ -8,10 +8,10 @@ import { ErrorText } from "./error-text.js";
|
|
|
8
8
|
import { HelpText } from "./help-text.js";
|
|
9
9
|
const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined', size = 'md', intent = 'primary', reverse = false, className, checkBoxClasses, containerClasses, componentClasses, labelClasses, error = false, helpText = '', errorText = '', ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className: classnames('
|
|
11
|
+
className: classnames('byline-checkbox-container', checkbox_module.container, containerClasses),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs("div", {
|
|
14
|
-
className: classnames('
|
|
14
|
+
className: classnames('byline-checkbox-component', checkbox_module.component, componentClasses, {
|
|
15
15
|
[checkbox_module.reverse]: reverse
|
|
16
16
|
}),
|
|
17
17
|
children: [
|
|
@@ -23,11 +23,11 @@ const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'out
|
|
|
23
23
|
render: /*#__PURE__*/ jsx("button", {
|
|
24
24
|
type: "button"
|
|
25
25
|
}),
|
|
26
|
-
className: classnames('
|
|
26
|
+
className: classnames('byline-checkbox', `byline-checkbox-${variant}`, `byline-checkbox-${size}`, `byline-checkbox-${intent}`, checkbox_module.checkbox, checkbox_module[variant], checkbox_module[size], checkbox_module[intent], checkBoxClasses, className),
|
|
27
27
|
...rest,
|
|
28
28
|
children: /*#__PURE__*/ jsx(checkbox_Checkbox.Indicator, {
|
|
29
29
|
keepMounted: true,
|
|
30
|
-
className: classnames('
|
|
30
|
+
className: classnames('byline-checkbox-indicator', checkbox_module.indicator),
|
|
31
31
|
children: /*#__PURE__*/ jsx(CheckIcon, {
|
|
32
32
|
className: checkbox_module.icon
|
|
33
33
|
})
|
|
@@ -35,7 +35,7 @@ const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'out
|
|
|
35
35
|
}),
|
|
36
36
|
null != label && /*#__PURE__*/ jsx("label", {
|
|
37
37
|
htmlFor: id,
|
|
38
|
-
className: classnames('
|
|
38
|
+
className: classnames('byline-checkbox-label', checkbox_module.label, labelClasses),
|
|
39
39
|
children: label
|
|
40
40
|
})
|
|
41
41
|
]
|