@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
|
@@ -73,6 +73,9 @@ function Search({ variant, inputSize, inputClassName, intent, className, onClear
|
|
|
73
73
|
role: "button",
|
|
74
74
|
intent: "noeffect",
|
|
75
75
|
variant: "text",
|
|
76
|
+
style: {
|
|
77
|
+
outline: 'none'
|
|
78
|
+
},
|
|
76
79
|
ripple: false,
|
|
77
80
|
"arial-label": ariaLabelForSearch,
|
|
78
81
|
size: "xs",
|
|
@@ -90,6 +93,9 @@ function Search({ variant, inputSize, inputClassName, intent, className, onClear
|
|
|
90
93
|
children: /*#__PURE__*/ jsx(IconButton, {
|
|
91
94
|
role: "button",
|
|
92
95
|
intent: "noeffect",
|
|
96
|
+
style: {
|
|
97
|
+
outline: 'none'
|
|
98
|
+
},
|
|
93
99
|
variant: "text",
|
|
94
100
|
"arial-label": ariaLabelForClear,
|
|
95
101
|
size: "xs",
|
|
@@ -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(.timeline-qJOU85, .
|
|
4
|
+
:is(.timeline-qJOU85, .byline-timeline) {
|
|
5
5
|
margin-left: var(--spacing-8);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
:is(.timeline-root-kIek3q, .
|
|
8
|
+
:is(.timeline-root-kIek3q, .byline-timeline-root) {
|
|
9
9
|
margin-left: var(--spacing-8);
|
|
10
10
|
padding-left: var(--spacing-8);
|
|
11
11
|
border-left-width: var(--border-width-thin);
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
position: relative;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
:is(.timeline-item-VoOzOk, .
|
|
18
|
+
:is(.timeline-item-VoOzOk, .byline-timeline-item) {
|
|
19
19
|
margin: 0 0 var(--spacing-16) var(--spacing-20);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
:is(.timeline-icon-xO1p1F, .
|
|
22
|
+
:is(.timeline-icon-xO1p1F, .byline-timeline-icon) {
|
|
23
23
|
color: #fff;
|
|
24
24
|
background-color: var(--primary-600);
|
|
25
25
|
border-width: 6px;
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
display: block;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.
|
|
44
|
+
.byline-timeline-icon svg {
|
|
45
45
|
color: #fff;
|
|
46
46
|
width: 60%;
|
|
47
47
|
display: block;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
:is(.timeline-heading-bPWlJ4, .
|
|
50
|
+
:is(.timeline-heading-bPWlJ4, .byline-timeline-heading) {
|
|
51
51
|
font-size: 1.5rem;
|
|
52
52
|
line-height: 1.2;
|
|
53
53
|
font-weight: var(--font-weight-semibold);
|
|
54
54
|
margin: 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
:is(.timeline-date-U7Pr_G, .
|
|
57
|
+
:is(.timeline-date-U7Pr_G, .byline-timeline-date) {
|
|
58
58
|
margin-top: var(--spacing-8);
|
|
59
59
|
margin-bottom: var(--spacing-8);
|
|
60
60
|
font-size: .9em;
|
|
@@ -64,19 +64,19 @@
|
|
|
64
64
|
display: block;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
:is(.timeline-content-rwFfPc, .
|
|
67
|
+
:is(.timeline-content-rwFfPc, .byline-timeline-content) {
|
|
68
68
|
margin: 0;
|
|
69
69
|
margin-bottom: var(--spacing-16);
|
|
70
70
|
font-size: 1.125rem;
|
|
71
71
|
font-weight: var(--font-weight-normal);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
:is(.timeline-content-rwFfPc, .
|
|
74
|
+
:is(.timeline-content-rwFfPc, .byline-timeline-content) p {
|
|
75
75
|
margin: 0;
|
|
76
76
|
margin-bottom: var(--spacing-16);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
:is(:is(.dark, [data-theme="dark"]) .
|
|
79
|
+
:is(:is(.dark, [data-theme="dark"]) .byline-timeline-icon, :is(.dark, [data-theme="dark"]) .timeline-icon-xO1p1F) {
|
|
80
80
|
border-color: var(--canvas-600);
|
|
81
81
|
}
|
|
82
82
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.11.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-diff-viewer-continued": "^4.2.2",
|
|
66
66
|
"zod": "^4.4.3",
|
|
67
67
|
"zod-form-data": "^3.0.1",
|
|
68
|
-
"@byline/
|
|
69
|
-
"@byline/
|
|
70
|
-
"@byline/core": "1.
|
|
68
|
+
"@byline/client": "1.11.0",
|
|
69
|
+
"@byline/admin": "1.11.0",
|
|
70
|
+
"@byline/core": "1.11.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^19.0.0",
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
byline-utilities;
|
|
11
11
|
@layer byline-components {
|
|
12
12
|
.item,
|
|
13
|
-
:global(.
|
|
13
|
+
:global(.byline-accordion-item) {
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
margin-top: 1px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.header,
|
|
19
|
-
:global(.
|
|
19
|
+
:global(.byline-accordion-header) {
|
|
20
20
|
margin: 0;
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.trigger,
|
|
25
|
-
:global(.
|
|
25
|
+
:global(.byline-accordion-trigger) {
|
|
26
26
|
display: flex;
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
align-items: center;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.content,
|
|
33
|
-
:global(.
|
|
33
|
+
:global(.byline-accordion-content) {
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
|
|
36
36
|
&[data-open] {
|
|
@@ -28,7 +28,7 @@ const Root = ({
|
|
|
28
28
|
return (
|
|
29
29
|
<AccordionPrimitive.Root
|
|
30
30
|
ref={ref}
|
|
31
|
-
className={cx('
|
|
31
|
+
className={cx('byline-accordion-root', className)}
|
|
32
32
|
{...props}
|
|
33
33
|
>
|
|
34
34
|
{children}
|
|
@@ -47,7 +47,7 @@ const Item = function AccordionItem({
|
|
|
47
47
|
}) {
|
|
48
48
|
return (
|
|
49
49
|
<AccordionPrimitive.Item
|
|
50
|
-
className={cx('
|
|
50
|
+
className={cx('byline-accordion-item', className)}
|
|
51
51
|
{...props}
|
|
52
52
|
ref={ref}
|
|
53
53
|
>
|
|
@@ -67,7 +67,7 @@ const Header = function AccordionHeader({
|
|
|
67
67
|
}) {
|
|
68
68
|
return (
|
|
69
69
|
<AccordionPrimitive.Header
|
|
70
|
-
className={cx('
|
|
70
|
+
className={cx('byline-accordion-header', className)}
|
|
71
71
|
{...props}
|
|
72
72
|
ref={ref}
|
|
73
73
|
>
|
|
@@ -88,7 +88,7 @@ const Trigger = function AccordionTrigger({
|
|
|
88
88
|
return (
|
|
89
89
|
<AccordionPrimitive.Trigger
|
|
90
90
|
ref={ref}
|
|
91
|
-
className={cx('
|
|
91
|
+
className={cx('byline-accordion-trigger', styles.trigger, className)}
|
|
92
92
|
{...props}
|
|
93
93
|
>
|
|
94
94
|
{children}
|
|
@@ -107,7 +107,7 @@ const Panel = function AccordionPanel({
|
|
|
107
107
|
}) {
|
|
108
108
|
return (
|
|
109
109
|
<AccordionPrimitive.Panel
|
|
110
|
-
className={cx('
|
|
110
|
+
className={cx('byline-accordion-content', styles.content, className)}
|
|
111
111
|
{...props}
|
|
112
112
|
ref={ref}
|
|
113
113
|
>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
/* relative inline-flex h-10 w-10 rounded-full */
|
|
14
14
|
.avatar-root,
|
|
15
|
-
:global(.
|
|
15
|
+
:global(.byline-avatar-root) {
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
height: 100%;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.avatar-image,
|
|
24
|
-
:global(.
|
|
24
|
+
:global(.byline-avatar-image) {
|
|
25
25
|
height: 100%;
|
|
26
26
|
width: 100%;
|
|
27
27
|
border-radius: 50%;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.avatar-fallback,
|
|
32
|
-
:global(.
|
|
32
|
+
:global(.byline-avatar-fallback) {
|
|
33
33
|
display: flex;
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: 100%;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.avatar-text,
|
|
43
|
-
:global(.
|
|
43
|
+
:global(.byline-avatar-text) {
|
|
44
44
|
font-size: var(--font-size-sm);
|
|
45
45
|
font-weight: var(--font-weight-medium);
|
|
46
46
|
text-transform: uppercase;
|
|
@@ -11,17 +11,17 @@ const url = 'https://picsum.photos/150'
|
|
|
11
11
|
|
|
12
12
|
export const Avatar = ({ initials }: { initials: string }): React.JSX.Element => {
|
|
13
13
|
return (
|
|
14
|
-
<AvatarPrimitive.Root className={cx('
|
|
14
|
+
<AvatarPrimitive.Root className={cx('byline-avatar-root', styles['avatar-root'])}>
|
|
15
15
|
<AvatarPrimitive.Image
|
|
16
16
|
src={url}
|
|
17
17
|
alt="Avatar"
|
|
18
|
-
className={cx('
|
|
18
|
+
className={cx('byline-avatar-image', styles['avatar-image'])}
|
|
19
19
|
/>
|
|
20
20
|
<AvatarPrimitive.Fallback
|
|
21
|
-
className={cx('
|
|
21
|
+
className={cx('byline-avatar-fallback', styles['avatar-fallback'])}
|
|
22
22
|
delay={600}
|
|
23
23
|
>
|
|
24
|
-
<span className={cx('
|
|
24
|
+
<span className={cx('byline-avatar-text', styles['avatar-text'])}>{initials}</span>
|
|
25
25
|
</AvatarPrimitive.Fallback>
|
|
26
26
|
</AvatarPrimitive.Root>
|
|
27
27
|
)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.badge,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-badge) {
|
|
15
15
|
display: inline-block;
|
|
16
16
|
padding: 0.25em 0.4em;
|
|
17
17
|
font-size: var(--font-size-sm);
|
|
@@ -24,43 +24,43 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.primary,
|
|
27
|
-
:global(.
|
|
27
|
+
:global(.byline-badge-primary) {
|
|
28
28
|
color: var(--text-on-primary-strong);
|
|
29
29
|
background-color: var(--fill-primary-strong);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.secondary,
|
|
33
|
-
:global(.
|
|
33
|
+
:global(.byline-badge-secondary) {
|
|
34
34
|
color: var(--text-on-secondary-strong);
|
|
35
35
|
background-color: var(--fill-secondary-strong);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.noeffect,
|
|
39
|
-
:global(.
|
|
39
|
+
:global(.byline-badge-noeffect) {
|
|
40
40
|
color: var(--text-on-noeffect-strong);
|
|
41
41
|
background-color: var(--fill-noeffect-strong);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.success,
|
|
45
|
-
:global(.
|
|
45
|
+
:global(.byline-badge-success) {
|
|
46
46
|
color: var(--text-on-success-strong);
|
|
47
47
|
background-color: var(--fill-success-strong);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.info,
|
|
51
|
-
:global(.
|
|
51
|
+
:global(.byline-badge-info) {
|
|
52
52
|
color: var(--text-on-info-strong);
|
|
53
53
|
background-color: var(--fill-info-strong);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.warning,
|
|
57
|
-
:global(.
|
|
57
|
+
:global(.byline-badge-warning) {
|
|
58
58
|
color: var(--text-on-warning-strong);
|
|
59
59
|
background-color: var(--fill-warning-strong);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.danger,
|
|
63
|
-
:global(.
|
|
63
|
+
:global(.byline-badge-danger) {
|
|
64
64
|
color: var(--text-on-danger-strong);
|
|
65
65
|
background-color: var(--fill-danger-strong);
|
|
66
66
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
byline-utilities;
|
|
11
11
|
@layer byline-components {
|
|
12
12
|
.button-group,
|
|
13
|
-
:global(.
|
|
13
|
+
:global(.byline-button-group) {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-items: center;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
@media screen and (min-width: 40rem) {
|
|
22
22
|
.button-group,
|
|
23
|
-
:global(.
|
|
23
|
+
:global(.byline-button-group) {
|
|
24
24
|
flex-direction: row;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.button,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-button) {
|
|
15
15
|
border: none;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
font-weight: normal;
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
|
|
33
33
|
.button:disabled,
|
|
34
34
|
.button[disabled],
|
|
35
|
-
:global(.
|
|
36
|
-
:global(.
|
|
35
|
+
:global(.byline-button):disabled,
|
|
36
|
+
:global(.byline-button)[disabled] {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.button:focus,
|
|
41
41
|
.button:active,
|
|
42
|
-
:global(.
|
|
43
|
-
:global(.
|
|
42
|
+
:global(.byline-button):focus,
|
|
43
|
+
:global(.byline-button):active {
|
|
44
44
|
outline-color: var(--ring-color);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.button.square,
|
|
48
|
-
:global(.
|
|
48
|
+
:global(.byline-button-square) {
|
|
49
49
|
aspect-ratio: 1 / 1;
|
|
50
50
|
padding: 0;
|
|
51
51
|
border-radius: var(--border-radius-sm);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.button.round,
|
|
55
|
-
:global(.
|
|
55
|
+
:global(.byline-button-round) {
|
|
56
56
|
aspect-ratio: 1 / 1;
|
|
57
57
|
padding: 0;
|
|
58
58
|
border-radius: var(--border-radius-full);
|
|
@@ -60,35 +60,35 @@
|
|
|
60
60
|
|
|
61
61
|
/* Sizes */
|
|
62
62
|
.xs,
|
|
63
|
-
:global(.
|
|
63
|
+
:global(.byline-button-xs) {
|
|
64
64
|
min-height: 26px;
|
|
65
65
|
font-size: 0.7rem;
|
|
66
66
|
padding: 0.2rem 0.4rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.sm,
|
|
70
|
-
:global(.
|
|
70
|
+
:global(.byline-button-sm) {
|
|
71
71
|
min-height: 32px;
|
|
72
72
|
font-size: 0.775rem;
|
|
73
73
|
padding: 0.25rem 0.5rem;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.md,
|
|
77
|
-
:global(.
|
|
77
|
+
:global(.byline-button-md) {
|
|
78
78
|
min-height: 38px;
|
|
79
79
|
font-size: 0.95rem;
|
|
80
80
|
padding: 0.625rem 1.25rem;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.lg,
|
|
84
|
-
:global(.
|
|
84
|
+
:global(.byline-button-lg) {
|
|
85
85
|
min-height: 46px;
|
|
86
86
|
font-size: 1.1rem;
|
|
87
87
|
padding: 0.75rem 1.5rem;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.xl,
|
|
91
|
-
:global(.
|
|
91
|
+
:global(.byline-button-xl) {
|
|
92
92
|
min-height: 54px;
|
|
93
93
|
font-size: 1.2rem;
|
|
94
94
|
padding: 0.75rem 1.5rem;
|
|
@@ -96,27 +96,27 @@
|
|
|
96
96
|
|
|
97
97
|
/* Variants - Consuming Variables */
|
|
98
98
|
.filled,
|
|
99
|
-
:global(.
|
|
99
|
+
:global(.byline-button-filled) {
|
|
100
100
|
color: var(--button-variant-filled-foreground);
|
|
101
101
|
background-color: var(--button-variant-filled);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.filled:hover,
|
|
105
|
-
:global(.
|
|
105
|
+
:global(.byline-button-filled):hover {
|
|
106
106
|
background-color: var(--button-variant-filled-hover);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.filled:focus,
|
|
110
110
|
.filled:active,
|
|
111
|
-
:global(.
|
|
112
|
-
:global(.
|
|
111
|
+
:global(.byline-button-filled):focus,
|
|
112
|
+
:global(.byline-button-filled):active {
|
|
113
113
|
--ring-color: var(--button-ring-color);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.filled:disabled,
|
|
117
117
|
.filled[disabled],
|
|
118
|
-
:global(.
|
|
119
|
-
:global(.
|
|
118
|
+
:global(.byline-button-filled):disabled,
|
|
119
|
+
:global(.byline-button-filled)[disabled] {
|
|
120
120
|
background-color: var(
|
|
121
121
|
--button-variant-filled-disabled,
|
|
122
122
|
oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * 0.85) h)
|
|
@@ -131,27 +131,27 @@
|
|
|
131
131
|
/* Weak variant for close button on selected button */
|
|
132
132
|
|
|
133
133
|
.filled-weak,
|
|
134
|
-
:global(.
|
|
134
|
+
:global(.byline-button-filled-weak) {
|
|
135
135
|
color: var(--button-variant-filled-weak-foreground);
|
|
136
136
|
background-color: var(--button-variant-filled-weak);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.filled-weak:hover,
|
|
140
|
-
:global(.
|
|
140
|
+
:global(.byline-button-filled-weak):hover {
|
|
141
141
|
background-color: var(--button-variant-filled-weak-hover);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.filled-weak:focus,
|
|
145
145
|
.filled-weak:active,
|
|
146
|
-
:global(.
|
|
147
|
-
:global(.
|
|
146
|
+
:global(.byline-button-filled-weak):focus,
|
|
147
|
+
:global(.byline-button-filled-weak):active {
|
|
148
148
|
--ring-color: var(--button-ring-color);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.filled-weak:disabled,
|
|
152
152
|
.filled-weak[disabled],
|
|
153
|
-
:global(.
|
|
154
|
-
:global(.
|
|
153
|
+
:global(.byline-button-filled-weak):disabled,
|
|
154
|
+
:global(.byline-button-filled-weak)[disabled] {
|
|
155
155
|
background-color: var(
|
|
156
156
|
--button-variant-filled-weak-disabled,
|
|
157
157
|
oklch(from var(--button-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h)
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.outlined,
|
|
166
|
-
:global(.
|
|
166
|
+
:global(.byline-button-outlined) {
|
|
167
167
|
border: 1px solid var(--button-variant-outlined-border);
|
|
168
168
|
color: var(--button-variant-outlined-foreground);
|
|
169
169
|
background-color: var(--button-variant-outlined);
|
|
@@ -171,8 +171,8 @@
|
|
|
171
171
|
|
|
172
172
|
.outlined:disabled,
|
|
173
173
|
.outlined[disabled],
|
|
174
|
-
:global(.
|
|
175
|
-
:global(.
|
|
174
|
+
:global(.byline-button-outlined):disabled,
|
|
175
|
+
:global(.byline-button-outlined)[disabled] {
|
|
176
176
|
border-color: var(
|
|
177
177
|
--button-variant-outlined-border-disabled,
|
|
178
178
|
oklch(from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h)
|
|
@@ -184,19 +184,19 @@
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.outlined:hover,
|
|
187
|
-
:global(.
|
|
187
|
+
:global(.byline-button-outlined):hover {
|
|
188
188
|
background-color: var(--button-variant-outlined-hover);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.outlined:focus,
|
|
192
192
|
.outlined:active,
|
|
193
|
-
:global(.
|
|
194
|
-
:global(.
|
|
193
|
+
:global(.byline-button-outlined):focus,
|
|
194
|
+
:global(.byline-button-outlined):active {
|
|
195
195
|
--ring-color: var(--button-ring-color);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.gradient,
|
|
199
|
-
:global(.
|
|
199
|
+
:global(.byline-button-gradient) {
|
|
200
200
|
color: var(--button-variant-gradient-foreground);
|
|
201
201
|
background: linear-gradient(
|
|
202
202
|
45deg,
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
|
|
208
208
|
.gradient:disabled,
|
|
209
209
|
.gradient[disabled],
|
|
210
|
-
:global(.
|
|
211
|
-
:global(.
|
|
210
|
+
:global(.byline-button-gradient):disabled,
|
|
211
|
+
:global(.byline-button-gradient)[disabled] {
|
|
212
212
|
background: unset;
|
|
213
213
|
background-color: var(
|
|
214
214
|
--button-variant-gradient-disabled,
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.gradient:hover,
|
|
224
|
-
:global(.
|
|
224
|
+
:global(.byline-button-gradient):hover {
|
|
225
225
|
color: var(--button-variant-gradient-foreground);
|
|
226
226
|
background: linear-gradient(
|
|
227
227
|
45deg,
|
|
@@ -232,39 +232,39 @@
|
|
|
232
232
|
|
|
233
233
|
.gradient:focus,
|
|
234
234
|
.gradient:active,
|
|
235
|
-
:global(.
|
|
236
|
-
:global(.
|
|
235
|
+
:global(.byline-button-gradient):focus,
|
|
236
|
+
:global(.byline-button-gradient):active {
|
|
237
237
|
--ring-color: var(--button-ring-color);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.text,
|
|
241
|
-
:global(.
|
|
241
|
+
:global(.byline-button-text) {
|
|
242
242
|
background-color: var(--button-variant-text);
|
|
243
243
|
color: var(--button-variant-text-foreground);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.text:disabled,
|
|
247
247
|
.text[disabled],
|
|
248
|
-
:global(.
|
|
249
|
-
:global(.
|
|
248
|
+
:global(.byline-button-text):disabled,
|
|
249
|
+
:global(.byline-button-text)[disabled] {
|
|
250
250
|
color: oklch(from var(--button-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
.text:hover,
|
|
254
|
-
:global(.
|
|
254
|
+
:global(.byline-button-text):hover {
|
|
255
255
|
background-color: var(--button-variant-text-hover);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.text:focus,
|
|
259
259
|
.text:active,
|
|
260
|
-
:global(.
|
|
261
|
-
:global(.
|
|
260
|
+
:global(.byline-button-text):focus,
|
|
261
|
+
:global(.byline-button-text):active {
|
|
262
262
|
--ring-color: var(--button-ring-color);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/* Intents - Defining Variables */
|
|
266
266
|
.primary,
|
|
267
|
-
:global(.
|
|
267
|
+
:global(.byline-button-primary) {
|
|
268
268
|
--button-ring-color: var(--ring-primary);
|
|
269
269
|
|
|
270
270
|
/* Filled */
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.secondary,
|
|
306
|
-
:global(.
|
|
306
|
+
:global(.byline-button-secondary) {
|
|
307
307
|
--button-ring-color: var(--ring-secondary);
|
|
308
308
|
|
|
309
309
|
/* Filled */
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
.noeffect,
|
|
345
|
-
:global(.
|
|
345
|
+
:global(.byline-button-noeffect) {
|
|
346
346
|
--button-ring-color: var(--ring-noeffect);
|
|
347
347
|
|
|
348
348
|
/* Filled */
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
.success,
|
|
385
|
-
:global(.
|
|
385
|
+
:global(.byline-button-success) {
|
|
386
386
|
--button-ring-color: var(--ring-success);
|
|
387
387
|
|
|
388
388
|
/* Filled */
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
.info,
|
|
424
|
-
:global(.
|
|
424
|
+
:global(.byline-button-info) {
|
|
425
425
|
--button-ring-color: var(--ring-info);
|
|
426
426
|
|
|
427
427
|
/* Filled */
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.warning,
|
|
463
|
-
:global(.
|
|
463
|
+
:global(.byline-button-warning) {
|
|
464
464
|
--button-ring-color: var(--ring-warning);
|
|
465
465
|
|
|
466
466
|
/* Filled */
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
.danger,
|
|
502
|
-
:global(.
|
|
502
|
+
:global(.byline-button-danger) {
|
|
503
503
|
--button-ring-color: var(--ring-danger);
|
|
504
504
|
|
|
505
505
|
/* Filled */
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
|
|
540
540
|
/* Full width */
|
|
541
541
|
.fullWidth,
|
|
542
|
-
:global(.
|
|
542
|
+
:global(.byline-button-full-width) {
|
|
543
543
|
width: 100%;
|
|
544
544
|
display: flex;
|
|
545
545
|
}
|
|
@@ -38,10 +38,10 @@ export const Button = ({
|
|
|
38
38
|
const defaultProps: Record<string, unknown> = {
|
|
39
39
|
type,
|
|
40
40
|
className: cx(
|
|
41
|
-
'
|
|
42
|
-
`
|
|
43
|
-
`
|
|
44
|
-
`
|
|
41
|
+
'byline-button',
|
|
42
|
+
`byline-button-${intent}`,
|
|
43
|
+
`byline-button-${variant}`,
|
|
44
|
+
`byline-button-${size}`,
|
|
45
45
|
styles.button,
|
|
46
46
|
styles[variant],
|
|
47
47
|
styles[size],
|