@byline/ui 1.10.1 → 1.10.3
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 +46 -42
- 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 +41 -38
- 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 +25 -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/forms/form-renderer.js +19 -20
- 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 +14 -14
- 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 +162 -86
- 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 +126 -71
- 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 +38 -34
- 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 +41 -28
- 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 +18 -8
- 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/forms/form-renderer.tsx +44 -30
- 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,8 @@
|
|
|
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]
|
|
79
|
+
:global(.byline-checkbox-icon) {
|
|
79
80
|
animation: checkBoxIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
|
|
80
81
|
opacity: 1;
|
|
81
82
|
transform: scale(1);
|
|
@@ -83,13 +84,14 @@
|
|
|
83
84
|
|
|
84
85
|
/* Style for the "unchecked" state — no animation, let the CSS transition handle the exit */
|
|
85
86
|
.indicator[data-unchecked] .icon,
|
|
86
|
-
:global(.
|
|
87
|
+
:global(.byline-checkbox-indicator)[data-unchecked]
|
|
88
|
+
:global(.byline-checkbox-icon) {
|
|
87
89
|
opacity: 0;
|
|
88
90
|
transform: scale(0.8);
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
.label,
|
|
92
|
-
:global(.
|
|
94
|
+
:global(.byline-checkbox-label) {
|
|
93
95
|
margin-left: 0.25rem;
|
|
94
96
|
cursor: pointer;
|
|
95
97
|
font-weight: 500;
|
|
@@ -97,12 +99,12 @@
|
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
.checkbox[data-disabled] ~ .label,
|
|
100
|
-
:global(.
|
|
102
|
+
:global(.byline-checkbox)[data-disabled] ~ :global(.byline-checkbox-label) {
|
|
101
103
|
pointer-events: none;
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
.errorText,
|
|
105
|
-
:global(.
|
|
107
|
+
:global(.byline-dropdown-error-text) {
|
|
106
108
|
margin-top: 0.25rem;
|
|
107
109
|
font-size: 0.875rem;
|
|
108
110
|
color: red;
|
|
@@ -110,83 +112,83 @@
|
|
|
110
112
|
|
|
111
113
|
/* Sizes */
|
|
112
114
|
.sm,
|
|
113
|
-
:global(.
|
|
115
|
+
:global(.byline-checkbox-sm) {
|
|
114
116
|
width: 16px;
|
|
115
117
|
height: 16px;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
.sm .icon,
|
|
119
|
-
:global(.
|
|
121
|
+
:global(.byline-checkbox-sm) :global(.byline-checkbox-icon) {
|
|
120
122
|
width: 16px;
|
|
121
123
|
height: 16px;
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
.sm ~ .label,
|
|
125
|
-
:global(.
|
|
127
|
+
:global(.byline-checkbox-sm) ~ :global(.byline-checkbox-label) {
|
|
126
128
|
font-size: 0.85rem;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
.md,
|
|
130
|
-
:global(.
|
|
132
|
+
:global(.byline-checkbox-md) {
|
|
131
133
|
width: 18px;
|
|
132
134
|
height: 18px;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
.md .icon,
|
|
136
|
-
:global(.
|
|
138
|
+
:global(.byline-checkbox-md) :global(.byline-checkbox-icon) {
|
|
137
139
|
width: 18px;
|
|
138
140
|
height: 18px;
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
.md ~ .label,
|
|
142
|
-
:global(.
|
|
144
|
+
:global(.byline-checkbox-md) ~ :global(.byline-checkbox-label) {
|
|
143
145
|
font-size: 0.875rem;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
.lg,
|
|
147
|
-
:global(.
|
|
149
|
+
:global(.byline-checkbox-lg) {
|
|
148
150
|
width: 20px;
|
|
149
151
|
height: 20px;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
.lg .icon,
|
|
153
|
-
:global(.
|
|
155
|
+
:global(.byline-checkbox-lg) :global(.byline-checkbox-icon) {
|
|
154
156
|
width: 22px;
|
|
155
157
|
height: 22px;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
.lg ~ .label,
|
|
159
|
-
:global(.
|
|
161
|
+
:global(.byline-checkbox-lg) ~ :global(.byline-checkbox-label) {
|
|
160
162
|
font-size: 1rem;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
/* Variants */
|
|
164
166
|
.outlined,
|
|
165
|
-
:global(.
|
|
167
|
+
:global(.byline-checkbox-outlined) {
|
|
166
168
|
border: 2px solid var(--checkbox-variant-outlined-border);
|
|
167
169
|
--checkbox-icon-color: white;
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
.outlined[data-checked],
|
|
171
|
-
:global(.
|
|
173
|
+
:global(.byline-checkbox-outlined)[data-checked] {
|
|
172
174
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
173
175
|
background-color: var(--checkbox-variant-outlined);
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
.filled,
|
|
177
|
-
:global(.
|
|
179
|
+
:global(.byline-checkbox-filled) {
|
|
178
180
|
background-color: var(--checkbox-variant-filled);
|
|
179
181
|
--checkbox-icon-color: white;
|
|
180
182
|
}
|
|
181
183
|
|
|
182
184
|
.filled[data-checked],
|
|
183
|
-
:global(.
|
|
185
|
+
:global(.byline-checkbox-filled)[data-checked] {
|
|
184
186
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
/* Intents */
|
|
188
190
|
.primary,
|
|
189
|
-
:global(.
|
|
191
|
+
:global(.byline-checkbox-primary) {
|
|
190
192
|
--checkbox-variant-outlined-border: var(--fill-primary-strong);
|
|
191
193
|
--checkbox-variant-outlined: var(--fill-primary-strong);
|
|
192
194
|
--checkbox-variant-outlined-hover-border: var(--fill-primary-strong-hover);
|
|
@@ -196,17 +198,19 @@
|
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
.secondary,
|
|
199
|
-
:global(.
|
|
201
|
+
:global(.byline-checkbox-secondary) {
|
|
200
202
|
--checkbox-variant-outlined-border: var(--fill-secondary-strong);
|
|
201
203
|
--checkbox-variant-outlined: var(--fill-secondary-strong);
|
|
202
|
-
--checkbox-variant-outlined-hover-border: var(
|
|
204
|
+
--checkbox-variant-outlined-hover-border: var(
|
|
205
|
+
--fill-secondary-strong-hover
|
|
206
|
+
);
|
|
203
207
|
--checkbox-variant-outline-ring-color: var(--ring-secondary);
|
|
204
208
|
--checkbox-variant-filled: var(--fill-secondary-strong);
|
|
205
209
|
--checkbox-icon-color: black;
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
.noeffect,
|
|
209
|
-
:global(.
|
|
213
|
+
:global(.byline-checkbox-noeffect) {
|
|
210
214
|
--checkbox-variant-outlined-border: var(--fill-noeffect-strong);
|
|
211
215
|
--checkbox-variant-outlined: var(--fill-noeffect-strong);
|
|
212
216
|
--checkbox-variant-outlined-hover-border: var(--fill-noeffect-strong-hover);
|
|
@@ -216,7 +220,7 @@
|
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.success,
|
|
219
|
-
:global(.
|
|
223
|
+
:global(.byline-checkbox-success) {
|
|
220
224
|
--checkbox-variant-outlined-border: var(--fill-success-strong);
|
|
221
225
|
--checkbox-variant-outlined: var(--fill-success-strong);
|
|
222
226
|
--checkbox-variant-outlined-hover-border: var(--fill-success-strong-hover);
|
|
@@ -226,7 +230,7 @@
|
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
.info,
|
|
229
|
-
:global(.
|
|
233
|
+
:global(.byline-checkbox-info) {
|
|
230
234
|
--checkbox-variant-outlined-border: var(--fill-info-strong);
|
|
231
235
|
--checkbox-variant-outlined: var(--fill-info-strong);
|
|
232
236
|
--checkbox-variant-outlined-hover-border: var(--fill-info-strong-hover);
|
|
@@ -236,7 +240,7 @@
|
|
|
236
240
|
}
|
|
237
241
|
|
|
238
242
|
.warning,
|
|
239
|
-
:global(.
|
|
243
|
+
:global(.byline-checkbox-warning) {
|
|
240
244
|
--checkbox-variant-outlined-border: var(--fill-warning-strong);
|
|
241
245
|
--checkbox-variant-outlined: var(--fill-warning-strong);
|
|
242
246
|
--checkbox-variant-outlined-hover-border: var(--fill-warning-strong-hover);
|
|
@@ -246,7 +250,7 @@
|
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
.danger,
|
|
249
|
-
:global(.
|
|
253
|
+
:global(.byline-checkbox-danger) {
|
|
250
254
|
--checkbox-variant-outlined-border: var(--fill-danger-strong);
|
|
251
255
|
--checkbox-variant-outlined: var(--fill-danger-strong);
|
|
252
256
|
--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' },
|