@byline/ui 1.10.2 → 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/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 +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/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,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);
|
|
@@ -54,13 +54,13 @@ export const Input = <_C extends React.ElementType = 'input'>({
|
|
|
54
54
|
...rest
|
|
55
55
|
}: InputProps) => {
|
|
56
56
|
return (
|
|
57
|
-
<div className={cx('
|
|
57
|
+
<div className={cx('byline-input-wrapper', styles['input-wrapper'], inputWrapperClassName)}>
|
|
58
58
|
{label != null && <Label id={id} htmlFor={id} required={required} label={label} />}
|
|
59
|
-
<div className={cx('
|
|
59
|
+
<div className={cx('byline-input-container', styles['input-container'])}>
|
|
60
60
|
{startAdornment != null && (
|
|
61
61
|
<div
|
|
62
62
|
className={cx(
|
|
63
|
-
'
|
|
63
|
+
'byline-input-start-adornment',
|
|
64
64
|
styles['start-adornment'],
|
|
65
65
|
styles[variant]
|
|
66
66
|
)}
|
|
@@ -82,10 +82,10 @@ export const Input = <_C extends React.ElementType = 'input'>({
|
|
|
82
82
|
aria-errormessage={errorText}
|
|
83
83
|
aria-describedby={error ? `error-for-${id}` : undefined}
|
|
84
84
|
className={cx(
|
|
85
|
-
'
|
|
86
|
-
`
|
|
87
|
-
`
|
|
88
|
-
`
|
|
85
|
+
'byline-input',
|
|
86
|
+
`byline-input-${variant}`,
|
|
87
|
+
`byline-input-${inputSize}`,
|
|
88
|
+
`byline-input-${intent}`,
|
|
89
89
|
styles.input,
|
|
90
90
|
styles[variant],
|
|
91
91
|
styles[inputSize],
|
|
@@ -99,11 +99,7 @@ export const Input = <_C extends React.ElementType = 'input'>({
|
|
|
99
99
|
/>
|
|
100
100
|
{endAdornment != null && (
|
|
101
101
|
<div
|
|
102
|
-
className={cx(
|
|
103
|
-
'infonomic-input-end-adornment',
|
|
104
|
-
styles['end-adornment'],
|
|
105
|
-
styles[variant]
|
|
106
|
-
)}
|
|
102
|
+
className={cx('byline-input-end-adornment', styles['end-adornment'], styles[variant])}
|
|
107
103
|
>
|
|
108
104
|
{endAdornment}
|
|
109
105
|
</div>
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.label,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-label) {
|
|
15
15
|
display: block;
|
|
16
16
|
font-weight: 500;
|
|
17
17
|
color: var(--text);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.required,
|
|
21
|
-
:global(.
|
|
21
|
+
:global(.byline-label-required) {
|
|
22
22
|
color: var(--text-danger);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -12,28 +12,28 @@
|
|
|
12
12
|
/* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
|
|
13
13
|
@layer byline-components {
|
|
14
14
|
.column,
|
|
15
|
-
:global(.
|
|
15
|
+
:global(.byline-radio-group-column) {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: var(--gap-2);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.row,
|
|
22
|
-
:global(.
|
|
22
|
+
:global(.byline-radio-group-row) {
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: row;
|
|
25
25
|
gap: var(--gap-2);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.item-container,
|
|
29
|
-
:global(.
|
|
29
|
+
:global(.byline-radio-group-item-container) {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
gap: var(--gap-2);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.item,
|
|
36
|
-
:global(.
|
|
36
|
+
:global(.byline-radio-group-item) {
|
|
37
37
|
all: unset;
|
|
38
38
|
width: 18px;
|
|
39
39
|
height: 18px;
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.item[data-disabled],
|
|
46
|
-
:global(.
|
|
46
|
+
:global(.byline-radio-group-item[data-disabled]) {
|
|
47
47
|
pointer-events: none;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Style for the "checked" state */
|
|
51
51
|
.indicator[data-checked],
|
|
52
|
-
:global(.
|
|
52
|
+
:global(.byline-radio-group-indicator[data-checked]) {
|
|
53
53
|
animation: radioIn 0.3s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
|
|
54
54
|
opacity: 1;
|
|
55
55
|
transform: scale(1);
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
|
|
58
58
|
/* Style for the "unchecked" state */
|
|
59
59
|
.indicator[data-unchecked],
|
|
60
|
-
:global(.
|
|
60
|
+
:global(.byline-radio-group-indicator[data-unchecked]) {
|
|
61
61
|
animation: radioOut 0.2s ease-in;
|
|
62
62
|
opacity: 0;
|
|
63
63
|
transform: scale(0.8);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.indicator,
|
|
67
|
-
:global(.
|
|
67
|
+
:global(.byline-radio-group-indicator) {
|
|
68
68
|
display: flex;
|
|
69
69
|
align-items: center;
|
|
70
70
|
justify-content: center;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.label,
|
|
86
|
-
:global(.
|
|
86
|
+
:global(.byline-radio-group-label) {
|
|
87
87
|
color: var(--foreground);
|
|
88
88
|
font-size: 15px;
|
|
89
89
|
line-height: 1;
|
|
@@ -91,50 +91,50 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.row .label,
|
|
94
|
-
:global(.
|
|
94
|
+
:global(.byline-radio-group-row) :global(.byline-radio-group-label) {
|
|
95
95
|
padding-left: 0;
|
|
96
96
|
padding-right: var(--spacing-16);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/* Intents */
|
|
100
100
|
.primary,
|
|
101
|
-
:global(.
|
|
101
|
+
:global(.byline-radio-group-primary) {
|
|
102
102
|
--radio-border: var(--fill-primary-strong);
|
|
103
103
|
--radio-indicator-color: var(--fill-primary-strong);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.secondary,
|
|
107
|
-
:global(.
|
|
107
|
+
:global(.byline-radio-group-secondary) {
|
|
108
108
|
--radio-border: var(--fill-secondary-strong);
|
|
109
109
|
--radio-indicator-color: var(--fill-secondary-strong);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.noeffect,
|
|
113
|
-
:global(.
|
|
113
|
+
:global(.byline-radio-group-noeffect) {
|
|
114
114
|
--radio-border: var(--fill-noeffect-strong);
|
|
115
115
|
--radio-indicator-color: var(--fill-noeffect-strong);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.success,
|
|
119
|
-
:global(.
|
|
119
|
+
:global(.byline-radio-group-success) {
|
|
120
120
|
--radio-border: var(--fill-success-strong);
|
|
121
121
|
--radio-indicator-color: var(--fill-success-strong);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.info,
|
|
125
|
-
:global(.
|
|
125
|
+
:global(.byline-radio-group-info) {
|
|
126
126
|
--radio-border: var(--fill-info-strong);
|
|
127
127
|
--radio-indicator-color: var(--fill-info-strong);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.warning,
|
|
131
|
-
:global(.
|
|
131
|
+
:global(.byline-radio-group-warning) {
|
|
132
132
|
--radio-border: var(--fill-warning-strong);
|
|
133
133
|
--radio-indicator-color: var(--fill-warning-strong);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.danger,
|
|
137
|
-
:global(.
|
|
137
|
+
:global(.byline-radio-group-danger) {
|
|
138
138
|
--radio-border: var(--fill-danger-strong);
|
|
139
139
|
--radio-indicator-color: var(--fill-danger-strong);
|
|
140
140
|
}
|
|
@@ -64,7 +64,7 @@ export const RadioGroup = ({
|
|
|
64
64
|
}) => (
|
|
65
65
|
<RadioGroupPrimitive
|
|
66
66
|
ref={forwardedRef}
|
|
67
|
-
className={cx('
|
|
67
|
+
className={cx('byline-radio-group', styles[direction], className)}
|
|
68
68
|
{...props}
|
|
69
69
|
>
|
|
70
70
|
{children}
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.positioner,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-select-positioner) {
|
|
15
15
|
z-index: 50;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.popup,
|
|
19
|
-
:global(.
|
|
19
|
+
:global(.byline-select-popup) {
|
|
20
20
|
z-index: 50;
|
|
21
21
|
margin-top: 2px;
|
|
22
22
|
border: 1px solid var(--surface-panel-border);
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.list,
|
|
50
|
-
:global(.
|
|
50
|
+
:global(.byline-select-list) {
|
|
51
51
|
z-index: 50;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.scroll-arrow,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-select-scroll-arrow) {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: center;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.select-item,
|
|
68
|
-
:global(.
|
|
68
|
+
:global(.byline-select-item) {
|
|
69
69
|
position: relative;
|
|
70
70
|
user-select: none;
|
|
71
71
|
color: var(--surface-item-text);
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.select-item[data-disabled],
|
|
84
|
-
:global(.
|
|
84
|
+
:global(.byline-select-item[data-disabled]) {
|
|
85
85
|
color: var(--surface-item-text-disabled);
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.select-item[data-highlighted],
|
|
90
|
-
:global(.
|
|
90
|
+
:global(.byline-select-item[data-highlighted]) {
|
|
91
91
|
outline: none;
|
|
92
92
|
background-color: var(--surface-item-hover);
|
|
93
93
|
color: var(--surface-item-text-hover);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.select-item-indicator,
|
|
97
|
-
:global(.
|
|
97
|
+
:global(.byline-select-item-indicator) {
|
|
98
98
|
position: absolute;
|
|
99
99
|
left: 0;
|
|
100
100
|
width: 24px;
|
|
@@ -56,7 +56,7 @@ export function Select<Value extends string | number = string>({
|
|
|
56
56
|
...rest
|
|
57
57
|
}: SelectProps<Value>): React.JSX.Element {
|
|
58
58
|
return (
|
|
59
|
-
<div className={cx('
|
|
59
|
+
<div className={cx('byline-select-container', containerClassName)}>
|
|
60
60
|
<SelectPrimitive.Root<Value> items={items} {...rest}>
|
|
61
61
|
<SelectPrimitive.Trigger
|
|
62
62
|
aria-label={ariaLabel ?? 'Select'}
|
|
@@ -117,12 +117,12 @@ export const SelectItem = ({
|
|
|
117
117
|
}) => {
|
|
118
118
|
return (
|
|
119
119
|
<SelectPrimitive.Item
|
|
120
|
-
className={cx('
|
|
120
|
+
className={cx('byline-select-item', styles['select-item'], className)}
|
|
121
121
|
{...props}
|
|
122
122
|
ref={forwardedRef}
|
|
123
123
|
>
|
|
124
124
|
<SelectPrimitive.ItemIndicator
|
|
125
|
-
className={cx('
|
|
125
|
+
className={cx('byline-select-item-indicator', styles['select-item-indicator'])}
|
|
126
126
|
>
|
|
127
127
|
<CheckIcon />
|
|
128
128
|
</SelectPrimitive.ItemIndicator>
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.text-area,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-text-area) {
|
|
15
15
|
font-size: 1rem;
|
|
16
16
|
width: 100%;
|
|
17
17
|
padding: 0.5rem;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.underlined,
|
|
21
|
-
:global(.
|
|
21
|
+
:global(.byline-text-area--underlined) {
|
|
22
22
|
padding-left: 0;
|
|
23
23
|
padding-right: 0;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.underlined:focus,
|
|
27
27
|
.underlined:active,
|
|
28
|
-
:global(.
|
|
29
|
-
:global(.
|
|
28
|
+
:global(.byline-text-area--underlined):focus,
|
|
29
|
+
:global(.byline-text-area--underlined):active {
|
|
30
30
|
outline: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -60,9 +60,9 @@ export const TextArea = function TextArea({
|
|
|
60
60
|
aria-errormessage={errorText}
|
|
61
61
|
aria-describedby={error ? `error-for-${id}` : undefined}
|
|
62
62
|
className={cx(
|
|
63
|
-
'
|
|
64
|
-
`
|
|
65
|
-
`
|
|
63
|
+
'byline-text-area',
|
|
64
|
+
`byline-text-area-${variant}`,
|
|
65
|
+
`byline-text-area-${intent}`,
|
|
66
66
|
inputStyles.input,
|
|
67
67
|
inputStyles[variant],
|
|
68
68
|
inputStyles[intent],
|