eai-frontend-components 2.0.7 → 2.0.8
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/dist/index.d.ts +24 -73
- package/package.json +1 -1
- package/dist/components/accordion.d.ts +0 -8
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.js +0 -13
- package/dist/components/alert-dialog.d.ts +0 -25
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js +0 -27
- package/dist/components/alert.d.ts +0 -9
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/alert.js +0 -22
- package/dist/components/avatar.d.ts +0 -7
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -11
- package/dist/components/badge.d.ts +0 -10
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -26
- package/dist/components/breadcrumb.d.ts +0 -20
- package/dist/components/breadcrumb.d.ts.map +0 -1
- package/dist/components/breadcrumb.js +0 -23
- package/dist/components/button.d.ts +0 -12
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -33
- package/dist/components/calendar.d.ts +0 -9
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/calendar.js +0 -70
- package/dist/components/card.d.ts +0 -9
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -16
- package/dist/components/carousel.d.ts +0 -19
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js +0 -98
- package/dist/components/chart.d.ts +0 -63
- package/dist/components/chart.d.ts.map +0 -1
- package/dist/components/chart.js +0 -130
- package/dist/components/checkbox.d.ts +0 -5
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.js +0 -8
- package/dist/components/collapsible.d.ts +0 -6
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -5
- package/dist/components/command.d.ts +0 -81
- package/dist/components/command.d.ts.map +0 -1
- package/dist/components/command.js +0 -28
- package/dist/components/context-menu.d.ts +0 -28
- package/dist/components/context-menu.d.ts.map +0 -1
- package/dist/components/context-menu.js +0 -33
- package/dist/components/custom/date-picker.d.ts +0 -12
- package/dist/components/custom/date-picker.d.ts.map +0 -1
- package/dist/components/custom/date-picker.js +0 -35
- package/dist/components/custom/form/checkbox.d.ts +0 -13
- package/dist/components/custom/form/checkbox.d.ts.map +0 -1
- package/dist/components/custom/form/checkbox.js +0 -15
- package/dist/components/custom/form/color.d.ts +0 -15
- package/dist/components/custom/form/color.d.ts.map +0 -1
- package/dist/components/custom/form/color.js +0 -40
- package/dist/components/custom/form/combobox.d.ts +0 -37
- package/dist/components/custom/form/combobox.d.ts.map +0 -1
- package/dist/components/custom/form/combobox.js +0 -82
- package/dist/components/custom/form/cpf-cnpj.d.ts +0 -16
- package/dist/components/custom/form/cpf-cnpj.d.ts.map +0 -1
- package/dist/components/custom/form/cpf-cnpj.js +0 -32
- package/dist/components/custom/form/currency.d.ts +0 -14
- package/dist/components/custom/form/currency.d.ts.map +0 -1
- package/dist/components/custom/form/currency.js +0 -15
- package/dist/components/custom/form/date-range.d.ts +0 -16
- package/dist/components/custom/form/date-range.d.ts.map +0 -1
- package/dist/components/custom/form/date-range.js +0 -24
- package/dist/components/custom/form/date.d.ts +0 -16
- package/dist/components/custom/form/date.d.ts.map +0 -1
- package/dist/components/custom/form/date.js +0 -35
- package/dist/components/custom/form/decimal.d.ts +0 -14
- package/dist/components/custom/form/decimal.d.ts.map +0 -1
- package/dist/components/custom/form/decimal.js +0 -15
- package/dist/components/custom/form/file.d.ts +0 -15
- package/dist/components/custom/form/file.d.ts.map +0 -1
- package/dist/components/custom/form/file.js +0 -18
- package/dist/components/custom/form/form-help-text.d.ts +0 -3
- package/dist/components/custom/form/form-help-text.d.ts.map +0 -1
- package/dist/components/custom/form/form-help-text.js +0 -7
- package/dist/components/custom/form/form-label.d.ts +0 -4
- package/dist/components/custom/form/form-label.d.ts.map +0 -1
- package/dist/components/custom/form/form-label.js +0 -9
- package/dist/components/custom/form/form-message.d.ts +0 -3
- package/dist/components/custom/form/form-message.d.ts.map +0 -1
- package/dist/components/custom/form/form-message.js +0 -5
- package/dist/components/custom/form/ghost.d.ts +0 -8
- package/dist/components/custom/form/ghost.d.ts.map +0 -1
- package/dist/components/custom/form/ghost.js +0 -8
- package/dist/components/custom/form/input.d.ts +0 -18
- package/dist/components/custom/form/input.d.ts.map +0 -1
- package/dist/components/custom/form/input.js +0 -14
- package/dist/components/custom/form/mask.d.ts +0 -19
- package/dist/components/custom/form/mask.d.ts.map +0 -1
- package/dist/components/custom/form/mask.js +0 -19
- package/dist/components/custom/form/multi-select-old.d.ts +0 -19
- package/dist/components/custom/form/multi-select-old.d.ts.map +0 -1
- package/dist/components/custom/form/multi-select-old.js +0 -30
- package/dist/components/custom/form/multi-select.d.ts +0 -26
- package/dist/components/custom/form/multi-select.d.ts.map +0 -1
- package/dist/components/custom/form/multi-select.js +0 -66
- package/dist/components/custom/form/password.d.ts +0 -16
- package/dist/components/custom/form/password.d.ts.map +0 -1
- package/dist/components/custom/form/password.js +0 -14
- package/dist/components/custom/form/percent.d.ts +0 -14
- package/dist/components/custom/form/percent.d.ts.map +0 -1
- package/dist/components/custom/form/percent.js +0 -15
- package/dist/components/custom/form/phone.d.ts +0 -16
- package/dist/components/custom/form/phone.d.ts.map +0 -1
- package/dist/components/custom/form/phone.js +0 -23
- package/dist/components/custom/form/radio-group.d.ts +0 -23
- package/dist/components/custom/form/radio-group.d.ts.map +0 -1
- package/dist/components/custom/form/radio-group.js +0 -15
- package/dist/components/custom/form/select.d.ts +0 -20
- package/dist/components/custom/form/select.d.ts.map +0 -1
- package/dist/components/custom/form/select.js +0 -12
- package/dist/components/custom/form/step-new-form.d.ts +0 -10
- package/dist/components/custom/form/step-new-form.d.ts.map +0 -1
- package/dist/components/custom/form/step-new-form.js +0 -13
- package/dist/components/custom/form/switch.d.ts +0 -13
- package/dist/components/custom/form/switch.d.ts.map +0 -1
- package/dist/components/custom/form/switch.js +0 -16
- package/dist/components/custom/form/text.d.ts +0 -18
- package/dist/components/custom/form/text.d.ts.map +0 -1
- package/dist/components/custom/form/text.js +0 -14
- package/dist/components/custom/form/textarea.d.ts +0 -16
- package/dist/components/custom/form/textarea.d.ts.map +0 -1
- package/dist/components/custom/form/textarea.js +0 -19
- package/dist/components/custom/form/utils.d.ts +0 -18
- package/dist/components/custom/form/utils.d.ts.map +0 -1
- package/dist/components/custom/form/utils.js +0 -88
- package/dist/components/custom/header.d.ts +0 -3
- package/dist/components/custom/header.d.ts.map +0 -1
- package/dist/components/custom/header.js +0 -94
- package/dist/components/custom/label.d.ts +0 -13
- package/dist/components/custom/label.d.ts.map +0 -1
- package/dist/components/custom/label.js +0 -20
- package/dist/components/custom/not-found.d.ts +0 -3
- package/dist/components/custom/not-found.d.ts.map +0 -1
- package/dist/components/custom/not-found.js +0 -9
- package/dist/components/custom/sidebar/app-sidebar.d.ts +0 -5
- package/dist/components/custom/sidebar/app-sidebar.d.ts.map +0 -1
- package/dist/components/custom/sidebar/app-sidebar.js +0 -26
- package/dist/components/custom/sidebar/module-switcher.d.ts +0 -3
- package/dist/components/custom/sidebar/module-switcher.d.ts.map +0 -1
- package/dist/components/custom/sidebar/module-switcher.js +0 -55
- package/dist/components/custom/sidebar/nav-footer.d.ts +0 -3
- package/dist/components/custom/sidebar/nav-footer.d.ts.map +0 -1
- package/dist/components/custom/sidebar/nav-footer.js +0 -17
- package/dist/components/custom/sidebar/nav-main.d.ts +0 -3
- package/dist/components/custom/sidebar/nav-main.d.ts.map +0 -1
- package/dist/components/custom/sidebar/nav-main.js +0 -32
- package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
- package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
- package/dist/components/custom/sidebar/nav-submenu-collapsible.js +0 -21
- package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
- package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
- package/dist/components/custom/sidebar/nav-submenu-dropdown.js +0 -13
- package/dist/components/custom/sidebar/nav-user.d.ts +0 -3
- package/dist/components/custom/sidebar/nav-user.d.ts.map +0 -1
- package/dist/components/custom/sidebar/nav-user.js +0 -51
- package/dist/components/custom/sidebar/sidebar-button.d.ts +0 -9
- package/dist/components/custom/sidebar/sidebar-button.d.ts.map +0 -1
- package/dist/components/custom/sidebar/sidebar-button.js +0 -7
- package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
- package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
- package/dist/components/custom/sidebar/sidebar-item-two-lines.js +0 -5
- package/dist/components/custom/sidebar/sidebar-item.d.ts +0 -9
- package/dist/components/custom/sidebar/sidebar-item.d.ts.map +0 -1
- package/dist/components/custom/sidebar/sidebar-item.js +0 -7
- package/dist/components/custom/sidebar/types/sidebar.d.ts +0 -29
- package/dist/components/custom/sidebar/types/sidebar.d.ts.map +0 -1
- package/dist/components/custom/sidebar/types/sidebar.js +0 -5
- package/dist/components/custom/table/data-table-export.d.ts +0 -8
- package/dist/components/custom/table/data-table-export.d.ts.map +0 -1
- package/dist/components/custom/table/data-table-export.js +0 -65
- package/dist/components/custom/table/data-table-footer.d.ts +0 -25
- package/dist/components/custom/table/data-table-footer.d.ts.map +0 -1
- package/dist/components/custom/table/data-table-footer.js +0 -39
- package/dist/components/custom/table/data-table-header.d.ts +0 -9
- package/dist/components/custom/table/data-table-header.d.ts.map +0 -1
- package/dist/components/custom/table/data-table-header.js +0 -11
- package/dist/components/custom/table/data-table-rows.d.ts +0 -13
- package/dist/components/custom/table/data-table-rows.d.ts.map +0 -1
- package/dist/components/custom/table/data-table-rows.js +0 -25
- package/dist/components/custom/table/data-table.d.ts +0 -35
- package/dist/components/custom/table/data-table.d.ts.map +0 -1
- package/dist/components/custom/table/data-table.js +0 -99
- package/dist/components/custom/table/types/data-table.d.ts +0 -29
- package/dist/components/custom/table/types/data-table.d.ts.map +0 -1
- package/dist/components/custom/table/types/data-table.js +0 -1
- package/dist/components/custom/theme-provider.d.ts +0 -24
- package/dist/components/custom/theme-provider.d.ts.map +0 -1
- package/dist/components/custom/theme-provider.js +0 -79
- package/dist/components/dateRangePicker.d.ts +0 -3
- package/dist/components/dateRangePicker.d.ts.map +0 -1
- package/dist/components/dateRangePicker.js +0 -15
- package/dist/components/dialog.d.ts +0 -23
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -23
- package/dist/components/drawer.d.ts +0 -23
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -22
- package/dist/components/dropdown-menu.d.ts +0 -28
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js +0 -32
- package/dist/components/form.d.ts +0 -24
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.js +0 -60
- package/dist/components/hover-card.d.ts +0 -7
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js +0 -9
- package/dist/components/input.d.ts +0 -24
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -71
- package/dist/components/label.d.ts +0 -6
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js +0 -9
- package/dist/components/masks.d.ts +0 -17
- package/dist/components/masks.d.ts.map +0 -1
- package/dist/components/masks.js +0 -25
- package/dist/components/pagination.d.ts +0 -30
- package/dist/components/pagination.d.ts.map +0 -1
- package/dist/components/pagination.js +0 -23
- package/dist/components/popover.d.ts +0 -7
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js +0 -11
- package/dist/components/progress.d.ts +0 -5
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js +0 -7
- package/dist/components/radio-group.d.ts +0 -6
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js +0 -14
- package/dist/components/scroll-area.d.ts +0 -6
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js +0 -11
- package/dist/components/select.d.ts +0 -14
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js +0 -24
- package/dist/components/separator.d.ts +0 -5
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -7
- package/dist/components/sheet.d.ts +0 -26
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -37
- package/dist/components/sidebar.d.ts +0 -67
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/sidebar.js +0 -221
- package/dist/components/skeleton.d.ts +0 -3
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -6
- package/dist/components/slider.d.ts +0 -5
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.js +0 -7
- package/dist/components/switch.d.ts +0 -5
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -7
- package/dist/components/table.d.ts +0 -11
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/table.js +0 -20
- package/dist/components/tabs.d.ts +0 -8
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.js +0 -12
- package/dist/components/textarea.d.ts +0 -4
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -14
- package/dist/components/toast.d.ts +0 -16
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toast.js +0 -34
- package/dist/components/toaster.d.ts +0 -2
- package/dist/components/toaster.d.ts.map +0 -1
- package/dist/components/toaster.js +0 -21
- package/dist/components/tooltip.d.ts +0 -8
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -10
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -13
- package/dist/components/ui/alert-dialog.d.ts +0 -25
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -27
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/alert.js +0 -22
- package/dist/components/ui/avatar.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/avatar.js +0 -11
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -26
- package/dist/components/ui/breadcrumb.d.ts +0 -20
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -23
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/calendar.d.ts +0 -9
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/calendar.js +0 -70
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -16
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -98
- package/dist/components/ui/chart.d.ts +0 -63
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/chart.js +0 -130
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/checkbox.js +0 -8
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -5
- package/dist/components/ui/command.d.ts +0 -81
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/command.js +0 -28
- package/dist/components/ui/context-menu.d.ts +0 -28
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/context-menu.js +0 -33
- package/dist/components/ui/custom/date-picker.d.ts +0 -12
- package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
- package/dist/components/ui/custom/date-picker.js +0 -35
- package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
- package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
- package/dist/components/ui/custom/form/checkbox.js +0 -15
- package/dist/components/ui/custom/form/color.d.ts +0 -15
- package/dist/components/ui/custom/form/color.d.ts.map +0 -1
- package/dist/components/ui/custom/form/color.js +0 -40
- package/dist/components/ui/custom/form/combobox.d.ts +0 -37
- package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
- package/dist/components/ui/custom/form/combobox.js +0 -82
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
- package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
- package/dist/components/ui/custom/form/currency.d.ts +0 -14
- package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
- package/dist/components/ui/custom/form/currency.js +0 -15
- package/dist/components/ui/custom/form/date-range.d.ts +0 -16
- package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
- package/dist/components/ui/custom/form/date-range.js +0 -24
- package/dist/components/ui/custom/form/date.d.ts +0 -16
- package/dist/components/ui/custom/form/date.d.ts.map +0 -1
- package/dist/components/ui/custom/form/date.js +0 -35
- package/dist/components/ui/custom/form/decimal.d.ts +0 -14
- package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
- package/dist/components/ui/custom/form/decimal.js +0 -15
- package/dist/components/ui/custom/form/file.d.ts +0 -15
- package/dist/components/ui/custom/form/file.d.ts.map +0 -1
- package/dist/components/ui/custom/form/file.js +0 -18
- package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
- package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-help-text.js +0 -7
- package/dist/components/ui/custom/form/form-label.d.ts +0 -7
- package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-label.js +0 -9
- package/dist/components/ui/custom/form/form-message.d.ts +0 -5
- package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
- package/dist/components/ui/custom/form/form-message.js +0 -5
- package/dist/components/ui/custom/form/ghost.d.ts +0 -8
- package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
- package/dist/components/ui/custom/form/ghost.js +0 -8
- package/dist/components/ui/custom/form/input.d.ts +0 -18
- package/dist/components/ui/custom/form/input.d.ts.map +0 -1
- package/dist/components/ui/custom/form/input.js +0 -14
- package/dist/components/ui/custom/form/mask.d.ts +0 -19
- package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
- package/dist/components/ui/custom/form/mask.js +0 -19
- package/dist/components/ui/custom/form/multi-select-old.d.ts +0 -19
- package/dist/components/ui/custom/form/multi-select-old.d.ts.map +0 -1
- package/dist/components/ui/custom/form/multi-select-old.js +0 -30
- package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
- package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
- package/dist/components/ui/custom/form/multi-select.js +0 -66
- package/dist/components/ui/custom/form/password.d.ts +0 -16
- package/dist/components/ui/custom/form/password.d.ts.map +0 -1
- package/dist/components/ui/custom/form/password.js +0 -14
- package/dist/components/ui/custom/form/percent.d.ts +0 -14
- package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
- package/dist/components/ui/custom/form/percent.js +0 -15
- package/dist/components/ui/custom/form/phone.d.ts +0 -16
- package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
- package/dist/components/ui/custom/form/phone.js +0 -23
- package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
- package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
- package/dist/components/ui/custom/form/radio-group.js +0 -15
- package/dist/components/ui/custom/form/select.d.ts +0 -20
- package/dist/components/ui/custom/form/select.d.ts.map +0 -1
- package/dist/components/ui/custom/form/select.js +0 -12
- package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
- package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
- package/dist/components/ui/custom/form/step-new-form.js +0 -13
- package/dist/components/ui/custom/form/switch.d.ts +0 -13
- package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
- package/dist/components/ui/custom/form/switch.js +0 -16
- package/dist/components/ui/custom/form/text.d.ts +0 -18
- package/dist/components/ui/custom/form/text.d.ts.map +0 -1
- package/dist/components/ui/custom/form/text.js +0 -14
- package/dist/components/ui/custom/form/textarea.d.ts +0 -16
- package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
- package/dist/components/ui/custom/form/textarea.js +0 -19
- package/dist/components/ui/custom/form/utils.d.ts +0 -18
- package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
- package/dist/components/ui/custom/form/utils.js +0 -88
- package/dist/components/ui/custom/header.d.ts +0 -11
- package/dist/components/ui/custom/header.d.ts.map +0 -1
- package/dist/components/ui/custom/header.js +0 -74
- package/dist/components/ui/custom/label.d.ts +0 -13
- package/dist/components/ui/custom/label.d.ts.map +0 -1
- package/dist/components/ui/custom/label.js +0 -20
- package/dist/components/ui/custom/not-found.d.ts +0 -3
- package/dist/components/ui/custom/not-found.d.ts.map +0 -1
- package/dist/components/ui/custom/not-found.js +0 -9
- package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +0 -5
- package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/app-sidebar.js +0 -26
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/module-switcher.js +0 -55
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
- package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
- package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
- package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
- package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +0 -9
- package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +0 -20
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
- package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
- package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
- package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-export.js +0 -65
- package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
- package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-footer.js +0 -39
- package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
- package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-header.js +0 -11
- package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
- package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table-rows.js +0 -25
- package/dist/components/ui/custom/table/data-table.d.ts +0 -35
- package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
- package/dist/components/ui/custom/table/data-table.js +0 -99
- package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
- package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
- package/dist/components/ui/custom/table/types/data-table.js +0 -1
- package/dist/components/ui/custom/theme-provider.d.ts +0 -24
- package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
- package/dist/components/ui/custom/theme-provider.js +0 -79
- package/dist/components/ui/dateRangePicker.d.ts +0 -3
- package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
- package/dist/components/ui/dateRangePicker.js +0 -15
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -23
- package/dist/components/ui/drawer.d.ts +0 -23
- package/dist/components/ui/drawer.d.ts.map +0 -1
- package/dist/components/ui/drawer.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -32
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/form.d.ts.map +0 -1
- package/dist/components/ui/form.js +0 -60
- package/dist/components/ui/hover-card.d.ts +0 -7
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/hover-card.js +0 -9
- package/dist/components/ui/input.d.ts +0 -24
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -71
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -9
- package/dist/components/ui/masks.d.ts +0 -17
- package/dist/components/ui/masks.d.ts.map +0 -1
- package/dist/components/ui/masks.js +0 -25
- package/dist/components/ui/pagination.d.ts +0 -30
- package/dist/components/ui/pagination.d.ts.map +0 -1
- package/dist/components/ui/pagination.js +0 -23
- package/dist/components/ui/popover.d.ts +0 -7
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/popover.js +0 -11
- package/dist/components/ui/progress.d.ts +0 -5
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/progress.js +0 -7
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -14
- package/dist/components/ui/scroll-area.d.ts +0 -6
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -11
- package/dist/components/ui/select.d.ts +0 -14
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -24
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -26
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/sheet.js +0 -37
- package/dist/components/ui/sidebar.d.ts +0 -67
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- package/dist/components/ui/sidebar.js +0 -221
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -6
- package/dist/components/ui/slider.d.ts +0 -5
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -7
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -11
- package/dist/components/ui/table.d.ts.map +0 -1
- package/dist/components/ui/table.js +0 -20
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -12
- package/dist/components/ui/textarea.d.ts +0 -4
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -14
- package/dist/components/ui/toast.d.ts +0 -16
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toast.js +0 -34
- package/dist/components/ui/toaster.d.ts +0 -2
- package/dist/components/ui/toaster.d.ts.map +0 -1
- package/dist/components/ui/toaster.js +0 -21
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/use-calendar.d.ts +0 -7
- package/dist/components/ui/use-calendar.d.ts.map +0 -1
- package/dist/components/ui/use-calendar.js +0 -23
- package/dist/components/ui/use-toast.d.ts +0 -46
- package/dist/components/ui/use-toast.d.ts.map +0 -1
- package/dist/components/ui/use-toast.js +0 -125
- package/dist/components/use-calendar.d.ts +0 -7
- package/dist/components/use-calendar.d.ts.map +0 -1
- package/dist/components/use-calendar.js +0 -23
- package/dist/components/use-toast.d.ts +0 -46
- package/dist/components/use-toast.d.ts.map +0 -1
- package/dist/components/use-toast.js +0 -125
- 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/index.d.ts.map +0 -1
- package/dist/lib/help/date-utils.d.ts +0 -7
- package/dist/lib/help/date-utils.d.ts.map +0 -1
- package/dist/lib/help/date-utils.js +0 -34
- package/dist/lib/help/format.d.ts +0 -22
- package/dist/lib/help/format.d.ts.map +0 -1
- package/dist/lib/help/format.js +0 -140
- package/dist/lib/help/theme.d.ts +0 -291
- package/dist/lib/help/theme.d.ts.map +0 -1
- package/dist/lib/help/theme.js +0 -340
- package/dist/lib/help/uuid.d.ts +0 -2
- package/dist/lib/help/uuid.d.ts.map +0 -1
- package/dist/lib/help/uuid.js +0 -4
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -5
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import * as FormComponents from '../../form';
|
|
4
|
-
import { formHelpText } from './form-help-text';
|
|
5
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
6
|
-
import { formMessage } from './form-message';
|
|
7
|
-
import { MaskInputFone } from './input';
|
|
8
|
-
const masks = ['(99) 9999-99999', '(99) 9 9999-9999'];
|
|
9
|
-
export const FormInputPhone = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, onChange, onKeyUp, }) => {
|
|
10
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
11
|
-
const [mask, setMask] = useState(masks[0]);
|
|
12
|
-
const getMask = (val) => (val.replace(/\D/g, '').length > 10 ? masks[1] : masks[0]);
|
|
13
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => {
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setMask(getMask(field.value || ''));
|
|
16
|
-
}, [field.value]);
|
|
17
|
-
return (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsx(FormControl, { children: _jsx(MaskInputFone, { ...field, className: className, placeholder: placeholder ?? '(00) 0 0000-0000', disabled: disabled || formState.isSubmitting, mask: mask, onChange: (e) => {
|
|
18
|
-
onChange?.(e);
|
|
19
|
-
field.onChange(e);
|
|
20
|
-
setMask(getMask(e.target.value));
|
|
21
|
-
}, onKeyUp: (e) => onKeyUp?.(e) }) }), formMessage(FormMessage)] }));
|
|
22
|
-
} }));
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface RadioOption {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface Props {
|
|
8
|
-
control: any;
|
|
9
|
-
name: string;
|
|
10
|
-
value?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
subLabel?: string;
|
|
13
|
-
helpText?: JSX.Element;
|
|
14
|
-
className?: string;
|
|
15
|
-
classNameOptions?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
required?: boolean;
|
|
18
|
-
options?: RadioOption[];
|
|
19
|
-
onChange?: (value: string) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const FormRadioGroup: React.FC<Props>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/radio-group.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+D1C,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
import * as FormComponents from '../../form';
|
|
4
|
-
import { formHelpText } from './form-help-text';
|
|
5
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
6
|
-
import { formMessage } from './form-message';
|
|
7
|
-
import { Label } from './label';
|
|
8
|
-
import { RadioGroup, RadioGroupItem } from './radio-group';
|
|
9
|
-
export const FormRadioGroup = ({ control, name, value, label, subLabel, helpText, className, classNameOptions, disabled, required, options, onChange, }) => {
|
|
10
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
11
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (_jsxs(FormItem, { children: [_jsxs("div", { className: cn('flex items-center space-x-1.5 mb-2', className), children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsx(FormControl, { children: _jsx(RadioGroup, { onValueChange: (value) => {
|
|
12
|
-
field?.onChange?.(value);
|
|
13
|
-
onChange?.(value);
|
|
14
|
-
}, defaultValue: field.value, disabled: disabled || formState.isSubmitting, className: `${className}`, children: _jsx("div", { className: cn('flex flex-grow gap-6', classNameOptions), children: options?.map((option, index) => (_jsxs("div", { className: 'flex flex-col', children: [_jsxs("div", { className: 'flex items-center space-x-2', children: [_jsx(RadioGroupItem, { value: option.value, id: `r${option.value}`, checked: field.value === option.value, disabled: option.disabled }), _jsx(Label, { htmlFor: `r${option.value}`, className: option.disabled ? 'opacity-50' : '', children: option.label })] }, `radio-${name}-${index}`), option.description && (_jsx("div", { className: cn('pl-6 text-zinc-500', { 'opacity-50': option.disabled }), children: option.description }))] }, `radio-${name}-${index}`))) }) }) }), formMessage(FormMessage)] })) }, value));
|
|
15
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface SelectOption {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
default?: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface Props {
|
|
7
|
-
control: any;
|
|
8
|
-
name: string;
|
|
9
|
-
label: string;
|
|
10
|
-
subLabel?: string;
|
|
11
|
-
helpText?: JSX.Element;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
required?: boolean;
|
|
16
|
-
options: SelectOption[];
|
|
17
|
-
}
|
|
18
|
-
export declare const FormSelect: React.FC<Props>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/select.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,YAAY,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCtC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
import { Select } from '@radix-ui/react-select';
|
|
4
|
-
import * as FormComponents from '../../form';
|
|
5
|
-
import { formHelpText } from './form-help-text';
|
|
6
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
7
|
-
import { formMessage } from './form-message';
|
|
8
|
-
import { SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from './select';
|
|
9
|
-
export const FormSelect = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, options }) => {
|
|
10
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
11
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsx(FormControl, { children: _jsxs(Select, { onValueChange: field.onChange, defaultValue: field.value, disabled: disabled, children: [_jsx(SelectTrigger, { className: cn('', formState.errors[name] ? 'border-red-600' : '', className), children: _jsx(SelectValue, { className: 'text-slate-400', placeholder: placeholder }) }), _jsx(SelectContent, { className: 'bg-white cursor-pointer', children: _jsx(SelectGroup, { children: options.map((option) => (_jsx(SelectItem, { value: option.value, children: option.label }, option.value))) }) })] }) }), formMessage(FormMessage)] })) }));
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface PropsStepNewForm {
|
|
2
|
-
steps: {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}[];
|
|
6
|
-
currentIndex: number;
|
|
7
|
-
}
|
|
8
|
-
declare const StepNewForm: ({ steps, currentIndex }: PropsStepNewForm) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default StepNewForm;
|
|
10
|
-
//# sourceMappingURL=step-new-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"step-new-form.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/step-new-form.tsx"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACzB,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,GAAI,yBAAyB,gBAAgB,4CAsC7D,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Check } from 'lucide-react';
|
|
3
|
-
import { Separator } from '../../separator';
|
|
4
|
-
const StepNewForm = ({ steps, currentIndex }) => {
|
|
5
|
-
const getStepIcon = (index) => {
|
|
6
|
-
if (index < currentIndex) {
|
|
7
|
-
return (_jsx("div", { className: 'flex w-6 h-6 rounded-md items-center justify-center bg-background-secondary border', children: _jsx(Check, { size: 16, className: 'stroke-2 stroke-primary' }) }));
|
|
8
|
-
}
|
|
9
|
-
return (_jsx("div", { className: `flex w-6 h-6 rounded-md items-center justify-center border ${index === currentIndex ? 'bg-background-primary text-white' : 'bg-white text-black'}`, children: index + 1 }));
|
|
10
|
-
};
|
|
11
|
-
return (_jsx("div", { className: 'flex flex-row gap-x-3 my-2.5', children: steps.map((step, index, array) => (_jsxs("div", { className: 'flex items-center text-sm font-medium gap-x-3', children: [_jsxs("div", { className: 'flex items-center text-sm font-medium gap-x-3', children: [getStepIcon(index), step.label] }), index + 1 < array.length && (_jsx("div", { className: 'w-10', children: _jsx(Separator, {}) }))] }, step.id))) }));
|
|
12
|
-
};
|
|
13
|
-
export default StepNewForm;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
control: any;
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
subLabel?: string;
|
|
6
|
-
helpText?: JSX.Element;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const FormInputSwitch: React.FC<Props>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/switch.tsx"],"names":[],"mappings":"AAOA,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+B3C,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
import * as FormComponents from '../../form';
|
|
4
|
-
import { formHelpText } from './form-help-text';
|
|
5
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
6
|
-
import { formMessage } from './form-message';
|
|
7
|
-
import { Switch } from './switch';
|
|
8
|
-
export const FormInputSwitch = ({ control, name, label, subLabel, helpText, className, disabled, onCheckedChange }) => {
|
|
9
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
10
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field }) => (_jsxs(FormItem, { className: cn('flex items-top gap-x-2', className), children: [_jsx(FormControl, { children: _jsx(Switch, { ...field, checked: field.value, onCheckedChange: (checked) => {
|
|
11
|
-
field.onChange(checked);
|
|
12
|
-
if (onCheckedChange) {
|
|
13
|
-
onCheckedChange(checked);
|
|
14
|
-
}
|
|
15
|
-
}, disabled: disabled }) }), _jsxs("div", { className: 'flex h-full items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, false, 'pb-0'), helpText && formHelpText(helpText)] }), formMessage(FormMessage)] })) }));
|
|
16
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
control: any;
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
subLabel?: string;
|
|
6
|
-
helpText?: JSX.Element;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
maxLength?: number;
|
|
9
|
-
className?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
13
|
-
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const FormInputText: React.FC<Props>;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/text.tsx"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+CzC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as FormComponents from '../../form';
|
|
3
|
-
import { formHelpText } from './form-help-text';
|
|
4
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
5
|
-
import { formMessage } from './form-message';
|
|
6
|
-
import { InputText } from './input';
|
|
7
|
-
export const FormInputText = ({ control, name, label, subLabel, helpText, placeholder, maxLength, className, disabled, required, inputRef, onKeyUp, onChange, }) => {
|
|
8
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
9
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsx(FormControl, { children: _jsx(InputText, { ...field, maxLength: maxLength, placeholder: placeholder, disabled: disabled || formState.isSubmitting, value: field.value || '', onKeyUp: (e) => {
|
|
10
|
-
if (onKeyUp) {
|
|
11
|
-
onKeyUp(e);
|
|
12
|
-
}
|
|
13
|
-
}, ref: inputRef }) }), formMessage(FormMessage)] })) }));
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
control: any;
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
subLabel?: string;
|
|
6
|
-
helpText?: JSX.Element;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
12
|
-
onKeyUp?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const FormTextarea: React.FC<Props>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/textarea.tsx"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACpE;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAiDxC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as FormComponents from '../../form';
|
|
3
|
-
import { formHelpText } from './form-help-text';
|
|
4
|
-
import { formLabelAndSubLabel } from './form-label';
|
|
5
|
-
import { formMessage } from './form-message';
|
|
6
|
-
import { Textarea } from './textarea';
|
|
7
|
-
export const FormTextarea = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, onChange, onKeyUp, }) => {
|
|
8
|
-
const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
|
|
9
|
-
return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsx(FormControl, { children: _jsx(Textarea, { ...field, className: 'resize-none outline-none focus:outline-none', placeholder: placeholder, disabled: disabled || formState.isSubmitting, onChange: (e) => {
|
|
10
|
-
field.onChange(e);
|
|
11
|
-
if (onChange) {
|
|
12
|
-
onChange(e);
|
|
13
|
-
}
|
|
14
|
-
}, onKeyUp: (e) => {
|
|
15
|
-
if (onKeyUp) {
|
|
16
|
-
onKeyUp(e);
|
|
17
|
-
}
|
|
18
|
-
} }) }), formMessage(FormMessage)] })) }));
|
|
19
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type RGB = {
|
|
2
|
-
r: number;
|
|
3
|
-
g: number;
|
|
4
|
-
b: number;
|
|
5
|
-
};
|
|
6
|
-
type HSL = {
|
|
7
|
-
h: number;
|
|
8
|
-
s: number;
|
|
9
|
-
l: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const rgbToHex: ({ r, g, b }: RGB) => string;
|
|
12
|
-
export declare const hexToRgb: (hex: string) => RGB | null;
|
|
13
|
-
export declare const rgbToHsl: ({ r, g, b }: RGB) => HSL;
|
|
14
|
-
export declare const hslToRgb: ({ h, s, l }: HSL) => RGB;
|
|
15
|
-
export declare const formatRgba: (rgb: RGB, a?: number) => string;
|
|
16
|
-
export declare const formatHsla: (hsl: HSL, a?: number) => string;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/form/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACtD,KAAK,GAAG,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,eAAO,MAAM,QAAQ,GAAI,aAAa,GAAG,KAAG,MAG3C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG,GAAG,GAAG,IAS5C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,aAAa,GAAG,KAAG,GAmC3C,CAAC;AAYF,eAAO,MAAM,QAAQ,GAAI,aAAa,GAAG,KAAG,GAyB3C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,EAAE,UAAK,KAAG,MAE5C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,EAAE,UAAK,KAAG,MAE5C,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
export const rgbToHex = ({ r, g, b }) => {
|
|
2
|
-
const toHex = (n) => Math.max(0, Math.min(255, n)).toString(16).padStart(2, '0').toUpperCase();
|
|
3
|
-
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
4
|
-
};
|
|
5
|
-
export const hexToRgb = (hex) => {
|
|
6
|
-
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
7
|
-
return result
|
|
8
|
-
? {
|
|
9
|
-
r: Number.parseInt(result[1], 16),
|
|
10
|
-
g: Number.parseInt(result[2], 16),
|
|
11
|
-
b: Number.parseInt(result[3], 16),
|
|
12
|
-
}
|
|
13
|
-
: null;
|
|
14
|
-
};
|
|
15
|
-
export const rgbToHsl = ({ r, g, b }) => {
|
|
16
|
-
r /= 255;
|
|
17
|
-
g /= 255;
|
|
18
|
-
b /= 255;
|
|
19
|
-
const max = Math.max(r, g, b);
|
|
20
|
-
const min = Math.min(r, g, b);
|
|
21
|
-
let h = 0;
|
|
22
|
-
let s = 0;
|
|
23
|
-
const l = (max + min) / 2;
|
|
24
|
-
if (max !== min) {
|
|
25
|
-
const d = max - min;
|
|
26
|
-
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
27
|
-
switch (max) {
|
|
28
|
-
case r:
|
|
29
|
-
h = (g - b) / d + (g < b ? 6 : 0);
|
|
30
|
-
break;
|
|
31
|
-
case g:
|
|
32
|
-
h = (b - r) / d + 2;
|
|
33
|
-
break;
|
|
34
|
-
case b:
|
|
35
|
-
h = (r - g) / d + 4;
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
h /= 6;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
h: Math.round(h * 360),
|
|
42
|
-
s: Math.round(s * 100),
|
|
43
|
-
l: Math.round(l * 100),
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
const hue2rgb = (p, q, t) => {
|
|
47
|
-
let tempT = t;
|
|
48
|
-
if (tempT < 0)
|
|
49
|
-
tempT += 1;
|
|
50
|
-
if (tempT > 1)
|
|
51
|
-
tempT -= 1;
|
|
52
|
-
if (tempT < 1 / 6)
|
|
53
|
-
return p + (q - p) * 6 * tempT;
|
|
54
|
-
if (tempT < 1 / 2)
|
|
55
|
-
return q;
|
|
56
|
-
if (tempT < 2 / 3)
|
|
57
|
-
return p + (q - p) * (2 / 3 - tempT) * 6;
|
|
58
|
-
return p;
|
|
59
|
-
};
|
|
60
|
-
export const hslToRgb = ({ h, s, l }) => {
|
|
61
|
-
h /= 360;
|
|
62
|
-
s /= 100;
|
|
63
|
-
l /= 100;
|
|
64
|
-
let r;
|
|
65
|
-
let g;
|
|
66
|
-
let b;
|
|
67
|
-
if (s === 0) {
|
|
68
|
-
r = g = b = l;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
72
|
-
const p = 2 * l - q;
|
|
73
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
74
|
-
g = hue2rgb(p, q, h);
|
|
75
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
r: Math.round(r * 255),
|
|
79
|
-
g: Math.round(g * 255),
|
|
80
|
-
b: Math.round(b * 255),
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export const formatRgba = (rgb, a = 1) => {
|
|
84
|
-
return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${a})`;
|
|
85
|
-
};
|
|
86
|
-
export const formatHsla = (hsl, a = 1) => {
|
|
87
|
-
return `hsla(${hsl.h}, ${hsl.s}%, ${hsl.l}%, ${a})`;
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/custom/header.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,MAAM,+CAkIX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Modules, SidebarLinks } from '@/lib/constants/sidebar';
|
|
3
|
-
import { isUUIDv4 } from '@/lib/help/help';
|
|
4
|
-
import { getTailwindColorShades } from '@/lib/help/theme';
|
|
5
|
-
import { showLoadingAtom } from '@/lib/store/loading';
|
|
6
|
-
import { useAtomValue } from 'jotai';
|
|
7
|
-
import { useEffect, useRef, useState } from 'react';
|
|
8
|
-
import { useLocation, useNavigate } from 'react-router-dom';
|
|
9
|
-
import LoadingBar from 'react-top-loading-bar';
|
|
10
|
-
import { Reseller } from '../../custom/reseller';
|
|
11
|
-
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from '../breadcrumb';
|
|
12
|
-
import { SidebarTrigger } from '../sidebar';
|
|
13
|
-
import { DEFAULT_THEME_DATA, useTheme } from './theme-provider';
|
|
14
|
-
const Header = () => {
|
|
15
|
-
const { portalDefinitions } = useTheme();
|
|
16
|
-
const [disableReseller, setDisableReseller] = useState(false);
|
|
17
|
-
const navigate = useNavigate();
|
|
18
|
-
const location = useLocation();
|
|
19
|
-
const showLoading = useAtomValue(showLoadingAtom);
|
|
20
|
-
const refProgressLoading = useRef(null);
|
|
21
|
-
const pages = location.pathname
|
|
22
|
-
.split('/')
|
|
23
|
-
.filter((page) => page !== '' && Number.isNaN(parseInt(page)))
|
|
24
|
-
.filter((page) => !isUUIDv4(page));
|
|
25
|
-
const firstPage = pages[0];
|
|
26
|
-
const lastPage = pages[pages.length - 1];
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
showLoading ? refProgressLoading.current?.start() : refProgressLoading.current?.complete();
|
|
29
|
-
}, [showLoading]);
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
const keywordsToDisable = ['edit', 'new', 'administrative'];
|
|
32
|
-
const keywordsToIgnore = ['administrative/sim-cards'];
|
|
33
|
-
const shouldDisable = keywordsToDisable.some((keyword) => location.pathname.includes(keyword));
|
|
34
|
-
const shouldIgnore = keywordsToIgnore.some((keyword) => !location.pathname.includes(keyword));
|
|
35
|
-
setDisableReseller(shouldIgnore && shouldDisable);
|
|
36
|
-
}, [location]);
|
|
37
|
-
const setRouter = (path) => {
|
|
38
|
-
navigate(path);
|
|
39
|
-
};
|
|
40
|
-
const getPath = (index) => {
|
|
41
|
-
let path = '';
|
|
42
|
-
for (let i = 0; i <= index; i++) {
|
|
43
|
-
path += `/${pages[i]}`;
|
|
44
|
-
}
|
|
45
|
-
return path;
|
|
46
|
-
};
|
|
47
|
-
const getLinkSidebar = (index) => {
|
|
48
|
-
return Object.values(SidebarLinks[firstPage] ?? []).find((item) => item.path === getPath(index));
|
|
49
|
-
};
|
|
50
|
-
const getSubMenuItem = (index) => {
|
|
51
|
-
return Object.values(SidebarLinks[firstPage] ?? [])
|
|
52
|
-
.flatMap((item) => item.subMenuItems || [])
|
|
53
|
-
.find((sub) => sub.path === getPath(index));
|
|
54
|
-
};
|
|
55
|
-
const getModule = (page) => {
|
|
56
|
-
const module = Modules[page];
|
|
57
|
-
if (!module) {
|
|
58
|
-
return page;
|
|
59
|
-
}
|
|
60
|
-
return module?.title;
|
|
61
|
-
};
|
|
62
|
-
const getTitle = (index) => {
|
|
63
|
-
const linkSidebar = getLinkSidebar(index);
|
|
64
|
-
const subMenuItem = getSubMenuItem(index);
|
|
65
|
-
if (subMenuItem) {
|
|
66
|
-
return subMenuItem.label;
|
|
67
|
-
}
|
|
68
|
-
return linkSidebar?.title;
|
|
69
|
-
};
|
|
70
|
-
const renderBreadcrumbPage = (index) => {
|
|
71
|
-
return _jsx(BreadcrumbPage, { children: getTitle(index) });
|
|
72
|
-
};
|
|
73
|
-
const renderBreadcrumbLink = (page, index) => {
|
|
74
|
-
const linkSidebar = getLinkSidebar(index);
|
|
75
|
-
return linkSidebar?.subMenuType ? (renderBreadcrumbPage(index)) : (_jsx(BreadcrumbLink, { onClick: () => setRouter(getPath(index)), className: 'cursor-pointer', children: index === 0 ? getModule(page) : getTitle(index) }));
|
|
76
|
-
};
|
|
77
|
-
const renderBreadcrumbItens = () => {
|
|
78
|
-
const breadcrumbItems = [];
|
|
79
|
-
pages.map((page, index) => {
|
|
80
|
-
breadcrumbItems.push(_jsx(BreadcrumbItem, { children: page === lastPage ? renderBreadcrumbPage(index) : renderBreadcrumbLink(page, index) }, `breadcrumb-item-${index}`));
|
|
81
|
-
if (page !== lastPage) {
|
|
82
|
-
breadcrumbItems.push(_jsx(BreadcrumbSeparator, { className: 'mt-[1px]' }, `breadcrumb-separator-${index}`));
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
return breadcrumbItems;
|
|
86
|
-
};
|
|
87
|
-
const getColorLoadingBar = () => {
|
|
88
|
-
const colorShade = getTailwindColorShades()[portalDefinitions?.mvnoPrimaryColor];
|
|
89
|
-
const color = colorShade ? colorShade[900] : getTailwindColorShades()[DEFAULT_THEME_DATA.mvnoPrimaryColor][900];
|
|
90
|
-
return color;
|
|
91
|
-
};
|
|
92
|
-
return (_jsxs("header", { className: 'flex flex-col justify-between items-center w-full', children: [_jsxs("div", { className: 'flex justify-between items-center py-3 px-5 w-full', children: [_jsxs("div", { className: 'flex items-center gap-x-2 h-[40px]', children: [_jsx(SidebarTrigger, { className: 'p-5' }), _jsx("div", { className: 'p-2', children: _jsx(Breadcrumb, { children: _jsx(BreadcrumbList, { children: renderBreadcrumbItens() }) }) })] }), _jsx("div", { className: 'flex items-center', children: _jsx(Reseller, { disableReseller: disableReseller }) })] }), _jsx(LoadingBar, { ref: refProgressLoading, color: getColorLoadingBar(), height: 7 })] }));
|
|
93
|
-
};
|
|
94
|
-
export default Header;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface LabelWithTitleProps {
|
|
3
|
-
title: string;
|
|
4
|
-
value: string;
|
|
5
|
-
value2?: string;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
showCopyIcon?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const LabelWithTitle: React.FC<LabelWithTitleProps>;
|
|
12
|
-
export default LabelWithTitle;
|
|
13
|
-
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/custom/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0DjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '@/lib/utils';
|
|
3
|
-
import { Copy } from 'lucide-react';
|
|
4
|
-
import { Button } from '../button';
|
|
5
|
-
import { Skeleton } from '../skeleton';
|
|
6
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip';
|
|
7
|
-
import { toast } from '../use-toast';
|
|
8
|
-
const LabelWithTitle = ({ title, value, value2, required, showCopyIcon = false, className, isLoading }) => {
|
|
9
|
-
const handleCopy = () => {
|
|
10
|
-
if (showCopyIcon && value) {
|
|
11
|
-
navigator.clipboard.writeText(`${value}${value2 ?? ''}`);
|
|
12
|
-
toast({
|
|
13
|
-
title: `"${value}${value2 ?? ''}" foi copiado para a área de transferência.`,
|
|
14
|
-
variant: 'success',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
return (_jsx("div", { className: cn('flex group', className), children: _jsx("div", { className: cn('flex flex-col text-sm w-full', showCopyIcon ? 'p-1 rounded-md transition-colors group-hover:bg-sidebar-accent' : 'p-1'), children: _jsxs("div", { className: 'relative', children: [_jsxs("div", { className: 'flex items-center text-sm font-medium gap-0.5', children: [_jsx("label", { className: 'text-default truncate', children: title }), required && _jsx("div", { className: 'text-red-500 truncate', children: "*" })] }), _jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? _jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : _jsx("div", { className: 'text-zinc-500 truncate', children: value }) }), value2 && (_jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? _jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : _jsx("div", { className: 'text-zinc-500 truncate', children: value2 }) })), _jsx("div", { className: cn('pr-1 absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity', showCopyIcon && 'group-hover:opacity-100'), children: _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { variant: 'ghost', type: 'button', className: cn('p-1 h-8', !showCopyIcon && 'cursor-default'), onClick: handleCopy, children: _jsx(Copy, { size: 16 }) }) }), _jsx(TooltipContent, { children: "Copiar" })] }) }) })] }) }) }));
|
|
19
|
-
};
|
|
20
|
-
export default LabelWithTitle;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../src/components/custom/not-found.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ,+CAyBb,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BarChart2 } from 'lucide-react';
|
|
3
|
-
import { Button } from '../button';
|
|
4
|
-
const NotFound = () => {
|
|
5
|
-
return (_jsx("div", { className: "flex flex-col items-center justify-center h-screen bg-[url('/imgs/404.png')] bg-cover bg-no-repeat bg-center", children: _jsxs("div", { className: 'flex flex-col items-center justify-center gap-8 w-[424px]', children: [_jsxs("div", { className: 'flex flex-col items-center w-full', children: [_jsx("div", { className: 'text-5xl font-extrabold', children: "404" }), _jsx("div", { className: 'text-3xl font-semibold', children: "P\u00E1gina Indispon\u00EDvel" })] }), _jsx("div", { className: 'flex text-center text-xl font-semibold text-zinc-500', children: "A p\u00E1gina que voc\u00EA est\u00E1 tentando acessar se encontra indispon\u00EDvel no momento, tente novamente mais tarde" }), _jsx("div", { className: 'flex justify-center w-full', children: _jsxs(Button, { onClick: () => {
|
|
6
|
-
window.location.href = '/';
|
|
7
|
-
}, className: '[&_svg]:size-5', children: [_jsx(BarChart2, {}), "Voltar Para Inicial"] }) })] }) }));
|
|
8
|
-
};
|
|
9
|
-
export default NotFound;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAkE,MAAM,eAAe,CAAC;AAOxG,QAAA,MAAM,UAAU,GAAI,cAAc,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,4CAqCrE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarSeparator } from '../../sidebar';
|
|
4
|
-
import { useTheme } from '../theme-provider';
|
|
5
|
-
import ModuleSwitcher from './module-switcher';
|
|
6
|
-
import NavFooter from './nav-footer';
|
|
7
|
-
import NavMain from './nav-main';
|
|
8
|
-
import NavUser from './nav-user';
|
|
9
|
-
const AppSidebar = ({ ...props }) => {
|
|
10
|
-
const [collapsed, setCollapsed] = useState(false);
|
|
11
|
-
const sidebarRef = useRef(null);
|
|
12
|
-
const { portalDefinitions } = useTheme();
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
const el = sidebarRef.current;
|
|
15
|
-
if (!el)
|
|
16
|
-
return;
|
|
17
|
-
const observer = new MutationObserver(() => {
|
|
18
|
-
setCollapsed(el.getAttribute('data-state') === 'collapsed');
|
|
19
|
-
});
|
|
20
|
-
observer.observe(el, { attributes: true, attributeFilter: ['data-state'] });
|
|
21
|
-
setCollapsed(el.getAttribute('data-state') === 'collapsed');
|
|
22
|
-
return () => observer.disconnect();
|
|
23
|
-
}, []);
|
|
24
|
-
return (_jsxs(Sidebar, { ref: sidebarRef, collapsible: 'icon', ...props, className: 'sidebar-content', children: [_jsx(SidebarHeader, { children: portalDefinitions.hideModuleSwitcher ? (_jsx("div", { className: 'flex items-center justify-center', children: !collapsed && _jsx("img", { src: portalDefinitions.fullLogoPath, alt: 'Logo', className: 'w-fit h-10' }) })) : (_jsx(ModuleSwitcher, {})) }), _jsx(SidebarContent, { children: _jsx(NavMain, {}) }), _jsxs(SidebarFooter, { children: [_jsx(NavFooter, {}), _jsx(SidebarSeparator, {}), _jsx(NavUser, {})] })] }));
|
|
25
|
-
};
|
|
26
|
-
export default AppSidebar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module-switcher.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/sidebar/module-switcher.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,cAAc,+CA+EnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|