@westpac/ui 0.10.0 → 0.12.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 +12 -0
- package/dist/components/accordion/accordion.component.js +1 -1
- package/dist/components/accordion/components/accordion-item/accordion-item.styles.js +2 -2
- package/dist/components/date-picker/date-picker.component.js +1 -1
- package/dist/components/tabs/components/tab/tab.styles.js +1 -1
- package/dist/css/westpac-ui.css +41 -30
- package/dist/css/westpac-ui.min.css +41 -30
- package/dist/tailwind/tailwind-plugin.js +8 -1
- package/package.json +130 -6
- package/src/components/accordion/accordion.component.tsx +1 -1
- package/src/components/accordion/components/accordion-item/accordion-item.styles.ts +3 -2
- package/src/components/date-picker/date-picker.component.tsx +1 -1
- package/src/components/tabs/components/tab/tab.styles.ts +1 -1
- package/src/tailwind/tailwind-plugin.ts +5 -0
- package/utils/build-exports/index.ts +38 -0
package/CHANGELOG.md
CHANGED
|
@@ -41,7 +41,7 @@ function Accordion({ className , rounded =true , look ='soft' , ...props }, ref)
|
|
|
41
41
|
rounded
|
|
42
42
|
})
|
|
43
43
|
}), React.createElement("div", {
|
|
44
|
-
className: "mt-[-1px]"
|
|
44
|
+
className: "ml-[-1px] mt-[-1px]"
|
|
45
45
|
}, [
|
|
46
46
|
...state.collection
|
|
47
47
|
].map((item)=>React.createElement(AccordionItem, {
|
|
@@ -12,7 +12,7 @@ export const styles = tv({
|
|
|
12
12
|
itemHeader: 'border-t border-border bg-light'
|
|
13
13
|
},
|
|
14
14
|
lego: {
|
|
15
|
-
itemHeader: 'border-l-[0.375rem] border-
|
|
15
|
+
itemHeader: 'border-l-[0.375rem] border-border bg-light shadow-[inset_0_1px_0_var(--tw-shadow-color)] !shadow-border transition-colors'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
isOpen: {
|
|
@@ -21,7 +21,7 @@ export const styles = tv({
|
|
|
21
21
|
},
|
|
22
22
|
false: {
|
|
23
23
|
base: '',
|
|
24
|
-
itemHeader: 'hover:bg-background'
|
|
24
|
+
itemHeader: 'background-transition hover:bg-background'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
isDisabled: {
|
|
@@ -20,7 +20,7 @@ export function DatePicker({ disableWeekends , disableDaysOfWeek , disableDates
|
|
|
20
20
|
const [initialized, setInitialized] = useState(false);
|
|
21
21
|
useEffect(()=>{
|
|
22
22
|
const initDatePicker = async ()=>{
|
|
23
|
-
const { defineCustomElements } = await import('@duetds/date-picker/custom-element');
|
|
23
|
+
const { defineCustomElements } = await import('@duetds/date-picker/custom-element/index.js');
|
|
24
24
|
defineCustomElements(window);
|
|
25
25
|
setInitialized(true);
|
|
26
26
|
};
|
package/dist/css/westpac-ui.css
CHANGED
|
@@ -3865,6 +3865,10 @@ video {
|
|
|
3865
3865
|
--tw-shadow: 0 5px 10px rgba(0,0,0,0.2);
|
|
3866
3866
|
--tw-shadow-colored: 0 5px 10px var(--tw-shadow-color);
|
|
3867
3867
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3868
|
+
}.shadow-\[inset_0_1px_0_var\(--tw-shadow-color\)\] {
|
|
3869
|
+
--tw-shadow: inset 0 1px 0 var(--tw-shadow-color);
|
|
3870
|
+
--tw-shadow-colored: inset 0 1px 0 var(--tw-shadow-color);
|
|
3871
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3868
3872
|
}.shadow-lg {
|
|
3869
3873
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
3870
3874
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -3877,6 +3881,9 @@ video {
|
|
|
3877
3881
|
--tw-shadow: 0 0 #0000;
|
|
3878
3882
|
--tw-shadow-colored: 0 0 #0000;
|
|
3879
3883
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3884
|
+
}.\!shadow-border {
|
|
3885
|
+
--tw-shadow-color: rgb(var(--colors-border)) !important;
|
|
3886
|
+
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
3880
3887
|
}.\!shadow-primary {
|
|
3881
3888
|
--tw-shadow-color: rgb(var(--colors-primary)) !important;
|
|
3882
3889
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
@@ -3927,10 +3934,14 @@ video {
|
|
|
3927
3934
|
transition-property: transform;
|
|
3928
3935
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3929
3936
|
transition-duration: 150ms;
|
|
3937
|
+
}.duration-300 {
|
|
3938
|
+
transition-duration: 300ms;
|
|
3930
3939
|
}.duration-\[\.3s\] {
|
|
3931
3940
|
transition-duration: .3s;
|
|
3932
3941
|
}.duration-\[\.6s\] {
|
|
3933
3942
|
transition-duration: .6s;
|
|
3943
|
+
}.ease-ease {
|
|
3944
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
3934
3945
|
}.\!focus-outline {
|
|
3935
3946
|
outline-style: solid;
|
|
3936
3947
|
outline-width: 2px;
|
|
@@ -3941,6 +3952,11 @@ video {
|
|
|
3941
3952
|
outline-width: 2px;
|
|
3942
3953
|
outline-offset: 3px;
|
|
3943
3954
|
outline-color: rgb(var(--colors-focus));
|
|
3955
|
+
}.background-transition {
|
|
3956
|
+
transition-property: background;
|
|
3957
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3958
|
+
transition-duration: 300ms;
|
|
3959
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
3944
3960
|
}.select-caret {
|
|
3945
3961
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>");
|
|
3946
3962
|
}.read-only\:form-control-disabled:-moz-read-only {
|
|
@@ -5275,8 +5291,6 @@ video {
|
|
|
5275
5291
|
border-left-width: 0px;
|
|
5276
5292
|
}.xsl\:border-l-\[0\.125rem\] {
|
|
5277
5293
|
border-left-width: 0.125rem;
|
|
5278
|
-
}.xsl\:border-l-\[0\.375rem\] {
|
|
5279
|
-
border-left-width: 0.375rem;
|
|
5280
5294
|
}.xsl\:border-l-\[6px\] {
|
|
5281
5295
|
border-left-width: 6px;
|
|
5282
5296
|
}.xsl\:border-r-0 {
|
|
@@ -5543,15 +5557,16 @@ video {
|
|
|
5543
5557
|
}.xsl\:outline-none {
|
|
5544
5558
|
outline: 2px solid transparent;
|
|
5545
5559
|
outline-offset: 2px;
|
|
5546
|
-
}.xsl\:transition-colors {
|
|
5547
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
5548
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5549
|
-
transition-duration: 150ms;
|
|
5550
5560
|
}.xsl\:focus-outline {
|
|
5551
5561
|
outline-style: solid;
|
|
5552
5562
|
outline-width: 2px;
|
|
5553
5563
|
outline-offset: 3px;
|
|
5554
5564
|
outline-color: rgb(var(--colors-focus));
|
|
5565
|
+
}.xsl\:background-transition {
|
|
5566
|
+
transition-property: background;
|
|
5567
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5568
|
+
transition-duration: 300ms;
|
|
5569
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
5555
5570
|
}.xsl\:before\:block::before {
|
|
5556
5571
|
content: var(--tw-content);
|
|
5557
5572
|
display: block;
|
|
@@ -6118,8 +6133,6 @@ video {
|
|
|
6118
6133
|
border-left-width: 0px;
|
|
6119
6134
|
}.sm\:border-l-\[0\.125rem\] {
|
|
6120
6135
|
border-left-width: 0.125rem;
|
|
6121
|
-
}.sm\:border-l-\[0\.375rem\] {
|
|
6122
|
-
border-left-width: 0.375rem;
|
|
6123
6136
|
}.sm\:border-l-\[6px\] {
|
|
6124
6137
|
border-left-width: 6px;
|
|
6125
6138
|
}.sm\:border-r-0 {
|
|
@@ -6397,15 +6410,16 @@ video {
|
|
|
6397
6410
|
}.sm\:outline-none {
|
|
6398
6411
|
outline: 2px solid transparent;
|
|
6399
6412
|
outline-offset: 2px;
|
|
6400
|
-
}.sm\:transition-colors {
|
|
6401
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
6402
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
6403
|
-
transition-duration: 150ms;
|
|
6404
6413
|
}.sm\:focus-outline {
|
|
6405
6414
|
outline-style: solid;
|
|
6406
6415
|
outline-width: 2px;
|
|
6407
6416
|
outline-offset: 3px;
|
|
6408
6417
|
outline-color: rgb(var(--colors-focus));
|
|
6418
|
+
}.sm\:background-transition {
|
|
6419
|
+
transition-property: background;
|
|
6420
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
6421
|
+
transition-duration: 300ms;
|
|
6422
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
6409
6423
|
}.sm\:before\:block::before {
|
|
6410
6424
|
content: var(--tw-content);
|
|
6411
6425
|
display: block;
|
|
@@ -6975,8 +6989,6 @@ video {
|
|
|
6975
6989
|
border-left-width: 0px;
|
|
6976
6990
|
}.md\:border-l-\[0\.125rem\] {
|
|
6977
6991
|
border-left-width: 0.125rem;
|
|
6978
|
-
}.md\:border-l-\[0\.375rem\] {
|
|
6979
|
-
border-left-width: 0.375rem;
|
|
6980
6992
|
}.md\:border-l-\[6px\] {
|
|
6981
6993
|
border-left-width: 6px;
|
|
6982
6994
|
}.md\:border-r-0 {
|
|
@@ -7244,15 +7256,16 @@ video {
|
|
|
7244
7256
|
}.md\:outline-none {
|
|
7245
7257
|
outline: 2px solid transparent;
|
|
7246
7258
|
outline-offset: 2px;
|
|
7247
|
-
}.md\:transition-colors {
|
|
7248
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
7249
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
7250
|
-
transition-duration: 150ms;
|
|
7251
7259
|
}.md\:focus-outline {
|
|
7252
7260
|
outline-style: solid;
|
|
7253
7261
|
outline-width: 2px;
|
|
7254
7262
|
outline-offset: 3px;
|
|
7255
7263
|
outline-color: rgb(var(--colors-focus));
|
|
7264
|
+
}.md\:background-transition {
|
|
7265
|
+
transition-property: background;
|
|
7266
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
7267
|
+
transition-duration: 300ms;
|
|
7268
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
7256
7269
|
}.md\:before\:block::before {
|
|
7257
7270
|
content: var(--tw-content);
|
|
7258
7271
|
display: block;
|
|
@@ -7827,8 +7840,6 @@ video {
|
|
|
7827
7840
|
border-left-width: 0px;
|
|
7828
7841
|
}.lg\:border-l-\[0\.125rem\] {
|
|
7829
7842
|
border-left-width: 0.125rem;
|
|
7830
|
-
}.lg\:border-l-\[0\.375rem\] {
|
|
7831
|
-
border-left-width: 0.375rem;
|
|
7832
7843
|
}.lg\:border-l-\[6px\] {
|
|
7833
7844
|
border-left-width: 6px;
|
|
7834
7845
|
}.lg\:border-r-0 {
|
|
@@ -8096,15 +8107,16 @@ video {
|
|
|
8096
8107
|
}.lg\:outline-none {
|
|
8097
8108
|
outline: 2px solid transparent;
|
|
8098
8109
|
outline-offset: 2px;
|
|
8099
|
-
}.lg\:transition-colors {
|
|
8100
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
8101
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8102
|
-
transition-duration: 150ms;
|
|
8103
8110
|
}.lg\:focus-outline {
|
|
8104
8111
|
outline-style: solid;
|
|
8105
8112
|
outline-width: 2px;
|
|
8106
8113
|
outline-offset: 3px;
|
|
8107
8114
|
outline-color: rgb(var(--colors-focus));
|
|
8115
|
+
}.lg\:background-transition {
|
|
8116
|
+
transition-property: background;
|
|
8117
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8118
|
+
transition-duration: 300ms;
|
|
8119
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
8108
8120
|
}.lg\:before\:block::before {
|
|
8109
8121
|
content: var(--tw-content);
|
|
8110
8122
|
display: block;
|
|
@@ -8665,8 +8677,6 @@ video {
|
|
|
8665
8677
|
border-left-width: 0px;
|
|
8666
8678
|
}.xl\:border-l-\[0\.125rem\] {
|
|
8667
8679
|
border-left-width: 0.125rem;
|
|
8668
|
-
}.xl\:border-l-\[0\.375rem\] {
|
|
8669
|
-
border-left-width: 0.375rem;
|
|
8670
8680
|
}.xl\:border-l-\[6px\] {
|
|
8671
8681
|
border-left-width: 6px;
|
|
8672
8682
|
}.xl\:border-r-0 {
|
|
@@ -8928,15 +8938,16 @@ video {
|
|
|
8928
8938
|
}.xl\:outline-none {
|
|
8929
8939
|
outline: 2px solid transparent;
|
|
8930
8940
|
outline-offset: 2px;
|
|
8931
|
-
}.xl\:transition-colors {
|
|
8932
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
8933
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8934
|
-
transition-duration: 150ms;
|
|
8935
8941
|
}.xl\:focus-outline {
|
|
8936
8942
|
outline-style: solid;
|
|
8937
8943
|
outline-width: 2px;
|
|
8938
8944
|
outline-offset: 3px;
|
|
8939
8945
|
outline-color: rgb(var(--colors-focus));
|
|
8946
|
+
}.xl\:background-transition {
|
|
8947
|
+
transition-property: background;
|
|
8948
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8949
|
+
transition-duration: 300ms;
|
|
8950
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
8940
8951
|
}.xl\:before\:block::before {
|
|
8941
8952
|
content: var(--tw-content);
|
|
8942
8953
|
display: block;
|
|
@@ -3865,6 +3865,10 @@ video {
|
|
|
3865
3865
|
--tw-shadow: 0 5px 10px rgba(0,0,0,0.2);
|
|
3866
3866
|
--tw-shadow-colored: 0 5px 10px var(--tw-shadow-color);
|
|
3867
3867
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3868
|
+
}.shadow-\[inset_0_1px_0_var\(--tw-shadow-color\)\] {
|
|
3869
|
+
--tw-shadow: inset 0 1px 0 var(--tw-shadow-color);
|
|
3870
|
+
--tw-shadow-colored: inset 0 1px 0 var(--tw-shadow-color);
|
|
3871
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3868
3872
|
}.shadow-lg {
|
|
3869
3873
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
3870
3874
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -3877,6 +3881,9 @@ video {
|
|
|
3877
3881
|
--tw-shadow: 0 0 #0000;
|
|
3878
3882
|
--tw-shadow-colored: 0 0 #0000;
|
|
3879
3883
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
3884
|
+
}.\!shadow-border {
|
|
3885
|
+
--tw-shadow-color: rgb(var(--colors-border)) !important;
|
|
3886
|
+
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
3880
3887
|
}.\!shadow-primary {
|
|
3881
3888
|
--tw-shadow-color: rgb(var(--colors-primary)) !important;
|
|
3882
3889
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
@@ -3927,10 +3934,14 @@ video {
|
|
|
3927
3934
|
transition-property: transform;
|
|
3928
3935
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3929
3936
|
transition-duration: 150ms;
|
|
3937
|
+
}.duration-300 {
|
|
3938
|
+
transition-duration: 300ms;
|
|
3930
3939
|
}.duration-\[\.3s\] {
|
|
3931
3940
|
transition-duration: .3s;
|
|
3932
3941
|
}.duration-\[\.6s\] {
|
|
3933
3942
|
transition-duration: .6s;
|
|
3943
|
+
}.ease-ease {
|
|
3944
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
3934
3945
|
}.\!focus-outline {
|
|
3935
3946
|
outline-style: solid;
|
|
3936
3947
|
outline-width: 2px;
|
|
@@ -3941,6 +3952,11 @@ video {
|
|
|
3941
3952
|
outline-width: 2px;
|
|
3942
3953
|
outline-offset: 3px;
|
|
3943
3954
|
outline-color: rgb(var(--colors-focus));
|
|
3955
|
+
}.background-transition {
|
|
3956
|
+
transition-property: background;
|
|
3957
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3958
|
+
transition-duration: 300ms;
|
|
3959
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
3944
3960
|
}.select-caret {
|
|
3945
3961
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>");
|
|
3946
3962
|
}.read-only\:form-control-disabled:-moz-read-only {
|
|
@@ -5275,8 +5291,6 @@ video {
|
|
|
5275
5291
|
border-left-width: 0px;
|
|
5276
5292
|
}.xsl\:border-l-\[0\.125rem\] {
|
|
5277
5293
|
border-left-width: 0.125rem;
|
|
5278
|
-
}.xsl\:border-l-\[0\.375rem\] {
|
|
5279
|
-
border-left-width: 0.375rem;
|
|
5280
5294
|
}.xsl\:border-l-\[6px\] {
|
|
5281
5295
|
border-left-width: 6px;
|
|
5282
5296
|
}.xsl\:border-r-0 {
|
|
@@ -5543,15 +5557,16 @@ video {
|
|
|
5543
5557
|
}.xsl\:outline-none {
|
|
5544
5558
|
outline: 2px solid transparent;
|
|
5545
5559
|
outline-offset: 2px;
|
|
5546
|
-
}.xsl\:transition-colors {
|
|
5547
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
5548
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5549
|
-
transition-duration: 150ms;
|
|
5550
5560
|
}.xsl\:focus-outline {
|
|
5551
5561
|
outline-style: solid;
|
|
5552
5562
|
outline-width: 2px;
|
|
5553
5563
|
outline-offset: 3px;
|
|
5554
5564
|
outline-color: rgb(var(--colors-focus));
|
|
5565
|
+
}.xsl\:background-transition {
|
|
5566
|
+
transition-property: background;
|
|
5567
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5568
|
+
transition-duration: 300ms;
|
|
5569
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
5555
5570
|
}.xsl\:before\:block::before {
|
|
5556
5571
|
content: var(--tw-content);
|
|
5557
5572
|
display: block;
|
|
@@ -6118,8 +6133,6 @@ video {
|
|
|
6118
6133
|
border-left-width: 0px;
|
|
6119
6134
|
}.sm\:border-l-\[0\.125rem\] {
|
|
6120
6135
|
border-left-width: 0.125rem;
|
|
6121
|
-
}.sm\:border-l-\[0\.375rem\] {
|
|
6122
|
-
border-left-width: 0.375rem;
|
|
6123
6136
|
}.sm\:border-l-\[6px\] {
|
|
6124
6137
|
border-left-width: 6px;
|
|
6125
6138
|
}.sm\:border-r-0 {
|
|
@@ -6397,15 +6410,16 @@ video {
|
|
|
6397
6410
|
}.sm\:outline-none {
|
|
6398
6411
|
outline: 2px solid transparent;
|
|
6399
6412
|
outline-offset: 2px;
|
|
6400
|
-
}.sm\:transition-colors {
|
|
6401
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
6402
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
6403
|
-
transition-duration: 150ms;
|
|
6404
6413
|
}.sm\:focus-outline {
|
|
6405
6414
|
outline-style: solid;
|
|
6406
6415
|
outline-width: 2px;
|
|
6407
6416
|
outline-offset: 3px;
|
|
6408
6417
|
outline-color: rgb(var(--colors-focus));
|
|
6418
|
+
}.sm\:background-transition {
|
|
6419
|
+
transition-property: background;
|
|
6420
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
6421
|
+
transition-duration: 300ms;
|
|
6422
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
6409
6423
|
}.sm\:before\:block::before {
|
|
6410
6424
|
content: var(--tw-content);
|
|
6411
6425
|
display: block;
|
|
@@ -6975,8 +6989,6 @@ video {
|
|
|
6975
6989
|
border-left-width: 0px;
|
|
6976
6990
|
}.md\:border-l-\[0\.125rem\] {
|
|
6977
6991
|
border-left-width: 0.125rem;
|
|
6978
|
-
}.md\:border-l-\[0\.375rem\] {
|
|
6979
|
-
border-left-width: 0.375rem;
|
|
6980
6992
|
}.md\:border-l-\[6px\] {
|
|
6981
6993
|
border-left-width: 6px;
|
|
6982
6994
|
}.md\:border-r-0 {
|
|
@@ -7244,15 +7256,16 @@ video {
|
|
|
7244
7256
|
}.md\:outline-none {
|
|
7245
7257
|
outline: 2px solid transparent;
|
|
7246
7258
|
outline-offset: 2px;
|
|
7247
|
-
}.md\:transition-colors {
|
|
7248
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
7249
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
7250
|
-
transition-duration: 150ms;
|
|
7251
7259
|
}.md\:focus-outline {
|
|
7252
7260
|
outline-style: solid;
|
|
7253
7261
|
outline-width: 2px;
|
|
7254
7262
|
outline-offset: 3px;
|
|
7255
7263
|
outline-color: rgb(var(--colors-focus));
|
|
7264
|
+
}.md\:background-transition {
|
|
7265
|
+
transition-property: background;
|
|
7266
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
7267
|
+
transition-duration: 300ms;
|
|
7268
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
7256
7269
|
}.md\:before\:block::before {
|
|
7257
7270
|
content: var(--tw-content);
|
|
7258
7271
|
display: block;
|
|
@@ -7827,8 +7840,6 @@ video {
|
|
|
7827
7840
|
border-left-width: 0px;
|
|
7828
7841
|
}.lg\:border-l-\[0\.125rem\] {
|
|
7829
7842
|
border-left-width: 0.125rem;
|
|
7830
|
-
}.lg\:border-l-\[0\.375rem\] {
|
|
7831
|
-
border-left-width: 0.375rem;
|
|
7832
7843
|
}.lg\:border-l-\[6px\] {
|
|
7833
7844
|
border-left-width: 6px;
|
|
7834
7845
|
}.lg\:border-r-0 {
|
|
@@ -8096,15 +8107,16 @@ video {
|
|
|
8096
8107
|
}.lg\:outline-none {
|
|
8097
8108
|
outline: 2px solid transparent;
|
|
8098
8109
|
outline-offset: 2px;
|
|
8099
|
-
}.lg\:transition-colors {
|
|
8100
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
8101
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8102
|
-
transition-duration: 150ms;
|
|
8103
8110
|
}.lg\:focus-outline {
|
|
8104
8111
|
outline-style: solid;
|
|
8105
8112
|
outline-width: 2px;
|
|
8106
8113
|
outline-offset: 3px;
|
|
8107
8114
|
outline-color: rgb(var(--colors-focus));
|
|
8115
|
+
}.lg\:background-transition {
|
|
8116
|
+
transition-property: background;
|
|
8117
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8118
|
+
transition-duration: 300ms;
|
|
8119
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
8108
8120
|
}.lg\:before\:block::before {
|
|
8109
8121
|
content: var(--tw-content);
|
|
8110
8122
|
display: block;
|
|
@@ -8665,8 +8677,6 @@ video {
|
|
|
8665
8677
|
border-left-width: 0px;
|
|
8666
8678
|
}.xl\:border-l-\[0\.125rem\] {
|
|
8667
8679
|
border-left-width: 0.125rem;
|
|
8668
|
-
}.xl\:border-l-\[0\.375rem\] {
|
|
8669
|
-
border-left-width: 0.375rem;
|
|
8670
8680
|
}.xl\:border-l-\[6px\] {
|
|
8671
8681
|
border-left-width: 6px;
|
|
8672
8682
|
}.xl\:border-r-0 {
|
|
@@ -8928,15 +8938,16 @@ video {
|
|
|
8928
8938
|
}.xl\:outline-none {
|
|
8929
8939
|
outline: 2px solid transparent;
|
|
8930
8940
|
outline-offset: 2px;
|
|
8931
|
-
}.xl\:transition-colors {
|
|
8932
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
8933
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8934
|
-
transition-duration: 150ms;
|
|
8935
8941
|
}.xl\:focus-outline {
|
|
8936
8942
|
outline-style: solid;
|
|
8937
8943
|
outline-width: 2px;
|
|
8938
8944
|
outline-offset: 3px;
|
|
8939
8945
|
outline-color: rgb(var(--colors-focus));
|
|
8946
|
+
}.xl\:background-transition {
|
|
8947
|
+
transition-property: background;
|
|
8948
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8949
|
+
transition-duration: 300ms;
|
|
8950
|
+
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0);
|
|
8940
8951
|
}.xl\:before\:block::before {
|
|
8941
8952
|
content: var(--tw-content);
|
|
8942
8953
|
display: block;
|
|
@@ -16,6 +16,9 @@ export const WestpacUIKitBasePlugin = plugin(({ addComponents , addUtilities , a
|
|
|
16
16
|
'.focus-outline': {
|
|
17
17
|
[`@apply ${theme('focusOutline')}`]: {}
|
|
18
18
|
},
|
|
19
|
+
'.background-transition': {
|
|
20
|
+
[`@apply ${theme('backgroundTransition')}`]: {}
|
|
21
|
+
},
|
|
19
22
|
'.select-caret': {
|
|
20
23
|
backgroundImage: "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>\")"
|
|
21
24
|
}
|
|
@@ -85,6 +88,9 @@ export const WestpacUIKitBasePlugin = plugin(({ addComponents , addUtilities , a
|
|
|
85
88
|
md: BREAKPOINTS.md,
|
|
86
89
|
lg: BREAKPOINTS.lg,
|
|
87
90
|
container: '1320px'
|
|
91
|
+
},
|
|
92
|
+
transitionTimingFunction: {
|
|
93
|
+
ease: 'cubic-bezier(0.25, 0.1, 0.25, 1.0)'
|
|
88
94
|
}
|
|
89
95
|
},
|
|
90
96
|
typographySizes: {
|
|
@@ -159,7 +165,8 @@ export const WestpacUIKitBasePlugin = plugin(({ addComponents , addUtilities , a
|
|
|
159
165
|
}
|
|
160
166
|
}
|
|
161
167
|
},
|
|
162
|
-
focusOutline: 'outline outline-2 outline-offset-[3px] outline-focus'
|
|
168
|
+
focusOutline: 'outline outline-2 outline-offset-[3px] outline-focus',
|
|
169
|
+
backgroundTransition: 'transition-[background] duration-300 ease-ease'
|
|
163
170
|
}
|
|
164
171
|
});
|
|
165
172
|
export const WestpacUIKitThemesPlugin = createThemes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@westpac/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -22,20 +22,143 @@
|
|
|
22
22
|
"./css": {
|
|
23
23
|
"default": "./dist/css/westpac-ui.min.css"
|
|
24
24
|
},
|
|
25
|
+
"./hook": {
|
|
26
|
+
"default": "./dist/hook/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./tailwind": {
|
|
29
|
+
"default": "./dist/tailwind/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./accordion": {
|
|
32
|
+
"default": "./dist/components/accordion/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./alert": {
|
|
35
|
+
"default": "./dist/components/alert/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./autocomplete": {
|
|
38
|
+
"default": "./dist/components/autocomplete/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./badge": {
|
|
41
|
+
"default": "./dist/components/badge/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./breadcrumb": {
|
|
44
|
+
"default": "./dist/components/breadcrumb/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./button": {
|
|
47
|
+
"default": "./dist/components/button/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./button-dropdown": {
|
|
50
|
+
"default": "./dist/components/button-dropdown/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./button-group": {
|
|
53
|
+
"default": "./dist/components/button-group/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./checkbox-group": {
|
|
56
|
+
"default": "./dist/components/checkbox-group/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./circle": {
|
|
59
|
+
"default": "./dist/components/circle/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./collapsible": {
|
|
62
|
+
"default": "./dist/components/collapsible/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./compacta": {
|
|
65
|
+
"default": "./dist/components/compacta/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./date-picker": {
|
|
68
|
+
"default": "./dist/components/date-picker/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./error-message": {
|
|
71
|
+
"default": "./dist/components/error-message/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./field": {
|
|
74
|
+
"default": "./dist/components/field/index.js"
|
|
75
|
+
},
|
|
76
|
+
"./flexi-cell": {
|
|
77
|
+
"default": "./dist/components/flexi-cell/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./form": {
|
|
80
|
+
"default": "./dist/components/form/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./form-hint": {
|
|
83
|
+
"default": "./dist/components/form-hint/index.js"
|
|
84
|
+
},
|
|
85
|
+
"./form-label": {
|
|
86
|
+
"default": "./dist/components/form-label/index.js"
|
|
87
|
+
},
|
|
88
|
+
"./grid": {
|
|
89
|
+
"default": "./dist/components/grid/index.js"
|
|
90
|
+
},
|
|
25
91
|
"./icon": {
|
|
26
92
|
"default": "./dist/components/icon/index.js"
|
|
27
93
|
},
|
|
28
|
-
"./
|
|
29
|
-
"default": "./dist/
|
|
94
|
+
"./input": {
|
|
95
|
+
"default": "./dist/components/input/index.js"
|
|
96
|
+
},
|
|
97
|
+
"./input-field": {
|
|
98
|
+
"default": "./dist/components/input-field/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./link": {
|
|
101
|
+
"default": "./dist/components/link/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./list": {
|
|
104
|
+
"default": "./dist/components/list/index.js"
|
|
105
|
+
},
|
|
106
|
+
"./modal": {
|
|
107
|
+
"default": "./dist/components/modal/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./pagination": {
|
|
110
|
+
"default": "./dist/components/pagination/index.js"
|
|
111
|
+
},
|
|
112
|
+
"./panel": {
|
|
113
|
+
"default": "./dist/components/panel/index.js"
|
|
30
114
|
},
|
|
31
115
|
"./pictogram": {
|
|
32
116
|
"default": "./dist/components/pictogram/index.js"
|
|
33
117
|
},
|
|
118
|
+
"./popover": {
|
|
119
|
+
"default": "./dist/components/popover/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./progress-bar": {
|
|
122
|
+
"default": "./dist/components/progress-bar/index.js"
|
|
123
|
+
},
|
|
124
|
+
"./progress-rope": {
|
|
125
|
+
"default": "./dist/components/progress-rope/index.js"
|
|
126
|
+
},
|
|
127
|
+
"./radio-group": {
|
|
128
|
+
"default": "./dist/components/radio-group/index.js"
|
|
129
|
+
},
|
|
130
|
+
"./repeater": {
|
|
131
|
+
"default": "./dist/components/repeater/index.js"
|
|
132
|
+
},
|
|
133
|
+
"./select": {
|
|
134
|
+
"default": "./dist/components/select/index.js"
|
|
135
|
+
},
|
|
136
|
+
"./selector": {
|
|
137
|
+
"default": "./dist/components/selector/index.js"
|
|
138
|
+
},
|
|
139
|
+
"./skip-link": {
|
|
140
|
+
"default": "./dist/components/skip-link/index.js"
|
|
141
|
+
},
|
|
142
|
+
"./switch": {
|
|
143
|
+
"default": "./dist/components/switch/index.js"
|
|
144
|
+
},
|
|
34
145
|
"./symbol": {
|
|
35
146
|
"default": "./dist/components/symbol/index.js"
|
|
36
147
|
},
|
|
37
|
-
"./
|
|
38
|
-
"default": "./dist/
|
|
148
|
+
"./table": {
|
|
149
|
+
"default": "./dist/components/table/index.js"
|
|
150
|
+
},
|
|
151
|
+
"./tabs": {
|
|
152
|
+
"default": "./dist/components/tabs/index.js"
|
|
153
|
+
},
|
|
154
|
+
"./textarea": {
|
|
155
|
+
"default": "./dist/components/textarea/index.js"
|
|
156
|
+
},
|
|
157
|
+
"./visually-hidden": {
|
|
158
|
+
"default": "./dist/components/visually-hidden/index.js"
|
|
159
|
+
},
|
|
160
|
+
"./well": {
|
|
161
|
+
"default": "./dist/components/well/index.js"
|
|
39
162
|
}
|
|
40
163
|
},
|
|
41
164
|
"files": [
|
|
@@ -137,6 +260,7 @@
|
|
|
137
260
|
"build:types": "tsc --project tsconfig.build.json",
|
|
138
261
|
"build:esm": "swc ./src -d dist --no-swcrc --config-file .swcrc",
|
|
139
262
|
"build:icons": "ts-node --esm ./utils/build-icons/index.ts",
|
|
263
|
+
"build:exports": "ts-node --esm ./utils/build-exports/index.ts && prettier --write package.json",
|
|
140
264
|
"build:watch": "pnpm clean && pnpm build:types && pnpm build:esm -w && pnpm build:css:all",
|
|
141
265
|
"build:type-table": "node generate-component-types.cjs",
|
|
142
266
|
"build": "pnpm clean && pnpm build:types && pnpm build:esm && pnpm build:css:all && pnpm build:type-table",
|
|
@@ -147,6 +271,6 @@
|
|
|
147
271
|
"test:watch": "vitest --no-coverage",
|
|
148
272
|
"storybook": "storybook dev -p 6006",
|
|
149
273
|
"build-storybook": "storybook build",
|
|
150
|
-
"generate:component": "plop"
|
|
274
|
+
"generate:component": "plop && pnpm build:exports"
|
|
151
275
|
}
|
|
152
276
|
}
|
|
@@ -36,7 +36,7 @@ function Accordion<T extends object>(
|
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
38
|
<div {...filterDOMProps(finalProps)} {...accordionProps} ref={domRef} className={styles({ className, rounded })}>
|
|
39
|
-
<div className="mt-[-1px]">
|
|
39
|
+
<div className="ml-[-1px] mt-[-1px]">
|
|
40
40
|
{[...state.collection].map(item => (
|
|
41
41
|
<AccordionItem<T> key={item.key} item={item} state={state} look={look} />
|
|
42
42
|
))}
|
|
@@ -14,7 +14,8 @@ export const styles = tv(
|
|
|
14
14
|
itemHeader: 'border-t border-border bg-light',
|
|
15
15
|
},
|
|
16
16
|
lego: {
|
|
17
|
-
itemHeader:
|
|
17
|
+
itemHeader:
|
|
18
|
+
'border-l-[0.375rem] border-border bg-light shadow-[inset_0_1px_0_var(--tw-shadow-color)] !shadow-border transition-colors',
|
|
18
19
|
},
|
|
19
20
|
},
|
|
20
21
|
isOpen: {
|
|
@@ -23,7 +24,7 @@ export const styles = tv(
|
|
|
23
24
|
},
|
|
24
25
|
false: {
|
|
25
26
|
base: '',
|
|
26
|
-
itemHeader: 'hover:bg-background',
|
|
27
|
+
itemHeader: 'background-transition hover:bg-background',
|
|
27
28
|
},
|
|
28
29
|
},
|
|
29
30
|
isDisabled: {
|
|
@@ -28,7 +28,7 @@ export function DatePicker({
|
|
|
28
28
|
|
|
29
29
|
useEffect(() => {
|
|
30
30
|
const initDatePicker = async () => {
|
|
31
|
-
const { defineCustomElements } = await import('@duetds/date-picker/custom-element');
|
|
31
|
+
const { defineCustomElements } = await import('@duetds/date-picker/custom-element/index.js');
|
|
32
32
|
defineCustomElements(window);
|
|
33
33
|
setInitialized(true);
|
|
34
34
|
};
|
|
@@ -19,6 +19,7 @@ export const WestpacUIKitBasePlugin = plugin(
|
|
|
19
19
|
});
|
|
20
20
|
addUtilities({
|
|
21
21
|
'.focus-outline': { [`@apply ${theme('focusOutline')}`]: {} },
|
|
22
|
+
'.background-transition': { [`@apply ${theme('backgroundTransition')}`]: {} },
|
|
22
23
|
'.select-caret': {
|
|
23
24
|
backgroundImage:
|
|
24
25
|
"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' style='color: rgb(89,87,103);'><path fill='currentColor' d='M0 0l7 8 7-8z'/></svg>\")",
|
|
@@ -88,6 +89,9 @@ export const WestpacUIKitBasePlugin = plugin(
|
|
|
88
89
|
lg: BREAKPOINTS.lg,
|
|
89
90
|
container: '1320px', //1200 (lg) + 60 (paddingHorizontal) + 60 (paddingHorizontal)
|
|
90
91
|
},
|
|
92
|
+
transitionTimingFunction: {
|
|
93
|
+
ease: 'cubic-bezier(0.25, 0.1, 0.25, 1.0)', // based on css ease timing function used in GEL 3.0
|
|
94
|
+
},
|
|
91
95
|
},
|
|
92
96
|
typographySizes: {
|
|
93
97
|
1: {
|
|
@@ -164,6 +168,7 @@ export const WestpacUIKitBasePlugin = plugin(
|
|
|
164
168
|
},
|
|
165
169
|
},
|
|
166
170
|
focusOutline: 'outline outline-2 outline-offset-[3px] outline-focus',
|
|
171
|
+
backgroundTransition: 'transition-[background] duration-300 ease-ease',
|
|
167
172
|
},
|
|
168
173
|
},
|
|
169
174
|
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import fs from 'fs/promises';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
const exports: Record<string, { default: string }> = {
|
|
5
|
+
'.': {
|
|
6
|
+
default: './dist/index.js',
|
|
7
|
+
},
|
|
8
|
+
'./component-type.json': {
|
|
9
|
+
default: './dist/component-type.json',
|
|
10
|
+
},
|
|
11
|
+
'./css': {
|
|
12
|
+
default: './dist/css/westpac-ui.min.css',
|
|
13
|
+
},
|
|
14
|
+
'./hook': {
|
|
15
|
+
default: './dist/hook/index.js',
|
|
16
|
+
},
|
|
17
|
+
'./tailwind': {
|
|
18
|
+
default: './dist/tailwind/index.js',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const main = async () => {
|
|
23
|
+
const components = (await fs.readdir(path.join(process.cwd(), 'src/components'), { withFileTypes: true }))
|
|
24
|
+
.filter(dirent => dirent.isDirectory())
|
|
25
|
+
.map(dirent => dirent.name);
|
|
26
|
+
|
|
27
|
+
components.forEach(component => {
|
|
28
|
+
exports[`./${component}`] = { default: `./dist/components/${component}/index.js` };
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const pkgJsonPath = path.join(process.cwd(), 'package.json');
|
|
32
|
+
const data = await fs.readFile(pkgJsonPath, 'utf-8');
|
|
33
|
+
const pkgJson = JSON.parse(data);
|
|
34
|
+
pkgJson.exports = exports;
|
|
35
|
+
await fs.writeFile(pkgJsonPath, JSON.stringify(pkgJson));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
main();
|