@g4rcez/components 5.0.0 → 5.0.2
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/{MotionConfig-BLwtdAWy.js → MotionConfig-DKKYqBH2.js} +2 -2
- package/dist/{MotionConfig-BLwtdAWy.js.map → MotionConfig-DKKYqBH2.js.map} +1 -1
- package/dist/{autocomplete-DVKTP0Il.js → autocomplete-D3VOTihi.js} +2 -2
- package/dist/{autocomplete-DVKTP0Il.js.map → autocomplete-D3VOTihi.js.map} +1 -1
- package/dist/{calendar-_DZjphH8.js → calendar-PCCZDUIL.js} +4 -4
- package/dist/{calendar-_DZjphH8.js.map → calendar-PCCZDUIL.js.map} +1 -1
- package/dist/components/core/button.d.ts.map +1 -0
- package/dist/components/core/heading.d.ts.map +1 -0
- package/dist/components/core/polymorph.d.ts.map +1 -0
- package/dist/components/core/render-on-view.d.ts.map +1 -0
- package/dist/components/core/resizable.d.ts.map +1 -0
- package/dist/components/core/slot.d.ts.map +1 -0
- package/dist/components/core/tag.d.ts.map +1 -0
- package/dist/components/core/typography.d.ts.map +1 -0
- package/dist/components/display/alert.d.ts.map +1 -0
- package/dist/components/display/alert.js +1 -1
- package/dist/components/display/calendar.d.ts.map +1 -0
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/card.d.ts.map +1 -0
- package/dist/components/display/empty.d.ts.map +1 -0
- package/dist/components/display/list.d.ts.map +1 -0
- package/dist/components/display/list.js +2 -2
- package/dist/components/display/notifications.d.ts.map +1 -0
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/display/progress.d.ts.map +1 -0
- package/dist/components/display/shortcut.d.ts.map +1 -0
- package/dist/components/display/skeleton.d.ts.map +1 -0
- package/dist/components/display/spinner.d.ts.map +1 -0
- package/dist/components/display/stats.d.ts.map +1 -0
- package/dist/components/display/step.d.ts.map +1 -0
- package/dist/components/display/tabs.d.ts.map +1 -0
- package/dist/components/display/timeline.d.ts.map +1 -0
- package/dist/components/floating/command-palette.d.ts.map +1 -0
- package/dist/components/floating/dropdown.d.ts.map +1 -0
- package/dist/components/floating/expand.d.ts.map +1 -0
- package/dist/components/floating/expand.js +1 -1
- package/dist/components/floating/menu.d.ts.map +1 -0
- package/dist/components/floating/modal.d.ts.map +1 -0
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/floating/toolbar.d.ts.map +1 -0
- package/dist/components/floating/tooltip.d.ts.map +1 -0
- package/dist/components/floating/wizard.d.ts.map +1 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -0
- package/dist/components/form/autocomplete.js +1 -1
- package/dist/components/form/checkbox.d.ts.map +1 -0
- package/dist/components/form/date-picker.d.ts.map +1 -0
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/file-upload.d.ts.map +1 -0
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/formReset.d.ts.map +1 -0
- package/dist/components/form/free-text.d.ts.map +1 -0
- package/dist/components/form/input-field.d.ts.map +1 -0
- package/dist/components/form/input.d.ts.map +1 -0
- package/dist/components/form/multi-select.d.ts.map +1 -0
- package/dist/components/form/radiobox.d.ts.map +1 -0
- package/dist/components/form/select.d.ts.map +1 -0
- package/dist/components/form/slider.d.ts.map +1 -0
- package/dist/components/form/switch.d.ts.map +1 -0
- package/dist/components/form/task-list.d.ts.map +1 -0
- package/dist/components/form/textarea.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -0
- package/dist/components/page-calendar/day-view.d.ts.map +1 -0
- package/dist/components/page-calendar/event-pill.d.ts.map +1 -0
- package/dist/components/page-calendar/index.d.ts.map +1 -0
- package/dist/components/page-calendar/month-view.d.ts.map +1 -0
- package/dist/components/page-calendar/page-calendar.d.ts.map +1 -0
- package/dist/components/page-calendar/page-calendar.types.d.ts.map +1 -0
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
- package/dist/components/page-calendar/week-view.d.ts.map +1 -0
- package/dist/components/table/filter.d.ts.map +1 -0
- package/dist/components/table/group.d.ts.map +1 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/inner-table.d.ts.map +1 -0
- package/dist/components/table/metadata.d.ts.map +1 -0
- package/dist/components/table/pagination.d.ts.map +1 -0
- package/dist/components/table/row.d.ts.map +1 -0
- package/dist/components/table/sort.d.ts.map +1 -0
- package/dist/components/table/table-lib.d.ts.map +1 -0
- package/dist/components/table/table.context.d.ts.map +1 -0
- package/dist/components/table/table.js +1 -1
- package/dist/components/table/thead.d.ts.map +1 -0
- package/dist/config/context.d.ts.map +1 -0
- package/dist/config/default-translations.d.ts.map +1 -0
- package/dist/config/default-tweaks.d.ts.map +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/{date-picker-9q_Ki5Vu.js → date-picker-BhKEFZew.js} +2 -2
- package/dist/{date-picker-9q_Ki5Vu.js.map → date-picker-BhKEFZew.js.map} +1 -1
- package/dist/{dist-Buc00Zls.js → dist-BrGpYRaj.js} +56 -55
- package/dist/{dist-Buc00Zls.js.map → dist-BrGpYRaj.js.map} +1 -1
- package/dist/{file-upload-COk6_Bs5.js → file-upload-DWbZfeG5.js} +15 -15
- package/dist/{file-upload-COk6_Bs5.js.map → file-upload-DWbZfeG5.js.map} +1 -1
- package/dist/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/hooks/use-color-parser.d.ts.map +1 -0
- package/dist/hooks/use-components-provider.d.ts.map +1 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-floating-ref.d.ts.map +1 -0
- package/dist/hooks/use-form.d.ts.map +1 -0
- package/dist/hooks/use-hover.d.ts.map +1 -0
- package/dist/hooks/use-input-id.d.ts.map +1 -0
- package/dist/hooks/use-is-coarse-device.d.ts.map +1 -0
- package/dist/hooks/use-locale.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-on-event.d.ts.map +1 -0
- package/dist/hooks/use-parent.d.ts.map +1 -0
- package/dist/hooks/use-preferences.d.ts.map +1 -0
- package/dist/hooks/use-previous.d.ts.map +1 -0
- package/dist/hooks/use-reactive.d.ts.map +1 -0
- package/dist/hooks/use-remove-scroll.d.ts.map +1 -0
- package/dist/hooks/use-resize-observer.d.ts.map +1 -0
- package/dist/hooks/use-stable-ref.d.ts.map +1 -0
- package/dist/hooks/use-swipe.d.ts.map +1 -0
- package/dist/hooks/use-translations.d.ts.map +1 -0
- package/dist/hooks/use-tweaks.d.ts.map +1 -0
- package/dist/hooks/use-window-size.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -7933
- package/dist/index.js.map +1 -1
- package/dist/lib/combi-keys.d.ts.map +1 -0
- package/dist/lib/dict.d.ts.map +1 -0
- package/dist/lib/dom.d.ts.map +1 -0
- package/dist/lib/fns.d.ts.map +1 -0
- package/dist/lib/fzf.d.ts.map +1 -0
- package/dist/lib/keyboard-area.d.ts.map +1 -0
- package/dist/{modal-Cn-OaKRp.js → modal-Bz-61ays.js} +3 -3
- package/dist/{modal-Cn-OaKRp.js.map → modal-Bz-61ays.js.map} +1 -1
- package/dist/{notifications-l_B9J4Gx.js → notifications-MT4XkLov.js} +270 -269
- package/dist/{notifications-l_B9J4Gx.js.map → notifications-MT4XkLov.js.map} +1 -1
- package/dist/{proxy-Drpz0Avo.js → proxy-BcJ_5Dwq.js} +465 -468
- package/dist/{proxy-Drpz0Avo.js.map → proxy-BcJ_5Dwq.js.map} +1 -1
- package/dist/{table-Dql6Yzag.js → table-CUFbAI2k.js} +3 -3
- package/dist/{table-Dql6Yzag.js.map → table-CUFbAI2k.js.map} +1 -1
- package/dist/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/components/core/button.d.ts.map +0 -1
- package/dist/src/components/core/heading.d.ts.map +0 -1
- package/dist/src/components/core/polymorph.d.ts.map +0 -1
- package/dist/src/components/core/render-on-view.d.ts.map +0 -1
- package/dist/src/components/core/resizable.d.ts.map +0 -1
- package/dist/src/components/core/slot.d.ts.map +0 -1
- package/dist/src/components/core/tag.d.ts.map +0 -1
- package/dist/src/components/core/typography.d.ts.map +0 -1
- package/dist/src/components/display/alert.d.ts.map +0 -1
- package/dist/src/components/display/calendar.d.ts.map +0 -1
- package/dist/src/components/display/card.d.ts.map +0 -1
- package/dist/src/components/display/empty.d.ts.map +0 -1
- package/dist/src/components/display/list.d.ts.map +0 -1
- package/dist/src/components/display/notifications.d.ts.map +0 -1
- package/dist/src/components/display/progress.d.ts.map +0 -1
- package/dist/src/components/display/shortcut.d.ts.map +0 -1
- package/dist/src/components/display/skeleton.d.ts.map +0 -1
- package/dist/src/components/display/spinner.d.ts.map +0 -1
- package/dist/src/components/display/stats.d.ts.map +0 -1
- package/dist/src/components/display/step.d.ts.map +0 -1
- package/dist/src/components/display/tabs.d.ts.map +0 -1
- package/dist/src/components/display/timeline.d.ts.map +0 -1
- package/dist/src/components/floating/command-palette.d.ts.map +0 -1
- package/dist/src/components/floating/dropdown.d.ts.map +0 -1
- package/dist/src/components/floating/expand.d.ts.map +0 -1
- package/dist/src/components/floating/menu.d.ts.map +0 -1
- package/dist/src/components/floating/modal.d.ts.map +0 -1
- package/dist/src/components/floating/toolbar.d.ts.map +0 -1
- package/dist/src/components/floating/tooltip.d.ts.map +0 -1
- package/dist/src/components/floating/wizard.d.ts.map +0 -1
- package/dist/src/components/form/autocomplete.d.ts.map +0 -1
- package/dist/src/components/form/checkbox.d.ts.map +0 -1
- package/dist/src/components/form/date-picker.d.ts.map +0 -1
- package/dist/src/components/form/file-upload.d.ts.map +0 -1
- package/dist/src/components/form/form.d.ts.map +0 -1
- package/dist/src/components/form/formReset.d.ts.map +0 -1
- package/dist/src/components/form/free-text.d.ts.map +0 -1
- package/dist/src/components/form/input-field.d.ts.map +0 -1
- package/dist/src/components/form/input.d.ts.map +0 -1
- package/dist/src/components/form/multi-select.d.ts.map +0 -1
- package/dist/src/components/form/radiobox.d.ts.map +0 -1
- package/dist/src/components/form/select.d.ts.map +0 -1
- package/dist/src/components/form/slider.d.ts.map +0 -1
- package/dist/src/components/form/switch.d.ts.map +0 -1
- package/dist/src/components/form/task-list.d.ts.map +0 -1
- package/dist/src/components/form/textarea.d.ts.map +0 -1
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/src/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/src/components/page-calendar/index.d.ts.map +0 -1
- package/dist/src/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/src/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/src/components/table/filter.d.ts.map +0 -1
- package/dist/src/components/table/group.d.ts.map +0 -1
- package/dist/src/components/table/index.d.ts.map +0 -1
- package/dist/src/components/table/inner-table.d.ts.map +0 -1
- package/dist/src/components/table/metadata.d.ts.map +0 -1
- package/dist/src/components/table/pagination.d.ts.map +0 -1
- package/dist/src/components/table/row.d.ts.map +0 -1
- package/dist/src/components/table/sort.d.ts.map +0 -1
- package/dist/src/components/table/table-lib.d.ts.map +0 -1
- package/dist/src/components/table/table.context.d.ts.map +0 -1
- package/dist/src/components/table/thead.d.ts.map +0 -1
- package/dist/src/config/context.d.ts.map +0 -1
- package/dist/src/config/default-translations.d.ts.map +0 -1
- package/dist/src/config/default-tweaks.d.ts.map +0 -1
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/src/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/src/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/src/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-form.d.ts.map +0 -1
- package/dist/src/hooks/use-hover.d.ts.map +0 -1
- package/dist/src/hooks/use-input-id.d.ts.map +0 -1
- package/dist/src/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/src/hooks/use-locale.d.ts.map +0 -1
- package/dist/src/hooks/use-media-query.d.ts.map +0 -1
- package/dist/src/hooks/use-on-event.d.ts.map +0 -1
- package/dist/src/hooks/use-parent.d.ts.map +0 -1
- package/dist/src/hooks/use-preferences.d.ts.map +0 -1
- package/dist/src/hooks/use-previous.d.ts.map +0 -1
- package/dist/src/hooks/use-reactive.d.ts.map +0 -1
- package/dist/src/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/src/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/src/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-swipe.d.ts.map +0 -1
- package/dist/src/hooks/use-translations.d.ts.map +0 -1
- package/dist/src/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/src/hooks/use-window-size.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -20
- package/dist/src/lib/combi-keys.d.ts.map +0 -1
- package/dist/src/lib/dict.d.ts.map +0 -1
- package/dist/src/lib/dom.d.ts.map +0 -1
- package/dist/src/lib/fns.d.ts.map +0 -1
- package/dist/src/lib/fzf.d.ts.map +0 -1
- package/dist/src/lib/keyboard-area.d.ts.map +0 -1
- package/dist/src/styles/common.d.ts +0 -8
- package/dist/src/styles/common.d.ts.map +0 -1
- package/dist/src/styles/common.js +0 -20
- package/dist/src/styles/components.d.ts +0 -3
- package/dist/src/styles/components.d.ts.map +0 -1
- package/dist/src/styles/components.js +0 -397
- package/dist/src/styles/dark.d.ts +0 -3
- package/dist/src/styles/dark.d.ts.map +0 -1
- package/dist/src/styles/dark.js +0 -217
- package/dist/src/styles/default-tokens.d.ts +0 -74
- package/dist/src/styles/default-tokens.d.ts.map +0 -1
- package/dist/src/styles/default-tokens.js +0 -41
- package/dist/src/styles/design-tokens.d.ts +0 -29
- package/dist/src/styles/design-tokens.d.ts.map +0 -1
- package/dist/src/styles/design-tokens.js +0 -73
- package/dist/src/styles/light.d.ts +0 -3
- package/dist/src/styles/light.d.ts.map +0 -1
- package/dist/src/styles/light.js +0 -217
- package/dist/src/styles/theme.d.ts +0 -3
- package/dist/src/styles/theme.d.ts.map +0 -1
- package/dist/src/styles/theme.js +0 -4
- package/dist/src/styles/theme.types.d.ts +0 -540
- package/dist/src/styles/theme.types.d.ts.map +0 -1
- package/dist/src/styles/theme.types.js +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- package/dist/with-selector-BAUQ-vKK.js +0 -187
- package/dist/with-selector-BAUQ-vKK.js.map +0 -1
- /package/dist/{src/components → components}/core/button.d.ts +0 -0
- /package/dist/{src/components → components}/core/button.jsx +0 -0
- /package/dist/{src/components → components}/core/heading.d.ts +0 -0
- /package/dist/{src/components → components}/core/heading.jsx +0 -0
- /package/dist/{src/components → components}/core/polymorph.d.ts +0 -0
- /package/dist/{src/components → components}/core/polymorph.jsx +0 -0
- /package/dist/{src/components → components}/core/render-on-view.d.ts +0 -0
- /package/dist/{src/components → components}/core/render-on-view.jsx +0 -0
- /package/dist/{src/components → components}/core/resizable.d.ts +0 -0
- /package/dist/{src/components → components}/core/resizable.jsx +0 -0
- /package/dist/{src/components → components}/core/slot.d.ts +0 -0
- /package/dist/{src/components → components}/core/slot.jsx +0 -0
- /package/dist/{src/components → components}/core/tag.d.ts +0 -0
- /package/dist/{src/components → components}/core/tag.jsx +0 -0
- /package/dist/{src/components → components}/core/typography.d.ts +0 -0
- /package/dist/{src/components → components}/core/typography.jsx +0 -0
- /package/dist/{src/components → components}/display/alert.d.ts +0 -0
- /package/dist/{src/components → components}/display/alert.jsx +0 -0
- /package/dist/{src/components → components}/display/calendar.d.ts +0 -0
- /package/dist/{src/components → components}/display/calendar.jsx +0 -0
- /package/dist/{src/components → components}/display/card.d.ts +0 -0
- /package/dist/{src/components → components}/display/card.jsx +0 -0
- /package/dist/{src/components → components}/display/empty.d.ts +0 -0
- /package/dist/{src/components → components}/display/empty.jsx +0 -0
- /package/dist/{src/components → components}/display/list.d.ts +0 -0
- /package/dist/{src/components → components}/display/list.jsx +0 -0
- /package/dist/{src/components → components}/display/notifications.d.ts +0 -0
- /package/dist/{src/components → components}/display/notifications.jsx +0 -0
- /package/dist/{src/components → components}/display/progress.d.ts +0 -0
- /package/dist/{src/components → components}/display/progress.jsx +0 -0
- /package/dist/{src/components → components}/display/shortcut.d.ts +0 -0
- /package/dist/{src/components → components}/display/shortcut.jsx +0 -0
- /package/dist/{src/components → components}/display/skeleton.d.ts +0 -0
- /package/dist/{src/components → components}/display/skeleton.jsx +0 -0
- /package/dist/{src/components → components}/display/spinner.d.ts +0 -0
- /package/dist/{src/components → components}/display/spinner.jsx +0 -0
- /package/dist/{src/components → components}/display/stats.d.ts +0 -0
- /package/dist/{src/components → components}/display/stats.jsx +0 -0
- /package/dist/{src/components → components}/display/step.d.ts +0 -0
- /package/dist/{src/components → components}/display/step.jsx +0 -0
- /package/dist/{src/components → components}/display/tabs.d.ts +0 -0
- /package/dist/{src/components → components}/display/tabs.jsx +0 -0
- /package/dist/{src/components → components}/display/timeline.d.ts +0 -0
- /package/dist/{src/components → components}/display/timeline.jsx +0 -0
- /package/dist/{src/components → components}/floating/command-palette.d.ts +0 -0
- /package/dist/{src/components → components}/floating/command-palette.jsx +0 -0
- /package/dist/{src/components → components}/floating/dropdown.d.ts +0 -0
- /package/dist/{src/components → components}/floating/dropdown.jsx +0 -0
- /package/dist/{src/components → components}/floating/expand.d.ts +0 -0
- /package/dist/{src/components → components}/floating/expand.jsx +0 -0
- /package/dist/{src/components → components}/floating/menu.d.ts +0 -0
- /package/dist/{src/components → components}/floating/menu.jsx +0 -0
- /package/dist/{src/components → components}/floating/modal.d.ts +0 -0
- /package/dist/{src/components → components}/floating/modal.jsx +0 -0
- /package/dist/{src/components → components}/floating/toolbar.d.ts +0 -0
- /package/dist/{src/components → components}/floating/toolbar.jsx +0 -0
- /package/dist/{src/components → components}/floating/tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/floating/tooltip.jsx +0 -0
- /package/dist/{src/components → components}/floating/wizard.d.ts +0 -0
- /package/dist/{src/components → components}/floating/wizard.jsx +0 -0
- /package/dist/{src/components → components}/form/autocomplete.d.ts +0 -0
- /package/dist/{src/components → components}/form/autocomplete.jsx +0 -0
- /package/dist/{src/components → components}/form/checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/form/checkbox.jsx +0 -0
- /package/dist/{src/components → components}/form/date-picker.d.ts +0 -0
- /package/dist/{src/components → components}/form/date-picker.jsx +0 -0
- /package/dist/{src/components → components}/form/file-upload.d.ts +0 -0
- /package/dist/{src/components → components}/form/file-upload.jsx +0 -0
- /package/dist/{src/components → components}/form/form.d.ts +0 -0
- /package/dist/{src/components → components}/form/form.jsx +0 -0
- /package/dist/{src/components → components}/form/formReset.d.ts +0 -0
- /package/dist/{src/components → components}/form/formReset.jsx +0 -0
- /package/dist/{src/components → components}/form/free-text.d.ts +0 -0
- /package/dist/{src/components → components}/form/free-text.jsx +0 -0
- /package/dist/{src/components → components}/form/input-field.d.ts +0 -0
- /package/dist/{src/components → components}/form/input-field.jsx +0 -0
- /package/dist/{src/components → components}/form/input.d.ts +0 -0
- /package/dist/{src/components → components}/form/input.jsx +0 -0
- /package/dist/{src/components → components}/form/multi-select.d.ts +0 -0
- /package/dist/{src/components → components}/form/multi-select.jsx +0 -0
- /package/dist/{src/components → components}/form/radiobox.d.ts +0 -0
- /package/dist/{src/components → components}/form/radiobox.jsx +0 -0
- /package/dist/{src/components → components}/form/select.d.ts +0 -0
- /package/dist/{src/components → components}/form/select.jsx +0 -0
- /package/dist/{src/components → components}/form/slider.d.ts +0 -0
- /package/dist/{src/components → components}/form/slider.jsx +0 -0
- /package/dist/{src/components → components}/form/switch.d.ts +0 -0
- /package/dist/{src/components → components}/form/switch.jsx +0 -0
- /package/dist/{src/components → components}/form/task-list.d.ts +0 -0
- /package/dist/{src/components → components}/form/task-list.jsx +0 -0
- /package/dist/{src/components → components}/form/textarea.d.ts +0 -0
- /package/dist/{src/components → components}/form/textarea.jsx +0 -0
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/components → components}/index.js +0 -0
- /package/dist/{src/components → components}/page-calendar/calendar-header.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/calendar-header.jsx +0 -0
- /package/dist/{src/components → components}/page-calendar/day-view.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/day-view.jsx +0 -0
- /package/dist/{src/components → components}/page-calendar/event-pill.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/event-pill.jsx +0 -0
- /package/dist/{src/components → components}/page-calendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/index.js +0 -0
- /package/dist/{src/components → components}/page-calendar/month-view.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/month-view.jsx +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.jsx +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.types.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.types.js +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.utils.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/page-calendar.utils.js +0 -0
- /package/dist/{src/components → components}/page-calendar/week-view.d.ts +0 -0
- /package/dist/{src/components → components}/page-calendar/week-view.jsx +0 -0
- /package/dist/{src/components → components}/table/filter.d.ts +0 -0
- /package/dist/{src/components → components}/table/filter.jsx +0 -0
- /package/dist/{src/components → components}/table/group.d.ts +0 -0
- /package/dist/{src/components → components}/table/group.jsx +0 -0
- /package/dist/{src/components → components}/table/index.d.ts +0 -0
- /package/dist/{src/components → components}/table/index.jsx +0 -0
- /package/dist/{src/components → components}/table/inner-table.d.ts +0 -0
- /package/dist/{src/components → components}/table/inner-table.jsx +0 -0
- /package/dist/{src/components → components}/table/metadata.d.ts +0 -0
- /package/dist/{src/components → components}/table/metadata.jsx +0 -0
- /package/dist/{src/components → components}/table/pagination.d.ts +0 -0
- /package/dist/{src/components → components}/table/pagination.jsx +0 -0
- /package/dist/{src/components → components}/table/row.d.ts +0 -0
- /package/dist/{src/components → components}/table/row.jsx +0 -0
- /package/dist/{src/components → components}/table/sort.d.ts +0 -0
- /package/dist/{src/components → components}/table/sort.jsx +0 -0
- /package/dist/{src/components → components}/table/table-lib.d.ts +0 -0
- /package/dist/{src/components → components}/table/table-lib.js +0 -0
- /package/dist/{src/components → components}/table/table.context.d.ts +0 -0
- /package/dist/{src/components → components}/table/table.context.jsx +0 -0
- /package/dist/{src/components → components}/table/thead.d.ts +0 -0
- /package/dist/{src/components → components}/table/thead.jsx +0 -0
- /package/dist/{src/config → config}/context.d.ts +0 -0
- /package/dist/{src/config → config}/context.js +0 -0
- /package/dist/{src/config → config}/default-translations.d.ts +0 -0
- /package/dist/{src/config → config}/default-translations.jsx +0 -0
- /package/dist/{src/config → config}/default-tweaks.d.ts +0 -0
- /package/dist/{src/config → config}/default-tweaks.js +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/constants.js → constants.js} +0 -0
- /package/dist/{src/hooks → hooks}/use-click-outside.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-click-outside.js +0 -0
- /package/dist/{src/hooks → hooks}/use-color-parser.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-color-parser.js +0 -0
- /package/dist/{src/hooks → hooks}/use-components-provider.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-components-provider.jsx +0 -0
- /package/dist/{src/hooks → hooks}/use-debounce.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-debounce.js +0 -0
- /package/dist/{src/hooks → hooks}/use-floating-ref.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-floating-ref.js +0 -0
- /package/dist/{src/hooks → hooks}/use-form.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-form.js +0 -0
- /package/dist/{src/hooks → hooks}/use-hover.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-hover.js +0 -0
- /package/dist/{src/hooks → hooks}/use-input-id.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-input-id.js +0 -0
- /package/dist/{src/hooks → hooks}/use-is-coarse-device.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-is-coarse-device.js +0 -0
- /package/dist/{src/hooks → hooks}/use-locale.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-locale.js +0 -0
- /package/dist/{src/hooks → hooks}/use-media-query.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-media-query.js +0 -0
- /package/dist/{src/hooks → hooks}/use-on-event.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-on-event.js +0 -0
- /package/dist/{src/hooks → hooks}/use-parent.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-parent.js +0 -0
- /package/dist/{src/hooks → hooks}/use-preferences.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-preferences.js +0 -0
- /package/dist/{src/hooks → hooks}/use-previous.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-previous.js +0 -0
- /package/dist/{src/hooks → hooks}/use-reactive.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-reactive.js +0 -0
- /package/dist/{src/hooks → hooks}/use-remove-scroll.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-remove-scroll.js +0 -0
- /package/dist/{src/hooks → hooks}/use-resize-observer.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-resize-observer.js +0 -0
- /package/dist/{src/hooks → hooks}/use-stable-ref.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-stable-ref.js +0 -0
- /package/dist/{src/hooks → hooks}/use-swipe.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-swipe.js +0 -0
- /package/dist/{src/hooks → hooks}/use-translations.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-translations.js +0 -0
- /package/dist/{src/hooks → hooks}/use-tweaks.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-tweaks.js +0 -0
- /package/dist/{src/hooks → hooks}/use-window-size.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/use-window-size.js +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/lib → lib}/combi-keys.d.ts +0 -0
- /package/dist/{src/lib → lib}/combi-keys.js +0 -0
- /package/dist/{src/lib → lib}/dict.d.ts +0 -0
- /package/dist/{src/lib → lib}/dict.js +0 -0
- /package/dist/{src/lib → lib}/dom.d.ts +0 -0
- /package/dist/{src/lib → lib}/dom.js +0 -0
- /package/dist/{src/lib → lib}/fns.d.ts +0 -0
- /package/dist/{src/lib → lib}/fns.js +0 -0
- /package/dist/{src/lib → lib}/fzf.d.ts +0 -0
- /package/dist/{src/lib → lib}/fzf.js +0 -0
- /package/dist/{src/lib → lib}/keyboard-area.d.ts +0 -0
- /package/dist/{src/lib → lib}/keyboard-area.js +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, t } from "./proxy-
|
|
1
|
+
import { r as e, t } from "./proxy-BcJ_5Dwq.js";
|
|
2
2
|
import { t as n } from "./dom-Bn4wY_Zx.js";
|
|
3
3
|
import { t as r } from "./dist-NmFtbuK4.js";
|
|
4
4
|
import { t as i } from "./CheckCircle.es-BB91gLT-.js";
|
|
@@ -7,23 +7,24 @@ import { t as o } from "./Warning.es-B_xCn-P5.js";
|
|
|
7
7
|
import { t as s } from "./X.es-Cjq2a_OA.js";
|
|
8
8
|
import { t as c } from "./IconBase.es-BlJQ9IXo.js";
|
|
9
9
|
import { A as l, E as u, F as d, L as f, N as p, S as m } from "./floating-ui.utils-CUrVRSbA.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
10
|
+
import * as h from "react";
|
|
11
|
+
import { createContext as g, createElement as ee, useCallback as _, useContext as v, useEffect as y, useRef as b, useState as x } from "react";
|
|
12
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
13
|
+
import * as w from "react-dom";
|
|
14
|
+
import { useSyncExternalStore as te } from "use-sync-external-store/shim";
|
|
15
|
+
import { useSyncExternalStoreWithSelector as T } from "use-sync-external-store/shim/with-selector";
|
|
15
16
|
//#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/CircleNotch.es.js
|
|
16
17
|
var ne = /* @__PURE__ */ new Map([
|
|
17
|
-
["bold", /* @__PURE__ */
|
|
18
|
-
["duotone", /* @__PURE__ */
|
|
18
|
+
["bold", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))],
|
|
19
|
+
["duotone", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", {
|
|
19
20
|
d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
|
|
20
21
|
opacity: "0.2"
|
|
21
|
-
}), /* @__PURE__ */
|
|
22
|
-
["fill", /* @__PURE__ */
|
|
23
|
-
["light", /* @__PURE__ */
|
|
24
|
-
["regular", /* @__PURE__ */
|
|
25
|
-
["thin", /* @__PURE__ */
|
|
26
|
-
]), E =
|
|
22
|
+
}), /* @__PURE__ */ h.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
23
|
+
["fill", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z" }))],
|
|
24
|
+
["light", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", { d: "M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z" }))],
|
|
25
|
+
["regular", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", { d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z" }))],
|
|
26
|
+
["thin", /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))]
|
|
27
|
+
]), E = h.forwardRef((e, t) => /* @__PURE__ */ h.createElement(c, {
|
|
27
28
|
ref: t,
|
|
28
29
|
...e,
|
|
29
30
|
weights: ne
|
|
@@ -46,9 +47,9 @@ function k(...e) {
|
|
|
46
47
|
}
|
|
47
48
|
//#endregion
|
|
48
49
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/safeReact.js
|
|
49
|
-
var A = { ...
|
|
50
|
+
var A = { ...h }, j = {};
|
|
50
51
|
function M(e, t) {
|
|
51
|
-
let n =
|
|
52
|
+
let n = h.useRef(j);
|
|
52
53
|
return n.current === j && (n.current = e(t)), n;
|
|
53
54
|
}
|
|
54
55
|
//#endregion
|
|
@@ -72,7 +73,7 @@ function ie() {
|
|
|
72
73
|
function ae() {
|
|
73
74
|
if (process.env.NODE_ENV !== "production") throw Error("Base UI: Cannot call an event handler while rendering.");
|
|
74
75
|
}
|
|
75
|
-
var F = typeof document < "u" ?
|
|
76
|
+
var F = typeof document < "u" ? h.useLayoutEffect : () => {}, I;
|
|
76
77
|
process.env.NODE_ENV !== "production" && (I = /* @__PURE__ */ new Set());
|
|
77
78
|
function oe(...e) {
|
|
78
79
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -120,8 +121,8 @@ function fe(e, t, n) {
|
|
|
120
121
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/useId.js
|
|
121
122
|
var B = 0;
|
|
122
123
|
function pe(e, t = "mui") {
|
|
123
|
-
let [n, r] =
|
|
124
|
-
return
|
|
124
|
+
let [n, r] = h.useState(e), i = e || n;
|
|
125
|
+
return h.useEffect(() => {
|
|
125
126
|
n ?? (B += 1, r(`${t}-${B}`));
|
|
126
127
|
}, [n, t]), i;
|
|
127
128
|
}
|
|
@@ -213,14 +214,14 @@ function xe(e, t) {
|
|
|
213
214
|
}
|
|
214
215
|
//#endregion
|
|
215
216
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
216
|
-
var Se = parseInt(
|
|
217
|
+
var Se = parseInt(h.version, 10);
|
|
217
218
|
function Ce(e) {
|
|
218
219
|
return Se >= e;
|
|
219
220
|
}
|
|
220
221
|
//#endregion
|
|
221
222
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
222
223
|
function we(e) {
|
|
223
|
-
if (!/* @__PURE__ */
|
|
224
|
+
if (!/* @__PURE__ */ h.isValidElement(e)) return null;
|
|
224
225
|
let t = e, n = t.props;
|
|
225
226
|
return (Ce(19) ? n?.ref : t.ref) ?? null;
|
|
226
227
|
}
|
|
@@ -368,12 +369,12 @@ function Ye(e, t, n, r) {
|
|
|
368
369
|
let e = Ae(n, t.props);
|
|
369
370
|
e.ref = n.ref;
|
|
370
371
|
let i = t;
|
|
371
|
-
if (i?.$$typeof === Ke && (i =
|
|
372
|
+
if (i?.$$typeof === Ke && (i = h.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ h.isValidElement(i)) throw Error([
|
|
372
373
|
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
373
374
|
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
374
375
|
"https://base-ui.com/r/invalid-render-prop"
|
|
375
376
|
].join("\n"));
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ h.cloneElement(i, e);
|
|
377
378
|
}
|
|
378
379
|
if (e && typeof e == "string") return Ze(e, n);
|
|
379
380
|
throw Error(process.env.NODE_ENV === "production" ? H(8) : "Base UI: Render element or function are not defined.");
|
|
@@ -383,15 +384,15 @@ function Xe(e) {
|
|
|
383
384
|
t.length !== 0 && qe.test(t) && Je.test(t) && oe(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
384
385
|
}
|
|
385
386
|
function Ze(e, t) {
|
|
386
|
-
return e === "button" ? /* @__PURE__ */
|
|
387
|
+
return e === "button" ? /* @__PURE__ */ ee("button", {
|
|
387
388
|
type: "button",
|
|
388
389
|
...t,
|
|
389
390
|
key: t.key
|
|
390
|
-
}) : e === "img" ? /* @__PURE__ */
|
|
391
|
+
}) : e === "img" ? /* @__PURE__ */ ee("img", {
|
|
391
392
|
alt: "",
|
|
392
393
|
...t,
|
|
393
394
|
key: t.key
|
|
394
|
-
}) : /* @__PURE__ */
|
|
395
|
+
}) : /* @__PURE__ */ h.createElement(e, t);
|
|
395
396
|
}
|
|
396
397
|
//#endregion
|
|
397
398
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/clamp.js
|
|
@@ -593,7 +594,7 @@ function J(e, t, n, r) {
|
|
|
593
594
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/useOnMount.js
|
|
594
595
|
var jt = [];
|
|
595
596
|
function Mt(e) {
|
|
596
|
-
|
|
597
|
+
h.useEffect(e, jt);
|
|
597
598
|
}
|
|
598
599
|
//#endregion
|
|
599
600
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/useAnimationFrame.js
|
|
@@ -663,10 +664,10 @@ var Rt = {
|
|
|
663
664
|
({ ...Rt });
|
|
664
665
|
//#endregion
|
|
665
666
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/provider/ToastProviderContext.js
|
|
666
|
-
var Bt =
|
|
667
|
-
process.env.NODE_ENV !== "production" && (
|
|
668
|
-
function
|
|
669
|
-
let e =
|
|
667
|
+
var Bt = /* @__PURE__ */ h.createContext(void 0);
|
|
668
|
+
process.env.NODE_ENV !== "production" && (Bt.displayName = "ToastContext");
|
|
669
|
+
function Vt() {
|
|
670
|
+
let e = h.useContext(Bt);
|
|
670
671
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? H(73) : "Base UI: useToastManager must be used within <Toast.Provider>.");
|
|
671
672
|
return e;
|
|
672
673
|
}
|
|
@@ -683,30 +684,30 @@ var Y = (e, t, n, r, i, a, ...o) => {
|
|
|
683
684
|
else if (e) s = e;
|
|
684
685
|
else throw Error("Missing arguments");
|
|
685
686
|
return s;
|
|
686
|
-
},
|
|
687
|
-
function
|
|
688
|
-
return
|
|
687
|
+
}, Ht = [], Ut = void 0;
|
|
688
|
+
function Wt() {
|
|
689
|
+
return Ut;
|
|
689
690
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
691
|
+
function Gt(e) {
|
|
692
|
+
Ht.push(e);
|
|
692
693
|
}
|
|
693
694
|
//#endregion
|
|
694
695
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/store/useStore.js
|
|
695
|
-
var
|
|
696
|
-
function
|
|
697
|
-
return
|
|
696
|
+
var Kt = Ce(19) ? Yt : Xt;
|
|
697
|
+
function qt(e, t, n, r, i) {
|
|
698
|
+
return Kt(e, t, n, r, i);
|
|
698
699
|
}
|
|
699
|
-
function
|
|
700
|
-
let a =
|
|
700
|
+
function Jt(e, t, n, r, i) {
|
|
701
|
+
let a = h.useCallback(() => t(e.getSnapshot(), n, r, i), [
|
|
701
702
|
e,
|
|
702
703
|
t,
|
|
703
704
|
n,
|
|
704
705
|
r,
|
|
705
706
|
i
|
|
706
707
|
]);
|
|
707
|
-
return (
|
|
708
|
+
return te(e.subscribe, a, a);
|
|
708
709
|
}
|
|
709
|
-
|
|
710
|
+
Gt({
|
|
710
711
|
before(e) {
|
|
711
712
|
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
712
713
|
let t = !1;
|
|
@@ -726,12 +727,12 @@ qt({
|
|
|
726
727
|
return () => {
|
|
727
728
|
for (let e of r) e();
|
|
728
729
|
};
|
|
729
|
-
}), (
|
|
730
|
+
}), te(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
730
731
|
}
|
|
731
732
|
});
|
|
732
|
-
function
|
|
733
|
-
let a =
|
|
734
|
-
if (!a) return
|
|
733
|
+
function Yt(e, t, n, r, i) {
|
|
734
|
+
let a = Wt();
|
|
735
|
+
if (!a) return Jt(e, t, n, r, i);
|
|
735
736
|
let o = a.syncIndex;
|
|
736
737
|
a.syncIndex += 1;
|
|
737
738
|
let s;
|
|
@@ -745,12 +746,12 @@ function Zt(e, t, n, r, i) {
|
|
|
745
746
|
didChange: !1
|
|
746
747
|
}, a.syncHooks.push(s)), s.value;
|
|
747
748
|
}
|
|
748
|
-
function
|
|
749
|
-
return (
|
|
749
|
+
function Xt(e, t, n, r, i) {
|
|
750
|
+
return T(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
750
751
|
}
|
|
751
752
|
//#endregion
|
|
752
753
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/store/Store.js
|
|
753
|
-
var
|
|
754
|
+
var Zt = class {
|
|
754
755
|
constructor(e) {
|
|
755
756
|
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
756
757
|
}
|
|
@@ -787,14 +788,14 @@ var $t = class {
|
|
|
787
788
|
this.setState(e);
|
|
788
789
|
}
|
|
789
790
|
use(e, t, n, r) {
|
|
790
|
-
return
|
|
791
|
+
return qt(this, e, t, n, r);
|
|
791
792
|
}
|
|
792
|
-
},
|
|
793
|
+
}, Qt = class extends Zt {
|
|
793
794
|
constructor(e, t = {}, n) {
|
|
794
795
|
super(e), this.context = t, this.selectors = n;
|
|
795
796
|
}
|
|
796
797
|
useSyncedValue(e, t) {
|
|
797
|
-
|
|
798
|
+
h.useDebugValue(e);
|
|
798
799
|
let n = this;
|
|
799
800
|
F(() => {
|
|
800
801
|
n.state[e] !== t && n.set(e, t);
|
|
@@ -817,8 +818,8 @@ var $t = class {
|
|
|
817
818
|
useSyncedValues(e) {
|
|
818
819
|
let t = this;
|
|
819
820
|
if (process.env.NODE_ENV !== "production") {
|
|
820
|
-
|
|
821
|
-
let t =
|
|
821
|
+
h.useDebugValue(e, (e) => Object.keys(e));
|
|
822
|
+
let t = h.useRef(Object.keys(e)).current, n = Object.keys(e);
|
|
822
823
|
(t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
823
824
|
}
|
|
824
825
|
F(() => {
|
|
@@ -826,7 +827,7 @@ var $t = class {
|
|
|
826
827
|
}, [t, ...Object.values(e)]);
|
|
827
828
|
}
|
|
828
829
|
useControlledProp(e, t) {
|
|
829
|
-
|
|
830
|
+
h.useDebugValue(e);
|
|
830
831
|
let n = this, r = t !== void 0;
|
|
831
832
|
if (F(() => {
|
|
832
833
|
r && !Object.is(n.state[e], t) && n.setState({
|
|
@@ -850,15 +851,15 @@ var $t = class {
|
|
|
850
851
|
return i(this.state, t, n, r);
|
|
851
852
|
}
|
|
852
853
|
useState(e, t, n, r) {
|
|
853
|
-
return
|
|
854
|
+
return h.useDebugValue(e), qt(this, this.selectors[e], t, n, r);
|
|
854
855
|
}
|
|
855
856
|
useContextCallback(e, t) {
|
|
856
|
-
|
|
857
|
+
h.useDebugValue(e);
|
|
857
858
|
let n = P(t ?? se);
|
|
858
859
|
this.context[e] = n;
|
|
859
860
|
}
|
|
860
861
|
useStateSetter(e) {
|
|
861
|
-
let t =
|
|
862
|
+
let t = h.useRef(void 0);
|
|
862
863
|
return t.current === void 0 && (t.current = (t) => {
|
|
863
864
|
this.set(e, t);
|
|
864
865
|
}), t.current;
|
|
@@ -878,7 +879,7 @@ var $t = class {
|
|
|
878
879
|
};
|
|
879
880
|
//#endregion
|
|
880
881
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/mergeCleanups.js
|
|
881
|
-
function
|
|
882
|
+
function $t(...e) {
|
|
882
883
|
return () => {
|
|
883
884
|
for (let t = 0; t < e.length; t += 1) {
|
|
884
885
|
let n = e[t];
|
|
@@ -888,37 +889,37 @@ function tn(...e) {
|
|
|
888
889
|
}
|
|
889
890
|
//#endregion
|
|
890
891
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/useTimeout.js
|
|
891
|
-
var
|
|
892
|
+
var en = 0, tn = class e {
|
|
892
893
|
static create() {
|
|
893
894
|
return new e();
|
|
894
895
|
}
|
|
895
|
-
currentId =
|
|
896
|
+
currentId = en;
|
|
896
897
|
start(e, t) {
|
|
897
898
|
this.clear(), this.currentId = setTimeout(() => {
|
|
898
|
-
this.currentId =
|
|
899
|
+
this.currentId = en, t();
|
|
899
900
|
}, e);
|
|
900
901
|
}
|
|
901
902
|
isStarted() {
|
|
902
|
-
return this.currentId !==
|
|
903
|
+
return this.currentId !== en;
|
|
903
904
|
}
|
|
904
905
|
clear = () => {
|
|
905
|
-
this.currentId !==
|
|
906
|
+
this.currentId !== en && (clearTimeout(this.currentId), this.currentId = en);
|
|
906
907
|
};
|
|
907
908
|
disposeEffect = () => this.clear;
|
|
908
909
|
};
|
|
909
|
-
function
|
|
910
|
-
let e = M(
|
|
910
|
+
function nn() {
|
|
911
|
+
let e = M(tn.create).current;
|
|
911
912
|
return Mt(e.disposeEffect), e;
|
|
912
913
|
}
|
|
913
914
|
//#endregion
|
|
914
915
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/generateId.js
|
|
915
|
-
var
|
|
916
|
-
function
|
|
917
|
-
return
|
|
916
|
+
var rn = 0;
|
|
917
|
+
function an(e) {
|
|
918
|
+
return rn += 1, `${e}-${Math.random().toString(36).slice(2, 6)}-${rn}`;
|
|
918
919
|
}
|
|
919
920
|
//#endregion
|
|
920
921
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/utils/resolvePromiseOptions.js
|
|
921
|
-
function
|
|
922
|
+
function on(e, t) {
|
|
922
923
|
if (typeof e == "string") return { description: e };
|
|
923
924
|
if (typeof e == "function") {
|
|
924
925
|
let n = e(t);
|
|
@@ -928,7 +929,7 @@ function cn(e, t) {
|
|
|
928
929
|
}
|
|
929
930
|
//#endregion
|
|
930
931
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/store.js
|
|
931
|
-
function
|
|
932
|
+
function sn(e) {
|
|
932
933
|
let t = /* @__PURE__ */ new Map(), n = 0, r = 0;
|
|
933
934
|
return e.forEach((e, i) => {
|
|
934
935
|
let a = e.transitionStatus === "ending";
|
|
@@ -940,25 +941,25 @@ function ln(e) {
|
|
|
940
941
|
}), r += e.height || 0, a || (n += 1);
|
|
941
942
|
}), t;
|
|
942
943
|
}
|
|
943
|
-
var
|
|
944
|
+
var cn = (e) => e.toastMetadata, X = {
|
|
944
945
|
toasts: Y((e) => e.toasts),
|
|
945
946
|
isEmpty: Y((e) => e.toasts.length === 0),
|
|
946
|
-
toast: Y(
|
|
947
|
-
toastIndex: Y(
|
|
948
|
-
toastOffsetY: Y(
|
|
949
|
-
toastVisibleIndex: Y(
|
|
947
|
+
toast: Y(cn, (e, t) => e.get(t)?.value),
|
|
948
|
+
toastIndex: Y(cn, (e, t) => e.get(t)?.domIndex ?? -1),
|
|
949
|
+
toastOffsetY: Y(cn, (e, t) => e.get(t)?.offsetY ?? 0),
|
|
950
|
+
toastVisibleIndex: Y(cn, (e, t) => e.get(t)?.visibleIndex ?? -1),
|
|
950
951
|
hovering: Y((e) => e.hovering),
|
|
951
952
|
focused: Y((e) => e.focused),
|
|
952
953
|
expanded: Y((e) => e.hovering || e.focused),
|
|
953
954
|
expandedOrOutOfFocus: Y((e) => e.hovering || e.focused || !e.isWindowFocused),
|
|
954
955
|
prevFocusElement: Y((e) => e.prevFocusElement)
|
|
955
|
-
},
|
|
956
|
+
}, ln = class extends Qt {
|
|
956
957
|
timers = /* @__PURE__ */ new Map();
|
|
957
958
|
areTimersPaused = !1;
|
|
958
959
|
constructor(e) {
|
|
959
960
|
super({
|
|
960
961
|
...e,
|
|
961
|
-
toastMetadata:
|
|
962
|
+
toastMetadata: sn(e.toasts)
|
|
962
963
|
}, {}, X);
|
|
963
964
|
}
|
|
964
965
|
setFocused(e) {
|
|
@@ -990,7 +991,7 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
990
991
|
i.splice(n, 1), this.setToasts(i);
|
|
991
992
|
}
|
|
992
993
|
addToast = (e) => {
|
|
993
|
-
let { timeout: t, limit: n } = this.state, r = e.id ||
|
|
994
|
+
let { timeout: t, limit: n } = this.state, r = e.id || an("toast");
|
|
994
995
|
if (e.id) {
|
|
995
996
|
let t = X.toast(this.state, e.id);
|
|
996
997
|
if (t) if (t.transitionStatus === "ending") this.removeToast(e.id, { skipOnRemove: !0 });
|
|
@@ -1072,25 +1073,25 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1072
1073
|
};
|
|
1073
1074
|
}), s = {
|
|
1074
1075
|
toasts: o,
|
|
1075
|
-
toastMetadata:
|
|
1076
|
+
toastMetadata: sn(o)
|
|
1076
1077
|
};
|
|
1077
1078
|
(t || r.length === 1) && (s.hovering = !1, s.focused = !1), this.update(s), i.forEach((e) => {
|
|
1078
1079
|
e.transitionStatus !== "ending" && e.onClose?.();
|
|
1079
1080
|
}), this.handleFocusManagement(e);
|
|
1080
1081
|
};
|
|
1081
1082
|
promiseToast = (e, t) => {
|
|
1082
|
-
let n =
|
|
1083
|
+
let n = on(t.loading), r = this.addToast({
|
|
1083
1084
|
...n,
|
|
1084
1085
|
type: "loading"
|
|
1085
1086
|
}), i = e.then((e) => {
|
|
1086
|
-
let n =
|
|
1087
|
+
let n = on(t.success, e);
|
|
1087
1088
|
return this.updateToast(r, {
|
|
1088
1089
|
...n,
|
|
1089
1090
|
type: "success",
|
|
1090
1091
|
timeout: n.timeout
|
|
1091
1092
|
}), e;
|
|
1092
1093
|
}).catch((e) => {
|
|
1093
|
-
let n =
|
|
1094
|
+
let n = on(t.error, e);
|
|
1094
1095
|
return this.updateToast(r, {
|
|
1095
1096
|
...n,
|
|
1096
1097
|
type: "error",
|
|
@@ -1110,7 +1111,7 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1110
1111
|
}
|
|
1111
1112
|
resumeTimers() {
|
|
1112
1113
|
this.areTimersPaused && (this.areTimersPaused = !1, this.timers.forEach((e, t) => {
|
|
1113
|
-
e.remaining = e.remaining > 0 ? e.remaining : e.delay, e.timeout ??=
|
|
1114
|
+
e.remaining = e.remaining > 0 ? e.remaining : e.delay, e.timeout ??= tn.create(), e.timeout.start(e.remaining, () => {
|
|
1114
1115
|
this.timers.delete(t), e.callback();
|
|
1115
1116
|
}), e.start = Date.now();
|
|
1116
1117
|
}));
|
|
@@ -1127,7 +1128,7 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1127
1128
|
}));
|
|
1128
1129
|
};
|
|
1129
1130
|
scheduleTimer(e, t, n) {
|
|
1130
|
-
let r = Date.now(), i = !X.expandedOrOutOfFocus(this.state), a = i ?
|
|
1131
|
+
let r = Date.now(), i = !X.expandedOrOutOfFocus(this.state), a = i ? tn.create() : void 0;
|
|
1131
1132
|
a?.start(t, () => {
|
|
1132
1133
|
this.timers.delete(e), n();
|
|
1133
1134
|
}), this.timers.set(e, {
|
|
@@ -1141,7 +1142,7 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1141
1142
|
setToasts(e) {
|
|
1142
1143
|
let t = {
|
|
1143
1144
|
toasts: e,
|
|
1144
|
-
toastMetadata:
|
|
1145
|
+
toastMetadata: sn(e)
|
|
1145
1146
|
};
|
|
1146
1147
|
e.length === 0 && (t.hovering = !1, t.focused = !1), this.update(t);
|
|
1147
1148
|
}
|
|
@@ -1169,8 +1170,8 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
i ? i.ref?.current?.focus() : this.restoreFocusToPrevElement();
|
|
1171
1172
|
}
|
|
1172
|
-
},
|
|
1173
|
-
let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = M(() => new
|
|
1173
|
+
}, un = function(e) {
|
|
1174
|
+
let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = M(() => new ln({
|
|
1174
1175
|
timeout: n,
|
|
1175
1176
|
limit: r,
|
|
1176
1177
|
viewport: null,
|
|
@@ -1180,7 +1181,7 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1180
1181
|
isWindowFocused: !0,
|
|
1181
1182
|
prevFocusElement: null
|
|
1182
1183
|
})).current;
|
|
1183
|
-
return Mt(a.disposeEffect),
|
|
1184
|
+
return Mt(a.disposeEffect), h.useEffect(function() {
|
|
1184
1185
|
if (i) return i[" subscribe"](({ action: e, options: t }) => {
|
|
1185
1186
|
let n = t.id;
|
|
1186
1187
|
e === "promise" && t.promise ? a.promiseToast(t.promise, t) : e === "update" && n ? a.updateToast(n, t) : e === "close" ? a.closeToast(n) : a.addToast(t);
|
|
@@ -1188,16 +1189,16 @@ var un = (e) => e.toastMetadata, X = {
|
|
|
1188
1189
|
}, [a, i]), a.useSyncedValues({
|
|
1189
1190
|
timeout: n,
|
|
1190
1191
|
limit: r
|
|
1191
|
-
}), /* @__PURE__ */
|
|
1192
|
+
}), /* @__PURE__ */ S(Bt.Provider, {
|
|
1192
1193
|
value: a,
|
|
1193
1194
|
children: t
|
|
1194
1195
|
});
|
|
1195
1196
|
};
|
|
1196
|
-
process.env.NODE_ENV !== "production" && (
|
|
1197
|
+
process.env.NODE_ENV !== "production" && (un.displayName = "ToastProvider");
|
|
1197
1198
|
//#endregion
|
|
1198
1199
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/utils/FocusGuard.js
|
|
1199
|
-
var Z = /* @__PURE__ */
|
|
1200
|
-
let [n, r] =
|
|
1200
|
+
var Z = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1201
|
+
let [n, r] = h.useState();
|
|
1201
1202
|
F(() => {
|
|
1202
1203
|
nt && r("button");
|
|
1203
1204
|
}, []);
|
|
@@ -1205,7 +1206,7 @@ var Z = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1205
1206
|
tabIndex: 0,
|
|
1206
1207
|
role: n
|
|
1207
1208
|
};
|
|
1208
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ S("span", {
|
|
1209
1210
|
...e,
|
|
1210
1211
|
ref: t,
|
|
1211
1212
|
style: zt,
|
|
@@ -1217,18 +1218,18 @@ var Z = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1217
1218
|
process.env.NODE_ENV !== "production" && (Z.displayName = "FocusGuard");
|
|
1218
1219
|
//#endregion
|
|
1219
1220
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/viewport/ToastViewportCssVars.js
|
|
1220
|
-
var
|
|
1221
|
+
var dn = /* @__PURE__ */ function(e) {
|
|
1221
1222
|
return e.frontmostHeight = "--toast-frontmost-height", e;
|
|
1222
|
-
}({}),
|
|
1223
|
-
let { render: n, className: r, style: i, children: a, ...o } = e, s =
|
|
1224
|
-
|
|
1223
|
+
}({}), fn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1224
|
+
let { render: n, className: r, style: i, children: a, ...o } = e, s = Vt(), c = nn(), u = h.useRef(!1), d = h.useRef(!1), f = h.useRef(!1), p = s.useState("isEmpty"), m = s.useState("toasts"), g = s.useState("focused"), ee = s.useState("expanded"), _ = s.useState("prevFocusElement"), v = m[0]?.height ?? 0, y = h.useMemo(() => m.some((e) => e.transitionStatus === "ending"), [m]), b = h.useMemo(() => m.filter((e) => e.priority === "high"), [m]);
|
|
1225
|
+
h.useEffect(() => {
|
|
1225
1226
|
let e = s.state.viewport;
|
|
1226
1227
|
if (!e) return;
|
|
1227
1228
|
function t(t) {
|
|
1228
1229
|
p || t.key === "F6" && q(t) !== e && (t.preventDefault(), s.setPrevFocusElement(G(D(e))), e?.focus({ preventScroll: !0 }), s.pauseTimers(), s.setFocused(!0));
|
|
1229
1230
|
}
|
|
1230
1231
|
return J(l(e), "keydown", t);
|
|
1231
|
-
}, [s, p]),
|
|
1232
|
+
}, [s, p]), h.useEffect(() => {
|
|
1232
1233
|
let e = s.state.viewport;
|
|
1233
1234
|
if (!e || p) return;
|
|
1234
1235
|
let t = l(e);
|
|
@@ -1240,12 +1241,12 @@ var pn = /* @__PURE__ */ function(e) {
|
|
|
1240
1241
|
let r = q(n), i = G(D(e));
|
|
1241
1242
|
(r === t || !K(e, r) || !st(i)) && s.resumeTimers(), c.start(0, () => s.setIsWindowFocused(!0));
|
|
1242
1243
|
}
|
|
1243
|
-
return
|
|
1244
|
+
return $t(J(t, "blur", n, !0), J(t, "focus", r, !0));
|
|
1244
1245
|
}, [
|
|
1245
1246
|
s,
|
|
1246
1247
|
c,
|
|
1247
1248
|
p
|
|
1248
|
-
]),
|
|
1249
|
+
]), h.useEffect(() => {
|
|
1249
1250
|
let e = s.state.viewport;
|
|
1250
1251
|
if (!(!e || p)) return J(D(e), "pointerdown", s.handleDocumentPointerDown, !0);
|
|
1251
1252
|
}, [p, s]);
|
|
@@ -1253,14 +1254,14 @@ var pn = /* @__PURE__ */ function(e) {
|
|
|
1253
1254
|
let t = s.state.viewport;
|
|
1254
1255
|
t && (u.current = !0, e.relatedTarget === t ? m[0]?.ref?.current?.focus() : s.restoreFocusToPrevElement());
|
|
1255
1256
|
}
|
|
1256
|
-
function
|
|
1257
|
+
function w(e) {
|
|
1257
1258
|
e.key === "Tab" && e.shiftKey && q(e.nativeEvent) === s.state.viewport && (e.preventDefault(), s.restoreFocusToPrevElement(), s.resumeTimers());
|
|
1258
1259
|
}
|
|
1259
1260
|
function te() {
|
|
1260
1261
|
let e = s.state.toasts.some((e) => e.transitionStatus === "ending");
|
|
1261
1262
|
!s.state.isWindowFocused || e || f.current || !d.current || (s.resumeTimers(), s.setHovering(!1), d.current = !1);
|
|
1262
1263
|
}
|
|
1263
|
-
|
|
1264
|
+
h.useEffect(te, [y, s]);
|
|
1264
1265
|
function T() {
|
|
1265
1266
|
s.pauseTimers(), s.setHovering(!0), d.current = !1;
|
|
1266
1267
|
}
|
|
@@ -1278,10 +1279,10 @@ var pn = /* @__PURE__ */ function(e) {
|
|
|
1278
1279
|
u.current = !1;
|
|
1279
1280
|
return;
|
|
1280
1281
|
}
|
|
1281
|
-
|
|
1282
|
+
g || st(G(D(s.state.viewport))) && (s.setFocused(!0), s.pauseTimers());
|
|
1282
1283
|
}
|
|
1283
1284
|
function A(e) {
|
|
1284
|
-
!
|
|
1285
|
+
!g || K(s.state.viewport, e.relatedTarget) || (s.setFocused(!1), s.resumeTimers());
|
|
1285
1286
|
}
|
|
1286
1287
|
let j = {
|
|
1287
1288
|
tabIndex: -1,
|
|
@@ -1295,7 +1296,7 @@ var pn = /* @__PURE__ */ function(e) {
|
|
|
1295
1296
|
onMouseLeave: ne,
|
|
1296
1297
|
onFocus: k,
|
|
1297
1298
|
onBlur: A,
|
|
1298
|
-
onKeyDown:
|
|
1299
|
+
onKeyDown: w,
|
|
1299
1300
|
onClick: k,
|
|
1300
1301
|
onPointerDown: E,
|
|
1301
1302
|
onPointerUp: O,
|
|
@@ -1305,65 +1306,65 @@ var pn = /* @__PURE__ */ function(e) {
|
|
|
1305
1306
|
state: M,
|
|
1306
1307
|
props: [
|
|
1307
1308
|
j,
|
|
1308
|
-
{ style: { [
|
|
1309
|
+
{ style: { [dn.frontmostHeight]: v ? `${v}px` : void 0 } },
|
|
1309
1310
|
o,
|
|
1310
|
-
{ children: /* @__PURE__ */
|
|
1311
|
-
!p && _ && /* @__PURE__ */
|
|
1311
|
+
{ children: /* @__PURE__ */ C(h.Fragment, { children: [
|
|
1312
|
+
!p && _ && /* @__PURE__ */ S(Z, { onFocus: x }),
|
|
1312
1313
|
a,
|
|
1313
|
-
!p && _ && /* @__PURE__ */
|
|
1314
|
+
!p && _ && /* @__PURE__ */ S(Z, { onFocus: x })
|
|
1314
1315
|
] }) }
|
|
1315
1316
|
]
|
|
1316
1317
|
});
|
|
1317
|
-
return /* @__PURE__ */
|
|
1318
|
-
!p && _ && /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
1319
|
+
!p && _ && /* @__PURE__ */ S(Z, { onFocus: x }),
|
|
1319
1320
|
N,
|
|
1320
|
-
!
|
|
1321
|
+
!g && b.length > 0 && /* @__PURE__ */ S("div", {
|
|
1321
1322
|
style: zt,
|
|
1322
|
-
children: b.map((e) => /* @__PURE__ */
|
|
1323
|
+
children: b.map((e) => /* @__PURE__ */ C("div", {
|
|
1323
1324
|
role: "alert",
|
|
1324
1325
|
"aria-atomic": !0,
|
|
1325
|
-
children: [/* @__PURE__ */
|
|
1326
|
+
children: [/* @__PURE__ */ S("div", { children: e.title }), /* @__PURE__ */ S("div", { children: e.description })]
|
|
1326
1327
|
}, e.id))
|
|
1327
1328
|
})
|
|
1328
1329
|
] });
|
|
1329
1330
|
});
|
|
1330
|
-
process.env.NODE_ENV !== "production" && (
|
|
1331
|
+
process.env.NODE_ENV !== "production" && (fn.displayName = "ToastViewport");
|
|
1331
1332
|
//#endregion
|
|
1332
1333
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.2.9_@types+react@19.2.15_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/utils/esm/inertValue.js
|
|
1333
|
-
function
|
|
1334
|
+
function pn(e) {
|
|
1334
1335
|
return Ce(19) ? e : e ? "true" : void 0;
|
|
1335
1336
|
}
|
|
1336
1337
|
//#endregion
|
|
1337
1338
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/root/ToastRootContext.js
|
|
1338
|
-
var
|
|
1339
|
-
process.env.NODE_ENV !== "production" && (
|
|
1340
|
-
function
|
|
1341
|
-
let e =
|
|
1339
|
+
var mn = /* @__PURE__ */ h.createContext(void 0);
|
|
1340
|
+
process.env.NODE_ENV !== "production" && (mn.displayName = "ToastRootContext");
|
|
1341
|
+
function hn() {
|
|
1342
|
+
let e = h.useContext(mn);
|
|
1342
1343
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? H(66) : "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.");
|
|
1343
1344
|
return e;
|
|
1344
1345
|
}
|
|
1345
1346
|
//#endregion
|
|
1346
1347
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/stateAttributesMapping.js
|
|
1347
|
-
var
|
|
1348
|
+
var gn = /* @__PURE__ */ function(e) {
|
|
1348
1349
|
return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
|
|
1349
|
-
}({}),
|
|
1350
|
-
return e === "starting" ?
|
|
1350
|
+
}({}), _n = { [gn.startingStyle]: "" }, vn = { [gn.endingStyle]: "" }, yn = { transitionStatus(e) {
|
|
1351
|
+
return e === "starting" ? _n : e === "ending" ? vn : null;
|
|
1351
1352
|
} };
|
|
1352
1353
|
//#endregion
|
|
1353
1354
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/utils/resolveRef.js
|
|
1354
|
-
function
|
|
1355
|
+
function bn(e) {
|
|
1355
1356
|
return e == null ? e : "current" in e ? e.current : e;
|
|
1356
1357
|
}
|
|
1357
1358
|
//#endregion
|
|
1358
1359
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/useAnimationsFinished.js
|
|
1359
|
-
function
|
|
1360
|
+
function xn(e, t = !1, n = !0) {
|
|
1360
1361
|
let r = Lt();
|
|
1361
1362
|
return P((i, a = null) => {
|
|
1362
1363
|
r.cancel();
|
|
1363
|
-
let o =
|
|
1364
|
+
let o = bn(e);
|
|
1364
1365
|
if (o == null) return;
|
|
1365
1366
|
let s = o, c = () => {
|
|
1366
|
-
|
|
1367
|
+
w.flushSync(i);
|
|
1367
1368
|
};
|
|
1368
1369
|
if (typeof s.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
|
|
1369
1370
|
i();
|
|
@@ -1382,7 +1383,7 @@ function Cn(e, t = !1, n = !0) {
|
|
|
1382
1383
|
});
|
|
1383
1384
|
}
|
|
1384
1385
|
if (t) {
|
|
1385
|
-
let e =
|
|
1386
|
+
let e = gn.startingStyle;
|
|
1386
1387
|
if (!s.hasAttribute(e)) {
|
|
1387
1388
|
r.request(l);
|
|
1388
1389
|
return;
|
|
@@ -1401,9 +1402,9 @@ function Cn(e, t = !1, n = !0) {
|
|
|
1401
1402
|
}
|
|
1402
1403
|
//#endregion
|
|
1403
1404
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/useOpenChangeComplete.js
|
|
1404
|
-
function
|
|
1405
|
-
let { enabled: t = !0, open: n, ref: r, onComplete: i } = e, a = P(i), o =
|
|
1406
|
-
|
|
1405
|
+
function Sn(e) {
|
|
1406
|
+
let { enabled: t = !0, open: n, ref: r, onComplete: i } = e, a = P(i), o = xn(r, n, !1);
|
|
1407
|
+
h.useEffect(() => {
|
|
1407
1408
|
if (!t) return;
|
|
1408
1409
|
let e = new AbortController();
|
|
1409
1410
|
return o(a, e.signal), () => {
|
|
@@ -1420,7 +1421,7 @@ function wn(e) {
|
|
|
1420
1421
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/root/ToastRootCssVars.js
|
|
1421
1422
|
var Q = /* @__PURE__ */ function(e) {
|
|
1422
1423
|
return e.index = "--toast-index", e.offsetY = "--toast-offset-y", e.height = "--toast-height", e.swipeMovementX = "--toast-swipe-movement-x", e.swipeMovementY = "--toast-swipe-movement-y", e;
|
|
1423
|
-
}({}),
|
|
1424
|
+
}({}), Cn = "data-base-ui-swipe-ignore", wn = "data-swipe-ignore", Tn = `[${Cn}]`, En = `[${wn}]`, Dn = {
|
|
1424
1425
|
clipPath: "inset(50%)",
|
|
1425
1426
|
position: "fixed",
|
|
1426
1427
|
top: 0,
|
|
@@ -1428,7 +1429,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
1428
1429
|
};
|
|
1429
1430
|
//#endregion
|
|
1430
1431
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/utils/useSwipeDismiss.js
|
|
1431
|
-
function
|
|
1432
|
+
function On(e, t, n) {
|
|
1432
1433
|
switch (e) {
|
|
1433
1434
|
case "up": return -n;
|
|
1434
1435
|
case "down": return n;
|
|
@@ -1437,7 +1438,7 @@ function An(e, t, n) {
|
|
|
1437
1438
|
default: return 0;
|
|
1438
1439
|
}
|
|
1439
1440
|
}
|
|
1440
|
-
function
|
|
1441
|
+
function kn(e) {
|
|
1441
1442
|
let t = l(e).getComputedStyle(e).transform, n = 0, r = 0, i = 1;
|
|
1442
1443
|
if (t && t !== "none") {
|
|
1443
1444
|
let e = t.match(/matrix(?:3d)?\(([^)]+)\)/);
|
|
@@ -1454,36 +1455,36 @@ function jn(e) {
|
|
|
1454
1455
|
}
|
|
1455
1456
|
//#endregion
|
|
1456
1457
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/root/ToastRoot.js
|
|
1457
|
-
var
|
|
1458
|
-
...
|
|
1458
|
+
var An = {
|
|
1459
|
+
...yn,
|
|
1459
1460
|
swipeDirection(e) {
|
|
1460
1461
|
return e ? { "data-swipe-direction": e } : null;
|
|
1461
1462
|
}
|
|
1462
|
-
},
|
|
1463
|
+
}, jn = 40, Mn = 10, $ = .5, Nn = 1, Pn = `${Tn},${En}`, Fn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1463
1464
|
let { toast: n, render: r, className: i, swipeDirection: a = ["down", "right"], style: o, ...s } = e, c = n.positionerProps?.anchor !== void 0, l = [];
|
|
1464
1465
|
c || (l = Array.isArray(a) ? a : [a]);
|
|
1465
|
-
let u = l.length > 0, d =
|
|
1466
|
+
let u = l.length > 0, d = Vt(), [f, p] = h.useState(void 0), [m, g] = h.useState(!1), [ee, _] = h.useState(!1), [v, y] = h.useState(!1), [b, x] = h.useState({
|
|
1466
1467
|
x: 0,
|
|
1467
1468
|
y: 0
|
|
1468
|
-
}), [
|
|
1469
|
+
}), [C, te] = h.useState({
|
|
1469
1470
|
x: 0,
|
|
1470
1471
|
y: 0,
|
|
1471
1472
|
scale: 1
|
|
1472
|
-
}), [
|
|
1473
|
+
}), [T, ne] = h.useState(), [E, O] = h.useState(), [k, A] = h.useState(null), j = h.useRef(null), M = h.useRef({
|
|
1473
1474
|
x: 0,
|
|
1474
1475
|
y: 0
|
|
1475
|
-
}), N =
|
|
1476
|
+
}), N = h.useRef({
|
|
1476
1477
|
x: 0,
|
|
1477
1478
|
y: 0,
|
|
1478
1479
|
scale: 1
|
|
1479
|
-
}), re =
|
|
1480
|
+
}), re = h.useRef(void 0), ie = h.useRef(0), ae = h.useRef(!1), I = h.useRef({
|
|
1480
1481
|
x: 0,
|
|
1481
1482
|
y: 0
|
|
1482
|
-
}), oe =
|
|
1483
|
+
}), oe = h.useRef(!1), se = h.useRef({
|
|
1483
1484
|
x: 0,
|
|
1484
1485
|
y: 0
|
|
1485
|
-
}), L =
|
|
1486
|
-
|
|
1486
|
+
}), L = h.useRef(null), R = h.useRef(null), ce = d.useState("toastIndex", n.id), le = d.useState("toastVisibleIndex", n.id), ue = d.useState("toastOffsetY", n.id), de = d.useState("focused"), z = d.useState("expanded");
|
|
1487
|
+
Sn({
|
|
1487
1488
|
open: n.transitionStatus !== "ending",
|
|
1488
1489
|
ref: j,
|
|
1489
1490
|
onComplete() {
|
|
@@ -1504,7 +1505,7 @@ var Mn = {
|
|
|
1504
1505
|
...n.transitionStatus === "starting" ? { transitionStatus: void 0 } : {}
|
|
1505
1506
|
});
|
|
1506
1507
|
}
|
|
1507
|
-
e ?
|
|
1508
|
+
e ? w.flushSync(a) : a();
|
|
1508
1509
|
});
|
|
1509
1510
|
F(fe, [fe]);
|
|
1510
1511
|
function B(e) {
|
|
@@ -1522,7 +1523,7 @@ var Mn = {
|
|
|
1522
1523
|
}
|
|
1523
1524
|
let V = P((e) => {
|
|
1524
1525
|
if (e.pointerId !== L.current) return;
|
|
1525
|
-
L.current = null, R.current?.abort(), R.current = null,
|
|
1526
|
+
L.current = null, R.current?.abort(), R.current = null, g(!1), _(!1), A(null);
|
|
1526
1527
|
let t = N.current;
|
|
1527
1528
|
if (e.type === "pointercancel" || ae.current) {
|
|
1528
1529
|
B({
|
|
@@ -1535,13 +1536,13 @@ var Mn = {
|
|
|
1535
1536
|
for (let e of l) {
|
|
1536
1537
|
switch (e) {
|
|
1537
1538
|
case "right":
|
|
1538
|
-
a >
|
|
1539
|
+
a > jn && (r = !0, s = "right");
|
|
1539
1540
|
break;
|
|
1540
1541
|
case "left":
|
|
1541
1542
|
a < -40 && (r = !0, s = "left");
|
|
1542
1543
|
break;
|
|
1543
1544
|
case "down":
|
|
1544
|
-
o >
|
|
1545
|
+
o > jn && (r = !0, s = "down");
|
|
1545
1546
|
break;
|
|
1546
1547
|
case "up":
|
|
1547
1548
|
o < -40 && (r = !0, s = "up");
|
|
@@ -1559,18 +1560,18 @@ var Mn = {
|
|
|
1559
1560
|
if (e.button !== 0) return;
|
|
1560
1561
|
e.pointerType === "touch" && d.pauseTimers();
|
|
1561
1562
|
let t = q(e.nativeEvent);
|
|
1562
|
-
if (t && t.closest(`button,a,input,textarea,[role="button"],${
|
|
1563
|
+
if (t && t.closest(`button,a,input,textarea,[role="button"],${Pn}`)) return;
|
|
1563
1564
|
if (ae.current = !1, re.current = void 0, ie.current = 0, L.current = e.pointerId, M.current = {
|
|
1564
1565
|
x: e.clientX,
|
|
1565
1566
|
y: e.clientY
|
|
1566
1567
|
}, I.current = M.current, j.current) {
|
|
1567
|
-
let e =
|
|
1568
|
+
let e = kn(j.current);
|
|
1568
1569
|
N.current = e, te(e), B({
|
|
1569
1570
|
x: e.x,
|
|
1570
1571
|
y: e.y
|
|
1571
1572
|
});
|
|
1572
1573
|
}
|
|
1573
|
-
d.setHovering(!0),
|
|
1574
|
+
d.setHovering(!0), g(!0), _(!1), A(null), oe.current = !0;
|
|
1574
1575
|
let n = j.current;
|
|
1575
1576
|
if (n) {
|
|
1576
1577
|
R.current?.abort();
|
|
@@ -1595,15 +1596,15 @@ var Mn = {
|
|
|
1595
1596
|
y: I.current.y
|
|
1596
1597
|
});
|
|
1597
1598
|
let a = n - M.current.x, o = t - M.current.y, s = t - I.current.y, c = n - I.current.x;
|
|
1598
|
-
if (!ee && Math.sqrt(a * a + o * o) >=
|
|
1599
|
+
if (!ee && Math.sqrt(a * a + o * o) >= Nn && (_(!0), k === null)) {
|
|
1599
1600
|
let e = l.includes("left") || l.includes("right"), t = l.includes("up") || l.includes("down");
|
|
1600
1601
|
e && t && A(Math.abs(a) > Math.abs(o) ? "horizontal" : "vertical");
|
|
1601
1602
|
}
|
|
1602
1603
|
let u;
|
|
1603
|
-
if (!re.current) k === "vertical" ? o > 0 ? u = "down" : o < 0 && (u = "up") : k === "horizontal" ? a > 0 ? u = "right" : a < 0 && (u = "left") : u = Math.abs(a) >= Math.abs(o) ? a > 0 ? "right" : "left" : o > 0 ? "down" : "up", u && l.includes(u) && (re.current = u, ie.current =
|
|
1604
|
+
if (!re.current) k === "vertical" ? o > 0 ? u = "down" : o < 0 && (u = "up") : k === "horizontal" ? a > 0 ? u = "right" : a < 0 && (u = "left") : u = Math.abs(a) >= Math.abs(o) ? a > 0 ? "right" : "left" : o > 0 ? "down" : "up", u && l.includes(u) && (re.current = u, ie.current = On(u, a, o), p(u));
|
|
1604
1605
|
else {
|
|
1605
|
-
let e = re.current, t =
|
|
1606
|
-
t >
|
|
1606
|
+
let e = re.current, t = On(e, c, s);
|
|
1607
|
+
t > jn ? (ae.current = !1, p(e)) : !(l.includes("left") && l.includes("right")) && !(l.includes("up") && l.includes("down")) && ie.current - t >= Mn && (ae.current = !0);
|
|
1607
1608
|
}
|
|
1608
1609
|
let d = pe(a, o), f = N.current.x, m = N.current.y;
|
|
1609
1610
|
k === "horizontal" ? (l.includes("left") || l.includes("right")) && (f += d.x) : (k === "vertical" || (l.includes("left") || l.includes("right")) && (f += d.x), (l.includes("up") || l.includes("down")) && (m += d.y)), B({
|
|
@@ -1617,7 +1618,7 @@ var Mn = {
|
|
|
1617
1618
|
d.closeToast(n.id);
|
|
1618
1619
|
}
|
|
1619
1620
|
}
|
|
1620
|
-
|
|
1621
|
+
h.useEffect(() => {
|
|
1621
1622
|
if (!u) return;
|
|
1622
1623
|
let e = j.current;
|
|
1623
1624
|
if (!e) return;
|
|
@@ -1627,14 +1628,14 @@ var Mn = {
|
|
|
1627
1628
|
return J(e, "touchmove", t, { passive: !1 });
|
|
1628
1629
|
}, [u]);
|
|
1629
1630
|
function ge() {
|
|
1630
|
-
if (!m && b.x ===
|
|
1631
|
+
if (!m && b.x === C.x && b.y === C.y && !v) return {
|
|
1631
1632
|
[Q.swipeMovementX]: "0px",
|
|
1632
1633
|
[Q.swipeMovementY]: "0px"
|
|
1633
1634
|
};
|
|
1634
|
-
let e = b.x -
|
|
1635
|
+
let e = b.x - C.x, t = b.y - C.y;
|
|
1635
1636
|
return {
|
|
1636
1637
|
transition: m ? "none" : void 0,
|
|
1637
|
-
transform: m ? `translateX(${b.x}px) translateY(${b.y}px) scale(${
|
|
1638
|
+
transform: m ? `translateX(${b.x}px) translateY(${b.y}px) scale(${C.scale})` : void 0,
|
|
1638
1639
|
[Q.swipeMovementX]: `${e}px`,
|
|
1639
1640
|
[Q.swipeMovementY]: `${t}px`
|
|
1640
1641
|
};
|
|
@@ -1643,7 +1644,7 @@ var Mn = {
|
|
|
1643
1644
|
role: _e ? "alertdialog" : "dialog",
|
|
1644
1645
|
tabIndex: 0,
|
|
1645
1646
|
"aria-modal": !1,
|
|
1646
|
-
"aria-labelledby":
|
|
1647
|
+
"aria-labelledby": T,
|
|
1647
1648
|
"aria-describedby": E,
|
|
1648
1649
|
"aria-hidden": _e && !de ? !0 : void 0,
|
|
1649
1650
|
onPointerDown: u ? me : void 0,
|
|
@@ -1651,17 +1652,17 @@ var Mn = {
|
|
|
1651
1652
|
onPointerUp: u ? V : void 0,
|
|
1652
1653
|
onPointerCancel: u ? V : void 0,
|
|
1653
1654
|
onKeyDown: H,
|
|
1654
|
-
inert:
|
|
1655
|
+
inert: pn(n.limited),
|
|
1655
1656
|
style: {
|
|
1656
1657
|
...ge(),
|
|
1657
1658
|
[Q.index]: n.transitionStatus === "ending" ? ce : le,
|
|
1658
1659
|
[Q.offsetY]: `${ue}px`,
|
|
1659
1660
|
[Q.height]: n.height ? `${n.height}px` : void 0
|
|
1660
1661
|
}
|
|
1661
|
-
}, ye =
|
|
1662
|
+
}, ye = h.useMemo(() => ({
|
|
1662
1663
|
rootRef: j,
|
|
1663
1664
|
toast: n,
|
|
1664
|
-
titleId:
|
|
1665
|
+
titleId: T,
|
|
1665
1666
|
setTitleId: ne,
|
|
1666
1667
|
descriptionId: E,
|
|
1667
1668
|
setDescriptionId: O,
|
|
@@ -1673,7 +1674,7 @@ var Mn = {
|
|
|
1673
1674
|
expanded: z
|
|
1674
1675
|
}), [
|
|
1675
1676
|
n,
|
|
1676
|
-
|
|
1677
|
+
T,
|
|
1677
1678
|
E,
|
|
1678
1679
|
m,
|
|
1679
1680
|
f,
|
|
@@ -1691,19 +1692,19 @@ var Mn = {
|
|
|
1691
1692
|
}, xe = U("div", e, {
|
|
1692
1693
|
ref: [t, ye.rootRef],
|
|
1693
1694
|
state: be,
|
|
1694
|
-
stateAttributesMapping:
|
|
1695
|
+
stateAttributesMapping: An,
|
|
1695
1696
|
props: [ve, s]
|
|
1696
1697
|
});
|
|
1697
|
-
return /* @__PURE__ */
|
|
1698
|
+
return /* @__PURE__ */ S(mn.Provider, {
|
|
1698
1699
|
value: ye,
|
|
1699
1700
|
children: xe
|
|
1700
1701
|
});
|
|
1701
1702
|
});
|
|
1702
|
-
process.env.NODE_ENV !== "production" && (
|
|
1703
|
+
process.env.NODE_ENV !== "production" && (Fn.displayName = "ToastRoot");
|
|
1703
1704
|
//#endregion
|
|
1704
1705
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/content/ToastContent.js
|
|
1705
|
-
var
|
|
1706
|
-
let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } =
|
|
1706
|
+
var In = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1707
|
+
let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = hn(), l = h.useRef(null);
|
|
1707
1708
|
return F(() => {
|
|
1708
1709
|
let e = l.current;
|
|
1709
1710
|
if (!e || (c(), typeof ResizeObserver != "function" || typeof MutationObserver != "function")) return;
|
|
@@ -1724,11 +1725,11 @@ var Rn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1724
1725
|
props: a
|
|
1725
1726
|
});
|
|
1726
1727
|
});
|
|
1727
|
-
process.env.NODE_ENV !== "production" && (
|
|
1728
|
+
process.env.NODE_ENV !== "production" && (In.displayName = "ToastContent");
|
|
1728
1729
|
//#endregion
|
|
1729
1730
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/description/ToastDescription.js
|
|
1730
|
-
var
|
|
1731
|
-
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { toast: c, setDescriptionId: l } =
|
|
1731
|
+
var Ln = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1732
|
+
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { toast: c, setDescriptionId: l } = hn(), u = o ?? c.description, d = !!u, f = me(a);
|
|
1732
1733
|
F(() => {
|
|
1733
1734
|
if (d) return l(f), () => {
|
|
1734
1735
|
l(void 0);
|
|
@@ -1749,11 +1750,11 @@ var zn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1749
1750
|
});
|
|
1750
1751
|
return d ? p : null;
|
|
1751
1752
|
});
|
|
1752
|
-
process.env.NODE_ENV !== "production" && (
|
|
1753
|
+
process.env.NODE_ENV !== "production" && (Ln.displayName = "ToastDescription");
|
|
1753
1754
|
//#endregion
|
|
1754
1755
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/title/ToastTitle.js
|
|
1755
|
-
var
|
|
1756
|
-
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { toast: c, setTitleId: l } =
|
|
1756
|
+
var Rn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1757
|
+
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { toast: c, setTitleId: l } = hn(), u = o ?? c.title, d = !!u, f = me(a);
|
|
1757
1758
|
F(() => {
|
|
1758
1759
|
if (d) return l(f), () => {
|
|
1759
1760
|
l(void 0);
|
|
@@ -1774,21 +1775,21 @@ var Bn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1774
1775
|
});
|
|
1775
1776
|
return d ? p : null;
|
|
1776
1777
|
});
|
|
1777
|
-
process.env.NODE_ENV !== "production" && (
|
|
1778
|
+
process.env.NODE_ENV !== "production" && (Rn.displayName = "ToastTitle");
|
|
1778
1779
|
//#endregion
|
|
1779
1780
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js
|
|
1780
|
-
var
|
|
1781
|
-
process.env.NODE_ENV !== "production" && (
|
|
1782
|
-
function
|
|
1783
|
-
let t =
|
|
1781
|
+
var zn = /* @__PURE__ */ h.createContext(void 0);
|
|
1782
|
+
process.env.NODE_ENV !== "production" && (zn.displayName = "CompositeRootContext");
|
|
1783
|
+
function Bn(e = !1) {
|
|
1784
|
+
let t = h.useContext(zn);
|
|
1784
1785
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? H(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
|
|
1785
1786
|
return t;
|
|
1786
1787
|
}
|
|
1787
1788
|
//#endregion
|
|
1788
1789
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
1789
|
-
function
|
|
1790
|
+
function Vn(e) {
|
|
1790
1791
|
let { focusableWhenDisabled: t, disabled: n, composite: r = !1, tabIndex: i = 0, isNativeButton: a } = e, o = r && t !== !1, s = r && t === !1;
|
|
1791
|
-
return { props:
|
|
1792
|
+
return { props: h.useMemo(() => {
|
|
1792
1793
|
let e = { onKeyDown(e) {
|
|
1793
1794
|
n && t && e.key !== "Tab" && e.preventDefault();
|
|
1794
1795
|
} };
|
|
@@ -1805,29 +1806,29 @@ function Un(e) {
|
|
|
1805
1806
|
}
|
|
1806
1807
|
//#endregion
|
|
1807
1808
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/internals/use-button/useButton.js
|
|
1808
|
-
function
|
|
1809
|
-
let { disabled: t = !1, focusableWhenDisabled: n, tabIndex: r = 0, native: i = !0, composite: a } = e, o =
|
|
1809
|
+
function Hn(e = {}) {
|
|
1810
|
+
let { disabled: t = !1, focusableWhenDisabled: n, tabIndex: r = 0, native: i = !0, composite: a } = e, o = h.useRef(null), s = Bn(!0), c = a ?? s !== void 0, { props: l } = Vn({
|
|
1810
1811
|
focusableWhenDisabled: n,
|
|
1811
1812
|
disabled: t,
|
|
1812
1813
|
composite: c,
|
|
1813
1814
|
tabIndex: r,
|
|
1814
1815
|
isNativeButton: i
|
|
1815
1816
|
});
|
|
1816
|
-
process.env.NODE_ENV !== "production" &&
|
|
1817
|
+
process.env.NODE_ENV !== "production" && h.useEffect(() => {
|
|
1817
1818
|
if (!o.current) return;
|
|
1818
|
-
let e =
|
|
1819
|
+
let e = Un(o.current);
|
|
1819
1820
|
i ? e || k(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${A.captureOwnerStack?.() || ""}`) : e && k(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${A.captureOwnerStack?.() || ""}`);
|
|
1820
1821
|
}, [i]);
|
|
1821
|
-
let u =
|
|
1822
|
+
let u = h.useCallback(() => {
|
|
1822
1823
|
let e = o.current;
|
|
1823
|
-
|
|
1824
|
+
Un(e) && c && t && l.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
1824
1825
|
}, [
|
|
1825
1826
|
t,
|
|
1826
1827
|
l.disabled,
|
|
1827
1828
|
c
|
|
1828
1829
|
]);
|
|
1829
1830
|
return F(u, [u]), {
|
|
1830
|
-
getButtonProps:
|
|
1831
|
+
getButtonProps: h.useCallback((e = {}) => {
|
|
1831
1832
|
let { onClick: n, onMouseDown: r, onKeyUp: a, onKeyDown: o, onPointerDown: s, ...u } = e;
|
|
1832
1833
|
return Ae({
|
|
1833
1834
|
onClick(e) {
|
|
@@ -1842,7 +1843,7 @@ function Wn(e = {}) {
|
|
|
1842
1843
|
},
|
|
1843
1844
|
onKeyDown(e) {
|
|
1844
1845
|
if (t || (Ve(e), o?.(e), e.baseUIHandlerPrevented)) return;
|
|
1845
|
-
let r = e.target === e.currentTarget, a = e.currentTarget, s =
|
|
1846
|
+
let r = e.target === e.currentTarget, a = e.currentTarget, s = Un(a), l = !i && Wn(a), u = r && (i ? s : !l), d = e.key === "Enter", f = e.key === " ", p = a.getAttribute("role"), m = p?.startsWith("menuitem") || p === "option" || p === "gridcell";
|
|
1846
1847
|
if (r && c && f) {
|
|
1847
1848
|
if (e.defaultPrevented && m) return;
|
|
1848
1849
|
e.preventDefault(), l || i && s ? (a.click(), e.preventBaseUIHandler()) : u && (n?.(e), e.preventBaseUIHandler());
|
|
@@ -1852,7 +1853,7 @@ function Wn(e = {}) {
|
|
|
1852
1853
|
},
|
|
1853
1854
|
onKeyUp(e) {
|
|
1854
1855
|
if (!t) {
|
|
1855
|
-
if (Ve(e), a?.(e), e.target === e.currentTarget && i && c &&
|
|
1856
|
+
if (Ve(e), a?.(e), e.target === e.currentTarget && i && c && Un(e.currentTarget) && e.key === " ") {
|
|
1856
1857
|
e.preventDefault();
|
|
1857
1858
|
return;
|
|
1858
1859
|
}
|
|
@@ -1878,22 +1879,22 @@ function Wn(e = {}) {
|
|
|
1878
1879
|
})
|
|
1879
1880
|
};
|
|
1880
1881
|
}
|
|
1881
|
-
function
|
|
1882
|
+
function Un(e) {
|
|
1882
1883
|
return p(e) && e.tagName === "BUTTON";
|
|
1883
1884
|
}
|
|
1884
|
-
function
|
|
1885
|
+
function Wn(e) {
|
|
1885
1886
|
return !!(e?.tagName === "A" && e?.href);
|
|
1886
1887
|
}
|
|
1887
1888
|
//#endregion
|
|
1888
1889
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/close/ToastClose.js
|
|
1889
|
-
var
|
|
1890
|
-
let { render: n, className: r, style: i, disabled: a, nativeButton: o = !0, ...s } = e, c =
|
|
1890
|
+
var Gn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1891
|
+
let { render: n, className: r, style: i, disabled: a, nativeButton: o = !0, ...s } = e, c = Vt(), { toast: l } = hn(), u = c.useState("expanded"), [d, f] = h.useState(!1), { getButtonProps: p, buttonRef: m } = Hn({
|
|
1891
1892
|
disabled: a,
|
|
1892
1893
|
native: o
|
|
1893
|
-
}),
|
|
1894
|
+
}), g = { type: l.type };
|
|
1894
1895
|
return U("button", e, {
|
|
1895
1896
|
ref: [t, m],
|
|
1896
|
-
state:
|
|
1897
|
+
state: g,
|
|
1897
1898
|
props: [
|
|
1898
1899
|
{
|
|
1899
1900
|
"aria-hidden": !u && !d,
|
|
@@ -1912,21 +1913,21 @@ var qn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1912
1913
|
]
|
|
1913
1914
|
});
|
|
1914
1915
|
});
|
|
1915
|
-
process.env.NODE_ENV !== "production" && (
|
|
1916
|
+
process.env.NODE_ENV !== "production" && (Gn.displayName = "ToastClose");
|
|
1916
1917
|
//#endregion
|
|
1917
1918
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
|
|
1918
|
-
function
|
|
1919
|
+
function Kn(e) {
|
|
1919
1920
|
return `data-base-ui-${e}`;
|
|
1920
1921
|
}
|
|
1921
1922
|
//#endregion
|
|
1922
1923
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal.js
|
|
1923
|
-
var
|
|
1924
|
-
process.env.NODE_ENV !== "production" && (
|
|
1925
|
-
var
|
|
1926
|
-
function
|
|
1927
|
-
let { ref: t, container: n, componentProps: r = L, elementProps: i } = e, a = me(), o =
|
|
1924
|
+
var qn = /* @__PURE__ */ h.createContext(null);
|
|
1925
|
+
process.env.NODE_ENV !== "production" && (qn.displayName = "PortalContext");
|
|
1926
|
+
var Jn = () => h.useContext(qn), Yn = Kn("portal");
|
|
1927
|
+
function Xn(e = {}) {
|
|
1928
|
+
let { ref: t, container: n, componentProps: r = L, elementProps: i } = e, a = me(), o = Jn()?.portalNode, [s, c] = h.useState(null), [l, u] = h.useState(null), f = P((e) => {
|
|
1928
1929
|
e !== null && u(e);
|
|
1929
|
-
}), p =
|
|
1930
|
+
}), p = h.useRef(null);
|
|
1930
1931
|
F(() => {
|
|
1931
1932
|
if (n === null) {
|
|
1932
1933
|
p.current && (p.current = null, u(null), c(null));
|
|
@@ -1948,31 +1949,31 @@ function Qn(e = {}) {
|
|
|
1948
1949
|
ref: [t, f],
|
|
1949
1950
|
props: [{
|
|
1950
1951
|
id: a,
|
|
1951
|
-
[
|
|
1952
|
+
[Yn]: ""
|
|
1952
1953
|
}, i]
|
|
1953
1954
|
});
|
|
1954
1955
|
return {
|
|
1955
1956
|
portalNode: l,
|
|
1956
|
-
portalSubtree: s && m ? /* @__PURE__ */
|
|
1957
|
+
portalSubtree: s && m ? /* @__PURE__ */ w.createPortal(m, s) : null
|
|
1957
1958
|
};
|
|
1958
1959
|
}
|
|
1959
|
-
var
|
|
1960
|
-
let { render: n, className: r, style: i, children: a, container: o, renderGuards: s, ...c } = e, { portalNode: l, portalSubtree: u } =
|
|
1960
|
+
var Zn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
1961
|
+
let { render: n, className: r, style: i, children: a, container: o, renderGuards: s, ...c } = e, { portalNode: l, portalSubtree: u } = Xn({
|
|
1961
1962
|
container: o,
|
|
1962
1963
|
ref: t,
|
|
1963
1964
|
componentProps: e,
|
|
1964
1965
|
elementProps: c
|
|
1965
|
-
}), d =
|
|
1966
|
-
|
|
1966
|
+
}), d = h.useRef(null), f = h.useRef(null), p = h.useRef(null), m = h.useRef(null), [g, ee] = h.useState(null), _ = h.useRef(!1), v = g?.modal, y = g?.open, b = typeof s == "boolean" ? s : !!g && !g.modal && g.open && !!l;
|
|
1967
|
+
h.useEffect(() => {
|
|
1967
1968
|
if (!l || v) return;
|
|
1968
1969
|
function e(e) {
|
|
1969
1970
|
l && e.relatedTarget && Ot(e) && (e.type === "focusin" ? _.current &&= (At(l), !1) : (kt(l), _.current = !0));
|
|
1970
1971
|
}
|
|
1971
|
-
return
|
|
1972
|
-
}, [l, v]),
|
|
1972
|
+
return $t(J(l, "focusin", e, !0), J(l, "focusout", e, !0));
|
|
1973
|
+
}, [l, v]), h.useEffect(() => {
|
|
1973
1974
|
!l || y !== !1 || (At(l), _.current = !1);
|
|
1974
1975
|
}, [y, l]);
|
|
1975
|
-
let x =
|
|
1976
|
+
let x = h.useMemo(() => ({
|
|
1976
1977
|
beforeOutsideRef: d,
|
|
1977
1978
|
afterOutsideRef: f,
|
|
1978
1979
|
beforeInsideRef: p,
|
|
@@ -1980,54 +1981,54 @@ var $n = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
1980
1981
|
portalNode: l,
|
|
1981
1982
|
setFocusManagerState: ee
|
|
1982
1983
|
}), [l]);
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ C(h.Fragment, { children: [u, /* @__PURE__ */ C(qn.Provider, {
|
|
1984
1985
|
value: x,
|
|
1985
1986
|
children: [
|
|
1986
|
-
b && l && /* @__PURE__ */
|
|
1987
|
+
b && l && /* @__PURE__ */ S(Z, {
|
|
1987
1988
|
"data-type": "outside",
|
|
1988
1989
|
ref: d,
|
|
1989
1990
|
onFocus: (e) => {
|
|
1990
|
-
Ot(e, l) ? p.current?.focus() : Dt(
|
|
1991
|
+
Ot(e, l) ? p.current?.focus() : Dt(g ? g.domReference : null)?.focus();
|
|
1991
1992
|
}
|
|
1992
1993
|
}),
|
|
1993
|
-
b && l && /* @__PURE__ */
|
|
1994
|
+
b && l && /* @__PURE__ */ S("span", {
|
|
1994
1995
|
"aria-owns": l.id,
|
|
1995
|
-
style:
|
|
1996
|
+
style: Dn
|
|
1996
1997
|
}),
|
|
1997
|
-
l && /* @__PURE__ */
|
|
1998
|
-
b && l && /* @__PURE__ */
|
|
1998
|
+
l && /* @__PURE__ */ w.createPortal(a, l),
|
|
1999
|
+
b && l && /* @__PURE__ */ S(Z, {
|
|
1999
2000
|
"data-type": "outside",
|
|
2000
2001
|
ref: f,
|
|
2001
2002
|
onFocus: (e) => {
|
|
2002
|
-
Ot(e, l) ? m.current?.focus() : (Et(
|
|
2003
|
+
Ot(e, l) ? m.current?.focus() : (Et(g ? g.domReference : null)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, z("focus-out", e.nativeEvent)));
|
|
2003
2004
|
}
|
|
2004
2005
|
})
|
|
2005
2006
|
]
|
|
2006
2007
|
})] });
|
|
2007
2008
|
});
|
|
2008
|
-
process.env.NODE_ENV !== "production" && (
|
|
2009
|
+
process.env.NODE_ENV !== "production" && (Zn.displayName = "FloatingPortal");
|
|
2009
2010
|
//#endregion
|
|
2010
2011
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/utils/FloatingPortalLite.js
|
|
2011
|
-
var
|
|
2012
|
-
let { children: n, container: r, className: i, render: a, style: o, ...s } = e, { portalNode: c, portalSubtree: l } =
|
|
2012
|
+
var Qn = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
2013
|
+
let { children: n, container: r, className: i, render: a, style: o, ...s } = e, { portalNode: c, portalSubtree: l } = Xn({
|
|
2013
2014
|
container: r,
|
|
2014
2015
|
ref: t,
|
|
2015
2016
|
componentProps: e,
|
|
2016
2017
|
elementProps: s
|
|
2017
2018
|
});
|
|
2018
|
-
return !l && !c ? null : /* @__PURE__ */
|
|
2019
|
+
return !l && !c ? null : /* @__PURE__ */ C(h.Fragment, { children: [l, c && /* @__PURE__ */ w.createPortal(n, c)] });
|
|
2019
2020
|
});
|
|
2020
|
-
process.env.NODE_ENV !== "production" && (
|
|
2021
|
+
process.env.NODE_ENV !== "production" && (Qn.displayName = "FloatingPortalLite");
|
|
2021
2022
|
//#endregion
|
|
2022
2023
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/portal/ToastPortal.js
|
|
2023
|
-
var
|
|
2024
|
+
var $n = Qn;
|
|
2024
2025
|
//#endregion
|
|
2025
2026
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.5.0_@types+react@19.2.15_date-fns@4.2.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@base-ui/react/esm/toast/useToastManager.js
|
|
2026
|
-
function
|
|
2027
|
-
let e =
|
|
2027
|
+
function er() {
|
|
2028
|
+
let e = h.useContext(Bt);
|
|
2028
2029
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? H(73) : "Base UI: useToastManager must be used within <Toast.Provider>.");
|
|
2029
2030
|
let t = e.useState("toasts");
|
|
2030
|
-
return
|
|
2031
|
+
return h.useMemo(() => ({
|
|
2031
2032
|
toasts: t,
|
|
2032
2033
|
add: e.addToast,
|
|
2033
2034
|
close: e.closeToast,
|
|
@@ -2037,15 +2038,15 @@ function nr() {
|
|
|
2037
2038
|
}
|
|
2038
2039
|
//#endregion
|
|
2039
2040
|
//#region src/hooks/use-hover.ts
|
|
2040
|
-
var
|
|
2041
|
-
let [t, n] =
|
|
2042
|
-
return
|
|
2041
|
+
var tr = (e) => {
|
|
2042
|
+
let [t, n] = x(!1), r = () => n(!0), i = () => n(!1);
|
|
2043
|
+
return y(() => {
|
|
2043
2044
|
let t = e.current;
|
|
2044
2045
|
if (t) return t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", i), () => {
|
|
2045
2046
|
t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", i);
|
|
2046
2047
|
};
|
|
2047
2048
|
}, [e]), t;
|
|
2048
|
-
},
|
|
2049
|
+
}, nr = r("shadow-notification text-typography-sm relative isolate z-tooltip flex w-full flex-col overflow-hidden rounded-notification-radius border bg-card-background backdrop-blur-md transition-all duration-300", {
|
|
2049
2050
|
variants: { theme: {
|
|
2050
2051
|
default: "border-card-border text-foreground shadow-black/5",
|
|
2051
2052
|
info: "border-alert-info-border bg-alert-info-bg text-alert-info-text",
|
|
@@ -2056,7 +2057,7 @@ var rr = (e) => {
|
|
|
2056
2057
|
secondary: "border-alert-secondary-border bg-alert-secondary-bg text-alert-secondary-text"
|
|
2057
2058
|
} },
|
|
2058
2059
|
defaultVariants: { theme: "default" }
|
|
2059
|
-
}),
|
|
2060
|
+
}), rr = {
|
|
2060
2061
|
default: a,
|
|
2061
2062
|
info: a,
|
|
2062
2063
|
warn: o,
|
|
@@ -2064,15 +2065,15 @@ var rr = (e) => {
|
|
|
2064
2065
|
danger: o,
|
|
2065
2066
|
success: i,
|
|
2066
2067
|
secondary: a
|
|
2067
|
-
},
|
|
2068
|
+
}, ir = g(() => {
|
|
2068
2069
|
throw Error("Not implemented");
|
|
2069
|
-
}),
|
|
2070
|
-
function
|
|
2071
|
-
let r = e.toast.data?.closable ?? !0, i = e.toast.data?.loading ?? !1, o = e.toast.data?.theme || "default", c =
|
|
2072
|
-
return /* @__PURE__ */
|
|
2070
|
+
}), ar = () => v(ir);
|
|
2071
|
+
function or(e) {
|
|
2072
|
+
let r = e.toast.data?.closable ?? !0, i = e.toast.data?.loading ?? !1, o = e.toast.data?.theme || "default", c = nr({ theme: o }), l = i ? E : rr[o] || a;
|
|
2073
|
+
return /* @__PURE__ */ S(Fn, {
|
|
2073
2074
|
toast: e.toast,
|
|
2074
2075
|
swipeDirection: "right",
|
|
2075
|
-
children: /* @__PURE__ */
|
|
2076
|
+
children: /* @__PURE__ */ S(t.li, {
|
|
2076
2077
|
layout: !0,
|
|
2077
2078
|
initial: {
|
|
2078
2079
|
opacity: 0,
|
|
@@ -2096,22 +2097,22 @@ function cr(e) {
|
|
|
2096
2097
|
stiffness: 300
|
|
2097
2098
|
},
|
|
2098
2099
|
className: "pointer-events-auto w-full list-none",
|
|
2099
|
-
children: /* @__PURE__ */
|
|
2100
|
+
children: /* @__PURE__ */ S(In, {
|
|
2100
2101
|
className: c,
|
|
2101
|
-
children: /* @__PURE__ */
|
|
2102
|
+
children: /* @__PURE__ */ C("div", {
|
|
2102
2103
|
className: "flex items-start gap-notification-gap p-notification-p",
|
|
2103
2104
|
children: [
|
|
2104
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ S("div", {
|
|
2105
2106
|
className: n("mt-0.5 shrink-0 opacity-80", i && "animate-spin"),
|
|
2106
|
-
children: /* @__PURE__ */
|
|
2107
|
+
children: /* @__PURE__ */ S(l, { className: "size-4" })
|
|
2107
2108
|
}),
|
|
2108
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ C("div", {
|
|
2109
2110
|
className: "flex flex-1 flex-col gap-notification-inner-gap overflow-hidden",
|
|
2110
|
-
children: [e.toast.title ? /* @__PURE__ */
|
|
2111
|
+
children: [e.toast.title ? /* @__PURE__ */ S(Rn, { className: "select-text truncate font-semibold leading-tight tracking-tight" }) : null, /* @__PURE__ */ S(Ln, { className: "line-clamp-2 select-text text-typography-xs font-medium leading-relaxed opacity-90" })]
|
|
2111
2112
|
}),
|
|
2112
|
-
r && !i ? /* @__PURE__ */
|
|
2113
|
+
r && !i ? /* @__PURE__ */ S(Gn, {
|
|
2113
2114
|
className: "rounded-notification-close-radius -mr-1 -mt-1 shrink-0 p-notification-close-p text-foreground/40 transition hover:bg-foreground/10 hover:text-foreground",
|
|
2114
|
-
children: /* @__PURE__ */
|
|
2115
|
+
children: /* @__PURE__ */ S(s, { className: "size-3.5" })
|
|
2115
2116
|
}) : null
|
|
2116
2117
|
]
|
|
2117
2118
|
})
|
|
@@ -2119,16 +2120,16 @@ function cr(e) {
|
|
|
2119
2120
|
})
|
|
2120
2121
|
});
|
|
2121
2122
|
}
|
|
2122
|
-
function
|
|
2123
|
-
let r =
|
|
2124
|
-
return /* @__PURE__ */
|
|
2123
|
+
function sr({ max: n = 5 }) {
|
|
2124
|
+
let r = b(null), i = tr(r), a = er(), o = n ? a.toasts.slice(0, n) : a.toasts, s = i ? o : o.slice(0, 3), c = o.length - s.length;
|
|
2125
|
+
return /* @__PURE__ */ C(fn, {
|
|
2125
2126
|
ref: r,
|
|
2126
2127
|
className: "pointer-events-none fixed left-1/2 top-notification-list-top z-floating flex w-full max-w-notification-list-max-w -translate-x-1/2 flex-col gap-notification-list-gap overflow-visible outline-none",
|
|
2127
|
-
children: [/* @__PURE__ */
|
|
2128
|
+
children: [/* @__PURE__ */ S(e, {
|
|
2128
2129
|
mode: "popLayout",
|
|
2129
2130
|
initial: !1,
|
|
2130
|
-
children: s.map((e) => /* @__PURE__ */
|
|
2131
|
-
}), !i && c > 0 && /* @__PURE__ */
|
|
2131
|
+
children: s.map((e) => /* @__PURE__ */ S(or, { toast: e }, e.id))
|
|
2132
|
+
}), !i && c > 0 && /* @__PURE__ */ C(t.div, {
|
|
2132
2133
|
layout: !0,
|
|
2133
2134
|
initial: {
|
|
2134
2135
|
opacity: 0,
|
|
@@ -2151,10 +2152,10 @@ function lr({ max: n = 5 }) {
|
|
|
2151
2152
|
})]
|
|
2152
2153
|
});
|
|
2153
2154
|
}
|
|
2154
|
-
function
|
|
2155
|
-
let n =
|
|
2155
|
+
function cr({ children: e, max: t = 5 }) {
|
|
2156
|
+
let n = er(), r = _(() => {
|
|
2156
2157
|
n.toasts.forEach((e) => n.close(e.id));
|
|
2157
|
-
}, [n]), i =
|
|
2158
|
+
}, [n]), i = _((e, t) => {
|
|
2158
2159
|
let i = {
|
|
2159
2160
|
theme: t?.theme,
|
|
2160
2161
|
closable: t?.closable,
|
|
@@ -2181,22 +2182,22 @@ function ur({ children: e, max: t = 5 }) {
|
|
|
2181
2182
|
clear: r
|
|
2182
2183
|
};
|
|
2183
2184
|
}, [n, r]);
|
|
2184
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ C(ir.Provider, {
|
|
2185
2186
|
value: i,
|
|
2186
|
-
children: [e, /* @__PURE__ */
|
|
2187
|
+
children: [e, /* @__PURE__ */ S($n, { children: /* @__PURE__ */ S(sr, { max: t }) })]
|
|
2187
2188
|
});
|
|
2188
2189
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return /* @__PURE__ */
|
|
2190
|
+
function lr({ children: e, max: t = 5, timeout: n = 5e3 }) {
|
|
2191
|
+
return /* @__PURE__ */ S(un, {
|
|
2191
2192
|
limit: t,
|
|
2192
2193
|
timeout: n,
|
|
2193
|
-
children: /* @__PURE__ */
|
|
2194
|
+
children: /* @__PURE__ */ S(cr, {
|
|
2194
2195
|
max: t,
|
|
2195
2196
|
children: e
|
|
2196
2197
|
})
|
|
2197
2198
|
});
|
|
2198
2199
|
}
|
|
2199
2200
|
//#endregion
|
|
2200
|
-
export { D as A, L as C, P as D, F as E, M as O, ce as S, oe as T, fe as _, J as a, ue as b, K as c, U as d, Ae as f, z as g, me as h, Lt as i, k, q as l, H as m,
|
|
2201
|
+
export { D as A, L as C, P as D, F as E, M as O, ce as S, oe as T, fe as _, J as a, ue as b, K as c, U as d, Ae as f, z as g, me as h, Lt as i, k, q as l, H as m, ar as n, st as o, ge as p, zt as r, G as s, lr as t, Qe as u, de as v, se as w, R as x, le as y };
|
|
2201
2202
|
|
|
2202
|
-
//# sourceMappingURL=notifications-
|
|
2203
|
+
//# sourceMappingURL=notifications-MT4XkLov.js.map
|