@westpac/ui 0.26.0 → 0.28.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/CHANGELOG.md +15 -0
- package/assets/icons/filled/arrow-back-circle-filled.svg +1 -0
- package/assets/icons/filled/arrow-down-circle-filled.svg +1 -0
- package/assets/icons/filled/arrow-forward-circle-filled.svg +1 -0
- package/assets/icons/filled/arrow-up-circle-filled.svg +1 -0
- package/assets/icons/outlined/arrow-back-circle-outlined.svg +1 -0
- package/assets/icons/outlined/arrow-down-circle-outlined.svg +1 -0
- package/assets/icons/outlined/arrow-forward-circle-outlined.svg +1 -0
- package/assets/icons/outlined/arrow-up-circle-outlined.svg +1 -0
- package/dist/component-type.json +1 -1
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/autocomplete/autocomplete.component.js +2 -13
- package/dist/components/badge/badge.styles.d.ts +2 -2
- package/dist/components/badge/badge.styles.js +2 -2
- package/dist/components/button/button.component.d.ts +2 -2
- package/dist/components/button/button.styles.js +23 -7
- package/dist/components/button/button.utils.js +2 -2
- package/dist/components/button-group/components/button-group-button/button-group-button.component.js +6 -2
- package/dist/components/button-group/components/button-group-button/button-group-button.styles.d.ts +24 -0
- package/dist/components/button-group/components/button-group-button/button-group-button.styles.js +9 -1
- package/dist/components/error-message/error-message.styles.js +1 -1
- package/dist/components/filter/components/filter-buttons/filter-buttons.component.js +24 -9
- package/dist/components/filter/components/filter-buttons/filter-buttons.styles.js +1 -1
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/components/arrow-back-circle-icon.d.ts +2 -0
- package/dist/components/icon/components/arrow-back-circle-icon.js +35 -0
- package/dist/components/icon/components/arrow-down-circle-icon.d.ts +2 -0
- package/dist/components/icon/components/arrow-down-circle-icon.js +35 -0
- package/dist/components/icon/components/arrow-forward-circle-icon.d.ts +2 -0
- package/dist/components/icon/components/arrow-forward-circle-icon.js +35 -0
- package/dist/components/icon/components/arrow-up-circle-icon.d.ts +2 -0
- package/dist/components/icon/components/arrow-up-circle-icon.js +35 -0
- package/dist/components/icon/components/cancel-card-icon.js +8 -18
- package/dist/components/icon/components/child-care-icon.js +6 -6
- package/dist/components/icon/components/child-icon.js +2 -2
- package/dist/components/icon/components/circle-icon.js +9 -19
- package/dist/components/icon/components/drop-left-icon.js +1 -1
- package/dist/components/icon/components/drop-right-icon.js +1 -1
- package/dist/components/icon/components/piggy-bank.js +4 -4
- package/dist/components/icon/components/quick-balance-icon.js +7 -17
- package/dist/components/icon/components/target-icon.d.ts +1 -1
- package/dist/components/icon/components/target-icon.js +3 -9
- package/dist/components/icon/components/x-icon.js +6 -6
- package/dist/components/icon/index.d.ts +5 -1
- package/dist/components/icon/index.js +5 -1
- package/dist/components/input/input.component.d.ts +2 -2
- package/dist/components/pictogram/components/informative/sparkle-pictogram.js +15 -15
- package/dist/components/progress-indicator/progress-indicator.component.d.ts +2 -2
- package/dist/components/progress-indicator/progress-indicator.component.js +72 -11
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +246 -27
- package/dist/components/progress-indicator/progress-indicator.styles.js +82 -9
- package/dist/components/progress-indicator/progress-indicator.types.d.ts +13 -11
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/symbol/components/logos/bt-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-logo.js +35 -0
- package/dist/components/symbol/components/logos/bt-multibrand-large-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-multibrand-large-logo.js +41 -0
- package/dist/components/symbol/components/logos/bt-multibrand-small-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-multibrand-small-logo.js +50 -0
- package/dist/components/symbol/components/logos/bt-panorama-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-panorama-logo.js +69 -0
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-large-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-large-logo.js +76 -0
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-small-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-panorama-multibrand-small-logo.js +76 -0
- package/dist/components/symbol/components/logos/bt-panorama-reversed-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-panorama-reversed-logo.js +69 -0
- package/dist/components/symbol/components/logos/bt-reversed-logo.d.ts +2 -0
- package/dist/components/symbol/components/logos/bt-reversed-logo.js +35 -0
- package/dist/components/symbol/index.d.ts +8 -0
- package/dist/components/symbol/index.js +8 -0
- package/dist/components/textarea/textarea.component.d.ts +2 -2
- package/dist/css/westpac-ui.css +68 -150
- package/dist/css/westpac-ui.min.css +68 -150
- package/dist/tailwind/themes/btpl.d.ts +2 -0
- package/dist/tailwind/themes/btpl.js +30 -0
- package/package.json +4 -4
- package/src/components/alert/alert.styles.ts +1 -1
- package/src/components/autocomplete/autocomplete.component.tsx +2 -12
- package/src/components/badge/badge.styles.ts +2 -2
- package/src/components/button/button.styles.ts +27 -7
- package/src/components/button/button.utils.ts +2 -2
- package/src/components/button-group/components/button-group-button/button-group-button.component.tsx +3 -2
- package/src/components/button-group/components/button-group-button/button-group-button.styles.ts +9 -1
- package/src/components/error-message/error-message.styles.ts +1 -1
- package/src/components/filter/components/filter-buttons/filter-buttons.component.tsx +55 -51
- package/src/components/filter/components/filter-buttons/filter-buttons.styles.ts +1 -1
- package/src/components/header/header.component.tsx +1 -1
- package/src/components/header/header.styles.ts +1 -1
- package/src/components/icon/components/arrow-back-circle-icon.tsx +37 -0
- package/src/components/icon/components/arrow-down-circle-icon.tsx +37 -0
- package/src/components/icon/components/arrow-forward-circle-icon.tsx +37 -0
- package/src/components/icon/components/arrow-up-circle-icon.tsx +37 -0
- package/src/components/icon/components/cancel-card-icon.tsx +15 -19
- package/src/components/icon/components/child-care-icon.tsx +6 -6
- package/src/components/icon/components/child-icon.tsx +2 -2
- package/src/components/icon/components/circle-icon.tsx +14 -22
- package/src/components/icon/components/drop-left-icon.tsx +1 -1
- package/src/components/icon/components/drop-right-icon.tsx +1 -1
- package/src/components/icon/components/piggy-bank.tsx +4 -4
- package/src/components/icon/components/quick-balance-icon.tsx +15 -19
- package/src/components/icon/components/target-icon.tsx +13 -20
- package/src/components/icon/components/x-icon.tsx +6 -6
- package/src/components/icon/index.ts +5 -1
- package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +15 -15
- package/src/components/progress-indicator/progress-indicator.component.tsx +56 -8
- package/src/components/progress-indicator/progress-indicator.styles.ts +32 -9
- package/src/components/progress-indicator/progress-indicator.types.ts +13 -11
- package/src/components/symbol/components/logos/bt-logo.tsx +35 -0
- package/src/components/symbol/components/logos/bt-multibrand-large-logo.tsx +42 -0
- package/src/components/symbol/components/logos/bt-multibrand-small-logo.tsx +49 -0
- package/src/components/symbol/components/logos/bt-panorama-logo.tsx +76 -0
- package/src/components/symbol/components/logos/bt-panorama-multibrand-large-logo.tsx +80 -0
- package/src/components/symbol/components/logos/bt-panorama-multibrand-small-logo.tsx +80 -0
- package/src/components/symbol/components/logos/bt-panorama-reversed-logo.tsx +76 -0
- package/src/components/symbol/components/logos/bt-reversed-logo.tsx +35 -0
- package/src/components/symbol/index.ts +8 -0
- package/src/tailwind/themes/btpl.ts +32 -0
|
@@ -4,7 +4,7 @@ export const styles = tv({
|
|
|
4
4
|
base: 'typography-body-10 relative mb-4 xsl:flex',
|
|
5
5
|
icon: 'float-left flex-none',
|
|
6
6
|
body: 'relative flex-1 overflow-hidden xsl:top-[0.125rem] [&_a]:underline',
|
|
7
|
-
heading: 'typography-body-9 mb-
|
|
7
|
+
heading: 'typography-body-9 mb-1 font-bold',
|
|
8
8
|
close: 'absolute right-0.5 top-0.5 p-1 hover:opacity-80'
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
@@ -89,17 +89,6 @@ export function Autocomplete({ size ='medium' , invalid =false , isDisabled , fo
|
|
|
89
89
|
state.collection.size,
|
|
90
90
|
searchProps.value.length
|
|
91
91
|
]);
|
|
92
|
-
const iconSize = useMemo(()=>{
|
|
93
|
-
switch(size){
|
|
94
|
-
case 'small':
|
|
95
|
-
case 'medium':
|
|
96
|
-
return 'small';
|
|
97
|
-
default:
|
|
98
|
-
return 'medium';
|
|
99
|
-
}
|
|
100
|
-
}, [
|
|
101
|
-
size
|
|
102
|
-
]);
|
|
103
92
|
return React.createElement("div", {
|
|
104
93
|
className: styles.base({
|
|
105
94
|
className
|
|
@@ -112,11 +101,11 @@ export function Autocomplete({ size ='medium' , invalid =false , isDisabled , fo
|
|
|
112
101
|
}, React.createElement("div", {
|
|
113
102
|
className: styles.iconWrapper()
|
|
114
103
|
}, loadingState ? React.createElement(ProgressIndicator, {
|
|
115
|
-
size:
|
|
104
|
+
size: "small",
|
|
116
105
|
color: "muted"
|
|
117
106
|
}) : React.createElement(SearchIcon, {
|
|
118
107
|
"aria-hidden": true,
|
|
119
|
-
size:
|
|
108
|
+
size: "small",
|
|
120
109
|
color: "muted"
|
|
121
110
|
})), React.createElement("input", _extends({}, mergeProps(inputProps, inputFocusProps), {
|
|
122
111
|
ref: inputRef,
|
|
@@ -25,7 +25,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
25
25
|
soft: {
|
|
26
26
|
true: string;
|
|
27
27
|
};
|
|
28
|
-
}, undefined, "inline-block whitespace-nowrap border text-center", {
|
|
28
|
+
}, undefined, "inline-block w-fit whitespace-nowrap border text-center", {
|
|
29
29
|
responsiveVariants: string[];
|
|
30
30
|
}, {
|
|
31
31
|
color: {
|
|
@@ -81,6 +81,6 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
81
81
|
soft: {
|
|
82
82
|
true: string;
|
|
83
83
|
};
|
|
84
|
-
}, undefined, "inline-block whitespace-nowrap border text-center", {
|
|
84
|
+
}, undefined, "inline-block w-fit whitespace-nowrap border text-center", {
|
|
85
85
|
responsiveVariants: string[];
|
|
86
86
|
}, unknown, unknown, undefined>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
|
-
base: 'inline-block whitespace-nowrap border text-center',
|
|
3
|
+
base: 'inline-block w-fit whitespace-nowrap border text-center',
|
|
4
4
|
variants: {
|
|
5
5
|
color: {
|
|
6
6
|
danger: 'border-danger bg-danger text-white',
|
|
@@ -22,7 +22,7 @@ export const styles = tv({
|
|
|
22
22
|
'warning-inverted': 'border-none bg-white text-warning'
|
|
23
23
|
},
|
|
24
24
|
type: {
|
|
25
|
-
pill: 'typography-body-10 h-4 rounded-xl px-[0.4375rem]
|
|
25
|
+
pill: 'typography-body-10 flex h-4 w-fit items-center rounded-xl px-[0.4375rem] font-medium leading-none',
|
|
26
26
|
default: 'h-[1.25rem] rounded-sm px-1 text-[0.75rem] leading-[1.125rem]'
|
|
27
27
|
},
|
|
28
28
|
soft: {
|
|
@@ -15,8 +15,8 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
15
15
|
look?: "link" | "primary" | "hero" | "faint" | {
|
|
16
16
|
[x: string]: "link" | "primary" | "hero" | "faint" | undefined;
|
|
17
17
|
} | undefined;
|
|
18
|
-
size?: "small" | "
|
|
19
|
-
[x: string]: "small" | "
|
|
18
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
19
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
soft?: boolean | {
|
|
22
22
|
[x: string]: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'items-center justify-center rounded
|
|
4
|
+
base: 'items-center justify-center rounded transition-[background] disabled:pointer-events-none disabled:opacity-50 group-first/add-on-before:rounded-r-none group-last/add-on-after:rounded-l-none',
|
|
5
5
|
iconBefore: '',
|
|
6
6
|
iconAfter: '',
|
|
7
7
|
dropdown: 'ml-[0.4em]',
|
|
@@ -10,16 +10,16 @@ export const styles = tv({
|
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
12
12
|
small: {
|
|
13
|
-
base: 'typography-body-10
|
|
13
|
+
base: 'typography-body-10 h-5 px-1.5 active-theme-rams:before:h-[0.0625rem]'
|
|
14
14
|
},
|
|
15
15
|
medium: {
|
|
16
|
-
base: 'typography-body-9 px-2
|
|
16
|
+
base: 'typography-body-9 h-6 px-2 active-theme-rams:before:h-0.5'
|
|
17
17
|
},
|
|
18
18
|
large: {
|
|
19
|
-
base: 'typography-body-9 px-2.5
|
|
19
|
+
base: 'typography-body-9 h-7 px-2.5 active-theme-rams:before:h-0.5'
|
|
20
20
|
},
|
|
21
21
|
xlarge: {
|
|
22
|
-
base: 'typography-body-8 px-3
|
|
22
|
+
base: 'typography-body-8 h-8 px-3 active-theme-rams:before:h-1'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
look: {
|
|
@@ -96,14 +96,30 @@ export const styles = tv({
|
|
|
96
96
|
'iconBefore'
|
|
97
97
|
],
|
|
98
98
|
hasChildren: true,
|
|
99
|
-
className: 'mr-
|
|
99
|
+
className: 'mr-1'
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
slots: [
|
|
103
103
|
'iconAfter'
|
|
104
104
|
],
|
|
105
105
|
hasChildren: true,
|
|
106
|
-
className: 'ml-
|
|
106
|
+
className: 'ml-1'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
slots: [
|
|
110
|
+
'iconBefore'
|
|
111
|
+
],
|
|
112
|
+
size: 'xlarge',
|
|
113
|
+
hasChildren: true,
|
|
114
|
+
className: 'mr-1.5'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
slots: [
|
|
118
|
+
'iconAfter'
|
|
119
|
+
],
|
|
120
|
+
size: 'xlarge',
|
|
121
|
+
hasChildren: true,
|
|
122
|
+
className: 'ml-1.5'
|
|
107
123
|
}
|
|
108
124
|
]
|
|
109
125
|
}, {
|
package/dist/components/button-group/components/button-group-button/button-group-button.component.js
CHANGED
|
@@ -31,10 +31,12 @@ export function ButtonGroupButton({ className , label , ...props }) {
|
|
|
31
31
|
isDisabled,
|
|
32
32
|
isFocusVisible
|
|
33
33
|
});
|
|
34
|
+
const key = isSelected ? 'selected' : 'not-selected';
|
|
34
35
|
return React.createElement("label", {
|
|
35
36
|
className: styles.base({
|
|
36
37
|
className
|
|
37
|
-
})
|
|
38
|
+
}),
|
|
39
|
+
key: key
|
|
38
40
|
}, React.createElement(VisuallyHidden, null, React.createElement("input", _extends({}, inputProps, focusProps, {
|
|
39
41
|
ref: ref
|
|
40
42
|
}))), React.createElement(GELButton, {
|
|
@@ -44,6 +46,8 @@ export function ButtonGroupButton({ className , label , ...props }) {
|
|
|
44
46
|
disabled: isDisabled,
|
|
45
47
|
look: look,
|
|
46
48
|
size: size,
|
|
47
|
-
className: styles.button(
|
|
49
|
+
className: styles.button({
|
|
50
|
+
hasTransition: !isSelected
|
|
51
|
+
})
|
|
48
52
|
}, label));
|
|
49
53
|
}
|
package/dist/components/button-group/components/button-group-button/button-group-button.styles.d.ts
CHANGED
|
@@ -17,6 +17,14 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
base: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
hasTransition: {
|
|
21
|
+
true: {
|
|
22
|
+
button: string;
|
|
23
|
+
};
|
|
24
|
+
false: {
|
|
25
|
+
button: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
20
28
|
}, {
|
|
21
29
|
base: string;
|
|
22
30
|
button: string;
|
|
@@ -41,6 +49,14 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
41
49
|
base: string;
|
|
42
50
|
};
|
|
43
51
|
};
|
|
52
|
+
hasTransition: {
|
|
53
|
+
true: {
|
|
54
|
+
button: string;
|
|
55
|
+
};
|
|
56
|
+
false: {
|
|
57
|
+
button: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
44
60
|
}, {
|
|
45
61
|
base: string;
|
|
46
62
|
button: string;
|
|
@@ -63,6 +79,14 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
63
79
|
base: string;
|
|
64
80
|
};
|
|
65
81
|
};
|
|
82
|
+
hasTransition: {
|
|
83
|
+
true: {
|
|
84
|
+
button: string;
|
|
85
|
+
};
|
|
86
|
+
false: {
|
|
87
|
+
button: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
66
90
|
}, {
|
|
67
91
|
base: string;
|
|
68
92
|
button: string;
|
package/dist/components/button-group/components/button-group-button/button-group-button.styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
|
-
button: 'rounded-none hover:cursor-pointer group-first/buttons:rounded-l group-last/buttons:rounded-r group-[:not(:first-child)]/buttons:border-l-0 active-theme-rams:border-b-primary active-theme-rams:before:hidden'
|
|
5
|
+
button: 'pointer-events-none rounded-none hover:cursor-pointer group-first/buttons:rounded-l group-last/buttons:rounded-r group-[:not(:first-child)]/buttons:border-l-0 active-theme-rams:border-b-primary active-theme-rams:before:hidden'
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
8
8
|
isDisabled: {
|
|
@@ -22,6 +22,14 @@ export const styles = tv({
|
|
|
22
22
|
false: {
|
|
23
23
|
base: 'w-auto'
|
|
24
24
|
}
|
|
25
|
+
},
|
|
26
|
+
hasTransition: {
|
|
27
|
+
true: {
|
|
28
|
+
button: 'pointer-events-auto'
|
|
29
|
+
},
|
|
30
|
+
false: {
|
|
31
|
+
button: 'pointer-events-none'
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
}, {
|
|
@@ -68,7 +68,9 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
68
68
|
}
|
|
69
69
|
setScroll(scrollBy, scrollX, container);
|
|
70
70
|
}
|
|
71
|
-
}, [
|
|
71
|
+
}, [
|
|
72
|
+
scrollTarget
|
|
73
|
+
]);
|
|
72
74
|
const getTargetLeft = useCallback((element, cLeft, index, targetLeft)=>{
|
|
73
75
|
const eLeft = element.offsetLeft;
|
|
74
76
|
const eRight = eLeft + element.clientWidth;
|
|
@@ -120,11 +122,18 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
120
122
|
targetLeft -= 1;
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
if (targetLeft !== scrollTarget.left || targetRight !== scrollTarget.right) {
|
|
126
|
+
setScrollTarget({
|
|
127
|
+
left: targetLeft,
|
|
128
|
+
right: targetRight
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}, [
|
|
132
|
+
scrollTarget,
|
|
133
|
+
getTargetLeft,
|
|
134
|
+
getTargetRight,
|
|
135
|
+
adjustTargets
|
|
136
|
+
]);
|
|
128
137
|
const handleScrollable = useCallback((container)=>{
|
|
129
138
|
const isLeftScrollable = container.scrollLeft >= 1;
|
|
130
139
|
const isRightScrollable = container.scrollLeft < container.scrollWidth - container.clientWidth - 1;
|
|
@@ -139,7 +148,10 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
139
148
|
handleScrollTarget(container);
|
|
140
149
|
handleScrollable(container);
|
|
141
150
|
}
|
|
142
|
-
}, [
|
|
151
|
+
}, [
|
|
152
|
+
handleScrollTarget,
|
|
153
|
+
handleScrollable
|
|
154
|
+
]);
|
|
143
155
|
useEffect(()=>{
|
|
144
156
|
const container = scrollContainerRef.current;
|
|
145
157
|
if (container) {
|
|
@@ -150,9 +162,12 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
150
162
|
}
|
|
151
163
|
return ()=>{
|
|
152
164
|
container === null || container === void 0 ? void 0 : container.removeEventListener('scroll', handleScroll);
|
|
153
|
-
window.removeEventListener('
|
|
165
|
+
window.removeEventListener('resize', handleScroll);
|
|
154
166
|
};
|
|
155
|
-
}, [
|
|
167
|
+
}, [
|
|
168
|
+
handleScrollTarget,
|
|
169
|
+
handleScrollable
|
|
170
|
+
]);
|
|
156
171
|
return React.createElement(Tag, {
|
|
157
172
|
className: styles.base({
|
|
158
173
|
className
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'relative flex justify-start',
|
|
5
|
-
buttonList: 'flex w-full touch-pan-x gap-1 overflow-x-auto whitespace-nowrap',
|
|
5
|
+
buttonList: 'flex w-full touch-pan-x gap-1 overflow-x-auto overflow-y-visible whitespace-nowrap',
|
|
6
6
|
scrollButton: 'absolute rounded-none contrast-more:bg-black'
|
|
7
7
|
},
|
|
8
8
|
variants: {
|
|
@@ -86,7 +86,7 @@ export function Header({ brand , className , children , fixed =false , leftIcon
|
|
|
86
86
|
}, React.createElement(Button, {
|
|
87
87
|
look: "link",
|
|
88
88
|
iconAfter: ButtonIcon,
|
|
89
|
-
|
|
89
|
+
iconSize: leftIcon === 'arrow' ? 'medium' : 'small',
|
|
90
90
|
onClick: leftOnClick,
|
|
91
91
|
"aria-label": leftAssistiveText,
|
|
92
92
|
className: styles.leftButton(),
|
|
@@ -7,7 +7,7 @@ export const styles = tv({
|
|
|
7
7
|
smallLogo: 'sm:hidden',
|
|
8
8
|
largeLogo: 'max-sm:hidden',
|
|
9
9
|
leftContent: 'flex items-center',
|
|
10
|
-
leftButton: 'my-1 border-r border-[#E8E8ED] p-0 max-sm:-ml-2 max-sm:mr-2 max-sm:h-7 max-sm:min-w-[2.625rem] sm:-ml-4 sm:mr-3 sm:h-[3.3125rem] sm:min-w-[3.75rem]',
|
|
10
|
+
leftButton: 'my-1 border-r border-[#E8E8ED] p-0 rounded-none max-sm:-ml-2 max-sm:mr-2 max-sm:h-7 max-sm:min-w-[2.625rem] sm:-ml-4 sm:mr-3 sm:h-[3.3125rem] sm:min-w-[3.75rem]',
|
|
11
11
|
rightContent: 'ml-auto flex items-center'
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import React, { Fragment } from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function ArrowBackCircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Arrow Back Circle' , copyrightYear ='2023' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
d: "M12 0C5.372 0 0 5.373 0 12s5.372 12 12 12 12-5.373 12-12S18.628 0 12 0ZM9.414 13l3.293 3.293-1.414 1.414L5.586 12l5.707-5.707 1.414 1.414L9.414 11H18v2H9.414Z",
|
|
25
|
+
clipRule: "evenodd"
|
|
26
|
+
}) : React.createElement(Fragment, null, React.createElement("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "m9.414 13 3.293 3.293-1.414 1.414L5.586 12l5.707-5.707 1.414 1.414L9.414 11H18v2H9.414Z"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M12 0C5.372 0 0 5.373 0 12s5.372 12 12 12 12-5.373 12-12S18.628 0 12 0Zm10 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
})));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import React, { Fragment } from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function ArrowDownCircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Arrow Down Circle' , copyrightYear ='2023' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
d: "M0 12c0 6.628 5.373 12 12 12s12-5.372 12-12S18.627 0 12 0 0 5.372 0 12Zm13 2.586 3.293-3.293 1.414 1.414L12 18.414l-5.707-5.707 1.414-1.414L11 14.586V6h2v8.586Z",
|
|
25
|
+
clipRule: "evenodd"
|
|
26
|
+
}) : React.createElement(Fragment, null, React.createElement("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "m13 14.586 3.293-3.293 1.414 1.414L12 18.414l-5.707-5.707 1.414-1.414L11 14.586V6h2v8.586Z"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M0 12c0 6.628 5.373 12 12 12s12-5.372 12-12S18.627 0 12 0 0 5.372 0 12ZM12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Z",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
})));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import React, { Fragment } from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function ArrowForwardCircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Arrow Forward Circle' , copyrightYear ='2023' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
d: "M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12Zm2.586-13-3.293-3.293 1.414-1.414L18.414 12l-5.707 5.707-1.414-1.414L14.586 13H6v-2h8.586Z",
|
|
25
|
+
clipRule: "evenodd"
|
|
26
|
+
}) : React.createElement(Fragment, null, React.createElement("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "m14.586 11-3.293-3.293 1.414-1.414L18.414 12l-5.707 5.707-1.414-1.414L14.586 13H6v-2h8.586Z"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
})));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
_extends = Object.assign || function(target) {
|
|
3
|
+
for(var i = 1; i < arguments.length; i++){
|
|
4
|
+
var source = arguments[i];
|
|
5
|
+
for(var key in source){
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
+
target[key] = source[key];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
return _extends.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
import React, { Fragment } from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function ArrowUpCircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Arrow Up Circle' , copyrightYear ='2023' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
d: "M24 12c0-6.628-5.373-12-12-12S0 5.372 0 12s5.373 12 12 12 12-5.372 12-12ZM11 9.414l-3.293 3.293-1.414-1.414L12 5.586l5.707 5.707-1.414 1.414L13 9.414V18h-2V9.414Z",
|
|
25
|
+
clipRule: "evenodd"
|
|
26
|
+
}) : React.createElement(Fragment, null, React.createElement("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
d: "m11 9.414-3.293 3.293-1.414-1.414L12 5.586l5.707 5.707-1.414 1.414L13 9.414V18h-2V9.414Z"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M24 12c0-6.628-5.373-12-12-12S0 5.372 0 12s5.373 12 12 12 12-5.372 12-12ZM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Z",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
})));
|
|
35
|
+
}
|
|
@@ -14,35 +14,25 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React, { Fragment } from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function CancelCardIcon({ look ='filled' , 'aria-label': ariaLabel = 'Cancel Card' , copyrightYear ='
|
|
17
|
+
export function CancelCardIcon({ look ='filled' , 'aria-label': ariaLabel = 'Cancel Card' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
|
-
}, props), look === 'filled' ? React.createElement(Fragment, null, React.createElement("
|
|
22
|
-
|
|
23
|
-
width: "24",
|
|
24
|
-
height: "24",
|
|
25
|
-
fill: "none"
|
|
26
|
-
}, React.createElement("path", {
|
|
27
|
-
"fill-rule": "evenodd",
|
|
21
|
+
}, props), look === 'filled' ? React.createElement(Fragment, null, React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
28
23
|
d: "M1.416.002 0 1.416l.908.907A1.998 1.998 0 0 0 0 4v16a2 2 0 0 0 2 2h18.585l1.998 1.998 1.415-1.414-.908-.907L1.416.002ZM4.585 6H1v4h7.585l-4-4Z",
|
|
29
|
-
|
|
24
|
+
clipRule: "evenodd",
|
|
30
25
|
fill: "currentColor"
|
|
31
26
|
}), React.createElement("path", {
|
|
32
27
|
d: "M23 10h-8.758L24 19.757V4a2 2 0 0 0-2-2H6.242l4 4H23v4Z",
|
|
33
28
|
fill: "currentColor"
|
|
34
|
-
}))
|
|
35
|
-
|
|
36
|
-
width: "24",
|
|
37
|
-
height: "24",
|
|
38
|
-
fill: "none"
|
|
39
|
-
}, React.createElement("path", {
|
|
40
|
-
"fill-rule": "evenodd",
|
|
29
|
+
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
41
31
|
d: "M1.416.002 0 1.416l.908.907A1.998 1.998 0 0 0 0 4v16a2 2 0 0 0 2 2h18.585l1.998 1.998 1.415-1.414-.908-.907L1.416.002ZM2.585 4H2v4h4.585l-4-4Zm8 8H2v8h16.585l-8-8Z",
|
|
42
|
-
|
|
32
|
+
clipRule: "evenodd",
|
|
43
33
|
fill: "currentColor"
|
|
44
34
|
}), React.createElement("path", {
|
|
45
35
|
d: "M22 8h-9.758l4 4H22v5.757l2 2V4a2 2 0 0 0-2-2H6.242l2 2H22v4Z",
|
|
46
36
|
fill: "currentColor"
|
|
47
|
-
})))
|
|
37
|
+
})));
|
|
48
38
|
}
|
|
@@ -22,21 +22,21 @@ export function ChildCareIcon({ look ='filled' , 'aria-label': ariaLabel = 'Chil
|
|
|
22
22
|
d: "M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",
|
|
23
23
|
fill: "currentColor"
|
|
24
24
|
}), React.createElement("path", {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
27
|
d: "M12 9c3.338 0 10 1.519 10 4.533v5.934c0 1.321-1.28 2.355-3 3.1-.32.139-.655.267-1 .386v-3.286C18 17.893 14.002 17 12 17s-6 .893-6 2.667v.061c.225.104.483.21.773.316 1.547.562 3.416.88 4.747.944V21a1.5 1.5 0 1 1-.285 2.977c-1.537-.09-3.508-.431-5.235-1.024-2.199-.756-4-1.919-4-3.486v-5.934C2 10.52 8.662 9 12 9Zm2.5 4.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
32
|
d: "M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",
|
|
33
33
|
fill: "currentColor"
|
|
34
34
|
}), React.createElement("path", {
|
|
35
35
|
d: "M12 17a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",
|
|
36
36
|
fill: "currentColor"
|
|
37
37
|
}), React.createElement("path", {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
40
|
d: "M12 24a1 1 0 1 0 0-2c-1.054 0-2.548-.182-4-.543v-.466c.175-.122.476-.28.92-.439C9.947 20.187 11.22 20 12 20c.78 0 2.053.187 3.08.552.444.159.745.317.92.44v2.52a18.837 18.837 0 0 0 2-.56c2.199-.755 4-1.918 4-3.485v-5.934C22 10.52 15.338 9 12 9S2 10.519 2 13.533v5.934c0 1.567 1.801 2.73 4 3.486l.144.048c.6.2 1.229.37 1.856.51 1.456.326 2.906.489 4 .489Zm5.569-11.984C15.712 11.341 13.443 11 12 11c-1.443 0-3.712.341-5.569 1.016-.93.338-1.627.713-2.054 1.071a1.52 1.52 0 0 0-.348.379.283.283 0 0 0-.028.06L4 13.533v5.934l.001.007a.283.283 0 0 0 .028.06c.043.075.142.207.348.379.358.3.906.613 1.623.905v-.151C6 18.893 9.998 18 12 18s6 .893 6 2.667v.151l.067-.028c.684-.284 1.21-.587 1.556-.877a1.52 1.52 0 0 0 .348-.379.279.279 0 0 0 .028-.06v-.005l.001-.002v-5.936l-.001-.005a.279.279 0 0 0-.028-.06 1.52 1.52 0 0 0-.348-.379c-.427-.357-1.123-.733-2.054-1.071Z",
|
|
41
41
|
fill: "currentColor"
|
|
42
42
|
})));
|
|
@@ -22,8 +22,8 @@ export function ChildIcon({ 'aria-label': ariaLabel = 'Child' , copyrightYear ='
|
|
|
22
22
|
d: "M15.333 12a1.61 1.61 0 0 1-1.183-.483 1.61 1.61 0 0 1-.483-1.184c0-.466.16-.86.483-1.183a1.61 1.61 0 0 1 1.183-.483c.467 0 .861.16 1.184.483.322.322.483.717.483 1.183 0 .467-.161.861-.483 1.184a1.61 1.61 0 0 1-1.184.483ZM8.667 12a1.61 1.61 0 0 1-1.184-.483A1.61 1.61 0 0 1 7 10.333c0-.466.161-.86.483-1.183a1.61 1.61 0 0 1 1.184-.483c.466 0 .86.16 1.183.483.322.322.483.717.483 1.183 0 .467-.16.861-.483 1.184A1.61 1.61 0 0 1 8.667 12ZM12 19c-1.333 0-2.539-.367-3.617-1.1A6.536 6.536 0 0 1 6 15h12a6.536 6.536 0 0 1-2.383 2.9C14.539 18.633 13.333 19 12 19Z",
|
|
23
23
|
fill: "currentColor"
|
|
24
24
|
}), React.createElement("path", {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
27
|
d: "M12.262.003A12.24 12.24 0 0 0 12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12C24 5.56 18.928.306 12.56.013A1.007 1.007 0 0 0 12.4 0c-.046 0-.092 0-.138.003ZM12 22c5.523 0 10-4.477 10-10 0-5.424-4.318-9.84-9.705-9.996C11.603 2.061 11 2.674 11 3.5c0 .867.665 1.5 1.4 1.5.347 0 .668-.134.918-.368a1 1 0 1 1 1.364 1.463c-.599.558-1.4.905-2.282.905C10.484 7 9 5.394 9 3.5c0-.38.06-.748.17-1.094C5.027 3.626 2 7.46 2 12c0 5.523 4.477 10 10 10Z",
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
}));
|