@wirekyt/vue 0.0.1 → 0.0.3

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 (291) hide show
  1. package/dist/accordion.cjs +273 -0
  2. package/dist/accordion.d.cts +195 -0
  3. package/dist/accordion.d.ts +195 -0
  4. package/dist/accordion.js +250 -0
  5. package/dist/angle-slider.cjs +268 -0
  6. package/dist/angle-slider.d.cts +228 -0
  7. package/dist/angle-slider.d.ts +228 -0
  8. package/dist/angle-slider.js +244 -0
  9. package/dist/avatar.cjs +145 -0
  10. package/dist/avatar.d.cts +114 -0
  11. package/dist/avatar.d.ts +114 -0
  12. package/dist/avatar.js +126 -0
  13. package/dist/boolean-BCaEpMxQ.js +6 -0
  14. package/dist/boolean-Dyu9-5Wp.cjs +11 -0
  15. package/dist/carousel.cjs +342 -0
  16. package/dist/carousel.d.cts +303 -0
  17. package/dist/carousel.d.ts +303 -0
  18. package/dist/carousel.js +320 -0
  19. package/dist/checkbox.cjs +345 -0
  20. package/dist/checkbox.d.cts +272 -0
  21. package/dist/checkbox.d.ts +272 -0
  22. package/dist/checkbox.js +324 -0
  23. package/dist/clean-props--1kqQE0Y.js +8 -0
  24. package/dist/clean-props-MyKqus13.cjs +13 -0
  25. package/dist/client-only.cjs +17 -0
  26. package/dist/client-only.d.cts +18 -0
  27. package/dist/client-only.d.ts +18 -0
  28. package/dist/client-only.js +16 -0
  29. package/dist/clipboard.cjs +229 -0
  30. package/dist/clipboard.d.cts +203 -0
  31. package/dist/clipboard.d.ts +203 -0
  32. package/dist/clipboard.js +206 -0
  33. package/dist/collapsible-BnUr4dTo.cjs +232 -0
  34. package/dist/collapsible-jvqnRz16.js +179 -0
  35. package/dist/collapsible.cjs +23 -0
  36. package/dist/collapsible.d.cts +161 -0
  37. package/dist/collapsible.d.ts +161 -0
  38. package/dist/collapsible.js +2 -0
  39. package/dist/collection-B0onOyyK.cjs +254 -0
  40. package/dist/collection-Dg6EtML_.js +211 -0
  41. package/dist/collection.cjs +9 -0
  42. package/dist/collection.d.cts +2 -0
  43. package/dist/collection.d.ts +2 -0
  44. package/dist/collection.js +2 -0
  45. package/dist/color-picker.cjs +804 -0
  46. package/dist/color-picker.d.cts +605 -0
  47. package/dist/color-picker.d.ts +605 -0
  48. package/dist/color-picker.js +759 -0
  49. package/dist/combobox.cjs +552 -0
  50. package/dist/combobox.d.cts +442 -0
  51. package/dist/combobox.d.ts +442 -0
  52. package/dist/combobox.js +521 -0
  53. package/dist/create-split-props-BBxrD7TV.js +10 -0
  54. package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
  55. package/dist/date-input.cjs +293 -0
  56. package/dist/date-input.d.cts +212 -0
  57. package/dist/date-input.d.ts +212 -0
  58. package/dist/date-input.js +270 -0
  59. package/dist/date-picker.cjs +821 -0
  60. package/dist/date-picker.d.cts +637 -0
  61. package/dist/date-picker.d.ts +637 -0
  62. package/dist/date-picker.js +776 -0
  63. package/dist/dialog.cjs +333 -0
  64. package/dist/dialog.d.cts +272 -0
  65. package/dist/dialog.d.ts +272 -0
  66. package/dist/dialog.js +308 -0
  67. package/dist/download-trigger.cjs +65 -0
  68. package/dist/download-trigger.d.cts +34 -0
  69. package/dist/download-trigger.d.ts +34 -0
  70. package/dist/download-trigger.js +63 -0
  71. package/dist/drawer.cjs +448 -0
  72. package/dist/drawer.d.cts +346 -0
  73. package/dist/drawer.d.ts +346 -0
  74. package/dist/drawer.js +415 -0
  75. package/dist/editable.cjs +331 -0
  76. package/dist/editable.d.cts +285 -0
  77. package/dist/editable.d.ts +285 -0
  78. package/dist/editable.js +306 -0
  79. package/dist/factory-8Ao0DEy3.js +34 -0
  80. package/dist/factory-BNwuanv4.d.cts +21 -0
  81. package/dist/factory-BNwuanv4.d.ts +21 -0
  82. package/dist/factory-JL7MPjkk.cjs +45 -0
  83. package/dist/field-C3pLqz1S.js +435 -0
  84. package/dist/field-DRz-v4rB.cjs +524 -0
  85. package/dist/field.cjs +22 -0
  86. package/dist/field.d.cts +344 -0
  87. package/dist/field.d.ts +344 -0
  88. package/dist/field.js +2 -0
  89. package/dist/fieldset-ByP_r1Uq.js +216 -0
  90. package/dist/fieldset-C5aj6Ims.cjs +275 -0
  91. package/dist/fieldset.cjs +17 -0
  92. package/dist/fieldset.d.cts +159 -0
  93. package/dist/fieldset.d.ts +159 -0
  94. package/dist/fieldset.js +2 -0
  95. package/dist/file-upload.cjs +421 -0
  96. package/dist/file-upload.d.cts +327 -0
  97. package/dist/file-upload.d.ts +327 -0
  98. package/dist/file-upload.js +392 -0
  99. package/dist/floating-panel.cjs +412 -0
  100. package/dist/floating-panel.d.cts +337 -0
  101. package/dist/floating-panel.d.ts +337 -0
  102. package/dist/floating-panel.js +383 -0
  103. package/dist/focus-trap.cjs +79 -0
  104. package/dist/focus-trap.d.cts +46 -0
  105. package/dist/focus-trap.d.ts +46 -0
  106. package/dist/focus-trap.js +78 -0
  107. package/dist/format.cjs +116 -0
  108. package/dist/format.d.cts +46 -0
  109. package/dist/format.d.ts +46 -0
  110. package/dist/format.js +106 -0
  111. package/dist/frame.cjs +93 -0
  112. package/dist/frame.d.cts +37 -0
  113. package/dist/frame.d.ts +37 -0
  114. package/dist/frame.js +92 -0
  115. package/dist/highlight.cjs +44 -0
  116. package/dist/highlight.d.cts +32 -0
  117. package/dist/highlight.d.ts +32 -0
  118. package/dist/highlight.js +42 -0
  119. package/dist/hover-card.cjs +269 -0
  120. package/dist/hover-card.d.cts +202 -0
  121. package/dist/hover-card.d.ts +202 -0
  122. package/dist/hover-card.js +246 -0
  123. package/dist/image-cropper.cjs +252 -0
  124. package/dist/image-cropper.d.cts +207 -0
  125. package/dist/image-cropper.d.ts +207 -0
  126. package/dist/image-cropper.js +235 -0
  127. package/dist/index-B-o8jLyV.d.cts +31 -0
  128. package/dist/index-BSoF1D-v.d.ts +31 -0
  129. package/dist/index-BTNfeIXf.d.ts +104 -0
  130. package/dist/index-C8zR9eg3.d.ts +444 -0
  131. package/dist/index-Cc4qS0rQ.d.cts +38 -0
  132. package/dist/index-Cc4qS0rQ.d.ts +38 -0
  133. package/dist/index-DaLvr6SW.d.ts +37 -0
  134. package/dist/index-Di84rFjS.d.cts +444 -0
  135. package/dist/index-Dpm1wGVS.d.cts +74 -0
  136. package/dist/index-Zc9P69Ka.d.cts +104 -0
  137. package/dist/index-kCBQJqpU.d.ts +74 -0
  138. package/dist/index-vIbTjrJ-.d.cts +37 -0
  139. package/dist/index.cjs +43 -0
  140. package/dist/index.d.cts +5 -0
  141. package/dist/index.d.ts +5 -0
  142. package/dist/index.js +7 -0
  143. package/dist/json-tree-view.cjs +346 -0
  144. package/dist/json-tree-view.d.cts +86 -0
  145. package/dist/json-tree-view.d.ts +86 -0
  146. package/dist/json-tree-view.js +336 -0
  147. package/dist/listbox.cjs +386 -0
  148. package/dist/listbox.d.cts +323 -0
  149. package/dist/listbox.d.ts +323 -0
  150. package/dist/listbox.js +361 -0
  151. package/dist/marquee.cjs +256 -0
  152. package/dist/marquee.d.cts +208 -0
  153. package/dist/marquee.d.ts +208 -0
  154. package/dist/marquee.js +235 -0
  155. package/dist/menu.cjs +650 -0
  156. package/dist/menu.d.cts +501 -0
  157. package/dist/menu.d.ts +501 -0
  158. package/dist/menu.js +613 -0
  159. package/dist/navigation-menu.cjs +408 -0
  160. package/dist/navigation-menu.d.cts +271 -0
  161. package/dist/navigation-menu.d.ts +271 -0
  162. package/dist/navigation-menu.js +380 -0
  163. package/dist/number-input.cjs +298 -0
  164. package/dist/number-input.d.cts +253 -0
  165. package/dist/number-input.d.ts +253 -0
  166. package/dist/number-input.js +274 -0
  167. package/dist/pagination.cjs +249 -0
  168. package/dist/pagination.d.cts +209 -0
  169. package/dist/pagination.d.ts +209 -0
  170. package/dist/pagination.js +226 -0
  171. package/dist/password-input.cjs +232 -0
  172. package/dist/password-input.d.cts +208 -0
  173. package/dist/password-input.d.ts +208 -0
  174. package/dist/password-input.js +210 -0
  175. package/dist/pin-input.cjs +245 -0
  176. package/dist/pin-input.d.cts +199 -0
  177. package/dist/pin-input.d.ts +199 -0
  178. package/dist/pin-input.js +224 -0
  179. package/dist/popover.cjs +377 -0
  180. package/dist/popover.d.cts +324 -0
  181. package/dist/popover.d.ts +324 -0
  182. package/dist/popover.js +349 -0
  183. package/dist/presence-DD3l4Tgb.cjs +60 -0
  184. package/dist/presence-jaHZaD_O.js +43 -0
  185. package/dist/presence.cjs +7 -0
  186. package/dist/presence.d.cts +3 -0
  187. package/dist/presence.d.ts +3 -0
  188. package/dist/presence.js +3 -0
  189. package/dist/progress.cjs +270 -0
  190. package/dist/progress.d.cts +229 -0
  191. package/dist/progress.d.ts +229 -0
  192. package/dist/progress.js +245 -0
  193. package/dist/providers-5QhcwgSd.cjs +190 -0
  194. package/dist/providers-C3XQH-uu.js +119 -0
  195. package/dist/qr-code.cjs +195 -0
  196. package/dist/qr-code.d.cts +157 -0
  197. package/dist/qr-code.d.ts +157 -0
  198. package/dist/qr-code.js +174 -0
  199. package/dist/radio-group.cjs +274 -0
  200. package/dist/radio-group.d.cts +230 -0
  201. package/dist/radio-group.d.ts +230 -0
  202. package/dist/radio-group.js +249 -0
  203. package/dist/rating-group.cjs +243 -0
  204. package/dist/rating-group.d.cts +200 -0
  205. package/dist/rating-group.d.ts +200 -0
  206. package/dist/rating-group.js +220 -0
  207. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  208. package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
  209. package/dist/scroll-area.cjs +206 -0
  210. package/dist/scroll-area.d.cts +169 -0
  211. package/dist/scroll-area.d.ts +169 -0
  212. package/dist/scroll-area.js +184 -0
  213. package/dist/segment-group.cjs +318 -0
  214. package/dist/segment-group.d.cts +229 -0
  215. package/dist/segment-group.d.ts +229 -0
  216. package/dist/segment-group.js +298 -0
  217. package/dist/select.cjs +560 -0
  218. package/dist/select.d.cts +430 -0
  219. package/dist/select.d.ts +430 -0
  220. package/dist/select.js +523 -0
  221. package/dist/signature-pad.cjs +260 -0
  222. package/dist/signature-pad.d.cts +200 -0
  223. package/dist/signature-pad.d.ts +200 -0
  224. package/dist/signature-pad.js +237 -0
  225. package/dist/slider.cjs +350 -0
  226. package/dist/slider.d.cts +299 -0
  227. package/dist/slider.d.ts +299 -0
  228. package/dist/slider.js +323 -0
  229. package/dist/splitter.cjs +225 -0
  230. package/dist/splitter.d.cts +166 -0
  231. package/dist/splitter.d.ts +166 -0
  232. package/dist/splitter.js +198 -0
  233. package/dist/steps.cjs +348 -0
  234. package/dist/steps.d.cts +289 -0
  235. package/dist/steps.d.ts +289 -0
  236. package/dist/steps.js +319 -0
  237. package/dist/swap.cjs +154 -0
  238. package/dist/swap.d.cts +98 -0
  239. package/dist/swap.d.ts +98 -0
  240. package/dist/swap.js +141 -0
  241. package/dist/switch.cjs +213 -0
  242. package/dist/switch.d.cts +177 -0
  243. package/dist/switch.d.ts +177 -0
  244. package/dist/switch.js +192 -0
  245. package/dist/tabs.cjs +240 -0
  246. package/dist/tabs.d.cts +179 -0
  247. package/dist/tabs.d.ts +179 -0
  248. package/dist/tabs.js +218 -0
  249. package/dist/tags-input.cjs +405 -0
  250. package/dist/tags-input.d.cts +340 -0
  251. package/dist/tags-input.d.ts +340 -0
  252. package/dist/tags-input.js +376 -0
  253. package/dist/timer.cjs +221 -0
  254. package/dist/timer.d.cts +176 -0
  255. package/dist/timer.d.ts +176 -0
  256. package/dist/timer.js +199 -0
  257. package/dist/toast.cjs +211 -0
  258. package/dist/toast.d.cts +157 -0
  259. package/dist/toast.d.ts +157 -0
  260. package/dist/toast.js +189 -0
  261. package/dist/toggle-group.cjs +150 -0
  262. package/dist/toggle-group.d.cts +122 -0
  263. package/dist/toggle-group.d.ts +122 -0
  264. package/dist/toggle-group.js +132 -0
  265. package/dist/toggle.cjs +107 -0
  266. package/dist/toggle.d.cts +98 -0
  267. package/dist/toggle.d.ts +98 -0
  268. package/dist/toggle.js +94 -0
  269. package/dist/tooltip.cjs +265 -0
  270. package/dist/tooltip.d.cts +204 -0
  271. package/dist/tooltip.d.ts +204 -0
  272. package/dist/tooltip.js +242 -0
  273. package/dist/tour.cjs +418 -0
  274. package/dist/tour.d.cts +304 -0
  275. package/dist/tour.d.ts +304 -0
  276. package/dist/tour.js +374 -0
  277. package/dist/tree-view-DnTVwhew.cjs +651 -0
  278. package/dist/tree-view-goUH3_RC.js +508 -0
  279. package/dist/tree-view.cjs +41 -0
  280. package/dist/tree-view.d.cts +3 -0
  281. package/dist/tree-view.d.ts +3 -0
  282. package/dist/tree-view.js +3 -0
  283. package/dist/types-rSRkzyd6.d.cts +13 -0
  284. package/dist/types-rSRkzyd6.d.ts +13 -0
  285. package/dist/use-presence-BSp_dR-C.d.cts +22 -0
  286. package/dist/use-presence-CtEY6ZT8.cjs +49 -0
  287. package/dist/use-presence-DkGU_j9h.d.ts +22 -0
  288. package/dist/use-presence-oNdFU2c2.js +42 -0
  289. package/dist/utils-D95V66v9.js +548 -0
  290. package/dist/utils-XrBZd2Yk.cjs +625 -0
  291. package/package.json +277 -6
@@ -0,0 +1,804 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
3
+ const require_utils = require("./utils-XrBZd2Yk.cjs");
4
+ const require_providers = require("./providers-5QhcwgSd.cjs");
5
+ const require_clean_props = require("./clean-props-MyKqus13.cjs");
6
+ const require_factory = require("./factory-JL7MPjkk.cjs");
7
+ const require_field = require("./field-DRz-v4rB.cjs");
8
+ const require_presence = require("./presence-DD3l4Tgb.cjs");
9
+ const require_use_presence = require("./use-presence-CtEY6ZT8.cjs");
10
+ let vue = require("vue");
11
+ let _wirekyt_dom_machines_color_picker = require("@wirekyt/dom/machines/color-picker");
12
+ _wirekyt_dom_machines_color_picker = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_color_picker, 1);
13
+ let _wirekyt_dom = require("@wirekyt/dom");
14
+ //#region src/components/color-picker/use-area-props-context.ts
15
+ const [ColorPickerAreaPropsProvider, useColorPickerAreaPropsContext] = require_utils.createContext("ColorPickerAreaPropsContext");
16
+ //#endregion
17
+ //#region src/components/color-picker/use-context.ts
18
+ const [ColorPickerProvider, useColorPickerContext] = require_utils.createContext("ColorPickerContext");
19
+ //#endregion
20
+ //#region src/components/color-picker/area-background.vue
21
+ const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
22
+ __name: "area-background",
23
+ props: { asChild: { type: Boolean } },
24
+ setup(__props) {
25
+ const colorPicker = useColorPickerContext();
26
+ const areaProps = useColorPickerAreaPropsContext();
27
+ require_utils.useForwardExpose();
28
+ return (_ctx, _cache) => {
29
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getAreaBackgroundProps((0, vue.unref)(areaProps)), { "as-child": __props.asChild }), {
30
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
31
+ _: 3
32
+ }, 16, ["as-child"]);
33
+ };
34
+ }
35
+ });
36
+ //#endregion
37
+ //#region src/components/color-picker/area-thumb.vue
38
+ const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
39
+ __name: "area-thumb",
40
+ props: { asChild: { type: Boolean } },
41
+ setup(__props) {
42
+ const colorPicker = useColorPickerContext();
43
+ const areaProps = useColorPickerAreaPropsContext();
44
+ require_utils.useForwardExpose();
45
+ return (_ctx, _cache) => {
46
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getAreaThumbProps((0, vue.unref)(areaProps)), { "as-child": __props.asChild }), {
47
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
48
+ _: 3
49
+ }, 16, ["as-child"]);
50
+ };
51
+ }
52
+ });
53
+ //#endregion
54
+ //#region src/components/color-picker/area.vue
55
+ const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
56
+ __name: "area",
57
+ props: {
58
+ xChannel: {},
59
+ yChannel: {},
60
+ asChild: { type: Boolean }
61
+ },
62
+ setup(__props) {
63
+ const props = __props;
64
+ const colorPicker = useColorPickerContext();
65
+ ColorPickerAreaPropsProvider(props);
66
+ require_utils.useForwardExpose();
67
+ return (_ctx, _cache) => {
68
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getAreaProps(props), { "as-child": __props.asChild }), {
69
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
70
+ _: 3
71
+ }, 16, ["as-child"]);
72
+ };
73
+ }
74
+ });
75
+ //#endregion
76
+ //#region src/components/color-picker/channel-input.vue
77
+ const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
78
+ __name: "channel-input",
79
+ props: {
80
+ channel: {},
81
+ orientation: {},
82
+ asChild: { type: Boolean }
83
+ },
84
+ setup(__props) {
85
+ const props = __props;
86
+ const colorPicker = useColorPickerContext();
87
+ require_utils.useForwardExpose();
88
+ return (_ctx, _cache) => {
89
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).input, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelInputProps(props), { "as-child": __props.asChild }), {
90
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
91
+ _: 3
92
+ }, 16, ["as-child"]);
93
+ };
94
+ }
95
+ });
96
+ //#endregion
97
+ //#region src/components/color-picker/use-channel-props-context.ts
98
+ const [ColorPickerChannelPropsProvider, useColorPickerChannelPropsContext] = require_utils.createContext("ColorPickerChannelPropsContext");
99
+ //#endregion
100
+ //#region src/components/color-picker/channel-slider-label.vue
101
+ const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
102
+ __name: "channel-slider-label",
103
+ props: { asChild: { type: Boolean } },
104
+ setup(__props) {
105
+ const colorPicker = useColorPickerContext();
106
+ const channelProps = useColorPickerChannelPropsContext();
107
+ require_utils.useForwardExpose();
108
+ return (_ctx, _cache) => {
109
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).label, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelSliderLabelProps((0, vue.unref)(channelProps)), { "as-child": __props.asChild }), {
110
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
111
+ _: 3
112
+ }, 16, ["as-child"]);
113
+ };
114
+ }
115
+ });
116
+ //#endregion
117
+ //#region src/components/color-picker/use-format-context.ts
118
+ const [ColorPickerFormatPropsProvider, useColorPickerFormatPropsContext] = require_utils.createContext("ColorPickerFormatProps");
119
+ //#endregion
120
+ //#region src/components/color-picker/channel-slider-thumb.vue
121
+ const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
122
+ __name: "channel-slider-thumb",
123
+ props: { asChild: { type: Boolean } },
124
+ setup(__props) {
125
+ const colorPicker = useColorPickerContext();
126
+ const formatProps = useColorPickerFormatPropsContext();
127
+ const channelProps = useColorPickerChannelPropsContext();
128
+ const channelSliderProps = (0, vue.computed)(() => ({
129
+ ...channelProps,
130
+ ...formatProps
131
+ }));
132
+ require_utils.useForwardExpose();
133
+ return (_ctx, _cache) => {
134
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelSliderThumbProps(channelSliderProps.value), { "as-child": __props.asChild }), {
135
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
136
+ _: 3
137
+ }, 16, ["as-child"]);
138
+ };
139
+ }
140
+ });
141
+ //#endregion
142
+ //#region src/components/color-picker/channel-slider-track.vue
143
+ const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
144
+ __name: "channel-slider-track",
145
+ props: { asChild: { type: Boolean } },
146
+ setup(__props) {
147
+ const colorPicker = useColorPickerContext();
148
+ const formatProps = useColorPickerFormatPropsContext();
149
+ const channelProps = useColorPickerChannelPropsContext();
150
+ const channelSliderProps = (0, vue.computed)(() => ({
151
+ ...channelProps,
152
+ ...formatProps
153
+ }));
154
+ require_utils.useForwardExpose();
155
+ return (_ctx, _cache) => {
156
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelSliderTrackProps(channelSliderProps.value), { "as-child": __props.asChild }), {
157
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
158
+ _: 3
159
+ }, 16, ["as-child"]);
160
+ };
161
+ }
162
+ });
163
+ //#endregion
164
+ //#region src/components/color-picker/channel-slider-value-text.vue
165
+ const _sfc_main$8 = /*@__PURE__*/ (0, vue.defineComponent)({
166
+ __name: "channel-slider-value-text",
167
+ props: { asChild: { type: Boolean } },
168
+ setup(__props) {
169
+ const colorPicker = useColorPickerContext();
170
+ const channelProps = useColorPickerChannelPropsContext();
171
+ const slots = (0, vue.useSlots)();
172
+ const localeContext = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
173
+ require_utils.useForwardExpose();
174
+ return (_ctx, _cache) => {
175
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelSliderValueTextProps((0, vue.unref)(channelProps)), { "as-child": __props.asChild }), {
176
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(slots.default?.() || (0, vue.unref)(colorPicker).getChannelValueText((0, vue.unref)(channelProps).channel, (0, vue.unref)(localeContext).locale)), 1)])]),
177
+ _: 3
178
+ }, 16, ["as-child"]);
179
+ };
180
+ }
181
+ });
182
+ //#endregion
183
+ //#region src/components/color-picker/channel-slider.vue
184
+ const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
185
+ __name: "channel-slider",
186
+ props: {
187
+ channel: {},
188
+ orientation: {},
189
+ asChild: { type: Boolean }
190
+ },
191
+ setup(__props) {
192
+ const props = __props;
193
+ const colorPicker = useColorPickerContext();
194
+ const formatProps = useColorPickerFormatPropsContext();
195
+ const channelSliderProps = (0, vue.computed)(() => ({
196
+ ...props,
197
+ ...formatProps
198
+ }));
199
+ ColorPickerChannelPropsProvider(props);
200
+ require_utils.useForwardExpose();
201
+ return (_ctx, _cache) => {
202
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getChannelSliderProps(channelSliderProps.value), { "as-child": __props.asChild }), {
203
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
204
+ _: 3
205
+ }, 16, ["as-child"]);
206
+ };
207
+ }
208
+ });
209
+ //#endregion
210
+ //#region src/components/color-picker/content.vue
211
+ const _sfc_main$9 = /*@__PURE__*/ (0, vue.defineComponent)({
212
+ __name: "content",
213
+ props: {
214
+ immediate: { type: Boolean },
215
+ lazyMount: { type: Boolean },
216
+ present: { type: Boolean },
217
+ skipAnimationOnMount: { type: Boolean },
218
+ unmountOnExit: { type: Boolean },
219
+ asChild: { type: Boolean }
220
+ },
221
+ setup(__props) {
222
+ const colorPicker = useColorPickerContext();
223
+ const presence = require_presence.usePresenceContext();
224
+ const mergedProps = (0, vue.computed)(() => (0, _wirekyt_dom.mergeProps)(colorPicker.value.getContentProps(), presence.value.presenceProps));
225
+ require_utils.useForwardExpose();
226
+ return (_ctx, _cache) => {
227
+ return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
228
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
229
+ _: 3
230
+ }, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
231
+ };
232
+ }
233
+ });
234
+ //#endregion
235
+ //#region src/components/color-picker/context.vue
236
+ const _sfc_main$10 = /*@__PURE__*/ (0, vue.defineComponent)({
237
+ __name: "context",
238
+ setup(__props) {
239
+ const colorPicker = useColorPickerContext();
240
+ return (_ctx, _cache) => {
241
+ return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(colorPicker))));
242
+ };
243
+ }
244
+ });
245
+ //#endregion
246
+ //#region src/components/color-picker/control.vue
247
+ const _sfc_main$11 = /*@__PURE__*/ (0, vue.defineComponent)({
248
+ __name: "control",
249
+ props: { asChild: { type: Boolean } },
250
+ setup(__props) {
251
+ const colorPicker = useColorPickerContext();
252
+ require_utils.useForwardExpose();
253
+ return (_ctx, _cache) => {
254
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getControlProps(), { "as-child": __props.asChild }), {
255
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
256
+ _: 3
257
+ }, 16, ["as-child"]);
258
+ };
259
+ }
260
+ });
261
+ //#endregion
262
+ //#region src/components/color-picker/eye-dropper-trigger.vue
263
+ const _sfc_main$12 = /*@__PURE__*/ (0, vue.defineComponent)({
264
+ __name: "eye-dropper-trigger",
265
+ props: { asChild: { type: Boolean } },
266
+ setup(__props) {
267
+ const colorPicker = useColorPickerContext();
268
+ require_utils.useForwardExpose();
269
+ return (_ctx, _cache) => {
270
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getEyeDropperTriggerProps(), { "as-child": __props.asChild }), {
271
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
272
+ _: 3
273
+ }, 16, ["as-child"]);
274
+ };
275
+ }
276
+ });
277
+ //#endregion
278
+ //#region src/components/color-picker/format-select.vue
279
+ const _sfc_main$13 = /*@__PURE__*/ (0, vue.defineComponent)({
280
+ __name: "format-select",
281
+ props: { asChild: { type: Boolean } },
282
+ setup(__props) {
283
+ const colorPicker = useColorPickerContext();
284
+ require_utils.useForwardExpose();
285
+ return (_ctx, _cache) => {
286
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).select, (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(colorPicker).getFormatSelectProps())), {
287
+ default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)([
288
+ "rgba",
289
+ "hsla",
290
+ "hsba"
291
+ ], (format) => {
292
+ return (0, vue.createVNode)((0, vue.unref)(require_factory.wire).option, {
293
+ key: format,
294
+ value: format
295
+ }, {
296
+ default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(format), 1)]),
297
+ _: 2
298
+ }, 1032, ["value"]);
299
+ }), 64))]),
300
+ _: 1
301
+ }, 16);
302
+ };
303
+ }
304
+ });
305
+ //#endregion
306
+ //#region src/components/color-picker/format-trigger.vue
307
+ const _sfc_main$14 = /*@__PURE__*/ (0, vue.defineComponent)({
308
+ __name: "format-trigger",
309
+ props: { asChild: { type: Boolean } },
310
+ setup(__props) {
311
+ const colorPicker = useColorPickerContext();
312
+ require_utils.useForwardExpose();
313
+ return (_ctx, _cache) => {
314
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getFormatTriggerProps(), { "as-child": __props.asChild }), {
315
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
316
+ _: 3
317
+ }, 16, ["as-child"]);
318
+ };
319
+ }
320
+ });
321
+ //#endregion
322
+ //#region src/components/color-picker/hidden-input.vue
323
+ const _sfc_main$15 = /*@__PURE__*/ (0, vue.defineComponent)({
324
+ __name: "hidden-input",
325
+ props: { asChild: { type: Boolean } },
326
+ setup(__props) {
327
+ const colorPicker = useColorPickerContext();
328
+ const field = require_field.useFieldContext();
329
+ require_utils.useForwardExpose();
330
+ return (_ctx, _cache) => {
331
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).input, (0, vue.mergeProps)({ "aria-describedby": (0, vue.unref)(field)?.ariaDescribedby }, (0, vue.unref)(colorPicker).getHiddenInputProps(), { "as-child": __props.asChild }), {
332
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
333
+ _: 3
334
+ }, 16, ["aria-describedby", "as-child"]);
335
+ };
336
+ }
337
+ });
338
+ //#endregion
339
+ //#region src/components/color-picker/label.vue
340
+ const _sfc_main$16 = /*@__PURE__*/ (0, vue.defineComponent)({
341
+ __name: "label",
342
+ props: { asChild: { type: Boolean } },
343
+ setup(__props) {
344
+ const colorPicker = useColorPickerContext();
345
+ require_utils.useForwardExpose();
346
+ return (_ctx, _cache) => {
347
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).label, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getLabelProps(), { "as-child": __props.asChild }), {
348
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
349
+ _: 3
350
+ }, 16, ["as-child"]);
351
+ };
352
+ }
353
+ });
354
+ //#endregion
355
+ //#region src/components/color-picker/positioner.vue
356
+ const _sfc_main$17 = /*@__PURE__*/ (0, vue.defineComponent)({
357
+ __name: "positioner",
358
+ props: { asChild: { type: Boolean } },
359
+ setup(__props) {
360
+ const colorPicker = useColorPickerContext();
361
+ const presence = require_presence.usePresenceContext();
362
+ require_utils.useForwardExpose();
363
+ return (_ctx, _cache) => {
364
+ return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, (0, vue.unref)(colorPicker).getPositionerProps(), { "as-child": __props.asChild }), {
365
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
366
+ _: 3
367
+ }, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
368
+ };
369
+ }
370
+ });
371
+ //#endregion
372
+ //#region src/components/color-picker/root-provider.vue
373
+ const _sfc_main$19 = /*@__PURE__*/ (0, vue.defineComponent)({
374
+ __name: "root-provider",
375
+ props: {
376
+ value: {},
377
+ lazyMount: { type: Boolean },
378
+ unmountOnExit: { type: Boolean },
379
+ asChild: { type: Boolean }
380
+ },
381
+ emits: ["exitComplete"],
382
+ setup(__props, { emit: __emit }) {
383
+ const props = __props;
384
+ const emits = __emit;
385
+ const colorPicker = (0, vue.computed)(() => props.value);
386
+ const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
387
+ present: colorPicker.value.open,
388
+ lazyMount: props.lazyMount,
389
+ unmountOnExit: props.unmountOnExit
390
+ })), emits);
391
+ ColorPickerProvider(colorPicker);
392
+ require_presence.PresenceProvider(presence);
393
+ require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
394
+ lazyMount: props.lazyMount,
395
+ unmountOnExit: props.unmountOnExit
396
+ })));
397
+ require_utils.useForwardExpose();
398
+ return (_ctx, _cache) => {
399
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)(colorPicker.value.getRootProps(), { "as-child": __props.asChild }), {
400
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
401
+ _: 3
402
+ }, 16, ["as-child"]);
403
+ };
404
+ }
405
+ });
406
+ //#endregion
407
+ //#region src/components/color-picker/use.ts
408
+ const useColorPicker = (props = {}, emit) => {
409
+ const id = (0, vue.useId)();
410
+ const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
411
+ const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
412
+ const field = require_field.useFieldContext();
413
+ const context = (0, vue.computed)(() => {
414
+ const localProps = (0, vue.toValue)(props);
415
+ return {
416
+ id,
417
+ ids: {
418
+ label: field?.value.ids.label,
419
+ input: field?.value.ids.control
420
+ },
421
+ disabled: field?.value.disabled,
422
+ invalid: field?.value.invalid,
423
+ readOnly: field?.value.readOnly,
424
+ required: field?.value.required,
425
+ dir: locale.value.dir,
426
+ value: localProps.modelValue,
427
+ getRootNode: env?.value.getRootNode,
428
+ ...require_clean_props.cleanProps(localProps),
429
+ onOpenChange(details) {
430
+ emit?.("openChange", details);
431
+ emit?.("update:open", details.open);
432
+ localProps.onOpenChange?.(details);
433
+ },
434
+ onValueChange(details) {
435
+ emit?.("valueChange", details);
436
+ emit?.("update:modelValue", details.value);
437
+ localProps.onValueChange?.(details);
438
+ },
439
+ onFocusOutside: (details) => {
440
+ emit?.("focusOutside", details);
441
+ localProps.onFocusOutside?.(details);
442
+ },
443
+ onFormatChange: (details) => {
444
+ emit?.("formatChange", details);
445
+ emit?.("update:format", details.format);
446
+ localProps.onFormatChange?.(details);
447
+ },
448
+ onInteractOutside: (details) => {
449
+ emit?.("interactOutside", details);
450
+ localProps.onInteractOutside?.(details);
451
+ },
452
+ onPointerDownOutside: (details) => {
453
+ emit?.("pointerDownOutside", details);
454
+ localProps.onPointerDownOutside?.(details);
455
+ },
456
+ onValueChangeEnd: (details) => {
457
+ emit?.("valueChangeEnd", details);
458
+ localProps.onValueChangeEnd?.(details);
459
+ }
460
+ };
461
+ });
462
+ const service = require_utils.useMachine(_wirekyt_dom_machines_color_picker.machine, context);
463
+ return (0, vue.computed)(() => _wirekyt_dom_machines_color_picker.connect(service, require_utils.normalizeProps));
464
+ };
465
+ //#endregion
466
+ //#region src/components/color-picker/root.vue
467
+ const _sfc_main$18 = /*@__PURE__*/ (0, vue.defineComponent)({
468
+ __name: "root",
469
+ props: /*@__PURE__*/ (0, vue.mergeDefaults)({
470
+ closeOnSelect: { type: Boolean },
471
+ defaultFormat: {},
472
+ defaultOpen: { type: Boolean },
473
+ defaultValue: {},
474
+ disabled: { type: Boolean },
475
+ format: {},
476
+ id: {},
477
+ ids: {},
478
+ initialFocusEl: { type: Function },
479
+ invalid: { type: Boolean },
480
+ modelValue: {},
481
+ name: {},
482
+ open: { type: Boolean },
483
+ openAutoFocus: { type: Boolean },
484
+ positioning: {},
485
+ readOnly: { type: Boolean },
486
+ required: { type: Boolean },
487
+ inline: { type: Boolean },
488
+ lazyMount: { type: Boolean },
489
+ unmountOnExit: { type: Boolean },
490
+ asChild: { type: Boolean }
491
+ }, {
492
+ closeOnSelect: void 0,
493
+ defaultOpen: void 0,
494
+ disabled: void 0,
495
+ invalid: void 0,
496
+ open: void 0,
497
+ openAutoFocus: void 0,
498
+ readOnly: void 0,
499
+ required: void 0,
500
+ inline: void 0
501
+ }),
502
+ emits: [
503
+ "exitComplete",
504
+ "focusOutside",
505
+ "formatChange",
506
+ "interactOutside",
507
+ "openChange",
508
+ "pointerDownOutside",
509
+ "valueChange",
510
+ "valueChangeEnd",
511
+ "update:modelValue",
512
+ "update:open",
513
+ "update:format"
514
+ ],
515
+ setup(__props, { emit: __emit }) {
516
+ const props = __props;
517
+ const emits = __emit;
518
+ const colorPicker = useColorPicker(props, emits);
519
+ const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
520
+ present: colorPicker.value.open,
521
+ lazyMount: props.lazyMount,
522
+ unmountOnExit: props.unmountOnExit
523
+ })), emits);
524
+ ColorPickerProvider(colorPicker);
525
+ require_presence.PresenceProvider(presence);
526
+ require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
527
+ lazyMount: props.lazyMount,
528
+ unmountOnExit: props.unmountOnExit
529
+ })));
530
+ require_utils.useForwardExpose();
531
+ return (_ctx, _cache) => {
532
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getRootProps(), { "as-child": __props.asChild }), {
533
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
534
+ _: 3
535
+ }, 16, ["as-child"]);
536
+ };
537
+ }
538
+ });
539
+ //#endregion
540
+ //#region src/components/color-picker/anatomy.ts
541
+ const colorPickerAnatomy = _wirekyt_dom_machines_color_picker.anatomy.extendWith("view");
542
+ //#endregion
543
+ //#region src/components/color-picker/swatch-group.vue
544
+ const _sfc_main$21 = /*@__PURE__*/ (0, vue.defineComponent)({
545
+ __name: "swatch-group",
546
+ props: { asChild: { type: Boolean } },
547
+ setup(__props) {
548
+ require_utils.useForwardExpose();
549
+ return (_ctx, _cache) => {
550
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPickerAnatomy).build().swatchGroup.attrs, { "as-child": __props.asChild }), {
551
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
552
+ _: 3
553
+ }, 16, ["as-child"]);
554
+ };
555
+ }
556
+ });
557
+ //#endregion
558
+ //#region src/components/color-picker/use-swatch-props-context.ts
559
+ const [ColorPickerSwatchPropsProvider, useColorPickerSwatchPropsContext] = require_utils.createContext("ColorPickerSwatchPropsContext");
560
+ //#endregion
561
+ //#region src/components/color-picker/swatch-indicator.vue
562
+ const _sfc_main$22 = /*@__PURE__*/ (0, vue.defineComponent)({
563
+ __name: "swatch-indicator",
564
+ props: { asChild: { type: Boolean } },
565
+ setup(__props) {
566
+ const colorPicker = useColorPickerContext();
567
+ const swatchProps = useColorPickerSwatchPropsContext();
568
+ require_utils.useForwardExpose();
569
+ return (_ctx, _cache) => {
570
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getSwatchIndicatorProps((0, vue.unref)(swatchProps)), { "as-child": __props.asChild }), {
571
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
572
+ _: 3
573
+ }, 16, ["as-child"]);
574
+ };
575
+ }
576
+ });
577
+ //#endregion
578
+ //#region src/components/color-picker/swatch-trigger.vue
579
+ const _sfc_main$23 = /*@__PURE__*/ (0, vue.defineComponent)({
580
+ __name: "swatch-trigger",
581
+ props: {
582
+ value: {},
583
+ disabled: { type: Boolean },
584
+ asChild: { type: Boolean }
585
+ },
586
+ setup(__props) {
587
+ const props = __props;
588
+ const colorPicker = useColorPickerContext();
589
+ require_utils.useForwardExpose();
590
+ return (_ctx, _cache) => {
591
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getSwatchTriggerProps(props), { "as-child": __props.asChild }), {
592
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
593
+ _: 3
594
+ }, 16, ["as-child"]);
595
+ };
596
+ }
597
+ });
598
+ //#endregion
599
+ //#region src/components/color-picker/swatch.vue
600
+ const _sfc_main$20 = /*@__PURE__*/ (0, vue.defineComponent)({
601
+ __name: "swatch",
602
+ props: {
603
+ value: {},
604
+ respectAlpha: { type: Boolean },
605
+ asChild: { type: Boolean }
606
+ },
607
+ setup(__props) {
608
+ const props = __props;
609
+ const colorPicker = useColorPickerContext();
610
+ ColorPickerSwatchPropsProvider(props);
611
+ require_utils.useForwardExpose();
612
+ return (_ctx, _cache) => {
613
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getSwatchProps(props), { "as-child": __props.asChild }), {
614
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
615
+ _: 3
616
+ }, 16, ["as-child"]);
617
+ };
618
+ }
619
+ });
620
+ //#endregion
621
+ //#region src/components/color-picker/transparency-grid.vue
622
+ const _sfc_main$24 = /*@__PURE__*/ (0, vue.defineComponent)({
623
+ __name: "transparency-grid",
624
+ props: {
625
+ size: {},
626
+ asChild: { type: Boolean }
627
+ },
628
+ setup(__props) {
629
+ const props = __props;
630
+ const colorPicker = useColorPickerContext();
631
+ require_utils.useForwardExpose();
632
+ return (_ctx, _cache) => {
633
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getTransparencyGridProps(props), { "as-child": __props.asChild }), {
634
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
635
+ _: 3
636
+ }, 16, ["as-child"]);
637
+ };
638
+ }
639
+ });
640
+ //#endregion
641
+ //#region src/components/color-picker/trigger.vue
642
+ const _sfc_main$25 = /*@__PURE__*/ (0, vue.defineComponent)({
643
+ __name: "trigger",
644
+ props: { asChild: { type: Boolean } },
645
+ setup(__props) {
646
+ const colorPicker = useColorPickerContext();
647
+ require_utils.useForwardExpose();
648
+ return (_ctx, _cache) => {
649
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getTriggerProps(), { "as-child": __props.asChild }), {
650
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
651
+ _: 3
652
+ }, 16, ["as-child"]);
653
+ };
654
+ }
655
+ });
656
+ //#endregion
657
+ //#region src/components/color-picker/value-swatch.vue
658
+ const _sfc_main$26 = /*@__PURE__*/ (0, vue.defineComponent)({
659
+ __name: "value-swatch",
660
+ props: {
661
+ respectAlpha: { type: Boolean },
662
+ asChild: { type: Boolean }
663
+ },
664
+ setup(__props) {
665
+ const props = __props;
666
+ const colorPicker = useColorPickerContext();
667
+ const swatchProps = (0, vue.computed)(() => ({
668
+ value: colorPicker.value.value,
669
+ respectAlpha: props.respectAlpha
670
+ }));
671
+ ColorPickerSwatchPropsProvider(swatchProps.value);
672
+ require_utils.useForwardExpose();
673
+ return (_ctx, _cache) => {
674
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getSwatchProps(swatchProps.value), { "as-child": __props.asChild }), {
675
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
676
+ _: 3
677
+ }, 16, ["as-child"]);
678
+ };
679
+ }
680
+ });
681
+ //#endregion
682
+ //#region src/components/color-picker/value-text.vue
683
+ const _sfc_main$27 = /*@__PURE__*/ (0, vue.defineComponent)({
684
+ __name: "value-text",
685
+ props: {
686
+ format: {},
687
+ asChild: { type: Boolean }
688
+ },
689
+ setup(__props) {
690
+ const props = __props;
691
+ const colorPicker = useColorPickerContext();
692
+ const slots = (0, vue.useSlots)();
693
+ require_utils.useForwardExpose();
694
+ const valueAsString = (0, vue.computed)(() => props.format ? colorPicker.value.value.toString(props.format) : colorPicker.value.valueAsString);
695
+ return (_ctx, _cache) => {
696
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).span, (0, vue.mergeProps)((0, vue.unref)(colorPicker).getValueTextProps(), { "as-child": __props.asChild }), {
697
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(slots.default?.() || valueAsString.value), 1)])]),
698
+ _: 3
699
+ }, 16, ["as-child"]);
700
+ };
701
+ }
702
+ });
703
+ //#endregion
704
+ //#region src/components/color-picker/view.vue
705
+ const _sfc_main$28 = /*@__PURE__*/ (0, vue.defineComponent)({
706
+ __name: "view",
707
+ props: {
708
+ format: {},
709
+ asChild: { type: Boolean }
710
+ },
711
+ setup(__props) {
712
+ const props = __props;
713
+ const colorPicker = useColorPickerContext();
714
+ ColorPickerFormatPropsProvider(props);
715
+ require_utils.useForwardExpose();
716
+ return (_ctx, _cache) => {
717
+ return (0, vue.unref)(colorPicker).format === __props.format ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, (0, vue.unref)(colorPickerAnatomy).build().view.attrs, {
718
+ "data-format": __props.format,
719
+ "as-child": __props.asChild
720
+ }), {
721
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
722
+ _: 3
723
+ }, 16, ["data-format", "as-child"])) : (0, vue.createCommentVNode)("v-if", true);
724
+ };
725
+ }
726
+ });
727
+ //#endregion
728
+ //#region src/components/color-picker/color-picker.ts
729
+ var color_picker_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
730
+ Area: () => _sfc_main,
731
+ AreaBackground: () => _sfc_main$1,
732
+ AreaThumb: () => _sfc_main$2,
733
+ ChannelInput: () => _sfc_main$3,
734
+ ChannelSlider: () => _sfc_main$4,
735
+ ChannelSliderLabel: () => _sfc_main$5,
736
+ ChannelSliderThumb: () => _sfc_main$6,
737
+ ChannelSliderTrack: () => _sfc_main$7,
738
+ ChannelSliderValueText: () => _sfc_main$8,
739
+ Content: () => _sfc_main$9,
740
+ Context: () => _sfc_main$10,
741
+ Control: () => _sfc_main$11,
742
+ EyeDropperTrigger: () => _sfc_main$12,
743
+ FormatSelect: () => _sfc_main$13,
744
+ FormatTrigger: () => _sfc_main$14,
745
+ HiddenInput: () => _sfc_main$15,
746
+ Label: () => _sfc_main$16,
747
+ Positioner: () => _sfc_main$17,
748
+ Root: () => _sfc_main$18,
749
+ RootProvider: () => _sfc_main$19,
750
+ Swatch: () => _sfc_main$20,
751
+ SwatchGroup: () => _sfc_main$21,
752
+ SwatchIndicator: () => _sfc_main$22,
753
+ SwatchTrigger: () => _sfc_main$23,
754
+ TransparencyGrid: () => _sfc_main$24,
755
+ Trigger: () => _sfc_main$25,
756
+ ValueSwatch: () => _sfc_main$26,
757
+ ValueText: () => _sfc_main$27,
758
+ View: () => _sfc_main$28
759
+ });
760
+ //#endregion
761
+ Object.defineProperty(exports, "ColorPicker", {
762
+ enumerable: true,
763
+ get: function() {
764
+ return color_picker_exports;
765
+ }
766
+ });
767
+ exports.ColorPickerArea = _sfc_main;
768
+ exports.ColorPickerAreaBackground = _sfc_main$1;
769
+ exports.ColorPickerAreaThumb = _sfc_main$2;
770
+ exports.ColorPickerChannelInput = _sfc_main$3;
771
+ exports.ColorPickerChannelSlider = _sfc_main$4;
772
+ exports.ColorPickerChannelSliderLabel = _sfc_main$5;
773
+ exports.ColorPickerChannelSliderThumb = _sfc_main$6;
774
+ exports.ColorPickerChannelSliderTrack = _sfc_main$7;
775
+ exports.ColorPickerChannelSliderValueText = _sfc_main$8;
776
+ exports.ColorPickerContent = _sfc_main$9;
777
+ exports.ColorPickerContext = _sfc_main$10;
778
+ exports.ColorPickerControl = _sfc_main$11;
779
+ exports.ColorPickerEyeDropperTrigger = _sfc_main$12;
780
+ exports.ColorPickerFormatSelect = _sfc_main$13;
781
+ exports.ColorPickerFormatTrigger = _sfc_main$14;
782
+ exports.ColorPickerHiddenInput = _sfc_main$15;
783
+ exports.ColorPickerLabel = _sfc_main$16;
784
+ exports.ColorPickerPositioner = _sfc_main$17;
785
+ exports.ColorPickerRoot = _sfc_main$18;
786
+ exports.ColorPickerRootProvider = _sfc_main$19;
787
+ exports.ColorPickerSwatch = _sfc_main$20;
788
+ exports.ColorPickerSwatchGroup = _sfc_main$21;
789
+ exports.ColorPickerSwatchIndicator = _sfc_main$22;
790
+ exports.ColorPickerSwatchTrigger = _sfc_main$23;
791
+ exports.ColorPickerTransparencyGrid = _sfc_main$24;
792
+ exports.ColorPickerTrigger = _sfc_main$25;
793
+ exports.ColorPickerValueSwatch = _sfc_main$26;
794
+ exports.ColorPickerValueText = _sfc_main$27;
795
+ exports.ColorPickerView = _sfc_main$28;
796
+ exports.colorPickerAnatomy = colorPickerAnatomy;
797
+ Object.defineProperty(exports, "parseColor", {
798
+ enumerable: true,
799
+ get: function() {
800
+ return _wirekyt_dom_machines_color_picker.parse;
801
+ }
802
+ });
803
+ exports.useColorPicker = useColorPicker;
804
+ exports.useColorPickerContext = useColorPickerContext;