@westpac/ui 0.49.0 → 0.50.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/component-type.json +1 -1
  3. package/dist/components/accordion/components/accordion-item/accordion-item.component.js +3 -2
  4. package/dist/components/date-picker-beta/components/calendar/calendar.component.d.ts +5 -0
  5. package/dist/components/date-picker-beta/components/calendar/calendar.component.js +101 -0
  6. package/dist/components/date-picker-beta/components/calendar/calendar.types.d.ts +2 -0
  7. package/dist/components/date-picker-beta/components/calendar/calendar.types.js +1 -0
  8. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.component.d.ts +5 -0
  9. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.component.js +28 -0
  10. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.styles.d.ts +103 -0
  11. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.styles.js +39 -0
  12. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.types.d.ts +5 -0
  13. package/dist/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.types.js +1 -0
  14. package/dist/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.component.d.ts +5 -0
  15. package/dist/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.component.js +26 -0
  16. package/dist/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.types.d.ts +5 -0
  17. package/dist/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.types.js +1 -0
  18. package/dist/components/date-picker-beta/components/calendar/components/select/select.component.d.ts +5 -0
  19. package/dist/components/date-picker-beta/components/calendar/components/select/select.component.js +23 -0
  20. package/dist/components/date-picker-beta/components/calendar/components/select/select.styles.d.ts +28 -0
  21. package/dist/components/date-picker-beta/components/calendar/components/select/select.styles.js +14 -0
  22. package/dist/components/date-picker-beta/components/calendar/components/select/select.types.d.ts +2 -0
  23. package/dist/components/date-picker-beta/components/calendar/components/select/select.types.js +1 -0
  24. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.component.d.ts +5 -0
  25. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.component.js +20 -0
  26. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.styles.d.ts +44 -0
  27. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.styles.js +26 -0
  28. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.types.d.ts +7 -0
  29. package/dist/components/date-picker-beta/components/date-field/components/date-segment/date-segment.types.js +1 -0
  30. package/dist/components/date-picker-beta/components/date-field/date-field.component.d.ts +5 -0
  31. package/dist/components/date-picker-beta/components/date-field/date-field.component.js +25 -0
  32. package/dist/components/date-picker-beta/components/date-field/date-field.types.d.ts +4 -0
  33. package/dist/components/date-picker-beta/components/date-field/date-field.types.js +1 -0
  34. package/dist/components/date-picker-beta/components/dialog/dialog.component.d.ts +5 -0
  35. package/dist/components/date-picker-beta/components/dialog/dialog.component.js +16 -0
  36. package/dist/components/date-picker-beta/components/dialog/dialog.types.d.ts +3 -0
  37. package/dist/components/date-picker-beta/components/dialog/dialog.types.js +1 -0
  38. package/dist/components/date-picker-beta/components/popover/popover.component.d.ts +5 -0
  39. package/dist/components/date-picker-beta/components/popover/popover.component.js +38 -0
  40. package/dist/components/date-picker-beta/components/popover/popover.styles.d.ts +71 -0
  41. package/dist/components/date-picker-beta/components/popover/popover.styles.js +35 -0
  42. package/dist/components/date-picker-beta/components/popover/popover.types.d.ts +9 -0
  43. package/dist/components/date-picker-beta/components/popover/popover.types.js +1 -0
  44. package/dist/components/date-picker-beta/date-picker.component.d.ts +2 -0
  45. package/dist/components/date-picker-beta/date-picker.component.js +114 -0
  46. package/dist/components/date-picker-beta/date-picker.styles.d.ts +107 -0
  47. package/dist/components/date-picker-beta/date-picker.styles.js +47 -0
  48. package/dist/components/date-picker-beta/date-picker.types.d.ts +32 -0
  49. package/dist/components/date-picker-beta/date-picker.types.js +1 -0
  50. package/dist/components/date-picker-beta/index.d.ts +2 -0
  51. package/dist/components/date-picker-beta/index.js +1 -0
  52. package/dist/components/index.d.ts +1 -0
  53. package/dist/components/index.js +1 -0
  54. package/dist/css/westpac-ui.css +1011 -0
  55. package/dist/css/westpac-ui.min.css +1011 -0
  56. package/dist/tailwind/constants/colors.d.ts +25 -25
  57. package/dist/tailwind/tailwind-plugin.js +20 -0
  58. package/dist/tailwind/themes/index.d.ts +27 -27
  59. package/package.json +8 -4
  60. package/src/components/accordion/components/accordion-item/accordion-item.component.tsx +23 -24
  61. package/src/components/date-picker-beta/components/calendar/calendar.component.tsx +106 -0
  62. package/src/components/date-picker-beta/components/calendar/calendar.types.ts +3 -0
  63. package/src/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.component.tsx +42 -0
  64. package/src/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.styles.ts +40 -0
  65. package/src/components/date-picker-beta/components/calendar/components/calendar-cell/calendar-cell.types.ts +8 -0
  66. package/src/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.component.tsx +36 -0
  67. package/src/components/date-picker-beta/components/calendar/components/calendar-grid/calendar-grid.types.ts +4 -0
  68. package/src/components/date-picker-beta/components/calendar/components/select/select.component.tsx +21 -0
  69. package/src/components/date-picker-beta/components/calendar/components/select/select.styles.ts +13 -0
  70. package/src/components/date-picker-beta/components/calendar/components/select/select.types.ts +3 -0
  71. package/src/components/date-picker-beta/components/date-field/components/date-segment/date-segment.component.tsx +26 -0
  72. package/src/components/date-picker-beta/components/date-field/components/date-segment/date-segment.styles.ts +22 -0
  73. package/src/components/date-picker-beta/components/date-field/components/date-segment/date-segment.types.ts +8 -0
  74. package/src/components/date-picker-beta/components/date-field/date-field.component.tsx +32 -0
  75. package/src/components/date-picker-beta/components/date-field/date-field.types.ts +3 -0
  76. package/src/components/date-picker-beta/components/dialog/dialog.component.tsx +23 -0
  77. package/src/components/date-picker-beta/components/dialog/dialog.types.ts +4 -0
  78. package/src/components/date-picker-beta/components/popover/popover.component.tsx +34 -0
  79. package/src/components/date-picker-beta/components/popover/popover.styles.ts +34 -0
  80. package/src/components/date-picker-beta/components/popover/popover.types.ts +10 -0
  81. package/src/components/date-picker-beta/date-picker.component.tsx +114 -0
  82. package/src/components/date-picker-beta/date-picker.styles.ts +44 -0
  83. package/src/components/date-picker-beta/date-picker.types.ts +40 -0
  84. package/src/components/date-picker-beta/index.ts +2 -0
  85. package/src/components/index.ts +1 -0
  86. package/src/tailwind/tailwind-plugin.ts +20 -0
@@ -10,8 +10,8 @@ export declare const COLORS: {
10
10
  white: string;
11
11
  black: string;
12
12
  link: {
13
- 100: string;
14
13
  50: string;
14
+ 100: string;
15
15
  200: string;
16
16
  300: string;
17
17
  400: string;
@@ -23,8 +23,8 @@ export declare const COLORS: {
23
23
  DEFAULT: string;
24
24
  };
25
25
  text: {
26
- 100: string;
27
26
  50: string;
27
+ 100: string;
28
28
  200: string;
29
29
  300: string;
30
30
  400: string;
@@ -36,8 +36,8 @@ export declare const COLORS: {
36
36
  DEFAULT: string;
37
37
  };
38
38
  border: {
39
- 100: string;
40
39
  50: string;
40
+ 100: string;
41
41
  200: string;
42
42
  300: string;
43
43
  400: string;
@@ -49,8 +49,8 @@ export declare const COLORS: {
49
49
  DEFAULT: string;
50
50
  };
51
51
  heading: {
52
- 100: string;
53
52
  50: string;
53
+ 100: string;
54
54
  200: string;
55
55
  300: string;
56
56
  400: string;
@@ -62,8 +62,8 @@ export declare const COLORS: {
62
62
  DEFAULT: string;
63
63
  };
64
64
  focus: {
65
- 100: string;
66
65
  50: string;
66
+ 100: string;
67
67
  200: string;
68
68
  300: string;
69
69
  400: string;
@@ -75,8 +75,8 @@ export declare const COLORS: {
75
75
  DEFAULT: string;
76
76
  };
77
77
  primary: {
78
- 100: string;
79
78
  50: string;
79
+ 100: string;
80
80
  200: string;
81
81
  300: string;
82
82
  400: string;
@@ -88,8 +88,8 @@ export declare const COLORS: {
88
88
  DEFAULT: string;
89
89
  };
90
90
  hero: {
91
- 100: string;
92
91
  50: string;
92
+ 100: string;
93
93
  200: string;
94
94
  300: string;
95
95
  400: string;
@@ -101,8 +101,8 @@ export declare const COLORS: {
101
101
  DEFAULT: string;
102
102
  };
103
103
  background: {
104
- 100: string;
105
104
  50: string;
105
+ 100: string;
106
106
  200: string;
107
107
  300: string;
108
108
  400: string;
@@ -114,8 +114,8 @@ export declare const COLORS: {
114
114
  DEFAULT: string;
115
115
  };
116
116
  borderDark: {
117
- 100: string;
118
117
  50: string;
118
+ 100: string;
119
119
  200: string;
120
120
  300: string;
121
121
  400: string;
@@ -127,8 +127,8 @@ export declare const COLORS: {
127
127
  DEFAULT: string;
128
128
  };
129
129
  light: {
130
- 100: string;
131
130
  50: string;
131
+ 100: string;
132
132
  200: string;
133
133
  300: string;
134
134
  400: string;
@@ -140,8 +140,8 @@ export declare const COLORS: {
140
140
  DEFAULT: string;
141
141
  };
142
142
  muted: {
143
- 100: string;
144
143
  50: string;
144
+ 100: string;
145
145
  200: string;
146
146
  300: string;
147
147
  400: string;
@@ -153,8 +153,8 @@ export declare const COLORS: {
153
153
  DEFAULT: string;
154
154
  };
155
155
  neutral: {
156
- 100: string;
157
156
  50: string;
157
+ 100: string;
158
158
  200: string;
159
159
  300: string;
160
160
  400: string;
@@ -166,8 +166,8 @@ export declare const COLORS: {
166
166
  DEFAULT: string;
167
167
  };
168
168
  pop: {
169
- 100: string;
170
169
  50: string;
170
+ 100: string;
171
171
  200: string;
172
172
  300: string;
173
173
  400: string;
@@ -179,8 +179,8 @@ export declare const COLORS: {
179
179
  DEFAULT: string;
180
180
  };
181
181
  "data-a-solid": {
182
- 100: string;
183
182
  50: string;
183
+ 100: string;
184
184
  200: string;
185
185
  300: string;
186
186
  400: string;
@@ -192,8 +192,8 @@ export declare const COLORS: {
192
192
  DEFAULT: string;
193
193
  };
194
194
  "data-a-tint": {
195
- 100: string;
196
195
  50: string;
196
+ 100: string;
197
197
  200: string;
198
198
  300: string;
199
199
  400: string;
@@ -205,8 +205,8 @@ export declare const COLORS: {
205
205
  DEFAULT: string;
206
206
  };
207
207
  "data-b-solid": {
208
- 100: string;
209
208
  50: string;
209
+ 100: string;
210
210
  200: string;
211
211
  300: string;
212
212
  400: string;
@@ -218,8 +218,8 @@ export declare const COLORS: {
218
218
  DEFAULT: string;
219
219
  };
220
220
  "data-b-tint": {
221
- 100: string;
222
221
  50: string;
222
+ 100: string;
223
223
  200: string;
224
224
  300: string;
225
225
  400: string;
@@ -231,8 +231,8 @@ export declare const COLORS: {
231
231
  DEFAULT: string;
232
232
  };
233
233
  "data-c-solid": {
234
- 100: string;
235
234
  50: string;
235
+ 100: string;
236
236
  200: string;
237
237
  300: string;
238
238
  400: string;
@@ -244,8 +244,8 @@ export declare const COLORS: {
244
244
  DEFAULT: string;
245
245
  };
246
246
  "data-c-tint": {
247
- 100: string;
248
247
  50: string;
248
+ 100: string;
249
249
  200: string;
250
250
  300: string;
251
251
  400: string;
@@ -257,8 +257,8 @@ export declare const COLORS: {
257
257
  DEFAULT: string;
258
258
  };
259
259
  "data-d-solid": {
260
- 100: string;
261
260
  50: string;
261
+ 100: string;
262
262
  200: string;
263
263
  300: string;
264
264
  400: string;
@@ -270,8 +270,8 @@ export declare const COLORS: {
270
270
  DEFAULT: string;
271
271
  };
272
272
  "data-d-tint": {
273
- 100: string;
274
273
  50: string;
274
+ 100: string;
275
275
  200: string;
276
276
  300: string;
277
277
  400: string;
@@ -283,8 +283,8 @@ export declare const COLORS: {
283
283
  DEFAULT: string;
284
284
  };
285
285
  "data-e-solid": {
286
- 100: string;
287
286
  50: string;
287
+ 100: string;
288
288
  200: string;
289
289
  300: string;
290
290
  400: string;
@@ -296,8 +296,8 @@ export declare const COLORS: {
296
296
  DEFAULT: string;
297
297
  };
298
298
  "data-e-tint": {
299
- 100: string;
300
299
  50: string;
300
+ 100: string;
301
301
  200: string;
302
302
  300: string;
303
303
  400: string;
@@ -309,8 +309,8 @@ export declare const COLORS: {
309
309
  DEFAULT: string;
310
310
  };
311
311
  "data-f-solid": {
312
- 100: string;
313
312
  50: string;
313
+ 100: string;
314
314
  200: string;
315
315
  300: string;
316
316
  400: string;
@@ -322,8 +322,8 @@ export declare const COLORS: {
322
322
  DEFAULT: string;
323
323
  };
324
324
  "data-f-tint": {
325
- 100: string;
326
325
  50: string;
326
+ 100: string;
327
327
  200: string;
328
328
  300: string;
329
329
  400: string;
@@ -112,6 +112,24 @@ export const WestpacUIKitBasePlugin = plugin.withOptions(function(options = {})
112
112
  transform: 'translateY(0)'
113
113
  }
114
114
  },
115
+ fadeInUp: {
116
+ '0%': {
117
+ opacity: '0',
118
+ transform: 'translateY(10vh)'
119
+ },
120
+ '100%': {
121
+ opacity: '1',
122
+ transform: 'translateY(0)'
123
+ }
124
+ },
125
+ slideUp: {
126
+ '0%': {
127
+ transform: 'translateY(100%)'
128
+ },
129
+ '100%': {
130
+ transform: 'translateY(0)'
131
+ }
132
+ },
115
133
  maxHeightIn: {
116
134
  '0%': {
117
135
  maxHeight: '0'
@@ -122,6 +140,8 @@ export const WestpacUIKitBasePlugin = plugin.withOptions(function(options = {})
122
140
  skeleton: 'waveLines 2s infinite ease-out',
123
141
  fadeIn: 'fadeIn 0.2s ease',
124
142
  fadeInDown: 'fadeInDown 0.4s ease',
143
+ fadeInUp: 'fadeInUp 0.4s ease',
144
+ slideUp: 'slideUp 0.4s ease',
125
145
  maxHeightIn: 'maxHeightIn 0.4s ease'
126
146
  },
127
147
  boxShadow: {
@@ -9,8 +9,8 @@ export declare const THEMES: {
9
9
  };
10
10
  colors: {
11
11
  link: {
12
- 100: string;
13
12
  50: string;
13
+ 100: string;
14
14
  200: string;
15
15
  300: string;
16
16
  400: string;
@@ -22,8 +22,8 @@ export declare const THEMES: {
22
22
  DEFAULT: string;
23
23
  };
24
24
  text: {
25
- 100: string;
26
25
  50: string;
26
+ 100: string;
27
27
  200: string;
28
28
  300: string;
29
29
  400: string;
@@ -35,8 +35,8 @@ export declare const THEMES: {
35
35
  DEFAULT: string;
36
36
  };
37
37
  border: {
38
- 100: string;
39
38
  50: string;
39
+ 100: string;
40
40
  200: string;
41
41
  300: string;
42
42
  400: string;
@@ -48,8 +48,8 @@ export declare const THEMES: {
48
48
  DEFAULT: string;
49
49
  };
50
50
  heading: {
51
- 100: string;
52
51
  50: string;
52
+ 100: string;
53
53
  200: string;
54
54
  300: string;
55
55
  400: string;
@@ -61,8 +61,8 @@ export declare const THEMES: {
61
61
  DEFAULT: string;
62
62
  };
63
63
  focus: {
64
- 100: string;
65
64
  50: string;
65
+ 100: string;
66
66
  200: string;
67
67
  300: string;
68
68
  400: string;
@@ -74,8 +74,8 @@ export declare const THEMES: {
74
74
  DEFAULT: string;
75
75
  };
76
76
  primary: {
77
- 100: string;
78
77
  50: string;
78
+ 100: string;
79
79
  200: string;
80
80
  300: string;
81
81
  400: string;
@@ -87,8 +87,8 @@ export declare const THEMES: {
87
87
  DEFAULT: string;
88
88
  };
89
89
  hero: {
90
- 100: string;
91
90
  50: string;
91
+ 100: string;
92
92
  200: string;
93
93
  300: string;
94
94
  400: string;
@@ -100,8 +100,8 @@ export declare const THEMES: {
100
100
  DEFAULT: string;
101
101
  };
102
102
  white: {
103
- 100: string;
104
103
  50: string;
104
+ 100: string;
105
105
  200: string;
106
106
  300: string;
107
107
  400: string;
@@ -113,8 +113,8 @@ export declare const THEMES: {
113
113
  DEFAULT: string;
114
114
  };
115
115
  black: {
116
- 100: string;
117
116
  50: string;
117
+ 100: string;
118
118
  200: string;
119
119
  300: string;
120
120
  400: string;
@@ -126,8 +126,8 @@ export declare const THEMES: {
126
126
  DEFAULT: string;
127
127
  };
128
128
  background: {
129
- 100: string;
130
129
  50: string;
130
+ 100: string;
131
131
  200: string;
132
132
  300: string;
133
133
  400: string;
@@ -139,8 +139,8 @@ export declare const THEMES: {
139
139
  DEFAULT: string;
140
140
  };
141
141
  borderDark: {
142
- 100: string;
143
142
  50: string;
143
+ 100: string;
144
144
  200: string;
145
145
  300: string;
146
146
  400: string;
@@ -152,8 +152,8 @@ export declare const THEMES: {
152
152
  DEFAULT: string;
153
153
  };
154
154
  light: {
155
- 100: string;
156
155
  50: string;
156
+ 100: string;
157
157
  200: string;
158
158
  300: string;
159
159
  400: string;
@@ -165,8 +165,8 @@ export declare const THEMES: {
165
165
  DEFAULT: string;
166
166
  };
167
167
  muted: {
168
- 100: string;
169
168
  50: string;
169
+ 100: string;
170
170
  200: string;
171
171
  300: string;
172
172
  400: string;
@@ -178,8 +178,8 @@ export declare const THEMES: {
178
178
  DEFAULT: string;
179
179
  };
180
180
  neutral: {
181
- 100: string;
182
181
  50: string;
182
+ 100: string;
183
183
  200: string;
184
184
  300: string;
185
185
  400: string;
@@ -191,8 +191,8 @@ export declare const THEMES: {
191
191
  DEFAULT: string;
192
192
  };
193
193
  pop: {
194
- 100: string;
195
194
  50: string;
195
+ 100: string;
196
196
  200: string;
197
197
  300: string;
198
198
  400: string;
@@ -204,8 +204,8 @@ export declare const THEMES: {
204
204
  DEFAULT: string;
205
205
  };
206
206
  "data-a-solid": {
207
- 100: string;
208
207
  50: string;
208
+ 100: string;
209
209
  200: string;
210
210
  300: string;
211
211
  400: string;
@@ -217,8 +217,8 @@ export declare const THEMES: {
217
217
  DEFAULT: string;
218
218
  };
219
219
  "data-a-tint": {
220
- 100: string;
221
220
  50: string;
221
+ 100: string;
222
222
  200: string;
223
223
  300: string;
224
224
  400: string;
@@ -230,8 +230,8 @@ export declare const THEMES: {
230
230
  DEFAULT: string;
231
231
  };
232
232
  "data-b-solid": {
233
- 100: string;
234
233
  50: string;
234
+ 100: string;
235
235
  200: string;
236
236
  300: string;
237
237
  400: string;
@@ -243,8 +243,8 @@ export declare const THEMES: {
243
243
  DEFAULT: string;
244
244
  };
245
245
  "data-b-tint": {
246
- 100: string;
247
246
  50: string;
247
+ 100: string;
248
248
  200: string;
249
249
  300: string;
250
250
  400: string;
@@ -256,8 +256,8 @@ export declare const THEMES: {
256
256
  DEFAULT: string;
257
257
  };
258
258
  "data-c-solid": {
259
- 100: string;
260
259
  50: string;
260
+ 100: string;
261
261
  200: string;
262
262
  300: string;
263
263
  400: string;
@@ -269,8 +269,8 @@ export declare const THEMES: {
269
269
  DEFAULT: string;
270
270
  };
271
271
  "data-c-tint": {
272
- 100: string;
273
272
  50: string;
273
+ 100: string;
274
274
  200: string;
275
275
  300: string;
276
276
  400: string;
@@ -282,8 +282,8 @@ export declare const THEMES: {
282
282
  DEFAULT: string;
283
283
  };
284
284
  "data-d-solid": {
285
- 100: string;
286
285
  50: string;
286
+ 100: string;
287
287
  200: string;
288
288
  300: string;
289
289
  400: string;
@@ -295,8 +295,8 @@ export declare const THEMES: {
295
295
  DEFAULT: string;
296
296
  };
297
297
  "data-d-tint": {
298
- 100: string;
299
298
  50: string;
299
+ 100: string;
300
300
  200: string;
301
301
  300: string;
302
302
  400: string;
@@ -308,8 +308,8 @@ export declare const THEMES: {
308
308
  DEFAULT: string;
309
309
  };
310
310
  "data-e-solid": {
311
- 100: string;
312
311
  50: string;
312
+ 100: string;
313
313
  200: string;
314
314
  300: string;
315
315
  400: string;
@@ -321,8 +321,8 @@ export declare const THEMES: {
321
321
  DEFAULT: string;
322
322
  };
323
323
  "data-e-tint": {
324
- 100: string;
325
324
  50: string;
325
+ 100: string;
326
326
  200: string;
327
327
  300: string;
328
328
  400: string;
@@ -334,8 +334,8 @@ export declare const THEMES: {
334
334
  DEFAULT: string;
335
335
  };
336
336
  "data-f-solid": {
337
- 100: string;
338
337
  50: string;
338
+ 100: string;
339
339
  200: string;
340
340
  300: string;
341
341
  400: string;
@@ -347,8 +347,8 @@ export declare const THEMES: {
347
347
  DEFAULT: string;
348
348
  };
349
349
  "data-f-tint": {
350
- 100: string;
351
350
  50: string;
351
+ 100: string;
352
352
  200: string;
353
353
  300: string;
354
354
  400: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@westpac/ui",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -76,6 +76,9 @@
76
76
  "./date-picker": {
77
77
  "default": "./dist/components/date-picker/index.js"
78
78
  },
79
+ "./date-picker-beta": {
80
+ "default": "./dist/components/date-picker-beta/index.js"
81
+ },
79
82
  "./error-message": {
80
83
  "default": "./dist/components/error-message/index.js"
81
84
  },
@@ -252,17 +255,18 @@
252
255
  "typescript": "^5.5.4",
253
256
  "vite": "^7.0.5",
254
257
  "vitest": "^3.2.4",
258
+ "@westpac/eslint-config": "~1.0.1",
255
259
  "@westpac/test-config": "~0.0.0",
256
- "@westpac/ts-config": "~0.0.0",
257
- "@westpac/eslint-config": "~1.0.1"
260
+ "@westpac/ts-config": "~0.0.0"
258
261
  },
259
262
  "dependencies": {
260
263
  "@duetds/date-picker": "~1.4.0",
264
+ "@internationalized/date": "~3.9.0",
261
265
  "@react-aria/accordion": "3.0.0-alpha.37",
262
266
  "@react-aria/utils": "~3.29.1",
263
267
  "@react-spectrum/utils": "~3.11.5",
264
- "colorjs.io": "~0.4.5",
265
268
  "clsx": "^1.2.1",
269
+ "colorjs.io": "~0.4.5",
266
270
  "lodash.throttle": "~4.1.1",
267
271
  "motion": "~12.23.12",
268
272
  "react-aria": "~3.41.1",
@@ -48,32 +48,31 @@ export function AccordionItem<T = HTMLElement>({
48
48
  <div {...regionProps}>
49
49
  <LazyMotion features={loadAnimations}>
50
50
  <AnimatePresence initial={false}>
51
- {isOpen && (
52
- <m.div
53
- className="overflow-hidden"
54
- initial={{
55
- height: 0,
51
+ <m.div
52
+ className="overflow-hidden"
53
+ initial={{
54
+ height: 0,
55
+ }}
56
+ animate={{
57
+ height: 'auto',
58
+ }}
59
+ exit={{
60
+ height: 0,
61
+ }}
62
+ transition={{ duration: 0.3, ease: [0.25, 0.1, 0.25, 1.0] }}
63
+ key={`${item.index}-${isOpen}`}
64
+ >
65
+ <div
66
+ className={styles.content()}
67
+ // TODO: Remove below with updated accordion that uses disclosure as the issue doesn't happen with that version
68
+ // Need to call stopPropagation here as some events from children are bubbling up and focusing the accordion i.e. inputs
69
+ onBlur={e => {
70
+ e.stopPropagation();
56
71
  }}
57
- animate={{
58
- height: 'auto',
59
- }}
60
- exit={{
61
- height: 0,
62
- }}
63
- transition={{ duration: 0.3, ease: [0.25, 0.1, 0.25, 1.0] }}
64
72
  >
65
- <div
66
- className={styles.content()}
67
- // TODO: Remove below with updated accordion that uses disclosure as the issue doesn't happen with that version
68
- // Need to call stopPropagation here as some events from children are bubbling up and focusing the accordion i.e. inputs
69
- onBlur={e => {
70
- e.stopPropagation();
71
- }}
72
- >
73
- {item.props.children}
74
- </div>
75
- </m.div>
76
- )}
73
+ {item.props.children}
74
+ </div>
75
+ </m.div>
77
76
  </AnimatePresence>
78
77
  </LazyMotion>
79
78
  </div>