@westpac/ui 0.23.0 → 0.24.1
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 +12 -0
- package/assets/icons/filled/drop-left-filled.svg +1 -0
- package/assets/icons/filled/drop-right-filled.svg +1 -0
- package/assets/icons/outlined/drop-left-outlined.svg +1 -0
- package/assets/icons/outlined/drop-right-outlined.svg +1 -0
- package/dist/component-type.json +1 -1
- package/dist/components/footer/footer.styles.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/components/drop-left-icon.d.ts +2 -0
- package/dist/components/icon/components/drop-left-icon.js +25 -0
- package/dist/components/icon/components/drop-right-icon.d.ts +2 -0
- package/dist/components/icon/components/drop-right-icon.js +25 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.js +2 -0
- package/dist/components/popover/components/panel/panel.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +2 -2
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +1 -1
- package/dist/components/progress-indicator/progress-indicator.styles.js +1 -1
- package/dist/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.js +1 -1
- package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.js +1 -1
- package/dist/components/progress-rope/progress-rope.styles.d.ts +3 -3
- package/dist/components/progress-rope/progress-rope.styles.js +1 -1
- package/dist/components/table/components/table-cell/table-cell.styles.js +1 -1
- package/dist/components/table/components/table-header-cell/table-header-cell.styles.js +1 -1
- package/dist/components/table/table.styles.js +1 -1
- package/dist/css/westpac-ui.css +16 -32
- package/dist/css/westpac-ui.min.css +16 -32
- package/package.json +9 -7
- package/src/components/footer/footer.styles.ts +1 -1
- package/src/components/header/header.styles.ts +1 -1
- package/src/components/icon/components/drop-left-icon.tsx +12 -0
- package/src/components/icon/components/drop-right-icon.tsx +12 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/popover/components/panel/panel.styles.ts +1 -1
- package/src/components/progress-bar/progress-bar.styles.ts +2 -2
- package/src/components/progress-indicator/progress-indicator.styles.ts +1 -1
- package/src/components/progress-rope/components/progress-rope-group-step/progress-rope-group-step.styles.ts +1 -1
- package/src/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.ts +1 -1
- package/src/components/progress-rope/progress-rope.styles.ts +1 -1
- package/src/components/table/components/table-cell/table-cell.styles.ts +1 -1
- package/src/components/table/components/table-header-cell/table-header-cell.styles.ts +1 -1
- package/src/components/table/table.styles.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'relative overflow-hidden border-t
|
|
4
|
+
base: 'relative overflow-hidden border-t border-t-border',
|
|
5
5
|
wrapper: 'pt-3 max-md:px-2 max-md:pb-3 md:px-4 md:pb-4',
|
|
6
6
|
topRow: '',
|
|
7
7
|
link: 'float-right block'
|
|
@@ -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
|
|
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]',
|
|
11
11
|
rightContent: 'ml-auto flex items-center'
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
@@ -0,0 +1,25 @@
|
|
|
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 from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left' , copyrightYear ='2024' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), React.createElement("path", {
|
|
22
|
+
d: "m8 19 8-7-8-7v14Z",
|
|
23
|
+
fill: "currentColor"
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 from 'react';
|
|
16
|
+
import { Icon } from '../icon.component.js';
|
|
17
|
+
export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right' , copyrightYear ='2024' , ...props }) {
|
|
18
|
+
return React.createElement(Icon, _extends({
|
|
19
|
+
"aria-label": ariaLabel,
|
|
20
|
+
copyrightYear: copyrightYear
|
|
21
|
+
}, props), React.createElement("path", {
|
|
22
|
+
d: "m16 5-8 7 8 7V5Z",
|
|
23
|
+
fill: "currentColor"
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
@@ -61,6 +61,8 @@ export { DownloadIcon } from './components/download-icon.js';
|
|
|
61
61
|
export { DragIcon } from './components/drag-icon.js';
|
|
62
62
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
63
63
|
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
64
|
+
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
65
|
+
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
64
66
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
65
67
|
export { EditIcon } from './components/edit-icon.js';
|
|
66
68
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -61,6 +61,8 @@ export { DownloadIcon } from './components/download-icon.js';
|
|
|
61
61
|
export { DragIcon } from './components/drag-icon.js';
|
|
62
62
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
63
63
|
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
64
|
+
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
65
|
+
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
64
66
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
65
67
|
export { EditIcon } from './components/edit-icon.js';
|
|
66
68
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -3,7 +3,7 @@ export const styles = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
5
|
popover: 'absolute z-[999] rounded border border-muted bg-white shadow-[0_5px_10px_rgba(0,0,0,0.2)]',
|
|
6
|
-
arrow: 'absolute h-0 w-0 border-x-
|
|
6
|
+
arrow: 'absolute h-0 w-0 border-x-8 border-t-[12px] border-x-[transparent] border-t-muted after:absolute after:h-0 after:w-0 after:border-x-[7px] after:border-t-[11px] after:border-x-[transparent] after:border-t-white',
|
|
7
7
|
closeBtn: 'absolute right-1 top-1 m-1 p-0 hover:opacity-80',
|
|
8
8
|
content: 'w-[17.625rem] py-4 pl-3 pr-5',
|
|
9
9
|
heading: 'typography-body-9 mb-2 font-bold text-text',
|
|
@@ -10,7 +10,7 @@ export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
true: string;
|
|
11
11
|
false: string;
|
|
12
12
|
};
|
|
13
|
-
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-
|
|
13
|
+
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]", {
|
|
14
14
|
responsiveVariants: string[];
|
|
15
15
|
}, {
|
|
16
16
|
size: {
|
|
@@ -1,6 +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-
|
|
3
|
+
base: 'box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]',
|
|
4
4
|
variants: {
|
|
5
5
|
size: {
|
|
6
6
|
xsmall: 'h-2 w-2',
|
|
@@ -3,7 +3,7 @@ export const styles = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: '',
|
|
5
5
|
circle: 'relative z-10 h-[14px] w-[14px] border-2 bg-white transition-colors',
|
|
6
|
-
circleWrapper: 'typography-body-9 relative flex w-full cursor-pointer items-center gap-2 pb-[1.625rem] pt-1 leading-
|
|
6
|
+
circleWrapper: 'typography-body-9 relative flex w-full cursor-pointer items-center gap-2 pb-[1.625rem] pt-1 leading-loose transition-colors ',
|
|
7
7
|
stepsWrapper: 'relative transition-all'
|
|
8
8
|
},
|
|
9
9
|
variants: {
|
package/dist/components/progress-rope/components/progress-rope-step/progress-rope-step.styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'typography-body-10 relative flex w-full cursor-pointer items-center gap-2 pb-[0.875rem] pt-[0.5rem] leading-
|
|
4
|
+
base: 'typography-body-10 relative flex w-full cursor-pointer items-center gap-2 pb-[0.875rem] pt-[0.5rem] leading-loose transition-colors',
|
|
5
5
|
circle: 'relative z-10 bg-white transition-colors'
|
|
6
6
|
},
|
|
7
7
|
variants: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const styles: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "relative after:absolute after:bottom-
|
|
1
|
+
export declare const styles: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "relative after:absolute after:bottom-4 after:left-1 after:top-[1.0625rem] after:z-0 after:block after:border-l-2 after:border-dotted after:border-borderDark"> | {
|
|
2
2
|
[x: string]: {
|
|
3
|
-
[x: string]: import("tailwind-variants").ClassValue | import("tailwind-variants").SlotsClassValue<undefined, "relative after:absolute after:bottom-
|
|
3
|
+
[x: string]: import("tailwind-variants").ClassValue | import("tailwind-variants").SlotsClassValue<undefined, "relative after:absolute after:bottom-4 after:left-1 after:top-[1.0625rem] after:z-0 after:block after:border-l-2 after:border-dotted after:border-borderDark">;
|
|
4
4
|
} | undefined;
|
|
5
|
-
} | {}, undefined, "relative after:absolute after:bottom-
|
|
5
|
+
} | {}, undefined, "relative after:absolute after:bottom-4 after:left-1 after:top-[1.0625rem] after:z-0 after:block after:border-l-2 after:border-dotted after:border-borderDark", TVConfig<V, EV>, import("tailwind-variants").TVVariantsDefault<undefined, "relative after:absolute after:bottom-4 after:left-1 after:top-[1.0625rem] after:z-0 after:block after:border-l-2 after:border-dotted after:border-borderDark"> | {}, undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
|
-
base: 'relative after:absolute after:bottom-
|
|
3
|
+
base: 'relative after:absolute after:bottom-4 after:left-1 after:top-[1.0625rem] after:z-0 after:block after:border-l-2 after:border-dotted after:border-borderDark'
|
|
4
4
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'typography-body-10 border border-x-0 border-
|
|
4
|
+
base: 'typography-body-10 border border-x-0 border-t-0 border-border p-2 text-left align-top'
|
|
5
5
|
},
|
|
6
6
|
variants: {
|
|
7
7
|
bordered: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'typography-body-10 border border-x-0 border-b-[3px] border-t-0 border-hero p-2 text-left align-bottom text-text group-[:nth-child(1)_&]/row:border-b
|
|
4
|
+
base: 'typography-body-10 border border-x-0 border-b-[3px] border-t-0 border-hero p-2 text-left align-bottom text-text group-[:nth-child(1)_&]/row:border-b group-[:nth-child(1)_&]/row:border-b-border'
|
|
5
5
|
},
|
|
6
6
|
variants: {
|
|
7
7
|
bordered: {
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'mb-4 w-full',
|
|
5
|
-
wrapper: 'max-xsl:mb-
|
|
5
|
+
wrapper: 'max-xsl:mb-3 max-xsl:w-full max-xsl:overflow-x-auto max-xsl:overflow-y-hidden'
|
|
6
6
|
},
|
|
7
7
|
variants: {}
|
|
8
8
|
}, {
|
package/dist/css/westpac-ui.css
CHANGED
|
@@ -3742,10 +3742,10 @@ video {
|
|
|
3742
3742
|
white-space: pre-wrap;
|
|
3743
3743
|
}.rounded {
|
|
3744
3744
|
border-radius: 0.1875rem;
|
|
3745
|
+
}.rounded-3xl {
|
|
3746
|
+
border-radius: 1.5rem;
|
|
3745
3747
|
}.rounded-\[0\.625rem\] {
|
|
3746
3748
|
border-radius: 0.625rem;
|
|
3747
|
-
}.rounded-\[1\.5rem\] {
|
|
3748
|
-
border-radius: 1.5rem;
|
|
3749
3749
|
}.rounded-\[1\.75rem\] {
|
|
3750
3750
|
border-radius: 1.75rem;
|
|
3751
3751
|
}.rounded-\[2\.125rem\] {
|
|
@@ -3796,7 +3796,7 @@ video {
|
|
|
3796
3796
|
}.border-x-0 {
|
|
3797
3797
|
border-left-width: 0px;
|
|
3798
3798
|
border-right-width: 0px;
|
|
3799
|
-
}.border-x
|
|
3799
|
+
}.border-x-8 {
|
|
3800
3800
|
border-left-width: 8px;
|
|
3801
3801
|
border-right-width: 8px;
|
|
3802
3802
|
}.border-y {
|
|
@@ -3805,9 +3805,6 @@ video {
|
|
|
3805
3805
|
}.border-y-0 {
|
|
3806
3806
|
border-top-width: 0px;
|
|
3807
3807
|
border-bottom-width: 0px;
|
|
3808
|
-
}.border-y-\[1px\] {
|
|
3809
|
-
border-top-width: 1px;
|
|
3810
|
-
border-bottom-width: 1px;
|
|
3811
3808
|
}.border-b {
|
|
3812
3809
|
border-bottom-width: 1px;
|
|
3813
3810
|
}.border-b-0 {
|
|
@@ -3816,8 +3813,6 @@ video {
|
|
|
3816
3813
|
border-bottom-width: 4px;
|
|
3817
3814
|
}.border-b-\[0\.125rem\] {
|
|
3818
3815
|
border-bottom-width: 0.125rem;
|
|
3819
|
-
}.border-b-\[1px\] {
|
|
3820
|
-
border-bottom-width: 1px;
|
|
3821
3816
|
}.border-b-\[3px\] {
|
|
3822
3817
|
border-bottom-width: 3px;
|
|
3823
3818
|
}.border-l {
|
|
@@ -3830,8 +3825,6 @@ video {
|
|
|
3830
3825
|
border-left-width: 0.125rem;
|
|
3831
3826
|
}.border-l-\[0\.375rem\] {
|
|
3832
3827
|
border-left-width: 0.375rem;
|
|
3833
|
-
}.border-l-\[1px\] {
|
|
3834
|
-
border-left-width: 1px;
|
|
3835
3828
|
}.border-l-\[6px\] {
|
|
3836
3829
|
border-left-width: 6px;
|
|
3837
3830
|
}.border-r {
|
|
@@ -3840,8 +3833,6 @@ video {
|
|
|
3840
3833
|
border-right-width: 0px;
|
|
3841
3834
|
}.border-r-\[0\.125rem\] {
|
|
3842
3835
|
border-right-width: 0.125rem;
|
|
3843
|
-
}.border-r-\[1px\] {
|
|
3844
|
-
border-right-width: 1px;
|
|
3845
3836
|
}.border-t {
|
|
3846
3837
|
border-top-width: 1px;
|
|
3847
3838
|
}.border-t-0 {
|
|
@@ -3852,8 +3843,6 @@ video {
|
|
|
3852
3843
|
border-top-width: 0.125rem;
|
|
3853
3844
|
}.border-t-\[12px\] {
|
|
3854
3845
|
border-top-width: 12px;
|
|
3855
|
-
}.border-t-\[1px\] {
|
|
3856
|
-
border-top-width: 1px;
|
|
3857
3846
|
}.\!border-solid {
|
|
3858
3847
|
border-style: solid !important;
|
|
3859
3848
|
}.border-solid {
|
|
@@ -5012,8 +5001,6 @@ video {
|
|
|
5012
5001
|
line-height: 1.125rem;
|
|
5013
5002
|
}.leading-\[1\.3rem\] {
|
|
5014
5003
|
line-height: 1.3rem;
|
|
5015
|
-
}.leading-\[1\.428571429\] {
|
|
5016
|
-
line-height: 1.428571429;
|
|
5017
5004
|
}.leading-\[1\.5\] {
|
|
5018
5005
|
line-height: 1.5;
|
|
5019
5006
|
}.leading-\[1\.685rem\] {
|
|
@@ -6008,7 +5995,7 @@ video {
|
|
|
6008
5995
|
content: var(--tw-content);
|
|
6009
5996
|
top: 1.25rem;
|
|
6010
5997
|
bottom: 1.25rem;
|
|
6011
|
-
}.after\:bottom
|
|
5998
|
+
}.after\:bottom-4::after {
|
|
6012
5999
|
content: var(--tw-content);
|
|
6013
6000
|
bottom: 1.5rem;
|
|
6014
6001
|
}.after\:bottom-\[1px\]::after {
|
|
@@ -6143,9 +6130,6 @@ video {
|
|
|
6143
6130
|
}.after\:border-l-\[0\.125rem\]::after {
|
|
6144
6131
|
content: var(--tw-content);
|
|
6145
6132
|
border-left-width: 0.125rem;
|
|
6146
|
-
}.after\:border-l-\[2px\]::after {
|
|
6147
|
-
content: var(--tw-content);
|
|
6148
|
-
border-left-width: 2px;
|
|
6149
6133
|
}.after\:border-r-0::after {
|
|
6150
6134
|
content: var(--tw-content);
|
|
6151
6135
|
border-right-width: 0px;
|
|
@@ -6440,7 +6424,7 @@ video {
|
|
|
6440
6424
|
border-left-width: 0px;
|
|
6441
6425
|
}.group\/buttons:not(:first-child) .group-\[\:not\(\:first-child\)\]\/buttons\:border-l-0 {
|
|
6442
6426
|
border-left-width: 0px;
|
|
6443
|
-
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b
|
|
6427
|
+
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b {
|
|
6444
6428
|
border-bottom-width: 1px;
|
|
6445
6429
|
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b-border {
|
|
6446
6430
|
--tw-border-opacity: 1;
|
|
@@ -6641,7 +6625,7 @@ video {
|
|
|
6641
6625
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
6642
6626
|
}
|
|
6643
6627
|
}
|
|
6644
|
-
}@media not all and (min-width: 576px) {.max-xsl\:mb
|
|
6628
|
+
}@media not all and (min-width: 576px) {.max-xsl\:mb-3 {
|
|
6645
6629
|
margin-bottom: 1.125rem;
|
|
6646
6630
|
}.max-xsl\:w-full {
|
|
6647
6631
|
width: 100%;
|
|
@@ -6965,10 +6949,10 @@ video {
|
|
|
6965
6949
|
white-space: nowrap;
|
|
6966
6950
|
}.xsl\:rounded {
|
|
6967
6951
|
border-radius: 0.1875rem;
|
|
6952
|
+
}.xsl\:rounded-3xl {
|
|
6953
|
+
border-radius: 1.5rem;
|
|
6968
6954
|
}.xsl\:rounded-\[0\.625rem\] {
|
|
6969
6955
|
border-radius: 0.625rem;
|
|
6970
|
-
}.xsl\:rounded-\[1\.5rem\] {
|
|
6971
|
-
border-radius: 1.5rem;
|
|
6972
6956
|
}.xsl\:rounded-\[1\.75rem\] {
|
|
6973
6957
|
border-radius: 1.75rem;
|
|
6974
6958
|
}.xsl\:rounded-\[2\.125rem\] {
|
|
@@ -8038,10 +8022,10 @@ video {
|
|
|
8038
8022
|
white-space: nowrap;
|
|
8039
8023
|
}.sm\:rounded {
|
|
8040
8024
|
border-radius: 0.1875rem;
|
|
8025
|
+
}.sm\:rounded-3xl {
|
|
8026
|
+
border-radius: 1.5rem;
|
|
8041
8027
|
}.sm\:rounded-\[0\.625rem\] {
|
|
8042
8028
|
border-radius: 0.625rem;
|
|
8043
|
-
}.sm\:rounded-\[1\.5rem\] {
|
|
8044
|
-
border-radius: 1.5rem;
|
|
8045
8029
|
}.sm\:rounded-\[1\.75rem\] {
|
|
8046
8030
|
border-radius: 1.75rem;
|
|
8047
8031
|
}.sm\:rounded-\[2\.125rem\] {
|
|
@@ -9140,10 +9124,10 @@ video {
|
|
|
9140
9124
|
white-space: nowrap;
|
|
9141
9125
|
}.md\:rounded {
|
|
9142
9126
|
border-radius: 0.1875rem;
|
|
9127
|
+
}.md\:rounded-3xl {
|
|
9128
|
+
border-radius: 1.5rem;
|
|
9143
9129
|
}.md\:rounded-\[0\.625rem\] {
|
|
9144
9130
|
border-radius: 0.625rem;
|
|
9145
|
-
}.md\:rounded-\[1\.5rem\] {
|
|
9146
|
-
border-radius: 1.5rem;
|
|
9147
9131
|
}.md\:rounded-\[1\.75rem\] {
|
|
9148
9132
|
border-radius: 1.75rem;
|
|
9149
9133
|
}.md\:rounded-\[2\.125rem\] {
|
|
@@ -10244,10 +10228,10 @@ video {
|
|
|
10244
10228
|
white-space: nowrap;
|
|
10245
10229
|
}.lg\:rounded {
|
|
10246
10230
|
border-radius: 0.1875rem;
|
|
10231
|
+
}.lg\:rounded-3xl {
|
|
10232
|
+
border-radius: 1.5rem;
|
|
10247
10233
|
}.lg\:rounded-\[0\.625rem\] {
|
|
10248
10234
|
border-radius: 0.625rem;
|
|
10249
|
-
}.lg\:rounded-\[1\.5rem\] {
|
|
10250
|
-
border-radius: 1.5rem;
|
|
10251
10235
|
}.lg\:rounded-\[1\.75rem\] {
|
|
10252
10236
|
border-radius: 1.75rem;
|
|
10253
10237
|
}.lg\:rounded-\[2\.125rem\] {
|
|
@@ -11303,10 +11287,10 @@ video {
|
|
|
11303
11287
|
white-space: nowrap;
|
|
11304
11288
|
}.xl\:rounded {
|
|
11305
11289
|
border-radius: 0.1875rem;
|
|
11290
|
+
}.xl\:rounded-3xl {
|
|
11291
|
+
border-radius: 1.5rem;
|
|
11306
11292
|
}.xl\:rounded-\[0\.625rem\] {
|
|
11307
11293
|
border-radius: 0.625rem;
|
|
11308
|
-
}.xl\:rounded-\[1\.5rem\] {
|
|
11309
|
-
border-radius: 1.5rem;
|
|
11310
11294
|
}.xl\:rounded-\[1\.75rem\] {
|
|
11311
11295
|
border-radius: 1.75rem;
|
|
11312
11296
|
}.xl\:rounded-\[2\.125rem\] {
|
|
@@ -3742,10 +3742,10 @@ video {
|
|
|
3742
3742
|
white-space: pre-wrap;
|
|
3743
3743
|
}.rounded {
|
|
3744
3744
|
border-radius: 0.1875rem;
|
|
3745
|
+
}.rounded-3xl {
|
|
3746
|
+
border-radius: 1.5rem;
|
|
3745
3747
|
}.rounded-\[0\.625rem\] {
|
|
3746
3748
|
border-radius: 0.625rem;
|
|
3747
|
-
}.rounded-\[1\.5rem\] {
|
|
3748
|
-
border-radius: 1.5rem;
|
|
3749
3749
|
}.rounded-\[1\.75rem\] {
|
|
3750
3750
|
border-radius: 1.75rem;
|
|
3751
3751
|
}.rounded-\[2\.125rem\] {
|
|
@@ -3796,7 +3796,7 @@ video {
|
|
|
3796
3796
|
}.border-x-0 {
|
|
3797
3797
|
border-left-width: 0px;
|
|
3798
3798
|
border-right-width: 0px;
|
|
3799
|
-
}.border-x
|
|
3799
|
+
}.border-x-8 {
|
|
3800
3800
|
border-left-width: 8px;
|
|
3801
3801
|
border-right-width: 8px;
|
|
3802
3802
|
}.border-y {
|
|
@@ -3805,9 +3805,6 @@ video {
|
|
|
3805
3805
|
}.border-y-0 {
|
|
3806
3806
|
border-top-width: 0px;
|
|
3807
3807
|
border-bottom-width: 0px;
|
|
3808
|
-
}.border-y-\[1px\] {
|
|
3809
|
-
border-top-width: 1px;
|
|
3810
|
-
border-bottom-width: 1px;
|
|
3811
3808
|
}.border-b {
|
|
3812
3809
|
border-bottom-width: 1px;
|
|
3813
3810
|
}.border-b-0 {
|
|
@@ -3816,8 +3813,6 @@ video {
|
|
|
3816
3813
|
border-bottom-width: 4px;
|
|
3817
3814
|
}.border-b-\[0\.125rem\] {
|
|
3818
3815
|
border-bottom-width: 0.125rem;
|
|
3819
|
-
}.border-b-\[1px\] {
|
|
3820
|
-
border-bottom-width: 1px;
|
|
3821
3816
|
}.border-b-\[3px\] {
|
|
3822
3817
|
border-bottom-width: 3px;
|
|
3823
3818
|
}.border-l {
|
|
@@ -3830,8 +3825,6 @@ video {
|
|
|
3830
3825
|
border-left-width: 0.125rem;
|
|
3831
3826
|
}.border-l-\[0\.375rem\] {
|
|
3832
3827
|
border-left-width: 0.375rem;
|
|
3833
|
-
}.border-l-\[1px\] {
|
|
3834
|
-
border-left-width: 1px;
|
|
3835
3828
|
}.border-l-\[6px\] {
|
|
3836
3829
|
border-left-width: 6px;
|
|
3837
3830
|
}.border-r {
|
|
@@ -3840,8 +3833,6 @@ video {
|
|
|
3840
3833
|
border-right-width: 0px;
|
|
3841
3834
|
}.border-r-\[0\.125rem\] {
|
|
3842
3835
|
border-right-width: 0.125rem;
|
|
3843
|
-
}.border-r-\[1px\] {
|
|
3844
|
-
border-right-width: 1px;
|
|
3845
3836
|
}.border-t {
|
|
3846
3837
|
border-top-width: 1px;
|
|
3847
3838
|
}.border-t-0 {
|
|
@@ -3852,8 +3843,6 @@ video {
|
|
|
3852
3843
|
border-top-width: 0.125rem;
|
|
3853
3844
|
}.border-t-\[12px\] {
|
|
3854
3845
|
border-top-width: 12px;
|
|
3855
|
-
}.border-t-\[1px\] {
|
|
3856
|
-
border-top-width: 1px;
|
|
3857
3846
|
}.\!border-solid {
|
|
3858
3847
|
border-style: solid !important;
|
|
3859
3848
|
}.border-solid {
|
|
@@ -5012,8 +5001,6 @@ video {
|
|
|
5012
5001
|
line-height: 1.125rem;
|
|
5013
5002
|
}.leading-\[1\.3rem\] {
|
|
5014
5003
|
line-height: 1.3rem;
|
|
5015
|
-
}.leading-\[1\.428571429\] {
|
|
5016
|
-
line-height: 1.428571429;
|
|
5017
5004
|
}.leading-\[1\.5\] {
|
|
5018
5005
|
line-height: 1.5;
|
|
5019
5006
|
}.leading-\[1\.685rem\] {
|
|
@@ -6008,7 +5995,7 @@ video {
|
|
|
6008
5995
|
content: var(--tw-content);
|
|
6009
5996
|
top: 1.25rem;
|
|
6010
5997
|
bottom: 1.25rem;
|
|
6011
|
-
}.after\:bottom
|
|
5998
|
+
}.after\:bottom-4::after {
|
|
6012
5999
|
content: var(--tw-content);
|
|
6013
6000
|
bottom: 1.5rem;
|
|
6014
6001
|
}.after\:bottom-\[1px\]::after {
|
|
@@ -6143,9 +6130,6 @@ video {
|
|
|
6143
6130
|
}.after\:border-l-\[0\.125rem\]::after {
|
|
6144
6131
|
content: var(--tw-content);
|
|
6145
6132
|
border-left-width: 0.125rem;
|
|
6146
|
-
}.after\:border-l-\[2px\]::after {
|
|
6147
|
-
content: var(--tw-content);
|
|
6148
|
-
border-left-width: 2px;
|
|
6149
6133
|
}.after\:border-r-0::after {
|
|
6150
6134
|
content: var(--tw-content);
|
|
6151
6135
|
border-right-width: 0px;
|
|
@@ -6440,7 +6424,7 @@ video {
|
|
|
6440
6424
|
border-left-width: 0px;
|
|
6441
6425
|
}.group\/buttons:not(:first-child) .group-\[\:not\(\:first-child\)\]\/buttons\:border-l-0 {
|
|
6442
6426
|
border-left-width: 0px;
|
|
6443
|
-
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b
|
|
6427
|
+
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b {
|
|
6444
6428
|
border-bottom-width: 1px;
|
|
6445
6429
|
}:nth-child(1) .group\/row .group-\[\:nth-child\(1\)_\&\]\/row\:border-b-border {
|
|
6446
6430
|
--tw-border-opacity: 1;
|
|
@@ -6641,7 +6625,7 @@ video {
|
|
|
6641
6625
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
6642
6626
|
}
|
|
6643
6627
|
}
|
|
6644
|
-
}@media not all and (min-width: 576px) {.max-xsl\:mb
|
|
6628
|
+
}@media not all and (min-width: 576px) {.max-xsl\:mb-3 {
|
|
6645
6629
|
margin-bottom: 1.125rem;
|
|
6646
6630
|
}.max-xsl\:w-full {
|
|
6647
6631
|
width: 100%;
|
|
@@ -6965,10 +6949,10 @@ video {
|
|
|
6965
6949
|
white-space: nowrap;
|
|
6966
6950
|
}.xsl\:rounded {
|
|
6967
6951
|
border-radius: 0.1875rem;
|
|
6952
|
+
}.xsl\:rounded-3xl {
|
|
6953
|
+
border-radius: 1.5rem;
|
|
6968
6954
|
}.xsl\:rounded-\[0\.625rem\] {
|
|
6969
6955
|
border-radius: 0.625rem;
|
|
6970
|
-
}.xsl\:rounded-\[1\.5rem\] {
|
|
6971
|
-
border-radius: 1.5rem;
|
|
6972
6956
|
}.xsl\:rounded-\[1\.75rem\] {
|
|
6973
6957
|
border-radius: 1.75rem;
|
|
6974
6958
|
}.xsl\:rounded-\[2\.125rem\] {
|
|
@@ -8038,10 +8022,10 @@ video {
|
|
|
8038
8022
|
white-space: nowrap;
|
|
8039
8023
|
}.sm\:rounded {
|
|
8040
8024
|
border-radius: 0.1875rem;
|
|
8025
|
+
}.sm\:rounded-3xl {
|
|
8026
|
+
border-radius: 1.5rem;
|
|
8041
8027
|
}.sm\:rounded-\[0\.625rem\] {
|
|
8042
8028
|
border-radius: 0.625rem;
|
|
8043
|
-
}.sm\:rounded-\[1\.5rem\] {
|
|
8044
|
-
border-radius: 1.5rem;
|
|
8045
8029
|
}.sm\:rounded-\[1\.75rem\] {
|
|
8046
8030
|
border-radius: 1.75rem;
|
|
8047
8031
|
}.sm\:rounded-\[2\.125rem\] {
|
|
@@ -9140,10 +9124,10 @@ video {
|
|
|
9140
9124
|
white-space: nowrap;
|
|
9141
9125
|
}.md\:rounded {
|
|
9142
9126
|
border-radius: 0.1875rem;
|
|
9127
|
+
}.md\:rounded-3xl {
|
|
9128
|
+
border-radius: 1.5rem;
|
|
9143
9129
|
}.md\:rounded-\[0\.625rem\] {
|
|
9144
9130
|
border-radius: 0.625rem;
|
|
9145
|
-
}.md\:rounded-\[1\.5rem\] {
|
|
9146
|
-
border-radius: 1.5rem;
|
|
9147
9131
|
}.md\:rounded-\[1\.75rem\] {
|
|
9148
9132
|
border-radius: 1.75rem;
|
|
9149
9133
|
}.md\:rounded-\[2\.125rem\] {
|
|
@@ -10244,10 +10228,10 @@ video {
|
|
|
10244
10228
|
white-space: nowrap;
|
|
10245
10229
|
}.lg\:rounded {
|
|
10246
10230
|
border-radius: 0.1875rem;
|
|
10231
|
+
}.lg\:rounded-3xl {
|
|
10232
|
+
border-radius: 1.5rem;
|
|
10247
10233
|
}.lg\:rounded-\[0\.625rem\] {
|
|
10248
10234
|
border-radius: 0.625rem;
|
|
10249
|
-
}.lg\:rounded-\[1\.5rem\] {
|
|
10250
|
-
border-radius: 1.5rem;
|
|
10251
10235
|
}.lg\:rounded-\[1\.75rem\] {
|
|
10252
10236
|
border-radius: 1.75rem;
|
|
10253
10237
|
}.lg\:rounded-\[2\.125rem\] {
|
|
@@ -11303,10 +11287,10 @@ video {
|
|
|
11303
11287
|
white-space: nowrap;
|
|
11304
11288
|
}.xl\:rounded {
|
|
11305
11289
|
border-radius: 0.1875rem;
|
|
11290
|
+
}.xl\:rounded-3xl {
|
|
11291
|
+
border-radius: 1.5rem;
|
|
11306
11292
|
}.xl\:rounded-\[0\.625rem\] {
|
|
11307
11293
|
border-radius: 0.625rem;
|
|
11308
|
-
}.xl\:rounded-\[1\.5rem\] {
|
|
11309
|
-
border-radius: 1.5rem;
|
|
11310
11294
|
}.xl\:rounded-\[1\.75rem\] {
|
|
11311
11295
|
border-radius: 1.75rem;
|
|
11312
11296
|
}.xl\:rounded-\[2\.125rem\] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@westpac/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"@storybook/blocks": "^7.6.4",
|
|
216
216
|
"@storybook/manager-api": "~7.6.4",
|
|
217
217
|
"@storybook/react": "^7.6.4",
|
|
218
|
-
"@storybook/react-vite": "^
|
|
218
|
+
"@storybook/react-vite": "^8.1.6",
|
|
219
219
|
"@storybook/testing-library": "^0.2.2",
|
|
220
220
|
"@storybook/theming": "~7.6.4",
|
|
221
221
|
"@swc/cli": "^0.1.62",
|
|
@@ -225,16 +225,17 @@
|
|
|
225
225
|
"@testing-library/user-event": "~14.4.3",
|
|
226
226
|
"@types/lodash-es": "~4.17.8",
|
|
227
227
|
"@types/lodash.throttle": "~4.1.7",
|
|
228
|
+
"@types/node": "~20.12.12",
|
|
228
229
|
"@types/prettier": "~2.7.3",
|
|
229
230
|
"@types/react": "^18.2.28",
|
|
230
231
|
"@types/react-dom": "^18.2.1",
|
|
231
232
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
232
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
233
|
+
"@vitejs/plugin-react-swc": "^3.7.0",
|
|
233
234
|
"@vitest/coverage-c8": "^0.31.0",
|
|
234
235
|
"chokidar": "^3.5.3",
|
|
235
236
|
"colorjs.io": "~0.4.5",
|
|
236
237
|
"cross-env": "~7.0.3",
|
|
237
|
-
"eslint": "^
|
|
238
|
+
"eslint": "^8.56.0",
|
|
238
239
|
"eslint-plugin-storybook": "~0.6.15",
|
|
239
240
|
"glob": "~10.3.3",
|
|
240
241
|
"jsdom": "^22.0.0",
|
|
@@ -253,11 +254,11 @@
|
|
|
253
254
|
"tailwindcss-themer": "~3.1.0",
|
|
254
255
|
"ts-node": "~10.9.1",
|
|
255
256
|
"typescript": "^5.1.6",
|
|
256
|
-
"vite": "^
|
|
257
|
+
"vite": "^5.2.12",
|
|
257
258
|
"vitest": "^0.30.1",
|
|
258
|
-
"@westpac/
|
|
259
|
+
"@westpac/eslint-config": "~0.2.2",
|
|
259
260
|
"@westpac/test-config": "~0.0.0",
|
|
260
|
-
"@westpac/
|
|
261
|
+
"@westpac/ts-config": "~0.0.0"
|
|
261
262
|
},
|
|
262
263
|
"dependencies": {
|
|
263
264
|
"@duetds/date-picker": "~1.4.0",
|
|
@@ -277,6 +278,7 @@
|
|
|
277
278
|
},
|
|
278
279
|
"peerDependencies": {
|
|
279
280
|
"@duetds/date-picker": "~1.4.0",
|
|
281
|
+
"@types/node": "~20.12.12",
|
|
280
282
|
"colorjs.io": "~0.4.5",
|
|
281
283
|
"react": ">=18.2.0",
|
|
282
284
|
"tailwind-variants": "~0.1.13",
|
|
@@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants';
|
|
|
3
3
|
export const styles = tv(
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
base: 'relative overflow-hidden border-t
|
|
6
|
+
base: 'relative overflow-hidden border-t border-t-border',
|
|
7
7
|
wrapper: 'pt-3 max-md:px-2 max-md:pb-3 md:px-4 md:pb-4',
|
|
8
8
|
topRow: '',
|
|
9
9
|
link: 'float-right block',
|
|
@@ -11,7 +11,7 @@ export const styles = tv(
|
|
|
11
11
|
largeLogo: 'max-sm:hidden',
|
|
12
12
|
leftContent: 'flex items-center',
|
|
13
13
|
leftButton:
|
|
14
|
-
'my-1 border-r
|
|
14
|
+
'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]',
|
|
15
15
|
rightContent: 'ml-auto flex items-center',
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon } from '../icon.component.js';
|
|
4
|
+
import { type IconProps } from '../icon.types.js';
|
|
5
|
+
|
|
6
|
+
export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left', copyrightYear = '2024', ...props }: IconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
9
|
+
<path d="m8 19 8-7-8-7v14Z" fill="currentColor" />
|
|
10
|
+
</Icon>
|
|
11
|
+
);
|
|
12
|
+
}
|