@youcan/celeste 0.6.27 → 0.6.29

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 (325) hide show
  1. package/package.json +3 -3
  2. package/src/components/checkbox/checkbox-label.vue +112 -0
  3. package/src/components/checkbox/checkbox.vue +2 -1
  4. package/src/components/checkbox/index.ts +3 -0
  5. package/src/components/checkbox/stories/checkbox.stories.ts +37 -20
  6. package/dist/celeste.css +0 -3996
  7. package/dist/cjs/alert.js +0 -111
  8. package/dist/cjs/alpha-slider.js +0 -3
  9. package/dist/cjs/badge.js +0 -55
  10. package/dist/cjs/button.js +0 -39
  11. package/dist/cjs/checkbox.js +0 -3
  12. package/dist/cjs/chunks/_plugin-vue_export-helper.js +0 -9
  13. package/dist/cjs/chunks/alpha-slider.js +0 -127
  14. package/dist/cjs/chunks/checkbox.vue_vue_type_style_index_0_lang.js +0 -38
  15. package/dist/cjs/chunks/clsx.js +0 -15
  16. package/dist/cjs/chunks/combobox-anchor.js +0 -31
  17. package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +0 -52
  18. package/dist/cjs/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -51
  19. package/dist/cjs/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -49
  20. package/dist/cjs/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -32
  21. package/dist/cjs/chunks/dropdown-menu-sub.js +0 -25
  22. package/dist/cjs/chunks/index.js +0 -9073
  23. package/dist/cjs/chunks/modal-close.js +0 -22
  24. package/dist/cjs/chunks/modal-trigger.js +0 -22
  25. package/dist/cjs/chunks/modal.js +0 -26
  26. package/dist/cjs/chunks/popover.js +0 -26
  27. package/dist/cjs/chunks/scroll-area.js +0 -41
  28. package/dist/cjs/chunks/select-group.js +0 -22
  29. package/dist/cjs/chunks/select.js +0 -38
  30. package/dist/cjs/chunks/slider.vue_vue_type_style_index_0_lang.js +0 -52
  31. package/dist/cjs/chunks/switch.vue_vue_type_style_index_0_lang.js +0 -38
  32. package/dist/cjs/chunks/use-color-model.js +0 -992
  33. package/dist/cjs/color-area.js +0 -175
  34. package/dist/cjs/color-picker.js +0 -514
  35. package/dist/cjs/color-swatch.js +0 -59
  36. package/dist/cjs/color.js +0 -102
  37. package/dist/cjs/combobox-anchor.js +0 -3
  38. package/dist/cjs/combobox-empty.js +0 -32
  39. package/dist/cjs/combobox-group.js +0 -42
  40. package/dist/cjs/combobox-input.js +0 -63
  41. package/dist/cjs/combobox-item.js +0 -109
  42. package/dist/cjs/combobox-list.js +0 -62
  43. package/dist/cjs/combobox-root.js +0 -40
  44. package/dist/cjs/combobox-separator.js +0 -32
  45. package/dist/cjs/combobox-trigger.js +0 -47
  46. package/dist/cjs/combobox.js +0 -233
  47. package/dist/cjs/command-group.js +0 -41
  48. package/dist/cjs/command-input.js +0 -42
  49. package/dist/cjs/command-item.js +0 -34
  50. package/dist/cjs/command-list.js +0 -52
  51. package/dist/cjs/command-root.js +0 -45
  52. package/dist/cjs/command-separator.js +0 -32
  53. package/dist/cjs/compact-button.js +0 -42
  54. package/dist/cjs/content-divider.js +0 -3
  55. package/dist/cjs/context-menu-item.js +0 -134
  56. package/dist/cjs/crypto.js +0 -8
  57. package/dist/cjs/dropdown-item.js +0 -99
  58. package/dist/cjs/dropdown-menu-content.js +0 -3
  59. package/dist/cjs/dropdown-menu-group.js +0 -24
  60. package/dist/cjs/dropdown-menu-item.js +0 -68
  61. package/dist/cjs/dropdown-menu-label.js +0 -31
  62. package/dist/cjs/dropdown-menu-separator.js +0 -25
  63. package/dist/cjs/dropdown-menu-sub-content.js +0 -3
  64. package/dist/cjs/dropdown-menu-sub-trigger.js +0 -3
  65. package/dist/cjs/dropdown-menu-sub.js +0 -3
  66. package/dist/cjs/dropdown-menu-trigger.js +0 -26
  67. package/dist/cjs/dropdown-menu.js +0 -32
  68. package/dist/cjs/dropdown.js +0 -291
  69. package/dist/cjs/fancy-button.js +0 -38
  70. package/dist/cjs/hint-text.js +0 -36
  71. package/dist/cjs/hue-slider.js +0 -133
  72. package/dist/cjs/index.js +0 -217
  73. package/dist/cjs/label.js +0 -55
  74. package/dist/cjs/link-button.js +0 -44
  75. package/dist/cjs/modal-body.js +0 -22
  76. package/dist/cjs/modal-close.js +0 -3
  77. package/dist/cjs/modal-content.js +0 -48
  78. package/dist/cjs/modal-footer.js +0 -22
  79. package/dist/cjs/modal-header.js +0 -81
  80. package/dist/cjs/modal-trigger.js +0 -3
  81. package/dist/cjs/modal.js +0 -3
  82. package/dist/cjs/popover-content.js +0 -104
  83. package/dist/cjs/popover-trigger.js +0 -24
  84. package/dist/cjs/popover.js +0 -3
  85. package/dist/cjs/scroll-area.js +0 -3
  86. package/dist/cjs/scroll-bar.js +0 -39
  87. package/dist/cjs/segmented-control-item.js +0 -41
  88. package/dist/cjs/segmented-control.js +0 -40
  89. package/dist/cjs/select-content.js +0 -61
  90. package/dist/cjs/select-group.js +0 -3
  91. package/dist/cjs/select-icon.js +0 -25
  92. package/dist/cjs/select-item.js +0 -44
  93. package/dist/cjs/select-label.js +0 -32
  94. package/dist/cjs/select-separator.js +0 -26
  95. package/dist/cjs/select-trigger.js +0 -40
  96. package/dist/cjs/select-value.js +0 -31
  97. package/dist/cjs/select.js +0 -3
  98. package/dist/cjs/shims.js +0 -1
  99. package/dist/cjs/slider.js +0 -3
  100. package/dist/cjs/social-button.js +0 -45
  101. package/dist/cjs/status-badge.js +0 -49
  102. package/dist/cjs/switch.js +0 -3
  103. package/dist/cjs/tab-menu-content.js +0 -32
  104. package/dist/cjs/tab-menu-item.js +0 -44
  105. package/dist/cjs/tab-menu-list.js +0 -34
  106. package/dist/cjs/tab-menu.js +0 -32
  107. package/dist/cjs/text-input-affix.js +0 -27
  108. package/dist/cjs/text-input-button.js +0 -31
  109. package/dist/cjs/text-input.js +0 -119
  110. package/dist/cjs/textarea.js +0 -56
  111. package/dist/cjs/tooltip.js +0 -115
  112. package/dist/cjs/use-color-model.js +0 -6
  113. package/dist/cjs/use-delegated-props.js +0 -14
  114. package/dist/cjs/use-user-select.js +0 -39
  115. package/dist/components/alert/alert.d.ts +0 -30
  116. package/dist/components/alert/index.d.ts +0 -2
  117. package/dist/components/badge/badge.d.ts +0 -17
  118. package/dist/components/badge/index.d.ts +0 -4
  119. package/dist/components/badge/status-badge.d.ts +0 -13
  120. package/dist/components/button/button.d.ts +0 -22
  121. package/dist/components/button/compact-button.d.ts +0 -15
  122. package/dist/components/button/fancy-button.d.ts +0 -20
  123. package/dist/components/button/index.d.ts +0 -10
  124. package/dist/components/button/link-button.d.ts +0 -22
  125. package/dist/components/button/social-button.d.ts +0 -10
  126. package/dist/components/checkbox/checkbox.d.ts +0 -11
  127. package/dist/components/checkbox/index.d.ts +0 -2
  128. package/dist/components/color-picker/alpha-slider.d.ts +0 -15
  129. package/dist/components/color-picker/color-area.d.ts +0 -9
  130. package/dist/components/color-picker/color-picker.d.ts +0 -47
  131. package/dist/components/color-picker/color-swatch.d.ts +0 -19
  132. package/dist/components/color-picker/composable/use-color-model.d.ts +0 -7
  133. package/dist/components/color-picker/composable/use-user-select.d.ts +0 -8
  134. package/dist/components/color-picker/hue-slider.d.ts +0 -14
  135. package/dist/components/color-picker/index.d.ts +0 -10
  136. package/dist/components/combobox/combobox-anchor.d.ts +0 -22
  137. package/dist/components/combobox/combobox-empty.d.ts +0 -22
  138. package/dist/components/combobox/combobox-group.d.ts +0 -23
  139. package/dist/components/combobox/combobox-input.d.ts +0 -17
  140. package/dist/components/combobox/combobox-item.d.ts +0 -31
  141. package/dist/components/combobox/combobox-list.d.ts +0 -36
  142. package/dist/components/combobox/combobox-root.d.ts +0 -29
  143. package/dist/components/combobox/combobox-separator.d.ts +0 -22
  144. package/dist/components/combobox/combobox-trigger.d.ts +0 -20
  145. package/dist/components/combobox/combobox.d.ts +0 -42
  146. package/dist/components/combobox/index.d.ts +0 -20
  147. package/dist/components/content-divider/content-divider.d.ts +0 -10
  148. package/dist/components/content-divider/index.d.ts +0 -2
  149. package/dist/components/dropdown/context-menu-item.d.ts +0 -39
  150. package/dist/components/dropdown/dropdown-item.d.ts +0 -30
  151. package/dist/components/dropdown/dropdown.d.ts +0 -55
  152. package/dist/components/dropdown/index.d.ts +0 -6
  153. package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +0 -36
  154. package/dist/components/dropdown-menu/dropdown-menu-group.d.ts +0 -18
  155. package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +0 -26
  156. package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +0 -22
  157. package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -7
  158. package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -38
  159. package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -22
  160. package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +0 -22
  161. package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -18
  162. package/dist/components/dropdown-menu/dropdown-menu.d.ts +0 -18
  163. package/dist/components/dropdown-menu/index.d.ts +0 -20
  164. package/dist/components/hint-text/hint-text.d.ts +0 -11
  165. package/dist/components/hint-text/index.d.ts +0 -2
  166. package/dist/components/index.d.ts +0 -21
  167. package/dist/components/label/index.d.ts +0 -2
  168. package/dist/components/label/label.d.ts +0 -29
  169. package/dist/components/modal/index.d.ts +0 -14
  170. package/dist/components/modal/modal-body.d.ts +0 -21
  171. package/dist/components/modal/modal-close.d.ts +0 -18
  172. package/dist/components/modal/modal-content.d.ts +0 -37
  173. package/dist/components/modal/modal-footer.d.ts +0 -21
  174. package/dist/components/modal/modal-header.d.ts +0 -16
  175. package/dist/components/modal/modal-trigger.d.ts +0 -18
  176. package/dist/components/modal/modal.d.ts +0 -22
  177. package/dist/components/popover/index.d.ts +0 -6
  178. package/dist/components/popover/popover-content.d.ts +0 -41
  179. package/dist/components/popover/popover-trigger.d.ts +0 -18
  180. package/dist/components/popover/popover.d.ts +0 -22
  181. package/dist/components/scroll-area/index.d.ts +0 -2
  182. package/dist/components/scroll-area/scroll-area.d.ts +0 -22
  183. package/dist/components/scroll-area/scroll-bar.d.ts +0 -9
  184. package/dist/components/segmented-control/index.d.ts +0 -4
  185. package/dist/components/segmented-control/segmented-control-item.d.ts +0 -22
  186. package/dist/components/segmented-control/segmented-control.d.ts +0 -26
  187. package/dist/components/select/index.d.ts +0 -18
  188. package/dist/components/select/select-content.d.ts +0 -33
  189. package/dist/components/select/select-group.d.ts +0 -18
  190. package/dist/components/select/select-icon.d.ts +0 -21
  191. package/dist/components/select/select-item.d.ts +0 -22
  192. package/dist/components/select/select-label.d.ts +0 -22
  193. package/dist/components/select/select-separator.d.ts +0 -7
  194. package/dist/components/select/select-trigger.d.ts +0 -28
  195. package/dist/components/select/select-value.d.ts +0 -22
  196. package/dist/components/select/select.d.ts +0 -28
  197. package/dist/components/slider/index.d.ts +0 -2
  198. package/dist/components/slider/slider.d.ts +0 -13
  199. package/dist/components/switch/index.d.ts +0 -2
  200. package/dist/components/switch/switch.d.ts +0 -11
  201. package/dist/components/tab-menu/index.d.ts +0 -8
  202. package/dist/components/tab-menu/tab-menu-content.d.ts +0 -22
  203. package/dist/components/tab-menu/tab-menu-item.d.ts +0 -24
  204. package/dist/components/tab-menu/tab-menu-list.d.ts +0 -22
  205. package/dist/components/tab-menu/tab-menu.d.ts +0 -23
  206. package/dist/components/text-input/index.d.ts +0 -6
  207. package/dist/components/text-input/text-input-affix.d.ts +0 -23
  208. package/dist/components/text-input/text-input-button.d.ts +0 -23
  209. package/dist/components/text-input/text-input.d.ts +0 -32
  210. package/dist/components/textarea/index.d.ts +0 -2
  211. package/dist/components/textarea/textarea.d.ts +0 -22
  212. package/dist/components/tooltip/index.d.ts +0 -2
  213. package/dist/components/tooltip/tooltip.d.ts +0 -29
  214. package/dist/composables/use-delegated-props.d.ts +0 -2
  215. package/dist/es/alert.js +0 -112
  216. package/dist/es/alpha-slider.js +0 -4
  217. package/dist/es/badge.js +0 -56
  218. package/dist/es/button.js +0 -40
  219. package/dist/es/checkbox.js +0 -4
  220. package/dist/es/chunks/_plugin-vue_export-helper.js +0 -10
  221. package/dist/es/chunks/alpha-slider.js +0 -128
  222. package/dist/es/chunks/checkbox.vue_vue_type_style_index_0_lang.js +0 -39
  223. package/dist/es/chunks/clsx.js +0 -16
  224. package/dist/es/chunks/combobox-anchor.js +0 -32
  225. package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +0 -53
  226. package/dist/es/chunks/dropdown-menu-content.vue_vue_type_style_index_0_lang.js +0 -52
  227. package/dist/es/chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js +0 -50
  228. package/dist/es/chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js +0 -33
  229. package/dist/es/chunks/dropdown-menu-sub.js +0 -26
  230. package/dist/es/chunks/index.js +0 -9058
  231. package/dist/es/chunks/modal-close.js +0 -23
  232. package/dist/es/chunks/modal-trigger.js +0 -23
  233. package/dist/es/chunks/modal.js +0 -27
  234. package/dist/es/chunks/popover.js +0 -27
  235. package/dist/es/chunks/scroll-area.js +0 -42
  236. package/dist/es/chunks/select-group.js +0 -23
  237. package/dist/es/chunks/select.js +0 -39
  238. package/dist/es/chunks/slider.vue_vue_type_style_index_0_lang.js +0 -53
  239. package/dist/es/chunks/switch.vue_vue_type_style_index_0_lang.js +0 -39
  240. package/dist/es/chunks/use-color-model.js +0 -993
  241. package/dist/es/color-area.js +0 -176
  242. package/dist/es/color-picker.js +0 -515
  243. package/dist/es/color-swatch.js +0 -60
  244. package/dist/es/color.js +0 -102
  245. package/dist/es/combobox-anchor.js +0 -4
  246. package/dist/es/combobox-empty.js +0 -33
  247. package/dist/es/combobox-group.js +0 -43
  248. package/dist/es/combobox-input.js +0 -64
  249. package/dist/es/combobox-item.js +0 -110
  250. package/dist/es/combobox-list.js +0 -63
  251. package/dist/es/combobox-root.js +0 -41
  252. package/dist/es/combobox-separator.js +0 -33
  253. package/dist/es/combobox-trigger.js +0 -48
  254. package/dist/es/combobox.js +0 -234
  255. package/dist/es/command-group.js +0 -42
  256. package/dist/es/command-input.js +0 -43
  257. package/dist/es/command-item.js +0 -35
  258. package/dist/es/command-list.js +0 -53
  259. package/dist/es/command-root.js +0 -46
  260. package/dist/es/command-separator.js +0 -33
  261. package/dist/es/compact-button.js +0 -43
  262. package/dist/es/content-divider.js +0 -4
  263. package/dist/es/context-menu-item.js +0 -135
  264. package/dist/es/crypto.js +0 -8
  265. package/dist/es/dropdown-item.js +0 -100
  266. package/dist/es/dropdown-menu-content.js +0 -4
  267. package/dist/es/dropdown-menu-group.js +0 -25
  268. package/dist/es/dropdown-menu-item.js +0 -69
  269. package/dist/es/dropdown-menu-label.js +0 -32
  270. package/dist/es/dropdown-menu-separator.js +0 -26
  271. package/dist/es/dropdown-menu-sub-content.js +0 -4
  272. package/dist/es/dropdown-menu-sub-trigger.js +0 -4
  273. package/dist/es/dropdown-menu-sub.js +0 -4
  274. package/dist/es/dropdown-menu-trigger.js +0 -27
  275. package/dist/es/dropdown-menu.js +0 -33
  276. package/dist/es/dropdown.js +0 -292
  277. package/dist/es/fancy-button.js +0 -39
  278. package/dist/es/hint-text.js +0 -37
  279. package/dist/es/hue-slider.js +0 -134
  280. package/dist/es/index.js +0 -217
  281. package/dist/es/label.js +0 -56
  282. package/dist/es/link-button.js +0 -45
  283. package/dist/es/modal-body.js +0 -23
  284. package/dist/es/modal-close.js +0 -4
  285. package/dist/es/modal-content.js +0 -49
  286. package/dist/es/modal-footer.js +0 -23
  287. package/dist/es/modal-header.js +0 -82
  288. package/dist/es/modal-trigger.js +0 -4
  289. package/dist/es/modal.js +0 -4
  290. package/dist/es/popover-content.js +0 -105
  291. package/dist/es/popover-trigger.js +0 -25
  292. package/dist/es/popover.js +0 -4
  293. package/dist/es/scroll-area.js +0 -4
  294. package/dist/es/scroll-bar.js +0 -40
  295. package/dist/es/segmented-control-item.js +0 -42
  296. package/dist/es/segmented-control.js +0 -41
  297. package/dist/es/select-content.js +0 -62
  298. package/dist/es/select-group.js +0 -4
  299. package/dist/es/select-icon.js +0 -26
  300. package/dist/es/select-item.js +0 -45
  301. package/dist/es/select-label.js +0 -33
  302. package/dist/es/select-separator.js +0 -27
  303. package/dist/es/select-trigger.js +0 -41
  304. package/dist/es/select-value.js +0 -32
  305. package/dist/es/select.js +0 -4
  306. package/dist/es/shims.js +0 -1
  307. package/dist/es/slider.js +0 -4
  308. package/dist/es/social-button.js +0 -46
  309. package/dist/es/status-badge.js +0 -50
  310. package/dist/es/switch.js +0 -4
  311. package/dist/es/tab-menu-content.js +0 -33
  312. package/dist/es/tab-menu-item.js +0 -45
  313. package/dist/es/tab-menu-list.js +0 -35
  314. package/dist/es/tab-menu.js +0 -33
  315. package/dist/es/text-input-affix.js +0 -28
  316. package/dist/es/text-input-button.js +0 -32
  317. package/dist/es/text-input.js +0 -120
  318. package/dist/es/textarea.js +0 -57
  319. package/dist/es/tooltip.js +0 -116
  320. package/dist/es/use-color-model.js +0 -6
  321. package/dist/es/use-delegated-props.js +0 -14
  322. package/dist/es/use-user-select.js +0 -39
  323. package/dist/index.d.ts +0 -5
  324. package/dist/utils/color.d.ts +0 -26
  325. package/dist/utils/crypto.d.ts +0 -1
@@ -1,32 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { useDelegatedProps } from "./use-delegated-props.js";
3
- import { c as clsx } from "./chunks/clsx.js";
4
- import { A as At, S as hh } 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-label",
8
- props: {
9
- asChild: { type: Boolean },
10
- as: {},
11
- class: {}
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const delegatedProps = useDelegatedProps(props, "class");
16
- const forwardedProps = At(delegatedProps);
17
- return (_ctx, _cache) => {
18
- return openBlock(), createBlock(unref(hh), mergeProps(unref(forwardedProps), {
19
- class: unref(clsx)("celeste-dropdown-menu-label", props.class)
20
- }), {
21
- default: withCtx(() => [
22
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
23
- ]),
24
- _: 3
25
- }, 16, ["class"]);
26
- };
27
- }
28
- });
29
- const dropdownMenuLabel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-392ac57c"]]);
30
- export {
31
- dropdownMenuLabel as default
32
- };
@@ -1,26 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue";
2
- import { useDelegatedProps } from "./use-delegated-props.js";
3
- import { c as clsx } from "./chunks/clsx.js";
4
- import { T as ph } 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-separator",
8
- props: {
9
- asChild: { type: Boolean },
10
- as: {},
11
- class: {}
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const delegatedProps = useDelegatedProps(props, "class");
16
- return (_ctx, _cache) => {
17
- return openBlock(), createBlock(unref(ph), mergeProps(unref(delegatedProps), {
18
- class: unref(clsx)("celeste-dropdown-menu-separator", props.class)
19
- }), null, 16, ["class"]);
20
- };
21
- }
22
- });
23
- const dropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-13566158"]]);
24
- export {
25
- dropdownMenuSeparator as default
26
- };
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./chunks/dropdown-menu-sub-content.vue_vue_type_style_index_0_lang.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./chunks/dropdown-menu-sub-trigger.vue_vue_type_style_index_0_lang.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./chunks/dropdown-menu-sub.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { A as At, _ as rh } from "./chunks/index.js";
3
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "dropdown-menu-trigger",
6
- props: {
7
- disabled: { type: Boolean },
8
- asChild: { type: Boolean },
9
- as: {}
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- const forwardedProps = At(props);
14
- return (_ctx, _cache) => {
15
- return openBlock(), createBlock(unref(rh), mergeProps({ class: "celeste-dropdown-menu-trigger" }, unref(forwardedProps)), {
16
- default: withCtx(() => [
17
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
18
- ]),
19
- _: 3
20
- }, 16);
21
- };
22
- }
23
- });
24
- const dropdownMenuTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d81106e4"]]);
25
- export {
26
- dropdownMenuTrigger as default
27
- };
@@ -1,33 +0,0 @@
1
- import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
- import { useDelegatedProps } from "./use-delegated-props.js";
3
- import { $ as sh } from "./chunks/index.js";
4
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "dropdown-menu",
7
- props: {
8
- defaultOpen: { type: Boolean },
9
- open: { type: Boolean },
10
- dir: {},
11
- modal: { type: Boolean }
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const delegatedProps = useDelegatedProps(props, "open");
16
- const open = ref(false);
17
- return (_ctx, _cache) => {
18
- return openBlock(), createBlock(unref(sh), mergeProps(unref(delegatedProps), {
19
- open: open.value,
20
- "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event)
21
- }), {
22
- default: withCtx(() => [
23
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
24
- ]),
25
- _: 3
26
- }, 16, ["open"]);
27
- };
28
- }
29
- });
30
- const dropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3405639f"]]);
31
- export {
32
- dropdownMenu as default
33
- };
@@ -1,292 +0,0 @@
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
- import { c as clsx } from "./chunks/clsx.js";
3
- import { I as Hv, j as jv, U as Uv, X as Xv, J as Jv, L as tm, Z as Zv, B as qv, E as Qv } from "./chunks/index.js";
4
- import Badge from "./badge.js";
5
- import TextInput from "./text-input.js";
6
- import DropdownItem from "./dropdown-item.js";
7
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
8
- const _hoisted_1 = { class: "celeste-dropdown-anchor-trigger-prefix" };
9
- const _hoisted_2 = {
10
- key: 0,
11
- class: "celeste-dropdown-anchor-trigger-prefix-selected"
12
- };
13
- const _hoisted_3 = { key: 1 };
14
- const _hoisted_4 = ["src"];
15
- const _hoisted_5 = {
16
- key: 0,
17
- class: "celeste-dropdown-input"
18
- };
19
- const _hoisted_6 = { key: 0 };
20
- const _hoisted_7 = { key: 1 };
21
- const _hoisted_8 = {
22
- key: 2,
23
- class: "celeste-input-badge"
24
- };
25
- const _hoisted_9 = {
26
- key: 0,
27
- class: "celeste-dropdown-search"
28
- };
29
- const _hoisted_10 = ["src"];
30
- const _sfc_main = /* @__PURE__ */ defineComponent({
31
- __name: "dropdown",
32
- props: /* @__PURE__ */ mergeModels({
33
- disabled: { type: Boolean, default: false },
34
- icon: {},
35
- placeholder: { default: "Placeholder" },
36
- error: { type: Boolean },
37
- size: { default: "sm" },
38
- type: { default: "normal" },
39
- position: { default: "bottom" },
40
- align: { default: "start" },
41
- multiple: { type: Boolean, default: false },
42
- emptyLabel: { default: "No options available" },
43
- searchable: { type: Boolean, default: false },
44
- options: {},
45
- badgeProps: {}
46
- }, {
47
- "modelValue": {},
48
- "modelModifiers": {}
49
- }),
50
- emits: ["update:modelValue"],
51
- setup(__props) {
52
- const props = __props;
53
- const model = useModel(__props, "modelValue");
54
- const searched = ref("");
55
- const isSearchedFocused = ref(false);
56
- const isOpen = ref(false);
57
- function toggleDropdown() {
58
- isOpen.value = true;
59
- focusedItemIndex.value = -1;
60
- }
61
- const filteredOptions = computed(() => {
62
- if (!props.searchable || !searched.value)
63
- return props.options;
64
- return props.options.filter(
65
- (option) => option.label.toLowerCase().includes(searched.value.toLowerCase())
66
- );
67
- });
68
- function optionIsSelected(option) {
69
- if (!props.multiple) {
70
- return model.value && !Array.isArray(model.value) ? option.value === model.value.value : false;
71
- }
72
- return Array.isArray(model.value) ? model.value.some((selectedOption) => selectedOption.value === option.value) : false;
73
- }
74
- function toggleSelection(isSelected, option) {
75
- if (props.multiple && Array.isArray(model.value)) {
76
- model.value = isSelected ? model.value.filter((o) => o.value !== option.value) : [...model.value, option];
77
- return;
78
- }
79
- model.value = isSelected ? void 0 : option;
80
- }
81
- const mergedBadgeProps = computed(() => ({
82
- ...props.badgeProps,
83
- disabled: props.disabled
84
- }));
85
- const focusedItemIndex = ref(-1);
86
- function handleKeydown(event) {
87
- if (!isOpen.value)
88
- return;
89
- switch (event.key) {
90
- case "ArrowDown":
91
- event.preventDefault();
92
- if (focusedItemIndex.value < filteredOptions.value.length - 1) {
93
- focusedItemIndex.value++;
94
- } else {
95
- focusedItemIndex.value = 0;
96
- }
97
- break;
98
- case "ArrowUp":
99
- event.preventDefault();
100
- if (focusedItemIndex.value > 0) {
101
- focusedItemIndex.value--;
102
- } else {
103
- focusedItemIndex.value = filteredOptions.value.length - 1;
104
- }
105
- break;
106
- case "Enter":
107
- event.preventDefault();
108
- if (focusedItemIndex.value >= 0 && focusedItemIndex.value < filteredOptions.value.length) {
109
- const option = filteredOptions.value[focusedItemIndex.value];
110
- toggleSelection(optionIsSelected(option), option);
111
- }
112
- break;
113
- }
114
- }
115
- watch(filteredOptions, () => {
116
- if (focusedItemIndex.value >= filteredOptions.value.length) {
117
- focusedItemIndex.value = filteredOptions.value.length - 1;
118
- }
119
- });
120
- return (_ctx, _cache) => {
121
- return openBlock(), createElementBlock("div", {
122
- class: "celeste-dropdown-wrapper",
123
- tabindex: "0",
124
- onKeydown: [
125
- withKeys(toggleDropdown, ["enter"]),
126
- withKeys(toggleDropdown, ["space"])
127
- ]
128
- }, [
129
- createVNode(unref(Hv), {
130
- modelValue: model.value,
131
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value = $event),
132
- open: isOpen.value,
133
- disabled: _ctx.disabled,
134
- multiple: props.multiple,
135
- class: "celeste-dropdown-root",
136
- "display-value": (v) => v.label,
137
- "onUpdate:open": _cache[5] || (_cache[5] = (val) => isOpen.value = val),
138
- onKeydown: handleKeydown
139
- }, {
140
- default: withCtx(() => [
141
- createVNode(unref(jv), { tabindex: "0" }, {
142
- default: withCtx(() => [
143
- createVNode(unref(Uv), {
144
- class: normalizeClass(unref(clsx)(
145
- "celeste-dropdown-anchor-trigger",
146
- `celeste-dropdown-anchor-trigger-size-${props.size}`,
147
- `celeste-dropdown-anchor-trigger-type-${props.type}`,
148
- { "celeste-dropdown-anchor-trigger-error": props.error },
149
- { "celeste-dropdown-anchor-trigger-disabled": props.disabled },
150
- { "celeste-dropdown-anchor-trigger-filled": model.value },
151
- { "celeste-dropdown-anchor-trigger-focused": isOpen.value }
152
- )),
153
- as: "div",
154
- disabled: _ctx.disabled
155
- }, {
156
- default: withCtx(() => [
157
- createElementVNode("div", _hoisted_1, [
158
- model.value && !Array.isArray(model.value) ? (openBlock(), createElementBlock("div", _hoisted_2, [
159
- model.value.icon ? (openBlock(), createElementBlock("i", {
160
- key: 0,
161
- class: normalizeClass(model.value.icon)
162
- }, null, 2)) : createCommentVNode("", true),
163
- model.value.image ? (openBlock(), createElementBlock("div", _hoisted_3, [
164
- renderSlot(_ctx.$slots, "image", normalizeProps(guardReactiveProps({ model: model.value })), () => [
165
- createElementVNode("img", {
166
- src: model.value.image,
167
- alt: "Selected option",
168
- class: "selected-dropdown-image"
169
- }, null, 8, _hoisted_4)
170
- ], true)
171
- ])) : createCommentVNode("", true)
172
- ])) : renderSlot(_ctx.$slots, "prefix", {
173
- key: 1,
174
- class: "celeste-dropdown-anchor-trigger-prefix-default"
175
- }, void 0, true)
176
- ]),
177
- _ctx.type !== "inline" ? (openBlock(), createElementBlock("div", _hoisted_5, [
178
- _ctx.multiple ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.placeholder), 1)) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(model.value && !Array.isArray(model.value) ? model.value.label : props.placeholder), 1)),
179
- mergedBadgeProps.value ? (openBlock(), createElementBlock("span", _hoisted_8, [
180
- createVNode(Badge, normalizeProps(guardReactiveProps(mergedBadgeProps.value)), null, 16)
181
- ])) : createCommentVNode("", true)
182
- ])) : createCommentVNode("", true),
183
- _cache[6] || (_cache[6] = createElementVNode("div", { class: "celeste-dropdown-trigger" }, [
184
- createElementVNode("i", { class: "i-celeste-arrow-down-s-line" })
185
- ], -1))
186
- ]),
187
- _: 3
188
- }, 8, ["class", "disabled"])
189
- ]),
190
- _: 3
191
- }),
192
- !_ctx.disabled ? (openBlock(), createBlock(unref(Xv), {
193
- key: 0,
194
- "force-mount": "",
195
- dismissable: "",
196
- "avoid-collisions": true,
197
- class: normalizeClass(["celeste-dropdown-content", unref(clsx)(
198
- "celeste-dropdown-content",
199
- `celeste-dropdown-content-size-${_ctx.position}`,
200
- `celeste-dropdown-content-align-${_ctx.align}`
201
- )])
202
- }, {
203
- default: withCtx(() => [
204
- createVNode(unref(Jv), { class: "celeste-dropdown-items-viewport" }, {
205
- default: withCtx(() => [
206
- _ctx.searchable ? (openBlock(), createElementBlock("div", _hoisted_9, [
207
- createVNode(TextInput, {
208
- modelValue: searched.value,
209
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searched.value = $event),
210
- type: "search",
211
- size: "sm",
212
- placeholder: "Search",
213
- onFocus: _cache[2] || (_cache[2] = ($event) => isSearchedFocused.value = true),
214
- onBlur: _cache[3] || (_cache[3] = ($event) => isSearchedFocused.value = false)
215
- }, createSlots({
216
- prefix: withCtx(() => [
217
- _cache[7] || (_cache[7] = createElementVNode("i", { class: "i-celeste-search-2-line" }, null, -1))
218
- ]),
219
- _: 2
220
- }, [
221
- isSearchedFocused.value ? {
222
- name: "suffix",
223
- fn: withCtx(() => [
224
- createElementVNode("div", {
225
- onClick: _cache[0] || (_cache[0] = () => searched.value = "")
226
- }, _cache[8] || (_cache[8] = [
227
- createElementVNode("i", { class: "i-celeste-close-line" }, null, -1)
228
- ]))
229
- ]),
230
- key: "0"
231
- } : void 0
232
- ]), 1032, ["modelValue"]),
233
- createVNode(unref(tm), { class: "celeste-dropdown-separator" })
234
- ])) : createCommentVNode("", true),
235
- createVNode(unref(Zv), { class: "celeste-dropdown-empty-list" }),
236
- createVNode(unref(qv), { class: "celeste-dropdown-items-group" }, {
237
- default: withCtx(() => [
238
- (openBlock(true), createElementBlock(Fragment, null, renderList(filteredOptions.value, (option, index) => {
239
- return openBlock(), createBlock(unref(Qv), {
240
- key: option.value,
241
- value: option,
242
- disabled: _ctx.disabled,
243
- class: "celeste-dropdown-item",
244
- tabindex: "0"
245
- }, {
246
- default: withCtx(() => [
247
- createVNode(DropdownItem, {
248
- label: option.label,
249
- checkbox: props.multiple,
250
- selected: optionIsSelected(option),
251
- disabled: props.disabled,
252
- focused: index === focusedItemIndex.value
253
- }, {
254
- prefix: withCtx(() => [
255
- option.icon ? (openBlock(), createElementBlock("i", {
256
- key: 0,
257
- class: normalizeClass(option.icon)
258
- }, null, 2)) : createCommentVNode("", true),
259
- option.image ? (openBlock(), createElementBlock("img", {
260
- key: 1,
261
- src: option.image,
262
- alt: "option",
263
- class: "celeste-dropdown-item-image"
264
- }, null, 8, _hoisted_10)) : createCommentVNode("", true)
265
- ]),
266
- _: 2
267
- }, 1032, ["label", "checkbox", "selected", "disabled", "focused"]),
268
- createVNode(unref(tm))
269
- ]),
270
- _: 2
271
- }, 1032, ["value", "disabled"]);
272
- }), 128))
273
- ]),
274
- _: 1
275
- })
276
- ]),
277
- _: 1
278
- })
279
- ]),
280
- _: 1
281
- }, 8, ["class"])) : createCommentVNode("", true)
282
- ]),
283
- _: 3
284
- }, 8, ["modelValue", "open", "disabled", "multiple", "display-value"])
285
- ], 32);
286
- };
287
- }
288
- });
289
- const dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ef0e6e7"]]);
290
- export {
291
- dropdown as default
292
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
2
- import { c as clsx } from "./chunks/clsx.js";
3
- import { f as O } from "./chunks/index.js";
4
- /* empty css */
5
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "fancy-button",
8
- props: {
9
- class: {},
10
- size: { default: "md" },
11
- intent: { default: "primary" },
12
- asChild: { type: Boolean },
13
- as: { default: "button" }
14
- },
15
- setup(__props) {
16
- const props = __props;
17
- return (_ctx, _cache) => {
18
- return openBlock(), createBlock(unref(O), {
19
- as: _ctx.as,
20
- "as-child": _ctx.asChild,
21
- class: normalizeClass(unref(clsx)(
22
- "celeste-fbutton",
23
- `celeste-fbutton-${_ctx.intent}`,
24
- `celeste-fbutton-${_ctx.size}`,
25
- props.class
26
- ))
27
- }, {
28
- default: withCtx(() => [
29
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
30
- ]),
31
- _: 3
32
- }, 8, ["as", "as-child", "class"]);
33
- };
34
- }
35
- });
36
- const fancyButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cc3b0550"]]);
37
- export {
38
- fancyButton as default
39
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, toDisplayString } 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 = ["role"];
5
- const _hoisted_2 = { key: 1 };
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "hint-text",
8
- props: {
9
- text: {},
10
- icon: {},
11
- class: {},
12
- state: { default: "default" }
13
- },
14
- setup(__props) {
15
- const props = __props;
16
- return (_ctx, _cache) => {
17
- return openBlock(), createElementBlock("div", {
18
- role: props.state === "error" ? "alert" : "note",
19
- class: normalizeClass(unref(clsx)(
20
- "celeste-hint-text",
21
- `celeste-hint-text-${_ctx.state}`,
22
- props.class
23
- ))
24
- }, [
25
- _ctx.icon ? (openBlock(), createElementBlock("i", {
26
- key: 0,
27
- class: normalizeClass(_ctx.icon)
28
- }, null, 2)) : createCommentVNode("", true),
29
- _ctx.text ? (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
30
- ], 10, _hoisted_1);
31
- };
32
- }
33
- });
34
- const hintText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37aef9f7"]]);
35
- export {
36
- hintText as default
37
- };
@@ -1,134 +0,0 @@
1
- import { defineComponent, useModel, ref, useTemplateRef, watch, computed, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeStyle } from "vue";
2
- import { getAbsolutePosition, getPageXYFromEvent, resolveArrowDirection } from "./color.js";
3
- import { useUserPageSelection } from "./use-user-select.js";
4
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
5
- const _hoisted_1 = { class: "celeste-color-slider" };
6
- const _hoisted_2 = ["aria-valuenow"];
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "hue-slider",
9
- props: {
10
- "modelValue": {
11
- default: 0
12
- },
13
- "modelModifiers": {}
14
- },
15
- emits: ["update:modelValue"],
16
- setup(__props) {
17
- const hue = useModel(__props, "modelValue");
18
- const pullDirection = ref();
19
- const containerRef = useTemplateRef("slider-track");
20
- const { preventPageUserSelect, allowPageUserSelect } = useUserPageSelection();
21
- watch(hue, (newHue, oldHue) => {
22
- if (newHue !== 0 && newHue - oldHue > 0)
23
- pullDirection.value = "right";
24
- if (newHue !== 0 && newHue - oldHue < 0)
25
- pullDirection.value = "left";
26
- });
27
- const pointerLeft = computed(
28
- () => {
29
- if (hue.value === 0 && pullDirection.value === "right")
30
- return "100%";
31
- return `${hue.value * 100 / 360}%`;
32
- }
33
- );
34
- const trackThumbBg = computed(() => {
35
- return `hsl(${hue.value}, 100%, 50%)`;
36
- });
37
- function handleChange(e, skip) {
38
- if (!skip) {
39
- e.preventDefault();
40
- }
41
- const container = containerRef.value;
42
- if (!container) {
43
- return;
44
- }
45
- const containerWidth = container.clientWidth;
46
- const { x: xOffset } = getAbsolutePosition(container);
47
- const { x: pageX } = getPageXYFromEvent(e);
48
- const left = pageX - xOffset;
49
- let h;
50
- let percent;
51
- if (left < 0) {
52
- h = 0;
53
- } else if (left > containerWidth) {
54
- h = 360;
55
- } else {
56
- percent = left * 100 / containerWidth;
57
- h = Math.round(360 * percent / 100);
58
- }
59
- if (hue.value !== h) {
60
- emitChange(h);
61
- }
62
- }
63
- function emitChange(h) {
64
- hue.value = h;
65
- }
66
- function handleMouseDown(e) {
67
- handleChange(e, true);
68
- preventPageUserSelect();
69
- window.addEventListener("mousemove", handleChange);
70
- window.addEventListener("mouseup", handleMouseUp);
71
- }
72
- function handleMouseUp() {
73
- allowPageUserSelect();
74
- unbindEventListeners();
75
- }
76
- function unbindEventListeners() {
77
- window.removeEventListener("mousemove", handleChange);
78
- window.removeEventListener("mouseup", handleMouseUp);
79
- }
80
- function handleKeyDown(e) {
81
- const direction = resolveArrowDirection(e);
82
- if (!direction) {
83
- return;
84
- }
85
- e.preventDefault();
86
- const currentValue = hue.value;
87
- let newValue;
88
- switch (direction) {
89
- case "left": {
90
- newValue = currentValue - 1 < 0 ? 0 : Math.floor(currentValue - 1);
91
- break;
92
- }
93
- case "right": {
94
- newValue = currentValue + 1 > 360 ? 360 : Math.ceil(currentValue + 1);
95
- break;
96
- }
97
- }
98
- if (typeof newValue !== "undefined") {
99
- emitChange(newValue);
100
- }
101
- }
102
- onUnmounted(() => {
103
- unbindEventListeners();
104
- });
105
- return (_ctx, _cache) => {
106
- return openBlock(), createElementBlock("div", _hoisted_1, [
107
- createElementVNode("div", {
108
- ref: "slider-track",
109
- class: "slider-track",
110
- role: "slider",
111
- "aria-valuenow": hue.value,
112
- "aria-valuemin": "0",
113
- "aria-valuemax": "360",
114
- "aria-label": "Hue",
115
- tabindex: "0",
116
- onMousedown: handleMouseDown,
117
- onTouchmovePassive: handleChange,
118
- onTouchstartPassive: handleChange,
119
- onKeydown: handleKeyDown
120
- }, [
121
- createElementVNode("div", {
122
- class: "celeste-color-thumb",
123
- style: normalizeStyle({ left: pointerLeft.value, background: trackThumbBg.value }),
124
- role: "presentation"
125
- }, null, 4)
126
- ], 40, _hoisted_2)
127
- ]);
128
- };
129
- }
130
- });
131
- const HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cb479a28"]]);
132
- export {
133
- HueSlider as default
134
- };