@hirely/ui 0.1.6 → 0.1.7
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/README.md +228 -123
- package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/dist/components/ui/accordion.cjs.js +2 -0
- package/dist/components/ui/accordion.cjs.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.es.js +55 -0
- package/dist/components/ui/accordion.es.js.map +1 -0
- package/dist/components/ui/alert-dialog.cjs.js +2 -0
- package/dist/components/ui/alert-dialog.cjs.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/alert-dialog.es.js +97 -0
- package/dist/components/ui/alert-dialog.es.js.map +1 -0
- package/dist/components/ui/alert-wrapper.cjs.js +2 -0
- package/dist/components/ui/alert-wrapper.cjs.js.map +1 -0
- package/dist/components/ui/{AlertWrapper.d.ts → alert-wrapper.d.ts} +2 -2
- package/dist/components/ui/alert-wrapper.es.js +20 -0
- package/dist/components/ui/alert-wrapper.es.js.map +1 -0
- package/dist/components/ui/alert.cjs.js +2 -0
- package/dist/components/ui/alert.cjs.js.map +1 -0
- package/dist/components/ui/alert.d.ts +2 -2
- package/dist/components/ui/alert.es.js +45 -0
- package/dist/components/ui/alert.es.js.map +1 -0
- package/dist/components/ui/aspect-ratio.cjs.js +2 -0
- package/dist/components/ui/aspect-ratio.cjs.js.map +1 -0
- package/dist/components/ui/aspect-ratio.es.js +15 -0
- package/dist/components/ui/aspect-ratio.es.js.map +1 -0
- package/dist/components/ui/attachment.cjs.js +2 -0
- package/dist/components/ui/attachment.cjs.js.map +1 -0
- package/dist/components/ui/attachment.d.ts +6 -6
- package/dist/components/ui/attachment.es.js +106 -0
- package/dist/components/ui/attachment.es.js.map +1 -0
- package/dist/components/ui/avatar.cjs.js +2 -0
- package/dist/components/ui/avatar.cjs.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.es.js +52 -0
- package/dist/components/ui/avatar.es.js.map +1 -0
- package/dist/components/ui/badge.cjs.js +2 -0
- package/dist/components/ui/badge.cjs.js.map +1 -0
- package/dist/components/ui/badge.d.ts +5 -5
- package/dist/components/ui/badge.es.js +31 -0
- package/dist/components/ui/badge.es.js.map +1 -0
- package/dist/components/ui/breadcrumb.cjs.js +2 -0
- package/dist/components/ui/breadcrumb.cjs.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +1 -1
- package/dist/components/ui/breadcrumb.es.js +74 -0
- package/dist/components/ui/breadcrumb.es.js.map +1 -0
- package/dist/components/ui/bubble.cjs.js +2 -0
- package/dist/components/ui/bubble.cjs.js.map +1 -0
- package/dist/components/ui/bubble.d.ts +4 -4
- package/dist/components/ui/bubble.es.js +75 -0
- package/dist/components/ui/bubble.es.js.map +1 -0
- package/dist/components/ui/button-group.cjs.js +2 -0
- package/dist/components/ui/button-group.cjs.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +5 -5
- package/dist/components/ui/button-group.es.js +43 -0
- package/dist/components/ui/button-group.es.js.map +1 -0
- package/dist/components/ui/button.cjs.js +2 -0
- package/dist/components/ui/button.cjs.js.map +1 -0
- package/dist/components/ui/button.d.ts +5 -5
- package/dist/components/ui/button.es.js +46 -0
- package/dist/components/ui/button.es.js.map +1 -0
- package/dist/components/ui/calendar.cjs.js +2 -0
- package/dist/components/ui/calendar.cjs.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.es.js +93 -0
- package/dist/components/ui/calendar.es.js.map +1 -0
- package/dist/components/ui/card.cjs.js +2 -0
- package/dist/components/ui/card.cjs.js.map +1 -0
- package/dist/components/ui/card.es.js +58 -0
- package/dist/components/ui/card.es.js.map +1 -0
- package/dist/components/ui/carousel.cjs.js +2 -0
- package/dist/components/ui/carousel.cjs.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +2 -2
- package/dist/components/ui/carousel.es.js +113 -0
- package/dist/components/ui/carousel.es.js.map +1 -0
- package/dist/components/ui/chart.cjs.js +8 -0
- package/dist/components/ui/chart.cjs.js.map +1 -0
- package/dist/components/ui/chart.d.ts +1 -1
- package/dist/components/ui/chart.es.js +133 -0
- package/dist/components/ui/chart.es.js.map +1 -0
- package/dist/components/ui/checkbox.cjs.js +2 -0
- package/dist/components/ui/checkbox.cjs.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.es.js +22 -0
- package/dist/components/ui/checkbox.es.js.map +1 -0
- package/dist/components/ui/collapsible.cjs.js +2 -0
- package/dist/components/ui/collapsible.cjs.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +1 -1
- package/dist/components/ui/collapsible.es.js +25 -0
- package/dist/components/ui/collapsible.es.js.map +1 -0
- package/dist/components/ui/combobox.cjs.js +2 -0
- package/dist/components/ui/combobox.cjs.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +2 -2
- package/dist/components/ui/combobox.es.js +164 -0
- package/dist/components/ui/combobox.es.js.map +1 -0
- package/dist/components/ui/command.cjs.js +2 -0
- package/dist/components/ui/command.cjs.js.map +1 -0
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.es.js +89 -0
- package/dist/components/ui/command.es.js.map +1 -0
- package/dist/components/ui/context-menu.cjs.js +2 -0
- package/dist/components/ui/context-menu.cjs.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.es.js +135 -0
- package/dist/components/ui/context-menu.es.js.map +1 -0
- package/dist/components/ui/dialog.cjs.js +2 -0
- package/dist/components/ui/dialog.cjs.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.es.js +93 -0
- package/dist/components/ui/dialog.es.js.map +1 -0
- package/dist/components/ui/direction.d.ts +1 -1
- package/dist/components/ui/direction.es.js +2 -0
- package/dist/components/ui/drawer.cjs.js +2 -0
- package/dist/components/ui/drawer.cjs.js.map +1 -0
- package/dist/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.es.js +123 -0
- package/dist/components/ui/drawer.es.js.map +1 -0
- package/dist/components/ui/dropdown-menu.cjs.js +2 -0
- package/dist/components/ui/dropdown-menu.cjs.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu.es.js +138 -0
- package/dist/components/ui/dropdown-menu.es.js.map +1 -0
- package/dist/components/ui/empty.cjs.js +2 -0
- package/dist/components/ui/empty.cjs.js.map +1 -0
- package/dist/components/ui/empty.d.ts +9 -8
- package/dist/components/ui/empty.es.js +62 -0
- package/dist/components/ui/empty.es.js.map +1 -0
- package/dist/components/ui/field.cjs.js +2 -0
- package/dist/components/ui/field.cjs.js.map +1 -0
- package/dist/components/ui/field.d.ts +3 -3
- package/dist/components/ui/field.es.js +110 -0
- package/dist/components/ui/field.es.js.map +1 -0
- package/dist/components/ui/hover-card.cjs.js +2 -0
- package/dist/components/ui/hover-card.cjs.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.es.js +38 -0
- package/dist/components/ui/hover-card.es.js.map +1 -0
- package/dist/components/ui/input-group.cjs.js +2 -0
- package/dist/components/ui/input-group.cjs.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +6 -6
- package/dist/components/ui/input-group.es.js +79 -0
- package/dist/components/ui/input-group.es.js.map +1 -0
- package/dist/components/ui/input-otp.cjs.js +2 -0
- package/dist/components/ui/input-otp.cjs.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp.es.js +48 -0
- package/dist/components/ui/input-otp.es.js.map +1 -0
- package/dist/components/ui/input.cjs.js +2 -0
- package/dist/components/ui/input.cjs.js.map +1 -0
- package/dist/components/ui/input.es.js +17 -0
- package/dist/components/ui/input.es.js.map +1 -0
- package/dist/components/ui/item.cjs.js +2 -0
- package/dist/components/ui/item.cjs.js.map +1 -0
- package/dist/components/ui/item.d.ts +6 -6
- package/dist/components/ui/item.es.js +123 -0
- package/dist/components/ui/item.es.js.map +1 -0
- package/dist/components/ui/kbd.cjs.js +2 -0
- package/dist/components/ui/kbd.cjs.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +3 -2
- package/dist/components/ui/kbd.es.js +22 -0
- package/dist/components/ui/kbd.es.js.map +1 -0
- package/dist/components/ui/label.cjs.js +2 -0
- package/dist/components/ui/label.cjs.js.map +1 -0
- package/dist/components/ui/label.es.js +16 -0
- package/dist/components/ui/label.es.js.map +1 -0
- package/dist/components/ui/marker.cjs.js +2 -0
- package/dist/components/ui/marker.cjs.js.map +1 -0
- package/dist/components/ui/marker.d.ts +3 -3
- package/dist/components/ui/marker.es.js +45 -0
- package/dist/components/ui/marker.es.js.map +1 -0
- package/dist/components/ui/menubar.cjs.js +2 -0
- package/dist/components/ui/menubar.cjs.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +3 -3
- package/dist/components/ui/menubar.es.js +137 -0
- package/dist/components/ui/menubar.es.js.map +1 -0
- package/dist/components/ui/message-scroller.cjs.js +2 -0
- package/dist/components/ui/message-scroller.cjs.js.map +1 -0
- package/dist/components/ui/message-scroller.d.ts +2 -2
- package/dist/components/ui/message-scroller.es.js +63 -0
- package/dist/components/ui/message-scroller.es.js.map +1 -0
- package/dist/components/ui/message.cjs.js +2 -0
- package/dist/components/ui/message.cjs.js.map +1 -0
- package/dist/components/ui/message.es.js +51 -0
- package/dist/components/ui/message.es.js.map +1 -0
- package/dist/components/ui/native-select.cjs.js +2 -0
- package/dist/components/ui/native-select.cjs.js.map +1 -0
- package/dist/components/ui/native-select.es.js +40 -0
- package/dist/components/ui/native-select.es.js.map +1 -0
- package/dist/components/ui/navigation-menu.cjs.js +2 -0
- package/dist/components/ui/navigation-menu.cjs.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +2 -2
- package/dist/components/ui/navigation-menu.es.js +84 -0
- package/dist/components/ui/navigation-menu.es.js.map +1 -0
- package/dist/components/ui/pagination.cjs.js +2 -0
- package/dist/components/ui/pagination.cjs.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.es.js +82 -0
- package/dist/components/ui/pagination.es.js.map +1 -0
- package/dist/components/ui/popover.cjs.js +2 -0
- package/dist/components/ui/popover.cjs.js.map +1 -0
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.es.js +56 -0
- package/dist/components/ui/popover.es.js.map +1 -0
- package/dist/components/ui/progress.cjs.js +2 -0
- package/dist/components/ui/progress.cjs.js.map +1 -0
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.es.js +46 -0
- package/dist/components/ui/progress.es.js.map +1 -0
- package/dist/components/ui/radio-group.cjs.js +2 -0
- package/dist/components/ui/radio-group.cjs.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +2 -2
- package/dist/components/ui/radio-group.es.js +28 -0
- package/dist/components/ui/radio-group.es.js.map +1 -0
- package/dist/components/ui/resizable.cjs.js +2 -0
- package/dist/components/ui/resizable.cjs.js.map +1 -0
- package/dist/components/ui/resizable.es.js +30 -0
- package/dist/components/ui/resizable.es.js.map +1 -0
- package/dist/components/ui/scroll-area.cjs.js +2 -0
- package/dist/components/ui/scroll-area.cjs.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area.es.js +37 -0
- package/dist/components/ui/scroll-area.es.js.map +1 -0
- package/dist/components/ui/select.cjs.js +2 -0
- package/dist/components/ui/select.cjs.js.map +1 -0
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.es.js +100 -0
- package/dist/components/ui/select.es.js.map +1 -0
- package/dist/components/ui/separator.cjs.js +2 -0
- package/dist/components/ui/separator.cjs.js.map +1 -0
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.es.js +16 -0
- package/dist/components/ui/separator.es.js.map +1 -0
- package/dist/components/ui/sheet.cjs.js +2 -0
- package/dist/components/ui/sheet.cjs.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sheet.es.js +90 -0
- package/dist/components/ui/sheet.es.js.map +1 -0
- package/dist/components/ui/sidebar.cjs.js +2 -0
- package/dist/components/ui/sidebar.cjs.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +19 -8
- package/dist/components/ui/sidebar.es.js +363 -0
- package/dist/components/ui/sidebar.es.js.map +1 -0
- package/dist/components/ui/skeleton.cjs.js +2 -0
- package/dist/components/ui/skeleton.cjs.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +2 -1
- package/dist/components/ui/skeleton.es.js +15 -0
- package/dist/components/ui/skeleton.es.js.map +1 -0
- package/dist/components/ui/slider.cjs.js +2 -0
- package/dist/components/ui/slider.cjs.js.map +1 -0
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.es.js +35 -0
- package/dist/components/ui/slider.es.js.map +1 -0
- package/dist/components/ui/sonner.cjs.js +2 -0
- package/dist/components/ui/sonner.cjs.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +22 -2
- package/dist/components/ui/sonner.es.js +29 -0
- package/dist/components/ui/sonner.es.js.map +1 -0
- package/dist/components/ui/spinner.cjs.js +2 -0
- package/dist/components/ui/spinner.cjs.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +2 -1
- package/dist/components/ui/spinner.es.js +18 -0
- package/dist/components/ui/spinner.es.js.map +1 -0
- package/dist/components/ui/switch.cjs.js +2 -0
- package/dist/components/ui/switch.cjs.js.map +1 -0
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.es.js +20 -0
- package/dist/components/ui/switch.es.js.map +1 -0
- package/dist/components/ui/table.cjs.js +2 -0
- package/dist/components/ui/table.cjs.js.map +1 -0
- package/dist/components/ui/table.es.js +69 -0
- package/dist/components/ui/table.es.js.map +1 -0
- package/dist/components/ui/tabs.cjs.js +2 -0
- package/dist/components/ui/tabs.cjs.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +3 -3
- package/dist/components/ui/tabs.es.js +46 -0
- package/dist/components/ui/tabs.es.js.map +1 -0
- package/dist/components/ui/textarea.cjs.js +2 -0
- package/dist/components/ui/textarea.cjs.js.map +1 -0
- package/dist/components/ui/textarea.es.js +15 -0
- package/dist/components/ui/textarea.es.js.map +1 -0
- package/dist/components/ui/toggle-group.cjs.js +2 -0
- package/dist/components/ui/toggle-group.cjs.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +4 -4
- package/dist/components/ui/toggle-group.es.js +54 -0
- package/dist/components/ui/toggle-group.es.js.map +1 -0
- package/dist/components/ui/toggle.cjs.js +2 -0
- package/dist/components/ui/toggle.cjs.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +3 -3
- package/dist/components/ui/toggle.es.js +38 -0
- package/dist/components/ui/toggle.es.js.map +1 -0
- package/dist/components/ui/tooltip.cjs.js +2 -0
- package/dist/components/ui/tooltip.cjs.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.es.js +42 -0
- package/dist/components/ui/tooltip.es.js.map +1 -0
- package/dist/hooks/index.cjs.js +1 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.es.js +2 -0
- package/dist/hooks/use-mobile.cjs.js +2 -0
- package/dist/hooks/use-mobile.cjs.js.map +1 -0
- package/dist/hooks/use-mobile.es.js +16 -0
- package/dist/hooks/use-mobile.es.js.map +1 -0
- package/dist/index.cjs.js +1 -7
- package/dist/index.d.ts +62 -61
- package/dist/index.es.js +63 -5447
- package/dist/lib/utils.d.ts +1 -1
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js +10 -0
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +27 -0
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js +63 -0
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.es.js +201 -0
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +175 -0
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +24 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +149 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js +14 -0
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js +21 -0
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js +90 -0
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js +43 -0
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js +67 -0
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +12 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +47 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js +2 -0
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js +48 -0
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -0
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.es.js +35 -0
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js +2 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js.map +1 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.es.js +18 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.es.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js +2 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.es.js +19 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.es.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.es.js +446 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js +2 -0
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.es.js +1860 -0
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js +2 -0
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.es.js +25 -0
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.es.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js +2 -0
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.es.js +32 -0
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.es.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js +2 -0
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.es.js +1019 -0
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.es.js.map +1 -0
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js +2 -0
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js +9 -0
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js.map +1 -0
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js +21 -0
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.es.js +351 -0
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +39 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +72 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +6 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.es.js +4 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +29 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +16 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +5 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +118 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.es.js +54 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +15 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +54 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.es.js +7 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.es.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +2 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +9 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js.map +1 -0
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js +2 -0
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js +1550 -0
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js +2 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.es.js +13 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +2 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.es.js +17 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.cjs.js +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.es.js +4 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +2 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.es.js +30 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -0
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js +2 -0
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js.map +1 -0
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js +21 -0
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +2 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +8 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.es.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +2 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +28 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +2 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.es.js +24 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js +2 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.es.js +18 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.es.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js +2 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.es.js +71 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -0
- package/package.json +87 -25
- package/src/index.css +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect as e } from "../../../../../@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region ../../node_modules/.bun/@radix-ui+react-presence@1.1.7+ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5
|
+
function n(e, n) {
|
|
6
|
+
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
7
|
+
}
|
|
8
|
+
var r = (e) => {
|
|
9
|
+
let { present: n, children: r } = e, a = i(n), s = typeof r == "function" ? r({ present: a.isPresent }) : t.Children.only(r), l = o(a.ref, c(s));
|
|
10
|
+
return typeof r == "function" || a.isPresent ? t.cloneElement(s, { ref: l }) : null;
|
|
11
|
+
};
|
|
12
|
+
r.displayName = "Presence";
|
|
13
|
+
function i(r) {
|
|
14
|
+
let [i, a] = t.useState(), o = t.useRef(null), c = t.useRef(r), l = t.useRef("none"), u = t.useRef(void 0), [d, f] = n(r ? "mounted" : "unmounted", {
|
|
15
|
+
mounted: {
|
|
16
|
+
UNMOUNT: "unmounted",
|
|
17
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
18
|
+
},
|
|
19
|
+
unmountSuspended: {
|
|
20
|
+
MOUNT: "mounted",
|
|
21
|
+
ANIMATION_END: "unmounted"
|
|
22
|
+
},
|
|
23
|
+
unmounted: { MOUNT: "mounted" }
|
|
24
|
+
});
|
|
25
|
+
return t.useEffect(() => {
|
|
26
|
+
d === "mounted" ? (l.current = u.current ?? s(o.current), u.current = void 0) : l.current = "none";
|
|
27
|
+
}, [d]), e(() => {
|
|
28
|
+
let e = o.current, t = c.current;
|
|
29
|
+
if (t !== r) {
|
|
30
|
+
let n = l.current, i = s(e);
|
|
31
|
+
r ? (u.current = i, f("MOUNT")) : i === "none" || e?.display === "none" ? f("UNMOUNT") : f(t && n !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = r;
|
|
32
|
+
}
|
|
33
|
+
}, [r, f]), e(() => {
|
|
34
|
+
if (i) {
|
|
35
|
+
let e, t = i.ownerDocument.defaultView ?? window, n = (n) => {
|
|
36
|
+
let r = s(o.current).includes(CSS.escape(n.animationName));
|
|
37
|
+
if (n.target === i && r && (f("ANIMATION_END"), !c.current)) {
|
|
38
|
+
let n = i.style.animationFillMode;
|
|
39
|
+
i.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
40
|
+
i.style.animationFillMode === "forwards" && (i.style.animationFillMode = n);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}, r = (e) => {
|
|
44
|
+
e.target === i && (l.current = s(o.current));
|
|
45
|
+
};
|
|
46
|
+
return i.addEventListener("animationstart", r), i.addEventListener("animationcancel", n), i.addEventListener("animationend", n), () => {
|
|
47
|
+
t.clearTimeout(e), i.removeEventListener("animationstart", r), i.removeEventListener("animationcancel", n), i.removeEventListener("animationend", n);
|
|
48
|
+
};
|
|
49
|
+
} else f("ANIMATION_END");
|
|
50
|
+
}, [i, f]), {
|
|
51
|
+
isPresent: ["mounted", "unmountSuspended"].includes(d),
|
|
52
|
+
ref: t.useCallback((e) => {
|
|
53
|
+
if (e) {
|
|
54
|
+
let t = getComputedStyle(e);
|
|
55
|
+
o.current = t, u.current = s(t);
|
|
56
|
+
} else o.current = null;
|
|
57
|
+
a(e);
|
|
58
|
+
}, [])
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function a(e, t) {
|
|
62
|
+
if (typeof e == "function") return e(t);
|
|
63
|
+
e != null && (e.current = t);
|
|
64
|
+
}
|
|
65
|
+
function o(...e) {
|
|
66
|
+
let n = t.useRef(e);
|
|
67
|
+
return n.current = e, t.useCallback((e) => {
|
|
68
|
+
let t = n.current, r = !1, i = t.map((t) => {
|
|
69
|
+
let n = a(t, e);
|
|
70
|
+
return !r && typeof n == "function" && (r = !0), n;
|
|
71
|
+
});
|
|
72
|
+
if (r) return () => {
|
|
73
|
+
for (let e = 0; e < i.length; e++) {
|
|
74
|
+
let n = i[e];
|
|
75
|
+
typeof n == "function" ? n() : a(t[e], null);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}, []);
|
|
79
|
+
}
|
|
80
|
+
function s(e) {
|
|
81
|
+
return e?.animationName || "none";
|
|
82
|
+
}
|
|
83
|
+
function c(e) {
|
|
84
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
85
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { r as Presence };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-presence@1.1.7+ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useStableComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const mountAnimationNameRef = React2.useRef(void 0);\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n if (state === \"mounted\") {\n prevAnimationNameRef.current = mountAnimationNameRef.current ?? getAnimationName(stylesRef.current);\n mountAnimationNameRef.current = void 0;\n } else {\n prevAnimationNameRef.current = \"none\";\n }\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n mountAnimationNameRef.current = currentAnimationName;\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) {\n const styles = getComputedStyle(node2);\n stylesRef.current = styles;\n mountAnimationNameRef.current = getAnimationName(styles);\n } else {\n stylesRef.current = null;\n }\n setNode(node2);\n }, [])\n };\n}\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction useStableComposedRefs(...refs) {\n const refsRef = React2.useRef(refs);\n refsRef.current = refs;\n return React2.useCallback((node) => {\n const currentRefs = refsRef.current;\n let hasCleanup = false;\n const cleanups = currentRefs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n } else {\n setRef(currentRefs[i], null);\n }\n }\n };\n }\n }, []);\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAQA,SAAS,EAAgB,GAAc,GAAS;CAC9C,OAAOA,EAAM,YAAY,GAAO,MACZ,EAAQ,EAAM,CAAC,MACb,GACnB,CAAY;AACjB;AAGA,IAAI,KAAY,MAAU;CACxB,IAAM,EAAE,YAAS,gBAAa,GACxB,IAAW,EAAY,CAAO,GAC9B,IAAQ,OAAO,KAAa,aAAa,EAAS,EAAE,SAAS,EAAS,UAAU,CAAC,IAAI,EAAO,SAAS,KAAK,CAAQ,GAClH,IAAM,EA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K,CAAI;GAIhC,OAHI,CAAC,KAAc,OAAO,KAAY,eACpC,IAAa,KAER;EACT,CAAC;EACD,IAAI,GACF,aAAa;GACX,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,QAAQ,KAAK;IACxC,IAAM,IAAU,EAAS;IACzB,AAAI,OAAO,KAAY,aACrB,EAAQ,IAER,EAAO,EAAY,IAAI,IAAI;GAE/B;EACF;CAEJ,GAAG,CAAC,CAAC;AACP;AACA,SAAS,EAAiB,GAAQ;CAChC,OAAO,GAAQ,iBAAiB;AAClC;AACA,SAAS,EAAc,GAAS;CAC9B,IAAI,IAAS,OAAO,yBAAyB,EAAQ,OAAO,KAAK,CAAC,EAAE,KAChE,IAAU,KAAU,oBAAoB,KAAU,EAAO;CAS7D,OARI,IACK,EAAQ,OAEjB,IAAS,OAAO,yBAAyB,GAAS,KAAK,CAAC,EAAE,KAC1D,IAAU,KAAU,oBAAoB,KAAU,EAAO,gBACrD,IACK,EAAQ,MAAM,MAEhB,EAAQ,MAAM,OAAO,EAAQ;AACtC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js");let n=require("react/jsx-runtime"),r=require("react");r=e.__toESM(r,1);let i=require("react-dom");i=e.__toESM(i,1);var a=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,i)=>{let a=t.createSlot(`Primitive.${i}`),o=r.forwardRef((e,t)=>{let{asChild:r,...o}=e,s=r?a:i;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,n.jsx)(s,{...o,ref:t})});return o.displayName=`Primitive.${i}`,{...e,[i]:o}},{});function o(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=a,exports.dispatchDiscreteCustomEvent=o;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["createSlot","React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-primitive@2.1.7+ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"yTAwBA,IAAI,EAAY,CAlBd,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,SACA,OACA,MACA,IAEkB,CAAC,CAAC,QAAQ,EAAW,IAAS,CAChD,IAAM,EAAOA,EAAAA,WAAW,aAAa,GAAM,EACrC,EAAOC,EAAM,YAAY,EAAO,IAAiB,CACrD,GAAM,CAAE,UAAS,GAAG,GAAmB,EACjC,EAAO,EAAU,EAAO,EAI9B,OAHI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,GAAK,KAEZ,EAAA,EAAA,IAAA,CAAI,EAAM,CAAE,GAAG,EAAgB,IAAK,CAAa,CAAC,CAC3E,CAAC,EAED,MADA,GAAK,YAAc,aAAa,IACzB,CAAE,GAAG,GAAY,GAAO,CAAK,CACtC,EAAG,CAAC,CAAC,EACL,SAAS,EAA4B,EAAQ,EAAO,CAC9C,GAAQ,EAAS,cAAgB,EAAO,cAAc,CAAK,CAAC,CAClE"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createSlot as e } from "../../../../../@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import * as r from "react-dom";
|
|
5
|
+
//#region ../../node_modules/.bun/@radix-ui+react-primitive@2.1.7+ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
+
var i = [
|
|
7
|
+
"a",
|
|
8
|
+
"button",
|
|
9
|
+
"div",
|
|
10
|
+
"form",
|
|
11
|
+
"h2",
|
|
12
|
+
"h3",
|
|
13
|
+
"img",
|
|
14
|
+
"input",
|
|
15
|
+
"label",
|
|
16
|
+
"li",
|
|
17
|
+
"nav",
|
|
18
|
+
"ol",
|
|
19
|
+
"p",
|
|
20
|
+
"select",
|
|
21
|
+
"span",
|
|
22
|
+
"svg",
|
|
23
|
+
"ul"
|
|
24
|
+
].reduce((r, i) => {
|
|
25
|
+
let a = e(`Primitive.${i}`), o = n.forwardRef((e, n) => {
|
|
26
|
+
let { asChild: r, ...o } = e, s = r ? a : i;
|
|
27
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t(s, {
|
|
28
|
+
...o,
|
|
29
|
+
ref: n
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return o.displayName = `Primitive.${i}`, {
|
|
33
|
+
...r,
|
|
34
|
+
[i]: o
|
|
35
|
+
};
|
|
36
|
+
}, {});
|
|
37
|
+
function a(e, t) {
|
|
38
|
+
e && r.flushSync(() => e.dispatchEvent(t));
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { i as Primitive, a as dispatchDiscreteCustomEvent };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-primitive@2.1.7+ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAwBA,IAAI,IAAY;CAlBd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAEkB,CAAC,CAAC,QAAQ,GAAW,MAAS;CAChD,IAAM,IAAO,EAAW,aAAa,GAAM,GACrC,IAAO,EAAM,YAAY,GAAO,MAAiB;EACrD,IAAM,EAAE,YAAS,GAAG,MAAmB,GACjC,IAAO,IAAU,IAAO;EAI9B,OAHI,OAAO,SAAW,QACpB,OAAO,OAAO,IAAI,UAAU,KAAK,KAEZ,kBAAI,GAAM;GAAE,GAAG;GAAgB,KAAK;EAAa,CAAC;CAC3E,CAAC;CAED,OADA,EAAK,cAAc,aAAa,KACzB;EAAE,GAAG;GAAY,IAAO;CAAK;AACtC,GAAG,CAAC,CAAC;AACL,SAAS,EAA4B,GAAQ,GAAO;CAClD,AAAI,KAAQ,EAAS,gBAAgB,EAAO,cAAc,CAAK,CAAC;AAClE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js");let n=require("react");n=e.__toESM(n,1);function r(e){let r=n.forwardRef((r,i)=>{let{children:l,...d}=r,h=null,g=!1,_=[];u(l)&&typeof m==`function`&&(l=m(l._payload)),n.Children.forEach(l,e=>{if(c(e)){g=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;u(n)&&typeof m==`function`&&(n=m(n._payload)),h=a(t,n),_.push(h?.props?.children)}else _.push(e)}),h?h=n.cloneElement(h,void 0,_):!g&&n.Children.count(l)===1&&n.isValidElement(l)&&(h=l);let v=h?s(h):void 0,y=t.useComposedRefs(i,v);if(!h){if(l||l===0)throw Error(g?p(e):f(e));return l}let b=o(d,h.props??{});return h.type!==n.Fragment&&(b.ref=i?y:v),n.cloneElement(h,b)});return r.displayName=`${e}.Slot`,r}var i=Symbol.for(`radix.slottable`),a=(e,t)=>{if(`child`in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null};function o(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function s(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function c(e){return n.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===i}var l=Symbol.for(`react.lazy`);function u(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===l&&`_payload`in e&&d(e._payload)}function d(e){return typeof e==`object`&&!!e&&`then`in e}var f=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,p=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,m=n.use;exports.createSlot=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["React","useComposedRefs"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-slot@1.3.0+93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n if (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = (props) => \"child\" in props ? props.children(props.child) : props.children;\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = (slottable, child) => {\n if (\"child\" in slottable.props) {\n const child2 = slottable.props.child;\n if (!React.isValidElement(child2)) return null;\n return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));\n }\n return React.isValidElement(child) ? child : null;\n};\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nvar createSlotError = (ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\nvar createSlottableError = (ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"8PAIA,SAAS,EAAW,EAAW,CAC7B,IAAM,EAAQA,EAAM,YAAY,EAAO,IAAiB,CACtD,GAAI,CAAE,WAAU,GAAG,GAAc,EAC7B,EAAmB,KACnB,EAAe,GACb,EAAc,CAAC,EACjB,EAAgB,CAAQ,GAAK,OAAO,GAAQ,aAC9C,EAAW,EAAI,EAAS,QAAQ,GAElC,EAAM,SAAS,QAAQ,EAAW,GAAmB,CACnD,GAAI,EAAY,CAAc,EAAG,CAC/B,EAAe,GACf,IAAM,EAAY,EACd,EAAQ,UAAW,EAAU,MAAQ,EAAU,MAAM,MAAQ,EAAU,MAAM,SAC7E,EAAgB,CAAK,GAAK,OAAO,GAAQ,aAC3C,EAAQ,EAAI,EAAM,QAAQ,GAE5B,EAAmB,EAAiC,EAAW,CAAK,EACpE,EAAY,KAAK,GAAkB,OAAO,QAAQ,CACpD,MACE,EAAY,KAAK,CAAc,CAEnC,CAAC,EACG,EACF,EAAmBA,EAAM,aAAa,EAAkB,IAAK,GAAG,CAAW,EAM3E,CAAC,GAAgBA,EAAM,SAAS,MAAM,CAAQ,IAAM,GAAKA,EAAM,eAAe,CAAQ,IAEtF,EAAmB,GAErB,IAAM,EAAsB,EAAmB,EAAc,CAAgB,EAAI,IAAK,GAChF,EAAcC,EAAAA,gBAAgB,EAAc,CAAmB,EACrE,GAAI,CAAC,EAAkB,CACrB,GAAI,GAAY,IAAa,EAC3B,MAAU,MACR,EAAe,EAAqB,CAAS,EAAI,EAAgB,CAAS,CAC5E,EAEF,OAAO,CACT,CACA,IAAM,EAAc,EAAW,EAAW,EAAiB,OAAS,CAAC,CAAC,EAItE,OAHI,EAAiB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AAQ,MAAM,KAAO,EAAQ,IACtC,CACA,SAAS,EAAY,EAAO,CAC1B,OAAOA,EAAM,eAAe,CAAK,GAAK,OAAO,EAAM,MAAS,YAAc,cAAe,EAAM,MAAQ,EAAM,KAAK,YAAc,CAClI,CACA,IAAI,EAAkB,OAAO,IAAI,YAAY,EAC7C,SAAS,EAAgB,EAAS,CAChC,OAA0B,OAAO,GAAY,YAAtC,GAAkD,aAAc,GAAW,EAAQ,WAAa,GAAmB,aAAc,GAAW,EAAc,EAAQ,QAAQ,CACnL,CACA,SAAS,EAAc,EAAO,CAC5B,OAAO,OAAO,GAAU,YAAY,GAAkB,SAAU,CAClE,CACA,IAAI,EAAmB,GACd,GAAG,EAAU,4FAElB,EAAwB,GACnB,GAAG,EAAU,yGAElB,EAAMA,EAAM"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useComposedRefs as e } from "../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-slot@1.3.0+93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function n(n) {
|
|
6
|
+
let r = t.forwardRef((r, c) => {
|
|
7
|
+
let { children: u, ...m } = r, h = null, g = !1, _ = [];
|
|
8
|
+
l(u) && typeof p == "function" && (u = p(u._payload)), t.Children.forEach(u, (e) => {
|
|
9
|
+
if (s(e)) {
|
|
10
|
+
g = !0;
|
|
11
|
+
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
12
|
+
l(n) && typeof p == "function" && (n = p(n._payload)), h = i(t, n), _.push(h?.props?.children);
|
|
13
|
+
} else _.push(e);
|
|
14
|
+
}), h ? h = t.cloneElement(h, void 0, _) : !g && t.Children.count(u) === 1 && t.isValidElement(u) && (h = u);
|
|
15
|
+
let v = h ? o(h) : void 0, y = e(c, v);
|
|
16
|
+
if (!h) {
|
|
17
|
+
if (u || u === 0) throw Error(g ? f(n) : d(n));
|
|
18
|
+
return u;
|
|
19
|
+
}
|
|
20
|
+
let b = a(m, h.props ?? {});
|
|
21
|
+
return h.type !== t.Fragment && (b.ref = c ? y : v), t.cloneElement(h, b);
|
|
22
|
+
});
|
|
23
|
+
return r.displayName = `${n}.Slot`, r;
|
|
24
|
+
}
|
|
25
|
+
var r = Symbol.for("radix.slottable"), i = (e, n) => {
|
|
26
|
+
if ("child" in e.props) {
|
|
27
|
+
let n = e.props.child;
|
|
28
|
+
return t.isValidElement(n) ? t.cloneElement(n, void 0, e.props.children(n.props.children)) : null;
|
|
29
|
+
}
|
|
30
|
+
return t.isValidElement(n) ? n : null;
|
|
31
|
+
};
|
|
32
|
+
function a(e, t) {
|
|
33
|
+
let n = { ...t };
|
|
34
|
+
for (let r in t) {
|
|
35
|
+
let i = e[r], a = t[r];
|
|
36
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
37
|
+
let t = a(...e);
|
|
38
|
+
return i(...e), t;
|
|
39
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
40
|
+
...i,
|
|
41
|
+
...a
|
|
42
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
...e,
|
|
46
|
+
...n
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function o(e) {
|
|
50
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
51
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
52
|
+
}
|
|
53
|
+
function s(e) {
|
|
54
|
+
return t.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === r;
|
|
55
|
+
}
|
|
56
|
+
var c = Symbol.for("react.lazy");
|
|
57
|
+
function l(e) {
|
|
58
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === c && "_payload" in e && u(e._payload);
|
|
59
|
+
}
|
|
60
|
+
function u(e) {
|
|
61
|
+
return typeof e == "object" && !!e && "then" in e;
|
|
62
|
+
}
|
|
63
|
+
var d = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, f = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, p = t.use;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { n as createSlot };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-slot@1.3.0+93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n let slottableElement = null;\n let hasSlottable = false;\n const newChildren = [];\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n React.Children.forEach(children, (maybeSlottable) => {\n if (isSlottable(maybeSlottable)) {\n hasSlottable = true;\n const slottable = maybeSlottable;\n let child = \"child\" in slottable.props ? slottable.props.child : slottable.props.children;\n if (isLazyComponent(child) && typeof use === \"function\") {\n child = use(child._payload);\n }\n slottableElement = getSlottableElementFromSlottable(slottable, child);\n newChildren.push(slottableElement?.props?.children);\n } else {\n newChildren.push(maybeSlottable);\n }\n });\n if (slottableElement) {\n slottableElement = React.cloneElement(slottableElement, void 0, newChildren);\n } else if (\n // A `Slottable` was found but it didn't resolve to a single element (e.g.\n // it wrapped multiple elements, text, or a render-prop `child` that\n // wasn't an element). Don't fall back to treating the `Slottable` wrapper\n // itself as the slot target — throw a descriptive error below instead.\n !hasSlottable && React.Children.count(children) === 1 && React.isValidElement(children)\n ) {\n slottableElement = children;\n }\n const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;\n const composedRef = useComposedRefs(forwardedRef, slottableElementRef);\n if (!slottableElement) {\n if (children || children === 0) {\n throw new Error(\n hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName)\n );\n }\n return children;\n }\n const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});\n if (slottableElement.type !== React.Fragment) {\n mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;\n }\n return React.cloneElement(slottableElement, mergedProps);\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\nvar SLOTTABLE_IDENTIFIER = Symbol.for(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = (props) => \"child\" in props ? props.children(props.child) : props.children;\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nvar getSlottableElementFromSlottable = (slottable, child) => {\n if (\"child\" in slottable.props) {\n const child2 = slottable.props.child;\n if (!React.isValidElement(child2)) return null;\n return React.cloneElement(child2, void 0, slottable.props.children(child2.props.children));\n }\n return React.isValidElement(child) ? child : null;\n};\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nvar createSlotError = (ownerName) => {\n return `${ownerName} failed to slot onto its children. Expected a single React element child or \\`Slottable\\`.`;\n};\nvar createSlottableError = (ownerName) => {\n return `${ownerName} failed to slot onto its \\`Slottable\\`. Expected \\`Slottable\\` to receive a single React element child.`;\n};\nvar use = React[\" use \".trim().toString()];\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,EAAW,GAAW;CAC7B,IAAM,IAAQ,EAAM,YAAY,GAAO,MAAiB;EACtD,IAAI,EAAE,aAAU,GAAG,MAAc,GAC7B,IAAmB,MACnB,IAAe,IACb,IAAc,CAAC;EAkBrB,AAjBI,EAAgB,CAAQ,KAAK,OAAO,KAAQ,eAC9C,I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AAmB,MACd,GAAG,EAAU,6FAElB,KAAwB,MACnB,GAAG,EAAU,0GAElB,IAAM,EAAM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react");t=e.__toESM(t,1);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>((...e)=>n.current?.(...e)),[])}exports.useCallbackRef=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"kHAEA,SAAS,EAAe,EAAU,CAChC,IAAM,EAAcA,EAAM,OAAO,CAAQ,EAIzC,OAHA,EAAM,cAAgB,CACpB,EAAY,QAAU,CACxB,CAAC,EACMA,EAAM,cAAgB,GAAG,IAAS,EAAY,UAAU,GAAG,CAAI,GAAI,CAAC,CAAC,CAC9E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e.useRef(t);
|
|
5
|
+
return e.useEffect(() => {
|
|
6
|
+
n.current = t;
|
|
7
|
+
}), e.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as useCallbackRef };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAe,GAAU;CAChC,IAAM,IAAc,EAAM,OAAO,CAAQ;CAIzC,OAHA,EAAM,gBAAgB;EACpB,EAAY,UAAU;CACxB,CAAC,GACM,EAAM,gBAAgB,GAAG,MAAS,EAAY,UAAU,GAAG,CAAI,IAAI,CAAC,CAAC;AAC9E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js");let n=require("react");n=e.__toESM(n,1);var r=n.useInsertionEffect||t.useLayoutEffect;function i({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){let[s,c,l]=a({defaultProp:t,onChange:r}),u=e!==void 0,d=u?e:s;{let t=n.useRef(e!==void 0);n.useEffect(()=>{let e=t.current;e!==u&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${u?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=u},[u,i])}return[d,n.useCallback(t=>{if(u){let n=o(t)?t(e):t;n!==e&&l.current?.(n)}else c(t)},[u,e,c,l])]}function a({defaultProp:e,onChange:t}){let[i,a]=n.useState(e),o=n.useRef(i),s=n.useRef(t);return r(()=>{s.current=t},[t]),n.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,a,s]}function o(e){return typeof e==`function`}exports.useControllableState=i;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["React","useLayoutEffect"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.2.3+93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"wQAGA,IAAI,EAAqBA,EAAM,oBAA6CC,EAAAA,gBAC5E,SAAS,EAAqB,CAC5B,OACA,cACA,eAAiB,CACjB,EACA,UACC,CACD,GAAM,CAAC,EAAkB,EAAqB,GAAe,EAAqB,CAChF,cACA,UACF,CAAC,EACK,EAAe,IAAS,IAAK,GAC7B,EAAQ,EAAe,EAAO,EAC1B,CACR,IAAM,EAAkBD,EAAM,OAAO,IAAS,IAAK,EAAC,EACpD,EAAM,cAAgB,CACpB,IAAM,EAAgB,EAAgB,QAClC,IAAkB,GAGpB,QAAQ,KACN,GAAG,EAAO,oBAHC,EAAgB,aAAe,eAGP,MAF1B,EAAe,aAAe,eAEK,2KAC9C,EAEF,EAAgB,QAAU,CAC5B,EAAG,CAAC,EAAc,CAAM,CAAC,CAC3B,CAcA,MAAO,CAAC,EAbSA,EAAM,YACpB,GAAc,CACb,GAAI,EAAc,CAChB,IAAM,EAAS,EAAW,CAAS,EAAI,EAAU,CAAI,EAAI,EACrD,IAAW,GACb,EAAY,UAAU,CAAM,CAEhC,MACE,EAAoB,CAAS,CAEjC,EACA,CAAC,EAAc,EAAM,EAAqB,CAAW,CAEjC,CAAC,CACzB,CACA,SAAS,EAAqB,CAC5B,cACA,YACC,CACD,GAAM,CAAC,EAAO,GAAYA,EAAM,SAAS,CAAW,EAC9C,EAAeA,EAAM,OAAO,CAAK,EACjC,EAAcA,EAAM,OAAO,CAAQ,EAUzC,OATA,MAAyB,CACvB,EAAY,QAAU,CACxB,EAAG,CAAC,CAAQ,CAAC,EACb,EAAM,cAAgB,CAChB,EAAa,UAAY,IAC3B,EAAY,UAAU,CAAK,EAC3B,EAAa,QAAU,EAE3B,EAAG,CAAC,EAAO,CAAY,CAAC,EACjB,CAAC,EAAO,EAAU,CAAW,CACtC,CACA,SAAS,EAAW,EAAO,CACzB,OAAO,OAAO,GAAU,UAC1B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useLayoutEffect as e } from "../../../../../@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.2.3+93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
4
|
+
var n = t.useInsertionEffect || e;
|
|
5
|
+
function r({ prop: e, defaultProp: n, onChange: r = () => {}, caller: o }) {
|
|
6
|
+
let [s, c, l] = i({
|
|
7
|
+
defaultProp: n,
|
|
8
|
+
onChange: r
|
|
9
|
+
}), u = e !== void 0, d = u ? e : s;
|
|
10
|
+
{
|
|
11
|
+
let n = t.useRef(e !== void 0);
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
let e = n.current;
|
|
14
|
+
e !== u && console.warn(`${o} is changing from ${e ? "controlled" : "uncontrolled"} to ${u ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), n.current = u;
|
|
15
|
+
}, [u, o]);
|
|
16
|
+
}
|
|
17
|
+
return [d, t.useCallback((t) => {
|
|
18
|
+
if (u) {
|
|
19
|
+
let n = a(t) ? t(e) : t;
|
|
20
|
+
n !== e && l.current?.(n);
|
|
21
|
+
} else c(t);
|
|
22
|
+
}, [
|
|
23
|
+
u,
|
|
24
|
+
e,
|
|
25
|
+
c,
|
|
26
|
+
l
|
|
27
|
+
])];
|
|
28
|
+
}
|
|
29
|
+
function i({ defaultProp: e, onChange: r }) {
|
|
30
|
+
let [i, a] = t.useState(e), o = t.useRef(i), s = t.useRef(r);
|
|
31
|
+
return n(() => {
|
|
32
|
+
s.current = r;
|
|
33
|
+
}, [r]), t.useEffect(() => {
|
|
34
|
+
o.current !== i && (s.current?.(i), o.current = i);
|
|
35
|
+
}, [i, o]), [
|
|
36
|
+
i,
|
|
37
|
+
a,
|
|
38
|
+
s
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
function a(e) {
|
|
42
|
+
return typeof e == "function";
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { r as useControllableState };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":["useLayoutEffect"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.2.3+93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useInsertionEffect = React[\" useInsertionEffect \".trim().toString()] || useLayoutEffect;\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n },\n caller\n}) {\n const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({\n defaultProp,\n onChange\n });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n if (true) {\n const isControlledRef = React.useRef(prop !== void 0);\n React.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;\n if (value2 !== prop) {\n onChangeRef.current?.(value2);\n }\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, onChangeRef]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const [value, setValue] = React.useState(defaultProp);\n const prevValueRef = React.useRef(value);\n const onChangeRef = React.useRef(onChange);\n useInsertionEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n onChangeRef.current?.(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef]);\n return [value, setValue, onChangeRef];\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\n// src/use-controllable-state-reducer.tsx\nimport * as React2 from \"react\";\nimport { useEffectEvent } from \"@radix-ui/react-use-effect-event\";\nvar SYNC_STATE = Symbol(\"RADIX:SYNC_STATE\");\nfunction useControllableStateReducer(reducer, userArgs, initialArg, init) {\n const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;\n const isControlled = controlledState !== void 0;\n const onChange = useEffectEvent(onChangeProp);\n if (true) {\n const isControlledRef = React2.useRef(controlledState !== void 0);\n React2.useEffect(() => {\n const wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) {\n const from = wasControlled ? \"controlled\" : \"uncontrolled\";\n const to = isControlled ? \"controlled\" : \"uncontrolled\";\n console.warn(\n `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n );\n }\n isControlledRef.current = isControlled;\n }, [isControlled, caller]);\n }\n const args = [{ ...initialArg, state: defaultProp }];\n if (init) {\n args.push(init);\n }\n const [internalState, dispatch] = React2.useReducer(\n (state2, action) => {\n if (action.type === SYNC_STATE) {\n return { ...state2, state: action.state };\n }\n const next = reducer(state2, action);\n if (isControlled && !Object.is(next.state, state2.state)) {\n onChange(next.state);\n }\n return next;\n },\n ...args\n );\n const uncontrolledState = internalState.state;\n const prevValueRef = React2.useRef(uncontrolledState);\n React2.useEffect(() => {\n if (prevValueRef.current !== uncontrolledState) {\n prevValueRef.current = uncontrolledState;\n if (!isControlled) {\n onChange(uncontrolledState);\n }\n }\n }, [uncontrolledState, prevValueRef, isControlled]);\n const state = React2.useMemo(() => {\n const isControlled2 = controlledState !== void 0;\n if (isControlled2) {\n return { ...internalState, state: controlledState };\n }\n return internalState;\n }, [internalState, controlledState]);\n React2.useEffect(() => {\n if (isControlled && !Object.is(controlledState, internalState.state)) {\n dispatch({ type: SYNC_STATE, state: controlledState });\n }\n }, [controlledState, internalState.state, isControlled]);\n return [state, dispatch];\n}\nexport {\n useControllableState,\n useControllableStateReducer\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI,IAAqB,EAAM,sBAA6CA;AAC5E,SAAS,EAAqB,EAC5B,SACA,gBACA,oBAAiB,CACjB,GACA,aACC;CACD,IAAM,CAAC,GAAkB,GAAqB,KAAe,EAAqB;EAChF;EACA;CACF,CAAC,GACK,IAAe,MAAS,KAAK,GAC7B,IAAQ,IAAe,IAAO;CAC1B;EACR,IAAM,IAAkB,EAAM,OAAO,MAAS,KAAK,CAAC;EACpD,EAAM,gBAAgB;GACpB,IAAM,IAAgB,EAAgB;GAQtC,AAPI,MAAkB,KAGpB,QAAQ,KACN,GAAG,EAAO,oBAHC,IAAgB,eAAe,eAGP,MAF1B,IAAe,eAAe,eAEK,2KAC9C,GAEF,EAAgB,UAAU;EAC5B,GAAG,CAAC,GAAc,CAAM,CAAC;CAC3B;CAcA,OAAO,CAAC,GAbS,EAAM,aACpB,MAAc;EACb,IAAI,GAAc;GAChB,IAAM,IAAS,EAAW,CAAS,IAAI,EAAU,CAAI,IAAI;GACzD,AAAI,MAAW,KACb,EAAY,UAAU,CAAM;EAEhC,OACE,EAAoB,CAAS;CAEjC,GACA;EAAC;EAAc;EAAM;EAAqB;CAAW,CAEjC,CAAC;AACzB;AACA,SAAS,EAAqB,EAC5B,gBACA,eACC;CACD,IAAM,CAAC,GAAO,KAAY,EAAM,SAAS,CAAW,GAC9C,IAAe,EAAM,OAAO,CAAK,GACjC,IAAc,EAAM,OAAO,CAAQ;CAUzC,OATA,QAAyB;EACvB,EAAY,UAAU;CACxB,GAAG,CAAC,CAAQ,CAAC,GACb,EAAM,gBAAgB;EACpB,AAAI,EAAa,YAAY,MAC3B,EAAY,UAAU,CAAK,GAC3B,EAAa,UAAU;CAE3B,GAAG,CAAC,GAAO,CAAY,CAAC,GACjB;EAAC;EAAO;EAAU;CAAW;AACtC;AACA,SAAS,EAAW,GAAO;CACzB,OAAO,OAAO,KAAU;AAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"kHAEA,IAAI,EAAmB,YAAY,SAAWA,EAAM,oBAAwB,CAC5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3
|
+
var t = globalThis?.document ? e.useLayoutEffect : () => {};
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as useLayoutEffect };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.2+93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAmB,YAAY,WAAW,EAAM,wBAAwB,CAC5E"}
|
package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},t=new WeakMap,n=new WeakMap,r={},i=0,a=function(e){return e&&(e.host||a(e.parentNode))},o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=a(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},s=function(e,a,s,c){var l=o(a,Array.isArray(e)?e:[e]);r[s]||(r[s]=new WeakMap);var u=r[s],d=[],f=new Set,p=new Set(l),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};l.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var r=e.getAttribute(c),i=r!==null&&r!==`false`,a=(t.get(e)||0)+1,o=(u.get(e)||0)+1;t.set(e,a),u.set(e,o),d.push(e),a===1&&i&&n.set(e,!0),o===1&&e.setAttribute(s,`true`),i||e.setAttribute(c,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return h(a),f.clear(),i++,function(){d.forEach(function(e){var r=t.get(e)-1,i=u.get(e)-1;t.set(e,r),u.set(e,i),r||(n.has(e)||e.removeAttribute(c),n.delete(e)),i||e.removeAttribute(s)}),i--,i||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}},c=function(t,n,r){r===void 0&&(r=`data-aria-hidden`);var i=Array.from(Array.isArray(t)?t:[t]),a=n||e(t);return a?(i.push.apply(i,Array.from(a.querySelectorAll(`[aria-live], script`))),s(i,a,r,`aria-hidden`)):function(){return null}};exports.hideOthers=c;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"x_google_ignoreList":[0],"mappings":"AAAA,IAAI,EAAmB,SAAU,EAAgB,CAK7C,OAJI,OAAO,SAAa,IACb,MAE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,48 @@
|
|
|
1
|
+
//#region ../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
2
|
+
var e = function(e) {
|
|
3
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
4
|
+
}, t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = {}, i = 0, a = function(e) {
|
|
5
|
+
return e && (e.host || a(e.parentNode));
|
|
6
|
+
}, o = function(e, t) {
|
|
7
|
+
return t.map(function(t) {
|
|
8
|
+
if (e.contains(t)) return t;
|
|
9
|
+
var n = a(t);
|
|
10
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
11
|
+
}).filter(function(e) {
|
|
12
|
+
return !!e;
|
|
13
|
+
});
|
|
14
|
+
}, s = function(e, a, s, c) {
|
|
15
|
+
var l = o(a, Array.isArray(e) ? e : [e]);
|
|
16
|
+
r[s] || (r[s] = /* @__PURE__ */ new WeakMap());
|
|
17
|
+
var u = r[s], d = [], f = /* @__PURE__ */ new Set(), p = new Set(l), m = function(e) {
|
|
18
|
+
!e || f.has(e) || (f.add(e), m(e.parentNode));
|
|
19
|
+
};
|
|
20
|
+
l.forEach(m);
|
|
21
|
+
var h = function(e) {
|
|
22
|
+
!e || p.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
23
|
+
if (f.has(e)) h(e);
|
|
24
|
+
else try {
|
|
25
|
+
var r = e.getAttribute(c), i = r !== null && r !== "false", a = (t.get(e) || 0) + 1, o = (u.get(e) || 0) + 1;
|
|
26
|
+
t.set(e, a), u.set(e, o), d.push(e), a === 1 && i && n.set(e, !0), o === 1 && e.setAttribute(s, "true"), i || e.setAttribute(c, "true");
|
|
27
|
+
} catch (t) {
|
|
28
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
return h(a), f.clear(), i++, function() {
|
|
33
|
+
d.forEach(function(e) {
|
|
34
|
+
var r = t.get(e) - 1, i = u.get(e) - 1;
|
|
35
|
+
t.set(e, r), u.set(e, i), r || (n.has(e) || e.removeAttribute(c), n.delete(e)), i || e.removeAttribute(s);
|
|
36
|
+
}), i--, i || (t = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = {});
|
|
37
|
+
};
|
|
38
|
+
}, c = function(t, n, r) {
|
|
39
|
+
r === void 0 && (r = "data-aria-hidden");
|
|
40
|
+
var i = Array.from(Array.isArray(t) ? t : [t]), a = n || e(t);
|
|
41
|
+
return a ? (i.push.apply(i, Array.from(a.querySelectorAll("[aria-live], script"))), s(i, a, r, "aria-hidden")) : function() {
|
|
42
|
+
return null;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { c as hideOthers };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAmB,SAAU,GAAgB;CAK7C,OAJI,OAAO,WAAa,MACb,QAEQ,MAAM,QAAQ,CAAc,IAAI,EAAe,KAAK,EAAA,CACnD,cAAc;AACtC,GACI,oBAAa,IAAI,QAAQ,GACzB,oBAAoB,IAAI,QAAQ,GAChC,IAAY,CAAC,GACb,IAAY,GACZ,IAAa,SAAU,GAAM;CAC7B,OAAO,MAAS,EAAK,QAAQ,EAAW,EAAK,UAAU;AAC3D,GACI,IAAiB,SAAU,GAAQ,GAAS;CAC5C,OAAO,EACF,IAAI,SAAU,GAAQ;EACvB,IAAI,EAAO,SAAS,CAAM,GACtB,OAAO;EAEX,IAAI,IAAkB,EAAW,CAAM;EAKvC,OAJI,KAAmB,EAAO,SAAS,CAAe,IAC3C,KAEX,QAAQ,MAAM,eAAe,GAAQ,2BAA2B,GAAQ,iBAAiB,GAClF;CACX,CAAC,CAAC,CACG,OAAO,SAAU,GAAG;EAAE,OAAO,EAAQ;CAAI,CAAC;AACnD,GASI,IAAyB,SAAU,GAAgB,GAAY,GAAY,GAAkB;CAC7F,IAAI,IAAU,EAAe,GAAY,MAAM,QAAQ,CAAc,IAAI,IAAiB,CAAC,CAAc,CAAC;CAC1G,AAAK,EAAU,OACX,EAAU,qBAAc,IAAI,QAAQ;CAExC,IAAI,IAAgB,EAAU,IAC1B,IAAc,CAAC,GACf,oBAAiB,IAAI,IAAI,GACzB,IAAiB,IAAI,IAAI,CAAO,GAChC,IAAO,SAAU,GAAI;EACjB,CAAC,KAAM,EAAe,IAAI,CAAE,MAGhC,EAAe,IAAI,CAAE,GACrB,EAAK,EAAG,UAAU;CACtB;CACA,EAAQ,QAAQ,CAAI;CACpB,IAAI,IAAO,SAAU,GAAQ;EACrB,CAAC,KAAU,EAA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CAAC,GACtF,IAAmB,KAAc,EAAiB,CAAc;CAOpE,OANK,KAKL,EAAQ,KAAK,MAAM,GAAS,MAAM,KAAK,EAAiB,iBAAiB,qBAAqB,CAAC,CAAC,GACzF,EAAuB,GAAS,GAAkB,GAAY,aAAa,KALvE,WAAY;EAAE,OAAO;CAAM;AAM1C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js");var t=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,n=e.clsx,r=(e,r)=>i=>{if(r?.variants==null)return n(e,i?.class,i?.className);let{variants:a,defaultVariants:o}=r,s=Object.keys(a).map(e=>{let n=i?.[e],r=o?.[e];if(n===null)return null;let s=t(n)||t(r);return a[e][s]}),c=i&&Object.entries(i).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return n(e,s,r?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):{...o,...c}[t]===n})?[...e,n,r]:e},[]),i?.class,i?.className)};exports.cva=r,exports.cx=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","names":["clsx"],"sources":["../../../../../../../../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"x_google_ignoreList":[0],"mappings":"6EAeA,IAAM,EAAiB,GAAQ,OAAO,GAAU,UAAY,GAAG,IAAU,IAAU,EAAI,IAAM,EAChF,EAAKA,EAAAA,KACL,GAAO,EAAM,IAAU,GAAQ,CAEpC,GAAK,GAAuD,UAAa,KAAM,OAAO,EAAG,EAAM,GAAoD,MAAO,GAAoD,SAAS,EACvN,GAAM,CAAE,WAAU,mBAAoB,EAChC,EAAuB,OAAO,KAAK,CAAQ,CAAC,CAAC,IAAK,GAAU,CAC9D,IAAM,EAAc,IAAoD,GAClE,EAAqB,IAAkF,GAC7G,GAAI,IAAgB,KAAM,OAAO,KACjC,IAAM,EAAa,EAAc,CAAW,GAAK,EAAc,CAAkB,EACjF,OAAO,EAAS,EAAQ,CAAC,EAC7B,CAAC,EACK,EAAwB,GAAS,OAAO,QAAQ,CAAK,CAAC,CAAC,QAAQ,EAAK,IAAQ,CAC9E,GAAI,CAAC,EAAK,GAAS,EAKnB,OAJI,IAAU,IAAA,KAGd,EAAI,GAAO,GAFA,CAIf,EAAG,CAAC,CAAC,EAkBL,OAAO,EAAG,EAAM,EAjBqB,GAAmF,kBAAsG,QAAQ,EAAK,IAAQ,CAC/O,GAAI,CAAE,MAAO,EAAS,UAAW,EAAa,GAAG,GAA2B,EAC5E,OAAO,OAAO,QAAQ,CAAsB,CAAC,CAAC,MAAO,GAAQ,CACzD,GAAI,CAAC,EAAK,GAAS,EACnB,OAAO,MAAM,QAAQ,CAAK,EAAI,EAAM,SAAS,CACzC,GAAG,EACH,GAAG,CACP,EAAE,EAAI,EAAK,CACP,GAAG,EACH,GAAG,CACP,EAAG,KAAS,CAChB,CAAC,EAAI,CACD,GAAG,EACH,EACA,CACJ,EAAI,CACR,EAAG,CAAC,CAAC,EAC+D,GAAoD,MAAO,GAAoD,SAAS,CAChM"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { clsx as e } from "../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.es.js";
|
|
2
|
+
//#region ../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
3
|
+
var t = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, n = e, r = (e, r) => (i) => {
|
|
4
|
+
if (r?.variants == null) return n(e, i?.class, i?.className);
|
|
5
|
+
let { variants: a, defaultVariants: o } = r, s = Object.keys(a).map((e) => {
|
|
6
|
+
let n = i?.[e], r = o?.[e];
|
|
7
|
+
if (n === null) return null;
|
|
8
|
+
let s = t(n) || t(r);
|
|
9
|
+
return a[e][s];
|
|
10
|
+
}), c = i && Object.entries(i).reduce((e, t) => {
|
|
11
|
+
let [n, r] = t;
|
|
12
|
+
return r === void 0 || (e[n] = r), e;
|
|
13
|
+
}, {});
|
|
14
|
+
return n(e, s, r?.compoundVariants?.reduce((e, t) => {
|
|
15
|
+
let { class: n, className: r, ...i } = t;
|
|
16
|
+
return Object.entries(i).every((e) => {
|
|
17
|
+
let [t, n] = e;
|
|
18
|
+
return Array.isArray(n) ? n.includes({
|
|
19
|
+
...o,
|
|
20
|
+
...c
|
|
21
|
+
}[t]) : {
|
|
22
|
+
...o,
|
|
23
|
+
...c
|
|
24
|
+
}[t] === n;
|
|
25
|
+
}) ? [
|
|
26
|
+
...e,
|
|
27
|
+
n,
|
|
28
|
+
r
|
|
29
|
+
] : e;
|
|
30
|
+
}, []), i?.class, i?.className);
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as cva, n as cx };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=index.es.js.map
|