vlite3 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/_plugin-vue_export-helper.js +9 -0
- package/components/Accordion/Accordion.vue.d.ts +44 -0
- package/components/Accordion/Accordion.vue.js +95 -0
- package/components/Accordion/Accordion.vue2.js +4 -0
- package/components/Accordion/AccordionContent.vue.d.ts +22 -0
- package/components/Accordion/AccordionContent.vue.js +7 -0
- package/components/Accordion/AccordionContent.vue2.js +47 -0
- package/components/Accordion/AccordionItem.vue.d.ts +56 -0
- package/components/Accordion/AccordionItem.vue.js +115 -0
- package/components/Accordion/AccordionItem.vue2.js +4 -0
- package/components/Accordion/AccordionTrigger.vue.d.ts +43 -0
- package/components/Accordion/AccordionTrigger.vue.js +94 -0
- package/components/Accordion/AccordionTrigger.vue2.js +4 -0
- package/components/Accordion/index.d.ts +5 -0
- package/components/Accordion/types.d.ts +33 -0
- package/components/Alert.vue.d.ts +36 -0
- package/components/Alert.vue.js +84 -0
- package/components/Alert.vue2.js +4 -0
- package/components/Avatar.vue.d.ts +32 -0
- package/components/Avatar.vue.js +78 -0
- package/components/Avatar.vue2.js +4 -0
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +32 -0
- package/components/AvatarUploader/AvatarUploader.vue.js +99 -0
- package/components/AvatarUploader/AvatarUploader.vue2.js +4 -0
- package/{src/components/AvatarUploader/index.ts → components/AvatarUploader/index.d.ts} +2 -2
- package/components/Badge.vue.d.ts +25 -0
- package/components/Badge.vue.js +27 -0
- package/components/Badge.vue2.js +4 -0
- package/components/Button.vue.d.ts +26 -0
- package/components/Button.vue.js +107 -0
- package/components/Button.vue2.js +4 -0
- package/components/ButtonGroup.vue.d.ts +29 -0
- package/components/ButtonGroup.vue.js +7 -0
- package/components/ButtonGroup.vue2.js +30 -0
- package/components/Carousel/Carousel.vue.d.ts +847 -0
- package/components/Carousel/Carousel.vue.js +7 -0
- package/components/Carousel/Carousel.vue2.js +68 -0
- package/components/Carousel/index.d.ts +2 -0
- package/components/Carousel/types.d.ts +24 -0
- package/components/CheckBox.vue.d.ts +27 -0
- package/components/CheckBox.vue.js +115 -0
- package/components/CheckBox.vue2.js +4 -0
- package/components/Chip/Chip.vue.d.ts +33 -0
- package/components/Chip/Chip.vue.js +113 -0
- package/components/Chip/Chip.vue2.js +4 -0
- package/components/Chip/index.d.ts +2 -0
- package/components/Chip/types.d.ts +12 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +32 -0
- package/components/ChoiceBox/ChoiceBox.vue.js +141 -0
- package/components/ChoiceBox/ChoiceBox.vue2.js +4 -0
- package/components/ChoiceBox/index.d.ts +2 -0
- package/components/ColorPicker/ColorIro.vue.d.ts +18 -0
- package/components/ColorPicker/ColorIro.vue.js +142 -0
- package/components/ColorPicker/ColorIro.vue3.js +5 -0
- package/components/ColorPicker/ColorPicker.vue.d.ts +22 -0
- package/components/ColorPicker/ColorPicker.vue.js +56 -0
- package/components/ColorPicker/ColorPicker.vue2.js +4 -0
- package/components/ConfirmationModal.vue.d.ts +39 -0
- package/components/ConfirmationModal.vue.js +55 -0
- package/components/ConfirmationModal.vue2.js +4 -0
- package/components/DataTable/DataTable.vue.d.ts +60 -0
- package/components/DataTable/DataTable.vue.js +7 -0
- package/components/DataTable/DataTable.vue2.js +310 -0
- package/components/DataTable/DataTableHeader.vue.d.ts +14 -0
- package/components/DataTable/DataTableHeader.vue.js +49 -0
- package/components/DataTable/DataTableHeader.vue2.js +4 -0
- package/components/DataTable/DataTableRow.vue.d.ts +51 -0
- package/components/DataTable/DataTableRow.vue.js +114 -0
- package/components/DataTable/DataTableRow.vue2.js +4 -0
- package/components/DataTable/DataTableToolbar.vue.d.ts +31 -0
- package/components/DataTable/DataTableToolbar.vue.js +45 -0
- package/components/DataTable/DataTableToolbar.vue2.js +4 -0
- package/components/DataTable/index.d.ts +4 -0
- package/components/DataTable/types.d.ts +75 -0
- package/components/DatePicker.vue.d.ts +44 -0
- package/components/DatePicker.vue.js +84 -0
- package/components/DatePicker.vue2.js +4 -0
- package/components/Dropdown/Dropdown.vue.d.ts +105 -0
- package/components/Dropdown/Dropdown.vue.js +206 -0
- package/components/Dropdown/Dropdown.vue2.js +4 -0
- package/components/Dropdown/DropdownBooleanItem.vue.d.ts +12 -0
- package/components/Dropdown/DropdownBooleanItem.vue.js +41 -0
- package/components/Dropdown/DropdownBooleanItem.vue2.js +4 -0
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +21 -0
- package/components/Dropdown/DropdownGroupedLayout.vue.js +73 -0
- package/components/Dropdown/DropdownGroupedLayout.vue2.js +4 -0
- package/components/Dropdown/DropdownItem.vue.d.ts +35 -0
- package/components/Dropdown/DropdownItem.vue.js +56 -0
- package/components/Dropdown/DropdownItem.vue2.js +4 -0
- package/components/Dropdown/DropdownMenu.vue.d.ts +73 -0
- package/components/Dropdown/DropdownMenu.vue.js +232 -0
- package/components/Dropdown/DropdownMenu.vue2.js +4 -0
- package/components/Dropdown/DropdownTrigger.vue.d.ts +15 -0
- package/components/Dropdown/DropdownTrigger.vue.js +26 -0
- package/components/Dropdown/DropdownTrigger.vue2.js +4 -0
- package/components/Dropdown/composables/useDropdownIds.d.ts +5 -0
- package/components/Dropdown/composables/useDropdownIds.js +20 -0
- package/components/Dropdown/composables/useDropdownNavigation.d.ts +19 -0
- package/components/Dropdown/composables/useDropdownNavigation.js +49 -0
- package/components/Dropdown/composables/useDropdownSelection.d.ts +16 -0
- package/components/Dropdown/composables/useDropdownSelection.js +41 -0
- package/components/Dropdown/index.d.ts +6 -0
- package/components/FilePicker/FilePicker.vue.d.ts +65 -0
- package/components/FilePicker/FilePicker.vue.js +285 -0
- package/components/FilePicker/FilePicker.vue2.js +4 -0
- package/components/FilePicker/index.d.ts +2 -0
- package/components/FileTree/FileTree.vue.d.ts +20 -0
- package/components/FileTree/FileTree.vue.js +139 -0
- package/components/FileTree/FileTree.vue2.js +4 -0
- package/components/FileTree/FileTreeNode.vue.d.ts +28 -0
- package/components/FileTree/FileTreeNode.vue.js +184 -0
- package/components/FileTree/FileTreeNode.vue2.js +4 -0
- package/components/FileTree/index.d.ts +4 -0
- package/components/FileTree/types.d.ts +36 -0
- package/components/FileTree/useTreeSelection.d.ts +12 -0
- package/components/FileTree/useTreeSelection.js +25 -0
- package/components/Form/CustomFields.vue.d.ts +38 -0
- package/components/Form/CustomFields.vue.js +7 -0
- package/components/Form/CustomFields.vue2.js +161 -0
- package/components/Form/Form.vue.d.ts +94 -0
- package/components/Form/Form.vue.js +7 -0
- package/components/Form/Form.vue2.js +238 -0
- package/components/Form/FormField.vue.d.ts +28 -0
- package/components/Form/FormField.vue.js +207 -0
- package/components/Form/FormField.vue2.js +4 -0
- package/components/Form/FormFields.vue.d.ts +29 -0
- package/components/Form/FormFields.vue.js +7 -0
- package/components/Form/FormFields.vue2.js +95 -0
- package/components/Form/composables/useFileUpload.d.ts +24 -0
- package/components/Form/composables/useFileUpload.js +40 -0
- package/components/Form/composables/useForm.d.ts +48 -0
- package/components/Form/composables/useForm.js +109 -0
- package/components/Form/index.d.ts +9 -0
- package/components/Form/types.d.ts +167 -0
- package/components/Form/utils/form.utils.d.ts +44 -0
- package/components/Form/utils/form.utils.js +97 -0
- package/components/Heatmap/Heatmap.vue.d.ts +26 -0
- package/components/Heatmap/Heatmap.vue.js +7 -0
- package/components/Heatmap/Heatmap.vue2.js +326 -0
- package/components/Heatmap/index.d.ts +2 -0
- package/components/Heatmap/types.d.ts +66 -0
- package/components/Icon.vue.d.ts +7 -0
- package/components/Icon.vue.js +25 -0
- package/components/Icon.vue2.js +4 -0
- package/components/IconPicker.vue.d.ts +38 -0
- package/components/IconPicker.vue.js +124 -0
- package/components/IconPicker.vue2.js +4 -0
- package/components/Input.vue.d.ts +54 -0
- package/components/Input.vue.js +267 -0
- package/components/Input.vue2.js +4 -0
- package/components/Label.vue.d.ts +23 -0
- package/components/Label.vue.js +23 -0
- package/components/Label.vue2.js +4 -0
- package/components/Logo.vue.d.ts +2 -0
- package/components/Logo.vue.js +10 -0
- package/components/Logo.vue2.js +4 -0
- package/components/Masonry/Masonry.vue.d.ts +31 -0
- package/components/Masonry/Masonry.vue.js +7 -0
- package/components/Masonry/Masonry.vue2.js +83 -0
- package/components/Masonry/index.d.ts +2 -0
- package/components/Masonry/types.d.ts +33 -0
- package/components/Masonry/types.js +10 -0
- package/components/Modal.vue.d.ts +52 -0
- package/components/Modal.vue.js +116 -0
- package/components/Modal.vue2.js +4 -0
- package/components/MultiSelect/MultiSelect.vue.d.ts +40 -0
- package/components/MultiSelect/MultiSelect.vue.js +126 -0
- package/components/MultiSelect/MultiSelect.vue2.js +4 -0
- package/components/MultiSelect/index.d.ts +1 -0
- package/components/Navbar/Navbar.vue.d.ts +51 -0
- package/components/Navbar/Navbar.vue.js +198 -0
- package/components/Navbar/Navbar.vue2.js +4 -0
- package/components/Navbar/NavbarGroup.vue.d.ts +24 -0
- package/components/Navbar/NavbarGroup.vue.js +23 -0
- package/components/Navbar/NavbarGroup.vue2.js +4 -0
- package/components/Navbar/NavbarItem.vue.d.ts +40 -0
- package/components/Navbar/NavbarItem.vue.js +104 -0
- package/components/Navbar/NavbarItem.vue2.js +4 -0
- package/components/Navbar/index.d.ts +3 -0
- package/components/OTPInput/OTPInput.vue.d.ts +33 -0
- package/components/OTPInput/OTPInput.vue.js +115 -0
- package/components/OTPInput/OTPInput.vue2.js +4 -0
- package/components/OTPInput/index.d.ts +1 -0
- package/components/Pagination/Pagination.vue.d.ts +34 -0
- package/components/Pagination/Pagination.vue.js +196 -0
- package/components/Pagination/Pagination.vue2.js +4 -0
- package/components/Pagination/index.d.ts +1 -0
- package/components/PricingPlan/PricingPlan.vue.d.ts +22 -0
- package/components/PricingPlan/PricingPlan.vue.js +55 -0
- package/components/PricingPlan/PricingPlan.vue2.js +4 -0
- package/components/PricingPlan/PricingPlanItem.vue.d.ts +17 -0
- package/components/PricingPlan/PricingPlanItem.vue.js +94 -0
- package/components/PricingPlan/PricingPlanItem.vue2.js +4 -0
- package/components/PricingPlan/index.d.ts +3 -0
- package/components/PricingPlan/types.d.ts +25 -0
- package/components/SidePanel.vue.d.ts +64 -0
- package/components/SidePanel.vue.js +7 -0
- package/components/SidePanel.vue2.js +131 -0
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +11 -0
- package/components/SidebarMenu/SidebarMenu.vue.js +78 -0
- package/components/SidebarMenu/SidebarMenu.vue2.js +4 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +9 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +269 -0
- package/components/SidebarMenu/SidebarMenuItem.vue3.js +5 -0
- package/components/SidebarMenu/index.d.ts +3 -0
- package/components/SidebarMenu/types.d.ts +35 -0
- package/components/Slider.vue.d.ts +31 -0
- package/components/Slider.vue.js +157 -0
- package/components/Slider.vue2.js +4 -0
- package/components/Switch.vue.d.ts +16 -0
- package/components/Switch.vue.js +40 -0
- package/components/Switch.vue2.js +4 -0
- package/components/Tabes/Tabes.vue.d.ts +21 -0
- package/components/Tabes/Tabes.vue.js +75 -0
- package/components/Tabes/Tabes.vue2.js +4 -0
- package/components/Tabes/index.d.ts +2 -0
- package/components/Tabes/types.d.ts +8 -0
- package/components/Textarea.vue.d.ts +22 -0
- package/components/Textarea.vue.js +34 -0
- package/components/Textarea.vue2.js +4 -0
- package/components/ThemeToggle.vue.d.ts +2 -0
- package/components/ThemeToggle.vue.js +18 -0
- package/components/ThemeToggle.vue2.js +4 -0
- package/components/Timeline.vue.d.ts +39 -0
- package/components/Timeline.vue.js +174 -0
- package/components/Timeline.vue2.js +4 -0
- package/components/ToastNotification.vue.d.ts +7 -0
- package/components/ToastNotification.vue.js +7 -0
- package/components/ToastNotification.vue2.js +151 -0
- package/components/Tooltip.vue.d.ts +31 -0
- package/components/Tooltip.vue.js +45 -0
- package/components/Tooltip.vue2.js +4 -0
- package/components/Workbook/Sheet.vue.d.ts +38 -0
- package/components/Workbook/Sheet.vue.js +141 -0
- package/components/Workbook/Sheet.vue2.js +4 -0
- package/components/Workbook/Workbook.vue.d.ts +54 -0
- package/components/Workbook/Workbook.vue.js +7 -0
- package/components/Workbook/Workbook.vue2.js +146 -0
- package/components/Workbook/WorkbookAddButton.vue.d.ts +6 -0
- package/components/Workbook/WorkbookAddButton.vue.js +20 -0
- package/components/Workbook/WorkbookAddButton.vue2.js +4 -0
- package/components/Workbook/index.d.ts +3 -0
- package/components/Workbook/types.d.ts +34 -0
- package/composables/useKeyStroke.d.ts +21 -0
- package/composables/useKeyStroke.js +93 -0
- package/composables/useNotifications.d.ts +113 -0
- package/composables/useNotifications.js +99 -0
- package/composables/useTheme.d.ts +6 -0
- package/composables/useTheme.js +32 -0
- package/core/config.d.ts +29 -0
- package/core/config.js +12 -0
- package/core/index.d.ts +31 -0
- package/core/index.js +15 -0
- package/directives/vRipple.d.ts +4 -0
- package/directives/vRipple.js +17 -0
- package/index.d.ts +49 -0
- package/index.js +156 -0
- package/package.json +2 -2
- package/style.css +590 -0
- package/types/alert.type.d.ts +10 -0
- package/{src/types/avatar.type.ts → types/avatar.type.d.ts} +8 -9
- package/types/button.d.ts +15 -0
- package/types/buttongroup.type.d.ts +1 -0
- package/{src/types/config.type.ts → types/config.type.d.ts} +13 -16
- package/types/form.type.d.ts +45 -0
- package/types/index.d.ts +10 -0
- package/types/navbar.type.d.ts +27 -0
- package/types/sidepanel.type.d.ts +13 -0
- package/types/styles.d.ts +28 -0
- package/types/timeline.type.d.ts +9 -0
- package/{src/utils/functions.ts → utils/functions.d.ts} +1 -9
- package/utils/functions.js +11 -0
- package/utils/index.d.ts +2 -0
- package/utils/object.d.ts +6 -0
- package/utils/object.js +14 -0
- package/.vscode/extensions.json +0 -3
- package/LICENSE +0 -21
- package/index.html +0 -16
- package/scripts/bundle-css.js +0 -45
- package/src/App.vue +0 -7
- package/src/components/Accordion/Accordion.vue +0 -139
- package/src/components/Accordion/AccordionContent.vue +0 -63
- package/src/components/Accordion/AccordionItem.vue +0 -163
- package/src/components/Accordion/AccordionTrigger.vue +0 -125
- package/src/components/Accordion/index.ts +0 -5
- package/src/components/Accordion/types.ts +0 -41
- package/src/components/Alert.vue +0 -112
- package/src/components/Avatar.vue +0 -110
- package/src/components/AvatarUploader/AvatarUploader.vue +0 -129
- package/src/components/Badge.vue +0 -45
- package/src/components/Button.vue +0 -122
- package/src/components/ButtonGroup.vue +0 -173
- package/src/components/Carousel/Carousel.vue +0 -84
- package/src/components/Carousel/index.ts +0 -2
- package/src/components/Carousel/types.ts +0 -25
- package/src/components/CheckBox.vue +0 -132
- package/src/components/Chip/Chip.vue +0 -158
- package/src/components/Chip/index.ts +0 -2
- package/src/components/Chip/types.ts +0 -23
- package/src/components/ChoiceBox/ChoiceBox.vue +0 -181
- package/src/components/ChoiceBox/index.ts +0 -2
- package/src/components/ColorPicker/ColorIro.vue +0 -207
- package/src/components/ColorPicker/ColorPicker.vue +0 -61
- package/src/components/ConfirmationModal.vue +0 -46
- package/src/components/DataTable/DataTable.vue +0 -478
- package/src/components/DataTable/DataTableHeader.vue +0 -78
- package/src/components/DataTable/DataTableRow.vue +0 -171
- package/src/components/DataTable/DataTableToolbar.vue +0 -45
- package/src/components/DataTable/index.ts +0 -5
- package/src/components/DataTable/types.ts +0 -85
- package/src/components/DatePicker.vue +0 -102
- package/src/components/Dropdown/Dropdown.vue +0 -348
- package/src/components/Dropdown/DropdownBooleanItem.vue +0 -40
- package/src/components/Dropdown/DropdownGroupedLayout.vue +0 -115
- package/src/components/Dropdown/DropdownItem.vue +0 -56
- package/src/components/Dropdown/DropdownMenu.vue +0 -374
- package/src/components/Dropdown/DropdownTrigger.vue +0 -27
- package/src/components/Dropdown/composables/useDropdownIds.ts +0 -27
- package/src/components/Dropdown/composables/useDropdownNavigation.ts +0 -109
- package/src/components/Dropdown/composables/useDropdownSelection.ts +0 -106
- package/src/components/Dropdown/index.ts +0 -6
- package/src/components/FilePicker/FilePicker.vue +0 -459
- package/src/components/FilePicker/index.ts +0 -2
- package/src/components/FileTree/FileTree.vue +0 -334
- package/src/components/FileTree/FileTreeNode.vue +0 -225
- package/src/components/FileTree/index.ts +0 -2
- package/src/components/FileTree/types.ts +0 -31
- package/src/components/FileTree/useTreeSelection.ts +0 -66
- package/src/components/Form/CustomFields.vue +0 -294
- package/src/components/Form/Form.vue +0 -406
- package/src/components/Form/FormField.vue +0 -404
- package/src/components/Form/FormFields.vue +0 -161
- package/src/components/Form/composables/useFileUpload.ts +0 -112
- package/src/components/Form/composables/useForm.ts +0 -356
- package/src/components/Form/index.ts +0 -16
- package/src/components/Form/types.ts +0 -203
- package/src/components/Form/utils/form.utils.ts +0 -209
- package/src/components/Heatmap/Heatmap.vue +0 -629
- package/src/components/Heatmap/index.ts +0 -2
- package/src/components/Heatmap/types.ts +0 -84
- package/src/components/Icon.vue +0 -47
- package/src/components/IconPicker.vue +0 -138
- package/src/components/Input.vue +0 -366
- package/src/components/Label.vue +0 -25
- package/src/components/Logo.vue +0 -5
- package/src/components/Masonry/Masonry.vue +0 -148
- package/src/components/Masonry/index.ts +0 -2
- package/src/components/Masonry/types.ts +0 -44
- package/src/components/Modal.vue +0 -135
- package/src/components/MultiSelect/MultiSelect.vue +0 -176
- package/src/components/MultiSelect/index.ts +0 -1
- package/src/components/Navbar/Navbar.vue +0 -277
- package/src/components/Navbar/NavbarGroup.vue +0 -27
- package/src/components/Navbar/NavbarItem.vue +0 -124
- package/src/components/Navbar/index.ts +0 -3
- package/src/components/OTPInput/OTPInput.vue +0 -220
- package/src/components/OTPInput/index.ts +0 -1
- package/src/components/Pagination/Pagination.vue +0 -238
- package/src/components/Pagination/index.ts +0 -1
- package/src/components/PricingPlan/PricingPlan.vue +0 -102
- package/src/components/PricingPlan/PricingPlanItem.vue +0 -148
- package/src/components/PricingPlan/index.ts +0 -3
- package/src/components/PricingPlan/types.ts +0 -29
- package/src/components/SidePanel.vue +0 -184
- package/src/components/SidebarMenu/SidebarMenu.vue +0 -146
- package/src/components/SidebarMenu/SidebarMenuItem.vue +0 -333
- package/src/components/SidebarMenu/index.ts +0 -3
- package/src/components/SidebarMenu/types.ts +0 -54
- package/src/components/Slider.vue +0 -181
- package/src/components/Switch.vue +0 -51
- package/src/components/Tabes/Tabes.vue +0 -112
- package/src/components/Tabes/index.ts +0 -2
- package/src/components/Tabes/types.ts +0 -17
- package/src/components/Textarea.vue +0 -48
- package/src/components/ThemeToggle.vue +0 -14
- package/src/components/Timeline.vue +0 -250
- package/src/components/ToastNotification.vue +0 -257
- package/src/components/Tooltip.vue +0 -25
- package/src/components/Workbook/Sheet.vue +0 -185
- package/src/components/Workbook/Workbook.vue +0 -231
- package/src/components/Workbook/WorkbookAddButton.vue +0 -17
- package/src/components/Workbook/index.ts +0 -3
- package/src/components/Workbook/types.ts +0 -43
- package/src/composables/useKeyStroke.ts +0 -291
- package/src/composables/useNotifications.ts +0 -206
- package/src/composables/useTheme.ts +0 -55
- package/src/core/config.ts +0 -37
- package/src/core/index.ts +0 -49
- package/src/css/base.css +0 -148
- package/src/css/input.css +0 -61
- package/src/css/main.css +0 -6
- package/src/css/theme.css +0 -344
- package/src/directives/vRipple.ts +0 -38
- package/src/index.ts +0 -53
- package/src/main.ts +0 -5
- package/src/playground/Playground.vue +0 -429
- package/src/playground/composables/useGetUsers.ts +0 -538
- package/src/playground/demos/AccordionDemo.vue +0 -361
- package/src/playground/demos/AlertDemo.vue +0 -36
- package/src/playground/demos/AvatarDemo.vue +0 -41
- package/src/playground/demos/AvatarUploaderDemo.vue +0 -133
- package/src/playground/demos/BadgeDemo.vue +0 -31
- package/src/playground/demos/BadgesDemo.vue +0 -26
- package/src/playground/demos/ButtonDemo.vue +0 -99
- package/src/playground/demos/ButtonGroupDemo.vue +0 -39
- package/src/playground/demos/ButtonsDemo.vue +0 -111
- package/src/playground/demos/CarouselDemo.vue +0 -135
- package/src/playground/demos/CheckBoxDemo.vue +0 -43
- package/src/playground/demos/ChipDemo.vue +0 -190
- package/src/playground/demos/ChoiceBoxDemo.vue +0 -160
- package/src/playground/demos/ColorPickerDemo.vue +0 -30
- package/src/playground/demos/ColorsDemo.vue +0 -295
- package/src/playground/demos/DataTableDemo.vue +0 -215
- package/src/playground/demos/DatePickerDemo.vue +0 -43
- package/src/playground/demos/DisplayDemo.vue +0 -101
- package/src/playground/demos/DropdownDemo.vue +0 -651
- package/src/playground/demos/FilePickerDemo.vue +0 -175
- package/src/playground/demos/FileTreeDemo.vue +0 -150
- package/src/playground/demos/FormDemo.vue +0 -1144
- package/src/playground/demos/HeatmapDemo.vue +0 -467
- package/src/playground/demos/IconPickerDemo.vue +0 -27
- package/src/playground/demos/InputDemo.vue +0 -80
- package/src/playground/demos/InputsDemo.vue +0 -127
- package/src/playground/demos/LabelDemo.vue +0 -32
- package/src/playground/demos/MasonryDemo.vue +0 -241
- package/src/playground/demos/ModalDemo.vue +0 -67
- package/src/playground/demos/MultiSelectDemo.vue +0 -300
- package/src/playground/demos/NavbarDemo.vue +0 -59
- package/src/playground/demos/NavigationDemo.vue +0 -116
- package/src/playground/demos/OTPInputDemo.vue +0 -170
- package/src/playground/demos/OverlaysDemo.vue +0 -104
- package/src/playground/demos/PaginationDemo.vue +0 -130
- package/src/playground/demos/PricingPlanDemo.vue +0 -110
- package/src/playground/demos/SidePanelDemo.vue +0 -45
- package/src/playground/demos/SidebarMenuDemo.vue +0 -170
- package/src/playground/demos/SliderDemo.vue +0 -48
- package/src/playground/demos/SwitchDemo.vue +0 -40
- package/src/playground/demos/TabesDemo.vue +0 -178
- package/src/playground/demos/TextareaDemo.vue +0 -31
- package/src/playground/demos/ThemeToggleDemo.vue +0 -20
- package/src/playground/demos/TimelineDemo.vue +0 -43
- package/src/playground/demos/ToastDemo.vue +0 -111
- package/src/playground/demos/TooltipDemo.vue +0 -30
- package/src/playground/demos/WorkbookDemo.vue +0 -227
- package/src/types/alert.type.ts +0 -11
- package/src/types/button.ts +0 -36
- package/src/types/buttongroup.type.ts +0 -1
- package/src/types/form.type.ts +0 -75
- package/src/types/index.ts +0 -11
- package/src/types/navbar.type.ts +0 -28
- package/src/types/sidepanel.type.ts +0 -14
- package/src/types/styles.ts +0 -42
- package/src/types/timeline.type.ts +0 -11
- package/src/utils/index.ts +0 -2
- package/src/utils/object.ts +0 -40
- package/tsconfig.app.json +0 -27
- package/tsconfig.json +0 -48
- package/tsconfig.node.json +0 -18
- package/tsconfig.node.tsbuildinfo +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- package/vercel.json +0 -8
- package/vite.config.d.ts +0 -2
- package/vite.config.js +0 -63
- package/vite.config.ts +0 -64
- package/vite.config.vercel.ts +0 -17
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as C, ref as w, watch as m, onUnmounted as B, openBlock as o, createElementBlock as n, Fragment as $, createElementVNode as d, normalizeClass as l, withModifiers as y, renderSlot as i, createCommentVNode as r, createBlock as b, Teleport as O, createVNode as h, Transition as S, withCtx as z, toDisplayString as v, resolveDynamicComponent as E, mergeProps as N } from "vue";
|
|
2
|
+
import P from "./Button.vue.js";
|
|
3
|
+
import { useKeyStroke as V } from "../composables/useKeyStroke.js";
|
|
4
|
+
const j = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex-none flex flex-col space-y-1.5 pb-0 border-b"
|
|
7
|
+
}, D = { class: "text-lg font-semibold leading-none tracking-tight" }, K = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "text-sm text-muted-foreground mb-2"
|
|
10
|
+
}, F = /* @__PURE__ */ C({
|
|
11
|
+
__name: "Modal",
|
|
12
|
+
props: {
|
|
13
|
+
show: { type: Boolean, default: !1 },
|
|
14
|
+
title: {},
|
|
15
|
+
maxWidth: { default: "sm:max-w-lg" },
|
|
16
|
+
closeOutside: { type: Boolean, default: !0 },
|
|
17
|
+
backdrop: { type: Boolean, default: !0 },
|
|
18
|
+
description: {},
|
|
19
|
+
triggerClass: {},
|
|
20
|
+
bodyClass: {},
|
|
21
|
+
headerClass: {},
|
|
22
|
+
footerClass: {},
|
|
23
|
+
body: {},
|
|
24
|
+
bodyProps: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["close", "update:show", "onOpen"],
|
|
27
|
+
setup(e, { emit: x }) {
|
|
28
|
+
const c = e, u = x, a = w(c.show);
|
|
29
|
+
m(
|
|
30
|
+
() => c.show,
|
|
31
|
+
(t) => {
|
|
32
|
+
a.value = t, t && u("onOpen");
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
const g = () => {
|
|
36
|
+
a.value = !0;
|
|
37
|
+
}, s = () => {
|
|
38
|
+
a.value = !1, u("update:show", !1), u("close");
|
|
39
|
+
}, p = () => {
|
|
40
|
+
c.closeOutside && s();
|
|
41
|
+
}, { onKeyStroke: k } = V();
|
|
42
|
+
return k("Escape", s), m(a, (t) => {
|
|
43
|
+
t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
44
|
+
}), B(() => {
|
|
45
|
+
document.body.style.overflow = "";
|
|
46
|
+
}), (t, f) => (o(), n($, null, [
|
|
47
|
+
d("span", {
|
|
48
|
+
onClick: y(g, ["stop"]),
|
|
49
|
+
class: l(`${e.triggerClass}`)
|
|
50
|
+
}, [
|
|
51
|
+
i(t.$slots, "trigger", {}, () => [
|
|
52
|
+
e.body ? i(t.$slots, "default", { key: 0 }) : r("", !0)
|
|
53
|
+
])
|
|
54
|
+
], 2),
|
|
55
|
+
(o(), b(O, { to: "body" }, [
|
|
56
|
+
h(S, {
|
|
57
|
+
"enter-active-class": "transition duration-200 ease-out",
|
|
58
|
+
"enter-from-class": "opacity-0",
|
|
59
|
+
"enter-to-class": "opacity-100",
|
|
60
|
+
"leave-active-class": "transition duration-150 ease-in",
|
|
61
|
+
"leave-from-class": "opacity-100",
|
|
62
|
+
"leave-to-class": "opacity-0"
|
|
63
|
+
}, {
|
|
64
|
+
default: z(() => [
|
|
65
|
+
a.value ? (o(), n("div", {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: l(["fixed inset-0 z-50 flex items-center justify-center bg-[#00000051] p-4", e.backdrop && "backdrop-blur-[2px]"]),
|
|
68
|
+
onClick: p
|
|
69
|
+
}, [
|
|
70
|
+
d("div", {
|
|
71
|
+
class: l(["modal-body relative w-full rounded border border-border bg-body text-foreground shadow-lg flex flex-col max-h-[85vh] sm:max-h-[90vh]", [e.maxWidth]]),
|
|
72
|
+
onClick: f[0] || (f[0] = y(() => {
|
|
73
|
+
}, ["stop"]))
|
|
74
|
+
}, [
|
|
75
|
+
e.title ? (o(), n("div", j, [
|
|
76
|
+
d("div", {
|
|
77
|
+
class: l(["flex items-center justify-between bg-muted-light py-1 px-4 rounded-t-md", e.headerClass])
|
|
78
|
+
}, [
|
|
79
|
+
d("h3", D, v(e.title), 1),
|
|
80
|
+
h(P, {
|
|
81
|
+
rounded: "full",
|
|
82
|
+
size: "sm",
|
|
83
|
+
icon: "lucide:x",
|
|
84
|
+
variant: "ghost",
|
|
85
|
+
class: "hover:bg-gray-250/25!",
|
|
86
|
+
onClick: s
|
|
87
|
+
})
|
|
88
|
+
], 2)
|
|
89
|
+
])) : r("", !0),
|
|
90
|
+
d("div", {
|
|
91
|
+
class: l(["flex-1 overflow-y-auto px-4 py-4 min-h-0 shadow-xl", e.bodyClass])
|
|
92
|
+
}, [
|
|
93
|
+
e.description ? (o(), n("p", K, v(e.description), 1)) : r("", !0),
|
|
94
|
+
e.body ? (o(), b(E(e.body), N({ key: 1 }, e.bodyProps, { close: s }), null, 16)) : i(t.$slots, "default", {
|
|
95
|
+
key: 2,
|
|
96
|
+
close: s
|
|
97
|
+
})
|
|
98
|
+
], 2),
|
|
99
|
+
t.$slots.footer ? (o(), n("div", {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: l([e.footerClass, "flex-none flex items-center px-4 py-2.5 border-t rounded-b-xl"])
|
|
102
|
+
}, [
|
|
103
|
+
i(t.$slots, "footer", { close: s })
|
|
104
|
+
], 2)) : r("", !0)
|
|
105
|
+
], 2)
|
|
106
|
+
], 2)) : r("", !0)
|
|
107
|
+
]),
|
|
108
|
+
_: 3
|
|
109
|
+
})
|
|
110
|
+
]))
|
|
111
|
+
], 64));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
F as default
|
|
116
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IDropdownOptions } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: any[];
|
|
4
|
+
options?: IDropdownOptions;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
searchable?: boolean;
|
|
8
|
+
variant?: 'default' | 'outline' | 'solid';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
maxVisible?: number;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
hasMore?: boolean;
|
|
13
|
+
remote?: boolean;
|
|
14
|
+
layout?: 'default' | 'grouped';
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
search: (query: string) => any;
|
|
18
|
+
"update:modelValue": (value: any[]) => any;
|
|
19
|
+
change: (value: any[]) => any;
|
|
20
|
+
"load-more": () => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
+
onSearch?: (query: string) => any;
|
|
23
|
+
"onUpdate:modelValue"?: (value: any[]) => any;
|
|
24
|
+
onChange?: (value: any[]) => any;
|
|
25
|
+
"onLoad-more"?: () => any;
|
|
26
|
+
}>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
size: "sm" | "md" | "lg";
|
|
29
|
+
placeholder: string;
|
|
30
|
+
variant: "default" | "outline" | "solid";
|
|
31
|
+
modelValue: any[];
|
|
32
|
+
loading: boolean;
|
|
33
|
+
options: IDropdownOptions;
|
|
34
|
+
layout: "default" | "grouped";
|
|
35
|
+
hasMore: boolean;
|
|
36
|
+
searchable: boolean;
|
|
37
|
+
remote: boolean;
|
|
38
|
+
maxVisible: number;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { defineComponent as z, ref as j, computed as i, openBlock as n, createBlock as m, unref as y, withCtx as f, createVNode as v, createElementVNode as d, normalizeClass as V, createElementBlock as p, toDisplayString as b, Fragment as w, renderList as E, withModifiers as k, createCommentVNode as h, createTextVNode as L } from "vue";
|
|
2
|
+
import g from "../Icon.vue.js";
|
|
3
|
+
import A from "../Dropdown/Dropdown.vue.js";
|
|
4
|
+
import D from "../Dropdown/DropdownMenu.vue.js";
|
|
5
|
+
import C from "../Badge.vue.js";
|
|
6
|
+
const F = { class: "flex flex-wrap gap-1.5 items-center flex-1 min-w-0 py-0.5" }, T = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "text-muted-foreground pl-1"
|
|
9
|
+
}, U = { class: "truncate" }, q = ["onClick"], G = { class: "flex items-center gap-2 pl-2 shrink-0 text-muted-foreground" }, R = /* @__PURE__ */ z({
|
|
10
|
+
__name: "MultiSelect",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: { default: () => [] },
|
|
13
|
+
options: { default: () => [] },
|
|
14
|
+
placeholder: { default: "Select items..." },
|
|
15
|
+
disabled: { type: Boolean, default: !1 },
|
|
16
|
+
searchable: { type: Boolean, default: !0 },
|
|
17
|
+
variant: { default: "outline" },
|
|
18
|
+
size: { default: "md" },
|
|
19
|
+
maxVisible: { default: 2 },
|
|
20
|
+
loading: { type: Boolean, default: !1 },
|
|
21
|
+
hasMore: { type: Boolean, default: !1 },
|
|
22
|
+
remote: { type: Boolean, default: !1 },
|
|
23
|
+
layout: { default: "default" }
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "change", "load-more", "search"],
|
|
26
|
+
setup(l, { emit: $ }) {
|
|
27
|
+
const o = l, s = $, u = j(!1), c = i(() => o.options.filter((a) => {
|
|
28
|
+
const e = a.value ?? a.label;
|
|
29
|
+
return o.modelValue.includes(e);
|
|
30
|
+
})), B = i(() => c.value.slice(0, o.maxVisible)), x = i(() => c.value.length - o.maxVisible), O = (a) => {
|
|
31
|
+
const e = a.value ?? a.label, t = [...o.modelValue], r = t.indexOf(e);
|
|
32
|
+
r === -1 ? t.push(e) : t.splice(r, 1), s("update:modelValue", t), s("change", t);
|
|
33
|
+
}, M = (a) => {
|
|
34
|
+
const e = o.modelValue.filter((t) => t !== a);
|
|
35
|
+
s("update:modelValue", e), s("change", e);
|
|
36
|
+
}, S = () => {
|
|
37
|
+
s("update:modelValue", []), s("change", []);
|
|
38
|
+
}, N = i(() => [
|
|
39
|
+
"flex items-center justify-between w-full min-h-[40px] px-3 py-1.5 rounded-md border text-sm transition-colors cursor-pointer",
|
|
40
|
+
o.disabled ? "opacity-50 cursor-not-allowed bg-muted" : "bg-background hover:bg-accent",
|
|
41
|
+
o.variant === "outline" ? "border-input" : "border-transparent bg-muted",
|
|
42
|
+
u.value ? "border-primary" : ""
|
|
43
|
+
].join(" "));
|
|
44
|
+
return i(() => o.size === "sm" ? "xs" : "sm"), (a, e) => (n(), m(y(A), {
|
|
45
|
+
isOpen: u.value,
|
|
46
|
+
"onUpdate:isOpen": e[3] || (e[3] = (t) => u.value = t),
|
|
47
|
+
"close-on-select": !1,
|
|
48
|
+
selectable: !0,
|
|
49
|
+
disabled: l.disabled
|
|
50
|
+
}, {
|
|
51
|
+
trigger: f(({ isOpen: t }) => [
|
|
52
|
+
d("div", {
|
|
53
|
+
class: V(N.value)
|
|
54
|
+
}, [
|
|
55
|
+
d("div", F, [
|
|
56
|
+
c.value.length === 0 ? (n(), p("span", T, b(l.placeholder), 1)) : (n(), p(w, { key: 1 }, [
|
|
57
|
+
(n(!0), p(w, null, E(B.value, (r) => (n(), m(C, {
|
|
58
|
+
key: r.value,
|
|
59
|
+
variant: "secondary",
|
|
60
|
+
class: "gap-1 pr-1 truncate max-w-[150px]"
|
|
61
|
+
}, {
|
|
62
|
+
default: f(() => [
|
|
63
|
+
d("span", U, b(r.label), 1),
|
|
64
|
+
l.disabled ? h("", !0) : (n(), p("button", {
|
|
65
|
+
key: 0,
|
|
66
|
+
onClick: k((H) => M(r.value), ["stop"]),
|
|
67
|
+
class: "hover:bg-destructive/10 hover:text-destructive rounded-full p-0.5 transition-colors"
|
|
68
|
+
}, [
|
|
69
|
+
v(g, {
|
|
70
|
+
icon: "lucide:x",
|
|
71
|
+
class: "w-3 h-3"
|
|
72
|
+
})
|
|
73
|
+
], 8, q))
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1024))), 128)),
|
|
77
|
+
x.value > 0 ? (n(), m(C, {
|
|
78
|
+
key: 0,
|
|
79
|
+
variant: "secondary",
|
|
80
|
+
class: "font-normal text-muted-foreground"
|
|
81
|
+
}, {
|
|
82
|
+
default: f(() => [
|
|
83
|
+
L(" +" + b(x.value), 1)
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})) : h("", !0)
|
|
87
|
+
], 64))
|
|
88
|
+
]),
|
|
89
|
+
d("div", G, [
|
|
90
|
+
c.value.length > 0 && !l.disabled ? (n(), m(g, {
|
|
91
|
+
key: 0,
|
|
92
|
+
icon: "lucide:x",
|
|
93
|
+
class: "w-4 h-4 hover:text-foreground transition-colors",
|
|
94
|
+
onClick: k(S, ["stop"])
|
|
95
|
+
})) : h("", !0),
|
|
96
|
+
e[4] || (e[4] = d("div", { class: "w-px h-4 bg-border mx-0.5" }, null, -1)),
|
|
97
|
+
v(g, {
|
|
98
|
+
icon: "lucide:chevron-down",
|
|
99
|
+
class: V(["w-4 h-4 transition-transform duration-200", { "rotate-180": t }])
|
|
100
|
+
}, null, 8, ["class"])
|
|
101
|
+
])
|
|
102
|
+
], 2)
|
|
103
|
+
]),
|
|
104
|
+
default: f(() => [
|
|
105
|
+
v(y(D), {
|
|
106
|
+
options: l.options,
|
|
107
|
+
selected: l.modelValue,
|
|
108
|
+
class: "min-w-[300px]",
|
|
109
|
+
loading: l.loading,
|
|
110
|
+
hasMore: l.hasMore,
|
|
111
|
+
searchable: l.searchable,
|
|
112
|
+
remote: l.remote,
|
|
113
|
+
layout: l.layout,
|
|
114
|
+
onSelect: O,
|
|
115
|
+
onClose: e[0] || (e[0] = (t) => u.value = !1),
|
|
116
|
+
onLoadMore: e[1] || (e[1] = (t) => a.$emit("load-more")),
|
|
117
|
+
onSearch: e[2] || (e[2] = (t) => a.$emit("search", t))
|
|
118
|
+
}, null, 8, ["options", "selected", "loading", "hasMore", "searchable", "remote", "layout"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["isOpen", "disabled"]));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
export {
|
|
125
|
+
R as default
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MultiSelect } from './MultiSelect.vue';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { NavbarProps } from '../../types/navbar.type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
'mobile-trigger'?(_: {}): any;
|
|
6
|
+
logo?(_: {}): any;
|
|
7
|
+
logo?(_: {}): any;
|
|
8
|
+
logo?(_: {}): any;
|
|
9
|
+
logo?(_: {}): any;
|
|
10
|
+
left?(_: {}): any;
|
|
11
|
+
left?(_: {}): any;
|
|
12
|
+
left?(_: {}): any;
|
|
13
|
+
left?(_: {}): any;
|
|
14
|
+
center?(_: {}): any;
|
|
15
|
+
center?(_: {}): any;
|
|
16
|
+
center?(_: {}): any;
|
|
17
|
+
center?(_: {}): any;
|
|
18
|
+
right?(_: {}): any;
|
|
19
|
+
right?(_: {}): any;
|
|
20
|
+
right?(_: {}): any;
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
'mobile-menu'?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
30
|
+
"toggle-mobile": () => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
|
|
32
|
+
"onToggle-mobile"?: () => any;
|
|
33
|
+
}>, {
|
|
34
|
+
class: string;
|
|
35
|
+
width: string;
|
|
36
|
+
height: string;
|
|
37
|
+
variant: import('../../types/navbar.type').NavbarVariant;
|
|
38
|
+
border: boolean;
|
|
39
|
+
position: import('../../types/navbar.type').NavbarPosition;
|
|
40
|
+
compact: boolean;
|
|
41
|
+
centerPosition: import('../../types/navbar.type').NavbarCenterPosition;
|
|
42
|
+
glass: boolean;
|
|
43
|
+
floating: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { defineComponent as C, ref as v, useSlots as z, onMounted as S, onUnmounted as j, computed as f, provide as M, openBlock as n, createElementBlock as r, normalizeClass as m, Fragment as h, createElementVNode as s, renderSlot as l, createVNode as p, createBlock as y, resolveDynamicComponent as N, withCtx as b, createCommentVNode as w, toDisplayString as P, createTextVNode as E } from "vue";
|
|
2
|
+
import x from "../Icon.vue.js";
|
|
3
|
+
import V from "../SidePanel.vue.js";
|
|
4
|
+
import A from "../Logo.vue.js";
|
|
5
|
+
const O = { class: "flex items-center gap-4 shrink-0 z-10" }, D = { class: "shrink-0" }, L = { key: 1 }, U = { key: 2 }, W = { class: "hidden md:flex items-center gap-1 overflow-x-auto no-scrollbar mask-gradient" }, F = { class: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background" }, T = { class: "hidden md:flex flex-col h-full w-full overflow-hidden" }, Y = { class: "h-16 flex items-center px-6 shrink-0 z-10" }, q = { class: "flex-1 px-4 py-4 overflow-y-auto space-y-4 scrollbar-thin" }, G = { class: "p-4 border-t border-border shrink-0 bg-background mt-auto" }, H = { class: "flex flex-col space-y-6 pt-4 h-full" }, I = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex flex-col space-y-1"
|
|
8
|
+
}, J = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "flex flex-col space-y-4 flex-1 overflow-y-auto"
|
|
11
|
+
}, K = { class: "mt-auto pt-4 border-t border-border" }, te = /* @__PURE__ */ C({
|
|
12
|
+
__name: "Navbar",
|
|
13
|
+
props: {
|
|
14
|
+
variant: { default: "header" },
|
|
15
|
+
position: { default: "sticky" },
|
|
16
|
+
centerPosition: { default: "center" },
|
|
17
|
+
glass: { type: Boolean, default: !0 },
|
|
18
|
+
border: { type: Boolean, default: !0 },
|
|
19
|
+
floating: { type: Boolean, default: !1 },
|
|
20
|
+
class: { default: "" },
|
|
21
|
+
height: { default: "h-16" },
|
|
22
|
+
width: { default: "w-64" },
|
|
23
|
+
compact: { type: Boolean, default: !1 },
|
|
24
|
+
logo: {},
|
|
25
|
+
logoAlt: {}
|
|
26
|
+
},
|
|
27
|
+
emits: ["toggle-mobile"],
|
|
28
|
+
setup(a, { emit: Q }) {
|
|
29
|
+
const t = a, d = v(!1), u = v(!1);
|
|
30
|
+
z();
|
|
31
|
+
const g = () => {
|
|
32
|
+
u.value = window.scrollY > 10;
|
|
33
|
+
};
|
|
34
|
+
S(() => {
|
|
35
|
+
window.addEventListener("scroll", g, { passive: !0 });
|
|
36
|
+
}), j(() => {
|
|
37
|
+
window.removeEventListener("scroll", g);
|
|
38
|
+
});
|
|
39
|
+
const k = f(() => {
|
|
40
|
+
const e = t.variant === "sidebar", o = {
|
|
41
|
+
fixed: "fixed top-0 left-0 z-40",
|
|
42
|
+
sticky: "sticky top-0 z-40",
|
|
43
|
+
relative: "relative z-10",
|
|
44
|
+
absolute: "absolute top-0 left-0 w-full z-40"
|
|
45
|
+
}, i = "transition-all duration-300 ease-in-out bg-body", B = [
|
|
46
|
+
t.glass && (u.value || e || t.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
|
|
47
|
+
t.border && !t.floating ? e ? "border-r border-border" : "border-b border-border" : "",
|
|
48
|
+
t.floating ? "m-4 rounded-xl shadow-lg border border-border/50" : "",
|
|
49
|
+
u.value && !t.floating && !e && t.position === "sticky" ? "shadow-sm" : ""
|
|
50
|
+
];
|
|
51
|
+
let c = "";
|
|
52
|
+
return e ? c = `flex flex-col max-md:w-full ${t.compact ? "w-20" : t.width} h-auto md:h-full md:max-h-screen` : c = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${t.height}`, [i, o[t.position], ...B, c, t.class].join(" ");
|
|
53
|
+
}), $ = f(() => {
|
|
54
|
+
if (t.variant === "sidebar") return "flex-1 py-4 overflow-y-auto";
|
|
55
|
+
switch (t.centerPosition) {
|
|
56
|
+
case "left":
|
|
57
|
+
return "flex items-center justify-start";
|
|
58
|
+
case "right":
|
|
59
|
+
return "flex items-center justify-end ml-auto";
|
|
60
|
+
default:
|
|
61
|
+
return "hidden md:flex items-center justify-center mx-auto";
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return M("navbar-context", {
|
|
65
|
+
compact: f(() => t.compact)
|
|
66
|
+
}), (e, o) => (n(), r("nav", {
|
|
67
|
+
class: m(k.value),
|
|
68
|
+
role: "navigation"
|
|
69
|
+
}, [
|
|
70
|
+
a.variant === "header" ? (n(), r(h, { key: 0 }, [
|
|
71
|
+
s("div", O, [
|
|
72
|
+
l(e.$slots, "mobile-trigger", {}, () => [
|
|
73
|
+
s("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
class: "md:hidden p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0",
|
|
76
|
+
onClick: o[0] || (o[0] = (i) => d.value = !0)
|
|
77
|
+
}, [
|
|
78
|
+
p(x, {
|
|
79
|
+
icon: "lucide:menu",
|
|
80
|
+
class: "w-5 h-5"
|
|
81
|
+
}),
|
|
82
|
+
o[3] || (o[3] = s("span", { class: "sr-only" }, "Open Menu", -1))
|
|
83
|
+
])
|
|
84
|
+
]),
|
|
85
|
+
s("div", D, [
|
|
86
|
+
l(e.$slots, "logo", {}, () => [
|
|
87
|
+
(n(), y(N(t.logo ? "img" : "div"), {
|
|
88
|
+
src: t.logo,
|
|
89
|
+
class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
|
|
90
|
+
}, {
|
|
91
|
+
default: b(() => [
|
|
92
|
+
t.logo ? w("", !0) : (n(), y(A, {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "h-6 w-6"
|
|
95
|
+
})),
|
|
96
|
+
!t.logo && t.logoAlt ? (n(), r("span", L, P(t.logoAlt), 1)) : t.logo ? w("", !0) : (n(), r("span", U, "Brand"))
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["src"]))
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
s("div", W, [
|
|
103
|
+
l(e.$slots, "left")
|
|
104
|
+
])
|
|
105
|
+
]),
|
|
106
|
+
s("div", {
|
|
107
|
+
class: m([
|
|
108
|
+
$.value,
|
|
109
|
+
// Width constraint to ensure it doesn't crush others, but allows simple resizing
|
|
110
|
+
"max-w-full"
|
|
111
|
+
])
|
|
112
|
+
}, [
|
|
113
|
+
l(e.$slots, "center")
|
|
114
|
+
], 2),
|
|
115
|
+
s("div", {
|
|
116
|
+
class: m(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", {
|
|
117
|
+
// Always push to end unless Center is pushing it.
|
|
118
|
+
// If Center is 'center' (mx-auto) or 'right' (ml-auto), this naturally falls to end.
|
|
119
|
+
// If Center is 'left', we MUST have ml-auto here.
|
|
120
|
+
"ml-auto": a.centerPosition === "left" || a.centerPosition === "center"
|
|
121
|
+
// If center is 'right', Center has ml-auto. Right just sits next to it.
|
|
122
|
+
// But if we add ml-auto here too, they might split space? No, flexbox parses strictly.
|
|
123
|
+
}])
|
|
124
|
+
}, [
|
|
125
|
+
l(e.$slots, "right")
|
|
126
|
+
], 2)
|
|
127
|
+
], 64)) : (n(), r(h, { key: 1 }, [
|
|
128
|
+
s("div", F, [
|
|
129
|
+
l(e.$slots, "logo", {}, () => [
|
|
130
|
+
o[4] || (o[4] = s("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
131
|
+
]),
|
|
132
|
+
s("button", {
|
|
133
|
+
type: "button",
|
|
134
|
+
class: "p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md",
|
|
135
|
+
onClick: o[1] || (o[1] = (i) => d.value = !0)
|
|
136
|
+
}, [
|
|
137
|
+
p(x, {
|
|
138
|
+
icon: "lucide:menu",
|
|
139
|
+
class: "w-5 h-5"
|
|
140
|
+
}),
|
|
141
|
+
o[5] || (o[5] = s("span", { class: "sr-only" }, "Open Menu", -1))
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
s("div", T, [
|
|
145
|
+
s("div", Y, [
|
|
146
|
+
l(e.$slots, "logo", {}, () => [
|
|
147
|
+
o[6] || (o[6] = s("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
s("div", q, [
|
|
151
|
+
l(e.$slots, "left"),
|
|
152
|
+
l(e.$slots, "default"),
|
|
153
|
+
l(e.$slots, "center")
|
|
154
|
+
]),
|
|
155
|
+
s("div", G, [
|
|
156
|
+
l(e.$slots, "right")
|
|
157
|
+
])
|
|
158
|
+
])
|
|
159
|
+
], 64)),
|
|
160
|
+
p(V, {
|
|
161
|
+
show: d.value,
|
|
162
|
+
"onUpdate:show": o[2] || (o[2] = (i) => d.value = i),
|
|
163
|
+
position: "left",
|
|
164
|
+
size: "sm",
|
|
165
|
+
triggerClass: "sm:hidden",
|
|
166
|
+
class: "z-60 sm:hidden"
|
|
167
|
+
}, {
|
|
168
|
+
header: b(() => [
|
|
169
|
+
l(e.$slots, "logo", {}, () => [
|
|
170
|
+
o[7] || (o[7] = E("Brand", -1))
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
default: b(() => [
|
|
174
|
+
s("div", H, [
|
|
175
|
+
a.variant === "header" ? (n(), r("div", I, [
|
|
176
|
+
l(e.$slots, "mobile-menu", {}, () => [
|
|
177
|
+
l(e.$slots, "left"),
|
|
178
|
+
o[8] || (o[8] = s("div", { class: "h-px bg-border my-2" }, null, -1)),
|
|
179
|
+
l(e.$slots, "center")
|
|
180
|
+
])
|
|
181
|
+
])) : (n(), r("div", J, [
|
|
182
|
+
l(e.$slots, "left"),
|
|
183
|
+
l(e.$slots, "default"),
|
|
184
|
+
l(e.$slots, "center")
|
|
185
|
+
])),
|
|
186
|
+
s("div", K, [
|
|
187
|
+
l(e.$slots, "right")
|
|
188
|
+
])
|
|
189
|
+
])
|
|
190
|
+
]),
|
|
191
|
+
_: 3
|
|
192
|
+
}, 8, ["show"])
|
|
193
|
+
], 2));
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
export {
|
|
197
|
+
te as default
|
|
198
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
+
class: string;
|
|
16
|
+
orientation: "horizontal" | "vertical";
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as s, computed as r, openBlock as l, createElementBlock as n, normalizeClass as c, renderSlot as i } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ s({
|
|
3
|
+
__name: "NavbarGroup",
|
|
4
|
+
props: {
|
|
5
|
+
orientation: { default: "horizontal" },
|
|
6
|
+
class: { default: "" }
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o, t = r(() => [
|
|
10
|
+
"flex",
|
|
11
|
+
e.orientation === "vertical" ? "flex-col space-y-1" : "flex-row items-center space-x-1",
|
|
12
|
+
e.class
|
|
13
|
+
].join(" "));
|
|
14
|
+
return (a, p) => (l(), n("div", {
|
|
15
|
+
class: c(t.value)
|
|
16
|
+
}, [
|
|
17
|
+
i(a.$slots, "default")
|
|
18
|
+
], 2));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
f as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
to?: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
iconRight?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
class?: string;
|
|
10
|
+
orientation?: 'horizontal' | 'vertical';
|
|
11
|
+
variant?: 'default' | 'pill' | 'underline' | 'ghost';
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
badge?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
click: (event: MouseEvent) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
26
|
+
onClick?: (event: MouseEvent) => any;
|
|
27
|
+
}>, {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
class: string;
|
|
30
|
+
variant: "default" | "pill" | "underline" | "ghost";
|
|
31
|
+
active: boolean;
|
|
32
|
+
orientation: "horizontal" | "vertical";
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|