@youcan/celeste 0.6.33 → 0.6.34

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.
Files changed (58) hide show
  1. package/dist/celeste.css +206 -235
  2. package/dist/cjs/dropdown-menu-content.js +52 -2
  3. package/dist/cjs/dropdown-menu-item.js +13 -25
  4. package/dist/cjs/dropdown-menu-sub-content.js +49 -2
  5. package/dist/cjs/dropdown-menu-sub-trigger.js +43 -2
  6. package/dist/cjs/dropdown-menu-trigger.js +2 -2
  7. package/dist/cjs/dropdown.js +1 -2
  8. package/dist/cjs/index.js +9 -9
  9. package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +1 -0
  10. package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +1 -0
  11. package/dist/es/checkbox-label.js +1 -1
  12. package/dist/es/chunks/index.js +32 -32
  13. package/dist/es/chunks/index2.js +1 -1
  14. package/dist/es/combobox-group.js +1 -1
  15. package/dist/es/combobox-input.js +1 -1
  16. package/dist/es/combobox-item.js +1 -1
  17. package/dist/es/combobox-list.js +1 -1
  18. package/dist/es/combobox-root.js +1 -1
  19. package/dist/es/combobox-separator.js +1 -1
  20. package/dist/es/combobox-trigger.js +1 -1
  21. package/dist/es/command-group.js +1 -1
  22. package/dist/es/command-input.js +1 -1
  23. package/dist/es/command-item.js +1 -1
  24. package/dist/es/command-list.js +1 -1
  25. package/dist/es/command-root.js +1 -1
  26. package/dist/es/command-separator.js +1 -1
  27. package/dist/es/dropdown-menu-content.js +52 -2
  28. package/dist/es/dropdown-menu-group.js +1 -1
  29. package/dist/es/dropdown-menu-item.js +15 -27
  30. package/dist/es/dropdown-menu-label.js +1 -1
  31. package/dist/es/dropdown-menu-separator.js +1 -1
  32. package/dist/es/dropdown-menu-sub-content.js +49 -2
  33. package/dist/es/dropdown-menu-sub-trigger.js +43 -2
  34. package/dist/es/dropdown-menu-trigger.js +2 -2
  35. package/dist/es/dropdown.js +2 -3
  36. package/dist/es/index.js +42 -42
  37. package/dist/es/label.js +1 -1
  38. package/dist/es/scroll-bar.js +1 -1
  39. package/dist/es/segmented-control-item.js +1 -1
  40. package/dist/es/segmented-control.js +1 -1
  41. package/dist/es/tab-menu-content.js +1 -1
  42. package/dist/es/tab-menu-item.js +1 -1
  43. package/dist/es/tab-menu-list.js +1 -1
  44. package/dist/es/tab-menu.js +1 -1
  45. package/package.json +3 -3
  46. package/src/components/dropdown/dropdown.vue +0 -1
  47. package/src/components/dropdown-menu/dropdown-menu-content.vue +29 -20
  48. package/src/components/dropdown-menu/dropdown-menu-item.vue +8 -62
  49. package/src/components/dropdown-menu/dropdown-menu-sub-content.vue +32 -21
  50. package/src/components/dropdown-menu/dropdown-menu-sub-trigger.vue +30 -6
  51. package/src/components/dropdown-menu/dropdown-menu-trigger.vue +6 -20
  52. package/src/components/dropdown-menu/stories/dropdown-menu.stories.ts +150 -54
  53. package/dist/cjs/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -51
  54. package/dist/cjs/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -49
  55. package/dist/cjs/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -32
  56. package/dist/es/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -52
  57. package/dist/es/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -50
  58. package/dist/es/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -33
@@ -1,18 +1,17 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, renderSlot, toDisplayString, createElementBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, renderSlot, createCommentVNode, createElementVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { A as At, a5 as ch } from "./chunks/index.js";
4
+ import { A as At, a3 as ch } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
- const _hoisted_1 = { class: "celeste-dropdown-menu-item-prefix" };
7
- const _hoisted_2 = { class: "celeste-dropdown-menu-item-body" };
8
- const _hoisted_3 = { class: "celeste-dropdown-menu-item-text" };
9
- const _hoisted_4 = ["title"];
10
- const _hoisted_5 = ["title"];
11
- const _hoisted_6 = {
6
+ const _hoisted_1 = {
12
7
  key: 0,
13
- class: "celeste-dropdown-menu-item-description"
8
+ class: "celeste-dropdown-menu-item-prefix"
9
+ };
10
+ const _hoisted_2 = { class: "celeste-dropdown-menu-item-body" };
11
+ const _hoisted_3 = {
12
+ key: 1,
13
+ class: "celeste-dropdown-menu-item-suffix"
14
14
  };
15
- const _hoisted_7 = { class: "celeste-dropdown-menu-item-suffix" };
16
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
16
  __name: "dropdown-menu-item",
18
17
  props: {
@@ -37,33 +36,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
36
  )
38
37
  }), {
39
38
  default: withCtx(() => [
40
- createElementVNode("div", _hoisted_1, [
39
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [
41
40
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
42
- ]),
41
+ ])) : createCommentVNode("", true),
43
42
  createElementVNode("div", _hoisted_2, [
44
- createElementVNode("div", _hoisted_3, [
45
- createElementVNode("span", {
46
- class: "celeste-dropdown-menu-item-label",
47
- title: _ctx.label
48
- }, toDisplayString(_ctx.label), 9, _hoisted_4),
49
- _ctx.sublabel ? (openBlock(), createElementBlock("span", {
50
- key: 0,
51
- title: _ctx.sublabel,
52
- class: "celeste-dropdown-menu-item-sublabel"
53
- }, toDisplayString(_ctx.sublabel), 9, _hoisted_5)) : createCommentVNode("", true)
54
- ]),
55
- _ctx.description ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true)
43
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
56
44
  ]),
57
- createElementVNode("div", _hoisted_7, [
45
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3, [
58
46
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
59
- ])
47
+ ])) : createCommentVNode("", true)
60
48
  ]),
61
49
  _: 3
62
50
  }, 16, ["class"]);
63
51
  };
64
52
  }
65
53
  });
66
- const dropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6a0291c"]]);
54
+ const dropdownMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b374fad1"]]);
67
55
  export {
68
56
  dropdownMenuItem as default
69
57
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { A as At, a6 as hh } from "./chunks/index.js";
4
+ import { A as At, a4 as hh } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "dropdown-menu-label",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { a7 as ph } from "./chunks/index.js";
4
+ import { a5 as ph } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "dropdown-menu-separator",
@@ -1,4 +1,51 @@
1
- import { _ as _sfc_main } from "./chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js";
1
+ import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, renderSlot } from "vue";
2
+ import { useDelegatedProps } from "./use-delegated-props.js";
3
+ import { c as clsx } from "./chunks/clsx.js";
4
+ import { x as xe, a0 as ih, a6 as Ch } from "./chunks/index.js";
5
+ import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "dropdown-menu-sub-content",
8
+ props: {
9
+ forceMount: { type: Boolean },
10
+ loop: { type: Boolean },
11
+ sideOffset: {},
12
+ alignOffset: {},
13
+ avoidCollisions: { type: Boolean },
14
+ collisionBoundary: {},
15
+ collisionPadding: {},
16
+ arrowPadding: {},
17
+ sticky: {},
18
+ hideWhenDetached: { type: Boolean },
19
+ updatePositionStrategy: {},
20
+ prioritizePosition: { type: Boolean },
21
+ asChild: { type: Boolean },
22
+ as: {},
23
+ class: {}
24
+ },
25
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
26
+ setup(__props, { emit: __emit }) {
27
+ const props = __props;
28
+ const emits = __emit;
29
+ const delegatedProps = useDelegatedProps(props, "class");
30
+ const forwarded = xe(delegatedProps, emits);
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(unref(ih), null, {
33
+ default: withCtx(() => [
34
+ createVNode(unref(Ch), mergeProps(unref(forwarded), {
35
+ class: unref(clsx)(props.class, "celeste-dropdown-menu-sub-content")
36
+ }), {
37
+ default: withCtx(() => [
38
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
39
+ ]),
40
+ _: 3
41
+ }, 16, ["class"])
42
+ ]),
43
+ _: 3
44
+ });
45
+ };
46
+ }
47
+ });
48
+ const dropdownMenuSubContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ba978953"]]);
2
49
  export {
3
- _sfc_main as default
50
+ dropdownMenuSubContent as default
4
51
  };
@@ -1,4 +1,45 @@
1
- import { _ as _sfc_main } from "./chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js";
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, renderSlot, createCommentVNode, createElementVNode } from "vue";
2
+ import { useDelegatedProps } from "./use-delegated-props.js";
3
+ import { c as clsx } from "./chunks/clsx.js";
4
+ import { A as At, a7 as wh } from "./chunks/index.js";
5
+ import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "celeste-dropdown-menu-sub-prefix"
9
+ };
10
+ const _hoisted_2 = { class: "celeste-dropdown-menu-sub-body" };
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "dropdown-menu-sub-trigger",
13
+ props: {
14
+ disabled: { type: Boolean },
15
+ textValue: {},
16
+ asChild: { type: Boolean },
17
+ as: {},
18
+ class: {}
19
+ },
20
+ setup(__props) {
21
+ const props = __props;
22
+ const delegatedProps = useDelegatedProps(props, "class");
23
+ const forwardedProps = At(delegatedProps);
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createBlock(unref(wh), mergeProps(unref(forwardedProps), {
26
+ class: unref(clsx)(props.class, "celeste-dropdown-menu-sub-trigger")
27
+ }), {
28
+ default: withCtx(() => [
29
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [
30
+ renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
31
+ ])) : createCommentVNode("", true),
32
+ createElementVNode("div", _hoisted_2, [
33
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
34
+ ]),
35
+ _cache[0] || (_cache[0] = createElementVNode("i", { class: "i-celeste-arrow-right-s-line" }, null, -1))
36
+ ]),
37
+ _: 3
38
+ }, 16, ["class"]);
39
+ };
40
+ }
41
+ });
42
+ const dropdownMenuSubTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-44257601"]]);
2
43
  export {
3
- _sfc_main as default
44
+ dropdownMenuSubTrigger as default
4
45
  };
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const props = __props;
13
13
  const forwardedProps = At(props);
14
14
  return (_ctx, _cache) => {
15
- return openBlock(), createBlock(unref(rh), mergeProps({ class: "celeste-dropdown-menu-trigger" }, unref(forwardedProps)), {
15
+ return openBlock(), createBlock(unref(rh), mergeProps({ class: "celeste-dropdown-menu-trigger" }, unref(forwardedProps), { as: "div" }), {
16
16
  default: withCtx(() => [
17
17
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
18
18
  ]),
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  };
22
22
  }
23
23
  });
24
- const dropdownMenuTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d81106e4"]]);
24
+ const dropdownMenuTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-003a2030"]]);
25
25
  export {
26
26
  dropdownMenuTrigger as default
27
27
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, mergeModels, useModel, ref, computed, watch, openBlock, createElementBlock, withKeys, createVNode, unref, withCtx, normalizeClass, createElementVNode, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps, toDisplayString, createBlock, createSlots, Fragment, renderList } from "vue";
2
2
  import { c as clsx } from "./chunks/clsx.js";
3
- import { a1 as Hv, j as jv, a3 as Uv, $ as Xv, a0 as Jv, a2 as tm, Z as Zv, T as qv, X as Qv } from "./chunks/index.js";
3
+ import { U as Hv, j as jv, $ as Uv, X as Xv, T as Jv, _ as tm, Z as Zv, L as qv, R as Qv } from "./chunks/index.js";
4
4
  import Badge from "./badge.js";
5
5
  import TextInput from "./text-input.js";
6
6
  import DropdownItem from "./dropdown-item.js";
@@ -191,7 +191,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
191
  }),
192
192
  !_ctx.disabled ? (openBlock(), createBlock(unref(Xv), {
193
193
  key: 0,
194
- "force-mount": "",
195
194
  dismissable: "",
196
195
  "avoid-collisions": true,
197
196
  class: normalizeClass(["celeste-dropdown-content", unref(clsx)(
@@ -286,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
285
  };
287
286
  }
288
287
  });
289
- const dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ef0e6e7"]]);
288
+ const dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-13b7b76a"]]);
290
289
  export {
291
290
  dropdown as default
292
291
  };
package/dist/es/index.js CHANGED
@@ -22,47 +22,47 @@ import { _ as _sfc_main$2 } from "./chunks/content-divider.vue_vue_type_style_in
22
22
  import contextMenuItem from "./context-menu-item.js";
23
23
  import DropdownItem from "./dropdown-item.js";
24
24
  import dropdown from "./dropdown.js";
25
- import { _ as _sfc_main$3 } from "./chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js";
25
+ import dropdownMenuContent from "./dropdown-menu-content.js";
26
26
  import dropdownMenuGroup from "./dropdown-menu-group.js";
27
27
  import dropdownMenuItem from "./dropdown-menu-item.js";
28
28
  import dropdownMenuLabel from "./dropdown-menu-label.js";
29
29
  import dropdownMenuSeparator from "./dropdown-menu-separator.js";
30
- import { _ as _sfc_main$5 } from "./chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js";
31
- import { _ as _sfc_main$6 } from "./chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js";
32
- import { _ as _sfc_main$4 } from "./chunks/dropdown-menu-sub.js";
30
+ import dropdownMenuSubContent from "./dropdown-menu-sub-content.js";
31
+ import dropdownMenuSubTrigger from "./dropdown-menu-sub-trigger.js";
32
+ import { _ as _sfc_main$3 } from "./chunks/dropdown-menu-sub.js";
33
33
  import dropdownMenuTrigger from "./dropdown-menu-trigger.js";
34
34
  import dropdownMenu from "./dropdown-menu.js";
35
35
  import hintText from "./hint-text.js";
36
36
  import Label from "./label.js";
37
37
  import modalBody from "./modal-body.js";
38
- import { _ as _sfc_main$8 } from "./chunks/modal-close.js";
38
+ import { _ as _sfc_main$5 } from "./chunks/modal-close.js";
39
39
  import modalContent from "./modal-content.js";
40
40
  import modalFooter from "./modal-footer.js";
41
41
  import modalHeader from "./modal-header.js";
42
- import { _ as _sfc_main$9 } from "./chunks/modal-trigger.js";
43
- import { _ as _sfc_main$7 } from "./chunks/modal.js";
42
+ import { _ as _sfc_main$6 } from "./chunks/modal-trigger.js";
43
+ import { _ as _sfc_main$4 } from "./chunks/modal.js";
44
44
  import PopoverContent from "./popover-content.js";
45
45
  import PopoverTrigger from "./popover-trigger.js";
46
- import { _ as _sfc_main$a } from "./chunks/popover.js";
46
+ import { _ as _sfc_main$7 } from "./chunks/popover.js";
47
47
  import progressBar from "./progress-bar.js";
48
48
  import progressCircle from "./progress-circle.js";
49
49
  import richEditor from "./rich-editor.js";
50
- import { _ as _sfc_main$b } from "./chunks/scroll-area.js";
50
+ import { _ as _sfc_main$8 } from "./chunks/scroll-area.js";
51
51
  import segmentedControlItem from "./segmented-control-item.js";
52
52
  import segmentedControl from "./segmented-control.js";
53
53
  import SelectContent from "./select-content.js";
54
- import { _ as _sfc_main$d } from "./chunks/select-group.js";
54
+ import { _ as _sfc_main$a } from "./chunks/select-group.js";
55
55
  import SelectIcon from "./select-icon.js";
56
56
  import SelectItem from "./select-item.js";
57
57
  import selectLabel from "./select-label.js";
58
58
  import selectSeparator from "./select-separator.js";
59
59
  import SelectTrigger from "./select-trigger.js";
60
60
  import SelectValue from "./select-value.js";
61
- import { _ as _sfc_main$c } from "./chunks/select.js";
62
- import { _ as _sfc_main$e } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
61
+ import { _ as _sfc_main$9 } from "./chunks/select.js";
62
+ import { _ as _sfc_main$b } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
63
63
  import SonnerAlert from "./sonner-alert.js";
64
- import { _ as _sfc_main$f, t as toast$1 } from "./chunks/sonner.js";
65
- import { _ as _sfc_main$g } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
64
+ import { _ as _sfc_main$c, t as toast$1 } from "./chunks/sonner.js";
65
+ import { _ as _sfc_main$d } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
66
66
  import tabMenuContent from "./tab-menu-content.js";
67
67
  import tabMenuItem from "./tab-menu-item.js";
68
68
  import tabMenuList from "./tab-menu-list.js";
@@ -98,50 +98,50 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
98
98
  Dropdown: dropdown,
99
99
  DropdownItem,
100
100
  DropdownMenu: dropdownMenu,
101
- DropdownMenuContent: _sfc_main$3,
101
+ DropdownMenuContent: dropdownMenuContent,
102
102
  DropdownMenuGroup: dropdownMenuGroup,
103
103
  DropdownMenuItem: dropdownMenuItem,
104
104
  DropdownMenuLabel: dropdownMenuLabel,
105
105
  DropdownMenuSeparator: dropdownMenuSeparator,
106
- DropdownMenuSub: _sfc_main$4,
107
- DropdownMenuSubContent: _sfc_main$5,
108
- DropdownMenuSubTrigger: _sfc_main$6,
106
+ DropdownMenuSub: _sfc_main$3,
107
+ DropdownMenuSubContent: dropdownMenuSubContent,
108
+ DropdownMenuSubTrigger: dropdownMenuSubTrigger,
109
109
  DropdownMenuTrigger: dropdownMenuTrigger,
110
110
  FancyButton: fancyButton,
111
111
  HintText: hintText,
112
112
  Label,
113
113
  LinkButton,
114
- Modal: _sfc_main$7,
114
+ Modal: _sfc_main$4,
115
115
  ModalBody: modalBody,
116
- ModalClose: _sfc_main$8,
116
+ ModalClose: _sfc_main$5,
117
117
  ModalContent: modalContent,
118
118
  ModalFooter: modalFooter,
119
119
  ModalHeader: modalHeader,
120
- ModalTrigger: _sfc_main$9,
121
- Popover: _sfc_main$a,
120
+ ModalTrigger: _sfc_main$6,
121
+ Popover: _sfc_main$7,
122
122
  PopoverContent,
123
123
  PopoverTrigger,
124
124
  ProgressBar: progressBar,
125
125
  ProgressCircle: progressCircle,
126
126
  RichEditor: richEditor,
127
- ScrollArea: _sfc_main$b,
127
+ ScrollArea: _sfc_main$8,
128
128
  SegmentedControl: segmentedControl,
129
129
  SegmentedControlItem: segmentedControlItem,
130
- Select: _sfc_main$c,
130
+ Select: _sfc_main$9,
131
131
  SelectContent,
132
- SelectGroup: _sfc_main$d,
132
+ SelectGroup: _sfc_main$a,
133
133
  SelectIcon,
134
134
  SelectItem,
135
135
  SelectLabel: selectLabel,
136
136
  SelectSeparator: selectSeparator,
137
137
  SelectTrigger,
138
138
  SelectValue,
139
- Slider: _sfc_main$e,
139
+ Slider: _sfc_main$b,
140
140
  SocialButton: socialButton,
141
- Sonner: _sfc_main$f,
141
+ Sonner: _sfc_main$c,
142
142
  SonnerAlert,
143
143
  StatusBadge: statusBadge,
144
- Switch: _sfc_main$g,
144
+ Switch: _sfc_main$d,
145
145
  TabMenu: tabMenu,
146
146
  TabMenuContent: tabMenuContent,
147
147
  TabMenuItem: tabMenuItem,
@@ -233,51 +233,51 @@ export {
233
233
  dropdown as Dropdown,
234
234
  DropdownItem,
235
235
  dropdownMenu as DropdownMenu,
236
- _sfc_main$3 as DropdownMenuContent,
236
+ dropdownMenuContent as DropdownMenuContent,
237
237
  dropdownMenuGroup as DropdownMenuGroup,
238
238
  dropdownMenuItem as DropdownMenuItem,
239
239
  dropdownMenuLabel as DropdownMenuLabel,
240
240
  dropdownMenuSeparator as DropdownMenuSeparator,
241
- _sfc_main$4 as DropdownMenuSub,
242
- _sfc_main$5 as DropdownMenuSubContent,
243
- _sfc_main$6 as DropdownMenuSubTrigger,
241
+ _sfc_main$3 as DropdownMenuSub,
242
+ dropdownMenuSubContent as DropdownMenuSubContent,
243
+ dropdownMenuSubTrigger as DropdownMenuSubTrigger,
244
244
  dropdownMenuTrigger as DropdownMenuTrigger,
245
245
  fancyButton as FancyButton,
246
246
  HEX_VALIDATION_PATTERN,
247
247
  hintText as HintText,
248
248
  Label,
249
249
  LinkButton,
250
- _sfc_main$7 as Modal,
250
+ _sfc_main$4 as Modal,
251
251
  modalBody as ModalBody,
252
- _sfc_main$8 as ModalClose,
252
+ _sfc_main$5 as ModalClose,
253
253
  modalContent as ModalContent,
254
254
  modalFooter as ModalFooter,
255
255
  modalHeader as ModalHeader,
256
- _sfc_main$9 as ModalTrigger,
257
- _sfc_main$a as Popover,
256
+ _sfc_main$6 as ModalTrigger,
257
+ _sfc_main$7 as Popover,
258
258
  PopoverContent,
259
259
  PopoverTrigger,
260
260
  progressBar as ProgressBar,
261
261
  progressCircle as ProgressCircle,
262
262
  richEditor as RichEditor,
263
- _sfc_main$b as ScrollArea,
263
+ _sfc_main$8 as ScrollArea,
264
264
  segmentedControl as SegmentedControl,
265
265
  segmentedControlItem as SegmentedControlItem,
266
- _sfc_main$c as Select,
266
+ _sfc_main$9 as Select,
267
267
  SelectContent,
268
- _sfc_main$d as SelectGroup,
268
+ _sfc_main$a as SelectGroup,
269
269
  SelectIcon,
270
270
  SelectItem,
271
271
  selectLabel as SelectLabel,
272
272
  selectSeparator as SelectSeparator,
273
273
  SelectTrigger,
274
274
  SelectValue,
275
- _sfc_main$e as Slider,
275
+ _sfc_main$b as Slider,
276
276
  socialButton as SocialButton,
277
- _sfc_main$f as Sonner,
277
+ _sfc_main$c as Sonner,
278
278
  SonnerAlert,
279
279
  statusBadge as StatusBadge,
280
- _sfc_main$g as Switch,
280
+ _sfc_main$d as Switch,
281
281
  tabMenu as TabMenu,
282
282
  tabMenuContent as TabMenuContent,
283
283
  tabMenuItem as TabMenuItem,
package/dist/es/label.js CHANGED
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, re
2
2
  import Tooltip from "./tooltip.js";
3
3
  import { useDelegatedProps } from "./use-delegated-props.js";
4
4
  import { c as clsx } from "./chunks/clsx.js";
5
- import { S as Oh } from "./chunks/index.js";
5
+ import { J as Oh } from "./chunks/index.js";
6
6
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
7
7
  const _hoisted_1 = {
8
8
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
2
2
  import { c as clsx } from "./chunks/clsx.js";
3
- import { R as My, V as Vy } from "./chunks/index.js";
3
+ import { M as My, V as Vy } from "./chunks/index.js";
4
4
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "scroll-bar",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { P as sv } from "./chunks/index.js";
4
+ import { I as sv } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "segmented-control-item",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { x as xe, M as lv } from "./chunks/index.js";
4
+ import { x as xe, H as lv } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "segmented-control",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { L as bg } from "./chunks/index.js";
4
+ import { E as bg } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "tab-menu-content",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { A as At, J as Cg } from "./chunks/index.js";
4
+ import { A as At, D as Cg } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = {
7
7
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, 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 { I as gg } from "./chunks/index.js";
4
+ import { C as gg } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "tab-menu-list",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { x as xe, H as yg } from "./chunks/index.js";
2
+ import { x as xe, B as yg } from "./chunks/index.js";
3
3
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "tab-menu",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/celeste",
3
3
  "type": "module",
4
- "version": "0.6.33",
4
+ "version": "0.6.34",
5
5
  "author": "YouCan <tech@youcan.shop>",
6
6
  "keywords": [
7
7
  "youcan",
@@ -43,8 +43,8 @@
43
43
  "radix-vue": "^1.9.12",
44
44
  "tinycolor2": "^1.6.0",
45
45
  "vue-sonner": "^2.0.2",
46
- "@youcan/celeste-icons": "0.6.33",
47
- "@youcan/celeste-tokens": "0.6.33"
46
+ "@youcan/celeste-icons": "0.6.34",
47
+ "@youcan/celeste-tokens": "0.6.34"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@chromatic-com/storybook": "^4.0.0",
@@ -211,7 +211,6 @@ export interface SelectedType {
211
211
 
212
212
  <ComboboxContent
213
213
  v-if="!disabled"
214
- force-mount
215
214
  dismissable
216
215
  :avoid-collisions="true"
217
216
  class="celeste-dropdown-content"
@@ -27,54 +27,63 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
27
27
  <DropdownMenuPortal>
28
28
  <DropdownMenuContent
29
29
  v-bind="forwarded"
30
- force-mount
31
30
  :class="clsx('celeste-dropdown-menu-content', props.class)"
31
+ :side-offset="8"
32
32
  >
33
33
  <slot />
34
34
  </DropdownMenuContent>
35
35
  </DropdownMenuPortal>
36
36
  </template>
37
37
 
38
- <style lang="scss">
39
- .celeste-dropdown-menu-content {
40
- --dropdown-width: 100%;
38
+ <style lang="scss" scoped>
39
+ :deep(.celeste-dropdown-menu-content) {
40
+ --dropdown-min-width: 250px;
41
41
  --dropdown-max-width: 350px;
42
42
 
43
43
  display: flex;
44
44
  z-index: 50;
45
45
  box-sizing: border-box;
46
46
  flex-direction: column;
47
- width: var(--dropdown-width);
48
- min-width: 300px;
47
+ width: 100%;
48
+ min-width: var(--dropdown-min-width);
49
49
  max-width: var(--dropdown-max-width);
50
- margin-top: var(--spacing-10);
51
50
  padding: var(--spacing-8);
52
51
  overflow: hidden;
53
- transition-property: display, transform, opacity;
54
- transition-duration: var(--animation-fast);
55
- transition-timing-function: ease-out;
52
+ transform-origin: var(--radix-popper-transform-origin);
53
+ animation: var(--animation-fast) ease-out forwards;
56
54
  border: 1px solid var(--color-stroke-soft-200);
57
55
  border-radius: var(--radius-16);
58
56
  background-color: var(--color-bg-white-0);
59
57
  box-shadow: var(--shadow-regular-md);
60
58
  transition-behavior: allow-discrete;
61
59
  gap: var(--spacing-4);
60
+ scale: 0.95;
61
+
62
+ &[data-state='open'] {
63
+ animation-name: open;
64
+ }
62
65
 
63
66
  &[data-state='closed'] {
64
- display: none;
65
- transform: translateY(10px);
66
- opacity: 0;
67
+ animation-name: close;
67
68
  }
69
+ }
68
70
 
69
- &[data-state='open'] {
70
- display: block;
71
- transform: translateY(0);
71
+ @keyframes open {
72
+ to {
72
73
  opacity: 1;
74
+ scale: 1;
75
+ }
76
+ }
77
+
78
+ @keyframes close {
79
+ from {
80
+ opacity: 1;
81
+ scale: 1;
82
+ }
73
83
 
74
- @starting-style {
75
- transform: translateY(10px);
76
- opacity: 0;
77
- }
84
+ to {
85
+ scale: 0.95;
86
+ opacity: 0;
78
87
  }
79
88
  }
80
89
  </style>