@vlrc-fe/components 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -29
- package/LICENSE +21 -0
- package/README.md +228 -141
- package/dist/ConfirmModal.d.ts +1 -1
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableRowActions.d.ts +1 -1
- package/dist/DataTable/components/DataTableRowActions.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts +1 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableViewOptions.d.ts +1 -1
- package/dist/DataTable/components/DataTableViewOptions.d.ts.map +1 -1
- package/dist/DataTable/index.d.ts +1 -1
- package/dist/DataTable/index.d.ts.map +1 -1
- package/dist/DataTable/render/createColumns.d.ts.map +1 -1
- package/dist/Form/Form.d.ts +1 -1
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/index.d.ts +2 -2
- package/dist/Form/FormDatePicker/index.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/FileUpload.d.ts +1 -1
- package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormRadioGroup/FormRadio.d.ts +1 -1
- package/dist/Form/FormRadioGroup/FormRadio.d.ts.map +1 -1
- package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
- package/dist/Icons/Icons.d.ts.map +1 -1
- package/dist/Modal.d.ts +1 -1
- package/dist/Modal.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts +3 -3
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts.map +1 -1
- package/dist/MultiSelect/utils.d.ts.map +1 -1
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.d.ts +1 -1
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +2 -3
- package/dist/index100.js +1 -2
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -2
- package/dist/index102.js +1 -2
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +373 -383
- package/dist/index104.js +1 -2
- package/dist/index105.js +1 -2
- package/dist/index106.js +1 -2
- package/dist/index107.js +1 -2
- package/dist/index108.js +1 -2
- package/dist/index109.js +1 -2
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +6 -7
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +47 -49
- package/dist/index111.js +1 -2
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +17 -16
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +4 -5
- package/dist/index114.js +1 -2
- package/dist/index115.js +1 -2
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +3 -4
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +2 -3
- package/dist/index118.js +1 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -5
- package/dist/index12.js +1 -2
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +2 -3
- package/dist/index121.js +1 -2
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +1 -2
- package/dist/index123.js +1 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +4 -5
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +14 -15
- package/dist/index126.js +1 -2
- package/dist/index127.js +1 -2
- package/dist/index128.js +1 -2
- package/dist/index129.js +1 -2
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +2 -3
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +2 -7
- package/dist/index131.js +1 -2
- package/dist/index132.js +1 -2
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +2 -3
- package/dist/index134.js +1 -2
- package/dist/index135.js +1 -2
- package/dist/index136.js +1 -2
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +13 -12
- package/dist/index138.js +1 -2
- package/dist/index139.js +1 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -2
- package/dist/index140.js +1 -2
- package/dist/index141.js +1 -2
- package/dist/index142.js +1 -2
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +2 -3
- package/dist/index144.js +1 -2
- package/dist/index145.js +1 -2
- package/dist/index146.js +1 -2
- package/dist/index147.js +1 -2
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +5 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +2 -3
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +4 -5
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +2 -3
- package/dist/index151.js +1 -2
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +3 -4
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +2 -3
- package/dist/index154.js +1 -2
- package/dist/index155.js +1 -2
- package/dist/index156.js +0 -1
- package/dist/index157.js +0 -1
- package/dist/index158.js +0 -1
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +2 -3
- package/dist/index16.js +1 -2
- package/dist/index160.js +1 -2
- package/dist/index161.js +0 -1
- package/dist/index162.js +1 -2
- package/dist/index163.js +0 -1
- package/dist/index164.js +0 -1
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +2 -3
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +2 -3
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +3 -4
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -3
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +2 -3
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +2 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +3 -4
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +2 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +2 -3
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +2 -3
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +2 -3
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -4
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +3 -4
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +3 -4
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +3 -4
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -3
- package/dist/index180.js +1 -2
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +3 -4
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +12 -6
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +2 -5
- package/dist/index184.js +1 -2
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +2 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +6 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +2 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +2 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +3 -4
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -6
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +3 -4
- package/dist/index192.cjs +2 -2
- package/dist/index192.js +17 -23
- package/dist/index193.js +1 -2
- package/dist/index194.js +1 -2
- package/dist/index195.js +1 -2
- package/dist/index196.js +1 -2
- package/dist/index197.js +1 -2
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +17 -14
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +2 -3
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +1 -2
- package/dist/index20.js +1 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -3
- package/dist/index201.js +1 -2
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +19 -31
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +2 -3
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +2 -3
- package/dist/index21.js +1 -2
- package/dist/index22.js +1 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -2
- package/dist/index24.js +1 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -3
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +7 -7
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +5 -5
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -4
- package/dist/index29.js +1 -2
- package/dist/index3.js +1 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -3
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +3 -4
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +4 -4
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +3 -4
- package/dist/index35.js +1 -2
- package/dist/index36.js +1 -2
- package/dist/index37.js +1 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +11 -11
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +2 -3
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +3 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -3
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -3
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +6 -9
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -4
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +57 -58
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -4
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +39 -40
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -3
- package/dist/index5.js +1 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +2 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +6 -7
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -4
- package/dist/index53.js +1 -2
- package/dist/index54.js +1 -2
- package/dist/index55.js +1 -2
- package/dist/index56.js +1 -2
- package/dist/index57.js +1 -2
- package/dist/index58.js +1 -2
- package/dist/index59.js +1 -2
- package/dist/index6.js +1 -2
- package/dist/index60.js +1 -2
- package/dist/index61.js +1 -2
- package/dist/index62.js +3 -5
- package/dist/index63.js +1 -2
- package/dist/index64.js +1 -2
- package/dist/index65.js +1 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +2 -3
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +2 -3
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index7.js +1 -2
- package/dist/index70.js +1 -2
- package/dist/index71.js +1 -2
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +5 -9
- package/dist/index73.js +1 -2
- package/dist/index74.js +1 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +76 -74
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +74 -75
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +2 -3
- package/dist/index78.cjs +2 -2
- package/dist/index78.js +108 -134
- package/dist/index79.js +1 -2
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +4 -5
- package/dist/index80.js +1 -2
- package/dist/index81.js +1 -2
- package/dist/index82.js +1 -2
- package/dist/index83.js +1 -2
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -8
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +3 -4
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -2
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -3
- package/dist/index89.js +1 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -3
- package/dist/index90.cjs +2 -2
- package/dist/index90.js +7 -16
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +2 -3
- package/dist/index92.js +1 -2
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +85 -86
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +2 -3
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -2
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +3 -4
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +121 -117
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -3
- package/dist/index99.js +1 -2
- package/dist/ui/accordion.d.ts +2 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.test.d.ts +2 -0
- package/dist/ui/alert.test.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +2 -2
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.test.d.ts +2 -0
- package/dist/ui/badge.test.d.ts.map +1 -0
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.test.d.ts +2 -0
- package/dist/ui/button.test.d.ts.map +1 -0
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.test.d.ts +2 -0
- package/dist/ui/card.test.d.ts.map +1 -0
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.test.d.ts +2 -0
- package/dist/ui/checkbox.test.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +1 -1
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/command.d.ts +4 -4
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +4 -4
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/drawer.d.ts +4 -4
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +4 -4
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/field.d.ts +1 -1
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/file-upload.d.ts +1 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/hover-card.d.ts +2 -2
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.test.d.ts +2 -0
- package/dist/ui/input.test.d.ts.map +1 -0
- package/dist/ui/item.d.ts +12 -12
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/label.test.d.ts +2 -0
- package/dist/ui/label.test.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts +4 -4
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/navigation-menu.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/pagination.d.ts +7 -7
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/resizable.d.ts +2 -2
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +2 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +3 -3
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/separator.test.d.ts +2 -0
- package/dist/ui/separator.test.d.ts.map +1 -0
- package/dist/ui/sheet.d.ts +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sidebar.d.ts +31 -31
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/skeleton.test.d.ts +2 -0
- package/dist/ui/skeleton.test.d.ts.map +1 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/sonner.d.ts +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/spinner.test.d.ts +2 -0
- package/dist/ui/spinner.test.d.ts.map +1 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.test.d.ts +2 -0
- package/dist/ui/switch.test.d.ts.map +1 -0
- package/dist/ui/table.d.ts +1 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.test.d.ts +2 -0
- package/dist/ui/table.test.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +2 -2
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.test.d.ts +2 -0
- package/dist/ui/textarea.test.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle.d.ts +3 -3
- package/dist/ui/toggle.d.ts.map +1 -1
- package/package.json +86 -16
- package/MIGRATION_GUIDE.md +0 -121
package/dist/index27.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index25.cjs"),t=require("./index26.cjs");let n=require("react");function r(i={},a=[]){let o=(0,n.useRef)(i),s=(0,n.useRef)(a),[c,l]=(0,n.useState)(),[u,d]=(0,n.useState)(),f=(0,n.useCallback)(()=>{c&&c.reInit(o.current,s.current)},[c]);return(0,n.useEffect)(()=>{e.areOptionsEqual(o.current,i)||(o.current=i,f())},[i,f]),(0,n.useEffect)(()=>{e.arePluginsEqual(s.current,a)||(s.current=a,f())},[a,f]),(0,n.useEffect)(()=>{if(e.canUseDOM()&&u){t.
|
|
1
|
+
const e=require("./index25.cjs"),t=require("./index26.cjs");let n=require("react");function r(i={},a=[]){let o=(0,n.useRef)(i),s=(0,n.useRef)(a),[c,l]=(0,n.useState)(),[u,d]=(0,n.useState)(),f=(0,n.useCallback)(()=>{c&&c.reInit(o.current,s.current)},[c]);return(0,n.useEffect)(()=>{e.areOptionsEqual(o.current,i)||(o.current=i,f())},[i,f]),(0,n.useEffect)(()=>{e.arePluginsEqual(s.current,a)||(s.current=a,f())},[a,f]),(0,n.useEffect)(()=>{if(e.canUseDOM()&&u){t.default.globalOptions=r.globalOptions;let e=t.default(u,o.current,s.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[d,c]}r.globalOptions=void 0,exports.default=r;
|
package/dist/index27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { areOptionsEqual as e, arePluginsEqual as t, canUseDOM as n } from "./index25.js";
|
|
2
|
-
import
|
|
2
|
+
import r from "./index26.js";
|
|
3
3
|
import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
5
5
|
function c(l = {}, u = []) {
|
|
6
6
|
let d = o(l), f = o(u), [p, m] = s(), [h, g] = s(), _ = i(() => {
|
|
7
7
|
p && p.reInit(d.current, f.current);
|
|
@@ -15,9 +15,9 @@ function c(l = {}, u = []) {
|
|
|
15
15
|
r.globalOptions = c.globalOptions;
|
|
16
16
|
let e = r(h, d.current, f.current);
|
|
17
17
|
return m(e), () => e.destroy();
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
|
+
m(void 0);
|
|
19
20
|
}, [h, m]), [g, p];
|
|
20
21
|
}
|
|
21
22
|
c.globalOptions = void 0;
|
|
22
|
-
|
|
23
|
-
export { c as useEmblaCarousel };
|
|
23
|
+
export { c as default };
|
package/dist/index28.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index12.cjs"),r=require("./index27.cjs");let i=require("lucide-react"),a=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index12.cjs"),r=require("./index27.cjs");let i=require("lucide-react"),a=require("react"),o=e.__toESM(a,1);a=e.__toESM(a);let s=require("react/jsx-runtime"),c=require("react/compiler-runtime");var l=o.createContext(null);function u(){let e=o.useContext(l);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function d({orientation:e=`horizontal`,opts:n,setApi:i,plugins:a,className:c,children:u,...d}){let[f,p]=r.default({...n,axis:e===`horizontal`?`x`:`y`},a),[m,h]=o.useState(!1),[g,_]=o.useState(!1),v=o.useCallback(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=o.useCallback(()=>{p?.scrollPrev()},[p]),b=o.useCallback(()=>{p?.scrollNext()},[p]),x=o.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return o.useEffect(()=>{p&&i&&i(p)},[p,i]),o.useEffect(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,s.jsx)(l.Provider,{value:{carouselRef:f,api:p,opts:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,s.jsx)(`div`,{onKeyDownCapture:x,className:t.cn(`relative`,c),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function f(e){let n=(0,c.c)(12),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let{carouselRef:a,orientation:o}=u(),l=o===`horizontal`?`-ml-4`:`-mt-4 flex-col`,d;n[3]!==r||n[4]!==l?(d=t.cn(`flex`,l,r),n[3]=r,n[4]=l,n[5]=d):d=n[5];let f;n[6]!==i||n[7]!==d?(f=(0,s.jsx)(`div`,{className:d,...i}),n[6]=i,n[7]=d,n[8]=f):f=n[8];let p;return n[9]!==a||n[10]!==f?(p=(0,s.jsx)(`div`,{ref:a,className:`overflow-hidden`,"data-slot":`carousel-content`,children:f}),n[9]=a,n[10]=f,n[11]=p):p=n[11],p}function p(e){let n=(0,c.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let{orientation:a}=u(),o=a===`horizontal`?`pl-4`:`pt-4`,l;n[3]!==r||n[4]!==o?(l=t.cn(`min-w-0 shrink-0 grow-0 basis-full`,o,r),n[3]=r,n[4]=o,n[5]=l):l=n[5];let d;return n[6]!==i||n[7]!==l?(d=(0,s.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:l,...i}),n[6]=i,n[7]=l,n[8]=d):d=n[8],d}function m({className:e,variant:r=`outline`,size:a=`icon`,...o}){let{orientation:c,scrollPrev:l,canScrollPrev:d}=u();return(0,s.jsxs)(n.Button,{"data-slot":`carousel-previous`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,c===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:l,...o,children:[(0,s.jsx)(i.ArrowLeft,{}),(0,s.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function h({className:e,variant:r=`outline`,size:a=`icon`,...o}){let{orientation:c,scrollNext:l,canScrollNext:d}=u();return(0,s.jsxs)(n.Button,{"data-slot":`carousel-next`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,c===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:l,...o,children:[(0,s.jsx)(i.ArrowRight,{}),(0,s.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=d,exports.CarouselContent=f,exports.CarouselItem=p,exports.CarouselNext=h,exports.CarouselPrevious=m;
|
package/dist/index28.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./index5.js";
|
|
3
3
|
import { Button as t } from "./index12.js";
|
|
4
|
-
import
|
|
4
|
+
import n from "./index27.js";
|
|
5
5
|
import { ArrowLeft as r, ArrowRight as i } from "lucide-react";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
|
-
|
|
9
|
+
// src/ui/carousel.tsx
|
|
10
10
|
var l = a.createContext(null);
|
|
11
11
|
function u() {
|
|
12
12
|
let e = a.useContext(l);
|
|
@@ -27,7 +27,7 @@ function d({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, clas
|
|
|
27
27
|
e.key === "ArrowLeft" ? (e.preventDefault(), y()) : e.key === "ArrowRight" && (e.preventDefault(), b());
|
|
28
28
|
}, [y, b]);
|
|
29
29
|
return a.useEffect(() => {
|
|
30
|
-
|
|
30
|
+
p && i && i(p);
|
|
31
31
|
}, [p, i]), a.useEffect(() => {
|
|
32
32
|
if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
|
|
33
33
|
p?.off("select", v);
|
|
@@ -118,5 +118,4 @@ function h({ className: n, variant: r = "outline", size: a = "icon", ...c }) {
|
|
|
118
118
|
})]
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
//#endregion
|
|
122
121
|
export { d as Carousel, f as CarouselContent, p as CarouselItem, h as CarouselNext, m as CarouselPrevious };
|
package/dist/index29.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as t from "@stylexjs/stylex";
|
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import { c as r } from "react/compiler-runtime";
|
|
6
6
|
import * as i from "@radix-ui/react-checkbox";
|
|
7
|
-
|
|
7
|
+
// src/ui/checkbox.tsx
|
|
8
8
|
var a = { root: {
|
|
9
9
|
kzqmXN: "xcdlrvm",
|
|
10
10
|
kZKoxP: "x1l36t39",
|
|
@@ -50,5 +50,4 @@ function o(o) {
|
|
|
50
50
|
children: m
|
|
51
51
|
}), s[10] = l, s[11] = f, s[12] = p, s[13] = h) : h = s[13], h;
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
export { o as Checkbox };
|
package/dist/index3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@stylexjs/stylex";
|
|
2
|
-
|
|
2
|
+
// src/theme/tokens.stylex.ts
|
|
3
3
|
var e = {
|
|
4
4
|
background: "var(--x1hhuofd)",
|
|
5
5
|
foreground: "var(--x1msym1h)",
|
|
@@ -51,5 +51,4 @@ var e = {
|
|
|
51
51
|
destructive: "var(--xnmyggv)",
|
|
52
52
|
__varGroupHash__: "xzowny"
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { e as colors, t as radii, n as textColors };
|
package/dist/index30.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useEffectEvent,s=r.useInsertionEffect;function c(e){if(typeof o==`function`)return o(e);let n=r.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof s==`function`?s(()=>{n.current=e}):t.useLayoutEffect(()=>{n.current=e}),r.useMemo(()=>((...e)=>n.current?.(...e)),[])}a(c,`useEffectEvent`),exports.useEffectEvent=c;
|
package/dist/index30.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect as e } from "./index18.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4
4
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
5
|
value: t,
|
|
6
6
|
configurable: !0
|
|
@@ -17,5 +17,4 @@ function o(n) {
|
|
|
17
17
|
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
18
18
|
}
|
|
19
19
|
r(o, "useEffectEvent");
|
|
20
|
-
//#endregion
|
|
21
20
|
export { o as useEffectEvent };
|
package/dist/index31.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index18.cjs"),n=require("./index30.cjs");let r=require("react")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index18.cjs"),n=require("./index30.cjs");let r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=i.useInsertionEffect||t.useLayoutEffect;function c({prop:e,defaultProp:t,onChange:n=o(()=>{},`onChange`),caller:r}){let[a,s,c]=l({defaultProp:t,onChange:n}),d=e!==void 0;return[d?e:a,i.useCallback(t=>{if(d){let n=u(t)?t(e):t;n!==e&&c.current?.(n)}else s(t)},[d,e,s,c])]}o(c,`useControllableState`);function l({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return s(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}o(l,`useUncontrolledState`);function u(e){return typeof e==`function`}o(u,`isFunction`);var d=Symbol(`RADIX:SYNC_STATE`);function f(e,t,r,a){let{prop:o,defaultProp:s,onChange:c,caller:l}=t,u=o!==void 0,f=n.useEffectEvent(c),p=[{...r,state:s}];a&&p.push(a);let[m,h]=i.useReducer((t,n)=>{if(n.type===d)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&f(r.state),r},...p),g=m.state,_=i.useRef(g);i.useEffect(()=>{_.current!==g&&(_.current=g,u||f(g))},[g,_,u]);let v=i.useMemo(()=>o===void 0?m:{...m,state:o},[m,o]);return i.useEffect(()=>{u&&!Object.is(o,m.state)&&h({type:d,state:o})},[o,m.state,u]),[v,h]}o(f,`useControllableStateReducer`),exports.useControllableState=c,exports.useControllableStateReducer=f;
|
package/dist/index31.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect as e } from "./index18.js";
|
|
2
2
|
import { useEffectEvent as t } from "./index30.js";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
5
5
|
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
6
|
value: t,
|
|
7
7
|
configurable: !0
|
|
@@ -79,5 +79,4 @@ function u(e, r, i, a) {
|
|
|
79
79
|
]), [v, h];
|
|
80
80
|
}
|
|
81
81
|
i(u, "useControllableStateReducer");
|
|
82
|
-
|
|
83
|
-
export { o as useControllableState };
|
|
82
|
+
export { o as useControllableState, u as useControllableStateReducer };
|
package/dist/index32.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}a(o,`useStateMachine`);var s=a(e=>{let{present:t,children:n}=e,i=c(t),a=typeof n==`function`?n({present:i.isPresent}):r.Children.only(n),o=u(i.ref,f(a));return typeof n==`function`||i.isPresent?r.cloneElement(a,{ref:o}):null},`Presence`);function c(e){let[n,i]=r.useState(),s=r.useRef(null),c=r.useRef(e),l=r.useRef(`none`),u=r.useRef(void 0),[f,p]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return r.useEffect(()=>{f===`mounted`?(l.current=u.current??d(s.current),u.current=void 0):l.current=`none`},[f]),t.useLayoutEffect(()=>{let t=s.current,n=c.current;if(n!==e){let r=l.current,i=d(t);e?(u.current=i,p(`MOUNT`)):i===`none`||t?.display===`none`?p(`UNMOUNT`):p(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),c.current=e}},[e,p]),t.useLayoutEffect(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=a(r=>{let i=d(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(p(`ANIMATION_END`),!c.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},`handleAnimationEnd`),i=a(e=>{e.target===n&&(l.current=d(s.current))},`handleAnimationStart`);return n.addEventListener(`animationstart`,i),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,i),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}p(`ANIMATION_END`)},[n,p]),{isPresent:[`mounted`,`unmountSuspended`].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,u.current=d(t)}else s.current=null;i(e)},[])}}a(c,`usePresence`);function l(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}a(l,`setRef`);function u(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=l(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():l(n[e],null)}}},[])}a(u,`useStableComposedRefs`);function d(e){return e?.animationName||`none`}a(d,`getAnimationName`);function f(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)}a(f,`getElementRef`),exports.Presence=s;
|
package/dist/index32.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useLayoutEffect as e } from "./index18.js";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5
5
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
6
6
|
value: t,
|
|
7
7
|
configurable: !0
|
|
@@ -50,7 +50,8 @@ function o(n) {
|
|
|
50
50
|
return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
|
|
51
51
|
t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
|
|
52
52
|
};
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
|
+
p("ANIMATION_END");
|
|
54
55
|
}, [a, p]), {
|
|
55
56
|
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
56
57
|
ref: t.useCallback((e) => {
|
|
@@ -93,5 +94,4 @@ function u(e) {
|
|
|
93
94
|
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);
|
|
94
95
|
}
|
|
95
96
|
r(u, "getElementRef");
|
|
96
|
-
//#endregion
|
|
97
97
|
export { a as Presence };
|
package/dist/index33.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index18.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useId||(()=>void 0),s=0;function c(e){let[n,i]=r.useState(o());return t.useLayoutEffect(()=>{e||i(e=>e??String(s++))},[e]),e||(n?`radix-${n}`:``)}a(c,`useId`),exports.useId=c;
|
package/dist/index33.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect as e } from "./index18.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
4
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
5
|
value: t,
|
|
6
6
|
configurable: !0
|
|
@@ -12,5 +12,4 @@ function o(n) {
|
|
|
12
12
|
}, [n]), n || (r ? `radix-${r}` : "");
|
|
13
13
|
}
|
|
14
14
|
r(o, "useId");
|
|
15
|
-
//#endregion
|
|
16
15
|
export { o as useId };
|
package/dist/index34.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index10.cjs"),i=require("./index14.cjs"),a=require("./index18.cjs"),o=require("./index31.cjs"),s=require("./index32.cjs"),c=require("./index33.cjs");let l=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index10.cjs"),i=require("./index14.cjs"),a=require("./index18.cjs"),o=require("./index31.cjs"),s=require("./index32.cjs"),c=require("./index33.cjs");let l=require("react"),u=e.__toESM(l,1);l=e.__toESM(l);let d=require("react/jsx-runtime");var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Collapsible`,[h,g]=t.createContextScope(m),[_,v]=h(m),y=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:l,...f}=e,[p,h]=o.useControllableState({prop:r,defaultProp:a??!1,onChange:l,caller:m});return(0,d.jsx)(_,{scope:n,disabled:s,contentId:c.useId(),open:p,onOpenToggle:u.useCallback(()=>h(e=>!e),[h]),children:(0,d.jsx)(i.Primitive.div,{"data-state":T(p),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),b=`CollapsibleTrigger`,x=u.forwardRef(p(function(e,t){let{__scopeCollapsible:n,...a}=e,o=v(b,n);return(0,d.jsx)(i.Primitive.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...a,ref:t,onClick:r.composeEventHandlers(e.onClick,o.onOpenToggle)})},`CollapsibleTrigger`)),S=`CollapsibleContent`,C=u.forwardRef(p(function(e,t){let{forceMount:n,...r}=e,i=v(S,e.__scopeCollapsible);return(0,d.jsx)(s.Presence,{present:n||i.open,children:({present:e})=>(0,d.jsx)(w,{...r,ref:t,present:e})})},`CollapsibleContent`)),w=u.forwardRef(p(function(e,t){let{__scopeCollapsible:r,present:o,children:s,...c}=e,l=v(S,r),[f,p]=u.useState(o),m=u.useRef(null),h=n.useComposedRefs(t,m),g=u.useRef(0),_=g.current,y=u.useRef(0),b=y.current,x=l.open||f,C=u.useRef(x),w=u.useRef(void 0);return u.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),a.useLayoutEffect(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),p(o)}},[l.open,o]),(0,d.jsx)(i.Primitive.div,{"data-state":T(l.open),"data-disabled":l.disabled?``:void 0,id:l.contentId,hidden:!x,...c,ref:h,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})},`CollapsibleContentImpl`));function T(e){return e?`open`:`closed`}p(T,`getState`);var E=y;exports.Collapsible=y,exports.CollapsibleContent=C,exports.CollapsibleTrigger=x,exports.Root=E;
|
package/dist/index34.js
CHANGED
|
@@ -3,13 +3,13 @@ import { createContextScope as e } from "./index8.js";
|
|
|
3
3
|
import { useComposedRefs as t } from "./index9.js";
|
|
4
4
|
import { composeEventHandlers as n } from "./index10.js";
|
|
5
5
|
import { Primitive as r } from "./index14.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useLayoutEffect as i } from "./index18.js";
|
|
7
7
|
import { useControllableState as a } from "./index31.js";
|
|
8
8
|
import { Presence as o } from "./index32.js";
|
|
9
9
|
import { useId as s } from "./index33.js";
|
|
10
10
|
import * as c from "react";
|
|
11
11
|
import { jsx as l } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
13
13
|
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
14
14
|
value: t,
|
|
15
15
|
configurable: !0
|
|
@@ -91,5 +91,4 @@ function C(e) {
|
|
|
91
91
|
}
|
|
92
92
|
d(C, "getState");
|
|
93
93
|
var w = _;
|
|
94
|
-
|
|
95
|
-
export { x as CollapsibleContent, y as CollapsibleTrigger, w as Root };
|
|
94
|
+
export { _ as Collapsible, x as CollapsibleContent, y as CollapsibleTrigger, w as Root };
|
package/dist/index35.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CollapsibleContent as e, CollapsibleTrigger as t, Root as n } from "./index34.js";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { c as i } from "react/compiler-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ui/collapsible.tsx
|
|
6
6
|
function a(e) {
|
|
7
7
|
let t = i(4), a;
|
|
8
8
|
t[0] === e ? a = t[1] : ({...a} = e, t[0] = e, t[1] = a);
|
|
@@ -30,5 +30,4 @@ function s(t) {
|
|
|
30
30
|
...a
|
|
31
31
|
}), n[2] = a, n[3] = o), o;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { a as Collapsible, s as CollapsibleContent, o as CollapsibleTrigger };
|
package/dist/index36.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as t from "@stylexjs/stylex";
|
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import { c as i } from "react/compiler-runtime";
|
|
6
6
|
import * as a from "@radix-ui/react-dialog";
|
|
7
|
-
|
|
7
|
+
// src/ui/dialog.tsx
|
|
8
8
|
var o = {
|
|
9
9
|
overlay: {
|
|
10
10
|
kVAEAm: "xixxii4",
|
|
@@ -199,5 +199,4 @@ function g(e) {
|
|
|
199
199
|
...c
|
|
200
200
|
}), r[9] = c, r[10] = d, r[11] = f, r[12] = p) : p = r[12], p;
|
|
201
201
|
}
|
|
202
|
-
//#endregion
|
|
203
202
|
export { s as Dialog, u as DialogClose, f as DialogContent, g as DialogDescription, m as DialogFooter, p as DialogHeader, d as DialogOverlay, l as DialogPortal, h as DialogTitle, c as DialogTrigger };
|
package/dist/index37.js
CHANGED
|
@@ -6,7 +6,7 @@ import "react";
|
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { c as l } from "react/compiler-runtime";
|
|
8
8
|
import { Command as u } from "cmdk";
|
|
9
|
-
|
|
9
|
+
// src/ui/command.tsx
|
|
10
10
|
function d(t) {
|
|
11
11
|
let n = l(8), r, i;
|
|
12
12
|
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
@@ -123,5 +123,4 @@ function y(t) {
|
|
|
123
123
|
...i
|
|
124
124
|
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
125
125
|
}
|
|
126
|
-
//#endregion
|
|
127
126
|
export { d as Command, f as CommandDialog, h as CommandEmpty, g as CommandGroup, p as CommandInput, v as CommandItem, m as CommandList, _ as CommandSeparator, y as CommandShortcut };
|
package/dist/index38.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs");let r=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs");let r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);let a=require("react/jsx-runtime"),o=require("@radix-ui/react-slot");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0});function l(e){let r=e+`CollectionProvider`,[s,l]=t.createContextScope(r),[u,d]=s(r,{collectionRef:{current:null},itemMap:new Map}),f=c(e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:r,children:n})},`CollectionProvider`);f.displayName=r;let p=e+`CollectionSlot`,m=(0,o.createSlot)(p),h=i.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=d(p,r),s=n.useComposedRefs(t,o.collectionRef);return(0,a.jsx)(m,{ref:s,children:i})});h.displayName=p;let g=e+`CollectionItemSlot`,_=`data-radix-collection-item`,v=(0,o.createSlot)(g),y=i.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,c=i.useRef(null),l=n.useComposedRefs(t,c),u=d(g,r);return i.useEffect(()=>(u.itemMap.set(c,{ref:c,...s}),()=>void u.itemMap.delete(c))),(0,a.jsx)(v,{[_]:``,ref:l,children:o})});y.displayName=g;function b(t){let n=d(e+`CollectionConsumer`,t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${_}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return c(b,`useCollection`),[{Provider:f,Slot:h,ItemSlot:y},b,l]}c(l,`createCollection`);var u=new WeakMap,d=class e extends Map{static{c(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=m(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=f(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function f(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=p(e,t);return n===-1?void 0:e[n]}c(f,`at`);function p(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}c(p,`toSafeIndex`);function m(e){return e!==e||e===0?0:Math.trunc(e)}c(m,`toSafeInteger`);function h(e){let r=e+`CollectionProvider`,[s,l]=t.createContextScope(r),[u,f]=s(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:c(()=>void 0,`setItemMap`)}),p=c(({state:e,...t})=>e?(0,a.jsx)(h,{...t,state:e}):(0,a.jsx)(m,{...t}),`CollectionProvider`);p.displayName=r;let m=c(e=>{let t=T();return(0,a.jsx)(h,{...e,state:t})},`CollectionInit`);m.displayName=r+`Init`;let h=c(e=>{let{scope:t,children:r,state:o}=e,s=i.useRef(null),[c,l]=i.useState(null),d=n.useComposedRefs(s,l),[f,p]=o;return i.useEffect(()=>{if(!c)return;let e=y(()=>{});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c]),(0,a.jsx)(u,{scope:t,itemMap:f,setItemMap:p,collectionRef:d,collectionRefObject:s,collectionElement:c,children:r})},`CollectionProviderImpl`);h.displayName=r+`Impl`;let _=e+`CollectionSlot`,b=(0,o.createSlot)(_),x=i.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=f(_,r),s=n.useComposedRefs(t,o.collectionRef);return(0,a.jsx)(b,{ref:s,children:i})});x.displayName=_;let S=e+`CollectionItemSlot`,C=(0,o.createSlot)(S),w=i.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,c=i.useRef(null),[l,u]=i.useState(null),p=n.useComposedRefs(t,c,u),{setItemMap:m}=f(S,r),h=i.useRef(s);g(h.current,s)||(h.current=s);let _=h.current;return i.useEffect(()=>{let e=_;return m(t=>l?t.has(l)?t.set(l,{...e,element:l}).toSorted(v):(t.set(l,{...e,element:l}),t.toSorted(v)):t),()=>{m(e=>!l||!e.has(l)?e:(e.delete(l),new d(e)))}},[l,_,m]),(0,a.jsx)(C,{"data-radix-collection-item":``,ref:p,children:o})});w.displayName=S;function T(){return i.useState(new d)}c(T,`useInitCollection`);function E(t){let{itemMap:n}=f(e+`CollectionConsumer`,t);return n}return c(E,`useCollection`),[{Provider:p,Slot:x,ItemSlot:w},{createCollectionScope:l,useCollection:E,useInitCollection:T}]}c(h,`createCollection`);function g(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}c(g,`shallowEqual`);function _(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}c(_,`isElementPreceding`);function v(e,t){return!e[1].element||!t[1].element?0:_(e[1].element,t[1].element)?-1:1}c(v,`sortByDocumentPosition`);function y(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}c(y,`getChildListObserver`),exports.createCollection=l,exports.unstable_createCollection=h;
|
package/dist/index38.js
CHANGED
|
@@ -4,12 +4,12 @@ import { useComposedRefs as t } from "./index9.js";
|
|
|
4
4
|
import * as n from "react";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
import { createSlot as i } from "@radix-ui/react-slot";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.15_@types+react-dom@19.3.0_@types+react@19.3.0__@types+r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
8
8
|
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
// @__NO_SIDE_EFFECTS__
|
|
13
13
|
function s(a) {
|
|
14
14
|
let s = a + "CollectionProvider", [c, l] = e(s), [u, d] = c(s, {
|
|
15
15
|
collectionRef: { current: null },
|
|
@@ -25,9 +25,9 @@ function s(a) {
|
|
|
25
25
|
}, "CollectionProvider");
|
|
26
26
|
f.displayName = s;
|
|
27
27
|
let p = a + "CollectionSlot", m = i(p), h = n.forwardRef((e, n) => {
|
|
28
|
-
let { scope: i, children: a } = e;
|
|
28
|
+
let { scope: i, children: a } = e, o = d(p, i), s = t(n, o.collectionRef);
|
|
29
29
|
return /* @__PURE__ */ r(m, {
|
|
30
|
-
ref:
|
|
30
|
+
ref: s,
|
|
31
31
|
children: a
|
|
32
32
|
});
|
|
33
33
|
});
|
|
@@ -126,7 +126,7 @@ var c = /* @__PURE__ */ new WeakMap(), l = class e extends Map {
|
|
|
126
126
|
}
|
|
127
127
|
deleteAt(e) {
|
|
128
128
|
let t = this.keyAt(e);
|
|
129
|
-
return t
|
|
129
|
+
return t !== void 0 && this.delete(t);
|
|
130
130
|
}
|
|
131
131
|
at(e) {
|
|
132
132
|
let t = u(this.#e, e);
|
|
@@ -219,7 +219,8 @@ var c = /* @__PURE__ */ new WeakMap(), l = class e extends Map {
|
|
|
219
219
|
return r;
|
|
220
220
|
}
|
|
221
221
|
toSorted(t) {
|
|
222
|
-
|
|
222
|
+
let n = [...this.entries()].sort(t);
|
|
223
|
+
return new e(n);
|
|
223
224
|
}
|
|
224
225
|
toReversed() {
|
|
225
226
|
let t = new e();
|
|
@@ -283,7 +284,7 @@ function f(e) {
|
|
|
283
284
|
return e !== e || e === 0 ? 0 : Math.trunc(e);
|
|
284
285
|
}
|
|
285
286
|
o(f, "toSafeInteger");
|
|
286
|
-
|
|
287
|
+
// @__NO_SIDE_EFFECTS__
|
|
287
288
|
function p(a) {
|
|
288
289
|
let s = a + "CollectionProvider", [c, u] = e(s), [d, f] = c(s, {
|
|
289
290
|
collectionElement: null,
|
|
@@ -327,9 +328,9 @@ function p(a) {
|
|
|
327
328
|
}, "CollectionProviderImpl");
|
|
328
329
|
v.displayName = s + "Impl";
|
|
329
330
|
let y = a + "CollectionSlot", b = i(y), x = n.forwardRef((e, n) => {
|
|
330
|
-
let { scope: i, children: a } = e;
|
|
331
|
+
let { scope: i, children: a } = e, o = f(y, i), s = t(n, o.collectionRef);
|
|
331
332
|
return /* @__PURE__ */ r(b, {
|
|
332
|
-
ref:
|
|
333
|
+
ref: s,
|
|
333
334
|
children: a
|
|
334
335
|
});
|
|
335
336
|
});
|
|
@@ -405,5 +406,4 @@ function _(e) {
|
|
|
405
406
|
});
|
|
406
407
|
}
|
|
407
408
|
o(_, "getChildListObserver");
|
|
408
|
-
|
|
409
|
-
export { s as createCollection };
|
|
409
|
+
export { s as createCollection, p as unstable_createCollection };
|
package/dist/index39.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index9.cjs"),n=require("./index10.cjs"),r=require("./index14.cjs"),i=require("./index17.cjs");let a=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index9.cjs"),n=require("./index10.cjs"),r=require("./index14.cjs"),i=require("./index17.cjs");let a=require("react"),o=e.__toESM(a,1);a=e.__toESM(a);let s=require("react/jsx-runtime");var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=`dismissableLayer.update`,d=`dismissableLayer.pointerDownOutside`,f=`dismissableLayer.focusOutside`,p,m=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=o.forwardRef(l(function(e,a){let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:d=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:_,onDismiss:x,...S}=e,C=o.useContext(m),[w,T]=o.useState(null),E=w?.ownerDocument??globalThis?.document,[,D]=o.useState({}),O=t.useComposedRefs(a,T),k=Array.from(C.layers),[A]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),j=A?k.indexOf(A):-1,M=w?k.indexOf(w):-1,N=C.layersWithOutsidePointerEventsDisabled.size>0,P=M>=j,F=o.useRef(!1),I=v(e=>{h?.(e),_?.(e),e.defaultPrevented||x?.()},{ownerDocument:E,deferPointerDownOutside:d,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return P&&!t},[C.branches,P])}),L=y(e=>{if(d&&F.current)return;let t=e.target;[...C.branches].some(e=>e.contains(t))||(g?.(e),_?.(e),e.defaultPrevented||x?.())},E),R=w?M===k.length-1:!1,z=i.useCallbackRef(e=>{e.key===`Escape`&&(f?.(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))});return o.useEffect(()=>{if(R)return E.addEventListener(`keydown`,z,{capture:!0}),()=>E.removeEventListener(`keydown`,z,{capture:!0})},[E,R,z]),o.useEffect(()=>{if(w)return c&&(C.layersWithOutsidePointerEventsDisabled.size===0&&(p=E.body.style.pointerEvents,E.body.style.pointerEvents=`none`),C.layersWithOutsidePointerEventsDisabled.add(w)),C.layers.add(w),b(),()=>{c&&(C.layersWithOutsidePointerEventsDisabled.delete(w),C.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=p))}},[w,E,c,C]),o.useEffect(()=>()=>{w&&(C.layers.delete(w),C.layersWithOutsidePointerEventsDisabled.delete(w),b())},[w,C]),o.useEffect(()=>{let e=l(()=>D({}),`handleUpdate`);return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,s.jsx)(r.Primitive.div,{...S,ref:O,style:{pointerEvents:N?P?`auto`:`none`:void 0,...e.style},onFocusCapture:n.composeEventHandlers(e.onFocusCapture,L.onFocusCapture),onBlurCapture:n.composeEventHandlers(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:n.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})},`DismissableLayer`));function g(){let e=o.useContext(m),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}l(g,`useDismissableLayerSurface`);var _=l(()=>!0,`IS_TRUE`);function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=_}=t,u=i.useCallbackRef(e),f=o.useRef(!1),p=o.useRef(!1),m=o.useRef(new Map),h=o.useRef(()=>{});return o.useEffect(()=>{function e(){p.current=!1,a.current=!1,m.current.clear()}l(e,`resetOutsideInteraction`);function t(){return Array.from(m.current.values()).some(Boolean)}l(t,`isOutsideInteractionIntercepted`);function i(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||m.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{p.current&&h.current()},0)}l(i,`handleInteractionCapture`);function o(e){p.current&&m.current.set(e.type,!1)}l(o,`handleInteractionBubble`);let g=l(i=>{if(i.target&&!f.current){let o=function(){n.removeEventListener(`click`,h.current);let r=t();e(),r||x(d,u,s,{discrete:!0})};if(l(o,`handleAndDispatchPointerDownOutsideEvent`),!c(i.target)){n.removeEventListener(`click`,h.current),e(),f.current=!1;return}let s={originalEvent:i};p.current=!0,a.current=r&&i.button===0,m.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,h.current),h.current=o,n.addEventListener(`click`,h.current,{once:!0}))}else n.removeEventListener(`click`,h.current),e();f.current=!1},`handlePointerDown`),_=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of _)n.addEventListener(e,i,!0),n.addEventListener(e,o);let v=window.setTimeout(()=>{n.addEventListener(`pointerdown`,g)},0);return()=>{window.clearTimeout(v),n.removeEventListener(`pointerdown`,g),n.removeEventListener(`click`,h.current);for(let e of _)n.removeEventListener(e,i,!0),n.removeEventListener(e,o)}},[n,u,r,a,s,c]),{onPointerDownCapture:l(()=>f.current=!0,`onPointerDownCapture`)}}l(v,`usePointerDownOutside`);function y(e,t=globalThis?.document){let n=i.useCallbackRef(e),r=o.useRef(!1);return o.useEffect(()=>{let e=l(e=>{e.target&&!r.current&&x(f,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:l(()=>r.current=!0,`onFocusCapture`),onBlurCapture:l(()=>r.current=!1,`onBlurCapture`)}}l(y,`useFocusOutside`);function b(){let e=new CustomEvent(u);document.dispatchEvent(e)}l(b,`dispatchUpdate`);function x(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r.dispatchDiscreteCustomEvent(a,o):a.dispatchEvent(o)}l(x,`handleAndDispatchCustomEvent`),exports.DismissableLayer=h,exports.useDismissableLayerSurface=g;
|
package/dist/index39.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Primitive as n, dispatchDiscreteCustomEvent as r } from "./index14.js";
|
|
|
5
5
|
import { useCallbackRef as i } from "./index17.js";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@19.3.0_@types+react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
9
9
|
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
10
10
|
value: t,
|
|
11
11
|
configurable: !0
|
|
@@ -167,5 +167,4 @@ function b(e, t, n, { discrete: i }) {
|
|
|
167
167
|
t && a.addEventListener(e, t, { once: !0 }), i ? r(a, o) : a.dispatchEvent(o);
|
|
168
168
|
}
|
|
169
169
|
c(b, "handleAndDispatchCustomEvent");
|
|
170
|
-
|
|
171
|
-
export { m as DismissableLayer };
|
|
170
|
+
export { m as DismissableLayer, h as useDismissableLayerSurface };
|
package/dist/index4.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs");let t=require("lucide-react"),n=require("react"),r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={confirmBtn:{kaIpWk:`xsda711`,kMzoRj:`xc342km`,kg3NbH:`xnxx81d`,k8WAf4:`x18g2hj5`,kGuDYH:`xkpwil5`,k63SB2:`xk50ysn`,kMwMTN:`x1f7m26b`,kkrTdU:`x1ypdohk`,kGVxlE:`x1dsmnui`,kYPGJ8:`x1s07b3s`,kWCcOm:`xijokvz`,$$css:!0},btnWarning:{kWkggS:`x1yjhq7t`,kGzVvX:`x1af168x`,$$css:!0},btnInfo:{kWkggS:`x1efvng4`,kGzVvX:`xupd0a8`,$$css:!0},btnSuccess:{kWkggS:`xvrvcqj`,kGzVvX:`x1tl4bfe`,$$css:!0},btnDanger:{kWkggS:`x57dptr`,kKhh5M:`x18uuni6`,$$css:!0},iconWarning:{kMwMTN:`x1m3z5z6`,$$css:!0},iconInfo:{kMwMTN:`xd85xce`,$$css:!0},iconSuccess:{kMwMTN:`xqi19zs`,$$css:!0},iconDanger:{kMwMTN:`xuuroe4`,$$css:!0}};function o({isOpen:e,onClose:o,onConfirm:s,title:c,message:l,confirmText:u=`Xác nhận`,cancelText:d=`Hủy`,closeLabel:f=`Đóng`,processingText:p=`Đang xử lý...`,type:m=`warning`,isLoading:h=!1}){let[g,_]=(0,n.useState)(e),v=(0,n.useRef)(null),y=(0,n.useRef)(null);(0,n.useEffect)(()=>{e&&_(!0)},[e]),(0,n.useEffect)(()=>{if(!g||e)return;let t=window.setTimeout(()=>_(!1),200);return()=>window.clearTimeout(t)},[e,g]);let b=()=>{h||o()},x=()=>{h||s()},S=e=>{e.target===e.currentTarget&&!h&&o()};if((0,n.useEffect)(()=>{let t=t=>{t.key===`Escape`&&e&&!h&&o()};return e&&document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e,o,h]),(0,n.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),!g)return null;let C={warning:t.AlertTriangleIcon,info:t.InfoIcon,success:t.CheckCircleIcon,danger:t.XCircleIcon}[m],w={warning:{icon:a.iconWarning,btn:a.btnWarning},info:{icon:a.iconInfo,btn:a.btnInfo},success:{icon:a.iconSuccess,btn:a.btnSuccess},danger:{icon:a.iconDanger,btn:a.btnDanger}}[m];return(0,i.jsxs)(`div`,{ref:v,className:`xixxii4 x10a8y8t x18ivbjn x78zum5 x6s0dn4 xl56j7k`,children:[(0,i.jsx)(`div`,{...{0:{className:`x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua xg01cxk`},1:{className:`x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua x1hc1fzr`}}[!!e
|
|
1
|
+
const e=require("./index2.cjs");let t=require("lucide-react"),n=require("react"),r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a={confirmBtn:{kaIpWk:`xsda711`,kMzoRj:`xc342km`,kg3NbH:`xnxx81d`,k8WAf4:`x18g2hj5`,kGuDYH:`xkpwil5`,k63SB2:`xk50ysn`,kMwMTN:`x1f7m26b`,kkrTdU:`x1ypdohk`,kGVxlE:`x1dsmnui`,kYPGJ8:`x1s07b3s`,kWCcOm:`xijokvz`,$$css:!0},btnWarning:{kWkggS:`x1yjhq7t`,kGzVvX:`x1af168x`,$$css:!0},btnInfo:{kWkggS:`x1efvng4`,kGzVvX:`xupd0a8`,$$css:!0},btnSuccess:{kWkggS:`xvrvcqj`,kGzVvX:`x1tl4bfe`,$$css:!0},btnDanger:{kWkggS:`x57dptr`,kKhh5M:`x18uuni6`,$$css:!0},iconWarning:{kMwMTN:`x1m3z5z6`,$$css:!0},iconInfo:{kMwMTN:`xd85xce`,$$css:!0},iconSuccess:{kMwMTN:`xqi19zs`,$$css:!0},iconDanger:{kMwMTN:`xuuroe4`,$$css:!0}};function o({isOpen:e,onClose:o,onConfirm:s,title:c,message:l,confirmText:u=`Xác nhận`,cancelText:d=`Hủy`,closeLabel:f=`Đóng`,processingText:p=`Đang xử lý...`,type:m=`warning`,isLoading:h=!1}){let[g,_]=(0,n.useState)(e),v=(0,n.useRef)(null),y=(0,n.useRef)(null);(0,n.useEffect)(()=>{e&&_(!0)},[e]),(0,n.useEffect)(()=>{if(!g||e)return;let t=window.setTimeout(()=>_(!1),200);return()=>window.clearTimeout(t)},[e,g]);let b=()=>{h||o()},x=()=>{h||s()},S=e=>{e.target===e.currentTarget&&!h&&o()};if((0,n.useEffect)(()=>{let t=t=>{t.key===`Escape`&&e&&!h&&o()};return e&&document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e,o,h]),(0,n.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),!g)return null;let C={warning:t.AlertTriangleIcon,info:t.InfoIcon,success:t.CheckCircleIcon,danger:t.XCircleIcon}[m],w={warning:{icon:a.iconWarning,btn:a.btnWarning},info:{icon:a.iconInfo,btn:a.btnInfo},success:{icon:a.iconSuccess,btn:a.btnSuccess},danger:{icon:a.iconDanger,btn:a.btnDanger}}[m];return(0,i.jsxs)(`div`,{ref:v,className:`xixxii4 x10a8y8t x18ivbjn x78zum5 x6s0dn4 xl56j7k`,children:[(0,i.jsx)(`div`,{...{0:{className:`x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua xg01cxk`},1:{className:`x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua x1hc1fzr`}}[!!e|0],onClick:S}),(0,i.jsxs)(`div`,{ref:y,...{0:{className:`x1n2onr6 x18ivbjn x1nqqfzk xh8yej3 x1983rqf x1mr5ieh x1rexohn xk0jn7w xis3749 x1tb37de xmkeg23 x1y0btm7 xb30jbz xwcsmn1 x13dflua x1dqaw9l xg01cxk`},1:{className:`x1n2onr6 x18ivbjn x1nqqfzk xh8yej3 x1983rqf x1mr5ieh x1rexohn xk0jn7w xis3749 x1tb37de xmkeg23 x1y0btm7 xb30jbz xwcsmn1 x13dflua xvvkyix x1hc1fzr`}}[!!e|0],onClick:e=>e.stopPropagation(),children:[(0,i.jsx)(`button`,{type:`button`,onClick:b,disabled:h,className:`x10l6tqk x1u62bzc x1nwpe0i x7xypw4 x78pyy4 xw3nh4a xc342km xjbqb8w x1ypdohk x9p52ec x8aud5w x1s07b3s xijokvz`,"aria-label":f,children:(0,i.jsx)(t.XIcon,{style:{width:20,height:20}})}),(0,i.jsxs)(`div`,{className:`x78zum5 x1cy8zhl x8fetqu xlwr664`,children:[(0,i.jsx)(`div`,{className:`x1tbvfm1 x2lah0s`,children:(0,i.jsx)(C,{style:{width:24,height:24},...r.props(w.icon)})}),(0,i.jsxs)(`div`,{className:`xeuugli x845mor`,children:[(0,i.jsx)(`h3`,{className:`xhbfen4 x1c3i2sq x1s688f x84br7x`,children:c}),(0,i.jsx)(`p`,{className:`xkpwil5 x1dbl2gt xw3nh4a`,children:l})]})]}),(0,i.jsxs)(`div`,{className:`x1c4vshn x78zum5 x13a6bvl x8233eu`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:b,disabled:h,className:`xsda711 xmkeg23 x1y0btm7 xb30jbz x1mlyrtw x84br7x xnxx81d x18g2hj5 xkpwil5 xk50ysn x1ypdohk x1dsmnui x9p52ec x1s07b3s xijokvz`,children:d}),(0,i.jsx)(`button`,{type:`button`,onClick:x,disabled:h,...r.props(a.confirmBtn,w.btn),children:h?(0,i.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`},children:[(0,i.jsx)(`span`,{className:`x1rg5ohu xpoiemb xcdlrvm x1l36t39 x1aerksh x1q3qbx4 x1esw782 xa4qsjk x7xypw4 xdh2fpr x1y0btm7 x18kvpo9 x1vtb1mm`}),p]}):u})]})]})]})}exports.default=o;
|
package/dist/index4.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AlertTriangleIcon as e, CheckCircleIcon as t, InfoIcon as n, XCircleIco
|
|
|
2
2
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
3
3
|
import * as c from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ConfirmModal.tsx
|
|
6
6
|
var d = {
|
|
7
7
|
confirmBtn: {
|
|
8
8
|
kaIpWk: "xsda711",
|
|
@@ -115,14 +115,14 @@ function f({ isOpen: f, onClose: p, onConfirm: m, title: h, message: g, confirmT
|
|
|
115
115
|
...{
|
|
116
116
|
0: { className: "x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua xg01cxk" },
|
|
117
117
|
1: { className: "x10l6tqk x10a8y8t xcpsgoo x19991ni x13dflua x1hc1fzr" }
|
|
118
|
-
}[!!f
|
|
118
|
+
}[!!f | 0],
|
|
119
119
|
onClick: k
|
|
120
120
|
}), /* @__PURE__ */ u("div", {
|
|
121
121
|
ref: E,
|
|
122
122
|
...{
|
|
123
123
|
0: { className: "x1n2onr6 x18ivbjn x1nqqfzk xh8yej3 x1983rqf x1mr5ieh x1rexohn xk0jn7w xis3749 x1tb37de xmkeg23 x1y0btm7 xb30jbz xwcsmn1 x13dflua x1dqaw9l xg01cxk" },
|
|
124
124
|
1: { className: "x1n2onr6 x18ivbjn x1nqqfzk xh8yej3 x1983rqf x1mr5ieh x1rexohn xk0jn7w xis3749 x1tb37de xmkeg23 x1y0btm7 xb30jbz xwcsmn1 x13dflua xvvkyix x1hc1fzr" }
|
|
125
|
-
}[!!f
|
|
125
|
+
}[!!f | 0],
|
|
126
126
|
onClick: (e) => e.stopPropagation(),
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ l("button", {
|
|
@@ -184,5 +184,4 @@ function f({ isOpen: f, onClose: p, onConfirm: m, title: h, message: g, confirmT
|
|
|
184
184
|
})]
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
//#endregion
|
|
188
187
|
export { f as default };
|
package/dist/index40.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs");let t=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=0,o=null;function s(e){return c(),e.children}i(s,`FocusGuards`);function c(){n.useEffect(()=>{o||={start:l(),end:l()};let{start:e,end:t}=o;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),a++,()=>{a===1&&(o?.start.remove(),o?.end.remove(),o=null),a=Math.max(0,a-1)}},[])}i(c,`useFocusGuards`);function l(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}i(l,`createFocusGuard`),exports.FocusGuards=s,exports.Root=s,exports.useFocusGuards=c;
|
package/dist/index40.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.6_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4
4
|
var t = Object.defineProperty, n = (e, n) => t(e, "name", {
|
|
5
5
|
value: n,
|
|
6
6
|
configurable: !0
|
|
@@ -27,5 +27,4 @@ function s() {
|
|
|
27
27
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
28
28
|
}
|
|
29
29
|
n(s, "createFocusGuard");
|
|
30
|
-
|
|
31
|
-
export { o as useFocusGuards };
|
|
30
|
+
export { a as FocusGuards, a as Root, o as useFocusGuards };
|
package/dist/index41.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index9.cjs"),n=require("./index14.cjs"),r=require("./index17.cjs");let i=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index9.cjs"),n=require("./index14.cjs"),r=require("./index17.cjs");let i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`focusScope.autoFocusOnMount`,u=`focusScope.autoFocusOnUnmount`,d={bubbles:!1,cancelable:!0},f=a.forwardRef(c(function(e,i){let{loop:s=!1,trapped:f=!1,onMountAutoFocus:g,onUnmountAutoFocus:_,...v}=e,[x,S]=a.useState(null),w=r.useCallbackRef(g),T=r.useCallbackRef(_),E=a.useRef(null),D=t.useComposedRefs(i,S),O=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(f){let e=function(e){if(O.paused||!x)return;let t=e.target;x.contains(t)?E.current=t:y(E.current,{select:!0})},t=function(e){if(O.paused||!x)return;let t=e.relatedTarget;t!==null&&(x.contains(t)||y(E.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(x)};c(e,`handleFocusIn`),c(t,`handleFocusOut`),c(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return x&&r.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[f,x,O.paused]),a.useEffect(()=>{if(x){b.add(O);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(l,d);x.addEventListener(l,w),x.dispatchEvent(t),t.defaultPrevented||(p(C(h(x)),{select:!0}),document.activeElement===e&&y(x))}return()=>{x.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,d);x.addEventListener(u,T),x.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),x.removeEventListener(u,T),b.remove(O)},0)}}},[x,w,T,O]);let k=a.useCallback(e=>{if(!s&&!f||O.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,i]=m(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),s&&y(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),s&&y(i,{select:!0})):n===t&&e.preventDefault()}},[s,f,O.paused]);return(0,o.jsx)(n.Primitive.div,{tabIndex:-1,...v,ref:D,onKeyDown:k})},`FocusScope`));function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}c(p,`focusFirst`);function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}c(m,`getTabbableEdges`);function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:c(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}c(h,`getTabbableCandidates`);function g(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):_(r,{upTo:t})))return r}c(g,`findVisible`);function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}c(_,`isHidden`);function v(e){return e instanceof HTMLInputElement&&`select`in e}c(v,`isSelectableInput`);function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}c(y,`focus`);var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}c(x,`createFocusScopesStack`);function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}c(S,`arrayRemove`);function C(e){return e.filter(e=>e.tagName!==`A`)}c(C,`removeLinks`),exports.FocusScope=f;
|