@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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
============================================ */
|
|
17
17
|
|
|
18
18
|
.viewport,
|
|
19
|
-
:global(.
|
|
19
|
+
:global(.byline-toast-viewport) {
|
|
20
20
|
--viewport-padding: 16px;
|
|
21
21
|
position: fixed;
|
|
22
22
|
display: flex;
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
/* Mobile: full-width at all positions */
|
|
30
30
|
|
|
31
31
|
.top-left,
|
|
32
|
-
:global(.
|
|
32
|
+
:global(.byline-toast-top-left) {
|
|
33
33
|
top: 88px;
|
|
34
34
|
right: var(--viewport-padding);
|
|
35
35
|
left: var(--viewport-padding);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.top-right,
|
|
39
|
-
:global(.
|
|
39
|
+
:global(.byline-toast-top-right) {
|
|
40
40
|
top: 88px;
|
|
41
41
|
right: var(--viewport-padding);
|
|
42
42
|
left: var(--viewport-padding);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.bottom-left,
|
|
46
|
-
:global(.
|
|
46
|
+
:global(.byline-toast-bottom-left) {
|
|
47
47
|
bottom: var(--viewport-padding);
|
|
48
48
|
right: var(--viewport-padding);
|
|
49
49
|
left: var(--viewport-padding);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.bottom-right,
|
|
53
|
-
:global(.
|
|
53
|
+
:global(.byline-toast-bottom-right) {
|
|
54
54
|
bottom: var(--viewport-padding);
|
|
55
55
|
right: var(--viewport-padding);
|
|
56
56
|
left: var(--viewport-padding);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
@media (min-width: 48rem) {
|
|
60
60
|
.bottom-right,
|
|
61
|
-
:global(.
|
|
61
|
+
:global(.byline-toast-bottom-right) {
|
|
62
62
|
bottom: var(--viewport-padding);
|
|
63
63
|
right: var(--viewport-padding);
|
|
64
64
|
left: auto;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.bottom-left,
|
|
70
|
-
:global(.
|
|
70
|
+
:global(.byline-toast-bottom-left) {
|
|
71
71
|
bottom: var(--viewport-padding);
|
|
72
72
|
left: var(--viewport-padding);
|
|
73
73
|
right: auto;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.top-left,
|
|
79
|
-
:global(.
|
|
79
|
+
:global(.byline-toast-top-left) {
|
|
80
80
|
top: 88px;
|
|
81
81
|
left: var(--viewport-padding);
|
|
82
82
|
right: auto;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.top-right,
|
|
89
|
-
:global(.
|
|
89
|
+
:global(.byline-toast-top-right) {
|
|
90
90
|
top: 88px;
|
|
91
91
|
right: var(--viewport-padding);
|
|
92
92
|
bottom: auto;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
============================================ */
|
|
102
102
|
|
|
103
103
|
.root,
|
|
104
|
-
:global(.
|
|
104
|
+
:global(.byline-toast-root) {
|
|
105
105
|
display: flex;
|
|
106
106
|
flex-direction: column;
|
|
107
107
|
gap: var(--gap-1);
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
/* Entry animation */
|
|
124
124
|
.root[data-starting-style],
|
|
125
|
-
:global(.
|
|
125
|
+
:global(.byline-toast-root[data-starting-style]) {
|
|
126
126
|
opacity: 0;
|
|
127
127
|
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
128
128
|
}
|
|
@@ -130,16 +130,16 @@
|
|
|
130
130
|
@media (min-width: 48rem) {
|
|
131
131
|
.viewport.top-right .root[data-starting-style],
|
|
132
132
|
.viewport.bottom-right .root[data-starting-style],
|
|
133
|
-
:global(.
|
|
134
|
-
:global(.
|
|
133
|
+
:global(.byline-toast-viewport.top-right .byline-toast-root[data-starting-style]),
|
|
134
|
+
:global(.byline-toast-viewport.bottom-right .byline-toast-root[data-starting-style]) {
|
|
135
135
|
opacity: 0;
|
|
136
136
|
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.viewport.top-left .root[data-starting-style],
|
|
140
140
|
.viewport.bottom-left .root[data-starting-style],
|
|
141
|
-
:global(.
|
|
142
|
-
:global(.
|
|
141
|
+
:global(.byline-toast-viewport.top-left .byline-toast-root[data-starting-style]),
|
|
142
|
+
:global(.byline-toast-viewport.bottom-left .byline-toast-root[data-starting-style]) {
|
|
143
143
|
opacity: 0;
|
|
144
144
|
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
145
145
|
}
|
|
@@ -147,22 +147,22 @@
|
|
|
147
147
|
|
|
148
148
|
/* Exit animation */
|
|
149
149
|
.root[data-ending-style],
|
|
150
|
-
:global(.
|
|
150
|
+
:global(.byline-toast-root[data-ending-style]) {
|
|
151
151
|
opacity: 0;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.root[data-ending-style][data-swipe-direction="right"],
|
|
155
|
-
:global(.
|
|
155
|
+
:global(.byline-toast-root[data-ending-style][data-swipe-direction="right"]) {
|
|
156
156
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) + 100% + var(--viewport-padding)));
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.root[data-ending-style][data-swipe-direction="left"],
|
|
160
|
-
:global(.
|
|
160
|
+
:global(.byline-toast-root[data-ending-style][data-swipe-direction="left"]) {
|
|
161
161
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) - 100% - var(--viewport-padding)));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.root[data-ending-style][data-swipe-direction="down"],
|
|
165
|
-
:global(.
|
|
165
|
+
:global(.byline-toast-root[data-ending-style][data-swipe-direction="down"]) {
|
|
166
166
|
transform: translateY(calc(var(--toast-swipe-movement-y, 0) + 150%));
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
============================================ */
|
|
172
172
|
|
|
173
173
|
.content,
|
|
174
|
-
:global(.
|
|
174
|
+
:global(.byline-toast-content) {
|
|
175
175
|
display: flex;
|
|
176
176
|
flex-direction: column;
|
|
177
177
|
gap: var(--gap-1);
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
============================================ */
|
|
183
183
|
|
|
184
184
|
.header,
|
|
185
|
-
:global(.
|
|
185
|
+
:global(.byline-toast-header) {
|
|
186
186
|
display: flex;
|
|
187
187
|
padding: 0 16px 0 12px;
|
|
188
188
|
align-items: start;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.close,
|
|
194
|
-
:global(.
|
|
194
|
+
:global(.byline-toast-close) {
|
|
195
195
|
display: flex;
|
|
196
196
|
align-items: center;
|
|
197
197
|
justify-content: center;
|
|
@@ -206,12 +206,12 @@
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.close svg,
|
|
209
|
-
:global(.
|
|
209
|
+
:global(.byline-toast-close svg) {
|
|
210
210
|
fill: white;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.title,
|
|
214
|
-
:global(.
|
|
214
|
+
:global(.byline-toast-title) {
|
|
215
215
|
display: flex;
|
|
216
216
|
padding: 0 12px 0 8px;
|
|
217
217
|
align-items: start;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.description,
|
|
225
|
-
:global(.
|
|
225
|
+
:global(.byline-toast-description) {
|
|
226
226
|
margin: 0;
|
|
227
227
|
padding: 0 8px 0 12px;
|
|
228
228
|
font-size: var(--font-size-sm);
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.action,
|
|
233
|
-
:global(.
|
|
233
|
+
:global(.byline-toast-action) {
|
|
234
234
|
display: flex;
|
|
235
235
|
justify-content: end;
|
|
236
236
|
padding: 0 12px 0 12px;
|
|
@@ -55,7 +55,7 @@ export function ToastViewport({ position = 'bottom-right', className }: ToastVie
|
|
|
55
55
|
return (
|
|
56
56
|
<ToastPrimitive.Portal>
|
|
57
57
|
<ToastPrimitive.Viewport
|
|
58
|
-
className={cx('
|
|
58
|
+
className={cx('byline-toast-viewport', styles.viewport, styles[position], className)}
|
|
59
59
|
>
|
|
60
60
|
{toasts.map((toast) => (
|
|
61
61
|
<ToastItem key={toast.id} toast={toast} />
|
|
@@ -78,10 +78,10 @@ function ToastItem({ toast }: { toast: ToastPrimitive.Root.ToastObject<ToastData
|
|
|
78
78
|
<ToastPrimitive.Root
|
|
79
79
|
toast={toast}
|
|
80
80
|
swipeDirection={swipeDirection}
|
|
81
|
-
className={cx('
|
|
81
|
+
className={cx('byline-toast', styles.root)}
|
|
82
82
|
>
|
|
83
|
-
<ToastPrimitive.Content className={cx('
|
|
84
|
-
<div className={cx('
|
|
83
|
+
<ToastPrimitive.Content className={cx('byline-toast-content', styles.content)}>
|
|
84
|
+
<div className={cx('byline-toast-header', styles.header)}>
|
|
85
85
|
<time dateTime={eventDateRef.current.toISOString()} className="text-sm">
|
|
86
86
|
{new Intl.DateTimeFormat('default', {
|
|
87
87
|
hour12: true,
|
|
@@ -97,7 +97,7 @@ function ToastItem({ toast }: { toast: ToastPrimitive.Root.ToastObject<ToastData
|
|
|
97
97
|
tabIndex={0}
|
|
98
98
|
variant="filled"
|
|
99
99
|
aria-label="Close"
|
|
100
|
-
className={cx('
|
|
100
|
+
className={cx('byline-toast-close', styles.close)}
|
|
101
101
|
type="button"
|
|
102
102
|
/>
|
|
103
103
|
}
|
|
@@ -106,13 +106,11 @@ function ToastItem({ toast }: { toast: ToastPrimitive.Root.ToastObject<ToastData
|
|
|
106
106
|
</ToastPrimitive.Close>
|
|
107
107
|
)}
|
|
108
108
|
</div>
|
|
109
|
-
<ToastPrimitive.Title className={cx('
|
|
109
|
+
<ToastPrimitive.Title className={cx('byline-toast-title', styles.title)}>
|
|
110
110
|
{icon && Icon && <Icon />}
|
|
111
111
|
{toast.title}
|
|
112
112
|
</ToastPrimitive.Title>
|
|
113
|
-
<ToastPrimitive.Description
|
|
114
|
-
className={cx('infonomic-toast-description', styles.description)}
|
|
115
|
-
>
|
|
113
|
+
<ToastPrimitive.Description className={cx('byline-toast-description', styles.description)}>
|
|
116
114
|
{toast.description}
|
|
117
115
|
</ToastPrimitive.Description>
|
|
118
116
|
</ToastPrimitive.Content>
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.pagination-root,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-pagination-root) {
|
|
15
15
|
display: flex;
|
|
16
16
|
padding: 0;
|
|
17
17
|
align-items: center;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.pagination-items,
|
|
21
|
-
:global(.
|
|
21
|
+
:global(.byline-pagination-items) {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
list-style: none;
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
|
|
27
27
|
.pagination-items.dashboard li,
|
|
28
28
|
.pagination-items.default li,
|
|
29
|
-
:global(.
|
|
30
|
-
:global(.
|
|
29
|
+
:global(.byline-pagination-items.dashboard) li,
|
|
30
|
+
:global(.byline-pagination-items.default) li {
|
|
31
31
|
margin-right: -1px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.pagination-items.classic li,
|
|
35
|
-
:global(.
|
|
35
|
+
:global(.byline-pagination-items.classic) li {
|
|
36
36
|
margin-right: 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.pagination-items.classic,
|
|
40
|
-
:global(.
|
|
40
|
+
:global(.byline-pagination-items.classic) {
|
|
41
41
|
gap: 6px;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -231,7 +231,7 @@ const Root = ({
|
|
|
231
231
|
data-testid={dataTestId}
|
|
232
232
|
ref={ref}
|
|
233
233
|
className={cx(
|
|
234
|
-
'
|
|
234
|
+
'byline-pagination-root',
|
|
235
235
|
styles['pagination-root'],
|
|
236
236
|
'pagination-root',
|
|
237
237
|
className
|
|
@@ -241,7 +241,7 @@ const Root = ({
|
|
|
241
241
|
>
|
|
242
242
|
<ul
|
|
243
243
|
className={cx(
|
|
244
|
-
'
|
|
244
|
+
'byline-pagination-items',
|
|
245
245
|
styles['pagination-items'],
|
|
246
246
|
styles[variant],
|
|
247
247
|
itemsClassName
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.root,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-scroll-area) {
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
background-color: inherit;
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.viewport,
|
|
22
|
-
:global(.
|
|
22
|
+
:global(.byline-scroll-area-viewport) {
|
|
23
23
|
width: 100%;
|
|
24
24
|
height: 100%;
|
|
25
25
|
border-radius: inherit;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.scrollbar,
|
|
29
|
-
:global(.
|
|
29
|
+
:global(.byline-scroll-area-scrollbar) {
|
|
30
30
|
display: flex;
|
|
31
31
|
/* ensures no selection */
|
|
32
32
|
user-select: none;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.thumb,
|
|
54
|
-
:global(.
|
|
54
|
+
:global(.byline-scroll-area-thumb) {
|
|
55
55
|
flex: 1;
|
|
56
56
|
background: var(--surface-panel-scrollbar-thumb);
|
|
57
57
|
border-radius: var(--border-radius-sm);
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.corner,
|
|
75
|
-
:global(.
|
|
75
|
+
:global(.byline-scroll-area-corner) {
|
|
76
76
|
background: var(--surface-panel-scrollbar);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -10,23 +10,23 @@ interface ScrollAreaProps extends React.ComponentProps<typeof ScrollAreaPrimitiv
|
|
|
10
10
|
export const ScrollArea = ({ children, style, className }: ScrollAreaProps) => (
|
|
11
11
|
<ScrollAreaPrimitive.Root
|
|
12
12
|
style={style}
|
|
13
|
-
className={cx('
|
|
13
|
+
className={cx('byline-scroll-area', styles.root, className)}
|
|
14
14
|
>
|
|
15
|
-
<ScrollAreaPrimitive.Viewport className={cx('
|
|
15
|
+
<ScrollAreaPrimitive.Viewport className={cx('byline-scroll-area-viewport', styles.viewport)}>
|
|
16
16
|
<ScrollAreaPrimitive.Content>{children}</ScrollAreaPrimitive.Content>
|
|
17
17
|
</ScrollAreaPrimitive.Viewport>
|
|
18
18
|
<ScrollAreaPrimitive.Scrollbar
|
|
19
|
-
className={cx('
|
|
19
|
+
className={cx('byline-scroll-area-scrollbar', styles.scrollbar)}
|
|
20
20
|
orientation="vertical"
|
|
21
21
|
>
|
|
22
|
-
<ScrollAreaPrimitive.Thumb className={cx('
|
|
22
|
+
<ScrollAreaPrimitive.Thumb className={cx('byline-scroll-area-thumb', styles.thumb)} />
|
|
23
23
|
</ScrollAreaPrimitive.Scrollbar>
|
|
24
24
|
<ScrollAreaPrimitive.Scrollbar
|
|
25
|
-
className={cx('
|
|
25
|
+
className={cx('byline-scroll-area-scrollbar', styles.scrollbar)}
|
|
26
26
|
orientation="horizontal"
|
|
27
27
|
>
|
|
28
|
-
<ScrollAreaPrimitive.Thumb className={cx('
|
|
28
|
+
<ScrollAreaPrimitive.Thumb className={cx('byline-scroll-area-thumb', styles.thumb)} />
|
|
29
29
|
</ScrollAreaPrimitive.Scrollbar>
|
|
30
|
-
<ScrollAreaPrimitive.Corner className={cx('
|
|
30
|
+
<ScrollAreaPrimitive.Corner className={cx('byline-scroll-area-corner', styles.corner)} />
|
|
31
31
|
</ScrollAreaPrimitive.Root>
|
|
32
32
|
)
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
byline-utilities;
|
|
11
11
|
@layer byline-components {
|
|
12
12
|
.scroll-to-top,
|
|
13
|
-
:global(.
|
|
13
|
+
:global(.byline-scroll-to-top) {
|
|
14
14
|
display: flex;
|
|
15
15
|
position: fixed;
|
|
16
16
|
width: 0;
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.scroll-to-top span,
|
|
40
|
-
:global(.
|
|
40
|
+
:global(.byline-scroll-to-top span) {
|
|
41
41
|
width: 18px;
|
|
42
42
|
padding-bottom: 3px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.scroll-to-top span svg path,
|
|
46
|
-
:global(.
|
|
46
|
+
:global(.byline-scroll-to-top span svg path) {
|
|
47
47
|
stroke: none;
|
|
48
48
|
fill: var(--text-on-primary-strong);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.scroll-to-top:hover,
|
|
52
52
|
.scroll-to-top:focus,
|
|
53
|
-
:global(.
|
|
54
|
-
:global(.
|
|
53
|
+
:global(.byline-scroll-to-top:hover),
|
|
54
|
+
:global(.byline-scroll-to-top:focus) {
|
|
55
55
|
color: var(--text-on-primary-strong);
|
|
56
56
|
background-color: var(--fill-primary-strong-hover);
|
|
57
57
|
transform: translateY(-5px);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.scroll-to-top-shown,
|
|
61
|
-
:global(.
|
|
61
|
+
:global(.byline-scroll-to-top-shown) {
|
|
62
62
|
min-width: 0;
|
|
63
63
|
opacity: 1;
|
|
64
64
|
visibility: visible;
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
|
|
73
73
|
@media screen and (min-width: 587px) {
|
|
74
74
|
.scroll-to-top,
|
|
75
|
-
:global(.
|
|
75
|
+
:global(.byline-scroll-to-top) {
|
|
76
76
|
bottom: 45px;
|
|
77
77
|
right: 45px;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.scroll-to-top span,
|
|
81
|
-
:global(.
|
|
81
|
+
:global(.byline-scroll-to-top span) {
|
|
82
82
|
width: 18px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.scroll-to-top-shown,
|
|
86
|
-
:global(.
|
|
86
|
+
:global(.byline-scroll-to-top-shown) {
|
|
87
87
|
width: 42px;
|
|
88
88
|
height: 42px;
|
|
89
89
|
border-radius: 21px;
|
|
@@ -61,10 +61,10 @@ export function ScrollToTop({
|
|
|
61
61
|
aria-label={ariaLabel}
|
|
62
62
|
onClick={handleOnClick}
|
|
63
63
|
className={cx(
|
|
64
|
-
'
|
|
64
|
+
'byline-scroll-to-top',
|
|
65
65
|
styles['scroll-to-top'],
|
|
66
66
|
{
|
|
67
|
-
'
|
|
67
|
+
'byline-scroll-to-top-shown': show,
|
|
68
68
|
[styles['scroll-to-top-shown']]: show,
|
|
69
69
|
},
|
|
70
70
|
className
|
|
@@ -16,7 +16,7 @@ export const Section = function Section({
|
|
|
16
16
|
ref?: React.RefObject<HTMLElement>
|
|
17
17
|
}): React.JSX.Element {
|
|
18
18
|
return (
|
|
19
|
-
<section className={cx('
|
|
19
|
+
<section className={cx('byline-section', styles.section, className)} ref={ref} {...rest}>
|
|
20
20
|
{children}
|
|
21
21
|
</section>
|
|
22
22
|
)
|
|
@@ -12,7 +12,7 @@
|
|
|
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
|
.shimmer,
|
|
15
|
-
:global(.
|
|
15
|
+
:global(.byline-shimmer) {
|
|
16
16
|
position: relative;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
background-color: #f0f0f0;
|
|
@@ -24,31 +24,31 @@
|
|
|
24
24
|
:global(.dark),
|
|
25
25
|
:global([data-theme="dark"]) {
|
|
26
26
|
.shimmer,
|
|
27
|
-
:global(.
|
|
27
|
+
:global(.byline-shimmer) {
|
|
28
28
|
background-color: #141414;
|
|
29
29
|
background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01), transparent);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.shimmerContainer,
|
|
34
|
-
:global(.
|
|
34
|
+
:global(.byline-shimmer-container) {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.rectangular,
|
|
40
|
-
:global(.
|
|
40
|
+
:global(.byline-shimmer-rectangular) {
|
|
41
41
|
border-radius: 0.25rem;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.text,
|
|
45
|
-
:global(.
|
|
45
|
+
:global(.byline-shimmer-text) {
|
|
46
46
|
border-radius: 0.125rem;
|
|
47
47
|
height: 1rem;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.circular,
|
|
51
|
-
:global(.
|
|
51
|
+
:global(.byline-shimmer-circular) {
|
|
52
52
|
border-radius: 50%;
|
|
53
53
|
aspect-ratio: 1;
|
|
54
54
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@layer byline-components {
|
|
14
14
|
/* 'table--container break-normal overflow-hidden relative shadow-md rounded-md my-[16px] dark:border dark:border-canvas-700', */
|
|
15
15
|
.table-container,
|
|
16
|
-
:global(.
|
|
16
|
+
:global(.byline-table-container) {
|
|
17
17
|
display: block;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
word-break: normal;
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.table-scroller,
|
|
27
|
-
:global(.
|
|
27
|
+
:global(.byline-table-scroller) {
|
|
28
28
|
overflow-x: auto;
|
|
29
29
|
max-width: calc(100vw - 32px);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.table,
|
|
33
|
-
:global(.
|
|
33
|
+
:global(.byline-table) {
|
|
34
34
|
width: 100%;
|
|
35
35
|
border-collapse: collapse;
|
|
36
36
|
margin: 0;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
/* 'text-xs text-gray-700 uppercase bg-canvas-100 dark:bg-canvas-700 dark:text-gray-400', */
|
|
42
42
|
.table-header,
|
|
43
|
-
:global(.
|
|
43
|
+
:global(.byline-table-header) {
|
|
44
44
|
font-size: var(--font-size-sm);
|
|
45
45
|
/* text-transform: uppercase; */
|
|
46
46
|
background-color: var(--canvas-50);
|
|
@@ -48,19 +48,19 @@
|
|
|
48
48
|
|
|
49
49
|
/* 'border-b border-solid border-canvas-200 bg-white hover:bg-canvas-100/50 dark:border-canvas-700/60 dark:bg-canvas-800/50 dark:hover:bg-canvas-700/50', */
|
|
50
50
|
.table-row,
|
|
51
|
-
:global(.
|
|
51
|
+
:global(.byline-table-row) {
|
|
52
52
|
border-bottom: 1px solid var(--canvas-50);
|
|
53
53
|
background-color: white;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.table-row:hover,
|
|
57
|
-
:global(.
|
|
57
|
+
:global(.byline-table-row:hover) {
|
|
58
58
|
background-color: var(--canvas-50);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/* 'whitespace-nowrap px-2 py-4 text-sm text-gray-700 uppercase bg-canvas-100/50 dark:bg-canvas-800/50 dark:text-gray-200', */
|
|
62
62
|
.table-heading-cell,
|
|
63
|
-
:global(.
|
|
63
|
+
:global(.byline-table-heading-cell) {
|
|
64
64
|
white-space: nowrap;
|
|
65
65
|
padding: var(--spacing-8) var(--spacing-8);
|
|
66
66
|
font-size: 0.975rem;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
/* not-prose px-2 py-2 text-sm [&_a]:underline */
|
|
73
73
|
.table-cell,
|
|
74
|
-
:global(.
|
|
74
|
+
:global(.byline-table-cell) {
|
|
75
75
|
padding: var(--spacing-8);
|
|
76
76
|
font-size: var(--font-size-sm);
|
|
77
77
|
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
|
|
83
83
|
/* 'text-xs text-gray-700 uppercase bg-canvas-100 dark:bg-canvas-700 dark:text-gray-400', */
|
|
84
84
|
.table-footer,
|
|
85
|
-
:global(.
|
|
85
|
+
:global(.byline-table-footer) {
|
|
86
86
|
font-size: var(--font-size-sm);
|
|
87
87
|
/* text-transform: uppercase; */
|
|
88
88
|
background-color: var(--canvas-100);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
/* 🌙 Dark via `.dark` class. We rely on the
|
|
91
|
+
/* 🌙 Dark via `.dark` class. We rely on the
|
|
92
92
|
* consuming application to detect a user's preferred
|
|
93
93
|
* color scheme - either by header or cookie, and set
|
|
94
94
|
* a root html class accordingly
|
|
@@ -96,28 +96,28 @@
|
|
|
96
96
|
:global(.dark),
|
|
97
97
|
:global([data-theme="dark"]) {
|
|
98
98
|
.table-header,
|
|
99
|
-
:global(.
|
|
99
|
+
:global(.byline-table-header) {
|
|
100
100
|
background-color: var(--canvas-700);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.table-row,
|
|
104
|
-
:global(.
|
|
104
|
+
:global(.byline-table-row) {
|
|
105
105
|
border-bottom: 1px solid var(--canvas-700);
|
|
106
106
|
background-color: var(--canvas-800);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.table-row:hover,
|
|
110
|
-
:global(.
|
|
110
|
+
:global(.byline-table-row:hover) {
|
|
111
111
|
background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.table-heading-cell,
|
|
115
|
-
:global(.
|
|
115
|
+
:global(.byline-table-heading-cell) {
|
|
116
116
|
background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.table-footer,
|
|
120
|
-
:global(.
|
|
120
|
+
:global(.byline-table-footer) {
|
|
121
121
|
background-color: var(--canvas-800);
|
|
122
122
|
}
|
|
123
123
|
}
|