@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { f as Xy } from "./index.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "select-group",
|
|
5
5
|
props: {
|
|
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
setup(__props) {
|
|
10
10
|
const props = __props;
|
|
11
11
|
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createBlock(unref(
|
|
12
|
+
return openBlock(), createBlock(unref(Xy), normalizeProps(guardReactiveProps(props)), {
|
|
13
13
|
default: withCtx(() => [
|
|
14
14
|
renderSlot(_ctx.$slots, "default")
|
|
15
15
|
]),
|
package/dist/es/chunks/select.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 "./clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as Se, K as Ky } from "./index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "select",
|
|
7
7
|
props: {
|
|
@@ -21,9 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emits = __emit;
|
|
23
23
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
24
|
-
const forwarded =
|
|
24
|
+
const forwarded = Se(delegatedProps, emits);
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createBlock(unref(
|
|
26
|
+
return openBlock(), createBlock(unref(Ky), mergeProps(unref(forwarded), {
|
|
27
27
|
class: unref(clsx)("celeste-select", props.class)
|
|
28
28
|
}), {
|
|
29
29
|
default: withCtx(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { o as ou } from "./index.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sheet-trigger",
|
|
5
5
|
props: {
|
|
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
setup(__props) {
|
|
10
10
|
const props = __props;
|
|
11
11
|
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createBlock(unref(
|
|
12
|
+
return openBlock(), createBlock(unref(ou), normalizeProps(guardReactiveProps(props)), {
|
|
13
13
|
default: withCtx(() => [
|
|
14
14
|
renderSlot(_ctx.$slots, "default")
|
|
15
15
|
]),
|
package/dist/es/chunks/sheet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { S as Se, n as nu } from "./index.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sheet",
|
|
5
5
|
props: {
|
|
@@ -11,9 +11,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
setup(__props, { emit: __emit }) {
|
|
12
12
|
const props = __props;
|
|
13
13
|
const emits = __emit;
|
|
14
|
-
const forwarded =
|
|
14
|
+
const forwarded = Se(props, emits);
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(), createBlock(unref(
|
|
16
|
+
return openBlock(), createBlock(unref(nu), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
17
17
|
default: withCtx(() => [
|
|
18
18
|
renderSlot(_ctx.$slots, "default")
|
|
19
19
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-content",
|
|
@@ -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 "./clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./index.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "sidebar-element",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-footer",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./index.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "sidebar-group-label",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-group",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-header",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./index.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "sidebar-menu-action",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeClass, unref } from "vue";
|
|
2
2
|
import Badge from "../badge.js";
|
|
3
3
|
import { c as clsx } from "./clsx.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -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 "./clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./index.js";
|
|
4
4
|
import { r as reactiveOmit } from "./index2.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
...{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-menu-item",
|
|
@@ -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 "./clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as O } from "./index.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "sidebar-menu-sub-button",
|
|
6
6
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-menu-sub-item",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-menu-sub",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "sidebar-menu",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { defineComponent, ref, computed,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot } from "vue";
|
|
3
|
+
import { provideSidebarContext, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH, SIDEBAR_COOKIE_NAME, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_KEYBOARD_SHORTCUT } from "../use-sidebar.js";
|
|
4
|
+
import { u as useMediaQuery, a as useVModel, b as useEventListener, d as defaultDocument } from "./index3.js";
|
|
5
5
|
import { c as clsx } from "./clsx.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "sidebar-provider",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeClass } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -75,6 +75,7 @@ import "../config.js";
|
|
|
75
75
|
/* empty css */
|
|
76
76
|
/* empty css */
|
|
77
77
|
/* empty css */
|
|
78
|
+
/* empty css */
|
|
78
79
|
/* empty css */
|
|
79
80
|
/* empty css */
|
|
80
81
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, unref, openBlock,
|
|
1
|
+
import { defineComponent, createBlock, createElementBlock, unref, openBlock, mergeProps, withCtx, createVNode, normalizeStyle, createElementVNode, renderSlot, normalizeClass } from "vue";
|
|
2
2
|
import { c as clsx } from "./clsx.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import SheetContent from "../sheet-content.js";
|
package/dist/es/chunks/slider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as Se, i as og, s as sg, r as rg, l as lg } from "./index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "slider",
|
|
7
7
|
props: {
|
|
@@ -24,20 +24,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const props = __props;
|
|
25
25
|
const emits = __emit;
|
|
26
26
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
27
|
-
const forwarded =
|
|
27
|
+
const forwarded = Se(delegatedProps, emits);
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createBlock(unref(
|
|
29
|
+
return openBlock(), createBlock(unref(og), mergeProps(unref(forwarded), {
|
|
30
30
|
class: unref(clsx)("celeste-slider", props.class)
|
|
31
31
|
}), {
|
|
32
32
|
default: withCtx(() => [
|
|
33
|
-
createVNode(unref(
|
|
33
|
+
createVNode(unref(sg), { class: "celeste-slider-track" }, {
|
|
34
34
|
default: withCtx(() => [
|
|
35
|
-
createVNode(unref(
|
|
35
|
+
createVNode(unref(rg), { class: "celeste-slider-range" })
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}),
|
|
39
39
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (_, key) => {
|
|
40
|
-
return openBlock(), createBlock(unref(
|
|
40
|
+
return openBlock(), createBlock(unref(lg), {
|
|
41
41
|
key,
|
|
42
42
|
class: "celeste-slider-thumb"
|
|
43
43
|
});
|
package/dist/es/chunks/sonner.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { defineComponent, useAttrs, ref, computed, watchEffect, nextTick,
|
|
4
|
+
import { isVNode, defineComponent, useAttrs, ref, computed, watchEffect, nextTick, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, unref, renderList, mergeProps, createBlock, normalizeStyle, normalizeClass, withCtx, renderSlot, createVNode, onMounted, onBeforeUnmount, watch, resolveDynamicComponent, normalizeProps, createTextVNode, toDisplayString, guardReactiveProps } from "vue";
|
|
5
5
|
let toastsCounter = 1;
|
|
6
6
|
var Observer = class {
|
|
7
7
|
constructor() {
|
|
@@ -215,8 +215,33 @@ var Observer = class {
|
|
|
215
215
|
});
|
|
216
216
|
__publicField(this, "custom", (component, data) => {
|
|
217
217
|
const id = (data == null ? void 0 : data.id) || toastsCounter++;
|
|
218
|
-
this.
|
|
218
|
+
const alreadyExists = this.toasts.find((toast$1) => {
|
|
219
|
+
return toast$1.id === id;
|
|
220
|
+
});
|
|
221
|
+
const dismissible = (data == null ? void 0 : data.dismissible) === void 0 ? true : data.dismissible;
|
|
222
|
+
if (this.dismissedToasts.has(id)) this.dismissedToasts.delete(id);
|
|
223
|
+
if (alreadyExists) this.toasts = this.toasts.map((toast$1) => {
|
|
224
|
+
if (toast$1.id === id) {
|
|
225
|
+
this.publish({
|
|
226
|
+
...toast$1,
|
|
227
|
+
component,
|
|
228
|
+
dismissible,
|
|
229
|
+
id,
|
|
230
|
+
...data
|
|
231
|
+
});
|
|
232
|
+
return {
|
|
233
|
+
...toast$1,
|
|
234
|
+
component,
|
|
235
|
+
dismissible,
|
|
236
|
+
id,
|
|
237
|
+
...data
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
return toast$1;
|
|
241
|
+
});
|
|
242
|
+
else this.addToast({
|
|
219
243
|
component,
|
|
244
|
+
dismissible,
|
|
220
245
|
id,
|
|
221
246
|
...data
|
|
222
247
|
});
|
|
@@ -341,9 +366,14 @@ const _hoisted_1$7 = [
|
|
|
341
366
|
"data-invert",
|
|
342
367
|
"data-swipe-out",
|
|
343
368
|
"data-swipe-direction",
|
|
344
|
-
"data-expanded"
|
|
369
|
+
"data-expanded",
|
|
370
|
+
"data-testid"
|
|
371
|
+
];
|
|
372
|
+
const _hoisted_2$2 = [
|
|
373
|
+
"aria-label",
|
|
374
|
+
"data-disabled",
|
|
375
|
+
"data-close-button-position"
|
|
345
376
|
];
|
|
346
|
-
const _hoisted_2$2 = ["aria-label", "data-disabled"];
|
|
347
377
|
var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
348
378
|
__name: "Toast",
|
|
349
379
|
props: {
|
|
@@ -356,6 +386,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
356
386
|
heights: {},
|
|
357
387
|
gap: {},
|
|
358
388
|
position: {},
|
|
389
|
+
closeButtonPosition: {},
|
|
359
390
|
visibleToasts: {},
|
|
360
391
|
expandByDefault: { type: Boolean },
|
|
361
392
|
closeButton: { type: Boolean },
|
|
@@ -459,6 +490,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
459
490
|
(_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
|
|
460
491
|
}
|
|
461
492
|
function onPointerDown(event) {
|
|
493
|
+
if (event.button === 2) return;
|
|
462
494
|
if (disabled.value || !dismissible.value) return;
|
|
463
495
|
dragStartTime.value = /* @__PURE__ */ new Date();
|
|
464
496
|
offsetBeforeRemove.value = offset.value;
|
|
@@ -570,7 +602,11 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
570
602
|
});
|
|
571
603
|
});
|
|
572
604
|
watch(() => props.toast.delete, (value) => {
|
|
573
|
-
|
|
605
|
+
var _a, _b;
|
|
606
|
+
if (value !== void 0 && value) {
|
|
607
|
+
deleteToast();
|
|
608
|
+
(_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
|
|
609
|
+
}
|
|
574
610
|
}, { deep: true });
|
|
575
611
|
function handleDragEnd() {
|
|
576
612
|
swiping.value = false;
|
|
@@ -603,6 +639,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
603
639
|
"data-swipe-out": swipeOut.value,
|
|
604
640
|
"data-swipe-direction": swipeOutDirection.value,
|
|
605
641
|
"data-expanded": Boolean(_ctx.expanded || _ctx.expandByDefault && mounted.value),
|
|
642
|
+
"data-testid": _ctx.toast.testId,
|
|
606
643
|
style: normalizeStyle({
|
|
607
644
|
"--index": _ctx.index,
|
|
608
645
|
"--toasts-before": _ctx.index,
|
|
@@ -621,9 +658,13 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
621
658
|
"aria-label": _ctx.closeButtonAriaLabel || "Close toast",
|
|
622
659
|
"data-disabled": disabled.value,
|
|
623
660
|
"data-close-button": "true",
|
|
661
|
+
"data-close-button-position": _ctx.closeButtonPosition,
|
|
624
662
|
class: normalizeClass(unref(cn)((_g = _ctx.classes) == null ? void 0 : _g.closeButton, (_i = (_h = _ctx.toast) == null ? void 0 : _h.classes) == null ? void 0 : _i.closeButton)),
|
|
625
663
|
onClick: handleCloseToast
|
|
626
|
-
}, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, {
|
|
664
|
+
}, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, {
|
|
665
|
+
onCloseToast: handleCloseToast,
|
|
666
|
+
isPaused: _ctx.$props.expanded || _ctx.$props.interacting || unref(isDocumentHidden)
|
|
667
|
+
}), null, 16, ["isPaused"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
627
668
|
toastType.value !== "default" || _ctx.toast.icon || _ctx.toast.promise ? (openBlock(), createElementBlock("div", {
|
|
628
669
|
key: 0,
|
|
629
670
|
"data-icon": "",
|
|
@@ -796,8 +837,7 @@ const _hoisted_2 = [
|
|
|
796
837
|
"data-theme",
|
|
797
838
|
"data-rich-colors",
|
|
798
839
|
"data-y-position",
|
|
799
|
-
"data-x-position"
|
|
800
|
-
"data-lifted"
|
|
840
|
+
"data-x-position"
|
|
801
841
|
];
|
|
802
842
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
803
843
|
function getDocumentDirection() {
|
|
@@ -812,12 +852,14 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
812
852
|
inheritAttrs: false,
|
|
813
853
|
__name: "Toaster",
|
|
814
854
|
props: {
|
|
855
|
+
id: {},
|
|
815
856
|
invert: {
|
|
816
857
|
type: Boolean,
|
|
817
858
|
default: false
|
|
818
859
|
},
|
|
819
860
|
theme: { default: "light" },
|
|
820
861
|
position: { default: "bottom-right" },
|
|
862
|
+
closeButtonPosition: { default: "top-left" },
|
|
821
863
|
hotkey: { default: () => ["altKey", "KeyT"] },
|
|
822
864
|
richColors: {
|
|
823
865
|
type: Boolean,
|
|
@@ -848,11 +890,15 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
848
890
|
const props = __props;
|
|
849
891
|
const attrs = useAttrs();
|
|
850
892
|
const toasts = ref([]);
|
|
893
|
+
const filteredToastsById = computed(() => {
|
|
894
|
+
if (props.id) return toasts.value.filter((toast$1) => toast$1.toasterId === props.id);
|
|
895
|
+
return toasts.value.filter((toast$1) => !toast$1.toasterId);
|
|
896
|
+
});
|
|
851
897
|
function filteredToasts(pos, index) {
|
|
852
|
-
return
|
|
898
|
+
return filteredToastsById.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
|
|
853
899
|
}
|
|
854
900
|
const possiblePositions = computed(() => {
|
|
855
|
-
const posList =
|
|
901
|
+
const posList = filteredToastsById.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
|
|
856
902
|
return posList.length > 0 ? Array.from(new Set([props.position].concat(posList))) : [props.position];
|
|
857
903
|
});
|
|
858
904
|
const toastsByPosition = computed(() => {
|
|
@@ -863,8 +909,13 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
863
909
|
return result;
|
|
864
910
|
});
|
|
865
911
|
const heights = ref([]);
|
|
866
|
-
const expanded = ref(
|
|
912
|
+
const expanded = ref({});
|
|
867
913
|
const interacting = ref(false);
|
|
914
|
+
watchEffect(() => {
|
|
915
|
+
possiblePositions.value.forEach((pos) => {
|
|
916
|
+
if (!(pos in expanded.value)) expanded.value[pos] = false;
|
|
917
|
+
});
|
|
918
|
+
});
|
|
868
919
|
const actualTheme = ref(props.theme !== "system" ? props.theme : typeof window !== "undefined" ? window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "light");
|
|
869
920
|
const listRef = ref(null);
|
|
870
921
|
const lastFocusedElementRef = ref(null);
|
|
@@ -964,18 +1015,24 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
964
1015
|
}
|
|
965
1016
|
});
|
|
966
1017
|
watchEffect(() => {
|
|
967
|
-
if (toasts.value.length <= 1) expanded.value
|
|
1018
|
+
if (toasts.value.length <= 1) Object.keys(expanded.value).forEach((pos) => {
|
|
1019
|
+
expanded.value[pos] = false;
|
|
1020
|
+
});
|
|
968
1021
|
});
|
|
969
1022
|
watchEffect((onInvalidate) => {
|
|
970
1023
|
function handleKeyDown(event) {
|
|
971
1024
|
const isHotkeyPressed = props.hotkey.every((key) => event[key] || event.code === key);
|
|
972
1025
|
const listRefItem = Array.isArray(listRef.value) ? listRef.value[0] : listRef.value;
|
|
973
1026
|
if (isHotkeyPressed) {
|
|
974
|
-
|
|
1027
|
+
possiblePositions.value.forEach((pos) => {
|
|
1028
|
+
expanded.value[pos] = true;
|
|
1029
|
+
});
|
|
975
1030
|
listRefItem == null ? void 0 : listRefItem.focus();
|
|
976
1031
|
}
|
|
977
1032
|
const isItemActive = document.activeElement === listRef.value || (listRefItem == null ? void 0 : listRefItem.contains(document.activeElement));
|
|
978
|
-
if (event.code === "Escape" && isItemActive)
|
|
1033
|
+
if (event.code === "Escape" && isItemActive) possiblePositions.value.forEach((pos) => {
|
|
1034
|
+
expanded.value[pos] = false;
|
|
1035
|
+
});
|
|
979
1036
|
}
|
|
980
1037
|
if (!isClient) return;
|
|
981
1038
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -983,14 +1040,22 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
983
1040
|
document.removeEventListener("keydown", handleKeyDown);
|
|
984
1041
|
});
|
|
985
1042
|
});
|
|
986
|
-
function handleMouseEnter() {
|
|
987
|
-
|
|
1043
|
+
function handleMouseEnter(event) {
|
|
1044
|
+
const target = event.currentTarget;
|
|
1045
|
+
const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
|
|
1046
|
+
expanded.value[position] = true;
|
|
988
1047
|
}
|
|
989
|
-
function handleMouseLeave() {
|
|
990
|
-
if (!interacting.value)
|
|
1048
|
+
function handleMouseLeave(event) {
|
|
1049
|
+
if (!interacting.value) {
|
|
1050
|
+
const target = event.currentTarget;
|
|
1051
|
+
const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
|
|
1052
|
+
expanded.value[position] = false;
|
|
1053
|
+
}
|
|
991
1054
|
}
|
|
992
1055
|
function handleDragEnd() {
|
|
993
|
-
expanded.value
|
|
1056
|
+
Object.keys(expanded.value).forEach((pos) => {
|
|
1057
|
+
expanded.value[pos] = false;
|
|
1058
|
+
});
|
|
994
1059
|
}
|
|
995
1060
|
function handlePointerUp() {
|
|
996
1061
|
interacting.value = false;
|
|
@@ -1030,7 +1095,6 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1030
1095
|
"data-rich-colors": _ctx.richColors,
|
|
1031
1096
|
"data-y-position": pos.split("-")[0],
|
|
1032
1097
|
"data-x-position": pos.split("-")[1],
|
|
1033
|
-
"data-lifted": expanded.value && toasts.value.length > 1 && !_ctx.expand,
|
|
1034
1098
|
style: {
|
|
1035
1099
|
"--front-toast-height": `${((_a = heights.value[0]) == null ? void 0 : _a.height) || 0}px`,
|
|
1036
1100
|
"--width": `${unref(TOAST_WIDTH)}px`,
|
|
@@ -1039,7 +1103,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1039
1103
|
...unref(attrs).style,
|
|
1040
1104
|
...unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
|
|
1041
1105
|
}
|
|
1042
|
-
}, _ctx.$attrs, {
|
|
1106
|
+
}, { ref_for: true }, _ctx.$attrs, {
|
|
1043
1107
|
onBlur,
|
|
1044
1108
|
onFocus,
|
|
1045
1109
|
onMouseenter: handleMouseEnter,
|
|
@@ -1049,7 +1113,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1049
1113
|
onPointerdown: onPointerDown,
|
|
1050
1114
|
onPointerup: handlePointerUp
|
|
1051
1115
|
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredToasts(pos, index), (toast$1, idx) => {
|
|
1052
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1116
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
1053
1117
|
return openBlock(), createBlock(Toast_default, {
|
|
1054
1118
|
key: toast$1.id,
|
|
1055
1119
|
heights: heights.value,
|
|
@@ -1065,16 +1129,17 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1065
1129
|
closeButton: ((_d = _ctx.toastOptions) == null ? void 0 : _d.closeButton) ?? _ctx.closeButton,
|
|
1066
1130
|
interacting: interacting.value,
|
|
1067
1131
|
position: pos,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1132
|
+
closeButtonPosition: ((_e = _ctx.toastOptions) == null ? void 0 : _e.closeButtonPosition) ?? _ctx.closeButtonPosition,
|
|
1133
|
+
style: normalizeStyle((_f = _ctx.toastOptions) == null ? void 0 : _f.style),
|
|
1134
|
+
unstyled: (_g = _ctx.toastOptions) == null ? void 0 : _g.unstyled,
|
|
1135
|
+
classes: (_h = _ctx.toastOptions) == null ? void 0 : _h.classes,
|
|
1136
|
+
cancelButtonStyle: (_i = _ctx.toastOptions) == null ? void 0 : _i.cancelButtonStyle,
|
|
1137
|
+
actionButtonStyle: (_j = _ctx.toastOptions) == null ? void 0 : _j.actionButtonStyle,
|
|
1138
|
+
"close-button-aria-label": (_k = _ctx.toastOptions) == null ? void 0 : _k.closeButtonAriaLabel,
|
|
1074
1139
|
toasts: toastsByPosition.value[pos],
|
|
1075
1140
|
expandByDefault: _ctx.expand,
|
|
1076
1141
|
gap: _ctx.gap,
|
|
1077
|
-
expanded: expanded.value,
|
|
1142
|
+
expanded: expanded.value[pos] || false,
|
|
1078
1143
|
swipeDirections: props.swipeDirections,
|
|
1079
1144
|
"onUpdate:heights": updateHeights,
|
|
1080
1145
|
"onUpdate:height": updateHeight,
|
|
@@ -1101,6 +1166,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1101
1166
|
"closeButton",
|
|
1102
1167
|
"interacting",
|
|
1103
1168
|
"position",
|
|
1169
|
+
"closeButtonPosition",
|
|
1104
1170
|
"style",
|
|
1105
1171
|
"unstyled",
|
|
1106
1172
|
"classes",
|
|
@@ -1122,9 +1188,11 @@ var Toaster_default = Toaster_vue_vue_type_script_setup_true_lang_default;
|
|
|
1122
1188
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1123
1189
|
__name: "sonner",
|
|
1124
1190
|
props: {
|
|
1191
|
+
id: {},
|
|
1125
1192
|
invert: { type: Boolean },
|
|
1126
1193
|
theme: {},
|
|
1127
1194
|
position: {},
|
|
1195
|
+
closeButtonPosition: {},
|
|
1128
1196
|
hotkey: {},
|
|
1129
1197
|
richColors: { type: Boolean },
|
|
1130
1198
|
expand: { type: Boolean },
|
package/dist/es/chunks/switch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as Se, m as gg, p as bg } from "./index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "switch",
|
|
7
7
|
props: {
|
|
@@ -21,13 +21,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emits = __emit;
|
|
23
23
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
24
|
-
const forwarded =
|
|
24
|
+
const forwarded = Se(delegatedProps, emits);
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createBlock(unref(
|
|
26
|
+
return openBlock(), createBlock(unref(gg), mergeProps(unref(forwarded), {
|
|
27
27
|
class: unref(clsx)("celeste-switch", props.class)
|
|
28
28
|
}), {
|
|
29
29
|
default: withCtx(() => [
|
|
30
|
-
createVNode(unref(
|
|
30
|
+
createVNode(unref(bg), { class: "celeste-switch-thumb" })
|
|
31
31
|
]),
|
|
32
32
|
_: 1
|
|
33
33
|
}, 16, ["class"]);
|
|
@@ -822,7 +822,7 @@ function convertDecimalToHex(d) {
|
|
|
822
822
|
function convertHexToDecimal(h) {
|
|
823
823
|
return parseIntFromHex(h) / 255;
|
|
824
824
|
}
|
|
825
|
-
var matchers = function() {
|
|
825
|
+
var matchers = (function() {
|
|
826
826
|
var CSS_INTEGER = "[-\\+]?\\d+%?";
|
|
827
827
|
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
|
828
828
|
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
|
@@ -841,7 +841,7 @@ var matchers = function() {
|
|
|
841
841
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
842
842
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
843
843
|
};
|
|
844
|
-
}();
|
|
844
|
+
})();
|
|
845
845
|
function isValidCSSUnit(color) {
|
|
846
846
|
return !!matchers.CSS_UNIT.exec(color);
|
|
847
847
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { H as Hg } from "./index.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "tooltip-provider",
|
|
5
5
|
props: {
|
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const props = __props;
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(), createBlock(unref(
|
|
16
|
+
return openBlock(), createBlock(unref(Hg), normalizeProps(guardReactiveProps(props)), {
|
|
17
17
|
default: withCtx(() => [
|
|
18
18
|
renderSlot(_ctx.$slots, "default")
|
|
19
19
|
]),
|