@byline/ui 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion_module.css +6 -6
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/avatar/avatar_module.css +4 -4
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/badge_module.css +8 -8
- package/dist/components/button/button-group_module.css +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button_module.css +46 -42
- package/dist/components/button/combo-button_module.css +6 -6
- package/dist/components/button/control-buttons.js +1 -1
- package/dist/components/button/control-buttons_module.css +1 -1
- package/dist/components/button/copy-button.js +2 -2
- package/dist/components/button/copy-button_module.css +7 -7
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card_module.css +9 -9
- package/dist/components/chips/chip.js +5 -5
- package/dist/components/chips/chip_module.css +41 -38
- package/dist/components/container/container.js +1 -1
- package/dist/components/container/container_module.css +4 -4
- package/dist/components/dropdown/dropdown.js +8 -8
- package/dist/components/dropdown/dropdown_module.css +8 -8
- package/dist/components/hamburger/hamburger.js +3 -3
- package/dist/components/hamburger/hamburger_module.css +16 -16
- package/dist/components/inputs/autocomplete.js +9 -9
- package/dist/components/inputs/autocomplete_module.css +36 -36
- package/dist/components/inputs/checkbox-group.js +1 -1
- package/dist/components/inputs/checkbox-group_module.css +1 -1
- package/dist/components/inputs/checkbox.js +5 -5
- package/dist/components/inputs/checkbox_module.css +31 -31
- package/dist/components/inputs/error-text_module.css +4 -4
- package/dist/components/inputs/help-text.js +1 -1
- package/dist/components/inputs/help-text_module.css +4 -4
- package/dist/components/inputs/input-adornment.js +1 -1
- package/dist/components/inputs/input-adornment_module.css +3 -3
- package/dist/components/inputs/input.js +5 -5
- package/dist/components/inputs/input_module.css +38 -38
- package/dist/components/inputs/label_module.css +2 -2
- package/dist/components/inputs/radio-group.js +1 -1
- package/dist/components/inputs/radio-group_module.css +18 -18
- package/dist/components/inputs/select.js +3 -3
- package/dist/components/inputs/select_module.css +8 -8
- package/dist/components/inputs/text-area.js +1 -1
- package/dist/components/inputs/text-area_module.css +3 -3
- package/dist/components/notifications/alert.js +10 -10
- package/dist/components/notifications/alert_module.css +16 -16
- package/dist/components/notifications/toast.js +7 -7
- package/dist/components/notifications/toast_module.css +25 -24
- package/dist/components/pager/pagination.js +2 -2
- package/dist/components/pager/pagination_module.css +6 -6
- package/dist/components/scroll-area/scroll-area.js +7 -7
- package/dist/components/scroll-area/scroll-area_module.css +9 -9
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/scroll-to-top/scroll-to-top_module.css +9 -9
- package/dist/components/section/section.js +1 -1
- package/dist/components/section/section_module.css +1 -1
- package/dist/components/shimmer/shimmer_module.css +6 -6
- package/dist/components/table/table.js +8 -8
- package/dist/components/table/table_module.css +15 -15
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/tabs/tabs_module.css +9 -9
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tooltip/tooltip_module.css +6 -6
- package/dist/fields/checkbox/checkbox-field.js +2 -1
- package/dist/fields/checkbox/checkbox-field.module.js +6 -0
- package/dist/fields/checkbox/checkbox-field_module.css +4 -0
- package/dist/forms/form-context.d.ts +1 -0
- package/dist/forms/form-context.js +3 -2
- package/dist/loaders/ellipses.js +2 -2
- package/dist/loaders/ellipses_module.css +2 -2
- package/dist/loaders/ring.js +2 -2
- package/dist/loaders/ring_module.css +2 -2
- package/dist/loaders/spinner.js +3 -3
- package/dist/loaders/spinner_module.css +3 -3
- package/dist/styles/styles.css +12 -0
- package/dist/widgets/datepicker/datepicker.js +11 -11
- package/dist/widgets/datepicker/datepicker_module.css +21 -21
- package/dist/widgets/drawer/drawer-container.js +1 -1
- package/dist/widgets/drawer/drawer-content.js +1 -1
- package/dist/widgets/drawer/drawer-header.js +1 -1
- package/dist/widgets/drawer/drawer-top-actions.js +1 -1
- package/dist/widgets/drawer/drawer.js +2 -2
- package/dist/widgets/drawer/drawer_module.css +11 -11
- package/dist/widgets/modal/modal-actions.js +1 -1
- package/dist/widgets/modal/modal-container.js +1 -1
- package/dist/widgets/modal/modal-content.js +1 -1
- package/dist/widgets/modal/modal-header.js +1 -1
- package/dist/widgets/modal/modal.js +2 -2
- package/dist/widgets/modal/modal_module.css +12 -12
- package/dist/widgets/search/search.js +6 -0
- package/dist/widgets/timeline/timeline_module.css +10 -10
- package/package.json +4 -4
- package/src/components/accordion/accordion.module.css +4 -4
- package/src/components/accordion/accordion.tsx +5 -5
- package/src/components/avatar/avatar.module.css +4 -4
- package/src/components/avatar/avatar.tsx +4 -4
- package/src/components/badge/badge.module.css +8 -8
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/button/button-group.module.css +2 -2
- package/src/components/button/button.module.css +162 -86
- package/src/components/button/button.tsx +4 -4
- package/src/components/button/combo-button.module.css +7 -7
- package/src/components/button/control-buttons.module.css +5 -5
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +7 -7
- package/src/components/button/copy-button.tsx +5 -5
- package/src/components/card/card.module.css +9 -9
- package/src/components/card/card.tsx +6 -6
- package/src/components/chips/chip.module.css +126 -71
- package/src/components/chips/chip.tsx +8 -12
- package/src/components/container/container.module.css +4 -4
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +7 -7
- package/src/components/dropdown/dropdown.tsx +8 -8
- package/src/components/hamburger/hamburger.module.css +16 -16
- package/src/components/hamburger/hamburger.tsx +3 -3
- package/src/components/inputs/autocomplete.module.css +42 -42
- package/src/components/inputs/autocomplete.tsx +12 -14
- package/src/components/inputs/checkbox-group.module.css +1 -1
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.module.css +38 -34
- package/src/components/inputs/checkbox.tsx +8 -11
- package/src/components/inputs/error-text.module.css +4 -4
- package/src/components/inputs/help-text.module.css +4 -4
- package/src/components/inputs/help-text.tsx +1 -3
- package/src/components/inputs/input-adornment.module.css +3 -3
- package/src/components/inputs/input-adornment.tsx +2 -2
- package/src/components/inputs/input.module.css +45 -45
- package/src/components/inputs/input.tsx +8 -12
- package/src/components/inputs/label.module.css +2 -2
- package/src/components/inputs/radio-group.module.css +17 -17
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.module.css +8 -8
- package/src/components/inputs/select.tsx +3 -3
- package/src/components/inputs/text-area.module.css +4 -4
- package/src/components/inputs/text-area.tsx +3 -3
- package/src/components/notifications/alert.module.css +16 -16
- package/src/components/notifications/alert.tsx +11 -11
- package/src/components/notifications/toast.module.css +41 -28
- package/src/components/notifications/toast.tsx +7 -9
- package/src/components/pager/pagination.module.css +6 -6
- package/src/components/pager/pagination.tsx +2 -2
- package/src/components/scroll-area/scroll-area.module.css +5 -5
- package/src/components/scroll-area/scroll-area.tsx +7 -7
- package/src/components/scroll-to-top/scroll-to-top.module.css +9 -9
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -2
- package/src/components/section/section.module.css +1 -1
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +18 -8
- package/src/components/table/table.module.css +15 -15
- package/src/components/table/table.tsx +8 -8
- package/src/components/tabs/tabs.module.css +4 -4
- package/src/components/tabs/tabs.tsx +4 -4
- package/src/components/tooltip/tooltip.module.css +2 -2
- package/src/components/tooltip/tooltip.tsx +2 -2
- package/src/fields/checkbox/checkbox-field.module.css +4 -0
- package/src/fields/checkbox/checkbox-field.tsx +2 -1
- package/src/forms/form-context.tsx +10 -2
- package/src/icons/source/icon-infonomic.svg +2 -2
- package/src/loaders/ellipses.module.css +2 -2
- package/src/loaders/ellipses.tsx +2 -2
- package/src/loaders/ring.module.css +2 -2
- package/src/loaders/ring.tsx +2 -2
- package/src/loaders/spinner.module.css +3 -3
- package/src/loaders/spinner.tsx +3 -6
- package/src/styles/styles.css +12 -0
- package/src/widgets/datepicker/datepicker.module.css +15 -15
- package/src/widgets/datepicker/datepicker.tsx +11 -21
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +11 -11
- package/src/widgets/drawer/drawer.tsx +2 -2
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-header.tsx +1 -1
- package/src/widgets/modal/modal.module.css +12 -12
- package/src/widgets/modal/modal.tsx +2 -2
- package/src/widgets/search/search.tsx +2 -0
- package/src/widgets/timeline/timeline.module.css +10 -10
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
byline-utilities;
|
|
11
11
|
@layer byline-components {
|
|
12
12
|
.combo-button-wrapper,
|
|
13
|
-
:global(.
|
|
13
|
+
:global(.byline-combo-button-wrapper) {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
gap: 0.075rem;
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
|
|
23
23
|
.combo-button-wrapper:focus-within,
|
|
24
24
|
.combo-button-wrapper:has([data-popup-open]),
|
|
25
|
-
:global(.
|
|
26
|
-
:global(.
|
|
25
|
+
:global(.byline-combo-button-wrapper):focus-within,
|
|
26
|
+
:global(.byline-combo-button-wrapper):has([data-popup-open]) {
|
|
27
27
|
outline-color: var(--ring-color);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.combo-button-button,
|
|
31
|
-
:global(.
|
|
31
|
+
:global(.byline-combo-button-button) {
|
|
32
32
|
border-bottom-right-radius: 0;
|
|
33
33
|
border-top-right-radius: 0;
|
|
34
34
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.combo-button-trigger,
|
|
42
|
-
:global(.
|
|
42
|
+
:global(.byline-combo-button-trigger) {
|
|
43
43
|
border-bottom-left-radius: 0;
|
|
44
44
|
border-top-left-radius: 0;
|
|
45
45
|
}
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.combo-button-options,
|
|
53
|
-
:global(.
|
|
53
|
+
:global(.byline-combo-button-options) {
|
|
54
54
|
min-width: 120px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.combo-button-options-item,
|
|
58
|
-
:global(.
|
|
58
|
+
:global(.byline-combo-button-options-item) {
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
.stop-button,
|
|
13
13
|
.play-button,
|
|
14
14
|
.directional-button,
|
|
15
|
-
:global(.
|
|
16
|
-
:global(.
|
|
17
|
-
:global(.
|
|
15
|
+
:global(.byline-stop-button),
|
|
16
|
+
:global(.byline-play-button),
|
|
17
|
+
:global(.byline-directional-button) {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: center;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
transform: translateX(5px);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/* No dark theme overrides needed!
|
|
140
|
-
* Tokens automatically switch in .dark and respect .not-dark
|
|
139
|
+
/* No dark theme overrides needed!
|
|
140
|
+
* Tokens automatically switch in .dark and respect .not-dark
|
|
141
141
|
*/
|
|
142
142
|
}
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.copy-button-container,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-copy-button-container) {
|
|
15
15
|
display: inline-block;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.copy-button svg,
|
|
19
|
-
:global(.
|
|
19
|
+
:global(.byline-copy-button) svg {
|
|
20
20
|
width: 90%;
|
|
21
21
|
height: 90%;
|
|
22
22
|
display: block;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
/* Sizes */
|
|
26
26
|
.xs,
|
|
27
|
-
:global(.
|
|
27
|
+
:global(.byline-copy-button-xs) {
|
|
28
28
|
width: 26px;
|
|
29
29
|
height: 26px;
|
|
30
30
|
min-height: 26px;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.sm,
|
|
35
|
-
:global(.
|
|
35
|
+
:global(.byline-copy-button-sm) {
|
|
36
36
|
width: 32px;
|
|
37
37
|
height: 32px;
|
|
38
38
|
min-height: 32px;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.md,
|
|
43
|
-
:global(.
|
|
43
|
+
:global(.byline-copy-button-md) {
|
|
44
44
|
width: 38px;
|
|
45
45
|
height: 38px;
|
|
46
46
|
min-height: 38px;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.lg,
|
|
51
|
-
:global(.
|
|
51
|
+
:global(.byline-copy-button-lg) {
|
|
52
52
|
width: 46px;
|
|
53
53
|
height: 46px;
|
|
54
54
|
min-height: 46px;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.xl,
|
|
59
|
-
:global(.
|
|
59
|
+
:global(.byline-copy-button-xl) {
|
|
60
60
|
width: 54px;
|
|
61
61
|
height: 54px;
|
|
62
62
|
min-height: 54px;
|
|
@@ -67,7 +67,7 @@ export function CopyButton({
|
|
|
67
67
|
return (
|
|
68
68
|
<div
|
|
69
69
|
className={cx(
|
|
70
|
-
'
|
|
70
|
+
'byline-copy-button-container',
|
|
71
71
|
styles['copy-button-container'],
|
|
72
72
|
containerClassName
|
|
73
73
|
)}
|
|
@@ -91,10 +91,10 @@ export function CopyButton({
|
|
|
91
91
|
fullWidth={fullWidth}
|
|
92
92
|
ripple={ripple}
|
|
93
93
|
className={cx(
|
|
94
|
-
'
|
|
95
|
-
`
|
|
96
|
-
`
|
|
97
|
-
`
|
|
94
|
+
'byline-copy-button',
|
|
95
|
+
`byline-copy-button-${variant}`,
|
|
96
|
+
`byline-copy-button-${size}`,
|
|
97
|
+
`byline-copy-button-${intent}`,
|
|
98
98
|
styles[size],
|
|
99
99
|
className
|
|
100
100
|
)}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
@layer byline-components {
|
|
13
13
|
.card,
|
|
14
|
-
:global(.
|
|
14
|
+
:global(.byline-card) {
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
text-decoration: none;
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.card-hover,
|
|
30
|
-
:global(.
|
|
30
|
+
:global(.byline-card-hover) {
|
|
31
31
|
transition: background 0.2s ease-in-out;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.card-hover:hover,
|
|
35
|
-
:global(.
|
|
35
|
+
:global(.byline-card-hover):hover {
|
|
36
36
|
background: oklch(from var(--theme-50) 1 0.03 h);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
:global(.dark),
|
|
40
40
|
:global([data-theme="dark"]) {
|
|
41
41
|
.card-hover:hover,
|
|
42
|
-
:global(.
|
|
42
|
+
:global(.byline-card-hover):hover {
|
|
43
43
|
background: oklch(from var(--canvas-800) 0.2 c h);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.card-header,
|
|
48
|
-
:global(.
|
|
48
|
+
:global(.byline-card-header) {
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-direction: column;
|
|
51
51
|
gap: 0.5rem;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.card-title,
|
|
56
|
-
:global(.
|
|
56
|
+
:global(.byline-card-title) {
|
|
57
57
|
color: var(--headings);
|
|
58
58
|
font-size: 1.8rem;
|
|
59
59
|
font-weight: bold;
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.card-description,
|
|
65
|
-
:global(.
|
|
65
|
+
:global(.byline-card-description) {
|
|
66
66
|
font-size: 0.875rem;
|
|
67
67
|
color: var(--muted);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.card-content,
|
|
71
|
-
:global(.
|
|
71
|
+
:global(.byline-card-content) {
|
|
72
72
|
flex: 1;
|
|
73
73
|
padding: 1rem;
|
|
74
74
|
padding-top: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.card-footer,
|
|
78
|
-
:global(.
|
|
78
|
+
:global(.byline-card-footer) {
|
|
79
79
|
display: flex;
|
|
80
80
|
align-items: center;
|
|
81
81
|
padding: 1rem;
|
|
@@ -14,7 +14,7 @@ export type CardProps = useRender.ComponentProps<'div'> & {
|
|
|
14
14
|
|
|
15
15
|
const Card = ({ className, hover, children, render, ref, ...rest }: CardProps) => {
|
|
16
16
|
const hoverClasses = hover != null && hover === true ? styles['card-hover'] : undefined
|
|
17
|
-
const classes = cx('
|
|
17
|
+
const classes = cx('byline-card', styles.card, hoverClasses, className)
|
|
18
18
|
|
|
19
19
|
const element = useRender({
|
|
20
20
|
defaultTagName: 'div',
|
|
@@ -39,7 +39,7 @@ interface OtherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
39
39
|
const Header = ({ className, ref, ...props }: OtherProps) => (
|
|
40
40
|
<div
|
|
41
41
|
ref={ref}
|
|
42
|
-
className={cx('
|
|
42
|
+
className={cx('byline-card-header', styles['card-header'], className)}
|
|
43
43
|
{...props}
|
|
44
44
|
/>
|
|
45
45
|
)
|
|
@@ -49,7 +49,7 @@ Header.displayName = 'CardHeader'
|
|
|
49
49
|
const Title = ({ className, ref, ...props }: OtherProps) => (
|
|
50
50
|
<div
|
|
51
51
|
ref={ref as React.Ref<HTMLDivElement>}
|
|
52
|
-
className={cx('
|
|
52
|
+
className={cx('byline-card-title', styles['card-title'], className)}
|
|
53
53
|
{...props}
|
|
54
54
|
/>
|
|
55
55
|
)
|
|
@@ -58,7 +58,7 @@ Title.displayName = 'CardTitle'
|
|
|
58
58
|
const Description = ({ className, ref, ...props }: OtherProps) => (
|
|
59
59
|
<div
|
|
60
60
|
ref={ref}
|
|
61
|
-
className={cx('
|
|
61
|
+
className={cx('byline-card-description', styles['card-description'], className)}
|
|
62
62
|
{...props}
|
|
63
63
|
/>
|
|
64
64
|
)
|
|
@@ -67,7 +67,7 @@ Description.displayName = 'CardDescription'
|
|
|
67
67
|
const Content = ({ className, ref, ...props }: OtherProps) => (
|
|
68
68
|
<div
|
|
69
69
|
ref={ref}
|
|
70
|
-
className={cx('
|
|
70
|
+
className={cx('byline-card-content', styles['card-content'], className)}
|
|
71
71
|
{...props}
|
|
72
72
|
/>
|
|
73
73
|
)
|
|
@@ -76,7 +76,7 @@ Content.displayName = 'CardContent'
|
|
|
76
76
|
const Footer = ({ className, ref, ...props }: OtherProps) => (
|
|
77
77
|
<div
|
|
78
78
|
ref={ref}
|
|
79
|
-
className={cx('
|
|
79
|
+
className={cx('byline-card-footer', styles['card-footer'], className)}
|
|
80
80
|
{...props}
|
|
81
81
|
/>
|
|
82
82
|
)
|