ikoncomponents 1.5.5 → 1.5.7
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/README.md +36 -36
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/ikoncomponents/action-menu/index.d.ts +5 -0
- package/dist/ikoncomponents/action-menu/index.js +42 -0
- package/dist/ikoncomponents/action-menu/type.d.ts +14 -0
- package/dist/ikoncomponents/action-menu/type.js +1 -0
- package/dist/ikoncomponents/activity-sheet/index.d.ts +11 -0
- package/dist/ikoncomponents/activity-sheet/index.js +23 -0
- package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts +21 -0
- package/dist/ikoncomponents/alert-dialog/dialog-context.js +30 -0
- package/dist/ikoncomponents/alert-dialog/index.d.ts +14 -0
- package/dist/ikoncomponents/alert-dialog/index.js +20 -0
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts +18 -0
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.js +43 -0
- package/dist/ikoncomponents/app-breadcrumb/index.d.ts +5 -0
- package/dist/ikoncomponents/app-breadcrumb/index.js +57 -0
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts +5 -0
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.js +16 -0
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts +2 -0
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.js +39 -0
- package/dist/ikoncomponents/big-calendar/index.d.ts +3 -0
- package/dist/ikoncomponents/big-calendar/index.js +35 -0
- package/dist/ikoncomponents/big-calendar/type.d.ts +31 -0
- package/dist/ikoncomponents/big-calendar/type.js +1 -0
- package/dist/ikoncomponents/buttons/index.d.ts +18 -0
- package/dist/ikoncomponents/buttons/index.js +38 -0
- package/dist/ikoncomponents/combobox-input/index.d.ts +2 -0
- package/dist/ikoncomponents/combobox-input/index.js +18 -0
- package/dist/ikoncomponents/combobox-input/type.d.ts +13 -0
- package/dist/ikoncomponents/combobox-input/type.js +1 -0
- package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts +21 -0
- package/dist/ikoncomponents/custom-combo-dropdown/index.js +85 -0
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +22 -0
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +35 -0
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +38 -0
- package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-pagination/index.js +13 -0
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +18 -0
- package/dist/ikoncomponents/data-table/function.d.ts +1 -0
- package/dist/ikoncomponents/data-table/function.js +6 -0
- package/dist/ikoncomponents/data-table/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/index.js +223 -0
- package/dist/ikoncomponents/data-table/type.d.ts +60 -0
- package/dist/ikoncomponents/data-table/type.js +1 -0
- package/dist/ikoncomponents/e-chart/index.d.ts +15 -0
- package/dist/ikoncomponents/e-chart/index.js +115 -0
- package/dist/ikoncomponents/file-input/index.d.ts +1 -0
- package/dist/ikoncomponents/file-input/index.js +21 -0
- package/dist/ikoncomponents/fileUpload/index.d.ts +15 -0
- package/dist/ikoncomponents/fileUpload/index.js +69 -0
- package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/combobox-input/index.js +21 -0
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts +18 -0
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.js +26 -0
- package/dist/ikoncomponents/form-fields/date-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/date-input/index.js +15 -0
- package/dist/ikoncomponents/form-fields/file-input/index.d.ts +1 -0
- package/dist/ikoncomponents/form-fields/file-input/index.js +4 -0
- package/dist/ikoncomponents/form-fields/input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/input/index.js +18 -0
- package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts +6 -0
- package/{templates/default/ikoncomponents/form-fields/multi-combobox-input/index.tsx → dist/ikoncomponents/form-fields/multi-combobox-input/index.js} +381 -574
- package/dist/ikoncomponents/form-fields/otp-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/otp-input/index.js +18 -0
- package/dist/ikoncomponents/form-fields/phone-input/index.d.ts +1 -0
- package/dist/ikoncomponents/form-fields/phone-input/index.js +4 -0
- package/dist/ikoncomponents/form-fields/textarea/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/textarea/index.js +18 -0
- package/dist/ikoncomponents/form-fields/types/index.d.ts +36 -0
- package/dist/ikoncomponents/form-fields/types/index.js +1 -0
- package/dist/ikoncomponents/glowing-effect/index.d.ts +14 -0
- package/dist/ikoncomponents/glowing-effect/index.js +84 -0
- package/dist/ikoncomponents/icon/index.d.ts +8 -0
- package/dist/ikoncomponents/icon/index.js +23 -0
- package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts +15 -0
- package/{templates/default/ikoncomponents/image-cropper-upload/components/newCropper.tsx → dist/ikoncomponents/image-cropper-upload/components/newCropper.js} +85 -117
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts +7 -0
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.js +145 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts +6 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.js +92 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts +6 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.js +14 -0
- package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts +14 -0
- package/{templates/default/ikoncomponents/image-cropper-upload/image-cropper/index.tsx → dist/ikoncomponents/image-cropper-upload/image-cropper/index.js} +87 -119
- package/dist/ikoncomponents/image-cropper-upload/index.d.ts +27 -0
- package/dist/ikoncomponents/image-cropper-upload/index.js +49 -0
- package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts +16 -0
- package/dist/ikoncomponents/image-cropper-upload/utils/index.js +73 -0
- package/dist/ikoncomponents/loading-spinner/index.d.ts +9 -0
- package/dist/ikoncomponents/loading-spinner/index.js +19 -0
- package/dist/ikoncomponents/main-layout/RefreshContext.d.ts +10 -0
- package/dist/ikoncomponents/main-layout/RefreshContext.js +17 -0
- package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts +33 -0
- package/dist/ikoncomponents/main-layout/SidebarNavContext.js +52 -0
- package/dist/ikoncomponents/main-layout/app-sidebar.d.ts +3 -0
- package/dist/ikoncomponents/main-layout/app-sidebar.js +24 -0
- package/dist/ikoncomponents/main-layout/footer.d.ts +1 -0
- package/dist/ikoncomponents/main-layout/footer.js +5 -0
- package/dist/ikoncomponents/main-layout/header.d.ts +3 -0
- package/dist/ikoncomponents/main-layout/header.js +15 -0
- package/dist/ikoncomponents/main-layout/index.d.ts +6 -0
- package/dist/ikoncomponents/main-layout/index.js +11 -0
- package/dist/ikoncomponents/main-layout/main-sidebar.d.ts +60 -0
- package/dist/ikoncomponents/main-layout/main-sidebar.js +119 -0
- package/dist/ikoncomponents/main-layout/nav-main.d.ts +11 -0
- package/dist/ikoncomponents/main-layout/nav-main.js +33 -0
- package/dist/ikoncomponents/multi-combobox/index.d.ts +13 -0
- package/dist/ikoncomponents/multi-combobox/index.js +202 -0
- package/dist/ikoncomponents/no-data/index.d.ts +3 -0
- package/dist/ikoncomponents/no-data/index.js +5 -0
- package/dist/ikoncomponents/page-wrapper/index.d.ts +9 -0
- package/dist/ikoncomponents/page-wrapper/index.js +7 -0
- package/dist/ikoncomponents/password-strength-meter/index.d.ts +3 -0
- package/dist/ikoncomponents/password-strength-meter/index.js +40 -0
- package/dist/ikoncomponents/phone-input/index.d.ts +1 -0
- package/dist/ikoncomponents/phone-input/index.js +41 -0
- package/dist/ikoncomponents/provider-wrapper/index.d.ts +6 -0
- package/dist/ikoncomponents/provider-wrapper/index.js +11 -0
- package/dist/ikoncomponents/search-input/index.d.ts +1 -0
- package/dist/ikoncomponents/search-input/index.js +19 -0
- package/dist/ikoncomponents/sheet/index.d.ts +10 -0
- package/dist/ikoncomponents/sheet/index.js +6 -0
- package/dist/ikoncomponents/simple-widget/index.d.ts +14 -0
- package/dist/ikoncomponents/simple-widget/index.js +14 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts +5 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.js +6 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts +3 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.js +5 -0
- package/dist/ikoncomponents/tabs/index.d.ts +2 -0
- package/dist/ikoncomponents/tabs/index.js +50 -0
- package/{templates/default/ikoncomponents/tabs/type.ts → dist/ikoncomponents/tabs/type.d.ts} +19 -20
- package/dist/ikoncomponents/tabs/type.js +2 -0
- package/dist/ikoncomponents/theme-toggle-btn/index.d.ts +1 -0
- package/{templates/default/ikoncomponents/theme-toggle-btn/index.tsx → dist/ikoncomponents/theme-toggle-btn/index.js} +118 -189
- package/dist/ikoncomponents/title-progress/index.d.ts +12 -0
- package/dist/ikoncomponents/title-progress/index.js +10 -0
- package/dist/ikoncomponents/tooltip/index.d.ts +5 -0
- package/dist/ikoncomponents/tooltip/index.js +5 -0
- package/dist/ikoncomponents/twolevel-dropdown/index.d.ts +31 -0
- package/dist/ikoncomponents/twolevel-dropdown/index.js +143 -0
- package/dist/ikoncomponents/upload-tab/index.d.ts +1 -0
- package/dist/ikoncomponents/upload-tab/index.js +92 -0
- package/dist/ikoncomponents/widgets/index.d.ts +2 -0
- package/dist/ikoncomponents/widgets/index.js +14 -0
- package/dist/ikoncomponents/widgets/type.d.ts +10 -0
- package/dist/ikoncomponents/widgets/type.js +2 -0
- package/dist/ikoncomponents/work-in-progress/index.d.ts +1 -0
- package/dist/ikoncomponents/work-in-progress/index.js +4 -0
- package/dist/index.d.ts +138 -0
- package/dist/index.js +116 -14
- package/dist/shadcn/accordion.d.ts +7 -0
- package/dist/shadcn/accordion.js +33 -0
- package/dist/shadcn/alert-dialog.d.ts +20 -0
- package/dist/shadcn/alert-dialog.js +83 -0
- package/dist/shadcn/alert.d.ts +9 -0
- package/dist/shadcn/alert.js +38 -0
- package/dist/shadcn/aspect-ratio.d.ts +3 -0
- package/dist/shadcn/aspect-ratio.js +19 -0
- package/dist/shadcn/avatar.d.ts +6 -0
- package/dist/shadcn/avatar.js +28 -0
- package/dist/shadcn/badge.d.ts +9 -0
- package/dist/shadcn/badge.js +35 -0
- package/dist/shadcn/breadcrumb.d.ts +11 -0
- package/dist/shadcn/breadcrumb.js +45 -0
- package/dist/shadcn/button.d.ts +10 -0
- package/dist/shadcn/button.js +47 -0
- package/dist/shadcn/calendar.d.ts +8 -0
- package/dist/shadcn/calendar.js +61 -0
- package/dist/shadcn/card.d.ts +9 -0
- package/dist/shadcn/card.js +42 -0
- package/dist/shadcn/checkbox.d.ts +4 -0
- package/dist/shadcn/checkbox.js +21 -0
- package/dist/shadcn/collapsible.d.ts +5 -0
- package/dist/shadcn/collapsible.js +27 -0
- package/dist/shadcn/command.d.ts +18 -0
- package/dist/shadcn/command.js +54 -0
- package/dist/shadcn/date-input.d.ts +7 -0
- package/dist/shadcn/date-input.js +179 -0
- package/dist/shadcn/date-range-picker.d.ts +24 -0
- package/dist/shadcn/date-range-picker.js +45 -0
- package/dist/shadcn/dialog.d.ts +15 -0
- package/dist/shadcn/dialog.js +57 -0
- package/dist/shadcn/drawer.d.ts +13 -0
- package/dist/shadcn/drawer.js +56 -0
- package/dist/shadcn/dropdown-menu.d.ts +25 -0
- package/dist/shadcn/dropdown-menu.js +77 -0
- package/dist/shadcn/form.d.ts +24 -0
- package/dist/shadcn/form.js +70 -0
- package/dist/shadcn/hover-card.d.ts +6 -0
- package/dist/shadcn/hover-card.js +28 -0
- package/dist/shadcn/input-otp.d.ts +34 -0
- package/dist/shadcn/input-otp.js +40 -0
- package/dist/shadcn/input.d.ts +3 -0
- package/dist/shadcn/input.js +18 -0
- package/dist/shadcn/label.d.ts +4 -0
- package/dist/shadcn/label.js +20 -0
- package/dist/shadcn/navigation-menu.d.ts +16 -0
- package/dist/shadcn/navigation-menu.js +74 -0
- package/dist/shadcn/popover.d.ts +7 -0
- package/dist/shadcn/popover.js +32 -0
- package/dist/shadcn/progress.d.ts +8 -0
- package/dist/shadcn/progress.js +23 -0
- package/dist/shadcn/radio-group.d.ts +5 -0
- package/dist/shadcn/radio-group.js +25 -0
- package/dist/shadcn/scroll-area.d.ts +5 -0
- package/dist/shadcn/scroll-area.js +26 -0
- package/dist/shadcn/select.d.ts +15 -0
- package/dist/shadcn/select.js +59 -0
- package/dist/shadcn/separator.d.ts +4 -0
- package/dist/shadcn/separator.js +20 -0
- package/dist/shadcn/sheet.d.ts +13 -0
- package/dist/shadcn/sheet.js +61 -0
- package/dist/shadcn/sidebar.d.ts +69 -0
- package/dist/shadcn/sidebar.js +242 -0
- package/dist/shadcn/skeleton.d.ts +3 -0
- package/dist/shadcn/skeleton.js +18 -0
- package/dist/shadcn/slider.d.ts +4 -0
- package/dist/shadcn/slider.js +26 -0
- package/dist/shadcn/sonner.d.ts +3 -0
- package/dist/shadcn/sonner.js +25 -0
- package/dist/shadcn/switch.d.ts +4 -0
- package/dist/shadcn/switch.js +20 -0
- package/dist/shadcn/table.d.ts +10 -0
- package/dist/shadcn/table.js +47 -0
- package/dist/shadcn/tabs.d.ts +7 -0
- package/dist/shadcn/tabs.js +32 -0
- package/dist/shadcn/textarea.d.ts +3 -0
- package/dist/shadcn/textarea.js +18 -0
- package/dist/shadcn/toggle-group.d.ts +9 -0
- package/dist/shadcn/toggle-group.js +35 -0
- package/dist/shadcn/toggle.d.ts +9 -0
- package/dist/shadcn/toggle.js +38 -0
- package/dist/shadcn/tooltip.d.ts +7 -0
- package/dist/shadcn/tooltip.js +32 -0
- package/dist/shadcn/workflow.d.ts +20 -0
- package/dist/shadcn/workflow.js +20 -0
- package/dist/styles.css +6163 -0
- package/dist/utils/actions/account/index.d.ts +5 -0
- package/dist/utils/actions/account/index.js +28 -0
- package/dist/utils/actions/account/type.d.ts +4 -0
- package/dist/utils/actions/account/type.js +1 -0
- package/dist/utils/actions/auth/index.d.ts +7 -0
- package/{templates/default/utils/actions/auth/index.ts → dist/utils/actions/auth/index.js} +58 -69
- package/dist/utils/actions/common/utils.d.ts +5 -0
- package/{templates/default/utils/actions/common/utils.ts → dist/utils/actions/common/utils.js} +25 -28
- package/dist/utils/actions/software/index.d.ts +11 -0
- package/dist/utils/actions/software/index.js +75 -0
- package/dist/utils/api/accountService/index.d.ts +23 -0
- package/dist/utils/api/accountService/index.js +64 -0
- package/dist/utils/api/accountService/type.d.ts +4 -0
- package/dist/utils/api/accountService/type.js +1 -0
- package/dist/utils/api/file-upload/index.d.ts +5 -0
- package/dist/utils/api/file-upload/index.js +80 -0
- package/dist/utils/api/file-upload/type.d.ts +6 -0
- package/dist/utils/api/file-upload/type.js +1 -0
- package/dist/utils/api/ikonBaseApi.d.ts +12 -0
- package/{templates/default/utils/api/ikonBaseApi.ts → dist/utils/api/ikonBaseApi.js} +104 -132
- package/dist/utils/api/loginService/index.d.ts +12 -0
- package/dist/utils/api/loginService/index.js +72 -0
- package/{templates/default/utils/api/loginService/type.ts → dist/utils/api/loginService/type.d.ts} +31 -35
- package/dist/utils/api/loginService/type.js +1 -0
- package/dist/utils/api/softwareService/index.d.ts +64 -0
- package/dist/utils/api/softwareService/index.js +212 -0
- package/dist/utils/api/softwareService/type.d.ts +54 -0
- package/dist/utils/api/softwareService/type.js +1 -0
- package/dist/utils/border-radius-provider.d.ts +11 -0
- package/{templates/default/utils/border-radius-provider.tsx → dist/utils/border-radius-provider.js} +35 -59
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +5 -0
- package/dist/utils/font-provider.d.ts +11 -0
- package/{templates/default/utils/font-provider.tsx → dist/utils/font-provider.js} +37 -61
- package/dist/utils/session/cookieSession.d.ts +8 -0
- package/dist/utils/session/cookieSession.js +33 -0
- package/dist/utils/theme-provider/index.d.ts +3 -0
- package/dist/utils/theme-provider/index.js +18 -0
- package/dist/utils/token-management/index.d.ts +10 -0
- package/dist/utils/token-management/index.js +69 -0
- package/dist/utils/token-management/types.d.ts +6 -0
- package/dist/utils/token-management/types.js +1 -0
- package/package.json +91 -17
- package/bin.js +0 -2
- package/dist/commands/init.js +0 -63
- package/dist/utlis/copyDir.js +0 -7
- package/templates/default/hooks/use-mobile.ts +0 -19
- package/templates/default/ikoncomponents/action-menu/index.tsx +0 -108
- package/templates/default/ikoncomponents/action-menu/type.ts +0 -18
- package/templates/default/ikoncomponents/activity-sheet/index.tsx +0 -63
- package/templates/default/ikoncomponents/alert-dialog/dialog-context.tsx +0 -65
- package/templates/default/ikoncomponents/alert-dialog/index.tsx +0 -80
- package/templates/default/ikoncomponents/app-breadcrumb/BreadcrumbProvider.tsx +0 -68
- package/templates/default/ikoncomponents/app-breadcrumb/index.tsx +0 -222
- package/templates/default/ikoncomponents/big-calendar/big-calender-event/index.tsx +0 -38
- package/templates/default/ikoncomponents/big-calendar/big-calender-toolbar/index.tsx +0 -81
- package/templates/default/ikoncomponents/big-calendar/index.css +0 -879
- package/templates/default/ikoncomponents/big-calendar/index.tsx +0 -59
- package/templates/default/ikoncomponents/big-calendar/type.ts +0 -37
- package/templates/default/ikoncomponents/buttons/index.tsx +0 -127
- package/templates/default/ikoncomponents/combobox-input/index.tsx +0 -75
- package/templates/default/ikoncomponents/combobox-input/type.ts +0 -14
- package/templates/default/ikoncomponents/custom-combo-dropdown/index.tsx +0 -242
- package/templates/default/ikoncomponents/data-table/datatable-column-filter/index.tsx +0 -80
- package/templates/default/ikoncomponents/data-table/datatable-faceted-filter/index.tsx +0 -149
- package/templates/default/ikoncomponents/data-table/datatable-filter-menu/index.tsx +0 -98
- package/templates/default/ikoncomponents/data-table/datatable-pagination/index.tsx +0 -119
- package/templates/default/ikoncomponents/data-table/datatable-toolbar/index.tsx +0 -45
- package/templates/default/ikoncomponents/data-table/function.ts +0 -7
- package/templates/default/ikoncomponents/data-table/index.tsx +0 -549
- package/templates/default/ikoncomponents/data-table/type.ts +0 -75
- package/templates/default/ikoncomponents/e-chart/index.tsx +0 -183
- package/templates/default/ikoncomponents/file-input/index.tsx +0 -27
- package/templates/default/ikoncomponents/fileUpload/index.tsx +0 -121
- package/templates/default/ikoncomponents/form-fields/combobox-input/index.tsx +0 -111
- package/templates/default/ikoncomponents/form-fields/combobox-input-value/index.tsx +0 -121
- package/templates/default/ikoncomponents/form-fields/date-input/index.tsx +0 -80
- package/templates/default/ikoncomponents/form-fields/file-input/index.tsx +0 -9
- package/templates/default/ikoncomponents/form-fields/input/index.tsx +0 -27
- package/templates/default/ikoncomponents/form-fields/otp-input/index.tsx +0 -39
- package/templates/default/ikoncomponents/form-fields/password-input/index.tsx +0 -52
- package/templates/default/ikoncomponents/form-fields/phone-input/index.tsx +0 -7
- package/templates/default/ikoncomponents/form-fields/textarea/index.tsx +0 -28
- package/templates/default/ikoncomponents/form-fields/types/index.ts +0 -46
- package/templates/default/ikoncomponents/glowing-effect/index.tsx +0 -171
- package/templates/default/ikoncomponents/icon/index.tsx +0 -22
- package/templates/default/ikoncomponents/image-cropper-upload/components/cropperImg.css +0 -19
- package/templates/default/ikoncomponents/image-cropper-upload/components/newImageUploadForm.tsx +0 -352
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form/index.tsx +0 -250
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.tsx +0 -32
- package/templates/default/ikoncomponents/image-cropper-upload/index.tsx +0 -95
- package/templates/default/ikoncomponents/image-cropper-upload/utils/index.ts +0 -117
- package/templates/default/ikoncomponents/loading-spinner/index.tsx +0 -43
- package/templates/default/ikoncomponents/main-layout/RefreshContext.tsx +0 -30
- package/templates/default/ikoncomponents/main-layout/SidebarNavContext.tsx +0 -103
- package/templates/default/ikoncomponents/main-layout/app-sidebar.tsx +0 -36
- package/templates/default/ikoncomponents/main-layout/footer.tsx +0 -21
- package/templates/default/ikoncomponents/main-layout/header.tsx +0 -53
- package/templates/default/ikoncomponents/main-layout/index.tsx +0 -38
- package/templates/default/ikoncomponents/main-layout/main-sidebar.tsx +0 -389
- package/templates/default/ikoncomponents/main-layout/nav-main.tsx +0 -103
- package/templates/default/ikoncomponents/multi-combobox/index.tsx +0 -345
- package/templates/default/ikoncomponents/no-data/index.tsx +0 -11
- package/templates/default/ikoncomponents/page-wrapper/index.tsx +0 -30
- package/templates/default/ikoncomponents/password-strength-meter/index.tsx +0 -49
- package/templates/default/ikoncomponents/phone-input/index.tsx +0 -72
- package/templates/default/ikoncomponents/provider-wrapper/index.tsx +0 -32
- package/templates/default/ikoncomponents/search-input/index.tsx +0 -18
- package/templates/default/ikoncomponents/sheet/index.tsx +0 -34
- package/templates/default/ikoncomponents/simple-widget/index.tsx +0 -54
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-table.tsx +0 -34
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-widget.tsx +0 -13
- package/templates/default/ikoncomponents/tabs/index.tsx +0 -139
- package/templates/default/ikoncomponents/title-progress/index.tsx +0 -41
- package/templates/default/ikoncomponents/tooltip/index.tsx +0 -17
- package/templates/default/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.tsx +0 -33
- package/templates/default/ikoncomponents/twolevel-dropdown/index.tsx +0 -279
- package/templates/default/ikoncomponents/upload-tab/index.tsx +0 -237
- package/templates/default/ikoncomponents/widgets/index.tsx +0 -81
- package/templates/default/ikoncomponents/widgets/type.ts +0 -11
- package/templates/default/ikoncomponents/work-in-progress/index.tsx +0 -16
- package/templates/default/shadcn/accordion.tsx +0 -66
- package/templates/default/shadcn/alert-dialog.tsx +0 -179
- package/templates/default/shadcn/alert.tsx +0 -66
- package/templates/default/shadcn/aspect-ratio.tsx +0 -11
- package/templates/default/shadcn/avatar.tsx +0 -53
- package/templates/default/shadcn/badge.tsx +0 -49
- package/templates/default/shadcn/breadcrumb.tsx +0 -109
- package/templates/default/shadcn/button.tsx +0 -64
- package/templates/default/shadcn/calendar.tsx +0 -227
- package/templates/default/shadcn/card.tsx +0 -92
- package/templates/default/shadcn/checkbox.tsx +0 -33
- package/templates/default/shadcn/collapsible.tsx +0 -33
- package/templates/default/shadcn/command.tsx +0 -184
- package/templates/default/shadcn/date-input.tsx +0 -259
- package/templates/default/shadcn/date-range-picker.tsx +0 -103
- package/templates/default/shadcn/dialog.tsx +0 -143
- package/templates/default/shadcn/drawer.tsx +0 -134
- package/templates/default/shadcn/dropdown-menu.tsx +0 -259
- package/templates/default/shadcn/form.tsx +0 -166
- package/templates/default/shadcn/hover-card.tsx +0 -44
- package/templates/default/shadcn/input-otp.tsx +0 -71
- package/templates/default/shadcn/input.tsx +0 -22
- package/templates/default/shadcn/label.tsx +0 -24
- package/templates/default/shadcn/navigation-menu.tsx +0 -195
- package/templates/default/shadcn/popover.tsx +0 -48
- package/templates/default/shadcn/progress.tsx +0 -40
- package/templates/default/shadcn/radio-group.tsx +0 -45
- package/templates/default/shadcn/scroll-area.tsx +0 -58
- package/templates/default/shadcn/select.tsx +0 -184
- package/templates/default/shadcn/separator.tsx +0 -28
- package/templates/default/shadcn/sheet.tsx +0 -139
- package/templates/default/shadcn/sidebar.tsx +0 -726
- package/templates/default/shadcn/skeleton.tsx +0 -15
- package/templates/default/shadcn/slider.tsx +0 -64
- package/templates/default/shadcn/sonner.tsx +0 -25
- package/templates/default/shadcn/switch.tsx +0 -31
- package/templates/default/shadcn/table.tsx +0 -116
- package/templates/default/shadcn/tabs.tsx +0 -67
- package/templates/default/shadcn/textarea.tsx +0 -18
- package/templates/default/shadcn/toggle-group.tsx +0 -83
- package/templates/default/shadcn/toggle.tsx +0 -47
- package/templates/default/shadcn/tooltip.tsx +0 -65
- package/templates/default/shadcn/workflow.tsx +0 -119
- package/templates/default/utils/actions/account/index.ts +0 -33
- package/templates/default/utils/actions/account/type.ts +0 -4
- package/templates/default/utils/actions/common/revalidate.ts +0 -18
- package/templates/default/utils/actions/common/type.ts +0 -4
- package/templates/default/utils/actions/software/index.ts +0 -106
- package/templates/default/utils/api/accountService/index.ts +0 -103
- package/templates/default/utils/api/accountService/type.ts +0 -4
- package/templates/default/utils/api/file-upload/index.ts +0 -103
- package/templates/default/utils/api/file-upload/type.ts +0 -8
- package/templates/default/utils/api/loginService/index.ts +0 -106
- package/templates/default/utils/api/softwareService/index.ts +0 -356
- package/templates/default/utils/api/softwareService/type.ts +0 -62
- package/templates/default/utils/cn.ts +0 -6
- package/templates/default/utils/session/cookieSession.ts +0 -49
- package/templates/default/utils/theme-provider/index.tsx +0 -11
- package/templates/default/utils/token-management/index.ts +0 -115
- package/templates/default/utils/token-management/types.ts +0 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Icon } from "../icon";
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../shadcn/tooltip";
|
|
5
|
+
import { Button } from "../../shadcn/button";
|
|
6
|
+
export function Widgets({ widgetData }) {
|
|
7
|
+
const firstRowWidgets = widgetData.slice(0, 4);
|
|
8
|
+
const secondRowWidgets = widgetData.slice(4);
|
|
9
|
+
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("div", { className: "flex flex-col md:flex-row gap-2", children: firstRowWidgets.map((widget) => (_jsxs("div", { className: "flex flex-1 flex-row justify-between border rounded-md p-2 border-l-4 border-l-primary", children: [_jsxs("div", { className: "flex flex-col", children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { className: "cursor-default select-text", children: _jsx("p", { className: "font-medium max-w-[240px] truncate", children: widget.widgetText }) }), _jsx(TooltipContent, { children: _jsx("p", { children: widget.widgetText }) })] }) }), _jsx("div", { children: widget.onButtonClickfunc ?
|
|
10
|
+
_jsx(Button, { className: "px-0", variant: "link", onClick: () => { var _a; return (_a = widget.onButtonClickfunc) === null || _a === void 0 ? void 0 : _a.call(widget, { id: widget.id }); }, children: widget.widgetNumber }) :
|
|
11
|
+
_jsx("p", { className: "inline-flex items-center justify-center px-0 py-2 text-sm font-medium border border-transparent rounded-md", children: widget.widgetNumber }) })] }), _jsx("div", { className: "flex justify-end items-center", children: widget.iconName && _jsx(Icon, { name: widget.iconName }) })] }, widget.id))) }), secondRowWidgets.length > 0 && (_jsx("div", { className: "flex flex-col md:flex-row gap-2", children: secondRowWidgets.map((widget) => (_jsxs("div", { className: "flex flex-1 flex-row justify-between border rounded-md p-2 border-l-4 border-l-primary", children: [_jsxs("div", { className: "flex flex-col", children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { className: "cursor-default select-text", children: _jsx("p", { className: "font-medium max-w-[240px] truncate", children: widget.widgetText }) }), _jsx(TooltipContent, { children: _jsx("p", { children: widget.widgetText }) })] }) }), _jsx("div", { children: widget.onButtonClickfunc ?
|
|
12
|
+
_jsx(Button, { className: "px-0", variant: "link", onClick: () => { var _a; return (_a = widget.onButtonClickfunc) === null || _a === void 0 ? void 0 : _a.call(widget, { id: widget.id }); }, children: widget.widgetNumber }) :
|
|
13
|
+
_jsx("p", { className: "inline-flex items-center justify-center px-0 py-2 text-sm font-medium border border-transparent rounded-md", children: widget.widgetNumber }) })] }), _jsx("div", { className: "flex justify-end items-center", children: widget.iconName && _jsx(Icon, { name: widget.iconName }) })] }, widget.id))) }))] }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface WidgetProps {
|
|
2
|
+
id: string;
|
|
3
|
+
widgetText: string;
|
|
4
|
+
widgetNumber: string;
|
|
5
|
+
iconName?: string;
|
|
6
|
+
onButtonClickfunc?: (...params: (string | (Record<string, string>))[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface WidgetsFunctionProps {
|
|
9
|
+
widgetData: WidgetProps[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WorkInProgress(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function WorkInProgress() {
|
|
3
|
+
return (_jsx("div", { className: "flex h-full items-center justify-center", children: _jsxs("div", { className: "bg-background text-forefround rounded-xl p-6 text-center max-w-md", children: [_jsx("div", { className: "text-3xl font-bold mb-2 animate-pulse", children: "\uD83D\uDEA7 Work in Progress" }), _jsx("p", { className: "text-muted-foreground", children: "We\u2019re currently working on this section. Check back soon!" })] }) }));
|
|
4
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import "./styles.css";
|
|
2
|
+
export * from "./shadcn/accordion";
|
|
3
|
+
export * from "./shadcn/alert-dialog";
|
|
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 type { ActionMenuProps, ExtraActionParams, } from "./ikoncomponents/action-menu/type";
|
|
47
|
+
export { CustomAlertDialog } from "./ikoncomponents/alert-dialog";
|
|
48
|
+
export { useDialog, DialogProvider, } from "./ikoncomponents/alert-dialog/dialog-context";
|
|
49
|
+
export { TextButton, TextButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, IconButton, IconButtonWithTooltip, } from "./ikoncomponents/buttons";
|
|
50
|
+
export type { ButtonProps, ButtonWithTooltipProps, } from "./ikoncomponents/buttons";
|
|
51
|
+
export { ComboboxInput } from "./ikoncomponents/combobox-input";
|
|
52
|
+
export type { ComboBoxInputProps, ComboboxItemProps, } from "./ikoncomponents/combobox-input/type";
|
|
53
|
+
export { DataTableColumnFilter } from "./ikoncomponents/data-table/datatable-column-filter";
|
|
54
|
+
export { DataTableFacetedFilter } from "./ikoncomponents/data-table/datatable-faceted-filter";
|
|
55
|
+
export { DataTableFilterMenu } from "./ikoncomponents/data-table/datatable-filter-menu";
|
|
56
|
+
export { convertFileToObject, FileUploader, getImageFromObject, } from "./ikoncomponents/fileUpload";
|
|
57
|
+
export type { FileUploaderProps } from "./ikoncomponents/fileUpload";
|
|
58
|
+
export { DataTablePagination } from "./ikoncomponents/data-table/datatable-pagination";
|
|
59
|
+
export { DataTableToolbar } from "./ikoncomponents/data-table/datatable-toolbar";
|
|
60
|
+
export { getDataTableColumnTitle } from "./ikoncomponents/data-table/function";
|
|
61
|
+
export { DataTable } from "./ikoncomponents/data-table";
|
|
62
|
+
export type { DataTableProps, DTColumnsProps, DTExtraParamsProps, DTActionMenuProps, DataTableViewOptionsProps, DTToolBarProps, DataTableFilterProps, DataTableFacetedFilterProps, DataTablePaginationProps, DragDropHeaderProp, } from "./ikoncomponents/data-table/type";
|
|
63
|
+
export { EChart } from "./ikoncomponents/e-chart";
|
|
64
|
+
export { FileInput } from "./ikoncomponents/file-input";
|
|
65
|
+
export { GlowingEffect } from "./ikoncomponents/glowing-effect";
|
|
66
|
+
export { Icon } from "./ikoncomponents/icon";
|
|
67
|
+
export { LoadingSpinner } from "./ikoncomponents/loading-spinner";
|
|
68
|
+
export type { ISVGProps, LoadingSpinnerProps, } from "./ikoncomponents/loading-spinner";
|
|
69
|
+
export { MultiCombobox } from "./ikoncomponents/multi-combobox";
|
|
70
|
+
export { NoDataComponent } from "./ikoncomponents/no-data";
|
|
71
|
+
export { PageWrapper } from "./ikoncomponents/page-wrapper";
|
|
72
|
+
export { PasswordStrengthMeter } from "./ikoncomponents/password-strength-meter";
|
|
73
|
+
export { PhoneInput } from "./ikoncomponents/phone-input";
|
|
74
|
+
export { SearchInput } from "./ikoncomponents/search-input";
|
|
75
|
+
export { SheetComponent } from "./ikoncomponents/sheet";
|
|
76
|
+
export { SimpleWidget } from "./ikoncomponents/simple-widget";
|
|
77
|
+
export { CustomTabs } from "./ikoncomponents/tabs";
|
|
78
|
+
export type { TabArray, TabProps } from "./ikoncomponents/tabs/type";
|
|
79
|
+
export { ThemeToggleBtn } from "./ikoncomponents/theme-toggle-btn";
|
|
80
|
+
export { TitleProgress } from "./ikoncomponents/title-progress";
|
|
81
|
+
export { TooltipComponent } from "./ikoncomponents/tooltip";
|
|
82
|
+
export { FrameworkItemDropdown } from "./ikoncomponents/twolevel-dropdown";
|
|
83
|
+
export type { FrameworkEntry, TreeNode, ParentEntry, ProcessedFrameworkData, } from "./ikoncomponents/twolevel-dropdown";
|
|
84
|
+
export { Widgets } from "./ikoncomponents/widgets";
|
|
85
|
+
export type { WidgetProps, WidgetsFunctionProps, } from "./ikoncomponents/widgets/type";
|
|
86
|
+
export { BigCalendar } from "./ikoncomponents/big-calendar";
|
|
87
|
+
export type { BigCalendarProps, ExtraParamsEvent, BigCalendarEventProps, BigCalenderToolbarProps, } from "./ikoncomponents/big-calendar/type";
|
|
88
|
+
export { BreadcrumbProvider, useBreadcrumb, } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
89
|
+
export type { BreadcrumbItemProps } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
|
|
90
|
+
export { AppBreadcrumb, RenderAppBreadcrumb, } from "./ikoncomponents/app-breadcrumb";
|
|
91
|
+
export { FormComboboxInput } from "./ikoncomponents/form-fields/combobox-input";
|
|
92
|
+
export { FormComboboxInputWithValue } from "./ikoncomponents/form-fields/combobox-input-value";
|
|
93
|
+
export { FormDateInput } from "./ikoncomponents/form-fields/date-input";
|
|
94
|
+
export { FormFileInput } from "./ikoncomponents/form-fields/file-input";
|
|
95
|
+
export { FormInput } from "./ikoncomponents/form-fields/input";
|
|
96
|
+
export { FormMultiComboboxInput } from "./ikoncomponents/form-fields/multi-combobox-input";
|
|
97
|
+
export { FormOtpInput } from "./ikoncomponents/form-fields/otp-input";
|
|
98
|
+
export { FormPhoneInput } from "./ikoncomponents/form-fields/phone-input";
|
|
99
|
+
export { FormTextarea } from "./ikoncomponents/form-fields/textarea";
|
|
100
|
+
export type { FormFieldProps, FormInputProps, FormTextareaProps, FormDateInputProps, FormComboboxInputProps, FormComboboxItemProps, } from "./ikoncomponents/form-fields/types";
|
|
101
|
+
export { GradeTableLoader } from "./ikoncomponents/skeleton-loader/skeleton-table";
|
|
102
|
+
export type { GradeTableLoaderProps } from "./ikoncomponents/skeleton-loader/skeleton-table";
|
|
103
|
+
export { SkeletonWidget } from "./ikoncomponents/skeleton-loader/skeleton-widget";
|
|
104
|
+
export { UploadTab } from "./ikoncomponents/upload-tab";
|
|
105
|
+
export { AppSidebar } from "./ikoncomponents/main-layout/app-sidebar";
|
|
106
|
+
export { Footer } from "./ikoncomponents/main-layout/footer";
|
|
107
|
+
export { Header } from "./ikoncomponents/main-layout/header";
|
|
108
|
+
export type { Account, Software, } from "./ikoncomponents/main-layout/main-sidebar";
|
|
109
|
+
export { MainSidebar } from "./ikoncomponents/main-layout/main-sidebar";
|
|
110
|
+
export { NavMain } from "./ikoncomponents/main-layout/nav-main";
|
|
111
|
+
export type { SidebarNavSubItem, SidebarNavItem, SidebarNavContextType, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
112
|
+
export { SidebarNavProvider, useSidebarNav, } from "./ikoncomponents/main-layout/SidebarNavContext";
|
|
113
|
+
export { MainLayout } from "./ikoncomponents/main-layout";
|
|
114
|
+
export { ProviderWrapper } from "./ikoncomponents/provider-wrapper";
|
|
115
|
+
export { ActivitySheet } from "./ikoncomponents/activity-sheet";
|
|
116
|
+
export type { ActivityLogProps } from "./ikoncomponents/activity-sheet";
|
|
117
|
+
export { ImageCropperProvider, useImageCropper, } from "./ikoncomponents/image-cropper-upload";
|
|
118
|
+
export type { ImageCropperProps, OriginalImageProps, AspectRatioWiseImagesProps, ImageCropperContextProps, } from "./ikoncomponents/image-cropper-upload";
|
|
119
|
+
export { ImageCropper } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
120
|
+
export type { CropperImgProps } from "./ikoncomponents/image-cropper-upload/image-cropper";
|
|
121
|
+
export { CropperFormWithModal } from "./ikoncomponents/image-cropper-upload/cropper-form-with-modal";
|
|
122
|
+
export { CropperForm } from "./ikoncomponents/image-cropper-upload/cropper-form";
|
|
123
|
+
export { NewCropperImg } from "./ikoncomponents/image-cropper-upload/components/newCropper";
|
|
124
|
+
export type { CropperImgProps as NewCropperImgProps } from "./ikoncomponents/image-cropper-upload/components/newCropper";
|
|
125
|
+
export { NewImageForm } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
126
|
+
export type { ImageFormProps } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
|
|
127
|
+
export { WorkInProgress } from "./ikoncomponents/work-in-progress";
|
|
128
|
+
export { CustomComboboxInput } from "./ikoncomponents/custom-combo-dropdown";
|
|
129
|
+
export { ThemeProvider } from "./utils/theme-provider";
|
|
130
|
+
export { RadiusProvider, useRadius } from "./utils/border-radius-provider";
|
|
131
|
+
export { FontProvider, useFont } from "./utils/font-provider";
|
|
132
|
+
export { cn } from "./utils/cn";
|
|
133
|
+
export type { CookieSessionOptionsProps } from "./utils/session/cookieSession";
|
|
134
|
+
export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession, } from "./utils/session/cookieSession";
|
|
135
|
+
export { getValidAccessToken, refreshAccessToken, decodeAccessToken, logOut } from "./utils/token-management";
|
|
136
|
+
export type { TokenResponse } from "./utils/token-management/types";
|
|
137
|
+
export { useIsMobile } from "./hooks/use-mobile";
|
|
138
|
+
export { useRefresh } from "./ikoncomponents/main-layout/RefreshContext";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import "./styles.css"; // just imports, no processing
|
|
2
|
+
export * from "./shadcn/accordion";
|
|
3
|
+
export * from "./shadcn/alert-dialog";
|
|
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 } 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";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
15
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
16
|
+
import { cn } from "../utils/cn";
|
|
17
|
+
function Accordion(_a) {
|
|
18
|
+
var props = __rest(_a, []);
|
|
19
|
+
return _jsx(AccordionPrimitive.Root, Object.assign({ "data-slot": "accordion" }, props));
|
|
20
|
+
}
|
|
21
|
+
function AccordionItem(_a) {
|
|
22
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
+
return (_jsx(AccordionPrimitive.Item, Object.assign({ "data-slot": "accordion-item", className: cn("border-b last:border-b-0", className) }, props)));
|
|
24
|
+
}
|
|
25
|
+
function AccordionTrigger(_a) {
|
|
26
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
27
|
+
return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ "data-slot": "accordion-trigger", className: cn("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", className) }, props, { children: [children, _jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })] })) }));
|
|
28
|
+
}
|
|
29
|
+
function AccordionContent(_a) {
|
|
30
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
31
|
+
return (_jsx(AccordionPrimitive.Content, Object.assign({ "data-slot": "accordion-content", className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }, props, { children: _jsx("div", { className: cn("pt-0 pb-4", className), children: children }) })));
|
|
32
|
+
}
|
|
33
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare const AlertDialog: {
|
|
4
|
+
(props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const AlertDialogPortal: {
|
|
9
|
+
(props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const AlertDialogHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const AlertDialogFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
16
|
+
import { cn } from "../utils/cn";
|
|
17
|
+
import { buttonVariants } from "./button";
|
|
18
|
+
// ✅ Root (NO ref here!)
|
|
19
|
+
const AlertDialog = (props) => _jsx(AlertDialogPrimitive.Root, Object.assign({ "data-slot": "alert-dialog" }, props));
|
|
20
|
+
AlertDialog.displayName = "AlertDialog";
|
|
21
|
+
// ✅ Trigger
|
|
22
|
+
const AlertDialogTrigger = React.forwardRef((props, ref) => (_jsx(AlertDialogPrimitive.Trigger, Object.assign({ "data-slot": "alert-dialog-trigger", ref: ref }, props))));
|
|
23
|
+
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
24
|
+
// ✅ Portal (NO ref here!)
|
|
25
|
+
const AlertDialogPortal = (props) => _jsx(AlertDialogPrimitive.Portal, Object.assign({ "data-slot": "alert-dialog-portal" }, props));
|
|
26
|
+
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
27
|
+
// ✅ Overlay
|
|
28
|
+
const AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
29
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
30
|
+
return (_jsx(AlertDialogPrimitive.Overlay, Object.assign({ ref: ref, "data-slot": "alert-dialog-overlay", className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
31
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
32
|
+
"fixed inset-0 z-50 bg-black/50", className) }, props)));
|
|
33
|
+
});
|
|
34
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
35
|
+
// ✅ Content
|
|
36
|
+
const AlertDialogContent = React.forwardRef((_a, ref) => {
|
|
37
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
38
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, Object.assign({ ref: ref, "data-slot": "alert-dialog-content", className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
39
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
40
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 " +
|
|
41
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] " +
|
|
42
|
+
"translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 " +
|
|
43
|
+
"shadow-lg duration-200 sm:max-w-lg", className) }, props))] }));
|
|
44
|
+
});
|
|
45
|
+
AlertDialogContent.displayName = "AlertDialogContent";
|
|
46
|
+
// ✅ Header
|
|
47
|
+
const AlertDialogHeader = React.forwardRef((_a, ref) => {
|
|
48
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
49
|
+
return (_jsx("div", Object.assign({ ref: ref, "data-slot": "alert-dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className) }, props)));
|
|
50
|
+
});
|
|
51
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
52
|
+
// ✅ Footer
|
|
53
|
+
const AlertDialogFooter = React.forwardRef((_a, ref) => {
|
|
54
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
55
|
+
return (_jsx("div", Object.assign({ ref: ref, "data-slot": "alert-dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className) }, props)));
|
|
56
|
+
});
|
|
57
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
58
|
+
// ✅ Title
|
|
59
|
+
const AlertDialogTitle = React.forwardRef((_a, ref) => {
|
|
60
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
61
|
+
return (_jsx(AlertDialogPrimitive.Title, Object.assign({ ref: ref, "data-slot": "alert-dialog-title", className: cn("text-lg font-semibold bg-background", className) }, props)));
|
|
62
|
+
});
|
|
63
|
+
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
64
|
+
// ✅ Description
|
|
65
|
+
const AlertDialogDescription = React.forwardRef((_a, ref) => {
|
|
66
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
67
|
+
return (_jsx(AlertDialogPrimitive.Description, Object.assign({ ref: ref, "data-slot": "alert-dialog-description", className: cn("text-muted-foreground text-sm bg-background", className) }, props)));
|
|
68
|
+
});
|
|
69
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
70
|
+
// ✅ Action
|
|
71
|
+
const AlertDialogAction = React.forwardRef((_a, ref) => {
|
|
72
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
73
|
+
return (_jsx(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: cn(buttonVariants(), className) }, props)));
|
|
74
|
+
});
|
|
75
|
+
AlertDialogAction.displayName = "AlertDialogAction";
|
|
76
|
+
// ✅ Cancel
|
|
77
|
+
const AlertDialogCancel = React.forwardRef((_a, ref) => {
|
|
78
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
79
|
+
return (_jsx(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: cn(buttonVariants({ variant: "outline" }), "bg-background", className) }, props)));
|
|
80
|
+
});
|
|
81
|
+
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
82
|
+
// ✅ Exports
|
|
83
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { cva } from "class-variance-authority";
|
|
14
|
+
import { cn } from "../utils/cn";
|
|
15
|
+
const alertVariants = cva("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", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-card dark:bg-background text-card-foreground",
|
|
19
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "default",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
function Alert(_a) {
|
|
27
|
+
var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
|
|
28
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert", role: "alert", className: cn(alertVariants({ variant }), className) }, props)));
|
|
29
|
+
}
|
|
30
|
+
function AlertTitle(_a) {
|
|
31
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
32
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-title", className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className) }, props)));
|
|
33
|
+
}
|
|
34
|
+
function AlertDescription(_a) {
|
|
35
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-description", className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className) }, props)));
|
|
37
|
+
}
|
|
38
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
15
|
+
function AspectRatio(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return _jsx(AspectRatioPrimitive.Root, Object.assign({ "data-slot": "aspect-ratio" }, props));
|
|
18
|
+
}
|
|
19
|
+
export { AspectRatio };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
15
|
+
import { cn } from "../utils/cn";
|
|
16
|
+
function Avatar(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AvatarPrimitive.Root, Object.assign({ "data-slot": "avatar", className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className) }, props)));
|
|
19
|
+
}
|
|
20
|
+
function AvatarImage(_a) {
|
|
21
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
22
|
+
return (_jsx(AvatarPrimitive.Image, Object.assign({ "data-slot": "avatar-image", className: cn("aspect-square size-full", className) }, props)));
|
|
23
|
+
}
|
|
24
|
+
function AvatarFallback(_a) {
|
|
25
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
26
|
+
return (_jsx(AvatarPrimitive.Fallback, Object.assign({ "data-slot": "avatar-fallback", className: cn("bg-foreground text-background flex size-full items-center justify-center rounded-full", className) }, props)));
|
|
27
|
+
}
|
|
28
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "verified" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|