@youcan/celeste 0.6.73 → 0.6.75
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 +233 -201
- package/dist/cjs/alert.js +33 -33
- package/dist/cjs/badge.js +17 -14
- package/dist/cjs/button.js +6 -6
- package/dist/cjs/checkbox-card.js +33 -33
- package/dist/cjs/checkbox-label.js +31 -31
- package/dist/cjs/chunks/alpha-slider.js +12 -12
- package/dist/cjs/chunks/checkbox.js +7 -7
- package/dist/cjs/chunks/collapsible-content.js +6 -6
- package/dist/cjs/chunks/collapsible-trigger.js +5 -5
- package/dist/cjs/chunks/collapsible.js +6 -6
- package/dist/cjs/chunks/combobox-anchor.js +8 -8
- package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +15 -15
- package/dist/cjs/chunks/counter-input.js +13 -13
- package/dist/cjs/chunks/dropdown-menu-sub.js +6 -6
- package/dist/cjs/chunks/index.js +2292 -2289
- package/dist/cjs/chunks/index2.js +14 -14
- package/dist/cjs/chunks/index3.js +28 -28
- package/dist/cjs/chunks/index4.js +125 -96
- package/dist/cjs/chunks/index5.js +4720 -4015
- package/dist/cjs/chunks/modal-close.js +5 -5
- package/dist/cjs/chunks/modal-trigger.js +5 -5
- package/dist/cjs/chunks/modal.js +6 -6
- package/dist/cjs/chunks/pagination-first.js +9 -9
- package/dist/cjs/chunks/pagination-item.js +6 -6
- package/dist/cjs/chunks/pagination-last.js +9 -9
- package/dist/cjs/chunks/pagination-next.js +9 -9
- package/dist/cjs/chunks/pagination-previous.js +9 -9
- package/dist/cjs/chunks/popover.js +6 -6
- package/dist/cjs/chunks/radio-group-item.js +7 -7
- package/dist/cjs/chunks/radio-group.js +8 -8
- package/dist/cjs/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +742 -45
- package/dist/cjs/chunks/select-group.js +5 -5
- package/dist/cjs/chunks/select.js +7 -7
- package/dist/cjs/chunks/sheet-trigger.js +5 -5
- package/dist/cjs/chunks/sheet.js +6 -6
- package/dist/cjs/chunks/sidebar-content.js +5 -5
- package/dist/cjs/chunks/sidebar-element.js +6 -6
- package/dist/cjs/chunks/sidebar-footer.js +5 -5
- package/dist/cjs/chunks/sidebar-group-label.js +6 -6
- package/dist/cjs/chunks/sidebar-group.js +5 -5
- package/dist/cjs/chunks/sidebar-header.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-action.js +6 -6
- package/dist/cjs/chunks/sidebar-menu-badge.js +4 -4
- package/dist/cjs/chunks/sidebar-menu-button.js +7 -7
- package/dist/cjs/chunks/sidebar-menu-item.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-sub-button.js +6 -6
- package/dist/cjs/chunks/sidebar-menu-sub-item.js +5 -5
- package/dist/cjs/chunks/sidebar-menu-sub.js +5 -5
- package/dist/cjs/chunks/sidebar-menu.js +5 -5
- package/dist/cjs/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +9 -9
- package/dist/cjs/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +5 -4
- package/dist/cjs/chunks/sidebar.js +21 -21
- package/dist/cjs/chunks/slider.js +11 -11
- package/dist/cjs/chunks/sonner.js +214 -146
- package/dist/cjs/chunks/switch.js +7 -7
- package/dist/cjs/chunks/tinycolor.js +2 -2
- package/dist/cjs/chunks/tooltip-provider.js +5 -5
- package/dist/cjs/chunks/tooltip-root.js +7 -7
- package/dist/cjs/chunks/tooltip-trigger.js +6 -6
- package/dist/cjs/chunks/tooltip.js +12 -12
- package/dist/cjs/color-area.js +16 -16
- package/dist/cjs/color-picker.js +102 -102
- package/dist/cjs/color-swatch.js +11 -11
- package/dist/cjs/combobox-empty.js +7 -7
- package/dist/cjs/combobox-group.js +11 -11
- package/dist/cjs/combobox-input.js +12 -12
- package/dist/cjs/combobox-item.js +24 -24
- package/dist/cjs/combobox-list.js +12 -12
- package/dist/cjs/combobox-root.js +7 -6
- package/dist/cjs/combobox-separator.js +7 -7
- package/dist/cjs/combobox-trigger.js +8 -8
- package/dist/cjs/combobox.js +54 -53
- package/dist/cjs/command-group.js +10 -10
- package/dist/cjs/command-input.js +8 -8
- package/dist/cjs/command-item.js +7 -7
- package/dist/cjs/command-list.js +8 -8
- package/dist/cjs/command-root.js +8 -7
- package/dist/cjs/command-separator.js +7 -7
- package/dist/cjs/compact-button.js +7 -7
- package/dist/cjs/config.js +2 -2
- package/dist/cjs/digit-input-group.js +7 -7
- package/dist/cjs/digit-input-slot.js +5 -5
- package/dist/cjs/digit-input.js +7 -7
- package/dist/cjs/dropdown-menu-content.js +9 -9
- package/dist/cjs/dropdown-menu-group.js +5 -5
- package/dist/cjs/dropdown-menu-item.js +14 -14
- package/dist/cjs/dropdown-menu-label.js +7 -7
- package/dist/cjs/dropdown-menu-separator.js +4 -4
- package/dist/cjs/dropdown-menu-sub-content.js +9 -9
- package/dist/cjs/dropdown-menu-sub-trigger.js +12 -12
- package/dist/cjs/dropdown-menu-trigger.js +6 -6
- package/dist/cjs/dropdown-menu.js +7 -7
- package/dist/cjs/extra-settings.js +21 -21
- package/dist/cjs/fancy-button.js +6 -6
- package/dist/cjs/file-upload-area.js +22 -22
- package/dist/cjs/hint-text.js +9 -9
- package/dist/cjs/hue-slider.js +15 -15
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/label.js +13 -13
- package/dist/cjs/link-bubble.js +40 -40
- package/dist/cjs/link-button.js +6 -6
- package/dist/cjs/modal-body.js +5 -5
- package/dist/cjs/modal-content.js +12 -12
- package/dist/cjs/modal-footer.js +5 -5
- package/dist/cjs/modal-header.js +22 -22
- package/dist/cjs/pagination-content.js +6 -6
- package/dist/cjs/pagination-ellipsis.js +8 -8
- package/dist/cjs/pagination.js +14 -14
- package/dist/cjs/popover-content.js +30 -30
- package/dist/cjs/popover-trigger.js +5 -5
- package/dist/cjs/progress-bar.js +19 -19
- package/dist/cjs/progress-circle.js +20 -20
- package/dist/cjs/radio-group-card.js +33 -33
- package/dist/cjs/radio-group-label.js +31 -31
- package/dist/cjs/rich-editor.js +76 -76
- package/dist/cjs/scroll-area.js +42 -2
- package/dist/cjs/scroll-bar.js +10 -17
- package/dist/cjs/segmented-control-item.js +6 -8
- package/dist/cjs/segmented-control.js +8 -8
- package/dist/cjs/select-content.js +11 -11
- package/dist/cjs/select-icon.js +5 -5
- package/dist/cjs/select-item.js +11 -11
- package/dist/cjs/select-label.js +6 -6
- package/dist/cjs/select-separator.js +4 -4
- package/dist/cjs/select-trigger.js +9 -9
- package/dist/cjs/select-value.js +6 -6
- package/dist/cjs/sheet-close.js +6 -6
- package/dist/cjs/sheet-content.js +14 -14
- package/dist/cjs/sheet-description.js +7 -7
- package/dist/cjs/sheet-footer.js +6 -6
- package/dist/cjs/sheet-header.js +5 -5
- package/dist/cjs/sheet-title.js +7 -7
- package/dist/cjs/sidebar-group-content.js +5 -5
- package/dist/cjs/sidebar-trigger.js +7 -7
- package/dist/cjs/social-button.js +8 -8
- package/dist/cjs/sonner-alert.js +8 -8
- package/dist/cjs/status-badge.js +8 -8
- package/dist/cjs/tab-menu-content.js +7 -7
- package/dist/cjs/tab-menu-item.js +11 -11
- package/dist/cjs/tab-menu-list.js +6 -6
- package/dist/cjs/tab-menu.js +6 -6
- package/dist/cjs/table-body.js +5 -5
- package/dist/cjs/table-caption.js +5 -5
- package/dist/cjs/table-cell.js +5 -5
- package/dist/cjs/table-empty.js +9 -9
- package/dist/cjs/table-footer.js +5 -5
- package/dist/cjs/table-head.js +5 -5
- package/dist/cjs/table-header.js +5 -5
- package/dist/cjs/table-row.js +8 -8
- package/dist/cjs/table.js +6 -6
- package/dist/cjs/tag.js +10 -10
- package/dist/cjs/text-input-affix.js +5 -5
- package/dist/cjs/text-input-button.js +6 -6
- package/dist/cjs/text-input.js +31 -31
- package/dist/cjs/textarea.js +9 -9
- package/dist/cjs/tooltip-content.js +21 -21
- package/dist/cjs/use-color-model.js +2 -2
- package/dist/cjs/use-delegated-props.js +2 -2
- package/dist/cjs/use-sidebar.js +1 -1
- package/dist/cjs/use-user-select.js +4 -4
- package/dist/components/color-picker/alpha-slider.d.ts +1 -1
- package/dist/components/color-picker/color-area.d.ts +1 -1
- package/dist/components/color-picker/hue-slider.d.ts +1 -1
- package/dist/components/file-upload/file-upload-area.d.ts +4 -2
- package/dist/components/rich-editor/link-bubble.d.ts +3 -1
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area/scroll-bar.d.ts +1 -1
- package/dist/es/alert.js +2 -2
- package/dist/es/badge.js +6 -3
- package/dist/es/button.js +2 -2
- package/dist/es/checkbox-card.js +3 -3
- package/dist/es/checkbox-label.js +3 -3
- package/dist/es/chunks/alpha-slider.js +1 -1
- package/dist/es/chunks/checkbox.js +5 -5
- package/dist/es/chunks/collapsible-content.js +3 -3
- package/dist/es/chunks/collapsible-trigger.js +3 -3
- package/dist/es/chunks/collapsible.js +4 -4
- package/dist/es/chunks/combobox-anchor.js +4 -4
- package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +3 -3
- package/dist/es/chunks/counter-input.js +7 -7
- package/dist/es/chunks/dropdown-menu-sub.js +4 -4
- package/dist/es/chunks/index.js +1156 -1153
- package/dist/es/chunks/index2.js +3 -3
- package/dist/es/chunks/index3.js +2 -2
- package/dist/es/chunks/index4.js +119 -90
- package/dist/es/chunks/index5.js +4733 -4028
- package/dist/es/chunks/modal-close.js +3 -3
- package/dist/es/chunks/modal-trigger.js +3 -3
- package/dist/es/chunks/modal.js +4 -4
- package/dist/es/chunks/pagination-first.js +4 -4
- package/dist/es/chunks/pagination-item.js +3 -3
- package/dist/es/chunks/pagination-last.js +4 -4
- package/dist/es/chunks/pagination-next.js +4 -4
- package/dist/es/chunks/pagination-previous.js +4 -4
- package/dist/es/chunks/popover.js +4 -4
- package/dist/es/chunks/radio-group-item.js +5 -5
- package/dist/es/chunks/radio-group.js +4 -4
- package/dist/es/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +743 -46
- package/dist/es/chunks/select-group.js +3 -3
- package/dist/es/chunks/select.js +4 -4
- package/dist/es/chunks/sheet-trigger.js +3 -3
- package/dist/es/chunks/sheet.js +4 -4
- package/dist/es/chunks/sidebar-content.js +1 -1
- package/dist/es/chunks/sidebar-element.js +2 -2
- package/dist/es/chunks/sidebar-footer.js +1 -1
- package/dist/es/chunks/sidebar-group-label.js +2 -2
- package/dist/es/chunks/sidebar-group.js +1 -1
- package/dist/es/chunks/sidebar-header.js +1 -1
- package/dist/es/chunks/sidebar-menu-action.js +2 -2
- package/dist/es/chunks/sidebar-menu-badge.js +1 -1
- package/dist/es/chunks/sidebar-menu-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-item.js +1 -1
- package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub-item.js +1 -1
- package/dist/es/chunks/sidebar-menu-sub.js +1 -1
- package/dist/es/chunks/sidebar-menu.js +1 -1
- package/dist/es/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +3 -3
- package/dist/es/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +2 -1
- package/dist/es/chunks/sidebar.js +1 -1
- package/dist/es/chunks/slider.js +7 -7
- package/dist/es/chunks/sonner.js +97 -29
- package/dist/es/chunks/switch.js +5 -5
- package/dist/es/chunks/tinycolor.js +2 -2
- package/dist/es/chunks/tooltip-provider.js +3 -3
- package/dist/es/chunks/tooltip-root.js +4 -4
- package/dist/es/chunks/tooltip-trigger.js +4 -4
- package/dist/es/chunks/tooltip.js +3 -3
- package/dist/es/color-area.js +2 -2
- package/dist/es/color-picker.js +5 -5
- package/dist/es/color-swatch.js +1 -1
- package/dist/es/combobox-empty.js +3 -3
- package/dist/es/combobox-group.js +4 -4
- package/dist/es/combobox-input.js +3 -3
- package/dist/es/combobox-item.js +4 -4
- package/dist/es/combobox-list.js +6 -6
- package/dist/es/combobox-root.js +5 -4
- package/dist/es/combobox-separator.js +3 -3
- package/dist/es/combobox-trigger.js +4 -4
- package/dist/es/combobox.js +4 -3
- package/dist/es/command-group.js +4 -4
- package/dist/es/command-input.js +4 -4
- package/dist/es/command-item.js +4 -4
- package/dist/es/command-list.js +4 -4
- package/dist/es/command-root.js +5 -4
- package/dist/es/command-separator.js +3 -3
- package/dist/es/compact-button.js +2 -2
- package/dist/es/digit-input-group.js +3 -3
- package/dist/es/digit-input-slot.js +4 -4
- package/dist/es/digit-input.js +4 -4
- package/dist/es/dropdown-menu-content.js +5 -5
- package/dist/es/dropdown-menu-group.js +3 -3
- package/dist/es/dropdown-menu-item.js +4 -4
- package/dist/es/dropdown-menu-label.js +4 -4
- package/dist/es/dropdown-menu-separator.js +3 -3
- package/dist/es/dropdown-menu-sub-content.js +5 -5
- package/dist/es/dropdown-menu-sub-trigger.js +4 -4
- package/dist/es/dropdown-menu-trigger.js +4 -4
- package/dist/es/dropdown-menu.js +4 -4
- package/dist/es/extra-settings.js +1 -1
- package/dist/es/fancy-button.js +2 -2
- package/dist/es/file-upload-area.js +1 -1
- package/dist/es/hint-text.js +2 -2
- package/dist/es/hue-slider.js +3 -3
- package/dist/es/index.js +90 -90
- package/dist/es/label.js +3 -3
- package/dist/es/link-bubble.js +1 -1
- package/dist/es/link-button.js +2 -2
- package/dist/es/modal-body.js +1 -1
- package/dist/es/modal-content.js +6 -6
- package/dist/es/modal-footer.js +1 -1
- package/dist/es/modal-header.js +5 -5
- package/dist/es/pagination-content.js +3 -3
- package/dist/es/pagination-ellipsis.js +3 -3
- package/dist/es/pagination.js +4 -4
- package/dist/es/popover-content.js +7 -7
- package/dist/es/popover-trigger.js +3 -3
- package/dist/es/progress-bar.js +4 -4
- package/dist/es/progress-circle.js +4 -4
- package/dist/es/radio-group-card.js +3 -3
- package/dist/es/radio-group-label.js +3 -3
- package/dist/es/rich-editor.js +4 -4
- package/dist/es/scroll-area.js +42 -2
- package/dist/es/scroll-bar.js +8 -15
- package/dist/es/segmented-control-item.js +3 -5
- package/dist/es/segmented-control.js +4 -4
- package/dist/es/select-content.js +6 -6
- package/dist/es/select-icon.js +1 -1
- package/dist/es/select-item.js +5 -5
- package/dist/es/select-label.js +3 -3
- package/dist/es/select-separator.js +3 -3
- package/dist/es/select-trigger.js +4 -4
- package/dist/es/select-value.js +3 -3
- package/dist/es/sheet-close.js +3 -3
- package/dist/es/sheet-content.js +7 -7
- package/dist/es/sheet-description.js +3 -3
- package/dist/es/sheet-footer.js +1 -1
- package/dist/es/sheet-header.js +1 -1
- package/dist/es/sheet-title.js +3 -3
- package/dist/es/sidebar-group-content.js +1 -1
- package/dist/es/sidebar-trigger.js +1 -1
- package/dist/es/social-button.js +2 -2
- package/dist/es/sonner-alert.js +1 -1
- package/dist/es/status-badge.js +1 -1
- package/dist/es/tab-menu-content.js +3 -3
- package/dist/es/tab-menu-item.js +4 -4
- package/dist/es/tab-menu-list.js +3 -3
- package/dist/es/tab-menu.js +4 -4
- package/dist/es/table-body.js +1 -1
- package/dist/es/table-caption.js +1 -1
- package/dist/es/table-cell.js +1 -1
- package/dist/es/table-empty.js +1 -1
- package/dist/es/table-footer.js +1 -1
- package/dist/es/table-head.js +1 -1
- package/dist/es/table-header.js +1 -1
- package/dist/es/table-row.js +1 -1
- package/dist/es/table.js +1 -1
- package/dist/es/tag.js +2 -2
- package/dist/es/text-input-affix.js +1 -1
- package/dist/es/text-input-button.js +1 -1
- package/dist/es/text-input.js +2 -2
- package/dist/es/textarea.js +1 -1
- package/dist/es/tooltip-content.js +7 -7
- package/dist/es/use-sidebar.js +2 -2
- package/package.json +3 -3
- package/src/components/alert/alert.vue +1 -1
- package/src/components/badge/badge.vue +5 -1
- package/src/components/hint-text/hint-text.vue +1 -1
- package/src/components/scroll-area/scroll-area.vue +22 -8
- package/src/components/scroll-area/scroll-bar.vue +33 -17
- package/src/components/scroll-area/stories/scroll-area.stories.ts +184 -0
- package/src/components/tooltip/tooltip-content.vue +1 -0
- package/dist/cjs/chunks/scroll-area.js +0 -41
- package/dist/es/chunks/scroll-area.js +0 -42
package/dist/es/sheet-footer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/sheet-header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/sheet-title.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ag as Bu } from "./chunks/index.js";
|
|
4
4
|
import { r as reactiveOmit } from "./chunks/index2.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const props = __props;
|
|
16
16
|
const delegatedProps = reactiveOmit(props, "class");
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createBlock(unref(
|
|
18
|
+
return openBlock(), createBlock(unref(Bu), mergeProps({
|
|
19
19
|
class: unref(clsx)("celeste-sheet-title", props.class)
|
|
20
20
|
}, unref(delegatedProps)), {
|
|
21
21
|
default: withCtx(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import CompactButton from "./compact-button.js";
|
|
3
3
|
import { useSidebar } from "./use-sidebar.js";
|
|
4
4
|
import { c as clsx } from "./chunks/clsx.js";
|
package/dist/es/social-button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementVNode, createElementBlock, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./chunks/index.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = {
|
package/dist/es/sonner-alert.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, createSlots, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import Alert from "./alert.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/status-badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as _g } from "./chunks/index.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const props = __props;
|
|
18
18
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(unref(
|
|
20
|
+
return openBlock(), createBlock(unref(_g), mergeProps({
|
|
21
21
|
class: unref(clsx)("celeste-tab-menu-content", props.class)
|
|
22
22
|
}, unref(delegatedProps)), {
|
|
23
23
|
default: withCtx(() => [
|
package/dist/es/tab-menu-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, createCommentVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { O as Ot, z as xg } from "./chunks/index.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
7
|
const _hoisted_1 = {
|
|
@@ -20,9 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
setup(__props) {
|
|
21
21
|
const props = __props;
|
|
22
22
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
23
|
-
const forwardedProps =
|
|
23
|
+
const forwardedProps = Ot(delegatedProps);
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createBlock(unref(
|
|
25
|
+
return openBlock(), createBlock(unref(xg), mergeProps(unref(forwardedProps), {
|
|
26
26
|
class: unref(clsx)(
|
|
27
27
|
"celeste-tab-menu-item",
|
|
28
28
|
props.class
|
package/dist/es/tab-menu-list.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { y as wg } from "./chunks/index.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
const props = __props;
|
|
17
17
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(
|
|
19
|
+
return openBlock(), createBlock(unref(wg), mergeProps(unref(delegatedProps), {
|
|
20
20
|
class: unref(clsx)(
|
|
21
21
|
"celeste-tab-menu-list",
|
|
22
22
|
props.class
|
package/dist/es/tab-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { S as Se, x as Cg } from "./chunks/index.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -17,9 +17,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props, { emit: __emit }) {
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emits = __emit;
|
|
20
|
-
const forwarded =
|
|
20
|
+
const forwarded = Se(props, emits);
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createBlock(unref(
|
|
22
|
+
return openBlock(), createBlock(unref(Cg), mergeProps(unref(forwarded), { class: "celeste-tab-menu-root" }), {
|
|
23
23
|
default: withCtx(() => [
|
|
24
24
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25
25
|
]),
|
package/dist/es/table-body.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/table-caption.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/table-cell.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/dist/es/table-empty.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, createElementVNode, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
package/dist/es/table-footer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/table-head.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/table-header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "table-header",
|
package/dist/es/table-row.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/dist/es/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/tag.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, renderSlot, createElementBlock, createCommentVNode, withModifiers, createElementVNode } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./chunks/index.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = ["disabled"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, mergeProps, unref, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
4
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, mergeProps, unref, withCtx, renderSlot } from "vue";
|
|
2
2
|
import Button from "./button.js";
|
|
3
3
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
4
|
import { c as clsx } from "./chunks/clsx.js";
|
package/dist/es/text-input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, computed, useModel,
|
|
1
|
+
import { defineComponent, mergeModels, computed, useModel, createElementBlock, openBlock, normalizeClass, unref, createVNode, withDirectives, withCtx, renderSlot, createElementVNode, mergeProps, vModelDynamic, createBlock } from "vue";
|
|
2
2
|
import { uid } from "./crypto.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { h as O } from "./chunks/index.js";
|
|
5
5
|
import TextInputButton from "./text-input-button.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
package/dist/es/textarea.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel,
|
|
1
|
+
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, normalizeClass, unref, withDirectives, createCommentVNode, createElementVNode, mergeProps, vModelText, toDisplayString } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, renderSlot, toDisplayString } from "vue";
|
|
2
2
|
import CompactButton from "./compact-button.js";
|
|
3
3
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
4
|
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
-
import {
|
|
5
|
+
import { S as Se, aI as qg, aJ as Ug, aK as Gg } from "./chunks/index.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
8
8
|
const _hoisted_1 = { class: "celeste-tooltip-content-box" };
|
|
@@ -45,15 +45,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
const props = __props;
|
|
46
46
|
const emits = __emit;
|
|
47
47
|
const delegated = useDelegatedProps(props, ["class", "size", "variant", "icon", "title", "description", "dismissible", "onDismiss"]);
|
|
48
|
-
const forwarded =
|
|
48
|
+
const forwarded = Se(delegated, emits);
|
|
49
49
|
function handleDismiss() {
|
|
50
50
|
var _a;
|
|
51
51
|
(_a = props.onDismiss) == null ? void 0 : _a.call(props);
|
|
52
52
|
}
|
|
53
53
|
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createBlock(unref(
|
|
54
|
+
return openBlock(), createBlock(unref(qg), { class: "celeste-tooltip-portal" }, {
|
|
55
55
|
default: withCtx(() => [
|
|
56
|
-
createVNode(unref(
|
|
56
|
+
createVNode(unref(Ug), mergeProps(unref(forwarded), {
|
|
57
57
|
size: _ctx.size,
|
|
58
58
|
variant: _ctx.variant,
|
|
59
59
|
class: unref(clsx)("celeste-tooltip-content", props.class)
|
|
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
icon: "i-celeste-close-line",
|
|
75
75
|
onClick: handleDismiss
|
|
76
76
|
})) : createCommentVNode("", true),
|
|
77
|
-
createVNode(unref(
|
|
77
|
+
createVNode(unref(Gg), { "as-child": "" }, {
|
|
78
78
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
79
79
|
createElementVNode("span", { class: "celeste-tooltip-content-arrow" }, null, -1)
|
|
80
80
|
])),
|
|
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
const TooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
92
|
+
const TooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-adcfc2c6"]]);
|
|
93
93
|
export {
|
|
94
94
|
TooltipContent as default
|
|
95
95
|
};
|
package/dist/es/use-sidebar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as te } from "./chunks/index.js";
|
|
2
2
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3
3
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
4
4
|
const SIDEBAR_WIDTH = "17rem";
|
|
5
5
|
const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
6
6
|
const SIDEBAR_WIDTH_ICON = "52px";
|
|
7
7
|
const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8
|
-
const [useSidebar, provideSidebarContext] =
|
|
8
|
+
const [useSidebar, provideSidebarContext] = te("Sidebar");
|
|
9
9
|
export {
|
|
10
10
|
SIDEBAR_COOKIE_MAX_AGE,
|
|
11
11
|
SIDEBAR_COOKIE_NAME,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.75",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"youcan",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"radix-vue": "^1.9.17",
|
|
45
45
|
"tinycolor2": "^1.6.0",
|
|
46
46
|
"vue-sonner": "^2.0.9",
|
|
47
|
-
"@youcan/celeste-
|
|
48
|
-
"@youcan/celeste-
|
|
47
|
+
"@youcan/celeste-icons": "0.6.75",
|
|
48
|
+
"@youcan/celeste-tokens": "0.6.75"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@chromatic-com/storybook": "^4.1.3",
|
|
@@ -40,7 +40,7 @@ export interface BadgeProps {
|
|
|
40
40
|
>
|
|
41
41
|
<i v-if="type === 'dot'" class="dot i-celeste-dot" />
|
|
42
42
|
<i v-if="type === 'leading-icon'" :class="icon" />
|
|
43
|
-
<span v-if="label">{{ label }}</span>
|
|
43
|
+
<span v-if="label" class="celeste-badge-label">{{ label }}</span>
|
|
44
44
|
<i v-if="type === 'trailing-icon'" :class="icon" />
|
|
45
45
|
</div>
|
|
46
46
|
</template>
|
|
@@ -75,6 +75,10 @@ $states: faded, information, warning, error, success, away, feature, verified, h
|
|
|
75
75
|
height: 16px;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
&-label {
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
&:has(i.dot) {
|
|
79
83
|
gap: 0;
|
|
80
84
|
padding-inline-start: var(--spacing-2);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { useDelegatedProps } from '@/composables';
|
|
2
4
|
import clsx from 'clsx';
|
|
3
5
|
import {
|
|
4
6
|
ScrollAreaCorner,
|
|
@@ -6,24 +8,36 @@ import {
|
|
|
6
8
|
type ScrollAreaRootProps,
|
|
7
9
|
ScrollAreaViewport,
|
|
8
10
|
} from 'radix-vue';
|
|
9
|
-
import { computed, type HTMLAttributes } from 'vue';
|
|
10
11
|
import ScrollBar from './scroll-bar.vue';
|
|
11
12
|
|
|
12
13
|
const props = defineProps<ScrollAreaRootProps & { class?: HTMLAttributes['class'] }>();
|
|
13
14
|
|
|
14
|
-
const delegatedProps =
|
|
15
|
-
const { class: _, ...delegated } = props;
|
|
16
|
-
|
|
17
|
-
return delegated;
|
|
18
|
-
});
|
|
15
|
+
const delegatedProps = useDelegatedProps(props, 'class');
|
|
19
16
|
</script>
|
|
20
17
|
|
|
21
18
|
<template>
|
|
22
|
-
<ScrollAreaRoot
|
|
23
|
-
|
|
19
|
+
<ScrollAreaRoot
|
|
20
|
+
v-bind="delegatedProps"
|
|
21
|
+
:class="clsx('celeste-scroll-area', props.class)"
|
|
22
|
+
>
|
|
23
|
+
<ScrollAreaViewport class="celeste-scroll-area-viewport">
|
|
24
24
|
<slot />
|
|
25
25
|
</ScrollAreaViewport>
|
|
26
26
|
<ScrollBar />
|
|
27
|
+
<ScrollBar orientation="horizontal" />
|
|
27
28
|
<ScrollAreaCorner />
|
|
28
29
|
</ScrollAreaRoot>
|
|
29
30
|
</template>
|
|
31
|
+
|
|
32
|
+
<style scoped lang="scss">
|
|
33
|
+
.celeste-scroll-area {
|
|
34
|
+
position: relative;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:deep(.celeste-scroll-area-viewport) {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
border-radius: inherit;
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { useDelegatedProps } from '@/composables';
|
|
2
4
|
import clsx from 'clsx';
|
|
3
5
|
import { ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb } from 'radix-vue';
|
|
4
|
-
import { computed, type HTMLAttributes } from 'vue';
|
|
5
6
|
|
|
6
7
|
const props = withDefaults(defineProps<ScrollAreaScrollbarProps & { class?: HTMLAttributes['class'] }>(), {
|
|
7
8
|
orientation: 'vertical',
|
|
8
9
|
});
|
|
9
10
|
|
|
10
|
-
const delegatedProps =
|
|
11
|
-
const { class: _, ...delegated } = props;
|
|
12
|
-
|
|
13
|
-
return delegated;
|
|
14
|
-
});
|
|
11
|
+
const delegatedProps = useDelegatedProps(props, 'class');
|
|
15
12
|
</script>
|
|
16
13
|
|
|
17
14
|
<template>
|
|
18
15
|
<ScrollAreaScrollbar
|
|
19
16
|
v-bind="delegatedProps"
|
|
20
|
-
:class="
|
|
21
|
-
clsx('flex touch-none select-none transition-colors',
|
|
22
|
-
orientation === 'vertical'
|
|
23
|
-
&& 'h-full w-1.5 border-l border-l-transparent p-px',
|
|
24
|
-
orientation === 'horizontal'
|
|
25
|
-
&& 'h-1.5 flex-col border-t border-t-transparent p-px',
|
|
26
|
-
props.class)"
|
|
17
|
+
:class="clsx('celeste-scroll-bar', props.class)"
|
|
27
18
|
>
|
|
28
|
-
<ScrollAreaThumb class="
|
|
19
|
+
<ScrollAreaThumb class="celeste-scroll-bar-thumb" />
|
|
29
20
|
</ScrollAreaScrollbar>
|
|
30
21
|
</template>
|
|
31
22
|
|
|
32
|
-
<style scoped>
|
|
33
|
-
.
|
|
34
|
-
|
|
23
|
+
<style scoped lang="scss">
|
|
24
|
+
.celeste-scroll-bar {
|
|
25
|
+
--bar-size: 8px;
|
|
26
|
+
|
|
27
|
+
display: flex;
|
|
28
|
+
user-select: none;
|
|
29
|
+
touch-action: none;
|
|
30
|
+
|
|
31
|
+
&[data-orientation='vertical'] {
|
|
32
|
+
width: var(--bar-size);
|
|
33
|
+
height: 100%;
|
|
34
|
+
padding: var(--spacing-2);
|
|
35
|
+
border-inline-start: 1px solid transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-orientation='horizontal'] {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
height: var(--bar-size);
|
|
41
|
+
padding: var(--spacing-2);
|
|
42
|
+
border-block-start: 1px solid transparent;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.celeste-scroll-bar-thumb {
|
|
47
|
+
position: relative;
|
|
48
|
+
flex: 1;
|
|
49
|
+
border-radius: calc(infinity * 1px);
|
|
50
|
+
background-color: var(--color-bg-sub-300);
|
|
35
51
|
}
|
|
36
52
|
</style>
|