@acronis-platform/ui-react 0.57.0 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion/accordion.js +53 -0
- package/dist/components/ui/accordion/accordion.js.map +1 -0
- package/dist/components/ui/alert/alert.js +99 -0
- package/dist/components/ui/alert/alert.js.map +1 -0
- package/dist/components/ui/app-shell/app-shell.js +75 -0
- package/dist/components/ui/app-shell/app-shell.js.map +1 -0
- package/dist/components/ui/app-shell-chat/app-shell-chat.js +344 -0
- package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -0
- package/dist/components/ui/auth-layout/auth-layout.js +56 -0
- package/dist/components/ui/auth-layout/auth-layout.js.map +1 -0
- package/dist/components/ui/avatar/avatar.js +70 -0
- package/dist/components/ui/avatar/avatar.js.map +1 -0
- package/dist/components/ui/bar-chart/bar-chart.js +104 -0
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js +116 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/ui/button/button.js +41 -0
- package/dist/components/ui/button/button.js.map +1 -0
- package/dist/components/ui/button-icon/button-icon.js +35 -0
- package/dist/components/ui/button-icon/button-icon.js.map +1 -0
- package/dist/components/ui/button-menu/button-menu.js +52 -0
- package/dist/components/ui/button-menu/button-menu.js.map +1 -0
- package/dist/components/ui/calendar/calendar.js +204 -0
- package/dist/components/ui/calendar/calendar.js.map +1 -0
- package/dist/components/ui/card/card.js +92 -0
- package/dist/components/ui/card/card.js.map +1 -0
- package/dist/components/ui/card-filter/card-filter.js +63 -0
- package/dist/components/ui/card-filter/card-filter.js.map +1 -0
- package/dist/components/ui/chart/chart.js +213 -0
- package/dist/components/ui/chart/chart.js.map +1 -0
- package/dist/components/ui/checkbox/checkbox.js +70 -0
- package/dist/components/ui/checkbox/checkbox.js.map +1 -0
- package/dist/components/ui/chip/chip.js +70 -0
- package/dist/components/ui/chip/chip.js.map +1 -0
- package/dist/components/ui/collapsible/collapsible.js +22 -0
- package/dist/components/ui/collapsible/collapsible.js.map +1 -0
- package/dist/components/ui/combobox/combobox.js +153 -0
- package/dist/components/ui/combobox/combobox.js.map +1 -0
- package/dist/components/ui/data-table/data-table-column-header.js +36 -0
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -0
- package/dist/components/ui/data-table/data-table-expand-trigger.js +39 -0
- package/dist/components/ui/data-table/data-table-expand-trigger.js.map +1 -0
- package/dist/components/ui/data-table/data-table-pagination.js +89 -0
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -0
- package/dist/components/ui/data-table/data-table-toolbar.js +81 -0
- package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -0
- package/dist/components/ui/data-table/data-table-view-options.js +27 -0
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -0
- package/dist/components/ui/data-table/data-table.js +280 -0
- package/dist/components/ui/data-table/data-table.js.map +1 -0
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js +28 -0
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js.map +1 -0
- package/dist/components/ui/date-range-picker/date-range-picker.js +151 -0
- package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/ui/description-list/description-list.js +54 -0
- package/dist/components/ui/description-list/description-list.js.map +1 -0
- package/dist/components/ui/dialog/dialog.js +141 -0
- package/dist/components/ui/dialog/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +112 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty/empty.js +78 -0
- package/dist/components/ui/empty/empty.js.map +1 -0
- package/dist/components/ui/field/field.js +189 -0
- package/dist/components/ui/field/field.js.map +1 -0
- package/dist/components/ui/filter-search/filter-search.js +164 -0
- package/dist/components/ui/filter-search/filter-search.js.map +1 -0
- package/dist/components/ui/form/form.js +16 -0
- package/dist/components/ui/form/form.js.map +1 -0
- package/dist/components/ui/grid/grid.js +69 -0
- package/dist/components/ui/grid/grid.js.map +1 -0
- package/dist/components/ui/input/input.js +22 -0
- package/dist/components/ui/input/input.js.map +1 -0
- package/dist/components/ui/input-date-picker/input-date-picker.js +104 -0
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -0
- package/dist/components/ui/input-search/input-search.js +56 -0
- package/dist/components/ui/input-search/input-search.js.map +1 -0
- package/dist/components/ui/input-select/input-select.js +340 -0
- package/dist/components/ui/input-select/input-select.js.map +1 -0
- package/dist/components/ui/input-text/input-text.js +87 -0
- package/dist/components/ui/input-text/input-text.js.map +1 -0
- package/dist/components/ui/input-text-area/input-text-area.js +77 -0
- package/dist/components/ui/input-text-area/input-text-area.js.map +1 -0
- package/dist/components/ui/label/label.js +12 -0
- package/dist/components/ui/label/label.js.map +1 -0
- package/dist/components/ui/link/link.js +39 -0
- package/dist/components/ui/link/link.js.map +1 -0
- package/dist/components/ui/number-field/number-field.js +61 -0
- package/dist/components/ui/number-field/number-field.js.map +1 -0
- package/dist/components/ui/page-content/page-content.js +19 -0
- package/dist/components/ui/page-content/page-content.js.map +1 -0
- package/dist/components/ui/page-header/page-header.js +184 -0
- package/dist/components/ui/page-header/page-header.js.map +1 -0
- package/dist/components/ui/pagination/pagination.js +87 -0
- package/dist/components/ui/pagination/pagination.js.map +1 -0
- package/dist/components/ui/popover/popover.js +49 -0
- package/dist/components/ui/popover/popover.js.map +1 -0
- package/dist/components/ui/progress/progress.js +30 -0
- package/dist/components/ui/progress/progress.js.map +1 -0
- package/dist/components/ui/progress-circle/progress-circle.js +115 -0
- package/dist/components/ui/progress-circle/progress-circle.js.map +1 -0
- package/dist/components/ui/radio/radio.js +44 -0
- package/dist/components/ui/radio/radio.js.map +1 -0
- package/dist/components/ui/resizable/resizable.js +55 -0
- package/dist/components/ui/resizable/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.js +61 -0
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/ui/search/search.js +93 -0
- package/dist/components/ui/search/search.js.map +1 -0
- package/dist/components/ui/search-global/search-global.js +60 -0
- package/dist/components/ui/search-global/search-global.js.map +1 -0
- package/dist/components/ui/section/section.js +37 -0
- package/dist/components/ui/section/section.js.map +1 -0
- package/dist/components/ui/separator/separator.js +22 -0
- package/dist/components/ui/separator/separator.js.map +1 -0
- package/dist/components/ui/sheet/sheet-details.js +80 -0
- package/dist/components/ui/sheet/sheet-details.js.map +1 -0
- package/dist/components/ui/sheet/sheet.js +136 -0
- package/dist/components/ui/sheet/sheet.js.map +1 -0
- package/dist/components/ui/sidebar-primary/sidebar-primary.js +369 -0
- package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -0
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +650 -0
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -0
- package/dist/components/ui/skeleton/skeleton.js +22 -0
- package/dist/components/ui/skeleton/skeleton.js.map +1 -0
- package/dist/components/ui/slider/slider.js +42 -0
- package/dist/components/ui/slider/slider.js.map +1 -0
- package/dist/components/ui/spinner/spinner.js +38 -0
- package/dist/components/ui/spinner/spinner.js.map +1 -0
- package/dist/components/ui/stack/stack.js +61 -0
- package/dist/components/ui/stack/stack.js.map +1 -0
- package/dist/components/ui/switch/switch.js +41 -0
- package/dist/components/ui/switch/switch.js.map +1 -0
- package/dist/components/ui/table/table-pagination.js +99 -0
- package/dist/components/ui/table/table-pagination.js.map +1 -0
- package/dist/components/ui/table/table-view-options.js +41 -0
- package/dist/components/ui/table/table-view-options.js.map +1 -0
- package/dist/components/ui/table/table.js +129 -0
- package/dist/components/ui/table/table.js.map +1 -0
- package/dist/components/ui/tabs/tabs.js +44 -0
- package/dist/components/ui/tabs/tabs.js.map +1 -0
- package/dist/components/ui/tag/tag.js +47 -0
- package/dist/components/ui/tag/tag.js.map +1 -0
- package/dist/components/ui/toast/toast.js +85 -0
- package/dist/components/ui/toast/toast.js.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.js +47 -0
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/ui/toolbar/toolbar.js +214 -0
- package/dist/components/ui/toolbar/toolbar.js.map +1 -0
- package/dist/components/ui/tooltip/tooltip.js +58 -0
- package/dist/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/components/ui/widget-placeholder/widget-placeholder.js +106 -0
- package/dist/components/ui/widget-placeholder/widget-placeholder.js.map +1 -0
- package/dist/hooks/use-intersection-observer.js +26 -0
- package/dist/hooks/use-intersection-observer.js.map +1 -0
- package/dist/hooks/use-sort-state.js +35 -0
- package/dist/hooks/use-sort-state.js.map +1 -0
- package/dist/hooks/use-table-url-state.js +115 -0
- package/dist/hooks/use-table-url-state.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +403 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/breakpoints.js +11 -0
- package/dist/lib/breakpoints.js.map +1 -0
- package/dist/lib/deep-equal.js +23 -0
- package/dist/lib/deep-equal.js.map +1 -0
- package/dist/lib/portal-container.js +14 -0
- package/dist/lib/portal-container.js.map +1 -0
- package/dist/lib/use-doc-dir.js +12 -0
- package/dist/lib/use-doc-dir.js.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/index.js +62 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/mini.js +91 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/date/mini.js.map +1 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzOffset/index.js +23 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.5.0/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
- 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 +104 -0
- 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 -0
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +1900 -0
- package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +36 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/formatters.js +584 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addMonths.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addWeeks.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addWeeks.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addYears.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addYears.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarDays.js +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachMonthOfInterval.js +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachYearOfInterval.js +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfISOWeek.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfISOWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfMonth.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/endOfYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDaysInMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getMonth.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getYear.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isAfter.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isAfter.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isBefore.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isBefore.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameDay.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameDay.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameMonth.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameYear.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isSameYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/max.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/max.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/min.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/min.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +81 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +78 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +76 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +81 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +78 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +76 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js +68 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js +86 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setMonth.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setYear.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js.map +1 -0
- 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 +247 -0
- 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 -0
- 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 +23 -0
- 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 -0
- 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 +20 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +259 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +16 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +12 -0
- 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 -0
- 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 +21 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +28 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 +9 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +12 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +53 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +7 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +17 -0
- 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 -0
- 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 +20 -0
- 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 -0
- 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 +43 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +17 -0
- 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 -0
- 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 +14 -0
- 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 -0
- 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 +16 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +14 -0
- 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 -0
- 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 +36 -0
- 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 -0
- 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 +14 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +12 -0
- 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 -0
- 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 +13 -0
- 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 -0
- 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 +13 -0
- 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 -0
- 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 +13 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 +17 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +25 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +7 -0
- 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 -0
- 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 +8 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +38 -0
- 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 -0
- 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 +107 -0
- 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 -0
- 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 +22 -0
- 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 -0
- 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 +24 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +57 -0
- 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 -0
- 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 +77 -0
- 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 -0
- 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 +13 -0
- 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 -0
- 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 +24 -0
- 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 -0
- 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 +20 -0
- 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 -0
- 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 +33 -0
- 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 -0
- 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 +27 -0
- 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 -0
- 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 +27 -0
- 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 -0
- 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 +16 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +10 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 +27 -0
- 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 -0
- 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 +2093 -0
- 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 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2996 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.js +403 -0
- package/dist/react.js.map +1 -0
- package/dist/src/components/ui/accordion/accordion.d.ts +7 -0
- package/dist/src/components/ui/accordion/index.d.ts +1 -0
- package/dist/src/components/ui/alert/alert.d.ts +14 -0
- package/dist/src/components/ui/alert/index.d.ts +2 -0
- package/dist/src/components/ui/app-shell/app-shell.d.ts +8 -0
- package/dist/src/components/ui/app-shell/index.d.ts +1 -0
- package/dist/src/components/ui/app-shell-chat/app-shell-chat.d.ts +147 -0
- package/dist/src/components/ui/app-shell-chat/index.d.ts +1 -0
- package/dist/src/components/ui/auth-layout/auth-layout.d.ts +6 -0
- package/dist/src/components/ui/auth-layout/index.d.ts +1 -0
- package/dist/src/components/ui/avatar/avatar.d.ts +27 -0
- package/dist/src/components/ui/avatar/index.d.ts +1 -0
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +28 -0
- package/dist/src/components/ui/bar-chart/index.d.ts +1 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +30 -0
- package/dist/src/components/ui/breadcrumb/index.d.ts +1 -0
- package/dist/src/components/ui/button/button.d.ts +16 -0
- package/dist/src/components/ui/button/index.d.ts +1 -0
- package/dist/src/components/ui/button-icon/button-icon.d.ts +20 -0
- package/dist/src/components/ui/button-icon/index.d.ts +1 -0
- package/dist/src/components/ui/button-menu/button-menu.d.ts +29 -0
- package/dist/src/components/ui/button-menu/index.d.ts +1 -0
- package/dist/src/components/ui/calendar/calendar.d.ts +6 -0
- package/dist/src/components/ui/calendar/calendar.docs.d.ts +21 -0
- package/dist/src/components/ui/calendar/index.d.ts +1 -0
- package/dist/src/components/ui/card/card.d.ts +17 -0
- package/dist/src/components/ui/card/index.d.ts +1 -0
- package/dist/src/components/ui/card-filter/card-filter.d.ts +27 -0
- package/dist/src/components/ui/card-filter/index.d.ts +1 -0
- package/dist/src/components/ui/chart/chart.d.ts +55 -0
- package/dist/src/components/ui/chart/index.d.ts +2 -0
- package/dist/src/components/ui/checkbox/checkbox.d.ts +10 -0
- package/dist/src/components/ui/checkbox/index.d.ts +1 -0
- package/dist/src/components/ui/chip/chip.d.ts +20 -0
- package/dist/src/components/ui/chip/index.d.ts +1 -0
- package/dist/src/components/ui/collapsible/collapsible.d.ts +5 -0
- package/dist/src/components/ui/collapsible/index.d.ts +1 -0
- package/dist/src/components/ui/combobox/combobox.d.ts +28 -0
- package/dist/src/components/ui/combobox/index.d.ts +2 -0
- package/dist/src/components/ui/data-table/data-table-column-header.d.ts +8 -0
- package/dist/src/components/ui/data-table/data-table-expand-trigger.d.ts +10 -0
- package/dist/src/components/ui/data-table/data-table-pagination.d.ts +8 -0
- package/dist/src/components/ui/data-table/data-table-toolbar.d.ts +27 -0
- package/dist/src/components/ui/data-table/data-table-view-options.d.ts +6 -0
- package/dist/src/components/ui/data-table/data-table.d.ts +165 -0
- package/dist/src/components/ui/data-table/data-table.docs.d.ts +106 -0
- package/dist/src/components/ui/data-table/index.d.ts +6 -0
- package/dist/src/components/ui/date-range-picker/__tests__/date-range-picker-utils.test.d.ts +1 -0
- package/dist/src/components/ui/date-range-picker/date-range-picker-utils.d.ts +36 -0
- package/dist/src/components/ui/date-range-picker/date-range-picker.d.ts +27 -0
- package/dist/src/components/ui/date-range-picker/index.d.ts +1 -0
- package/dist/src/components/ui/description-list/description-list.d.ts +8 -0
- package/dist/src/components/ui/description-list/index.d.ts +1 -0
- package/dist/src/components/ui/dialog/dialog.d.ts +39 -0
- package/dist/src/components/ui/dialog/dialog.docs.d.ts +24 -0
- package/dist/src/components/ui/dialog/index.d.ts +1 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +32 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.docs.d.ts +25 -0
- package/dist/src/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/src/components/ui/empty/empty.d.ts +9 -0
- package/dist/src/components/ui/empty/index.d.ts +1 -0
- package/dist/src/components/ui/field/field.d.ts +39 -0
- package/dist/src/components/ui/field/field.docs.d.ts +27 -0
- package/dist/src/components/ui/field/index.d.ts +2 -0
- package/dist/src/components/ui/filter-search/filter-search.d.ts +52 -0
- package/dist/src/components/ui/filter-search/index.d.ts +2 -0
- package/dist/src/components/ui/form/form.d.ts +6 -0
- package/dist/src/components/ui/form/index.d.ts +1 -0
- package/dist/src/components/ui/grid/grid.d.ts +15 -0
- package/dist/src/components/ui/grid/index.d.ts +1 -0
- package/dist/src/components/ui/input/index.d.ts +1 -0
- package/dist/src/components/ui/input/input.d.ts +4 -0
- package/dist/src/components/ui/input-date-picker/index.d.ts +1 -0
- package/dist/src/components/ui/input-date-picker/input-date-picker.d.ts +27 -0
- package/dist/src/components/ui/input-search/index.d.ts +1 -0
- package/dist/src/components/ui/input-search/input-search.d.ts +10 -0
- package/dist/src/components/ui/input-select/index.d.ts +1 -0
- package/dist/src/components/ui/input-select/input-select.d.ts +96 -0
- package/dist/src/components/ui/input-text/index.d.ts +1 -0
- package/dist/src/components/ui/input-text/input-text.d.ts +20 -0
- package/dist/src/components/ui/input-text-area/index.d.ts +1 -0
- package/dist/src/components/ui/input-text-area/input-text-area.d.ts +16 -0
- package/dist/src/components/ui/label/index.d.ts +1 -0
- package/dist/src/components/ui/label/label.d.ts +5 -0
- package/dist/src/components/ui/label/label.docs.d.ts +10 -0
- package/dist/src/components/ui/link/index.d.ts +1 -0
- package/dist/src/components/ui/link/link.d.ts +15 -0
- package/dist/src/components/ui/number-field/index.d.ts +1 -0
- package/dist/src/components/ui/number-field/number-field.d.ts +7 -0
- package/dist/src/components/ui/page-content/index.d.ts +1 -0
- package/dist/src/components/ui/page-content/page-content.d.ts +4 -0
- package/dist/src/components/ui/page-header/index.d.ts +1 -0
- package/dist/src/components/ui/page-header/page-header.d.ts +14 -0
- package/dist/src/components/ui/pagination/index.d.ts +2 -0
- package/dist/src/components/ui/pagination/pagination.d.ts +25 -0
- package/dist/src/components/ui/popover/index.d.ts +1 -0
- package/dist/src/components/ui/popover/popover.d.ts +27 -0
- package/dist/src/components/ui/popover/popover.docs.d.ts +25 -0
- package/dist/src/components/ui/progress/index.d.ts +1 -0
- package/dist/src/components/ui/progress/progress.d.ts +9 -0
- package/dist/src/components/ui/progress/progress.docs.d.ts +16 -0
- package/dist/src/components/ui/progress-circle/index.d.ts +1 -0
- package/dist/src/components/ui/progress-circle/progress-circle.d.ts +47 -0
- package/dist/src/components/ui/progress-circle/progress-circle.docs.d.ts +21 -0
- package/dist/src/components/ui/radio/index.d.ts +1 -0
- package/dist/src/components/ui/radio/radio.d.ts +8 -0
- package/dist/src/components/ui/resizable/index.d.ts +2 -0
- package/dist/src/components/ui/resizable/resizable.d.ts +6 -0
- package/dist/src/components/ui/scroll-area/index.d.ts +1 -0
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +10 -0
- package/dist/src/components/ui/search/index.d.ts +1 -0
- package/dist/src/components/ui/search/search.d.ts +7 -0
- package/dist/src/components/ui/search-global/index.d.ts +1 -0
- package/dist/src/components/ui/search-global/search-global.d.ts +7 -0
- package/dist/src/components/ui/section/index.d.ts +1 -0
- package/dist/src/components/ui/section/section.d.ts +7 -0
- package/dist/src/components/ui/select/index.d.ts +1 -0
- package/dist/src/components/ui/select/select.d.ts +1 -0
- package/dist/src/components/ui/separator/index.d.ts +1 -0
- package/dist/src/components/ui/separator/separator.d.ts +3 -0
- package/dist/src/components/ui/sheet/index.d.ts +3 -0
- package/dist/src/components/ui/sheet/sheet-details.d.ts +42 -0
- package/dist/src/components/ui/sheet/sheet.d.ts +36 -0
- package/dist/src/components/ui/sheet/sheet.docs.d.ts +21 -0
- package/dist/src/components/ui/sidebar-primary/index.d.ts +1 -0
- package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +107 -0
- package/dist/src/components/ui/sidebar-secondary/index.d.ts +1 -0
- package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +115 -0
- package/dist/src/components/ui/skeleton/index.d.ts +1 -0
- package/dist/src/components/ui/skeleton/skeleton.d.ts +4 -0
- package/dist/src/components/ui/slider/index.d.ts +1 -0
- package/dist/src/components/ui/slider/slider.d.ts +7 -0
- package/dist/src/components/ui/spinner/index.d.ts +1 -0
- package/dist/src/components/ui/spinner/spinner.d.ts +9 -0
- package/dist/src/components/ui/stack/index.d.ts +1 -0
- package/dist/src/components/ui/stack/stack.d.ts +13 -0
- package/dist/src/components/ui/switch/index.d.ts +1 -0
- package/dist/src/components/ui/switch/switch.d.ts +8 -0
- package/dist/src/components/ui/table/index.d.ts +3 -0
- package/dist/src/components/ui/table/table-pagination.d.ts +21 -0
- package/dist/src/components/ui/table/table-view-options.d.ts +22 -0
- package/dist/src/components/ui/table/table.d.ts +35 -0
- package/dist/src/components/ui/tabs/index.d.ts +1 -0
- package/dist/src/components/ui/tabs/tabs.d.ts +6 -0
- package/dist/src/components/ui/tabs/tabs.docs.d.ts +25 -0
- package/dist/src/components/ui/tag/index.d.ts +1 -0
- package/dist/src/components/ui/tag/tag.d.ts +12 -0
- package/dist/src/components/ui/toast/index.d.ts +1 -0
- package/dist/src/components/ui/toast/toast.d.ts +48 -0
- package/dist/src/components/ui/toast/toast.docs.d.ts +12 -0
- package/dist/src/components/ui/toggle-group/index.d.ts +1 -0
- package/dist/src/components/ui/toggle-group/toggle-group.d.ts +7 -0
- package/dist/src/components/ui/toolbar/index.d.ts +1 -0
- package/dist/src/components/ui/toolbar/toolbar.d.ts +23 -0
- package/dist/src/components/ui/tooltip/index.d.ts +1 -0
- package/dist/src/components/ui/tooltip/tooltip.d.ts +21 -0
- package/dist/src/components/ui/widget-placeholder/index.d.ts +1 -0
- package/dist/src/components/ui/widget-placeholder/widget-placeholder.d.ts +18 -0
- package/dist/src/components/ui/widget-placeholder/widget-placeholder.docs.d.ts +14 -0
- package/dist/src/hooks/index.d.ts +3 -0
- package/dist/src/hooks/use-intersection-observer.d.ts +26 -0
- package/dist/src/hooks/use-sort-state.d.ts +46 -0
- package/dist/src/hooks/use-table-url-state.d.ts +85 -0
- package/dist/src/index.d.ts +74 -0
- package/dist/src/lib/__tests__/breakpoints.test.d.ts +1 -0
- package/dist/src/lib/__tests__/deep-equal.test.d.ts +1 -0
- package/dist/src/lib/__tests__/use-doc-dir.test.d.ts +1 -0
- package/dist/src/lib/breakpoints.d.ts +8 -0
- package/dist/src/lib/deep-equal.d.ts +2 -0
- package/dist/src/lib/portal-container.d.ts +36 -0
- package/dist/src/lib/use-doc-dir.d.ts +6 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/react.d.ts +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/ui-react.css +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.js","sources":["../../../../src/components/ui/toolbar/toolbar.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Toolbar as ToolbarPrimitive } from '@base-ui/react/toolbar';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '../button';\nimport { ButtonMenu } from '../button-menu';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '../dropdown-menu';\n\n// Mirrors the Figma \"Toolbar\" component (node 3897:7199): a horizontal action\n// row — list actions, an optional overflow control (e.g. a `ButtonMenu`), and\n// an optional trailing area (`ToolbarActions`: a status text or a selection\n// counter + action) — typically shown above/below a list or table when rows\n// are selected or bulk actions are available. Every action is an existing\n// `Button`/`ButtonMenu` instance in Figma, so this component only lays them\n// out and carries no dedicated `--ui-toolbar-*` token tier; the 16px\n// inter-item gap is the Figma `gap/gap-16` semantic token, left un-tokenized —\n// same precedent as `FilterSearch`'s identical gap.\n//\n// The Figma `state: active | disabled` variant is the native `disabled`\n// attribute here: the root renders as a `<fieldset>` (reset to look like a\n// flex row) so every nested `Button`/`ButtonMenu` disables via the platform's\n// own fieldset-disables-descendants behavior — no prop-drilling into\n// arbitrary children required.\n//\n// `min-w-0` is required, not cosmetic: browsers give `<fieldset>` an\n// intrinsic `min-width: min-content` that Tailwind's reset doesn't touch, so\n// without it the fieldset refuses to shrink below its content's natural\n// width. `ToolbarActionList`'s collapse math reads this fieldset's own\n// `clientWidth` as \"available space\" — without `min-w-0` the fieldset\n// balloons to fit every action before that measurement ever runs, so it\n// always measures \"everything fits\" and the row never collapses.\n\nexport type ToolbarProps = React.ComponentPropsWithoutRef<'fieldset'>;\n\nconst Toolbar = React.forwardRef<HTMLFieldSetElement, ToolbarProps>(\n ({ className, ...props }, ref) => (\n <fieldset\n ref={ref}\n className={cn(\n 'm-0 flex min-w-0 items-center gap-4 border-0 p-0',\n className\n )}\n {...props}\n />\n )\n);\nToolbar.displayName = 'Toolbar';\n\n// Trailing, right-aligned area — a status text (e.g. \"25 of 1250 items\n// loaded\") or a selection counter + action (e.g. \"6 items selected: Deselect\").\n// 8px inter-child gap matches the Figma Counter part's own gap. `whitespace-nowrap`\n// is required, not cosmetic: the Figma \"Counter\" part is always single-line, but a\n// plain-text child (e.g. a `<span>`) defaults to `white-space: normal` — without\n// this, the text wraps mid-phrase once the row shrinks below its content's natural\n// width (`white-space` is inherited, so it cascades to children without them\n// needing their own override).\n//\n// `grow shrink-0` (not `flex-1`, which also shrinks): this area must grow to fill\n// leftover space so `justify-end` can right-align it, but must never shrink below\n// its own content's natural width. `ToolbarActionList`'s auto-collapse math reads\n// this element's *rendered* width as the space it needs to reserve — if it could\n// shrink, that measurement would be a moving target (less room reserved than the\n// content actually needs), so the actions row would under-collapse and this area's\n// (nowrap, unshrinkable) content would overflow past its own box instead.\nexport type ToolbarActionsProps = React.ComponentPropsWithoutRef<'div'>;\n\nconst ToolbarActions = React.forwardRef<HTMLDivElement, ToolbarActionsProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex grow shrink-0 items-center justify-end gap-2 whitespace-nowrap',\n className\n )}\n {...props}\n />\n )\n);\nToolbarActions.displayName = 'ToolbarActions';\n\n// Matches the `gap-4` utility used on both this component's row and\n// Toolbar's own root — keep in sync if either class changes.\nconst ACTION_LIST_GAP_PX = 16;\n\n// Pure so the collapse math is unit-testable without mocking layout/ResizeObserver.\n// Greedily fits as many leading items as possible into `availableWidth`; the\n// instant not everything fits, reserves `moreWidth` (+ one gap) for the\n// overflow trigger before fitting items.\nexport function computeVisibleActionCount(\n itemWidths: number[],\n moreWidth: number,\n gap: number,\n availableWidth: number\n): number {\n const total = itemWidths.length;\n if (total === 0) return 0;\n\n const fullWidth =\n itemWidths.reduce((sum, width) => sum + width, 0) + gap * (total - 1);\n if (fullWidth <= availableWidth) return total;\n\n let used = moreWidth;\n let count = 0;\n for (let i = 0; i < total; i++) {\n const next = used + itemWidths[i] + gap;\n if (next > availableWidth) break;\n used = next;\n count++;\n }\n return count;\n}\n\n// A grown sibling's own `getBoundingClientRect()` reflects its flex-grown\n// box, not the space its content actually needs — reading that would make\n// `measure()`'s \"available space\" calculation self-referential (see below),\n// so this reads the sibling's *content nodes* instead: normal (non-growing)\n// flex children report their natural width regardless of how large the\n// parent's box has grown to fill leftover row space. Bare text (e.g.\n// `<ToolbarActions>25 selected</ToolbarActions>` with no wrapping element)\n// renders as a `Text` node rather than an `Element`, so `children` alone\n// would miss it and fall through to the self-referential branch this\n// function exists to avoid — a `Range` measures that text's own rendered\n// width the same way `getBoundingClientRect()` does for an element.\n//\n// The sibling's own padding/border don't grow with flex-grow (only the free\n// space between content and box edge does), so they're safe to add back on\n// top of the content sum — unlike the box's own `getBoundingClientRect()`,\n// which is self-referential.\n//\n// Exported (like `computeVisibleActionCount`) so this is unit-testable\n// without mocking layout/ResizeObserver.\nexport function measureNaturalWidth(el: Element): number {\n const nodes = Array.from(el.childNodes).filter(\n (node): node is ChildNode =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.nodeType === Node.TEXT_NODE && !!node.textContent?.trim())\n );\n if (nodes.length === 0) return el.getBoundingClientRect().width;\n\n const style = getComputedStyle(el);\n const gap = parseFloat(style.columnGap) || 0;\n const ownPaddingAndBorder =\n (parseFloat(style.paddingLeft) || 0) +\n (parseFloat(style.paddingRight) || 0) +\n (parseFloat(style.borderLeftWidth) || 0) +\n (parseFloat(style.borderRightWidth) || 0);\n const widths = nodes.map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n const range = document.createRange();\n range.selectNodeContents(node);\n return range.getBoundingClientRect().width;\n }\n return (node as Element).getBoundingClientRect().width;\n });\n\n return (\n widths.reduce((sum, width) => sum + width, 0) +\n gap * (nodes.length - 1) +\n ownPaddingAndBorder\n );\n}\n\nfunction mergeRefs<T>(\n ...refs: Array<React.Ref<T> | undefined>\n): React.RefCallback<T> {\n return (node) => {\n for (const ref of refs) {\n if (!ref) continue;\n if (typeof ref === 'function') ref(node);\n else (ref as React.RefObject<T | null>).current = node;\n }\n };\n}\n\nexport interface ToolbarActionListItem {\n /** Stable identity — used as the React key in both the row and the overflow menu. */\n key: string;\n /** Rendered as the visible ghost Button's label, and the overflow menu item's label. */\n label: React.ReactNode;\n onSelect?: () => void;\n disabled?: boolean;\n}\n\nexport interface ToolbarActionListProps\n extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {\n /** Ordered list of actions; trailing ones collapse into \"More actions\" first. */\n actions: ToolbarActionListItem[];\n /** Label for the overflow trigger. */\n moreActionsLabel?: React.ReactNode;\n}\n\n// Mirrors the Figma \"ListActions\" part, but drives its `hasMoreActions`\n// overflow menu from measured available width instead of a static boolean —\n// the breakpoints spec (node 6262:28276) requires that \"if there is no space\n// for all Toolbar actions, then last actions must be hidden under More\n// actions.\" Renders every action as a ghost Button until they no longer fit\n// the row, then moves the trailing ones into a ButtonMenu + DropdownMenu\n// (same trigger Figma's `hasMoreActions` variant shows). An invisible clone\n// of every action + the trigger is kept mounted purely to measure natural\n// widths, since a hidden item can't report its own size.\n//\n// The root and each visible action/trigger are Base UI's `Toolbar.Root`/\n// `Toolbar.Button` (`@base-ui/react/toolbar`), giving the row the WAI-ARIA\n// toolbar pattern for free: one Tab stop, arrow-key roving-tabindex between\n// actions and into the overflow trigger. Base UI's `Toolbar.Root` does not\n// forward `enableHomeAndEndKeys` to its underlying composite, so Home/End\n// are not supported here — this is a Base UI limitation, not a choice made\n// in this component. `Toolbar.Button` composes\n// via `render` the same way `DropdownMenuTrigger`/`ButtonMenu` already do\n// below — it merges its own composite/keydown/disabled props onto whatever\n// element you pass. `focusableWhenDisabled={!action.disabled}` opts a\n// disabled action out of Base UI's default APG toolbar treatment (disabled\n// items normally stay focusable via `aria-disabled`, skippable with Tab) so\n// it matches every other disabled `Button` in this library: a real native\n// `disabled` button, unreachable via Tab or arrow keys. This MUST stay\n// conditional on `action.disabled` — `Toolbar.Root` builds its\n// `disabledIndices` list from `focusableWhenDisabled` alone, regardless of\n// the item's actual disabled state, so passing a bare `false` here disables\n// every index and silently breaks arrow-key navigation for the whole row.\n//\n// The invisible measurement clones stay plain `Button`/`ButtonMenu` (not\n// `Toolbar.Button`): registering them too would double-count hidden items in\n// the roving-tabindex list. This is scoped to the action list only —\n// `Toolbar`'s own `<fieldset>` disabled-cascade (see above) is\n// intentionally untouched; Base UI's `Fieldset.Root` strips the native\n// `disabled` attribute in favor of a context other Base UI Field-aware\n// components consume, which `Button`/`ButtonMenu` don't, so it would silently\n// break the \"disabling the toolbar disables every nested control\" guarantee.\nconst ToolbarActionList = React.forwardRef<\n HTMLDivElement,\n ToolbarActionListProps\n>(\n (\n { className, actions, moreActionsLabel = 'More actions', ...props },\n forwardedRef\n ) => {\n const containerRef = React.useRef<HTMLDivElement>(null);\n const itemRefs = React.useRef<Map<string, HTMLButtonElement | null>>(\n new Map()\n );\n const moreRef = React.useRef<HTMLButtonElement>(null);\n const [visibleCount, setVisibleCount] = React.useState(actions.length);\n const [moreMenuOpen, setMoreMenuOpen] = React.useState(false);\n // The overflow menu renders in a portal, outside the ancestor\n // `<fieldset>`'s DOM subtree, so the native disabled-cascade (see\n // `Toolbar` above) never reaches its items. Tracked separately here so a\n // menu already open when the fieldset becomes disabled gets closed, and\n // its items stay disabled even if forced open again (e.g. via a ref).\n const [ancestorDisabled, setAncestorDisabled] = React.useState(false);\n\n React.useEffect(() => {\n const fieldset = containerRef.current?.closest('fieldset');\n if (!fieldset) return;\n const sync = () => setAncestorDisabled(fieldset.disabled);\n sync();\n const observer = new MutationObserver(sync);\n observer.observe(fieldset, {\n attributes: true,\n attributeFilter: ['disabled'],\n });\n return () => observer.disconnect();\n }, []);\n\n React.useEffect(() => {\n if (ancestorDisabled) setMoreMenuOpen(false);\n }, [ancestorDisabled]);\n\n const measure = React.useCallback(() => {\n const container = containerRef.current;\n const parent = container?.parentElement;\n if (!container || !parent) return;\n\n const siblingsWidth = Array.from(parent.children)\n .filter((child) => child !== container)\n .reduce((sum, el) => sum + measureNaturalWidth(el), 0);\n const gapCount = Math.max(parent.children.length - 1, 0);\n const available =\n parent.clientWidth - siblingsWidth - ACTION_LIST_GAP_PX * gapCount;\n\n // Keyed by `action.key`, not index — an index-keyed array would keep\n // stale entries (and a stale length) when `actions` shrinks, since\n // React only nulls out the removed clones' refs without truncating it.\n const itemWidths = actions.map(\n (action) =>\n itemRefs.current.get(action.key)?.getBoundingClientRect().width ?? 0\n );\n const moreWidth = moreRef.current?.getBoundingClientRect().width ?? 0;\n\n setVisibleCount(\n computeVisibleActionCount(\n itemWidths,\n moreWidth,\n ACTION_LIST_GAP_PX,\n available\n )\n );\n }, [actions]);\n\n React.useLayoutEffect(() => {\n measure();\n const parent = containerRef.current?.parentElement;\n if (!parent) return;\n const observer = new ResizeObserver(measure);\n observer.observe(parent);\n // A sibling like `ToolbarActions` is `shrink-0`, so its own border-box\n // grows with its content (e.g. a \"6 items selected\" counter ticking\n // up) even while `parent`'s box stays fixed — a ResizeObserver bound\n // only to `parent` never fires for that case, so `measure()` goes\n // stale and the row silently overflows instead of collapsing further.\n // Observing every sibling directly catches that box-size change too.\n Array.from(parent.children).forEach((sibling) => {\n if (sibling !== containerRef.current) observer.observe(sibling);\n });\n return () => observer.disconnect();\n }, [measure, actions]);\n\n const visibleActions = actions.slice(0, visibleCount);\n const hiddenActions = actions.slice(visibleCount);\n\n return (\n <ToolbarPrimitive.Root\n ref={mergeRefs(containerRef, forwardedRef)}\n className={cn(\n // `overflow-hidden` clips the invisible measurement clone below —\n // it's `position: absolute` + `visibility: hidden`, which keeps\n // contributing to this element's scrollable overflow (and thus a\n // real horizontal scrollbar on a narrow container/page) unless\n // something in the ancestor chain clips it. Visible content is\n // already sized to fit `availableWidth` by the collapse math, so\n // clipping never affects anything actually shown.\n 'relative flex min-w-0 flex-nowrap items-center gap-4 overflow-hidden',\n className\n )}\n {...props}\n >\n {visibleActions.map((action) => (\n <ToolbarPrimitive.Button\n key={action.key}\n disabled={action.disabled}\n focusableWhenDisabled={!action.disabled}\n onClick={action.onSelect}\n render={<Button variant=\"ghost\">{action.label}</Button>}\n />\n ))}\n {hiddenActions.length > 0 && (\n <DropdownMenu\n open={moreMenuOpen}\n onOpenChange={setMoreMenuOpen}\n disabled={ancestorDisabled}\n >\n <ToolbarPrimitive.Button\n render={\n <DropdownMenuTrigger\n render={\n <ButtonMenu variant=\"secondary\">\n {moreActionsLabel}\n </ButtonMenu>\n }\n />\n }\n />\n <DropdownMenuContent align=\"start\">\n {hiddenActions.map((action) => (\n <DropdownMenuItem\n key={action.key}\n disabled={action.disabled || ancestorDisabled}\n onClick={action.onSelect}\n >\n {action.label}\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n <div\n aria-hidden\n inert\n className=\"pointer-events-none invisible absolute start-0 top-0 flex items-center gap-4\"\n >\n {actions.map((action) => (\n <Button\n key={action.key}\n ref={(el) => {\n itemRefs.current.set(action.key, el);\n }}\n variant=\"ghost\"\n tabIndex={-1}\n >\n {action.label}\n </Button>\n ))}\n <ButtonMenu ref={moreRef} variant=\"secondary\" tabIndex={-1}>\n {moreActionsLabel}\n </ButtonMenu>\n </div>\n </ToolbarPrimitive.Root>\n );\n }\n);\nToolbarActionList.displayName = 'ToolbarActionList';\n\nexport { Toolbar, ToolbarActions, ToolbarActionList };\n"],"names":["Toolbar","React","className","props","ref","jsx","cn","ToolbarActions","ACTION_LIST_GAP_PX","computeVisibleActionCount","itemWidths","moreWidth","gap","availableWidth","total","sum","width","used","count","i","next","measureNaturalWidth","el","nodes","node","_a","style","ownPaddingAndBorder","range","mergeRefs","refs","ToolbarActionList","actions","moreActionsLabel","forwardedRef","containerRef","itemRefs","moreRef","visibleCount","setVisibleCount","moreMenuOpen","setMoreMenuOpen","ancestorDisabled","setAncestorDisabled","fieldset","sync","observer","measure","container","parent","siblingsWidth","child","gapCount","available","action","sibling","visibleActions","hiddenActions","jsxs","ToolbarPrimitive","Button","DropdownMenu","DropdownMenuTrigger","ButtonMenu","DropdownMenuContent","DropdownMenuItem"],"mappings":";;;;;;;AAuCA,MAAMA,IAAUC,EAAM;AAAA,EACpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAH,EAAQ,cAAc;AAoBtB,MAAMO,IAAiBN,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACAI,EAAe,cAAc;AAI7B,MAAMC,IAAqB;AAMpB,SAASC,EACdC,GACAC,GACAC,GACAC,GACQ;AACR,QAAMC,IAAQJ,EAAW;AACzB,MAAII,MAAU,EAAG,QAAO;AAIxB,MADEJ,EAAW,OAAO,CAACK,GAAKC,MAAUD,IAAMC,GAAO,CAAC,IAAIJ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AAQ;AAAA,oBACR,UAAU;AAAA,oBAET,UAAAgC,EAAO;AAAA,kBAAA;AAAA,kBAPHA,EAAO;AAAA,gBAAA,CASf;AAAA,gBACD,gBAAAjD,EAAC0D,KAAW,KAAK1B,GAAS,SAAQ,aAAY,UAAU,IACrD,UAAAJ,EAAA,CACH;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACAF,EAAkB,cAAc;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { Tooltip as o } from "@base-ui/react/tooltip";
|
|
4
|
+
import { cn as v } from "../../../lib/utils.js";
|
|
5
|
+
import { usePortalContainer as x } from "../../../lib/portal-container.js";
|
|
6
|
+
function C(i) {
|
|
7
|
+
return /* @__PURE__ */ t(o.Provider, { delay: 300, ...i });
|
|
8
|
+
}
|
|
9
|
+
const h = o.Root, y = o.Trigger, f = u.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
className: i,
|
|
12
|
+
sideOffset: r = 6,
|
|
13
|
+
side: n = "top",
|
|
14
|
+
align: e = "center",
|
|
15
|
+
anchor: a,
|
|
16
|
+
portalContainer: l,
|
|
17
|
+
keepMounted: p,
|
|
18
|
+
...c
|
|
19
|
+
}, d) => {
|
|
20
|
+
const m = x(), s = l ?? m;
|
|
21
|
+
return /* @__PURE__ */ t(
|
|
22
|
+
o.Portal,
|
|
23
|
+
{
|
|
24
|
+
container: s,
|
|
25
|
+
keepMounted: p,
|
|
26
|
+
children: /* @__PURE__ */ t(
|
|
27
|
+
o.Positioner,
|
|
28
|
+
{
|
|
29
|
+
sideOffset: r,
|
|
30
|
+
side: n,
|
|
31
|
+
align: e,
|
|
32
|
+
anchor: a,
|
|
33
|
+
className: "z-50",
|
|
34
|
+
children: /* @__PURE__ */ t(
|
|
35
|
+
o.Popup,
|
|
36
|
+
{
|
|
37
|
+
ref: d,
|
|
38
|
+
className: v(
|
|
39
|
+
"max-w-[var(--ui-tooltip-container-width-max)] min-w-[var(--ui-tooltip-container-width-min)] rounded-[var(--ui-tooltip-container-border-radius)] bg-[var(--ui-tooltip-container-color)] px-[var(--ui-tooltip-container-padding-x)] py-[var(--ui-tooltip-container-padding-y)] text-xs font-medium leading-4 text-[var(--ui-tooltip-label-color)]",
|
|
40
|
+
i
|
|
41
|
+
),
|
|
42
|
+
...c
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
f.displayName = "TooltipContent";
|
|
52
|
+
export {
|
|
53
|
+
h as Tooltip,
|
|
54
|
+
f as TooltipContent,
|
|
55
|
+
C as TooltipProvider,
|
|
56
|
+
y as TooltipTrigger
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../../../src/components/ui/tooltip/tooltip.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';\n\nimport { cn } from '@/lib/utils';\nimport { usePortalContainer } from '@/lib/portal-container';\n\n// A contextual hint shown on hover/focus of its trigger. Wraps the Base UI\n// Tooltip primitive; the popup is themed with the `--ui-tooltip-*` token tier\n// (a dark, ~90%-opaque bubble with a light label, 12/8px padding, 4px radius,\n// 48–256px width). No arrow — matching the Figma design. Wrap the whole app (or\n// a region) in `TooltipProvider` to share open/close delays across tooltips.\n\nfunction TooltipProvider(props: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider delay={300} {...props} />;\n}\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Popup>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Popup> & {\n sideOffset?: number;\n side?: TooltipPrimitive.Positioner.Props['side'];\n align?: TooltipPrimitive.Positioner.Props['align'];\n /**\n * Override what the popup is positioned against — defaults to the\n * `TooltipTrigger` element. Useful when the hover/focus trigger is\n * narrower than the element the tooltip should visually align to (e.g. a\n * truncating label inside a full-width row, where the tooltip should\n * anchor to the row's edge, not the label's).\n */\n anchor?: TooltipPrimitive.Positioner.Props['anchor'];\n portalContainer?: TooltipPrimitive.Portal.Props['container'];\n keepMounted?: TooltipPrimitive.Portal.Props['keepMounted'];\n }\n>(\n (\n {\n className,\n sideOffset = 6,\n side = 'top',\n align = 'center',\n anchor,\n portalContainer,\n keepMounted,\n ...props\n },\n ref\n ) => {\n const ctxContainer = usePortalContainer();\n const resolvedContainer = portalContainer ?? ctxContainer;\n\n return (\n <TooltipPrimitive.Portal\n container={resolvedContainer}\n keepMounted={keepMounted}\n >\n <TooltipPrimitive.Positioner\n sideOffset={sideOffset}\n side={side}\n align={align}\n anchor={anchor}\n className=\"z-50\"\n >\n <TooltipPrimitive.Popup\n ref={ref}\n className={cn(\n 'max-w-[var(--ui-tooltip-container-width-max)] min-w-[var(--ui-tooltip-container-width-min)] rounded-[var(--ui-tooltip-container-border-radius)] bg-[var(--ui-tooltip-container-color)] px-[var(--ui-tooltip-container-padding-x)] py-[var(--ui-tooltip-container-padding-y)] text-xs font-medium leading-4 text-[var(--ui-tooltip-label-color)]',\n className\n )}\n {...props}\n />\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n );\n }\n);\nTooltipContent.displayName = 'TooltipContent';\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"names":["TooltipProvider","props","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","React","className","sideOffset","side","align","anchor","portalContainer","keepMounted","ref","ctxContainer","usePortalContainer","resolvedContainer","jsx","cn"],"mappings":";;;;;AAYA,SAASA,EAAgBC,GAA+D;AACtF,2BAAQC,EAAiB,UAAjB,EAA0B,OAAO,KAAM,GAAGD,GAAO;AAC3D;AAEA,MAAME,IAAUD,EAAiB,MAE3BE,IAAiBF,EAAiB,SAElCG,IAAiBC,EAAM;AAAA,EAkB3B,CACE;AAAA,IACE,WAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,MAAAC,IAAO;AAAA,IACP,OAAAC,IAAQ;AAAA,IACR,QAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,GAAGZ;AAAA,EAAA,GAELa,MACG;AACH,UAAMC,IAAeC,EAAA,GACfC,IAAoBL,KAAmBG;AAE7C,WACA,gBAAAG;AAAA,MAAChB,EAAiB;AAAA,MAAjB;AAAA,QACC,WAAWe;AAAA,QACX,aAAAJ;AAAA,QAEA,UAAA,gBAAAK;AAAA,UAAChB,EAAiB;AAAA,UAAjB;AAAA,YACC,YAAAM;AAAA,YACA,MAAAC;AAAA,YACA,OAAAC;AAAA,YACA,QAAAC;AAAA,YACA,WAAU;AAAA,YAEV,UAAA,gBAAAO;AAAA,cAAChB,EAAiB;AAAA,cAAjB;AAAA,gBACC,KAAAY;AAAA,gBACA,WAAWK;AAAA,kBACT;AAAA,kBACAZ;AAAA,gBAAA;AAAA,gBAED,GAAGN;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAGJ;AACF;AACAI,EAAe,cAAc;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
4
|
+
const i = a.forwardRef(({ className: t, interactive: e, ...o }, l) => /* @__PURE__ */ r(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
ref: l,
|
|
8
|
+
tabIndex: e ? 0 : void 0,
|
|
9
|
+
className: d(
|
|
10
|
+
"relative flex flex-col rounded-lg border border-border bg-background text-foreground transition-colors",
|
|
11
|
+
e && "cursor-pointer hover:bg-accent active:bg-[var(--ui-background-surface-active)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-focus-primary)]",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
...o
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
i.displayName = "WidgetPlaceholder";
|
|
18
|
+
const s = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
ref: o,
|
|
22
|
+
className: d("flex items-center gap-2 px-6 pb-2 pt-4", t),
|
|
23
|
+
...e
|
|
24
|
+
}
|
|
25
|
+
));
|
|
26
|
+
s.displayName = "WidgetPlaceholderHeader";
|
|
27
|
+
const c = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
ref: o,
|
|
31
|
+
className: d("flex-1 truncate text-sm font-semibold leading-6", t),
|
|
32
|
+
...e
|
|
33
|
+
}
|
|
34
|
+
));
|
|
35
|
+
c.displayName = "WidgetPlaceholderTitle";
|
|
36
|
+
const n = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
ref: o,
|
|
40
|
+
className: d(
|
|
41
|
+
"flex-shrink-0 text-secondary [&>svg]:size-4",
|
|
42
|
+
t
|
|
43
|
+
),
|
|
44
|
+
...e
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
n.displayName = "WidgetPlaceholderIcon";
|
|
48
|
+
const f = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
ref: o,
|
|
52
|
+
className: d(
|
|
53
|
+
"flex flex-1 flex-col items-center justify-center gap-2 px-6 py-4 text-center",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...e
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
f.displayName = "WidgetPlaceholderContent";
|
|
60
|
+
const m = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: o,
|
|
64
|
+
className: d(
|
|
65
|
+
"flex items-center justify-center text-muted-foreground [&>svg]:size-[72px]",
|
|
66
|
+
t
|
|
67
|
+
),
|
|
68
|
+
...e
|
|
69
|
+
}
|
|
70
|
+
));
|
|
71
|
+
m.displayName = "WidgetPlaceholderImage";
|
|
72
|
+
const g = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r("div", { ref: o, className: d("text-sm leading-6", t), ...e }));
|
|
73
|
+
g.displayName = "WidgetPlaceholderText";
|
|
74
|
+
const x = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
ref: o,
|
|
78
|
+
className: d(
|
|
79
|
+
"cursor-pointer text-sm font-semibold text-secondary hover:underline",
|
|
80
|
+
t
|
|
81
|
+
),
|
|
82
|
+
...e
|
|
83
|
+
}
|
|
84
|
+
));
|
|
85
|
+
x.displayName = "WidgetPlaceholderAction";
|
|
86
|
+
const p = a.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ r(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
ref: o,
|
|
90
|
+
className: d("px-6 pb-4 pt-0 text-xs text-muted-foreground", t),
|
|
91
|
+
...e
|
|
92
|
+
}
|
|
93
|
+
));
|
|
94
|
+
p.displayName = "WidgetPlaceholderFooter";
|
|
95
|
+
export {
|
|
96
|
+
i as WidgetPlaceholder,
|
|
97
|
+
x as WidgetPlaceholderAction,
|
|
98
|
+
f as WidgetPlaceholderContent,
|
|
99
|
+
p as WidgetPlaceholderFooter,
|
|
100
|
+
s as WidgetPlaceholderHeader,
|
|
101
|
+
n as WidgetPlaceholderIcon,
|
|
102
|
+
m as WidgetPlaceholderImage,
|
|
103
|
+
g as WidgetPlaceholderText,
|
|
104
|
+
c as WidgetPlaceholderTitle
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=widget-placeholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-placeholder.js","sources":["../../../../src/components/ui/widget-placeholder/widget-placeholder.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\n// Composable dashboard-widget empty-state parts, ported from\n// `@acronis-platform/shadcn-uikit`'s `widget-placeholder`\n// (packages/ui-legacy/src/components/ui/widget-placeholder.tsx). Plain styled\n// elements — no Base UI primitive. No `--ui-widget-placeholder-*` tier exists\n// yet, so this design-pending v1 themes from the shared semantic vocabulary:\n// • root -> border-border + bg-background + text-foreground\n// • icon/action (was --av-fixed-link) -> text-secondary (the brand action blue)\n// • image (was --av-brand-light, a soft brand tint) -> text-muted-foreground\n// (a muted decorative placeholder; the brand tint is design-pending)\n// • interactive hover/active -> bg-accent (surface-hover) /\n// surface-active; focus -> the standard 3px --ui-focus-primary ring\n// Reconcile with `/figma-component WidgetPlaceholder <url> --update` once a\n// mockup lands (Figma: Charts-anatomy / Placeholders, node 229:73962).\n\nexport interface WidgetPlaceholderProps\n extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Make the whole widget focusable and clickable (hover/active surface + focus\n * ring). Wire the behavior via `onClick`.\n */\n interactive?: boolean;\n}\n\nconst WidgetPlaceholder = React.forwardRef<\n HTMLDivElement,\n WidgetPlaceholderProps\n>(({ className, interactive, ...props }, ref) => (\n <div\n ref={ref}\n tabIndex={interactive ? 0 : undefined}\n className={cn(\n 'relative flex flex-col rounded-lg border border-border bg-background text-foreground transition-colors',\n interactive &&\n 'cursor-pointer hover:bg-accent active:bg-[var(--ui-background-surface-active)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-focus-primary)]',\n className\n )}\n {...props}\n />\n));\nWidgetPlaceholder.displayName = 'WidgetPlaceholder';\n\nconst WidgetPlaceholderHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex items-center gap-2 px-6 pb-2 pt-4', className)}\n {...props}\n />\n));\nWidgetPlaceholderHeader.displayName = 'WidgetPlaceholderHeader';\n\nconst WidgetPlaceholderTitle = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex-1 truncate text-sm font-semibold leading-6', className)}\n {...props}\n />\n));\nWidgetPlaceholderTitle.displayName = 'WidgetPlaceholderTitle';\n\nconst WidgetPlaceholderIcon = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex-shrink-0 text-secondary [&>svg]:size-4',\n className\n )}\n {...props}\n />\n));\nWidgetPlaceholderIcon.displayName = 'WidgetPlaceholderIcon';\n\nconst WidgetPlaceholderContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex flex-1 flex-col items-center justify-center gap-2 px-6 py-4 text-center',\n className\n )}\n {...props}\n />\n));\nWidgetPlaceholderContent.displayName = 'WidgetPlaceholderContent';\n\nconst WidgetPlaceholderImage = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex items-center justify-center text-muted-foreground [&>svg]:size-[72px]',\n className\n )}\n {...props}\n />\n));\nWidgetPlaceholderImage.displayName = 'WidgetPlaceholderImage';\n\nconst WidgetPlaceholderText = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('text-sm leading-6', className)} {...props} />\n));\nWidgetPlaceholderText.displayName = 'WidgetPlaceholderText';\n\nconst WidgetPlaceholderAction = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'cursor-pointer text-sm font-semibold text-secondary hover:underline',\n className\n )}\n {...props}\n />\n));\nWidgetPlaceholderAction.displayName = 'WidgetPlaceholderAction';\n\nconst WidgetPlaceholderFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('px-6 pb-4 pt-0 text-xs text-muted-foreground', className)}\n {...props}\n />\n));\nWidgetPlaceholderFooter.displayName = 'WidgetPlaceholderFooter';\n\nexport {\n WidgetPlaceholder,\n WidgetPlaceholderHeader,\n WidgetPlaceholderTitle,\n WidgetPlaceholderIcon,\n WidgetPlaceholderContent,\n WidgetPlaceholderImage,\n WidgetPlaceholderText,\n WidgetPlaceholderAction,\n WidgetPlaceholderFooter,\n};\n"],"names":["WidgetPlaceholder","React","className","interactive","props","ref","jsx","cn","WidgetPlaceholderHeader","WidgetPlaceholderTitle","WidgetPlaceholderIcon","WidgetPlaceholderContent","WidgetPlaceholderImage","WidgetPlaceholderText","WidgetPlaceholderAction","WidgetPlaceholderFooter"],"mappings":";;;AA2BA,MAAMA,IAAoBC,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,aAAAC,GAAa,GAAGC,KAASC,MACvC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,UAAUF,IAAc,IAAI;AAAA,IAC5B,WAAWI;AAAA,MACT;AAAA,MACAJ,KACE;AAAA,MACFD;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDJ,EAAkB,cAAc;AAEhC,MAAMQ,IAA0BP,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GA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OAAA,EAAI,KAAAA,GAAU,WAAWE,EAAG,qBAAqBL,CAAS,GAAI,GAAGE,GAAO,CAC1E;AACDS,EAAsB,cAAc;AAEpC,MAAMC,IAA0Bb,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AACN,CACD;AACDU,EAAwB,cAAc;AAEtC,MAAMC,IAA0Bd,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,gDAAgDL,CAAS;AAAA,IACtE,GAAGE;AAAA,EAAA;AACN,CACD;AACDW,EAAwB,cAAc;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useRef as v, useState as b, useEffect as l } from "react";
|
|
2
|
+
function p({
|
|
3
|
+
onIntersect: n,
|
|
4
|
+
disabled: t = !1,
|
|
5
|
+
root: r,
|
|
6
|
+
rootMargin: s,
|
|
7
|
+
threshold: c
|
|
8
|
+
}) {
|
|
9
|
+
const u = v(n);
|
|
10
|
+
u.current = n;
|
|
11
|
+
const [e, o] = b(null);
|
|
12
|
+
return l(() => {
|
|
13
|
+
if (t || !e) return;
|
|
14
|
+
const f = new IntersectionObserver(
|
|
15
|
+
(i) => {
|
|
16
|
+
i.some((m) => m.isIntersecting) && u.current();
|
|
17
|
+
},
|
|
18
|
+
{ root: r, rootMargin: s, threshold: c }
|
|
19
|
+
);
|
|
20
|
+
return f.observe(e), () => f.disconnect();
|
|
21
|
+
}, [e, t, r, s, c]), o;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
p as useIntersectionObserver
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=use-intersection-observer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-intersection-observer.js","sources":["../../src/hooks/use-intersection-observer.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nexport interface UseIntersectionObserverOptions extends IntersectionObserverInit {\n /** Called each time the observed element intersects its root. */\n onIntersect: () => void;\n /**\n * Skip observing — e.g. there's nothing left to load, or a load is already\n * in flight. Disconnects any existing observer.\n */\n disabled?: boolean;\n}\n\n/**\n * Wires a single `IntersectionObserver` on the returned ref callback's element\n * and calls `onIntersect` each time it intersects. Re-creates the observer when\n * the element, `disabled`, or any `IntersectionObserverInit` option changes;\n * disconnects on cleanup. `onIntersect` itself doesn't need to be memoized by\n * the caller — the latest version is always used (via a ref) without\n * reconnecting the observer.\n *\n * Takes a ref *callback* (not a `RefObject`) rather than accepting one from the\n * caller — attaching to `element.current` inside a `useEffect` keyed on a\n * `RefObject` misses conditionally-mounted elements: the `ref` object's\n * identity never changes when its `.current` is populated, so an effect keyed\n * on it (rather than on the element itself) never re-runs once the element\n * actually mounts. Routing the DOM node through `useState` instead makes the\n * mount itself a dependency.\n */\nexport function useIntersectionObserver<T extends Element>({\n onIntersect,\n disabled = false,\n root,\n rootMargin,\n threshold,\n}: UseIntersectionObserverOptions): (node: T | null) => void {\n const onIntersectRef = useRef(onIntersect);\n onIntersectRef.current = onIntersect;\n\n const [element, setElement] = useState<T | null>(null);\n\n useEffect(() => {\n if (disabled || !element) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n if (entries.some((entry) => entry.isIntersecting)) {\n onIntersectRef.current();\n }\n },\n { root, rootMargin, threshold }\n );\n observer.observe(element);\n return () => observer.disconnect();\n }, [element, disabled, root, rootMargin, threshold]);\n\n return setElement;\n}\n"],"names":["useIntersectionObserver","onIntersect","disabled","root","rootMargin","threshold","onIntersectRef","useRef","element","setElement","useState","useEffect","observer","entries","entry"],"mappings":";AA4BO,SAASA,EAA2C;AAAA,EACzD,aAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AACF,GAA6D;AAC3D,QAAMC,IAAiBC,EAAON,CAAW;AACzC,EAAAK,EAAe,UAAUL;AAEzB,QAAM,CAACO,GAASC,CAAU,IAAIC,EAAmB,IAAI;AAErD,SAAAC,EAAU,MAAM;AACd,QAAIT,KAAY,CAACM,EAAS;AAE1B,UAAMI,IAAW,IAAI;AAAA,MACnB,CAACC,MAAY;AACX,QAAIA,EAAQ,KAAK,CAACC,MAAUA,EAAM,cAAc,KAC9CR,EAAe,QAAA;AAAA,MAEnB;AAAA,MACA,EAAE,MAAAH,GAAM,YAAAC,GAAY,WAAAC,EAAA;AAAA,IAAU;AAEhC,WAAAO,EAAS,QAAQJ,CAAO,GACjB,MAAMI,EAAS,WAAA;AAAA,EACxB,GAAG,CAACJ,GAASN,GAAUC,GAAMC,GAAYC,CAAS,CAAC,GAE5CI;AACT;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
function p(e, r) {
|
|
3
|
+
return e == null && r == null ? 0 : e == null ? -1 : r == null ? 1 : typeof e == "number" && typeof r == "number" ? e - r : String(e).localeCompare(String(r), void 0, {
|
|
4
|
+
numeric: !0,
|
|
5
|
+
sensitivity: "base"
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function g({
|
|
9
|
+
data: e,
|
|
10
|
+
initialSort: r = null,
|
|
11
|
+
comparators: s,
|
|
12
|
+
getValue: f = (t, c) => t[c]
|
|
13
|
+
}) {
|
|
14
|
+
const [t, c] = l.useState(r), m = l.useCallback((o) => {
|
|
15
|
+
c((i) => !i || i.columnId !== o ? { columnId: o, direction: "asc" } : i.direction === "asc" ? { columnId: o, direction: "desc" } : null);
|
|
16
|
+
}, []), S = l.useCallback(
|
|
17
|
+
(o) => t && t.columnId === o ? t.direction : !1,
|
|
18
|
+
[t]
|
|
19
|
+
);
|
|
20
|
+
return { sortedData: l.useMemo(() => {
|
|
21
|
+
if (!t) return e;
|
|
22
|
+
const i = (s == null ? void 0 : s[t.columnId]) ?? ((n, u) => p(
|
|
23
|
+
f(n, t.columnId),
|
|
24
|
+
f(u, t.columnId)
|
|
25
|
+
)), a = t.direction === "desc" ? -1 : 1;
|
|
26
|
+
return e.map((n, u) => ({ row: n, index: u })).sort((n, u) => {
|
|
27
|
+
const d = i(n.row, u.row);
|
|
28
|
+
return d !== 0 ? d * a : n.index - u.index;
|
|
29
|
+
}).map((n) => n.row);
|
|
30
|
+
}, [e, t, s, f]), sort: t, setSort: c, toggleSort: m, getSortDirection: S };
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
g as useSortState
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=use-sort-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sort-state.js","sources":["../../src/hooks/use-sort-state.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type SortDirection = 'asc' | 'desc' | false;\n\nexport interface SortState {\n columnId: string;\n direction: 'asc' | 'desc';\n}\n\n/**\n * Compares two rows for a column. Ascending order; the hook negates the result\n * for descending. Receives the full rows so a custom comparator has access to\n * every field.\n */\nexport type SortComparator<TData> = (a: TData, b: TData) => number;\n\nexport interface UseSortStateOptions<TData> {\n /** Rows to sort. */\n data: TData[];\n /** Initial sorted column + direction. */\n initialSort?: SortState | null;\n /**\n * Custom per-column comparators keyed by column id. When absent for a column,\n * the default alphanumeric comparator on `getValue(row, columnId)` is used.\n */\n comparators?: Record<string, SortComparator<TData>>;\n /**\n * How to read a column's value from a row for the default comparator.\n * Defaults to `row[columnId]`.\n */\n getValue?: (row: TData, columnId: string) => unknown;\n}\n\nexport interface UseSortStateResult<TData> {\n /** The rows sorted by the current sort state (unsorted `data` when none). */\n sortedData: TData[];\n /** The current sort, or `null` when unsorted. */\n sort: SortState | null;\n /** Directly set (or clear) the sort. */\n setSort: (sort: SortState | null) => void;\n /** Cycle a column's sort: none → asc → desc → none. */\n toggleSort: (columnId: string) => void;\n /** Direction for a column, shaped for `TableHead`'s `sortDirection` prop. */\n getSortDirection: (columnId: string) => SortDirection;\n}\n\n// Natural alphanumeric comparison: numbers numerically, everything else via a\n// locale-aware numeric string compare (so \"item2\" sorts before \"item10\").\n// null/undefined sort first.\nfunction defaultCompareValues(a: unknown, b: unknown): number {\n if (a == null && b == null) return 0;\n if (a == null) return -1;\n if (b == null) return 1;\n if (typeof a === 'number' && typeof b === 'number') return a - b;\n return String(a).localeCompare(String(b), undefined, {\n numeric: true,\n sensitivity: 'base',\n });\n}\n\n/**\n * Headless client-side sort state for the `Table` primitives (no TanStack\n * dependency). Drives `TableHead`'s `sortable`/`sortDirection`/`onSort` props\n * and returns the sorted rows. Default comparator is alphanumeric; pass\n * `comparators` to override per column.\n */\nexport function useSortState<TData>({\n data,\n initialSort = null,\n comparators,\n getValue = (row, columnId) => (row as Record<string, unknown>)[columnId],\n}: UseSortStateOptions<TData>): UseSortStateResult<TData> {\n const [sort, setSort] = React.useState<SortState | null>(initialSort);\n\n const toggleSort = React.useCallback((columnId: string) => {\n setSort((current) => {\n if (!current || current.columnId !== columnId) {\n return { columnId, direction: 'asc' };\n }\n if (current.direction === 'asc') {\n return { columnId, direction: 'desc' };\n }\n return null;\n });\n }, []);\n\n const getSortDirection = React.useCallback(\n (columnId: string): SortDirection =>\n sort && sort.columnId === columnId ? sort.direction : false,\n [sort]\n );\n\n const sortedData = React.useMemo(() => {\n if (!sort) return data;\n const custom = comparators?.[sort.columnId];\n const compare: SortComparator<TData> =\n custom ??\n ((a, b) =>\n defaultCompareValues(\n getValue(a, sort.columnId),\n getValue(b, sort.columnId)\n ));\n const factor = sort.direction === 'desc' ? -1 : 1;\n // Slice keeps the input array intact; index tiebreak keeps sort stable.\n return data\n .map((row, index) => ({ row, index }))\n .sort((a, b) => {\n const result = compare(a.row, b.row);\n return result !== 0 ? result * factor : a.index - b.index;\n })\n .map((entry) => entry.row);\n }, [data, sort, comparators, getValue]);\n\n return { sortedData, sort, setSort, toggleSort, getSortDirection };\n}\n"],"names":["defaultCompareValues","a","b","useSortState","data","initialSort","comparators","getValue","row","columnId","sort","setSort","React","toggleSort","current","getSortDirection","compare","factor","index","result","entry"],"mappings":";AAiDA,SAASA,EAAqBC,GAAYC,GAAoB;AAC5D,SAAID,KAAK,QAAQC,KAAK,OAAa,IAC/BD,KAAK,OAAa,KAClBC,KAAK,OAAa,IAClB,OAAOD,KAAM,YAAY,OAAOC,KAAM,WAAiBD,IAAIC,IACxD,OAAOD,CAAC,EAAE,cAAc,OAAOC,CAAC,GAAG,QAAW;AAAA,IACnD,SAAS;AAAA,IACT,aAAa;AAAA,EAAA,CACd;AACH;AAQO,SAASC,EAAoB;AAAA,EAClC,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,aAAAC;AAAA,EACA,UAAAC,IAAW,CAACC,GAAKC,MAAcD,EAAgCC,CAAQ;AACzE,GAA0D;AACxD,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAA2BP,CAAW,GAE9DQ,IAAaD,EAAM,YAAY,CAACH,MAAqB;AACzD,IAAAE,EAAQ,CAACG,MACH,CAACA,KAAWA,EAAQ,aAAaL,IAC5B,EAAE,UAAAA,GAAU,WAAW,MAAA,IAE5BK,EAAQ,cAAc,QACjB,EAAE,UAAAL,GAAU,WAAW,OAAA,IAEzB,IACR;AAAA,EACH,GAAG,CAAA,CAAE,GAECM,IAAmBH,EAAM;AAAA,IAC7B,CAACH,MACCC,KAAQA,EAAK,aAAaD,IAAWC,EAAK,YAAY;AAAA,IACxD,CAACA,CAAI;AAAA,EAAA;AAwBP,SAAO,EAAE,YArBUE,EAAM,QAAQ,MAAM;AACrC,QAAI,CAACF,EAAM,QAAON;AAElB,UAAMY,KADSV,KAAA,gBAAAA,EAAcI,EAAK,eAG/B,CAACT,GAAGC,MACHF;AAAA,MACEO,EAASN,GAAGS,EAAK,QAAQ;AAAA,MACzBH,EAASL,GAAGQ,EAAK,QAAQ;AAAA,IAAA,IAEzBO,IAASP,EAAK,cAAc,SAAS,KAAK;AAEhD,WAAON,EACJ,IAAI,CAACI,GAAKU,OAAW,EAAE,KAAAV,GAAK,OAAAU,EAAA,EAAQ,EACpC,KAAK,CAACjB,GAAGC,MAAM;AACd,YAAMiB,IAASH,EAAQf,EAAE,KAAKC,EAAE,GAAG;AACnC,aAAOiB,MAAW,IAAIA,IAASF,IAAShB,EAAE,QAAQC,EAAE;AAAA,IACtD,CAAC,EACA,IAAI,CAACkB,MAAUA,EAAM,GAAG;AAAA,EAC7B,GAAG,CAAChB,GAAMM,GAAMJ,GAAaC,CAAQ,CAAC,GAEjB,MAAAG,GAAM,SAAAC,GAAS,YAAAE,GAAY,kBAAAE,EAAA;AAClD;"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
const y = {
|
|
3
|
+
page: "tbl_page",
|
|
4
|
+
size: "tbl_size",
|
|
5
|
+
sort: "tbl_sort",
|
|
6
|
+
filter: "tbl_filter"
|
|
7
|
+
};
|
|
8
|
+
function b(e, r) {
|
|
9
|
+
return typeof e == "function" ? e(r) : e;
|
|
10
|
+
}
|
|
11
|
+
function z(e, {
|
|
12
|
+
defaultPageSize: r = 10,
|
|
13
|
+
paramKeys: i
|
|
14
|
+
} = {}) {
|
|
15
|
+
const a = i ?? y, o = new URLSearchParams(e), t = Number(o.get(a.page)), s = Number.isFinite(t) && t >= 1 ? Math.floor(t) - 1 : 0, c = Number(o.get(a.size)), S = Number.isFinite(c) && c >= 1 ? Math.floor(c) : r, g = o.get(a.sort), m = /* @__PURE__ */ new Map();
|
|
16
|
+
if (g)
|
|
17
|
+
for (const l of g.split(",")) {
|
|
18
|
+
const f = l.indexOf(":");
|
|
19
|
+
if (f === -1) continue;
|
|
20
|
+
const p = l.slice(0, f), h = l.slice(f + 1);
|
|
21
|
+
!p || h !== "asc" && h !== "desc" || m.set(p, { id: p, desc: h === "desc" });
|
|
22
|
+
}
|
|
23
|
+
const n = Array.from(m.values()), d = o.get(a.filter), w = d ? d.split(",").map((l) => {
|
|
24
|
+
const f = l.indexOf(":");
|
|
25
|
+
if (f === -1) return null;
|
|
26
|
+
const p = l.slice(0, f);
|
|
27
|
+
if (!p) return null;
|
|
28
|
+
try {
|
|
29
|
+
return { id: p, value: decodeURIComponent(l.slice(f + 1)) };
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}).filter((l) => l !== null) : [];
|
|
34
|
+
return { pagination: { pageIndex: s, pageSize: S }, sorting: n, columnFilters: w };
|
|
35
|
+
}
|
|
36
|
+
function P(e, r, {
|
|
37
|
+
defaultPageSize: i = 10,
|
|
38
|
+
paramKeys: a
|
|
39
|
+
} = {}) {
|
|
40
|
+
const o = a ?? y, t = new URLSearchParams(r);
|
|
41
|
+
for (const s of Object.values(o)) t.delete(s);
|
|
42
|
+
return e.pagination.pageIndex > 0 && t.set(o.page, String(e.pagination.pageIndex + 1)), e.pagination.pageSize !== i && t.set(o.size, String(e.pagination.pageSize)), e.sorting.length > 0 && t.set(
|
|
43
|
+
o.sort,
|
|
44
|
+
e.sorting.map((s) => `${s.id}:${s.desc ? "desc" : "asc"}`).join(",")
|
|
45
|
+
), e.columnFilters.length > 0 && t.set(
|
|
46
|
+
o.filter,
|
|
47
|
+
e.columnFilters.map((s) => `${s.id}:${encodeURIComponent(s.value)}`).join(",")
|
|
48
|
+
), t.toString();
|
|
49
|
+
}
|
|
50
|
+
function R(e, r) {
|
|
51
|
+
const i = typeof window < "u" ? window.location.search : "";
|
|
52
|
+
return z(i, { defaultPageSize: e, paramKeys: r });
|
|
53
|
+
}
|
|
54
|
+
function U(e = {}) {
|
|
55
|
+
const { defaultPageSize: r = 10 } = e, i = u.useMemo(
|
|
56
|
+
() => ({ ...y, ...e.paramKeys }),
|
|
57
|
+
[e.paramKeys]
|
|
58
|
+
), [a, o] = u.useState(
|
|
59
|
+
() => R(r, i)
|
|
60
|
+
), t = u.useRef(a);
|
|
61
|
+
t.current = a;
|
|
62
|
+
const s = u.useRef(!1);
|
|
63
|
+
u.useEffect(() => {
|
|
64
|
+
if (typeof window > "u") return;
|
|
65
|
+
const n = () => {
|
|
66
|
+
o(R(r, i));
|
|
67
|
+
};
|
|
68
|
+
return window.addEventListener("popstate", n), () => window.removeEventListener("popstate", n);
|
|
69
|
+
}, [r, i]);
|
|
70
|
+
const c = u.useCallback(
|
|
71
|
+
(n) => {
|
|
72
|
+
if (t.current = n, o(n), typeof window > "u") return;
|
|
73
|
+
const d = P(n, window.location.search, {
|
|
74
|
+
defaultPageSize: r,
|
|
75
|
+
paramKeys: i
|
|
76
|
+
}), w = `${window.location.pathname}${d ? `?${d}` : ""}${window.location.hash}`;
|
|
77
|
+
s.current ? window.history.replaceState(null, "", w) : (window.history.pushState(null, "", w), s.current = !0, queueMicrotask(() => {
|
|
78
|
+
s.current = !1;
|
|
79
|
+
}));
|
|
80
|
+
},
|
|
81
|
+
[r, i]
|
|
82
|
+
), S = u.useCallback(
|
|
83
|
+
(n) => {
|
|
84
|
+
c({
|
|
85
|
+
...t.current,
|
|
86
|
+
pagination: b(n, t.current.pagination)
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
[c]
|
|
90
|
+
), g = u.useCallback(
|
|
91
|
+
(n) => {
|
|
92
|
+
c({
|
|
93
|
+
...t.current,
|
|
94
|
+
sorting: b(n, t.current.sorting)
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
[c]
|
|
98
|
+
), m = u.useCallback(
|
|
99
|
+
(n) => {
|
|
100
|
+
c({
|
|
101
|
+
...t.current,
|
|
102
|
+
columnFilters: b(n, t.current.columnFilters)
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
[c]
|
|
106
|
+
);
|
|
107
|
+
return { state: a, setPagination: S, setSorting: g, setColumnFilters: m };
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
y as DEFAULT_TABLE_URL_PARAM_KEYS,
|
|
111
|
+
z as parseTableUrlState,
|
|
112
|
+
P as serializeTableUrlState,
|
|
113
|
+
U as useTableUrlState
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=use-table-url-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-table-url-state.js","sources":["../../src/hooks/use-table-url-state.ts"],"sourcesContent":["import * as React from 'react';\n\nexport interface TablePaginationState {\n /** Zero-based page index. */\n pageIndex: number;\n /** Rows per page. */\n pageSize: number;\n}\n\nexport interface TableSortingState {\n /** Column id. */\n id: string;\n /** `true` for descending. */\n desc: boolean;\n}\n\nexport interface TableColumnFilterState {\n /** Column id. */\n id: string;\n /** Filter value (string-encoded in the URL). */\n value: string;\n}\n\n/**\n * Controlled table state. The three fields mirror TanStack's `PaginationState`,\n * `SortingState`, and `ColumnFiltersState` shapes (filter value narrowed to\n * `string`) so they can wire straight into `onPaginationChange` /\n * `onSortingChange` / `onColumnFiltersChange`.\n */\nexport interface TableUrlState {\n pagination: TablePaginationState;\n sorting: TableSortingState[];\n columnFilters: TableColumnFilterState[];\n}\n\n/** Query-string keys. Namespaced (`tbl_*`) to avoid collisions with Storybook's\n * own `path`/`args`/`globals` params on a shared preview-iframe URL. */\nexport interface TableUrlParamKeys {\n page: string;\n size: string;\n sort: string;\n filter: string;\n}\n\nexport const DEFAULT_TABLE_URL_PARAM_KEYS: TableUrlParamKeys = {\n page: 'tbl_page',\n size: 'tbl_size',\n sort: 'tbl_sort',\n filter: 'tbl_filter',\n};\n\nexport interface UseTableUrlStateOptions {\n /** Default page size; omitted from the URL when the size matches it. */\n defaultPageSize?: number;\n /** Override the namespaced query-string keys. */\n paramKeys?: Partial<TableUrlParamKeys>;\n}\n\nexport type TableUrlUpdater<T> = T | ((old: T) => T);\n\nexport interface UseTableUrlStateResult {\n state: TableUrlState;\n /** Accepts a value or updater — shaped for TanStack's `onPaginationChange`. */\n setPagination: (updater: TableUrlUpdater<TablePaginationState>) => void;\n /** Accepts a value or updater — shaped for TanStack's `onSortingChange`. */\n setSorting: (updater: TableUrlUpdater<TableSortingState[]>) => void;\n /** Accepts a value or updater — shaped for TanStack's `onColumnFiltersChange`. */\n setColumnFilters: (\n updater: TableUrlUpdater<TableColumnFilterState[]>\n ) => void;\n}\n\nfunction applyUpdater<T>(updater: TableUrlUpdater<T>, old: T): T {\n return typeof updater === 'function'\n ? (updater as (old: T) => T)(old)\n : updater;\n}\n\n/**\n * Parses table state out of a query string. Pure — safe to reuse for seeding a\n * story or an SSR default. `search` may include or omit the leading `?`.\n *\n * Encoding: `tbl_page` is 1-based; `tbl_sort` is `id:asc|desc` pairs joined by\n * `,`; `tbl_filter` is `id:<encoded-value>` pairs joined by `,` (the value is\n * `encodeURIComponent`-escaped so it may contain `:`/`,`). Column ids must not\n * contain `:` or `,`.\n */\nexport function parseTableUrlState(\n search: string,\n {\n defaultPageSize = 10,\n paramKeys,\n }: { defaultPageSize?: number; paramKeys?: TableUrlParamKeys } = {}\n): TableUrlState {\n const keys = paramKeys ?? DEFAULT_TABLE_URL_PARAM_KEYS;\n const params = new URLSearchParams(search);\n\n const rawPage = Number(params.get(keys.page));\n const pageIndex =\n Number.isFinite(rawPage) && rawPage >= 1 ? Math.floor(rawPage) - 1 : 0;\n\n const rawSize = Number(params.get(keys.size));\n const pageSize =\n Number.isFinite(rawSize) && rawSize >= 1 ? Math.floor(rawSize) : defaultPageSize;\n\n const sortParam = params.get(keys.sort);\n const sortingById = new Map<string, TableSortingState>();\n if (sortParam) {\n for (const pair of sortParam.split(',')) {\n const separator = pair.indexOf(':');\n if (separator === -1) continue;\n const id = pair.slice(0, separator);\n const dir = pair.slice(separator + 1);\n if (!id || (dir !== 'asc' && dir !== 'desc')) continue;\n // Last occurrence wins on a duplicate id — matches URLSearchParams'\n // own semantics for a repeated key.\n sortingById.set(id, { id, desc: dir === 'desc' });\n }\n }\n const sorting: TableSortingState[] = Array.from(sortingById.values());\n\n const filterParam = params.get(keys.filter);\n const columnFilters: TableColumnFilterState[] = filterParam\n ? filterParam\n .split(',')\n .map((pair) => {\n const separator = pair.indexOf(':');\n if (separator === -1) return null;\n const id = pair.slice(0, separator);\n if (!id) return null;\n try {\n return { id, value: decodeURIComponent(pair.slice(separator + 1)) };\n } catch {\n return null;\n }\n })\n .filter((entry): entry is TableColumnFilterState => entry !== null)\n : [];\n\n return { pagination: { pageIndex, pageSize }, sorting, columnFilters };\n}\n\n/**\n * Serializes table state onto a query string, preserving any foreign params\n * already present in `search` (e.g. Storybook's `path`/`args`/`globals`).\n * Returns the query string without a leading `?` (empty string when no params).\n */\nexport function serializeTableUrlState(\n state: TableUrlState,\n search: string,\n {\n defaultPageSize = 10,\n paramKeys,\n }: { defaultPageSize?: number; paramKeys?: TableUrlParamKeys } = {}\n): string {\n const keys = paramKeys ?? DEFAULT_TABLE_URL_PARAM_KEYS;\n const params = new URLSearchParams(search);\n\n // Clear our namespaced keys before rewriting so a cleared field drops out.\n for (const key of Object.values(keys)) params.delete(key);\n\n if (state.pagination.pageIndex > 0) {\n params.set(keys.page, String(state.pagination.pageIndex + 1));\n }\n if (state.pagination.pageSize !== defaultPageSize) {\n params.set(keys.size, String(state.pagination.pageSize));\n }\n if (state.sorting.length > 0) {\n params.set(\n keys.sort,\n state.sorting\n .map((entry) => `${entry.id}:${entry.desc ? 'desc' : 'asc'}`)\n .join(',')\n );\n }\n if (state.columnFilters.length > 0) {\n params.set(\n keys.filter,\n state.columnFilters\n .map((entry) => `${entry.id}:${encodeURIComponent(entry.value)}`)\n .join(',')\n );\n }\n\n return params.toString();\n}\n\nfunction readCurrentState(\n defaultPageSize: number,\n paramKeys: TableUrlParamKeys\n): TableUrlState {\n const search = typeof window !== 'undefined' ? window.location.search : '';\n return parseTableUrlState(search, { defaultPageSize, paramKeys });\n}\n\n/**\n * Router-agnostic hook that syncs controlled table state (pagination / sorting\n * / column filters) to and from the URL query string via `history.pushState` +\n * `popstate`. Depends only on `window.location` / `window.history`, so it works\n * with any router (or none). Query keys are namespaced (`tbl_*`) so they never\n * collide with other params on the same URL. Reads initial state from the URL,\n * so a bookmarked link restores the table's view.\n */\nexport function useTableUrlState(\n options: UseTableUrlStateOptions = {}\n): UseTableUrlStateResult {\n const { defaultPageSize = 10 } = options;\n const paramKeys = React.useMemo<TableUrlParamKeys>(\n () => ({ ...DEFAULT_TABLE_URL_PARAM_KEYS, ...options.paramKeys }),\n [options.paramKeys]\n );\n\n const [state, setState] = React.useState<TableUrlState>(() =>\n readCurrentState(defaultPageSize, paramKeys)\n );\n\n // Keep a ref of the latest state so `popstate` and the setters can compute\n // the next URL/state without re-subscribing on every change.\n const stateRef = React.useRef(state);\n stateRef.current = state;\n\n // Coalesce multiple setters called synchronously in the same handler (e.g. a\n // filter change that also resets the page) into a single history entry: the\n // first commit in a tick pushes, later ones in the same tick replace. The\n // flag clears on a microtask so the next distinct user action pushes again.\n const hasPushedThisTickRef = React.useRef(false);\n\n React.useEffect(() => {\n if (typeof window === 'undefined') return;\n const onPopState = () => {\n setState(readCurrentState(defaultPageSize, paramKeys));\n };\n window.addEventListener('popstate', onPopState);\n return () => window.removeEventListener('popstate', onPopState);\n }, [defaultPageSize, paramKeys]);\n\n const commit = React.useCallback(\n (next: TableUrlState) => {\n // Refresh the ref here, not just in the render body — two setters\n // called synchronously in the same handler (before React re-renders)\n // must see each other's updates, not the pre-batch snapshot.\n stateRef.current = next;\n setState(next);\n if (typeof window === 'undefined') return;\n const query = serializeTableUrlState(next, window.location.search, {\n defaultPageSize,\n paramKeys,\n });\n const url = `${window.location.pathname}${query ? `?${query}` : ''}${window.location.hash}`;\n if (hasPushedThisTickRef.current) {\n window.history.replaceState(null, '', url);\n } else {\n window.history.pushState(null, '', url);\n hasPushedThisTickRef.current = true;\n queueMicrotask(() => {\n hasPushedThisTickRef.current = false;\n });\n }\n },\n [defaultPageSize, paramKeys]\n );\n\n const setPagination = React.useCallback(\n (updater: TableUrlUpdater<TablePaginationState>) => {\n commit({\n ...stateRef.current,\n pagination: applyUpdater(updater, stateRef.current.pagination),\n });\n },\n [commit]\n );\n\n const setSorting = React.useCallback(\n (updater: TableUrlUpdater<TableSortingState[]>) => {\n commit({\n ...stateRef.current,\n sorting: applyUpdater(updater, stateRef.current.sorting),\n });\n },\n [commit]\n );\n\n const setColumnFilters = React.useCallback(\n (updater: TableUrlUpdater<TableColumnFilterState[]>) => {\n commit({\n ...stateRef.current,\n columnFilters: applyUpdater(updater, stateRef.current.columnFilters),\n });\n },\n [commit]\n );\n\n return { state, setPagination, setSorting, setColumnFilters };\n}\n"],"names":["DEFAULT_TABLE_URL_PARAM_KEYS","applyUpdater","updater","old","parseTableUrlState","search","defaultPageSize","paramKeys","keys","params","rawPage","pageIndex","rawSize","pageSize","sortParam","sortingById","pair","separator","id","dir","sorting","filterParam","columnFilters","entry","serializeTableUrlState","state","key","readCurrentState","useTableUrlState","options","React","setState","stateRef","hasPushedThisTickRef","onPopState","commit","next","query","url","setPagination","setSorting","setColumnFilters"],"mappings":";AA4CO,MAAMA,IAAkD;AAAA,EAC7D,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AACV;AAuBA,SAASC,EAAgBC,GAA6BC,GAAW;AAC/D,SAAO,OAAOD,KAAY,aACrBA,EAA0BC,CAAG,IAC9BD;AACN;AAWO,SAASE,EACdC,GACA;AAAA,EACE,iBAAAC,IAAkB;AAAA,EAClB,WAAAC;AACF,IAAiE,IAClD;AACf,QAAMC,IAAOD,KAAaP,GACpBS,IAAS,IAAI,gBAAgBJ,CAAM,GAEnCK,IAAU,OAAOD,EAAO,IAAID,EAAK,IAAI,CAAC,GACtCG,IACJ,OAAO,SAASD,CAAO,KAAKA,KAAW,IAAI,KAAK,MAAMA,CAAO,IAAI,IAAI,GAEjEE,IAAU,OAAOH,EAAO,IAAID,EAAK,IAAI,CAAC,GACtCK,IACJ,OAAO,SAASD,CAAO,KAAKA,KAAW,IAAI,KAAK,MAAMA,CAAO,IAAIN,GAE7DQ,IA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