@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
|
@@ -113,11 +113,11 @@ const Root = ({ ref, className, itemsClassName, children, ariaLabel, dataTestId,
|
|
|
113
113
|
return /*#__PURE__*/ jsx("nav", {
|
|
114
114
|
"data-testid": dataTestId,
|
|
115
115
|
ref: ref,
|
|
116
|
-
className: classnames('
|
|
116
|
+
className: classnames('byline-pagination-root', pagination_module["pagination-root"], 'pagination-root', className),
|
|
117
117
|
...rest,
|
|
118
118
|
"aria-label": ariaLabel ?? 'Pager navigation',
|
|
119
119
|
children: /*#__PURE__*/ jsx("ul", {
|
|
120
|
-
className: classnames('
|
|
120
|
+
className: classnames('byline-pagination-items', pagination_module["pagination-items"], pagination_module[variant], itemsClassName),
|
|
121
121
|
children: children
|
|
122
122
|
})
|
|
123
123
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.pagination-root-yB674z, .
|
|
4
|
+
:is(.pagination-root-yB674z, .byline-pagination-root) {
|
|
5
5
|
align-items: center;
|
|
6
6
|
padding: 0;
|
|
7
7
|
display: flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:is(.pagination-items-AfreHw, .
|
|
10
|
+
:is(.pagination-items-AfreHw, .byline-pagination-items) {
|
|
11
11
|
align-items: center;
|
|
12
12
|
list-style: none;
|
|
13
13
|
display: flex;
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
margin-right: -1px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
.byline-pagination-items.dashboard li {
|
|
21
21
|
margin-right: -1px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.byline-pagination-items.default li {
|
|
25
25
|
margin-right: -1px;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
margin-right: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
.byline-pagination-items.classic li {
|
|
33
33
|
margin-right: 0;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
gap: 6px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.
|
|
40
|
+
.byline-pagination-items.classic {
|
|
41
41
|
gap: 6px;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -4,30 +4,30 @@ import classnames from "classnames";
|
|
|
4
4
|
import scroll_area_module from "./scroll-area.module.js";
|
|
5
5
|
const scroll_area_ScrollArea = ({ children, style, className })=>/*#__PURE__*/ jsxs(ScrollArea.Root, {
|
|
6
6
|
style: style,
|
|
7
|
-
className: classnames('
|
|
7
|
+
className: classnames('byline-scroll-area', scroll_area_module.root, className),
|
|
8
8
|
children: [
|
|
9
9
|
/*#__PURE__*/ jsx(ScrollArea.Viewport, {
|
|
10
|
-
className: classnames('
|
|
10
|
+
className: classnames('byline-scroll-area-viewport', scroll_area_module.viewport),
|
|
11
11
|
children: /*#__PURE__*/ jsx(ScrollArea.Content, {
|
|
12
12
|
children: children
|
|
13
13
|
})
|
|
14
14
|
}),
|
|
15
15
|
/*#__PURE__*/ jsx(ScrollArea.Scrollbar, {
|
|
16
|
-
className: classnames('
|
|
16
|
+
className: classnames('byline-scroll-area-scrollbar', scroll_area_module.scrollbar),
|
|
17
17
|
orientation: "vertical",
|
|
18
18
|
children: /*#__PURE__*/ jsx(ScrollArea.Thumb, {
|
|
19
|
-
className: classnames('
|
|
19
|
+
className: classnames('byline-scroll-area-thumb', scroll_area_module.thumb)
|
|
20
20
|
})
|
|
21
21
|
}),
|
|
22
22
|
/*#__PURE__*/ jsx(ScrollArea.Scrollbar, {
|
|
23
|
-
className: classnames('
|
|
23
|
+
className: classnames('byline-scroll-area-scrollbar', scroll_area_module.scrollbar),
|
|
24
24
|
orientation: "horizontal",
|
|
25
25
|
children: /*#__PURE__*/ jsx(ScrollArea.Thumb, {
|
|
26
|
-
className: classnames('
|
|
26
|
+
className: classnames('byline-scroll-area-thumb', scroll_area_module.thumb)
|
|
27
27
|
})
|
|
28
28
|
}),
|
|
29
29
|
/*#__PURE__*/ jsx(ScrollArea.Corner, {
|
|
30
|
-
className: classnames('
|
|
30
|
+
className: classnames('byline-scroll-area-corner', scroll_area_module.corner)
|
|
31
31
|
})
|
|
32
32
|
]
|
|
33
33
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.root-XJbuOo, .
|
|
4
|
+
:is(.root-XJbuOo, .byline-scroll-area) {
|
|
5
5
|
background-color: inherit;
|
|
6
6
|
--scrollbar-size: 10px;
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
:is(.viewport-TdOXwJ, .
|
|
11
|
+
:is(.viewport-TdOXwJ, .byline-scroll-area-viewport) {
|
|
12
12
|
border-radius: inherit;
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: 100%;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:is(.scrollbar-Y2nCxA, .
|
|
17
|
+
:is(.scrollbar-Y2nCxA, .byline-scroll-area-scrollbar) {
|
|
18
18
|
-webkit-user-select: none;
|
|
19
19
|
user-select: none;
|
|
20
20
|
touch-action: none;
|
|
@@ -24,27 +24,27 @@
|
|
|
24
24
|
display: flex;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(.scrollbar-Y2nCxA, .
|
|
27
|
+
:is(.scrollbar-Y2nCxA, .byline-scroll-area-scrollbar):hover {
|
|
28
28
|
background: var(--surface-panel-scrollbar);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:is(.scrollbar-Y2nCxA, .
|
|
31
|
+
:is(.scrollbar-Y2nCxA, .byline-scroll-area-scrollbar)[data-orientation="vertical"] {
|
|
32
32
|
width: var(--scrollbar-size);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:is(.scrollbar-Y2nCxA, .
|
|
35
|
+
:is(.scrollbar-Y2nCxA, .byline-scroll-area-scrollbar)[data-orientation="horizontal"] {
|
|
36
36
|
height: var(--scrollbar-size);
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:is(.thumb-G2gkhj, .
|
|
40
|
+
:is(.thumb-G2gkhj, .byline-scroll-area-thumb) {
|
|
41
41
|
background: var(--surface-panel-scrollbar-thumb);
|
|
42
42
|
border-radius: var(--border-radius-sm);
|
|
43
43
|
flex: 1;
|
|
44
44
|
position: relative;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
:is(.thumb-G2gkhj, .
|
|
47
|
+
:is(.thumb-G2gkhj, .byline-scroll-area-thumb):before {
|
|
48
48
|
content: "";
|
|
49
49
|
width: 100%;
|
|
50
50
|
min-width: 44px;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
transform: translate(-50%, -50%);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
:is(.corner-kCiYUz, .
|
|
59
|
+
:is(.corner-kCiYUz, .byline-scroll-area-corner) {
|
|
60
60
|
background: var(--surface-panel-scrollbar);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -38,8 +38,8 @@ function ScrollToTop({ className, showAt = 200, offset = -65, type = 'button', '
|
|
|
38
38
|
type: type,
|
|
39
39
|
"aria-label": ariaLabel,
|
|
40
40
|
onClick: handleOnClick,
|
|
41
|
-
className: classnames('
|
|
42
|
-
'
|
|
41
|
+
className: classnames('byline-scroll-to-top', scroll_to_top_module["scroll-to-top"], {
|
|
42
|
+
'byline-scroll-to-top-shown': show,
|
|
43
43
|
[scroll_to_top_module["scroll-to-top-shown"]]: show
|
|
44
44
|
}, className),
|
|
45
45
|
...props,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.scroll-to-top-WYqAAl, .
|
|
4
|
+
:is(.scroll-to-top-WYqAAl, .byline-scroll-to-top) {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
visibility: hidden;
|
|
7
7
|
z-index: 20;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
padding-bottom: 3px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
.byline-scroll-to-top span {
|
|
33
33
|
width: 18px;
|
|
34
34
|
padding-bottom: 3px;
|
|
35
35
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
fill: var(--text-on-primary-strong);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
.byline-scroll-to-top span svg path {
|
|
43
43
|
stroke: none;
|
|
44
44
|
fill: var(--text-on-primary-strong);
|
|
45
45
|
}
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
transform: translateY(-5px);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
.byline-scroll-to-top:hover {
|
|
54
54
|
color: var(--text-on-primary-strong);
|
|
55
55
|
background-color: var(--fill-primary-strong-hover);
|
|
56
56
|
transform: translateY(-5px);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.
|
|
59
|
+
.byline-scroll-to-top:focus {
|
|
60
60
|
color: var(--text-on-primary-strong);
|
|
61
61
|
background-color: var(--fill-primary-strong-hover);
|
|
62
62
|
transform: translateY(-5px);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
:is(.scroll-to-top-shown-Wemu5m, .
|
|
65
|
+
:is(.scroll-to-top-shown-Wemu5m, .byline-scroll-to-top-shown) {
|
|
66
66
|
opacity: 1;
|
|
67
67
|
visibility: visible;
|
|
68
68
|
border-radius: 20px;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
@media screen and (min-width: 587px) {
|
|
78
|
-
:is(.scroll-to-top-WYqAAl, .
|
|
78
|
+
:is(.scroll-to-top-WYqAAl, .byline-scroll-to-top) {
|
|
79
79
|
bottom: 45px;
|
|
80
80
|
right: 45px;
|
|
81
81
|
}
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
width: 18px;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.
|
|
87
|
+
.byline-scroll-to-top span {
|
|
88
88
|
width: 18px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
:is(.scroll-to-top-shown-Wemu5m, .
|
|
91
|
+
:is(.scroll-to-top-shown-Wemu5m, .byline-scroll-to-top-shown) {
|
|
92
92
|
border-radius: 21px;
|
|
93
93
|
width: 42px;
|
|
94
94
|
height: 42px;
|
|
@@ -3,7 +3,7 @@ import classnames from "classnames";
|
|
|
3
3
|
import section_module from "./section.module.js";
|
|
4
4
|
const section_Section = function({ ref, className, children, ...rest }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("section", {
|
|
6
|
-
className: classnames('
|
|
6
|
+
className: classnames('byline-section', section_module.section, className),
|
|
7
7
|
ref: ref,
|
|
8
8
|
...rest,
|
|
9
9
|
children: children
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.shimmer-hQj5gn, .
|
|
4
|
+
:is(.shimmer-hQj5gn, .byline-shimmer) {
|
|
5
5
|
background-color: #f0f0f0;
|
|
6
6
|
background-image: linear-gradient(90deg, #0000, #fff9, #0000);
|
|
7
7
|
background-size: 200% 100%;
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
:is(:is(.dark, [data-theme="dark"]) .shimmer-hQj5gn, :is(.dark, [data-theme="dark"]) .
|
|
13
|
+
:is(:is(.dark, [data-theme="dark"]) .shimmer-hQj5gn, :is(.dark, [data-theme="dark"]) .byline-shimmer) {
|
|
14
14
|
background-color: #141414;
|
|
15
15
|
background-image: linear-gradient(90deg, #0000, #ffffff03, #0000);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
:is(.shimmerContainer-YqBAXa, .
|
|
18
|
+
:is(.shimmerContainer-YqBAXa, .byline-shimmer-container) {
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:is(.rectangular-qx6oTl, .
|
|
23
|
+
:is(.rectangular-qx6oTl, .byline-shimmer-rectangular) {
|
|
24
24
|
border-radius: .25rem;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(.text-syTLNh, .
|
|
27
|
+
:is(.text-syTLNh, .byline-shimmer-text) {
|
|
28
28
|
border-radius: .125rem;
|
|
29
29
|
height: 1rem;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
:is(.circular-KqBjEv, .
|
|
32
|
+
:is(.circular-KqBjEv, .byline-shimmer-circular) {
|
|
33
33
|
aspect-ratio: 1;
|
|
34
34
|
border-radius: 50%;
|
|
35
35
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import table_module from "./table.module.js";
|
|
4
4
|
function Table({ ref, className, children, ...rest }) {
|
|
5
|
-
const classes = classnames(table_module.table, '
|
|
5
|
+
const classes = classnames(table_module.table, 'byline-table', className);
|
|
6
6
|
return /*#__PURE__*/ jsx("table", {
|
|
7
7
|
ref: ref,
|
|
8
8
|
className: classes,
|
|
@@ -11,13 +11,13 @@ function Table({ ref, className, children, ...rest }) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function Container({ ref, className, children, ...rest }) {
|
|
14
|
-
const classes = classnames(table_module["table-container"], '
|
|
14
|
+
const classes = classnames(table_module["table-container"], 'byline-table-container', className);
|
|
15
15
|
return /*#__PURE__*/ jsx("div", {
|
|
16
16
|
ref: ref,
|
|
17
17
|
className: classes,
|
|
18
18
|
...rest,
|
|
19
19
|
children: /*#__PURE__*/ jsx("div", {
|
|
20
|
-
className: classnames('
|
|
20
|
+
className: classnames('byline-table-scroller', table_module["table-scroller"]),
|
|
21
21
|
children: children
|
|
22
22
|
})
|
|
23
23
|
});
|
|
@@ -25,13 +25,13 @@ function Container({ ref, className, children, ...rest }) {
|
|
|
25
25
|
function Body({ ref, className, children, ...rest }) {
|
|
26
26
|
return /*#__PURE__*/ jsx("tbody", {
|
|
27
27
|
ref: ref,
|
|
28
|
-
className: classnames('
|
|
28
|
+
className: classnames('byline-table-body', className),
|
|
29
29
|
...rest,
|
|
30
30
|
children: children
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function Header({ ref, className, children, ...rest }) {
|
|
34
|
-
const classes = classnames(table_module["table-header"], '
|
|
34
|
+
const classes = classnames(table_module["table-header"], 'byline-table-header', className);
|
|
35
35
|
return /*#__PURE__*/ jsx("thead", {
|
|
36
36
|
ref: ref,
|
|
37
37
|
className: classes,
|
|
@@ -40,7 +40,7 @@ function Header({ ref, className, children, ...rest }) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function Row({ ref, className, children, ...rest }) {
|
|
43
|
-
const classes = classnames(table_module["table-row"], '
|
|
43
|
+
const classes = classnames(table_module["table-row"], 'byline-table-row', className);
|
|
44
44
|
return /*#__PURE__*/ jsx("tr", {
|
|
45
45
|
ref: ref,
|
|
46
46
|
className: classes,
|
|
@@ -49,7 +49,7 @@ function Row({ ref, className, children, ...rest }) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
function HeadingCell({ ref, className, children, ...rest }) {
|
|
52
|
-
const classes = classnames(table_module["table-heading-cell"], '
|
|
52
|
+
const classes = classnames(table_module["table-heading-cell"], 'byline-table-heading-cell', 'not-prose', className);
|
|
53
53
|
return /*#__PURE__*/ jsx("th", {
|
|
54
54
|
ref: ref,
|
|
55
55
|
className: classes,
|
|
@@ -58,7 +58,7 @@ function HeadingCell({ ref, className, children, ...rest }) {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
function Cell({ ref, className, children, ...rest }) {
|
|
61
|
-
const classes = classnames(table_module["table-cell"], '
|
|
61
|
+
const classes = classnames(table_module["table-cell"], 'byline-table-cell', className);
|
|
62
62
|
return /*#__PURE__*/ jsx("td", {
|
|
63
63
|
ref: ref,
|
|
64
64
|
className: classes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.table-container-SdhhjR, .
|
|
4
|
+
:is(.table-container-SdhhjR, .byline-table-container) {
|
|
5
5
|
word-break: normal;
|
|
6
6
|
box-shadow: var(--shadow-sm);
|
|
7
7
|
border-radius: var(--border-radius-sm);
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
:is(.table-scroller-lW0GHG, .
|
|
14
|
+
:is(.table-scroller-lW0GHG, .byline-table-scroller) {
|
|
15
15
|
max-width: calc(100vw - 32px);
|
|
16
16
|
overflow-x: auto;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
:is(.table-TW0hN9, .
|
|
19
|
+
:is(.table-TW0hN9, .byline-table) {
|
|
20
20
|
border-collapse: collapse;
|
|
21
21
|
width: 100%;
|
|
22
22
|
font-size: var(--font-size-sm);
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
margin: 0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(.table-header-D1lP7m, .
|
|
27
|
+
:is(.table-header-D1lP7m, .byline-table-header) {
|
|
28
28
|
font-size: var(--font-size-sm);
|
|
29
29
|
background-color: var(--canvas-50);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
:is(.table-row-ufTNsI, .
|
|
32
|
+
:is(.table-row-ufTNsI, .byline-table-row) {
|
|
33
33
|
border-bottom: 1px solid var(--canvas-50);
|
|
34
34
|
background-color: #fff;
|
|
35
35
|
}
|
|
@@ -38,36 +38,36 @@
|
|
|
38
38
|
background-color: var(--canvas-50);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
.byline-table-row:hover {
|
|
42
42
|
background-color: var(--canvas-50);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
:is(.table-heading-cell-gB6ryy, .
|
|
45
|
+
:is(.table-heading-cell-gB6ryy, .byline-table-heading-cell) {
|
|
46
46
|
white-space: nowrap;
|
|
47
47
|
padding: var(--spacing-8) var(--spacing-8);
|
|
48
48
|
background-color: var(--canvas-50);
|
|
49
49
|
font-size: .975rem;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:is(.table-cell-VRgkzQ, .
|
|
52
|
+
:is(.table-cell-VRgkzQ, .byline-table-cell) {
|
|
53
53
|
padding: var(--spacing-8);
|
|
54
54
|
font-size: var(--font-size-sm);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
:is(.table-cell-VRgkzQ, .
|
|
57
|
+
:is(.table-cell-VRgkzQ, .byline-table-cell) a {
|
|
58
58
|
text-decoration: underline;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
:is(.table-footer-JabMFD, .
|
|
61
|
+
:is(.table-footer-JabMFD, .byline-table-footer) {
|
|
62
62
|
font-size: var(--font-size-sm);
|
|
63
63
|
background-color: var(--canvas-100);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
:is(:is(.dark, [data-theme="dark"]) .table-header-D1lP7m, :is(.dark, [data-theme="dark"]) .
|
|
66
|
+
:is(:is(.dark, [data-theme="dark"]) .table-header-D1lP7m, :is(.dark, [data-theme="dark"]) .byline-table-header) {
|
|
67
67
|
background-color: var(--canvas-700);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
:is(:is(.dark, [data-theme="dark"]) .table-row-ufTNsI, :is(.dark, [data-theme="dark"]) .
|
|
70
|
+
:is(:is(.dark, [data-theme="dark"]) .table-row-ufTNsI, :is(.dark, [data-theme="dark"]) .byline-table-row) {
|
|
71
71
|
border-bottom: 1px solid var(--canvas-700);
|
|
72
72
|
background-color: var(--canvas-800);
|
|
73
73
|
}
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
:is(.dark, [data-theme="dark"]) .
|
|
79
|
+
:is(.dark, [data-theme="dark"]) .byline-table-row:hover {
|
|
80
80
|
background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
:is(:is(.dark, [data-theme="dark"]) .table-heading-cell-gB6ryy, :is(.dark, [data-theme="dark"]) .
|
|
83
|
+
:is(:is(.dark, [data-theme="dark"]) .table-heading-cell-gB6ryy, :is(.dark, [data-theme="dark"]) .byline-table-heading-cell) {
|
|
84
84
|
background-color: oklch(from var(--canvas-800) calc(l * 1.1) c h);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
:is(:is(.dark, [data-theme="dark"]) .table-footer-JabMFD, :is(.dark, [data-theme="dark"]) .
|
|
87
|
+
:is(:is(.dark, [data-theme="dark"]) .table-footer-JabMFD, :is(.dark, [data-theme="dark"]) .byline-table-footer) {
|
|
88
88
|
background-color: var(--canvas-800);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -5,26 +5,26 @@ import classnames from "classnames";
|
|
|
5
5
|
import tabs_module from "./tabs.module.js";
|
|
6
6
|
const tabs_Tabs = ({ ref, className, ...props })=>/*#__PURE__*/ jsx(Tabs.Root, {
|
|
7
7
|
ref: ref,
|
|
8
|
-
className: classnames(tabs_module["tabs-root"], '
|
|
8
|
+
className: classnames(tabs_module["tabs-root"], 'byline-tabs-root', className),
|
|
9
9
|
...props
|
|
10
10
|
});
|
|
11
11
|
tabs_Tabs.displayName = 'Tabs';
|
|
12
12
|
const TabsList = ({ ref, className, ...props })=>/*#__PURE__*/ jsx(Tabs.List, {
|
|
13
13
|
ref: ref,
|
|
14
|
-
className: classnames(tabs_module["tabs-list"], '
|
|
14
|
+
className: classnames(tabs_module["tabs-list"], 'byline-tabs-list', className),
|
|
15
15
|
...props
|
|
16
16
|
});
|
|
17
17
|
TabsList.displayName = 'TabsList';
|
|
18
18
|
const TabsTrigger = ({ ref, className, ...props })=>/*#__PURE__*/ jsx(Tabs.Tab, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
className: classnames(tabs_module["tabs-trigger"], '
|
|
20
|
+
className: classnames(tabs_module["tabs-trigger"], 'byline-tabs-trigger', className),
|
|
21
21
|
...props
|
|
22
22
|
});
|
|
23
23
|
TabsTrigger.displayName = 'TabsTrigger';
|
|
24
24
|
const TabsContent = ({ ref, className, keepMounted = true, ...props })=>/*#__PURE__*/ jsx(Tabs.Panel, {
|
|
25
25
|
ref: ref,
|
|
26
26
|
keepMounted: keepMounted,
|
|
27
|
-
className: classnames(tabs_module["tabs-content"], '
|
|
27
|
+
className: classnames(tabs_module["tabs-content"], 'byline-tabs-content', className),
|
|
28
28
|
...props
|
|
29
29
|
});
|
|
30
30
|
TabsContent.displayName = 'TabsContent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.tabs-root-H5dXfK, .
|
|
4
|
+
:is(.tabs-root-H5dXfK, .byline-tabs-root) {
|
|
5
5
|
padding: var(--spacing-8);
|
|
6
6
|
gap: var(--spacing-4);
|
|
7
7
|
border-radius: var(--border-radius-md);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
:is(.tabs-list-erP30R, .
|
|
13
|
+
:is(.tabs-list-erP30R, .byline-tabs-list) {
|
|
14
14
|
gap: var(--gap-2);
|
|
15
15
|
border-radius: var(--border-radius-md);
|
|
16
16
|
width: 100%;
|
|
@@ -20,36 +20,36 @@
|
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:is(.tabs-list-erP30R, .
|
|
23
|
+
:is(.tabs-list-erP30R, .byline-tabs-list):focus-visible {
|
|
24
24
|
outline: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(.tabs-trigger-l7pFgX, .
|
|
27
|
+
:is(.tabs-trigger-l7pFgX, .byline-tabs-trigger) {
|
|
28
28
|
white-space: nowrap;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
align-items: center;
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:is(.tabs-trigger-l7pFgX, .
|
|
34
|
+
:is(.tabs-trigger-l7pFgX, .byline-tabs-trigger):focus {
|
|
35
35
|
position: relative;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:is(.tabs-content-d2NTGs, .
|
|
38
|
+
:is(.tabs-content-d2NTGs, .byline-tabs-content) {
|
|
39
39
|
margin-top: var(--spacing-8);
|
|
40
40
|
outline: none;
|
|
41
41
|
padding: 6px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
:is(.tabs-content-d2NTGs, .
|
|
44
|
+
:is(.tabs-content-d2NTGs, .byline-tabs-content)[data-hidden] {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
:is(.tabs-content-d2NTGs, .
|
|
48
|
+
:is(.tabs-content-d2NTGs, .byline-tabs-content):focus {
|
|
49
49
|
outline: none;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:is(.tabs-content-d2NTGs, .
|
|
52
|
+
:is(.tabs-content-d2NTGs, .byline-tabs-content):focus-visible {
|
|
53
53
|
outline: none;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -45,10 +45,10 @@ const tooltip_tooltip_Tooltip = function({ ref, text, delay = 500, side = 'top',
|
|
|
45
45
|
side: side,
|
|
46
46
|
sideOffset: sideOffset,
|
|
47
47
|
children: /*#__PURE__*/ jsxs(tooltip_Tooltip.Popup, {
|
|
48
|
-
className: classnames(tooltip_module.tooltip, '
|
|
48
|
+
className: classnames(tooltip_module.tooltip, 'byline-tooltip'),
|
|
49
49
|
children: [
|
|
50
50
|
/*#__PURE__*/ jsx(tooltip_Tooltip.Arrow, {
|
|
51
|
-
className: classnames(tooltip_module["tooltip-arrow"], '
|
|
51
|
+
className: classnames(tooltip_module["tooltip-arrow"], 'byline-tooltip-arrow'),
|
|
52
52
|
children: /*#__PURE__*/ jsx(ArrowSvg, {})
|
|
53
53
|
}),
|
|
54
54
|
text
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.tooltip-Oc7lRI, .
|
|
4
|
+
:is(.tooltip-Oc7lRI, .byline-tooltip) {
|
|
5
5
|
color: var(--surface-item-text);
|
|
6
6
|
-webkit-user-select: none;
|
|
7
7
|
user-select: none;
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
animation-name: slideUpAndFade;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
:is(.tooltip-arrow-a77zEa, .
|
|
37
|
+
:is(.tooltip-arrow-a77zEa, .byline-tooltip-arrow) {
|
|
38
38
|
display: flex;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
:is(.tooltip-arrow-a77zEa, .
|
|
41
|
+
:is(.tooltip-arrow-a77zEa, .byline-tooltip-arrow)[data-side="top"] {
|
|
42
42
|
bottom: -6px;
|
|
43
43
|
rotate: 180deg;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
:is(.tooltip-arrow-a77zEa, .
|
|
46
|
+
:is(.tooltip-arrow-a77zEa, .byline-tooltip-arrow)[data-side="bottom"] {
|
|
47
47
|
top: -6px;
|
|
48
48
|
rotate: 0deg;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
:is(.tooltip-arrow-a77zEa, .
|
|
51
|
+
:is(.tooltip-arrow-a77zEa, .byline-tooltip-arrow)[data-side="left"] {
|
|
52
52
|
right: -10px;
|
|
53
53
|
rotate: 90deg;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
:is(.tooltip-arrow-a77zEa, .
|
|
56
|
+
:is(.tooltip-arrow-a77zEa, .byline-tooltip-arrow)[data-side="right"] {
|
|
57
57
|
left: -10px;
|
|
58
58
|
rotate: -90deg;
|
|
59
59
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFieldError, useFieldValue } from "../../forms/form-context.js";
|
|
3
3
|
import { Checkbox } from "../../uikit.js";
|
|
4
|
+
import checkbox_field_module from "./checkbox-field.module.js";
|
|
4
5
|
const CheckboxField = ({ field, value, defaultValue, onChange, id, path })=>{
|
|
5
6
|
const fieldPath = path ?? field.name;
|
|
6
7
|
const fieldError = useFieldError(fieldPath);
|
|
7
8
|
const fieldValue = useFieldValue(fieldPath);
|
|
8
9
|
const checked = value ?? fieldValue ?? defaultValue ?? false;
|
|
9
10
|
return /*#__PURE__*/ jsx("div", {
|
|
10
|
-
className: `byline-field-checkbox ${field.name}`,
|
|
11
|
+
className: `byline-field-checkbox ${field.name} ${checkbox_field_module["field-checkbox"]}`,
|
|
11
12
|
children: /*#__PURE__*/ jsx(Checkbox, {
|
|
12
13
|
id: id ?? fieldPath,
|
|
13
14
|
name: field.name,
|