@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,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.button,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-button) {
|
|
15
15
|
border: none;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
font-weight: normal;
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
|
|
33
33
|
.button:disabled,
|
|
34
34
|
.button[disabled],
|
|
35
|
-
:global(.
|
|
36
|
-
:global(.
|
|
35
|
+
:global(.byline-button):disabled,
|
|
36
|
+
:global(.byline-button)[disabled] {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.button:focus,
|
|
41
41
|
.button:active,
|
|
42
|
-
:global(.
|
|
43
|
-
:global(.
|
|
42
|
+
:global(.byline-button):focus,
|
|
43
|
+
:global(.byline-button):active {
|
|
44
44
|
outline-color: var(--ring-color);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.button.square,
|
|
48
|
-
:global(.
|
|
48
|
+
:global(.byline-button-square) {
|
|
49
49
|
aspect-ratio: 1 / 1;
|
|
50
50
|
padding: 0;
|
|
51
51
|
border-radius: var(--border-radius-sm);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.button.round,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-button-round) {
|
|
56
56
|
aspect-ratio: 1 / 1;
|
|
57
57
|
padding: 0;
|
|
58
58
|
border-radius: var(--border-radius-full);
|
|
@@ -60,35 +60,35 @@
|
|
|
60
60
|
|
|
61
61
|
/* Sizes */
|
|
62
62
|
.xs,
|
|
63
|
-
:global(.
|
|
63
|
+
:global(.byline-button-xs) {
|
|
64
64
|
min-height: 26px;
|
|
65
65
|
font-size: 0.7rem;
|
|
66
66
|
padding: 0.2rem 0.4rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.sm,
|
|
70
|
-
:global(.
|
|
70
|
+
:global(.byline-button-sm) {
|
|
71
71
|
min-height: 32px;
|
|
72
72
|
font-size: 0.775rem;
|
|
73
73
|
padding: 0.25rem 0.5rem;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.md,
|
|
77
|
-
:global(.
|
|
77
|
+
:global(.byline-button-md) {
|
|
78
78
|
min-height: 38px;
|
|
79
79
|
font-size: 0.95rem;
|
|
80
80
|
padding: 0.625rem 1.25rem;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.lg,
|
|
84
|
-
:global(.
|
|
84
|
+
:global(.byline-button-lg) {
|
|
85
85
|
min-height: 46px;
|
|
86
86
|
font-size: 1.1rem;
|
|
87
87
|
padding: 0.75rem 1.5rem;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.xl,
|
|
91
|
-
:global(.
|
|
91
|
+
:global(.byline-button-xl) {
|
|
92
92
|
min-height: 54px;
|
|
93
93
|
font-size: 1.2rem;
|
|
94
94
|
padding: 0.75rem 1.5rem;
|
|
@@ -96,34 +96,37 @@
|
|
|
96
96
|
|
|
97
97
|
/* Variants - Consuming Variables */
|
|
98
98
|
.filled,
|
|
99
|
-
:global(.
|
|
99
|
+
:global(.byline-button-filled) {
|
|
100
100
|
color: var(--button-variant-filled-foreground);
|
|
101
101
|
background-color: var(--button-variant-filled);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.filled:hover,
|
|
105
|
-
:global(.
|
|
105
|
+
:global(.byline-button-filled):hover {
|
|
106
106
|
background-color: var(--button-variant-filled-hover);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.filled:focus,
|
|
110
110
|
.filled:active,
|
|
111
|
-
:global(.
|
|
112
|
-
:global(.
|
|
111
|
+
:global(.byline-button-filled):focus,
|
|
112
|
+
:global(.byline-button-filled):active {
|
|
113
113
|
--ring-color: var(--button-ring-color);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.filled:disabled,
|
|
117
117
|
.filled[disabled],
|
|
118
|
-
:global(.
|
|
119
|
-
:global(.
|
|
118
|
+
:global(.byline-button-filled):disabled,
|
|
119
|
+
:global(.byline-button-filled)[disabled] {
|
|
120
120
|
background-color: var(
|
|
121
121
|
--button-variant-filled-disabled,
|
|
122
122
|
oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * 0.85) h)
|
|
123
123
|
);
|
|
124
124
|
color: var(
|
|
125
125
|
--button-variant-filled-foreground-disabled,
|
|
126
|
-
oklch(
|
|
126
|
+
oklch(
|
|
127
|
+
from var(--button-variant-filled-foreground) calc(l * 0.9)
|
|
128
|
+
calc(c * 0.85) h
|
|
129
|
+
)
|
|
127
130
|
);
|
|
128
131
|
}
|
|
129
132
|
|
|
@@ -131,39 +134,44 @@
|
|
|
131
134
|
/* Weak variant for close button on selected button */
|
|
132
135
|
|
|
133
136
|
.filled-weak,
|
|
134
|
-
:global(.
|
|
137
|
+
:global(.byline-button-filled-weak) {
|
|
135
138
|
color: var(--button-variant-filled-weak-foreground);
|
|
136
139
|
background-color: var(--button-variant-filled-weak);
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
.filled-weak:hover,
|
|
140
|
-
:global(.
|
|
143
|
+
:global(.byline-button-filled-weak):hover {
|
|
141
144
|
background-color: var(--button-variant-filled-weak-hover);
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
.filled-weak:focus,
|
|
145
148
|
.filled-weak:active,
|
|
146
|
-
:global(.
|
|
147
|
-
:global(.
|
|
149
|
+
:global(.byline-button-filled-weak):focus,
|
|
150
|
+
:global(.byline-button-filled-weak):active {
|
|
148
151
|
--ring-color: var(--button-ring-color);
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
.filled-weak:disabled,
|
|
152
155
|
.filled-weak[disabled],
|
|
153
|
-
:global(.
|
|
154
|
-
:global(.
|
|
156
|
+
:global(.byline-button-filled-weak):disabled,
|
|
157
|
+
:global(.byline-button-filled-weak)[disabled] {
|
|
155
158
|
background-color: var(
|
|
156
159
|
--button-variant-filled-weak-disabled,
|
|
157
|
-
oklch(
|
|
160
|
+
oklch(
|
|
161
|
+
from var(--button-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h
|
|
162
|
+
)
|
|
158
163
|
);
|
|
159
164
|
color: var(
|
|
160
165
|
--button-variant-filled-weak-foreground-disabled,
|
|
161
|
-
oklch(
|
|
166
|
+
oklch(
|
|
167
|
+
from var(--button-variant-filled-weak-foreground) calc(l * 0.9)
|
|
168
|
+
calc(c * 0.85) h
|
|
169
|
+
)
|
|
162
170
|
);
|
|
163
171
|
}
|
|
164
172
|
|
|
165
173
|
.outlined,
|
|
166
|
-
:global(.
|
|
174
|
+
:global(.byline-button-outlined) {
|
|
167
175
|
border: 1px solid var(--button-variant-outlined-border);
|
|
168
176
|
color: var(--button-variant-outlined-foreground);
|
|
169
177
|
background-color: var(--button-variant-outlined);
|
|
@@ -171,32 +179,37 @@
|
|
|
171
179
|
|
|
172
180
|
.outlined:disabled,
|
|
173
181
|
.outlined[disabled],
|
|
174
|
-
:global(.
|
|
175
|
-
:global(.
|
|
182
|
+
:global(.byline-button-outlined):disabled,
|
|
183
|
+
:global(.byline-button-outlined)[disabled] {
|
|
176
184
|
border-color: var(
|
|
177
185
|
--button-variant-outlined-border-disabled,
|
|
178
|
-
oklch(
|
|
186
|
+
oklch(
|
|
187
|
+
from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h
|
|
188
|
+
)
|
|
179
189
|
);
|
|
180
190
|
color: var(
|
|
181
191
|
--button-variant-outlined-foreground-disabled,
|
|
182
|
-
oklch(
|
|
192
|
+
oklch(
|
|
193
|
+
from var(--button-variant-outlined-foreground) calc(l * 1.1)
|
|
194
|
+
calc(c * 0.7) h
|
|
195
|
+
)
|
|
183
196
|
);
|
|
184
197
|
}
|
|
185
198
|
|
|
186
199
|
.outlined:hover,
|
|
187
|
-
:global(.
|
|
200
|
+
:global(.byline-button-outlined):hover {
|
|
188
201
|
background-color: var(--button-variant-outlined-hover);
|
|
189
202
|
}
|
|
190
203
|
|
|
191
204
|
.outlined:focus,
|
|
192
205
|
.outlined:active,
|
|
193
|
-
:global(.
|
|
194
|
-
:global(.
|
|
206
|
+
:global(.byline-button-outlined):focus,
|
|
207
|
+
:global(.byline-button-outlined):active {
|
|
195
208
|
--ring-color: var(--button-ring-color);
|
|
196
209
|
}
|
|
197
210
|
|
|
198
211
|
.gradient,
|
|
199
|
-
:global(.
|
|
212
|
+
:global(.byline-button-gradient) {
|
|
200
213
|
color: var(--button-variant-gradient-foreground);
|
|
201
214
|
background: linear-gradient(
|
|
202
215
|
45deg,
|
|
@@ -207,21 +220,26 @@
|
|
|
207
220
|
|
|
208
221
|
.gradient:disabled,
|
|
209
222
|
.gradient[disabled],
|
|
210
|
-
:global(.
|
|
211
|
-
:global(.
|
|
223
|
+
:global(.byline-button-gradient):disabled,
|
|
224
|
+
:global(.byline-button-gradient)[disabled] {
|
|
212
225
|
background: unset;
|
|
213
226
|
background-color: var(
|
|
214
227
|
--button-variant-gradient-disabled,
|
|
215
|
-
oklch(
|
|
228
|
+
oklch(
|
|
229
|
+
from var(--button-variant-gradient-end) calc(l * 1.2) calc(c * 0.85) h
|
|
230
|
+
)
|
|
216
231
|
);
|
|
217
232
|
color: var(
|
|
218
233
|
--button-variant-gradient-foreground-disabled,
|
|
219
|
-
oklch(
|
|
234
|
+
oklch(
|
|
235
|
+
from var(--button-variant-gradient-foreground) calc(l * 0.9)
|
|
236
|
+
calc(c * 0.85) h
|
|
237
|
+
)
|
|
220
238
|
);
|
|
221
239
|
}
|
|
222
240
|
|
|
223
241
|
.gradient:hover,
|
|
224
|
-
:global(.
|
|
242
|
+
:global(.byline-button-gradient):hover {
|
|
225
243
|
color: var(--button-variant-gradient-foreground);
|
|
226
244
|
background: linear-gradient(
|
|
227
245
|
45deg,
|
|
@@ -232,39 +250,41 @@
|
|
|
232
250
|
|
|
233
251
|
.gradient:focus,
|
|
234
252
|
.gradient:active,
|
|
235
|
-
:global(.
|
|
236
|
-
:global(.
|
|
253
|
+
:global(.byline-button-gradient):focus,
|
|
254
|
+
:global(.byline-button-gradient):active {
|
|
237
255
|
--ring-color: var(--button-ring-color);
|
|
238
256
|
}
|
|
239
257
|
|
|
240
258
|
.text,
|
|
241
|
-
:global(.
|
|
259
|
+
:global(.byline-button-text) {
|
|
242
260
|
background-color: var(--button-variant-text);
|
|
243
261
|
color: var(--button-variant-text-foreground);
|
|
244
262
|
}
|
|
245
263
|
|
|
246
264
|
.text:disabled,
|
|
247
265
|
.text[disabled],
|
|
248
|
-
:global(.
|
|
249
|
-
:global(.
|
|
250
|
-
color: oklch(
|
|
266
|
+
:global(.byline-button-text):disabled,
|
|
267
|
+
:global(.byline-button-text)[disabled] {
|
|
268
|
+
color: oklch(
|
|
269
|
+
from var(--button-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h
|
|
270
|
+
);
|
|
251
271
|
}
|
|
252
272
|
|
|
253
273
|
.text:hover,
|
|
254
|
-
:global(.
|
|
274
|
+
:global(.byline-button-text):hover {
|
|
255
275
|
background-color: var(--button-variant-text-hover);
|
|
256
276
|
}
|
|
257
277
|
|
|
258
278
|
.text:focus,
|
|
259
279
|
.text:active,
|
|
260
|
-
:global(.
|
|
261
|
-
:global(.
|
|
280
|
+
:global(.byline-button-text):focus,
|
|
281
|
+
:global(.byline-button-text):active {
|
|
262
282
|
--ring-color: var(--button-ring-color);
|
|
263
283
|
}
|
|
264
284
|
|
|
265
285
|
/* Intents - Defining Variables */
|
|
266
286
|
.primary,
|
|
267
|
-
:global(.
|
|
287
|
+
:global(.byline-button-primary) {
|
|
268
288
|
--button-ring-color: var(--ring-primary);
|
|
269
289
|
|
|
270
290
|
/* Filled */
|
|
@@ -272,14 +292,18 @@
|
|
|
272
292
|
--button-variant-filled-hover: var(--fill-primary-strong-hover);
|
|
273
293
|
--button-variant-filled-disabled: var(--fill-primary-strong-disabled);
|
|
274
294
|
--button-variant-filled-foreground: var(--text-on-primary-strong);
|
|
275
|
-
--button-variant-filled-foreground-disabled: var(
|
|
295
|
+
--button-variant-filled-foreground-disabled: var(
|
|
296
|
+
--text-on-primary-strong-disabled
|
|
297
|
+
);
|
|
276
298
|
|
|
277
299
|
/* Filled Weak */
|
|
278
300
|
--button-variant-filled-weak: var(--fill-primary-weak);
|
|
279
301
|
--button-variant-filled-weak-hover: var(--fill-primary-weak-hover);
|
|
280
302
|
--button-variant-filled-weak-disabled: var(--fill-primary-weak-disabled);
|
|
281
303
|
--button-variant-filled-weak-foreground: var(--text-on-primary-weak);
|
|
282
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
304
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
305
|
+
--text-on-primary-weak-disabled
|
|
306
|
+
);
|
|
283
307
|
|
|
284
308
|
/* Outlined */
|
|
285
309
|
--button-variant-outlined: var(--fill-primary-outlined);
|
|
@@ -287,7 +311,9 @@
|
|
|
287
311
|
--button-variant-outlined-border: var(--stroke-primary);
|
|
288
312
|
--button-variant-outlined-border-disabled: var(--stroke-primary-disabled);
|
|
289
313
|
--button-variant-outlined-foreground: var(--text-on-primary-outlined);
|
|
290
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
314
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
315
|
+
--text-on-primary-outlined-disabled
|
|
316
|
+
);
|
|
291
317
|
|
|
292
318
|
/* Text */
|
|
293
319
|
--button-variant-text: var(--fill-primary-text);
|
|
@@ -299,11 +325,13 @@
|
|
|
299
325
|
--button-variant-gradient-end: var(--gradient-primary-end);
|
|
300
326
|
--button-variant-gradient-foreground: var(--gradient-primary-foreground);
|
|
301
327
|
--button-variant-gradient-disabled: var(--gradient-primary-disabled);
|
|
302
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
328
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
329
|
+
--text-on-primary-strong-disabled
|
|
330
|
+
);
|
|
303
331
|
}
|
|
304
332
|
|
|
305
333
|
.secondary,
|
|
306
|
-
:global(.
|
|
334
|
+
:global(.byline-button-secondary) {
|
|
307
335
|
--button-ring-color: var(--ring-secondary);
|
|
308
336
|
|
|
309
337
|
/* Filled */
|
|
@@ -311,14 +339,18 @@
|
|
|
311
339
|
--button-variant-filled-hover: var(--fill-secondary-strong-hover);
|
|
312
340
|
--button-variant-filled-disabled: var(--fill-secondary-strong-disabled);
|
|
313
341
|
--button-variant-filled-foreground: var(--text-on-secondary-strong);
|
|
314
|
-
--button-variant-filled-foreground-disabled: var(
|
|
342
|
+
--button-variant-filled-foreground-disabled: var(
|
|
343
|
+
--text-on-secondary-strong-disabled
|
|
344
|
+
);
|
|
315
345
|
|
|
316
346
|
/* Filled Weak */
|
|
317
347
|
--button-variant-filled-weak: var(--fill-secondary-weak);
|
|
318
348
|
--button-variant-filled-weak-hover: var(--fill-secondary-weak-hover);
|
|
319
349
|
--button-variant-filled-weak-disabled: var(--fill-secondary-weak-disabled);
|
|
320
350
|
--button-variant-filled-weak-foreground: var(--text-on-secondary-weak);
|
|
321
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
351
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
352
|
+
--text-on-secondary-weak-disabled
|
|
353
|
+
);
|
|
322
354
|
|
|
323
355
|
/* Outlined */
|
|
324
356
|
--button-variant-outlined: var(--fill-secondary-outlined);
|
|
@@ -326,7 +358,9 @@
|
|
|
326
358
|
--button-variant-outlined-border-disabled: var(--stroke-secondary-disabled);
|
|
327
359
|
--button-variant-outlined-hover: var(--fill-secondary-outlined-hover);
|
|
328
360
|
--button-variant-outlined-foreground: var(--text-on-secondary-outlined);
|
|
329
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
361
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
362
|
+
--text-on-secondary-outlined-disabled
|
|
363
|
+
);
|
|
330
364
|
|
|
331
365
|
/* Text */
|
|
332
366
|
--button-variant-text: var(--fill-secondary-text);
|
|
@@ -338,11 +372,13 @@
|
|
|
338
372
|
--button-variant-gradient-end: var(--gradient-secondary-end);
|
|
339
373
|
--button-variant-gradient-foreground: var(--gradient-secondary-foreground);
|
|
340
374
|
--button-variant-gradient-disabled: var(--gradient-secondary-disabled);
|
|
341
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
375
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
376
|
+
--text-on-secondary-strong-disabled
|
|
377
|
+
);
|
|
342
378
|
}
|
|
343
379
|
|
|
344
380
|
.noeffect,
|
|
345
|
-
:global(.
|
|
381
|
+
:global(.byline-button-noeffect) {
|
|
346
382
|
--button-ring-color: var(--ring-noeffect);
|
|
347
383
|
|
|
348
384
|
/* Filled */
|
|
@@ -350,14 +386,18 @@
|
|
|
350
386
|
--button-variant-filled-hover: var(--fill-noeffect-strong-hover);
|
|
351
387
|
--button-variant-filled-disabled: var(--fill-noeffect-strong-disabled);
|
|
352
388
|
--button-variant-filled-foreground: var(--text-on-noeffect-strong);
|
|
353
|
-
--button-variant-filled-foreground-disabled: var(
|
|
389
|
+
--button-variant-filled-foreground-disabled: var(
|
|
390
|
+
--text-on-noeffect-strong-disabled
|
|
391
|
+
);
|
|
354
392
|
|
|
355
393
|
/* Filled Weak */
|
|
356
394
|
--button-variant-filled-weak: var(--fill-noeffect-weak);
|
|
357
395
|
--button-variant-filled-weak-hover: var(--fill-noeffect-weak-hover);
|
|
358
396
|
--button-variant-filled-weak-disabled: var(--fill-noeffect-weak-disabled);
|
|
359
397
|
--button-variant-filled-weak-foreground: var(--text-on-noeffect-weak);
|
|
360
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
398
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
399
|
+
--text-on-noeffect-weak-disabled
|
|
400
|
+
);
|
|
361
401
|
|
|
362
402
|
/* Outlined */
|
|
363
403
|
--button-variant-outlined: var(--fill-noeffect-outlined);
|
|
@@ -366,7 +406,9 @@
|
|
|
366
406
|
--button-variant-outlined-border: var(--stroke-noeffect);
|
|
367
407
|
--button-variant-outlined-border-disabled: var(--stroke-noeffect-disabled);
|
|
368
408
|
--button-variant-outlined-foreground: var(--text-on-noeffect-outlined);
|
|
369
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
409
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
410
|
+
--text-on-noeffect-outlined-disabled
|
|
411
|
+
);
|
|
370
412
|
|
|
371
413
|
/* Text */
|
|
372
414
|
--button-variant-text: var(--fill-noeffect-text);
|
|
@@ -378,11 +420,13 @@
|
|
|
378
420
|
--button-variant-gradient-end: var(--gradient-noeffect-end);
|
|
379
421
|
--button-variant-gradient-foreground: var(--gradient-noeffect-foreground);
|
|
380
422
|
--button-variant-gradient-disabled: var(--gradient-noeffect-disabled);
|
|
381
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
423
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
424
|
+
--text-on-noeffect-strong-disabled
|
|
425
|
+
);
|
|
382
426
|
}
|
|
383
427
|
|
|
384
428
|
.success,
|
|
385
|
-
:global(.
|
|
429
|
+
:global(.byline-button-success) {
|
|
386
430
|
--button-ring-color: var(--ring-success);
|
|
387
431
|
|
|
388
432
|
/* Filled */
|
|
@@ -390,14 +434,18 @@
|
|
|
390
434
|
--button-variant-filled-hover: var(--fill-success-strong-hover);
|
|
391
435
|
--button-variant-filled-disabled: var(--fill-success-strong-disabled);
|
|
392
436
|
--button-variant-filled-foreground: var(--text-on-success-strong);
|
|
393
|
-
--button-variant-filled-foreground-disabled: var(
|
|
437
|
+
--button-variant-filled-foreground-disabled: var(
|
|
438
|
+
--text-on-success-strong-disabled
|
|
439
|
+
);
|
|
394
440
|
|
|
395
441
|
/* Filled Weak */
|
|
396
442
|
--button-variant-filled-weak: var(--fill-success-weak);
|
|
397
443
|
--button-variant-filled-weak-hover: var(--fill-success-weak-hover);
|
|
398
444
|
--button-variant-filled-weak-disabled: var(--fill-success-weak-disabled);
|
|
399
445
|
--button-variant-filled-weak-foreground: var(--text-on-success-weak);
|
|
400
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
446
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
447
|
+
--text-on-success-weak-disabled
|
|
448
|
+
);
|
|
401
449
|
|
|
402
450
|
/* Outlined */
|
|
403
451
|
--button-variant-outlined: var(--fill-success-outlined);
|
|
@@ -405,7 +453,9 @@
|
|
|
405
453
|
--button-variant-outlined-border: var(--stroke-success);
|
|
406
454
|
--button-variant-outlined-border-disabled: var(--stroke-success-disabled);
|
|
407
455
|
--button-variant-outlined-foreground: var(--text-on-success-outlined);
|
|
408
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
456
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
457
|
+
--text-on-success-outlined-disabled
|
|
458
|
+
);
|
|
409
459
|
|
|
410
460
|
/* Text */
|
|
411
461
|
--button-variant-text: transparent;
|
|
@@ -417,11 +467,13 @@
|
|
|
417
467
|
--button-variant-gradient-end: var(--gradient-success-end);
|
|
418
468
|
--button-variant-gradient-foreground: var(--gradient-success-foreground);
|
|
419
469
|
--button-variant-gradient-disabled: var(--gradient-success-disabled);
|
|
420
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
470
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
471
|
+
--text-on-success-strong-disabled
|
|
472
|
+
);
|
|
421
473
|
}
|
|
422
474
|
|
|
423
475
|
.info,
|
|
424
|
-
:global(.
|
|
476
|
+
:global(.byline-button-info) {
|
|
425
477
|
--button-ring-color: var(--ring-info);
|
|
426
478
|
|
|
427
479
|
/* Filled */
|
|
@@ -429,14 +481,18 @@
|
|
|
429
481
|
--button-variant-filled-hover: var(--fill-info-strong-hover);
|
|
430
482
|
--button-variant-filled-disabled: var(--fill-info-strong-disabled);
|
|
431
483
|
--button-variant-filled-foreground: var(--text-on-info-strong);
|
|
432
|
-
--button-variant-filled-foreground-disabled: var(
|
|
484
|
+
--button-variant-filled-foreground-disabled: var(
|
|
485
|
+
--text-on-info-strong-disabled
|
|
486
|
+
);
|
|
433
487
|
|
|
434
488
|
/* Filled Weak */
|
|
435
489
|
--button-variant-filled-weak: var(--fill-info-weak);
|
|
436
490
|
--button-variant-filled-weak-hover: var(--fill-info-weak-hover);
|
|
437
491
|
--button-variant-filled-weak-disabled: var(--fill-info-weak-disabled);
|
|
438
492
|
--button-variant-filled-weak-foreground: var(--text-on-info-weak);
|
|
439
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
493
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
494
|
+
--text-on-info-weak-disabled
|
|
495
|
+
);
|
|
440
496
|
|
|
441
497
|
/* Outlined */
|
|
442
498
|
--button-variant-outlined: transparent;
|
|
@@ -444,7 +500,9 @@
|
|
|
444
500
|
--button-variant-outlined-border: var(--stroke-info);
|
|
445
501
|
--button-variant-outlined-border-disabled: var(--stroke-info-disabled);
|
|
446
502
|
--button-variant-outlined-foreground: var(--text-on-info-outlined);
|
|
447
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
503
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
504
|
+
--text-on-info-outlined-disabled
|
|
505
|
+
);
|
|
448
506
|
|
|
449
507
|
/* Text */
|
|
450
508
|
--button-variant-text: transparent;
|
|
@@ -456,11 +514,13 @@
|
|
|
456
514
|
--button-variant-gradient-end: var(--gradient-info-end);
|
|
457
515
|
--button-variant-gradient-foreground: var(--gradient-info-foreground);
|
|
458
516
|
--button-variant-gradient-disabled: var(--gradient-info-disabled);
|
|
459
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
517
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
518
|
+
--text-on-info-strong-disabled
|
|
519
|
+
);
|
|
460
520
|
}
|
|
461
521
|
|
|
462
522
|
.warning,
|
|
463
|
-
:global(.
|
|
523
|
+
:global(.byline-button-warning) {
|
|
464
524
|
--button-ring-color: var(--ring-warning);
|
|
465
525
|
|
|
466
526
|
/* Filled */
|
|
@@ -468,14 +528,18 @@
|
|
|
468
528
|
--button-variant-filled-hover: var(--fill-warning-strong-hover);
|
|
469
529
|
--button-variant-filled-disabled: var(--fill-warning-strong-disabled);
|
|
470
530
|
--button-variant-filled-foreground: var(--text-on-warning-strong);
|
|
471
|
-
--button-variant-filled-foreground-disabled: var(
|
|
531
|
+
--button-variant-filled-foreground-disabled: var(
|
|
532
|
+
--text-on-warning-strong-disabled
|
|
533
|
+
);
|
|
472
534
|
|
|
473
535
|
/* Filled Weak */
|
|
474
536
|
--button-variant-filled-weak: var(--fill-warning-weak);
|
|
475
537
|
--button-variant-filled-weak-hover: var(--fill-warning-weak-hover);
|
|
476
538
|
--button-variant-filled-weak-disabled: var(--fill-warning-weak-disabled);
|
|
477
539
|
--button-variant-filled-weak-foreground: var(--text-on-warning-weak);
|
|
478
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
540
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
541
|
+
--text-on-warning-weak-disabled
|
|
542
|
+
);
|
|
479
543
|
|
|
480
544
|
/* Outlined */
|
|
481
545
|
--button-variant-outlined: var(--fill-warning-outlined);
|
|
@@ -483,7 +547,9 @@
|
|
|
483
547
|
--button-variant-outlined-border: var(--stroke-warning);
|
|
484
548
|
--button-variant-outlined-border-disabled: var(--stroke-warning-disabled);
|
|
485
549
|
--button-variant-outlined-foreground: var(--text-on-warning-outlined);
|
|
486
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
550
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
551
|
+
--text-on-warning-outlined-disabled
|
|
552
|
+
);
|
|
487
553
|
|
|
488
554
|
/* Text */
|
|
489
555
|
--button-variant-text: transparent;
|
|
@@ -495,11 +561,13 @@
|
|
|
495
561
|
--button-variant-gradient-end: var(--gradient-warning-end);
|
|
496
562
|
--button-variant-gradient-foreground: var(--gradient-warning-foreground);
|
|
497
563
|
--button-variant-gradient-disabled: var(--gradient-warning-disabled);
|
|
498
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
564
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
565
|
+
--text-on-warning-strong-disabled
|
|
566
|
+
);
|
|
499
567
|
}
|
|
500
568
|
|
|
501
569
|
.danger,
|
|
502
|
-
:global(.
|
|
570
|
+
:global(.byline-button-danger) {
|
|
503
571
|
--button-ring-color: var(--ring-danger);
|
|
504
572
|
|
|
505
573
|
/* Filled */
|
|
@@ -507,14 +575,18 @@
|
|
|
507
575
|
--button-variant-filled-hover: var(--fill-danger-strong-hover);
|
|
508
576
|
--button-variant-filled-disabled: var(--fill-danger-strong-disabled);
|
|
509
577
|
--button-variant-filled-foreground: var(--text-on-danger-strong);
|
|
510
|
-
--button-variant-filled-foreground-disabled: var(
|
|
578
|
+
--button-variant-filled-foreground-disabled: var(
|
|
579
|
+
--text-on-danger-strong-disabled
|
|
580
|
+
);
|
|
511
581
|
|
|
512
582
|
/* Filled Weak */
|
|
513
583
|
--button-variant-filled-weak: var(--fill-danger-weak);
|
|
514
584
|
--button-variant-filled-weak-hover: var(--fill-danger-weak-hover);
|
|
515
585
|
--button-variant-filled-weak-disabled: var(--fill-danger-weak-disabled);
|
|
516
586
|
--button-variant-filled-weak-foreground: var(--text-on-danger-weak);
|
|
517
|
-
--button-variant-filled-weak-foreground-disabled: var(
|
|
587
|
+
--button-variant-filled-weak-foreground-disabled: var(
|
|
588
|
+
--text-on-danger-weak-disabled
|
|
589
|
+
);
|
|
518
590
|
|
|
519
591
|
/* Outlined */
|
|
520
592
|
--button-variant-outlined: transparent;
|
|
@@ -522,7 +594,9 @@
|
|
|
522
594
|
--button-variant-outlined-border: var(--stroke-danger);
|
|
523
595
|
--button-variant-outlined-border-disabled: var(--stroke-danger-disabled);
|
|
524
596
|
--button-variant-outlined-foreground: var(--text-on-danger-outlined);
|
|
525
|
-
--button-variant-outlined-foreground-disabled: var(
|
|
597
|
+
--button-variant-outlined-foreground-disabled: var(
|
|
598
|
+
--text-on-danger-outlined-disabled
|
|
599
|
+
);
|
|
526
600
|
|
|
527
601
|
/* Text */
|
|
528
602
|
--button-variant-text: transparent;
|
|
@@ -534,12 +608,14 @@
|
|
|
534
608
|
--button-variant-gradient-end: var(--gradient-danger-end);
|
|
535
609
|
--button-variant-gradient-foreground: var(--gradient-danger-foreground);
|
|
536
610
|
--button-variant-gradient-disabled: var(--gradient-danger-disabled);
|
|
537
|
-
--button-variant-gradient-foreground-disabled: var(
|
|
611
|
+
--button-variant-gradient-foreground-disabled: var(
|
|
612
|
+
--text-on-danger-strong-disabled
|
|
613
|
+
);
|
|
538
614
|
}
|
|
539
615
|
|
|
540
616
|
/* Full width */
|
|
541
617
|
.fullWidth,
|
|
542
|
-
:global(.
|
|
618
|
+
:global(.byline-button-full-width) {
|
|
543
619
|
width: 100%;
|
|
544
620
|
display: flex;
|
|
545
621
|
}
|
|
@@ -38,10 +38,10 @@ export const Button = ({
|
|
|
38
38
|
const defaultProps: Record<string, unknown> = {
|
|
39
39
|
type,
|
|
40
40
|
className: cx(
|
|
41
|
-
'
|
|
42
|
-
`
|
|
43
|
-
`
|
|
44
|
-
`
|
|
41
|
+
'byline-button',
|
|
42
|
+
`byline-button-${intent}`,
|
|
43
|
+
`byline-button-${variant}`,
|
|
44
|
+
`byline-button-${size}`,
|
|
45
45
|
styles.button,
|
|
46
46
|
styles[variant],
|
|
47
47
|
styles[size],
|