@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/index112.js
CHANGED
|
@@ -11,7 +11,7 @@ import { clamp as c } from "./index111.js";
|
|
|
11
11
|
import * as l from "react";
|
|
12
12
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
13
|
import { useDirection as p } from "@radix-ui/react-direction";
|
|
14
|
-
|
|
14
|
+
// ../../node_modules/.pnpm/@radix-ui+react-slider@1.4.7_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.mjs
|
|
15
15
|
var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
16
16
|
value: t,
|
|
17
17
|
configurable: !0
|
|
@@ -80,14 +80,15 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
80
80
|
}
|
|
81
81
|
h(z, "handleSlideEnd");
|
|
82
82
|
function B(e, t, { commit: n } = { commit: !1 }) {
|
|
83
|
-
let r = X(u), i =
|
|
83
|
+
let r = X(u), i = Z(Math.round((e - o) / u) * u + o, r), a = c(i, [o, s]);
|
|
84
84
|
P((e = []) => {
|
|
85
|
-
let r = H(e,
|
|
85
|
+
let r = H(e, a, t);
|
|
86
86
|
if (J(r, m * u)) {
|
|
87
|
-
D.current = r.indexOf(
|
|
87
|
+
D.current = r.indexOf(a);
|
|
88
88
|
let t = String(r) !== String(e);
|
|
89
89
|
return t && n && S(r), t ? r : e;
|
|
90
|
-
}
|
|
90
|
+
}
|
|
91
|
+
return e;
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
return h(B, "updateValues"), /* @__PURE__ */ d(ee, {
|
|
@@ -259,21 +260,21 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
259
260
|
ref: t
|
|
260
261
|
});
|
|
261
262
|
}, "SliderTrack")), M = "SliderRange", N = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, n) {
|
|
262
|
-
let { __scopeSlider: i, ...a } = e, o = T(M, i), s = O(M, i), c =
|
|
263
|
+
let { __scopeSlider: i, ...a } = e, o = T(M, i), s = O(M, i), c = l.useRef(null), u = t(n, c), f = o.values.length, p = o.values.map((e) => U(e, o.min, o.max)), m = f > 1 ? Math.min(...p) : 0, h = 100 - Math.max(...p);
|
|
263
264
|
return /* @__PURE__ */ d(r.span, {
|
|
264
265
|
"data-orientation": o.orientation,
|
|
265
266
|
"data-disabled": o.disabled ? "" : void 0,
|
|
266
267
|
...a,
|
|
267
|
-
ref:
|
|
268
|
+
ref: u,
|
|
268
269
|
style: {
|
|
269
270
|
...e.style,
|
|
270
|
-
[s.startEdge]:
|
|
271
|
-
[s.endEdge]:
|
|
271
|
+
[s.startEdge]: m + "%",
|
|
272
|
+
[s.endEdge]: h + "%"
|
|
272
273
|
}
|
|
273
274
|
});
|
|
274
275
|
}, "SliderRange")), [P, F] = C("SliderThumb"), I = "SliderThumbProvider";
|
|
275
276
|
function L(e) {
|
|
276
|
-
let { __scopeSlider: t, name: n, children: r, internal_do_not_use_render: i } = e, a = T(I, t), s = x(t), [c, u] = l.useState(null), f = l.useMemo(() => c ? s().findIndex((e) => e.ref.current === c) : -1, [s, c]), p = o(c), m = c
|
|
277
|
+
let { __scopeSlider: t, name: n, children: r, internal_do_not_use_render: i } = e, a = T(I, t), s = x(t), [c, u] = l.useState(null), f = l.useMemo(() => c ? s().findIndex((e) => e.ref.current === c) : -1, [s, c]), p = o(c), m = !c || !!a.form || !!c.closest("form"), h = a.values[f], g = n ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0), _ = h === void 0 ? 0 : U(h, a.min, a.max);
|
|
277
278
|
l.useEffect(() => {
|
|
278
279
|
if (c) return a.thumbs.add(c), () => {
|
|
279
280
|
a.thumbs.delete(c);
|
|
@@ -335,10 +336,10 @@ var R = "SliderThumbTrigger", z = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h
|
|
|
335
336
|
...i,
|
|
336
337
|
ref: t,
|
|
337
338
|
__scopeSlider: n
|
|
338
|
-
}), r ? /* @__PURE__ */ d(
|
|
339
|
+
}), r ? /* @__PURE__ */ d(V, { __scopeSlider: n }, e) : null] })
|
|
339
340
|
});
|
|
340
|
-
}, "SliderThumb")),
|
|
341
|
-
let { value: a, name: o, form: c } = F(
|
|
341
|
+
}, "SliderThumb")), re = "SliderBubbleInput", V = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function({ __scopeSlider: e, ...n }, i) {
|
|
342
|
+
let { value: a, name: o, form: c } = F(re, e), u = l.useRef(null), f = t(u, i), p = s(a);
|
|
342
343
|
return l.useEffect(() => {
|
|
343
344
|
let e = u.current;
|
|
344
345
|
if (!e) return;
|
|
@@ -362,7 +363,8 @@ function H(e = [], t, n) {
|
|
|
362
363
|
}
|
|
363
364
|
h(H, "getNextSortedValues");
|
|
364
365
|
function U(e, t, n) {
|
|
365
|
-
|
|
366
|
+
let r = 100 / (n - t) * (e - t);
|
|
367
|
+
return c(r, [0, 100]);
|
|
366
368
|
}
|
|
367
369
|
h(U, "convertValueToPercentage");
|
|
368
370
|
function W(e, t) {
|
|
@@ -426,5 +428,4 @@ function $(e) {
|
|
|
426
428
|
return typeof e == "function";
|
|
427
429
|
}
|
|
428
430
|
h($, "isFunction");
|
|
429
|
-
|
|
430
|
-
export { E as Slider, N as SliderRange, B as SliderThumb, j as SliderTrack };
|
|
431
|
+
export { N as Range, N as SliderRange, E as Root, E as Slider, B as SliderThumb, B as Thumb, j as SliderTrack, j as Track, V as unstable_BubbleInput, V as unstable_SliderBubbleInput, L as unstable_SliderThumbProvider, L as unstable_ThumbProvider, z as unstable_SliderThumbTrigger, z as unstable_ThumbTrigger };
|
package/dist/index113.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index112.cjs");let n=require("react")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index112.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kFalU9:`x5ve5x3`,kfSwDN:`x87ps6o`,kGNEyG:`x6s0dn4`,$$css:!0}};function s({className:e,defaultValue:n,value:s,min:c=0,max:l=100,sx:u,...d}){let f=r.useMemo(()=>Array.isArray(s)?s:Array.isArray(n)?n:[c,l],[s,n,c,l]),p=i.props(o.root,u);return(0,a.jsxs)(t.Root,{"data-slot":`slider`,defaultValue:n,value:s,min:c,max:l,...p,className:e?`${p.className||``} ${e}`.trim():p.className,...d,children:[(0,a.jsx)(t.SliderTrack,{"data-slot":`slider-track`,className:`xr2cb9l x1n2onr6 x1iyjqo2 xb3r6kr x7xypw4 x4j2xbe`,children:(0,a.jsx)(t.Range,{"data-slot":`slider-range`,className:`x10l6tqk x1j7ufkg x5yr21d`})}),Array.from({length:f.length},(e,n)=>(0,a.jsx)(t.SliderThumb,{"data-slot":`slider-thumb`,className:`x1lliihq x1l36t39 xcdlrvm x7xypw4 xmkeg23 x1y0btm7 x1khvrlk x1mlyrtw x1dsmnui xkdsq27 xx6bhzk x1a2a7pz x1ypdohk x1ippke1 xaqnwrm xijokvz`},n))]})}exports.Slider=s;
|
package/dist/index113.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Range as e, Root as t, SliderThumb as n, SliderTrack as r } from "./index112.js";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as a from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ui/slider.tsx
|
|
6
6
|
var c = { root: {
|
|
7
7
|
kVAEAm: "x1n2onr6",
|
|
8
8
|
k1xSpc: "x78zum5",
|
|
@@ -19,7 +19,7 @@ function l({ className: l, defaultValue: u, value: d, min: f = 0, max: p = 100,
|
|
|
19
19
|
f,
|
|
20
20
|
p
|
|
21
21
|
]), _ = a.props(c.root, m);
|
|
22
|
-
return /* @__PURE__ */ s(
|
|
22
|
+
return /* @__PURE__ */ s(t, {
|
|
23
23
|
"data-slot": "slider",
|
|
24
24
|
defaultValue: u,
|
|
25
25
|
value: d,
|
|
@@ -31,7 +31,7 @@ function l({ className: l, defaultValue: u, value: d, min: f = 0, max: p = 100,
|
|
|
31
31
|
children: [/* @__PURE__ */ o(r, {
|
|
32
32
|
"data-slot": "slider-track",
|
|
33
33
|
className: "xr2cb9l x1n2onr6 x1iyjqo2 xb3r6kr x7xypw4 x4j2xbe",
|
|
34
|
-
children: /* @__PURE__ */ o(
|
|
34
|
+
children: /* @__PURE__ */ o(e, {
|
|
35
35
|
"data-slot": "slider-range",
|
|
36
36
|
className: "x10l6tqk x1j7ufkg x5yr21d"
|
|
37
37
|
})
|
|
@@ -41,5 +41,4 @@ function l({ className: l, defaultValue: u, value: d, min: f = 0, max: p = 100,
|
|
|
41
41
|
}, t))]
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { l as Slider };
|
package/dist/index114.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CircleCheckIcon as e, InfoIcon as t, Loader2Icon as n, OctagonXIcon as
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme as o } from "next-themes";
|
|
4
4
|
import { Toaster as s } from "sonner";
|
|
5
|
-
|
|
5
|
+
// src/ui/sonner.tsx
|
|
6
6
|
var c = ({ ...c }) => {
|
|
7
7
|
let { theme: l = "system" } = o();
|
|
8
8
|
return /* @__PURE__ */ a(s, {
|
|
@@ -24,5 +24,4 @@ var c = ({ ...c }) => {
|
|
|
24
24
|
...c
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { c as Toaster };
|
package/dist/index115.js
CHANGED
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import * as t from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import { c as r } from "react/compiler-runtime";
|
|
6
|
-
|
|
6
|
+
// src/ui/spinner.tsx
|
|
7
7
|
var i = { base: {
|
|
8
8
|
kzqmXN: "xcdlrvm",
|
|
9
9
|
kZKoxP: "x1l36t39",
|
|
@@ -29,5 +29,4 @@ function a(a) {
|
|
|
29
29
|
...c
|
|
30
30
|
}), o[9] = c, o[10] = d, o[11] = f, o[12] = p) : p = o[12], p;
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { a as Spinner };
|
package/dist/index116.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index10.cjs"),i=require("./index14.cjs"),a=require("./index31.cjs"),o=require("./index47.cjs");let s=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index9.cjs"),r=require("./index10.cjs"),i=require("./index14.cjs"),a=require("./index31.cjs"),o=require("./index47.cjs");let s=require("react"),c=e.__toESM(s,1);s=e.__toESM(s);let l=require("react/jsx-runtime");var u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0}),f=`Switch`,[p,m]=t.createContextScope(f),[h,g]=p(f);function _(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:o,form:s,name:u,onCheckedChange:d,required:p,value:m=`on`,internal_do_not_use_render:g}=e,[_,v]=a.useControllableState({prop:n,defaultProp:i??!1,onChange:d,caller:f}),[y,b]=c.useState(null),[x,S]=c.useState(null),C=c.useRef(!1),[w,E]=c.useReducer(e=>e+1,0),D={checked:_,setChecked:v,disabled:o,control:y,setControl:b,name:u,form:s,value:m,hasConsumerStoppedPropagationRef:C,userInteractionCount:w,onUserInteraction:E,required:p,defaultChecked:i,isFormControl:!y||!!s||!!y.closest(`form`),bubbleInput:x,setBubbleInput:S};return(0,l.jsx)(h,{scope:t,...D,children:T(g)?g(D):r})}d(_,`SwitchProvider`);var v=`SwitchTrigger`,y=c.forwardRef(d(function({__scopeSwitch:e,onClick:t,...a},o){let{control:s,form:u,value:f,disabled:p,checked:m,required:h,setControl:_,setChecked:y,hasConsumerStoppedPropagationRef:b,onUserInteraction:x,isFormControl:S,bubbleInput:C}=g(v,e),w=n.useComposedRefs(o,_),T=c.useRef(m);return c.useEffect(()=>{let e=u?s?.ownerDocument.getElementById(u):s?.form;if(e instanceof HTMLFormElement){let t=d(()=>y(T.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[s,u,y]),(0,l.jsx)(i.Primitive.button,{type:`button`,role:`switch`,"aria-checked":m,"aria-required":h,"data-state":E(m),"data-disabled":p?``:void 0,disabled:p,value:f,...a,ref:w,onClick:r.composeEventHandlers(t,e=>{x(),y(e=>!e),C&&S&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})},`SwitchTrigger`)),b=c.forwardRef(d(function(e,t){let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:d,...f}=e;return(0,l.jsx)(_,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{...f,ref:t,__scopeSwitch:n}),e&&(0,l.jsx)(w,{__scopeSwitch:n})]})})},`Switch`)),x=`SwitchThumb`,S=c.forwardRef(d(function(e,t){let{__scopeSwitch:n,...r}=e,a=g(x,n);return(0,l.jsx)(i.Primitive.span,{"data-state":E(a.checked),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`SwitchThumb`)),C=`SwitchBubbleInput`,w=c.forwardRef(d(function({__scopeSwitch:e,onClick:t,...a},s){let{control:u,hasConsumerStoppedPropagationRef:d,userInteractionCount:f,checked:p,defaultChecked:m,required:h,disabled:_,name:v,value:y,form:b,bubbleInput:x,setBubbleInput:S}=g(C,e),w=n.useComposedRefs(s,S),T=o.useSize(u),E=c.useRef(!1),D=c.useRef(p),O=c.useRef(f);c.useEffect(()=>{let e=x;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=f!==O.current;O.current=f;let i=D.current!==p;D.current=p;let a=!(r&&d.current);if(i&&n){E.current=!r;let t=new Event(`click`,{bubbles:a});n.call(e,p),e.dispatchEvent(t),E.current=!1}},[x,p,d,f]);let k=c.useRef(p);return(0,l.jsx)(i.Primitive.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:m??k.current,required:h,disabled:_,name:v,value:y,form:b,...a,tabIndex:-1,ref:w,onClick:r.composeEventHandlers(t,e=>{E.current&&e.stopPropagation()}),style:{...a.style,...T,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function T(e){return typeof e==`function`}d(T,`isFunction`);function E(e){return e?`checked`:`unchecked`}d(E,`getState`),exports.Root=b,exports.Switch=b,exports.SwitchThumb=S,exports.Thumb=S,exports.unstable_BubbleInput=w,exports.unstable_SwitchBubbleInput=w,exports.unstable_Provider=_,exports.unstable_SwitchProvider=_,exports.unstable_SwitchTrigger=y,exports.unstable_Trigger=y;
|
package/dist/index116.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useControllableState as i } from "./index31.js";
|
|
|
7
7
|
import { useSize as a } from "./index47.js";
|
|
8
8
|
import * as o from "react";
|
|
9
9
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// ../../node_modules/.pnpm/@radix-ui+react-switch@1.3.7_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
11
11
|
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
12
12
|
value: t,
|
|
13
13
|
configurable: !0
|
|
@@ -32,7 +32,7 @@ function _(e) {
|
|
|
32
32
|
onUserInteraction: E,
|
|
33
33
|
required: p,
|
|
34
34
|
defaultChecked: a,
|
|
35
|
-
isFormControl: y
|
|
35
|
+
isFormControl: !y || !!l || !!y.closest("form"),
|
|
36
36
|
bubbleInput: x,
|
|
37
37
|
setBubbleInput: S
|
|
38
38
|
};
|
|
@@ -152,5 +152,4 @@ function E(e) {
|
|
|
152
152
|
return e ? "checked" : "unchecked";
|
|
153
153
|
}
|
|
154
154
|
d(E, "getState");
|
|
155
|
-
|
|
156
|
-
export { b as Switch, S as SwitchThumb };
|
|
155
|
+
export { b as Root, b as Switch, S as SwitchThumb, S as Thumb, w as unstable_BubbleInput, w as unstable_SwitchBubbleInput, _ as unstable_Provider, _ as unstable_SwitchProvider, y as unstable_SwitchTrigger, y as unstable_Trigger };
|
package/dist/index117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index116.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime");var o={root:{k1xSpc:`x3nfvp2`,kZKoxP:`xmll18r`,kzqmXN:`x1s4ejo4`,kmuXW:`x2lah0s`,kkrTdU:`x1ypdohk`,kGNEyG:`x6s0dn4`,kaIpWk:`x7xypw4`,kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x9r1u3d`,kWkggS:`x1q9yuub`,k1ekBW:`x106061f`,kIyJzY:`x13dflua`,kI3sdo:`x1a2a7pz`,kOJeXU:`x156qtes`,kEtg5x:`x1ippke1`,kYPGJ8:`x1s07b3s`,kWCcOm:`xijokvz`,$$css:!0}};function s(e){let n=(0,a.c)(14),s,c,l;n[0]===e?(s=n[1],c=n[2],l=n[3]):({className:s,sx:l,...c}=e,n[0]=e,n[1]=s,n[2]=c,n[3]=l);let u;n[4]===l?u=n[5]:(u=r.props(o.root,l),n[4]=l,n[5]=u);let d=u,f;n[6]!==s||n[7]!==d.className?(f=s?`${d.className||``} ${s}`.trim():d.className,n[6]=s,n[7]=d.className,n[8]=f):f=n[8];let p;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,i.jsx)(t.SwitchThumb,{"data-slot":`switch-thumb`,className:`x47corl x1lliihq x1l36t39 xcdlrvm x7xypw4 x1mlyrtw x1lpynwn x11xpdln x13dflua`}),n[9]=p):p=n[9];let m;return n[10]!==c||n[11]!==d||n[12]!==f?(m=(0,i.jsx)(t.
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index116.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime");var o={root:{k1xSpc:`x3nfvp2`,kZKoxP:`xmll18r`,kzqmXN:`x1s4ejo4`,kmuXW:`x2lah0s`,kkrTdU:`x1ypdohk`,kGNEyG:`x6s0dn4`,kaIpWk:`x7xypw4`,kMzoRj:`xdh2fpr`,ksu8eU:`x1y0btm7`,kVAM5u:`x9r1u3d`,kWkggS:`x1q9yuub`,k1ekBW:`x106061f`,kIyJzY:`x13dflua`,kI3sdo:`x1a2a7pz`,kOJeXU:`x156qtes`,kEtg5x:`x1ippke1`,kYPGJ8:`x1s07b3s`,kWCcOm:`xijokvz`,$$css:!0}};function s(e){let n=(0,a.c)(14),s,c,l;n[0]===e?(s=n[1],c=n[2],l=n[3]):({className:s,sx:l,...c}=e,n[0]=e,n[1]=s,n[2]=c,n[3]=l);let u;n[4]===l?u=n[5]:(u=r.props(o.root,l),n[4]=l,n[5]=u);let d=u,f;n[6]!==s||n[7]!==d.className?(f=s?`${d.className||``} ${s}`.trim():d.className,n[6]=s,n[7]=d.className,n[8]=f):f=n[8];let p;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,i.jsx)(t.SwitchThumb,{"data-slot":`switch-thumb`,className:`x47corl x1lliihq x1l36t39 xcdlrvm x7xypw4 x1mlyrtw x1lpynwn x11xpdln x13dflua`}),n[9]=p):p=n[9];let m;return n[10]!==c||n[11]!==d||n[12]!==f?(m=(0,i.jsx)(t.Root,{"data-slot":`switch`,...d,className:f,...c,children:p}),n[10]=c,n[11]=d,n[12]=f,n[13]=m):m=n[13],m}exports.Switch=s;
|
package/dist/index117.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Root as e, SwitchThumb as t } from "./index116.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import * as n from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { c as i } from "react/compiler-runtime";
|
|
6
|
-
|
|
6
|
+
// src/ui/switch.tsx
|
|
7
7
|
var a = { root: {
|
|
8
8
|
k1xSpc: "x3nfvp2",
|
|
9
9
|
kZKoxP: "xmll18r",
|
|
@@ -46,5 +46,4 @@ function o(o) {
|
|
|
46
46
|
children: m
|
|
47
47
|
}), s[10] = l, s[11] = f, s[12] = p, s[13] = h) : h = s[13], h;
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { o as Switch };
|
package/dist/index118.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import * as e from "@stylexjs/stylex";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { c as n } from "react/compiler-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ui/table.tsx
|
|
6
6
|
var r = {
|
|
7
7
|
table: {
|
|
8
8
|
kzqmXN: "xh8yej3",
|
|
@@ -183,5 +183,4 @@ function d(i) {
|
|
|
183
183
|
...s
|
|
184
184
|
}), a[9] = s, a[10] = u, a[11] = d, a[12] = f) : f = a[12], f;
|
|
185
185
|
}
|
|
186
|
-
//#endregion
|
|
187
186
|
export { i as Table, o as TableBody, d as TableCaption, u as TableCell, s as TableFooter, l as TableHead, a as TableHeader, c as TableRow };
|
package/dist/index119.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index10.cjs"),r=require("./index14.cjs"),i=require("./index31.cjs"),a=require("./index32.cjs"),o=require("./index33.cjs"),s=require("./index51.cjs");let c=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index10.cjs"),r=require("./index14.cjs"),i=require("./index31.cjs"),a=require("./index32.cjs"),o=require("./index33.cjs"),s=require("./index51.cjs");let c=require("react"),l=e.__toESM(c,1);c=e.__toESM(c);let u=require("react/jsx-runtime"),d=require("@radix-ui/react-direction");var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Tabs`,[h,g]=t.createContextScope(m,[s.createRovingFocusGroupScope]),_=s.createRovingFocusGroupScope(),[v,y]=h(m),b=l.forwardRef(p(function(e,t){let{__scopeTabs:n,value:a,onValueChange:s,defaultValue:c,orientation:l=`horizontal`,dir:f,activationMode:p=`automatic`,...h}=e,g=(0,d.useDirection)(f),[_,y]=i.useControllableState({prop:a,onChange:s,defaultProp:c??``,caller:m});return(0,u.jsx)(v,{scope:n,baseId:o.useId(),value:_,onValueChange:y,orientation:l,dir:g,activationMode:p,children:(0,u.jsx)(r.Primitive.div,{dir:g,"data-orientation":l,...h,ref:t})})},`Tabs`)),x=`TabsList`,S=l.forwardRef(p(function(e,t){let{__scopeTabs:n,loop:i=!0,...a}=e,o=y(x,n),c=_(n);return(0,u.jsx)(s.Root,{asChild:!0,...c,orientation:o.orientation,dir:o.dir,loop:i,children:(0,u.jsx)(r.Primitive.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})},`TabsList`)),C=`TabsTrigger`,w=l.forwardRef(p(function(e,t){let{__scopeTabs:i,value:a,disabled:o=!1,...c}=e,l=y(C,i),d=_(i),f=D(l.baseId,a),p=O(l.baseId,a),m=a===l.value;return(0,u.jsx)(s.Item,{asChild:!0,...d,focusable:!o,active:m,children:(0,u.jsx)(r.Primitive.button,{type:`button`,role:`tab`,"aria-selected":m,"aria-controls":p,"data-state":m?`active`:`inactive`,"data-disabled":o?``:void 0,disabled:o,id:f,...c,ref:t,onMouseDown:n.composeEventHandlers(e.onMouseDown,e=>{!o&&e.button===0&&e.ctrlKey===!1?l.onValueChange(a):e.preventDefault()}),onKeyDown:n.composeEventHandlers(e.onKeyDown,e=>{o||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&l.onValueChange(a)}),onFocus:n.composeEventHandlers(e.onFocus,()=>{let e=l.activationMode!==`manual`;!m&&!o&&e&&l.onValueChange(a)})})})},`TabsTrigger`)),T=`TabsContent`,E=l.forwardRef(p(function(e,t){let{__scopeTabs:n,value:i,forceMount:o,children:s,...c}=e,d=y(T,n),f=D(d.baseId,i),p=O(d.baseId,i),m=i===d.value,h=l.useRef(m);return l.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.jsx)(a.Presence,{present:o||m,children:({present:n})=>(0,u.jsx)(r.Primitive.div,{"data-state":m?`active`:`inactive`,"data-orientation":d.orientation,role:`tabpanel`,"aria-labelledby":f,hidden:!n,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:h.current?`0s`:void 0},children:n&&s})})},`TabsContent`));function D(e,t){return`${e}-trigger-${t}`}p(D,`makeTriggerId`);function O(e,t){return`${e}-content-${t}`}p(O,`makeContentId`);var k=b,A=S,j=w,M=E;exports.Content=M,exports.List=A,exports.Root=k,exports.Tabs=b,exports.TabsContent=E,exports.TabsList=S,exports.TabsTrigger=w,exports.Trigger=j;
|
package/dist/index119.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Item as o, Root as s, createRovingFocusGroupScope as c } from "./index5
|
|
|
9
9
|
import * as l from "react";
|
|
10
10
|
import { jsx as u } from "react/jsx-runtime";
|
|
11
11
|
import { useDirection as d } from "@radix-ui/react-direction";
|
|
12
|
-
|
|
12
|
+
// ../../node_modules/.pnpm/@radix-ui+react-tabs@1.1.21_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
13
13
|
var f = Object.defineProperty, p = (e, t) => f(e, "name", {
|
|
14
14
|
value: t,
|
|
15
15
|
configurable: !0
|
|
@@ -36,10 +36,10 @@ var f = Object.defineProperty, p = (e, t) => f(e, "name", {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}, "Tabs")), x = "TabsList", S = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ p(function(e, t) {
|
|
39
|
-
let { __scopeTabs: r, loop: i = !0, ...a } = e, o = y(x, r);
|
|
39
|
+
let { __scopeTabs: r, loop: i = !0, ...a } = e, o = y(x, r), c = _(r);
|
|
40
40
|
return /* @__PURE__ */ u(s, {
|
|
41
41
|
asChild: !0,
|
|
42
|
-
...
|
|
42
|
+
...c,
|
|
43
43
|
orientation: o.orientation,
|
|
44
44
|
dir: o.dir,
|
|
45
45
|
loop: i,
|
|
@@ -114,5 +114,4 @@ function O(e, t) {
|
|
|
114
114
|
}
|
|
115
115
|
p(O, "makeContentId");
|
|
116
116
|
var k = b, A = S, j = w, M = E;
|
|
117
|
-
|
|
118
|
-
export { M as Content, A as List, k as Root2, j as Trigger };
|
|
117
|
+
export { M as Content, A as List, k as Root, b as Tabs, E as TabsContent, S as TabsList, w as TabsTrigger, j as Trigger };
|
package/dist/index12.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import * as e from "@stylexjs/stylex";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { Slot as n } from "@radix-ui/react-slot";
|
|
5
|
-
|
|
5
|
+
// src/ui/button.tsx
|
|
6
6
|
var r = {
|
|
7
7
|
base: {
|
|
8
8
|
k1xSpc: "x3nfvp2",
|
|
@@ -187,5 +187,4 @@ function s(t) {
|
|
|
187
187
|
let n = t?.variant || "default", o = t?.size || "default";
|
|
188
188
|
return e.props(r.base, i[n], a[o]).className || "";
|
|
189
189
|
}
|
|
190
|
-
//#endregion
|
|
191
190
|
export { o as Button, s as buttonVariants };
|
package/dist/index120.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index119.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime");function o(e){let r=(0,a.c)(8),o,s;r[0]===e?(o=r[1],s=r[2]):({className:o,...s}=e,r[0]=e,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t.cn(`flex flex-col gap-2`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,i.jsx)(n.
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index119.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime");function o(e){let r=(0,a.c)(8),o,s;r[0]===e?(o=r[1],s=r[2]):({className:o,...s}=e,r[0]=e,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t.cn(`flex flex-col gap-2`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,i.jsx)(n.Root,{"data-slot":`tabs`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}function s(e){let r=(0,a.c)(8),o,s;r[0]===e?(o=r[1],s=r[2]):({className:o,...s}=e,r[0]=e,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t.cn(`bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,i.jsx)(n.List,{"data-slot":`tabs-list`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}function c(e){let r=(0,a.c)(8),o,s;r[0]===e?(o=r[1],s=r[2]):({className:o,...s}=e,r[0]=e,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t.cn(`data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,i.jsx)(n.Trigger,{"data-slot":`tabs-trigger`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}function l(e){let r=(0,a.c)(8),o,s;r[0]===e?(o=r[1],s=r[2]):({className:o,...s}=e,r[0]=e,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t.cn(`flex-1 outline-none`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,i.jsx)(n.Content,{"data-slot":`tabs-content`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}exports.Tabs=o,exports.TabsContent=l,exports.TabsList=s,exports.TabsTrigger=c;
|
package/dist/index120.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./index5.js";
|
|
3
|
-
import { Content as t, List as n,
|
|
3
|
+
import { Content as t, List as n, Root as r, Trigger as i } from "./index119.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import { c as o } from "react/compiler-runtime";
|
|
7
|
-
|
|
7
|
+
// src/ui/tabs.tsx
|
|
8
8
|
function s(t) {
|
|
9
9
|
let n = o(8), i, s;
|
|
10
10
|
n[0] === t ? (i = n[1], s = n[2]) : ({className: i, ...s} = t, n[0] = t, n[1] = i, n[2] = s);
|
|
@@ -53,5 +53,4 @@ function u(n) {
|
|
|
53
53
|
...s
|
|
54
54
|
}), r[5] = s, r[6] = c, r[7] = l) : l = r[7], l;
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { s as Tabs, u as TabsContent, c as TabsList, l as TabsTrigger };
|
package/dist/index121.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import * as e from "@stylexjs/stylex";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
import { c as n } from "react/compiler-runtime";
|
|
5
|
-
|
|
5
|
+
// src/ui/textarea.tsx
|
|
6
6
|
var r = {
|
|
7
7
|
base: {
|
|
8
8
|
k1xSpc: "x78zum5",
|
|
@@ -49,5 +49,4 @@ function i(i) {
|
|
|
49
49
|
...s
|
|
50
50
|
}), a[10] = s, a[11] = d, a[12] = f, a[13] = p) : p = a[13], p;
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { i as Textarea };
|
package/dist/index122.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index10.cjs"),n=require("./index14.cjs"),r=require("./index31.cjs");let i=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index10.cjs"),n=require("./index14.cjs"),r=require("./index31.cjs");let i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`Toggle`,u=a.forwardRef(c(function(e,i){let{pressed:a,defaultPressed:s,onPressedChange:c,...u}=e,[d,f]=r.useControllableState({prop:a,onChange:c,defaultProp:s??!1,caller:l});return(0,o.jsx)(n.Primitive.button,{type:`button`,"aria-pressed":d,"data-state":d?`on`:`off`,"data-disabled":e.disabled?``:void 0,...u,ref:i,onClick:t.composeEventHandlers(e.onClick,()=>{e.disabled||f(!d)})})},`Toggle`)),d=u;exports.Root=d,exports.Toggle=u;
|
package/dist/index122.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Primitive as t } from "./index14.js";
|
|
|
4
4
|
import { useControllableState as n } from "./index31.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-toggle@1.1.18_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
8
8
|
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
@@ -27,5 +27,4 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
}, "Toggle")), l = c;
|
|
30
|
-
//#endregion
|
|
31
30
|
export { l as Root, c as Toggle };
|
package/dist/index123.js
CHANGED
|
@@ -5,7 +5,7 @@ import "react";
|
|
|
5
5
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
6
|
import { c as r } from "react/compiler-runtime";
|
|
7
7
|
import { cva as i } from "class-variance-authority";
|
|
8
|
-
|
|
8
|
+
// src/ui/toggle.tsx
|
|
9
9
|
var a = i("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -39,5 +39,4 @@ function o(i) {
|
|
|
39
39
|
...c
|
|
40
40
|
}), o[9] = c, o[10] = d, o[11] = f) : f = o[11], f;
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { o as Toggle, a as toggleVariants };
|
package/dist/index124.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index14.cjs"),r=require("./index31.cjs"),i=require("./index51.cjs"),a=require("./index122.cjs");let o=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index14.cjs"),r=require("./index31.cjs"),i=require("./index51.cjs"),a=require("./index122.cjs");let o=require("react"),s=e.__toESM(o,1);o=e.__toESM(o);let c=require("react/jsx-runtime"),l=require("@radix-ui/react-direction");var u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0}),f=`ToggleGroup`,[p,m]=t.createContextScope(f,[i.createRovingFocusGroupScope]),h=i.createRovingFocusGroupScope(),g=s.forwardRef(d(function(e,t){let{type:n,...r}=e;if(n===`single`)return(0,c.jsx)(y,{role:`radiogroup`,...r,ref:t});if(n===`multiple`)return(0,c.jsx)(b,{role:`toolbar`,...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${f}\``)},`ToggleGroup`)),[_,v]=p(f),y=s.forwardRef(d(function(e,t){let{value:n,defaultValue:i,onValueChange:a=d(()=>{},`onValueChange`),...o}=e,[l,u]=r.useControllableState({prop:n,defaultProp:i??``,onChange:a,caller:f});return(0,c.jsx)(_,{scope:e.__scopeToggleGroup,type:`single`,value:s.useMemo(()=>l?[l]:[],[l]),onItemActivate:u,onItemDeactivate:s.useCallback(()=>u(``),[u]),children:(0,c.jsx)(C,{...o,ref:t})})},`ToggleGroupImplSingle`)),b=s.forwardRef(d(function(e,t){let{value:n,defaultValue:i,onValueChange:a=d(()=>{},`onValueChange`),...o}=e,[l,u]=r.useControllableState({prop:n,defaultProp:i??[],onChange:a,caller:f}),p=s.useCallback(e=>u((t=[])=>[...t,e]),[u]),m=s.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,c.jsx)(_,{scope:e.__scopeToggleGroup,type:`multiple`,value:l,onItemActivate:p,onItemDeactivate:m,children:(0,c.jsx)(C,{...o,ref:t})})},`ToggleGroupImplMultiple`)),[x,S]=p(f),C=s.forwardRef(d(function(e,t){let{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:o=!0,orientation:s,dir:u,loop:d=!0,...f}=e,p=h(r),m=(0,l.useDirection)(u),g={dir:m,...f};return(0,c.jsx)(x,{scope:r,rovingFocus:o,disabled:a,children:o?(0,c.jsx)(i.Root,{asChild:!0,...p,orientation:s,dir:m,loop:d,children:(0,c.jsx)(n.Primitive.div,{...g,ref:t})}):(0,c.jsx)(n.Primitive.div,{...g,ref:t})})},`ToggleGroupImpl`)),w=`ToggleGroupItem`,T=s.forwardRef(d(function(e,t){let n=v(w,e.__scopeToggleGroup),r=S(w,e.__scopeToggleGroup),a=h(e.__scopeToggleGroup),o=n.value.includes(e.value),l=r.disabled||e.disabled,u={...e,pressed:o,disabled:l},d=s.useRef(null);return r.rovingFocus?(0,c.jsx)(i.Item,{asChild:!0,...a,focusable:!l,active:o,ref:d,children:(0,c.jsx)(E,{...u,ref:t})}):(0,c.jsx)(E,{...u,ref:t})},`ToggleGroupItem`)),E=s.forwardRef(d(function(e,t){let{__scopeToggleGroup:n,value:r,...i}=e,o=v(w,n),s={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0},l=o.type===`single`?s:void 0;return(0,c.jsx)(a.Toggle,{...l,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(r):o.onItemDeactivate(r)}})},`ToggleGroupItemImpl`));exports.Item=T,exports.ToggleGroupItem=T,exports.Root=g,exports.ToggleGroup=g;
|
package/dist/index124.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Toggle as o } from "./index122.js";
|
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { jsx as c } from "react/jsx-runtime";
|
|
9
9
|
import { useDirection as l } from "@radix-ui/react-direction";
|
|
10
|
-
|
|
10
|
+
// ../../node_modules/.pnpm/@radix-ui+react-toggle-group@1.1.19_@types+react-dom@19.3.0_@types+react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.mjs
|
|
11
11
|
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
12
12
|
value: t,
|
|
13
13
|
configurable: !0
|
|
@@ -109,9 +109,9 @@ var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
|
109
109
|
role: "radio",
|
|
110
110
|
"aria-checked": e.pressed,
|
|
111
111
|
"aria-pressed": void 0
|
|
112
|
-
};
|
|
112
|
+
}, l = a.type === "single" ? s : void 0;
|
|
113
113
|
return /* @__PURE__ */ c(o, {
|
|
114
|
-
...
|
|
114
|
+
...l,
|
|
115
115
|
...i,
|
|
116
116
|
ref: t,
|
|
117
117
|
onPressedChange: (e) => {
|
|
@@ -119,5 +119,4 @@ var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}, "ToggleGroupItemImpl"));
|
|
122
|
-
|
|
123
|
-
export { g as ToggleGroup, T as ToggleGroupItem };
|
|
122
|
+
export { T as Item, T as ToggleGroupItem, g as Root, g as ToggleGroup };
|
package/dist/index125.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index123.cjs"),r=require("./index124.cjs");let i=require("react")
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index123.cjs"),r=require("./index124.cjs");let i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);let o=require("react/jsx-runtime"),s=require("react/compiler-runtime");require("class-variance-authority");var c=a.createContext({size:`default`,variant:`default`});function l(e){let n=(0,s.c)(20),i,a,l,u,d;n[0]===e?(i=n[1],a=n[2],l=n[3],u=n[4],d=n[5]):({className:a,variant:d,size:u,children:i,...l}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=l,n[4]=u,n[5]=d);let f;n[6]===a?f=n[7]:(f=t.cn(`group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs`,a),n[6]=a,n[7]=f);let p;n[8]!==u||n[9]!==d?(p={variant:d,size:u},n[8]=u,n[9]=d,n[10]=p):p=n[10];let m;n[11]!==i||n[12]!==p?(m=(0,o.jsx)(c.Provider,{value:p,children:i}),n[11]=i,n[12]=p,n[13]=m):m=n[13];let h;return n[14]!==l||n[15]!==u||n[16]!==f||n[17]!==m||n[18]!==d?(h=(0,o.jsx)(r.Root,{"data-slot":`toggle-group`,"data-variant":d,"data-size":u,className:f,...l,children:m}),n[14]=l,n[15]=u,n[16]=f,n[17]=m,n[18]=d,n[19]=h):h=n[19],h}function u(e){let i=(0,s.c)(18),l,u,d,f,p;i[0]===e?(l=i[1],u=i[2],d=i[3],f=i[4],p=i[5]):({className:u,children:l,variant:p,size:f,...d}=e,i[0]=e,i[1]=l,i[2]=u,i[3]=d,i[4]=f,i[5]=p);let m=a.useContext(c),h=m.variant||p,g=m.size||f,_;i[6]!==u||i[7]!==m.size||i[8]!==m.variant||i[9]!==f||i[10]!==p?(_=t.cn(n.toggleVariants({variant:m.variant||p,size:m.size||f}),`min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l`,u),i[6]=u,i[7]=m.size,i[8]=m.variant,i[9]=f,i[10]=p,i[11]=_):_=i[11];let v;return i[12]!==l||i[13]!==d||i[14]!==h||i[15]!==g||i[16]!==_?(v=(0,o.jsx)(r.Item,{"data-slot":`toggle-group-item`,"data-variant":h,"data-size":g,className:_,...d,children:l}),i[12]=l,i[13]=d,i[14]=h,i[15]=g,i[16]=_,i[17]=v):v=i[17],v}exports.ToggleGroup=l,exports.ToggleGroupItem=u;
|
package/dist/index125.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./index5.js";
|
|
3
3
|
import { toggleVariants as t } from "./index123.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Item as n, Root as r } from "./index124.js";
|
|
5
5
|
import * as i from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
import { c as o } from "react/compiler-runtime";
|
|
8
8
|
import "class-variance-authority";
|
|
9
|
-
|
|
9
|
+
// src/ui/toggle-group.tsx
|
|
10
10
|
var s = i.createContext({
|
|
11
11
|
size: "default",
|
|
12
12
|
variant: "default"
|
|
13
13
|
});
|
|
14
14
|
function c(t) {
|
|
15
|
-
let
|
|
16
|
-
|
|
15
|
+
let n = o(20), i, c, l, u, d;
|
|
16
|
+
n[0] === t ? (i = n[1], c = n[2], l = n[3], u = n[4], d = n[5]) : ({className: c, variant: d, size: u, children: i, ...l} = t, n[0] = t, n[1] = i, n[2] = c, n[3] = l, n[4] = u, n[5] = d);
|
|
17
17
|
let f;
|
|
18
|
-
|
|
18
|
+
n[6] === c ? f = n[7] : (f = e("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", c), n[6] = c, n[7] = f);
|
|
19
19
|
let p;
|
|
20
|
-
|
|
20
|
+
n[8] !== u || n[9] !== d ? (p = {
|
|
21
21
|
variant: d,
|
|
22
22
|
size: u
|
|
23
|
-
},
|
|
23
|
+
}, n[8] = u, n[9] = d, n[10] = p) : p = n[10];
|
|
24
24
|
let m;
|
|
25
|
-
|
|
25
|
+
n[11] !== i || n[12] !== p ? (m = /* @__PURE__ */ a(s.Provider, {
|
|
26
26
|
value: p,
|
|
27
27
|
children: i
|
|
28
|
-
}),
|
|
28
|
+
}), n[11] = i, n[12] = p, n[13] = m) : m = n[13];
|
|
29
29
|
let h;
|
|
30
|
-
return
|
|
30
|
+
return n[14] !== l || n[15] !== u || n[16] !== f || n[17] !== m || n[18] !== d ? (h = /* @__PURE__ */ a(r, {
|
|
31
31
|
"data-slot": "toggle-group",
|
|
32
32
|
"data-variant": d,
|
|
33
33
|
"data-size": u,
|
|
34
34
|
className: f,
|
|
35
35
|
...l,
|
|
36
36
|
children: m
|
|
37
|
-
}),
|
|
37
|
+
}), n[14] = l, n[15] = u, n[16] = f, n[17] = m, n[18] = d, n[19] = h) : h = n[19], h;
|
|
38
38
|
}
|
|
39
|
-
function l(
|
|
39
|
+
function l(r) {
|
|
40
40
|
let c = o(18), l, u, d, f, p;
|
|
41
|
-
c[0] ===
|
|
41
|
+
c[0] === r ? (l = c[1], u = c[2], d = c[3], f = c[4], p = c[5]) : ({className: u, children: l, variant: p, size: f, ...d} = r, c[0] = r, c[1] = l, c[2] = u, c[3] = d, c[4] = f, c[5] = p);
|
|
42
42
|
let m = i.useContext(s), h = m.variant || p, g = m.size || f, _;
|
|
43
43
|
c[6] !== u || c[7] !== m.size || c[8] !== m.variant || c[9] !== f || c[10] !== p ? (_ = e(t({
|
|
44
44
|
variant: m.variant || p,
|
|
45
45
|
size: m.size || f
|
|
46
46
|
}), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", u), c[6] = u, c[7] = m.size, c[8] = m.variant, c[9] = f, c[10] = p, c[11] = _) : _ = c[11];
|
|
47
47
|
let v;
|
|
48
|
-
return c[12] !== l || c[13] !== d || c[14] !== h || c[15] !== g || c[16] !== _ ? (v = /* @__PURE__ */ a(
|
|
48
|
+
return c[12] !== l || c[13] !== d || c[14] !== h || c[15] !== g || c[16] !== _ ? (v = /* @__PURE__ */ a(n, {
|
|
49
49
|
"data-slot": "toggle-group-item",
|
|
50
50
|
"data-variant": h,
|
|
51
51
|
"data-size": g,
|
|
@@ -54,5 +54,4 @@ function l(n) {
|
|
|
54
54
|
children: l
|
|
55
55
|
}), c[12] = l, c[13] = d, c[14] = h, c[15] = g, c[16] = _, c[17] = v) : v = c[17], v;
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { c as ToggleGroup, l as ToggleGroupItem };
|
package/dist/index126.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Button as e } from "./index12.js";
|
|
|
2
2
|
import { Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o } from "./index36.js";
|
|
3
3
|
import "@stylexjs/stylex";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/Modal.tsx
|
|
6
6
|
var l = {
|
|
7
7
|
content: {
|
|
8
8
|
k1xSpc: "x78zum5",
|
|
@@ -65,5 +65,4 @@ function u({ open: u = !0, title: d, description: f, children: p, footer: m, wid
|
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { u as Modal };
|
package/dist/index127.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t } from "react";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/lazyLoad.tsx
|
|
4
4
|
function r(r, i = /* @__PURE__ */ n("div", { children: "Loading..." })) {
|
|
5
5
|
let a = t(r);
|
|
6
6
|
return function(t) {
|
|
@@ -10,5 +10,4 @@ function r(r, i = /* @__PURE__ */ n("div", { children: "Loading..." })) {
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { r as lazyLoad };
|
package/dist/index128.js
CHANGED
|
@@ -4,7 +4,7 @@ import "@stylexjs/stylex";
|
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { c as s } from "react/compiler-runtime";
|
|
6
6
|
import { map as c } from "lodash-es";
|
|
7
|
-
|
|
7
|
+
// src/DataTable/components/DataTablePagination.tsx
|
|
8
8
|
var l = (l) => {
|
|
9
9
|
let u = s(45), { table: d, tableState: f, pageSizeOptions: p, apiConfig: m } = l, h = f.pagination.pageIndex, g = f.pagination.pageSize, _;
|
|
10
10
|
u[0] !== m.mode || u[1] !== m.totalRows || u[2] !== d ? (_ = m.mode === "server" ? m.totalRows : d.getFilteredRowModel().rows.length, u[0] = m.mode, u[1] = m.totalRows, u[2] = d, u[3] = _) : _ = u[3];
|
|
@@ -89,5 +89,4 @@ var l = (l) => {
|
|
|
89
89
|
children: [x, R]
|
|
90
90
|
}), u[42] = R, u[43] = x, u[44] = z) : z = u[44], z;
|
|
91
91
|
};
|
|
92
|
-
//#endregion
|
|
93
92
|
export { l as DataTablePagination };
|
package/dist/index129.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
|
4
4
|
import { c as l } from "react/compiler-runtime";
|
|
5
5
|
import { isEmpty as u, map as d } from "lodash-es";
|
|
6
6
|
import { flexRender as f } from "@tanstack/react-table";
|
|
7
|
-
|
|
7
|
+
// src/DataTable/components/DataTableTable.tsx
|
|
8
8
|
var p = (p) => {
|
|
9
9
|
let h = l(21), { table: g, columnVisibility: _, expandConfig: v, empty: y, columnsCount: b } = p, x, S, C, w;
|
|
10
10
|
if (h[0] !== _ || h[1] !== b || h[2] !== y || h[3] !== v || h[4] !== g) {
|
|
@@ -32,5 +32,4 @@ var p = (p) => {
|
|
|
32
32
|
function m(e) {
|
|
33
33
|
return /* @__PURE__ */ s(n, { children: f(e.column.columnDef.cell, e.getContext()) }, e.id);
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { p as DataTableTable };
|