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
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue'
|
|
3
|
-
import Input from '@/components/Input.vue'
|
|
4
|
-
import Textarea from '@/components/Textarea.vue'
|
|
5
|
-
import Switch from '@/components/Switch.vue'
|
|
6
|
-
import CheckBox from '@/components/CheckBox.vue'
|
|
7
|
-
import ColorPicker from '@/components/ColorPicker/ColorPicker.vue'
|
|
8
|
-
import Label from '@/components/Label.vue'
|
|
9
|
-
import Slider from '@/components/Slider.vue'
|
|
10
|
-
import Button from '@/components/Button.vue'
|
|
11
|
-
|
|
12
|
-
const inputValue = ref('')
|
|
13
|
-
const lazyValue = ref('')
|
|
14
|
-
const passwordValue = ref('')
|
|
15
|
-
const switchValue = ref(false)
|
|
16
|
-
const checkValue = ref(false)
|
|
17
|
-
const colorValue = ref('#4f46e5')
|
|
18
|
-
const textareaValue = ref('')
|
|
19
|
-
const sliderValue = ref(50)
|
|
20
|
-
const sliderRangeValue = ref(75)
|
|
21
|
-
const sliderBipolarValue = ref(0)
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<template>
|
|
25
|
-
<section class="space-y-8">
|
|
26
|
-
<div class="space-y-2">
|
|
27
|
-
<h2 class="text-xl font-semibold tracking-tight">Forms & Inputs</h2>
|
|
28
|
-
<p class="text-sm text-gray-500">
|
|
29
|
-
Input fields, toggles, sliders, and other form controls.
|
|
30
|
-
</p>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<!-- Inputs Grid -->
|
|
34
|
-
<div class="grid gap-x-8 gap-y-12 xl:grid-cols-2">
|
|
35
|
-
<!-- Standard Inputs -->
|
|
36
|
-
<div class="space-y-6">
|
|
37
|
-
<h3 class="text-sm font-medium text-gray-500 uppercase tracking-wider">Text Inputs</h3>
|
|
38
|
-
|
|
39
|
-
<div class="space-y-4">
|
|
40
|
-
<!-- Variants Row -->
|
|
41
|
-
<div class="grid gap-4 sm:grid-cols-2">
|
|
42
|
-
<Input label="Outline (Default)" placeholder="Outline variant" variant="outline" />
|
|
43
|
-
<Input label="Solid" placeholder="Solid variant" variant="solid" />
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div class="grid gap-4 sm:grid-cols-2">
|
|
47
|
-
<Input label="Outline Bottom" placeholder="Border bottom only" variant="outline-b" />
|
|
48
|
-
<Input label="Transparent" placeholder="No border" variant="transparent" />
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<!-- Sizes -->
|
|
52
|
-
<div class="grid gap-4 sm:grid-cols-3 items-end">
|
|
53
|
-
<Input label="Small" placeholder="sm" size="sm" />
|
|
54
|
-
<Input label="Medium" placeholder="md" size="md" />
|
|
55
|
-
<Input label="Large" placeholder="lg" size="lg" />
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<!-- States -->
|
|
59
|
-
<div class="grid gap-4 sm:grid-cols-2">
|
|
60
|
-
<Input label="Disabled" placeholder="Cannot type..." disabled />
|
|
61
|
-
<Input label="Error State" placeholder="Invalid input..." error="This field is required" model-value="Wrong value" />
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<!-- Enhanced Inputs -->
|
|
67
|
-
<div class="space-y-6">
|
|
68
|
-
<h3 class="text-sm font-medium text-gray-500 uppercase tracking-wider">Enhanced Inputs</h3>
|
|
69
|
-
<div class="space-y-4">
|
|
70
|
-
<Input label="With Icon" icon="lucide:user" placeholder="Username" />
|
|
71
|
-
<Input label="With Right Icon" icon-right="lucide:mail" placeholder="Email address" />
|
|
72
|
-
<Input label="Loading State" loading placeholder="Validating..." />
|
|
73
|
-
<Input label="Password" type="password" placeholder="Enter password" v-model="passwordValue" />
|
|
74
|
-
|
|
75
|
-
<div class="grid gap-4 sm:grid-cols-2">
|
|
76
|
-
<Input label="Website" addon-left="https://" placeholder="example.com" />
|
|
77
|
-
<Input label="Price" addon-left="$" addon-right=".00" placeholder="0.00" />
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<!-- Interactive Controls -->
|
|
84
|
-
<div class="grid gap-x-8 gap-y-12 md:grid-cols-2">
|
|
85
|
-
<!-- Toggles & Checks -->
|
|
86
|
-
<div class="space-y-6">
|
|
87
|
-
<h3 class="text-sm font-medium text-gray-500 uppercase tracking-wider">Selection Controls</h3>
|
|
88
|
-
<div class="space-y-6 p-6 border border-border rounded-lg bg-gray-50/50">
|
|
89
|
-
<div class="flex items-center justify-between">
|
|
90
|
-
<div>
|
|
91
|
-
<Label class="text-base">Push Notifications</Label>
|
|
92
|
-
<p class="text-xs text-gray-500">Receive updates instantly</p>
|
|
93
|
-
</div>
|
|
94
|
-
<Switch v-model="switchValue" />
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<div class="flex items-center gap-3">
|
|
98
|
-
<CheckBox v-model:checked="checkValue" id="terms" />
|
|
99
|
-
<Label for="terms" class="cursor-pointer">I accept the terms and conditions</Label>
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
<div class="flex flex-col gap-2 pt-2">
|
|
103
|
-
<Label>Accent Color</Label>
|
|
104
|
-
<ColorPicker v-model="colorValue" />
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
<!-- Sliders -->
|
|
110
|
-
<div class="space-y-6">
|
|
111
|
-
<h3 class="text-sm font-medium text-gray-500 uppercase tracking-wider">Sliders</h3>
|
|
112
|
-
<div class="space-y-8 p-6 border border-border rounded-lg bg-gray-50/50">
|
|
113
|
-
<Slider label="Volume" icon="lucide:volume-2" v-model="sliderValue" />
|
|
114
|
-
<Slider label="Range (50-200)" :min="50" :max="200" v-model="sliderRangeValue" />
|
|
115
|
-
<Slider label="Balance (-50 to 50)" :min="-50" :max="50" v-model="sliderBipolarValue" />
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
<!-- Textarea -->
|
|
121
|
-
<div class="space-y-2">
|
|
122
|
-
<Label>Feedback</Label>
|
|
123
|
-
<Textarea placeholder="Share your thoughts..." v-model="textareaValue" :rows="4" />
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
</section>
|
|
127
|
-
</template>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Label from '@/components/Label.vue'
|
|
3
|
-
import Input from '@/components/Input.vue'
|
|
4
|
-
import CheckBox from '@/components/CheckBox.vue'
|
|
5
|
-
import { ref } from 'vue'
|
|
6
|
-
|
|
7
|
-
const checked = ref(false)
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div class="space-y-10">
|
|
12
|
-
<div class="space-y-2">
|
|
13
|
-
<h2 class="text-2xl font-bold">Label</h2>
|
|
14
|
-
<p class="text-gray-500">Renders an accessible label associated with controls.</p>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<section class="space-y-4">
|
|
18
|
-
<h3 class="text-lg font-semibold">Usage</h3>
|
|
19
|
-
<div class="grid gap-4 max-w-sm">
|
|
20
|
-
<div class="space-y-1">
|
|
21
|
-
<Label for="email">Email address</Label>
|
|
22
|
-
<Input id="email" placenolder="Enter email..." />
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<div class="flex items-center gap-2">
|
|
26
|
-
<CheckBox id="terms" v-model:checked="checked" />
|
|
27
|
-
<Label for="terms" class="cursor-pointer">I accept the terms</Label>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</section>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref, computed } from 'vue'
|
|
3
|
-
import { Masonry } from '@/components/Masonry'
|
|
4
|
-
import Button from '@/components/Button.vue'
|
|
5
|
-
|
|
6
|
-
// Types
|
|
7
|
-
type ItemType = 'text' | 'image' | 'mixed'
|
|
8
|
-
|
|
9
|
-
interface MasonryItem {
|
|
10
|
-
id: number
|
|
11
|
-
type: 'text' | 'image'
|
|
12
|
-
height: number
|
|
13
|
-
title?: string
|
|
14
|
-
content?: string
|
|
15
|
-
src?: string
|
|
16
|
-
aspectRatio?: number
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// State
|
|
20
|
-
const itemCount = ref(20)
|
|
21
|
-
const gap = ref(16)
|
|
22
|
-
const currentType = ref<ItemType>('mixed')
|
|
23
|
-
const items = ref<MasonryItem[]>([])
|
|
24
|
-
|
|
25
|
-
// Generate Random Data
|
|
26
|
-
const generateItems = (count: number, type: ItemType) => {
|
|
27
|
-
const result: MasonryItem[] = []
|
|
28
|
-
for (let i = 0; i < count; i++) {
|
|
29
|
-
const isImage = type === 'image' || (type === 'mixed' && Math.random() > 0.5)
|
|
30
|
-
// Random height between 200 and 500 for variety
|
|
31
|
-
const height = Math.floor(Math.random() * (500 - 200 + 1)) + 200
|
|
32
|
-
// Aspect ratio for images
|
|
33
|
-
const aspectRatio = isImage ? 0.7 + Math.random() * 0.8 : 1 // 0.7 to 1.5
|
|
34
|
-
|
|
35
|
-
result.push({
|
|
36
|
-
id: Date.now() + i, // Simple unique ID
|
|
37
|
-
type: isImage ? 'image' : 'text',
|
|
38
|
-
height,
|
|
39
|
-
aspectRatio,
|
|
40
|
-
title: `Item ${i + 1}`,
|
|
41
|
-
content: isImage
|
|
42
|
-
? undefined
|
|
43
|
-
: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.',
|
|
44
|
-
src: isImage
|
|
45
|
-
? `https://picsum.photos/400/${Math.floor(400 * (1/aspectRatio))}?random=${i}`
|
|
46
|
-
: undefined
|
|
47
|
-
})
|
|
48
|
-
}
|
|
49
|
-
return result
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Init
|
|
53
|
-
items.value = generateItems(itemCount.value, currentType.value)
|
|
54
|
-
|
|
55
|
-
const refresh = () => {
|
|
56
|
-
items.value = generateItems(itemCount.value, currentType.value)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const addItems = () => {
|
|
60
|
-
const newItems = generateItems(5, currentType.value)
|
|
61
|
-
items.value = [...items.value, ...newItems]
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const setType = (type: ItemType) => {
|
|
65
|
-
currentType.value = type
|
|
66
|
-
refresh()
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Column Config Options
|
|
70
|
-
// We can test responsive object vs number
|
|
71
|
-
const useResponsive = ref(true)
|
|
72
|
-
const fixedCols = ref(3)
|
|
73
|
-
|
|
74
|
-
const cols = computed(() => {
|
|
75
|
-
if (!useResponsive.value) return fixedCols.value
|
|
76
|
-
return {
|
|
77
|
-
default: 1,
|
|
78
|
-
sm: 2,
|
|
79
|
-
md: 3,
|
|
80
|
-
lg: 4,
|
|
81
|
-
xl: 5
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<template>
|
|
87
|
-
<div class="space-y-8">
|
|
88
|
-
<!-- Title -->
|
|
89
|
-
<div>
|
|
90
|
-
<h2 class="text-2xl font-bold text-gray-900">Masonry Grid</h2>
|
|
91
|
-
<p class="text-gray-500">Responsive masonry layout for displaying items with varying heights.</p>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<!-- Controls -->
|
|
95
|
-
<div class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm space-y-4">
|
|
96
|
-
<div class="flex flex-wrap gap-4 items-center justify-between">
|
|
97
|
-
|
|
98
|
-
<!-- Content Type -->
|
|
99
|
-
<div class="flex items-center gap-2">
|
|
100
|
-
<span class="text-sm font-medium text-gray-700">Content:</span>
|
|
101
|
-
<div class="flex bg-gray-100 p-1 rounded-md">
|
|
102
|
-
<button
|
|
103
|
-
v-for="t in ['text', 'image', 'mixed']"
|
|
104
|
-
:key="t"
|
|
105
|
-
@click="setType(t as ItemType)"
|
|
106
|
-
class="px-3 py-1 text-xs font-medium rounded capitalize transition-colors"
|
|
107
|
-
:class="currentType === t ? 'bg-white text-primary shadow-sm' : 'text-gray-500 hover:text-gray-900'"
|
|
108
|
-
>
|
|
109
|
-
{{ t }}
|
|
110
|
-
</button>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<!-- Actions -->
|
|
115
|
-
<div class="flex items-center gap-2">
|
|
116
|
-
<Button size="sm" variant="outline" icon="lucide:refresh-cw" @click="refresh">Refresh</Button>
|
|
117
|
-
<Button size="sm" variant="outline" icon="lucide:plus" @click="addItems">Add Items</Button>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
<div class="h-px bg-gray-100"></div>
|
|
122
|
-
|
|
123
|
-
<div class="flex flex-wrap gap-6">
|
|
124
|
-
<!-- Columns Toggle -->
|
|
125
|
-
<div class="space-y-2">
|
|
126
|
-
<div class="flex items-center gap-2">
|
|
127
|
-
<label class="text-sm font-medium text-gray-700">Configuration</label>
|
|
128
|
-
<button
|
|
129
|
-
@click="useResponsive = !useResponsive"
|
|
130
|
-
class="text-xs text-primary hover:underline"
|
|
131
|
-
>
|
|
132
|
-
{{ useResponsive ? 'Switch to Fixed' : 'Switch to Responsive' }}
|
|
133
|
-
</button>
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
<div v-if="!useResponsive" class="flex items-center gap-2">
|
|
137
|
-
<span class="text-xs text-gray-500">Columns: {{ fixedCols }}</span>
|
|
138
|
-
<input
|
|
139
|
-
type="range"
|
|
140
|
-
v-model.number="fixedCols"
|
|
141
|
-
min="1"
|
|
142
|
-
max="10"
|
|
143
|
-
class="w-32"
|
|
144
|
-
>
|
|
145
|
-
</div>
|
|
146
|
-
<div v-else class="text-xs text-gray-400">
|
|
147
|
-
Auto-responsive: sm:2, md:3, lg:4, xl:5
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
<!-- Gap Slider -->
|
|
152
|
-
<div class="space-y-2">
|
|
153
|
-
<div class="flex items-center gap-2">
|
|
154
|
-
<label class="text-sm font-medium text-gray-700">Gap</label>
|
|
155
|
-
<span class="text-xs text-gray-500">{{ gap }}px</span>
|
|
156
|
-
</div>
|
|
157
|
-
<input
|
|
158
|
-
type="range"
|
|
159
|
-
v-model.number="gap"
|
|
160
|
-
min="0"
|
|
161
|
-
max="64"
|
|
162
|
-
step="4"
|
|
163
|
-
class="w-32"
|
|
164
|
-
>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<!-- Item Count (Performance) -->
|
|
168
|
-
<div class="space-y-2">
|
|
169
|
-
<div class="flex items-center gap-2">
|
|
170
|
-
<label class="text-sm font-medium text-gray-700">Items</label>
|
|
171
|
-
<span class="text-xs text-gray-500">{{ itemCount }}</span>
|
|
172
|
-
</div>
|
|
173
|
-
<input
|
|
174
|
-
type="range"
|
|
175
|
-
v-model.number="itemCount"
|
|
176
|
-
min="5"
|
|
177
|
-
max="500"
|
|
178
|
-
step="5"
|
|
179
|
-
@change="refresh"
|
|
180
|
-
class="w-32"
|
|
181
|
-
>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
<!-- The Masonry Grid -->
|
|
187
|
-
<div class="bg-gray-50/50 p-4 rounded-xl border border-dashed border-gray-300 min-h-[500px]">
|
|
188
|
-
<Masonry
|
|
189
|
-
:data="items"
|
|
190
|
-
:cols="cols"
|
|
191
|
-
:gap="gap"
|
|
192
|
-
v-slot="{ data }"
|
|
193
|
-
>
|
|
194
|
-
<!-- Card -->
|
|
195
|
-
<div
|
|
196
|
-
class="w-full rounded-xl overflow-hidden shadow-sm border border-gray-100 bg-white transition-transform duration-300 hover:-translate-y-1 hover:shadow-md"
|
|
197
|
-
:class="data.type === 'text' ? 'p-6' : ''"
|
|
198
|
-
>
|
|
199
|
-
<!-- Content Type: Image -->
|
|
200
|
-
<template v-if="data.type === 'image'">
|
|
201
|
-
<img
|
|
202
|
-
:src="data.src"
|
|
203
|
-
class="w-full h-auto block"
|
|
204
|
-
loading="lazy"
|
|
205
|
-
alt="Masonry Item"
|
|
206
|
-
:style="{ aspectRatio: data.aspectRatio }"
|
|
207
|
-
/>
|
|
208
|
-
<div class="p-4">
|
|
209
|
-
<h3 class="font-semibold text-gray-900">{{ data.title }}</h3>
|
|
210
|
-
<p class="text-sm text-gray-500 mt-1">Image Description</p>
|
|
211
|
-
</div>
|
|
212
|
-
</template>
|
|
213
|
-
|
|
214
|
-
<!-- Content Type: Text -->
|
|
215
|
-
<template v-else>
|
|
216
|
-
<div class="flex items-center gap-3 mb-3">
|
|
217
|
-
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center font-bold text-xs ring-2 ring-white">
|
|
218
|
-
{{ data.id.toString().slice(-2) }}
|
|
219
|
-
</div>
|
|
220
|
-
<span class="text-xs font-semibold text-gray-400 uppercase tracking-wider">Note</span>
|
|
221
|
-
</div>
|
|
222
|
-
<h3 class="font-bold text-gray-900 mb-2">{{ data.title }}</h3>
|
|
223
|
-
<p class="text-gray-600 text-sm leading-relaxed">
|
|
224
|
-
{{ data.content }}
|
|
225
|
-
<span v-if="data.height > 300" class="block mt-2">
|
|
226
|
-
Additional content to show variable height. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
|
|
227
|
-
</span>
|
|
228
|
-
<span v-if="data.height > 400" class="block mt-2 text-gray-400 italic">
|
|
229
|
-
Even more content for very tall cards. Excepteur sint occaecat cupidatat non proident.
|
|
230
|
-
</span>
|
|
231
|
-
</p>
|
|
232
|
-
<div class="mt-4 pt-4 border-t border-gray-100 flex items-center justify-between">
|
|
233
|
-
<span class="text-xs text-gray-400">Just now</span>
|
|
234
|
-
<Button size="xs" variant="ghost">View</Button>
|
|
235
|
-
</div>
|
|
236
|
-
</template>
|
|
237
|
-
</div>
|
|
238
|
-
</Masonry>
|
|
239
|
-
</div>
|
|
240
|
-
</div>
|
|
241
|
-
</template>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Modal from '@/components/Modal.vue'
|
|
3
|
-
import ConfirmationModal from '@/components/ConfirmationModal.vue'
|
|
4
|
-
import Button from '@/components/Button.vue'
|
|
5
|
-
import { ref } from 'vue'
|
|
6
|
-
import ColorsDemo from './ColorsDemo.vue'
|
|
7
|
-
|
|
8
|
-
const showModal = ref(false)
|
|
9
|
-
const showScrollModal = ref(false)
|
|
10
|
-
const showConfirm = ref(false)
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<template>
|
|
14
|
-
<div class="space-y-10">
|
|
15
|
-
<div class="space-y-2">
|
|
16
|
-
<h2 class="text-2xl font-bold">Modal</h2>
|
|
17
|
-
<p class="text-gray-500">Dialogs that interrupt user flow for critical actions or info.</p>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<section class="space-y-4">
|
|
21
|
-
<h3 class="text-lg font-semibold">Basic Usage</h3>
|
|
22
|
-
<Button @click="showModal = true">Open Standard Modal</Button>
|
|
23
|
-
|
|
24
|
-
<Modal
|
|
25
|
-
v-model:show="showModal"
|
|
26
|
-
title="Edit Profile"
|
|
27
|
-
max-width="max-w-4xl"
|
|
28
|
-
description="Make changes to your profile here.">
|
|
29
|
-
<div class="py-4">
|
|
30
|
-
<ColorsDemo />
|
|
31
|
-
</div>
|
|
32
|
-
<template #footer="{ close }">
|
|
33
|
-
<div class="flex justify-end gap-2 w-full">
|
|
34
|
-
<Button variant="outline" @click="close">Cancel</Button>
|
|
35
|
-
<Button @click="close">Save</Button>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
</Modal>
|
|
39
|
-
</section>
|
|
40
|
-
|
|
41
|
-
<section class="space-y-4">
|
|
42
|
-
<h3 class="text-lg font-semibold">Long Content</h3>
|
|
43
|
-
<Button @click="showScrollModal = true">Open Scrollable Modal</Button>
|
|
44
|
-
<Modal v-model:show="showScrollModal" title="Terms of Service">
|
|
45
|
-
<div class="space-y-4 py-2">
|
|
46
|
-
<p v-for="i in 10" :key="i" class="text-gray-600">
|
|
47
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor
|
|
48
|
-
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
|
|
49
|
-
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
50
|
-
</p>
|
|
51
|
-
</div>
|
|
52
|
-
</Modal>
|
|
53
|
-
</section>
|
|
54
|
-
|
|
55
|
-
<section class="space-y-4">
|
|
56
|
-
<h3 class="text-lg font-semibold">Confirmation Modal</h3>
|
|
57
|
-
<Button variant="danger" @click="showConfirm = true">Delete Account</Button>
|
|
58
|
-
<ConfirmationModal
|
|
59
|
-
v-model:show="showConfirm"
|
|
60
|
-
title="Are you absolutely sure?"
|
|
61
|
-
description="This action cannot be undone. This will permanently delete your account and remove your data from our servers."
|
|
62
|
-
confirm-text="Yes, delete account"
|
|
63
|
-
@confirm="showConfirm = false"
|
|
64
|
-
@cancel="showConfirm = false" />
|
|
65
|
-
</section>
|
|
66
|
-
</div>
|
|
67
|
-
</template>
|