@acronis-platform/ui-react 4.0.0 → 5.0.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/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/components/ui/accordion/accordion.js +40 -53
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/accordion-container/accordion-container.js +93 -141
- package/dist/components/ui/accordion-container/accordion-container.js.map +1 -1
- package/dist/components/ui/alert/alert.js +95 -156
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/app-shell-chat/app-shell-chat.js +233 -332
- package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -1
- package/dist/components/ui/area-chart/area-chart.js +155 -240
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/avatar/avatar.js +47 -84
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +405 -615
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +68 -116
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/button/button.js +31 -40
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.js +33 -55
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/button-icon/button-icon.js +26 -35
- package/dist/components/ui/button-icon/button-icon.js.map +1 -1
- package/dist/components/ui/button-icon-input/button-icon-input.js +28 -35
- package/dist/components/ui/button-icon-input/button-icon-input.js.map +1 -1
- package/dist/components/ui/button-icon-menu/button-icon-menu.js +22 -26
- package/dist/components/ui/button-icon-menu/button-icon-menu.js.map +1 -1
- package/dist/components/ui/button-menu/button-menu.js +36 -52
- package/dist/components/ui/button-menu/button-menu.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +103 -202
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/calendar-panel/calendar-panel-utils.js +46 -57
- package/dist/components/ui/calendar-panel/calendar-panel-utils.js.map +1 -1
- package/dist/components/ui/calendar-panel/calendar-panel.js +136 -257
- package/dist/components/ui/calendar-panel/calendar-panel.js.map +1 -1
- package/dist/components/ui/card/card.js +104 -168
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/card-filter/card-filter.js +49 -76
- package/dist/components/ui/card-filter/card-filter.js.map +1 -1
- package/dist/components/ui/card-section/card-section.js +81 -111
- package/dist/components/ui/card-section/card-section.js.map +1 -1
- package/dist/components/ui/carousel-dialog/carousel-dialog.js +49 -87
- package/dist/components/ui/carousel-dialog/carousel-dialog.js.map +1 -1
- package/dist/components/ui/category-bar/category-bar.js +123 -162
- package/dist/components/ui/category-bar/category-bar.js.map +1 -1
- package/dist/components/ui/chart/chart-format.js +117 -153
- package/dist/components/ui/chart/chart-format.js.map +1 -1
- package/dist/components/ui/chart/chart-palette.js +63 -107
- package/dist/components/ui/chart/chart-palette.js.map +1 -1
- package/dist/components/ui/chart/chart.js +180 -305
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/chart-state/chart-state-illustrations.js +400 -298
- package/dist/components/ui/chart-state/chart-state-illustrations.js.map +1 -1
- package/dist/components/ui/chart-state/chart-state.js +40 -56
- package/dist/components/ui/chart-state/chart-state.js.map +1 -1
- package/dist/components/ui/chart-widget/chart-widget.js +40 -87
- package/dist/components/ui/chart-widget/chart-widget.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +56 -69
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/chip/chip.js +51 -70
- package/dist/components/ui/chip/chip.js.map +1 -1
- package/dist/components/ui/combobox/combobox.js +88 -151
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +297 -434
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +214 -332
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js +32 -37
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-column-header.js +23 -38
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/data-table/data-table-expand-trigger.js +23 -46
- package/dist/components/ui/data-table/data-table-expand-trigger.js.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.js +84 -89
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/ui/data-table/data-table-selection.js +7 -6
- package/dist/components/ui/data-table/data-table-selection.js.map +1 -1
- package/dist/components/ui/data-table/data-table-toolbar.js +51 -76
- package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-view-options.js +21 -28
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
- package/dist/components/ui/data-table/data-table.js +304 -438
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js +16 -14
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker.js +77 -111
- package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/ui/description-list/description-list.js +44 -54
- package/dist/components/ui/description-list/description-list.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +229 -310
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js +33 -57
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js.map +1 -1
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js +21 -26
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js.map +1 -1
- package/dist/components/ui/dialog-welcome/dialog-welcome.js +221 -267
- package/dist/components/ui/dialog-welcome/dialog-welcome.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +101 -168
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty/empty.js +49 -77
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/empty-overlay/empty-overlay.js +43 -49
- package/dist/components/ui/empty-overlay/empty-overlay.js.map +1 -1
- package/dist/components/ui/field/field.js +95 -178
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/filter-cards/filter-cards.js +16 -25
- package/dist/components/ui/filter-cards/filter-cards.js.map +1 -1
- package/dist/components/ui/filter-chips/filter-chips.js +36 -44
- package/dist/components/ui/filter-chips/filter-chips.js.map +1 -1
- package/dist/components/ui/filter-search/filter-search.js +139 -209
- package/dist/components/ui/filter-search/filter-search.js.map +1 -1
- package/dist/components/ui/fitted-actions/fitted-actions.js +87 -137
- package/dist/components/ui/fitted-actions/fitted-actions.js.map +1 -1
- package/dist/components/ui/form/form.js +14 -15
- package/dist/components/ui/form/form.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +266 -274
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/grid/grid.js +61 -68
- package/dist/components/ui/grid/grid.js.map +1 -1
- package/dist/components/ui/histogram/histogram.js +107 -141
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/input/input.js +14 -21
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-date-picker/input-date-picker.js +70 -114
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -1
- package/dist/components/ui/input-num-picker/input-num-picker.js +48 -0
- package/dist/components/ui/input-num-picker/input-num-picker.js.map +1 -0
- package/dist/components/ui/input-otp/input-otp.js +75 -104
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/input-password/input-password.js +71 -126
- package/dist/components/ui/input-password/input-password.js.map +1 -1
- package/dist/components/ui/input-search/input-search.js +32 -56
- package/dist/components/ui/input-search/input-search.js.map +1 -1
- package/dist/components/ui/input-select/input-select.js +234 -335
- package/dist/components/ui/input-select/input-select.js.map +1 -1
- package/dist/components/ui/input-text/input-text.js +54 -98
- package/dist/components/ui/input-text/input-text.js.map +1 -1
- package/dist/components/ui/input-text-area/input-text-area.js +41 -86
- package/dist/components/ui/input-text-area/input-text-area.js.map +1 -1
- package/dist/components/ui/label/label.js +6 -5
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +175 -277
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/link/link.js +34 -54
- package/dist/components/ui/link/link.js.map +1 -1
- package/dist/components/ui/loading/loading.js +51 -78
- package/dist/components/ui/loading/loading.js.map +1 -1
- package/dist/components/ui/meter/meter.js +79 -93
- package/dist/components/ui/meter/meter.js.map +1 -1
- package/dist/components/ui/metric/metric.js +83 -89
- package/dist/components/ui/metric/metric.js.map +1 -1
- package/dist/components/ui/number-field/number-field.js +36 -60
- package/dist/components/ui/number-field/number-field.js.map +1 -1
- package/dist/components/ui/page-content/page-content.js +15 -19
- package/dist/components/ui/page-content/page-content.js.map +1 -1
- package/dist/components/ui/page-header/page-header.js +120 -181
- package/dist/components/ui/page-header/page-header.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +58 -86
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +189 -268
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/popover/popover.js +51 -96
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.js +23 -29
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/progress-circle/progress-circle.js +97 -113
- package/dist/components/ui/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +137 -225
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +267 -399
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/radio/radio.js +22 -43
- package/dist/components/ui/radio/radio.js.map +1 -1
- package/dist/components/ui/resizable/resizable.js +20 -64
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +155 -217
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +95 -140
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +43 -77
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/search/search.js +58 -92
- package/dist/components/ui/search/search.js.map +1 -1
- package/dist/components/ui/section/section.js +125 -163
- package/dist/components/ui/section/section.js.map +1 -1
- package/dist/components/ui/separator/separator.js +16 -22
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/sheet-details.js +55 -78
- package/dist/components/ui/sheet/sheet-details.js.map +1 -1
- package/dist/components/ui/sheet/sheet.js +80 -136
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/sidebar-primary/sidebar-primary.js +220 -364
- package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -1
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +459 -641
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +14 -21
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.js +28 -42
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.js +28 -37
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/stack/stack.js +59 -61
- package/dist/components/ui/stack/stack.js.map +1 -1
- package/dist/components/ui/stepper/stepper.js +52 -70
- package/dist/components/ui/stepper/stepper.js.map +1 -1
- package/dist/components/ui/stepper-item/stepper-item.js +85 -116
- package/dist/components/ui/stepper-item/stepper-item.js.map +1 -1
- package/dist/components/ui/switch/switch.js +26 -40
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table-pagination.js +91 -106
- package/dist/components/ui/table/table-pagination.js.map +1 -1
- package/dist/components/ui/table/table-view-options.js +37 -53
- package/dist/components/ui/table/table-view-options.js.map +1 -1
- package/dist/components/ui/table/table.js +90 -177
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.js +26 -43
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/tag/tag.js +42 -47
- package/dist/components/ui/tag/tag.js.map +1 -1
- package/dist/components/ui/timeline/timeline.js +161 -239
- package/dist/components/ui/timeline/timeline.js.map +1 -1
- package/dist/components/ui/timer/timer.js +24 -47
- package/dist/components/ui/timer/timer.js.map +1 -1
- package/dist/components/ui/toast/toast.js +134 -189
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +28 -46
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/toolbar/toolbar.js +128 -201
- package/dist/components/ui/toolbar/toolbar.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +35 -57
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +135 -213
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/components/ui/trend-indicator/trend-indicator.js +48 -62
- package/dist/components/ui/trend-indicator/trend-indicator.js.map +1 -1
- package/dist/components/ui/truncate-text/middle-truncate.js +19 -19
- package/dist/components/ui/truncate-text/middle-truncate.js.map +1 -1
- package/dist/components/ui/truncate-text/text-width.js +11 -10
- package/dist/components/ui/truncate-text/text-width.js.map +1 -1
- package/dist/components/ui/truncate-text/truncate-text.js +92 -152
- package/dist/components/ui/truncate-text/truncate-text.js.map +1 -1
- package/dist/components/ui/widget-placeholder/widget-placeholder.js +63 -106
- package/dist/components/ui/widget-placeholder/widget-placeholder.js.map +1 -1
- package/dist/components/ui/wizard/wizard.js +36 -59
- package/dist/components/ui/wizard/wizard.js.map +1 -1
- package/dist/hooks/use-intersection-observer.js +27 -25
- package/dist/hooks/use-intersection-observer.js.map +1 -1
- package/dist/hooks/use-sort-state.js +43 -33
- package/dist/hooks/use-sort-state.js.map +1 -1
- package/dist/hooks/use-table-url-state.js +100 -109
- package/dist/hooks/use-table-url-state.js.map +1 -1
- package/dist/hooks/use-wizard.js +57 -71
- package/dist/hooks/use-wizard.js.map +1 -1
- package/dist/index.js +125 -550
- package/dist/lib/breakpoints.js +8 -13
- package/dist/lib/breakpoints.js.map +1 -1
- package/dist/lib/deep-equal.js +14 -22
- package/dist/lib/deep-equal.js.map +1 -1
- package/dist/lib/portal-container.js +16 -12
- package/dist/lib/portal-container.js.map +1 -1
- package/dist/lib/use-doc-dir.js +11 -10
- package/dist/lib/use-doc-dir.js.map +1 -1
- package/dist/lib/utils.js +8 -7
- package/dist/lib/utils.js.map +1 -1
- package/dist/llms/funnel-chart.md +269 -101
- package/dist/llms/input-num-picker.md +180 -0
- package/dist/llms/input-select.md +175 -1
- package/dist/llms/radar-chart.md +15 -5
- package/dist/llms.txt +3 -2
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/index.js +58 -61
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/mini.js +71 -85
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/mini.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/index.js +6 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tz/index.js +1 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzName/index.js +11 -11
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzName/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzOffset/index.js +22 -21
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js +36 -99
- package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1478 -1852
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -1
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +34 -35
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -15
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/addLeadingZeros.js +7 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/formatters.js +387 -580
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/lightFormatters.js +44 -59
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/longFormatters.js +39 -52
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +9 -18
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeDates.js +9 -11
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeDates.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeInterval.js +12 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/protectedTokens.js +21 -17
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js +10 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addMonths.js +13 -19
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addMonths.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addWeeks.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addWeeks.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addYears.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addYears.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js +12 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarDays.js +12 -15
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarMonths.js +9 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachMonthOfInterval.js +16 -16
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachMonthOfInterval.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachYearOfInterval.js +16 -16
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachYearOfInterval.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfISOWeek.js +11 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfISOWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfMonth.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfWeek.js +10 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfYear.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/format.js +59 -57
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/format.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDayOfYear.js +11 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDayOfYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDaysInMonth.js +10 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDaysInMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js +12 -11
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js +15 -14
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getMonth.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeek.js +12 -11
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeekYear.js +16 -16
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeekYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getYear.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isAfter.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isAfter.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isBefore.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isBefore.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isDate.js +7 -6
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isDate.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameDay.js +10 -13
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameDay.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameMonth.js +9 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameYear.js +9 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isValid.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isValid.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -18
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +21 -29
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +19 -15
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -70
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +13 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/localize.js +202 -154
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/match.js +125 -110
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US.js +20 -19
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/max.js +14 -13
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/max.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/min.js +14 -13
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/min.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setMonth.js +13 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setYear.js +10 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfDay.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfDay.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js +11 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js +11 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js +10 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeekYear.js +12 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeekYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfYear.js +9 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfYear.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js +8 -7
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js.map +1 -1
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +25 -24
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js.map +1 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +26 -30
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1016 -1202
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/DayPicker.js +398 -246
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/UI.js +16 -18
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +13 -19
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/DateLib.js +107 -257
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Chevron.js +14 -14
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Day.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -10
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Dropdown.js +30 -19
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Footer.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Month.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Months.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +10 -9
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Nav.js +41 -27
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Option.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Root.js +12 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Select.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Week.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weekday.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weekdays.js +7 -10
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weeks.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +10 -9
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/custom-components.js +57 -52
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -5
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/index.js +22 -17
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +18 -17
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +36 -41
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +10 -9
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +11 -10
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +17 -16
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDates.js +20 -19
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDays.js +11 -10
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +12 -15
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -13
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -15
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +11 -10
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +8 -13
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +35 -35
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +18 -13
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +25 -24
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +8 -11
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -12
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +9 -12
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +9 -12
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -13
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +12 -11
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +19 -16
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/index.js +30 -25
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -5
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +8 -7
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +7 -6
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/locale/en-US.js +50 -37
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/noonDateLib.js +101 -106
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useMulti.js +20 -21
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useRange.js +29 -23
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useSingle.js +16 -15
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useAnimation.js +50 -56
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useCalendar.js +71 -76
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useDayPicker.js +11 -12
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useFocus.js +23 -23
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useSelection.js +16 -19
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/addToRange.js +60 -32
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +24 -24
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +22 -26
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +13 -15
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +29 -28
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -9
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +9 -8
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/typeguards.js +15 -19
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js +1511 -2084
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js.map +1 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1716 -2996
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/react.js +125 -550
- package/dist/src/components/ui/chart/chart.d.ts +8 -1
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +92 -26
- package/dist/src/components/ui/funnel-chart/index.d.ts +1 -1
- package/dist/src/components/ui/input-num-picker/index.d.ts +1 -0
- package/dist/src/components/ui/input-num-picker/input-num-picker.d.ts +14 -0
- package/dist/src/components/ui/input-select/input-select.d.ts +34 -2
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +42 -9
- package/dist/src/index.d.ts +1 -0
- package/dist/ui-react.css +2 -1
- package/package.json +6 -6
- package/dist/index.js.map +0 -1
- package/dist/react.js.map +0 -1
|
@@ -1,272 +1,226 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
2
|
+
import { useDocDir as t } from "../../../lib/use-doc-dir.js";
|
|
3
|
+
import { Button as n } from "../button/button.js";
|
|
4
|
+
import { DialogClose as r, DialogContent as i, DialogDescription as a, DialogRoot as o, DialogTitle as s } from "../dialog/dialog.js";
|
|
5
|
+
import { DialogFooterCarousel as c } from "../dialog-footer-carousel/dialog-footer-carousel.js";
|
|
6
|
+
import l from "../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js";
|
|
7
|
+
import * as u from "react";
|
|
8
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/ui/dialog-welcome/dialog-welcome.tsx
|
|
10
|
+
function m({ image: t, title: n, description: r, active: i, withBottomPadding: o = !0 }) {
|
|
11
|
+
return /* @__PURE__ */ p("div", {
|
|
12
|
+
className: e("flex w-full flex-col items-center gap-3 pt-4", o && "pb-4"),
|
|
13
|
+
children: [/* @__PURE__ */ f("div", {
|
|
14
|
+
className: "w-full overflow-hidden rounded-lg px-4",
|
|
15
|
+
children: /* @__PURE__ */ f("div", {
|
|
16
|
+
className: "flex h-[272px] w-full items-center justify-center rounded bg-[var(--ui-background-surface-active)]",
|
|
17
|
+
children: t
|
|
18
|
+
})
|
|
19
|
+
}), /* @__PURE__ */ p("div", {
|
|
20
|
+
className: "flex w-full flex-col items-center gap-1 px-4 text-center",
|
|
21
|
+
children: [i ? /* @__PURE__ */ f(s, {
|
|
22
|
+
className: "w-full flex-none text-center",
|
|
23
|
+
children: n
|
|
24
|
+
}) : /* @__PURE__ */ f("p", {
|
|
25
|
+
className: "w-full text-2xl font-normal leading-8 text-foreground",
|
|
26
|
+
children: n
|
|
27
|
+
}), i ? /* @__PURE__ */ f(a, {
|
|
28
|
+
className: "w-full flex-none text-center text-sm leading-6 text-foreground",
|
|
29
|
+
children: r
|
|
30
|
+
}) : /* @__PURE__ */ f("p", {
|
|
31
|
+
className: "w-full text-sm leading-6 text-foreground",
|
|
32
|
+
children: r
|
|
33
|
+
})]
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
var h = [
|
|
38
|
+
{
|
|
39
|
+
title: "Title",
|
|
40
|
+
description: "Feature description."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: "Title",
|
|
44
|
+
description: "Feature description."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title: "Title",
|
|
48
|
+
description: "Feature description."
|
|
49
|
+
}
|
|
37
50
|
];
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
51
|
+
function g({ slideCount: e, selectedIndexProp: n, onSelectedIndexChange: r }) {
|
|
52
|
+
let i = t(), a = n !== void 0, o = Math.min(Math.max(n ?? 0, 0), Math.max(e - 1, 0)), [s, c] = l({
|
|
53
|
+
loop: !1,
|
|
54
|
+
direction: i,
|
|
55
|
+
startIndex: o
|
|
56
|
+
}), [d, f] = u.useState(0), p = Math.min(Math.max(n ?? d, 0), Math.max(e - 1, 0)), m = u.useRef(r);
|
|
57
|
+
u.useEffect(() => {
|
|
58
|
+
m.current = r;
|
|
59
|
+
}, [r]);
|
|
60
|
+
let h = u.useRef(a);
|
|
61
|
+
h.current = a;
|
|
62
|
+
let g = u.useRef(p);
|
|
63
|
+
g.current = p, u.useEffect(() => {
|
|
64
|
+
if (!c) return;
|
|
65
|
+
let e = () => {
|
|
66
|
+
let e = c.selectedScrollSnap();
|
|
67
|
+
if (h.current) {
|
|
68
|
+
if (!m.current) {
|
|
69
|
+
e !== g.current && c.scrollTo(g.current, !0);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
e !== g.current && m.current(e);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
f(e), m.current?.(e);
|
|
76
|
+
};
|
|
77
|
+
return e(), c.on("select", e), c.on("reInit", e), () => {
|
|
78
|
+
c.off("select", e), c.off("reInit", e);
|
|
79
|
+
};
|
|
80
|
+
}, [c]), u.useEffect(() => {
|
|
81
|
+
n === void 0 || !c || c.selectedScrollSnap() !== p && c.scrollTo(p, !0);
|
|
82
|
+
}, [
|
|
83
|
+
c,
|
|
84
|
+
n,
|
|
85
|
+
p
|
|
86
|
+
]);
|
|
87
|
+
let _ = u.useRef(!0);
|
|
88
|
+
return u.useEffect(() => {
|
|
89
|
+
if (c) {
|
|
90
|
+
if (_.current) {
|
|
91
|
+
_.current = !1;
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
c.reInit({ direction: i });
|
|
95
|
+
}
|
|
96
|
+
}, [c, i]), {
|
|
97
|
+
emblaRef: s,
|
|
98
|
+
selectedIndex: p,
|
|
99
|
+
handleSelectIndex: u.useCallback((e) => {
|
|
100
|
+
a ? r?.(e) : c?.scrollTo(e);
|
|
101
|
+
}, [
|
|
102
|
+
a,
|
|
103
|
+
c,
|
|
104
|
+
r
|
|
105
|
+
]),
|
|
106
|
+
handleBack: u.useCallback(() => {
|
|
107
|
+
a ? r?.(Math.max(p - 1, 0)) : c?.scrollPrev();
|
|
108
|
+
}, [
|
|
109
|
+
a,
|
|
110
|
+
c,
|
|
111
|
+
r,
|
|
112
|
+
p
|
|
113
|
+
]),
|
|
114
|
+
handleNext: u.useCallback(() => {
|
|
115
|
+
a ? r?.(Math.min(p + 1, e - 1)) : c?.scrollNext();
|
|
116
|
+
}, [
|
|
117
|
+
a,
|
|
118
|
+
c,
|
|
119
|
+
r,
|
|
120
|
+
p,
|
|
121
|
+
e
|
|
122
|
+
]),
|
|
123
|
+
footerVariant: p === e - 1 ? "end" : p === 0 ? "start" : "middle"
|
|
124
|
+
};
|
|
109
125
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
n
|
|
142
|
-
)) }) }),
|
|
143
|
-
/* @__PURE__ */ e(
|
|
144
|
-
Q,
|
|
145
|
-
{
|
|
146
|
-
variant: a,
|
|
147
|
-
slideCount: s.length,
|
|
148
|
-
selectedIndex: l,
|
|
149
|
-
onSelectIndex: i,
|
|
150
|
-
onBack: d,
|
|
151
|
-
onNext: p,
|
|
152
|
-
onPrimaryAction: t,
|
|
153
|
-
backLabel: v,
|
|
154
|
-
nextLabel: N,
|
|
155
|
-
primaryLabel: o,
|
|
156
|
-
goToSlideLabel: f
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
] });
|
|
126
|
+
function _({ slides: e, selectedIndex: t, emblaRef: n, footerVariant: r, onSelectIndex: i, onBack: a, onNext: o, onPrimaryAction: s, backLabel: l, nextLabel: u, primaryLabel: h, goToSlideLabel: g }) {
|
|
127
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
128
|
+
ref: n,
|
|
129
|
+
className: "w-full overflow-hidden",
|
|
130
|
+
children: /* @__PURE__ */ f("div", {
|
|
131
|
+
className: "flex",
|
|
132
|
+
children: e.map((e, n) => /* @__PURE__ */ f("div", {
|
|
133
|
+
className: "min-w-0 shrink-0 grow-0 basis-full",
|
|
134
|
+
"aria-hidden": n !== t || void 0,
|
|
135
|
+
inert: n !== t,
|
|
136
|
+
children: /* @__PURE__ */ f(m, {
|
|
137
|
+
image: e.image,
|
|
138
|
+
title: e.title,
|
|
139
|
+
description: e.description,
|
|
140
|
+
active: n === t
|
|
141
|
+
})
|
|
142
|
+
}, n))
|
|
143
|
+
})
|
|
144
|
+
}), /* @__PURE__ */ f(c, {
|
|
145
|
+
variant: r,
|
|
146
|
+
slideCount: e.length,
|
|
147
|
+
selectedIndex: t,
|
|
148
|
+
onSelectIndex: i,
|
|
149
|
+
onBack: a,
|
|
150
|
+
onNext: o,
|
|
151
|
+
onPrimaryAction: s,
|
|
152
|
+
backLabel: l,
|
|
153
|
+
nextLabel: u,
|
|
154
|
+
primaryLabel: h,
|
|
155
|
+
goToSlideLabel: g
|
|
156
|
+
})] });
|
|
160
157
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
J,
|
|
185
|
-
{
|
|
186
|
-
onClick: p,
|
|
187
|
-
render: /* @__PURE__ */ e(M, { variant: "ghost", children: d })
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] })
|
|
191
|
-
] });
|
|
158
|
+
function v({ image: e, title: t, description: i, primaryLabel: a, onPrimaryAction: o, closeLabel: s, onCloseAction: c }) {
|
|
159
|
+
return /* @__PURE__ */ p("div", {
|
|
160
|
+
className: "flex w-full flex-col items-center gap-3 pb-4",
|
|
161
|
+
children: [/* @__PURE__ */ f(m, {
|
|
162
|
+
image: e,
|
|
163
|
+
title: t,
|
|
164
|
+
description: i,
|
|
165
|
+
active: !0,
|
|
166
|
+
withBottomPadding: !1
|
|
167
|
+
}), /* @__PURE__ */ p("div", {
|
|
168
|
+
className: "flex w-full flex-col items-center gap-2 px-4",
|
|
169
|
+
children: [/* @__PURE__ */ f(n, {
|
|
170
|
+
onClick: o,
|
|
171
|
+
children: a ?? "Call to action"
|
|
172
|
+
}), /* @__PURE__ */ f(r, {
|
|
173
|
+
onClick: c,
|
|
174
|
+
render: /* @__PURE__ */ f(n, {
|
|
175
|
+
variant: "ghost",
|
|
176
|
+
children: s
|
|
177
|
+
})
|
|
178
|
+
})]
|
|
179
|
+
})]
|
|
180
|
+
});
|
|
192
181
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
{
|
|
239
|
-
slides: x,
|
|
240
|
-
selectedIndex: W,
|
|
241
|
-
emblaRef: b,
|
|
242
|
-
footerVariant: z,
|
|
243
|
-
onSelectIndex: j,
|
|
244
|
-
onBack: V,
|
|
245
|
-
onNext: y,
|
|
246
|
-
onPrimaryAction: n,
|
|
247
|
-
backLabel: i,
|
|
248
|
-
nextLabel: d,
|
|
249
|
-
primaryLabel: m,
|
|
250
|
-
goToSlideLabel: p
|
|
251
|
-
}
|
|
252
|
-
) : /* @__PURE__ */ e(
|
|
253
|
-
Z,
|
|
254
|
-
{
|
|
255
|
-
image: t,
|
|
256
|
-
title: v,
|
|
257
|
-
description: N,
|
|
258
|
-
primaryLabel: m,
|
|
259
|
-
onPrimaryAction: n,
|
|
260
|
-
closeLabel: o,
|
|
261
|
-
onCloseAction: f
|
|
262
|
-
}
|
|
263
|
-
)
|
|
264
|
-
}
|
|
265
|
-
) });
|
|
266
|
-
}
|
|
267
|
-
);
|
|
268
|
-
$.displayName = "DialogWelcome";
|
|
269
|
-
export {
|
|
270
|
-
$ as DialogWelcome
|
|
271
|
-
};
|
|
272
|
-
//# sourceMappingURL=dialog-welcome.js.map
|
|
182
|
+
var y = u.forwardRef(({ variant: e = "carousel", slides: t = h, selectedIndex: n, onSelectedIndexChange: r, backLabel: a, nextLabel: s, goToSlideLabel: c, image: l, title: u = "Title", description: d = "Feature description.", closeLabel: p = "Close", onCloseAction: m, primaryLabel: y, onPrimaryAction: b, portal: x, portalContainer: S, keepMounted: C, className: w, ...T }, E) => {
|
|
183
|
+
let D = e === "carousel", O = t.length > 0 ? t : h, k = O.length, { emblaRef: A, selectedIndex: j, handleSelectIndex: M, handleBack: N, handleNext: P, footerVariant: F } = g({
|
|
184
|
+
slideCount: k,
|
|
185
|
+
selectedIndexProp: n,
|
|
186
|
+
onSelectedIndexChange: r
|
|
187
|
+
});
|
|
188
|
+
return /* @__PURE__ */ f(o, {
|
|
189
|
+
...T,
|
|
190
|
+
children: /* @__PURE__ */ f(i, {
|
|
191
|
+
ref: E,
|
|
192
|
+
size: "sm",
|
|
193
|
+
portal: x,
|
|
194
|
+
portalContainer: S,
|
|
195
|
+
keepMounted: C,
|
|
196
|
+
className: w,
|
|
197
|
+
children: D ? /* @__PURE__ */ f(_, {
|
|
198
|
+
slides: O,
|
|
199
|
+
selectedIndex: j,
|
|
200
|
+
emblaRef: A,
|
|
201
|
+
footerVariant: F,
|
|
202
|
+
onSelectIndex: M,
|
|
203
|
+
onBack: N,
|
|
204
|
+
onNext: P,
|
|
205
|
+
onPrimaryAction: b,
|
|
206
|
+
backLabel: a,
|
|
207
|
+
nextLabel: s,
|
|
208
|
+
primaryLabel: y,
|
|
209
|
+
goToSlideLabel: c
|
|
210
|
+
}) : /* @__PURE__ */ f(v, {
|
|
211
|
+
image: l,
|
|
212
|
+
title: u,
|
|
213
|
+
description: d,
|
|
214
|
+
primaryLabel: y,
|
|
215
|
+
onPrimaryAction: b,
|
|
216
|
+
closeLabel: p,
|
|
217
|
+
onCloseAction: m
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
y.displayName = "DialogWelcome";
|
|
223
|
+
//#endregion
|
|
224
|
+
export { y as DialogWelcome };
|
|
225
|
+
|
|
226
|
+
//# sourceMappingURL=dialog-welcome.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-welcome.js","sources":["../../../../src/components/ui/dialog-welcome/dialog-welcome.tsx"],"sourcesContent":["import * as React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\n\nimport { cn } from '@/lib/utils';\nimport { useDocDir } from '@/lib/use-doc-dir';\n\nimport { Button } from '../button';\nimport {\n DialogClose,\n DialogContent,\n type DialogContentProps,\n DialogDescription,\n DialogRoot,\n DialogTitle,\n} from '../dialog';\nimport {\n DialogFooterCarousel,\n type DialogFooterCarouselVariant,\n} from '../dialog-footer-carousel';\n\n// Ports Figma's \"DialogWelcome\" component (node 7162:26459, variants\n// carousel/single): a `Container` (reuses the generic `DialogContent` popup\n// chrome — bg/radius/shadow already match the `--ui-dialog-container-*` tier)\n// around a `DialogBody` (Image + Title + Description) and, for\n// `variant=\"carousel\"`, a `DialogFooterCarousel` driven by a real Embla\n// instance built from scratch here — no import from any existing carousel\n// implementation.\n\nexport interface DialogWelcomeSlide {\n /** Illustration/media for the slide. Falls back to a placeholder surface when omitted. */\n image?: React.ReactNode;\n title: string;\n description: string;\n}\n\nexport type DialogWelcomeVariant = 'carousel' | 'single';\n\ninterface DialogWelcomeSlideBodyProps {\n image?: React.ReactNode;\n title: string;\n description: string;\n /** Whether this slide currently owns the dialog's accessible name/description. */\n active: boolean;\n /**\n * Whether this renders the DialogBody's own bottom padding (Figma's\n * `py-16` applied around the whole body). `false` when more DialogBody\n * content (e.g. the `single` variant's buttons) follows, so the caller can\n * apply the correct `gap-12` between them instead of stacking padding on\n * top of a gap.\n */\n withBottomPadding?: boolean;\n}\n\nfunction DialogWelcomeSlideBody({\n image,\n title,\n description,\n active,\n withBottomPadding = true,\n}: DialogWelcomeSlideBodyProps) {\n return (\n <div\n className={cn(\n 'flex w-full flex-col items-center gap-3 pt-4',\n withBottomPadding && 'pb-4'\n )}\n >\n <div className=\"w-full overflow-hidden rounded-lg px-4\">\n <div className=\"flex h-[272px] w-full items-center justify-center rounded bg-[var(--ui-background-surface-active)]\">\n {image}\n </div>\n </div>\n <div className=\"flex w-full flex-col items-center gap-1 px-4 text-center\">\n {active ? (\n <DialogTitle className=\"w-full flex-none text-center\">\n {title}\n </DialogTitle>\n ) : (\n <p className=\"w-full text-2xl font-normal leading-8 text-foreground\">\n {title}\n </p>\n )}\n {active ? (\n <DialogDescription className=\"w-full flex-none text-center text-sm leading-6 text-foreground\">\n {description}\n </DialogDescription>\n ) : (\n <p className=\"w-full text-sm leading-6 text-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n}\n\nconst DEFAULT_SLIDES: DialogWelcomeSlide[] = [\n { title: 'Title', description: 'Feature description.' },\n { title: 'Title', description: 'Feature description.' },\n { title: 'Title', description: 'Feature description.' },\n];\n\ninterface UseDialogWelcomeCarouselOptions {\n slideCount: number;\n selectedIndexProp?: number;\n onSelectedIndexChange?: (index: number) => void;\n}\n\nfunction useDialogWelcomeCarousel({\n slideCount,\n selectedIndexProp,\n onSelectedIndexChange,\n}: UseDialogWelcomeCarouselOptions) {\n const dir = useDocDir();\n const isControlled = selectedIndexProp !== undefined;\n // Mount Embla already on the (clamped) controlled slide instead of its\n // default 0 — otherwise the initial `onSelect()` below reports a phantom\n // \"slide 0\" before the resync effect corrects it, which a consumer wiring\n // analytics off `onSelectedIndexChange` would log as a real event.\n const initialIndex = Math.min(\n Math.max(selectedIndexProp ?? 0, 0),\n Math.max(slideCount - 1, 0)\n );\n const [emblaRef, emblaApi] = useEmblaCarousel({\n loop: false,\n direction: dir,\n startIndex: initialIndex,\n });\n const [internalIndex, setInternalIndex] = React.useState(0);\n // Two-sided: an out-of-range (e.g. negative) `selectedIndex` must still\n // resolve to a real slide, or no slide would carry the dialog's\n // Title/Description (see dialog-welcome/accessibility.md's one-active-slide\n // invariant).\n const selectedIndex = Math.min(\n Math.max(selectedIndexProp ?? internalIndex, 0),\n Math.max(slideCount - 1, 0)\n );\n\n // `onSelectedIndexChange` is read from a ref, not a `useEffect` dependency,\n // so an inline (non-memoized) consumer callback can't force this effect to\n // re-subscribe — which would call `onSelect()` again on the same slide and,\n // if the consumer's callback triggers a re-render, loop indefinitely.\n const onSelectedIndexChangeRef = React.useRef(onSelectedIndexChange);\n React.useEffect(() => {\n onSelectedIndexChangeRef.current = onSelectedIndexChange;\n }, [onSelectedIndexChange]);\n\n // Read fresh on every Embla event without forcing the subscription effect\n // below to resubscribe (same reasoning as `onSelectedIndexChangeRef`).\n const isControlledRef = React.useRef(isControlled);\n isControlledRef.current = isControlled;\n const selectedIndexRef = React.useRef(selectedIndex);\n selectedIndexRef.current = selectedIndex;\n\n React.useEffect(() => {\n if (!emblaApi) return;\n const onSelect = () => {\n const index = emblaApi.selectedScrollSnap();\n if (isControlledRef.current) {\n if (!onSelectedIndexChangeRef.current) {\n // Embla is draggable regardless of controlled state, so a swipe can\n // still move it physically even though clicks are correctly no-ops\n // in this configuration (controlled with no way to move the prop\n // forward). Snap back instead of leaving the visible slide diverged\n // from the one carrying the dialog's accessible name.\n if (index !== selectedIndexRef.current) {\n emblaApi.scrollTo(selectedIndexRef.current, true);\n }\n return;\n }\n // A click/dot handler reports the new index directly, then the resync\n // effect below drives Embla to match via `scrollTo`, which re-emits\n // this same `select` event. Only forward it when it disagrees with\n // the last known controlled index, or a single navigation double-\n // fires the consumer's `onSelectedIndexChange` (e.g. analytics).\n if (index !== selectedIndexRef.current) {\n onSelectedIndexChangeRef.current(index);\n }\n return;\n }\n setInternalIndex(index);\n onSelectedIndexChangeRef.current?.(index);\n };\n onSelect();\n emblaApi.on('select', onSelect);\n emblaApi.on('reInit', onSelect);\n return () => {\n emblaApi.off('select', onSelect);\n emblaApi.off('reInit', onSelect);\n };\n }, [emblaApi]);\n\n React.useEffect(() => {\n if (selectedIndexProp === undefined || !emblaApi) return;\n if (emblaApi.selectedScrollSnap() !== selectedIndex) {\n // `jump: true` — a controlled `selectedIndex` change snaps instantly\n // rather than animating. Without it, the initial sync on mount races\n // the smooth-scroll animation, so an immediate screenshot (e.g. VR)\n // can catch a mid-scroll frame instead of the settled slide.\n emblaApi.scrollTo(selectedIndex, true);\n }\n }, [emblaApi, selectedIndexProp, selectedIndex]);\n\n // Skip the first time this effect sees a non-null `emblaApi` — Embla was\n // already constructed with that render's `dir` (see `useEmblaCarousel`\n // above), so re-running `reInit` immediately is redundant. Worse, Embla's\n // `reInit` synchronously re-emits `'reInit'` even when nothing changed,\n // which would re-invoke the `onSelect` listener registered by the mount\n // effect above and double-fire `onSelectedIndexChange` on mount. Only a\n // genuine post-mount `dir` change (e.g. `useDocDir`'s SSR-safe resync, or\n // the document's `dir` actually flipping at runtime) should call `reInit`.\n const skipNextReInitRef = React.useRef(true);\n React.useEffect(() => {\n if (!emblaApi) return;\n if (skipNextReInitRef.current) {\n skipNextReInitRef.current = false;\n return;\n }\n emblaApi.reInit({ direction: dir });\n }, [emblaApi, dir]);\n\n // Controlled mode never drives Embla directly from Back/Next/dot clicks —\n // only the resync effect above (keyed to `selectedIndexProp`) does. This\n // keeps Embla's physical position from drifting away from the prop when a\n // consumer passes `selectedIndex` without wiring `onSelectedIndexChange`.\n const handleSelectIndex = React.useCallback(\n (index: number) => {\n if (isControlled) {\n onSelectedIndexChange?.(index);\n } else {\n emblaApi?.scrollTo(index);\n }\n },\n [isControlled, emblaApi, onSelectedIndexChange]\n );\n const handleBack = React.useCallback(() => {\n if (isControlled) {\n onSelectedIndexChange?.(Math.max(selectedIndex - 1, 0));\n } else {\n emblaApi?.scrollPrev();\n }\n }, [isControlled, emblaApi, onSelectedIndexChange, selectedIndex]);\n const handleNext = React.useCallback(() => {\n if (isControlled) {\n onSelectedIndexChange?.(Math.min(selectedIndex + 1, slideCount - 1));\n } else {\n emblaApi?.scrollNext();\n }\n }, [isControlled, emblaApi, onSelectedIndexChange, selectedIndex, slideCount]);\n\n // Check `slideCount - 1` first: for a single-slide carousel, index 0 is\n // both the first AND last slide, and 'end' (unlocking the primary action)\n // must win.\n const footerVariant: DialogFooterCarouselVariant =\n selectedIndex === slideCount - 1\n ? 'end'\n : selectedIndex === 0\n ? 'start'\n : 'middle';\n\n return {\n emblaRef,\n selectedIndex,\n handleSelectIndex,\n handleBack,\n handleNext,\n footerVariant,\n };\n}\n\ninterface ContainerCarouselProps {\n slides: DialogWelcomeSlide[];\n selectedIndex: number;\n emblaRef: ReturnType<typeof useEmblaCarousel>[0];\n footerVariant: DialogFooterCarouselVariant;\n onSelectIndex: (index: number) => void;\n onBack: () => void;\n onNext: () => void;\n onPrimaryAction?: () => void;\n backLabel?: string;\n nextLabel?: string;\n primaryLabel?: string;\n goToSlideLabel?: (index: number, count: number) => string;\n}\n\nfunction ContainerCarousel({\n slides,\n selectedIndex,\n emblaRef,\n footerVariant,\n onSelectIndex,\n onBack,\n onNext,\n onPrimaryAction,\n backLabel,\n nextLabel,\n primaryLabel,\n goToSlideLabel,\n}: ContainerCarouselProps) {\n return (\n <>\n <div ref={emblaRef} className=\"w-full overflow-hidden\">\n <div className=\"flex\">\n {slides.map((slide, index) => (\n <div\n key={index}\n className=\"min-w-0 shrink-0 grow-0 basis-full\"\n aria-hidden={index !== selectedIndex || undefined}\n inert={index !== selectedIndex}\n >\n <DialogWelcomeSlideBody\n image={slide.image}\n title={slide.title}\n description={slide.description}\n active={index === selectedIndex}\n />\n </div>\n ))}\n </div>\n </div>\n <DialogFooterCarousel\n variant={footerVariant}\n slideCount={slides.length}\n selectedIndex={selectedIndex}\n onSelectIndex={onSelectIndex}\n onBack={onBack}\n onNext={onNext}\n onPrimaryAction={onPrimaryAction}\n backLabel={backLabel}\n nextLabel={nextLabel}\n primaryLabel={primaryLabel}\n goToSlideLabel={goToSlideLabel}\n />\n </>\n );\n}\n\ninterface ContainerNoSlidesProps {\n image?: React.ReactNode;\n title: string;\n description: string;\n primaryLabel?: string;\n onPrimaryAction?: () => void;\n closeLabel: string;\n onCloseAction?: () => void;\n}\n\nfunction ContainerNoSlides({\n image,\n title,\n description,\n primaryLabel,\n onPrimaryAction,\n closeLabel,\n onCloseAction,\n}: ContainerNoSlidesProps) {\n return (\n <div className=\"flex w-full flex-col items-center gap-3 pb-4\">\n <DialogWelcomeSlideBody\n image={image}\n title={title}\n description={description}\n active\n withBottomPadding={false}\n />\n <div className=\"flex w-full flex-col items-center gap-2 px-4\">\n <Button onClick={onPrimaryAction}>\n {primaryLabel ?? 'Call to action'}\n </Button>\n <DialogClose\n onClick={onCloseAction}\n render={<Button variant=\"ghost\">{closeLabel}</Button>}\n />\n </div>\n </div>\n );\n}\n\ntype DialogRootProps = React.ComponentPropsWithoutRef<typeof DialogRoot>;\n\nexport interface DialogWelcomeProps extends Omit<DialogRootProps, 'children'> {\n /** Selects the Figma-defined layout. Defaults to `'carousel'`. */\n variant?: DialogWelcomeVariant;\n /** Slides shown one at a time (`variant=\"carousel\"`). Defaults to a 3-slide placeholder. */\n slides?: DialogWelcomeSlide[];\n /** Controls the active slide (`variant=\"carousel\"`). Uncontrolled when omitted. */\n selectedIndex?: number;\n /** Fires whenever the active slide changes (`variant=\"carousel\"`). */\n onSelectedIndexChange?: (index: number) => void;\n /** `Back` button label (`variant=\"carousel\"`). Defaults to `'Back'`. */\n backLabel?: string;\n /** `Next` button label (`variant=\"carousel\"`). Defaults to `'Next'`. */\n nextLabel?: string;\n /** Builds each carousel dot's accessible name (`variant=\"carousel\"`). */\n goToSlideLabel?: (index: number, count: number) => string;\n /** Illustration/media (`variant=\"single\"`). */\n image?: React.ReactNode;\n /** Title (`variant=\"single\"`). Defaults to `'Title'`. */\n title?: string;\n /** Description (`variant=\"single\"`). Defaults to `'Feature description.'`. */\n description?: string;\n /** `Close` link label (`variant=\"single\"`). Defaults to `'Close'`. */\n closeLabel?: string;\n /** Fires when `Close` (`variant=\"single\"`) is activated, before the dialog closes. */\n onCloseAction?: () => void;\n /**\n * Call-to-action button label — the last carousel slide's button\n * (`variant=\"carousel\"`) or the single body's primary button\n * (`variant=\"single\"`). Defaults to `'Call to action'`.\n */\n primaryLabel?: string;\n /** Fires when the call-to-action button is activated. */\n onPrimaryAction?: () => void;\n /** Render inside a portal (forwarded to `DialogContent`). Defaults to `true`. */\n portal?: boolean;\n /** Portal container (forwarded to `DialogContent`). */\n portalContainer?: DialogContentProps['portalContainer'];\n /** Keep the content mounted while closed (forwarded to `DialogContent`). */\n keepMounted?: DialogContentProps['keepMounted'];\n /** Extra classes merged onto the popup container. */\n className?: string;\n}\n\nconst DialogWelcome = React.forwardRef<HTMLDivElement, DialogWelcomeProps>(\n (\n {\n variant = 'carousel',\n slides = DEFAULT_SLIDES,\n selectedIndex: selectedIndexProp,\n onSelectedIndexChange,\n backLabel,\n nextLabel,\n goToSlideLabel,\n image,\n title = 'Title',\n description = 'Feature description.',\n closeLabel = 'Close',\n onCloseAction,\n primaryLabel,\n onPrimaryAction,\n portal,\n portalContainer,\n keepMounted,\n className,\n ...rootProps\n },\n ref\n ) => {\n const isCarousel = variant === 'carousel';\n // An explicit `slides={[]}` would otherwise mount no Title/Description\n // and suppress the footer, leaving the dialog with no accessible name —\n // fall back to the default placeholder slides instead.\n const resolvedSlides = slides.length > 0 ? slides : DEFAULT_SLIDES;\n const slideCount = resolvedSlides.length;\n\n const {\n emblaRef,\n selectedIndex,\n handleSelectIndex,\n handleBack,\n handleNext,\n footerVariant,\n } = useDialogWelcomeCarousel({\n slideCount,\n selectedIndexProp,\n onSelectedIndexChange,\n });\n\n return (\n <DialogRoot {...rootProps}>\n <DialogContent\n ref={ref}\n size=\"sm\"\n portal={portal}\n portalContainer={portalContainer}\n keepMounted={keepMounted}\n className={className}\n >\n {isCarousel ? (\n <ContainerCarousel\n slides={resolvedSlides}\n selectedIndex={selectedIndex}\n emblaRef={emblaRef}\n footerVariant={footerVariant}\n onSelectIndex={handleSelectIndex}\n onBack={handleBack}\n onNext={handleNext}\n onPrimaryAction={onPrimaryAction}\n backLabel={backLabel}\n nextLabel={nextLabel}\n primaryLabel={primaryLabel}\n goToSlideLabel={goToSlideLabel}\n />\n ) : (\n <ContainerNoSlides\n image={image}\n title={title}\n description={description}\n primaryLabel={primaryLabel}\n onPrimaryAction={onPrimaryAction}\n closeLabel={closeLabel}\n onCloseAction={onCloseAction}\n />\n )}\n </DialogContent>\n </DialogRoot>\n );\n }\n);\nDialogWelcome.displayName = 'DialogWelcome';\n\nexport { DialogWelcome };\n"],"names":["DialogWelcomeSlideBody","image","title","description","active","withBottomPadding","jsxs","cn","jsx","DialogTitle","DialogDescription","DEFAULT_SLIDES","useDialogWelcomeCarousel","slideCount","selectedIndexProp","onSelectedIndexChange","dir","useDocDir","isControlled","initialIndex","emblaRef","emblaApi","useEmblaCarousel","internalIndex","setInternalIndex","React","selectedIndex","onSelectedIndexChangeRef","isControlledRef","selectedIndexRef","onSelect","index","_a","skipNextReInitRef","handleSelectIndex","handleBack","handleNext","footerVariant","ContainerCarousel","slides","onSelectIndex","onBack","onNext","onPrimaryAction","backLabel","nextLabel","primaryLabel","goToSlideLabel","Fragment","slide","DialogFooterCarousel","ContainerNoSlides","closeLabel","onCloseAction","Button","DialogClose","DialogWelcome","variant","portal","portalContainer","keepMounted","className","rootProps","ref","isCarousel","resolvedSlides","DialogRoot","DialogContent"],"mappings":";;;;;;;;AAqDA,SAASA,EAAuB;AAAA,EAC9B,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,QAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAAgC;AAC9B,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAF,KAAqB;AAAA,MAAA;AAAA,MAGvB,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAU,0CACb,UAAA,gBAAAA,EAAC,SAAI,WAAU,sGACZ,aACH,EAAA,CACF;AAAA,QACA,gBAAAF,EAAC,OAAA,EAAI,WAAU,4DACZ,UAAA;AAAA,UAAAF,IACC,gBAAAI,EAACC,GAAA,EAAY,WAAU,gCACpB,UAAAP,EAAA,CACH,IAEA,gBAAAM,EAAC,KAAA,EAAE,WAAU,yDACV,UAAAN,GACH;AAAA,UAEDE,IACC,gBAAAI,EAACE,GAAA,EAAkB,WAAU,kEAC1B,UAAAP,EAAA,CACH,IAEA,gBAAAK,EAAC,KAAA,EAAE,WAAU,4CACV,UAAAL,EAAA,CACH;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,I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,eAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA,GAGN;AAAA,EAEJ;AACF;AACAG,EAAc,cAAc;"}
|
|
1
|
+
{"version":3,"file":"dialog-welcome.js","names":[],"sources":["../../../../src/components/ui/dialog-welcome/dialog-welcome.tsx"],"sourcesContent":["import * as React from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\n\nimport { cn } from '@/lib/utils';\nimport { useDocDir } from '@/lib/use-doc-dir';\n\nimport { Button } from '../button';\nimport {\n DialogClose,\n DialogContent,\n type DialogContentProps,\n DialogDescription,\n DialogRoot,\n DialogTitle,\n} from '../dialog';\nimport {\n DialogFooterCarousel,\n type DialogFooterCarouselVariant,\n} from '../dialog-footer-carousel';\n\n// Ports Figma's \"DialogWelcome\" component (node 7162:26459, variants\n// carousel/single): a `Container` (reuses the generic `DialogContent` popup\n// chrome — bg/radius/shadow already match the `--ui-dialog-container-*` tier)\n// around a `DialogBody` (Image + Title + Description) and, for\n// `variant=\"carousel\"`, a `DialogFooterCarousel` driven by a real Embla\n// instance built from scratch here — no import from any existing carousel\n// implementation.\n\nexport interface DialogWelcomeSlide {\n /** Illustration/media for the slide. Falls back to a placeholder surface when omitted. */\n image?: React.ReactNode;\n title: string;\n description: string;\n}\n\nexport type DialogWelcomeVariant = 'carousel' | 'single';\n\ninterface DialogWelcomeSlideBodyProps {\n image?: React.ReactNode;\n title: string;\n description: string;\n /** Whether this slide currently owns the dialog's accessible name/description. */\n active: boolean;\n /**\n * Whether this renders the DialogBody's own bottom padding (Figma's\n * `py-16` applied around the whole body). `false` when more DialogBody\n * content (e.g. the `single` variant's buttons) follows, so the caller can\n * apply the correct `gap-12` between them instead of stacking padding on\n * top of a gap.\n */\n withBottomPadding?: boolean;\n}\n\nfunction DialogWelcomeSlideBody({\n image,\n title,\n description,\n active,\n withBottomPadding = true,\n}: DialogWelcomeSlideBodyProps) {\n return (\n <div\n className={cn(\n 'flex w-full flex-col items-center gap-3 pt-4',\n withBottomPadding && 'pb-4'\n )}\n >\n <div className=\"w-full overflow-hidden rounded-lg px-4\">\n <div className=\"flex h-[272px] w-full items-center justify-center rounded bg-[var(--ui-background-surface-active)]\">\n {image}\n </div>\n </div>\n <div className=\"flex w-full flex-col items-center gap-1 px-4 text-center\">\n {active ? (\n <DialogTitle className=\"w-full flex-none text-center\">\n {title}\n </DialogTitle>\n ) : (\n <p className=\"w-full text-2xl font-normal leading-8 text-foreground\">\n {title}\n </p>\n )}\n {active ? (\n <DialogDescription className=\"w-full flex-none text-center text-sm leading-6 text-foreground\">\n {description}\n </DialogDescription>\n ) : (\n <p className=\"w-full text-sm leading-6 text-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n}\n\nconst DEFAULT_SLIDES: DialogWelcomeSlide[] = [\n { title: 'Title', description: 'Feature description.' },\n { title: 'Title', description: 'Feature description.' },\n { title: 'Title', description: 'Feature description.' },\n];\n\ninterface UseDialogWelcomeCarouselOptions {\n slideCount: number;\n selectedIndexProp?: number;\n onSelectedIndexChange?: (index: number) => void;\n}\n\nfunction useDialogWelcomeCarousel({\n slideCount,\n selectedIndexProp,\n onSelectedIndexChange,\n}: UseDialogWelcomeCarouselOptions) {\n const dir = useDocDir();\n const isControlled = selectedIndexProp !== undefined;\n // Mount Embla already on the (clamped) controlled slide instead of its\n // default 0 — otherwise the initial `onSelect()` below reports a phantom\n // \"slide 0\" before the resync effect corrects it, which a consumer wiring\n // analytics off `onSelectedIndexChange` would log as a real event.\n const initialIndex = Math.min(\n Math.max(selectedIndexProp ?? 0, 0),\n Math.max(slideCount - 1, 0)\n );\n const [emblaRef, emblaApi] = useEmblaCarousel({\n loop: false,\n direction: dir,\n startIndex: initialIndex,\n });\n const [internalIndex, setInternalIndex] = React.useState(0);\n // Two-sided: an out-of-range (e.g. negative) `selectedIndex` must still\n // resolve to a real slide, or no slide would carry the dialog's\n // Title/Description (see dialog-welcome/accessibility.md's one-active-slide\n // invariant).\n const selectedIndex = Math.min(\n Math.max(selectedIndexProp ?? internalIndex, 0),\n Math.max(slideCount - 1, 0)\n );\n\n // `onSelectedIndexChange` is read from a ref, not a `useEffect` dependency,\n // so an inline (non-memoized) consumer callback can't force this effect to\n // re-subscribe — which would call `onSelect()` again on the same slide and,\n // if the consumer's callback triggers a re-render, loop indefinitely.\n const onSelectedIndexChangeRef = React.useRef(onSelectedIndexChange);\n React.useEffect(() => {\n onSelectedIndexChangeRef.current = onSelectedIndexChange;\n }, [onSelectedIndexChange]);\n\n // Read fresh on every Embla event without forcing the subscription effect\n // below to resubscribe (same reasoning as `onSelectedIndexChangeRef`).\n const isControlledRef = React.useRef(isControlled);\n isControlledRef.current = isControlled;\n const selectedIndexRef = React.useRef(selectedIndex);\n selectedIndexRef.current = selectedIndex;\n\n React.useEffect(() => {\n if (!emblaApi) return;\n const onSelect = () => {\n const index = emblaApi.selectedScrollSnap();\n if (isControlledRef.current) {\n if (!onSelectedIndexChangeRef.current) {\n // Embla is draggable regardless of controlled state, so a swipe can\n // still move it physically even though clicks are correctly no-ops\n // in this configuration (controlled with no way to move the prop\n // forward). Snap back instead of leaving the visible slide diverged\n // from the one carrying the dialog's accessible name.\n if (index !== selectedIndexRef.current) {\n emblaApi.scrollTo(selectedIndexRef.current, true);\n }\n return;\n }\n // A click/dot handler reports the new index directly, then the resync\n // effect below drives Embla to match via `scrollTo`, which re-emits\n // this same `select` event. Only forward it when it disagrees with\n // the last known controlled index, or a single navigation double-\n // fires the consumer's `onSelectedIndexChange` (e.g. analytics).\n if (index !== selectedIndexRef.current) {\n onSelectedIndexChangeRef.current(index);\n }\n return;\n }\n setInternalIndex(index);\n onSelectedIndexChangeRef.current?.(index);\n };\n onSelect();\n emblaApi.on('select', onSelect);\n emblaApi.on('reInit', onSelect);\n return () => {\n emblaApi.off('select', onSelect);\n emblaApi.off('reInit', onSelect);\n };\n }, [emblaApi]);\n\n React.useEffect(() => {\n if (selectedIndexProp === undefined || !emblaApi) return;\n if (emblaApi.selectedScrollSnap() !== selectedIndex) {\n // `jump: true` — a controlled `selectedIndex` change snaps instantly\n // rather than animating. Without it, the initial sync on mount races\n // the smooth-scroll animation, so an immediate screenshot (e.g. VR)\n // can catch a mid-scroll frame instead of the settled slide.\n emblaApi.scrollTo(selectedIndex, true);\n }\n }, [emblaApi, selectedIndexProp, selectedIndex]);\n\n // Skip the first time this effect sees a non-null `emblaApi` — Embla was\n // already constructed with that render's `dir` (see `useEmblaCarousel`\n // above), so re-running `reInit` immediately is redundant. Worse, Embla's\n // `reInit` synchronously re-emits `'reInit'` even when nothing changed,\n // which would re-invoke the `onSelect` listener registered by the mount\n // effect above and double-fire `onSelectedIndexChange` on mount. Only a\n // genuine post-mount `dir` change (e.g. `useDocDir`'s SSR-safe resync, or\n // the document's `dir` actually flipping at runtime) should call `reInit`.\n const skipNextReInitRef = React.useRef(true);\n React.useEffect(() => {\n if (!emblaApi) return;\n if (skipNextReInitRef.current) {\n skipNextReInitRef.current = false;\n return;\n }\n emblaApi.reInit({ direction: dir });\n }, [emblaApi, dir]);\n\n // Controlled mode never drives Embla directly from Back/Next/dot clicks —\n // only the resync effect above (keyed to `selectedIndexProp`) does. This\n // keeps Embla's physical position from drifting away from the prop when a\n // consumer passes `selectedIndex` without wiring `onSelectedIndexChange`.\n const handleSelectIndex = React.useCallback(\n (index: number) => {\n if (isControlled) {\n onSelectedIndexChange?.(index);\n } else {\n emblaApi?.scrollTo(index);\n }\n },\n [isControlled, emblaApi, onSelectedIndexChange]\n );\n const handleBack = React.useCallback(() => {\n if (isControlled) {\n onSelectedIndexChange?.(Math.max(selectedIndex - 1, 0));\n } else {\n emblaApi?.scrollPrev();\n }\n }, [isControlled, emblaApi, onSelectedIndexChange, selectedIndex]);\n const handleNext = React.useCallback(() => {\n if (isControlled) {\n onSelectedIndexChange?.(Math.min(selectedIndex + 1, slideCount - 1));\n } else {\n emblaApi?.scrollNext();\n }\n }, [isControlled, emblaApi, onSelectedIndexChange, selectedIndex, slideCount]);\n\n // Check `slideCount - 1` first: for a single-slide carousel, index 0 is\n // both the first AND last slide, and 'end' (unlocking the primary action)\n // must win.\n const footerVariant: DialogFooterCarouselVariant =\n selectedIndex === slideCount - 1\n ? 'end'\n : selectedIndex === 0\n ? 'start'\n : 'middle';\n\n return {\n emblaRef,\n selectedIndex,\n handleSelectIndex,\n handleBack,\n handleNext,\n footerVariant,\n };\n}\n\ninterface ContainerCarouselProps {\n slides: DialogWelcomeSlide[];\n selectedIndex: number;\n emblaRef: ReturnType<typeof useEmblaCarousel>[0];\n footerVariant: DialogFooterCarouselVariant;\n onSelectIndex: (index: number) => void;\n onBack: () => void;\n onNext: () => void;\n onPrimaryAction?: () => void;\n backLabel?: string;\n nextLabel?: string;\n primaryLabel?: string;\n goToSlideLabel?: (index: number, count: number) => string;\n}\n\nfunction ContainerCarousel({\n slides,\n selectedIndex,\n emblaRef,\n footerVariant,\n onSelectIndex,\n onBack,\n onNext,\n onPrimaryAction,\n backLabel,\n nextLabel,\n primaryLabel,\n goToSlideLabel,\n}: ContainerCarouselProps) {\n return (\n <>\n <div ref={emblaRef} className=\"w-full overflow-hidden\">\n <div className=\"flex\">\n {slides.map((slide, index) => (\n <div\n key={index}\n className=\"min-w-0 shrink-0 grow-0 basis-full\"\n aria-hidden={index !== selectedIndex || undefined}\n inert={index !== selectedIndex}\n >\n <DialogWelcomeSlideBody\n image={slide.image}\n title={slide.title}\n description={slide.description}\n active={index === selectedIndex}\n />\n </div>\n ))}\n </div>\n </div>\n <DialogFooterCarousel\n variant={footerVariant}\n slideCount={slides.length}\n selectedIndex={selectedIndex}\n onSelectIndex={onSelectIndex}\n onBack={onBack}\n onNext={onNext}\n onPrimaryAction={onPrimaryAction}\n backLabel={backLabel}\n nextLabel={nextLabel}\n primaryLabel={primaryLabel}\n goToSlideLabel={goToSlideLabel}\n />\n </>\n );\n}\n\ninterface ContainerNoSlidesProps {\n image?: React.ReactNode;\n title: string;\n description: string;\n primaryLabel?: string;\n onPrimaryAction?: () => void;\n closeLabel: string;\n onCloseAction?: () => void;\n}\n\nfunction ContainerNoSlides({\n image,\n title,\n description,\n primaryLabel,\n onPrimaryAction,\n closeLabel,\n onCloseAction,\n}: ContainerNoSlidesProps) {\n return (\n <div className=\"flex w-full flex-col items-center gap-3 pb-4\">\n <DialogWelcomeSlideBody\n image={image}\n title={title}\n description={description}\n active\n withBottomPadding={false}\n />\n <div className=\"flex w-full flex-col items-center gap-2 px-4\">\n <Button onClick={onPrimaryAction}>\n {primaryLabel ?? 'Call to action'}\n </Button>\n <DialogClose\n onClick={onCloseAction}\n render={<Button variant=\"ghost\">{closeLabel}</Button>}\n />\n </div>\n </div>\n );\n}\n\ntype DialogRootProps = React.ComponentPropsWithoutRef<typeof DialogRoot>;\n\nexport interface DialogWelcomeProps extends Omit<DialogRootProps, 'children'> {\n /** Selects the Figma-defined layout. Defaults to `'carousel'`. */\n variant?: DialogWelcomeVariant;\n /** Slides shown one at a time (`variant=\"carousel\"`). Defaults to a 3-slide placeholder. */\n slides?: DialogWelcomeSlide[];\n /** Controls the active slide (`variant=\"carousel\"`). Uncontrolled when omitted. */\n selectedIndex?: number;\n /** Fires whenever the active slide changes (`variant=\"carousel\"`). */\n onSelectedIndexChange?: (index: number) => void;\n /** `Back` button label (`variant=\"carousel\"`). Defaults to `'Back'`. */\n backLabel?: string;\n /** `Next` button label (`variant=\"carousel\"`). Defaults to `'Next'`. */\n nextLabel?: string;\n /** Builds each carousel dot's accessible name (`variant=\"carousel\"`). */\n goToSlideLabel?: (index: number, count: number) => string;\n /** Illustration/media (`variant=\"single\"`). */\n image?: React.ReactNode;\n /** Title (`variant=\"single\"`). Defaults to `'Title'`. */\n title?: string;\n /** Description (`variant=\"single\"`). Defaults to `'Feature description.'`. */\n description?: string;\n /** `Close` link label (`variant=\"single\"`). Defaults to `'Close'`. */\n closeLabel?: string;\n /** Fires when `Close` (`variant=\"single\"`) is activated, before the dialog closes. */\n onCloseAction?: () => void;\n /**\n * Call-to-action button label — the last carousel slide's button\n * (`variant=\"carousel\"`) or the single body's primary button\n * (`variant=\"single\"`). Defaults to `'Call to action'`.\n */\n primaryLabel?: string;\n /** Fires when the call-to-action button is activated. */\n onPrimaryAction?: () => void;\n /** Render inside a portal (forwarded to `DialogContent`). Defaults to `true`. */\n portal?: boolean;\n /** Portal container (forwarded to `DialogContent`). */\n portalContainer?: DialogContentProps['portalContainer'];\n /** Keep the content mounted while closed (forwarded to `DialogContent`). */\n keepMounted?: DialogContentProps['keepMounted'];\n /** Extra classes merged onto the popup container. */\n className?: string;\n}\n\nconst DialogWelcome = React.forwardRef<HTMLDivElement, DialogWelcomeProps>(\n (\n {\n variant = 'carousel',\n slides = DEFAULT_SLIDES,\n selectedIndex: selectedIndexProp,\n onSelectedIndexChange,\n backLabel,\n nextLabel,\n goToSlideLabel,\n image,\n title = 'Title',\n description = 'Feature description.',\n closeLabel = 'Close',\n onCloseAction,\n primaryLabel,\n onPrimaryAction,\n portal,\n portalContainer,\n keepMounted,\n className,\n ...rootProps\n },\n ref\n ) => {\n const isCarousel = variant === 'carousel';\n // An explicit `slides={[]}` would otherwise mount no Title/Description\n // and suppress the footer, leaving the dialog with no accessible name —\n // fall back to the default placeholder slides instead.\n const resolvedSlides = slides.length > 0 ? slides : DEFAULT_SLIDES;\n const slideCount = resolvedSlides.length;\n\n const {\n emblaRef,\n selectedIndex,\n handleSelectIndex,\n handleBack,\n handleNext,\n footerVariant,\n } = useDialogWelcomeCarousel({\n slideCount,\n selectedIndexProp,\n onSelectedIndexChange,\n });\n\n return (\n <DialogRoot {...rootProps}>\n <DialogContent\n ref={ref}\n size=\"sm\"\n portal={portal}\n portalContainer={portalContainer}\n keepMounted={keepMounted}\n className={className}\n >\n {isCarousel ? (\n <ContainerCarousel\n slides={resolvedSlides}\n selectedIndex={selectedIndex}\n emblaRef={emblaRef}\n footerVariant={footerVariant}\n onSelectIndex={handleSelectIndex}\n onBack={handleBack}\n onNext={handleNext}\n onPrimaryAction={onPrimaryAction}\n backLabel={backLabel}\n nextLabel={nextLabel}\n primaryLabel={primaryLabel}\n goToSlideLabel={goToSlideLabel}\n />\n ) : (\n <ContainerNoSlides\n image={image}\n title={title}\n description={description}\n primaryLabel={primaryLabel}\n onPrimaryAction={onPrimaryAction}\n closeLabel={closeLabel}\n onCloseAction={onCloseAction}\n />\n )}\n </DialogContent>\n </DialogRoot>\n );\n }\n);\nDialogWelcome.displayName = 'DialogWelcome';\n\nexport { DialogWelcome };\n"],"mappings":";;;;;;;;;AAqDA,SAAS,EAAuB,EAC9B,UACA,UACA,gBACA,WACA,uBAAoB,MACU;CAC9B,OACE,kBAAC,OAAD;EACE,WAAW,EACT,gDACA,KAAqB,MACvB;EAJF,UAAA,CAME,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAA;GACE,CAAA;EACF,CAAA,GACL,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACG,IACC,kBAAC,GAAD;IAAa,WAAU;IACpB,UAAA;GACU,CAAA,IAEb,kBAAC,KAAD;IAAG,WAAU;IACV,UAAA;GACA,CAAA,GAEJ,IACC,kBAAC,GAAD;IAAmB,WAAU;IAC1B,UAAA;GACgB,CAAA,IAEnB,kBAAC,KAAD;IAAG,WAAU;IACV,UAAA;GACA,CAAA,CAEF;EACF,CAAA,CAAA;;AAET;AAEA,IAAM,IAAuC;CAC3C;EAAE,OAAO;EAAS,aAAa;CAAuB;CACtD;EAAE,OAAO;EAAS,aAAa;CAAuB;CACtD;EAAE,OAAO;EAAS,aAAa;CAAuB;AACxD;AAQA,SAAS,EAAyB,EAChC,eACA,sBACA,4BACkC;CAClC,IAAM,IAAM,EAAU,GAChB,IAAe,MAAsB,KAAA,GAKrC,IAAe,KAAK,IACxB,KAAK,IAAI,KAAqB,GAAG,CAAC,GAClC,KAAK,IAAI,IAAa,GAAG,CAAC,CAC5B,GACM,CAAC,GAAU,KAAY,EAAiB;EAC5C,MAAM;EACN,WAAW;EACX,YAAY;CACd,CAAC,GACK,CAAC,GAAe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