@westpac/ui 0.25.0 → 0.27.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 +13 -0
- package/dist/component-type.json +1 -1
- package/dist/components/alert/alert.component.d.ts +1 -1
- package/dist/components/alert/alert.component.js +7 -4
- package/dist/components/alert/alert.styles.d.ts +69 -0
- package/dist/components/alert/alert.styles.js +24 -1
- package/dist/components/alert/alert.types.d.ts +5 -0
- package/dist/components/button/button.component.d.ts +2 -2
- package/dist/components/button/button.styles.js +27 -11
- package/dist/components/button/button.utils.js +2 -2
- package/dist/components/error-message/error-message.styles.js +2 -2
- 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/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 +1 -1
- package/dist/components/icon/index.js +1 -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 +6 -5
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +2 -38
- package/dist/components/progress-indicator/progress-indicator.styles.js +1 -14
- package/dist/components/progress-indicator/progress-indicator.types.d.ts +2 -15
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/textarea/textarea.component.d.ts +2 -2
- package/dist/css/westpac-ui.css +40 -133
- package/dist/css/westpac-ui.min.css +40 -133
- package/package.json +3 -3
- package/src/components/alert/alert.component.tsx +4 -3
- package/src/components/alert/alert.styles.ts +24 -1
- package/src/components/alert/alert.types.ts +5 -0
- package/src/components/button/button.styles.ts +31 -11
- package/src/components/button/button.utils.ts +2 -2
- package/src/components/error-message/error-message.styles.ts +2 -2
- 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/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 +1 -1
- package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +15 -15
- package/src/components/progress-indicator/progress-indicator.component.tsx +6 -4
- package/src/components/progress-indicator/progress-indicator.styles.ts +1 -14
- package/src/components/progress-indicator/progress-indicator.types.ts +2 -16
|
@@ -62,9 +62,9 @@ export { DownloadFileIcon } from './components/download-file-icon.js';
|
|
|
62
62
|
export { DownloadIcon } from './components/download-icon.js';
|
|
63
63
|
export { DragIcon } from './components/drag-icon.js';
|
|
64
64
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
65
|
-
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
66
65
|
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
67
66
|
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
67
|
+
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
68
68
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
69
69
|
export { EditIcon } from './components/edit-icon.js';
|
|
70
70
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -62,9 +62,9 @@ export { DownloadFileIcon } from './components/download-file-icon.js';
|
|
|
62
62
|
export { DownloadIcon } from './components/download-icon.js';
|
|
63
63
|
export { DragIcon } from './components/drag-icon.js';
|
|
64
64
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
65
|
-
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
66
65
|
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
67
66
|
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
67
|
+
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
68
68
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
69
69
|
export { EditIcon } from './components/edit-icon.js';
|
|
70
70
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -3,8 +3,8 @@ import { type InputProps } from './input.types.js';
|
|
|
3
3
|
export declare function BaseInput({ className, size, invalid, width, ...props }: InputProps, ref: ForwardedRef<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const Input: React.ForwardRefExoticComponent<{
|
|
5
5
|
invalid?: boolean;
|
|
6
|
-
size?: "small" | "
|
|
7
|
-
[x: string]: "small" | "
|
|
6
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
7
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
width?: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | {
|
|
10
10
|
[x: string]: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | undefined;
|
|
@@ -31,7 +31,7 @@ export function SparklePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeigh
|
|
|
31
31
|
fill: "none",
|
|
32
32
|
xmlns: "http://www.w3.org/2000/svg"
|
|
33
33
|
}, React.createElement("g", {
|
|
34
|
-
|
|
34
|
+
clipPath: "url(#clip0_882_7929)"
|
|
35
35
|
}, React.createElement("path", {
|
|
36
36
|
d: "M38.9999 61.716C37.7659 61.716 36.6949 60.9716 36.2758 59.8201L32.4922 49.5961C31.782 47.6885 30.2802 46.1765 28.371 45.4786L18.1378 41.6984C16.9853 41.268 16.2402 40.1979 16.2402 38.9766C16.2402 37.7553 16.9853 36.6736 18.1378 36.2549L28.371 32.4747C30.2802 31.7652 31.7937 30.2647 32.4922 28.3572L36.2758 18.1332C36.7065 16.9817 37.7775 16.2373 38.9999 16.2373C40.2223 16.2373 43.5 17 44.0525 18.1332L47.8361 28.3572C48.5462 30.2647 50.048 31.7768 51.9572 32.4747L62.1904 36.2549C63.3429 36.6853 64.088 37.7553 64.088 38.9766C64.088 40.1979 63.3429 41.2797 62.1904 41.6984L51.9572 45.4786C50.048 46.1881 48.5346 47.6885 47.8361 49.5961C47.8361 49.5961 45.6049 57.6401 44.0525 59.8201C42.5 62 40.2223 61.716 38.9999 61.716ZM38.9999 18.5403C38.8835 18.5403 38.5808 18.5752 38.4528 18.9242L34.6692 29.1481C33.7262 31.6954 31.7238 33.7076 29.1626 34.6498L18.9295 38.43C18.5919 38.5579 18.5453 38.8487 18.5453 38.9766C18.5453 39.1046 18.5802 39.3954 18.9295 39.5233L29.1626 43.3035C31.7122 44.2457 33.7262 46.2463 34.6692 48.8052L38.4528 59.0291C38.5808 59.3664 38.8719 59.413 38.9999 59.413C39.128 59.413 39.419 59.3781 39.5471 59.0291L43.3307 48.8052C44.2737 46.2579 46.2761 44.2457 48.8372 43.3035L59.0704 39.5233C59.408 39.3954 59.4546 39.1046 59.4546 38.9766C59.4546 38.8487 59.4196 38.5579 59.0704 38.43L48.8372 34.6498C46.2877 33.7076 44.2737 31.707 43.3307 29.1481L41.4389 24.0361L39.5471 18.9242C39.419 18.5868 39.128 18.5403 38.9999 18.5403Z",
|
|
37
37
|
className: fill({
|
|
@@ -39,56 +39,56 @@ export function SparklePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeigh
|
|
|
39
39
|
outline: true
|
|
40
40
|
})
|
|
41
41
|
}), React.createElement("path", {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
fillRule: "evenodd",
|
|
43
|
+
clipRule: "evenodd",
|
|
44
44
|
d: "M67.5225 39.5465H78.0001V37.2202H67.5225V39.5465Z",
|
|
45
45
|
className: fill({
|
|
46
46
|
mode,
|
|
47
47
|
highlight: true
|
|
48
48
|
})
|
|
49
49
|
}), React.createElement("path", {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
52
|
d: "M39.582 10.4682V0H37.2537V10.4682H39.582Z",
|
|
53
53
|
className: fill({
|
|
54
54
|
mode,
|
|
55
55
|
highlight: true
|
|
56
56
|
})
|
|
57
57
|
}), React.createElement("path", {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
fillRule: "evenodd",
|
|
59
|
+
clipRule: "evenodd",
|
|
60
60
|
d: "M58.8375 20.192L66.0671 12.9689L64.4605 11.3638L57.231 18.5869L58.8375 20.192Z",
|
|
61
61
|
className: fill({
|
|
62
62
|
mode,
|
|
63
63
|
highlight: true
|
|
64
64
|
})
|
|
65
65
|
}), React.createElement("path", {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
fillRule: "evenodd",
|
|
67
|
+
clipRule: "evenodd",
|
|
68
68
|
d: "M19.9772 18.5869L12.7477 11.3638L11.1411 12.9689L18.3707 20.192L19.9772 18.5869Z",
|
|
69
69
|
className: fill({
|
|
70
70
|
mode,
|
|
71
71
|
highlight: true
|
|
72
72
|
})
|
|
73
73
|
}), React.createElement("path", {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
76
|
d: "M0 39.5465H10.4776V37.2202H0V39.5465Z",
|
|
77
77
|
className: fill({
|
|
78
78
|
mode,
|
|
79
79
|
highlight: true
|
|
80
80
|
})
|
|
81
81
|
}), React.createElement("path", {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
fillRule: "evenodd",
|
|
83
|
+
clipRule: "evenodd",
|
|
84
84
|
d: "M39.582 77.9302V67.4619H37.2537V77.9302H39.582Z",
|
|
85
85
|
className: fill({
|
|
86
86
|
mode,
|
|
87
87
|
highlight: true
|
|
88
88
|
})
|
|
89
89
|
}), React.createElement("path", {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
fillRule: "evenodd",
|
|
91
|
+
clipRule: "evenodd",
|
|
92
92
|
d: "M12.7477 66.2408L19.9772 59.0177L18.3707 57.4126L11.1411 64.6357L12.7477 66.2408Z",
|
|
93
93
|
className: fill({
|
|
94
94
|
mode,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function ProgressIndicator({ className, children,
|
|
1
|
+
import { ProgressIndicatorProps } from './progress-indicator.types.js';
|
|
2
|
+
export declare function ProgressIndicator({ className, children, color, size, 'aria-label': ariaLabel, ...props }: ProgressIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,14 +13,15 @@ function _extends() {
|
|
|
13
13
|
return _extends.apply(this, arguments);
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
|
+
import { Icon } from '../icon/icon.component.js';
|
|
16
17
|
import { styles } from './progress-indicator.styles.js';
|
|
17
|
-
export function ProgressIndicator({ className , children ,
|
|
18
|
-
return React.createElement(
|
|
18
|
+
export function ProgressIndicator({ className , children , color ='hero' , size ='medium' , 'aria-label': ariaLabel = 'Loading' , ...props }) {
|
|
19
|
+
return React.createElement(Icon, _extends({
|
|
19
20
|
className: styles({
|
|
20
|
-
className
|
|
21
|
-
size,
|
|
22
|
-
inverted
|
|
21
|
+
className
|
|
23
22
|
}),
|
|
23
|
+
size: size,
|
|
24
|
+
color: color,
|
|
24
25
|
"aria-label": ariaLabel
|
|
25
26
|
}, props), children);
|
|
26
27
|
}
|
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
size: {
|
|
3
|
-
xsmall: string;
|
|
4
|
-
small: string;
|
|
5
|
-
medium: string;
|
|
6
|
-
large: string;
|
|
7
|
-
xlarge: string;
|
|
8
|
-
};
|
|
9
|
-
inverted: {
|
|
10
|
-
true: string;
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]", {
|
|
1
|
+
export declare const styles: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent", {
|
|
14
2
|
responsiveVariants: string[];
|
|
15
|
-
}, {
|
|
16
|
-
size: {
|
|
17
|
-
xsmall: string;
|
|
18
|
-
small: string;
|
|
19
|
-
medium: string;
|
|
20
|
-
large: string;
|
|
21
|
-
xlarge: string;
|
|
22
|
-
};
|
|
23
|
-
inverted: {
|
|
24
|
-
true: string;
|
|
25
|
-
false: string;
|
|
26
|
-
};
|
|
27
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
|
-
size: {
|
|
29
|
-
xsmall: string;
|
|
30
|
-
small: string;
|
|
31
|
-
medium: string;
|
|
32
|
-
large: string;
|
|
33
|
-
xlarge: string;
|
|
34
|
-
};
|
|
35
|
-
inverted: {
|
|
36
|
-
true: string;
|
|
37
|
-
false: string;
|
|
38
|
-
};
|
|
39
|
-
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]", {
|
|
3
|
+
}, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent", {
|
|
40
4
|
responsiveVariants: string[];
|
|
41
5
|
}, unknown, unknown, undefined>>;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
|
-
base: 'box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-
|
|
4
|
-
variants: {
|
|
5
|
-
size: {
|
|
6
|
-
xsmall: 'h-2 w-2',
|
|
7
|
-
small: 'h-3 w-3',
|
|
8
|
-
medium: 'h-4 w-4',
|
|
9
|
-
large: 'h-6 w-6',
|
|
10
|
-
xlarge: 'h-8 w-8'
|
|
11
|
-
},
|
|
12
|
-
inverted: {
|
|
13
|
-
true: 'border-b-white border-l-white',
|
|
14
|
-
false: 'border-b-hero border-l-hero'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
3
|
+
base: 'box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent'
|
|
17
4
|
}, {
|
|
18
5
|
responsiveVariants: [
|
|
19
6
|
'xsl',
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { styles } from './progress-indicator.styles.js';
|
|
4
|
-
type Variants = VariantProps<typeof styles>;
|
|
5
|
-
export type ProgressIndicatorProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Whether indicator should be white for a dark background
|
|
8
|
-
*/
|
|
9
|
-
inverted?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Size of progress indicator
|
|
12
|
-
*/
|
|
13
|
-
size?: Variants['size'];
|
|
14
|
-
} & HTMLAttributes<Element>;
|
|
15
|
-
export {};
|
|
1
|
+
import { IconProps } from '../icon/icon.types.js';
|
|
2
|
+
export type ProgressIndicatorProps = IconProps;
|
|
@@ -3,8 +3,8 @@ export declare const Select: React.ForwardRefExoticComponent<{
|
|
|
3
3
|
invalid?: boolean | {
|
|
4
4
|
[x: string]: boolean | undefined;
|
|
5
5
|
} | undefined;
|
|
6
|
-
size?: "small" | "
|
|
7
|
-
[x: string]: "small" | "
|
|
6
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
7
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
width?: "auto" | 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | {
|
|
10
10
|
[x: string]: "auto" | 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | undefined;
|
|
@@ -3,8 +3,8 @@ export declare const Textarea: React.ForwardRefExoticComponent<{
|
|
|
3
3
|
invalid?: boolean | {
|
|
4
4
|
[x: string]: boolean | undefined;
|
|
5
5
|
} | undefined;
|
|
6
|
-
size?: "small" | "
|
|
7
|
-
[x: string]: "small" | "
|
|
6
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
7
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
width?: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | {
|
|
10
10
|
[x: string]: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | undefined;
|