@poveste/controls 0.1.0 → 0.1.2
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/index.es.css +1 -1
- package/dist/index.es.js +20 -20
- package/package.json +3 -3
- package/src/components/HstWrapper.vue +1 -1
- package/src/components/button/HstButton.vue +1 -1
- package/src/components/button/HstButtonGroup.vue +1 -1
- package/src/components/checkbox/HstCheckbox.vue +1 -1
- package/src/components/checkbox/HstCheckboxList.vue +1 -1
- package/src/components/checkbox/HstSimpleCheckbox.vue +1 -1
- package/src/components/checkbox/__snapshots__/HstCheckbox.spec.ts.snap +2 -2
- package/src/components/colorselect/HstColorSelect.vue +1 -1
- package/src/components/design-tokens/HstColorShades.vue +1 -1
- package/src/components/design-tokens/HstTokenGrid.vue +3 -3
- package/src/components/design-tokens/HstTokenList.vue +1 -1
- package/src/components/json/HstJson.vue +3 -3
- package/src/components/number/HstNumber.vue +1 -1
- package/src/components/radio/HstRadio.vue +1 -1
- package/src/components/select/HstSelect.vue +1 -1
- package/src/components/slider/HstSlider.vue +1 -1
- package/src/components/text/HstText.vue +1 -1
- package/src/components/textarea/HstTextarea.vue +1 -1
package/dist/index.es.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.htw-bind-col-size{grid-template-columns:repeat(auto-fill,minmax(var(--
|
|
1
|
+
.htw-bind-col-size{grid-template-columns:repeat(auto-fill,minmax(var(--poveste-col-size),1fr))}.__poveste-json-code[data-v-857ca532] .cm-editor{height:100%;min-width:280px}.v-popper{line-height:0}.htw-dark .v-popper--theme-dropdown .v-popper__inner{--tw-border-opacity: 1;border-color:rgb(31 31 33 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.htw-dark .v-popper--theme-dropdown .v-popper__arrow-inner{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity, 1))}.htw-dark .v-popper--theme-dropdown .v-popper__arrow-outer{--tw-border-opacity: 1;border-color:rgb(31 31 33 / var(--tw-border-opacity, 1))}.v-popper--theme-dropdown.v-popper__popper--show-from .v-popper__wrapper{transform:scale(.75)}.v-popper--theme-dropdown.v-popper__popper--show-to .v-popper__wrapper{transform:none;transition:transform .15s cubic-bezier(0,1,.5,1)}.v-popper__popper:focus-visible{outline:none}.htw-range-input::-webkit-slider-thumb{height:.75rem;width:.75rem;-webkit-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-style:solid;border-color:#00000040;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.htw-range-input:is(.htw-dark *)::-webkit-slider-thumb{border-color:#ffffff40;--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.htw-range-input:hover::-webkit-slider-thumb{--tw-border-opacity: 1 !important;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))!important}.htw-range-input::-moz-range-thumb{height:.75rem;width:.75rem;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-style:solid;border-color:#00000040;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.htw-range-input:is(.htw-dark *)::-moz-range-thumb{border-color:#ffffff40;--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.htw-range-input:hover::-moz-range-thumb{--tw-border-opacity: 1 !important;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))!important}
|
package/dist/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const jh = {
|
|
|
16
16
|
flat: "htw-bg-transparent hover:htw-bg-gray-500/20 htw-text-gray-900 dark:htw-text-gray-100"
|
|
17
17
|
};
|
|
18
18
|
return (e, i) => (B(), q("button", {
|
|
19
|
-
class: pt(["
|
|
19
|
+
class: pt(["poveste-button htw-cursor-pointer htw-rounded-sm htw-border-none", t[n.color ?? "default"]])
|
|
20
20
|
}, [
|
|
21
21
|
ht(e.$slots, "default")
|
|
22
22
|
], 2));
|
|
@@ -30,7 +30,7 @@ const jh = {
|
|
|
30
30
|
tag: { default: "label" }
|
|
31
31
|
},
|
|
32
32
|
setup(n) {
|
|
33
|
-
return (t, e) => (B(), X(Fh(n.tag), { class: "histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" }, {
|
|
33
|
+
return (t, e) => (B(), X(Fh(n.tag), { class: "poveste-wrapper histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" }, {
|
|
34
34
|
default: K(() => [
|
|
35
35
|
Ht((B(), q("span", Uh, [
|
|
36
36
|
oe(Bt(n.title), 1)
|
|
@@ -73,7 +73,7 @@ const jh = {
|
|
|
73
73
|
tag: "div",
|
|
74
74
|
role: "group",
|
|
75
75
|
title: n.title,
|
|
76
|
-
class: "
|
|
76
|
+
class: "poveste-button-group htw-flex-nowrap htw-items-center"
|
|
77
77
|
}, {
|
|
78
78
|
actions: K(() => [
|
|
79
79
|
ht(o.$slots, "actions")
|
|
@@ -125,7 +125,7 @@ const jh = {
|
|
|
125
125
|
return xs(r, () => {
|
|
126
126
|
o.value = r.value.getTotalLength?.() ?? 21.21;
|
|
127
127
|
}), (c, f) => (B(), q("div", {
|
|
128
|
-
class: pt(["
|
|
128
|
+
class: pt(["poveste-simple-checkbox htw-group htw-text-white htw-w-[16px] htw-h-[16px] htw-relative", { "htw-cursor-pointer": n.withToggle }]),
|
|
129
129
|
onClick: s
|
|
130
130
|
}, [
|
|
131
131
|
N("div", {
|
|
@@ -175,7 +175,7 @@ const jh = {
|
|
|
175
175
|
return (o, l) => (B(), X(Ft, {
|
|
176
176
|
role: "checkbox",
|
|
177
177
|
tabindex: "0",
|
|
178
|
-
class: "
|
|
178
|
+
class: "poveste-checkbox htw-cursor-pointer htw-items-center",
|
|
179
179
|
title: n.title,
|
|
180
180
|
onClick: l[0] || (l[0] = (a) => s()),
|
|
181
181
|
onKeydown: [
|
|
@@ -210,7 +210,7 @@ const jh = {
|
|
|
210
210
|
return (o, l) => (B(), X(Ft, {
|
|
211
211
|
role: "group",
|
|
212
212
|
title: n.title,
|
|
213
|
-
class: pt(["
|
|
213
|
+
class: pt(["poveste-checkbox-list htw-cursor-text", o.$attrs.class]),
|
|
214
214
|
style: Pt(o.$attrs.style)
|
|
215
215
|
}, {
|
|
216
216
|
actions: K(() => [
|
|
@@ -280,7 +280,7 @@ const jh = {
|
|
|
280
280
|
}
|
|
281
281
|
return (a, h) => (B(), X(Ft, {
|
|
282
282
|
title: n.title,
|
|
283
|
-
class: pt(["
|
|
283
|
+
class: pt(["poveste-select htw-cursor-text htw-items-center", a.$attrs.class]),
|
|
284
284
|
style: Pt(a.$attrs.style)
|
|
285
285
|
}, {
|
|
286
286
|
actions: K(() => [
|
|
@@ -334,7 +334,7 @@ const jh = {
|
|
|
334
334
|
}
|
|
335
335
|
}), pc = {
|
|
336
336
|
key: 0,
|
|
337
|
-
class: "
|
|
337
|
+
class: "poveste-color-shades htw-grid htw-gap-4 htw-grid-cols-[repeat(auto-fill,minmax(200px,1fr))] htw-m-4"
|
|
338
338
|
}, gc = ["onMouseenter"], mc = { class: "htw-flex htw-gap-1" }, wc = { class: "htw-my-0 htw-truncate htw-shrink" }, bc = { class: "htw-flex htw-gap-1" }, yc = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" }, xc = {
|
|
339
339
|
name: "HstColorShades"
|
|
340
340
|
}, kc = /* @__PURE__ */ et({
|
|
@@ -438,9 +438,9 @@ const jh = {
|
|
|
438
438
|
});
|
|
439
439
|
}), i = st(() => `${t.colSize}px`), s = at(null);
|
|
440
440
|
return (r, o) => (B(), q("div", {
|
|
441
|
-
class: "
|
|
441
|
+
class: "poveste-token-grid htw-bind-col-size htw-grid htw-gap-4 htw-m-4",
|
|
442
442
|
style: Pt({
|
|
443
|
-
"--
|
|
443
|
+
"--poveste-col-size": i.value
|
|
444
444
|
})
|
|
445
445
|
}, [
|
|
446
446
|
(B(!0), q(me, null, $e(e.value, (l) => (B(), q("div", {
|
|
@@ -501,7 +501,7 @@ const jh = {
|
|
|
501
501
|
}), i = at(null);
|
|
502
502
|
return (s, r) => (B(!0), q(me, null, $e(e.value, (o) => (B(), q("div", {
|
|
503
503
|
key: o.key,
|
|
504
|
-
class: "
|
|
504
|
+
class: "poveste-token-list htw-flex htw-flex-col htw-gap-2 htw-my-8",
|
|
505
505
|
onMouseenter: (l) => i.value = o.key,
|
|
506
506
|
onMouseleave: r[0] || (r[0] = (l) => i.value = null)
|
|
507
507
|
}, [
|
|
@@ -15972,7 +15972,7 @@ const Am = {
|
|
|
15972
15972
|
}
|
|
15973
15973
|
}), (f, u) => (B(), X(Ft, {
|
|
15974
15974
|
title: n.title,
|
|
15975
|
-
class: pt(["
|
|
15975
|
+
class: pt(["poveste-json htw-cursor-text", f.$attrs.class]),
|
|
15976
15976
|
style: Pt(f.$attrs.style)
|
|
15977
15977
|
}, {
|
|
15978
15978
|
actions: K(() => [
|
|
@@ -15989,7 +15989,7 @@ const Am = {
|
|
|
15989
15989
|
N("div", ze({
|
|
15990
15990
|
ref_key: "editorElement",
|
|
15991
15991
|
ref: l,
|
|
15992
|
-
class: "
|
|
15992
|
+
class: "__poveste-json-code htw-w-full htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus-within:htw-border-primary-500 dark:focus-within:htw-border-primary-500 htw-rounded-sm htw-box-border htw-overflow-auto htw-resize-y htw-min-h-32 htw-h-48 htw-relative"
|
|
15993
15993
|
}, { ...f.$attrs, class: null, style: null }), null, 16)
|
|
15994
15994
|
]),
|
|
15995
15995
|
_: 3
|
|
@@ -16000,7 +16000,7 @@ const Am = {
|
|
|
16000
16000
|
for (const [i, s] of t)
|
|
16001
16001
|
e[i] = s;
|
|
16002
16002
|
return e;
|
|
16003
|
-
}, Tm = /* @__PURE__ */ Om(Mm, [["__scopeId", "data-v-
|
|
16003
|
+
}, Tm = /* @__PURE__ */ Om(Mm, [["__scopeId", "data-v-857ca532"]]), Dm = {
|
|
16004
16004
|
name: "HstNumber",
|
|
16005
16005
|
inheritAttrs: !1
|
|
16006
16006
|
}, Bm = /* @__PURE__ */ et({
|
|
@@ -16037,7 +16037,7 @@ const Am = {
|
|
|
16037
16037
|
return _h(() => {
|
|
16038
16038
|
u();
|
|
16039
16039
|
}), (d, p) => (B(), X(Ft, {
|
|
16040
|
-
class: pt(["
|
|
16040
|
+
class: pt(["poveste-number htw-cursor-ew-resize htw-items-center", [
|
|
16041
16041
|
d.$attrs.class,
|
|
16042
16042
|
{ "htw-select-none": l.value }
|
|
16043
16043
|
]]),
|
|
@@ -16090,7 +16090,7 @@ const Am = {
|
|
|
16090
16090
|
return (l, a) => (B(), X(Ft, {
|
|
16091
16091
|
role: "group",
|
|
16092
16092
|
title: n.title,
|
|
16093
|
-
class: pt(["
|
|
16093
|
+
class: pt(["poveste-radio htw-cursor-text", l.$attrs.class]),
|
|
16094
16094
|
style: Pt(l.$attrs.style)
|
|
16095
16095
|
}, {
|
|
16096
16096
|
actions: K(() => [
|
|
@@ -16203,7 +16203,7 @@ const Am = {
|
|
|
16203
16203
|
const e = t;
|
|
16204
16204
|
return (i, s) => (B(), X(Ft, {
|
|
16205
16205
|
title: n.title,
|
|
16206
|
-
class: pt(["
|
|
16206
|
+
class: pt(["poveste-select htw-cursor-text htw-items-center", i.$attrs.class]),
|
|
16207
16207
|
style: Pt(i.$attrs.style)
|
|
16208
16208
|
}, {
|
|
16209
16209
|
actions: K(() => [
|
|
@@ -16243,7 +16243,7 @@ const Am = {
|
|
|
16243
16243
|
left: `${8 + (r.value.clientWidth - 16) * l.value}px`
|
|
16244
16244
|
} : {});
|
|
16245
16245
|
return (h, c) => (B(), X(Ft, {
|
|
16246
|
-
class: pt(["
|
|
16246
|
+
class: pt(["poveste-slider htw-items-center", h.$attrs.class]),
|
|
16247
16247
|
title: n.title,
|
|
16248
16248
|
style: Pt(h.$attrs.style)
|
|
16249
16249
|
}, {
|
|
@@ -16296,7 +16296,7 @@ const Am = {
|
|
|
16296
16296
|
const e = t, i = at();
|
|
16297
16297
|
return (s, r) => (B(), X(Ft, {
|
|
16298
16298
|
title: n.title,
|
|
16299
|
-
class: pt(["
|
|
16299
|
+
class: pt(["poveste-text htw-cursor-text htw-items-center", s.$attrs.class]),
|
|
16300
16300
|
style: Pt(s.$attrs.style),
|
|
16301
16301
|
onClick: r[1] || (r[1] = (o) => i.value.focus())
|
|
16302
16302
|
}, {
|
|
@@ -16333,7 +16333,7 @@ const Am = {
|
|
|
16333
16333
|
const e = t, i = at();
|
|
16334
16334
|
return (s, r) => (B(), X(Ft, {
|
|
16335
16335
|
title: n.title,
|
|
16336
|
-
class: pt(["
|
|
16336
|
+
class: pt(["poveste-textarea htw-cursor-text", s.$attrs.class]),
|
|
16337
16337
|
style: Pt(s.$attrs.style),
|
|
16338
16338
|
onClick: r[1] || (r[1] = (o) => i.value.focus())
|
|
16339
16339
|
}, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/controls",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"description": "Prebuilt controls components",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@codemirror/state": "^6.4.1",
|
|
39
39
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
40
40
|
"@codemirror/view": "^6.35.0",
|
|
41
|
-
"@poveste/shared": "^0.1.
|
|
42
|
-
"@poveste/vendors": "^0.1.
|
|
41
|
+
"@poveste/shared": "^0.1.2",
|
|
42
|
+
"@poveste/vendors": "^0.1.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.10.1",
|
|
@@ -19,7 +19,7 @@ withDefaults(defineProps<{
|
|
|
19
19
|
<template>
|
|
20
20
|
<component
|
|
21
21
|
:is="tag"
|
|
22
|
-
class="histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap"
|
|
22
|
+
class="poveste-wrapper histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap"
|
|
23
23
|
>
|
|
24
24
|
<span
|
|
25
25
|
v-tooltip="{
|
|
@@ -50,7 +50,7 @@ function selectOption(value: string) {
|
|
|
50
50
|
tag="div"
|
|
51
51
|
role="group"
|
|
52
52
|
:title="title"
|
|
53
|
-
class="
|
|
53
|
+
class="poveste-button-group htw-flex-nowrap htw-items-center"
|
|
54
54
|
>
|
|
55
55
|
<div 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">
|
|
56
56
|
<HstButton
|
|
@@ -42,7 +42,7 @@ const isTrue = computed(() => {
|
|
|
42
42
|
<HstWrapper
|
|
43
43
|
role="checkbox"
|
|
44
44
|
tabindex="0"
|
|
45
|
-
class="
|
|
45
|
+
class="poveste-checkbox htw-cursor-pointer htw-items-center"
|
|
46
46
|
:title="title"
|
|
47
47
|
@click="toggle()"
|
|
48
48
|
@keydown.enter.prevent="toggle()"
|
|
@@ -45,7 +45,7 @@ watch(path, () => {
|
|
|
45
45
|
|
|
46
46
|
<template>
|
|
47
47
|
<div
|
|
48
|
-
class="
|
|
48
|
+
class="poveste-simple-checkbox htw-group htw-text-white htw-w-[16px] htw-h-[16px] htw-relative"
|
|
49
49
|
:class="{ 'htw-cursor-pointer': withToggle }"
|
|
50
50
|
@click="toggle"
|
|
51
51
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`hstCheckbox > toggle to checked 1`] = `"<label class="histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap
|
|
3
|
+
exports[`hstCheckbox > toggle to checked 1`] = `"<label class="poveste-wrapper histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap poveste-checkbox htw-cursor-pointer htw-items-center" role="checkbox" tabindex="0"><span class="htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0 v-popper--has-tooltip">Label</span><span class="htw-grow htw-max-w-full htw-flex htw-items-center htw-gap-1"><span class="htw-block htw-grow htw-max-w-full"><div class="poveste-simple-checkbox htw-group htw-text-white htw-w-[16px] htw-h-[16px] htw-relative"><div class="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 htw-border-black/25 dark:htw-border-white/25 htw-delay-150"></div><svg width="16" height="16" viewBox="0 0 24 24" class="htw-relative htw-z-10"><path d="m 4 12 l 5 5 l 10 -10" fill="none" class="htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out htw-transition-none" stroke-dasharray="21.21" stroke-dashoffset="21.21"></path></svg></div></span></span></label>"`;
|
|
4
4
|
|
|
5
|
-
exports[`hstCheckbox > toggle to unchecked 1`] = `"<label class="histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap
|
|
5
|
+
exports[`hstCheckbox > toggle to unchecked 1`] = `"<label class="poveste-wrapper histoire-wrapper htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap poveste-checkbox htw-cursor-pointer htw-items-center" role="checkbox" tabindex="0"><span class="htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0 v-popper--has-tooltip">Label</span><span class="htw-grow htw-max-w-full htw-flex htw-items-center htw-gap-1"><span class="htw-block htw-grow htw-max-w-full"><div class="poveste-simple-checkbox htw-group htw-text-white htw-w-[16px] htw-h-[16px] htw-relative"><div class="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 htw-border-primary-500 htw-border-8"></div><svg width="16" height="16" viewBox="0 0 24 24" class="htw-relative htw-z-10"><path d="m 4 12 l 5 5 l 10 -10" fill="none" class="htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out htw-transition-none htw-delay-150" stroke-dasharray="21.21" stroke-dashoffset="0"></path></svg></div></span></span></label>"`;
|
|
@@ -53,7 +53,7 @@ const hover = ref<string>(null)
|
|
|
53
53
|
<template>
|
|
54
54
|
<div
|
|
55
55
|
v-if="displayedShades.length"
|
|
56
|
-
class="
|
|
56
|
+
class="poveste-color-shades htw-grid htw-gap-4 htw-grid-cols-[repeat(auto-fill,minmax(200px,1fr))] htw-m-4"
|
|
57
57
|
>
|
|
58
58
|
<div
|
|
59
59
|
v-for="shade of displayedShades"
|
|
@@ -38,9 +38,9 @@ const hover = ref<string>(null)
|
|
|
38
38
|
|
|
39
39
|
<template>
|
|
40
40
|
<div
|
|
41
|
-
class="
|
|
41
|
+
class="poveste-token-grid htw-bind-col-size htw-grid htw-gap-4 htw-m-4"
|
|
42
42
|
:style="{
|
|
43
|
-
'--
|
|
43
|
+
'--poveste-col-size': colSizePx,
|
|
44
44
|
}"
|
|
45
45
|
>
|
|
46
46
|
<div
|
|
@@ -83,6 +83,6 @@ const hover = ref<string>(null)
|
|
|
83
83
|
|
|
84
84
|
<style>
|
|
85
85
|
.htw-bind-col-size {
|
|
86
|
-
grid-template-columns: repeat(auto-fill, minmax(var(--
|
|
86
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--poveste-col-size), 1fr));
|
|
87
87
|
}
|
|
88
88
|
</style>
|
|
@@ -33,7 +33,7 @@ const hover = ref<string>(null)
|
|
|
33
33
|
<div
|
|
34
34
|
v-for="token of processedTokens"
|
|
35
35
|
:key="token.key"
|
|
36
|
-
class="
|
|
36
|
+
class="poveste-token-list htw-flex htw-flex-col htw-gap-2 htw-my-8"
|
|
37
37
|
@mouseenter="hover = token.key"
|
|
38
38
|
@mouseleave="hover = null"
|
|
39
39
|
>
|
|
@@ -120,13 +120,13 @@ watch(() => internalValue.value, () => {
|
|
|
120
120
|
<template>
|
|
121
121
|
<HstWrapper
|
|
122
122
|
:title="title"
|
|
123
|
-
class="
|
|
123
|
+
class="poveste-json htw-cursor-text"
|
|
124
124
|
:class="$attrs.class"
|
|
125
125
|
:style="$attrs.style"
|
|
126
126
|
>
|
|
127
127
|
<div
|
|
128
128
|
ref="editorElement"
|
|
129
|
-
class="
|
|
129
|
+
class="__poveste-json-code htw-w-full htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus-within:htw-border-primary-500 dark:focus-within:htw-border-primary-500 htw-rounded-sm htw-box-border htw-overflow-auto htw-resize-y htw-min-h-32 htw-h-48 htw-relative"
|
|
130
130
|
v-bind="{ ...$attrs, class: null, style: null }"
|
|
131
131
|
/>
|
|
132
132
|
|
|
@@ -144,7 +144,7 @@ watch(() => internalValue.value, () => {
|
|
|
144
144
|
</template>
|
|
145
145
|
|
|
146
146
|
<style scoped>
|
|
147
|
-
.
|
|
147
|
+
.__poveste-json-code :deep(.cm-editor) {
|
|
148
148
|
height: 100%;
|
|
149
149
|
min-width: 280px;
|
|
150
150
|
}
|
|
@@ -23,7 +23,7 @@ const input = ref<HTMLInputElement>()
|
|
|
23
23
|
<template>
|
|
24
24
|
<HstWrapper
|
|
25
25
|
:title="title"
|
|
26
|
-
class="
|
|
26
|
+
class="poveste-text htw-cursor-text htw-items-center"
|
|
27
27
|
:class="$attrs.class"
|
|
28
28
|
:style="$attrs.style"
|
|
29
29
|
@click="input.focus()"
|