@vlrc-fe/components 2.0.1 → 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 +88 -18
- package/MIGRATION_GUIDE.md +0 -121
package/dist/index41.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Primitive as t } from "./index14.js";
|
|
|
4
4
|
import { useCallbackRef as n } from "./index17.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
8
8
|
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
@@ -155,5 +155,4 @@ function x(e) {
|
|
|
155
155
|
return e.filter((e) => e.tagName !== "A");
|
|
156
156
|
}
|
|
157
157
|
o(x, "removeLinks");
|
|
158
|
-
//#endregion
|
|
159
158
|
export { u as FocusScope };
|
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=[`top`,`right`,`bottom`,`left`],t=Math.min,n=Math.max,r=Math.round,i=Math.floor,a=e=>({x:e,y:e}),o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function s(e,r,i){return n(e,t(r,i))}function c(e,t){return typeof e==`function`?e(t):e}function l(e){return e.split(`-`)[0]}function u(e){return e.split(`-`)[1]}function d(e){return e===`x`?`y`:`x`}function f(e){return e===`y`?`height`:`width`}function p(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function m(e){return d(p(e))}function h(e,t,n){n===void 0&&(n=!1);let r=u(e),i=m(e),a=f(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=w(o)),[o,w(o)]}function g(e){let t=w(e);return[_(e),t,_(t)]}function _(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var v=[`left`,`right`],y=[`right`,`left`],b=[`top`,`bottom`],x=[`bottom`,`top`];function S(e,t,n){switch(e){case`top`:case`bottom`:return n?t?y:v:t?v:y;case`left`:case`right`:return t?b:x;default:return[]}}function C(e,t,n,r){let i=u(e),a=S(l(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_)))),a}function w(e){let t=l(e);return o[t]+e.slice(t.length)}function T(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function E(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:T(e)}function D(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}exports.clamp=s,exports.createCoords=a,exports.evaluate=c,exports.floor=i,exports.getAlignment=u,exports.getAlignmentAxis=m,exports.getAlignmentSides=h,exports.getAxisLength=f,exports.getExpandedPlacements=g,exports.getOppositeAxis=d,exports.getOppositeAxisPlacements=C,exports.getOppositePlacement=w,exports.getPaddingObject=E,exports.getSide=l,exports.getSideAxis=p,exports.max=n,exports.min=t,exports.rectToClientRect=D,exports.round=r,exports.sides=e;
|
|
1
|
+
var e=[`top`,`right`,`bottom`,`left`],t=Math.min,n=Math.max,r=Math.round,i=Math.floor,a=e=>({x:e,y:e}),o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function s(e,r,i){return n(e,t(r,i))}function c(e,t){return typeof e==`function`?e(t):e}function l(e){return e.split(`-`)[0]}function u(e){return e.split(`-`)[1]}function d(e){return e===`x`?`y`:`x`}function f(e){return e===`y`?`height`:`width`}function p(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function m(e){return d(p(e))}function h(e,t,n){n===void 0&&(n=!1);let r=u(e),i=m(e),a=f(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=w(o)),[o,w(o)]}function g(e){let t=w(e);return[_(e),t,_(t)]}function _(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var v=[`left`,`right`],y=[`right`,`left`],b=[`top`,`bottom`],x=[`bottom`,`top`];function S(e,t,n){switch(e){case`top`:case`bottom`:return n?t?y:v:t?v:y;case`left`:case`right`:return t?b:x;default:return[]}}function C(e,t,n,r){let i=u(e),a=S(l(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_)))),a}function w(e){let t=l(e);return o[t]+e.slice(t.length)}function T(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function E(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:T(e)}function D(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}exports.clamp=s,exports.createCoords=a,exports.evaluate=c,exports.expandPaddingObject=T,exports.floor=i,exports.getAlignment=u,exports.getAlignmentAxis=m,exports.getAlignmentSides=h,exports.getAxisLength=f,exports.getExpandedPlacements=g,exports.getOppositeAlignmentPlacement=_,exports.getOppositeAxis=d,exports.getOppositeAxisPlacements=C,exports.getOppositePlacement=w,exports.getPaddingObject=E,exports.getSide=l,exports.getSideAxis=p,exports.max=n,exports.min=t,exports.rectToClientRect=D,exports.round=r,exports.sides=e;
|
package/dist/index42.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2
2
|
var e = [
|
|
3
3
|
"top",
|
|
4
4
|
"right",
|
|
@@ -101,5 +101,4 @@ function D(e) {
|
|
|
101
101
|
y: n
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
export { s as clamp, a as createCoords, c as evaluate, i as floor, u as getAlignment, m as getAlignmentAxis, h as getAlignmentSides, f as getAxisLength, g as getExpandedPlacements, d as getOppositeAxis, C as getOppositeAxisPlacements, w as getOppositePlacement, E as getPaddingObject, l as getSide, p as getSideAxis, n as max, t as min, D as rectToClientRect, r as round, e as sides };
|
|
104
|
+
export { s as clamp, a as createCoords, c as evaluate, T as expandPaddingObject, i as floor, u as getAlignment, m as getAlignmentAxis, h as getAlignmentSides, f as getAxisLength, g as getExpandedPlacements, _ as getOppositeAlignmentPlacement, d as getOppositeAxis, C as getOppositeAxisPlacements, w as getOppositePlacement, E as getPaddingObject, l as getSide, p as getSideAxis, n as max, t as min, D as rectToClientRect, r as round, e as sides };
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index42.cjs");function t(t,n,r){let{reference:i,floating:a}=t,o=e.getSideAxis(n),s=e.getAlignmentAxis(n),c=e.getAxisLength(s),l=e.getSide(n),u=o===`y`,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[c]/2-a[c]/2,m;switch(l){case`top`:m={x:d,y:i.y-a.height};break;case`bottom`:m={x:d,y:i.y+i.height};break;case`right`:m={x:i.x+i.width,y:f};break;case`left`:m={x:i.x-a.width,y:f};break;default:m={x:i.x,y:i.y}}let h=e.getAlignment(n);return h&&(m[s]+=p*(h===`end`?1:-1)*(r&&u?-1:1)),m}async function n(t,n){n===void 0&&(n={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=t,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=e.evaluate(n,t),m=e.getPaddingObject(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=e.rectToClientRect(await a.getClippingRect({element:await(a.isElement==null?void 0:a.isElement(h))??!0?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=e.rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var r=50,i=async(e,i,a)=>{let{placement:o=`bottom`,strategy:s=`absolute`,middleware:c=[],platform:l}=a,u=l.detectOverflow?l:{...l,detectOverflow:n},d=await(l.isRTL==null?void 0:l.isRTL(i)),f=await l.getElementRects({reference:e,floating:i,strategy:s}),{x:p,y:m}=t(f,o,d),h=o,g=0,_={};for(let n=0;n<c.length;n++){let a=c[n];if(!a)continue;let{name:v,fn:y}=a,{x:b,y:x,data:S,reset:C}=await y({x:p,y:m,initialPlacement:o,placement:h,strategy:s,middlewareData:_,rects:f,platform:u,elements:{reference:e,floating:i}});p=b??p,m=x??m,_[v]={..._[v],...S},C&&g<r&&(g++,typeof C==`object`&&(C.placement&&(h=C.placement),C.rects&&(f=C.rects===!0?await l.getElementRects({reference:e,floating:i,strategy:s}):C.rects),{x:p,y:m}=t(f,h,d)),n=-1)}return{x:p,y:m,placement:h,strategy:s,middlewareData:_}},a=t=>({name:`arrow`,options:t,async fn(n){let{x:r,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:l}=n,{element:u,padding:d=0}=e.evaluate(t,n)||{};if(u==null)return{};let f=e.getPaddingObject(d),p={x:r,y:i},m=e.getAlignmentAxis(a),h=e.getAxisLength(m),g=await s.getDimensions(u),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=o.reference[h]+o.reference[m]-p[m]-o.floating[h],S=p[m]-o.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),w=C?C[b]:0;
|
|
1
|
+
const e=require("./index42.cjs");function t(t,n,r){let{reference:i,floating:a}=t,o=e.getSideAxis(n),s=e.getAlignmentAxis(n),c=e.getAxisLength(s),l=e.getSide(n),u=o===`y`,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,p=i[c]/2-a[c]/2,m;switch(l){case`top`:m={x:d,y:i.y-a.height};break;case`bottom`:m={x:d,y:i.y+i.height};break;case`right`:m={x:i.x+i.width,y:f};break;case`left`:m={x:i.x-a.width,y:f};break;default:m={x:i.x,y:i.y}}let h=e.getAlignment(n);return h&&(m[s]+=p*(h===`end`?1:-1)*(r&&u?-1:1)),m}async function n(t,n){n===void 0&&(n={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=t,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=e.evaluate(n,t),m=e.getPaddingObject(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=e.rectToClientRect(await a.getClippingRect({element:await(a.isElement==null?void 0:a.isElement(h))??!0?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=e.rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var r=50,i=async(e,i,a)=>{let{placement:o=`bottom`,strategy:s=`absolute`,middleware:c=[],platform:l}=a,u=l.detectOverflow?l:{...l,detectOverflow:n},d=await(l.isRTL==null?void 0:l.isRTL(i)),f=await l.getElementRects({reference:e,floating:i,strategy:s}),{x:p,y:m}=t(f,o,d),h=o,g=0,_={};for(let n=0;n<c.length;n++){let a=c[n];if(!a)continue;let{name:v,fn:y}=a,{x:b,y:x,data:S,reset:C}=await y({x:p,y:m,initialPlacement:o,placement:h,strategy:s,middlewareData:_,rects:f,platform:u,elements:{reference:e,floating:i}});p=b??p,m=x??m,_[v]={..._[v],...S},C&&g<r&&(g++,typeof C==`object`&&(C.placement&&(h=C.placement),C.rects&&(f=C.rects===!0?await l.getElementRects({reference:e,floating:i,strategy:s}):C.rects),{x:p,y:m}=t(f,h,d)),n=-1)}return{x:p,y:m,placement:h,strategy:s,middlewareData:_}},a=t=>({name:`arrow`,options:t,async fn(n){let{x:r,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:l}=n,{element:u,padding:d=0}=e.evaluate(t,n)||{};if(u==null)return{};let f=e.getPaddingObject(d),p={x:r,y:i},m=e.getAlignmentAxis(a),h=e.getAxisLength(m),g=await s.getDimensions(u),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=o.reference[h]+o.reference[m]-p[m]-o.floating[h],S=p[m]-o.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),w=C?C[b]:0;w&&await(s.isElement==null?void 0:s.isElement(C))||(w=c.floating[b]||o.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=e.min(f[v],E),O=e.min(f[y],E),k=w-g[h]-O,A=w/2-g[h]/2+T,j=e.clamp(D,A,k),M=!l.arrow&&e.getAlignment(a)!=null&&A!==j&&o.reference[h]/2-(A<D?D:O)-g[h]/2<0,N=M?A<D?A-D:A-k:0;return{[m]:p[m]+N,data:{[m]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),o=function(t){return t===void 0&&(t={}),{name:`flip`,options:t,async fn(n){var r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=n,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=e.evaluate(t,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=e.getSide(i),v=e.getSideAxis(s),y=e.getSide(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[e.getOppositePlacement(s)]:e.getExpandedPlacements(s)),S=m!==`none`;!f&&S&&x.push(...e.getOppositeAxisPlacements(s,h,m,b));let C=[s,...x],w=await c.detectOverflow(n,g),T=[],E=a.flip?.overflows||[];if(u&&T.push(w[_]),d){let t=e.getAlignmentSides(i,o,b);T.push(w[t[0]],w[t[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){let t=(a.flip?.index||0)+1,n=C[t];if(n&&(d!==`alignment`||v===e.getSideAxis(n)||E.every(t=>e.getSideAxis(t.placement)!==v||t.overflows[0]>0)))return{data:{index:t,overflows:E},reset:{placement:n}};let r=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!r)switch(p){case`bestFit`:{let t=E.filter(t=>{if(S){let n=e.getSideAxis(t.placement);return n===v||n===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];t&&(r=t);break}case`initialPlacement`:r=s}if(i!==r)return{reset:{placement:r}}}return{}}}};function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(t){return e.sides.some(e=>t[e]>=0)}var l=function(t){return t===void 0&&(t={}),{name:`hide`,options:t,async fn(n){let{rects:r,platform:i}=n,{strategy:a=`referenceHidden`,...o}=e.evaluate(t,n);switch(a){case`referenceHidden`:{let e=s(await i.detectOverflow(n,{...o,elementContext:`reference`}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:c(e)}}}case`escaped`:{let e=s(await i.detectOverflow(n,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:c(e)}}}default:return{}}}}},u=new Set([`left`,`top`]);async function d(t,n){let{placement:r,platform:i,elements:a}=t,o=await(i.isRTL==null?void 0:i.isRTL(a.floating)),s=e.getSide(r),c=e.getAlignment(r),l=e.getSideAxis(r)===`y`,d=u.has(s)?-1:1,f=o&&l?-1:1,p=e.evaluate(n,t),{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof p==`number`?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof g==`number`&&(h=c===`end`?g*-1:g),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}var f=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await d(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},p=function(t){return t===void 0&&(t={}),{name:`shift`,options:t,async fn(n){let{x:r,y:i,placement:a,platform:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e.evaluate(t,n),d={x:r,y:i},f=await o.detectOverflow(n,u),p=e.getSideAxis(a),m=e.getOppositeAxis(p),h=d[m],g=d[p],_=(t,n)=>e.clamp(n+f[t===`y`?`top`:`left`],n,n-f[t===`y`?`bottom`:`right`]);s&&(h=_(m,h)),c&&(g=_(p,g));let v=l.fn({...n,[m]:h,[p]:g});return{...v,data:{x:v.x-r,y:v.y-i,enabled:{[m]:s,[p]:c}}}}}},m=function(t){return t===void 0&&(t={}),{options:t,fn(n){let{x:r,y:i,placement:a,rects:o,middlewareData:s}=n,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=e.evaluate(t,n),f={x:r,y:i},p=e.getSideAxis(a),m=e.getOppositeAxis(p),h=f[m],g=f[p],_=e.evaluate(c,n),v=typeof _==`number`?{mainAxis:_,crossAxis:0}:{mainAxis:_.mainAxis??0,crossAxis:_.crossAxis??0};if(l){let e=m===`y`?`height`:`width`,t=o.reference[m]-o.floating[e]+v.mainAxis,n=o.reference[m]+o.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(d){let t=m===`y`?`width`:`height`,n=u.has(e.getSide(a)),r=o.reference[p]-o.floating[t]+(n&&s.offset?.[p]||0)+(n?0:v.crossAxis),i=o.reference[p]+o.reference[t]+(n?0:s.offset?.[p]||0)-(n?v.crossAxis:0);g<r?g=r:g>i&&(g=i)}return{[m]:h,[p]:g}}}},h=function(t){return t===void 0&&(t={}),{name:`size`,options:t,async fn(n){let{placement:r,rects:i,platform:a,elements:o}=n,{apply:s=()=>{},...c}=e.evaluate(t,n),l=await a.detectOverflow(n,c),u=e.getSide(r),d=e.getAlignment(r),f=e.getSideAxis(r)===`y`,{width:p,height:m}=i.floating,h,g;u===`top`||u===`bottom`?(h=u,g=d===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?`start`:`end`)?`left`:`right`):(g=u,h=d===`end`?`top`:`bottom`);let _=m-l.top-l.bottom,v=p-l.left-l.right,y=e.min(m-l[h],_),b=e.min(p-l[g],v),x=n.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!d&&(f?w=p-2*e.max(l.left,l.right):C=m-2*e.max(l.top,l.bottom)),await s({...n,availableWidth:w,availableHeight:C});let T=await a.getDimensions(o.floating);return p!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};exports.arrow=a,exports.computePosition=i,exports.detectOverflow=n,exports.flip=o,exports.hide=l,exports.limitShift=m,exports.offset=f,exports.rectToClientRect=e.rectToClientRect,exports.shift=p,exports.size=h;
|
package/dist/index43.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clamp as e, evaluate as t, getAlignment as n, getAlignmentAxis as r, getAlignmentSides as i, getAxisLength as a, getExpandedPlacements as o, getOppositeAxis as s, getOppositeAxisPlacements as c, getOppositePlacement as l, getPaddingObject as u, getSide as d, getSideAxis as f, max as p, min as m, rectToClientRect as h, sides as g } from "./index42.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3
3
|
function _(e, t, i) {
|
|
4
4
|
let { reference: o, floating: s } = e, c = f(t), l = r(t), u = a(l), p = d(t), m = c === "y", h = o.x + o.width / 2 - s.width / 2, g = o.y + o.height / 2 - s.height / 2, _ = o[u] / 2 - s[u] / 2, v;
|
|
5
5
|
switch (p) {
|
|
@@ -115,7 +115,7 @@ var y = 50, b = async (e, t, n) => {
|
|
|
115
115
|
x: s,
|
|
116
116
|
y: c
|
|
117
117
|
}, b = r(l), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = d.reference[x] + d.reference[b] - y[b] - d.floating[x], O = y[b] - d.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
|
|
118
|
-
|
|
118
|
+
A && await (f.isElement == null ? void 0 : f.isElement(k)) || (A = p.floating[E] || d.floating[x]);
|
|
119
119
|
let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = m(v[w], M), P = m(v[T], M), F = A - S[x] - P, I = A / 2 - S[x] / 2 + j, L = e(N, I, F), R = !h.arrow && n(l) != null && I !== L && d.reference[x] / 2 - (I < N ? N : P) - S[x] / 2 < 0, z = R ? I < N ? I - N : I - F : 0;
|
|
120
120
|
return {
|
|
121
121
|
[b]: y[b] + z,
|
|
@@ -147,7 +147,7 @@ var y = 50, b = async (e, t, n) => {
|
|
|
147
147
|
overflows: j
|
|
148
148
|
}], !j.every((e) => e <= 0)) {
|
|
149
149
|
let e = (s.flip?.index || 0) + 1, t = k[e];
|
|
150
|
-
if (t && (
|
|
150
|
+
if (t && (_ !== "alignment" || w === f(t) || M.every((e) => f(e.placement) !== w || e.overflows[0] > 0))) return {
|
|
151
151
|
data: {
|
|
152
152
|
index: e,
|
|
153
153
|
overflows: M
|
|
@@ -167,9 +167,7 @@ var y = 50, b = async (e, t, n) => {
|
|
|
167
167
|
e && (n = e);
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
|
-
case "initialPlacement":
|
|
171
|
-
n = p;
|
|
172
|
-
break;
|
|
170
|
+
case "initialPlacement": n = p;
|
|
173
171
|
}
|
|
174
172
|
if (a !== n) return { reset: { placement: n } };
|
|
175
173
|
}
|
|
@@ -219,7 +217,7 @@ var T = function(e) {
|
|
|
219
217
|
}
|
|
220
218
|
}
|
|
221
219
|
};
|
|
222
|
-
}, E =
|
|
220
|
+
}, E = /*#__PURE__*/ new Set(["left", "top"]);
|
|
223
221
|
async function D(e, r) {
|
|
224
222
|
let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = d(i), l = n(i), u = f(i) === "y", p = E.has(c) ? -1 : 1, m = s && u ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
|
|
225
223
|
mainAxis: h,
|
|
@@ -335,5 +333,4 @@ var O = function(e) {
|
|
|
335
333
|
}
|
|
336
334
|
};
|
|
337
335
|
};
|
|
338
|
-
|
|
339
|
-
export { x as arrow, b as computePosition, S as flip, T as hide, A as limitShift, O as offset, k as shift, j as size };
|
|
336
|
+
export { x as arrow, b as computePosition, v as detectOverflow, S as flip, T as hide, A as limitShift, O as offset, h as rectToClientRect, k as shift, j as size };
|
package/dist/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(){return typeof window<`u`}function t(e){return i(e)?(e.nodeName||``).toLowerCase():`#document`}function n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function r(e){return((i(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function i(t){return e()?t instanceof Node||t instanceof n(t).Node:!1}function a(t){return e()?t instanceof Element||t instanceof n(t).Element:!1}function o(t){return e()?t instanceof HTMLElement||t instanceof n(t).HTMLElement:!1}function s(t){return!e()||typeof ShadowRoot>`u`?!1:t instanceof ShadowRoot||t instanceof n(t).ShadowRoot}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function l(e){return/^(table|td|th)$/.test(t(e))}function u(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var d=/transform|translate|scale|rotate|perspective|filter/,f=/paint|layout|strict|content/,p=e=>!!e&&e!==`none`,m;function h(e){let t=a(e)?y(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!_()&&(p(t.backdropFilter)||p(t.filter))||d.test(t.willChange||``)||f.test(t.contain||``)}function g(e){let t=x(e);for(;o(t)&&!v(t);){if(h(t))return t;if(u(t))return null;t=x(t)}return null}function _(){return m??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),m}function v(e){return/^(html|body|#document)$/.test(t(e))}function y(e){return n(e).getComputedStyle(e)}function b(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function x(e){if(t(e)===`html`)return e;let n=e.assignedSlot||e.parentNode||s(e)&&e.host||r(e);return s(n)?n.host:n}function S(e){let t=x(e);return v(t)?(e.ownerDocument||e).body:o(t)&&c(t)?t:S(t)}function C(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=!0);let i=S(e),a=i===e.ownerDocument?.body,o=n(i);if(a){let e=w(o);return t.concat(o,o.visualViewport||[],c(i)?i:[],e&&r?C(e):[])}
|
|
1
|
+
function e(){return typeof window<`u`}function t(e){return i(e)?(e.nodeName||``).toLowerCase():`#document`}function n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function r(e){return((i(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function i(t){return e()?t instanceof Node||t instanceof n(t).Node:!1}function a(t){return e()?t instanceof Element||t instanceof n(t).Element:!1}function o(t){return e()?t instanceof HTMLElement||t instanceof n(t).HTMLElement:!1}function s(t){return!e()||typeof ShadowRoot>`u`?!1:t instanceof ShadowRoot||t instanceof n(t).ShadowRoot}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function l(e){return/^(table|td|th)$/.test(t(e))}function u(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var d=/transform|translate|scale|rotate|perspective|filter/,f=/paint|layout|strict|content/,p=e=>!!e&&e!==`none`,m;function h(e){let t=a(e)?y(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!_()&&(p(t.backdropFilter)||p(t.filter))||d.test(t.willChange||``)||f.test(t.contain||``)}function g(e){let t=x(e);for(;o(t)&&!v(t);){if(h(t))return t;if(u(t))return null;t=x(t)}return null}function _(){return m??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),m}function v(e){return/^(html|body|#document)$/.test(t(e))}function y(e){return n(e).getComputedStyle(e)}function b(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function x(e){if(t(e)===`html`)return e;let n=e.assignedSlot||e.parentNode||s(e)&&e.host||r(e);return s(n)?n.host:n}function S(e){let t=x(e);return v(t)?(e.ownerDocument||e).body:o(t)&&c(t)?t:S(t)}function C(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=!0);let i=S(e),a=i===e.ownerDocument?.body,o=n(i);if(a){let e=w(o);return t.concat(o,o.visualViewport||[],c(i)?i:[],e&&r?C(e):[])}return t.concat(i,C(i,[],r))}function w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}exports.getComputedStyle=y,exports.getContainingBlock=g,exports.getDocumentElement=r,exports.getFrameElement=w,exports.getNearestOverflowAncestor=S,exports.getNodeName=t,exports.getNodeScroll=b,exports.getOverflowAncestors=C,exports.getParentNode=x,exports.getWindow=n,exports.isContainingBlock=h,exports.isElement=a,exports.isHTMLElement=o,exports.isLastTraversableNode=v,exports.isNode=i,exports.isOverflowElement=c,exports.isShadowRoot=s,exports.isTableElement=l,exports.isTopLayer=u,exports.isWebKit=_;
|
package/dist/index44.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2
2
|
function e() {
|
|
3
3
|
return typeof window < "u";
|
|
4
4
|
}
|
|
@@ -88,10 +88,10 @@ function C(e, t, r) {
|
|
|
88
88
|
if (a) {
|
|
89
89
|
let e = w(o);
|
|
90
90
|
return t.concat(o, o.visualViewport || [], c(i) ? i : [], e && r ? C(e) : []);
|
|
91
|
-
}
|
|
91
|
+
}
|
|
92
|
+
return t.concat(i, C(i, [], r));
|
|
92
93
|
}
|
|
93
94
|
function w(e) {
|
|
94
95
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, c as isOverflowElement, l as isTableElement, u as isTopLayer, _ as isWebKit };
|
|
97
|
+
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, S as getNearestOverflowAncestor, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, i as isNode, c as isOverflowElement, s as isShadowRoot, l as isTableElement, u as isTopLayer, _ as isWebKit };
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index42.cjs"),t=require("./index43.cjs"),n=require("./index44.cjs");function r(t){let r=n.getComputedStyle(t),i=parseFloat(r.width)||0,a=parseFloat(r.height)||0,o=n.isHTMLElement(t),s=o?t.offsetWidth:i,c=o?t.offsetHeight:a,l=e.round(i)!==s||e.round(a)!==c;return l&&(i=s,a=c),{width:i,height:a,$:l}}function i(e){return n.isElement(e)?e:e.contextElement}function a(t){let a=i(t);if(!n.isHTMLElement(a))return e.createCoords(1);let o=a.getBoundingClientRect(),{width:s,height:c,$:l}=r(a),u=(l?e.round(o.width):o.width)/s,d=(l?e.round(o.height):o.height)/c;return
|
|
1
|
+
const e=require("./index42.cjs"),t=require("./index43.cjs"),n=require("./index44.cjs");function r(t){let r=n.getComputedStyle(t),i=parseFloat(r.width)||0,a=parseFloat(r.height)||0,o=n.isHTMLElement(t),s=o?t.offsetWidth:i,c=o?t.offsetHeight:a,l=e.round(i)!==s||e.round(a)!==c;return l&&(i=s,a=c),{width:i,height:a,$:l}}function i(e){return n.isElement(e)?e:e.contextElement}function a(t){let a=i(t);if(!n.isHTMLElement(a))return e.createCoords(1);let o=a.getBoundingClientRect(),{width:s,height:c,$:l}=r(a),u=(l?e.round(o.width):o.width)/s,d=(l?e.round(o.height):o.height)/c;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}var o=e.createCoords(0);function s(e){let t=n.getWindow(e);return!n.isWebKit()||!t.visualViewport?o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===n.getWindow(e)}function l(t,r,o,l){r===void 0&&(r=!1),o===void 0&&(o=!1);let u=t.getBoundingClientRect(),d=i(t),f=e.createCoords(1);r&&(l?n.isElement(l)&&(f=a(l)):f=a(t));let p=c(d,o,l)?s(d):e.createCoords(0),m=(u.left+p.x)/f.x,h=(u.top+p.y)/f.y,g=u.width/f.x,_=u.height/f.y;if(d&&l){let e=n.getWindow(d),t=n.isElement(l)?n.getWindow(l):l,r=e,i=n.getFrameElement(r);for(;i&&t!==r;){let e=a(i),t=i.getBoundingClientRect(),o=n.getComputedStyle(i),s=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,c=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;m*=e.x,h*=e.y,g*=e.x,_*=e.y,m+=s,h+=c,r=n.getWindow(i),i=n.getFrameElement(r)}}return e.rectToClientRect({width:g,height:_,x:m,y:h})}function u(e,t){let r=n.getNodeScroll(e).scrollLeft;return t?t.left+r:l(n.getDocumentElement(e)).left+r}function d(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-u(e,n),y:n.top+t.scrollTop}}function f(t){let{elements:r,rect:i,offsetParent:o,strategy:s}=t,c=s===`fixed`,u=n.getDocumentElement(o),f=r?n.isTopLayer(r.floating):!1;if(o===u||f&&c)return i;let p={scrollLeft:0,scrollTop:0},m=e.createCoords(1),h=e.createCoords(0),g=n.isHTMLElement(o);if((g||!c)&&((n.getNodeName(o)!==`body`||n.isOverflowElement(u))&&(p=n.getNodeScroll(o)),g)){let e=l(o);m=a(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}let _=u&&!g&&!c?d(u,p):e.createCoords(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-p.scrollLeft*m.x+h.x+_.x,y:i.y*m.y-p.scrollTop*m.y+h.y+_.y}}function p(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function m(t){let r=n.getNodeScroll(t),i=t.ownerDocument.body,a=e.max(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=e.max(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+u(t),c=-r.scrollTop;return n.getComputedStyle(i).direction===`rtl`&&(s+=e.max(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:c}}var h=25;function g(e,t,r){r===void 0&&(r=`viewport`);let i=r===`layoutViewport`,a=n.getWindow(e),o=n.getDocumentElement(e),s=a.visualViewport,c=o.clientWidth,l=o.clientHeight,d=0,f=0;if(s){let e=!n.isWebKit()||t===`fixed`;i?e||(d=-s.offsetLeft,f=-s.offsetTop):(c=s.width,l=s.height,e&&(d=s.offsetLeft,f=s.offsetTop))}if(u(o)<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),a=getComputedStyle(o).scrollbarGutter===`stable both-edges`?i/2:i;a<=h&&(c-=a)}return{width:c,height:l,x:d,y:f}}function _(e,t){let n=l(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=a(e);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}function v(t,r,i){let a;if(r===`viewport`||r===`layoutViewport`)a=g(t,i,r);else if(r===`document`)a=m(n.getDocumentElement(t));else if(n.isElement(r))a=_(r,i);else{let e=s(t);a={x:r.x-e.x,y:r.y-e.y,width:r.width,height:r.height}}return e.rectToClientRect(a)}function y(e,t){let r=t.get(e);if(r)return r;let i=n.getOverflowAncestors(e,[],!1).filter(e=>n.isElement(e)&&n.getNodeName(e)!==`body`),a=null,o=n.getComputedStyle(e).position===`fixed`,s=o?n.getParentNode(e):e;for(;n.isElement(s)&&!n.isLastTraversableNode(s);){let e=n.getComputedStyle(s),t=n.isContainingBlock(s),r=a?a.position:o?`fixed`:``;!t&&(r===`fixed`||r===`absolute`&&e.position===`static`)?i=i.filter(e=>e!==s):a=e,s=n.getParentNode(s)}return t.set(e,i),i}function b(t){let{element:r,boundary:i,rootBoundary:a,strategy:o}=t,s=[...i===`clippingAncestors`?n.isTopLayer(r)?[]:y(r,this._c):[].concat(i),a],c=v(r,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let t=1;t<s.length;t++){let n=v(r,s[t],o);l=e.max(n.top,l),u=e.min(n.right,u),d=e.min(n.bottom,d),f=e.max(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function x(e){let{width:t,height:n}=r(e);return{width:t,height:n}}function S(t,r,i){let a=n.isHTMLElement(r),o=n.getDocumentElement(r),s=i===`fixed`,c=l(t,!0,s,r),f={scrollLeft:0,scrollTop:0},p=e.createCoords(0);if((a||!s)&&((n.getNodeName(r)!==`body`||n.isOverflowElement(o))&&(f=n.getNodeScroll(r)),a)){let e=l(r,!0,s,r);p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}!a&&o&&(p.x=u(o));let m=o&&!a&&!s?d(o,f):e.createCoords(0);return{x:c.left+f.scrollLeft-p.x-m.x,y:c.top+f.scrollTop-p.y-m.y,width:c.width,height:c.height}}function C(e){return n.getComputedStyle(e).position===`static`}function w(e,t){if(!n.isHTMLElement(e)||n.getComputedStyle(e).position===`fixed`)return null;if(t)return t(e);let r=e.offsetParent;return n.getDocumentElement(e)===r&&(r=r.ownerDocument.body),r}function T(e,t){let r=n.getWindow(e);if(n.isTopLayer(e))return r;if(!n.isHTMLElement(e)){let t=n.getParentNode(e);for(;t&&!n.isLastTraversableNode(t);){if(n.isElement(t)&&!C(t))return t;t=n.getParentNode(t)}return r}let i=w(e,t);for(;i&&n.isTableElement(i)&&C(i);)i=w(i,t);return i&&n.isLastTraversableNode(i)&&C(i)&&!n.isContainingBlock(i)?r:i||n.getContainingBlock(e)||r}var E=async function(e){let t=this.getOffsetParent||T,n=this.getDimensions,r=await n(e.floating);return{reference:S(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function D(e){return n.getComputedStyle(e).direction===`rtl`}var O={convertOffsetParentRelativeRectToViewportRelativeRect:f,getDocumentElement:n.getDocumentElement,getClippingRect:b,getOffsetParent:T,getElementRects:E,getClientRects:p,getDimensions:x,getScale:a,isElement:n.isElement,isRTL:D};function k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A(t,r,i){let a=null,o,s=n.getDocumentElement(t);function c(){var e;clearTimeout(o),(e=a)==null||e.disconnect(),a=null}function l(n,i){n===void 0&&(n=!1),i===void 0&&(i=1),c();let u=t.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(n||r(),!p||!m)return;let h=e.floor(f),g=e.floor(s.clientWidth-(d+p)),_=e.floor(s.clientHeight-(f+m)),v=e.floor(d),y={rootMargin:-h+`px `+-g+`px `+-_+`px `+-v+`px`,threshold:e.max(0,e.min(1,i))||1},b=!0;function x(e){let n=e[0].intersectionRatio;if(!k(u,t.getBoundingClientRect()))return l();if(n!==i){if(!b)return l();n?l(!1,n):o=setTimeout(()=>{l(!1,1e-7)},1e3)}b=!1}try{a=new IntersectionObserver(x,{...y,root:s.ownerDocument})}catch{a=new IntersectionObserver(x,y)}a.observe(t)}let u=n.getWindow(t),d=()=>l(i);return u.addEventListener(`resize`,d),l(!0),()=>{u.removeEventListener(`resize`,d),c()}}function j(e,t,r,a){a===void 0&&(a={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver==`function`,layoutShift:u=typeof IntersectionObserver==`function`,animationFrame:d=!1}=a,f=i(e),p=o||s?[...f?n.getOverflowAncestors(f):[],...t?n.getOverflowAncestors(t):[]]:[];p.forEach(e=>{o&&e.addEventListener(`scroll`,r),s&&e.addEventListener(`resize`,r)});let m=f&&u?A(f,r,s):null,h=-1,g=null;c&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;(e=g)==null||e.observe(t)})),r()}),f&&!d&&g.observe(f),t&&g.observe(t));let _,v=d?l(e):null;d&&y();function y(){let t=l(e);v&&!k(v,t)&&r(),v=t,_=requestAnimationFrame(y)}return r(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener(`scroll`,r),s&&e.removeEventListener(`resize`,r)}),m?.(),(e=g)==null||e.disconnect(),g=null,d&&cancelAnimationFrame(_)}}var M=t.offset,N=t.shift,P=t.flip,F=t.size,I=t.hide,L=t.arrow,R=t.limitShift,z=(e,n,r)=>{let i=new Map,a=r??{},o={...O,...a.platform,_c:i};return t.computePosition(e,n,{...a,platform:o})};exports.arrow=L,exports.autoUpdate=j,exports.computePosition=z,exports.flip=P,exports.hide=I,exports.limitShift=R,exports.offset=M,exports.platform=O,exports.shift=N,exports.size=F;
|
package/dist/index45.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCoords as e, floor as t, max as n, min as r, rectToClientRect as i, round as a } from "./index42.js";
|
|
2
2
|
import { arrow as o, computePosition as s, flip as c, hide as l, limitShift as u, offset as d, shift as f, size as p } from "./index43.js";
|
|
3
3
|
import { getComputedStyle as m, getContainingBlock as h, getDocumentElement as g, getFrameElement as _, getNodeName as v, getNodeScroll as y, getOverflowAncestors as b, getParentNode as x, getWindow as S, isContainingBlock as C, isElement as w, isHTMLElement as T, isLastTraversableNode as E, isOverflowElement as D, isTableElement as O, isTopLayer as k, isWebKit as A } from "./index44.js";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5
5
|
function j(e) {
|
|
6
6
|
let t = m(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = T(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = a(n) !== o || a(r) !== s;
|
|
7
7
|
return c && (n = o, r = s), {
|
|
@@ -17,12 +17,12 @@ function N(t) {
|
|
|
17
17
|
let n = M(t);
|
|
18
18
|
if (!T(n)) return e(1);
|
|
19
19
|
let r = n.getBoundingClientRect(), { width: i, height: o, $: s } = j(n), c = (s ? a(r.width) : r.width) / i, l = (s ? a(r.height) : r.height) / o;
|
|
20
|
-
return
|
|
20
|
+
return c && Number.isFinite(c) || (c = 1), l && Number.isFinite(l) || (l = 1), {
|
|
21
21
|
x: c,
|
|
22
22
|
y: l
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
var P =
|
|
25
|
+
var P = /*#__PURE__*/ e(0);
|
|
26
26
|
function F(e) {
|
|
27
27
|
let t = S(e);
|
|
28
28
|
return !A() || !t.visualViewport ? P : {
|
|
@@ -318,5 +318,4 @@ var oe = d, se = f, ce = c, le = p, ue = l, de = o, fe = u, pe = (e, t, n) => {
|
|
|
318
318
|
platform: a
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
|
-
//#endregion
|
|
322
321
|
export { de as arrow, ae as autoUpdate, pe as computePosition, ce as flip, ue as hide, fe as limitShift, oe as offset, Q as platform, se as shift, le as size };
|
package/dist/index46.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs");require("./index44.cjs");const t=require("./index45.cjs");let n=require("react")
|
|
1
|
+
const e=require("./index2.cjs");require("./index44.cjs");const t=require("./index45.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);let i=require("react-dom");i=e.__toESM(i,1);var a=typeof document<`u`?r.useLayoutEffect:function(){};function o(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!o(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!o(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function s(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=s(e);return Math.round(t*n)/n}function l(e){let t=r.useRef(e);return a(()=>{t.current=e}),t}function u(e){e===void 0&&(e={});let{placement:n=`bottom`,strategy:u=`absolute`,middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:g,open:_}=e,[v,y]=r.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,x]=r.useState(d);o(b,d)||x(d);let[S,C]=r.useState(null),[w,T]=r.useState(null),E=r.useCallback(e=>{e!==A.current&&(A.current=e,C(e))},[]),D=r.useCallback(e=>{e!==j.current&&(j.current=e,T(e))},[]),O=p||S,k=m||w,A=r.useRef(null),j=r.useRef(null),M=r.useRef(v),N=g!=null,P=l(g),F=l(f),I=l(_),L=r.useCallback(()=>{if(!A.current||!j.current)return;let e={placement:n,strategy:u,middleware:b};F.current&&(e.platform=F.current),t.computePosition(A.current,j.current,e).then(e=>{let t={...e,isPositioned:I.current!==!1};R.current&&!o(M.current,t)&&(M.current=t,i.flushSync(()=>{y(t)}))})},[b,n,u,F,I]);a(()=>{_===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[_]);let R=r.useRef(!1);a(()=>(R.current=!0,()=>{R.current=!1}),[]),a(()=>{if(O&&(A.current=O),k&&(j.current=k),O&&k){if(P.current)return P.current(O,k,L);L()}},[O,k,L,P,N]);let z=r.useMemo(()=>({reference:A,floating:j,setReference:E,setFloating:D}),[E,D]),B=r.useMemo(()=>({reference:O,floating:k}),[O,k]),V=r.useMemo(()=>{let e={position:u,left:0,top:0};if(!B.floating)return e;let t=c(B.floating,v.x),n=c(B.floating,v.y);return h?{...e,transform:`translate(`+t+`px, `+n+`px)`,...s(B.floating)>=1.5&&{willChange:`transform`}}:{position:u,left:t,top:n}},[u,h,B.floating,v.x,v.y]);return r.useMemo(()=>({...v,update:L,refs:z,elements:B,floatingStyles:V}),[v,L,z,B,V])}var d=e=>{function n(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(r){let{element:i,padding:a}=typeof e==`function`?e(r):e;return i&&n(i)?i.current==null?{}:t.arrow({element:i.current,padding:a}).fn(r):i?t.arrow({element:i,padding:a}).fn(r):{}}}},f=(e,n)=>{let r=t.offset(e);return{name:r.name,fn:r.fn,options:[e,n]}},p=(e,n)=>{let r=t.shift(e);return{name:r.name,fn:r.fn,options:[e,n]}},m=(e,n)=>({fn:t.limitShift(e).fn,options:[e,n]}),h=(e,n)=>{let r=t.flip(e);return{name:r.name,fn:r.fn,options:[e,n]}},g=(e,n)=>{let r=t.size(e);return{name:r.name,fn:r.fn,options:[e,n]}},_=(e,n)=>{let r=t.hide(e);return{name:r.name,fn:r.fn,options:[e,n]}},v=(e,t)=>{let n=d(e);return{name:n.name,fn:n.fn,options:[e,t]}};exports.arrow=v,exports.autoUpdate=t.autoUpdate,exports.flip=h,exports.hide=_,exports.limitShift=m,exports.offset=f,exports.shift=p,exports.size=g,exports.useFloating=u;
|
package/dist/index46.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./index44.js";
|
|
2
|
-
import { arrow as e,
|
|
3
|
-
import * as
|
|
4
|
-
import { useLayoutEffect as
|
|
5
|
-
import * as
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
function
|
|
2
|
+
import { arrow as e, autoUpdate as t, computePosition as n, flip as r, hide as i, limitShift as a, offset as o, shift as s, size as c } from "./index45.js";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { useLayoutEffect as u } from "react";
|
|
5
|
+
import * as d from "react-dom";
|
|
6
|
+
// ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
7
|
+
var f = typeof document < "u" ? u : function() {};
|
|
8
|
+
function p(e, t) {
|
|
9
9
|
if (e === t) return !0;
|
|
10
10
|
if (typeof e != typeof t) return !1;
|
|
11
11
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -13,80 +13,80 @@ function f(e, t) {
|
|
|
13
13
|
if (e && t && typeof e == "object") {
|
|
14
14
|
if (Array.isArray(e)) {
|
|
15
15
|
if (n = e.length, n !== t.length) return !1;
|
|
16
|
-
for (r = n; r-- !== 0;) if (!
|
|
16
|
+
for (r = n; r-- !== 0;) if (!p(e[r], t[r])) return !1;
|
|
17
17
|
return !0;
|
|
18
18
|
}
|
|
19
19
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
20
20
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
21
21
|
for (r = n; r-- !== 0;) {
|
|
22
22
|
let n = i[r];
|
|
23
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
23
|
+
if (!(n === "_owner" && e.$$typeof) && !p(e[n], t[n])) return !1;
|
|
24
24
|
}
|
|
25
25
|
return !0;
|
|
26
26
|
}
|
|
27
27
|
return e !== e && t !== t;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function m(e) {
|
|
30
30
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let n =
|
|
32
|
+
function h(e, t) {
|
|
33
|
+
let n = m(e);
|
|
34
34
|
return Math.round(t * n) / n;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let t =
|
|
38
|
-
return
|
|
36
|
+
function g(e) {
|
|
37
|
+
let t = l.useRef(e);
|
|
38
|
+
return f(() => {
|
|
39
39
|
t.current = e;
|
|
40
40
|
}), t;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function _(e) {
|
|
43
43
|
e === void 0 && (e = {});
|
|
44
|
-
let { placement:
|
|
44
|
+
let { placement: t = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: u, open: _ } = e, [v, y] = l.useState({
|
|
45
45
|
x: 0,
|
|
46
46
|
y: 0,
|
|
47
47
|
strategy: r,
|
|
48
|
-
placement:
|
|
48
|
+
placement: t,
|
|
49
49
|
middlewareData: {},
|
|
50
50
|
isPositioned: !1
|
|
51
|
-
}), [b, x] =
|
|
52
|
-
|
|
53
|
-
let [S, C] =
|
|
51
|
+
}), [b, x] = l.useState(i);
|
|
52
|
+
p(b, i) || x(i);
|
|
53
|
+
let [S, C] = l.useState(null), [w, T] = l.useState(null), E = l.useCallback((e) => {
|
|
54
54
|
e !== A.current && (A.current = e, C(e));
|
|
55
|
-
}, []), D =
|
|
55
|
+
}, []), D = l.useCallback((e) => {
|
|
56
56
|
e !== j.current && (j.current = e, T(e));
|
|
57
|
-
}, []), O = o || S, k = s || w, A =
|
|
57
|
+
}, []), O = o || S, k = s || w, A = l.useRef(null), j = l.useRef(null), M = l.useRef(v), N = u != null, P = g(u), F = g(a), I = g(_), L = l.useCallback(() => {
|
|
58
58
|
if (!A.current || !j.current) return;
|
|
59
59
|
let e = {
|
|
60
|
-
placement:
|
|
60
|
+
placement: t,
|
|
61
61
|
strategy: r,
|
|
62
62
|
middleware: b
|
|
63
63
|
};
|
|
64
|
-
F.current && (e.platform = F.current),
|
|
64
|
+
F.current && (e.platform = F.current), n(A.current, j.current, e).then((e) => {
|
|
65
65
|
let t = {
|
|
66
66
|
...e,
|
|
67
67
|
isPositioned: I.current !== !1
|
|
68
68
|
};
|
|
69
|
-
R.current && !
|
|
69
|
+
R.current && !p(M.current, t) && (M.current = t, d.flushSync(() => {
|
|
70
70
|
y(t);
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
73
|
}, [
|
|
74
74
|
b,
|
|
75
|
-
|
|
75
|
+
t,
|
|
76
76
|
r,
|
|
77
77
|
F,
|
|
78
78
|
I
|
|
79
79
|
]);
|
|
80
|
-
|
|
80
|
+
f(() => {
|
|
81
81
|
_ === !1 && M.current.isPositioned && (M.current.isPositioned = !1, y((e) => ({
|
|
82
82
|
...e,
|
|
83
83
|
isPositioned: !1
|
|
84
84
|
})));
|
|
85
85
|
}, [_]);
|
|
86
|
-
let R =
|
|
87
|
-
|
|
86
|
+
let R = l.useRef(!1);
|
|
87
|
+
f(() => (R.current = !0, () => {
|
|
88
88
|
R.current = !1;
|
|
89
|
-
}), []),
|
|
89
|
+
}), []), f(() => {
|
|
90
90
|
if (O && (A.current = O), k && (j.current = k), O && k) {
|
|
91
91
|
if (P.current) return P.current(O, k, L);
|
|
92
92
|
L();
|
|
@@ -98,26 +98,26 @@ function g(e) {
|
|
|
98
98
|
P,
|
|
99
99
|
N
|
|
100
100
|
]);
|
|
101
|
-
let z =
|
|
101
|
+
let z = l.useMemo(() => ({
|
|
102
102
|
reference: A,
|
|
103
103
|
floating: j,
|
|
104
104
|
setReference: E,
|
|
105
105
|
setFloating: D
|
|
106
|
-
}), [E, D]), B =
|
|
106
|
+
}), [E, D]), B = l.useMemo(() => ({
|
|
107
107
|
reference: O,
|
|
108
108
|
floating: k
|
|
109
|
-
}), [O, k]), V =
|
|
109
|
+
}), [O, k]), V = l.useMemo(() => {
|
|
110
110
|
let e = {
|
|
111
111
|
position: r,
|
|
112
112
|
left: 0,
|
|
113
113
|
top: 0
|
|
114
114
|
};
|
|
115
115
|
if (!B.floating) return e;
|
|
116
|
-
let t =
|
|
117
|
-
return
|
|
116
|
+
let t = h(B.floating, v.x), n = h(B.floating, v.y);
|
|
117
|
+
return c ? {
|
|
118
118
|
...e,
|
|
119
119
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
120
|
-
...
|
|
120
|
+
...m(B.floating) >= 1.5 && { willChange: "transform" }
|
|
121
121
|
} : {
|
|
122
122
|
position: r,
|
|
123
123
|
left: t,
|
|
@@ -125,12 +125,12 @@ function g(e) {
|
|
|
125
125
|
};
|
|
126
126
|
}, [
|
|
127
127
|
r,
|
|
128
|
-
|
|
128
|
+
c,
|
|
129
129
|
B.floating,
|
|
130
130
|
v.x,
|
|
131
131
|
v.y
|
|
132
132
|
]);
|
|
133
|
-
return
|
|
133
|
+
return l.useMemo(() => ({
|
|
134
134
|
...v,
|
|
135
135
|
update: L,
|
|
136
136
|
refs: z,
|
|
@@ -144,7 +144,7 @@ function g(e) {
|
|
|
144
144
|
V
|
|
145
145
|
]);
|
|
146
146
|
}
|
|
147
|
-
var
|
|
147
|
+
var v = (t) => {
|
|
148
148
|
function n(e) {
|
|
149
149
|
return {}.hasOwnProperty.call(e, "current");
|
|
150
150
|
}
|
|
@@ -162,51 +162,50 @@ var _ = (t) => {
|
|
|
162
162
|
}).fn(r) : {};
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
|
-
},
|
|
166
|
-
let n =
|
|
165
|
+
}, y = (e, t) => {
|
|
166
|
+
let n = o(e);
|
|
167
167
|
return {
|
|
168
168
|
name: n.name,
|
|
169
169
|
fn: n.fn,
|
|
170
170
|
options: [e, t]
|
|
171
171
|
};
|
|
172
|
-
},
|
|
173
|
-
let n =
|
|
172
|
+
}, b = (e, t) => {
|
|
173
|
+
let n = s(e);
|
|
174
174
|
return {
|
|
175
175
|
name: n.name,
|
|
176
176
|
fn: n.fn,
|
|
177
177
|
options: [e, t]
|
|
178
178
|
};
|
|
179
|
-
},
|
|
180
|
-
fn:
|
|
179
|
+
}, x = (e, t) => ({
|
|
180
|
+
fn: a(e).fn,
|
|
181
181
|
options: [e, t]
|
|
182
|
-
}),
|
|
183
|
-
let
|
|
182
|
+
}), S = (e, t) => {
|
|
183
|
+
let n = r(e);
|
|
184
184
|
return {
|
|
185
|
-
name:
|
|
186
|
-
fn:
|
|
185
|
+
name: n.name,
|
|
186
|
+
fn: n.fn,
|
|
187
187
|
options: [e, t]
|
|
188
188
|
};
|
|
189
|
-
},
|
|
190
|
-
let n =
|
|
189
|
+
}, C = (e, t) => {
|
|
190
|
+
let n = c(e);
|
|
191
191
|
return {
|
|
192
192
|
name: n.name,
|
|
193
193
|
fn: n.fn,
|
|
194
194
|
options: [e, t]
|
|
195
195
|
};
|
|
196
|
-
},
|
|
197
|
-
let n =
|
|
196
|
+
}, w = (e, t) => {
|
|
197
|
+
let n = i(e);
|
|
198
198
|
return {
|
|
199
199
|
name: n.name,
|
|
200
200
|
fn: n.fn,
|
|
201
201
|
options: [e, t]
|
|
202
202
|
};
|
|
203
|
-
},
|
|
204
|
-
let n =
|
|
203
|
+
}, T = (e, t) => {
|
|
204
|
+
let n = v(e);
|
|
205
205
|
return {
|
|
206
206
|
name: n.name,
|
|
207
207
|
fn: n.fn,
|
|
208
208
|
options: [e, t]
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
export { w as arrow, x as flip, C as hide, b as limitShift, v as offset, y as shift, S as size, g as useFloating };
|
|
211
|
+
export { T as arrow, t as autoUpdate, S as flip, w as hide, x as limitShift, y as offset, b as shift, C as size, _ as useFloating };
|
package/dist/index47.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});function o(e){let[n,i]=r.useState(void 0);return t.useLayoutEffect(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}i(void 0)},[e]),n}a(o,`useSize`),exports.useSize=o;
|
package/dist/index47.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-size@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
4
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
5
|
value: t,
|
|
6
6
|
configurable: !0
|
|
@@ -26,9 +26,9 @@ function i(n) {
|
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
return e.observe(n, { box: "border-box" }), () => e.unobserve(n);
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
|
+
i(void 0);
|
|
30
31
|
}, [n]), r;
|
|
31
32
|
}
|
|
32
33
|
r(i, "useSize");
|
|
33
|
-
//#endregion
|
|
34
34
|
export { i as useSize };
|
package/dist/index48.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index14.cjs"),i=require("./index17.cjs"),a=require("./index18.cjs"),o=require("./index45.cjs"),s=require("./index46.cjs"),c=require("./index47.cjs");let l=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index14.cjs"),i=require("./index17.cjs"),a=require("./index18.cjs"),o=require("./index45.cjs"),s=require("./index46.cjs"),c=require("./index47.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=`Popper`,[h,g]=t.createContextScope(m),[_,v]=h(m),y=p(e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null),[a,o]=u.useState(void 0);return(0,d.jsx)(_,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),b=`PopperAnchor`,x=u.forwardRef(p(function(e,t){let{__scopePopper:i,virtualRef:a,...o}=e,s=v(b,i),c=u.useRef(null),l=s.onAnchorChange,f=u.useCallback(e=>{c.current=e,e&&l(e)},[l]),p=n.useComposedRefs(t,f),m=u.useRef(null);u.useEffect(()=>{if(!a)return;let e=m.current;m.current=a.current,e!==m.current&&l(m.current)});let h=s.placementState&&D(s.placementState),g=h?.[0],_=h?.[1];return a?null:(0,d.jsx)(r.Primitive.div,{"data-radix-popper-side":g,"data-radix-popper-align":_,...o,ref:p})},`PopperAnchor`)),S=`PopperContent`,[C,ee]=h(S),w=u.forwardRef(p(function(e,t){let{__scopePopper:l,side:f=`bottom`,sideOffset:m=0,align:h=`center`,alignOffset:g=0,arrowPadding:_=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:ee=`partial`,hideWhenDetached:w=!1,updatePositionStrategy:O=`optimized`,onPlaced:k,...A}=e,j=v(S,l),[M,N]=u.useState(null),P=n.useComposedRefs(t,N),[F,I]=u.useState(null),L=c.useSize(F),R=L?.width??0,z=L?.height??0,B=f+(h===`center`?``:`-`+h),V=typeof x==`number`?x:{top:0,right:0,bottom:0,left:0,...x},H=Array.isArray(b)?b:[b],U=H.length>0,W={padding:V,boundary:H.filter(T),altBoundary:U},{refs:G,floatingStyles:K,placement:q,isPositioned:J,middlewareData:Y}=s.useFloating({strategy:`fixed`,placement:B,whileElementsMounted:p((...e)=>o.autoUpdate(...e,{animationFrame:O===`always`}),`whileElementsMounted`),elements:{reference:j.anchor},middleware:[s.offset({mainAxis:m+z,alignmentAxis:g}),y&&s.shift({mainAxis:!0,crossAxis:!1,limiter:ee===`partial`?s.limitShift():void 0,...W}),y&&s.flip({...W}),s.size({...W,apply:p(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),F&&s.arrow({element:F,padding:_}),E({arrowWidth:R,arrowHeight:z}),w&&s.hide({strategy:`referenceHidden`,...W,boundary:U?W.boundary:void 0})]}),X=j.setPlacementState;a.useLayoutEffect(()=>(X(q),()=>{X(void 0)}),[q,X]);let[Z,Q]=D(q),$=i.useCallbackRef(k);a.useLayoutEffect(()=>{J&&$?.()},[J,$]);let te=Y.arrow?.x,ne=Y.arrow?.y,re=Y.arrow?.centerOffset!==0,[ie,ae]=u.useState();return a.useLayoutEffect(()=>{M&&ae(window.getComputedStyle(M).zIndex)},[M]),(0,d.jsx)(`div`,{ref:G.setFloating,"data-radix-popper-content-wrapper":``,style:{...K,transform:J?K.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ie,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(` `),...Y.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,d.jsx)(C,{scope:l,placedSide:Z,placedAlign:Q,onArrowChange:I,arrowX:te,arrowY:ne,shouldHideArrow:re,children:(0,d.jsx)(r.Primitive.div,{"data-side":Z,"data-align":Q,...A,ref:P,style:{...A.style,animation:J?A.style?.animation:`none`}})})})},`PopperContent`));function T(e){return e!==null}p(T,`isNotNull`);var E=p(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=D(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function D(e){let[t,n=`center`]=e.split(`-`);return[t,n]}p(D,`getSideAndAlignFromPlacement`);var O=y,k=x,A=w;exports.Anchor=k,exports.Content=A,exports.Popper=y,exports.PopperAnchor=x,exports.PopperContent=w,exports.Root=O,exports.createPopperScope=g;
|