@youcan/celeste 0.6.40 → 0.6.42

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 (84) hide show
  1. package/dist/celeste.css +123 -9
  2. package/dist/cjs/chunks/index.js +211 -0
  3. package/dist/cjs/chunks/radio-group-item.vue_vue_type_style_index_0_lang.js +34 -0
  4. package/dist/cjs/chunks/radio-group.vue_vue_type_style_index_0_lang.js +39 -0
  5. package/dist/cjs/index.js +9 -0
  6. package/dist/cjs/modal-content.js +1 -1
  7. package/dist/cjs/radio-group-item.js +3 -0
  8. package/dist/cjs/radio-group.js +3 -0
  9. package/dist/cjs/tag.js +39 -0
  10. package/dist/components/index.d.ts +2 -0
  11. package/dist/components/radio-group/index.d.ts +4 -0
  12. package/dist/components/radio-group/radio-group-item.d.ts +7 -0
  13. package/dist/components/radio-group/radio-group.d.ts +26 -0
  14. package/dist/components/tag/index.d.ts +2 -0
  15. package/dist/components/tag/tag.d.ts +26 -0
  16. package/dist/es/button.js +1 -1
  17. package/dist/es/checkbox-label.js +1 -1
  18. package/dist/es/chunks/index.js +275 -64
  19. package/dist/es/chunks/index3.js +1 -1
  20. package/dist/es/chunks/radio-group-item.vue_vue_type_style_index_0_lang.js +35 -0
  21. package/dist/es/chunks/radio-group.vue_vue_type_style_index_0_lang.js +40 -0
  22. package/dist/es/combobox-group.js +1 -1
  23. package/dist/es/combobox-input.js +1 -1
  24. package/dist/es/combobox-item.js +1 -1
  25. package/dist/es/combobox-list.js +1 -1
  26. package/dist/es/combobox-root.js +1 -1
  27. package/dist/es/combobox-separator.js +1 -1
  28. package/dist/es/combobox-trigger.js +1 -1
  29. package/dist/es/command-group.js +1 -1
  30. package/dist/es/command-input.js +1 -1
  31. package/dist/es/command-item.js +1 -1
  32. package/dist/es/command-list.js +1 -1
  33. package/dist/es/command-root.js +1 -1
  34. package/dist/es/command-separator.js +1 -1
  35. package/dist/es/compact-button.js +1 -1
  36. package/dist/es/digit-input-group.js +1 -1
  37. package/dist/es/digit-input-slot.js +1 -1
  38. package/dist/es/digit-input.js +1 -1
  39. package/dist/es/dropdown-menu-content.js +1 -1
  40. package/dist/es/dropdown-menu-group.js +1 -1
  41. package/dist/es/dropdown-menu-item.js +1 -1
  42. package/dist/es/dropdown-menu-label.js +1 -1
  43. package/dist/es/dropdown-menu-separator.js +1 -1
  44. package/dist/es/dropdown-menu-sub-content.js +1 -1
  45. package/dist/es/dropdown-menu-sub-trigger.js +1 -1
  46. package/dist/es/dropdown-menu-trigger.js +1 -1
  47. package/dist/es/dropdown-menu.js +1 -1
  48. package/dist/es/dropdown.js +1 -1
  49. package/dist/es/fancy-button.js +1 -1
  50. package/dist/es/index.js +27 -18
  51. package/dist/es/label.js +1 -1
  52. package/dist/es/link-button.js +1 -1
  53. package/dist/es/modal-content.js +2 -2
  54. package/dist/es/modal-header.js +1 -1
  55. package/dist/es/popover-content.js +1 -1
  56. package/dist/es/popover-trigger.js +1 -1
  57. package/dist/es/progress-bar.js +1 -1
  58. package/dist/es/progress-circle.js +1 -1
  59. package/dist/es/radio-group-item.js +4 -0
  60. package/dist/es/radio-group.js +4 -0
  61. package/dist/es/segmented-control-item.js +1 -1
  62. package/dist/es/segmented-control.js +1 -1
  63. package/dist/es/select-content.js +1 -1
  64. package/dist/es/select-item.js +1 -1
  65. package/dist/es/select-trigger.js +1 -1
  66. package/dist/es/select-value.js +1 -1
  67. package/dist/es/social-button.js +1 -1
  68. package/dist/es/tab-menu-content.js +1 -1
  69. package/dist/es/tab-menu-item.js +1 -1
  70. package/dist/es/tab-menu-list.js +1 -1
  71. package/dist/es/tab-menu.js +1 -1
  72. package/dist/es/tag.js +40 -0
  73. package/dist/es/text-input.js +1 -1
  74. package/dist/es/tooltip.js +1 -1
  75. package/package.json +3 -4
  76. package/src/components/index.ts +2 -0
  77. package/src/components/modal/modal-content.vue +2 -2
  78. package/src/components/radio-group/index.ts +5 -0
  79. package/src/components/radio-group/radio-group-item.vue +83 -0
  80. package/src/components/radio-group/radio-group.vue +30 -0
  81. package/src/components/radio-group/stories/radio-group.stories.ts +48 -0
  82. package/src/components/tag/index.ts +2 -0
  83. package/src/components/tag/stories/tag.stories.ts +162 -0
  84. package/src/components/tag/tag.vue +125 -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 { A as At, a6 as hh } from "./chunks/index.js";
4
+ import { A as At, a9 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 { aa 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,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, 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, a2 as ih, a8 as Ch } from "./chunks/index.js";
4
+ import { x as xe, a5 as ih, ab as Ch } 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-sub-content",
@@ -1,7 +1,7 @@
1
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, a9 as wh } from "./chunks/index.js";
4
+ import { A as At, ac as wh } 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,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { A as At, aa as rh } from "./chunks/index.js";
2
+ import { A as At, ad as rh } 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: "dropdown-menu-trigger",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
- import { ab as sh } from "./chunks/index.js";
3
+ import { ae as sh } 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: "dropdown-menu",
@@ -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 { 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";
3
+ import { a0 as Hv, j as jv, a2 as Uv, _ as Xv, $ as Jv, a1 as tm, Z as Zv, P as qv, U 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";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./chunks/clsx.js";
3
- import { f as O } from "./chunks/index.js";
3
+ import { g 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 _sfc_main = /* @__PURE__ */ defineComponent({
package/dist/es/index.js CHANGED
@@ -49,27 +49,30 @@ import PopoverTrigger from "./popover-trigger.js";
49
49
  import { _ as _sfc_main$7 } from "./chunks/popover.js";
50
50
  import progressBar from "./progress-bar.js";
51
51
  import progressCircle from "./progress-circle.js";
52
+ import { _ as _sfc_main$9 } from "./chunks/radio-group-item.vue_vue_type_style_index_0_lang.js";
53
+ import { _ as _sfc_main$8 } from "./chunks/radio-group.vue_vue_type_style_index_0_lang.js";
52
54
  import richEditor from "./rich-editor.js";
53
- import { _ as _sfc_main$8 } from "./chunks/scroll-area.js";
55
+ import { _ as _sfc_main$a } from "./chunks/scroll-area.js";
54
56
  import segmentedControlItem from "./segmented-control-item.js";
55
57
  import segmentedControl from "./segmented-control.js";
56
58
  import SelectContent from "./select-content.js";
57
- import { _ as _sfc_main$a } from "./chunks/select-group.js";
59
+ import { _ as _sfc_main$c } from "./chunks/select-group.js";
58
60
  import SelectIcon from "./select-icon.js";
59
61
  import SelectItem from "./select-item.js";
60
62
  import selectLabel from "./select-label.js";
61
63
  import selectSeparator from "./select-separator.js";
62
64
  import SelectTrigger from "./select-trigger.js";
63
65
  import SelectValue from "./select-value.js";
64
- import { _ as _sfc_main$9 } from "./chunks/select.js";
65
- import { _ as _sfc_main$b } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
66
+ import { _ as _sfc_main$b } from "./chunks/select.js";
67
+ import { _ as _sfc_main$d } from "./chunks/slider.vue_vue_type_style_index_0_lang.js";
66
68
  import SonnerAlert from "./sonner-alert.js";
67
- import { _ as _sfc_main$c, t as toast$1 } from "./chunks/sonner.js";
68
- import { _ as _sfc_main$d } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
69
+ import { _ as _sfc_main$e, t as toast$1 } from "./chunks/sonner.js";
70
+ import { _ as _sfc_main$f } from "./chunks/switch.vue_vue_type_style_index_0_lang.js";
69
71
  import tabMenuContent from "./tab-menu-content.js";
70
72
  import tabMenuItem from "./tab-menu-item.js";
71
73
  import tabMenuList from "./tab-menu-list.js";
72
74
  import tabMenu from "./tab-menu.js";
75
+ import tag from "./tag.js";
73
76
  import TextInputAffix from "./text-input-affix.js";
74
77
  import TextInputButton from "./text-input-button.js";
75
78
  import TextInput from "./text-input.js";
@@ -129,29 +132,32 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
129
132
  PopoverTrigger,
130
133
  ProgressBar: progressBar,
131
134
  ProgressCircle: progressCircle,
135
+ RadioGroup: _sfc_main$8,
136
+ RadioGroupItem: _sfc_main$9,
132
137
  RichEditor: richEditor,
133
- ScrollArea: _sfc_main$8,
138
+ ScrollArea: _sfc_main$a,
134
139
  SegmentedControl: segmentedControl,
135
140
  SegmentedControlItem: segmentedControlItem,
136
- Select: _sfc_main$9,
141
+ Select: _sfc_main$b,
137
142
  SelectContent,
138
- SelectGroup: _sfc_main$a,
143
+ SelectGroup: _sfc_main$c,
139
144
  SelectIcon,
140
145
  SelectItem,
141
146
  SelectLabel: selectLabel,
142
147
  SelectSeparator: selectSeparator,
143
148
  SelectTrigger,
144
149
  SelectValue,
145
- Slider: _sfc_main$b,
150
+ Slider: _sfc_main$d,
146
151
  SocialButton: socialButton,
147
- Sonner: _sfc_main$c,
152
+ Sonner: _sfc_main$e,
148
153
  SonnerAlert,
149
154
  StatusBadge: statusBadge,
150
- Switch: _sfc_main$d,
155
+ Switch: _sfc_main$f,
151
156
  TabMenu: tabMenu,
152
157
  TabMenuContent: tabMenuContent,
153
158
  TabMenuItem: tabMenuItem,
154
159
  TabMenuList: tabMenuList,
160
+ Tag: tag,
155
161
  TextInput,
156
162
  TextInputAffix,
157
163
  TextInputButton,
@@ -268,29 +274,32 @@ export {
268
274
  PopoverTrigger,
269
275
  progressBar as ProgressBar,
270
276
  progressCircle as ProgressCircle,
277
+ _sfc_main$8 as RadioGroup,
278
+ _sfc_main$9 as RadioGroupItem,
271
279
  richEditor as RichEditor,
272
- _sfc_main$8 as ScrollArea,
280
+ _sfc_main$a as ScrollArea,
273
281
  segmentedControl as SegmentedControl,
274
282
  segmentedControlItem as SegmentedControlItem,
275
- _sfc_main$9 as Select,
283
+ _sfc_main$b as Select,
276
284
  SelectContent,
277
- _sfc_main$a as SelectGroup,
285
+ _sfc_main$c as SelectGroup,
278
286
  SelectIcon,
279
287
  SelectItem,
280
288
  selectLabel as SelectLabel,
281
289
  selectSeparator as SelectSeparator,
282
290
  SelectTrigger,
283
291
  SelectValue,
284
- _sfc_main$b as Slider,
292
+ _sfc_main$d as Slider,
285
293
  socialButton as SocialButton,
286
- _sfc_main$c as Sonner,
294
+ _sfc_main$e as Sonner,
287
295
  SonnerAlert,
288
296
  statusBadge as StatusBadge,
289
- _sfc_main$d as Switch,
297
+ _sfc_main$f as Switch,
290
298
  tabMenu as TabMenu,
291
299
  tabMenuContent as TabMenuContent,
292
300
  tabMenuItem as TabMenuItem,
293
301
  tabMenuList as TabMenuList,
302
+ tag as Tag,
294
303
  TextInput,
295
304
  TextInputAffix,
296
305
  TextInputButton,
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 { J as Oh } from "./chunks/index.js";
5
+ import { L 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, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./chunks/clsx.js";
3
- import { f as O } from "./chunks/index.js";
3
+ import { g 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 _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, Transition, mergeProps, 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, ac as Dv, ad as Eu, ae as xu } from "./chunks/index.js";
4
+ import { x as xe, af as Dv, ag as Eu, ah as xu } 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: "modal-content",
@@ -43,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  };
44
44
  }
45
45
  });
46
- const modalContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bdcae06b"]]);
46
+ const modalContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cec34aac"]]);
47
47
  export {
48
48
  modalContent as default
49
49
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, withCtx, toDisplayString, createVNode } from "vue";
2
2
  import CompactButton from "./compact-button.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { af as Pu, ag as Du, a as Gl } from "./chunks/index.js";
4
+ import { ai as Pu, aj as Du, a as Gl } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = ["data-dismissible", "data-alignment", "data-type"];
7
7
  const _hoisted_2 = {
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, m
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 { x as xe, ah as bs, ai as ws, aj as _s, ak as xs } from "./chunks/index.js";
5
+ import { x as xe, ak as bs, al as ws, am as _s, an as xs } from "./chunks/index.js";
6
6
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
7
7
  const _hoisted_1 = ["data-icon-size"];
8
8
  const _hoisted_2 = { class: "celeste-popover-title" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { al as gs } from "./chunks/index.js";
2
+ import { ao as gs } 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: "popover-trigger",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useCssVars, computed, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, renderSlot, createTextVNode, createVNode, unref, mergeProps, withCtx } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { am as By, an as Iy } from "./chunks/index.js";
4
+ import { ap as By, aq as Iy } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = ["data-layout"];
7
7
  const _hoisted_2 = {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useCssVars, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { am as By, an as Iy } from "./chunks/index.js";
4
+ import { ap as By, aq as Iy } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = ["width", "height"];
7
7
  const _hoisted_2 = ["cx", "cy", "r"];
@@ -0,0 +1,4 @@
1
+ import { _ as _sfc_main } from "./chunks/radio-group-item.vue_vue_type_style_index_0_lang.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as _sfc_main } from "./chunks/radio-group.vue_vue_type_style_index_0_lang.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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 sv } from "./chunks/index.js";
4
+ import { J 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, H as lv } from "./chunks/index.js";
4
+ import { x as xe, I 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, withCtx, createVNode, mergeProps, 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, ao as zy, ap as Ky, aq as Xy } from "./chunks/index.js";
4
+ import { x as xe, ar as zy, as as Ky, at as Xy } 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: "select-content",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, createElementVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { ar as jy, as as Yy, at as Uy } from "./chunks/index.js";
4
+ import { au as jy, av as Yy, aw as Uy } 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: "select-item",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createVNode, createElementVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { au as Ly, av as eg } from "./chunks/index.js";
4
+ import { ax as Ly, ay as eg } 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: "select-trigger",
@@ -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 { aw as Qy } from "./chunks/index.js";
4
+ import { az as Qy } 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: "select-value",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode } from "vue";
2
2
  import { c as clsx } from "./chunks/clsx.js";
3
- import { f as O } from "./chunks/index.js";
3
+ import { g 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 = {
@@ -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 { E as bg } from "./chunks/index.js";
4
+ import { H 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, D as Cg } from "./chunks/index.js";
4
+ import { A as At, E 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 { C as gg } from "./chunks/index.js";
4
+ import { D 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, B as yg } from "./chunks/index.js";
2
+ import { x as xe, C 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/dist/es/tag.js ADDED
@@ -0,0 +1,40 @@
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, withModifiers, createElementVNode, createCommentVNode } from "vue";
2
+ import { c as clsx } from "./chunks/clsx.js";
3
+ import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
4
+ const _hoisted_1 = ["data-tag-variant", "aria-disabled"];
5
+ const _hoisted_2 = ["disabled"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "tag",
8
+ props: {
9
+ variant: { default: "stroke" },
10
+ class: {},
11
+ dismissable: { type: Boolean, default: false },
12
+ disabled: { type: Boolean }
13
+ },
14
+ emits: ["dismiss"],
15
+ setup(__props) {
16
+ const props = __props;
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", {
19
+ class: normalizeClass(unref(clsx)("celeste-tag", props.class)),
20
+ "data-tag-variant": _ctx.variant,
21
+ "aria-disabled": _ctx.disabled
22
+ }, [
23
+ renderSlot(_ctx.$slots, "default", {}, void 0, true),
24
+ _ctx.dismissable ? (openBlock(), createElementBlock("button", {
25
+ key: 0,
26
+ disabled: _ctx.disabled,
27
+ class: "celeste-tag-dismiss-button",
28
+ "aria-label": "dismiss",
29
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("dismiss"), ["prevent", "stop"]))
30
+ }, _cache[1] || (_cache[1] = [
31
+ createElementVNode("i", { class: "i-celeste-close-line" }, null, -1)
32
+ ]), 8, _hoisted_2)) : createCommentVNode("", true)
33
+ ], 10, _hoisted_1);
34
+ };
35
+ }
36
+ });
37
+ const tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0011e3b8"]]);
38
+ export {
39
+ tag as default
40
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, mergeModels, computed, useModel, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, renderSlot, withDirectives, 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 { f as O } from "./chunks/index.js";
4
+ import { g as O } from "./chunks/index.js";
5
5
  import TextInputButton from "./text-input-button.js";
6
6
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
7
7
  const _hoisted_1 = ["for", "size", "has-error"];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, renderSlot, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
2
  import CompactButton from "./compact-button.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { x as xe, ax as Lg, ay as zg, az as Kg, aA as jg, aB as Hg, aC as Wg } from "./chunks/index.js";
4
+ import { x as xe, aA as Lg, aB as zg, aC as Kg, aD as jg, aE as Hg, aF as Wg } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = { class: "celeste-tooltip-content-box" };
7
7
  const _hoisted_2 = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/celeste",
3
3
  "type": "module",
4
- "version": "0.6.40",
4
+ "version": "0.6.42",
5
5
  "author": "YouCan <tech@youcan.shop>",
6
6
  "keywords": [
7
7
  "youcan",
@@ -42,11 +42,10 @@
42
42
  "@vueuse/core": "^13.6.0",
43
43
  "clsx": "^2.1.1",
44
44
  "radix-vue": "^1.9.12",
45
- "storybook-rtl-addon": "^0.3.3",
46
45
  "tinycolor2": "^1.6.0",
47
46
  "vue-sonner": "^2.0.2",
48
- "@youcan/celeste-icons": "0.6.40",
49
- "@youcan/celeste-tokens": "0.6.40"
47
+ "@youcan/celeste-icons": "0.6.42",
48
+ "@youcan/celeste-tokens": "0.6.42"
50
49
  },
51
50
  "devDependencies": {
52
51
  "@chromatic-com/storybook": "^4.0.0",
@@ -12,6 +12,7 @@ export * from './label';
12
12
  export * from './modal';
13
13
  export * from './popover';
14
14
  export * from './progress';
15
+ export * from './radio-group';
15
16
  export * from './rich-editor';
16
17
  export * from './scroll-area';
17
18
  export * from './segmented-control';
@@ -20,6 +21,7 @@ export * from './slider';
20
21
  export * from './sonner';
21
22
  export * from './switch';
22
23
  export * from './tab-menu';
24
+ export * from './tag';
23
25
  export * from './text-input';
24
26
  export * from './textarea';
25
27
  export * from './tooltip';
@@ -41,13 +41,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
41
41
  .celeste-modal-content {
42
42
  position: fixed;
43
43
  z-index: 51;
44
+ top: 50%;
45
+ left: 50%;
44
46
  border: 1px solid var(--color-stroke-soft-200);
45
47
  border-radius: var(--radius-20);
46
48
  background: var(--color-bg-white-0);
47
49
  box-shadow: var(--shadow-regular-md);
48
50
  translate: -50% -50%;
49
- inset-block-start: 50%;
50
- inset-inline-start: 50%;
51
51
  }
52
52
 
53
53
  .fade-enter-active,
@@ -0,0 +1,5 @@
1
+ export * from './radio-group-item.vue';
2
+ export { default as RadioGroupItem } from './radio-group-item.vue';
3
+
4
+ export * from './radio-group.vue';
5
+ export { default as RadioGroup } from './radio-group.vue';
@@ -0,0 +1,83 @@
1
+ <script setup lang="ts">
2
+ import type { HTMLAttributes } from 'vue';
3
+ import { useDelegatedProps } from '@/composables/use-delegated-props';
4
+ import clsx from 'clsx';
5
+ import { RadioGroupIndicator, RadioGroupItem, type RadioGroupItemProps, useForwardPropsEmits } from 'radix-vue';
6
+
7
+ const props = defineProps<RadioGroupItemProps & { class?: HTMLAttributes['class'] }>();
8
+ const delegatedProps = useDelegatedProps(props, 'class');
9
+ const forwarded = useForwardPropsEmits(delegatedProps);
10
+ </script>
11
+
12
+ <template>
13
+ <RadioGroupItem
14
+ v-bind="forwarded"
15
+ :class="clsx('celeste-radio-item', props.class)"
16
+ >
17
+ <RadioGroupIndicator class="celeste-radio-indicator" />
18
+ </RadioGroupItem>
19
+ </template>
20
+
21
+ <style lang="scss">
22
+ .celeste-radio-item {
23
+ --celeste-radio-border: var(--color-stroke-soft-200);
24
+
25
+ all: unset;
26
+ box-sizing: border-box;
27
+ flex-shrink: 0;
28
+ width: 16px;
29
+ height: 16px;
30
+ padding: var(--spacing-0);
31
+ transition: box-shadow var(--animation-extra-fast) ease-out;
32
+ border-radius: var(--radius-full);
33
+ background-color: var(--color-bg-white-0);
34
+ box-shadow:
35
+ inset 0 0 0 1.5px var(--celeste-radio-border),
36
+ var(--shadow-regular-xs);
37
+ cursor: pointer;
38
+
39
+ &:hover:not([data-disabled]) {
40
+ --celeste-radio-border: var(--color-stroke-sub-300);
41
+ }
42
+
43
+ &:focus:not([data-disabled]) {
44
+ --celeste-radio-border: var(--color-primary-base);
45
+
46
+ outline: none;
47
+ }
48
+
49
+ &[data-disabled] {
50
+ background-color: var(--color-bg-soft-200);
51
+ pointer-events: none;
52
+ }
53
+
54
+ &[data-state='checked']:not([data-disabled]) {
55
+ --celeste-radio-border: transparent;
56
+
57
+ background-color: var(--color-primary-base);
58
+
59
+ &:hover,
60
+ &:focus {
61
+ background-color: var(--color-primary-darker);
62
+ }
63
+ }
64
+ }
65
+
66
+ .celeste-radio-indicator {
67
+ display: flex;
68
+ position: relative;
69
+ align-items: center;
70
+ justify-content: center;
71
+ width: 100%;
72
+ height: 100%;
73
+
74
+ &::after {
75
+ content: '';
76
+ display: block;
77
+ width: 8px;
78
+ height: 8px;
79
+ border-radius: var(--radius-full);
80
+ background-color: var(--color-static-white);
81
+ }
82
+ }
83
+ </style>