@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,31 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import StatusBadge from '../status-badge.vue';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof StatusBadge> = {
|
|
5
|
+
title: 'Components/StatusBadge',
|
|
6
|
+
component: StatusBadge,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default meta;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj<typeof StatusBadge>;
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
args: {
|
|
15
|
+
label: 'Badge',
|
|
16
|
+
state: 'faded',
|
|
17
|
+
variant: 'stroke',
|
|
18
|
+
dotted: false,
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
render: args => ({
|
|
22
|
+
components: { StatusBadge },
|
|
23
|
+
setup() {
|
|
24
|
+
return { args };
|
|
25
|
+
},
|
|
26
|
+
template: `
|
|
27
|
+
<StatusBadge v-bind="args">
|
|
28
|
+
</StatusBadge>
|
|
29
|
+
`,
|
|
30
|
+
}),
|
|
31
|
+
};
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Primitive, type PrimitiveProps } from 'radix-vue';
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(defineProps<ButtonProps>(), {
|
|
7
|
+
size: 'md',
|
|
8
|
+
variant: 'fill',
|
|
9
|
+
intent: 'primary',
|
|
10
|
+
as: 'button',
|
|
11
|
+
});
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<script lang="ts">
|
|
15
|
+
export interface ButtonProps extends PrimitiveProps {
|
|
16
|
+
class?: HTMLAttributes['class'];
|
|
17
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md';
|
|
18
|
+
intent?: 'primary' | 'neutral' | 'error';
|
|
19
|
+
variant?: 'fill' | 'stroke' | 'lighter' | 'ghost';
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<Primitive
|
|
25
|
+
:as
|
|
26
|
+
:as-child
|
|
27
|
+
:class="clsx(
|
|
28
|
+
'celeste-button',
|
|
29
|
+
`celeste-button-intent-${intent}`,
|
|
30
|
+
`celeste-button-size-${size}`,
|
|
31
|
+
`celeste-button-variant-${variant}`,
|
|
32
|
+
props.class,
|
|
33
|
+
)"
|
|
34
|
+
>
|
|
35
|
+
<slot />
|
|
36
|
+
</Primitive>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<style lang="scss" scoped>
|
|
40
|
+
@use 'sass:map';
|
|
41
|
+
|
|
42
|
+
$size-map: (
|
|
43
|
+
'xxs': (
|
|
44
|
+
height: 28px,
|
|
45
|
+
border-radius: var(--radius-8),
|
|
46
|
+
padding: var(--spacing-4) var(--spacing-6),
|
|
47
|
+
gap: var(--spacing-4),
|
|
48
|
+
),
|
|
49
|
+
'xs': (
|
|
50
|
+
height: 32px,
|
|
51
|
+
border-radius: var(--radius-8),
|
|
52
|
+
padding: var(--spacing-6) var(--spacing-8),
|
|
53
|
+
gap: var(--spacing-4),
|
|
54
|
+
),
|
|
55
|
+
'sm': (
|
|
56
|
+
height: 36px,
|
|
57
|
+
border-radius: var(--radius-8),
|
|
58
|
+
padding: var(--spacing-8) var(--spacing-10),
|
|
59
|
+
gap: var(--spacing-6),
|
|
60
|
+
),
|
|
61
|
+
'md': (
|
|
62
|
+
height: 40px,
|
|
63
|
+
border-radius: var(--radius-10),
|
|
64
|
+
padding: var(--spacing-10) var(--spacing-12),
|
|
65
|
+
gap: var(--spacing-6),
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
$intent-map: (
|
|
69
|
+
'primary': (
|
|
70
|
+
'fill': (
|
|
71
|
+
fg: var(--color-text-white-0),
|
|
72
|
+
bg: var(--color-primary-base),
|
|
73
|
+
border: var(--color-primary-base),
|
|
74
|
+
shadow: none,
|
|
75
|
+
),
|
|
76
|
+
'stroke': (
|
|
77
|
+
fg: var(--color-primary-base),
|
|
78
|
+
bg: transparent,
|
|
79
|
+
border: var(--color-primary-base),
|
|
80
|
+
shadow: none,
|
|
81
|
+
),
|
|
82
|
+
'lighter': (
|
|
83
|
+
fg: var(--color-primary-base),
|
|
84
|
+
bg: var(--color-primary-alpha-10),
|
|
85
|
+
border: transparent,
|
|
86
|
+
shadow: none,
|
|
87
|
+
),
|
|
88
|
+
'ghost': (
|
|
89
|
+
fg: var(--color-primary-base),
|
|
90
|
+
bg: transparent,
|
|
91
|
+
border: transparent,
|
|
92
|
+
shadow: none,
|
|
93
|
+
),
|
|
94
|
+
),
|
|
95
|
+
'neutral': (
|
|
96
|
+
'fill': (
|
|
97
|
+
fg: var(--color-text-white-0),
|
|
98
|
+
bg: var(--color-bg-strong-950),
|
|
99
|
+
border: var(--color-bg-strong-950),
|
|
100
|
+
shadow: none,
|
|
101
|
+
),
|
|
102
|
+
'stroke': (
|
|
103
|
+
fg: var(--color-text-sub-600),
|
|
104
|
+
bg: transparent,
|
|
105
|
+
border: var(--color-bg-soft-200),
|
|
106
|
+
shadow: var(--shadow-regular-xs),
|
|
107
|
+
),
|
|
108
|
+
'lighter': (
|
|
109
|
+
fg: var(--color-text-sub-600),
|
|
110
|
+
bg: var(--color-bg-weak-50),
|
|
111
|
+
border: var(--color-bg-weak-50),
|
|
112
|
+
shadow: none,
|
|
113
|
+
),
|
|
114
|
+
'ghost': (
|
|
115
|
+
fg: var(--color-text-sub-600),
|
|
116
|
+
bg: transparent,
|
|
117
|
+
border: transparent,
|
|
118
|
+
shadow: none,
|
|
119
|
+
),
|
|
120
|
+
),
|
|
121
|
+
'error': (
|
|
122
|
+
'fill': (
|
|
123
|
+
fg: var(--color-text-white-0),
|
|
124
|
+
bg: var(--color-state-error-base),
|
|
125
|
+
border: var(--color-state-error-base),
|
|
126
|
+
shadow: none,
|
|
127
|
+
),
|
|
128
|
+
'stroke': (
|
|
129
|
+
fg: var(--color-state-error-base),
|
|
130
|
+
bg: transparent,
|
|
131
|
+
border: var(--color-state-error-base),
|
|
132
|
+
shadow: none,
|
|
133
|
+
),
|
|
134
|
+
'lighter': (
|
|
135
|
+
fg: var(--color-state-error-base),
|
|
136
|
+
bg: var(--color-red-alpha-10),
|
|
137
|
+
border: transparent,
|
|
138
|
+
shadow: none,
|
|
139
|
+
),
|
|
140
|
+
'ghost': (
|
|
141
|
+
fg: var(--color-state-error-base),
|
|
142
|
+
bg: transparent,
|
|
143
|
+
border: transparent,
|
|
144
|
+
shadow: none,
|
|
145
|
+
),
|
|
146
|
+
),
|
|
147
|
+
);
|
|
148
|
+
$hover-map: (
|
|
149
|
+
'primary': (
|
|
150
|
+
'fill': (
|
|
151
|
+
fg: var(--color-text-white-0),
|
|
152
|
+
bg: var(--color-primary-darker),
|
|
153
|
+
border: var(--color-primary-darker),
|
|
154
|
+
),
|
|
155
|
+
'stroke': (
|
|
156
|
+
fg: var(--color-primary-base),
|
|
157
|
+
bg: var(--color-primary-alpha-10),
|
|
158
|
+
border: transparent,
|
|
159
|
+
),
|
|
160
|
+
'lighter': (
|
|
161
|
+
fg: var(--color-primary-base),
|
|
162
|
+
bg: transparent,
|
|
163
|
+
border: var(--color-primary-base),
|
|
164
|
+
),
|
|
165
|
+
'ghost': (
|
|
166
|
+
fg: var(--color-primary-base),
|
|
167
|
+
bg: var(--color-primary-alpha-10),
|
|
168
|
+
border: transparent,
|
|
169
|
+
),
|
|
170
|
+
),
|
|
171
|
+
'neutral': (
|
|
172
|
+
'fill': (
|
|
173
|
+
fg: var(--color-text-white-0),
|
|
174
|
+
bg: var(--color-bg-surface-800),
|
|
175
|
+
border: transparent,
|
|
176
|
+
),
|
|
177
|
+
'stroke': (
|
|
178
|
+
fg: var(--color-text-strong-950),
|
|
179
|
+
bg: var(--color-bg-weak-50),
|
|
180
|
+
border: transparent,
|
|
181
|
+
),
|
|
182
|
+
'lighter': (
|
|
183
|
+
fg: var(--color-text-strong-950),
|
|
184
|
+
bg: transparent,
|
|
185
|
+
border: var(--color-bg-soft-200),
|
|
186
|
+
),
|
|
187
|
+
'ghost': (
|
|
188
|
+
fg: var(--color-text-strong-950),
|
|
189
|
+
bg: var(--color-bg-weak-50),
|
|
190
|
+
border: transparent,
|
|
191
|
+
),
|
|
192
|
+
),
|
|
193
|
+
'error': (
|
|
194
|
+
'fill': (
|
|
195
|
+
fg: var(--color-text-white-0),
|
|
196
|
+
bg: var(--color-red-700),
|
|
197
|
+
border: var(--color-red-700),
|
|
198
|
+
),
|
|
199
|
+
'stroke': (
|
|
200
|
+
fg: var(--color-state-error-base),
|
|
201
|
+
bg: var(--color-red-alpha-10),
|
|
202
|
+
border: transparent,
|
|
203
|
+
),
|
|
204
|
+
'lighter': (
|
|
205
|
+
fg: var(--color-state-error-base),
|
|
206
|
+
bg: transparent,
|
|
207
|
+
border: var(--color-state-error-base),
|
|
208
|
+
),
|
|
209
|
+
'ghost': (
|
|
210
|
+
fg: var(--color-state-error-base),
|
|
211
|
+
bg: var(--color-red-alpha-10),
|
|
212
|
+
border: transparent,
|
|
213
|
+
),
|
|
214
|
+
),
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
.celeste-button {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
box-sizing: border-box;
|
|
220
|
+
align-items: center;
|
|
221
|
+
justify-content: center;
|
|
222
|
+
transition-property: background-color, color, border-color;
|
|
223
|
+
transition-duration: var(--animation-fast);
|
|
224
|
+
transition-timing-function: ease-out;
|
|
225
|
+
border: none;
|
|
226
|
+
border: 1px solid transparent;
|
|
227
|
+
background-color: transparent;
|
|
228
|
+
font: var(--label-sm);
|
|
229
|
+
text-decoration: none;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
|
|
232
|
+
&:disabled {
|
|
233
|
+
background-color: var(--color-bg-weak-50);
|
|
234
|
+
color: var(--color-text-disabled-300);
|
|
235
|
+
cursor: default;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:deep(i) {
|
|
239
|
+
flex-shrink: 0;
|
|
240
|
+
width: 20px;
|
|
241
|
+
height: 20px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@each $k, $v in $size-map {
|
|
245
|
+
&-size-#{$k} {
|
|
246
|
+
gap: map.get($v, gap);
|
|
247
|
+
height: map.get($v, height);
|
|
248
|
+
padding: map.get($v, padding);
|
|
249
|
+
border-radius: map.get($v, border-radius);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@each $intent, $sub in $intent-map {
|
|
254
|
+
@each $variant, $values in $sub {
|
|
255
|
+
&-intent-#{$intent}:not(:disabled).celeste-button-variant-#{$variant}:not(:disabled) {
|
|
256
|
+
border-color: map.get($values, border);
|
|
257
|
+
background-color: map.get($values, bg);
|
|
258
|
+
box-shadow: map.get($values, shadow);
|
|
259
|
+
color: map.get($values, fg);
|
|
260
|
+
|
|
261
|
+
&:hover:not(:disabled) {
|
|
262
|
+
$hover-values: map.get(map.get($hover-map, $intent), $variant);
|
|
263
|
+
|
|
264
|
+
border-color: map.get($hover-values, border);
|
|
265
|
+
background-color: map.get($hover-values, bg);
|
|
266
|
+
color: map.get($hover-values, fg);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:focus:not(:disabled) {
|
|
270
|
+
outline: none;
|
|
271
|
+
box-shadow: if(
|
|
272
|
+
$intent == 'neutral',
|
|
273
|
+
var(--shadow-buttons-important-focus),
|
|
274
|
+
var(--shadow-buttons-#{$intent}-focus)
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
</style>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Primitive, type PrimitiveProps } from 'radix-vue';
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(defineProps<CompactButtonProps>(), {
|
|
7
|
+
size: 'lg',
|
|
8
|
+
as: 'button',
|
|
9
|
+
variant: 'stroke',
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
export interface CompactButtonProps extends PrimitiveProps {
|
|
15
|
+
class?: HTMLAttributes['class'];
|
|
16
|
+
icon: string;
|
|
17
|
+
size?: 'lg' | 'md';
|
|
18
|
+
rounded?: boolean;
|
|
19
|
+
variant?: 'stroke' | 'white' | 'ghost';
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<Primitive
|
|
25
|
+
:as
|
|
26
|
+
:as-child
|
|
27
|
+
:class="clsx(
|
|
28
|
+
'celeste-cbutton',
|
|
29
|
+
`celeste-cbutton-${size}`,
|
|
30
|
+
`celeste-cbutton-${variant}`,
|
|
31
|
+
rounded && `celeste-cbutton-rounded`,
|
|
32
|
+
props.class,
|
|
33
|
+
)"
|
|
34
|
+
>
|
|
35
|
+
<i :class="icon" />
|
|
36
|
+
</Primitive>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<style scoped lang="scss">
|
|
40
|
+
.celeste-cbutton {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
transition-property: background-color, color, border-color;
|
|
46
|
+
transition-duration: var(--animation-fast);
|
|
47
|
+
transition-timing-function: ease-out;
|
|
48
|
+
border: 1px solid transparent;
|
|
49
|
+
border-radius: var(--radius-6);
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
color: var(--color-icon-sub-600);
|
|
52
|
+
font: var(--label-sm);
|
|
53
|
+
text-decoration: none;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
gap: var(--spacing-2);
|
|
56
|
+
|
|
57
|
+
&:disabled {
|
|
58
|
+
border-color: transparent;
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
color: var(--color-icon-disabled-300);
|
|
62
|
+
cursor: default;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-rounded {
|
|
67
|
+
border-radius: var(--radius-full);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
background-color: var(--color-bg-weak-50);
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
color: var(--color-icon-strong-950);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:focus {
|
|
78
|
+
border-color: transparent;
|
|
79
|
+
outline: none;
|
|
80
|
+
background-color: var(--color-bg-weak-50);
|
|
81
|
+
box-shadow: var(--shadow-buttons-important-focus);
|
|
82
|
+
color: var(--color-icon-strong-950);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:active {
|
|
86
|
+
border-color: transparent;
|
|
87
|
+
outline: none;
|
|
88
|
+
background-color: var(--color-bg-strong-950);
|
|
89
|
+
box-shadow: none;
|
|
90
|
+
color: var(--color-icon-white-0);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-lg {
|
|
94
|
+
width: 24px;
|
|
95
|
+
height: 24px;
|
|
96
|
+
padding: 2px;
|
|
97
|
+
|
|
98
|
+
:deep(i) {
|
|
99
|
+
width: 20px;
|
|
100
|
+
height: 20px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-md {
|
|
105
|
+
width: 20px;
|
|
106
|
+
height: 20px;
|
|
107
|
+
padding: 1px;
|
|
108
|
+
|
|
109
|
+
:deep(i) {
|
|
110
|
+
width: 18px;
|
|
111
|
+
height: 18px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-stroke {
|
|
116
|
+
border-color: var(--color-stroke-soft-200);
|
|
117
|
+
background-color: var(--color-bg-white-0);
|
|
118
|
+
box-shadow: var(--shadow-regular-xs);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-white {
|
|
122
|
+
background-color: var(--color-bg-white-0);
|
|
123
|
+
box-shadow: var(--shadow-regular-xs);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Primitive, type PrimitiveProps } from 'radix-vue';
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(defineProps<FancyButtonProps>(), {
|
|
7
|
+
size: 'md',
|
|
8
|
+
intent: 'primary',
|
|
9
|
+
as: 'button',
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
export interface FancyButtonProps extends PrimitiveProps {
|
|
15
|
+
class?: HTMLAttributes['class'];
|
|
16
|
+
size?: 'xs' | 'sm' | 'md';
|
|
17
|
+
intent?: 'primary' | 'neutral' | 'error' | 'basic';
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<Primitive
|
|
23
|
+
:as
|
|
24
|
+
:as-child
|
|
25
|
+
:class="clsx(
|
|
26
|
+
'celeste-fbutton',
|
|
27
|
+
`celeste-fbutton-${intent}`,
|
|
28
|
+
`celeste-fbutton-${size}`,
|
|
29
|
+
props.class,
|
|
30
|
+
)"
|
|
31
|
+
>
|
|
32
|
+
<slot />
|
|
33
|
+
</Primitive>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<style scoped lang="scss">
|
|
37
|
+
@use 'sass:map';
|
|
38
|
+
|
|
39
|
+
@property --celeste-fbutton-bg-start {
|
|
40
|
+
syntax: '<color>';
|
|
41
|
+
initial-value: rgb(0 0 0 / 0%);
|
|
42
|
+
inherits: false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@property --celeste-fbutton-bg-end {
|
|
46
|
+
syntax: '<color>';
|
|
47
|
+
initial-value: rgb(0 0 0 / 0%);
|
|
48
|
+
inherits: false;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
$size-map: (
|
|
52
|
+
'xs': (
|
|
53
|
+
height: 32px,
|
|
54
|
+
border-radius: var(--radius-8),
|
|
55
|
+
padding: var(--spacing-6) var(--spacing-8),
|
|
56
|
+
gap: var(--spacing-4),
|
|
57
|
+
),
|
|
58
|
+
'sm': (
|
|
59
|
+
height: 36px,
|
|
60
|
+
border-radius: var(--radius-8),
|
|
61
|
+
padding: var(--spacing-8) var(--spacing-10),
|
|
62
|
+
gap: var(--spacing-6),
|
|
63
|
+
),
|
|
64
|
+
'md': (
|
|
65
|
+
height: 40px,
|
|
66
|
+
border-radius: var(--radius-10),
|
|
67
|
+
padding: var(--spacing-10) var(--spacing-12),
|
|
68
|
+
gap: var(--spacing-6),
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
$intent-map: (
|
|
72
|
+
'primary': (
|
|
73
|
+
bg: var(--color-primary-base),
|
|
74
|
+
),
|
|
75
|
+
'neutral': (
|
|
76
|
+
bg: var(--color-bg-strong-950),
|
|
77
|
+
),
|
|
78
|
+
'error': (
|
|
79
|
+
bg: var(--color-state-error-base),
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
.celeste-fbutton {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
transition-property: --celeste-fbutton-bg-start, --celeste-fbutton-bg-end, background-color, color, border-color,
|
|
89
|
+
box-shadow;
|
|
90
|
+
transition-duration: var(--animation-fast);
|
|
91
|
+
transition-timing-function: ease-out;
|
|
92
|
+
border: none;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
font: var(--label-sm);
|
|
95
|
+
text-decoration: none;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
|
|
98
|
+
&:disabled {
|
|
99
|
+
background-color: var(--color-bg-weak-50);
|
|
100
|
+
color: var(--color-text-disabled-300);
|
|
101
|
+
cursor: default;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:deep(i) {
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
width: 20px;
|
|
107
|
+
height: 20px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:focus {
|
|
111
|
+
outline: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@each $k, $v in $size-map {
|
|
115
|
+
&-#{$k} {
|
|
116
|
+
gap: map.get($v, gap);
|
|
117
|
+
height: map.get($v, height);
|
|
118
|
+
padding: map.get($v, padding);
|
|
119
|
+
border-radius: map.get($v, border-radius);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@each $k, $v in $intent-map {
|
|
124
|
+
&-#{$k}:not(&-basic, :disabled) {
|
|
125
|
+
--celeste-fbutton-bg-start: rgb(255 255 255 / 16%);
|
|
126
|
+
--celeste-fbutton-bg-end: rgb(255 255 255 / 0%);
|
|
127
|
+
|
|
128
|
+
background:
|
|
129
|
+
linear-gradient(180deg, var(--celeste-fbutton-bg-start) 0%, var(--celeste-fbutton-bg-end) 100%),
|
|
130
|
+
#{map.get($v, bg)};
|
|
131
|
+
box-shadow:
|
|
132
|
+
inset 0 1px 0.5px 0.5px hsl(0deg 0% 100% / 12%),
|
|
133
|
+
var(--shadow-fancy-buttons-#{$k});
|
|
134
|
+
color: var(--color-text-white-0);
|
|
135
|
+
|
|
136
|
+
&:hover {
|
|
137
|
+
--celeste-fbutton-bg-start: rgb(255 255 255 / 24%);
|
|
138
|
+
--celeste-fbutton-bg-end: rgb(255 255 255 / 0%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:focus {
|
|
142
|
+
--celeste-fbutton-bg-start: rgb(255 255 255 / 24%);
|
|
143
|
+
--celeste-fbutton-bg-end: rgb(255 255 255 / 0%);
|
|
144
|
+
|
|
145
|
+
box-shadow:
|
|
146
|
+
inset 0 1px 0.5px 0.5px hsl(0deg 0% 100% / 12%),
|
|
147
|
+
var(--shadow-fancy-buttons-#{$k}),
|
|
148
|
+
if($k == 'neutral', var(--shadow-buttons-important-focus), var(--shadow-buttons-#{$k}-focus));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&-basic {
|
|
154
|
+
background: var(--color-bg-white-0);
|
|
155
|
+
box-shadow: var(--shadow-fancy-buttons-stroke);
|
|
156
|
+
color: var(--color-text-sub-600);
|
|
157
|
+
|
|
158
|
+
&:hover {
|
|
159
|
+
background: var(--color-bg-weak-50);
|
|
160
|
+
box-shadow: none;
|
|
161
|
+
color: var(--text-strong-950);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:focus {
|
|
165
|
+
background: var(--color-bg-weak-50);
|
|
166
|
+
box-shadow: var(--shadow-buttons-important-focus);
|
|
167
|
+
color: var(--text-strong-950);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './button.vue';
|
|
2
|
+
export { default as Button } from './button.vue';
|
|
3
|
+
|
|
4
|
+
export * from './compact-button.vue';
|
|
5
|
+
export { default as CompactButton } from './compact-button.vue';
|
|
6
|
+
|
|
7
|
+
export * from './fancy-button.vue';
|
|
8
|
+
export { default as FancyButton } from './fancy-button.vue';
|
|
9
|
+
|
|
10
|
+
export * from './link-button.vue';
|
|
11
|
+
export { default as LinkButton } from './link-button.vue';
|
|
12
|
+
|
|
13
|
+
export * from './social-button.vue';
|
|
14
|
+
export { default as SocialButton } from './social-button.vue';
|