@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/index13.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index11.cjs"),n=require("./index12.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react/compiler-runtime");var s={overlay:{kVAEAm:`xixxii4`,kpwlN0:`x10a8y8t`,kY2c9j:`xa9119d`,kWkggS:`xcpsgoo`,kKVMdj:`xqcmdr3`,k44tkh:`x5hsz1j`,kyAemX:`xa0mk88`,$$css:!0},content:{kVAEAm:`xixxii4`,k87sOh:`xwa60dl`,kbCHJM:`x1nrll8i`,k3aq6I:`x11lhmoz`,kY2c9j:`xa9119d`,k1xSpc:`xrvj5dj`,kzqmXN:`xh8yej3`,ks0D6T:`x6ymgno`,kOIVth:`x8fetqu`,kaIpWk:`x1mr5ieh`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kWkggS:`x1mlyrtw`,kmVPX3:`xis3749`,kGVxlE:`xdwsiyt`,kI3sdo:`x1a2a7pz`,kKVMdj:`xpcv5nn`,k44tkh:`x5hsz1j`,kyAemX:`xa0mk88`,$$css:!0},header:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x13z6uf9`,k9WMMc:`xdpxx8g`,$$css:!0},footer:{k1xSpc:`x78zum5`,kXwgrk:`x1q0g3np`,kjj79g:`x13a6bvl`,kOIVth:`x13z6uf9`,$$css:!0},title:{kGuDYH:`x1c3i2sq`,kLWn49:`x132q4wb`,k63SB2:`x1s688f`,kMwMTN:`x84br7x`,$$css:!0},description:{kGuDYH:`xkpwil5`,kMwMTN:`xw3nh4a`,$$css:!0}};function c(e){let n=(0,o.c)(2),r;return n[0]===e?r=n[1]:(r=(0,a.jsx)(t.
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index11.cjs"),n=require("./index12.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react/compiler-runtime");var s={overlay:{kVAEAm:`xixxii4`,kpwlN0:`x10a8y8t`,kY2c9j:`xa9119d`,kWkggS:`xcpsgoo`,kKVMdj:`xqcmdr3`,k44tkh:`x5hsz1j`,kyAemX:`xa0mk88`,$$css:!0},content:{kVAEAm:`xixxii4`,k87sOh:`xwa60dl`,kbCHJM:`x1nrll8i`,k3aq6I:`x11lhmoz`,kY2c9j:`xa9119d`,k1xSpc:`xrvj5dj`,kzqmXN:`xh8yej3`,ks0D6T:`x6ymgno`,kOIVth:`x8fetqu`,kaIpWk:`x1mr5ieh`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kWkggS:`x1mlyrtw`,kmVPX3:`xis3749`,kGVxlE:`xdwsiyt`,kI3sdo:`x1a2a7pz`,kKVMdj:`xpcv5nn`,k44tkh:`x5hsz1j`,kyAemX:`xa0mk88`,$$css:!0},header:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x13z6uf9`,k9WMMc:`xdpxx8g`,$$css:!0},footer:{k1xSpc:`x78zum5`,kXwgrk:`x1q0g3np`,kjj79g:`x13a6bvl`,kOIVth:`x13z6uf9`,$$css:!0},title:{kGuDYH:`x1c3i2sq`,kLWn49:`x132q4wb`,k63SB2:`x1s688f`,kMwMTN:`x84br7x`,$$css:!0},description:{kGuDYH:`xkpwil5`,kMwMTN:`xw3nh4a`,$$css:!0}};function c(e){let n=(0,o.c)(2),r;return n[0]===e?r=n[1]:(r=(0,a.jsx)(t.Root,{"data-slot":`alert-dialog`,...e}),n[0]=e,n[1]=r),r}function l(e){let n=(0,o.c)(2),r;return n[0]===e?r=n[1]:(r=(0,a.jsx)(t.Trigger,{"data-slot":`alert-dialog-trigger`,...e}),n[0]=e,n[1]=r),r}function u(e){let n=(0,o.c)(2),r;return n[0]===e?r=n[1]:(r=(0,a.jsx)(t.Portal,{"data-slot":`alert-dialog-portal`,...e}),n[0]=e,n[1]=r),r}function d(e){let n=(0,o.c)(13),r,c,l;n[0]===e?(r=n[1],c=n[2],l=n[3]):({className:r,sx:l,...c}=e,n[0]=e,n[1]=r,n[2]=c,n[3]=l);let u;n[4]===l?u=n[5]:(u=i.props(s.overlay,l),n[4]=l,n[5]=u);let d=u,f;n[6]!==r||n[7]!==d.className?(f=r?`${d.className||``} ${r}`.trim():d.className,n[6]=r,n[7]=d.className,n[8]=f):f=n[8];let p;return n[9]!==c||n[10]!==d||n[11]!==f?(p=(0,a.jsx)(t.Overlay,{"data-slot":`alert-dialog-overlay`,...d,className:f,...c}),n[9]=c,n[10]=d,n[11]=f,n[12]=p):p=n[12],p}function f(e){let n=(0,o.c)(14),r,c,l;n[0]===e?(r=n[1],c=n[2],l=n[3]):({className:r,sx:l,...c}=e,n[0]=e,n[1]=r,n[2]=c,n[3]=l);let f;n[4]===l?f=n[5]:(f=i.props(s.content,l),n[4]=l,n[5]=f);let p=f,m;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,a.jsx)(d,{}),n[6]=m):m=n[6];let h;n[7]!==r||n[8]!==p.className?(h=r?`${p.className||``} ${r}`.trim():p.className,n[7]=r,n[8]=p.className,n[9]=h):h=n[9];let g;return n[10]!==c||n[11]!==p||n[12]!==h?(g=(0,a.jsxs)(u,{children:[m,(0,a.jsx)(t.Content,{"data-slot":`alert-dialog-content`,...p,className:h,...c})]}),n[10]=c,n[11]=p,n[12]=h,n[13]=g):g=n[13],g}function p(e){let t=(0,o.c)(13),n,r,c;t[0]===e?(n=t[1],r=t[2],c=t[3]):({className:n,sx:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=c);let l;t[4]===c?l=t[5]:(l=i.props(s.header,c),t[4]=c,t[5]=l);let u=l,d;t[6]!==n||t[7]!==u.className?(d=n?`${u.className||``} ${n}`.trim():u.className,t[6]=n,t[7]=u.className,t[8]=d):d=t[8];let f;return t[9]!==r||t[10]!==u||t[11]!==d?(f=(0,a.jsx)(`div`,{"data-slot":`alert-dialog-header`,...u,className:d,...r}),t[9]=r,t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function m(e){let t=(0,o.c)(13),n,r,c;t[0]===e?(n=t[1],r=t[2],c=t[3]):({className:n,sx:c,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=c);let l;t[4]===c?l=t[5]:(l=i.props(s.footer,c),t[4]=c,t[5]=l);let u=l,d;t[6]!==n||t[7]!==u.className?(d=n?`${u.className||``} ${n}`.trim():u.className,t[6]=n,t[7]=u.className,t[8]=d):d=t[8];let f;return t[9]!==r||t[10]!==u||t[11]!==d?(f=(0,a.jsx)(`div`,{"data-slot":`alert-dialog-footer`,...u,className:d,...r}),t[9]=r,t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function h(e){let n=(0,o.c)(13),r,c,l;n[0]===e?(r=n[1],c=n[2],l=n[3]):({className:r,sx:l,...c}=e,n[0]=e,n[1]=r,n[2]=c,n[3]=l);let u;n[4]===l?u=n[5]:(u=i.props(s.title,l),n[4]=l,n[5]=u);let d=u,f;n[6]!==r||n[7]!==d.className?(f=r?`${d.className||``} ${r}`.trim():d.className,n[6]=r,n[7]=d.className,n[8]=f):f=n[8];let p;return n[9]!==c||n[10]!==d||n[11]!==f?(p=(0,a.jsx)(t.Title,{"data-slot":`alert-dialog-title`,...d,className:f,...c}),n[9]=c,n[10]=d,n[11]=f,n[12]=p):p=n[12],p}function g(e){let n=(0,o.c)(13),r,c,l;n[0]===e?(r=n[1],c=n[2],l=n[3]):({className:r,sx:l,...c}=e,n[0]=e,n[1]=r,n[2]=c,n[3]=l);let u;n[4]===l?u=n[5]:(u=i.props(s.description,l),n[4]=l,n[5]=u);let d=u,f;n[6]!==r||n[7]!==d.className?(f=r?`${d.className||``} ${r}`.trim():d.className,n[6]=r,n[7]=d.className,n[8]=f):f=n[8];let p;return n[9]!==c||n[10]!==d||n[11]!==f?(p=(0,a.jsx)(t.Description,{"data-slot":`alert-dialog-description`,...d,className:f,...c}),n[9]=c,n[10]=d,n[11]=f,n[12]=p):p=n[12],p}function _(e){let r=(0,o.c)(9),i,s;r[0]===e?(i=r[1],s=r[2]):({className:i,...s}=e,r[0]=e,r[1]=i,r[2]=s);let c;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=n.buttonVariants({variant:`default`}),r[3]=c):c=r[3];let l=c,u;r[4]===i?u=r[5]:(u=i?`${l} ${i}`.trim():l,r[4]=i,r[5]=u);let d;return r[6]!==s||r[7]!==u?(d=(0,a.jsx)(t.Action,{className:u,...s}),r[6]=s,r[7]=u,r[8]=d):d=r[8],d}function v(e){let r=(0,o.c)(9),i,s;r[0]===e?(i=r[1],s=r[2]):({className:i,...s}=e,r[0]=e,r[1]=i,r[2]=s);let c;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=n.buttonVariants({variant:`outline`}),r[3]=c):c=r[3];let l=c,u;r[4]===i?u=r[5]:(u=i?`${l} ${i}`.trim():l,r[4]=i,r[5]=u);let d;return r[6]!==s||r[7]!==u?(d=(0,a.jsx)(t.Cancel,{className:u,...s}),r[6]=s,r[7]=u,r[8]=d):d=r[8],d}exports.AlertDialog=c,exports.AlertDialogAction=_,exports.AlertDialogCancel=v,exports.AlertDialogContent=f,exports.AlertDialogDescription=g,exports.AlertDialogFooter=m,exports.AlertDialogHeader=p,exports.AlertDialogOverlay=d,exports.AlertDialogPortal=u,exports.AlertDialogTitle=h,exports.AlertDialogTrigger=l;
|
package/dist/index13.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Action as e, Cancel as t,
|
|
1
|
+
import { Action as e, Cancel as t, Content as n, Description as r, Overlay as i, Portal as a, Root as o, Title as s, Trigger as c } from "./index11.js";
|
|
2
2
|
import { buttonVariants as l } from "./index12.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import * as u from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { c as p } from "react/compiler-runtime";
|
|
7
|
-
|
|
7
|
+
// src/ui/alert-dialog.tsx
|
|
8
8
|
var m = {
|
|
9
9
|
overlay: {
|
|
10
10
|
kVAEAm: "xixxii4",
|
|
@@ -205,5 +205,4 @@ function T(e) {
|
|
|
205
205
|
...i
|
|
206
206
|
}), n[6] = i, n[7] = s, n[8] = c) : c = n[8], c;
|
|
207
207
|
}
|
|
208
|
-
//#endregion
|
|
209
208
|
export { h as AlertDialog, w as AlertDialogAction, T as AlertDialogCancel, y as AlertDialogContent, C as AlertDialogDescription, x as AlertDialogFooter, b as AlertDialogHeader, v as AlertDialogOverlay, _ as AlertDialogPortal, S as AlertDialogTitle, g as AlertDialogTrigger };
|
package/dist/index130.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index89.cjs");let n=require("react"),r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("lodash-es");var s={searchInput:{ks0D6T:`xowlazn`,$$css:!0}},c=e=>{let r=(0,a.c)(20),{table:c,placeholder:l,debounceMs:u,right:d}=e,f;r[0]===c?f=r[1]:(f=c.getState(),r[0]=c,r[1]=f);let p=f.globalFilter,m=typeof p==`string`?p:``,h;r[2]===c?h=r[3]:(h=e=>{c.setGlobalFilter(e)},r[2]=c,r[3]=h);let g;r[4]!==u||r[5]!==h?(g=(0,o.debounce)(h,u),r[4]=u,r[5]=h,r[6]=g):g=r[6];let _=(0,n.useRef)(g),v,y;r[7]!==u||r[8]!==c?(v=()=>(_.current=(0,o.debounce)(e=>{c.setGlobalFilter(e)},u),()=>{_.current.cancel()}),y=[c,u],r[7]=u,r[8]=c,r[9]=v,r[10]=y):(v=r[9],y=r[10]),(0,n.useEffect)(v,y);let b,x;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>()=>{_.current.cancel()},x=[],r[11]=b,r[12]=x):(b=r[11],x=r[12]),(0,n.useEffect)(b,x);let S;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{let t=e.target.value;
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index89.cjs");let n=require("react"),r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("lodash-es");var s={searchInput:{ks0D6T:`xowlazn`,$$css:!0}},c=e=>{let r=(0,a.c)(20),{table:c,placeholder:l,debounceMs:u,right:d}=e,f;r[0]===c?f=r[1]:(f=c.getState(),r[0]=c,r[1]=f);let p=f.globalFilter,m=typeof p==`string`?p:``,h;r[2]===c?h=r[3]:(h=e=>{c.setGlobalFilter(e)},r[2]=c,r[3]=h);let g;r[4]!==u||r[5]!==h?(g=(0,o.debounce)(h,u),r[4]=u,r[5]=h,r[6]=g):g=r[6];let _=(0,n.useRef)(g),v,y;r[7]!==u||r[8]!==c?(v=()=>(_.current=(0,o.debounce)(e=>{c.setGlobalFilter(e)},u),()=>{_.current.cancel()}),y=[c,u],r[7]=u,r[8]=c,r[9]=v,r[10]=y):(v=r[9],y=r[10]),(0,n.useEffect)(v,y);let b,x;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>()=>{_.current.cancel()},x=[],r[11]=b,r[12]=x):(b=r[11],x=r[12]),(0,n.useEffect)(b,x);let S;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{let t=e.target.value;(0,o.isEmpty)(t)?_.current(``):_.current(t)},r[13]=S):S=r[13];let C;r[14]!==m||r[15]!==l?(C=(0,i.jsx)(t.Input,{placeholder:l,defaultValue:m,onChange:S,sx:s.searchInput}),r[14]=m,r[15]=l,r[16]=C):C=r[16];let w;return r[17]!==d||r[18]!==C?(w=(0,i.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x13z6uf9 xgepmj6`,children:[C,d]}),r[17]=d,r[18]=C,r[19]=w):w=r[19],w};exports.DataTableToolbar=c;
|
package/dist/index130.js
CHANGED
|
@@ -4,7 +4,7 @@ import "@stylexjs/stylex";
|
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import { c as a } from "react/compiler-runtime";
|
|
6
6
|
import { debounce as o, isEmpty as s } from "lodash-es";
|
|
7
|
-
|
|
7
|
+
// src/DataTable/components/DataTableToolbar.tsx
|
|
8
8
|
var c = { searchInput: {
|
|
9
9
|
ks0D6T: "xowlazn",
|
|
10
10
|
$$css: !0
|
|
@@ -30,11 +30,7 @@ var c = { searchInput: {
|
|
|
30
30
|
let T;
|
|
31
31
|
u[13] === Symbol.for("react.memo_cache_sentinel") ? (T = (e) => {
|
|
32
32
|
let t = e.target.value;
|
|
33
|
-
|
|
34
|
-
b.current("");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
b.current(t);
|
|
33
|
+
s(t) ? b.current("") : b.current(t);
|
|
38
34
|
}, u[13] = T) : T = u[13];
|
|
39
35
|
let E;
|
|
40
36
|
u[14] !== _ || u[15] !== f ? (E = /* @__PURE__ */ r(e, {
|
|
@@ -49,5 +45,4 @@ var c = { searchInput: {
|
|
|
49
45
|
children: [E, m]
|
|
50
46
|
}), u[17] = m, u[18] = E, u[19] = D) : D = u[19], D;
|
|
51
47
|
};
|
|
52
|
-
//#endregion
|
|
53
48
|
export { l as DataTableToolbar };
|
package/dist/index131.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ChevronDown as a } from "lucide-react";
|
|
|
4
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { map as l } from "lodash-es";
|
|
7
|
-
|
|
7
|
+
// src/DataTable/components/DataTableViewOptions.tsx
|
|
8
8
|
var u = (u) => {
|
|
9
9
|
let f = c(18), { table: p, columnVisibility: m } = u, h, g, _, v, y;
|
|
10
10
|
if (f[0] !== m || f[1] !== p) {
|
|
@@ -38,5 +38,4 @@ var u = (u) => {
|
|
|
38
38
|
function d(e) {
|
|
39
39
|
return e.getCanHide();
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { u as DataTableViewOptions };
|
package/dist/index132.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@stylexjs/stylex";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { noop as t } from "lodash-es";
|
|
4
|
-
|
|
4
|
+
// src/DataTable/render/defaults.tsx
|
|
5
5
|
var n = {
|
|
6
6
|
placeholder: "Search...",
|
|
7
7
|
debounceMs: 300
|
|
@@ -23,5 +23,4 @@ var n = {
|
|
|
23
23
|
thresholdPx: 200,
|
|
24
24
|
onEndReached: t
|
|
25
25
|
}, s = () => ({ getRowActions: () => [] });
|
|
26
|
-
//#endregion
|
|
27
26
|
export { a as DEFAULT_API, i as DEFAULT_EMPTY, o as DEFAULT_INFINITE_SCROLL, r as DEFAULT_PAGINATION, n as DEFAULT_SEARCH, s as createDefaultActions };
|
package/dist/index133.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index5.cjs"),t=require("./index128.cjs"),n=require("./index129.cjs"),r=require("./index130.cjs"),ee=require("./index131.cjs"),i=require("./index132.cjs");let a=require("react"),o=require("react/jsx-runtime"),s=require("lodash-es"),c=require("ahooks"),l=require("@tanstack/react-table");var u={sorting:[],columnFilters:[],globalFilter:``,columnVisibility:{},rowSelection:{},pagination:{pageIndex:0,pageSize:10},expanded:{}},te=()=>({enabled:!1,renderSubComponent:()=>null,getSubRows:()=>[]}),d=()=>null,ne=(e,t)=>String(t),f=({data:f,columns:p,initialState:m,empty:h,search:g,pagination:_,actions:v,api:y,infiniteScroll:b,expand:x,className:S,containerClassName:C,getRowId:w,renderToolbarRight:T})=>{let E=m===void 0?u:m,D=h===void 0?i.DEFAULT_EMPTY:h,O=g===void 0?i.DEFAULT_SEARCH:g,k=_===void 0?i.DEFAULT_PAGINATION:_,A=v===void 0?i.createDefaultActions():v,j=y===void 0?i.DEFAULT_API:y,M=b===void 0?i.DEFAULT_INFINITE_SCROLL:b,N=x===void 0?te():x,P=w===void 0?ne:w,re=T===void 0?d:T,[F,ie]=(0,a.useState)(E.sorting),[I,L]=(0,a.useState)(E.columnFilters),[R,z]=(0,a.useState)(E.globalFilter),[B,V]=(0,a.useState)(E.columnVisibility),[H,U]=(0,a.useState)(E.rowSelection),[W,G]=(0,a.useState)(E.pagination),[K,q]=(0,a.useState)(E.expanded),J=j.mode===`server`,Y=J&&W.pageSize>0?Math.ceil(j.totalRows/W.pageSize):void 0,X=(0,l.useReactTable)({data:f,columns:p,state:{sorting:F,columnFilters:I,globalFilter:R,columnVisibility:B,rowSelection:H,pagination:W,expanded:K},manualSorting:J,manualFiltering:J,manualPagination:J,pageCount:Y,meta:{getRowActions:A.getRowActions},enableRowSelection:!0,getRowId:(e,t,n)=>P(e,t,n===void 0?null:n),onSortingChange:e=>ie(t=>(0,l.functionalUpdate)(e,t)),onColumnFiltersChange:e=>L(t=>(0,l.functionalUpdate)(e,t)),onGlobalFilterChange:e=>z(t=>(0,l.functionalUpdate)(e,t)),onColumnVisibilityChange:e=>V(t=>(0,l.functionalUpdate)(e,t)),onRowSelectionChange:e=>U(t=>(0,l.functionalUpdate)(e,t)),onPaginationChange:e=>G(t=>(0,l.functionalUpdate)(e,t)),onExpandedChange:e=>q(t=>(0,l.functionalUpdate)(e,t)),getCoreRowModel:(0,l.getCoreRowModel)(),getSortedRowModel:J?void 0:(0,l.getSortedRowModel)(),getFilteredRowModel:J?void 0:(0,l.getFilteredRowModel)(),getPaginationRowModel:J?void 0:(0,l.getPaginationRowModel)(),getExpandedRowModel:(0,l.getExpandedRowModel)(),getSubRows:N.enabled?N.getSubRows:void 0,getRowCanExpand:()=>N.enabled}),Z={sorting:F,columnFilters:I,globalFilter:R,pagination:W};(0,c.useUpdateEffect)(()=>{J||G(e=>({...e,pageIndex:0}))},[J,R,I,F]),(0,a.useEffect)(()=>{if(J)return;let e=X.getFilteredRowModel().rows.length,t=W.pageSize,n=t>0?Math.ceil(e/t):0,r=n===0?0:n-1;G(e=>({...e,pageIndex:(0,s.clamp)(e.pageIndex,0,r)}))},[J,W.pageSize,X]);let Q=(0,a.useRef)((0,s.debounce)(e=>{j.onQueryChange(e)},O.debounceMs));(0,a.useEffect)(()=>(Q.current=(0,s.debounce)(e=>{j.onQueryChange(e)},O.debounceMs),()=>{Q.current.cancel()}),[j,O.debounceMs]),(0,c.useUpdateEffect)(()=>{if(j.mode===`server`)return Q.current(Z),()=>{Q.current.cancel()}},[Z,j]);let[$,ae]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(M.enabled===!1||$===null)return;let e=()=>{if(j.isFetching)return;let e=$.scrollTop;$.scrollHeight-(e+$.clientHeight)<=M.thresholdPx&&M.onEndReached(Z)};return $.addEventListener(`scroll`,e,{passive:!0}),()=>{$.removeEventListener(`scroll`,e)}},[j.isFetching,M,Z,$]);let oe=X.getVisibleLeafColumns().length;return(0,o.jsxs)(`div`,{className:e.cn(`w-full`,S===void 0?``:S),children:[(0,o.jsx)(r.DataTableToolbar,{table:X,placeholder:O.placeholder,debounceMs:O.debounceMs,right:(0,o.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[re(X),(0,o.jsx)(ee.DataTableViewOptions,{table:X,columnVisibility:B})]})}),(0,o.jsx)(`div`,{ref:e=>ae(e),className:e.cn(C===void 0?`overflow-auto`:C),children:(0,o.jsx)(n.DataTableTable,{table:X,columnVisibility:B,expandedState:K,expandConfig:N,empty:D,columnsCount:oe})}),(0,o.jsx)(t.DataTablePagination,{table:X,tableState:X.getState(),pageSizeOptions:k.pageSizeOptions,apiConfig:j})]})};exports.default=f;
|
|
1
|
+
const e=require("./index5.cjs"),t=require("./index128.cjs"),n=require("./index129.cjs"),r=require("./index130.cjs"),ee=require("./index131.cjs"),i=require("./index132.cjs");let a=require("react"),o=require("react/jsx-runtime"),s=require("lodash-es"),c=require("ahooks"),l=require("@tanstack/react-table");var u={sorting:[],columnFilters:[],globalFilter:``,columnVisibility:{},rowSelection:{},pagination:{pageIndex:0,pageSize:10},expanded:{}},te=()=>({enabled:!1,renderSubComponent:()=>null,getSubRows:()=>[]}),d=()=>null,ne=(e,t)=>String(t),f=({data:f,columns:p,initialState:m,empty:h,search:g,pagination:_,actions:v,api:y,infiniteScroll:b,expand:x,className:S,containerClassName:C,getRowId:w,renderToolbarRight:T})=>{let E=m===void 0?u:m,D=h===void 0?i.DEFAULT_EMPTY:h,O=g===void 0?i.DEFAULT_SEARCH:g,k=_===void 0?i.DEFAULT_PAGINATION:_,A=v===void 0?i.createDefaultActions():v,j=y===void 0?i.DEFAULT_API:y,M=b===void 0?i.DEFAULT_INFINITE_SCROLL:b,N=x===void 0?te():x,P=w===void 0?ne:w,re=T===void 0?d:T,[F,ie]=(0,a.useState)(E.sorting),[I,L]=(0,a.useState)(E.columnFilters),[R,z]=(0,a.useState)(E.globalFilter),[B,V]=(0,a.useState)(E.columnVisibility),[H,U]=(0,a.useState)(E.rowSelection),[W,G]=(0,a.useState)(E.pagination),[K,q]=(0,a.useState)(E.expanded),J=j.mode===`server`,Y=J&&W.pageSize>0?Math.ceil(j.totalRows/W.pageSize):void 0,X=(0,l.useReactTable)({data:f,columns:p,state:{sorting:F,columnFilters:I,globalFilter:R,columnVisibility:B,rowSelection:H,pagination:W,expanded:K},manualSorting:J,manualFiltering:J,manualPagination:J,pageCount:Y,meta:{getRowActions:A.getRowActions},enableRowSelection:!0,getRowId:(e,t,n)=>P(e,t,n===void 0?null:n),onSortingChange:e=>ie(t=>(0,l.functionalUpdate)(e,t)),onColumnFiltersChange:e=>L(t=>(0,l.functionalUpdate)(e,t)),onGlobalFilterChange:e=>z(t=>(0,l.functionalUpdate)(e,t)),onColumnVisibilityChange:e=>V(t=>(0,l.functionalUpdate)(e,t)),onRowSelectionChange:e=>U(t=>(0,l.functionalUpdate)(e,t)),onPaginationChange:e=>G(t=>(0,l.functionalUpdate)(e,t)),onExpandedChange:e=>q(t=>(0,l.functionalUpdate)(e,t)),getCoreRowModel:(0,l.getCoreRowModel)(),getSortedRowModel:J?void 0:(0,l.getSortedRowModel)(),getFilteredRowModel:J?void 0:(0,l.getFilteredRowModel)(),getPaginationRowModel:J?void 0:(0,l.getPaginationRowModel)(),getExpandedRowModel:(0,l.getExpandedRowModel)(),getSubRows:N.enabled?N.getSubRows:void 0,getRowCanExpand:()=>N.enabled}),Z={sorting:F,columnFilters:I,globalFilter:R,pagination:W};(0,c.useUpdateEffect)(()=>{J||G(e=>({...e,pageIndex:0}))},[J,R,I,F]),(0,a.useEffect)(()=>{if(J)return;let e=X.getFilteredRowModel().rows.length,t=W.pageSize,n=t>0?Math.ceil(e/t):0,r=n===0?0:n-1;G(e=>({...e,pageIndex:(0,s.clamp)(e.pageIndex,0,r)}))},[J,W.pageSize,X]);let Q=(0,a.useRef)((0,s.debounce)(e=>{j.onQueryChange(e)},O.debounceMs));(0,a.useEffect)(()=>(Q.current=(0,s.debounce)(e=>{j.onQueryChange(e)},O.debounceMs),()=>{Q.current.cancel()}),[j,O.debounceMs]),(0,c.useUpdateEffect)(()=>{if(j.mode===`server`)return Q.current(Z),()=>{Q.current.cancel()}},[Z,j]);let[$,ae]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(M.enabled===!1||$===null)return;let e=()=>{if(j.isFetching)return;let e=$.scrollTop;$.scrollHeight-(e+$.clientHeight)<=M.thresholdPx&&M.onEndReached(Z)};return $.addEventListener(`scroll`,e,{passive:!0}),()=>{$.removeEventListener(`scroll`,e)}},[j.isFetching,M,Z,$]);let oe=X.getVisibleLeafColumns().length;return(0,o.jsxs)(`div`,{className:e.cn(`w-full`,S===void 0?``:S),children:[(0,o.jsx)(r.DataTableToolbar,{table:X,placeholder:O.placeholder,debounceMs:O.debounceMs,right:(0,o.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[re(X),(0,o.jsx)(ee.DataTableViewOptions,{table:X,columnVisibility:B})]})}),(0,o.jsx)(`div`,{ref:e=>ae(e),className:e.cn(C===void 0?`overflow-auto`:C),children:(0,o.jsx)(n.DataTableTable,{table:X,columnVisibility:B,expandedState:K,expandConfig:N,empty:D,columnsCount:oe})}),(0,o.jsx)(t.DataTablePagination,{table:X,tableState:X.getState(),pageSizeOptions:k.pageSizeOptions,apiConfig:j})]})};exports.DataTable=f,exports.default=f;
|
package/dist/index133.js
CHANGED
|
@@ -9,7 +9,7 @@ import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
|
9
9
|
import { clamp as ce, debounce as c } from "lodash-es";
|
|
10
10
|
import { useUpdateEffect as l } from "ahooks";
|
|
11
11
|
import { functionalUpdate as u, getCoreRowModel as le, getExpandedRowModel as ue, getFilteredRowModel as de, getPaginationRowModel as d, getSortedRowModel as f, useReactTable as p } from "@tanstack/react-table";
|
|
12
|
-
|
|
12
|
+
// src/DataTable/DataTable.tsx
|
|
13
13
|
var m = {
|
|
14
14
|
sorting: [],
|
|
15
15
|
columnFilters: [],
|
|
@@ -153,5 +153,4 @@ var m = {
|
|
|
153
153
|
]
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
|
|
157
|
-
export { v as default };
|
|
156
|
+
export { v as DataTable, v as default };
|
package/dist/index134.js
CHANGED
|
@@ -5,7 +5,7 @@ import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
|
5
5
|
import { c as u } from "react/compiler-runtime";
|
|
6
6
|
import { get as d, isEmpty as f, map as p } from "lodash-es";
|
|
7
7
|
import { useTranslation as m } from "react-i18next";
|
|
8
|
-
|
|
8
|
+
// src/DataTable/components/DataTableRowActions.tsx
|
|
9
9
|
var h = (h) => {
|
|
10
10
|
let g = u(36), { row: _, table: v } = h, { t: y } = m(), b = v.options.meta, x, S, C, w, T, E, D, O;
|
|
11
11
|
if (g[0] !== b || g[1] !== _ || g[2] !== y) {
|
|
@@ -72,5 +72,4 @@ var h = (h) => {
|
|
|
72
72
|
let A;
|
|
73
73
|
return g[32] !== S || g[33] !== D || g[34] !== k ? (A = /* @__PURE__ */ l(S, { children: [D, k] }), g[32] = S, g[33] = D, g[34] = k, g[35] = A) : A = g[35], A;
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { h as DataTableRowActions };
|
package/dist/index135.js
CHANGED
|
@@ -4,7 +4,7 @@ import { DataTableRowActions as n } from "./index134.js";
|
|
|
4
4
|
import { ChevronDown as r, ChevronRight as i } from "lucide-react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import { c as s } from "react/compiler-runtime";
|
|
7
|
-
|
|
7
|
+
// src/DataTable/render/createColumns.tsx
|
|
8
8
|
var c = () => ({
|
|
9
9
|
id: "select",
|
|
10
10
|
header: ({ table: e }) => /* @__PURE__ */ a(t, {
|
|
@@ -71,5 +71,4 @@ var c = () => ({
|
|
|
71
71
|
table: t
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
//#endregion
|
|
75
74
|
export { l as createExpanderColumn, d as createRowActionsColumn, c as createSelectionColumn };
|
package/dist/index136.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Activity as e, AlertCircle as ee, ArrowLeft as te, ArrowRight as ne, Award as re, BarChart3 as ie, BookOpen as ae, Bot as t, Brain as n, Calendar as r, CalendarIcon as i, Camera as a, Cat as o, Check as s, CheckCircle2 as c, CheckIcon as l, ChevronDown as u, ChevronDownIcon as d, ChevronLeft as f, ChevronRight as p, ChevronUp as m, Circle as h, Clock as g, CloudUpload as _, Code as v, Copy as y, Cpu as b, Database as x, Dog as S, DollarSign as C, Edit as w, Eye as T, EyeOff as E, FileArchiveIcon as D, FileAudioIcon as O, FileCodeIcon as k, FileCogIcon as A, FileIcon as j, FileQuestion as M, FileTextIcon as N, FileVideoIcon as P, Fish as F, Flame as I, Folder as L, FolderHeart as R, FolderOpen as z, GitBranch as B, GitCommit as V, GitMerge as H, Globe as U, HardDrive as W, Headphones as G, Heart as K, HelpCircle as q, History as J, Home as Y, Image as X, Info as oe, Languages as se, Lightbulb as ce, Loader2 as le, LoaderCircleIcon as ue, LoaderIcon as de, LoaderPinwheelIcon as fe, Mail as Z, Maximize as pe, MessageCircle as me, MessageSquare as he, Mic as ge, Minimize as _e, Monitor as ve, Moon as ye, MoonIcon as be, MoreHorizontal as xe, MoreVertical as Se, Palette as Ce, PenTool as we, Pencil as Te, Phone as Ee, PhoneOff as De, PieChart as Oe, Play as ke, Plus as Ae, PlusCircle as je, Rabbit as Me, RefreshCcw as Ne, RotateCcw as Pe, Save as Fe, Search as Ie, SearchIcon as Le, Send as Re, Settings as ze, Shield as Be, Smartphone as Ve, Sparkles as He, Square as Ue, Star as We, Sun as Ge, SunMedium as Ke, Tag as qe, Target as Je, Terminal as Ye, Trash as Xe, Trash2 as Ze, TrendingUp as Qe, Trophy as $e, Turtle as et, Type as tt, Undo2 as nt, Upload as rt, UploadCloud as it, User as at, Users as ot, Video as st, Volume2 as ct, Wand2 as lt, WandSparkles as Q, X as ut, XCircle as dt, XIcon as ft, Zap as pt } from "lucide-react";
|
|
2
2
|
import { jsx as $ } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/Icons/Icons.tsx
|
|
4
4
|
var mt = {
|
|
5
5
|
MoonIcon: be,
|
|
6
6
|
SunIcon: Ke,
|
|
@@ -141,5 +141,4 @@ var mt = {
|
|
|
141
141
|
})
|
|
142
142
|
})
|
|
143
143
|
};
|
|
144
|
-
//#endregion
|
|
145
144
|
export { mt as Icons };
|
package/dist/index137.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index12.cjs"),n=require("./index29.cjs"),r=require("./index83.cjs"),i=require("./index85.cjs"),a=require("./index89.cjs"),o=require("./index106.cjs"),s=require("./index121.cjs"),c=require("./index136.cjs");let l=require("react"),u=require("@stylexjs/stylex");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("react/compiler-runtime");var p=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,m=/^(0|\+84)(3|5|7|8|9)[0-9]{8}$/,h=(e,t)=>{let n=e.toLowerCase();if(t===`password`)return n.includes(`confirm`)||n.includes(`new`)?`new-password`:`current-password`;if(t===`email`||n.includes(`email`))return`email`;if(t===`tel`||n.includes(`phone`))return`tel`;if(n.includes(`name`))return`name`;if(n.includes(`username`))return`username`},g={inputWithLeftIcon:{kE3dHu:`xmhxsxp`,$$css:!0},inputWithRightIcon:{kpe85a:`xxcd0se`,$$css:!0},passwordToggle:{kVAEAm:`x10l6tqk`,kCIrl2:`x5qeokm`,k87sOh:`xwa60dl`,k3aq6I:`x1cb1t30`,kMwMTN:`xw3nh4a`,kDPRdz:`x8aud5w`,kY2c9j:`xhtitgo`,$$css:!0}};function _(e){let t=(0,f.c)(20),{children:n,label:a,control:o,name:s,htmlType:c,description:l,controlFirst:u,horizontal:h,rules:g,className:_}=e,v;if(t[0]!==c||t[1]!==g){if(v={...g},c===`email`&&!g?.pattern){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={value:p,message:`Email không hợp lệ`},t[3]=e):e=t[3],v.pattern=e}if(c===`tel`&&!g?.pattern){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={value:m,message:`Số điện thoại không hợp lệ`},t[4]=e):e=t[4],v.pattern=e}if(g?.required!==void 0&&g.required!==!1)if(typeof g.required==`string`)v.required=g.required;else if(typeof g.required==`object`){if(!g.required.message){let e;t[5]===g.required?e=t[6]:(e={...g.required,message:`Trường này là bắt buộc`},t[5]=g.required,t[6]=e),v.required=e}}else v.required=`Trường này là bắt buộc
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index12.cjs"),n=require("./index29.cjs"),r=require("./index83.cjs"),i=require("./index85.cjs"),a=require("./index89.cjs"),o=require("./index106.cjs"),s=require("./index121.cjs"),c=require("./index136.cjs");let l=require("react"),u=require("@stylexjs/stylex");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("react/compiler-runtime");var p=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,m=/^(0|\+84)(3|5|7|8|9)[0-9]{8}$/,h=(e,t)=>{let n=e.toLowerCase();if(t===`password`)return n.includes(`confirm`)||n.includes(`new`)?`new-password`:`current-password`;if(t===`email`||n.includes(`email`))return`email`;if(t===`tel`||n.includes(`phone`))return`tel`;if(n.includes(`name`))return`name`;if(n.includes(`username`))return`username`},g={inputWithLeftIcon:{kE3dHu:`xmhxsxp`,$$css:!0},inputWithRightIcon:{kpe85a:`xxcd0se`,$$css:!0},passwordToggle:{kVAEAm:`x10l6tqk`,kCIrl2:`x5qeokm`,k87sOh:`xwa60dl`,k3aq6I:`x1cb1t30`,kMwMTN:`xw3nh4a`,kDPRdz:`x8aud5w`,kY2c9j:`xhtitgo`,$$css:!0}};function _(e){let t=(0,f.c)(20),{children:n,label:a,control:o,name:s,htmlType:c,description:l,controlFirst:u,horizontal:h,rules:g,className:_}=e,v;if(t[0]!==c||t[1]!==g){if(v={...g},c===`email`&&!g?.pattern){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={value:p,message:`Email không hợp lệ`},t[3]=e):e=t[3],v.pattern=e}if(c===`tel`&&!g?.pattern){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={value:m,message:`Số điện thoại không hợp lệ`},t[4]=e):e=t[4],v.pattern=e}if(g?.required!==void 0&&g.required!==!1){if(typeof g.required==`string`)v.required=g.required;else if(typeof g.required==`object`){if(!g.required.message){let e;t[5]===g.required?e=t[6]:(e={...g.required,message:`Trường này là bắt buộc`},t[5]=g.required,t[6]=e),v.required=e}}else v.required=`Trường này là bắt buộc`}t[0]=c,t[1]=g,t[2]=v}else v=t[2];let y=v,b;t[7]!==n||t[8]!==_||t[9]!==u||t[10]!==l||t[11]!==h||t[12]!==a||t[13]!==g?.required?(b=e=>{let{field:t,fieldState:i}=e,o=(0,d.jsxs)(d.Fragment,{children:[a&&(0,d.jsxs)(r.FieldLabel,{htmlFor:t.name,children:[a,g?.required&&(0,d.jsx)(`span`,{className:`xuuroe4 x4aigyd`,children:`*`})]}),l&&(0,d.jsx)(r.FieldDescription,{children:l})]}),s=n({...t,id:t.name,"aria-invalid":i.invalid}),c=i.invalid&&(0,d.jsx)(r.FieldError,{errors:[i.error]});return(0,d.jsx)(r.Field,{className:_,"data-invalid":i.invalid,orientation:h?`horizontal`:void 0,children:u?(0,d.jsxs)(d.Fragment,{children:[s,(0,d.jsxs)(r.FieldContent,{children:[o,c]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.FieldContent,{children:o}),s,c]})})},t[7]=n,t[8]=_,t[9]=u,t[10]=l,t[11]=h,t[12]=a,t[13]=g?.required,t[14]=b):b=t[14];let x;return t[15]!==o||t[16]!==s||t[17]!==y||t[18]!==b?(x=(0,d.jsx)(i.Controller,{control:o,name:s,rules:y,render:b}),t[15]=o,t[16]=s,t[17]=y,t[18]=b,t[19]=x):x=t[19],x}var v=e=>{let n=(0,f.c)(14),{placeholder:r,inputClassName:i,leftIcon:o,rightIcon:s,disabled:u,autoComplete:p,...m}=e,[v,y]=(0,l.useState)(!1),b=m.htmlType===`password`,x=p??h(String(m.name),m.htmlType),S;n[0]!==u||n[1]!==i||n[2]!==b||n[3]!==o||n[4]!==r||n[5]!==m||n[6]!==x||n[7]!==s||n[8]!==y||n[9]!==v?(S=e=>(0,d.jsxs)(`div`,{className:`x1n2onr6 xh8yej3`,children:[o&&(0,d.jsx)(`div`,{className:`x10l6tqk xtmw667 xwa60dl x1cb1t30 xw3nh4a x47corl x78zum5 x6s0dn4 xl56j7k x1vjfegm`,children:o}),(0,d.jsx)(a.Input,{...e,type:b&&v?`text`:m.htmlType,autoComplete:x,placeholder:r,disabled:u,className:i,sx:[o?g.inputWithLeftIcon:void 0,b||s?g.inputWithRightIcon:void 0]}),b&&(0,d.jsx)(t.Button,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:()=>y(!v),sx:g.passwordToggle,tabIndex:-1,children:v?(0,d.jsx)(c.Icons.EyeOff,{className:`xcdlrvm x1l36t39`}):(0,d.jsx)(c.Icons.Eye,{className:`xcdlrvm x1l36t39`})}),!b&&s&&(0,d.jsx)(`div`,{className:`x10l6tqk x1suesbl xwa60dl x1cb1t30 xw3nh4a x47corl x78zum5 x6s0dn4 xl56j7k x1vjfegm`,children:s})]}),n[0]=u,n[1]=i,n[2]=b,n[3]=o,n[4]=r,n[5]=m,n[6]=x,n[7]=s,n[8]=y,n[9]=v,n[10]=S):S=n[10];let C;return n[11]!==m||n[12]!==S?(C=(0,d.jsx)(_,{...m,children:S}),n[11]=m,n[12]=S,n[13]=C):C=n[13],C},y=e=>{let t=(0,f.c)(2),n;return t[0]===e?n=t[1]:(n=(0,d.jsx)(_,{...e,children:S}),t[0]=e,t[1]=n),n},b=e=>{let t=(0,f.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=e=>{let{onChange:t,onBlur:r,...i}=e;return(0,d.jsxs)(o.Select,{...i,onValueChange:t,children:[(0,d.jsx)(o.SelectTrigger,{"aria-invalid":i[`aria-invalid`],id:i.id,onBlur:r,children:(0,d.jsx)(o.SelectValue,{})}),(0,d.jsx)(o.SelectContent,{children:n})]})},t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,d.jsx)(_,{...r,children:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a},x=e=>{let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({disabled:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=e=>{let{onChange:t,value:i,...a}=e;return(0,d.jsx)(n.Checkbox,{...a,checked:i,onCheckedChange:t,disabled:r})},t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,d.jsx)(_,{...i,horizontal:!0,controlFirst:!0,children:a}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o};function S(e){return(0,d.jsx)(s.Textarea,{...e})}exports.FormBase=_,exports.FormCheckbox=x,exports.FormInput=v,exports.FormSimpleSelect=b,exports.FormTextarea=y;
|
package/dist/index137.js
CHANGED
|
@@ -10,7 +10,7 @@ import { useState as h } from "react";
|
|
|
10
10
|
import "@stylexjs/stylex";
|
|
11
11
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
12
|
import { c as y } from "react/compiler-runtime";
|
|
13
|
-
|
|
13
|
+
// src/Form/Form.tsx
|
|
14
14
|
var b = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, x = /^(0|\+84)(3|5|7|8|9)[0-9]{8}$/, S = (e, t) => {
|
|
15
15
|
let n = e.toLowerCase();
|
|
16
16
|
if (t === "password") return n.includes("confirm") || n.includes("new") ? "new-password" : "current-password";
|
|
@@ -55,16 +55,18 @@ function w(e) {
|
|
|
55
55
|
message: "Số điện thoại không hợp lệ"
|
|
56
56
|
}, t[4] = e) : e = t[4], w.pattern = e;
|
|
57
57
|
}
|
|
58
|
-
if (S?.required !== void 0 && S.required !== !1)
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
if (S?.required !== void 0 && S.required !== !1) {
|
|
59
|
+
if (typeof S.required == "string") w.required = S.required;
|
|
60
|
+
else if (typeof S.required == "object") {
|
|
61
|
+
if (!S.required.message) {
|
|
62
|
+
let e;
|
|
63
|
+
t[5] === S.required ? e = t[6] : (e = {
|
|
64
|
+
...S.required,
|
|
65
|
+
message: "Trường này là bắt buộc"
|
|
66
|
+
}, t[5] = S.required, t[6] = e), w.required = e;
|
|
67
|
+
}
|
|
68
|
+
} else w.required = "Trường này là bắt buộc";
|
|
69
|
+
}
|
|
68
70
|
t[0] = f, t[1] = S, t[2] = w;
|
|
69
71
|
} else w = t[2];
|
|
70
72
|
let T = w, E;
|
|
@@ -189,5 +191,4 @@ var T = (t) => {
|
|
|
189
191
|
function k(e) {
|
|
190
192
|
return /* @__PURE__ */ _(p, { ...e });
|
|
191
193
|
}
|
|
192
|
-
//#endregion
|
|
193
194
|
export { w as FormBase, O as FormCheckbox, T as FormInput, D as FormSimpleSelect, E as FormTextarea };
|
package/dist/index138.js
CHANGED
package/dist/index139.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/MultiSelect/utils.ts
|
|
2
2
|
var e = (e) => Array.isArray(e) && e.length > 0 && "heading" in e[0], t = (e, t) => {
|
|
3
3
|
if (e.length !== t.length) return !1;
|
|
4
4
|
let n = [...e].sort(), r = [...t].sort();
|
|
@@ -84,5 +84,4 @@ var e = (e) => Array.isArray(e) && e.length > 0 && "heading" in e[0], t = (e, t)
|
|
|
84
84
|
let n = t.toLowerCase();
|
|
85
85
|
return e.filter((e) => e.label.toLowerCase().includes(n) || e.value.toLowerCase().includes(n)).length;
|
|
86
86
|
};
|
|
87
|
-
//#endregion
|
|
88
87
|
export { t as arraysEqual, n as buildAllOptions, i as buildBadgeAnimationClass, a as buildPopoverAnimationClass, s as buildWidthConstraints, r as computeResponsiveSettings, c as countMatchingOptions, o as filterOptions, e as isGroupedOptions };
|
package/dist/index14.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs");let t=require("react")
|
|
1
|
+
const e=require("./index2.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);let r=require("react/jsx-runtime"),i=require("@radix-ui/react-slot"),a=require("react-dom");a=e.__toESM(a,1);var o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0}),c=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let a=(0,i.createSlot)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:i,...o}=e,s=i?a:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,r.jsx)(s,{...o,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function l(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}s(l,`dispatchDiscreteCustomEvent`),exports.Primitive=c,exports.dispatchDiscreteCustomEvent=l;
|
package/dist/index14.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as e from "react";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { createSlot as n } from "@radix-ui/react-slot";
|
|
4
4
|
import * as r from "react-dom";
|
|
5
|
-
|
|
5
|
+
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
6
|
var i = Object.defineProperty, a = (e, t) => i(e, "name", {
|
|
7
7
|
value: t,
|
|
8
8
|
configurable: !0
|
|
@@ -41,5 +41,4 @@ function s(e, t) {
|
|
|
41
41
|
e && r.flushSync(() => e.dispatchEvent(t));
|
|
42
42
|
}
|
|
43
43
|
a(s, "dispatchDiscreteCustomEvent");
|
|
44
|
-
//#endregion
|
|
45
44
|
export { o as Primitive, s as dispatchDiscreteCustomEvent };
|
package/dist/index140.js
CHANGED
|
@@ -8,7 +8,7 @@ import { CheckIcon as f, ChevronDown as p, XCircle as m, XIcon as h } from "luci
|
|
|
8
8
|
import "react";
|
|
9
9
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
10
|
import { c as y } from "react/compiler-runtime";
|
|
11
|
-
|
|
11
|
+
// src/MultiSelect/renderers.tsx
|
|
12
12
|
var b = (e) => {
|
|
13
13
|
let t = y(7), { politeMessage: n, assertiveMessage: r } = e, i;
|
|
14
14
|
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ _("div", {
|
|
@@ -289,5 +289,4 @@ function w(e) {
|
|
|
289
289
|
function T(e) {
|
|
290
290
|
return !e.disabled;
|
|
291
291
|
}
|
|
292
|
-
//#endregion
|
|
293
292
|
export { b as LiveRegion, C as OptionsContent, S as PlaceholderContent, x as SelectedValuesContent };
|
package/dist/index141.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { arraysEqual as e, buildAllOptions as t, buildBadgeAnimationClass as n, buildPopoverAnimationClass as r, buildWidthConstraints as i, computeResponsiveSettings as ee, countMatchingOptions as a, filterOptions as te } from "./index139.js";
|
|
2
2
|
import { useCallback as o, useEffect as s, useId as ne, useImperativeHandle as re, useMemo as c, useRef as l, useState as u } from "react";
|
|
3
|
-
|
|
3
|
+
// src/MultiSelect/useMultiSelect.ts
|
|
4
4
|
var d = ({ forwardedRef: d, ...f }) => {
|
|
5
5
|
let { options: p, onValueChange: m, defaultValue: h = [], animationConfig: g, maxCount: _ = 3, responsive: v, minWidth: y, maxWidth: b, deduplicateOptions: x = !1, resetOnDefaultValueChange: S = !0, closeOnSelect: C = !1, searchable: w = !0, autoSize: T = !1, disabled: E = !1 } = f, [D, O] = u(h), [k, A] = u(!1), [j, M] = u(!1), [N, P] = u(""), [F, ie] = u("desktop"), [I, L] = u(""), [ae, R] = u(""), z = l(D.length), B = l(k), V = l(N), H = ne(), U = `${H}-listbox`, W = `${H}-description`, G = `${H}-count`, K = l(h), q = l(null), J = o((e, t = "polite") => {
|
|
6
6
|
t === "assertive" ? (R(e), setTimeout(() => R(""), 100)) : (L(e), setTimeout(() => L(""), 100));
|
|
@@ -162,5 +162,4 @@ var d = ({ forwardedRef: d, ...f }) => {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
//#endregion
|
|
166
165
|
export { d as useMultiSelect };
|
package/dist/index142.js
CHANGED
|
@@ -6,7 +6,7 @@ import { LiveRegion as ne, OptionsContent as re, PlaceholderContent as i, Select
|
|
|
6
6
|
import { useMultiSelect as o } from "./index141.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/MultiSelect/MultiSelect.tsx
|
|
10
10
|
var u = ({ options: u, onValueChange: d, variant: f, defaultValue: p = [], value: m, placeholder: h = "Select options", animation: g = 0, animationConfig: _, maxCount: ie = 3, modalPopover: ae = !1, className: v, hideSelectAll: y = !1, searchable: b = !0, emptyIndicator: x, autoSize: S = !1, singleLine: C = !1, popoverClassName: w, disabled: T = !1, responsive: E, minWidth: D, maxWidth: O, deduplicateOptions: k = !1, resetOnDefaultValueChange: A = !0, closeOnSelect: j = !1, ref: M, ...N }) => {
|
|
11
11
|
let { ids: P, state: F, derived: I, refs: L, helpers: R, a11yMessages: z, handlers: B } = o({
|
|
12
12
|
options: u,
|
|
@@ -122,5 +122,4 @@ var u = ({ options: u, onValueChange: d, variant: f, defaultValue: p = [], value
|
|
|
122
122
|
})] });
|
|
123
123
|
};
|
|
124
124
|
u.displayName = "MultiSelect";
|
|
125
|
-
//#endregion
|
|
126
125
|
export { u as default };
|
package/dist/index143.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index137.cjs"),t=require("./index142.cjs");let n=require("react/jsx-runtime"),r=require("react/compiler-runtime");var i=i=>{let a=(0,r.c)(8),o,s;a[0]===i?(o=a[1],s=a[2]):({options:o,...s}=i,a[0]=i,a[1]=o,a[2]=s);let c;a[3]===o?c=a[4]:(c=e=>{let{onChange:r,value:i,...a}=e;return(0,n.jsx)(t.default,{...a,options:o,onValueChange:r,value:i})},a[3]=o,a[4]=c);let l;return a[5]!==s||a[6]!==c?(l=(0,n.jsx)(e.FormBase,{...s,children:c}),a[5]=s,a[6]=c,a[7]=l):l=a[7],l};exports.default=i;
|
|
1
|
+
const e=require("./index137.cjs"),t=require("./index142.cjs");let n=require("react/jsx-runtime"),r=require("react/compiler-runtime");var i=i=>{let a=(0,r.c)(8),o,s;a[0]===i?(o=a[1],s=a[2]):({options:o,...s}=i,a[0]=i,a[1]=o,a[2]=s);let c;a[3]===o?c=a[4]:(c=e=>{let{onChange:r,value:i,...a}=e;return(0,n.jsx)(t.default,{...a,options:o,onValueChange:r,value:i})},a[3]=o,a[4]=c);let l;return a[5]!==s||a[6]!==c?(l=(0,n.jsx)(e.FormBase,{...s,children:c}),a[5]=s,a[6]=c,a[7]=l):l=a[7],l};exports.FormMultiSelect=i,exports.default=i;
|
package/dist/index143.js
CHANGED
|
@@ -2,7 +2,7 @@ import { FormBase as e } from "./index137.js";
|
|
|
2
2
|
import t from "./index142.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { c as r } from "react/compiler-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Form/FormMultiSelect/FormMultiSelect.tsx
|
|
6
6
|
var i = (i) => {
|
|
7
7
|
let a = r(8), o, s;
|
|
8
8
|
a[0] === i ? (o = a[1], s = a[2]) : ({options: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
|
|
@@ -22,5 +22,4 @@ var i = (i) => {
|
|
|
22
22
|
children: c
|
|
23
23
|
}), a[5] = s, a[6] = c, a[7] = l) : l = a[7], l;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
export { i as default };
|
|
25
|
+
export { i as FormMultiSelect, i as default };
|
package/dist/index144.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t = {}) => {
|
|
4
4
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
5
5
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { e as buildFormatLongFn };
|
package/dist/index145.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t, n) => {
|
|
4
4
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
@@ -13,5 +13,4 @@ function e(e) {
|
|
|
13
13
|
return i[a];
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { e as buildLocalizeFn };
|
package/dist/index146.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (r, i = {}) => {
|
|
4
4
|
let a = i.width, o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], s = r.match(o);
|
|
@@ -18,5 +18,4 @@ function t(e, t) {
|
|
|
18
18
|
function n(e, t) {
|
|
19
19
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { e as buildMatchFn };
|
package/dist/index147.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t, n = {}) => {
|
|
4
4
|
let r = t.match(e.matchPattern);
|
|
@@ -14,5 +14,4 @@ function e(e) {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { e as buildMatchPatternFn };
|
package/dist/index148.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=
|
|
1
|
+
var e=10**8*24*60*60*1e3;-e;var t=6048e5,n=864e5,r=Symbol.for(`constructDateFrom`);exports.constructFromSymbol=r,exports.maxTime=e,exports.millisecondsInDay=n,exports.millisecondsInWeek=t;
|
package/dist/index148.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
export { i as constructFromSymbol, n as millisecondsInDay, t as millisecondsInWeek };
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js
|
|
2
|
+
var e = 10 ** 8 * 24 * 60 * 60 * 1e3;
|
|
3
|
+
-e;
|
|
4
|
+
var t = 6048e5, n = 864e5, r = Symbol.for("constructDateFrom");
|
|
5
|
+
export { r as constructFromSymbol, e as maxTime, n as millisecondsInDay, t as millisecondsInWeek };
|
package/dist/index149.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index148.cjs");function t(t,n){return typeof t==`function`?t(n):t&&typeof t==`object`&&e.constructFromSymbol in t?t[e.constructFromSymbol](n):t instanceof Date?new t.constructor(n):new Date(n)}exports.default=t;
|
|
1
|
+
const e=require("./index148.cjs");function t(t,n){return typeof t==`function`?t(n):t&&typeof t==`object`&&e.constructFromSymbol in t?t[e.constructFromSymbol](n):t instanceof Date?new t.constructor(n):new Date(n)}exports.constructFrom=t,exports.default=t;
|
package/dist/index149.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { constructFromSymbol as e } from "./index148.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
return typeof t == "function" ? t(n) : t && typeof t == "object" && e in t ? t[e](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
export { t as default };
|
|
6
|
+
export { t as constructFrom, t as default };
|
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index14.cjs");let n=require("react")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index14.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);let i=require("react/jsx-runtime");var a=Object.defineProperty,o=r.forwardRef(((e,t)=>a(e,`name`,{value:t,configurable:!0}))(function(e,n){let{ratio:r=1,style:a,...o}=e;return(0,i.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,i.jsx)(t.Primitive.div,{...o,ref:n,style:{...a,position:`absolute`,top:0,right:0,bottom:0,left:0}})})},`AspectRatio`)),s=o;exports.AspectRatio=o,exports.Root=s;
|
package/dist/index15.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Primitive as e } from "./index14.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/@radix-ui+react-aspect-ratio@1.1.15_@types+react-dom@19.3.0_@types+react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
|
|
5
5
|
var r = Object.defineProperty, i = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ ((e, t) => r(e, "name", {
|
|
6
6
|
value: t,
|
|
7
7
|
configurable: !0
|
|
8
8
|
}))(function(t, r) {
|
|
9
|
-
let { ratio: i = 1
|
|
9
|
+
let { ratio: i = 1, style: a, ...o } = t;
|
|
10
10
|
return /* @__PURE__ */ n("div", {
|
|
11
11
|
style: {
|
|
12
12
|
position: "relative",
|
|
@@ -27,6 +27,5 @@ var r = Object.defineProperty, i = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */
|
|
|
27
27
|
}
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
|
-
}, "AspectRatio"));
|
|
31
|
-
|
|
32
|
-
export { i as Root };
|
|
30
|
+
}, "AspectRatio")), a = i;
|
|
31
|
+
export { i as AspectRatio, a as Root };
|
package/dist/index150.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index149.cjs");function t(t,...n){let r=e.
|
|
1
|
+
const e=require("./index149.cjs");function t(t,...n){let r=e.constructFrom.bind(null,t||n.find(e=>typeof e==`object`));return n.map(r)}exports.normalizeDates=t;
|
package/dist/index150.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import e from "./index149.js";
|
|
2
|
-
|
|
1
|
+
import { constructFrom as e } from "./index149.js";
|
|
2
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
3
3
|
function t(t, ...n) {
|
|
4
4
|
let r = e.bind(null, t || n.find((e) => typeof e == "object"));
|
|
5
5
|
return n.map(r);
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as normalizeDates };
|
package/dist/index151.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
2
2
|
var e = {};
|
|
3
3
|
function t() {
|
|
4
4
|
return e;
|
|
5
5
|
}
|
|
6
|
-
//#endregion
|
|
7
6
|
export { t as getDefaultOptions };
|
package/dist/index152.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index149.cjs");function t(t,n){return e.
|
|
1
|
+
const e=require("./index149.cjs");function t(t,n){return e.constructFrom(n||t,t)}exports.default=t,exports.toDate=t;
|
package/dist/index152.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import e from "./index149.js";
|
|
2
|
-
|
|
1
|
+
import { constructFrom as e } from "./index149.js";
|
|
2
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
return e(n || t, t);
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
export { t as default };
|
|
6
|
+
export { t as default, t as toDate };
|
package/dist/index153.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index151.cjs"),t=require("./index152.cjs");function n(n,r){let i=e.getDefaultOptions(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=t.default(n,r?.in),s=o.getDay(),c=(s<a?7:0)+s-a;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}exports.default=n;
|
|
1
|
+
const e=require("./index151.cjs"),t=require("./index152.cjs");function n(n,r){let i=e.getDefaultOptions(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=t.default(n,r?.in),s=o.getDay(),c=(s<a?7:0)+s-a;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}exports.default=n,exports.startOfWeek=n;
|
package/dist/index153.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getDefaultOptions as e } from "./index151.js";
|
|
2
2
|
import t from "./index152.js";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
4
4
|
function n(n, r) {
|
|
5
5
|
let i = e(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = t(n, r?.in), s = o.getDay(), c = (s < a ? 7 : 0) + s - a;
|
|
6
6
|
return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
export { n as default };
|
|
8
|
+
export { n as default, n as startOfWeek };
|
package/dist/index154.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
2
2
|
var e = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "less than a second",
|
|
@@ -65,5 +65,4 @@ var e = {
|
|
|
65
65
|
let i, a = e[t];
|
|
66
66
|
return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", n.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { t as formatDistance };
|
package/dist/index155.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
2
2
|
var e = {
|
|
3
3
|
lastWeek: "'last' eeee 'at' p",
|
|
4
4
|
yesterday: "'yesterday at' p",
|
|
@@ -7,5 +7,4 @@ var e = {
|
|
|
7
7
|
nextWeek: "eeee 'at' p",
|
|
8
8
|
other: "P"
|
|
9
9
|
}, t = (t, n, r, i) => e[t];
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as formatRelative };
|
package/dist/index156.js
CHANGED