@youcan/celeste 0.6.29 → 0.6.30
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 +4025 -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 +9073 -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 +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/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/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 +220 -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 +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/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 +21 -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 +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 +9058 -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 +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/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/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 +220 -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 +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/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 +3 -3
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import alert from "./alert.js";
|
|
2
|
+
import Badge from "./badge.js";
|
|
3
|
+
import statusBadge from "./status-badge.js";
|
|
4
|
+
import Button from "./button.js";
|
|
5
|
+
import CompactButton from "./compact-button.js";
|
|
6
|
+
import fancyButton from "./fancy-button.js";
|
|
7
|
+
import linkButton from "./link-button.js";
|
|
8
|
+
import socialButton from "./social-button.js";
|
|
9
|
+
import checkboxLabel from "./checkbox-label.js";
|
|
10
|
+
import { _ as _sfc_main } from "./chunks/checkbox.vue_vue_type_style_index_0_lang.js";
|
|
11
|
+
import { _ as _sfc_main$1 } from "./chunks/combobox-anchor.js";
|
|
12
|
+
import ComboboxEmpty from "./combobox-empty.js";
|
|
13
|
+
import ComboboxGroup from "./combobox-group.js";
|
|
14
|
+
import ComboboxInput from "./combobox-input.js";
|
|
15
|
+
import ComboboxItem from "./combobox-item.js";
|
|
16
|
+
import ComboboxList from "./combobox-list.js";
|
|
17
|
+
import ComboboxRoot from "./combobox-root.js";
|
|
18
|
+
import ComboboxSeparator from "./combobox-separator.js";
|
|
19
|
+
import ComboboxTrigger from "./combobox-trigger.js";
|
|
20
|
+
import combobox from "./combobox.js";
|
|
21
|
+
import { _ as _sfc_main$2 } from "./chunks/content-divider.vue_vue_type_style_index_0_lang.js";
|
|
22
|
+
import contextMenuItem from "./context-menu-item.js";
|
|
23
|
+
import DropdownItem from "./dropdown-item.js";
|
|
24
|
+
import dropdown from "./dropdown.js";
|
|
25
|
+
import { _ as _sfc_main$3 } from "./chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js";
|
|
26
|
+
import dropdownMenuGroup from "./dropdown-menu-group.js";
|
|
27
|
+
import dropdownMenuItem from "./dropdown-menu-item.js";
|
|
28
|
+
import dropdownMenuLabel from "./dropdown-menu-label.js";
|
|
29
|
+
import dropdownMenuSeparator from "./dropdown-menu-separator.js";
|
|
30
|
+
import { _ as _sfc_main$5 } from "./chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js";
|
|
31
|
+
import { _ as _sfc_main$6 } from "./chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js";
|
|
32
|
+
import { _ as _sfc_main$4 } from "./chunks/dropdown-menu-sub.js";
|
|
33
|
+
import dropdownMenuTrigger from "./dropdown-menu-trigger.js";
|
|
34
|
+
import dropdownMenu from "./dropdown-menu.js";
|
|
35
|
+
import hintText from "./hint-text.js";
|
|
36
|
+
import label from "./label.js";
|
|
37
|
+
import modalBody from "./modal-body.js";
|
|
38
|
+
import { _ as _sfc_main$8 } from "./chunks/modal-close.js";
|
|
39
|
+
import modalContent from "./modal-content.js";
|
|
40
|
+
import modalFooter from "./modal-footer.js";
|
|
41
|
+
import modalHeader from "./modal-header.js";
|
|
42
|
+
import { _ as _sfc_main$9 } from "./chunks/modal-trigger.js";
|
|
43
|
+
import { _ as _sfc_main$7 } from "./chunks/modal.js";
|
|
44
|
+
import PopoverContent from "./popover-content.js";
|
|
45
|
+
import PopoverTrigger from "./popover-trigger.js";
|
|
46
|
+
import { _ as _sfc_main$a } from "./chunks/popover.js";
|
|
47
|
+
import { _ as _sfc_main$b } from "./chunks/scroll-area.js";
|
|
48
|
+
import segmentedControlItem from "./segmented-control-item.js";
|
|
49
|
+
import segmentedControl from "./segmented-control.js";
|
|
50
|
+
import SelectContent from "./select-content.js";
|
|
51
|
+
import { _ as _sfc_main$d } from "./chunks/select-group.js";
|
|
52
|
+
import selectIcon from "./select-icon.js";
|
|
53
|
+
import SelectItem from "./select-item.js";
|
|
54
|
+
import selectLabel from "./select-label.js";
|
|
55
|
+
import selectSeparator from "./select-separator.js";
|
|
56
|
+
import SelectTrigger from "./select-trigger.js";
|
|
57
|
+
import SelectValue from "./select-value.js";
|
|
58
|
+
import { _ as _sfc_main$c } from "./chunks/select.js";
|
|
59
|
+
import { _ as _sfc_main$e } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
|
|
60
|
+
import { _ as _sfc_main$f } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
|
|
61
|
+
import tabMenuContent from "./tab-menu-content.js";
|
|
62
|
+
import tabMenuItem from "./tab-menu-item.js";
|
|
63
|
+
import tabMenuList from "./tab-menu-list.js";
|
|
64
|
+
import tabMenu from "./tab-menu.js";
|
|
65
|
+
import textInputAffix from "./text-input-affix.js";
|
|
66
|
+
import TextInputButton from "./text-input-button.js";
|
|
67
|
+
import TextInput from "./text-input.js";
|
|
68
|
+
import textarea from "./textarea.js";
|
|
69
|
+
import Tooltip from "./tooltip.js";
|
|
70
|
+
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
|
+
__proto__: null,
|
|
72
|
+
Alert: alert,
|
|
73
|
+
Badge,
|
|
74
|
+
Button,
|
|
75
|
+
Checkbox: _sfc_main,
|
|
76
|
+
CheckboxLabel: checkboxLabel,
|
|
77
|
+
Combobox: combobox,
|
|
78
|
+
ComboboxAnchor: _sfc_main$1,
|
|
79
|
+
ComboboxEmpty,
|
|
80
|
+
ComboboxGroup,
|
|
81
|
+
ComboboxInput,
|
|
82
|
+
ComboboxItem,
|
|
83
|
+
ComboboxList,
|
|
84
|
+
ComboboxRoot,
|
|
85
|
+
ComboboxSeparator,
|
|
86
|
+
ComboboxTrigger,
|
|
87
|
+
CompactButton,
|
|
88
|
+
ContentDivider: _sfc_main$2,
|
|
89
|
+
ContextMenuItem: contextMenuItem,
|
|
90
|
+
Dropdown: dropdown,
|
|
91
|
+
DropdownItem,
|
|
92
|
+
DropdownMenu: dropdownMenu,
|
|
93
|
+
DropdownMenuContent: _sfc_main$3,
|
|
94
|
+
DropdownMenuGroup: dropdownMenuGroup,
|
|
95
|
+
DropdownMenuItem: dropdownMenuItem,
|
|
96
|
+
DropdownMenuLabel: dropdownMenuLabel,
|
|
97
|
+
DropdownMenuSeparator: dropdownMenuSeparator,
|
|
98
|
+
DropdownMenuSub: _sfc_main$4,
|
|
99
|
+
DropdownMenuSubContent: _sfc_main$5,
|
|
100
|
+
DropdownMenuSubTrigger: _sfc_main$6,
|
|
101
|
+
DropdownMenuTrigger: dropdownMenuTrigger,
|
|
102
|
+
FancyButton: fancyButton,
|
|
103
|
+
HintText: hintText,
|
|
104
|
+
Label: label,
|
|
105
|
+
LinkButton: linkButton,
|
|
106
|
+
Modal: _sfc_main$7,
|
|
107
|
+
ModalBody: modalBody,
|
|
108
|
+
ModalClose: _sfc_main$8,
|
|
109
|
+
ModalContent: modalContent,
|
|
110
|
+
ModalFooter: modalFooter,
|
|
111
|
+
ModalHeader: modalHeader,
|
|
112
|
+
ModalTrigger: _sfc_main$9,
|
|
113
|
+
Popover: _sfc_main$a,
|
|
114
|
+
PopoverContent,
|
|
115
|
+
PopoverTrigger,
|
|
116
|
+
ScrollArea: _sfc_main$b,
|
|
117
|
+
SegmentedControl: segmentedControl,
|
|
118
|
+
SegmentedControlItem: segmentedControlItem,
|
|
119
|
+
Select: _sfc_main$c,
|
|
120
|
+
SelectContent,
|
|
121
|
+
SelectGroup: _sfc_main$d,
|
|
122
|
+
SelectIcon: selectIcon,
|
|
123
|
+
SelectItem,
|
|
124
|
+
SelectLabel: selectLabel,
|
|
125
|
+
SelectSeparator: selectSeparator,
|
|
126
|
+
SelectTrigger,
|
|
127
|
+
SelectValue,
|
|
128
|
+
Slider: _sfc_main$e,
|
|
129
|
+
SocialButton: socialButton,
|
|
130
|
+
StatusBadge: statusBadge,
|
|
131
|
+
Switch: _sfc_main$f,
|
|
132
|
+
TabMenu: tabMenu,
|
|
133
|
+
TabMenuContent: tabMenuContent,
|
|
134
|
+
TabMenuItem: tabMenuItem,
|
|
135
|
+
TabMenuList: tabMenuList,
|
|
136
|
+
TextInput,
|
|
137
|
+
TextInputAffix: textInputAffix,
|
|
138
|
+
TextInputButton,
|
|
139
|
+
Textarea: textarea,
|
|
140
|
+
Tooltip
|
|
141
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
142
|
+
const Celeste = {
|
|
143
|
+
install(vue) {
|
|
144
|
+
Object.entries(components).forEach(([name, component]) => {
|
|
145
|
+
vue.component(name, component);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
export {
|
|
150
|
+
alert as Alert,
|
|
151
|
+
Badge,
|
|
152
|
+
Button,
|
|
153
|
+
Celeste,
|
|
154
|
+
_sfc_main as Checkbox,
|
|
155
|
+
checkboxLabel as CheckboxLabel,
|
|
156
|
+
combobox as Combobox,
|
|
157
|
+
_sfc_main$1 as ComboboxAnchor,
|
|
158
|
+
ComboboxEmpty,
|
|
159
|
+
ComboboxGroup,
|
|
160
|
+
ComboboxInput,
|
|
161
|
+
ComboboxItem,
|
|
162
|
+
ComboboxList,
|
|
163
|
+
ComboboxRoot,
|
|
164
|
+
ComboboxSeparator,
|
|
165
|
+
ComboboxTrigger,
|
|
166
|
+
CompactButton,
|
|
167
|
+
_sfc_main$2 as ContentDivider,
|
|
168
|
+
contextMenuItem as ContextMenuItem,
|
|
169
|
+
dropdown as Dropdown,
|
|
170
|
+
DropdownItem,
|
|
171
|
+
dropdownMenu as DropdownMenu,
|
|
172
|
+
_sfc_main$3 as DropdownMenuContent,
|
|
173
|
+
dropdownMenuGroup as DropdownMenuGroup,
|
|
174
|
+
dropdownMenuItem as DropdownMenuItem,
|
|
175
|
+
dropdownMenuLabel as DropdownMenuLabel,
|
|
176
|
+
dropdownMenuSeparator as DropdownMenuSeparator,
|
|
177
|
+
_sfc_main$4 as DropdownMenuSub,
|
|
178
|
+
_sfc_main$5 as DropdownMenuSubContent,
|
|
179
|
+
_sfc_main$6 as DropdownMenuSubTrigger,
|
|
180
|
+
dropdownMenuTrigger as DropdownMenuTrigger,
|
|
181
|
+
fancyButton as FancyButton,
|
|
182
|
+
hintText as HintText,
|
|
183
|
+
label as Label,
|
|
184
|
+
linkButton as LinkButton,
|
|
185
|
+
_sfc_main$7 as Modal,
|
|
186
|
+
modalBody as ModalBody,
|
|
187
|
+
_sfc_main$8 as ModalClose,
|
|
188
|
+
modalContent as ModalContent,
|
|
189
|
+
modalFooter as ModalFooter,
|
|
190
|
+
modalHeader as ModalHeader,
|
|
191
|
+
_sfc_main$9 as ModalTrigger,
|
|
192
|
+
_sfc_main$a as Popover,
|
|
193
|
+
PopoverContent,
|
|
194
|
+
PopoverTrigger,
|
|
195
|
+
_sfc_main$b as ScrollArea,
|
|
196
|
+
segmentedControl as SegmentedControl,
|
|
197
|
+
segmentedControlItem as SegmentedControlItem,
|
|
198
|
+
_sfc_main$c as Select,
|
|
199
|
+
SelectContent,
|
|
200
|
+
_sfc_main$d as SelectGroup,
|
|
201
|
+
selectIcon as SelectIcon,
|
|
202
|
+
SelectItem,
|
|
203
|
+
selectLabel as SelectLabel,
|
|
204
|
+
selectSeparator as SelectSeparator,
|
|
205
|
+
SelectTrigger,
|
|
206
|
+
SelectValue,
|
|
207
|
+
_sfc_main$e as Slider,
|
|
208
|
+
socialButton as SocialButton,
|
|
209
|
+
statusBadge as StatusBadge,
|
|
210
|
+
_sfc_main$f as Switch,
|
|
211
|
+
tabMenu as TabMenu,
|
|
212
|
+
tabMenuContent as TabMenuContent,
|
|
213
|
+
tabMenuItem as TabMenuItem,
|
|
214
|
+
tabMenuList as TabMenuList,
|
|
215
|
+
TextInput,
|
|
216
|
+
textInputAffix as TextInputAffix,
|
|
217
|
+
TextInputButton,
|
|
218
|
+
textarea as Textarea,
|
|
219
|
+
Tooltip
|
|
220
|
+
};
|
package/dist/es/label.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import Tooltip from "./tooltip.js";
|
|
3
|
+
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
+
import { B as Oh } from "./chunks/index.js";
|
|
6
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "celeste-sublabel"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "label",
|
|
13
|
+
props: {
|
|
14
|
+
for: {},
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {},
|
|
17
|
+
sublabel: {},
|
|
18
|
+
information: {},
|
|
19
|
+
required: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
class: {}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createBlock(unref(Oh), mergeProps(unref(delegatedProps), {
|
|
28
|
+
"aria-required": _ctx.required,
|
|
29
|
+
"aria-disabled": _ctx.disabled,
|
|
30
|
+
class: unref(clsx)("celeste-label", props.class)
|
|
31
|
+
}), {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
34
|
+
renderSlot(_ctx.$slots, "button", { class: "celeste-label-button" }, void 0, true),
|
|
35
|
+
_ctx.sublabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.sublabel), 1)) : createCommentVNode("", true),
|
|
36
|
+
_ctx.information ? (openBlock(), createBlock(Tooltip, {
|
|
37
|
+
key: 1,
|
|
38
|
+
title: _ctx.information
|
|
39
|
+
}, {
|
|
40
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
41
|
+
createElementVNode("button", { class: "celeste-label-info" }, [
|
|
42
|
+
createElementVNode("i", { class: "i-celeste-information-2-fill" })
|
|
43
|
+
], -1)
|
|
44
|
+
])),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["title"])) : createCommentVNode("", true)
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 16, ["aria-required", "aria-disabled", "class"]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const label = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4768213c"]]);
|
|
54
|
+
export {
|
|
55
|
+
label as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
+
import { f as O } from "./chunks/index.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "link-button",
|
|
8
|
+
props: {
|
|
9
|
+
class: {},
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
intent: { default: "primary" },
|
|
12
|
+
underline: { type: Boolean },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
asChild: { type: Boolean },
|
|
15
|
+
as: { default: "a" }
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createBlock(unref(O), {
|
|
21
|
+
as: _ctx.as,
|
|
22
|
+
disabled: _ctx.disabled,
|
|
23
|
+
"as-child": _ctx.asChild,
|
|
24
|
+
class: normalizeClass(unref(clsx)(
|
|
25
|
+
"celeste-link-button",
|
|
26
|
+
`celeste-link-button-${_ctx.intent}`,
|
|
27
|
+
`celeste-link-button-${_ctx.size}`,
|
|
28
|
+
_ctx.disabled && "celeste-link-button-disabled",
|
|
29
|
+
_ctx.underline && "celeste-link-button-underline",
|
|
30
|
+
props.class
|
|
31
|
+
)),
|
|
32
|
+
role: _ctx.as === "a" ? "link" : "button"
|
|
33
|
+
}, {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 8, ["as", "disabled", "as-child", "class", "role"]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const linkButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-82b3b1ab"]]);
|
|
43
|
+
export {
|
|
44
|
+
linkButton as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "modal-body",
|
|
6
|
+
props: {
|
|
7
|
+
class: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass(unref(clsx)("celeste-modal-body", props.class))
|
|
14
|
+
}, [
|
|
15
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16
|
+
], 2);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const modalBody = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8872ed90"]]);
|
|
21
|
+
export {
|
|
22
|
+
modalBody as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, Transition, mergeProps, renderSlot } from "vue";
|
|
2
|
+
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
+
import { x as xe, a1 as Dv, a2 as Eu, a3 as xu } from "./chunks/index.js";
|
|
5
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "modal-content",
|
|
8
|
+
props: {
|
|
9
|
+
forceMount: { type: Boolean },
|
|
10
|
+
trapFocus: { type: Boolean },
|
|
11
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
class: {},
|
|
15
|
+
style: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emits = __emit;
|
|
21
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
22
|
+
const forwarded = xe(delegatedProps, emits);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Dv), null, {
|
|
25
|
+
default: withCtx(() => [
|
|
26
|
+
createVNode(unref(Eu), { class: "celeste-modal-overlay" }),
|
|
27
|
+
createVNode(Transition, { name: "fade" }, {
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
createVNode(unref(xu), mergeProps(unref(forwarded), {
|
|
30
|
+
class: unref(clsx)("celeste-modal-content", props.class)
|
|
31
|
+
}), {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"])
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const modalContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bdcae06b"]]);
|
|
47
|
+
export {
|
|
48
|
+
modalContent as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "modal-footer",
|
|
6
|
+
props: {
|
|
7
|
+
class: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass(unref(clsx)("celeste-modal-footer", props.class))
|
|
14
|
+
}, [
|
|
15
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16
|
+
], 2);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const modalFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f3331df1"]]);
|
|
21
|
+
export {
|
|
22
|
+
modalFooter as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, withCtx, toDisplayString, createVNode } from "vue";
|
|
2
|
+
import CompactButton from "./compact-button.js";
|
|
3
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
+
import { a4 as Pu, a5 as Du, a as Gl } from "./chunks/index.js";
|
|
5
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
+
const _hoisted_1 = ["data-dismissible", "data-alignment", "data-type"];
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "icon"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "content"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_4 = { class: "title" };
|
|
16
|
+
const _hoisted_5 = { class: "description" };
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "modal-header",
|
|
19
|
+
props: {
|
|
20
|
+
title: {},
|
|
21
|
+
icon: {},
|
|
22
|
+
description: {},
|
|
23
|
+
dismissible: { type: Boolean, default: true },
|
|
24
|
+
alignment: { default: "horizontal" },
|
|
25
|
+
type: { default: "default" },
|
|
26
|
+
class: {}
|
|
27
|
+
},
|
|
28
|
+
setup(__props) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createElementBlock("div", {
|
|
32
|
+
class: normalizeClass(unref(clsx)("celeste-modal-header", props.class)),
|
|
33
|
+
"data-dismissible": _ctx.dismissible,
|
|
34
|
+
"data-alignment": _ctx.alignment,
|
|
35
|
+
"data-type": _ctx.type
|
|
36
|
+
}, [
|
|
37
|
+
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
38
|
+
createElementVNode("i", {
|
|
39
|
+
class: normalizeClass(_ctx.icon)
|
|
40
|
+
}, null, 2)
|
|
41
|
+
])) : createCommentVNode("", true),
|
|
42
|
+
_ctx.title || _ctx.description ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
43
|
+
_ctx.title ? (openBlock(), createBlock(unref(Pu), {
|
|
44
|
+
key: 0,
|
|
45
|
+
"as-child": ""
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
createElementVNode("h2", _hoisted_4, toDisplayString(_ctx.title), 1)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})) : createCommentVNode("", true),
|
|
52
|
+
_ctx.description ? (openBlock(), createBlock(unref(Du), {
|
|
53
|
+
key: 1,
|
|
54
|
+
"as-child": ""
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createElementVNode("p", _hoisted_5, toDisplayString(_ctx.description), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
})) : createCommentVNode("", true)
|
|
61
|
+
])) : createCommentVNode("", true),
|
|
62
|
+
_ctx.dismissible ? (openBlock(), createBlock(unref(Gl), {
|
|
63
|
+
key: 2,
|
|
64
|
+
"as-child": ""
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(CompactButton, {
|
|
68
|
+
class: "close",
|
|
69
|
+
icon: "i-celeste-close-line",
|
|
70
|
+
variant: "ghost"
|
|
71
|
+
})
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})) : createCommentVNode("", true)
|
|
75
|
+
], 10, _hoisted_1);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const modalHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a655071e"]]);
|
|
80
|
+
export {
|
|
81
|
+
modalHeader as default
|
|
82
|
+
};
|
package/dist/es/modal.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, createElementVNode, normalizeStyle, createElementBlock, Fragment, normalizeClass, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
+
import CompactButton from "./compact-button.js";
|
|
3
|
+
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
+
import { x as xe, a6 as bs, a7 as ws, a8 as _s, a9 as xs } from "./chunks/index.js";
|
|
6
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
|
+
const _hoisted_1 = ["data-icon-size"];
|
|
8
|
+
const _hoisted_2 = { class: "celeste-popover-title" };
|
|
9
|
+
const _hoisted_3 = { class: "celeste-popover-description" };
|
|
10
|
+
const _hoisted_4 = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "celeste-popover-footer"
|
|
13
|
+
};
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...{
|
|
16
|
+
inheritAttrs: false
|
|
17
|
+
},
|
|
18
|
+
__name: "popover-content",
|
|
19
|
+
props: {
|
|
20
|
+
class: {},
|
|
21
|
+
side: { default: "bottom" },
|
|
22
|
+
title: {},
|
|
23
|
+
description: {},
|
|
24
|
+
showTail: { type: Boolean, default: true },
|
|
25
|
+
dismissible: { type: Boolean, default: true },
|
|
26
|
+
icon: {},
|
|
27
|
+
iconSize: { default: "lg" }
|
|
28
|
+
},
|
|
29
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const emits = __emit;
|
|
33
|
+
const delegatedProps = useDelegatedProps(props, ["class", "title"]);
|
|
34
|
+
const forwarded = xe(delegatedProps, emits);
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return openBlock(), createBlock(unref(bs), null, {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createVNode(unref(ws), mergeProps({ ...unref(forwarded), ..._ctx.$attrs }, {
|
|
39
|
+
"side-offset": _ctx.showTail ? 0 : 8,
|
|
40
|
+
class: unref(clsx)(
|
|
41
|
+
"celeste-popover-content-wrapper",
|
|
42
|
+
props.class
|
|
43
|
+
)
|
|
44
|
+
}), {
|
|
45
|
+
default: withCtx(() => [
|
|
46
|
+
createElementVNode("div", {
|
|
47
|
+
class: "celeste-popover-content",
|
|
48
|
+
style: normalizeStyle({ padding: !_ctx.$slots.default ? "var(--spacing-16)" : "" })
|
|
49
|
+
}, [
|
|
50
|
+
!_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
51
|
+
_ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "celeste-popover-icon",
|
|
54
|
+
"data-icon-size": _ctx.iconSize
|
|
55
|
+
}, [
|
|
56
|
+
createElementVNode("i", {
|
|
57
|
+
class: normalizeClass(_ctx.icon)
|
|
58
|
+
}, null, 2)
|
|
59
|
+
], 8, _hoisted_1)) : createCommentVNode("", true),
|
|
60
|
+
createElementVNode("p", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
61
|
+
createElementVNode("p", _hoisted_3, toDisplayString(_ctx.description), 1)
|
|
62
|
+
], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
63
|
+
], 4),
|
|
64
|
+
_ctx.showTail ? (openBlock(), createBlock(unref(_s), {
|
|
65
|
+
key: 0,
|
|
66
|
+
"as-child": "",
|
|
67
|
+
width: 16,
|
|
68
|
+
height: 8
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
71
|
+
createElementVNode("span", { class: "celeste-popover-arrow" }, null, -1)
|
|
72
|
+
])),
|
|
73
|
+
_: 1
|
|
74
|
+
})) : createCommentVNode("", true),
|
|
75
|
+
_ctx.dismissible ? (openBlock(), createBlock(unref(xs), {
|
|
76
|
+
key: 1,
|
|
77
|
+
"as-child": "",
|
|
78
|
+
class: "PopoverClose",
|
|
79
|
+
"aria-label": "Close"
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
createVNode(CompactButton, {
|
|
83
|
+
variant: "ghost",
|
|
84
|
+
icon: "i-celeste-close-line",
|
|
85
|
+
class: "celeste-popover-close-button"
|
|
86
|
+
})
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : createCommentVNode("", true),
|
|
90
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
91
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
92
|
+
])) : createCommentVNode("", true)
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 16, ["side-offset", "class"])
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fae157b1"]]);
|
|
103
|
+
export {
|
|
104
|
+
PopoverContent as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { aa as gs } from "./chunks/index.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "popover-trigger",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(gs), mergeProps({ class: "celeste-popover-trigger" }, props, { as: "div" }), {
|
|
14
|
+
default: withCtx(() => [
|
|
15
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16
|
+
]),
|
|
17
|
+
_: 3
|
|
18
|
+
}, 16);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const PopoverTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2664c4cb"]]);
|
|
23
|
+
export {
|
|
24
|
+
PopoverTrigger as default
|
|
25
|
+
};
|