@wealthx/shadcn 1.5.8 → 1.5.9

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.
@@ -14,7 +14,7 @@ npm warn Unknown project config "auto-install-peers". This will stop working in
14
14
  npm warn Unknown project config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
15
15
  ≈ tailwindcss v4.2.2
16
16
 
17
- Done in 267ms
17
+ Done in 318ms
18
18
  Built dist/styles.css and src/styles/styles-css.ts
19
19
  warning package.json: No license field
20
20
  $ tsup
@@ -33,75 +33,76 @@ $ tsup
33
33
  ESM dist/chunk-EMYBNPIA.mjs 2.00 KB
34
34
  ESM dist/chunk-33VT74R4.mjs 8.69 KB
35
35
  ESM dist/chunk-I2EKKSEF.mjs 4.94 KB
36
- ESM dist/chunk-EAKRTKHJ.mjs 4.22 KB
37
36
  ESM dist/chunk-5SAYZ4CI.mjs 1.14 KB
38
- ESM dist/index.mjs 19.75 KB
37
+ ESM dist/chunk-EAKRTKHJ.mjs 4.22 KB
39
38
  ESM dist/chunk-ZGQIVGIN.mjs 1.27 KB
40
- ESM dist/chunk-5LZZYODG.mjs 28.14 KB
39
+ ESM dist/index.mjs 19.75 KB
41
40
  ESM dist/chunk-FGMDBJCF.mjs 5.12 KB
41
+ ESM dist/chunk-5LZZYODG.mjs 28.14 KB
42
42
  ESM dist/chunk-G2W754UJ.mjs 5.55 KB
43
43
  ESM dist/chunk-77L3UPBW.mjs 5.11 KB
44
- ESM dist/chunk-B7DD3ODQ.mjs 5.90 KB
45
44
  ESM dist/chunk-IQGKOT7A.mjs 6.20 KB
46
- ESM dist/chunk-RSEVIQEO.mjs 15.92 KB
45
+ ESM dist/chunk-B7DD3ODQ.mjs 5.90 KB
47
46
  ESM dist/chunk-AZGLSIHF.mjs 4.02 KB
48
- ESM dist/chunk-WZ6UJCBL.mjs 1.24 KB
47
+ ESM dist/chunk-RSEVIQEO.mjs 15.92 KB
49
48
  ESM dist/chunk-3Z75IKFO.mjs 741.00 B
49
+ ESM dist/chunk-WZ6UJCBL.mjs 1.24 KB
50
50
  ESM dist/chunk-OZ2R6ERP.mjs 5.82 KB
51
51
  ESM dist/chunk-VLVEZHFE.mjs 5.28 KB
52
52
  ESM dist/chunk-GYWOD2YI.mjs 5.14 KB
53
53
  ESM dist/chunk-JUMEIPII.mjs 9.37 KB
54
54
  ESM dist/chunk-LPVXO3TD.mjs 9.02 KB
55
- ESM dist/chunk-VWZS32ZQ.mjs 14.85 KB
56
55
  ESM dist/chunk-IFSQWDRN.mjs 3.96 KB
56
+ ESM dist/chunk-KFH36NKF.mjs 1.52 KB
57
+ ESM dist/chunk-VWZS32ZQ.mjs 14.85 KB
57
58
  ESM dist/chunk-PCULNQWA.mjs 3.99 KB
59
+ ESM dist/chunk-E5EDZQ5J.mjs 5.02 KB
58
60
  ESM dist/chunk-K4WDPVFY.mjs 7.43 KB
59
- ESM dist/chunk-TCE5L44O.mjs 6.13 KB
60
- ESM dist/chunk-6U4NQGVM.mjs 36.68 KB
61
- ESM dist/chunk-6MDNL5I2.mjs 78.04 KB
62
61
  ESM dist/chunk-NT4FX27K.mjs 866.00 B
63
62
  ESM dist/chunk-NB3ZL36B.mjs 711.00 B
64
63
  ESM dist/chunk-623YVI5O.mjs 1.60 KB
64
+ ESM dist/chunk-6MDNL5I2.mjs 78.04 KB
65
+ ESM dist/chunk-65PZNG4Y.mjs 4.74 KB
66
+ ESM dist/chunk-TCE5L44O.mjs 6.13 KB
65
67
  ESM dist/chunk-PUJ42INK.mjs 5.67 KB
66
- ESM dist/chunk-KFH36NKF.mjs 1.52 KB
67
- ESM dist/chunk-54MTIKNC.mjs 24.37 KB
68
+ ESM dist/chunk-6U4NQGVM.mjs 36.68 KB
69
+ ESM dist/chunk-3CGM3QXQ.mjs 8.51 KB
68
70
  ESM dist/chunk-2WCIORP7.mjs 2.76 KB
71
+ ESM dist/chunk-54MTIKNC.mjs 24.37 KB
69
72
  ESM dist/chunk-4DO3WM7V.mjs 1.13 KB
70
73
  ESM dist/chunk-XMP24PWA.mjs 11.80 KB
71
74
  ESM dist/chunk-CEEVYRQA.mjs 2.09 KB
72
75
  ESM dist/chunk-TLLD5IU6.mjs 7.46 KB
73
- ESM dist/chunk-W5QJ57PU.mjs 26.92 KB
76
+ ESM dist/chunk-E2BNCA6L.mjs 14.00 KB
74
77
  ESM dist/chunk-DQB4EPIS.mjs 5.13 KB
75
- ESM dist/chunk-JGBV3XMQ.mjs 15.87 KB
78
+ ESM dist/chunk-W5QJ57PU.mjs 26.92 KB
76
79
  ESM dist/chunk-HK4HUQTV.mjs 2.68 KB
80
+ ESM dist/chunk-JGBV3XMQ.mjs 15.87 KB
77
81
  ESM dist/chunk-IRZWYTGV.mjs 7.33 KB
78
82
  ESM dist/chunk-4LLTZ45R.mjs 7.37 KB
79
- ESM dist/chunk-UBHBIWIA.mjs 12.72 KB
80
83
  ESM dist/chunk-JPGL36WQ.mjs 995.00 B
81
- ESM dist/chunk-TUC2BNUR.mjs 13.49 KB
84
+ ESM dist/chunk-UBHBIWIA.mjs 12.72 KB
82
85
  ESM dist/chunk-5DAQU3B6.mjs 2.12 KB
86
+ ESM dist/chunk-TUC2BNUR.mjs 13.49 KB
83
87
  ESM dist/chunk-6LWCFAB4.mjs 7.28 KB
84
- ESM dist/chunk-E5EDZQ5J.mjs 5.02 KB
85
- ESM dist/chunk-65PZNG4Y.mjs 4.74 KB
86
- ESM dist/chunk-3CGM3QXQ.mjs 8.51 KB
87
88
  ESM dist/chunk-ZAXZBOWI.mjs 4.76 KB
88
89
  ESM dist/chunk-OEOOYMC2.mjs 6.85 KB
89
90
  ESM dist/chunk-5YVJSKFH.mjs 5.60 KB
90
91
  ESM dist/chunk-3NJPNSJG.mjs 3.33 KB
91
92
  ESM dist/chunk-7YI3HEBH.mjs 5.73 KB
92
93
  ESM dist/chunk-DCKT635J.mjs 6.99 KB
94
+ ESM dist/chunk-D3HKFRQO.mjs 8.80 KB
93
95
  ESM dist/chunk-3WGFIFP6.mjs 19.59 KB
94
96
  ESM dist/chunk-BBXSNDS3.mjs 7.55 KB
95
97
  ESM dist/chunk-KWD6GANL.mjs 1.63 KB
96
- ESM dist/chunk-D3HKFRQO.mjs 8.80 KB
97
- ESM dist/chunk-UTCW5YUX.mjs 8.41 KB
98
98
  ESM dist/chunk-BAONSY54.mjs 7.81 KB
99
+ ESM dist/chunk-UTCW5YUX.mjs 8.41 KB
99
100
  ESM dist/chunk-ZFKAYRFQ.mjs 8.57 KB
100
101
  ESM dist/chunk-FW4U543X.mjs 22.25 KB
101
102
  ESM dist/chunk-UJMVXREM.mjs 4.71 KB
102
103
  ESM dist/chunk-WHIW6KOB.mjs 1.83 KB
103
- ESM dist/chunk-IW33VLL5.mjs 6.95 KB
104
104
  ESM dist/chunk-I4KVSZCH.mjs 2.28 KB
105
+ ESM dist/chunk-IW33VLL5.mjs 6.95 KB
105
106
  ESM dist/chunk-TC43SMIN.mjs 5.11 KB
106
107
  ESM dist/chunk-O5CP6VP6.mjs 10.94 KB
107
108
  ESM dist/chunk-MUV4EGDW.mjs 6.90 KB
@@ -115,26 +116,24 @@ $ tsup
115
116
  ESM dist/chunk-GTAVSBDO.mjs 483.00 B
116
117
  ESM dist/chunk-YEWNFK5S.mjs 4.41 KB
117
118
  ESM dist/chunk-R2ON6CAN.mjs 2.83 KB
118
- ESM dist/chunk-GS47ZSSA.mjs 21.96 KB
119
119
  ESM dist/chunk-JTK6VJXY.mjs 3.88 KB
120
+ ESM dist/chunk-GS47ZSSA.mjs 21.96 KB
120
121
  ESM dist/chunk-MXP2RX2V.mjs 11.33 KB
121
122
  ESM dist/chunk-ISUA7DSB.mjs 2.08 KB
122
- ESM dist/chunk-XVZGXPIX.mjs 14.51 KB
123
123
  ESM dist/chunk-XUCDPAVI.mjs 13.16 KB
124
- ESM dist/chunk-ZXEUBBHJ.mjs 5.64 KB
124
+ ESM dist/chunk-TAFL4WDY.mjs 14.89 KB
125
125
  ESM dist/chunk-4Z66LMIQ.mjs 2.41 KB
126
- ESM dist/chunk-4BHDDLWK.mjs 20.71 KB
127
- ESM dist/chunk-E2BNCA6L.mjs 14.00 KB
126
+ ESM dist/chunk-ZXEUBBHJ.mjs 5.64 KB
128
127
  ESM dist/chunk-MDUKXXIL.mjs 2.24 KB
128
+ ESM dist/chunk-4BHDDLWK.mjs 20.71 KB
129
129
  ESM dist/chunk-UTCQN6XU.mjs 4.35 KB
130
130
  ESM dist/chunk-QQSOZQOC.mjs 631.00 B
131
- ESM dist/chunk-AANINK2B.mjs 8.46 KB
132
131
  ESM dist/chunk-FRT3S72S.mjs 2.27 KB
133
- ESM dist/chunk-MNMSHB2J.mjs 22.21 KB
132
+ ESM dist/chunk-AANINK2B.mjs 8.46 KB
134
133
  ESM dist/chunk-UYRHYJPX.mjs 8.39 KB
135
134
  ESM dist/chunk-B3CTBLIY.mjs 7.26 KB
136
- ESM dist/chunk-SSUK6C2K.mjs 7.37 KB
137
135
  ESM dist/chunk-GT3RU6GA.mjs 3.09 KB
136
+ ESM dist/chunk-SSUK6C2K.mjs 7.37 KB
138
137
  ESM dist/chunk-IKXYTCSB.mjs 3.92 KB
139
138
  ESM dist/chunk-USOVLDGS.mjs 6.86 KB
140
139
  ESM dist/chunk-VCDGLN25.mjs 7.35 KB
@@ -142,17 +141,17 @@ $ tsup
142
141
  ESM dist/chunk-7UIL5UN3.mjs 11.34 KB
143
142
  ESM dist/chunk-NCMV3LTP.mjs 4.85 KB
144
143
  ESM dist/chunk-JVMXMFBB.mjs 865.00 B
145
- ESM dist/chunk-3VZ6CYY2.mjs 15.81 KB
146
144
  ESM dist/chunk-3VDET466.mjs 2.46 KB
145
+ ESM dist/chunk-3VZ6CYY2.mjs 15.81 KB
147
146
  ESM dist/chunk-PNSYFE3K.mjs 3.80 KB
148
- ESM dist/chunk-54TRNCID.mjs 53.94 KB
149
147
  ESM dist/chunk-H5DTKPJ2.mjs 9.03 KB
150
148
  ESM dist/chunk-3S6KVFF5.mjs 2.37 KB
149
+ ESM dist/chunk-54TRNCID.mjs 53.94 KB
151
150
  ESM dist/chunk-WE4YKBDE.mjs 4.01 KB
152
- ESM dist/chunk-2GIYVERS.mjs 840.00 B
153
151
  ESM dist/chunk-BS75ICOO.mjs 1.00 KB
154
- ESM dist/chunk-LI2CTS5O.mjs 6.31 KB
152
+ ESM dist/chunk-2GIYVERS.mjs 840.00 B
155
153
  ESM dist/chunk-H6NQTIF4.mjs 3.28 KB
154
+ ESM dist/chunk-LI2CTS5O.mjs 6.31 KB
156
155
  ESM dist/chunk-WL6WVV47.mjs 2.16 KB
157
156
  ESM dist/chunk-CEYEK3TI.mjs 6.30 KB
158
157
  ESM dist/lib/theme-provider.mjs 237.00 B
@@ -178,27 +177,27 @@ $ tsup
178
177
  ESM dist/chunk-AFML43VJ.mjs 988.00 B
179
178
  ESM dist/chunk-WNQUEZJF.mjs 1.85 KB
180
179
  ESM dist/components/ui/contact-alert-dialog/index.mjs 925.00 B
180
+ ESM dist/chunk-MNMSHB2J.mjs 22.21 KB
181
181
  ESM dist/components/ui/upload-card.mjs 196.00 B
182
182
  ESM dist/components/ui/video-background.mjs 162.00 B
183
183
  ESM dist/components/ui/toggle.mjs 180.00 B
184
- ESM dist/components/ui/tooltip.mjs 326.00 B
185
184
  ESM dist/components/ui/top-three-product.mjs 5.06 KB
185
+ ESM dist/components/ui/tooltip.mjs 326.00 B
186
186
  ESM dist/components/ui/transactions-expense-categories-doughnut-chart.mjs 531.00 B
187
187
  ESM dist/components/ui/transactions-income-expense-bar-chart.mjs 513.00 B
188
- ESM dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs 521.00 B
189
188
  ESM dist/components/ui/transactions-summary-block.mjs 1.11 KB
190
189
  ESM dist/components/ui/two-fa-setup-form.mjs 440.00 B
191
- ESM dist/components/ui/stage-timeline.mjs 438.00 B
192
190
  ESM dist/components/ui/stepper.mjs 276.00 B
193
- ESM dist/components/ui/submission-confirmation-card.mjs 1.96 KB
191
+ ESM dist/components/ui/stage-timeline.mjs 438.00 B
194
192
  ESM dist/components/ui/switch.mjs 172.00 B
195
- ESM dist/components/ui/table.mjs 336.00 B
193
+ ESM dist/components/ui/submission-confirmation-card.mjs 1.96 KB
196
194
  ESM dist/components/ui/tabs.mjs 264.00 B
195
+ ESM dist/components/ui/table.mjs 336.00 B
197
196
  ESM dist/components/ui/textarea.mjs 148.00 B
198
197
  ESM dist/components/ui/toggle-group.mjs 227.00 B
199
198
  ESM dist/components/ui/sheet.mjs 462.00 B
200
- ESM dist/components/ui/sidebar-nav.mjs 397.00 B
201
199
  ESM dist/components/ui/signup-form-primitives.mjs 637.00 B
200
+ ESM dist/components/ui/sidebar-nav.mjs 397.00 B
202
201
  ESM dist/components/ui/signup-shell.mjs 263.00 B
203
202
  ESM dist/components/ui/skeleton.mjs 148.00 B
204
203
  ESM dist/components/ui/slider.mjs 144.00 B
@@ -209,15 +208,15 @@ $ tsup
209
208
  ESM dist/components/ui/scenario-item.mjs 261.00 B
210
209
  ESM dist/components/ui/scenario-list.mjs 3.24 KB
211
210
  ESM dist/components/ui/select.mjs 538.00 B
212
- ESM dist/components/ui/selectable-card.mjs 195.00 B
213
211
  ESM dist/components/ui/separator.mjs 150.00 B
214
- ESM dist/components/ui/share-details-dialog.mjs 529.00 B
212
+ ESM dist/components/ui/selectable-card.mjs 195.00 B
215
213
  ESM dist/components/ui/property-cashflow-doughnut-chart.mjs 505.00 B
216
- ESM dist/components/ui/property-debt-equity-doughnut-chart.mjs 509.00 B
214
+ ESM dist/components/ui/share-details-dialog.mjs 529.00 B
217
215
  ESM dist/components/ui/property-list-carousel.mjs 277.00 B
216
+ ESM dist/components/ui/property-debt-equity-doughnut-chart.mjs 509.00 B
217
+ ESM dist/components/ui/radio-group.mjs 224.00 B
218
218
  ESM dist/components/ui/property-mobile-estimate-line-chart.mjs 509.00 B
219
219
  ESM dist/components/ui/property-report-dialog.mjs 767.00 B
220
- ESM dist/components/ui/radio-group.mjs 224.00 B
221
220
  ESM dist/components/ui/resource-center.mjs 604.00 B
222
221
  ESM dist/components/ui/review-alerts-dialog.mjs 413.00 B
223
222
  ESM dist/components/ui/pipeline-alerts.mjs 160.00 B
@@ -227,8 +226,8 @@ $ tsup
227
226
  ESM dist/components/ui/pipeline-primitives.mjs 298.00 B
228
227
  ESM dist/components/ui/popover.mjs 432.00 B
229
228
  ESM dist/components/ui/progress.mjs 148.00 B
230
- ESM dist/components/ui/property-asset-card.mjs 6.75 KB
231
229
  ESM dist/components/ui/onboarding-layout.mjs 319.00 B
230
+ ESM dist/components/ui/property-asset-card.mjs 6.75 KB
232
231
  ESM dist/components/ui/opportunity-card.mjs 676.00 B
233
232
  ESM dist/components/ui/opportunity-edit-modals.mjs 1.06 KB
234
233
  ESM dist/components/ui/opportunity-summary-tab.mjs 1.06 KB
@@ -240,9 +239,9 @@ $ tsup
240
239
  ESM dist/components/ui/loan-financials.mjs 2.21 KB
241
240
  ESM dist/components/ui/loan-option-card.mjs 1.21 KB
242
241
  ESM dist/components/ui/loan-option-group.mjs 232.00 B
243
- ESM dist/components/ui/loan-steps.mjs 15.27 KB
244
242
  ESM dist/components/ui/loan-wizard-shell.mjs 267.00 B
245
243
  ESM dist/components/ui/money-input-with-slider.mjs 242.00 B
244
+ ESM dist/components/ui/loan-steps.mjs 15.27 KB
246
245
  ESM dist/components/ui/money-item-with-color-indicator.mjs 565.00 B
247
246
  ESM dist/components/ui/interest-rate-section.mjs 3.58 KB
248
247
  ESM dist/components/ui/interest-rate-used.mjs 2.02 KB
@@ -251,8 +250,8 @@ $ tsup
251
250
  ESM dist/components/ui/loan-applicant-information.mjs 1.98 KB
252
251
  ESM dist/components/ui/loan-applicant-invite.mjs 2.00 KB
253
252
  ESM dist/components/ui/loan-application-badge.mjs 242.00 B
254
- ESM dist/components/ui/loan-application-cards.mjs 4.49 KB
255
253
  ESM dist/components/ui/income-summary-component.mjs 3.18 KB
254
+ ESM dist/components/ui/loan-application-cards.mjs 4.49 KB
256
255
  ESM dist/components/ui/income-work-details.mjs 866.00 B
257
256
  ESM dist/components/ui/incoming-outgoings-card.mjs 2.53 KB
258
257
  ESM dist/components/ui/input-group.mjs 488.00 B
@@ -262,19 +261,19 @@ $ tsup
262
261
  ESM dist/components/ui/interest-rate-input.mjs 2.26 KB
263
262
  ESM dist/components/ui/financial-cards.mjs 581.00 B
264
263
  ESM dist/components/ui/financial-drawers.mjs 471.00 B
265
- ESM dist/components/ui/financial-primitives.mjs 508.00 B
266
264
  ESM dist/components/ui/financial-sections.mjs 807.00 B
265
+ ESM dist/components/ui/financial-primitives.mjs 508.00 B
267
266
  ESM dist/components/ui/form-primitives.mjs 467.00 B
268
267
  ESM dist/components/ui/frontend-signup-steps.mjs 1.02 KB
269
268
  ESM dist/components/ui/income-bar-chart.mjs 475.00 B
270
269
  ESM dist/components/ui/income-sources-card.mjs 3.89 KB
271
- ESM dist/components/ui/dynamic-tabs.mjs 4.06 KB
272
270
  ESM dist/components/ui/editable-money-item.mjs 306.00 B
271
+ ESM dist/components/ui/dynamic-tabs.mjs 4.06 KB
273
272
  ESM dist/components/ui/empty.mjs 300.00 B
274
273
  ESM dist/components/ui/expense-bar-chart.mjs 477.00 B
275
274
  ESM dist/components/ui/expense-detail-item.mjs 411.00 B
276
- ESM dist/components/ui/expense-work-details.mjs 5.99 KB
277
275
  ESM dist/components/ui/field.mjs 486.00 B
276
+ ESM dist/components/ui/expense-work-details.mjs 5.99 KB
278
277
  ESM dist/components/ui/file-preview-dialog.mjs 551.00 B
279
278
  ESM dist/components/ui/data-table.mjs 757.00 B
280
279
  ESM dist/components/ui/date-picker.mjs 432.00 B
@@ -286,8 +285,8 @@ $ tsup
286
285
  ESM dist/components/ui/dropdown-menu.mjs 884.00 B
287
286
  ESM dist/components/ui/color-picker.mjs 546.00 B
288
287
  ESM dist/components/ui/combobox.mjs 510.00 B
289
- ESM dist/components/ui/connect-bank-step.mjs 10.29 KB
290
288
  ESM dist/components/ui/create-contact-modal.mjs 623.00 B
289
+ ESM dist/components/ui/connect-bank-step.mjs 10.29 KB
291
290
  ESM dist/components/ui/csv-import-modal.mjs 370.00 B
292
291
  ESM dist/components/ui/currency-input.mjs 333.00 B
293
292
  ESM dist/components/ui/dashboard-expense-categories.mjs 6.88 KB
@@ -297,26 +296,26 @@ $ tsup
297
296
  ESM dist/components/ui/cashflow-bar-chart.mjs 479.00 B
298
297
  ESM dist/components/ui/category-edit-dialog.mjs 448.00 B
299
298
  ESM dist/components/ui/chat-widget-primitives.mjs 527.00 B
300
- ESM dist/components/ui/chat-widget.mjs 765.00 B
301
299
  ESM dist/components/ui/checkbox.mjs 180.00 B
300
+ ESM dist/components/ui/chat-widget.mjs 765.00 B
302
301
  ESM dist/components/ui/chip.mjs 245.00 B
303
302
  ESM dist/components/ui/borrowing-capacity-atoms.mjs 389.00 B
304
- ESM dist/components/ui/borrowing-capacity-card.mjs 3.45 KB
305
303
  ESM dist/components/ui/borrowing-capacity-line-chart.mjs 499.00 B
306
- ESM dist/components/ui/broker-info-panel.mjs 1.87 KB
304
+ ESM dist/components/ui/borrowing-capacity-card.mjs 3.45 KB
307
305
  ESM dist/components/ui/button.mjs 215.00 B
306
+ ESM dist/components/ui/broker-info-panel.mjs 1.87 KB
308
307
  ESM dist/components/ui/calculator-input-item.mjs 170.00 B
309
308
  ESM dist/components/ui/calculator-section.mjs 6.97 KB
310
309
  ESM dist/components/ui/calendar.mjs 295.00 B
311
310
  ESM dist/components/ui/backoffice-contact-history-chart.mjs 505.00 B
312
311
  ESM dist/components/ui/backoffice-contact-matching-chart.mjs 577.00 B
313
- ESM dist/components/ui/backoffice-signup-steps.mjs 954.00 B
314
- ESM dist/components/ui/badge.mjs 211.00 B
315
312
  ESM dist/components/ui/bank-statement-document-table.mjs 324.00 B
313
+ ESM dist/components/ui/backoffice-signup-steps.mjs 954.00 B
316
314
  ESM dist/components/ui/bank-statement-generate-dialog.mjs 851.00 B
317
315
  ESM dist/components/ui/bank-statement-pdf-viewer.mjs 386.00 B
318
316
  ESM dist/components/ui/banking-accounts-connect.mjs 4.53 KB
319
317
  ESM dist/components/ui/assets-liabilities-side-card.mjs 4.65 KB
318
+ ESM dist/components/ui/auth-page-layout.mjs 160.00 B
320
319
  ESM dist/components/ui/auth-logo.mjs 148.00 B
321
320
  ESM dist/components/ui/avatar.mjs 310.00 B
322
321
  ESM dist/components/ui/backoffice-alert-history-chart.mjs 501.00 B
@@ -325,33 +324,34 @@ $ tsup
325
324
  ESM dist/components/ui/backoffice-connections-chart.mjs 569.00 B
326
325
  ESM dist/components/ui/appointment-book-dialog.mjs 874.00 B
327
326
  ESM dist/components/ui/appointment-calendar-view.mjs 423.00 B
327
+ ESM dist/components/ui/badge.mjs 211.00 B
328
328
  ESM dist/components/ui/appointment-detail-sheet.mjs 771.00 B
329
329
  ESM dist/components/ui/appointment-gmail-connect.mjs 353.00 B
330
330
  ESM dist/components/ui/appointment-mini-card.mjs 275.00 B
331
331
  ESM dist/components/ui/appointment-time-slot-picker.mjs 339.00 B
332
332
  ESM dist/components/ui/appointment-upcoming-card.mjs 668.00 B
333
- ESM dist/components/ui/asset-accordion.mjs 6.80 KB
334
333
  ESM dist/components/ui/alert.mjs 210.00 B
334
+ ESM dist/components/ui/asset-accordion.mjs 6.80 KB
335
335
  ESM dist/components/ui/applicant-document-checklist.mjs 254.00 B
336
- ESM dist/components/ui/applicant-expenses-section.mjs 7.22 KB
337
336
  ESM dist/components/ui/applicant-navigation-bar.mjs 2.41 KB
337
+ ESM dist/components/ui/applicant-expenses-section.mjs 7.22 KB
338
338
  ESM dist/components/ui/applicant-switcher.mjs 1.12 KB
339
339
  ESM dist/components/ui/application-mobile-layout.mjs 178.00 B
340
340
  ESM dist/components/ui/appointment-action-dialogs.mjs 732.00 B
341
341
  ESM dist/components/ui/appointment-availability-settings.mjs 815.00 B
342
- ESM dist/components/ui/add-column-modal.mjs 440.00 B
343
342
  ESM dist/components/ui/add-lead-modal.mjs 541.00 B
344
- ESM dist/components/ui/advisor-card.mjs 371.00 B
343
+ ESM dist/components/ui/add-column-modal.mjs 440.00 B
345
344
  ESM dist/components/ui/agent-evaluation-toast.mjs 296.00 B
346
- ESM dist/components/ui/ai-assistant-drawer.mjs 446.00 B
345
+ ESM dist/components/ui/advisor-card.mjs 371.00 B
347
346
  ESM dist/components/ui/ai-builder.mjs 671.00 B
347
+ ESM dist/components/ui/ai-assistant-drawer.mjs 446.00 B
348
348
  ESM dist/components/ui/ai-conversations.mjs 1.04 KB
349
349
  ESM dist/components/ui/alert-dialog.mjs 768.00 B
350
- ESM dist/components/ui/auth-page-layout.mjs 160.00 B
351
- ESM dist/components/ui/about-you-form.mjs 11.05 KB
352
350
  ESM dist/components/ui/accordion.mjs 264.00 B
353
351
  ESM dist/components/ui/account-list-carousel.mjs 275.00 B
354
- ESM ⚡️ Build success in 638ms
352
+ ESM dist/components/ui/about-you-form.mjs 11.05 KB
353
+ ESM dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs 521.00 B
354
+ ESM ⚡️ Build success in 728ms
355
355
  CJS dist/lib/colors.js 4.33 KB
356
356
  CJS dist/lib/theme-provider.js 8.19 KB
357
357
  CJS dist/lib/typography.js 5.74 KB
@@ -360,27 +360,28 @@ $ tsup
360
360
  CJS dist/components/ui/accordion.js 5.75 KB
361
361
  CJS dist/components/ui/account-list-carousel.js 11.56 KB
362
362
  CJS dist/components/ui/add-column-modal.js 26.06 KB
363
+ CJS dist/components/ui/add-lead-modal.js 39.54 KB
363
364
  CJS dist/components/ui/advisor-card.js 21.38 KB
364
365
  CJS dist/components/ui/agent-evaluation-toast.js 11.16 KB
365
366
  CJS dist/components/ui/ai-assistant-drawer.js 28.66 KB
366
367
  CJS dist/components/ui/ai-builder.js 40.02 KB
367
- CJS dist/components/ui/ai-conversations.js 95.55 KB
368
368
  CJS dist/components/ui/alert-dialog.js 16.03 KB
369
- CJS dist/components/ui/add-lead-modal.js 39.54 KB
369
+ CJS dist/components/ui/ai-conversations.js 95.55 KB
370
370
  CJS dist/components/ui/alert.js 5.17 KB
371
- CJS dist/components/ui/applicant-document-checklist.js 13.68 KB
372
371
  CJS dist/components/ui/applicant-expenses-section.js 17.30 KB
372
+ CJS dist/components/ui/applicant-document-checklist.js 13.68 KB
373
373
  CJS dist/components/ui/applicant-navigation-bar.js 11.35 KB
374
374
  CJS dist/components/ui/applicant-switcher.js 9.80 KB
375
375
  CJS dist/components/ui/application-mobile-layout.js 2.58 KB
376
376
  CJS dist/components/ui/appointment-action-dialogs.js 45.61 KB
377
377
  CJS dist/components/ui/appointment-availability-settings.js 67.54 KB
378
378
  CJS dist/components/ui/appointment-book-dialog.js 75.08 KB
379
- CJS dist/components/ui/appointment-calendar-view.js 33.01 KB
379
+ CJS dist/components/ui/appointment-calendar-view.js 33.39 KB
380
380
  CJS dist/components/ui/appointment-detail-sheet.js 65.29 KB
381
381
  CJS dist/components/ui/appointment-gmail-connect.js 19.29 KB
382
382
  CJS dist/components/ui/appointment-mini-card.js 12.50 KB
383
383
  CJS dist/components/ui/appointment-time-slot-picker.js 11.35 KB
384
+ CJS dist/components/ui/asset-accordion.js 19.18 KB
384
385
  CJS dist/components/ui/assets-liabilities-side-card.js 12.56 KB
385
386
  CJS dist/components/ui/auth-page-layout.js 3.49 KB
386
387
  CJS dist/components/ui/avatar.js 6.33 KB
@@ -390,13 +391,11 @@ $ tsup
390
391
  CJS dist/components/ui/backoffice-connections-chart.js 27.69 KB
391
392
  CJS dist/components/ui/backoffice-contact-history-chart.js 23.06 KB
392
393
  CJS dist/components/ui/backoffice-contact-matching-chart.js 27.60 KB
393
- CJS dist/components/ui/asset-accordion.js 19.18 KB
394
394
  CJS dist/components/ui/appointment-upcoming-card.js 56.01 KB
395
395
  CJS dist/components/ui/auth-logo.js 3.33 KB
396
396
  CJS dist/components/ui/badge.js 7.02 KB
397
397
  CJS dist/components/ui/backoffice-signup-steps.js 70.67 KB
398
398
  CJS dist/components/ui/bank-statement-document-table.js 19.19 KB
399
- CJS dist/components/ui/bank-statement-generate-dialog.js 59.60 KB
400
399
  CJS dist/components/ui/bank-statement-pdf-viewer.js 20.93 KB
401
400
  CJS dist/components/ui/banking-accounts-connect.js 13.77 KB
402
401
  CJS dist/components/ui/borrowing-capacity-atoms.js 14.71 KB
@@ -423,97 +422,98 @@ $ tsup
423
422
  CJS dist/components/ui/currency-input.js 16.27 KB
424
423
  CJS dist/components/ui/dashboard-expense-categories.js 13.22 KB
425
424
  CJS dist/components/ui/dashboard-transactions-table.js 41.10 KB
426
- CJS dist/components/ui/data-table.js 41.34 KB
427
425
  CJS dist/components/ui/date-picker.js 23.55 KB
428
426
  CJS dist/components/ui/debt-accordion.js 19.84 KB
429
427
  CJS dist/components/ui/delete-contact-component.js 17.52 KB
430
- CJS dist/components/ui/dialog.js 15.85 KB
428
+ CJS dist/components/ui/data-table.js 41.34 KB
431
429
  CJS dist/components/ui/document-checklist-template.js 25.96 KB
432
430
  CJS dist/components/ui/drawer.js 8.49 KB
433
- CJS dist/components/ui/dynamic-tabs.js 10.53 KB
434
431
  CJS dist/components/ui/dropdown-menu.js 13.57 KB
432
+ CJS dist/components/ui/dynamic-tabs.js 10.53 KB
435
433
  CJS dist/components/ui/editable-money-item.js 11.37 KB
436
434
  CJS dist/components/ui/empty.js 5.93 KB
437
435
  CJS dist/components/ui/expense-bar-chart.js 22.36 KB
438
436
  CJS dist/components/ui/expense-detail-item.js 19.01 KB
439
437
  CJS dist/components/ui/field.js 11.80 KB
440
- CJS dist/components/ui/financial-cards.js 50.65 KB
441
- CJS dist/components/ui/financial-primitives.js 8.00 KB
438
+ CJS dist/components/ui/expense-work-details.js 46.89 KB
439
+ CJS dist/components/ui/dialog.js 15.85 KB
442
440
  CJS dist/components/ui/file-preview-dialog.js 42.01 KB
441
+ CJS dist/components/ui/financial-cards.js 50.65 KB
442
+ CJS dist/components/ui/financial-drawers.js 25.49 KB
443
443
  CJS dist/components/ui/financial-sections.js 56.09 KB
444
- CJS dist/components/ui/form-primitives.js 23.00 KB
445
444
  CJS dist/components/ui/frontend-signup-steps.js 46.80 KB
446
445
  CJS dist/components/ui/income-bar-chart.js 22.32 KB
447
446
  CJS dist/components/ui/income-sources-card.js 9.81 KB
448
447
  CJS dist/components/ui/income-summary-component.js 14.75 KB
449
- CJS dist/components/ui/financial-drawers.js 25.49 KB
450
- CJS dist/components/ui/input-group.js 16.63 KB
448
+ CJS dist/components/ui/financial-primitives.js 8.00 KB
449
+ CJS dist/components/ui/form-primitives.js 23.00 KB
450
+ CJS dist/components/ui/input-otp.js 6.49 KB
451
+ CJS dist/components/ui/incoming-outgoings-card.js 7.52 KB
451
452
  CJS dist/components/ui/input.js 3.88 KB
452
453
  CJS dist/components/ui/integration-card.js 13.14 KB
453
454
  CJS dist/components/ui/interest-rate-input.js 16.38 KB
454
455
  CJS dist/components/ui/interest-rate-section.js 13.80 KB
455
456
  CJS dist/components/ui/interest-rate-used.js 6.83 KB
456
- CJS dist/components/ui/incoming-outgoings-card.js 7.52 KB
457
- CJS dist/components/ui/input-otp.js 6.49 KB
457
+ CJS dist/components/ui/input-group.js 16.63 KB
458
+ CJS dist/components/ui/label.js 3.52 KB
458
459
  CJS dist/components/ui/income-work-details.js 58.65 KB
459
460
  CJS dist/components/ui/loan-applicant-information.js 13.40 KB
460
- CJS dist/components/ui/loan-applicant-invite.js 12.23 KB
461
461
  CJS dist/components/ui/loan-application-badge.js 8.20 KB
462
- CJS dist/components/ui/loan-application-cards.js 14.53 KB
462
+ CJS dist/components/ui/loan-applicant-invite.js 12.23 KB
463
463
  CJS dist/components/ui/loan-entry-shell.js 3.66 KB
464
- CJS dist/components/ui/loan-financials.js 15.65 KB
464
+ CJS dist/components/ui/loan-application-cards.js 14.53 KB
465
465
  CJS dist/components/ui/loan-option-card.js 3.10 KB
466
466
  CJS dist/components/ui/loan-option-group.js 9.49 KB
467
467
  CJS dist/components/ui/loan-steps.js 39.22 KB
468
468
  CJS dist/components/ui/loan-wizard-shell.js 18.81 KB
469
+ CJS dist/components/ui/loan-financials.js 15.65 KB
469
470
  CJS dist/components/ui/money-input-with-slider.js 6.93 KB
470
471
  CJS dist/components/ui/money-item-with-color-indicator.js 11.75 KB
471
472
  CJS dist/components/ui/onboarding-layout.js 20.35 KB
472
- CJS dist/components/ui/label.js 3.52 KB
473
- CJS dist/components/ui/opportunity-card.js 53.21 KB
474
473
  CJS dist/components/ui/kanban-column.js 62.68 KB
474
+ CJS dist/components/ui/opportunity-card.js 53.21 KB
475
475
  CJS dist/components/ui/page-header.js 2.79 KB
476
- CJS dist/components/ui/page-top-bar.js 2.60 KB
477
- CJS dist/components/ui/opportunity-edit-modals.js 144.61 KB
478
476
  CJS dist/components/ui/pagination.js 23.58 KB
477
+ CJS dist/components/ui/opportunity-edit-modals.js 144.61 KB
479
478
  CJS dist/components/ui/password-strength-tooltip.js 7.05 KB
480
479
  CJS dist/components/ui/pipeline-alerts.js 3.53 KB
481
480
  CJS dist/components/ui/pipeline-chart.js 10.60 KB
482
481
  CJS dist/components/ui/pipeline-board.js 72.67 KB
482
+ CJS dist/components/ui/page-top-bar.js 2.60 KB
483
483
  CJS dist/components/ui/pipeline-dialogs.js 47.48 KB
484
484
  CJS dist/components/ui/opportunity-summary-tab.js 221.15 KB
485
485
  CJS dist/components/ui/popover.js 6.49 KB
486
- CJS dist/components/ui/pipeline-primitives.js 13.92 KB
487
486
  CJS dist/components/ui/progress.js 3.94 KB
488
487
  CJS dist/components/ui/property-cashflow-doughnut-chart.js 19.37 KB
489
- CJS dist/components/ui/property-asset-card.js 17.82 KB
490
- CJS dist/components/ui/property-list-carousel.js 11.25 KB
491
488
  CJS dist/components/ui/property-debt-equity-doughnut-chart.js 19.25 KB
492
- CJS dist/components/ui/radio-group.js 7.16 KB
489
+ CJS dist/components/ui/property-list-carousel.js 11.25 KB
490
+ CJS dist/components/ui/property-asset-card.js 17.82 KB
493
491
  CJS dist/components/ui/property-mobile-estimate-line-chart.js 23.44 KB
492
+ CJS dist/components/ui/pipeline-primitives.js 13.92 KB
493
+ CJS dist/components/ui/radio-group.js 7.16 KB
494
494
  CJS dist/components/ui/property-report-dialog.js 43.86 KB
495
495
  CJS dist/components/ui/resource-center.js 32.95 KB
496
496
  CJS dist/components/ui/review-alerts-dialog.js 21.75 KB
497
497
  CJS dist/components/ui/savings-goal-modal.js 43.07 KB
498
498
  CJS dist/components/ui/scenario-drawer.js 29.79 KB
499
+ CJS dist/components/ui/scenario-list.js 19.00 KB
499
500
  CJS dist/components/ui/scenario-item.js 9.28 KB
500
501
  CJS dist/components/ui/select.js 10.94 KB
501
- CJS dist/components/ui/scenario-list.js 19.00 KB
502
- CJS dist/components/ui/selectable-card.js 5.32 KB
503
502
  CJS dist/components/ui/separator.js 3.58 KB
503
+ CJS dist/components/ui/selectable-card.js 5.32 KB
504
504
  CJS dist/components/ui/sheet.js 8.64 KB
505
505
  CJS dist/components/ui/share-details-dialog.js 24.72 KB
506
506
  CJS dist/components/ui/sidebar-nav.js 30.59 KB
507
507
  CJS dist/components/ui/signup-form-primitives.js 29.72 KB
508
- CJS dist/components/ui/signup-shell.js 13.58 KB
509
508
  CJS dist/components/ui/skeleton.js 3.24 KB
509
+ CJS dist/components/ui/signup-shell.js 13.58 KB
510
510
  CJS dist/components/ui/sonner.js 3.35 KB
511
511
  CJS dist/components/ui/slider.js 4.60 KB
512
512
  CJS dist/components/ui/spinner.js 3.73 KB
513
- CJS dist/components/ui/stepper.js 9.15 KB
514
513
  CJS dist/components/ui/stage-timeline.js 24.62 KB
515
- CJS dist/components/ui/submission-confirmation-card.js 10.88 KB
514
+ CJS dist/components/ui/stepper.js 9.15 KB
516
515
  CJS dist/components/ui/switch.js 6.96 KB
516
+ CJS dist/components/ui/submission-confirmation-card.js 10.88 KB
517
517
  CJS dist/components/ui/table.js 6.25 KB
518
518
  CJS dist/components/ui/tabs.js 7.02 KB
519
519
  CJS dist/components/ui/textarea.js 3.77 KB
@@ -523,13 +523,13 @@ $ tsup
523
523
  CJS dist/components/ui/top-three-product.js 15.24 KB
524
524
  CJS dist/components/ui/transactions-expense-categories-doughnut-chart.js 19.64 KB
525
525
  CJS dist/components/ui/transactions-income-expense-bar-chart.js 19.06 KB
526
- CJS dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js 19.64 KB
527
526
  CJS dist/components/ui/transactions-summary-block.js 3.15 KB
527
+ CJS dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js 19.64 KB
528
528
  CJS dist/components/ui/upload-card.js 5.43 KB
529
529
  CJS dist/components/ui/two-fa-setup-form.js 23.79 KB
530
530
  CJS dist/components/ui/video-background.js 3.25 KB
531
531
  CJS dist/components/ui/contact-alert-dialog/index.js 66.04 KB
532
- CJS dist/components/ui/expense-work-details.js 46.89 KB
532
+ CJS dist/components/ui/bank-statement-generate-dialog.js 59.60 KB
533
533
  CJS dist/index.js 1.09 MB
534
- CJS ⚡️ Build success in 679ms
535
- Done in 3.43s.
534
+ CJS ⚡️ Build success in 780ms
535
+ Done in 3.86s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @wealthx/shadcn
2
2
 
3
+ ## 1.5.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 544610d: Add viewmode callback
8
+
3
9
  ## 1.5.8
4
10
 
5
11
  ### Patch Changes
@@ -264,11 +264,12 @@ function generateMonthGrid(year, month) {
264
264
  }
265
265
  function MonthView({
266
266
  appointments,
267
+ viewDate,
267
268
  today,
268
269
  onSelectAppointment
269
270
  }) {
270
- const todayDate = /* @__PURE__ */ new Date(today + "T00:00:00");
271
- const grid = generateMonthGrid(todayDate.getFullYear(), todayDate.getMonth());
271
+ const vd = /* @__PURE__ */ new Date(viewDate + "T00:00:00");
272
+ const grid = generateMonthGrid(vd.getFullYear(), vd.getMonth());
272
273
  const toIso = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
273
274
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
274
275
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-7 border-b border-border", children: MONTH_DAY_HEADERS.map((d) => /* @__PURE__ */ jsx(
@@ -337,15 +338,18 @@ function AppointmentCalendarView({
337
338
  periodLabel,
338
339
  weekDays,
339
340
  hours = DEFAULT_HOURS,
341
+ viewDate,
340
342
  dayViewDate,
341
343
  defaultView = "week",
342
344
  onPrev,
343
345
  onNext,
344
346
  onToday,
347
+ onViewChange,
345
348
  onSelectAppointment,
346
349
  toolbarActions
347
350
  }) {
348
- const dayDate = dayViewDate != null ? dayViewDate : today;
351
+ var _a;
352
+ const effectiveViewDate = (_a = viewDate != null ? viewDate : dayViewDate) != null ? _a : today;
349
353
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
350
354
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
351
355
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
@@ -375,41 +379,50 @@ function AppointmentCalendarView({
375
379
  toolbarActions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: toolbarActions })
376
380
  ] }),
377
381
  /* @__PURE__ */ jsx(Separator, {}),
378
- /* @__PURE__ */ jsxs(Tabs, { defaultValue: defaultView, className: "flex flex-col", children: [
379
- /* @__PURE__ */ jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ jsxs(TabsList, { children: [
380
- /* @__PURE__ */ jsx(TabsTrigger, { value: "day", children: "Day" }),
381
- /* @__PURE__ */ jsx(TabsTrigger, { value: "week", children: "Week" }),
382
- /* @__PURE__ */ jsx(TabsTrigger, { value: "month", children: "Month" })
383
- ] }) }),
384
- /* @__PURE__ */ jsx(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ jsx(
385
- DayView,
386
- {
387
- appointments,
388
- date: dayDate,
389
- today,
390
- hours,
391
- onSelectAppointment
392
- }
393
- ) }),
394
- /* @__PURE__ */ jsx(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ jsx(
395
- WeekView,
396
- {
397
- appointments,
398
- weekDays,
399
- today,
400
- hours,
401
- onSelectAppointment
402
- }
403
- ) }),
404
- /* @__PURE__ */ jsx(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ jsx(
405
- MonthView,
406
- {
407
- appointments,
408
- today,
409
- onSelectAppointment
410
- }
411
- ) })
412
- ] })
382
+ /* @__PURE__ */ jsxs(
383
+ Tabs,
384
+ {
385
+ defaultValue: defaultView,
386
+ onValueChange: (v) => onViewChange == null ? void 0 : onViewChange(v),
387
+ className: "flex flex-col",
388
+ children: [
389
+ /* @__PURE__ */ jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ jsxs(TabsList, { children: [
390
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "day", children: "Day" }),
391
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "week", children: "Week" }),
392
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "month", children: "Month" })
393
+ ] }) }),
394
+ /* @__PURE__ */ jsx(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ jsx(
395
+ DayView,
396
+ {
397
+ appointments,
398
+ date: effectiveViewDate,
399
+ today,
400
+ hours,
401
+ onSelectAppointment
402
+ }
403
+ ) }),
404
+ /* @__PURE__ */ jsx(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ jsx(
405
+ WeekView,
406
+ {
407
+ appointments,
408
+ weekDays,
409
+ today,
410
+ hours,
411
+ onSelectAppointment
412
+ }
413
+ ) }),
414
+ /* @__PURE__ */ jsx(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ jsx(
415
+ MonthView,
416
+ {
417
+ appointments,
418
+ viewDate: effectiveViewDate,
419
+ today,
420
+ onSelectAppointment
421
+ }
422
+ ) })
423
+ ]
424
+ }
425
+ )
413
426
  ] });
414
427
  }
415
428
 
@@ -695,11 +695,12 @@ function generateMonthGrid(year, month) {
695
695
  }
696
696
  function MonthView({
697
697
  appointments,
698
+ viewDate,
698
699
  today,
699
700
  onSelectAppointment
700
701
  }) {
701
- const todayDate = /* @__PURE__ */ new Date(today + "T00:00:00");
702
- const grid = generateMonthGrid(todayDate.getFullYear(), todayDate.getMonth());
702
+ const vd = /* @__PURE__ */ new Date(viewDate + "T00:00:00");
703
+ const grid = generateMonthGrid(vd.getFullYear(), vd.getMonth());
703
704
  const toIso = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
704
705
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col", children: [
705
706
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "grid grid-cols-7 border-b border-border", children: MONTH_DAY_HEADERS.map((d) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -768,15 +769,18 @@ function AppointmentCalendarView({
768
769
  periodLabel,
769
770
  weekDays,
770
771
  hours = DEFAULT_HOURS,
772
+ viewDate,
771
773
  dayViewDate,
772
774
  defaultView = "week",
773
775
  onPrev,
774
776
  onNext,
775
777
  onToday,
778
+ onViewChange,
776
779
  onSelectAppointment,
777
780
  toolbarActions
778
781
  }) {
779
- const dayDate = dayViewDate != null ? dayViewDate : today;
782
+ var _a;
783
+ const effectiveViewDate = (_a = viewDate != null ? viewDate : dayViewDate) != null ? _a : today;
780
784
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col border border-border bg-card", children: [
781
785
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
782
786
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-2", children: [
@@ -806,41 +810,50 @@ function AppointmentCalendarView({
806
810
  toolbarActions && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center gap-2", children: toolbarActions })
807
811
  ] }),
808
812
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Separator, {}),
809
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Tabs, { defaultValue: defaultView, className: "flex flex-col", children: [
810
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "px-4 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(TabsList, { children: [
811
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "day", children: "Day" }),
812
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "week", children: "Week" }),
813
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "month", children: "Month" })
814
- ] }) }),
815
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
816
- DayView,
817
- {
818
- appointments,
819
- date: dayDate,
820
- today,
821
- hours,
822
- onSelectAppointment
823
- }
824
- ) }),
825
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
826
- WeekView,
827
- {
828
- appointments,
829
- weekDays,
830
- today,
831
- hours,
832
- onSelectAppointment
833
- }
834
- ) }),
835
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
836
- MonthView,
837
- {
838
- appointments,
839
- today,
840
- onSelectAppointment
841
- }
842
- ) })
843
- ] })
813
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
814
+ Tabs,
815
+ {
816
+ defaultValue: defaultView,
817
+ onValueChange: (v) => onViewChange == null ? void 0 : onViewChange(v),
818
+ className: "flex flex-col",
819
+ children: [
820
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "px-4 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(TabsList, { children: [
821
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "day", children: "Day" }),
822
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "week", children: "Week" }),
823
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsTrigger, { value: "month", children: "Month" })
824
+ ] }) }),
825
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
826
+ DayView,
827
+ {
828
+ appointments,
829
+ date: effectiveViewDate,
830
+ today,
831
+ hours,
832
+ onSelectAppointment
833
+ }
834
+ ) }),
835
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
836
+ WeekView,
837
+ {
838
+ appointments,
839
+ weekDays,
840
+ today,
841
+ hours,
842
+ onSelectAppointment
843
+ }
844
+ ) }),
845
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
846
+ MonthView,
847
+ {
848
+ appointments,
849
+ viewDate: effectiveViewDate,
850
+ today,
851
+ onSelectAppointment
852
+ }
853
+ ) })
854
+ ]
855
+ }
856
+ )
844
857
  ] });
845
858
  }
846
859
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AppointmentCalendarView
3
- } from "../../chunk-XVZGXPIX.mjs";
3
+ } from "../../chunk-TAFL4WDY.mjs";
4
4
  import "../../chunk-WE4YKBDE.mjs";
5
5
  import "../../chunk-2GIYVERS.mjs";
6
6
  import "../../chunk-H6NQTIF4.mjs";
package/dist/index.js CHANGED
@@ -9589,11 +9589,12 @@ function generateMonthGrid(year, month) {
9589
9589
  }
9590
9590
  function MonthView({
9591
9591
  appointments,
9592
+ viewDate,
9592
9593
  today,
9593
9594
  onSelectAppointment
9594
9595
  }) {
9595
- const todayDate = /* @__PURE__ */ new Date(today + "T00:00:00");
9596
- const grid = generateMonthGrid(todayDate.getFullYear(), todayDate.getMonth());
9596
+ const vd = /* @__PURE__ */ new Date(viewDate + "T00:00:00");
9597
+ const grid = generateMonthGrid(vd.getFullYear(), vd.getMonth());
9597
9598
  const toIso = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
9598
9599
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col", children: [
9599
9600
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "grid grid-cols-7 border-b border-border", children: MONTH_DAY_HEADERS.map((d) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
@@ -9662,15 +9663,18 @@ function AppointmentCalendarView({
9662
9663
  periodLabel,
9663
9664
  weekDays,
9664
9665
  hours = DEFAULT_HOURS,
9666
+ viewDate,
9665
9667
  dayViewDate,
9666
9668
  defaultView = "week",
9667
9669
  onPrev,
9668
9670
  onNext,
9669
9671
  onToday,
9672
+ onViewChange,
9670
9673
  onSelectAppointment,
9671
9674
  toolbarActions
9672
9675
  }) {
9673
- const dayDate = dayViewDate != null ? dayViewDate : today;
9676
+ var _a;
9677
+ const effectiveViewDate = (_a = viewDate != null ? viewDate : dayViewDate) != null ? _a : today;
9674
9678
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col border border-border bg-card", children: [
9675
9679
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
9676
9680
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2", children: [
@@ -9700,41 +9704,50 @@ function AppointmentCalendarView({
9700
9704
  toolbarActions && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex items-center gap-2", children: toolbarActions })
9701
9705
  ] }),
9702
9706
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Separator, {}),
9703
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Tabs, { defaultValue: defaultView, className: "flex flex-col", children: [
9704
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "px-4 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(TabsList, { children: [
9705
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "day", children: "Day" }),
9706
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "week", children: "Week" }),
9707
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "month", children: "Month" })
9708
- ] }) }),
9709
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9710
- DayView,
9711
- {
9712
- appointments,
9713
- date: dayDate,
9714
- today,
9715
- hours,
9716
- onSelectAppointment
9717
- }
9718
- ) }),
9719
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9720
- WeekView,
9721
- {
9722
- appointments,
9723
- weekDays,
9724
- today,
9725
- hours,
9726
- onSelectAppointment
9727
- }
9728
- ) }),
9729
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9730
- MonthView,
9731
- {
9732
- appointments,
9733
- today,
9734
- onSelectAppointment
9735
- }
9736
- ) })
9737
- ] })
9707
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
9708
+ Tabs,
9709
+ {
9710
+ defaultValue: defaultView,
9711
+ onValueChange: (v) => onViewChange == null ? void 0 : onViewChange(v),
9712
+ className: "flex flex-col",
9713
+ children: [
9714
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "px-4 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(TabsList, { children: [
9715
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "day", children: "Day" }),
9716
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "week", children: "Week" }),
9717
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsTrigger, { value: "month", children: "Month" })
9718
+ ] }) }),
9719
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "day", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9720
+ DayView,
9721
+ {
9722
+ appointments,
9723
+ date: effectiveViewDate,
9724
+ today,
9725
+ hours,
9726
+ onSelectAppointment
9727
+ }
9728
+ ) }),
9729
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "week", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9730
+ WeekView,
9731
+ {
9732
+ appointments,
9733
+ weekDays,
9734
+ today,
9735
+ hours,
9736
+ onSelectAppointment
9737
+ }
9738
+ ) }),
9739
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TabsContent, { value: "month", className: "mt-0", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
9740
+ MonthView,
9741
+ {
9742
+ appointments,
9743
+ viewDate: effectiveViewDate,
9744
+ today,
9745
+ onSelectAppointment
9746
+ }
9747
+ ) })
9748
+ ]
9749
+ }
9750
+ )
9738
9751
  ] });
9739
9752
  }
9740
9753
 
package/dist/index.mjs CHANGED
@@ -379,7 +379,7 @@ import {
379
379
  } from "./chunk-ISUA7DSB.mjs";
380
380
  import {
381
381
  AppointmentCalendarView
382
- } from "./chunk-XVZGXPIX.mjs";
382
+ } from "./chunk-TAFL4WDY.mjs";
383
383
  import {
384
384
  AppointmentDetailSheet
385
385
  } from "./chunk-XUCDPAVI.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wealthx/shadcn",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./src/index.ts",
@@ -50,12 +50,15 @@ export interface AppointmentCalendarViewProps {
50
50
  weekDays: AppointmentWeekDay[];
51
51
  /** Hours displayed in day/week view — defaults to [9..17] */
52
52
  hours?: number[];
53
- /** ISO date used for Day view */
53
+ /** ISO date controlling which day/month is displayed — defaults to `today` */
54
+ viewDate?: string;
55
+ /** @deprecated Use `viewDate` instead */
54
56
  dayViewDate?: string;
55
57
  defaultView?: "day" | "week" | "month";
56
58
  onPrev?: () => void;
57
59
  onNext?: () => void;
58
60
  onToday?: () => void;
61
+ onViewChange?: (view: "day" | "week" | "month") => void;
59
62
  onSelectAppointment?: (apt: AppointmentCalendarItem) => void;
60
63
  /** Slot rendered in the calendar toolbar right side (e.g. pending request button + new appointment button) */
61
64
  toolbarActions?: ReactNode;
@@ -335,16 +338,17 @@ function generateMonthGrid(year: number, month: number): (Date | null)[][] {
335
338
 
336
339
  function MonthView({
337
340
  appointments,
341
+ viewDate,
338
342
  today,
339
343
  onSelectAppointment,
340
344
  }: {
341
345
  appointments: AppointmentCalendarItem[];
346
+ viewDate: string;
342
347
  today: string;
343
348
  onSelectAppointment?: (apt: AppointmentCalendarItem) => void;
344
349
  }) {
345
- // Derive year/month from today prop
346
- const todayDate = new Date(today + "T00:00:00");
347
- const grid = generateMonthGrid(todayDate.getFullYear(), todayDate.getMonth());
350
+ const vd = new Date(viewDate + "T00:00:00");
351
+ const grid = generateMonthGrid(vd.getFullYear(), vd.getMonth());
348
352
  // Use local date parts — toISOString() converts to UTC first, which shifts the
349
353
  // date back 1 day for UTC+ timezones (e.g. UTC+7 shows Thu booking on Wed cell).
350
354
  const toIso = (d: Date) =>
@@ -430,15 +434,17 @@ export function AppointmentCalendarView({
430
434
  periodLabel,
431
435
  weekDays,
432
436
  hours = DEFAULT_HOURS,
437
+ viewDate,
433
438
  dayViewDate,
434
439
  defaultView = "week",
435
440
  onPrev,
436
441
  onNext,
437
442
  onToday,
443
+ onViewChange,
438
444
  onSelectAppointment,
439
445
  toolbarActions,
440
446
  }: AppointmentCalendarViewProps) {
441
- const dayDate = dayViewDate ?? today;
447
+ const effectiveViewDate = viewDate ?? dayViewDate ?? today;
442
448
 
443
449
  return (
444
450
  <div className="flex flex-col border border-border bg-card">
@@ -473,7 +479,13 @@ export function AppointmentCalendarView({
473
479
 
474
480
  <Separator />
475
481
 
476
- <Tabs defaultValue={defaultView} className="flex flex-col">
482
+ <Tabs
483
+ defaultValue={defaultView}
484
+ onValueChange={(v) =>
485
+ onViewChange?.(v as "day" | "week" | "month")
486
+ }
487
+ className="flex flex-col"
488
+ >
477
489
  <div className="px-4 pt-3">
478
490
  <TabsList>
479
491
  <TabsTrigger value="day">Day</TabsTrigger>
@@ -484,7 +496,7 @@ export function AppointmentCalendarView({
484
496
  <TabsContent value="day" className="mt-0">
485
497
  <DayView
486
498
  appointments={appointments}
487
- date={dayDate}
499
+ date={effectiveViewDate}
488
500
  today={today}
489
501
  hours={hours}
490
502
  onSelectAppointment={onSelectAppointment}
@@ -502,6 +514,7 @@ export function AppointmentCalendarView({
502
514
  <TabsContent value="month" className="mt-0">
503
515
  <MonthView
504
516
  appointments={appointments}
517
+ viewDate={effectiveViewDate}
505
518
  today={today}
506
519
  onSelectAppointment={onSelectAppointment}
507
520
  />