@byline/ui 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion_module.css +6 -6
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/avatar/avatar_module.css +4 -4
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge_module.css +8 -8
- package/dist/components/button/button-group_module.css +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button_module.css +46 -42
- package/dist/components/button/combo-button_module.css +6 -6
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/copy-button_module.css +7 -7
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card_module.css +9 -9
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip_module.css +41 -38
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown_module.css +8 -8
- package/dist/components/hamburger/hamburger.js +3 -3
- package/dist/components/hamburger/hamburger_module.css +16 -16
- package/dist/components/inputs/autocomplete.js +9 -9
- package/dist/components/inputs/autocomplete_module.css +36 -36
- package/dist/components/inputs/checkbox-group.js +1 -1
- package/dist/components/inputs/checkbox-group_module.css +1 -1
- package/dist/components/inputs/checkbox.js +5 -5
- package/dist/components/inputs/checkbox_module.css +31 -31
- package/dist/components/inputs/error-text_module.css +4 -4
- package/dist/components/inputs/help-text.js +1 -1
- package/dist/components/inputs/help-text_module.css +4 -4
- package/dist/components/inputs/input-adornment.js +1 -1
- package/dist/components/inputs/input-adornment_module.css +3 -3
- package/dist/components/inputs/input.js +5 -5
- package/dist/components/inputs/input_module.css +38 -38
- package/dist/components/inputs/label_module.css +2 -2
- package/dist/components/inputs/radio-group.js +1 -1
- package/dist/components/inputs/radio-group_module.css +18 -18
- package/dist/components/inputs/select.js +3 -3
- package/dist/components/inputs/select_module.css +8 -8
- package/dist/components/inputs/text-area.js +1 -1
- package/dist/components/inputs/text-area_module.css +3 -3
- package/dist/components/notifications/alert.js +10 -10
- package/dist/components/notifications/alert_module.css +16 -16
- package/dist/components/notifications/toast.js +7 -7
- package/dist/components/notifications/toast_module.css +25 -24
- package/dist/components/pager/pagination.js +2 -2
- package/dist/components/pager/pagination_module.css +6 -6
- package/dist/components/scroll-area/scroll-area.js +7 -7
- package/dist/components/scroll-area/scroll-area_module.css +9 -9
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
- package/dist/components/section/section.js +1 -1
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer_module.css +6 -6
- package/dist/components/table/table.js +8 -8
- package/dist/components/table/table_module.css +15 -15
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/tabs/tabs_module.css +9 -9
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tooltip/tooltip_module.css +6 -6
- package/dist/fields/checkbox/checkbox-field.js +2 -1
- package/dist/fields/checkbox/checkbox-field.module.js +6 -0
- package/dist/fields/checkbox/checkbox-field_module.css +4 -0
- package/dist/forms/form-context.d.ts +1 -0
- package/dist/forms/form-context.js +3 -2
- package/dist/forms/form-renderer.js +19 -20
- package/dist/loaders/ellipses.js +2 -2
- package/dist/loaders/ellipses_module.css +2 -2
- package/dist/loaders/ring.js +2 -2
- package/dist/loaders/ring_module.css +2 -2
- package/dist/loaders/spinner.js +3 -3
- package/dist/loaders/spinner_module.css +3 -3
- package/dist/styles/styles.css +12 -0
- package/dist/widgets/datepicker/datepicker.js +11 -11
- package/dist/widgets/datepicker/datepicker_module.css +21 -21
- package/dist/widgets/drawer/drawer-container.js +1 -1
- package/dist/widgets/drawer/drawer-content.js +1 -1
- package/dist/widgets/drawer/drawer-header.js +1 -1
- package/dist/widgets/drawer/drawer-top-actions.js +1 -1
- package/dist/widgets/drawer/drawer.js +2 -2
- package/dist/widgets/drawer/drawer_module.css +11 -11
- package/dist/widgets/modal/modal-actions.js +1 -1
- package/dist/widgets/modal/modal-container.js +1 -1
- package/dist/widgets/modal/modal-content.js +1 -1
- package/dist/widgets/modal/modal-header.js +1 -1
- package/dist/widgets/modal/modal.js +2 -2
- package/dist/widgets/modal/modal_module.css +12 -12
- package/dist/widgets/search/search.js +6 -0
- package/dist/widgets/timeline/timeline_module.css +10 -10
- package/package.json +14 -14
- package/src/components/accordion/accordion.module.css +4 -4
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/components/avatar/avatar.module.css +4 -4
- package/src/components/avatar/avatar.tsx +4 -4
- package/src/components/badge/badge.module.css +8 -8
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/button/button-group.module.css +2 -2
- package/src/components/button/button.module.css +162 -86
- package/src/components/button/button.tsx +4 -4
- package/src/components/button/combo-button.module.css +7 -7
- package/src/components/button/control-buttons.module.css +5 -5
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +7 -7
- package/src/components/button/copy-button.tsx +5 -5
- package/src/components/card/card.module.css +9 -9
- package/src/components/card/card.tsx +6 -6
- package/src/components/chips/chip.module.css +126 -71
- package/src/components/chips/chip.tsx +8 -12
- package/src/components/container/container.module.css +4 -4
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +7 -7
- package/src/components/dropdown/dropdown.tsx +8 -8
- package/src/components/hamburger/hamburger.module.css +16 -16
- package/src/components/hamburger/hamburger.tsx +3 -3
- package/src/components/inputs/autocomplete.module.css +42 -42
- package/src/components/inputs/autocomplete.tsx +12 -14
- package/src/components/inputs/checkbox-group.module.css +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.module.css +38 -34
- package/src/components/inputs/checkbox.tsx +8 -11
- package/src/components/inputs/error-text.module.css +4 -4
- package/src/components/inputs/help-text.module.css +4 -4
- package/src/components/inputs/help-text.tsx +1 -3
- package/src/components/inputs/input-adornment.module.css +3 -3
- package/src/components/inputs/input-adornment.tsx +2 -2
- package/src/components/inputs/input.module.css +45 -45
- package/src/components/inputs/input.tsx +8 -12
- package/src/components/inputs/label.module.css +2 -2
- package/src/components/inputs/radio-group.module.css +17 -17
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.module.css +8 -8
- package/src/components/inputs/select.tsx +3 -3
- package/src/components/inputs/text-area.module.css +4 -4
- package/src/components/inputs/text-area.tsx +3 -3
- package/src/components/notifications/alert.module.css +16 -16
- package/src/components/notifications/alert.tsx +11 -11
- package/src/components/notifications/toast.module.css +41 -28
- package/src/components/notifications/toast.tsx +7 -9
- package/src/components/pager/pagination.module.css +6 -6
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +5 -5
- package/src/components/scroll-area/scroll-area.tsx +7 -7
- package/src/components/scroll-to-top/scroll-to-top.module.css +9 -9
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +18 -8
- package/src/components/table/table.module.css +15 -15
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +4 -4
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +2 -2
- package/src/components/tooltip/tooltip.tsx +2 -2
- package/src/fields/checkbox/checkbox-field.module.css +4 -0
- package/src/fields/checkbox/checkbox-field.tsx +2 -1
- package/src/forms/form-context.tsx +10 -2
- package/src/forms/form-renderer.tsx +44 -30
- package/src/icons/source/icon-infonomic.svg +2 -2
- package/src/loaders/ellipses.module.css +2 -2
- package/src/loaders/ellipses.tsx +2 -2
- package/src/loaders/ring.module.css +2 -2
- package/src/loaders/ring.tsx +2 -2
- package/src/loaders/spinner.module.css +3 -3
- package/src/loaders/spinner.tsx +3 -6
- package/src/styles/styles.css +12 -0
- package/src/widgets/datepicker/datepicker.module.css +15 -15
- package/src/widgets/datepicker/datepicker.tsx +11 -21
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +11 -11
- package/src/widgets/drawer/drawer.tsx +2 -2
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal.module.css +12 -12
- package/src/widgets/modal/modal.tsx +2 -2
- package/src/widgets/search/search.tsx +2 -0
- package/src/widgets/timeline/timeline.module.css +10 -10
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.column-Ca6c3z, .
|
|
4
|
+
:is(.column-Ca6c3z, .byline-radio-group-column) {
|
|
5
5
|
gap: var(--gap-2);
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
display: flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:is(.row-ac6wE8, .
|
|
10
|
+
:is(.row-ac6wE8, .byline-radio-group-row) {
|
|
11
11
|
gap: var(--gap-2);
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
:is(.item-container-QhnOuU, .
|
|
16
|
+
:is(.item-container-QhnOuU, .byline-radio-group-item-container) {
|
|
17
17
|
align-items: center;
|
|
18
18
|
gap: var(--gap-2);
|
|
19
19
|
display: flex;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
:is(.item-uXVko1, .
|
|
22
|
+
:is(.item-uXVko1, .byline-radio-group-item) {
|
|
23
23
|
all: unset;
|
|
24
24
|
border-radius: var(--border-radius-full);
|
|
25
25
|
border: 2px solid var(--radio-border);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
pointer-events: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.
|
|
35
|
+
.byline-radio-group-item[data-disabled] {
|
|
36
36
|
pointer-events: none;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
transform: scale(1);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
.byline-radio-group-indicator[data-checked] {
|
|
46
46
|
opacity: 1;
|
|
47
47
|
animation: .3s cubic-bezier(.25, 1.5, .5, 1) forwards radioIn-fUcBet;
|
|
48
48
|
transform: scale(1);
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
transform: scale(.8);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
57
|
+
.byline-radio-group-indicator[data-unchecked] {
|
|
58
58
|
opacity: 0;
|
|
59
59
|
animation: .2s ease-in radioOut-mOJ8no;
|
|
60
60
|
transform: scale(.8);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
:is(.indicator-B7b31p, .
|
|
63
|
+
:is(.indicator-B7b31p, .byline-radio-group-indicator) {
|
|
64
64
|
justify-content: center;
|
|
65
65
|
align-items: center;
|
|
66
66
|
width: 100%;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
position: relative;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
:is(.indicator-B7b31p, .
|
|
72
|
+
:is(.indicator-B7b31p, .byline-radio-group-indicator):after {
|
|
73
73
|
content: "";
|
|
74
74
|
background-color: var(--radio-indicator-color);
|
|
75
75
|
border-radius: 50%;
|
|
@@ -78,49 +78,49 @@
|
|
|
78
78
|
display: block;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
:is(.label-z3bd4D, .
|
|
81
|
+
:is(.label-z3bd4D, .byline-radio-group-label) {
|
|
82
82
|
color: var(--foreground);
|
|
83
83
|
padding-left: var(--spacing-8);
|
|
84
84
|
font-size: 15px;
|
|
85
85
|
line-height: 1;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
:is(.row-ac6wE8 .label-z3bd4D, .
|
|
88
|
+
:is(.row-ac6wE8 .label-z3bd4D, .byline-radio-group-row .byline-radio-group-label) {
|
|
89
89
|
padding-left: 0;
|
|
90
90
|
padding-right: var(--spacing-16);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
:is(.primary-Tdjbh6, .
|
|
93
|
+
:is(.primary-Tdjbh6, .byline-radio-group-primary) {
|
|
94
94
|
--radio-border: var(--fill-primary-strong);
|
|
95
95
|
--radio-indicator-color: var(--fill-primary-strong);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
:is(.secondary-OnQLgQ, .
|
|
98
|
+
:is(.secondary-OnQLgQ, .byline-radio-group-secondary) {
|
|
99
99
|
--radio-border: var(--fill-secondary-strong);
|
|
100
100
|
--radio-indicator-color: var(--fill-secondary-strong);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
:is(.noeffect-utrLW3, .
|
|
103
|
+
:is(.noeffect-utrLW3, .byline-radio-group-noeffect) {
|
|
104
104
|
--radio-border: var(--fill-noeffect-strong);
|
|
105
105
|
--radio-indicator-color: var(--fill-noeffect-strong);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
:is(.success-ox6PBo, .
|
|
108
|
+
:is(.success-ox6PBo, .byline-radio-group-success) {
|
|
109
109
|
--radio-border: var(--fill-success-strong);
|
|
110
110
|
--radio-indicator-color: var(--fill-success-strong);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
:is(.info-XQe2ch, .
|
|
113
|
+
:is(.info-XQe2ch, .byline-radio-group-info) {
|
|
114
114
|
--radio-border: var(--fill-info-strong);
|
|
115
115
|
--radio-indicator-color: var(--fill-info-strong);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
:is(.warning-tb13WX, .
|
|
118
|
+
:is(.warning-tb13WX, .byline-radio-group-warning) {
|
|
119
119
|
--radio-border: var(--fill-warning-strong);
|
|
120
120
|
--radio-indicator-color: var(--fill-warning-strong);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
:is(.danger-wqLk2O, .
|
|
123
|
+
:is(.danger-wqLk2O, .byline-radio-group-danger) {
|
|
124
124
|
--radio-border: var(--fill-danger-strong);
|
|
125
125
|
--radio-indicator-color: var(--fill-danger-strong);
|
|
126
126
|
}
|
|
@@ -10,7 +10,7 @@ import { HelpText } from "./help-text.js";
|
|
|
10
10
|
import select_module from "./select.module.js";
|
|
11
11
|
function select_Select({ id, children, placeholder, disabledValue, intent, variant, size, position, containerClassName, className, ariaLabel, helpText, items, ...rest }) {
|
|
12
12
|
return /*#__PURE__*/ jsxs("div", {
|
|
13
|
-
className: classnames('
|
|
13
|
+
className: classnames('byline-select-container', containerClassName),
|
|
14
14
|
children: [
|
|
15
15
|
/*#__PURE__*/ jsxs(Select.Root, {
|
|
16
16
|
items: items,
|
|
@@ -70,12 +70,12 @@ function select_Select({ id, children, placeholder, disabledValue, intent, varia
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
const SelectItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsxs(Select.Item, {
|
|
73
|
-
className: classnames('
|
|
73
|
+
className: classnames('byline-select-item', select_module["select-item"], className),
|
|
74
74
|
...props,
|
|
75
75
|
ref: forwardedRef,
|
|
76
76
|
children: [
|
|
77
77
|
/*#__PURE__*/ jsx(Select.ItemIndicator, {
|
|
78
|
-
className: classnames('
|
|
78
|
+
className: classnames('byline-select-item-indicator', select_module["select-item-indicator"]),
|
|
79
79
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
80
80
|
}),
|
|
81
81
|
/*#__PURE__*/ jsx(Select.ItemText, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.positioner-Mjx718, .
|
|
4
|
+
:is(.positioner-Mjx718, .byline-select-positioner) {
|
|
5
5
|
z-index: 50;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
:is(.popup-GCcnyH, .
|
|
8
|
+
:is(.popup-GCcnyH, .byline-select-popup) {
|
|
9
9
|
z-index: 50;
|
|
10
10
|
border: 1px solid var(--surface-panel-border);
|
|
11
11
|
box-shadow: var(--shadow-md);
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
padding: 8px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
:is(.list-UnpLpt, .
|
|
30
|
+
:is(.list-UnpLpt, .byline-select-list) {
|
|
31
31
|
z-index: 50;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:is(.scroll-arrow-JHznBc, .
|
|
34
|
+
:is(.scroll-arrow-JHznBc, .byline-select-scroll-arrow) {
|
|
35
35
|
color: var(--surface-item-text);
|
|
36
36
|
border: 1px solid var(--surface-panel-border);
|
|
37
37
|
box-shadow: var(--shadow-md);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
display: flex;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
:is(.select-item-rnKFPV, .
|
|
46
|
+
:is(.select-item-rnKFPV, .byline-select-item) {
|
|
47
47
|
-webkit-user-select: none;
|
|
48
48
|
user-select: none;
|
|
49
49
|
color: var(--surface-item-text);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
pointer-events: none;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.byline-select-item[data-disabled] {
|
|
68
68
|
color: var(--surface-item-text-disabled);
|
|
69
69
|
pointer-events: none;
|
|
70
70
|
}
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
outline: none;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.
|
|
78
|
+
.byline-select-item[data-highlighted] {
|
|
79
79
|
background-color: var(--surface-item-hover);
|
|
80
80
|
color: var(--surface-item-text-hover);
|
|
81
81
|
outline: none;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
:is(.select-item-indicator-OygYkn, .
|
|
84
|
+
:is(.select-item-indicator-OygYkn, .byline-select-item-indicator) {
|
|
85
85
|
justify-content: center;
|
|
86
86
|
align-items: center;
|
|
87
87
|
width: 24px;
|
|
@@ -28,7 +28,7 @@ const text_area_TextArea = function({ ref, id, name, label, rows = 4, required =
|
|
|
28
28
|
"aria-required": required,
|
|
29
29
|
"aria-errormessage": errorText,
|
|
30
30
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
31
|
-
className: classnames('
|
|
31
|
+
className: classnames('byline-text-area', `byline-text-area-${variant}`, `byline-text-area-${intent}`, input_module.input, input_module[variant], input_module[intent], text_area_module["text-area"], text_area_module[variant], {
|
|
32
32
|
[input_module.error]: error
|
|
33
33
|
}, className),
|
|
34
34
|
...rest
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer byline-components {
|
|
4
|
-
:is(.text-area-TY2VVE, .
|
|
4
|
+
:is(.text-area-TY2VVE, .byline-text-area) {
|
|
5
5
|
width: 100%;
|
|
6
6
|
padding: .5rem;
|
|
7
7
|
font-size: 1rem;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:is(.underlined-TE6gDa, .
|
|
10
|
+
:is(.underlined-TE6gDa, .byline-text-area--underlined) {
|
|
11
11
|
padding-left: 0;
|
|
12
12
|
padding-right: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:is(.underlined-TE6gDa:focus, .underlined-TE6gDa:active, .
|
|
15
|
+
:is(.underlined-TE6gDa:focus, .underlined-TE6gDa:active, .byline-text-area--underlined:focus, .byline-text-area--underlined:active) {
|
|
16
16
|
outline: none;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -31,21 +31,21 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
31
31
|
if (false === show) return null;
|
|
32
32
|
return /*#__PURE__*/ jsx("div", {
|
|
33
33
|
ref: ref,
|
|
34
|
-
className: classnames('
|
|
34
|
+
className: classnames('byline-alert', `byline-alert-${intent}`, alert_module.alert, alert_module[intent], className, {
|
|
35
35
|
[alert_module.fade]: fade
|
|
36
36
|
}),
|
|
37
37
|
...rest,
|
|
38
38
|
children: null != title ? /*#__PURE__*/ jsxs("div", {
|
|
39
|
-
className: classnames('
|
|
39
|
+
className: classnames('byline-alert-with-title', alert_module["alert-with-title"]),
|
|
40
40
|
children: [
|
|
41
41
|
/*#__PURE__*/ jsxs("div", {
|
|
42
|
-
className: classnames('
|
|
42
|
+
className: classnames('byline-alert-header', alert_module.header),
|
|
43
43
|
children: [
|
|
44
44
|
icon && /*#__PURE__*/ jsx(Icon, {
|
|
45
|
-
className: classnames('
|
|
45
|
+
className: classnames('byline-alert-icon', alert_module.icon)
|
|
46
46
|
}),
|
|
47
47
|
/*#__PURE__*/ jsx("div", {
|
|
48
|
-
className: classnames('
|
|
48
|
+
className: classnames('byline-alert-title', alert_module.title),
|
|
49
49
|
children: /*#__PURE__*/ jsx("span", {
|
|
50
50
|
children: title
|
|
51
51
|
})
|
|
@@ -54,7 +54,7 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
54
54
|
intent: intent,
|
|
55
55
|
variant: "filled",
|
|
56
56
|
"aria-label": "Close",
|
|
57
|
-
className: classnames('
|
|
57
|
+
className: classnames('byline-alert-close', alert_module.close),
|
|
58
58
|
type: "button",
|
|
59
59
|
onClick: handleOnClose,
|
|
60
60
|
...rest,
|
|
@@ -66,24 +66,24 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
66
66
|
]
|
|
67
67
|
}),
|
|
68
68
|
/*#__PURE__*/ jsx("div", {
|
|
69
|
-
className: classnames('
|
|
69
|
+
className: classnames('byline-alert-content', alert_module.content),
|
|
70
70
|
children: children
|
|
71
71
|
})
|
|
72
72
|
]
|
|
73
73
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
74
74
|
children: [
|
|
75
75
|
icon && /*#__PURE__*/ jsx(Icon, {
|
|
76
|
-
className: classnames('
|
|
76
|
+
className: classnames('byline-alert-icon', alert_module.icon)
|
|
77
77
|
}),
|
|
78
78
|
/*#__PURE__*/ jsx("div", {
|
|
79
|
-
className: classnames('
|
|
79
|
+
className: classnames('byline-alert-content', alert_module.content),
|
|
80
80
|
children: children
|
|
81
81
|
}),
|
|
82
82
|
true === close && /*#__PURE__*/ jsx(Button, {
|
|
83
83
|
intent: intent,
|
|
84
84
|
variant: "filled",
|
|
85
85
|
"aria-label": "Close",
|
|
86
|
-
className: classnames('
|
|
86
|
+
className: classnames('byline-alert-close', alert_module.close),
|
|
87
87
|
type: "button",
|
|
88
88
|
onClick: handleOnClose,
|
|
89
89
|
...rest,
|
|
@@ -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(.alert-dXimWG, .
|
|
4
|
+
:is(.alert-dXimWG, .byline-alert) {
|
|
5
5
|
align-items: start;
|
|
6
6
|
gap: var(--gap-2);
|
|
7
7
|
border-radius: var(--border-radius-md);
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
display: flex;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
:is(.alert-with-title-SylcSu, .
|
|
20
|
+
:is(.alert-with-title-SylcSu, .byline-alert-with-title) {
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
width: 100%;
|
|
23
23
|
display: flex;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
:is(.icon-RcHAGq, .
|
|
26
|
+
:is(.icon-RcHAGq, .byline-alert-icon) {
|
|
27
27
|
justify-content: center;
|
|
28
28
|
align-items: center;
|
|
29
29
|
width: 24px;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
display: flex;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
:is(.close-BUVZO7, .
|
|
36
|
+
:is(.close-BUVZO7, .byline-alert-close) {
|
|
37
37
|
border-radius: 100%;
|
|
38
38
|
justify-content: center;
|
|
39
39
|
align-items: center;
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
:is(.fade-VGuhOJ, .
|
|
50
|
+
:is(.fade-VGuhOJ, .byline-alert-fade) {
|
|
51
51
|
opacity: 0;
|
|
52
52
|
transition: opacity .4s ease-in-out;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
:is(.header-y_AKgG, .
|
|
55
|
+
:is(.header-y_AKgG, .byline-alert-header) {
|
|
56
56
|
width: 100%;
|
|
57
57
|
margin-bottom: var(--spacing-8);
|
|
58
58
|
align-items: start;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
display: flex;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
:is(.title-M6aCqW, .
|
|
63
|
+
:is(.title-M6aCqW, .byline-alert-title) {
|
|
64
64
|
padding-top: 1px;
|
|
65
65
|
font-size: 1.2rem;
|
|
66
66
|
font-weight: bold;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
display: flex;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
:is(.content-oyoXMS, .
|
|
71
|
+
:is(.content-oyoXMS, .byline-alert-content) {
|
|
72
72
|
font-size: var(--font-size-sm);
|
|
73
73
|
padding-top: 1px;
|
|
74
74
|
}
|
|
@@ -77,41 +77,41 @@
|
|
|
77
77
|
margin-top: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
.byline-alert-content:first-child {
|
|
81
81
|
margin-top: 0;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
:is(.primary-Y1uhvt, .
|
|
84
|
+
:is(.primary-Y1uhvt, .byline-alert-primary) {
|
|
85
85
|
--alert-border: var(--stroke-primary);
|
|
86
86
|
--alert-background: var(--fill-primary-weak);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
:is(.secondary-A_6wDq, .
|
|
89
|
+
:is(.secondary-A_6wDq, .byline-alert-secondary) {
|
|
90
90
|
--alert-border: var(--stroke-secondary);
|
|
91
91
|
--alert-background: var(--fill-secondary-weak);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
:is(.noeffect-4mzRDQ, .
|
|
94
|
+
:is(.noeffect-4mzRDQ, .byline-alert-noeffect) {
|
|
95
95
|
--alert-border: var(--stroke-noeffect);
|
|
96
96
|
--alert-background: var(--fill-noeffect-weak);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
:is(.success-FCgDMo, .
|
|
99
|
+
:is(.success-FCgDMo, .byline-alert-success) {
|
|
100
100
|
--alert-border: var(--stroke-success);
|
|
101
101
|
--alert-background: var(--fill-success-weak);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
:is(.info-KZnWBW, .
|
|
104
|
+
:is(.info-KZnWBW, .byline-alert-info) {
|
|
105
105
|
--alert-border: var(--stroke-info);
|
|
106
106
|
--alert-background: var(--fill-info-weak);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
:is(.warning-UtouDH, .
|
|
109
|
+
:is(.warning-UtouDH, .byline-alert-warning) {
|
|
110
110
|
--alert-border: var(--stroke-warning);
|
|
111
111
|
--alert-background: var(--fill-warning-weak);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
:is(.danger-QFtDqI, .
|
|
114
|
+
:is(.danger-QFtDqI, .byline-alert-danger) {
|
|
115
115
|
--alert-border: var(--stroke-danger);
|
|
116
116
|
--alert-background: var(--fill-danger-weak);
|
|
117
117
|
}
|
|
@@ -30,7 +30,7 @@ function ToastViewport({ position = 'bottom-right', className }) {
|
|
|
30
30
|
const { toasts } = Toast.useToastManager();
|
|
31
31
|
return /*#__PURE__*/ jsx(Toast.Portal, {
|
|
32
32
|
children: /*#__PURE__*/ jsx(Toast.Viewport, {
|
|
33
|
-
className: classnames('
|
|
33
|
+
className: classnames('byline-toast-viewport', toast_module.viewport, toast_module[position], className),
|
|
34
34
|
children: toasts.map((toast)=>/*#__PURE__*/ jsx(ToastItem, {
|
|
35
35
|
toast: toast
|
|
36
36
|
}, toast.id))
|
|
@@ -48,12 +48,12 @@ function ToastItem({ toast }) {
|
|
|
48
48
|
return /*#__PURE__*/ jsx(Toast.Root, {
|
|
49
49
|
toast: toast,
|
|
50
50
|
swipeDirection: swipeDirection,
|
|
51
|
-
className: classnames('
|
|
51
|
+
className: classnames('byline-toast', toast_module.root),
|
|
52
52
|
children: /*#__PURE__*/ jsxs(Toast.Content, {
|
|
53
|
-
className: classnames('
|
|
53
|
+
className: classnames('byline-toast-content', toast_module.content),
|
|
54
54
|
children: [
|
|
55
55
|
/*#__PURE__*/ jsxs("div", {
|
|
56
|
-
className: classnames('
|
|
56
|
+
className: classnames('byline-toast-header', toast_module.header),
|
|
57
57
|
children: [
|
|
58
58
|
/*#__PURE__*/ jsx("time", {
|
|
59
59
|
dateTime: eventDateRef.current.toISOString(),
|
|
@@ -70,7 +70,7 @@ function ToastItem({ toast }) {
|
|
|
70
70
|
tabIndex: 0,
|
|
71
71
|
variant: "filled",
|
|
72
72
|
"aria-label": "Close",
|
|
73
|
-
className: classnames('
|
|
73
|
+
className: classnames('byline-toast-close', toast_module.close),
|
|
74
74
|
type: "button"
|
|
75
75
|
}),
|
|
76
76
|
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
@@ -81,14 +81,14 @@ function ToastItem({ toast }) {
|
|
|
81
81
|
]
|
|
82
82
|
}),
|
|
83
83
|
/*#__PURE__*/ jsxs(Toast.Title, {
|
|
84
|
-
className: classnames('
|
|
84
|
+
className: classnames('byline-toast-title', toast_module.title),
|
|
85
85
|
children: [
|
|
86
86
|
icon && Icon && /*#__PURE__*/ jsx(Icon, {}),
|
|
87
87
|
toast.title
|
|
88
88
|
]
|
|
89
89
|
}),
|
|
90
90
|
/*#__PURE__*/ jsx(Toast.Description, {
|
|
91
|
-
className: classnames("
|
|
91
|
+
className: classnames("byline-toast-description", toast_module.description),
|
|
92
92
|
children: toast.description
|
|
93
93
|
})
|
|
94
94
|
]
|
|
@@ -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(.viewport-x4CvHl, .
|
|
4
|
+
:is(.viewport-x4CvHl, .byline-toast-viewport) {
|
|
5
5
|
--viewport-padding: 16px;
|
|
6
6
|
z-index: var(--z-index-toast);
|
|
7
7
|
outline: none;
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
position: fixed;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
:is(.top-left-dy_IMc, .
|
|
14
|
+
:is(.top-left-dy_IMc, .byline-toast-top-left), :is(.top-right-OsKbVb, .byline-toast-top-right) {
|
|
15
15
|
top: 88px;
|
|
16
16
|
right: var(--viewport-padding);
|
|
17
17
|
left: var(--viewport-padding);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
:is(.bottom-left-_RdEZn, .
|
|
20
|
+
:is(.bottom-left-_RdEZn, .byline-toast-bottom-left), :is(.bottom-right-Nzuhur, .byline-toast-bottom-right) {
|
|
21
21
|
bottom: var(--viewport-padding);
|
|
22
22
|
right: var(--viewport-padding);
|
|
23
23
|
left: var(--viewport-padding);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@media (min-width: 48rem) {
|
|
27
|
-
:is(.bottom-right-Nzuhur, .
|
|
27
|
+
:is(.bottom-right-Nzuhur, .byline-toast-bottom-right) {
|
|
28
28
|
bottom: var(--viewport-padding);
|
|
29
29
|
right: var(--viewport-padding);
|
|
30
30
|
width: 100%;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
left: auto;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:is(.bottom-left-_RdEZn, .
|
|
35
|
+
:is(.bottom-left-_RdEZn, .byline-toast-bottom-left) {
|
|
36
36
|
bottom: var(--viewport-padding);
|
|
37
37
|
left: var(--viewport-padding);
|
|
38
38
|
width: 100%;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
right: auto;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
:is(.top-left-dy_IMc, .
|
|
43
|
+
:is(.top-left-dy_IMc, .byline-toast-top-left) {
|
|
44
44
|
top: 88px;
|
|
45
45
|
left: var(--viewport-padding);
|
|
46
46
|
width: 100%;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
right: auto;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:is(.top-right-OsKbVb, .
|
|
52
|
+
:is(.top-right-OsKbVb, .byline-toast-top-right) {
|
|
53
53
|
top: 88px;
|
|
54
54
|
right: var(--viewport-padding);
|
|
55
55
|
width: 100%;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
:is(.root-dWN7jD, .
|
|
62
|
+
:is(.root-dWN7jD, .byline-toast-root) {
|
|
63
63
|
gap: var(--gap-1);
|
|
64
64
|
background: var(--surface-panel-elevated);
|
|
65
65
|
border-width: var(--border-width-thin);
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
.byline-toast-root[data-starting-style] {
|
|
85
85
|
opacity: 0;
|
|
86
86
|
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
87
87
|
}
|
|
@@ -92,12 +92,13 @@
|
|
|
92
92
|
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.
|
|
95
|
+
.byline-toast-viewport.top-right .byline-toast-root[data-starting-style] {
|
|
96
96
|
opacity: 0;
|
|
97
97
|
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.
|
|
100
|
+
.byline-toast-viewport.bottom-right
|
|
101
|
+
.byline-toast-root[data-starting-style] {
|
|
101
102
|
opacity: 0;
|
|
102
103
|
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
103
104
|
}
|
|
@@ -107,12 +108,12 @@
|
|
|
107
108
|
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
108
109
|
}
|
|
109
110
|
|
|
110
|
-
.
|
|
111
|
+
.byline-toast-viewport.top-left .byline-toast-root[data-starting-style] {
|
|
111
112
|
opacity: 0;
|
|
112
113
|
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
.
|
|
116
|
+
.byline-toast-viewport.bottom-left .byline-toast-root[data-starting-style] {
|
|
116
117
|
opacity: 0;
|
|
117
118
|
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
118
119
|
}
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
opacity: 0;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
.
|
|
126
|
+
.byline-toast-root[data-ending-style] {
|
|
126
127
|
opacity: 0;
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) + 100% + var(--viewport-padding)));
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
.
|
|
134
|
+
.byline-toast-root[data-ending-style][data-swipe-direction="right"] {
|
|
134
135
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) + 100% + var(--viewport-padding)));
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) - 100% - var(--viewport-padding)));
|
|
139
140
|
}
|
|
140
141
|
|
|
141
|
-
.
|
|
142
|
+
.byline-toast-root[data-ending-style][data-swipe-direction="left"] {
|
|
142
143
|
transform: translateX(calc(var(--toast-swipe-movement-x, 0) - 100% - var(--viewport-padding)));
|
|
143
144
|
}
|
|
144
145
|
|
|
@@ -146,17 +147,17 @@
|
|
|
146
147
|
transform: translateY(calc(var(--toast-swipe-movement-y, 0) + 150%));
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
.
|
|
150
|
+
.byline-toast-root[data-ending-style][data-swipe-direction="down"] {
|
|
150
151
|
transform: translateY(calc(var(--toast-swipe-movement-y, 0) + 150%));
|
|
151
152
|
}
|
|
152
153
|
|
|
153
|
-
:is(.content-o83ZAp, .
|
|
154
|
+
:is(.content-o83ZAp, .byline-toast-content) {
|
|
154
155
|
gap: var(--gap-1);
|
|
155
156
|
flex-direction: column;
|
|
156
157
|
display: flex;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
:is(.header-ItoxDs, .
|
|
160
|
+
:is(.header-ItoxDs, .byline-toast-header) {
|
|
160
161
|
align-items: start;
|
|
161
162
|
gap: var(--gap-2);
|
|
162
163
|
justify-content: space-between;
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
display: flex;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
:is(.close-HwTMjn, .
|
|
168
|
+
:is(.close-HwTMjn, .byline-toast-close) {
|
|
168
169
|
border-radius: 100%;
|
|
169
170
|
justify-content: center;
|
|
170
171
|
align-items: center;
|
|
@@ -182,11 +183,11 @@
|
|
|
182
183
|
fill: #fff;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
|
-
.
|
|
186
|
+
.byline-toast-close svg {
|
|
186
187
|
fill: #fff;
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
:is(.title-qfQE8M, .
|
|
190
|
+
:is(.title-qfQE8M, .byline-toast-title) {
|
|
190
191
|
align-items: start;
|
|
191
192
|
gap: var(--gap-2);
|
|
192
193
|
margin-bottom: 5px;
|
|
@@ -196,14 +197,14 @@
|
|
|
196
197
|
display: flex;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
:is(.description-nQWtgX, .
|
|
200
|
+
:is(.description-nQWtgX, .byline-toast-description) {
|
|
200
201
|
font-size: var(--font-size-sm);
|
|
201
202
|
margin: 0;
|
|
202
203
|
padding: 0 8px 0 12px;
|
|
203
204
|
line-height: 1.3;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
:is(.action-PunqB2, .
|
|
207
|
+
:is(.action-PunqB2, .byline-toast-action) {
|
|
207
208
|
justify-content: end;
|
|
208
209
|
padding: 0 12px;
|
|
209
210
|
display: flex;
|