@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.
- package/dist/components/HstCopyIcon.vue.d.ts +1 -1
- package/dist/components/HstWrapper.vue.d.ts +16 -3
- package/dist/components/button/HstButton.story.vue.d.ts +2 -0
- package/dist/components/button/HstButton.vue.d.ts +15 -0
- package/dist/components/button/HstButtonGroup.story.vue.d.ts +2 -0
- package/dist/components/button/HstButtonGroup.vue.d.ts +24 -0
- package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +1 -1
- package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +2 -0
- package/dist/components/checkbox/HstCheckboxList.vue.d.ts +24 -0
- package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +2 -0
- package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +21 -0
- package/dist/components/design-tokens/HstColorShades.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstColorShades.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +1 -1
- package/dist/components/number/HstNumber.story.vue.d.ts +1 -1
- package/dist/components/radio/HstRadio.story.vue.d.ts +1 -1
- package/dist/components/select/HstSelect.story.vue.d.ts +1 -1
- package/dist/components/slider/HstSlider.story.vue.d.ts +1 -1
- package/dist/components/text/HstText.story.vue.d.ts +1 -1
- package/dist/components/textarea/HstTextarea.story.vue.d.ts +1 -1
- package/dist/index.d.ts +143 -8
- package/dist/index.es.js +706 -734
- package/dist/style-standalone.css +102 -70
- package/package.json +5 -4
- package/src/components/HstWrapper.vue +12 -4
- package/src/components/button/HstButton.story.vue +30 -0
- package/src/components/button/HstButton.vue +26 -0
- package/src/components/button/HstButtonGroup.story.vue +51 -0
- package/src/components/button/HstButtonGroup.vue +64 -0
- package/src/components/checkbox/HstCheckbox.story.vue +5 -1
- package/src/components/checkbox/HstCheckbox.vue +4 -50
- package/src/components/checkbox/HstCheckboxList.story.vue +49 -0
- package/src/components/checkbox/HstCheckboxList.vue +79 -0
- package/src/components/checkbox/HstSimpleCheckbox.story.vue +28 -0
- package/src/components/checkbox/HstSimpleCheckbox.vue +82 -0
- package/src/components/checkbox/__snapshots__/HstCheckbox.test.ts.snap +6 -6
- package/src/components/design-tokens/HstColorShades.story.vue +2 -1
- package/src/components/design-tokens/HstTokenGrid.story.vue +2 -1
- package/src/components/design-tokens/HstTokenList.story.vue +2 -1
- package/src/components/number/HstNumber.story.vue +1 -0
- package/src/components/number/HstNumber.vue +1 -2
- package/src/components/radio/HstRadio.story.vue +5 -1
- package/src/components/select/HstSelect.story.vue +1 -0
- package/src/components/slider/HstSlider.story.vue +2 -0
- package/src/components/text/HstText.story.vue +1 -0
- package/src/components/textarea/HstTextarea.story.vue +4 -1
- package/src/index.ts +11 -0
- 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,
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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(
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
[
|
|
24
|
-
content:
|
|
41
|
+
[d(O), {
|
|
42
|
+
content: l.title,
|
|
25
43
|
placement: "left",
|
|
26
44
|
distance: 12
|
|
27
45
|
}]
|
|
28
46
|
]),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
h("span", Y, [
|
|
48
|
+
h("span", Z, [
|
|
49
|
+
g(c.$slots, "default")
|
|
32
50
|
]),
|
|
33
|
-
|
|
51
|
+
g(c.$slots, "actions")
|
|
34
52
|
])
|
|
35
|
-
])
|
|
36
|
-
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}));
|
|
37
56
|
}
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
47
|
-
|
|
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
|
-
|
|
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": (
|
|
164
|
+
"update:modelValue": (l) => !0
|
|
58
165
|
},
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
61
|
-
function
|
|
62
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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
|
-
|
|
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": (
|
|
248
|
+
"update:modelValue": (l) => !0
|
|
131
249
|
},
|
|
132
|
-
setup(
|
|
133
|
-
const
|
|
134
|
-
return (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
actions
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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:
|
|
163
|
-
}
|
|
164
|
-
|
|
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": (
|
|
285
|
+
"update:modelValue": (l) => !0
|
|
172
286
|
},
|
|
173
|
-
setup(
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
|
|
182
|
-
|
|
183
|
-
input.value.focus();
|
|
184
|
-
input.value.select();
|
|
293
|
+
}), o = _();
|
|
294
|
+
function e() {
|
|
295
|
+
o.value.focus(), o.value.select();
|
|
185
296
|
}
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|
197
|
-
let
|
|
198
|
-
|
|
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
|
|
204
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
})
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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:
|
|
257
|
-
}
|
|
258
|
-
|
|
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": (
|
|
361
|
+
"update:modelValue": (l) => !0
|
|
268
362
|
},
|
|
269
|
-
setup(
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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:
|
|
336
|
-
}
|
|
337
|
-
|
|
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": (
|
|
419
|
+
"update:modelValue": (l) => !0
|
|
345
420
|
},
|
|
346
|
-
setup(
|
|
347
|
-
const
|
|
348
|
-
return (
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
actions
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
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
|
-
|
|
404
|
-
|
|
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 (
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
|
|
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(
|
|
456
|
-
return (
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
actions
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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
|
-
|
|
481
|
-
...__default__$4,
|
|
522
|
+
}, z = /* @__PURE__ */ y({
|
|
523
|
+
...zt,
|
|
482
524
|
props: {
|
|
483
525
|
content: null
|
|
484
526
|
},
|
|
485
|
-
setup(
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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
|
-
|
|
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(
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
return
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
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
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
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
|
|
554
|
-
});
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
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
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
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
|
-
|
|
617
|
-
...__default__$2,
|
|
625
|
+
}, Jt = /* @__PURE__ */ y({
|
|
626
|
+
...Xt,
|
|
618
627
|
props: {
|
|
619
628
|
tokens: null,
|
|
620
629
|
getName: null
|
|
621
630
|
},
|
|
622
|
-
setup(
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
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
|
|
637
|
+
key: t,
|
|
638
|
+
name: s,
|
|
639
|
+
value: typeof r == "number" ? r.toString() : r
|
|
633
640
|
};
|
|
634
641
|
});
|
|
635
|
-
});
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
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
|
|
686
|
+
key: r,
|
|
687
|
+
name: u,
|
|
688
|
+
value: typeof s == "number" ? s.toString() : s
|
|
696
689
|
};
|
|
697
690
|
});
|
|
698
|
-
});
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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
|
-
(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
-
|
|
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(
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
|
|
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
|
|
781
|
-
return (
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
actions
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
(
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
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
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
HstCopyIcon,
|
|
865
|
-
|
|
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 };
|