@youcan/celeste 0.6.29 → 0.6.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/celeste.css +4244 -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-label.js +112 -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/combobox-anchor.js +31 -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 +9300 -0
- package/dist/cjs/chunks/index2.js +1457 -0
- package/dist/cjs/chunks/index3.js +16457 -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/sonner.js +1153 -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 +514 -0
- package/dist/cjs/color-swatch.js +59 -0
- package/dist/cjs/color.js +102 -0
- package/dist/cjs/combobox-anchor.js +3 -0
- package/dist/cjs/combobox-empty.js +32 -0
- package/dist/cjs/combobox-group.js +42 -0
- package/dist/cjs/combobox-input.js +63 -0
- package/dist/cjs/combobox-item.js +109 -0
- package/dist/cjs/combobox-list.js +62 -0
- package/dist/cjs/combobox-root.js +40 -0
- package/dist/cjs/combobox-separator.js +32 -0
- package/dist/cjs/combobox-trigger.js +47 -0
- package/dist/cjs/combobox.js +233 -0
- package/dist/cjs/command-group.js +41 -0
- package/dist/cjs/command-input.js +42 -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/config.js +136 -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 +291 -0
- package/dist/cjs/extra-settings.js +155 -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 +229 -0
- package/dist/cjs/label.js +55 -0
- package/dist/cjs/link-bubble.js +228 -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/rich-editor.js +4996 -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/sonner-alert.js +41 -0
- package/dist/cjs/sonner.js +3 -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 +27 -0
- package/dist/cjs/text-input-button.js +31 -0
- package/dist/cjs/text-input.js +119 -0
- package/dist/cjs/textarea.js +56 -0
- package/dist/cjs/tooltip.js +115 -0
- package/dist/cjs/types.js +1 -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-label.d.ts +32 -0
- package/dist/components/checkbox/checkbox.d.ts +11 -0
- package/dist/components/checkbox/index.d.ts +4 -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/combobox/combobox-anchor.d.ts +22 -0
- package/dist/components/combobox/combobox-empty.d.ts +22 -0
- package/dist/components/combobox/combobox-group.d.ts +23 -0
- package/dist/components/combobox/combobox-input.d.ts +17 -0
- package/dist/components/combobox/combobox-item.d.ts +31 -0
- package/dist/components/combobox/combobox-list.d.ts +36 -0
- package/dist/components/combobox/combobox-root.d.ts +29 -0
- package/dist/components/combobox/combobox-separator.d.ts +22 -0
- package/dist/components/combobox/combobox-trigger.d.ts +20 -0
- package/dist/components/combobox/combobox.d.ts +42 -0
- package/dist/components/combobox/index.d.ts +20 -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 +55 -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 +23 -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/rich-editor/config.d.ts +33 -0
- package/dist/components/rich-editor/extra-settings.d.ts +6 -0
- package/dist/components/rich-editor/index.d.ts +2 -0
- package/dist/components/rich-editor/link-bubble.d.ts +11 -0
- package/dist/components/rich-editor/rich-editor.d.ts +55 -0
- package/dist/components/rich-editor/types.d.ts +19 -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/sonner/index.d.ts +4 -0
- package/dist/components/sonner/sonner-alert.d.ts +13 -0
- package/dist/components/sonner/sonner.d.ts +5 -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 +6 -0
- package/dist/components/text-input/text-input-affix.d.ts +23 -0
- package/dist/components/text-input/text-input-button.d.ts +23 -0
- package/dist/components/text-input/text-input.d.ts +32 -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-label.js +113 -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/combobox-anchor.js +32 -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 +9285 -0
- package/dist/es/chunks/index2.js +1457 -0
- package/dist/es/chunks/index3.js +16458 -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/sonner.js +1154 -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 +515 -0
- package/dist/es/color-swatch.js +60 -0
- package/dist/es/color.js +102 -0
- package/dist/es/combobox-anchor.js +4 -0
- package/dist/es/combobox-empty.js +33 -0
- package/dist/es/combobox-group.js +43 -0
- package/dist/es/combobox-input.js +64 -0
- package/dist/es/combobox-item.js +110 -0
- package/dist/es/combobox-list.js +63 -0
- package/dist/es/combobox-root.js +41 -0
- package/dist/es/combobox-separator.js +33 -0
- package/dist/es/combobox-trigger.js +48 -0
- package/dist/es/combobox.js +234 -0
- package/dist/es/command-group.js +42 -0
- package/dist/es/command-input.js +43 -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/config.js +136 -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 +292 -0
- package/dist/es/extra-settings.js +156 -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 +229 -0
- package/dist/es/label.js +56 -0
- package/dist/es/link-bubble.js +229 -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/rich-editor.js +4997 -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/sonner-alert.js +42 -0
- package/dist/es/sonner.js +4 -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 +28 -0
- package/dist/es/text-input-button.js +32 -0
- package/dist/es/text-input.js +120 -0
- package/dist/es/textarea.js +57 -0
- package/dist/es/tooltip.js +116 -0
- package/dist/es/types.js +1 -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/dist/utils/index.d.ts +3 -0
- package/dist/utils/sonner.d.ts +19 -0
- package/package.json +15 -4
- package/src/components/index.ts +2 -0
- package/src/components/rich-editor/config.ts +150 -0
- package/src/components/rich-editor/extra-settings.vue +151 -0
- package/src/components/rich-editor/index.ts +2 -0
- package/src/components/rich-editor/link-bubble.vue +288 -0
- package/src/components/rich-editor/rich-editor.vue +428 -0
- package/src/components/rich-editor/stories/rich-editor.stories.ts +87 -0
- package/src/components/rich-editor/types.ts +21 -0
- package/src/components/sonner/index.ts +5 -0
- package/src/components/sonner/sonner-alert.vue +54 -0
- package/src/components/sonner/sonner.vue +13 -0
- package/src/components/sonner/stories/sonner.stories.ts +194 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/sonner.ts +72 -0
|
@@ -0,0 +1,34 @@
|
|
|
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: "tab-menu-list",
|
|
9
|
+
props: {
|
|
10
|
+
loop: { type: Boolean },
|
|
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.gg), Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
20
|
+
class: Mo.unref(clsx.clsx)(
|
|
21
|
+
"celeste-tab-menu-list",
|
|
22
|
+
props.class
|
|
23
|
+
)
|
|
24
|
+
}), {
|
|
25
|
+
default: Mo.withCtx(() => [
|
|
26
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["class"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const tabMenuList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-9877f1df"]]);
|
|
34
|
+
module.exports = tabMenuList;
|
|
@@ -0,0 +1,32 @@
|
|
|
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: "tab-menu",
|
|
7
|
+
props: {
|
|
8
|
+
defaultValue: {},
|
|
9
|
+
orientation: {},
|
|
10
|
+
dir: {},
|
|
11
|
+
activationMode: {},
|
|
12
|
+
modelValue: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const emits = __emit;
|
|
20
|
+
const forwarded = index.xe(props, emits);
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.yg), Mo.mergeProps(Mo.unref(forwarded), { class: "celeste-tab-menu-root" }), {
|
|
23
|
+
default: Mo.withCtx(() => [
|
|
24
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const tabMenu = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-b5afb6cc"]]);
|
|
32
|
+
module.exports = tabMenu;
|
|
@@ -0,0 +1,27 @@
|
|
|
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: "text-input-affix",
|
|
9
|
+
props: {
|
|
10
|
+
class: {},
|
|
11
|
+
inline: { type: Boolean },
|
|
12
|
+
asKbd: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return Mo.openBlock(), Mo.createElementBlock("span", Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
19
|
+
class: Mo.unref(clsx.clsx)("celeste-text-input-affix", props.class)
|
|
20
|
+
}), [
|
|
21
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
22
|
+
], 16);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const TextInputAffix = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-2d8a1dbc"]]);
|
|
27
|
+
module.exports = TextInputAffix;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const button = require("./button.js");
|
|
4
|
+
const useDelegatedProps = require("./use-delegated-props.js");
|
|
5
|
+
const clsx = require("./chunks/clsx.js");
|
|
6
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
8
|
+
__name: "text-input-button",
|
|
9
|
+
props: {
|
|
10
|
+
inline: { type: Boolean, default: false }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return Mo.openBlock(), Mo.createBlock(button, Mo.mergeProps(Mo.unref(delegatedProps), {
|
|
17
|
+
size: "sm",
|
|
18
|
+
intent: "neutral",
|
|
19
|
+
variant: "stroke",
|
|
20
|
+
class: Mo.unref(clsx.clsx)("celeste-text-input-button", 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 TextInputButton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-7d21364e"]]);
|
|
31
|
+
module.exports = TextInputButton;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const crypto = require("./crypto.js");
|
|
4
|
+
const clsx = require("./chunks/clsx.js");
|
|
5
|
+
const index = require("./chunks/index.js");
|
|
6
|
+
const textInputButton = require("./text-input-button.js");
|
|
7
|
+
const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
|
|
8
|
+
const _hoisted_1 = ["for", "size", "has-error"];
|
|
9
|
+
const _hoisted_2 = ["id", "type"];
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
11
|
+
__name: "text-input",
|
|
12
|
+
props: /* @__PURE__ */ Mo.mergeModels({
|
|
13
|
+
type: { default: "text" },
|
|
14
|
+
size: { default: "md" },
|
|
15
|
+
hasError: { type: Boolean, default: false }
|
|
16
|
+
}, {
|
|
17
|
+
"modelValue": {},
|
|
18
|
+
"modelModifiers": {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const id = Mo.computed(() => props.id || crypto.uid());
|
|
24
|
+
const modelValue = Mo.useModel(__props, "modelValue");
|
|
25
|
+
const showClearButton = Mo.computed(() => {
|
|
26
|
+
return props.type === "search" && modelValue.value && String(modelValue.value).length > 0;
|
|
27
|
+
});
|
|
28
|
+
function clearInput() {
|
|
29
|
+
modelValue.value = "";
|
|
30
|
+
}
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return Mo.openBlock(), Mo.createElementBlock("label", {
|
|
33
|
+
for: id.value,
|
|
34
|
+
size: _ctx.size,
|
|
35
|
+
role: "presentation",
|
|
36
|
+
"has-error": _ctx.hasError,
|
|
37
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)("celeste-text-input-wrapper", props.class))
|
|
38
|
+
}, [
|
|
39
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
40
|
+
"as-child": "",
|
|
41
|
+
class: "celeste-text-input-icon celeste-text-input-leading-icon"
|
|
42
|
+
}, {
|
|
43
|
+
default: Mo.withCtx(() => [
|
|
44
|
+
Mo.renderSlot(_ctx.$slots, "leadingIcon", {}, void 0, true)
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}),
|
|
48
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
49
|
+
"as-child": "",
|
|
50
|
+
class: "celeste-text-input-node celeste-text-input-leading-node"
|
|
51
|
+
}, {
|
|
52
|
+
default: Mo.withCtx(() => [
|
|
53
|
+
Mo.renderSlot(_ctx.$slots, "leadingNode", {}, void 0, true)
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}),
|
|
57
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
58
|
+
inline: "",
|
|
59
|
+
"as-child": "",
|
|
60
|
+
class: "celeste-text-input-inline-node celeste-text-input-leading-inline-node"
|
|
61
|
+
}, {
|
|
62
|
+
default: Mo.withCtx(() => [
|
|
63
|
+
Mo.renderSlot(_ctx.$slots, "leadingInlineNode", {}, void 0, true)
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}),
|
|
67
|
+
Mo.withDirectives(Mo.createElementVNode("input", Mo.mergeProps({
|
|
68
|
+
id: id.value,
|
|
69
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
70
|
+
}, _ctx.$attrs, {
|
|
71
|
+
type: _ctx.type,
|
|
72
|
+
class: "celeste-text-input"
|
|
73
|
+
}), null, 16, _hoisted_2), [
|
|
74
|
+
[Mo.vModelDynamic, modelValue.value]
|
|
75
|
+
]),
|
|
76
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
77
|
+
"as-child": "",
|
|
78
|
+
class: "celeste-text-input-icon celeste-text-input-trailing-icon"
|
|
79
|
+
}, {
|
|
80
|
+
default: Mo.withCtx(() => [
|
|
81
|
+
Mo.renderSlot(_ctx.$slots, "trailingIcon", {}, void 0, true)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}),
|
|
85
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
86
|
+
"as-child": "",
|
|
87
|
+
class: "celeste-text-input-node celeste-text-input-trailing-node"
|
|
88
|
+
}, {
|
|
89
|
+
default: Mo.withCtx(() => [
|
|
90
|
+
Mo.renderSlot(_ctx.$slots, "trailingNode", {}, void 0, true)
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}),
|
|
94
|
+
Mo.createVNode(Mo.unref(index.O), {
|
|
95
|
+
inline: "",
|
|
96
|
+
"as-child": "",
|
|
97
|
+
class: "celeste-text-input-inline-node celeste-text-input-trailing-inline-node"
|
|
98
|
+
}, {
|
|
99
|
+
default: Mo.withCtx(() => [
|
|
100
|
+
showClearButton.value ? (Mo.openBlock(), Mo.createBlock(textInputButton, {
|
|
101
|
+
key: 0,
|
|
102
|
+
type: "button",
|
|
103
|
+
"aria-label": "Clear search",
|
|
104
|
+
onClick: clearInput
|
|
105
|
+
}, {
|
|
106
|
+
default: Mo.withCtx(() => _cache[1] || (_cache[1] = [
|
|
107
|
+
Mo.createElementVNode("i", { class: "i-celeste-close-line" }, null, -1)
|
|
108
|
+
])),
|
|
109
|
+
_: 1
|
|
110
|
+
})) : Mo.renderSlot(_ctx.$slots, "trailingInlineNode", { key: 1 }, void 0, true)
|
|
111
|
+
]),
|
|
112
|
+
_: 3
|
|
113
|
+
})
|
|
114
|
+
], 10, _hoisted_1);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-a368a0c2"]]);
|
|
119
|
+
module.exports = TextInput;
|
|
@@ -0,0 +1,56 @@
|
|
|
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-disabled"];
|
|
6
|
+
const _hoisted_2 = ["placeholder", "maxlength", "disabled"];
|
|
7
|
+
const _hoisted_3 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "celeste-textarea-count"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
12
|
+
__name: "textarea",
|
|
13
|
+
props: /* @__PURE__ */ Mo.mergeModels({
|
|
14
|
+
class: {},
|
|
15
|
+
placeholder: { default: "Placeholder" },
|
|
16
|
+
showCount: { type: Boolean, default: true },
|
|
17
|
+
disabled: { type: Boolean, default: false },
|
|
18
|
+
maxLength: {}
|
|
19
|
+
}, {
|
|
20
|
+
"modelValue": {},
|
|
21
|
+
"modelModifiers": {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const modelValue = Mo.useModel(__props, "modelValue");
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
var _a;
|
|
29
|
+
return Mo.openBlock(), Mo.createElementBlock("div", {
|
|
30
|
+
class: Mo.normalizeClass(Mo.unref(clsx.clsx)(
|
|
31
|
+
"celeste-textarea-wrapper",
|
|
32
|
+
props.class
|
|
33
|
+
)),
|
|
34
|
+
"aria-disabled": _ctx.disabled,
|
|
35
|
+
onClick: _cache[1] || (_cache[1] = ($event) => {
|
|
36
|
+
var _a2;
|
|
37
|
+
return (_a2 = _ctx.$el.querySelector("textarea")) == null ? void 0 : _a2.focus();
|
|
38
|
+
})
|
|
39
|
+
}, [
|
|
40
|
+
Mo.withDirectives(Mo.createElementVNode("textarea", Mo.mergeProps({
|
|
41
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
42
|
+
}, _ctx.$attrs, {
|
|
43
|
+
placeholder: _ctx.placeholder,
|
|
44
|
+
maxlength: _ctx.maxLength,
|
|
45
|
+
disabled: _ctx.disabled,
|
|
46
|
+
class: "celeste-textarea"
|
|
47
|
+
}), null, 16, _hoisted_2), [
|
|
48
|
+
[Mo.vModelText, modelValue.value]
|
|
49
|
+
]),
|
|
50
|
+
_ctx.showCount && Number(_ctx.maxLength) ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_3, Mo.toDisplayString(`${((_a = modelValue.value) == null ? void 0 : _a.length) || 0}/${_ctx.maxLength}`), 1)) : Mo.createCommentVNode("", true)
|
|
51
|
+
], 10, _hoisted_1);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const textarea = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-76864cee"]]);
|
|
56
|
+
module.exports = textarea;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Mo = require("vue");
|
|
3
|
+
const compactButton = require("./compact-button.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 _hoisted_1 = { class: "celeste-tooltip-content-box" };
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "celeste-tooltip-content-title"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "celeste-tooltip-content-description"
|
|
15
|
+
};
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
17
|
+
__name: "tooltip",
|
|
18
|
+
props: {
|
|
19
|
+
class: {},
|
|
20
|
+
size: { default: "sm" },
|
|
21
|
+
variant: { default: "light" },
|
|
22
|
+
icon: {},
|
|
23
|
+
title: {},
|
|
24
|
+
description: {},
|
|
25
|
+
dismissible: { type: Boolean },
|
|
26
|
+
defaultOpen: { type: Boolean },
|
|
27
|
+
open: { type: Boolean },
|
|
28
|
+
delayDuration: { default: 0 },
|
|
29
|
+
disableHoverableContent: { type: Boolean },
|
|
30
|
+
disableClosingTrigger: { type: Boolean },
|
|
31
|
+
disabled: { type: Boolean },
|
|
32
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
33
|
+
forceMount: { type: Boolean },
|
|
34
|
+
ariaLabel: {},
|
|
35
|
+
asChild: { type: Boolean },
|
|
36
|
+
as: {},
|
|
37
|
+
side: {},
|
|
38
|
+
sideOffset: { default: 12 },
|
|
39
|
+
align: {},
|
|
40
|
+
alignOffset: {},
|
|
41
|
+
avoidCollisions: { type: Boolean },
|
|
42
|
+
collisionBoundary: {},
|
|
43
|
+
collisionPadding: {},
|
|
44
|
+
arrowPadding: {},
|
|
45
|
+
sticky: {},
|
|
46
|
+
hideWhenDetached: { type: Boolean }
|
|
47
|
+
},
|
|
48
|
+
emits: ["update:open"],
|
|
49
|
+
setup(__props, { emit: __emit }) {
|
|
50
|
+
const props = __props;
|
|
51
|
+
const emits = __emit;
|
|
52
|
+
const forwarded = index.xe(props, emits);
|
|
53
|
+
const isOpen = Mo.ref(props.defaultOpen);
|
|
54
|
+
function close() {
|
|
55
|
+
isOpen.value = false;
|
|
56
|
+
}
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Lg), null, {
|
|
59
|
+
default: Mo.withCtx(() => [
|
|
60
|
+
Mo.createVNode(Mo.unref(index.zg), Mo.mergeProps(Mo.unref(forwarded), {
|
|
61
|
+
open: props.open || isOpen.value,
|
|
62
|
+
"onUpdate:open": _cache[0] || (_cache[0] = (state) => isOpen.value = state)
|
|
63
|
+
}), {
|
|
64
|
+
default: Mo.withCtx(() => [
|
|
65
|
+
Mo.createVNode(Mo.unref(index.Kg), { "as-child": "" }, {
|
|
66
|
+
default: Mo.withCtx(() => [
|
|
67
|
+
Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
68
|
+
]),
|
|
69
|
+
_: 3
|
|
70
|
+
}),
|
|
71
|
+
Mo.createVNode(Mo.unref(index.jg), { class: "celeste-tooltip-portal" }, {
|
|
72
|
+
default: Mo.withCtx(() => [
|
|
73
|
+
Mo.createVNode(Mo.unref(index.Hg), Mo.mergeProps({ ...Mo.unref(forwarded), ..._ctx.$attrs }, {
|
|
74
|
+
size: _ctx.size,
|
|
75
|
+
variant: _ctx.variant,
|
|
76
|
+
class: Mo.unref(clsx.clsx)("celeste-tooltip-content", props.class)
|
|
77
|
+
}), {
|
|
78
|
+
default: Mo.withCtx(() => [
|
|
79
|
+
_ctx.icon ? (Mo.openBlock(), Mo.createElementBlock("i", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: Mo.normalizeClass(`celeste-tooltip-content-icon ${_ctx.icon}`)
|
|
82
|
+
}, null, 2)) : Mo.createCommentVNode("", true),
|
|
83
|
+
Mo.createElementVNode("div", _hoisted_1, [
|
|
84
|
+
_ctx.title ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_2, Mo.toDisplayString(_ctx.title), 1)) : Mo.createCommentVNode("", true),
|
|
85
|
+
_ctx.description ? (Mo.openBlock(), Mo.createElementBlock("span", _hoisted_3, Mo.toDisplayString(_ctx.description), 1)) : Mo.createCommentVNode("", true)
|
|
86
|
+
]),
|
|
87
|
+
_ctx.dismissible ? (Mo.openBlock(), Mo.createBlock(compactButton, {
|
|
88
|
+
key: 1,
|
|
89
|
+
variant: "ghost",
|
|
90
|
+
icon: "i-celeste-close-line",
|
|
91
|
+
onClick: close
|
|
92
|
+
})) : Mo.createCommentVNode("", true),
|
|
93
|
+
Mo.createVNode(Mo.unref(index.Wg), { "as-child": "" }, {
|
|
94
|
+
default: Mo.withCtx(() => _cache[1] || (_cache[1] = [
|
|
95
|
+
Mo.createElementVNode("span", { class: "celeste-tooltip-content-arrow" }, null, -1)
|
|
96
|
+
])),
|
|
97
|
+
_: 1
|
|
98
|
+
})
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 16, ["size", "variant", "class"])
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 16, ["open"])
|
|
108
|
+
]),
|
|
109
|
+
_: 3
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const Tooltip = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-0dc4a40e"]]);
|
|
115
|
+
module.exports = Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const useColorModel = require("./chunks/use-color-model.js");
|
|
4
|
+
require("vue");
|
|
5
|
+
exports.ColorPickerEmits = useColorModel.ColorPickerEmits;
|
|
6
|
+
exports.defineColorModel = useColorModel.defineColorModel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Mo = require("vue");
|
|
4
|
+
function useDelegatedProps(props, excludeKeys = ["class"]) {
|
|
5
|
+
return Mo.computed(() => {
|
|
6
|
+
const keysToExclude = Array.isArray(excludeKeys) ? excludeKeys : [excludeKeys];
|
|
7
|
+
const delegated = { ...props };
|
|
8
|
+
keysToExclude.forEach((key) => {
|
|
9
|
+
delete delegated[key];
|
|
10
|
+
});
|
|
11
|
+
return delegated;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.useDelegatedProps = useDelegatedProps;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Mo = require("vue");
|
|
4
|
+
function useUserPageSelection() {
|
|
5
|
+
const isDisabled = Mo.ref(false);
|
|
6
|
+
let styleElement = null;
|
|
7
|
+
const preventPageUserSelect = () => {
|
|
8
|
+
if (!styleElement) {
|
|
9
|
+
styleElement = document.createElement("style");
|
|
10
|
+
styleElement.textContent = "body > * { user-select: none; }";
|
|
11
|
+
document.head.appendChild(styleElement);
|
|
12
|
+
isDisabled.value = true;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const allowPageUserSelect = () => {
|
|
16
|
+
if (styleElement) {
|
|
17
|
+
styleElement.remove();
|
|
18
|
+
styleElement = null;
|
|
19
|
+
isDisabled.value = false;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const togglePageUserSelect = () => {
|
|
23
|
+
if (styleElement) {
|
|
24
|
+
allowPageUserSelect();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
preventPageUserSelect();
|
|
28
|
+
};
|
|
29
|
+
Mo.onUnmounted(() => {
|
|
30
|
+
allowPageUserSelect();
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
isDisabled: Mo.readonly(isDisabled),
|
|
34
|
+
togglePageUserSelect,
|
|
35
|
+
preventPageUserSelect,
|
|
36
|
+
allowPageUserSelect
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.useUserPageSelection = useUserPageSelection;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface AlertProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
size?: 'xs' | 'sm' | 'lg';
|
|
5
|
+
variant?: 'fill' | 'light' | 'lighter' | 'stroke';
|
|
6
|
+
state?: 'information' | 'success' | 'warning' | 'error' | 'feature';
|
|
7
|
+
dismissable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
dismiss: (...args: any[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<AlertProps> & Readonly<{
|
|
12
|
+
onDismiss?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
size: "xs" | "sm" | "lg";
|
|
15
|
+
variant: "fill" | "light" | "lighter" | "stroke";
|
|
16
|
+
state: "information" | "success" | "warning" | "error" | "feature";
|
|
17
|
+
dismissable: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
title?(_: {}): any;
|
|
21
|
+
description?(_: {}): any;
|
|
22
|
+
primary?(_: {}): any;
|
|
23
|
+
secondary?(_: {}): any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface BadgeProps {
|
|
3
|
+
size?: 'sm' | 'md';
|
|
4
|
+
variant?: 'fill' | 'light' | 'lighter' | 'stroke';
|
|
5
|
+
type?: 'basic' | 'dot' | 'leading-icon' | 'trailing-icon';
|
|
6
|
+
state?: 'faded' | 'information' | 'warning' | 'error' | 'success' | 'away' | 'feature' | 'verified' | 'highlighted' | 'stable';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
class?: HTMLAttributes['class'];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
13
|
+
size: "sm" | "md";
|
|
14
|
+
variant: "fill" | "light" | "lighter" | "stroke";
|
|
15
|
+
type: "basic" | "dot" | "leading-icon" | "trailing-icon";
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface StatusBadgeProps {
|
|
3
|
+
variant?: 'stroke' | 'light';
|
|
4
|
+
dotted?: boolean;
|
|
5
|
+
state?: 'success' | 'warning' | 'error' | 'faded';
|
|
6
|
+
label: string;
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<StatusBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatusBadgeProps> & Readonly<{}>, {
|
|
10
|
+
variant: "stroke" | "light";
|
|
11
|
+
state: "success" | "warning" | "error" | "faded";
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
export interface ButtonProps extends PrimitiveProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md';
|
|
6
|
+
intent?: 'primary' | 'neutral' | 'error';
|
|
7
|
+
variant?: 'fill' | 'stroke' | 'lighter' | 'ghost';
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
10
|
+
size: "xxs" | "xs" | "sm" | "md";
|
|
11
|
+
variant: "fill" | "stroke" | "lighter" | "ghost";
|
|
12
|
+
intent: "primary" | "neutral" | "error";
|
|
13
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
export interface CompactButtonProps extends PrimitiveProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
icon: string;
|
|
6
|
+
size?: 'lg' | 'md';
|
|
7
|
+
rounded?: boolean;
|
|
8
|
+
variant?: 'stroke' | 'white' | 'ghost';
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<CompactButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CompactButtonProps> & Readonly<{}>, {
|
|
11
|
+
size: "lg" | "md";
|
|
12
|
+
variant: "stroke" | "white" | "ghost";
|
|
13
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
export interface FancyButtonProps extends PrimitiveProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
size?: 'xs' | 'sm' | 'md';
|
|
6
|
+
intent?: 'primary' | 'neutral' | 'error' | 'basic';
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<FancyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FancyButtonProps> & Readonly<{}>, {
|
|
9
|
+
size: "xs" | "sm" | "md";
|
|
10
|
+
intent: "primary" | "neutral" | "error" | "basic";
|
|
11
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './button';
|
|
2
|
+
export { default as Button } from './button';
|
|
3
|
+
export * from './compact-button';
|
|
4
|
+
export { default as CompactButton } from './compact-button';
|
|
5
|
+
export * from './fancy-button';
|
|
6
|
+
export { default as FancyButton } from './fancy-button';
|
|
7
|
+
export * from './link-button';
|
|
8
|
+
export { default as LinkButton } from './link-button';
|
|
9
|
+
export * from './social-button';
|
|
10
|
+
export { default as SocialButton } from './social-button';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'radix-vue';
|
|
3
|
+
export interface LinkButtonProps extends PrimitiveProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
size?: 'sm' | 'md';
|
|
6
|
+
intent?: 'primary' | 'black' | 'gray' | 'error';
|
|
7
|
+
underline?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<LinkButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LinkButtonProps> & Readonly<{}>, {
|
|
11
|
+
size: "sm" | "md";
|
|
12
|
+
intent: "primary" | "black" | "gray" | "error";
|
|
13
|
+
as: import('radix-vue').AsTag | import('vue').Component;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|