ikoncomponents 1.4.8 → 1.5.0
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/bin.js +2 -0
- package/dist/commands/init.js +57 -0
- package/dist/index.js +3 -116
- package/dist/utlis/copyDir.js +7 -0
- package/package.json +18 -92
- package/templates/default/hooks/use-mobile.ts +19 -0
- package/templates/default/ikonShade/accordion.tsx +66 -0
- package/templates/default/ikonShade/alert-dialog.tsx +179 -0
- package/templates/default/ikonShade/alert.tsx +66 -0
- package/templates/default/ikonShade/aspect-ratio.tsx +11 -0
- package/templates/default/ikonShade/avatar.tsx +53 -0
- package/templates/default/ikonShade/badge.tsx +49 -0
- package/templates/default/ikonShade/breadcrumb.tsx +109 -0
- package/templates/default/ikonShade/button.tsx +64 -0
- package/templates/default/ikonShade/calendar.tsx +227 -0
- package/templates/default/ikonShade/card.tsx +92 -0
- package/templates/default/ikonShade/checkbox.tsx +33 -0
- package/templates/default/ikonShade/collapsible.tsx +33 -0
- package/templates/default/ikonShade/command.tsx +184 -0
- package/templates/default/ikonShade/date-input.tsx +259 -0
- package/templates/default/ikonShade/date-range-picker.tsx +103 -0
- package/templates/default/ikonShade/dialog.tsx +143 -0
- package/templates/default/ikonShade/drawer.tsx +134 -0
- package/templates/default/ikonShade/dropdown-menu.tsx +259 -0
- package/templates/default/ikonShade/form.tsx +166 -0
- package/templates/default/ikonShade/hover-card.tsx +44 -0
- package/templates/default/ikonShade/input-otp.tsx +71 -0
- package/templates/default/ikonShade/input.tsx +22 -0
- package/templates/default/ikonShade/label.tsx +24 -0
- package/templates/default/ikonShade/navigation-menu.tsx +195 -0
- package/templates/default/ikonShade/popover.tsx +48 -0
- package/templates/default/ikonShade/progress.tsx +40 -0
- package/templates/default/ikonShade/radio-group.tsx +45 -0
- package/templates/default/ikonShade/scroll-area.tsx +58 -0
- package/templates/default/ikonShade/select.tsx +184 -0
- package/templates/default/ikonShade/separator.tsx +28 -0
- package/templates/default/ikonShade/sheet.tsx +139 -0
- package/templates/default/ikonShade/sidebar.tsx +726 -0
- package/templates/default/ikonShade/skeleton.tsx +15 -0
- package/templates/default/ikonShade/slider.tsx +64 -0
- package/templates/default/ikonShade/sonner.tsx +25 -0
- package/templates/default/ikonShade/switch.tsx +31 -0
- package/templates/default/ikonShade/table.tsx +116 -0
- package/templates/default/ikonShade/tabs.tsx +67 -0
- package/templates/default/ikonShade/textarea.tsx +18 -0
- package/templates/default/ikonShade/toggle-group.tsx +83 -0
- package/templates/default/ikonShade/toggle.tsx +47 -0
- package/templates/default/ikonShade/tooltip.tsx +65 -0
- package/templates/default/ikonShade/workflow.tsx +119 -0
- package/templates/default/ikoncomponents/action-menu/index.tsx +108 -0
- package/templates/default/ikoncomponents/action-menu/type.ts +18 -0
- package/templates/default/ikoncomponents/activity-sheet/index.tsx +63 -0
- package/templates/default/ikoncomponents/alert-dialog/dialog-context.tsx +65 -0
- package/templates/default/ikoncomponents/alert-dialog/index.tsx +80 -0
- package/templates/default/ikoncomponents/app-breadcrumb/BreadcrumbProvider.tsx +68 -0
- package/templates/default/ikoncomponents/app-breadcrumb/index.tsx +222 -0
- package/templates/default/ikoncomponents/big-calendar/big-calender-event/index.tsx +38 -0
- package/templates/default/ikoncomponents/big-calendar/big-calender-toolbar/index.tsx +81 -0
- package/templates/default/ikoncomponents/big-calendar/index.css +879 -0
- package/templates/default/ikoncomponents/big-calendar/index.tsx +59 -0
- package/templates/default/ikoncomponents/big-calendar/type.ts +37 -0
- package/templates/default/ikoncomponents/buttons/index.tsx +127 -0
- package/templates/default/ikoncomponents/combobox-input/index.tsx +75 -0
- package/templates/default/ikoncomponents/combobox-input/type.ts +14 -0
- package/templates/default/ikoncomponents/custom-combo-dropdown/index.tsx +242 -0
- package/templates/default/ikoncomponents/data-table/datatable-column-filter/index.tsx +80 -0
- package/templates/default/ikoncomponents/data-table/datatable-faceted-filter/index.tsx +149 -0
- package/templates/default/ikoncomponents/data-table/datatable-filter-menu/index.tsx +98 -0
- package/templates/default/ikoncomponents/data-table/datatable-pagination/index.tsx +119 -0
- package/templates/default/ikoncomponents/data-table/datatable-toolbar/index.tsx +45 -0
- package/templates/default/ikoncomponents/data-table/function.ts +7 -0
- package/templates/default/ikoncomponents/data-table/index.tsx +549 -0
- package/templates/default/ikoncomponents/data-table/type.ts +75 -0
- package/templates/default/ikoncomponents/e-chart/index.tsx +183 -0
- package/templates/default/ikoncomponents/file-input/index.tsx +27 -0
- package/templates/default/ikoncomponents/fileUpload/index.tsx +121 -0
- package/templates/default/ikoncomponents/form-fields/combobox-input/index.tsx +111 -0
- package/templates/default/ikoncomponents/form-fields/combobox-input-value/index.tsx +121 -0
- package/templates/default/ikoncomponents/form-fields/date-input/index.tsx +80 -0
- package/templates/default/ikoncomponents/form-fields/file-input/index.tsx +9 -0
- package/templates/default/ikoncomponents/form-fields/input/index.tsx +27 -0
- package/{dist/ikoncomponents/form-fields/multi-combobox-input/index.js → templates/default/ikoncomponents/form-fields/multi-combobox-input/index.tsx} +574 -381
- package/templates/default/ikoncomponents/form-fields/otp-input/index.tsx +39 -0
- package/templates/default/ikoncomponents/form-fields/password-input/index.tsx +52 -0
- package/templates/default/ikoncomponents/form-fields/phone-input/index.tsx +7 -0
- package/templates/default/ikoncomponents/form-fields/textarea/index.tsx +28 -0
- package/templates/default/ikoncomponents/form-fields/types/index.ts +46 -0
- package/templates/default/ikoncomponents/glowing-effect/index.tsx +171 -0
- package/templates/default/ikoncomponents/icon/index.tsx +22 -0
- package/templates/default/ikoncomponents/image-cropper-upload/components/cropperImg.css +19 -0
- package/{dist/ikoncomponents/image-cropper-upload/components/newCropper.js → templates/default/ikoncomponents/image-cropper-upload/components/newCropper.tsx} +117 -85
- package/templates/default/ikoncomponents/image-cropper-upload/components/newImageUploadForm.tsx +352 -0
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form/index.tsx +250 -0
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.tsx +32 -0
- package/{dist/ikoncomponents/image-cropper-upload/image-cropper/index.js → templates/default/ikoncomponents/image-cropper-upload/image-cropper/index.tsx} +119 -87
- package/templates/default/ikoncomponents/image-cropper-upload/index.tsx +95 -0
- package/templates/default/ikoncomponents/image-cropper-upload/utils/index.ts +117 -0
- package/templates/default/ikoncomponents/loading-spinner/index.tsx +43 -0
- package/templates/default/ikoncomponents/main-layout/RefreshContext.tsx +30 -0
- package/templates/default/ikoncomponents/main-layout/SidebarNavContext.tsx +103 -0
- package/templates/default/ikoncomponents/main-layout/app-sidebar.tsx +36 -0
- package/templates/default/ikoncomponents/main-layout/footer.tsx +21 -0
- package/templates/default/ikoncomponents/main-layout/header.tsx +53 -0
- package/templates/default/ikoncomponents/main-layout/index.tsx +43 -0
- package/templates/default/ikoncomponents/main-layout/main-sidebar.tsx +389 -0
- package/templates/default/ikoncomponents/main-layout/nav-main.tsx +103 -0
- package/templates/default/ikoncomponents/multi-combobox/index.tsx +345 -0
- package/templates/default/ikoncomponents/no-data/index.tsx +11 -0
- package/templates/default/ikoncomponents/page-wrapper/index.tsx +30 -0
- package/templates/default/ikoncomponents/password-strength-meter/index.tsx +49 -0
- package/templates/default/ikoncomponents/phone-input/index.tsx +72 -0
- package/templates/default/ikoncomponents/provider-wrapper/index.tsx +32 -0
- package/templates/default/ikoncomponents/search-input/index.tsx +18 -0
- package/templates/default/ikoncomponents/sheet/index.tsx +34 -0
- package/templates/default/ikoncomponents/simple-widget/index.tsx +54 -0
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-table.tsx +34 -0
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-widget.tsx +13 -0
- package/templates/default/ikoncomponents/tabs/index.tsx +139 -0
- package/{dist/ikoncomponents/tabs/type.d.ts → templates/default/ikoncomponents/tabs/type.ts} +20 -20
- package/{dist/ikoncomponents/theme-toggle-btn/index.js → templates/default/ikoncomponents/theme-toggle-btn/index.tsx} +189 -118
- package/templates/default/ikoncomponents/title-progress/index.tsx +41 -0
- package/templates/default/ikoncomponents/tooltip/index.tsx +17 -0
- package/templates/default/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.tsx +33 -0
- package/templates/default/ikoncomponents/twolevel-dropdown/index.tsx +279 -0
- package/templates/default/ikoncomponents/upload-tab/index.tsx +237 -0
- package/templates/default/ikoncomponents/widgets/index.tsx +81 -0
- package/templates/default/ikoncomponents/widgets/type.ts +11 -0
- package/templates/default/ikoncomponents/work-in-progress/index.tsx +16 -0
- package/{dist/index.d.ts → templates/default/index.ts} +234 -139
- package/templates/default/styles.css +1159 -0
- package/templates/default/utils/actions/account/index.ts +33 -0
- package/templates/default/utils/actions/account/type.ts +4 -0
- package/{dist/utils/actions/auth/index.js → templates/default/utils/actions/auth/index.ts} +69 -58
- package/templates/default/utils/actions/common/revalidate.ts +18 -0
- package/templates/default/utils/actions/common/type.ts +4 -0
- package/{dist/utils/actions/common/utils.js → templates/default/utils/actions/common/utils.ts} +28 -25
- package/templates/default/utils/actions/software/index.ts +106 -0
- package/templates/default/utils/api/accountService/index.ts +103 -0
- package/templates/default/utils/api/accountService/type.ts +4 -0
- package/templates/default/utils/api/file-upload/index.ts +103 -0
- package/templates/default/utils/api/file-upload/type.ts +8 -0
- package/{dist/utils/api/ikonBaseApi.js → templates/default/utils/api/ikonBaseApi.ts} +132 -104
- package/templates/default/utils/api/loginService/index.ts +108 -0
- package/{dist/utils/api/loginService/type.d.ts → templates/default/utils/api/loginService/type.ts} +35 -32
- package/templates/default/utils/api/softwareService/index.ts +356 -0
- package/templates/default/utils/api/softwareService/type.ts +62 -0
- package/{dist/utils/border-radius-provider.js → templates/default/utils/border-radius-provider.tsx} +59 -35
- package/templates/default/utils/cn.ts +6 -0
- package/{dist/utils/font-provider.js → templates/default/utils/font-provider.tsx} +61 -37
- package/templates/default/utils/session/cookieSession.ts +49 -0
- package/templates/default/utils/theme-provider/index.tsx +11 -0
- package/templates/default/utils/token-management/index.ts +115 -0
- package/templates/default/utils/token-management/types.ts +6 -0
- package/dist/hooks/use-mobile.d.ts +0 -2
- package/dist/hooks/use-mobile.d.ts.map +0 -1
- package/dist/hooks/use-mobile.js +0 -15
- package/dist/ikoncomponents/action-menu/index.d.ts +0 -6
- package/dist/ikoncomponents/action-menu/index.d.ts.map +0 -1
- package/dist/ikoncomponents/action-menu/index.js +0 -42
- package/dist/ikoncomponents/action-menu/type.d.ts +0 -15
- package/dist/ikoncomponents/action-menu/type.d.ts.map +0 -1
- package/dist/ikoncomponents/action-menu/type.js +0 -1
- package/dist/ikoncomponents/activity-sheet/index.d.ts +0 -12
- package/dist/ikoncomponents/activity-sheet/index.d.ts.map +0 -1
- package/dist/ikoncomponents/activity-sheet/index.js +0 -23
- package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts +0 -22
- package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts.map +0 -1
- package/dist/ikoncomponents/alert-dialog/dialog-context.js +0 -30
- package/dist/ikoncomponents/alert-dialog/index.d.ts +0 -15
- package/dist/ikoncomponents/alert-dialog/index.d.ts.map +0 -1
- package/dist/ikoncomponents/alert-dialog/index.js +0 -20
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts +0 -19
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts.map +0 -1
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.js +0 -43
- package/dist/ikoncomponents/app-breadcrumb/index.d.ts +0 -6
- package/dist/ikoncomponents/app-breadcrumb/index.d.ts.map +0 -1
- package/dist/ikoncomponents/app-breadcrumb/index.js +0 -57
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts +0 -6
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts.map +0 -1
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.js +0 -16
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts +0 -3
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts.map +0 -1
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.js +0 -39
- package/dist/ikoncomponents/big-calendar/index.d.ts +0 -4
- package/dist/ikoncomponents/big-calendar/index.d.ts.map +0 -1
- package/dist/ikoncomponents/big-calendar/index.js +0 -35
- package/dist/ikoncomponents/big-calendar/type.d.ts +0 -32
- package/dist/ikoncomponents/big-calendar/type.d.ts.map +0 -1
- package/dist/ikoncomponents/big-calendar/type.js +0 -1
- package/dist/ikoncomponents/buttons/index.d.ts +0 -19
- package/dist/ikoncomponents/buttons/index.d.ts.map +0 -1
- package/dist/ikoncomponents/buttons/index.js +0 -38
- package/dist/ikoncomponents/combobox-input/index.d.ts +0 -3
- package/dist/ikoncomponents/combobox-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/combobox-input/index.js +0 -18
- package/dist/ikoncomponents/combobox-input/type.d.ts +0 -14
- package/dist/ikoncomponents/combobox-input/type.d.ts.map +0 -1
- package/dist/ikoncomponents/combobox-input/type.js +0 -1
- package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts +0 -22
- package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts.map +0 -1
- package/dist/ikoncomponents/custom-combo-dropdown/index.js +0 -85
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +0 -22
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +0 -35
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +0 -38
- package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/datatable-pagination/index.js +0 -13
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +0 -18
- package/dist/ikoncomponents/data-table/function.d.ts +0 -2
- package/dist/ikoncomponents/data-table/function.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/function.js +0 -6
- package/dist/ikoncomponents/data-table/index.d.ts +0 -3
- package/dist/ikoncomponents/data-table/index.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/index.js +0 -223
- package/dist/ikoncomponents/data-table/type.d.ts +0 -61
- package/dist/ikoncomponents/data-table/type.d.ts.map +0 -1
- package/dist/ikoncomponents/data-table/type.js +0 -1
- package/dist/ikoncomponents/e-chart/index.d.ts +0 -16
- package/dist/ikoncomponents/e-chart/index.d.ts.map +0 -1
- package/dist/ikoncomponents/e-chart/index.js +0 -115
- package/dist/ikoncomponents/file-input/index.d.ts +0 -2
- package/dist/ikoncomponents/file-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/file-input/index.js +0 -21
- package/dist/ikoncomponents/fileUpload/index.d.ts +0 -16
- package/dist/ikoncomponents/fileUpload/index.d.ts.map +0 -1
- package/dist/ikoncomponents/fileUpload/index.js +0 -69
- package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/combobox-input/index.js +0 -21
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts +0 -19
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.js +0 -26
- package/dist/ikoncomponents/form-fields/date-input/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/date-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/date-input/index.js +0 -15
- package/dist/ikoncomponents/form-fields/file-input/index.d.ts +0 -2
- package/dist/ikoncomponents/form-fields/file-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/file-input/index.js +0 -4
- package/dist/ikoncomponents/form-fields/input/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/input/index.js +0 -18
- package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts +0 -7
- package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/otp-input/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/otp-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/otp-input/index.js +0 -18
- package/dist/ikoncomponents/form-fields/password-input/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/password-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/password-input/index.js +0 -23
- package/dist/ikoncomponents/form-fields/phone-input/index.d.ts +0 -2
- package/dist/ikoncomponents/form-fields/phone-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/phone-input/index.js +0 -4
- package/dist/ikoncomponents/form-fields/textarea/index.d.ts +0 -3
- package/dist/ikoncomponents/form-fields/textarea/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/textarea/index.js +0 -18
- package/dist/ikoncomponents/form-fields/types/index.d.ts +0 -37
- package/dist/ikoncomponents/form-fields/types/index.d.ts.map +0 -1
- package/dist/ikoncomponents/form-fields/types/index.js +0 -1
- package/dist/ikoncomponents/glowing-effect/index.d.ts +0 -15
- package/dist/ikoncomponents/glowing-effect/index.d.ts.map +0 -1
- package/dist/ikoncomponents/glowing-effect/index.js +0 -84
- package/dist/ikoncomponents/icon/index.d.ts +0 -9
- package/dist/ikoncomponents/icon/index.d.ts.map +0 -1
- package/dist/ikoncomponents/icon/index.js +0 -23
- package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts +0 -16
- package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts +0 -8
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.js +0 -145
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts +0 -7
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.js +0 -92
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts +0 -7
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.js +0 -14
- package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts +0 -15
- package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/index.d.ts +0 -28
- package/dist/ikoncomponents/image-cropper-upload/index.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/index.js +0 -49
- package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts +0 -17
- package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts.map +0 -1
- package/dist/ikoncomponents/image-cropper-upload/utils/index.js +0 -73
- package/dist/ikoncomponents/loading-spinner/index.d.ts +0 -10
- package/dist/ikoncomponents/loading-spinner/index.d.ts.map +0 -1
- package/dist/ikoncomponents/loading-spinner/index.js +0 -19
- package/dist/ikoncomponents/main-layout/RefreshContext.d.ts +0 -11
- package/dist/ikoncomponents/main-layout/RefreshContext.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/RefreshContext.js +0 -17
- package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts +0 -34
- package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/SidebarNavContext.js +0 -52
- package/dist/ikoncomponents/main-layout/app-sidebar.d.ts +0 -4
- package/dist/ikoncomponents/main-layout/app-sidebar.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/app-sidebar.js +0 -24
- package/dist/ikoncomponents/main-layout/footer.d.ts +0 -2
- package/dist/ikoncomponents/main-layout/footer.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/footer.js +0 -5
- package/dist/ikoncomponents/main-layout/header.d.ts +0 -4
- package/dist/ikoncomponents/main-layout/header.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/header.js +0 -15
- package/dist/ikoncomponents/main-layout/index.d.ts +0 -7
- package/dist/ikoncomponents/main-layout/index.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/index.js +0 -12
- package/dist/ikoncomponents/main-layout/main-sidebar.d.ts +0 -61
- package/dist/ikoncomponents/main-layout/main-sidebar.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/main-sidebar.js +0 -119
- package/dist/ikoncomponents/main-layout/nav-main.d.ts +0 -12
- package/dist/ikoncomponents/main-layout/nav-main.d.ts.map +0 -1
- package/dist/ikoncomponents/main-layout/nav-main.js +0 -33
- package/dist/ikoncomponents/multi-combobox/index.d.ts +0 -14
- package/dist/ikoncomponents/multi-combobox/index.d.ts.map +0 -1
- package/dist/ikoncomponents/multi-combobox/index.js +0 -202
- package/dist/ikoncomponents/no-data/index.d.ts +0 -4
- package/dist/ikoncomponents/no-data/index.d.ts.map +0 -1
- package/dist/ikoncomponents/no-data/index.js +0 -5
- package/dist/ikoncomponents/page-wrapper/index.d.ts +0 -10
- package/dist/ikoncomponents/page-wrapper/index.d.ts.map +0 -1
- package/dist/ikoncomponents/page-wrapper/index.js +0 -7
- package/dist/ikoncomponents/password-strength-meter/index.d.ts +0 -4
- package/dist/ikoncomponents/password-strength-meter/index.d.ts.map +0 -1
- package/dist/ikoncomponents/password-strength-meter/index.js +0 -40
- package/dist/ikoncomponents/phone-input/index.d.ts +0 -2
- package/dist/ikoncomponents/phone-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/phone-input/index.js +0 -41
- package/dist/ikoncomponents/provider-wrapper/index.d.ts +0 -7
- package/dist/ikoncomponents/provider-wrapper/index.d.ts.map +0 -1
- package/dist/ikoncomponents/provider-wrapper/index.js +0 -10
- package/dist/ikoncomponents/search-input/index.d.ts +0 -2
- package/dist/ikoncomponents/search-input/index.d.ts.map +0 -1
- package/dist/ikoncomponents/search-input/index.js +0 -19
- package/dist/ikoncomponents/sheet/index.d.ts +0 -11
- package/dist/ikoncomponents/sheet/index.d.ts.map +0 -1
- package/dist/ikoncomponents/sheet/index.js +0 -6
- package/dist/ikoncomponents/simple-widget/index.d.ts +0 -15
- package/dist/ikoncomponents/simple-widget/index.d.ts.map +0 -1
- package/dist/ikoncomponents/simple-widget/index.js +0 -14
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts +0 -6
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts.map +0 -1
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.js +0 -6
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts +0 -4
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts.map +0 -1
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.js +0 -5
- package/dist/ikoncomponents/tabs/index.d.ts +0 -3
- package/dist/ikoncomponents/tabs/index.d.ts.map +0 -1
- package/dist/ikoncomponents/tabs/index.js +0 -50
- package/dist/ikoncomponents/tabs/type.d.ts.map +0 -1
- package/dist/ikoncomponents/tabs/type.js +0 -2
- package/dist/ikoncomponents/theme-toggle-btn/index.d.ts +0 -2
- package/dist/ikoncomponents/theme-toggle-btn/index.d.ts.map +0 -1
- package/dist/ikoncomponents/title-progress/index.d.ts +0 -13
- package/dist/ikoncomponents/title-progress/index.d.ts.map +0 -1
- package/dist/ikoncomponents/title-progress/index.js +0 -10
- package/dist/ikoncomponents/tooltip/index.d.ts +0 -6
- package/dist/ikoncomponents/tooltip/index.d.ts.map +0 -1
- package/dist/ikoncomponents/tooltip/index.js +0 -5
- package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.d.ts +0 -10
- package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.d.ts.map +0 -1
- package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.js +0 -24
- package/dist/ikoncomponents/twolevel-dropdown/index.d.ts +0 -32
- package/dist/ikoncomponents/twolevel-dropdown/index.d.ts.map +0 -1
- package/dist/ikoncomponents/twolevel-dropdown/index.js +0 -143
- package/dist/ikoncomponents/upload-tab/index.d.ts +0 -2
- package/dist/ikoncomponents/upload-tab/index.d.ts.map +0 -1
- package/dist/ikoncomponents/upload-tab/index.js +0 -92
- package/dist/ikoncomponents/widgets/index.d.ts +0 -3
- package/dist/ikoncomponents/widgets/index.d.ts.map +0 -1
- package/dist/ikoncomponents/widgets/index.js +0 -14
- package/dist/ikoncomponents/widgets/type.d.ts +0 -11
- package/dist/ikoncomponents/widgets/type.d.ts.map +0 -1
- package/dist/ikoncomponents/widgets/type.js +0 -2
- package/dist/ikoncomponents/work-in-progress/index.d.ts +0 -2
- package/dist/ikoncomponents/work-in-progress/index.d.ts.map +0 -1
- package/dist/ikoncomponents/work-in-progress/index.js +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/shadcn/accordion.d.ts +0 -8
- package/dist/shadcn/accordion.d.ts.map +0 -1
- package/dist/shadcn/accordion.js +0 -33
- package/dist/shadcn/alert-dialog.d.ts +0 -21
- package/dist/shadcn/alert-dialog.d.ts.map +0 -1
- package/dist/shadcn/alert-dialog.js +0 -83
- package/dist/shadcn/alert.d.ts +0 -10
- package/dist/shadcn/alert.d.ts.map +0 -1
- package/dist/shadcn/alert.js +0 -38
- package/dist/shadcn/aspect-ratio.d.ts +0 -4
- package/dist/shadcn/aspect-ratio.d.ts.map +0 -1
- package/dist/shadcn/aspect-ratio.js +0 -19
- package/dist/shadcn/avatar.d.ts +0 -7
- package/dist/shadcn/avatar.d.ts.map +0 -1
- package/dist/shadcn/avatar.js +0 -28
- package/dist/shadcn/badge.d.ts +0 -10
- package/dist/shadcn/badge.d.ts.map +0 -1
- package/dist/shadcn/badge.js +0 -35
- package/dist/shadcn/breadcrumb.d.ts +0 -12
- package/dist/shadcn/breadcrumb.d.ts.map +0 -1
- package/dist/shadcn/breadcrumb.js +0 -45
- package/dist/shadcn/button.d.ts +0 -11
- package/dist/shadcn/button.d.ts.map +0 -1
- package/dist/shadcn/button.js +0 -47
- package/dist/shadcn/calendar.d.ts +0 -9
- package/dist/shadcn/calendar.d.ts.map +0 -1
- package/dist/shadcn/calendar.js +0 -61
- package/dist/shadcn/card.d.ts +0 -10
- package/dist/shadcn/card.d.ts.map +0 -1
- package/dist/shadcn/card.js +0 -42
- package/dist/shadcn/checkbox.d.ts +0 -5
- package/dist/shadcn/checkbox.d.ts.map +0 -1
- package/dist/shadcn/checkbox.js +0 -21
- package/dist/shadcn/collapsible.d.ts +0 -6
- package/dist/shadcn/collapsible.d.ts.map +0 -1
- package/dist/shadcn/collapsible.js +0 -27
- package/dist/shadcn/command.d.ts +0 -19
- package/dist/shadcn/command.d.ts.map +0 -1
- package/dist/shadcn/command.js +0 -54
- package/dist/shadcn/date-input.d.ts +0 -8
- package/dist/shadcn/date-input.d.ts.map +0 -1
- package/dist/shadcn/date-input.js +0 -179
- package/dist/shadcn/date-range-picker.d.ts +0 -25
- package/dist/shadcn/date-range-picker.d.ts.map +0 -1
- package/dist/shadcn/date-range-picker.js +0 -45
- package/dist/shadcn/dialog.d.ts +0 -16
- package/dist/shadcn/dialog.d.ts.map +0 -1
- package/dist/shadcn/dialog.js +0 -57
- package/dist/shadcn/drawer.d.ts +0 -14
- package/dist/shadcn/drawer.d.ts.map +0 -1
- package/dist/shadcn/drawer.js +0 -56
- package/dist/shadcn/dropdown-menu.d.ts +0 -26
- package/dist/shadcn/dropdown-menu.d.ts.map +0 -1
- package/dist/shadcn/dropdown-menu.js +0 -77
- package/dist/shadcn/form.d.ts +0 -25
- package/dist/shadcn/form.d.ts.map +0 -1
- package/dist/shadcn/form.js +0 -70
- package/dist/shadcn/hover-card.d.ts +0 -7
- package/dist/shadcn/hover-card.d.ts.map +0 -1
- package/dist/shadcn/hover-card.js +0 -28
- package/dist/shadcn/input-otp.d.ts +0 -35
- package/dist/shadcn/input-otp.d.ts.map +0 -1
- package/dist/shadcn/input-otp.js +0 -40
- package/dist/shadcn/input.d.ts +0 -4
- package/dist/shadcn/input.d.ts.map +0 -1
- package/dist/shadcn/input.js +0 -18
- package/dist/shadcn/label.d.ts +0 -5
- package/dist/shadcn/label.d.ts.map +0 -1
- package/dist/shadcn/label.js +0 -20
- package/dist/shadcn/navigation-menu.d.ts +0 -17
- package/dist/shadcn/navigation-menu.d.ts.map +0 -1
- package/dist/shadcn/navigation-menu.js +0 -74
- package/dist/shadcn/popover.d.ts +0 -8
- package/dist/shadcn/popover.d.ts.map +0 -1
- package/dist/shadcn/popover.js +0 -32
- package/dist/shadcn/progress.d.ts +0 -9
- package/dist/shadcn/progress.d.ts.map +0 -1
- package/dist/shadcn/progress.js +0 -23
- package/dist/shadcn/radio-group.d.ts +0 -6
- package/dist/shadcn/radio-group.d.ts.map +0 -1
- package/dist/shadcn/radio-group.js +0 -25
- package/dist/shadcn/scroll-area.d.ts +0 -6
- package/dist/shadcn/scroll-area.d.ts.map +0 -1
- package/dist/shadcn/scroll-area.js +0 -26
- package/dist/shadcn/select.d.ts +0 -16
- package/dist/shadcn/select.d.ts.map +0 -1
- package/dist/shadcn/select.js +0 -59
- package/dist/shadcn/separator.d.ts +0 -5
- package/dist/shadcn/separator.d.ts.map +0 -1
- package/dist/shadcn/separator.js +0 -20
- package/dist/shadcn/sheet.d.ts +0 -14
- package/dist/shadcn/sheet.d.ts.map +0 -1
- package/dist/shadcn/sheet.js +0 -61
- package/dist/shadcn/sidebar.d.ts +0 -70
- package/dist/shadcn/sidebar.d.ts.map +0 -1
- package/dist/shadcn/sidebar.js +0 -242
- package/dist/shadcn/skeleton.d.ts +0 -4
- package/dist/shadcn/skeleton.d.ts.map +0 -1
- package/dist/shadcn/skeleton.js +0 -18
- package/dist/shadcn/slider.d.ts +0 -5
- package/dist/shadcn/slider.d.ts.map +0 -1
- package/dist/shadcn/slider.js +0 -26
- package/dist/shadcn/sonner.d.ts +0 -4
- package/dist/shadcn/sonner.d.ts.map +0 -1
- package/dist/shadcn/sonner.js +0 -25
- package/dist/shadcn/switch.d.ts +0 -5
- package/dist/shadcn/switch.d.ts.map +0 -1
- package/dist/shadcn/switch.js +0 -20
- package/dist/shadcn/table.d.ts +0 -11
- package/dist/shadcn/table.d.ts.map +0 -1
- package/dist/shadcn/table.js +0 -47
- package/dist/shadcn/tabs.d.ts +0 -8
- package/dist/shadcn/tabs.d.ts.map +0 -1
- package/dist/shadcn/tabs.js +0 -32
- package/dist/shadcn/textarea.d.ts +0 -4
- package/dist/shadcn/textarea.d.ts.map +0 -1
- package/dist/shadcn/textarea.js +0 -18
- package/dist/shadcn/toggle-group.d.ts +0 -10
- package/dist/shadcn/toggle-group.d.ts.map +0 -1
- package/dist/shadcn/toggle-group.js +0 -35
- package/dist/shadcn/toggle.d.ts +0 -10
- package/dist/shadcn/toggle.d.ts.map +0 -1
- package/dist/shadcn/toggle.js +0 -38
- package/dist/shadcn/tooltip.d.ts +0 -8
- package/dist/shadcn/tooltip.d.ts.map +0 -1
- package/dist/shadcn/tooltip.js +0 -32
- package/dist/shadcn/workflow.d.ts +0 -21
- package/dist/shadcn/workflow.d.ts.map +0 -1
- package/dist/shadcn/workflow.js +0 -20
- package/dist/styles.css +0 -1302
- package/dist/utils/actions/account/index.d.ts +0 -6
- package/dist/utils/actions/account/index.d.ts.map +0 -1
- package/dist/utils/actions/account/index.js +0 -28
- package/dist/utils/actions/account/type.d.ts +0 -5
- package/dist/utils/actions/account/type.d.ts.map +0 -1
- package/dist/utils/actions/account/type.js +0 -1
- package/dist/utils/actions/auth/index.d.ts +0 -8
- package/dist/utils/actions/auth/index.d.ts.map +0 -1
- package/dist/utils/actions/common/revalidate.d.ts +0 -3
- package/dist/utils/actions/common/revalidate.d.ts.map +0 -1
- package/dist/utils/actions/common/revalidate.js +0 -14
- package/dist/utils/actions/common/type.d.ts +0 -5
- package/dist/utils/actions/common/type.d.ts.map +0 -1
- package/dist/utils/actions/common/type.js +0 -1
- package/dist/utils/actions/common/utils.d.ts +0 -6
- package/dist/utils/actions/common/utils.d.ts.map +0 -1
- package/dist/utils/actions/software/index.d.ts +0 -12
- package/dist/utils/actions/software/index.d.ts.map +0 -1
- package/dist/utils/actions/software/index.js +0 -75
- package/dist/utils/api/accountService/index.d.ts +0 -24
- package/dist/utils/api/accountService/index.d.ts.map +0 -1
- package/dist/utils/api/accountService/index.js +0 -64
- package/dist/utils/api/accountService/type.d.ts +0 -5
- package/dist/utils/api/accountService/type.d.ts.map +0 -1
- package/dist/utils/api/accountService/type.js +0 -1
- package/dist/utils/api/file-upload/index.d.ts +0 -6
- package/dist/utils/api/file-upload/index.d.ts.map +0 -1
- package/dist/utils/api/file-upload/index.js +0 -80
- package/dist/utils/api/file-upload/type.d.ts +0 -7
- package/dist/utils/api/file-upload/type.d.ts.map +0 -1
- package/dist/utils/api/file-upload/type.js +0 -1
- package/dist/utils/api/ikonBaseApi.d.ts +0 -13
- package/dist/utils/api/ikonBaseApi.d.ts.map +0 -1
- package/dist/utils/api/loginService/index.d.ts +0 -13
- package/dist/utils/api/loginService/index.d.ts.map +0 -1
- package/dist/utils/api/loginService/index.js +0 -72
- package/dist/utils/api/loginService/type.d.ts.map +0 -1
- package/dist/utils/api/loginService/type.js +0 -1
- package/dist/utils/api/softwareService/index.d.ts +0 -65
- package/dist/utils/api/softwareService/index.d.ts.map +0 -1
- package/dist/utils/api/softwareService/index.js +0 -212
- package/dist/utils/api/softwareService/type.d.ts +0 -55
- package/dist/utils/api/softwareService/type.d.ts.map +0 -1
- package/dist/utils/api/softwareService/type.js +0 -1
- package/dist/utils/border-radius-provider.d.ts +0 -12
- package/dist/utils/border-radius-provider.d.ts.map +0 -1
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.js +0 -5
- package/dist/utils/font-provider.d.ts +0 -12
- package/dist/utils/font-provider.d.ts.map +0 -1
- package/dist/utils/session/cookieSession.d.ts +0 -9
- package/dist/utils/session/cookieSession.d.ts.map +0 -1
- package/dist/utils/session/cookieSession.js +0 -33
- package/dist/utils/theme-provider/index.d.ts +0 -4
- package/dist/utils/theme-provider/index.d.ts.map +0 -1
- package/dist/utils/theme-provider/index.js +0 -18
- package/dist/utils/token-management/index.d.ts +0 -11
- package/dist/utils/token-management/index.d.ts.map +0 -1
- package/dist/utils/token-management/index.js +0 -69
- package/dist/utils/token-management/types.d.ts +0 -7
- package/dist/utils/token-management/types.d.ts.map +0 -1
- package/dist/utils/token-management/types.js +0 -1
package/bin.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import process from "process";
|
|
3
|
+
import { execa } from "execa";
|
|
4
|
+
import kleur from "kleur";
|
|
5
|
+
import { copyDir } from "../utlis/copyDir.js";
|
|
6
|
+
export async function init() {
|
|
7
|
+
const cwd = process.cwd();
|
|
8
|
+
console.log(kleur.cyan("\n🚀 Installing ikoncomponents...\n"));
|
|
9
|
+
// 1️⃣ COPY templates/default → user src/
|
|
10
|
+
await copyDir(new URL("../../../templates/default", import.meta.url).pathname, path.join(cwd, "src"));
|
|
11
|
+
console.log(kleur.green("✔ Components copied"));
|
|
12
|
+
// 2️⃣ INSTALL ALL DEPENDENCIES
|
|
13
|
+
const dependencies = [
|
|
14
|
+
// radix
|
|
15
|
+
"@radix-ui/react-accordion",
|
|
16
|
+
"@radix-ui/react-alert-dialog",
|
|
17
|
+
"@radix-ui/react-avatar",
|
|
18
|
+
"@radix-ui/react-checkbox",
|
|
19
|
+
"@radix-ui/react-dialog",
|
|
20
|
+
"@radix-ui/react-dropdown-menu",
|
|
21
|
+
"@radix-ui/react-hover-card",
|
|
22
|
+
"@radix-ui/react-icons",
|
|
23
|
+
"@radix-ui/react-label",
|
|
24
|
+
"@radix-ui/react-navigation-menu",
|
|
25
|
+
"@radix-ui/react-popover",
|
|
26
|
+
"@radix-ui/react-progress",
|
|
27
|
+
"@radix-ui/react-radio-group",
|
|
28
|
+
"@radix-ui/react-scroll-area",
|
|
29
|
+
"@radix-ui/react-select",
|
|
30
|
+
"@radix-ui/react-separator",
|
|
31
|
+
"@radix-ui/react-slider",
|
|
32
|
+
"@radix-ui/react-slot",
|
|
33
|
+
"@radix-ui/react-switch",
|
|
34
|
+
"@radix-ui/react-tabs",
|
|
35
|
+
"@radix-ui/react-toggle",
|
|
36
|
+
"@radix-ui/react-toggle-group",
|
|
37
|
+
"@radix-ui/react-tooltip",
|
|
38
|
+
// utils
|
|
39
|
+
"class-variance-authority",
|
|
40
|
+
"clsx",
|
|
41
|
+
"tailwind-merge",
|
|
42
|
+
"lucide-react",
|
|
43
|
+
"framer-motion",
|
|
44
|
+
"sonner",
|
|
45
|
+
"vaul",
|
|
46
|
+
"cmdk",
|
|
47
|
+
"uuid",
|
|
48
|
+
"date-fns",
|
|
49
|
+
"axios"
|
|
50
|
+
];
|
|
51
|
+
console.log(kleur.yellow("\n📦 Installing dependencies...\n"));
|
|
52
|
+
await execa("npm", ["install", ...dependencies], {
|
|
53
|
+
cwd,
|
|
54
|
+
stdio: "inherit"
|
|
55
|
+
});
|
|
56
|
+
console.log(kleur.green("\n ikoncomponents installed successfully\n"));
|
|
57
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,116 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from "./shadcn/alert";
|
|
5
|
-
export * from "./shadcn/avatar";
|
|
6
|
-
export * from "./shadcn/badge";
|
|
7
|
-
export * from "./shadcn/button";
|
|
8
|
-
export * from "./shadcn/calendar";
|
|
9
|
-
export * from "./shadcn/card";
|
|
10
|
-
export * from "./shadcn/checkbox";
|
|
11
|
-
export * from "./shadcn/command";
|
|
12
|
-
export * from "./shadcn/date-input";
|
|
13
|
-
export * from "./shadcn/date-range-picker";
|
|
14
|
-
export * from "./shadcn/dialog";
|
|
15
|
-
export * from "./shadcn/dropdown-menu";
|
|
16
|
-
export * from "./shadcn/hover-card";
|
|
17
|
-
export * from "./shadcn/input";
|
|
18
|
-
export * from "./shadcn/label";
|
|
19
|
-
export * from "./shadcn/navigation-menu";
|
|
20
|
-
export * from "./shadcn/popover";
|
|
21
|
-
export * from "./shadcn/progress";
|
|
22
|
-
export * from "./shadcn/radio-group";
|
|
23
|
-
export * from "./shadcn/scroll-area";
|
|
24
|
-
export * from "./shadcn/select";
|
|
25
|
-
export * from "./shadcn/separator";
|
|
26
|
-
export * from "./shadcn/sheet";
|
|
27
|
-
export * from "./shadcn/sidebar";
|
|
28
|
-
export * from "./shadcn/skeleton";
|
|
29
|
-
export * from "./shadcn/slider";
|
|
30
|
-
export * from "./shadcn/sonner";
|
|
31
|
-
export * from "./shadcn/switch";
|
|
32
|
-
export * from "./shadcn/table";
|
|
33
|
-
export * from "./shadcn/tabs";
|
|
34
|
-
export * from "./shadcn/textarea";
|
|
35
|
-
export * from "./shadcn/tooltip";
|
|
36
|
-
export * from "./shadcn/workflow";
|
|
37
|
-
export * from "./shadcn/aspect-ratio";
|
|
38
|
-
export * from "./shadcn/breadcrumb";
|
|
39
|
-
export * from "./shadcn/collapsible";
|
|
40
|
-
export * from "./shadcn/drawer";
|
|
41
|
-
export * from "./shadcn/form";
|
|
42
|
-
export * from "./shadcn/input-otp";
|
|
43
|
-
export * from "./shadcn/toggle-group";
|
|
44
|
-
export * from "./shadcn/toggle";
|
|
45
|
-
export { ActionMenu } from "./ikoncomponents/action-menu";
|
|
46
|
-
export { CustomAlertDialog } from "./ikoncomponents/alert-dialog";
|
|
47
|
-
export { useDialog, DialogProvider, } from "./ikoncomponents/alert-dialog/dialog-context";
|
|
48
|
-
export { TextButton, TextButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, IconButton, IconButtonWithTooltip, } from "./ikoncomponents/buttons";
|
|
49
|
-
export { ComboboxInput } from "./ikoncomponents/combobox-input";
|
|
50
|
-
export { DataTableColumnFilter } from "./ikoncomponents/data-table/datatable-column-filter";
|
|
51
|
-
export { DataTableFacetedFilter } from "./ikoncomponents/data-table/datatable-faceted-filter";
|
|
52
|
-
export { DataTableFilterMenu } from "./ikoncomponents/data-table/datatable-filter-menu";
|
|
53
|
-
export { convertFileToObject, FileUploader, getImageFromObject, } from "./ikoncomponents/fileUpload";
|
|
54
|
-
export { DataTablePagination } from "./ikoncomponents/data-table/datatable-pagination";
|
|
55
|
-
export { DataTableToolbar } from "./ikoncomponents/data-table/datatable-toolbar";
|
|
56
|
-
export { getDataTableColumnTitle } from "./ikoncomponents/data-table/function";
|
|
57
|
-
export { DataTable } from "./ikoncomponents/data-table";
|
|
58
|
-
export { EChart } from "./ikoncomponents/e-chart";
|
|
59
|
-
export { FileInput } from "./ikoncomponents/file-input";
|
|
60
|
-
export { GlowingEffect } from "./ikoncomponents/glowing-effect";
|
|
61
|
-
export { Icon } from "./ikoncomponents/icon";
|
|
62
|
-
export { LoadingSpinner } from "./ikoncomponents/loading-spinner";
|
|
63
|
-
export { MultiCombobox } from "./ikoncomponents/multi-combobox";
|
|
64
|
-
export { NoDataComponent } from "./ikoncomponents/no-data";
|
|
65
|
-
export { PageWrapper } from "./ikoncomponents/page-wrapper";
|
|
66
|
-
export { PasswordStrengthMeter } from "./ikoncomponents/password-strength-meter";
|
|
67
|
-
export { PhoneInput } from "./ikoncomponents/phone-input";
|
|
68
|
-
export { SearchInput } from "./ikoncomponents/search-input";
|
|
69
|
-
export { SheetComponent } from "./ikoncomponents/sheet";
|
|
70
|
-
export { SimpleWidget } from "./ikoncomponents/simple-widget";
|
|
71
|
-
export { CustomTabs } from "./ikoncomponents/tabs";
|
|
72
|
-
export { ThemeToggleBtn } from "./ikoncomponents/theme-toggle-btn";
|
|
73
|
-
export { TitleProgress } from "./ikoncomponents/title-progress";
|
|
74
|
-
export { TooltipComponent } from "./ikoncomponents/tooltip";
|
|
75
|
-
export { FrameworkItemDropdown } from "./ikoncomponents/twolevel-dropdown";
|
|
76
|
-
export { Widgets } from "./ikoncomponents/widgets";
|
|
77
|
-
export { BigCalendar } from "./ikoncomponents/big-calendar";
|
|
78
|
-
export { BreadcrumbProvider, useBreadcrumb, } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
79
|
-
export { AppBreadcrumb, RenderAppBreadcrumb, } from "./ikoncomponents/app-breadcrumb";
|
|
80
|
-
export { FormComboboxInput } from "./ikoncomponents/form-fields/combobox-input";
|
|
81
|
-
export { FormComboboxInputWithValue } from "./ikoncomponents/form-fields/combobox-input-value";
|
|
82
|
-
export { FormDateInput } from "./ikoncomponents/form-fields/date-input";
|
|
83
|
-
export { FormFileInput } from "./ikoncomponents/form-fields/file-input";
|
|
84
|
-
export { FormInput } from "./ikoncomponents/form-fields/input";
|
|
85
|
-
export { FormMultiComboboxInput } from "./ikoncomponents/form-fields/multi-combobox-input";
|
|
86
|
-
export { FormOtpInput } from "./ikoncomponents/form-fields/otp-input";
|
|
87
|
-
export { FormPhoneInput } from "./ikoncomponents/form-fields/phone-input";
|
|
88
|
-
export { FormTextarea } from "./ikoncomponents/form-fields/textarea";
|
|
89
|
-
export { GradeTableLoader } from "./ikoncomponents/skeleton-loader/skeleton-table";
|
|
90
|
-
export { SkeletonWidget } from "./ikoncomponents/skeleton-loader/skeleton-widget";
|
|
91
|
-
export { UploadTab } from "./ikoncomponents/upload-tab";
|
|
92
|
-
export { AppSidebar } from "./ikoncomponents/main-layout/app-sidebar";
|
|
93
|
-
export { Footer } from "./ikoncomponents/main-layout/footer";
|
|
94
|
-
export { Header } from "./ikoncomponents/main-layout/header";
|
|
95
|
-
export { MainSidebar } from "./ikoncomponents/main-layout/main-sidebar";
|
|
96
|
-
export { NavMain, RenderSidebarNav, AddSidebarNav } from "./ikoncomponents/main-layout/nav-main";
|
|
97
|
-
export { SidebarNavProvider, useSidebarNav, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
98
|
-
export { MainLayout } from "./ikoncomponents/main-layout";
|
|
99
|
-
export { ProviderWrapper } from "./ikoncomponents/provider-wrapper";
|
|
100
|
-
export { ActivitySheet } from "./ikoncomponents/activity-sheet";
|
|
101
|
-
export { ImageCropperProvider, useImageCropper, } from "./ikoncomponents/image-cropper-upload";
|
|
102
|
-
export { ImageCropper } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
103
|
-
export { CropperFormWithModal } from "./ikoncomponents/image-cropper-upload/cropper-form-with-modal";
|
|
104
|
-
export { CropperForm } from "./ikoncomponents/image-cropper-upload/cropper-form";
|
|
105
|
-
export { NewCropperImg } from "./ikoncomponents/image-cropper-upload/components/newCropper";
|
|
106
|
-
export { NewImageForm } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
107
|
-
export { WorkInProgress } from "./ikoncomponents/work-in-progress";
|
|
108
|
-
export { CustomComboboxInput } from "./ikoncomponents/custom-combo-dropdown";
|
|
109
|
-
export { ThemeProvider } from "./utils/theme-provider";
|
|
110
|
-
export { RadiusProvider, useRadius } from "./utils/border-radius-provider";
|
|
111
|
-
export { FontProvider, useFont } from "./utils/font-provider";
|
|
112
|
-
export { cn } from "./utils/cn";
|
|
113
|
-
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession, } from "./utils/session/cookieSession";
|
|
114
|
-
export { getValidAccessToken, refreshAccessToken, decodeAccessToken, logOut, } from "./utils/token-management";
|
|
115
|
-
export { useIsMobile } from "./hooks/use-mobile";
|
|
116
|
-
export { useRefresh } from "./ikoncomponents/main-layout/RefreshContext";
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { init } from "./commands/init.js";
|
|
3
|
+
init();
|
package/package.json
CHANGED
|
@@ -1,103 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ikoncomponents",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"types": "./dist/index.d.ts"
|
|
11
|
-
},
|
|
12
|
-
"./styles.css": "./dist/styles.css"
|
|
13
|
-
},
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ikoncomponents": "./bin.js"
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
|
|
14
10
|
"files": [
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
"dist",
|
|
12
|
+
"templates",
|
|
13
|
+
"bin.js"
|
|
14
|
+
],
|
|
15
|
+
|
|
17
16
|
"scripts": {
|
|
18
|
-
"build": "
|
|
19
|
-
"build:js": "tsc -p tsconfig.json",
|
|
20
|
-
"build:css": "postcss src/styles.css -o dist/styles.css --config postcss.config.mjs",
|
|
21
|
-
"clean": "rimraf dist",
|
|
17
|
+
"build": "tsc",
|
|
22
18
|
"prepublishOnly": "npm run build"
|
|
23
19
|
},
|
|
24
20
|
"dependencies": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"@radix-ui/react-avatar": "^1.1.10",
|
|
29
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
30
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
31
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
32
|
-
"@radix-ui/react-hover-card": "^1.1.15",
|
|
33
|
-
"@radix-ui/react-icons": "^1.3.0",
|
|
34
|
-
"@radix-ui/react-label": "^2.1.7",
|
|
35
|
-
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
36
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
37
|
-
"@radix-ui/react-progress": "^1.1.7",
|
|
38
|
-
"@radix-ui/react-radio-group": "^1.3.8",
|
|
39
|
-
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
40
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
41
|
-
"@radix-ui/react-separator": "^1.1.7",
|
|
42
|
-
"@radix-ui/react-slider": "^1.3.6",
|
|
43
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
44
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
45
|
-
"@radix-ui/react-tabs": "^1.1.13",
|
|
46
|
-
"@radix-ui/react-toggle": "^1.1.10",
|
|
47
|
-
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
48
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
49
|
-
"@tanstack/react-table": "^8.21.3",
|
|
50
|
-
"axios": "^1.13.1",
|
|
51
|
-
"class-variance-authority": "^0.7.1",
|
|
52
|
-
"clsx": "^2.1.1",
|
|
53
|
-
"cmdk": "^1.1.1",
|
|
54
|
-
"countries-list": "^3.1.1",
|
|
55
|
-
"country-flag-icons": "^1.5.21",
|
|
56
|
-
"crypto-js": "^4.2.0",
|
|
57
|
-
"date-fns": "^4.1.0",
|
|
58
|
-
"echarts": "^6.0.0",
|
|
59
|
-
"framer-motion": "^12.23.22",
|
|
60
|
-
"input-otp": "^1.4.2",
|
|
61
|
-
"jwt-decode": "^4.0.0",
|
|
62
|
-
"lucide-react": "^0.552.0",
|
|
63
|
-
"motion": "^12.23.22",
|
|
64
|
-
"react-big-calendar": "^1.19.4",
|
|
65
|
-
"react-cropper": "^2.3.3",
|
|
66
|
-
"react-day-picker": "^9.9.0",
|
|
67
|
-
"react-hook-form": "^7.64.0",
|
|
68
|
-
"shadcn": "^3.5.0",
|
|
69
|
-
"sonner": "^2.0.7",
|
|
70
|
-
"tailwind-merge": "^3.3.1",
|
|
71
|
-
"tailwindcss-animate": "^1.0.7",
|
|
72
|
-
"uuid": "^13.0.0",
|
|
73
|
-
"vaul": "^1.1.2",
|
|
74
|
-
"zxcvbn": "^4.4.2"
|
|
21
|
+
"execa": "^9.6.0",
|
|
22
|
+
"fs-extra": "^11.3.0",
|
|
23
|
+
"kleur": "^4.1.5"
|
|
75
24
|
},
|
|
76
25
|
"devDependencies": {
|
|
77
|
-
"@types/
|
|
78
|
-
"
|
|
79
|
-
"@types/react": "^19",
|
|
80
|
-
"@types/react-big-calendar": "^1.16.3",
|
|
81
|
-
"@types/react-dom": "^19",
|
|
82
|
-
"@types/zxcvbn": "^4.4.5",
|
|
83
|
-
"autoprefixer": "^10.4.21",
|
|
84
|
-
"baseline-browser-mapping": "^2.9.14",
|
|
85
|
-
"eslint": "^9",
|
|
86
|
-
"eslint-config-next": "16.0.0",
|
|
87
|
-
"postcss": "^8.5.6",
|
|
88
|
-
"postcss-cli": "^11.0.1",
|
|
89
|
-
"postcss-import": "^16.1.1",
|
|
90
|
-
"rimraf": "^6.0.1",
|
|
91
|
-
"tailwindcss": "^4",
|
|
92
|
-
"typescript": "^5"
|
|
93
|
-
},
|
|
94
|
-
"peerDependencies": {
|
|
95
|
-
"clsx": "^2.1.1",
|
|
96
|
-
"next": "16.0.0",
|
|
97
|
-
"next-themes": "^0.4.6",
|
|
98
|
-
"react": "^18.2.0",
|
|
99
|
-
"react-dom": "^18.2.0",
|
|
100
|
-
"tailwind-merge": "^3.3.1",
|
|
101
|
-
"tailwindcss": "^4.0.0"
|
|
26
|
+
"@types/fs-extra": "^11.0.4",
|
|
27
|
+
"typescript": "^5.9.3"
|
|
102
28
|
}
|
|
103
29
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
|
|
3
|
+
const MOBILE_BREAKPOINT = 768
|
|
4
|
+
|
|
5
|
+
export function useIsMobile() {
|
|
6
|
+
const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
|
|
7
|
+
|
|
8
|
+
React.useEffect(() => {
|
|
9
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
|
|
10
|
+
const onChange = () => {
|
|
11
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
|
|
12
|
+
}
|
|
13
|
+
mql.addEventListener("change", onChange)
|
|
14
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
|
|
15
|
+
return () => mql.removeEventListener("change", onChange)
|
|
16
|
+
}, [])
|
|
17
|
+
|
|
18
|
+
return !!isMobile
|
|
19
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion"
|
|
5
|
+
import { ChevronDownIcon } from "lucide-react"
|
|
6
|
+
|
|
7
|
+
import { cn } from "../utils/cn"
|
|
8
|
+
|
|
9
|
+
function Accordion({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
|
|
12
|
+
return <AccordionPrimitive.Root data-slot="accordion" {...props} />
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function AccordionItem({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof AccordionPrimitive.Item>) {
|
|
19
|
+
return (
|
|
20
|
+
<AccordionPrimitive.Item
|
|
21
|
+
data-slot="accordion-item"
|
|
22
|
+
className={cn("border-b last:border-b-0", className)}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function AccordionTrigger({
|
|
29
|
+
className,
|
|
30
|
+
children,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {
|
|
33
|
+
return (
|
|
34
|
+
<AccordionPrimitive.Header className="flex">
|
|
35
|
+
<AccordionPrimitive.Trigger
|
|
36
|
+
data-slot="accordion-trigger"
|
|
37
|
+
className={cn(
|
|
38
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
39
|
+
className
|
|
40
|
+
)}
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
{children}
|
|
44
|
+
<ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />
|
|
45
|
+
</AccordionPrimitive.Trigger>
|
|
46
|
+
</AccordionPrimitive.Header>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function AccordionContent({
|
|
51
|
+
className,
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
}: React.ComponentProps<typeof AccordionPrimitive.Content>) {
|
|
55
|
+
return (
|
|
56
|
+
<AccordionPrimitive.Content
|
|
57
|
+
data-slot="accordion-content"
|
|
58
|
+
className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<div className={cn("pt-0 pb-4", className)}>{children}</div>
|
|
62
|
+
</AccordionPrimitive.Content>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
|
|
5
|
+
import { cn } from "../utils/cn"
|
|
6
|
+
import { buttonVariants } from "./button"
|
|
7
|
+
|
|
8
|
+
// ✅ Root (NO ref here!)
|
|
9
|
+
const AlertDialog = (
|
|
10
|
+
props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root>
|
|
11
|
+
) => <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
|
|
12
|
+
AlertDialog.displayName = "AlertDialog"
|
|
13
|
+
|
|
14
|
+
// ✅ Trigger
|
|
15
|
+
const AlertDialogTrigger = React.forwardRef<
|
|
16
|
+
React.ElementRef<typeof AlertDialogPrimitive.Trigger>,
|
|
17
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>
|
|
18
|
+
>((props, ref) => (
|
|
19
|
+
<AlertDialogPrimitive.Trigger
|
|
20
|
+
data-slot="alert-dialog-trigger"
|
|
21
|
+
ref={ref}
|
|
22
|
+
{...props}
|
|
23
|
+
/>
|
|
24
|
+
))
|
|
25
|
+
AlertDialogTrigger.displayName = "AlertDialogTrigger"
|
|
26
|
+
|
|
27
|
+
// ✅ Portal (NO ref here!)
|
|
28
|
+
const AlertDialogPortal = (
|
|
29
|
+
props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Portal>
|
|
30
|
+
) => <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
|
|
31
|
+
AlertDialogPortal.displayName = "AlertDialogPortal"
|
|
32
|
+
|
|
33
|
+
// ✅ Overlay
|
|
34
|
+
const AlertDialogOverlay = React.forwardRef<
|
|
35
|
+
React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
|
|
36
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
|
|
37
|
+
>(({ className, ...props }, ref) => (
|
|
38
|
+
<AlertDialogPrimitive.Overlay
|
|
39
|
+
ref={ref}
|
|
40
|
+
data-slot="alert-dialog-overlay"
|
|
41
|
+
className={cn(
|
|
42
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
43
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
44
|
+
"fixed inset-0 z-50 bg-black/50",
|
|
45
|
+
className
|
|
46
|
+
)}
|
|
47
|
+
{...props}
|
|
48
|
+
/>
|
|
49
|
+
))
|
|
50
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay"
|
|
51
|
+
|
|
52
|
+
// ✅ Content
|
|
53
|
+
const AlertDialogContent = React.forwardRef<
|
|
54
|
+
React.ElementRef<typeof AlertDialogPrimitive.Content>,
|
|
55
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
|
|
56
|
+
>(({ className, ...props }, ref) => (
|
|
57
|
+
<AlertDialogPortal>
|
|
58
|
+
<AlertDialogOverlay />
|
|
59
|
+
<AlertDialogPrimitive.Content
|
|
60
|
+
ref={ref}
|
|
61
|
+
data-slot="alert-dialog-content"
|
|
62
|
+
className={cn(
|
|
63
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
64
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
65
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 " +
|
|
66
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] " +
|
|
67
|
+
"translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 " +
|
|
68
|
+
"shadow-lg duration-200 sm:max-w-lg",
|
|
69
|
+
className
|
|
70
|
+
)}
|
|
71
|
+
{...props}
|
|
72
|
+
/>
|
|
73
|
+
</AlertDialogPortal>
|
|
74
|
+
))
|
|
75
|
+
AlertDialogContent.displayName = "AlertDialogContent"
|
|
76
|
+
|
|
77
|
+
// ✅ Header
|
|
78
|
+
const AlertDialogHeader = React.forwardRef<
|
|
79
|
+
HTMLDivElement,
|
|
80
|
+
React.ComponentPropsWithoutRef<"div">
|
|
81
|
+
>(({ className, ...props }, ref) => (
|
|
82
|
+
<div
|
|
83
|
+
ref={ref}
|
|
84
|
+
data-slot="alert-dialog-header"
|
|
85
|
+
className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
|
|
86
|
+
{...props}
|
|
87
|
+
/>
|
|
88
|
+
))
|
|
89
|
+
AlertDialogHeader.displayName = "AlertDialogHeader"
|
|
90
|
+
|
|
91
|
+
// ✅ Footer
|
|
92
|
+
const AlertDialogFooter = React.forwardRef<
|
|
93
|
+
HTMLDivElement,
|
|
94
|
+
React.ComponentPropsWithoutRef<"div">
|
|
95
|
+
>(({ className, ...props }, ref) => (
|
|
96
|
+
<div
|
|
97
|
+
ref={ref}
|
|
98
|
+
data-slot="alert-dialog-footer"
|
|
99
|
+
className={cn(
|
|
100
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
101
|
+
className
|
|
102
|
+
)}
|
|
103
|
+
{...props}
|
|
104
|
+
/>
|
|
105
|
+
))
|
|
106
|
+
AlertDialogFooter.displayName = "AlertDialogFooter"
|
|
107
|
+
|
|
108
|
+
// ✅ Title
|
|
109
|
+
const AlertDialogTitle = React.forwardRef<
|
|
110
|
+
React.ElementRef<typeof AlertDialogPrimitive.Title>,
|
|
111
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
|
|
112
|
+
>(({ className, ...props }, ref) => (
|
|
113
|
+
<AlertDialogPrimitive.Title
|
|
114
|
+
ref={ref}
|
|
115
|
+
data-slot="alert-dialog-title"
|
|
116
|
+
className={cn("text-lg font-semibold bg-background", className)}
|
|
117
|
+
{...props}
|
|
118
|
+
/>
|
|
119
|
+
))
|
|
120
|
+
AlertDialogTitle.displayName = "AlertDialogTitle"
|
|
121
|
+
|
|
122
|
+
// ✅ Description
|
|
123
|
+
const AlertDialogDescription = React.forwardRef<
|
|
124
|
+
React.ElementRef<typeof AlertDialogPrimitive.Description>,
|
|
125
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
|
|
126
|
+
>(({ className, ...props }, ref) => (
|
|
127
|
+
<AlertDialogPrimitive.Description
|
|
128
|
+
ref={ref}
|
|
129
|
+
data-slot="alert-dialog-description"
|
|
130
|
+
className={cn("text-muted-foreground text-sm bg-background", className)}
|
|
131
|
+
{...props}
|
|
132
|
+
/>
|
|
133
|
+
))
|
|
134
|
+
AlertDialogDescription.displayName = "AlertDialogDescription"
|
|
135
|
+
|
|
136
|
+
// ✅ Action
|
|
137
|
+
const AlertDialogAction = React.forwardRef<
|
|
138
|
+
React.ElementRef<typeof AlertDialogPrimitive.Action>,
|
|
139
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
|
|
140
|
+
>(({ className, ...props }, ref) => (
|
|
141
|
+
<AlertDialogPrimitive.Action
|
|
142
|
+
ref={ref}
|
|
143
|
+
className={cn(buttonVariants(), className)}
|
|
144
|
+
{...props}
|
|
145
|
+
/>
|
|
146
|
+
))
|
|
147
|
+
AlertDialogAction.displayName = "AlertDialogAction"
|
|
148
|
+
|
|
149
|
+
// ✅ Cancel
|
|
150
|
+
const AlertDialogCancel = React.forwardRef<
|
|
151
|
+
React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
|
|
152
|
+
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
|
|
153
|
+
>(({ className, ...props }, ref) => (
|
|
154
|
+
<AlertDialogPrimitive.Cancel
|
|
155
|
+
ref={ref}
|
|
156
|
+
className={cn(
|
|
157
|
+
buttonVariants({ variant: "outline" }),
|
|
158
|
+
"bg-background",
|
|
159
|
+
className
|
|
160
|
+
)}
|
|
161
|
+
{...props}
|
|
162
|
+
/>
|
|
163
|
+
))
|
|
164
|
+
AlertDialogCancel.displayName = "AlertDialogCancel"
|
|
165
|
+
|
|
166
|
+
// ✅ Exports
|
|
167
|
+
export {
|
|
168
|
+
AlertDialog,
|
|
169
|
+
AlertDialogTrigger,
|
|
170
|
+
AlertDialogPortal,
|
|
171
|
+
AlertDialogOverlay,
|
|
172
|
+
AlertDialogContent,
|
|
173
|
+
AlertDialogHeader,
|
|
174
|
+
AlertDialogFooter,
|
|
175
|
+
AlertDialogTitle,
|
|
176
|
+
AlertDialogDescription,
|
|
177
|
+
AlertDialogAction,
|
|
178
|
+
AlertDialogCancel,
|
|
179
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
|
+
|
|
4
|
+
import { cn } from "../utils/cn"
|
|
5
|
+
|
|
6
|
+
const alertVariants = cva(
|
|
7
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-card dark:bg-background text-card-foreground",
|
|
12
|
+
destructive:
|
|
13
|
+
"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
variant: "default",
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
function Alert({
|
|
23
|
+
className,
|
|
24
|
+
variant,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
|
|
27
|
+
return (
|
|
28
|
+
<div
|
|
29
|
+
data-slot="alert"
|
|
30
|
+
role="alert"
|
|
31
|
+
className={cn(alertVariants({ variant }), className)}
|
|
32
|
+
{...props}
|
|
33
|
+
/>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
|
|
38
|
+
return (
|
|
39
|
+
<div
|
|
40
|
+
data-slot="alert-title"
|
|
41
|
+
className={cn(
|
|
42
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
43
|
+
className
|
|
44
|
+
)}
|
|
45
|
+
{...props}
|
|
46
|
+
/>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function AlertDescription({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<"div">) {
|
|
54
|
+
return (
|
|
55
|
+
<div
|
|
56
|
+
data-slot="alert-description"
|
|
57
|
+
className={cn(
|
|
58
|
+
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
59
|
+
className
|
|
60
|
+
)}
|
|
61
|
+
{...props}
|
|
62
|
+
/>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { Alert, AlertTitle, AlertDescription }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
|
|
4
|
+
|
|
5
|
+
function AspectRatio({
|
|
6
|
+
...props
|
|
7
|
+
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
|
|
8
|
+
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AspectRatio }
|