@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/CHANGELOG.md
CHANGED
|
@@ -2,32 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@vlrc-fe/components` will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- `
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- `
|
|
30
|
-
- `
|
|
31
|
-
-
|
|
32
|
-
- `
|
|
33
|
-
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [2.0.2] - 2026-11-06
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **Optional Peer Dependencies**: configured `peerDependenciesMeta` with optional flags for `recharts`, `vaul`, `embla-carousel-react`, `react-day-picker`, `date-fns`, `react-i18next`, `react-resizable-panels`, `sonner`, `input-otp`, `next-themes`, `react-number-format`, `class-variance-authority`, `clsx`, and `tailwind-merge`, eliminating unnecessary peer warnings for consumer apps.
|
|
14
|
+
- **Modern Tooling & Formatting**: migrated to `oxlint` and `oxfmt` across the monorepo, standardizing code quality, type annotations, and code formatting.
|
|
15
|
+
- **Vite 8 & Vitest 5 Toolchain**: updated build and test configurations to Vite 8.3 and Vitest 5.0 with full snapshot test coverage across UI primitives.
|
|
16
|
+
- **Package Metadata**: added complete public npm package metadata, repository references, and keywords.
|
|
17
|
+
|
|
18
|
+
## [2.0.1] - 2025-01-15
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **Replaced Tailwind CSS with Meta StyleX**: migrated from runtime utility class concatenation (`tailwind-merge`, `clsx`, `class-variance-authority`) to compile-time atomic CSS-in-JS.
|
|
23
|
+
- **Zero runtime style injections**: all styles are parsed at build time using `@stylexjs/unplugin` and emitted into `dist/assets/stylex.css` with CSS `@layer` priorities.
|
|
24
|
+
- **Deterministic specificity**: eliminated CSS precedence issues and class collision bugs — the last style in `stylex.props(...)` deterministically wins without `!important`.
|
|
25
|
+
- **Theme tokens**: created `theme/tokens.stylex.ts` using `stylex.defineVars()`, binding to CSS custom properties (`--background`, `--primary`, `--card`, etc.). All dynamic themes remain compatible.
|
|
26
|
+
|
|
27
|
+
### Breaking Changes
|
|
28
|
+
|
|
29
|
+
- **`sx` prop introduced**: components now accept `sx?: stylex.StyleXStyles` for type-safe styling overrides.
|
|
30
|
+
- **`className` deprecated**: still accepted for backwards compatibility but will be removed in a future major version.
|
|
31
|
+
- **CSS import required**: consumers must import `@vlrc-fe/components/stylex.css` or configure `@stylexjs/unplugin`.
|
|
32
|
+
- **CVA removed**: `class-variance-authority` is no longer used — variants are now statically typed StyleX records.
|
|
33
|
+
|
|
34
|
+
### Component Upgrades
|
|
35
|
+
|
|
36
|
+
- `Button`: all variants and sizes ported to StyleX.
|
|
37
|
+
- `Input`, `Textarea`: full pseudo-class and invalid state styling.
|
|
38
|
+
- `Badge`: variant styles (`default`, `secondary`, `destructive`, `outline`).
|
|
39
|
+
- `Card`: variants (`default`, `glass`, `glass-strong`, `elevated`, `elevated-glass`, `auth`).
|
|
40
|
+
- `Dialog`, `AlertDialog`: keyframe animations (`fadeIn`, `scaleIn`).
|
|
41
|
+
- `Popover`, `Tooltip`: keyframe scale animations.
|
|
42
|
+
- `Checkbox`, `Switch`, `RadioGroup`, `Slider`, `Progress`: atomic StyleX styles.
|
|
43
|
+
- `Separator`, `Label`, `Skeleton`, `Spinner`: `stylex.keyframes` pulse and spin.
|
|
44
|
+
- `Table`: clean StyleX table layout.
|
|
45
|
+
- `DataTable`: toolbar, pagination, view options, row actions, column creators all ported.
|
|
46
|
+
- `FormBase`, `Form`: layout, icon adornments, and validation indicators.
|
|
47
|
+
- `Modal`, `ConfirmModal`: fully rewritten with glassmorphic and themed containers.
|
|
48
|
+
- `Select`, `MultiSelect`: tags, popover menus, and option selectors.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present VLRC Platform Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,193 +1,280 @@
|
|
|
1
1
|
# @vlrc-fe/components
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
wrapper_preference: "Always prefer Select and MultiSelect wrapper components over Radix UI/Shadcn primitives."
|
|
3
|
+
[](https://www.npmjs.com/package/@vlrc-fe/components)
|
|
4
|
+
[](https://react.dev/)
|
|
5
|
+
[](https://www.typescriptlang.org/)
|
|
6
|
+
[](https://stylexjs.com/)
|
|
7
|
+
[](../../LICENSE)
|
|
8
|
+
|
|
9
|
+
Accessible, performant React UI component library built with **Meta StyleX**, **Radix UI**, and **React Hook Form**. Ships compile-time atomic CSS with zero runtime style injection.
|
|
10
|
+
|
|
11
|
+
- **npm**: [npmjs.com/package/@vlrc-fe/components](https://www.npmjs.com/package/@vlrc-fe/components)
|
|
12
|
+
|
|
14
13
|
---
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
## Features
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
- **Meta StyleX** — compile-time atomic CSS-in-JS with deterministic specificity and zero runtime cost
|
|
18
|
+
- **Dynamic Theming** — design tokens (`colors`, `radii`, `textColors`) mapped to CSS custom properties, supporting light, dark, and custom themes
|
|
19
|
+
- **Accessible by Default** — built on WAI-ARIA compliant Radix UI primitives with keyboard navigation and screen reader support
|
|
20
|
+
- **Form System** — complete suite of form controls (`FormInput`, `FormSelect`, `FormMultiSelect`, `FormDatePicker`, `FormFileUpload`, `FormNumberInput`) integrated with React Hook Form
|
|
21
|
+
- **Data Table** — powerful `DataTable` component with selection, expander, and row actions column helpers via TanStack Table
|
|
22
|
+
- **Tree-Shakable** — full ESM and CJS support with TypeScript declaration maps and granular subpath exports
|
|
21
23
|
|
|
22
24
|
---
|
|
23
25
|
|
|
24
|
-
##
|
|
26
|
+
## Installation
|
|
25
27
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
4. **[Dialogs, ConfirmModal & useModalState Bindings](file:///Users/lvtruong/personal/vlrc/.agent/skills/platform-core-components/references/modals.md)**
|
|
31
|
-
5. **[Unified Graphic Icons Registry Guidelines](file:///Users/lvtruong/personal/vlrc/.agent/skills/platform-core-components/references/icons.md)**
|
|
28
|
+
```bash
|
|
29
|
+
pnpm add @vlrc-fe/components @stylexjs/stylex
|
|
30
|
+
pnpm add -D @stylexjs/unplugin
|
|
31
|
+
```
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Setup
|
|
36
|
+
|
|
37
|
+
### 1. Configure Bundler Plugin (Vite)
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import { defineConfig } from 'vite';
|
|
41
|
+
import react from '@vitejs/plugin-react';
|
|
42
|
+
import stylex from '@stylexjs/unplugin';
|
|
43
|
+
|
|
44
|
+
export default defineConfig({
|
|
45
|
+
plugins: [
|
|
46
|
+
stylex.vite({
|
|
47
|
+
useCSSLayers: true,
|
|
48
|
+
dev: process.env.NODE_ENV === 'development',
|
|
49
|
+
runtimeInjection: false,
|
|
50
|
+
}),
|
|
51
|
+
react(),
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
```
|
|
36
55
|
|
|
37
|
-
|
|
56
|
+
### 2. Import Stylesheet
|
|
38
57
|
|
|
39
|
-
|
|
40
|
-
When a field is rendered, `FormBase` automatically builds the following Shadcn structure:
|
|
41
|
-
1. **`<FormItem>` Container**: The primary layout block handling spacing. Supports:
|
|
42
|
-
- **Vertical (Default)**: Normal form inputs stacked sequentially.
|
|
43
|
-
- **Horizontal (`horizontal={true}`)**: Arranges labels and inputs side-by-side using unified grid properties. Perfect for dense settings panels.
|
|
44
|
-
- **Control First (`controlFirst={true}`)**: Renders the input control widget *before* the text label (used automatically by `FormCheckbox` and `FormRadioGroup` options).
|
|
45
|
-
2. **`<FieldLabel>`**: Displays the text label tied to the input via `htmlFor`.
|
|
46
|
-
- **Automatic required asterisk**: If the field rules specify `required: true` (or a string), `FormBase` automatically appends a red asterisk `<span className="text-red-500">*</span>` to the label.
|
|
47
|
-
3. **`<FieldDescription>`**: Displays supplementary description nodes or helper text.
|
|
48
|
-
4. **`<FieldError>`**: Listens to active RHF validation errors. If a field fails validation checks, the error message is instantly rendered below the input with appropriate red typography, omitting the need for developers to manually write error flags.
|
|
58
|
+
Import the compiled StyleX CSS in your entry file:
|
|
49
59
|
|
|
50
|
-
|
|
60
|
+
```ts
|
|
61
|
+
import '@vlrc-fe/components/stylex.css';
|
|
62
|
+
```
|
|
51
63
|
|
|
52
|
-
|
|
64
|
+
---
|
|
53
65
|
|
|
54
|
-
|
|
66
|
+
## Design Tokens
|
|
55
67
|
|
|
56
|
-
|
|
68
|
+
Theme tokens are available via `@vlrc-fe/components/theme`:
|
|
57
69
|
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
|
|
63
|
-
<FormInput control={control} name="title" label="Tiêu đề" rules={{ required: true }} />
|
|
64
|
-
<FormCheckbox control={control} name="isActive" label="Hoạt động" />
|
|
65
|
-
<Button type="submit">Lưu</Button>
|
|
66
|
-
</form>
|
|
67
|
-
);
|
|
70
|
+
```ts
|
|
71
|
+
import { colors, radii, textColors } from '@vlrc-fe/components/theme';
|
|
68
72
|
```
|
|
69
73
|
|
|
70
|
-
|
|
74
|
+
| Token | CSS Variable | Description |
|
|
75
|
+
| :------------------- | :-------------- | :---------------------------- |
|
|
76
|
+
| `colors.primary` | `--primary` | Brand and action color |
|
|
77
|
+
| `colors.background` | `--background` | Page background |
|
|
78
|
+
| `colors.foreground` | `--foreground` | Default text color |
|
|
79
|
+
| `colors.card` | `--card` | Card surface background |
|
|
80
|
+
| `colors.border` | `--border` | Dividers and borders |
|
|
81
|
+
| `colors.destructive` | `--destructive` | Error and destructive actions |
|
|
82
|
+
| `radii.md` | `--radius` | Base corner radius |
|
|
71
83
|
|
|
72
84
|
---
|
|
73
85
|
|
|
74
|
-
##
|
|
75
|
-
|
|
76
|
-
The `DataTable` component provides a rich, responsive, and performance-optimized data grid built on top of **Shadcn table structures** and **TanStack Table**.
|
|
77
|
-
|
|
78
|
-
### 2.1 API Definition
|
|
79
|
-
| Prop | Type | Default | Description |
|
|
80
|
-
| :--- | :--- | :--- | :--- |
|
|
81
|
-
| `columns` | `ColumnDef<T>[]` | - | **(Required)** TanStack-compliant column definitions. |
|
|
82
|
-
| `data` | `T[]` | - | **(Required)** Row data source array. |
|
|
83
|
-
| `isLoading` | `boolean` | `false` | Renders a custom glass-effect loader spinner overlay. |
|
|
84
|
-
| `pageSize` | `number` | `10` | Rows displayed per page. |
|
|
85
|
-
| `searchPlaceholder` | `string` | `'Tìm kiếm...'` | Search input placeholder. |
|
|
86
|
-
| `searchKey` | `string` | - | Accessor key for client-side search filtering. |
|
|
86
|
+
## Usage Examples
|
|
87
87
|
|
|
88
|
-
###
|
|
89
|
-
To maintain UI consistency and eliminate copy-paste boilerplate, use the built-in column creators:
|
|
90
|
-
- **Checkbox Row Selection**: `createSelectionColumn<T>()` - Automatically inserts checkbox controls in headers and rows to select records.
|
|
91
|
-
- **Expandable Children Row caret**: `createExpanderColumn<T>()` - Inserts caret icons to toggle nested layouts.
|
|
92
|
-
- **Actions Panel Column**: `createRowActionsColumn<T>({ renderActions })` - Standardizes spacing for edit, view, and delete row action buttons.
|
|
88
|
+
### UI Primitives
|
|
93
89
|
|
|
94
90
|
```tsx
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
import * as stylex from '@stylexjs/stylex';
|
|
92
|
+
import { Button, Card, CardContent, CardHeader, CardTitle, Badge } from '@vlrc-fe/components';
|
|
93
|
+
|
|
94
|
+
const styles = stylex.create({
|
|
95
|
+
header: {
|
|
96
|
+
display: 'flex',
|
|
97
|
+
justifyContent: 'space-between',
|
|
98
|
+
alignItems: 'center',
|
|
101
99
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export function UserSummaryCard({ user }) {
|
|
103
|
+
return (
|
|
104
|
+
<Card variant="glass">
|
|
105
|
+
<CardHeader>
|
|
106
|
+
<div {...stylex.props(styles.header)}>
|
|
107
|
+
<CardTitle>{user.name}</CardTitle>
|
|
108
|
+
<Badge variant="secondary">Pro Member</Badge>
|
|
109
|
+
</div>
|
|
110
|
+
</CardHeader>
|
|
111
|
+
<CardContent>
|
|
112
|
+
<Button variant="default" size="sm">
|
|
113
|
+
View Profile
|
|
114
|
+
</Button>
|
|
115
|
+
</CardContent>
|
|
116
|
+
</Card>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
106
119
|
```
|
|
107
120
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
## 📦 3. Specialized Custom Form Widgets
|
|
121
|
+
### Custom Styling with `sx` Prop
|
|
111
122
|
|
|
112
|
-
|
|
123
|
+
All components accept `sx?: stylex.StyleXStyles` for type-safe overrides:
|
|
113
124
|
|
|
114
|
-
### 3.1 `FormSelect` (Single & Multi Mode)
|
|
115
|
-
Popover-based select box featuring real-time searchable keyword filters and custom item templates.
|
|
116
125
|
```tsx
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
name="level"
|
|
120
|
-
label="Trình độ"
|
|
121
|
-
options={[
|
|
122
|
-
{ value: 'A1', label: 'Cơ bản (A1)' },
|
|
123
|
-
{ value: 'B2', label: 'Nâng cao (B2)' }
|
|
124
|
-
]}
|
|
125
|
-
/>
|
|
126
|
-
```
|
|
126
|
+
import * as stylex from '@stylexjs/stylex';
|
|
127
|
+
import { Button } from '@vlrc-fe/components';
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
const styles = stylex.create({
|
|
130
|
+
fullWidth: {
|
|
131
|
+
width: '100%',
|
|
132
|
+
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export function CheckoutButton() {
|
|
137
|
+
return <Button sx={styles.fullWidth}>Proceed to Payment</Button>;
|
|
138
|
+
}
|
|
138
139
|
```
|
|
139
140
|
|
|
140
|
-
###
|
|
141
|
-
|
|
141
|
+
### Form Controls (React Hook Form)
|
|
142
|
+
|
|
142
143
|
```tsx
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
import * as stylex from '@stylexjs/stylex';
|
|
145
|
+
import { useForm } from 'react-hook-form';
|
|
146
|
+
import { Form, FormInput, FormSelect, FormDatePicker, Button } from '@vlrc-fe/components';
|
|
147
|
+
|
|
148
|
+
const styles = stylex.create({
|
|
149
|
+
form: {
|
|
150
|
+
display: 'flex',
|
|
151
|
+
flexDirection: 'column',
|
|
152
|
+
gap: '1rem',
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export function LessonForm() {
|
|
157
|
+
const form = useForm({
|
|
158
|
+
defaultValues: { title: '', level: 'A1', schedule: null },
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<Form {...form}>
|
|
163
|
+
<form onSubmit={form.handleSubmit(console.log)} {...stylex.props(styles.form)}>
|
|
164
|
+
<FormInput
|
|
165
|
+
control={form.control}
|
|
166
|
+
name="title"
|
|
167
|
+
label="Lesson Title"
|
|
168
|
+
placeholder="e.g. Daily Vocabulary"
|
|
169
|
+
rules={{ required: 'Title is required' }}
|
|
170
|
+
/>
|
|
171
|
+
<FormSelect
|
|
172
|
+
control={form.control}
|
|
173
|
+
name="level"
|
|
174
|
+
label="Proficiency Level"
|
|
175
|
+
options={[
|
|
176
|
+
{ value: 'A1', label: 'Beginner (A1)' },
|
|
177
|
+
{ value: 'B2', label: 'Upper Intermediate (B2)' },
|
|
178
|
+
]}
|
|
179
|
+
/>
|
|
180
|
+
<FormDatePicker control={form.control} name="schedule" label="Start Date" />
|
|
181
|
+
<Button type="submit">Create Lesson</Button>
|
|
182
|
+
</form>
|
|
183
|
+
</Form>
|
|
184
|
+
);
|
|
185
|
+
}
|
|
149
186
|
```
|
|
150
187
|
|
|
151
|
-
###
|
|
152
|
-
|
|
188
|
+
### DataTable
|
|
189
|
+
|
|
153
190
|
```tsx
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
191
|
+
import { useMemo } from 'react';
|
|
192
|
+
import {
|
|
193
|
+
DataTable,
|
|
194
|
+
createSelectionColumn,
|
|
195
|
+
createRowActionsColumn,
|
|
196
|
+
Button,
|
|
197
|
+
} from '@vlrc-fe/components';
|
|
198
|
+
|
|
199
|
+
export function UserList({ users, isLoading }) {
|
|
200
|
+
const columns = useMemo(
|
|
201
|
+
() => [
|
|
202
|
+
createSelectionColumn(),
|
|
203
|
+
{ accessorKey: 'name', header: 'Full Name' },
|
|
204
|
+
{ accessorKey: 'email', header: 'Email Address' },
|
|
205
|
+
createRowActionsColumn({
|
|
206
|
+
renderActions: ({ row }) => (
|
|
207
|
+
<Button variant="ghost" size="icon-sm" onClick={() => editUser(row.original.id)}>
|
|
208
|
+
Edit
|
|
209
|
+
</Button>
|
|
210
|
+
),
|
|
211
|
+
}),
|
|
212
|
+
],
|
|
213
|
+
[],
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
return (
|
|
217
|
+
<DataTable
|
|
218
|
+
columns={columns}
|
|
219
|
+
data={users}
|
|
220
|
+
isLoading={isLoading}
|
|
221
|
+
searchKey="name"
|
|
222
|
+
searchPlaceholder="Filter users..."
|
|
223
|
+
pageSize={10}
|
|
224
|
+
/>
|
|
225
|
+
);
|
|
226
|
+
}
|
|
161
227
|
```
|
|
162
228
|
|
|
163
|
-
###
|
|
164
|
-
|
|
229
|
+
### Icons
|
|
230
|
+
|
|
165
231
|
```tsx
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
232
|
+
import * as stylex from '@stylexjs/stylex';
|
|
233
|
+
import { Icons } from '@vlrc-fe/components/Icons';
|
|
234
|
+
|
|
235
|
+
const styles = stylex.create({
|
|
236
|
+
status: {
|
|
237
|
+
display: 'flex',
|
|
238
|
+
gap: '0.5rem',
|
|
239
|
+
alignItems: 'center',
|
|
240
|
+
},
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
export function StatusIndicator() {
|
|
244
|
+
return (
|
|
245
|
+
<div {...stylex.props(styles.status)}>
|
|
246
|
+
<Icons.CheckCircle2 style={{ color: 'green' }} />
|
|
247
|
+
<span>All systems operational</span>
|
|
248
|
+
</div>
|
|
249
|
+
);
|
|
250
|
+
}
|
|
174
251
|
```
|
|
175
252
|
|
|
176
253
|
---
|
|
177
254
|
|
|
178
|
-
##
|
|
255
|
+
## Subpath Exports
|
|
256
|
+
|
|
257
|
+
| Export Path | Contents |
|
|
258
|
+
| :------------------------------- | :---------------------------------------------- |
|
|
259
|
+
| `@vlrc-fe/components` | All UI primitives, form controls, and DataTable |
|
|
260
|
+
| `@vlrc-fe/components/ui/*` | Granular primitive components |
|
|
261
|
+
| `@vlrc-fe/components/DataTable` | DataTable core and column utilities |
|
|
262
|
+
| `@vlrc-fe/components/Icons` | Centralized SVG icon registry |
|
|
263
|
+
| `@vlrc-fe/components/theme` | StyleX design tokens |
|
|
264
|
+
| `@vlrc-fe/components/stylex.css` | Pre-compiled atomic CSS stylesheet |
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Scripts
|
|
179
269
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
270
|
+
```bash
|
|
271
|
+
pnpm build # Vite library build + tsc declarations
|
|
272
|
+
pnpm lint # Oxlint
|
|
273
|
+
pnpm format # Oxfmt
|
|
274
|
+
```
|
|
185
275
|
|
|
186
276
|
---
|
|
187
277
|
|
|
188
|
-
##
|
|
278
|
+
## License
|
|
189
279
|
|
|
190
|
-
|
|
191
|
-
- Build package: `pnpm build`
|
|
192
|
-
- Version package: `pnpm version:packages`
|
|
193
|
-
- Publish package: `pnpm publish:packages`
|
|
280
|
+
MIT © [VLRC Platform Team](https://github.com/vulinhnopro2704/vlrc-fe)
|
package/dist/ConfirmModal.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export interface ConfirmationDialogProps {
|
|
|
12
12
|
type?: 'warning' | 'info' | 'success' | 'danger';
|
|
13
13
|
isLoading?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export default function ConfirmModal({ isOpen, onClose, onConfirm, title, message, confirmText, cancelText, closeLabel, processingText, type, isLoading }: ConfirmationDialogProps): React.JSX.Element | null;
|
|
15
|
+
export default function ConfirmModal({ isOpen, onClose, onConfirm, title, message, confirmText, cancelText, closeLabel, processingText, type, isLoading, }: ConfirmationDialogProps): React.JSX.Element | null;
|
|
16
16
|
//# sourceMappingURL=ConfirmModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../src/ConfirmModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoL/B,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,WAAwB,EACxB,UAAkB,EAClB,UAAmB,EACnB,cAAgC,EAChC,IAAgB,EAChB,SAAiB,
|
|
1
|
+
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../src/ConfirmModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoL/B,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,WAAwB,EACxB,UAAkB,EAClB,UAAmB,EACnB,cAAgC,EAChC,IAAgB,EAChB,SAAiB,GAClB,EAAE,uBAAuB,4BA4IzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ColumnDef } from '@tanstack/react-table';
|
|
2
2
|
import type { DataTableProps, DataTableValue } from './types';
|
|
3
|
-
export declare const DataTable: <TData>({ data, columns, initialState, empty, search, pagination: paginationConfig, actions, api, infiniteScroll, expand, className, containerClassName, getRowId, renderToolbarRight }: DataTableProps<TData> & {
|
|
3
|
+
export declare const DataTable: <TData>({ data, columns, initialState, empty, search, pagination: paginationConfig, actions, api, infiniteScroll, expand, className, containerClassName, getRowId, renderToolbarRight, }: DataTableProps<TData> & {
|
|
4
4
|
columns: ColumnDef<TData, DataTableValue>[];
|
|
5
5
|
}) => import("react").JSX.Element;
|
|
6
6
|
export default DataTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/DataTable/DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAC;AAc/B,OAAO,KAAK,EAOV,cAAc,EAGd,cAAc,EACf,MAAM,SAAS,CAAC;AAwBjB,eAAO,MAAM,SAAS,GAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/DataTable/DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAC;AAc/B,OAAO,KAAK,EAOV,cAAc,EAGd,cAAc,EACf,MAAM,SAAS,CAAC;AAwBjB,eAAO,MAAM,SAAS,GAAI,KAAK,oLAe5B,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,CAAC;CAC7C,gCAoMA,CAAC;eAEa,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Table } from '@tanstack/react-table';
|
|
2
2
|
import type { DataTableApiConfig } from '../types';
|
|
3
|
-
export declare const DataTablePagination: <TData>({ table, tableState, pageSizeOptions, apiConfig }: {
|
|
3
|
+
export declare const DataTablePagination: <TData>({ table, tableState, pageSizeOptions, apiConfig, }: {
|
|
4
4
|
table: Table<TData>;
|
|
5
5
|
tableState: Table<TData>['getState'] extends () => infer S ? S : never;
|
|
6
6
|
pageSizeOptions: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTablePagination.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTablePagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAUnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA4BnD,eAAO,MAAM,mBAAmB,GAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTablePagination.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTablePagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAUnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA4BnD,eAAO,MAAM,mBAAmB,GAAI,KAAK,sDAKtC;IACD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,SAAS,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,kBAAkB,CAAC;CAC/B,gCA2DA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Row, Table } from '@tanstack/react-table';
|
|
2
|
-
export declare const DataTableRowActions: <TData>({ row, table }: {
|
|
2
|
+
export declare const DataTableRowActions: <TData>({ row, table, }: {
|
|
3
3
|
row: Row<TData>;
|
|
4
4
|
table: Table<TData>;
|
|
5
5
|
}) => import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableRowActions.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableRowActions.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAcxD,eAAO,MAAM,mBAAmB,GAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTableRowActions.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableRowActions.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAcxD,eAAO,MAAM,mBAAmB,GAAI,KAAK,mBAGtC;IACD,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACrB,uCAiDA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExpandedState, type Table, type VisibilityState } from '@tanstack/react-table';
|
|
2
2
|
import type { DataTableEmptyConfig, DataTableExpandConfig } from '../types';
|
|
3
|
-
export declare const DataTableTable: <TData>({ table, columnVisibility, expandedState, expandConfig, empty, columnsCount }: {
|
|
3
|
+
export declare const DataTableTable: <TData>({ table, columnVisibility, expandedState, expandConfig, empty, columnsCount, }: {
|
|
4
4
|
table: Table<TData>;
|
|
5
5
|
columnVisibility: VisibilityState;
|
|
6
6
|
expandedState: ExpandedState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableTable.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableTable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,KAAK,EACV,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAW/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE5E,eAAO,MAAM,cAAc,GAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTableTable.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableTable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,KAAK,EACV,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAW/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE5E,eAAO,MAAM,cAAc,GAAI,KAAK,kFAOjC;IACD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,gBAAgB,EAAE,eAAe,CAAC;IAClC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC3C,KAAK,EAAE,oBAAoB,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;CACtB,gCAgEA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { Table } from '@tanstack/react-table';
|
|
3
|
-
export declare const DataTableToolbar: <TData>({ table, placeholder, debounceMs, right }: {
|
|
3
|
+
export declare const DataTableToolbar: <TData>({ table, placeholder, debounceMs, right, }: {
|
|
4
4
|
table: Table<TData>;
|
|
5
5
|
placeholder: string;
|
|
6
6
|
debounceMs: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAgBnD,eAAO,MAAM,gBAAgB,GAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../src/DataTable/components/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAgBnD,eAAO,MAAM,gBAAgB,GAAI,KAAK,8CAKnC;IACD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB,gCA2CA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Table, VisibilityState } from '@tanstack/react-table';
|
|
2
|
-
export declare const DataTableViewOptions: <TData>({ table, columnVisibility }: {
|
|
2
|
+
export declare const DataTableViewOptions: <TData>({ table, columnVisibility, }: {
|
|
3
3
|
table: Table<TData>;
|
|
4
4
|
columnVisibility: VisibilityState;
|
|
5
5
|
}) => import("react").JSX.Element;
|