@histoire/controls 0.10.7 → 0.11.1

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 (51) hide show
  1. package/dist/components/HstCopyIcon.vue.d.ts +1 -1
  2. package/dist/components/HstWrapper.vue.d.ts +16 -3
  3. package/dist/components/button/HstButton.story.vue.d.ts +2 -0
  4. package/dist/components/button/HstButton.vue.d.ts +15 -0
  5. package/dist/components/button/HstButtonGroup.story.vue.d.ts +2 -0
  6. package/dist/components/button/HstButtonGroup.vue.d.ts +24 -0
  7. package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +1 -1
  8. package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +2 -0
  9. package/dist/components/checkbox/HstCheckboxList.vue.d.ts +24 -0
  10. package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +2 -0
  11. package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +21 -0
  12. package/dist/components/design-tokens/HstColorShades.story.vue.d.ts +1 -1
  13. package/dist/components/design-tokens/HstColorShades.vue.d.ts +1 -1
  14. package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +1 -1
  15. package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +1 -1
  16. package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +1 -1
  17. package/dist/components/design-tokens/HstTokenList.vue.d.ts +1 -1
  18. package/dist/components/number/HstNumber.story.vue.d.ts +1 -1
  19. package/dist/components/radio/HstRadio.story.vue.d.ts +1 -1
  20. package/dist/components/select/HstSelect.story.vue.d.ts +1 -1
  21. package/dist/components/slider/HstSlider.story.vue.d.ts +1 -1
  22. package/dist/components/text/HstText.story.vue.d.ts +1 -1
  23. package/dist/components/textarea/HstTextarea.story.vue.d.ts +1 -1
  24. package/dist/index.d.ts +143 -8
  25. package/dist/index.es.js +706 -734
  26. package/dist/style-standalone.css +102 -70
  27. package/package.json +5 -4
  28. package/src/components/HstWrapper.vue +12 -4
  29. package/src/components/button/HstButton.story.vue +30 -0
  30. package/src/components/button/HstButton.vue +26 -0
  31. package/src/components/button/HstButtonGroup.story.vue +51 -0
  32. package/src/components/button/HstButtonGroup.vue +64 -0
  33. package/src/components/checkbox/HstCheckbox.story.vue +5 -1
  34. package/src/components/checkbox/HstCheckbox.vue +4 -50
  35. package/src/components/checkbox/HstCheckboxList.story.vue +49 -0
  36. package/src/components/checkbox/HstCheckboxList.vue +79 -0
  37. package/src/components/checkbox/HstSimpleCheckbox.story.vue +28 -0
  38. package/src/components/checkbox/HstSimpleCheckbox.vue +82 -0
  39. package/src/components/checkbox/__snapshots__/HstCheckbox.test.ts.snap +6 -6
  40. package/src/components/design-tokens/HstColorShades.story.vue +2 -1
  41. package/src/components/design-tokens/HstTokenGrid.story.vue +2 -1
  42. package/src/components/design-tokens/HstTokenList.story.vue +2 -1
  43. package/src/components/number/HstNumber.story.vue +1 -0
  44. package/src/components/number/HstNumber.vue +1 -2
  45. package/src/components/radio/HstRadio.story.vue +5 -1
  46. package/src/components/select/HstSelect.story.vue +1 -0
  47. package/src/components/slider/HstSlider.story.vue +2 -0
  48. package/src/components/text/HstText.story.vue +1 -0
  49. package/src/components/textarea/HstTextarea.story.vue +4 -1
  50. package/src/index.ts +11 -0
  51. package/vite.config.ts +1 -1
package/dist/index.es.js CHANGED
@@ -1,262 +1,356 @@
1
- import { defineComponent, openBlock, createElementBlock, withDirectives, createTextVNode, toDisplayString, unref, createElementVNode, renderSlot, ref, computed, watch, createBlock, withKeys, withModifiers, withCtx, normalizeClass, normalizeStyle, mergeProps, onUnmounted, isRef, vModelText, createCommentVNode, Fragment, renderList, createVNode } from "@histoire/vendors/vue";
2
- import { VTooltip, Dropdown } from "@histoire/vendors/floating-vue";
3
- import { Icon } from "@histoire/vendors/iconify";
4
- import { useClipboard } from "@histoire/vendors/vue-use";
5
- const _hoisted_1$9 = { class: "htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" };
6
- const _hoisted_2$7 = { class: "htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0" };
7
- const _hoisted_3$6 = { class: "htw-grow htw-flex htw-items-center htw-gap-1" };
8
- const _hoisted_4$4 = { class: "htw-block htw-grow" };
9
- const __default__$c = {
1
+ import { defineComponent as y, openBlock as i, createElementBlock as w, normalizeClass as b, renderSlot as g, createBlock as f, resolveDynamicComponent as P, withCtx as m, withDirectives as C, createTextVNode as H, toDisplayString as k, unref as d, createElementVNode as h, computed as v, Fragment as N, renderList as A, watch as D, ref as _, withKeys as E, withModifiers as B, createVNode as j, normalizeStyle as V, mergeProps as L, onUnmounted as W, isRef as K, vModelText as G, createCommentVNode as M } from "@histoire/vendors/vue";
2
+ import { VTooltip as O, Dropdown as X } from "@histoire/vendors/floating-vue";
3
+ import { Icon as I } from "@histoire/vendors/iconify";
4
+ import { useClipboard as J } from "@histoire/vendors/vue-use";
5
+ const q = {
6
+ name: "HstButton"
7
+ }, U = /* @__PURE__ */ y({
8
+ ...q,
9
+ props: {
10
+ color: null
11
+ },
12
+ setup(l) {
13
+ const c = {
14
+ default: "htw-bg-gray-200 dark:htw-bg-gray-750 htw-text-gray-900 dark:htw-text-gray-100 hover:htw-bg-primary-200 dark:hover:htw-bg-primary-900",
15
+ primary: "htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black",
16
+ flat: "htw-bg-transparent hover:htw-bg-gray-500/20 htw-text-gray-900 dark:htw-text-gray-100"
17
+ };
18
+ return (n, a) => {
19
+ var o;
20
+ return i(), w("button", {
21
+ class: b(["htw-cursor-pointer htw-rounded-sm", c[(o = l.color) != null ? o : "default"]])
22
+ }, [
23
+ g(n.$slots, "default")
24
+ ], 2);
25
+ };
26
+ }
27
+ }), Q = { class: "htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0" }, Y = { class: "htw-grow htw-flex htw-items-center htw-gap-1" }, Z = { class: "htw-block htw-grow" }, tt = {
10
28
  name: "HstWrapper"
11
- };
12
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13
- ...__default__$c,
29
+ }, S = /* @__PURE__ */ y({
30
+ ...tt,
14
31
  props: {
15
- title: null
32
+ title: null,
33
+ tag: { default: "label" }
16
34
  },
17
- setup(__props) {
18
- return (_ctx, _cache) => {
19
- return openBlock(), createElementBlock("label", _hoisted_1$9, [
20
- withDirectives((openBlock(), createElementBlock("span", _hoisted_2$7, [
21
- createTextVNode(toDisplayString(__props.title), 1)
35
+ setup(l) {
36
+ return (c, n) => (i(), f(P(l.tag), { class: "htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" }, {
37
+ default: m(() => [
38
+ C((i(), w("span", Q, [
39
+ H(k(l.title), 1)
22
40
  ])), [
23
- [unref(VTooltip), {
24
- content: __props.title,
41
+ [d(O), {
42
+ content: l.title,
25
43
  placement: "left",
26
44
  distance: 12
27
45
  }]
28
46
  ]),
29
- createElementVNode("span", _hoisted_3$6, [
30
- createElementVNode("span", _hoisted_4$4, [
31
- renderSlot(_ctx.$slots, "default")
47
+ h("span", Y, [
48
+ h("span", Z, [
49
+ g(c.$slots, "default")
32
50
  ]),
33
- renderSlot(_ctx.$slots, "actions")
51
+ g(c.$slots, "actions")
34
52
  ])
35
- ]);
36
- };
53
+ ]),
54
+ _: 3
55
+ }));
37
56
  }
38
- });
39
- const _hoisted_1$8 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
40
- const _hoisted_2$6 = {
57
+ }), et = { class: "htw-flex htw-gap-px htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 htw-rounded-sm htw-p-px" }, lt = {
58
+ name: "HstButtonGroup"
59
+ }, nt = /* @__PURE__ */ y({
60
+ ...lt,
61
+ props: {
62
+ title: null,
63
+ modelValue: null,
64
+ options: null
65
+ },
66
+ emits: ["update:modelValue"],
67
+ setup(l, { emit: c }) {
68
+ const n = l, a = v(() => Array.isArray(n.options) ? Object.fromEntries(n.options.map((e) => typeof e == "string" ? [e, e] : [e.value, e.label])) : n.options);
69
+ function o(e) {
70
+ c("update:modelValue", e);
71
+ }
72
+ return (e, t) => (i(), f(S, {
73
+ tag: "div",
74
+ role: "group",
75
+ title: l.title,
76
+ class: "htw-flex-nowrap htw-items-center"
77
+ }, {
78
+ actions: m(() => [
79
+ g(e.$slots, "actions")
80
+ ]),
81
+ default: m(() => [
82
+ h("div", et, [
83
+ (i(!0), w(N, null, A(d(a), (r, s) => (i(), f(U, {
84
+ key: s,
85
+ class: "htw-px-1 htw-h-[22px] htw-flex-1 !htw-rounded-[3px]",
86
+ color: s === l.modelValue ? "primary" : "flat",
87
+ rounded: !1,
88
+ onClick: (u) => o(s)
89
+ }, {
90
+ default: m(() => [
91
+ H(k(r), 1)
92
+ ]),
93
+ _: 2
94
+ }, 1032, ["color", "onClick"]))), 128))
95
+ ])
96
+ ]),
97
+ _: 3
98
+ }, 8, ["title"]));
99
+ }
100
+ }), st = {
41
101
  width: "16",
42
102
  height: "16",
43
103
  viewBox: "0 0 24 24",
44
104
  class: "htw-relative htw-z-10"
45
- };
46
- const _hoisted_3$5 = ["stroke-dasharray", "stroke-dashoffset"];
47
- const __default__$b = {
105
+ }, ot = ["stroke-dasharray", "stroke-dashoffset"], rt = {
106
+ name: "HstSimpleCheckbox"
107
+ }, F = /* @__PURE__ */ y({
108
+ ...rt,
109
+ props: {
110
+ modelValue: { type: Boolean },
111
+ withToggle: { type: Boolean }
112
+ },
113
+ emits: {
114
+ "update:modelValue": (l) => !0
115
+ },
116
+ setup(l, { emit: c }) {
117
+ const n = l;
118
+ function a() {
119
+ !n.withToggle || c("update:modelValue", !n.modelValue);
120
+ }
121
+ D(() => n.modelValue, () => {
122
+ s.value = !0;
123
+ });
124
+ const o = _(), e = _(0), t = v(() => n.modelValue ? 1 : 0), r = v(() => (1 - t.value) * e.value), s = _(!1);
125
+ return D(o, () => {
126
+ var u, p, $;
127
+ e.value = ($ = (p = (u = o.value).getTotalLength) == null ? void 0 : p.call(u)) != null ? $ : 21.21;
128
+ }), (u, p) => (i(), w("div", {
129
+ class: b(["htw-group htw-text-white htw-w-[16px] htw-h-[16px] htw-relative", { "htw-cursor-pointer": l.withToggle }]),
130
+ onClick: a
131
+ }, [
132
+ h("div", {
133
+ class: b(["htw-border htw-border-solid group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out group-hover:htw-border-primary-500 group-hover:dark:htw-border-primary-500", [
134
+ l.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
135
+ ]])
136
+ }, null, 2),
137
+ (i(), w("svg", st, [
138
+ h("path", {
139
+ ref_key: "path",
140
+ ref: o,
141
+ d: "m 4 12 l 5 5 l 10 -10",
142
+ fill: "none",
143
+ class: b(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out", [
144
+ s.value ? "htw-transition-all" : "htw-transition-none",
145
+ {
146
+ "htw-delay-150": l.modelValue
147
+ }
148
+ ]]),
149
+ "stroke-dasharray": e.value,
150
+ "stroke-dashoffset": d(r)
151
+ }, null, 10, ot)
152
+ ]))
153
+ ], 2));
154
+ }
155
+ }), at = {
48
156
  name: "HstCheckbox"
49
- };
50
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
51
- ...__default__$b,
157
+ }, ut = /* @__PURE__ */ y({
158
+ ...at,
52
159
  props: {
53
160
  modelValue: { type: Boolean },
54
161
  title: null
55
162
  },
56
163
  emits: {
57
- "update:modelValue": (newValue) => true
164
+ "update:modelValue": (l) => !0
58
165
  },
59
- setup(__props, { emit }) {
60
- const props = __props;
61
- function toggle() {
62
- emit("update:modelValue", !props.modelValue);
63
- animationEnabled.value = true;
166
+ setup(l, { emit: c }) {
167
+ const n = l;
168
+ function a() {
169
+ c("update:modelValue", !n.modelValue);
64
170
  }
65
- const path = ref();
66
- const dasharray = ref(0);
67
- const progress = computed(() => props.modelValue ? 1 : 0);
68
- const dashoffset = computed(() => (1 - progress.value) * dasharray.value);
69
- const animationEnabled = ref(false);
70
- watch(path, () => {
71
- var _a, _b, _c;
72
- dasharray.value = (_c = (_b = (_a = path.value).getTotalLength) == null ? void 0 : _b.call(_a)) != null ? _c : 21.21;
73
- });
74
- return (_ctx, _cache) => {
75
- return openBlock(), createBlock(_sfc_main$c, {
76
- role: "checkbox",
77
- tabindex: "0",
78
- class: "htw-cursor-pointer htw-items-center",
79
- title: __props.title,
80
- onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
81
- onKeydown: [
82
- _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
83
- _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["space"]))
84
- ]
85
- }, {
86
- actions: withCtx(() => [
87
- renderSlot(_ctx.$slots, "actions")
88
- ]),
89
- default: withCtx(() => [
90
- createElementVNode("div", _hoisted_1$8, [
91
- createElementVNode("div", {
92
- class: normalizeClass(["htw-border htw-border-solid group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out", [
93
- __props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
94
- ]])
95
- }, null, 2),
96
- (openBlock(), createElementBlock("svg", _hoisted_2$6, [
97
- createElementVNode("path", {
98
- ref_key: "path",
99
- ref: path,
100
- d: "m 4 12 l 5 5 l 10 -10",
101
- fill: "none",
102
- class: normalizeClass(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out", [
103
- animationEnabled.value ? "htw-transition-all" : "htw-transition-none",
104
- {
105
- "htw-delay-150": __props.modelValue
106
- }
107
- ]]),
108
- "stroke-dasharray": dasharray.value,
109
- "stroke-dashoffset": unref(dashoffset)
110
- }, null, 10, _hoisted_3$5)
111
- ]))
112
- ])
113
- ]),
114
- _: 3
115
- }, 8, ["title"]);
116
- };
171
+ return (o, e) => (i(), f(S, {
172
+ role: "checkbox",
173
+ tabindex: "0",
174
+ class: "htw-cursor-pointer htw-items-center",
175
+ title: l.title,
176
+ onClick: e[0] || (e[0] = (t) => a()),
177
+ onKeydown: [
178
+ e[1] || (e[1] = E(B((t) => a(), ["prevent"]), ["enter"])),
179
+ e[2] || (e[2] = E(B((t) => a(), ["prevent"]), ["space"]))
180
+ ]
181
+ }, {
182
+ actions: m(() => [
183
+ g(o.$slots, "actions")
184
+ ]),
185
+ default: m(() => [
186
+ j(F, { "model-value": l.modelValue }, null, 8, ["model-value"])
187
+ ]),
188
+ _: 3
189
+ }, 8, ["title"]));
117
190
  }
118
- });
119
- const _hoisted_1$7 = ["value"];
120
- const __default__$a = {
191
+ }), it = { class: "-htw-my-1" }, ct = ["for", "onKeydown", "onClick"], ht = {
192
+ name: "HstCheckboxList"
193
+ }, dt = /* @__PURE__ */ y({
194
+ ...ht,
195
+ props: {
196
+ title: null,
197
+ modelValue: null,
198
+ options: null
199
+ },
200
+ emits: ["update:modelValue"],
201
+ setup(l, { emit: c }) {
202
+ const n = l, a = v(() => Array.isArray(n.options) ? Object.fromEntries(n.options.map((e) => typeof e == "string" ? [e, e] : [e.value, e.label])) : n.options);
203
+ function o(e) {
204
+ n.modelValue.includes(e) ? c("update:modelValue", n.modelValue.filter((t) => t !== e)) : c("update:modelValue", [...n.modelValue, e]);
205
+ }
206
+ return (e, t) => (i(), f(S, {
207
+ role: "group",
208
+ title: l.title,
209
+ class: b(["htw-cursor-text", e.$attrs.class]),
210
+ style: V(e.$attrs.style)
211
+ }, {
212
+ actions: m(() => [
213
+ g(e.$slots, "actions")
214
+ ]),
215
+ default: m(() => [
216
+ h("div", it, [
217
+ (i(!0), w(N, null, A(d(a), (r, s) => (i(), w("label", {
218
+ key: s,
219
+ tabindex: "0",
220
+ for: `${s}-radio`,
221
+ class: "htw-cursor-pointer htw-flex htw-items-center htw-relative htw-py-1 htw-group",
222
+ onKeydown: [
223
+ E(B((u) => o(s), ["prevent"]), ["enter"]),
224
+ E(B((u) => o(s), ["prevent"]), ["space"])
225
+ ],
226
+ onClick: (u) => o(s)
227
+ }, [
228
+ j(F, {
229
+ "model-value": l.modelValue.includes(s),
230
+ class: "htw-mr-2"
231
+ }, null, 8, ["model-value"]),
232
+ H(" " + k(r), 1)
233
+ ], 40, ct))), 128))
234
+ ])
235
+ ]),
236
+ _: 3
237
+ }, 8, ["title", "class", "style"]));
238
+ }
239
+ }), wt = ["value"], pt = {
121
240
  name: "HstText"
122
- };
123
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
124
- ...__default__$a,
241
+ }, mt = /* @__PURE__ */ y({
242
+ ...pt,
125
243
  props: {
126
244
  title: null,
127
245
  modelValue: null
128
246
  },
129
247
  emits: {
130
- "update:modelValue": (newValue) => true
248
+ "update:modelValue": (l) => !0
131
249
  },
132
- setup(__props, { emit }) {
133
- const input = ref();
134
- return (_ctx, _cache) => {
135
- return openBlock(), createBlock(_sfc_main$c, {
136
- title: __props.title,
137
- class: normalizeClass(["htw-cursor-text htw-items-center", _ctx.$attrs.class]),
138
- style: normalizeStyle(_ctx.$attrs.style),
139
- onClick: _cache[1] || (_cache[1] = ($event) => input.value.focus())
140
- }, {
141
- actions: withCtx(() => [
142
- renderSlot(_ctx.$slots, "actions")
143
- ]),
144
- default: withCtx(() => [
145
- createElementVNode("input", mergeProps({
146
- ref_key: "input",
147
- ref: input
148
- }, { ..._ctx.$attrs, class: null, style: null }, {
149
- type: "text",
150
- value: __props.modelValue,
151
- class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm",
152
- onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
153
- }), null, 16, _hoisted_1$7)
154
- ]),
155
- _: 3
156
- }, 8, ["title", "class", "style"]);
157
- };
250
+ setup(l, { emit: c }) {
251
+ const n = _();
252
+ return (a, o) => (i(), f(S, {
253
+ title: l.title,
254
+ class: b(["htw-cursor-text htw-items-center", a.$attrs.class]),
255
+ style: V(a.$attrs.style),
256
+ onClick: o[1] || (o[1] = (e) => n.value.focus())
257
+ }, {
258
+ actions: m(() => [
259
+ g(a.$slots, "actions")
260
+ ]),
261
+ default: m(() => [
262
+ h("input", L({
263
+ ref_key: "input",
264
+ ref: n
265
+ }, { ...a.$attrs, class: null, style: null }, {
266
+ type: "text",
267
+ value: l.modelValue,
268
+ class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm",
269
+ onInput: o[0] || (o[0] = (e) => c("update:modelValue", e.target.value))
270
+ }), null, 16, wt)
271
+ ]),
272
+ _: 3
273
+ }, 8, ["title", "class", "style"]));
158
274
  }
159
- });
160
- const __default__$9 = {
275
+ }), ft = {
161
276
  name: "HstNumber",
162
- inheritAttrs: false
163
- };
164
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
165
- ...__default__$9,
277
+ inheritAttrs: !1
278
+ }, yt = /* @__PURE__ */ y({
279
+ ...ft,
166
280
  props: {
167
281
  title: null,
168
282
  modelValue: null
169
283
  },
170
284
  emits: {
171
- "update:modelValue": (newValue) => true
285
+ "update:modelValue": (l) => !0
172
286
  },
173
- setup(__props, { emit }) {
174
- const props = __props;
175
- const numberModel = computed({
176
- get: () => props.modelValue,
177
- set: (value) => {
178
- emit("update:modelValue", value);
287
+ setup(l, { emit: c }) {
288
+ const n = l, a = v({
289
+ get: () => n.modelValue,
290
+ set: (x) => {
291
+ c("update:modelValue", x);
179
292
  }
180
- });
181
- const input = ref();
182
- function focusAndSelect() {
183
- input.value.focus();
184
- input.value.select();
293
+ }), o = _();
294
+ function e() {
295
+ o.value.focus(), o.value.select();
185
296
  }
186
- const isDragging = ref(false);
187
- let startX;
188
- let startValue;
189
- function onMouseDown(event) {
190
- isDragging.value = true;
191
- startX = event.clientX;
192
- startValue = numberModel.value;
193
- window.addEventListener("mousemove", onMouseMove);
194
- window.addEventListener("mouseup", stopDragging);
297
+ const t = _(!1);
298
+ let r, s;
299
+ function u(x) {
300
+ t.value = !0, r = x.clientX, s = a.value, window.addEventListener("mousemove", p), window.addEventListener("mouseup", $);
195
301
  }
196
- function onMouseMove(event) {
197
- let step = parseFloat(input.value.step);
198
- if (isNaN(step)) {
199
- step = 1;
200
- }
201
- numberModel.value = startValue + Math.round((event.clientX - startX) / 10 / step) * step;
302
+ function p(x) {
303
+ let T = parseFloat(o.value.step);
304
+ isNaN(T) && (T = 1), a.value = s + Math.round((x.clientX - r) / 10 / T) * T;
202
305
  }
203
- function stopDragging() {
204
- isDragging.value = false;
205
- window.removeEventListener("mousemove", onMouseMove);
206
- window.removeEventListener("mouseup", stopDragging);
306
+ function $() {
307
+ t.value = !1, window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", $);
207
308
  }
208
- onUnmounted(() => {
209
- stopDragging();
210
- });
211
- return (_ctx, _cache) => {
212
- return openBlock(), createBlock(_sfc_main$c, {
213
- class: normalizeClass(["htw-cursor-ew-resize htw-items-center", [
214
- _ctx.$attrs.class,
215
- { "htw-select-none": isDragging.value }
216
- ]]),
217
- title: __props.title,
218
- style: normalizeStyle(_ctx.$attrs.style),
219
- onClick: focusAndSelect,
220
- onMousedown: onMouseDown
221
- }, {
222
- actions: withCtx(() => [
223
- renderSlot(_ctx.$slots, "actions")
224
- ]),
225
- default: withCtx(() => [
226
- withDirectives(createElementVNode("input", mergeProps({
227
- ref_key: "input",
228
- ref: input
229
- }, { ..._ctx.$attrs, class: null, style: null }, {
230
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(numberModel) ? numberModel.value = $event : null),
231
- type: "number",
232
- class: [{
233
- "htw-select-none": isDragging.value
234
- }, "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-pl-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-cursor-ew-resize"]
235
- }), null, 16), [
236
- [
237
- vModelText,
238
- unref(numberModel),
239
- void 0,
240
- { number: true }
241
- ]
242
- ])
243
- ]),
244
- _: 3
245
- }, 8, ["title", "class", "style"]);
246
- };
309
+ return W(() => {
310
+ $();
311
+ }), (x, T) => (i(), f(S, {
312
+ class: b(["htw-cursor-ew-resize htw-items-center", [
313
+ x.$attrs.class,
314
+ { "htw-select-none": t.value }
315
+ ]]),
316
+ title: l.title,
317
+ style: V(x.$attrs.style),
318
+ onClick: e,
319
+ onMousedown: u
320
+ }, {
321
+ actions: m(() => [
322
+ g(x.$slots, "actions")
323
+ ]),
324
+ default: m(() => [
325
+ C(h("input", L({
326
+ ref_key: "input",
327
+ ref: o
328
+ }, { ...x.$attrs, class: null, style: null }, {
329
+ "onUpdate:modelValue": T[0] || (T[0] = (R) => K(a) ? a.value = R : null),
330
+ type: "number",
331
+ class: [{
332
+ "htw-select-none": t.value
333
+ }, "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-pl-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-cursor-ew-resize htw-box-border"]
334
+ }), null, 16), [
335
+ [
336
+ G,
337
+ d(a),
338
+ void 0,
339
+ { number: !0 }
340
+ ]
341
+ ])
342
+ ]),
343
+ _: 3
344
+ }, 8, ["title", "class", "style"]));
247
345
  }
248
346
  });
249
- var HstSlider_vue_vue_type_style_index_0_lang = "";
250
- const _hoisted_1$6 = { class: "htw-relative htw-w-full htw-flex htw-items-center" };
251
- const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("div", { class: "htw-absolute htw-inset-0 htw-flex htw-items-center" }, [
252
- /* @__PURE__ */ createElementVNode("div", { class: "htw-border htw-border-black/25 dark:htw-border-white/25 htw-h-1 htw-w-full htw-rounded-full" })
253
- ], -1);
254
- const __default__$8 = {
347
+ const vt = { class: "htw-relative htw-w-full htw-flex htw-items-center" }, gt = /* @__PURE__ */ h("div", { class: "htw-absolute htw-inset-0 htw-flex htw-items-center" }, [
348
+ /* @__PURE__ */ h("div", { class: "htw-border htw-border-black/25 dark:htw-border-white/25 htw-h-1 htw-w-full htw-rounded-full" })
349
+ ], -1), bt = {
255
350
  name: "HstSlider",
256
- inheritAttrs: false
257
- };
258
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
259
- ...__default__$8,
351
+ inheritAttrs: !1
352
+ }, _t = /* @__PURE__ */ y({
353
+ ...bt,
260
354
  props: {
261
355
  title: null,
262
356
  modelValue: null,
@@ -264,604 +358,482 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
264
358
  max: null
265
359
  },
266
360
  emits: {
267
- "update:modelValue": (newValue) => true
361
+ "update:modelValue": (l) => !0
268
362
  },
269
- setup(__props, { emit }) {
270
- const props = __props;
271
- const showTooltip = ref(false);
272
- const input = ref(null);
273
- const numberModel = computed({
274
- get: () => props.modelValue,
275
- set: (value) => {
276
- emit("update:modelValue", value);
363
+ setup(l, { emit: c }) {
364
+ const n = l, a = _(!1), o = _(null), e = v({
365
+ get: () => n.modelValue,
366
+ set: (s) => {
367
+ c("update:modelValue", s);
277
368
  }
278
- });
279
- const percentage = computed(() => {
280
- return (props.modelValue - props.min) / (props.max - props.min);
281
- });
282
- const tooltipStyle = computed(() => {
283
- const gap = 8;
284
- if (input.value) {
285
- const position = gap + (input.value.clientWidth - 2 * gap) * percentage.value;
286
- return {
287
- left: position + "px"
288
- };
289
- }
290
- return {};
291
- });
292
- return (_ctx, _cache) => {
293
- return openBlock(), createBlock(_sfc_main$c, {
294
- class: normalizeClass(["htw-items-center", _ctx.$attrs.class]),
295
- title: __props.title,
296
- style: normalizeStyle(_ctx.$attrs.style)
297
- }, {
298
- default: withCtx(() => [
299
- createElementVNode("div", _hoisted_1$6, [
300
- _hoisted_2$5,
301
- withDirectives(createElementVNode("input", mergeProps({
302
- ref_key: "input",
303
- ref: input,
304
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(numberModel) ? numberModel.value = $event : null),
305
- class: "htw-range-input htw-appearance-none htw-border-0 htw-bg-transparent htw-cursor-pointer htw-relative htw-w-full htw-m-0 htw-text-gray-700",
306
- type: "range"
307
- }, { ..._ctx.$attrs, class: null, style: null, min: __props.min, max: __props.max }, {
308
- onMouseover: _cache[1] || (_cache[1] = ($event) => showTooltip.value = true),
309
- onMouseleave: _cache[2] || (_cache[2] = ($event) => showTooltip.value = false)
310
- }), null, 16), [
311
- [
312
- vModelText,
313
- unref(numberModel),
314
- void 0,
315
- { number: true }
316
- ]
317
- ]),
318
- showTooltip.value ? withDirectives((openBlock(), createElementBlock("div", {
319
- key: 0,
320
- class: "htw-absolute",
321
- style: normalizeStyle(unref(tooltipStyle))
322
- }, null, 4)), [
323
- [unref(VTooltip), { content: __props.modelValue.toString(), shown: true, distance: 16, delay: 0 }]
324
- ]) : createCommentVNode("", true)
325
- ])
326
- ]),
327
- _: 1
328
- }, 8, ["title", "class", "style"]);
329
- };
369
+ }), t = v(() => (n.modelValue - n.min) / (n.max - n.min)), r = v(() => o.value ? {
370
+ left: 8 + (o.value.clientWidth - 16) * t.value + "px"
371
+ } : {});
372
+ return (s, u) => (i(), f(S, {
373
+ class: b(["htw-items-center", s.$attrs.class]),
374
+ title: l.title,
375
+ style: V(s.$attrs.style)
376
+ }, {
377
+ default: m(() => [
378
+ h("div", vt, [
379
+ gt,
380
+ C(h("input", L({
381
+ ref_key: "input",
382
+ ref: o,
383
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => K(e) ? e.value = p : null),
384
+ class: "htw-range-input htw-appearance-none htw-border-0 htw-bg-transparent htw-cursor-pointer htw-relative htw-w-full htw-m-0 htw-text-gray-700",
385
+ type: "range"
386
+ }, { ...s.$attrs, class: null, style: null, min: l.min, max: l.max }, {
387
+ onMouseover: u[1] || (u[1] = (p) => a.value = !0),
388
+ onMouseleave: u[2] || (u[2] = (p) => a.value = !1)
389
+ }), null, 16), [
390
+ [
391
+ G,
392
+ d(e),
393
+ void 0,
394
+ { number: !0 }
395
+ ]
396
+ ]),
397
+ a.value ? C((i(), w("div", {
398
+ key: 0,
399
+ class: "htw-absolute",
400
+ style: V(d(r))
401
+ }, null, 4)), [
402
+ [d(O), { content: l.modelValue.toString(), shown: !0, distance: 16, delay: 0 }]
403
+ ]) : M("", !0)
404
+ ])
405
+ ]),
406
+ _: 1
407
+ }, 8, ["title", "class", "style"]));
330
408
  }
331
- });
332
- const _hoisted_1$5 = ["value"];
333
- const __default__$7 = {
409
+ }), $t = ["value"], xt = {
334
410
  name: "HstTextarea",
335
- inheritAttrs: false
336
- };
337
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
338
- ...__default__$7,
411
+ inheritAttrs: !1
412
+ }, kt = /* @__PURE__ */ y({
413
+ ...xt,
339
414
  props: {
340
415
  title: null,
341
416
  modelValue: null
342
417
  },
343
418
  emits: {
344
- "update:modelValue": (newValue) => true
419
+ "update:modelValue": (l) => !0
345
420
  },
346
- setup(__props, { emit }) {
347
- const input = ref();
348
- return (_ctx, _cache) => {
349
- return openBlock(), createBlock(_sfc_main$c, {
350
- title: __props.title,
351
- class: normalizeClass(["htw-cursor-text", _ctx.$attrs.class]),
352
- style: normalizeStyle(_ctx.$attrs.style),
353
- onClick: _cache[1] || (_cache[1] = ($event) => input.value.focus())
354
- }, {
355
- actions: withCtx(() => [
356
- renderSlot(_ctx.$slots, "actions")
357
- ]),
358
- default: withCtx(() => [
359
- createElementVNode("textarea", mergeProps({
360
- ref_key: "input",
361
- ref: input
362
- }, { ..._ctx.$attrs, class: null, style: null }, {
363
- value: __props.modelValue,
364
- class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-box-border htw-resize-y htw-min-h-[26px]",
365
- onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
366
- }), null, 16, _hoisted_1$5)
367
- ]),
368
- _: 3
369
- }, 8, ["title", "class", "style"]);
370
- };
421
+ setup(l, { emit: c }) {
422
+ const n = _();
423
+ return (a, o) => (i(), f(S, {
424
+ title: l.title,
425
+ class: b(["htw-cursor-text", a.$attrs.class]),
426
+ style: V(a.$attrs.style),
427
+ onClick: o[1] || (o[1] = (e) => n.value.focus())
428
+ }, {
429
+ actions: m(() => [
430
+ g(a.$slots, "actions")
431
+ ]),
432
+ default: m(() => [
433
+ h("textarea", L({
434
+ ref_key: "input",
435
+ ref: n
436
+ }, { ...a.$attrs, class: null, style: null }, {
437
+ value: l.modelValue,
438
+ class: "htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-box-border htw-resize-y htw-min-h-[26px]",
439
+ onInput: o[0] || (o[0] = (e) => c("update:modelValue", e.target.value))
440
+ }), null, 16, $t)
441
+ ]),
442
+ _: 3
443
+ }, 8, ["title", "class", "style"]));
371
444
  }
372
445
  });
373
- var CustomSelect_vue_vue_type_style_index_0_lang = "";
374
- const _hoisted_1$4 = { class: "htw-cursor-pointer htw-w-full htw-outline-none htw-px-2 htw-h-[27px] -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 hover:htw-border-primary-500 dark:hover:htw-border-primary-500 htw-rounded-sm htw-flex htw-gap-2 htw-items-center htw-leading-normal" };
375
- const _hoisted_2$4 = { class: "htw-flex-1 htw-truncate" };
376
- const _hoisted_3$4 = { class: "htw-flex htw-flex-col htw-bg-gray-50 dark:htw-bg-gray-700" };
377
- const _hoisted_4$3 = ["onClick"];
378
- const __default__$6 = {
446
+ const Vt = { class: "htw-cursor-pointer htw-w-full htw-outline-none htw-px-2 htw-h-[27px] -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 hover:htw-border-primary-500 dark:hover:htw-border-primary-500 htw-rounded-sm htw-flex htw-gap-2 htw-items-center htw-leading-normal" }, Ct = { class: "htw-flex-1 htw-truncate" }, Ht = { class: "htw-flex htw-flex-col htw-bg-gray-50 dark:htw-bg-gray-700" }, St = ["onClick"], Mt = {
379
447
  name: "CustomSelect"
380
- };
381
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
382
- ...__default__$6,
448
+ }, Nt = /* @__PURE__ */ y({
449
+ ...Mt,
383
450
  props: {
384
451
  modelValue: null,
385
452
  options: null
386
453
  },
387
454
  emits: ["update:modelValue"],
388
- setup(__props, { emit: emits }) {
389
- const props = __props;
390
- const formattedOptions = computed(() => {
391
- if (Array.isArray(props.options)) {
392
- return props.options.map((option) => {
393
- if (typeof option === "string") {
394
- return [option, option];
395
- } else {
396
- return [option.value, option.label];
397
- }
398
- });
399
- } else {
400
- return Object.entries(props.options);
401
- }
455
+ setup(l, { emit: c }) {
456
+ const n = l, a = v(() => Array.isArray(n.options) ? n.options.map((t) => typeof t == "string" ? [t, t] : [t.value, t.label]) : Object.entries(n.options)), o = v(() => {
457
+ var t;
458
+ return (t = a.value.find(([r]) => r === n.modelValue)) == null ? void 0 : t[1];
402
459
  });
403
- const selectedLabel = computed(() => {
404
- var _a;
405
- return (_a = formattedOptions.value.find(([value]) => value === props.modelValue)) == null ? void 0 : _a[1];
406
- });
407
- function selectValue(value, hide) {
408
- emits("update:modelValue", value);
409
- hide();
460
+ function e(t, r) {
461
+ c("update:modelValue", t), r();
410
462
  }
411
- return (_ctx, _cache) => {
412
- return openBlock(), createBlock(unref(Dropdown), { "auto-size": "" }, {
413
- popper: withCtx(({ hide }) => [
414
- createElementVNode("div", _hoisted_3$4, [
415
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formattedOptions), ([value, label]) => {
416
- return openBlock(), createElementBlock("div", mergeProps({ ..._ctx.$attrs, class: null, style: null }, {
417
- key: label,
418
- class: ["htw-px-2 htw-py-1 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700", {
419
- "htw-bg-primary-200 dark:htw-bg-primary-800": props.modelValue === value
420
- }],
421
- onClick: ($event) => selectValue(value, hide)
422
- }), toDisplayString(label), 17, _hoisted_4$3);
423
- }), 128))
424
- ])
425
- ]),
426
- default: withCtx(() => [
427
- createElementVNode("div", _hoisted_1$4, [
428
- createElementVNode("div", _hoisted_2$4, [
429
- renderSlot(_ctx.$slots, "default", { label: unref(selectedLabel) }, () => [
430
- createTextVNode(toDisplayString(unref(selectedLabel)), 1)
431
- ])
432
- ]),
433
- createVNode(unref(Icon), {
434
- icon: "carbon:chevron-sort",
435
- class: "htw-w-4 htw-h-4 htw-flex-none htw-ml-auto"
436
- })
437
- ])
438
- ]),
439
- _: 3
440
- });
441
- };
463
+ return (t, r) => (i(), f(d(X), { "auto-size": "" }, {
464
+ popper: m(({ hide: s }) => [
465
+ h("div", Ht, [
466
+ (i(!0), w(N, null, A(d(a), ([u, p]) => (i(), w("div", L({ ...t.$attrs, class: null, style: null }, {
467
+ key: p,
468
+ class: ["htw-px-2 htw-py-1 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700", {
469
+ "htw-bg-primary-200 dark:htw-bg-primary-800": n.modelValue === u
470
+ }],
471
+ onClick: ($) => e(u, s)
472
+ }), k(p), 17, St))), 128))
473
+ ])
474
+ ]),
475
+ default: m(() => [
476
+ h("div", Vt, [
477
+ h("div", Ct, [
478
+ g(t.$slots, "default", { label: d(o) }, () => [
479
+ H(k(d(o)), 1)
480
+ ])
481
+ ]),
482
+ j(d(I), {
483
+ icon: "carbon:chevron-sort",
484
+ class: "htw-w-4 htw-h-4 htw-flex-none htw-ml-auto"
485
+ })
486
+ ])
487
+ ]),
488
+ _: 3
489
+ }));
442
490
  }
443
- });
444
- const __default__$5 = {
491
+ }), Tt = {
445
492
  name: "HstSelect"
446
- };
447
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
448
- ...__default__$5,
493
+ }, Ot = /* @__PURE__ */ y({
494
+ ...Tt,
449
495
  props: {
450
496
  title: null,
451
497
  modelValue: null,
452
498
  options: null
453
499
  },
454
500
  emits: ["update:modelValue"],
455
- setup(__props, { emit: emits }) {
456
- return (_ctx, _cache) => {
457
- return openBlock(), createBlock(_sfc_main$c, {
458
- title: __props.title,
459
- class: normalizeClass(["htw-cursor-text htw-items-center", _ctx.$attrs.class]),
460
- style: normalizeStyle(_ctx.$attrs.style)
461
- }, {
462
- actions: withCtx(() => [
463
- renderSlot(_ctx.$slots, "actions")
464
- ]),
465
- default: withCtx(() => [
466
- createVNode(_sfc_main$6, {
467
- options: __props.options,
468
- "model-value": __props.modelValue,
469
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
470
- }, null, 8, ["options", "model-value"])
471
- ]),
472
- _: 3
473
- }, 8, ["title", "class", "style"]);
474
- };
501
+ setup(l, { emit: c }) {
502
+ return (n, a) => (i(), f(S, {
503
+ title: l.title,
504
+ class: b(["htw-cursor-text htw-items-center", n.$attrs.class]),
505
+ style: V(n.$attrs.style)
506
+ }, {
507
+ actions: m(() => [
508
+ g(n.$slots, "actions")
509
+ ]),
510
+ default: m(() => [
511
+ j(Nt, {
512
+ options: l.options,
513
+ "model-value": l.modelValue,
514
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => c("update:modelValue", o))
515
+ }, null, 8, ["options", "model-value"])
516
+ ]),
517
+ _: 3
518
+ }, 8, ["title", "class", "style"]));
475
519
  }
476
- });
477
- const __default__$4 = {
520
+ }), zt = {
478
521
  name: "HstCopyIcon"
479
- };
480
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
481
- ...__default__$4,
522
+ }, z = /* @__PURE__ */ y({
523
+ ...zt,
482
524
  props: {
483
525
  content: null
484
526
  },
485
- setup(__props) {
486
- const props = __props;
487
- const { copy, copied } = useClipboard();
488
- const action = () => copy(props.content);
489
- return (_ctx, _cache) => {
490
- return withDirectives((openBlock(), createBlock(unref(Icon), {
491
- icon: "carbon:copy-file",
492
- class: "htw-w-4 htw-h-4 htw-opacity-50 hover:htw-opacity-100 hover:htw-text-primary-500 htw-cursor-pointer",
493
- onClick: _cache[0] || (_cache[0] = ($event) => action())
494
- }, null, 512)), [
495
- [unref(VTooltip), {
496
- content: "Copied!",
497
- triggers: [],
498
- shown: unref(copied),
499
- distance: 12,
500
- delay: 0
501
- }]
502
- ]);
503
- };
527
+ setup(l) {
528
+ const c = l, { copy: n, copied: a } = J(), o = () => n(c.content);
529
+ return (e, t) => C((i(), f(d(I), {
530
+ icon: "carbon:copy-file",
531
+ class: "htw-w-4 htw-h-4 htw-opacity-50 hover:htw-opacity-100 hover:htw-text-primary-500 htw-cursor-pointer",
532
+ onClick: t[0] || (t[0] = (r) => o())
533
+ }, null, 512)), [
534
+ [d(O), {
535
+ content: "Copied!",
536
+ triggers: [],
537
+ shown: d(a),
538
+ distance: 12,
539
+ delay: 0
540
+ }]
541
+ ]);
504
542
  }
505
- });
506
- const _hoisted_1$3 = {
543
+ }), At = {
507
544
  key: 0,
508
545
  class: "htw-grid htw-gap-4 htw-grid-cols-[repeat(auto-fill,minmax(200px,1fr))] htw-m-4"
509
- };
510
- const _hoisted_2$3 = ["onMouseenter"];
511
- const _hoisted_3$3 = { class: "htw-flex htw-gap-1" };
512
- const _hoisted_4$2 = { class: "htw-my-0 htw-truncate htw-shrink" };
513
- const _hoisted_5$2 = { class: "htw-flex htw-gap-1" };
514
- const _hoisted_6$1 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
515
- const __default__$3 = {
546
+ }, Et = ["onMouseenter"], Bt = { class: "htw-flex htw-gap-1" }, Lt = { class: "htw-my-0 htw-truncate htw-shrink" }, jt = { class: "htw-flex htw-gap-1" }, Dt = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" }, Kt = {
516
547
  name: "HstColorShades"
517
- };
518
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
519
- ...__default__$3,
548
+ }, Gt = /* @__PURE__ */ y({
549
+ ...Kt,
520
550
  props: {
521
551
  shades: null,
522
552
  getName: null,
523
553
  search: null
524
554
  },
525
- setup(__props) {
526
- const props = __props;
527
- const flattenShades = (shades, path = "") => {
528
- return Object.entries(shades).reduce((acc, [key, color]) => {
529
- const nextPath = path ? key === "DEFAULT" ? path : `${path}-${key}` : key;
530
- const obj = typeof color === "object" ? flattenShades(color, nextPath) : { [nextPath]: color };
531
- return { ...acc, ...obj };
532
- }, {});
533
- };
534
- const shadesWithName = computed(() => {
535
- const shades = props.shades;
536
- const getName = props.getName;
537
- const flatShades = flattenShades(shades);
538
- return Object.entries(flatShades).map(([key, color]) => {
539
- const name = getName ? getName(key, color) : key;
555
+ setup(l) {
556
+ const c = l, n = (t, r = "") => Object.entries(t).reduce((s, [u, p]) => {
557
+ const $ = r ? u === "DEFAULT" ? r : `${r}-${u}` : u, x = typeof p == "object" ? n(p, $) : { [$]: p };
558
+ return { ...s, ...x };
559
+ }, {}), a = v(() => {
560
+ const t = c.shades, r = c.getName, s = n(t);
561
+ return Object.entries(s).map(([u, p]) => {
562
+ const $ = r ? r(u, p) : u;
540
563
  return {
541
- key,
542
- color,
543
- name
564
+ key: u,
565
+ color: p,
566
+ name: $
544
567
  };
545
568
  });
546
- });
547
- const displayedShades = computed(() => {
548
- let list = shadesWithName.value;
549
- if (props.search) {
550
- const reg = new RegExp(props.search, "i");
551
- list = list.filter(({ name }) => reg.test(name));
569
+ }), o = v(() => {
570
+ let t = a.value;
571
+ if (c.search) {
572
+ const r = new RegExp(c.search, "i");
573
+ t = t.filter(({ name: s }) => r.test(s));
552
574
  }
553
- return list;
554
- });
555
- const hover = ref(null);
556
- return (_ctx, _cache) => {
557
- return unref(displayedShades).length ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
558
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayedShades), (shade) => {
559
- return openBlock(), createElementBlock("div", {
560
- key: shade.key,
561
- class: "htw-flex htw-flex-col htw-gap-2",
562
- onMouseenter: ($event) => hover.value = shade.key,
563
- onMouseleave: _cache[0] || (_cache[0] = ($event) => hover.value = null)
564
- }, [
565
- renderSlot(_ctx.$slots, "default", {
566
- color: shade.color
567
- }, () => [
568
- createElementVNode("div", {
569
- class: "htw-rounded-full htw-w-16 htw-h-16",
570
- style: normalizeStyle({
571
- backgroundColor: shade.color
572
- })
573
- }, null, 4)
575
+ return t;
576
+ }), e = _(null);
577
+ return (t, r) => d(o).length ? (i(), w("div", At, [
578
+ (i(!0), w(N, null, A(d(o), (s) => (i(), w("div", {
579
+ key: s.key,
580
+ class: "htw-flex htw-flex-col htw-gap-2",
581
+ onMouseenter: (u) => e.value = s.key,
582
+ onMouseleave: r[0] || (r[0] = (u) => e.value = null)
583
+ }, [
584
+ g(t.$slots, "default", {
585
+ color: s.color
586
+ }, () => [
587
+ h("div", {
588
+ class: "htw-rounded-full htw-w-16 htw-h-16",
589
+ style: V({
590
+ backgroundColor: s.color
591
+ })
592
+ }, null, 4)
593
+ ]),
594
+ h("div", null, [
595
+ h("div", Bt, [
596
+ C((i(), w("pre", Lt, [
597
+ H(k(s.name), 1)
598
+ ])), [
599
+ [d(O), s.name.length > 23 ? s.name : ""]
574
600
  ]),
575
- createElementVNode("div", null, [
576
- createElementVNode("div", _hoisted_3$3, [
577
- withDirectives((openBlock(), createElementBlock("pre", _hoisted_4$2, [
578
- createTextVNode(toDisplayString(shade.name), 1)
579
- ])), [
580
- [unref(VTooltip), shade.name.length > 23 ? shade.name : ""]
581
- ]),
582
- hover.value === shade.key ? (openBlock(), createBlock(_sfc_main$4, {
583
- key: 0,
584
- content: shade.name,
585
- class: "htw-flex-none"
586
- }, null, 8, ["content"])) : createCommentVNode("", true)
587
- ]),
588
- createElementVNode("div", _hoisted_5$2, [
589
- withDirectives((openBlock(), createElementBlock("pre", _hoisted_6$1, [
590
- createTextVNode(toDisplayString(shade.color), 1)
591
- ])), [
592
- [unref(VTooltip), shade.color.length > 23 ? shade.color : ""]
593
- ]),
594
- hover.value === shade.key ? (openBlock(), createBlock(_sfc_main$4, {
595
- key: 0,
596
- content: shade.color,
597
- class: "htw-flex-none"
598
- }, null, 8, ["content"])) : createCommentVNode("", true)
599
- ])
600
- ])
601
- ], 40, _hoisted_2$3);
602
- }), 128))
603
- ])) : createCommentVNode("", true);
604
- };
601
+ e.value === s.key ? (i(), f(z, {
602
+ key: 0,
603
+ content: s.name,
604
+ class: "htw-flex-none"
605
+ }, null, 8, ["content"])) : M("", !0)
606
+ ]),
607
+ h("div", jt, [
608
+ C((i(), w("pre", Dt, [
609
+ H(k(s.color), 1)
610
+ ])), [
611
+ [d(O), s.color.length > 23 ? s.color : ""]
612
+ ]),
613
+ e.value === s.key ? (i(), f(z, {
614
+ key: 0,
615
+ content: s.color,
616
+ class: "htw-flex-none"
617
+ }, null, 8, ["content"])) : M("", !0)
618
+ ])
619
+ ])
620
+ ], 40, Et))), 128))
621
+ ])) : M("", !0);
605
622
  }
606
- });
607
- const _hoisted_1$2 = ["onMouseenter"];
608
- const _hoisted_2$2 = { class: "htw-mx-4" };
609
- const _hoisted_3$2 = { class: "htw-flex htw-gap-1" };
610
- const _hoisted_4$1 = { class: "htw-my-0 htw-truncate htw-shrink" };
611
- const _hoisted_5$1 = { class: "htw-flex htw-gap-1" };
612
- const _hoisted_6 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
613
- const __default__$2 = {
623
+ }), It = ["onMouseenter"], Ut = { class: "htw-mx-4" }, Ft = { class: "htw-flex htw-gap-1" }, Rt = { class: "htw-my-0 htw-truncate htw-shrink" }, Pt = { class: "htw-flex htw-gap-1" }, Wt = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" }, Xt = {
614
624
  name: "HstTokenList"
615
- };
616
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
617
- ...__default__$2,
625
+ }, Jt = /* @__PURE__ */ y({
626
+ ...Xt,
618
627
  props: {
619
628
  tokens: null,
620
629
  getName: null
621
630
  },
622
- setup(__props) {
623
- const props = __props;
624
- const processedTokens = computed(() => {
625
- const list = props.tokens;
626
- const getName = props.getName;
627
- return Object.entries(list).map(([key, value]) => {
628
- const name = getName ? getName(key, value) : key;
631
+ setup(l) {
632
+ const c = l, n = v(() => {
633
+ const o = c.tokens, e = c.getName;
634
+ return Object.entries(o).map(([t, r]) => {
635
+ const s = e ? e(t, r) : t;
629
636
  return {
630
- key,
631
- name,
632
- value: typeof value === "number" ? value.toString() : value
637
+ key: t,
638
+ name: s,
639
+ value: typeof r == "number" ? r.toString() : r
633
640
  };
634
641
  });
635
- });
636
- const hover = ref(null);
637
- return (_ctx, _cache) => {
638
- return openBlock(true), createElementBlock(Fragment, null, renderList(unref(processedTokens), (token) => {
639
- return openBlock(), createElementBlock("div", {
640
- key: token.key,
641
- class: "htw-flex htw-flex-col htw-gap-2 htw-my-8",
642
- onMouseenter: ($event) => hover.value = token.key,
643
- onMouseleave: _cache[0] || (_cache[0] = ($event) => hover.value = null)
644
- }, [
645
- renderSlot(_ctx.$slots, "default", { token }),
646
- createElementVNode("div", _hoisted_2$2, [
647
- createElementVNode("div", _hoisted_3$2, [
648
- createElementVNode("pre", _hoisted_4$1, toDisplayString(token.name), 1),
649
- hover.value === token.key ? (openBlock(), createBlock(_sfc_main$4, {
650
- key: 0,
651
- content: token.name,
652
- class: "htw-flex-none"
653
- }, null, 8, ["content"])) : createCommentVNode("", true)
654
- ]),
655
- createElementVNode("div", _hoisted_5$1, [
656
- createElementVNode("pre", _hoisted_6, toDisplayString(token.value), 1),
657
- hover.value === token.key ? (openBlock(), createBlock(_sfc_main$4, {
658
- key: 0,
659
- content: typeof token.value === "string" ? token.value : JSON.stringify(token.value),
660
- class: "htw-flex-none"
661
- }, null, 8, ["content"])) : createCommentVNode("", true)
662
- ])
663
- ])
664
- ], 40, _hoisted_1$2);
665
- }), 128);
666
- };
642
+ }), a = _(null);
643
+ return (o, e) => (i(!0), w(N, null, A(d(n), (t) => (i(), w("div", {
644
+ key: t.key,
645
+ class: "htw-flex htw-flex-col htw-gap-2 htw-my-8",
646
+ onMouseenter: (r) => a.value = t.key,
647
+ onMouseleave: e[0] || (e[0] = (r) => a.value = null)
648
+ }, [
649
+ g(o.$slots, "default", { token: t }),
650
+ h("div", Ut, [
651
+ h("div", Ft, [
652
+ h("pre", Rt, k(t.name), 1),
653
+ a.value === t.key ? (i(), f(z, {
654
+ key: 0,
655
+ content: t.name,
656
+ class: "htw-flex-none"
657
+ }, null, 8, ["content"])) : M("", !0)
658
+ ]),
659
+ h("div", Pt, [
660
+ h("pre", Wt, k(t.value), 1),
661
+ a.value === t.key ? (i(), f(z, {
662
+ key: 0,
663
+ content: typeof t.value == "string" ? t.value : JSON.stringify(t.value),
664
+ class: "htw-flex-none"
665
+ }, null, 8, ["content"])) : M("", !0)
666
+ ])
667
+ ])
668
+ ], 40, It))), 128));
667
669
  }
668
670
  });
669
- var HstTokenGrid_vue_vue_type_style_index_0_lang = "";
670
- const _hoisted_1$1 = ["onMouseenter"];
671
- const _hoisted_2$1 = { class: "htw-flex htw-gap-1" };
672
- const _hoisted_3$1 = { class: "htw-my-0 htw-truncate htw-shrink" };
673
- const _hoisted_4 = { class: "htw-flex htw-gap-1" };
674
- const _hoisted_5 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
675
- const __default__$1 = {
671
+ const qt = ["onMouseenter"], Qt = { class: "htw-flex htw-gap-1" }, Yt = { class: "htw-my-0 htw-truncate htw-shrink" }, Zt = { class: "htw-flex htw-gap-1" }, te = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" }, ee = {
676
672
  name: "HstTokenGrid"
677
- };
678
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
679
- ...__default__$1,
673
+ }, le = /* @__PURE__ */ y({
674
+ ...ee,
680
675
  props: {
681
676
  tokens: null,
682
677
  colSize: { default: 180 },
683
678
  getName: { type: Function, default: null }
684
679
  },
685
- setup(__props) {
686
- const props = __props;
687
- const processedTokens = computed(() => {
688
- const list = props.tokens;
689
- const getName = props.getName;
690
- return Object.entries(list).map(([key, value]) => {
691
- const name = getName ? getName(key, value) : key;
680
+ setup(l) {
681
+ const c = l, n = v(() => {
682
+ const e = c.tokens, t = c.getName;
683
+ return Object.entries(e).map(([r, s]) => {
684
+ const u = t ? t(r, s) : r;
692
685
  return {
693
- key,
694
- name,
695
- value: typeof value === "number" ? value.toString() : value
686
+ key: r,
687
+ name: u,
688
+ value: typeof s == "number" ? s.toString() : s
696
689
  };
697
690
  });
698
- });
699
- const colSizePx = computed(() => `${props.colSize}px`);
700
- const hover = ref(null);
701
- return (_ctx, _cache) => {
702
- return openBlock(), createElementBlock("div", {
703
- class: "htw-bind-col-size htw-grid htw-gap-4 htw-m-4",
704
- style: normalizeStyle({
705
- "--histoire-col-size": unref(colSizePx)
706
- })
691
+ }), a = v(() => `${c.colSize}px`), o = _(null);
692
+ return (e, t) => (i(), w("div", {
693
+ class: "htw-bind-col-size htw-grid htw-gap-4 htw-m-4",
694
+ style: V({
695
+ "--histoire-col-size": d(a)
696
+ })
697
+ }, [
698
+ (i(!0), w(N, null, A(d(n), (r) => (i(), w("div", {
699
+ key: r.key,
700
+ class: "htw-flex htw-flex-col htw-gap-2",
701
+ onMouseenter: (s) => o.value = r.key,
702
+ onMouseleave: t[0] || (t[0] = (s) => o.value = null)
707
703
  }, [
708
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(processedTokens), (token) => {
709
- return openBlock(), createElementBlock("div", {
710
- key: token.key,
711
- class: "htw-flex htw-flex-col htw-gap-2",
712
- onMouseenter: ($event) => hover.value = token.key,
713
- onMouseleave: _cache[0] || (_cache[0] = ($event) => hover.value = null)
714
- }, [
715
- renderSlot(_ctx.$slots, "default", { token }),
716
- createElementVNode("div", null, [
717
- createElementVNode("div", _hoisted_2$1, [
718
- withDirectives((openBlock(), createElementBlock("pre", _hoisted_3$1, [
719
- createTextVNode(toDisplayString(token.name), 1)
720
- ])), [
721
- [unref(VTooltip), token.name.length > __props.colSize / 8 ? token.name : ""]
722
- ]),
723
- hover.value === token.key ? (openBlock(), createBlock(_sfc_main$4, {
724
- key: 0,
725
- content: token.name,
726
- class: "htw-flex-none"
727
- }, null, 8, ["content"])) : createCommentVNode("", true)
728
- ]),
729
- createElementVNode("div", _hoisted_4, [
730
- withDirectives((openBlock(), createElementBlock("pre", _hoisted_5, [
731
- createTextVNode(toDisplayString(token.value), 1)
732
- ])), [
733
- [unref(VTooltip), token.value.length > __props.colSize / 8 ? token.value : ""]
734
- ]),
735
- hover.value === token.key ? (openBlock(), createBlock(_sfc_main$4, {
736
- key: 0,
737
- content: typeof token.value === "string" ? token.value : JSON.stringify(token.value),
738
- class: "htw-flex-none"
739
- }, null, 8, ["content"])) : createCommentVNode("", true)
740
- ])
741
- ])
742
- ], 40, _hoisted_1$1);
743
- }), 128))
744
- ], 4);
745
- };
704
+ g(e.$slots, "default", { token: r }),
705
+ h("div", null, [
706
+ h("div", Qt, [
707
+ C((i(), w("pre", Yt, [
708
+ H(k(r.name), 1)
709
+ ])), [
710
+ [d(O), r.name.length > l.colSize / 8 ? r.name : ""]
711
+ ]),
712
+ o.value === r.key ? (i(), f(z, {
713
+ key: 0,
714
+ content: r.name,
715
+ class: "htw-flex-none"
716
+ }, null, 8, ["content"])) : M("", !0)
717
+ ]),
718
+ h("div", Zt, [
719
+ C((i(), w("pre", te, [
720
+ H(k(r.value), 1)
721
+ ])), [
722
+ [d(O), r.value.length > l.colSize / 8 ? r.value : ""]
723
+ ]),
724
+ o.value === r.key ? (i(), f(z, {
725
+ key: 0,
726
+ content: typeof r.value == "string" ? r.value : JSON.stringify(r.value),
727
+ class: "htw-flex-none"
728
+ }, null, 8, ["content"])) : M("", !0)
729
+ ])
730
+ ])
731
+ ], 40, qt))), 128))
732
+ ], 4));
746
733
  }
747
- });
748
- const _hoisted_1 = { class: "-htw-my-1" };
749
- const _hoisted_2 = ["id", "name", "value", "checked", "onChange"];
750
- const _hoisted_3 = ["for", "onKeydown"];
751
- const __default__ = {
734
+ }), ne = { class: "-htw-my-1" }, se = ["id", "name", "value", "checked", "onChange"], oe = ["for", "onKeydown"], re = {
752
735
  name: "HstRadio"
753
- };
754
- const _sfc_main = /* @__PURE__ */ defineComponent({
755
- ...__default__,
736
+ }, ae = /* @__PURE__ */ y({
737
+ ...re,
756
738
  props: {
757
739
  title: null,
758
740
  modelValue: null,
759
741
  options: null
760
742
  },
761
743
  emits: ["update:modelValue"],
762
- setup(__props, { emit }) {
763
- const props = __props;
764
- const formattedOptions = computed(() => {
765
- if (Array.isArray(props.options)) {
766
- return Object.fromEntries(props.options.map((value) => {
767
- if (typeof value === "string") {
768
- return [value, value];
769
- } else {
770
- return [value.value, value.label];
771
- }
772
- }));
773
- }
774
- return props.options;
775
- });
776
- function selectOption(value) {
777
- emit("update:modelValue", value);
778
- animationEnabled.value = true;
744
+ setup(l, { emit: c }) {
745
+ const n = l, a = v(() => Array.isArray(n.options) ? Object.fromEntries(n.options.map((t) => typeof t == "string" ? [t, t] : [t.value, t.label])) : n.options);
746
+ function o(t) {
747
+ c("update:modelValue", t), e.value = !0;
779
748
  }
780
- const animationEnabled = ref(false);
781
- return (_ctx, _cache) => {
782
- return openBlock(), createBlock(_sfc_main$c, {
783
- role: "group",
784
- title: __props.title,
785
- class: normalizeClass(["htw-cursor-text", _ctx.$attrs.class]),
786
- style: normalizeStyle(_ctx.$attrs.style)
787
- }, {
788
- actions: withCtx(() => [
789
- renderSlot(_ctx.$slots, "actions")
790
- ]),
791
- default: withCtx(() => [
792
- createElementVNode("div", _hoisted_1, [
793
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formattedOptions), (label, value) => {
794
- return openBlock(), createElementBlock(Fragment, { key: value }, [
795
- createElementVNode("input", {
796
- id: `${value}-radio`,
797
- type: "radio",
798
- name: `${value}-radio`,
799
- value,
800
- checked: value === __props.modelValue,
801
- class: "htw-hidden",
802
- onChange: ($event) => selectOption(value)
803
- }, null, 40, _hoisted_2),
804
- createElementVNode("label", {
805
- tabindex: "0",
806
- for: `${value}-radio`,
807
- class: "htw-cursor-pointer htw-flex htw-items-center htw-relative htw-py-1 htw-group",
808
- onKeydown: [
809
- withKeys(withModifiers(($event) => selectOption(value), ["prevent"]), ["enter"]),
810
- withKeys(withModifiers(($event) => selectOption(value), ["prevent"]), ["space"])
811
- ]
812
- }, [
813
- (openBlock(), createElementBlock("svg", {
814
- width: "16",
815
- height: "16",
816
- viewBox: "-12 -12 24 24",
817
- class: normalizeClass(["htw-relative htw-z-10 htw-border htw-border-solid htw-text-inherit htw-rounded-full htw-box-border htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out htw-mr-2 group-hover:htw-border-primary-500", [
818
- __props.modelValue === value ? "htw-border-primary-500" : "htw-border-black/25 dark:htw-border-white/25"
819
- ]])
820
- }, [
821
- createElementVNode("circle", {
822
- r: "7",
823
- class: normalizeClass(["htw-will-change-transform", [
824
- animationEnabled.value ? "htw-transition-all" : "htw-transition-none",
825
- {
826
- "htw-delay-150": __props.modelValue === value
827
- },
828
- __props.modelValue === value ? "htw-fill-primary-500" : "htw-fill-transparent htw-scale-0"
829
- ]])
830
- }, null, 2)
831
- ], 2)),
832
- createTextVNode(" " + toDisplayString(label), 1)
833
- ], 40, _hoisted_3)
834
- ], 64);
835
- }), 128))
836
- ])
837
- ]),
838
- _: 3
839
- }, 8, ["title", "class", "style"]);
840
- };
749
+ const e = _(!1);
750
+ return (t, r) => (i(), f(S, {
751
+ role: "group",
752
+ title: l.title,
753
+ class: b(["htw-cursor-text", t.$attrs.class]),
754
+ style: V(t.$attrs.style)
755
+ }, {
756
+ actions: m(() => [
757
+ g(t.$slots, "actions")
758
+ ]),
759
+ default: m(() => [
760
+ h("div", ne, [
761
+ (i(!0), w(N, null, A(d(a), (s, u) => (i(), w(N, { key: u }, [
762
+ h("input", {
763
+ id: `${u}-radio`,
764
+ type: "radio",
765
+ name: `${u}-radio`,
766
+ value: u,
767
+ checked: u === l.modelValue,
768
+ class: "htw-hidden",
769
+ onChange: (p) => o(u)
770
+ }, null, 40, se),
771
+ h("label", {
772
+ tabindex: "0",
773
+ for: `${u}-radio`,
774
+ class: "htw-cursor-pointer htw-flex htw-items-center htw-relative htw-py-1 htw-group",
775
+ onKeydown: [
776
+ E(B((p) => o(u), ["prevent"]), ["enter"]),
777
+ E(B((p) => o(u), ["prevent"]), ["space"])
778
+ ]
779
+ }, [
780
+ (i(), w("svg", {
781
+ width: "16",
782
+ height: "16",
783
+ viewBox: "-12 -12 24 24",
784
+ class: b(["htw-relative htw-z-10 htw-border htw-border-solid htw-text-inherit htw-rounded-full htw-box-border htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out htw-mr-2 group-hover:htw-border-primary-500", [
785
+ l.modelValue === u ? "htw-border-primary-500" : "htw-border-black/25 dark:htw-border-white/25"
786
+ ]])
787
+ }, [
788
+ h("circle", {
789
+ r: "7",
790
+ class: b(["htw-will-change-transform", [
791
+ e.value ? "htw-transition-all" : "htw-transition-none",
792
+ {
793
+ "htw-delay-150": l.modelValue === u
794
+ },
795
+ l.modelValue === u ? "htw-fill-primary-500" : "htw-fill-transparent htw-scale-0"
796
+ ]])
797
+ }, null, 2)
798
+ ], 2)),
799
+ H(" " + k(s), 1)
800
+ ], 40, oe)
801
+ ], 64))), 128))
802
+ ])
803
+ ]),
804
+ _: 3
805
+ }, 8, ["title", "class", "style"]));
841
806
  }
842
- });
843
- const HstCheckbox = _sfc_main$b;
844
- const HstText = _sfc_main$a;
845
- const HstNumber = _sfc_main$9;
846
- const HstSlider = _sfc_main$8;
847
- const HstTextarea = _sfc_main$7;
848
- const HstSelect = _sfc_main$5;
849
- const HstColorShades = _sfc_main$3;
850
- const HstTokenList = _sfc_main$2;
851
- const HstTokenGrid = _sfc_main$1;
852
- const HstCopyIcon = _sfc_main$4;
853
- const HstRadio = _sfc_main;
854
- const components = {
855
- HstCheckbox,
856
- HstText,
857
- HstNumber,
858
- HstSlider,
859
- HstTextarea,
860
- HstSelect,
861
- HstColorShades,
862
- HstTokenList,
863
- HstTokenGrid,
864
- HstCopyIcon,
865
- HstRadio
807
+ }), ue = U, ie = nt, ce = ut, he = dt, de = mt, we = yt, pe = _t, me = kt, fe = Ot, ye = Gt, ve = Jt, ge = le, be = z, _e = ae, Ce = {
808
+ HstButton: ue,
809
+ HstButtonGroup: ie,
810
+ HstCheckbox: ce,
811
+ HstCheckboxList: he,
812
+ HstText: de,
813
+ HstNumber: we,
814
+ HstSlider: pe,
815
+ HstTextarea: me,
816
+ HstSelect: fe,
817
+ HstColorShades: ye,
818
+ HstTokenList: ve,
819
+ HstTokenGrid: ge,
820
+ HstCopyIcon: be,
821
+ HstRadio: _e
822
+ };
823
+ export {
824
+ ue as HstButton,
825
+ ie as HstButtonGroup,
826
+ ce as HstCheckbox,
827
+ he as HstCheckboxList,
828
+ ye as HstColorShades,
829
+ be as HstCopyIcon,
830
+ we as HstNumber,
831
+ _e as HstRadio,
832
+ fe as HstSelect,
833
+ pe as HstSlider,
834
+ de as HstText,
835
+ me as HstTextarea,
836
+ ge as HstTokenGrid,
837
+ ve as HstTokenList,
838
+ Ce as components
866
839
  };
867
- export { HstCheckbox, HstColorShades, HstCopyIcon, HstNumber, HstRadio, HstSelect, HstSlider, HstText, HstTextarea, HstTokenGrid, HstTokenList, components };