@youcan/celeste 0.6.3
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/LICENSE +9 -0
- package/dist/celeste.css +3564 -0
- package/dist/cjs/alert.js +111 -0
- package/dist/cjs/alpha-slider.js +3 -0
- package/dist/cjs/badge.js +55 -0
- package/dist/cjs/button.js +39 -0
- package/dist/cjs/checkbox.js +3 -0
- package/dist/cjs/chunks/_plugin-vue_export-helper.js +9 -0
- package/dist/cjs/chunks/alpha-slider.js +127 -0
- package/dist/cjs/chunks/checkbox.vue_vue_type_style_index_0_lang.js +38 -0
- package/dist/cjs/chunks/clsx.js +15 -0
- package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +52 -0
- package/dist/cjs/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +51 -0
- package/dist/cjs/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +49 -0
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +32 -0
- package/dist/cjs/chunks/dropdown-menu-sub.js +25 -0
- package/dist/cjs/chunks/index.js +9056 -0
- package/dist/cjs/chunks/modal-close.js +22 -0
- package/dist/cjs/chunks/modal-trigger.js +22 -0
- package/dist/cjs/chunks/modal.js +26 -0
- package/dist/cjs/chunks/popover.js +26 -0
- package/dist/cjs/chunks/scroll-area.js +41 -0
- package/dist/cjs/chunks/select-group.js +22 -0
- package/dist/cjs/chunks/select.js +38 -0
- package/dist/cjs/chunks/slider.vue_vue_type_style_index_0_lang.js +52 -0
- package/dist/cjs/chunks/switch.vue_vue_type_style_index_0_lang.js +38 -0
- package/dist/cjs/chunks/use-color-model.js +992 -0
- package/dist/cjs/color-area.js +175 -0
- package/dist/cjs/color-picker.js +515 -0
- package/dist/cjs/color-swatch.js +59 -0
- package/dist/cjs/color.js +102 -0
- package/dist/cjs/command-group.js +41 -0
- package/dist/cjs/command-input.js +45 -0
- package/dist/cjs/command-item.js +34 -0
- package/dist/cjs/command-list.js +52 -0
- package/dist/cjs/command-root.js +45 -0
- package/dist/cjs/command-separator.js +32 -0
- package/dist/cjs/compact-button.js +42 -0
- package/dist/cjs/content-divider.js +3 -0
- package/dist/cjs/context-menu-item.js +134 -0
- package/dist/cjs/crypto.js +8 -0
- package/dist/cjs/dropdown-item.js +99 -0
- package/dist/cjs/dropdown-menu-content.js +3 -0
- package/dist/cjs/dropdown-menu-group.js +24 -0
- package/dist/cjs/dropdown-menu-item.js +68 -0
- package/dist/cjs/dropdown-menu-label.js +31 -0
- package/dist/cjs/dropdown-menu-separator.js +25 -0
- package/dist/cjs/dropdown-menu-sub-content.js +3 -0
- package/dist/cjs/dropdown-menu-sub-trigger.js +3 -0
- package/dist/cjs/dropdown-menu-sub.js +3 -0
- package/dist/cjs/dropdown-menu-trigger.js +26 -0
- package/dist/cjs/dropdown-menu.js +32 -0
- package/dist/cjs/dropdown.js +284 -0
- package/dist/cjs/fancy-button.js +38 -0
- package/dist/cjs/hint-text.js +36 -0
- package/dist/cjs/hue-slider.js +133 -0
- package/dist/cjs/index.js +190 -0
- package/dist/cjs/label.js +55 -0
- package/dist/cjs/link-button.js +44 -0
- package/dist/cjs/modal-body.js +22 -0
- package/dist/cjs/modal-close.js +3 -0
- package/dist/cjs/modal-content.js +48 -0
- package/dist/cjs/modal-footer.js +22 -0
- package/dist/cjs/modal-header.js +81 -0
- package/dist/cjs/modal-trigger.js +3 -0
- package/dist/cjs/modal.js +3 -0
- package/dist/cjs/popover-content.js +104 -0
- package/dist/cjs/popover-trigger.js +24 -0
- package/dist/cjs/popover.js +3 -0
- package/dist/cjs/scroll-area.js +3 -0
- package/dist/cjs/scroll-bar.js +39 -0
- package/dist/cjs/segmented-control-item.js +41 -0
- package/dist/cjs/segmented-control.js +40 -0
- package/dist/cjs/select-content.js +61 -0
- package/dist/cjs/select-group.js +3 -0
- package/dist/cjs/select-icon.js +25 -0
- package/dist/cjs/select-item.js +44 -0
- package/dist/cjs/select-label.js +32 -0
- package/dist/cjs/select-separator.js +26 -0
- package/dist/cjs/select-trigger.js +40 -0
- package/dist/cjs/select-value.js +31 -0
- package/dist/cjs/select.js +3 -0
- package/dist/cjs/shims.js +1 -0
- package/dist/cjs/slider.js +3 -0
- package/dist/cjs/social-button.js +45 -0
- package/dist/cjs/status-badge.js +49 -0
- package/dist/cjs/switch.js +3 -0
- package/dist/cjs/tab-menu-content.js +32 -0
- package/dist/cjs/tab-menu-item.js +44 -0
- package/dist/cjs/tab-menu-list.js +34 -0
- package/dist/cjs/tab-menu.js +32 -0
- package/dist/cjs/text-input-affix.js +28 -0
- package/dist/cjs/text-input-button.js +32 -0
- package/dist/cjs/text-input-icon.js +29 -0
- package/dist/cjs/text-input.js +41 -0
- package/dist/cjs/textarea.js +56 -0
- package/dist/cjs/tooltip.js +115 -0
- package/dist/cjs/use-color-model.js +6 -0
- package/dist/cjs/use-delegated-props.js +14 -0
- package/dist/cjs/use-user-select.js +39 -0
- package/dist/components/alert/alert.d.ts +30 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +17 -0
- package/dist/components/badge/index.d.ts +4 -0
- package/dist/components/badge/status-badge.d.ts +13 -0
- package/dist/components/button/button.d.ts +22 -0
- package/dist/components/button/compact-button.d.ts +15 -0
- package/dist/components/button/fancy-button.d.ts +20 -0
- package/dist/components/button/index.d.ts +10 -0
- package/dist/components/button/link-button.d.ts +22 -0
- package/dist/components/button/social-button.d.ts +10 -0
- package/dist/components/checkbox/checkbox.d.ts +11 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/color-picker/alpha-slider.d.ts +15 -0
- package/dist/components/color-picker/color-area.d.ts +9 -0
- package/dist/components/color-picker/color-picker.d.ts +47 -0
- package/dist/components/color-picker/color-swatch.d.ts +19 -0
- package/dist/components/color-picker/composable/use-color-model.d.ts +7 -0
- package/dist/components/color-picker/composable/use-user-select.d.ts +8 -0
- package/dist/components/color-picker/hue-slider.d.ts +14 -0
- package/dist/components/color-picker/index.d.ts +10 -0
- package/dist/components/content-divider/content-divider.d.ts +10 -0
- package/dist/components/content-divider/index.d.ts +2 -0
- package/dist/components/dropdown/context-menu-item.d.ts +39 -0
- package/dist/components/dropdown/dropdown-item.d.ts +30 -0
- package/dist/components/dropdown/dropdown.d.ts +51 -0
- package/dist/components/dropdown/index.d.ts +6 -0
- package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +36 -0
- package/dist/components/dropdown-menu/dropdown-menu-group.d.ts +18 -0
- package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +26 -0
- package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +22 -0
- package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +7 -0
- package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +38 -0
- package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +22 -0
- package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +22 -0
- package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +18 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +18 -0
- package/dist/components/dropdown-menu/index.d.ts +20 -0
- package/dist/components/hint-text/hint-text.d.ts +11 -0
- package/dist/components/hint-text/index.d.ts +2 -0
- package/dist/components/index.d.ts +20 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/label.d.ts +29 -0
- package/dist/components/modal/index.d.ts +14 -0
- package/dist/components/modal/modal-body.d.ts +21 -0
- package/dist/components/modal/modal-close.d.ts +18 -0
- package/dist/components/modal/modal-content.d.ts +37 -0
- package/dist/components/modal/modal-footer.d.ts +21 -0
- package/dist/components/modal/modal-header.d.ts +16 -0
- package/dist/components/modal/modal-trigger.d.ts +18 -0
- package/dist/components/modal/modal.d.ts +22 -0
- package/dist/components/popover/index.d.ts +6 -0
- package/dist/components/popover/popover-content.d.ts +41 -0
- package/dist/components/popover/popover-trigger.d.ts +18 -0
- package/dist/components/popover/popover.d.ts +22 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/scroll-area.d.ts +22 -0
- package/dist/components/scroll-area/scroll-bar.d.ts +9 -0
- package/dist/components/segmented-control/index.d.ts +4 -0
- package/dist/components/segmented-control/segmented-control-item.d.ts +22 -0
- package/dist/components/segmented-control/segmented-control.d.ts +26 -0
- package/dist/components/select/index.d.ts +18 -0
- package/dist/components/select/select-content.d.ts +33 -0
- package/dist/components/select/select-group.d.ts +18 -0
- package/dist/components/select/select-icon.d.ts +21 -0
- package/dist/components/select/select-item.d.ts +22 -0
- package/dist/components/select/select-label.d.ts +22 -0
- package/dist/components/select/select-separator.d.ts +7 -0
- package/dist/components/select/select-trigger.d.ts +28 -0
- package/dist/components/select/select-value.d.ts +22 -0
- package/dist/components/select/select.d.ts +28 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +13 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.d.ts +11 -0
- package/dist/components/tab-menu/index.d.ts +8 -0
- package/dist/components/tab-menu/tab-menu-content.d.ts +22 -0
- package/dist/components/tab-menu/tab-menu-item.d.ts +24 -0
- package/dist/components/tab-menu/tab-menu-list.d.ts +22 -0
- package/dist/components/tab-menu/tab-menu.d.ts +23 -0
- package/dist/components/text-input/index.d.ts +8 -0
- package/dist/components/text-input/text-input-affix.d.ts +26 -0
- package/dist/components/text-input/text-input-button.d.ts +23 -0
- package/dist/components/text-input/text-input-icon.d.ts +10 -0
- package/dist/components/text-input/text-input.d.ts +27 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +22 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +29 -0
- package/dist/composables/use-delegated-props.d.ts +2 -0
- package/dist/es/alert.js +112 -0
- package/dist/es/alpha-slider.js +4 -0
- package/dist/es/badge.js +56 -0
- package/dist/es/button.js +40 -0
- package/dist/es/checkbox.js +4 -0
- package/dist/es/chunks/_plugin-vue_export-helper.js +10 -0
- package/dist/es/chunks/alpha-slider.js +128 -0
- package/dist/es/chunks/checkbox.vue_vue_type_style_index_0_lang.js +39 -0
- package/dist/es/chunks/clsx.js +16 -0
- package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +53 -0
- package/dist/es/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +52 -0
- package/dist/es/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +50 -0
- package/dist/es/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +33 -0
- package/dist/es/chunks/dropdown-menu-sub.js +26 -0
- package/dist/es/chunks/index.js +9041 -0
- package/dist/es/chunks/modal-close.js +23 -0
- package/dist/es/chunks/modal-trigger.js +23 -0
- package/dist/es/chunks/modal.js +27 -0
- package/dist/es/chunks/popover.js +27 -0
- package/dist/es/chunks/scroll-area.js +42 -0
- package/dist/es/chunks/select-group.js +23 -0
- package/dist/es/chunks/select.js +39 -0
- package/dist/es/chunks/slider.vue_vue_type_style_index_0_lang.js +53 -0
- package/dist/es/chunks/switch.vue_vue_type_style_index_0_lang.js +39 -0
- package/dist/es/chunks/use-color-model.js +993 -0
- package/dist/es/color-area.js +176 -0
- package/dist/es/color-picker.js +516 -0
- package/dist/es/color-swatch.js +60 -0
- package/dist/es/color.js +102 -0
- package/dist/es/command-group.js +42 -0
- package/dist/es/command-input.js +46 -0
- package/dist/es/command-item.js +35 -0
- package/dist/es/command-list.js +53 -0
- package/dist/es/command-root.js +46 -0
- package/dist/es/command-separator.js +33 -0
- package/dist/es/compact-button.js +43 -0
- package/dist/es/content-divider.js +4 -0
- package/dist/es/context-menu-item.js +135 -0
- package/dist/es/crypto.js +8 -0
- package/dist/es/dropdown-item.js +100 -0
- package/dist/es/dropdown-menu-content.js +4 -0
- package/dist/es/dropdown-menu-group.js +25 -0
- package/dist/es/dropdown-menu-item.js +69 -0
- package/dist/es/dropdown-menu-label.js +32 -0
- package/dist/es/dropdown-menu-separator.js +26 -0
- package/dist/es/dropdown-menu-sub-content.js +4 -0
- package/dist/es/dropdown-menu-sub-trigger.js +4 -0
- package/dist/es/dropdown-menu-sub.js +4 -0
- package/dist/es/dropdown-menu-trigger.js +27 -0
- package/dist/es/dropdown-menu.js +33 -0
- package/dist/es/dropdown.js +285 -0
- package/dist/es/fancy-button.js +39 -0
- package/dist/es/hint-text.js +37 -0
- package/dist/es/hue-slider.js +134 -0
- package/dist/es/index.js +190 -0
- package/dist/es/label.js +56 -0
- package/dist/es/link-button.js +45 -0
- package/dist/es/modal-body.js +23 -0
- package/dist/es/modal-close.js +4 -0
- package/dist/es/modal-content.js +49 -0
- package/dist/es/modal-footer.js +23 -0
- package/dist/es/modal-header.js +82 -0
- package/dist/es/modal-trigger.js +4 -0
- package/dist/es/modal.js +4 -0
- package/dist/es/popover-content.js +105 -0
- package/dist/es/popover-trigger.js +25 -0
- package/dist/es/popover.js +4 -0
- package/dist/es/scroll-area.js +4 -0
- package/dist/es/scroll-bar.js +40 -0
- package/dist/es/segmented-control-item.js +42 -0
- package/dist/es/segmented-control.js +41 -0
- package/dist/es/select-content.js +62 -0
- package/dist/es/select-group.js +4 -0
- package/dist/es/select-icon.js +26 -0
- package/dist/es/select-item.js +45 -0
- package/dist/es/select-label.js +33 -0
- package/dist/es/select-separator.js +27 -0
- package/dist/es/select-trigger.js +41 -0
- package/dist/es/select-value.js +32 -0
- package/dist/es/select.js +4 -0
- package/dist/es/shims.js +1 -0
- package/dist/es/slider.js +4 -0
- package/dist/es/social-button.js +46 -0
- package/dist/es/status-badge.js +50 -0
- package/dist/es/switch.js +4 -0
- package/dist/es/tab-menu-content.js +33 -0
- package/dist/es/tab-menu-item.js +45 -0
- package/dist/es/tab-menu-list.js +35 -0
- package/dist/es/tab-menu.js +33 -0
- package/dist/es/text-input-affix.js +29 -0
- package/dist/es/text-input-button.js +33 -0
- package/dist/es/text-input-icon.js +30 -0
- package/dist/es/text-input.js +42 -0
- package/dist/es/textarea.js +57 -0
- package/dist/es/tooltip.js +116 -0
- package/dist/es/use-color-model.js +6 -0
- package/dist/es/use-delegated-props.js +14 -0
- package/dist/es/use-user-select.js +39 -0
- package/dist/index.d.ts +5 -0
- package/dist/utils/color.d.ts +26 -0
- package/dist/utils/crypto.d.ts +1 -0
- package/package.json +77 -0
- package/src/components/alert/alert.vue +312 -0
- package/src/components/alert/index.ts +2 -0
- package/src/components/alert/stories/alert.stories.ts +91 -0
- package/src/components/badge/badge.vue +131 -0
- package/src/components/badge/index.ts +5 -0
- package/src/components/badge/status-badge.vue +110 -0
- package/src/components/badge/stories/badge.stories.ts +33 -0
- package/src/components/badge/stories/status-badge.stories.ts +31 -0
- package/src/components/button/button.vue +281 -0
- package/src/components/button/compact-button.vue +126 -0
- package/src/components/button/fancy-button.vue +171 -0
- package/src/components/button/index.ts +14 -0
- package/src/components/button/link-button.vue +128 -0
- package/src/components/button/social-button.vue +130 -0
- package/src/components/button/stories/button.stories.ts +31 -0
- package/src/components/button/stories/compact-button.stories.ts +31 -0
- package/src/components/button/stories/fancy-button.stories.ts +31 -0
- package/src/components/button/stories/link-button.stories.ts +26 -0
- package/src/components/button/stories/social-button.stories.ts +29 -0
- package/src/components/checkbox/checkbox.vue +131 -0
- package/src/components/checkbox/index.ts +2 -0
- package/src/components/checkbox/stories/checkbox.stories.ts +102 -0
- package/src/components/color-picker/alpha-slider.vue +149 -0
- package/src/components/color-picker/color-area.vue +213 -0
- package/src/components/color-picker/color-picker.vue +642 -0
- package/src/components/color-picker/color-swatch.vue +98 -0
- package/src/components/color-picker/composable/use-color-model.ts +40 -0
- package/src/components/color-picker/composable/use-user-select.ts +51 -0
- package/src/components/color-picker/hue-slider.vue +156 -0
- package/src/components/color-picker/index.ts +14 -0
- package/src/components/color-picker/stories/color-picker.stories.ts +116 -0
- package/src/components/command/command-group.vue +42 -0
- package/src/components/command/command-input.vue +77 -0
- package/src/components/command/command-item.vue +45 -0
- package/src/components/command/command-list.vue +37 -0
- package/src/components/command/command-root.vue +45 -0
- package/src/components/command/command-separator.vue +31 -0
- package/src/components/content-divider/content-divider.vue +110 -0
- package/src/components/content-divider/index.ts +2 -0
- package/src/components/content-divider/stories/content-divider.stories.ts +37 -0
- package/src/components/dropdown/context-menu-item.vue +317 -0
- package/src/components/dropdown/dropdown-item.vue +184 -0
- package/src/components/dropdown/dropdown.vue +620 -0
- package/src/components/dropdown/index.ts +8 -0
- package/src/components/dropdown/stories/context-menu-item.stories.ts +51 -0
- package/src/components/dropdown/stories/dropdown-item.stories.ts +33 -0
- package/src/components/dropdown/stories/dropdown.stories.ts +53 -0
- package/src/components/dropdown-menu/dropdown-menu-content.vue +79 -0
- package/src/components/dropdown-menu/dropdown-menu-group.vue +19 -0
- package/src/components/dropdown-menu/dropdown-menu-item.vue +147 -0
- package/src/components/dropdown-menu/dropdown-menu-label.vue +33 -0
- package/src/components/dropdown-menu/dropdown-menu-separator.vue +27 -0
- package/src/components/dropdown-menu/dropdown-menu-sub-content.vue +72 -0
- package/src/components/dropdown-menu/dropdown-menu-sub-trigger.vue +70 -0
- package/src/components/dropdown-menu/dropdown-menu-sub.vue +19 -0
- package/src/components/dropdown-menu/dropdown-menu-trigger.vue +52 -0
- package/src/components/dropdown-menu/dropdown-menu.vue +23 -0
- package/src/components/dropdown-menu/index.ts +29 -0
- package/src/components/dropdown-menu/stories/dropdown-menu.stories.ts +107 -0
- package/src/components/hint-text/hint-text.vue +63 -0
- package/src/components/hint-text/index.ts +2 -0
- package/src/components/hint-text/stories/hint-text.stories.ts +28 -0
- package/src/components/index.ts +20 -0
- package/src/components/label/index.ts +2 -0
- package/src/components/label/label.vue +103 -0
- package/src/components/label/stories/label.stories.ts +127 -0
- package/src/components/modal/index.ts +20 -0
- package/src/components/modal/modal-body.vue +26 -0
- package/src/components/modal/modal-close.vue +11 -0
- package/src/components/modal/modal-content.vue +64 -0
- package/src/components/modal/modal-footer.vue +22 -0
- package/src/components/modal/modal-header.vue +165 -0
- package/src/components/modal/modal-trigger.vue +12 -0
- package/src/components/modal/modal.vue +15 -0
- package/src/components/modal/stories/modal.stories.ts +287 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover-content.vue +254 -0
- package/src/components/popover/popover-trigger.vue +22 -0
- package/src/components/popover/popover.vue +17 -0
- package/src/components/popover/stories/popover.stories.ts +341 -0
- package/src/components/scroll-area/index.ts +2 -0
- package/src/components/scroll-area/scroll-area.vue +29 -0
- package/src/components/scroll-area/scroll-bar.vue +36 -0
- package/src/components/segmented-control/index.ts +5 -0
- package/src/components/segmented-control/segmented-control-item.vue +62 -0
- package/src/components/segmented-control/segmented-control.vue +38 -0
- package/src/components/segmented-control/stories/segmented-control.stories.ts +120 -0
- package/src/components/select/index.ts +26 -0
- package/src/components/select/select-content.vue +77 -0
- package/src/components/select/select-group.vue +11 -0
- package/src/components/select/select-icon.vue +29 -0
- package/src/components/select/select-item.vue +65 -0
- package/src/components/select/select-label.vue +27 -0
- package/src/components/select/select-separator.vue +25 -0
- package/src/components/select/select-trigger.vue +161 -0
- package/src/components/select/select-value.vue +37 -0
- package/src/components/select/select.vue +21 -0
- package/src/components/select/stories/select.stories.ts +428 -0
- package/src/components/slider/index.ts +2 -0
- package/src/components/slider/slider.vue +81 -0
- package/src/components/slider/stories/slider.stories.ts +30 -0
- package/src/components/switch/index.ts +2 -0
- package/src/components/switch/stories/switch.stories.ts +74 -0
- package/src/components/switch/switch.vue +92 -0
- package/src/components/tab-menu/index.ts +11 -0
- package/src/components/tab-menu/stories/tab-menu.stories.ts +239 -0
- package/src/components/tab-menu/tab-menu-content.vue +27 -0
- package/src/components/tab-menu/tab-menu-item.vue +108 -0
- package/src/components/tab-menu/tab-menu-list.vue +43 -0
- package/src/components/tab-menu/tab-menu.vue +29 -0
- package/src/components/text-input/index.ts +11 -0
- package/src/components/text-input/stories/text-input.stories.ts +244 -0
- package/src/components/text-input/text-input-affix.vue +58 -0
- package/src/components/text-input/text-input-button.vue +56 -0
- package/src/components/text-input/text-input-icon.vue +37 -0
- package/src/components/text-input/text-input.vue +187 -0
- package/src/components/textarea/index.ts +2 -0
- package/src/components/textarea/stories/textarea.stories.ts +27 -0
- package/src/components/textarea/textarea.vue +155 -0
- package/src/components/tooltip/index.ts +2 -0
- package/src/components/tooltip/stories/tooltip.stories.ts +138 -0
- package/src/components/tooltip/tooltip.vue +256 -0
- package/src/composables/use-delegated-props.ts +20 -0
- package/src/index.ts +13 -0
- package/src/shims.d.ts +6 -0
- package/src/utils/color.ts +131 -0
- package/src/utils/crypto.ts +6 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const compactButton = require("./compact-button.js");
|
|
4
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
5
|
+
const clsx = require("./chunks/clsx.js");
|
|
6
|
+
const index = require("./chunks/index.js");
|
|
7
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
+
const _hoisted_1 = ["data-icon-size"];
|
|
9
|
+
const _hoisted_2 = { class: "celeste-popover-title" };
|
|
10
|
+
const _hoisted_3 = { class: "celeste-popover-description" };
|
|
11
|
+
const _hoisted_4 = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "celeste-popover-footer"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
inheritAttrs: false
|
|
18
|
+
},
|
|
19
|
+
__name: "popover-content",
|
|
20
|
+
props: {
|
|
21
|
+
class: {},
|
|
22
|
+
side: { default: "bottom" },
|
|
23
|
+
title: {},
|
|
24
|
+
description: {},
|
|
25
|
+
showTail: { type: Boolean, default: true },
|
|
26
|
+
dismissible: { type: Boolean, default: true },
|
|
27
|
+
icon: {},
|
|
28
|
+
iconSize: { default: "lg" }
|
|
29
|
+
},
|
|
30
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emits = __emit;
|
|
34
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, ["class", "title"]);
|
|
35
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.bs), null, {
|
|
38
|
+
default: Mo.withCtx(() => [
|
|
39
|
+
Mo.createVNode(Mo.unref(index.ws), Mo.mergeProps({ ...Mo.unref(forwarded), ..._ctx.$attrs }, {
|
|
40
|
+
"side-offset": _ctx.showTail ? 0 : 8,
|
|
41
|
+
class: Mo.unref(clsx.clsx)(
|
|
42
|
+
"celeste-popover-content-wrapper",
|
|
43
|
+
props.class
|
|
44
|
+
)
|
|
45
|
+
}), {
|
|
46
|
+
default: Mo.withCtx(() => [
|
|
47
|
+
Mo.createElementVNode("div", {
|
|
48
|
+
class: "celeste-popover-content",
|
|
49
|
+
style: Mo.normalizeStyle({ padding: !_ctx.$slots.default ? "var(--spacing-16)" : "" })
|
|
50
|
+
}, [
|
|
51
|
+
!_ctx.$slots.default ? (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 0 }, [
|
|
52
|
+
_ctx.icon ? (Mo.openBlock(), Mo.createElementBlock("span", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "celeste-popover-icon",
|
|
55
|
+
"data-icon-size": _ctx.iconSize
|
|
56
|
+
}, [
|
|
57
|
+
Mo.createElementVNode("i", {
|
|
58
|
+
class: Mo.normalizeClass(_ctx.icon)
|
|
59
|
+
}, null, 2)
|
|
60
|
+
], 8, _hoisted_1)) : Mo.createCommentVNode("", true),
|
|
61
|
+
Mo.createElementVNode("p", _hoisted_2, Mo.toDisplayString(_ctx.title), 1),
|
|
62
|
+
Mo.createElementVNode("p", _hoisted_3, Mo.toDisplayString(_ctx.description), 1)
|
|
63
|
+
], 64)) : Mo.renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
64
|
+
], 4),
|
|
65
|
+
_ctx.showTail ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index._s), {
|
|
66
|
+
key: 0,
|
|
67
|
+
"as-child": "",
|
|
68
|
+
width: 16,
|
|
69
|
+
height: 8
|
|
70
|
+
}, {
|
|
71
|
+
default: Mo.withCtx(() => _cache[0] || (_cache[0] = [
|
|
72
|
+
Mo.createElementVNode("span", { class: "celeste-popover-arrow" }, null, -1)
|
|
73
|
+
])),
|
|
74
|
+
_: 1
|
|
75
|
+
})) : Mo.createCommentVNode("", true),
|
|
76
|
+
_ctx.dismissible ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.xs), {
|
|
77
|
+
key: 1,
|
|
78
|
+
"as-child": "",
|
|
79
|
+
class: "PopoverClose",
|
|
80
|
+
"aria-label": "Close"
|
|
81
|
+
}, {
|
|
82
|
+
default: Mo.withCtx(() => [
|
|
83
|
+
Mo.createVNode(compactButton, {
|
|
84
|
+
variant: "ghost",
|
|
85
|
+
icon: "i-celeste-close-line",
|
|
86
|
+
class: "celeste-popover-close-button"
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})) : Mo.createCommentVNode("", true),
|
|
91
|
+
_ctx.$slots.footer ? (Mo.openBlock(), Mo.createElementBlock("div", _hoisted_4, [
|
|
92
|
+
Mo.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
93
|
+
])) : Mo.createCommentVNode("", true)
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 16, ["side-offset", "class"])
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const PopoverContent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-fae157b1"]]);
|
|
104
|
+
module.exports = PopoverContent;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const index = require("./chunks/index.js");
|
|
4
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
6
|
+
__name: "popover-trigger",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.gs), Mo.mergeProps({ class: "celeste-popover-trigger" }, props, { as: "div" }), {
|
|
15
|
+
default: Mo.withCtx(() => [
|
|
16
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
}, 16);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const PopoverTrigger = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-2664c4cb"]]);
|
|
24
|
+
module.exports = PopoverTrigger;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
7
|
+
__name: "scroll-bar",
|
|
8
|
+
props: {
|
|
9
|
+
orientation: { default: "vertical" },
|
|
10
|
+
forceMount: { type: Boolean },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const delegatedProps = Mo.computed(() => {
|
|
18
|
+
const { class: _, ...delegated } = props;
|
|
19
|
+
return delegated;
|
|
20
|
+
});
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.My), Mo.mergeProps(delegatedProps.value, {
|
|
23
|
+
class: Mo.unref(clsx.clsx)(
|
|
24
|
+
"flex touch-none select-none transition-colors",
|
|
25
|
+
_ctx.orientation === "vertical" && "h-full w-1.5 border-l border-l-transparent p-px",
|
|
26
|
+
_ctx.orientation === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-px",
|
|
27
|
+
props.class
|
|
28
|
+
)
|
|
29
|
+
}), {
|
|
30
|
+
default: Mo.withCtx(() => [
|
|
31
|
+
Mo.createVNode(Mo.unref(index.Vy), { class: "thumb relative flex-1 rounded-full" })
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 16, ["class"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const ScrollBar = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-96c265fe"]]);
|
|
39
|
+
module.exports = ScrollBar;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "segmented-control-item",
|
|
9
|
+
props: {
|
|
10
|
+
value: {},
|
|
11
|
+
defaultValue: { type: Boolean },
|
|
12
|
+
pressed: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
asChild: { type: Boolean },
|
|
15
|
+
as: {},
|
|
16
|
+
class: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
21
|
+
function onKeydown(e) {
|
|
22
|
+
const item = e.currentTarget;
|
|
23
|
+
if ((e.key === "Enter" || e.key === " ") && item.getAttribute("data-state") === "on") {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.sv), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
29
|
+
class: Mo.unref(clsx.clsx)("celeste-segmented-control-item", props.class),
|
|
30
|
+
onKeydown
|
|
31
|
+
}), {
|
|
32
|
+
default: Mo.withCtx(() => [
|
|
33
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const segmentedControlItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-4fd077ad"]]);
|
|
41
|
+
module.exports = segmentedControlItem;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "segmented-control",
|
|
9
|
+
props: {
|
|
10
|
+
rovingFocus: { type: Boolean },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
orientation: {},
|
|
13
|
+
dir: {},
|
|
14
|
+
loop: { type: Boolean },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {},
|
|
17
|
+
modelValue: {},
|
|
18
|
+
defaultValue: {},
|
|
19
|
+
class: {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const emits = __emit;
|
|
25
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
26
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.lv), Mo.mergeProps({
|
|
29
|
+
class: Mo.unref(clsx.clsx)("celeste-segmented-control", props.class)
|
|
30
|
+
}, Mo.unref(forwarded), { type: "single" }), {
|
|
31
|
+
default: Mo.withCtx(() => [
|
|
32
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["class"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const segmentedControl = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-8bb8e7a4"]]);
|
|
40
|
+
module.exports = segmentedControl;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "select-content",
|
|
9
|
+
props: {
|
|
10
|
+
forceMount: { type: Boolean },
|
|
11
|
+
position: {},
|
|
12
|
+
bodyLock: { type: Boolean },
|
|
13
|
+
side: {},
|
|
14
|
+
sideOffset: {},
|
|
15
|
+
align: {},
|
|
16
|
+
alignOffset: {},
|
|
17
|
+
avoidCollisions: { type: Boolean },
|
|
18
|
+
collisionBoundary: {},
|
|
19
|
+
collisionPadding: {},
|
|
20
|
+
arrowPadding: {},
|
|
21
|
+
sticky: {},
|
|
22
|
+
hideWhenDetached: { type: Boolean },
|
|
23
|
+
updatePositionStrategy: {},
|
|
24
|
+
prioritizePosition: { type: Boolean },
|
|
25
|
+
asChild: { type: Boolean },
|
|
26
|
+
as: {},
|
|
27
|
+
class: {},
|
|
28
|
+
width: { default: "full" }
|
|
29
|
+
},
|
|
30
|
+
emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emits = __emit;
|
|
34
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
35
|
+
const forwarded = index.xe(delegatedProps, emits);
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.zy), null, {
|
|
38
|
+
default: Mo.withCtx(() => [
|
|
39
|
+
Mo.createVNode(Mo.unref(index.Ky), Mo.mergeProps(Mo.unref(forwarded), {
|
|
40
|
+
position: "popper",
|
|
41
|
+
"data-width": _ctx.width,
|
|
42
|
+
class: Mo.unref(clsx.clsx)("celeste-select-content", props.class)
|
|
43
|
+
}), {
|
|
44
|
+
default: Mo.withCtx(() => [
|
|
45
|
+
Mo.createVNode(Mo.unref(index.Xy), { class: "celeste-select-view-port" }, {
|
|
46
|
+
default: Mo.withCtx(() => [
|
|
47
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16, ["data-width", "class"])
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const SelectContent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-69b8512e"]]);
|
|
61
|
+
module.exports = SelectContent;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
;/* empty css */
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "select-icon",
|
|
9
|
+
props: {
|
|
10
|
+
class: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return Mo.openBlock(), Mo.createElementBlock("span", Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
17
|
+
class: Mo.unref(clsx.clsx)("celeste-select-icon", props.class)
|
|
18
|
+
}), [
|
|
19
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
20
|
+
], 16);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const selectIcon = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-5c4a7fcf"]]);
|
|
25
|
+
module.exports = selectIcon;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "select-item",
|
|
9
|
+
props: {
|
|
10
|
+
value: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
textValue: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {},
|
|
15
|
+
class: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.jy), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
22
|
+
class: Mo.unref(clsx.clsx)("celeste-select-item", props.class)
|
|
23
|
+
}), {
|
|
24
|
+
default: Mo.withCtx(() => [
|
|
25
|
+
Mo.createVNode(Mo.unref(index.Yy), null, {
|
|
26
|
+
default: Mo.withCtx(() => [
|
|
27
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}),
|
|
31
|
+
Mo.createVNode(Mo.unref(index.Uy), null, {
|
|
32
|
+
default: Mo.withCtx(() => _cache[0] || (_cache[0] = [
|
|
33
|
+
Mo.createElementVNode("i", { class: "i-celeste-check-line" }, null, -1)
|
|
34
|
+
])),
|
|
35
|
+
_: 1
|
|
36
|
+
})
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["class"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const SelectItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-48e92b74"]]);
|
|
44
|
+
module.exports = SelectItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
|
+
__name: "select-label",
|
|
10
|
+
props: {
|
|
11
|
+
for: {},
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
class: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.qy), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
21
|
+
class: Mo.unref(clsx.clsx)("celeste-select-label", props.class)
|
|
22
|
+
}), {
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const selectLabel = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-4c4234e0"]]);
|
|
32
|
+
module.exports = selectLabel;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
9
|
+
__name: "select-separator",
|
|
10
|
+
props: {
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Wy), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
20
|
+
class: Mo.unref(clsx.clsx)("celeste-select-separator", props.class)
|
|
21
|
+
}), null, 16, ["class"]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const selectSeparator = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-662be0e8"]]);
|
|
26
|
+
module.exports = selectSeparator;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "select-trigger",
|
|
9
|
+
props: {
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {},
|
|
14
|
+
variant: { default: "default" },
|
|
15
|
+
size: { default: "md" },
|
|
16
|
+
hasError: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Ly), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
23
|
+
class: Mo.unref(clsx.clsx)("celeste-select-trigger", props.class)
|
|
24
|
+
}), {
|
|
25
|
+
default: Mo.withCtx(() => [
|
|
26
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
27
|
+
Mo.createVNode(Mo.unref(index.eg), { "as-child": "" }, {
|
|
28
|
+
default: Mo.withCtx(() => _cache[0] || (_cache[0] = [
|
|
29
|
+
Mo.createElementVNode("i", { class: "i-celeste-arrow-down-s-line" }, null, -1)
|
|
30
|
+
])),
|
|
31
|
+
_: 1
|
|
32
|
+
})
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["class"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const SelectTrigger = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-039f6664"]]);
|
|
40
|
+
module.exports = SelectTrigger;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "select-value",
|
|
9
|
+
props: {
|
|
10
|
+
placeholder: {},
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Qy), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
20
|
+
class: Mo.unref(clsx.clsx)("celeste-select-value", props.class)
|
|
21
|
+
}), {
|
|
22
|
+
default: Mo.withCtx(() => [
|
|
23
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const SelectValue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-db7cc720"]]);
|
|
31
|
+
module.exports = SelectValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const index = require("./chunks/index.js");
|
|
5
|
+
;/* empty css */
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
role: "presentation"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
12
|
+
__name: "social-button",
|
|
13
|
+
props: {
|
|
14
|
+
brand: {},
|
|
15
|
+
variant: { default: "stroke" },
|
|
16
|
+
class: {},
|
|
17
|
+
label: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
|
|
23
|
+
"aria-label": _ctx.label,
|
|
24
|
+
role: "button",
|
|
25
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
26
|
+
"celeste-social-button",
|
|
27
|
+
`celeste-social-button-${_ctx.brand}`,
|
|
28
|
+
`celeste-social-button-${_ctx.variant}`,
|
|
29
|
+
props.class
|
|
30
|
+
)),
|
|
31
|
+
as: "button"
|
|
32
|
+
}, {
|
|
33
|
+
default: Mo.withCtx(() => [
|
|
34
|
+
Mo.createElementVNode("i", {
|
|
35
|
+
class: Mo.normalizeClass(`i-celeste-brand-${_ctx.brand}-${_ctx.variant === "fill" ? "white" : "original"}`)
|
|
36
|
+
}, null, 2),
|
|
37
|
+
_ctx.label ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_1, Mo.toDisplayString(_ctx.label), 1)) : Mo.createCommentVNode("", true)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}, 8, ["aria-label", "class"]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const socialButton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-7e944825"]]);
|
|
45
|
+
module.exports = socialButton;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const clsx = require("./chunks/clsx.js");
|
|
4
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
5
|
+
const _hoisted_1 = ["aria-label"];
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "dot i-celeste-dot"
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
11
|
+
__name: "status-badge",
|
|
12
|
+
props: {
|
|
13
|
+
variant: { default: "light" },
|
|
14
|
+
dotted: { type: Boolean },
|
|
15
|
+
state: { default: "faded" },
|
|
16
|
+
label: {},
|
|
17
|
+
class: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const ICON_MAP = {
|
|
22
|
+
success: "i-celeste-checkbox-circle-fill",
|
|
23
|
+
warning: "i-celeste-alert-fill",
|
|
24
|
+
error: "i-celeste-error-warning-fill",
|
|
25
|
+
faded: "i-celeste-forbid-fill"
|
|
26
|
+
};
|
|
27
|
+
const icon = Mo.computed(() => ICON_MAP[props.state]);
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return Mo.openBlock(), Mo.createElementBlock("div", {
|
|
30
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
31
|
+
"celeste-badge",
|
|
32
|
+
`celeste-badge-${_ctx.state}`,
|
|
33
|
+
`celeste-badge-${_ctx.variant}`,
|
|
34
|
+
props.class
|
|
35
|
+
)),
|
|
36
|
+
"aria-label": _ctx.label,
|
|
37
|
+
role: "status"
|
|
38
|
+
}, [
|
|
39
|
+
_ctx.dotted ? (Mo.openBlock(), Mo.createElementBlock("i", _hoisted_2)) : (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: Mo.normalizeClass(icon.value)
|
|
42
|
+
}, null, 2)),
|
|
43
|
+
Mo.createElementVNode("span", null, Mo.toDisplayString(_ctx.label), 1)
|
|
44
|
+
], 10, _hoisted_1);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const statusBadge = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-21007019"]]);
|
|
49
|
+
module.exports = statusBadge;
|