@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
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.container,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-checkbox-container) {
|
|
15
15
|
width: 100%;
|
|
16
16
|
padding: 0;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.component,
|
|
20
|
-
:global(.
|
|
20
|
+
:global(.byline-checkbox-component) {
|
|
21
21
|
display: flex;
|
|
22
22
|
width: 100%;
|
|
23
23
|
padding: 0;
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.reverse,
|
|
29
|
-
:global(.
|
|
29
|
+
:global(.byline-checkbox-reverse) {
|
|
30
30
|
flex-direction: row-reverse;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.checkbox,
|
|
34
|
-
:global(.
|
|
34
|
+
:global(.byline-checkbox) {
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
align-items: center;
|
|
37
37
|
justify-content: center;
|
|
@@ -42,24 +42,24 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.checkbox[data-checked],
|
|
45
|
-
:global(.
|
|
45
|
+
:global(.byline-checkbox)[data-checked] {
|
|
46
46
|
outline-color: var(--ring-color);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.checkbox[data-disabled],
|
|
50
|
-
:global(.
|
|
50
|
+
:global(.byline-checkbox)[data-disabled] {
|
|
51
51
|
pointer-events: none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.indicator,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-checkbox-indicator) {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: center;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.icon,
|
|
62
|
-
:global(.
|
|
62
|
+
:global(.byline-checkbox-icon) {
|
|
63
63
|
width: 20px;
|
|
64
64
|
height: 20px;
|
|
65
65
|
color: var(--checkbox-icon-color);
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
/* Style for the "checked" state — animation overrides the transition for bouncy entry */
|
|
77
77
|
.indicator[data-checked] .icon,
|
|
78
|
-
:global(.
|
|
78
|
+
:global(.byline-checkbox-indicator)[data-checked] :global(.byline-checkbox-icon) {
|
|
79
79
|
animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
|
|
80
80
|
opacity: 1;
|
|
81
81
|
transform: scale(1);
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
|
|
84
84
|
/* Style for the "unchecked" state — no animation, let the CSS transition handle the exit */
|
|
85
85
|
.indicator[data-unchecked] .icon,
|
|
86
|
-
:global(.
|
|
86
|
+
:global(.byline-checkbox-indicator)[data-unchecked] :global(.byline-checkbox-icon) {
|
|
87
87
|
opacity: 0;
|
|
88
88
|
transform: scale(0.8);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.label,
|
|
92
|
-
:global(.
|
|
92
|
+
:global(.byline-checkbox-label) {
|
|
93
93
|
margin-left: 0.25rem;
|
|
94
94
|
cursor: pointer;
|
|
95
95
|
font-weight: 500;
|
|
@@ -97,12 +97,12 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.checkbox[data-disabled] ~ .label,
|
|
100
|
-
:global(.
|
|
100
|
+
:global(.byline-checkbox)[data-disabled] ~ :global(.byline-checkbox-label) {
|
|
101
101
|
pointer-events: none;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.errorText,
|
|
105
|
-
:global(.
|
|
105
|
+
:global(.byline-dropdown-error-text) {
|
|
106
106
|
margin-top: 0.25rem;
|
|
107
107
|
font-size: 0.875rem;
|
|
108
108
|
color: red;
|
|
@@ -110,83 +110,83 @@
|
|
|
110
110
|
|
|
111
111
|
/* Sizes */
|
|
112
112
|
.sm,
|
|
113
|
-
:global(.
|
|
113
|
+
:global(.byline-checkbox-sm) {
|
|
114
114
|
width: 16px;
|
|
115
115
|
height: 16px;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.sm .icon,
|
|
119
|
-
:global(.
|
|
119
|
+
:global(.byline-checkbox-sm) :global(.byline-checkbox-icon) {
|
|
120
120
|
width: 16px;
|
|
121
121
|
height: 16px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.sm ~ .label,
|
|
125
|
-
:global(.
|
|
125
|
+
:global(.byline-checkbox-sm) ~ :global(.byline-checkbox-label) {
|
|
126
126
|
font-size: 0.85rem;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.md,
|
|
130
|
-
:global(.
|
|
130
|
+
:global(.byline-checkbox-md) {
|
|
131
131
|
width: 18px;
|
|
132
132
|
height: 18px;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.md .icon,
|
|
136
|
-
:global(.
|
|
136
|
+
:global(.byline-checkbox-md) :global(.byline-checkbox-icon) {
|
|
137
137
|
width: 18px;
|
|
138
138
|
height: 18px;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.md ~ .label,
|
|
142
|
-
:global(.
|
|
142
|
+
:global(.byline-checkbox-md) ~ :global(.byline-checkbox-label) {
|
|
143
143
|
font-size: 0.875rem;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.lg,
|
|
147
|
-
:global(.
|
|
147
|
+
:global(.byline-checkbox-lg) {
|
|
148
148
|
width: 20px;
|
|
149
149
|
height: 20px;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.lg .icon,
|
|
153
|
-
:global(.
|
|
153
|
+
:global(.byline-checkbox-lg) :global(.byline-checkbox-icon) {
|
|
154
154
|
width: 22px;
|
|
155
155
|
height: 22px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.lg ~ .label,
|
|
159
|
-
:global(.
|
|
159
|
+
:global(.byline-checkbox-lg) ~ :global(.byline-checkbox-label) {
|
|
160
160
|
font-size: 1rem;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* Variants */
|
|
164
164
|
.outlined,
|
|
165
|
-
:global(.
|
|
165
|
+
:global(.byline-checkbox-outlined) {
|
|
166
166
|
border: 2px solid var(--checkbox-variant-outlined-border);
|
|
167
167
|
--checkbox-icon-color: white;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.outlined[data-checked],
|
|
171
|
-
:global(.
|
|
171
|
+
:global(.byline-checkbox-outlined)[data-checked] {
|
|
172
172
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
173
173
|
background-color: var(--checkbox-variant-outlined);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.filled,
|
|
177
|
-
:global(.
|
|
177
|
+
:global(.byline-checkbox-filled) {
|
|
178
178
|
background-color: var(--checkbox-variant-filled);
|
|
179
179
|
--checkbox-icon-color: white;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.filled[data-checked],
|
|
183
|
-
:global(.
|
|
183
|
+
:global(.byline-checkbox-filled)[data-checked] {
|
|
184
184
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/* Intents */
|
|
188
188
|
.primary,
|
|
189
|
-
:global(.
|
|
189
|
+
:global(.byline-checkbox-primary) {
|
|
190
190
|
--checkbox-variant-outlined-border: var(--fill-primary-strong);
|
|
191
191
|
--checkbox-variant-outlined: var(--fill-primary-strong);
|
|
192
192
|
--checkbox-variant-outlined-hover-border: var(--fill-primary-strong-hover);
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.secondary,
|
|
199
|
-
:global(.
|
|
199
|
+
:global(.byline-checkbox-secondary) {
|
|
200
200
|
--checkbox-variant-outlined-border: var(--fill-secondary-strong);
|
|
201
201
|
--checkbox-variant-outlined: var(--fill-secondary-strong);
|
|
202
202
|
--checkbox-variant-outlined-hover-border: var(--fill-secondary-strong-hover);
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.noeffect,
|
|
209
|
-
:global(.
|
|
209
|
+
:global(.byline-checkbox-noeffect) {
|
|
210
210
|
--checkbox-variant-outlined-border: var(--fill-noeffect-strong);
|
|
211
211
|
--checkbox-variant-outlined: var(--fill-noeffect-strong);
|
|
212
212
|
--checkbox-variant-outlined-hover-border: var(--fill-noeffect-strong-hover);
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.success,
|
|
219
|
-
:global(.
|
|
219
|
+
:global(.byline-checkbox-success) {
|
|
220
220
|
--checkbox-variant-outlined-border: var(--fill-success-strong);
|
|
221
221
|
--checkbox-variant-outlined: var(--fill-success-strong);
|
|
222
222
|
--checkbox-variant-outlined-hover-border: var(--fill-success-strong-hover);
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.info,
|
|
229
|
-
:global(.
|
|
229
|
+
:global(.byline-checkbox-info) {
|
|
230
230
|
--checkbox-variant-outlined-border: var(--fill-info-strong);
|
|
231
231
|
--checkbox-variant-outlined: var(--fill-info-strong);
|
|
232
232
|
--checkbox-variant-outlined-hover-border: var(--fill-info-strong-hover);
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.warning,
|
|
239
|
-
:global(.
|
|
239
|
+
:global(.byline-checkbox-warning) {
|
|
240
240
|
--checkbox-variant-outlined-border: var(--fill-warning-strong);
|
|
241
241
|
--checkbox-variant-outlined: var(--fill-warning-strong);
|
|
242
242
|
--checkbox-variant-outlined-hover-border: var(--fill-warning-strong-hover);
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.danger,
|
|
249
|
-
:global(.
|
|
249
|
+
:global(.byline-checkbox-danger) {
|
|
250
250
|
--checkbox-variant-outlined-border: var(--fill-danger-strong);
|
|
251
251
|
--checkbox-variant-outlined: var(--fill-danger-strong);
|
|
252
252
|
--checkbox-variant-outlined-hover-border: var(--fill-danger-strong-hover);
|
|
@@ -56,9 +56,9 @@ export const Checkbox = function Checkbox({
|
|
|
56
56
|
ref?: React.RefObject<HTMLButtonElement>
|
|
57
57
|
}): React.JSX.Element {
|
|
58
58
|
return (
|
|
59
|
-
<div className={cx('
|
|
59
|
+
<div className={cx('byline-checkbox-container', styles.container, containerClasses)}>
|
|
60
60
|
<div
|
|
61
|
-
className={cx('
|
|
61
|
+
className={cx('byline-checkbox-component', styles.component, componentClasses, {
|
|
62
62
|
[styles.reverse]: reverse,
|
|
63
63
|
})}
|
|
64
64
|
>
|
|
@@ -69,10 +69,10 @@ export const Checkbox = function Checkbox({
|
|
|
69
69
|
nativeButton
|
|
70
70
|
render={<button type="button" />}
|
|
71
71
|
className={cx(
|
|
72
|
-
'
|
|
73
|
-
`
|
|
74
|
-
`
|
|
75
|
-
`
|
|
72
|
+
'byline-checkbox',
|
|
73
|
+
`byline-checkbox-${variant}`,
|
|
74
|
+
`byline-checkbox-${size}`,
|
|
75
|
+
`byline-checkbox-${intent}`,
|
|
76
76
|
styles.checkbox,
|
|
77
77
|
styles[variant],
|
|
78
78
|
styles[size],
|
|
@@ -84,17 +84,14 @@ export const Checkbox = function Checkbox({
|
|
|
84
84
|
>
|
|
85
85
|
<CheckboxPrimitive.Indicator
|
|
86
86
|
keepMounted
|
|
87
|
-
className={cx('
|
|
87
|
+
className={cx('byline-checkbox-indicator', styles.indicator)}
|
|
88
88
|
>
|
|
89
89
|
<CheckIcon className={styles.icon} />
|
|
90
90
|
</CheckboxPrimitive.Indicator>
|
|
91
91
|
</CheckboxPrimitive.Root>
|
|
92
92
|
|
|
93
93
|
{label != null && (
|
|
94
|
-
<label
|
|
95
|
-
htmlFor={id}
|
|
96
|
-
className={cx('infonomic-checkbox-label', styles.label, labelClasses)}
|
|
97
|
-
>
|
|
94
|
+
<label htmlFor={id} className={cx('byline-checkbox-label', styles.label, labelClasses)}>
|
|
98
95
|
{label}
|
|
99
96
|
</label>
|
|
100
97
|
)}
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.text,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-error-text) {
|
|
15
15
|
font-size: 0.875rem;
|
|
16
16
|
color: var(--text-danger);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.sm,
|
|
20
|
-
:global(.
|
|
20
|
+
:global(.byline-error-text-sm) {
|
|
21
21
|
font-size: 0.85rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.md,
|
|
25
|
-
:global(.
|
|
25
|
+
:global(.byline-error-text-md) {
|
|
26
26
|
font-size: 0.875rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.lg,
|
|
30
|
-
:global(.
|
|
30
|
+
:global(.byline-error-text-lg) {
|
|
31
31
|
font-size: 0.9rem;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.text,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-help-text) {
|
|
15
15
|
font-size: 0.875rem;
|
|
16
16
|
color: var(--muted);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.sm,
|
|
20
|
-
:global(.
|
|
20
|
+
:global(.byline-help-text-sm) {
|
|
21
21
|
font-size: 0.85rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.md,
|
|
25
|
-
:global(.
|
|
25
|
+
:global(.byline-help-text-md) {
|
|
26
26
|
font-size: 0.875rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.lg,
|
|
30
|
-
:global(.
|
|
30
|
+
:global(.byline-help-text-lg) {
|
|
31
31
|
font-size: 0.9rem;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -12,8 +12,6 @@ interface HelpTextProps {
|
|
|
12
12
|
|
|
13
13
|
export function HelpText({ className, size, text }: HelpTextProps): React.JSX.Element {
|
|
14
14
|
return (
|
|
15
|
-
<p className={cx('
|
|
16
|
-
{text}
|
|
17
|
-
</p>
|
|
15
|
+
<p className={cx('byline-help-text', styles.text, size && styles[size], className)}>{text}</p>
|
|
18
16
|
)
|
|
19
17
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.adornment,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-input-adornment) {
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
line-height: 0;
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.start,
|
|
22
|
-
:global(.
|
|
22
|
+
:global(.byline-input-adornment-start) {
|
|
23
23
|
justify-content: flex-start;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.end,
|
|
27
|
-
:global(.
|
|
27
|
+
:global(.byline-input-adornment-end) {
|
|
28
28
|
justify-content: flex-end;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -22,8 +22,8 @@ export function InputAdornment({
|
|
|
22
22
|
return (
|
|
23
23
|
<div
|
|
24
24
|
className={cx(
|
|
25
|
-
'
|
|
26
|
-
`
|
|
25
|
+
'byline-input-adornment',
|
|
26
|
+
`byline-input-adornment-${position}`,
|
|
27
27
|
styles.adornment,
|
|
28
28
|
{ [styles.start]: position === 'start' },
|
|
29
29
|
{ [styles.end]: position === 'end' },
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.input-wrapper,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-input-wrapper) {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
gap: var(--gap-1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.input-container,
|
|
21
|
-
:global(.
|
|
21
|
+
:global(.byline-input-container) {
|
|
22
22
|
position: relative;
|
|
23
23
|
width: 100%;
|
|
24
24
|
padding: 0;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.input,
|
|
31
|
-
:global(.
|
|
31
|
+
:global(.byline-input) {
|
|
32
32
|
border: none;
|
|
33
33
|
outline: 1px solid transparent;
|
|
34
34
|
outline-offset: 2px;
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
|
|
44
44
|
.input:focus,
|
|
45
45
|
.input:active,
|
|
46
|
-
:global(.
|
|
47
|
-
:global(.
|
|
46
|
+
:global(.byline-input):focus,
|
|
47
|
+
:global(.byline-input):active {
|
|
48
48
|
outline-color: var(--ring-color);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.input:disabled,
|
|
52
52
|
.input[disabled],
|
|
53
|
-
:global(.
|
|
54
|
-
:global(.
|
|
53
|
+
:global(.byline-input):disabled,
|
|
54
|
+
:global(.byline-input)[disabled] {
|
|
55
55
|
pointer-events: none;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.label,
|
|
59
|
-
:global(.
|
|
59
|
+
:global(.byline-input-label) {
|
|
60
60
|
font-size: 0.875rem;
|
|
61
61
|
font-weight: 500;
|
|
62
62
|
color: var(--label-color);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
/* Sizes */
|
|
66
66
|
.sm,
|
|
67
|
-
:global(.
|
|
67
|
+
:global(.byline-input-sm) {
|
|
68
68
|
min-height: 32px;
|
|
69
69
|
font-size: 0.875rem;
|
|
70
70
|
line-height: 0;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.md,
|
|
75
|
-
:global(.
|
|
75
|
+
:global(.byline-input-md) {
|
|
76
76
|
min-height: 36px;
|
|
77
77
|
font-size: 1rem;
|
|
78
78
|
line-height: 0;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.lg,
|
|
83
|
-
:global(.
|
|
83
|
+
:global(.byline-input-lg) {
|
|
84
84
|
min-height: 40px;
|
|
85
85
|
font-size: 1.175rem;
|
|
86
86
|
line-height: 0;
|
|
@@ -89,50 +89,50 @@
|
|
|
89
89
|
|
|
90
90
|
.start-adornment,
|
|
91
91
|
.end-adornment,
|
|
92
|
-
:global(.
|
|
93
|
-
:global(.
|
|
92
|
+
:global(.byline-input-start-adornment),
|
|
93
|
+
:global(.byline-input-end-adornment) {
|
|
94
94
|
position: absolute;
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: center;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.start-adornment,
|
|
100
|
-
:global(.
|
|
100
|
+
:global(.byline-input-start-adornment) {
|
|
101
101
|
left: 5px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.end-adornment,
|
|
105
|
-
:global(.
|
|
105
|
+
:global(.byline-input-end-adornment) {
|
|
106
106
|
right: 5px;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.help-text,
|
|
110
|
-
:global(.
|
|
110
|
+
:global(.byline-input-help-text) {
|
|
111
111
|
font-size: 0.75rem;
|
|
112
112
|
color: var(--help-text-color);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/* Variants */
|
|
116
116
|
.outlined,
|
|
117
|
-
:global(.
|
|
117
|
+
:global(.byline-input-outlined) {
|
|
118
118
|
border: 1px solid var(--input-variant-outlined-border);
|
|
119
119
|
background-color: transparent;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.outlined:hover,
|
|
123
|
-
:global(.
|
|
123
|
+
:global(.byline-input-outlined):hover {
|
|
124
124
|
border: 1px solid var(--input-variant-outlined-hover-border);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.outlined:focus,
|
|
128
128
|
.outlined:active,
|
|
129
|
-
:global(.
|
|
130
|
-
:global(.
|
|
129
|
+
:global(.byline-input-outlined):focus,
|
|
130
|
+
:global(.byline-input-outlined):active {
|
|
131
131
|
--ring-color: var(--input-variant-outline-ring-color);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.underlined,
|
|
135
|
-
:global(.
|
|
135
|
+
:global(.byline-input-underlined) {
|
|
136
136
|
border-bottom: 1px solid var(--input-variant-underlined-border);
|
|
137
137
|
border-radius: 0;
|
|
138
138
|
gap: var(--gap-1);
|
|
@@ -141,86 +141,86 @@
|
|
|
141
141
|
|
|
142
142
|
/* Sizes */
|
|
143
143
|
.underlined.sm,
|
|
144
|
-
:global(.
|
|
144
|
+
:global(.byline-input-underlined.input-sm) {
|
|
145
145
|
padding: 0.25rem 0.1rem;
|
|
146
146
|
min-height: 26px;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.underlined.md,
|
|
150
|
-
:global(.
|
|
150
|
+
:global(.byline-input-underlined.input-md) {
|
|
151
151
|
padding: 0.25rem 0.1rem;
|
|
152
152
|
min-height: 30px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.underlined.lg,
|
|
156
|
-
:global(.
|
|
156
|
+
:global(.byline-input-underlined.input-lg) {
|
|
157
157
|
padding: 0 0.1rem;
|
|
158
158
|
min-height: 34px;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.underlined:hover,
|
|
162
|
-
:global(.
|
|
162
|
+
:global(.byline-input-underlined):hover {
|
|
163
163
|
border-bottom: 1px solid var(--input-variant-underlined-hover-border);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.underlined:focus,
|
|
167
167
|
.underlined:active,
|
|
168
|
-
:global(.
|
|
169
|
-
:global(.
|
|
168
|
+
:global(.byline-input-underlined):focus,
|
|
169
|
+
:global(.byline-input-underlined):active {
|
|
170
170
|
outline: none;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.filled,
|
|
174
|
-
:global(.
|
|
174
|
+
:global(.byline-input-filled) {
|
|
175
175
|
background-color: var(--input-variant-filled);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/* Error classes last, so that they override all
|
|
179
179
|
of the above */
|
|
180
180
|
.error,
|
|
181
|
-
:global(.
|
|
181
|
+
:global(.byline-input-error) {
|
|
182
182
|
border: 1px solid var(--field-border-invalid);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.error:hover,
|
|
186
|
-
:global(.
|
|
186
|
+
:global(.byline-input-error):hover {
|
|
187
187
|
border: 1px solid var(--field-border-invalid);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.error:focus,
|
|
191
191
|
.error:active,
|
|
192
|
-
:global(.
|
|
193
|
-
:global(.
|
|
192
|
+
:global(.byline-input-error):focus,
|
|
193
|
+
:global(.byline-input-error):active {
|
|
194
194
|
--ring-color: var(--field-ring-invalid);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.underlined.start-adornment-padding,
|
|
198
198
|
.start-adornment-padding,
|
|
199
|
-
:global(.
|
|
200
|
-
:global(.
|
|
199
|
+
:global(.byline-input-underlined.input-start-adornment-padding),
|
|
200
|
+
:global(.byline-input-start-adornment-padding) {
|
|
201
201
|
padding-left: 2rem;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.underlined.end-adornment-padding,
|
|
205
205
|
.end-adornment-padding,
|
|
206
|
-
:global(.
|
|
207
|
-
:global(.
|
|
206
|
+
:global(.byline-input-underlined.input-end-adornment-padding),
|
|
207
|
+
:global(.byline-input-end-adornment-padding) {
|
|
208
208
|
padding-right: 2rem;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
.underlined.start-adornment,
|
|
212
|
-
:global(.
|
|
212
|
+
:global(.byline-input-underlined.input-start-adornment) {
|
|
213
213
|
left: 0;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.underlined.end-adornment,
|
|
217
|
-
:global(.
|
|
217
|
+
:global(.byline-input-underlined.input-end-adornment) {
|
|
218
218
|
right: 0;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/* Intents */
|
|
222
222
|
.primary,
|
|
223
|
-
:global(.
|
|
223
|
+
:global(.byline-input-primary) {
|
|
224
224
|
--input-variant-outlined-border: var(--stroke-primary);
|
|
225
225
|
--input-variant-outlined-hover-border: var(--stroke-primary-hover);
|
|
226
226
|
--input-variant-outline-ring-color: var(--ring-primary);
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.secondary,
|
|
233
|
-
:global(.
|
|
233
|
+
:global(.byline-input-secondary) {
|
|
234
234
|
--input-variant-outlined-border: var(--stroke-secondary);
|
|
235
235
|
--input-variant-outlined-hover-border: var(--stroke-secondary-hover);
|
|
236
236
|
--input-variant-outline-ring-color: var(--ring-secondary);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
.noeffect,
|
|
243
|
-
:global(.
|
|
243
|
+
:global(.byline-input-noeffect) {
|
|
244
244
|
--input-variant-outlined-border: var(--stroke-noeffect);
|
|
245
245
|
--input-variant-outlined-hover-border: var(--stroke-noeffect-hover);
|
|
246
246
|
--input-variant-outline-ring-color: var(--ring-noeffect);
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.success,
|
|
253
|
-
:global(.
|
|
253
|
+
:global(.byline-input-success) {
|
|
254
254
|
--input-variant-outlined-border: var(--stroke-success);
|
|
255
255
|
--input-variant-outlined-hover-border: var(--stroke-success-hover);
|
|
256
256
|
--input-variant-outline-ring-color: var(--ring-success);
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
.info,
|
|
263
|
-
:global(.
|
|
263
|
+
:global(.byline-input-info) {
|
|
264
264
|
--input-variant-outlined-border: var(--stroke-info);
|
|
265
265
|
--input-variant-outlined-hover-border: var(--stroke-info-hover);
|
|
266
266
|
--input-variant-outline-ring-color: var(--ring-info);
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.warning,
|
|
273
|
-
:global(.
|
|
273
|
+
:global(.byline-input-warning) {
|
|
274
274
|
--input-variant-outlined-border: var(--stroke-warning);
|
|
275
275
|
--input-variant-outlined-hover-border: var(--stroke-warning-hover);
|
|
276
276
|
--input-variant-outline-ring-color: var(--ring-warning);
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
.danger,
|
|
283
|
-
:global(.
|
|
283
|
+
:global(.byline-input-danger) {
|
|
284
284
|
--input-variant-outlined-border: var(--stroke-danger);
|
|
285
285
|
--input-variant-outlined-hover-border: var(--stroke-danger-hover);
|
|
286
286
|
--input-variant-outline-ring-color: var(--ring-danger);
|