@histoire/controls 0.7.4 → 0.7.7
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/.histoire/dist/__sandbox.html +2 -2
- package/.histoire/dist/assets/{BaseEmpty.d30f3079.js → BaseEmpty.c5ebb434.js} +2 -2
- package/.histoire/dist/assets/{HomeView.8e044be6.js → HomeView.2d2d0dfe.js} +2 -2
- package/.histoire/dist/assets/HstCheckbox.story.ccd10161.js +151 -0
- package/.histoire/dist/assets/{HstColorShades.story.68cf74d1.js → HstColorShades.story.d71deb80.js} +198 -190
- package/.histoire/dist/assets/{HstCopyIcon.e40e725e.js → HstCopyIcon.ef403c78.js} +22 -18
- package/.histoire/dist/assets/HstNumber.story.1e0e7b71.js +165 -0
- package/.histoire/dist/assets/HstSelect.story.8a2b4741.js +290 -0
- package/.histoire/dist/assets/HstSlider.story.4155f6ba.js +153 -0
- package/.histoire/dist/assets/HstText.story.43417ceb.js +143 -0
- package/.histoire/dist/assets/HstTextarea.story.3e39b89e.js +111 -0
- package/.histoire/dist/assets/HstTokenGrid.story.e2f237c4.js +156 -0
- package/.histoire/dist/assets/HstTokenList.story.bc7b0288.js +184 -0
- package/.histoire/dist/assets/{HstWrapper.246b6982.js → HstWrapper.fee42109.js} +31 -26
- package/.histoire/dist/assets/{SearchPane.daa2675c.js → SearchPane.37a81ba7.js} +6 -6
- package/.histoire/dist/assets/{StoryView.2f64dad1.js → StoryView.2c1f1961.js} +18 -16
- package/.histoire/dist/assets/{bundle-main.784e5bf7.js → bundle-main.c70a2b14.js} +6 -6
- package/.histoire/dist/assets/{bundle-sandbox.5e153933.js → bundle-sandbox.f56c0808.js} +3 -3
- package/.histoire/dist/assets/{const.268165fd.js → const.36730b48.js} +61 -2
- package/.histoire/dist/assets/{global-components.6736b2a9.js → global-components.d165b38c.js} +132 -48
- package/.histoire/dist/assets/{search-docs-data.b9a75539.js → search-docs-data.2e7ad186.js} +1 -1
- package/.histoire/dist/assets/{style.04507241.css → style.dc851298.css} +102 -32
- package/.histoire/dist/assets/{vendor.2833ae3d.js → vendor.31c91490.js} +508 -505
- package/.histoire/dist/index.html +3 -3
- package/histoire-dist/__sandbox.html +15 -0
- package/histoire-dist/assets/BaseEmpty.a84c14c8.js +1 -0
- package/histoire-dist/assets/HomeView.f524bd4b.js +1 -0
- package/histoire-dist/assets/HstCheckbox.story.9f622545.js +1 -0
- package/histoire-dist/assets/HstInput.story.945401ce.js +1 -0
- package/histoire-dist/assets/SearchModal.76c035f2.js +1 -0
- package/histoire-dist/assets/StoryView.e4c41518.js +15 -0
- package/histoire-dist/assets/global-components.84d0ab22.js +1 -0
- package/histoire-dist/assets/histoire-text-dark.a529813a.svg +89 -0
- package/histoire-dist/assets/histoire-text.1d4474b5.svg +89 -0
- package/histoire-dist/assets/histoire.8af7bd1f.svg +51 -0
- package/histoire-dist/assets/index.58f51dd0.js +1 -0
- package/histoire-dist/assets/preview-settings.a634d101.js +1 -0
- package/histoire-dist/assets/sandbox.2c60450a.js +1 -0
- package/histoire-dist/assets/style.7657d2ac.css +1 -0
- package/histoire-dist/assets/vendor.70a554f6.js +9 -0
- package/histoire-dist/index.html +15 -0
- package/package.json +2 -2
- package/.histoire/dist/assets/HstCheckbox.story.3d04d85b.js +0 -144
- package/.histoire/dist/assets/HstNumber.story.1e1964ff.js +0 -160
- package/.histoire/dist/assets/HstSelect.story.04860383.js +0 -277
- package/.histoire/dist/assets/HstText.story.c915d831.js +0 -137
- package/.histoire/dist/assets/HstTextarea.story.802b9c26.js +0 -105
- package/.histoire/dist/assets/HstTokenGrid.story.025819d6.js +0 -148
- package/.histoire/dist/assets/HstTokenList.story.d3aa6575.js +0 -176
package/.histoire/dist/assets/{global-components.6736b2a9.js → global-components.d165b38c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as defineAsyncComponent, X as useDark, Y as useToggle, P as isRef, i as unref, d as defineComponent, V as pushScopeId, W as popScopeId, a as openBlock, b as createElementBlock, M as withDirectives, R as createTextVNode, t as toDisplayString, e as createBaseVNode, f as renderSlot, r as ref, c as computed, w as watch, j as createBlock, k as withCtx, n as normalizeClass, v as withKeys, g as withModifiers, x as mergeProps, h as normalizeStyle, o as onUnmounted, Z as vModelText, _ as h, J as renderList, F as Fragment, l as createVNode,
|
|
1
|
+
import { N as defineAsyncComponent, X as useDark, Y as useToggle, P as isRef, i as unref, d as defineComponent, V as pushScopeId, W as popScopeId, a as openBlock, b as createElementBlock, M as withDirectives, R as createTextVNode, t as toDisplayString, e as createBaseVNode, f as renderSlot, r as ref, c as computed, w as watch, j as createBlock, k as withCtx, n as normalizeClass, v as withKeys, g as withModifiers, x as mergeProps, h as normalizeStyle, o as onUnmounted, Z as vModelText, m as createCommentVNode, _ as h, J as renderList, F as Fragment, l as createVNode, $ as nextTick, a0 as normalizeProps, a1 as guardReactiveProps, a2 as withScopeId, q as resolveComponent, a3 as getCurrentScope, a4 as onScopeDispose, D as createApp, a5 as useAttrs, a6 as getCurrentInstance, a7 as inject, a8 as provide, a9 as markRaw } from "./vendor.31c91490.js";
|
|
2
2
|
const scriptRel = "modulepreload";
|
|
3
3
|
const seen = {};
|
|
4
4
|
const base = "/";
|
|
@@ -32,15 +32,16 @@ const __vitePreload = function preload(baseModule, deps) {
|
|
|
32
32
|
}
|
|
33
33
|
})).then(() => baseModule());
|
|
34
34
|
};
|
|
35
|
-
const Comp0 = defineAsyncComponent(() => __vitePreload(() => import("./HstCheckbox.story.
|
|
36
|
-
const Comp1 = defineAsyncComponent(() => __vitePreload(() => import("./HstColorShades.story.
|
|
37
|
-
const Comp2 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenGrid.story.
|
|
38
|
-
const Comp3 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenList.story.
|
|
39
|
-
const Comp4 = defineAsyncComponent(() => __vitePreload(() => import("./HstNumber.story.
|
|
40
|
-
const Comp5 = defineAsyncComponent(() => __vitePreload(() => import("./HstSelect.story.
|
|
41
|
-
const Comp6 = defineAsyncComponent(() => __vitePreload(() => import("./
|
|
42
|
-
const Comp7 = defineAsyncComponent(() => __vitePreload(() => import("./HstText.story.
|
|
43
|
-
const Comp8 = defineAsyncComponent(() => __vitePreload(() => import("./
|
|
35
|
+
const Comp0 = defineAsyncComponent(() => __vitePreload(() => import("./HstCheckbox.story.ccd10161.js"), true ? ["assets/HstCheckbox.story.ccd10161.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
36
|
+
const Comp1 = defineAsyncComponent(() => __vitePreload(() => import("./HstColorShades.story.d71deb80.js"), true ? ["assets/HstColorShades.story.d71deb80.js","assets/vendor.31c91490.js","assets/HstCopyIcon.ef403c78.js"] : void 0));
|
|
37
|
+
const Comp2 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenGrid.story.e2f237c4.js"), true ? ["assets/HstTokenGrid.story.e2f237c4.js","assets/vendor.31c91490.js","assets/HstCopyIcon.ef403c78.js"] : void 0));
|
|
38
|
+
const Comp3 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenList.story.bc7b0288.js"), true ? ["assets/HstTokenList.story.bc7b0288.js","assets/vendor.31c91490.js","assets/HstCopyIcon.ef403c78.js"] : void 0));
|
|
39
|
+
const Comp4 = defineAsyncComponent(() => __vitePreload(() => import("./HstNumber.story.1e0e7b71.js"), true ? ["assets/HstNumber.story.1e0e7b71.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
40
|
+
const Comp5 = defineAsyncComponent(() => __vitePreload(() => import("./HstSelect.story.8a2b4741.js"), true ? ["assets/HstSelect.story.8a2b4741.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
41
|
+
const Comp6 = defineAsyncComponent(() => __vitePreload(() => import("./HstSlider.story.4155f6ba.js"), true ? ["assets/HstSlider.story.4155f6ba.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
42
|
+
const Comp7 = defineAsyncComponent(() => __vitePreload(() => import("./HstText.story.43417ceb.js"), true ? ["assets/HstText.story.43417ceb.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
43
|
+
const Comp8 = defineAsyncComponent(() => __vitePreload(() => import("./HstTextarea.story.3e39b89e.js"), true ? ["assets/HstTextarea.story.3e39b89e.js","assets/vendor.31c91490.js","assets/HstWrapper.fee42109.js"] : void 0));
|
|
44
|
+
const Comp9 = defineAsyncComponent(() => __vitePreload(() => import("./vendor.31c91490.js").then(function(n) {
|
|
44
45
|
return n.aA;
|
|
45
46
|
}), true ? [] : void 0));
|
|
46
47
|
let files = [
|
|
@@ -50,11 +51,12 @@ let files = [
|
|
|
50
51
|
{ "id": "src-components-design-tokens-hsttokenlist-story-vue", "path": ["design-tokens", "HstTokenList"], "story": { "id": "src-components-design-tokens-hsttokenlist-story-vue", "title": "HstTokenList", "group": null, "layout": { "type": "single", "iframe": true }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-design-tokens-hsttokenlist-story-vue-0", "title": "default", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 3, component: Comp3 },
|
|
51
52
|
{ "id": "src-components-number-hstnumber-story-vue", "path": ["HstNumber"], "story": { "id": "src-components-number-hstnumber-story-vue", "title": "HstNumber", "group": null, "layout": { "type": "single", "iframe": true }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-number-hstnumber-story-vue-0", "title": "default", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 4, component: Comp4 },
|
|
52
53
|
{ "id": "src-components-select-hstselect-story-vue", "path": ["HstSelect"], "story": { "id": "src-components-select-hstselect-story-vue", "title": "HstSelect", "group": null, "layout": { "type": "grid", "width": "100%" }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-select-hstselect-story-vue-0", "title": "default", "icon": null, "iconColor": null }, { "id": "src-components-select-hstselect-story-vue-1", "title": "no-label", "icon": null, "iconColor": null }, { "id": "src-components-select-hstselect-story-vue-2", "title": "options-as-object", "icon": null, "iconColor": null }, { "id": "src-components-select-hstselect-story-vue-3", "title": "options-as-array-of-objects", "icon": null, "iconColor": null }, { "id": "src-components-select-hstselect-story-vue-4", "title": "options-as-array-of-strings", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 5, component: Comp5 },
|
|
53
|
-
{ "id": "src-components-
|
|
54
|
+
{ "id": "src-components-slider-hstslider-story-vue", "path": ["HstSlider"], "story": { "id": "src-components-slider-hstslider-story-vue", "title": "HstSlider", "group": null, "layout": { "type": "single", "iframe": true }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "_default", "title": "default" }] }, "framework": "vue3", "index": 6, component: Comp6 },
|
|
54
55
|
{ "id": "src-components-text-hsttext-story-vue", "path": ["HstText"], "story": { "id": "src-components-text-hsttext-story-vue", "title": "HstText", "group": null, "layout": { "type": "grid", "width": "100%" }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-text-hsttext-story-vue-0", "title": "default", "icon": null, "iconColor": null }, { "id": "src-components-text-hsttext-story-vue-1", "title": "no-label", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 7, component: Comp7 },
|
|
55
|
-
{ "id": "
|
|
56
|
+
{ "id": "src-components-textarea-hsttextarea-story-vue", "path": ["HstTextarea"], "story": { "id": "src-components-textarea-hsttextarea-story-vue", "title": "HstTextarea", "group": null, "layout": { "type": "single", "iframe": true }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-textarea-hsttextarea-story-vue-0", "title": "default", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 8, component: Comp8 },
|
|
57
|
+
{ "id": "tailwind", "path": ["Tailwind"], "story": { "id": "tailwind", "title": "Tailwind", "group": "design-system", "layout": { "type": "single", "iframe": false }, "icon": "mdi:tailwind", "iconColor": null, "docsOnly": false, "variants": [{ "id": "background-color", "title": "Background Color", "icon": "carbon:color-palette", "iconColor": null }, { "id": "text-color", "title": "Text Color", "icon": "carbon:text-color", "iconColor": null }, { "id": "border-color", "title": "Border Color", "icon": "carbon:color-palette", "iconColor": null }, { "id": "padding", "title": "Padding", "icon": "carbon:area", "iconColor": null }, { "id": "margin", "title": "Margin", "icon": "carbon:area", "iconColor": null }, { "id": "font-size", "title": "Font Size", "icon": "carbon:text-font", "iconColor": null }, { "id": "font-weight", "title": "Font Weight", "icon": "carbon:text-font", "iconColor": null }, { "id": "font-family", "title": "Font Family", "icon": "carbon:text-font", "iconColor": null }, { "id": "letter-spacing", "title": "Letter Spacing", "icon": "carbon:text-font", "iconColor": null }, { "id": "line-height", "title": "Line Height", "icon": "carbon:text-font", "iconColor": null }, { "id": "drop-shadow", "title": "Drop Shadow", "icon": "carbon:shape-except", "iconColor": null }, { "id": "border-radius", "title": "Border Radius", "icon": "carbon:condition-wait-point", "iconColor": null }, { "id": "border-width", "title": "Border Width", "icon": "carbon:checkbox", "iconColor": null }, { "id": "width", "title": "Width", "icon": "carbon:pan-horizontal", "iconColor": null }, { "id": "height", "title": "Height", "icon": "carbon:pan-vertical", "iconColor": null }, { "id": "full-config", "title": "Full Config", "icon": "carbon:code", "iconColor": null }] }, "framework": "vue3", "index": 9, component: Comp9 }
|
|
56
58
|
];
|
|
57
|
-
let tree = [{ "group": true, "id": "design-system", "title": "Design System", "children": [{ "title": "Tailwind", "index":
|
|
59
|
+
let tree = [{ "group": true, "id": "design-system", "title": "Design System", "children": [{ "title": "Tailwind", "index": 9 }] }, { "title": "design-tokens", "children": [{ "title": "HstColorShades", "index": 1 }, { "title": "HstTokenGrid", "index": 2 }, { "title": "HstTokenList", "index": 3 }] }, { "title": "HstCheckbox", "index": 0 }, { "title": "HstNumber", "index": 4 }, { "title": "HstSelect", "index": 5 }, { "title": "HstSlider", "index": 6 }, { "title": "HstText", "index": 7 }, { "title": "HstTextarea", "index": 8 }];
|
|
58
60
|
const isDark = useDark({ valueDark: "htw-dark" });
|
|
59
61
|
const toggleDark = useToggle(isDark);
|
|
60
62
|
const isObject = (val) => val !== null && typeof val === "object";
|
|
@@ -107,7 +109,7 @@ function applyStateToVariant(variant, state) {
|
|
|
107
109
|
variant.state = state;
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
|
-
const config$2 = { "plugins": [{ "name": "tailwind-tokens" }], "outDir": "/
|
|
112
|
+
const config$2 = { "plugins": [{ "name": "tailwind-tokens" }], "outDir": "/home/akryum/Projects/histoire/packages/histoire-controls/.histoire/dist", "storyMatch": ["**/*.story.vue"], "storyIgnored": ["**/node_modules/**", "**/dist/**"], "tree": { "file": "title", "order": "asc", "groups": [{ "id": "design-system", "title": "Design System" }] }, "theme": { "title": "Histoire controls", "colors": { "primary": { "50": "#ecfdf5", "100": "#d1fae5", "200": "#a7f3d0", "300": "#6ee7b7", "400": "#34d399", "500": "#10b981", "600": "#059669", "700": "#047857", "800": "#065f46", "900": "#064e3b" }, "gray": { "50": "#fafafa", "100": "#f4f4f5", "200": "#e4e4e7", "300": "#d4d4d8", "400": "#a1a1aa", "500": "#71717a", "600": "#52525b", "700": "#3f3f46", "750": "#323238", "800": "#27272a", "850": "#1f1f21", "900": "#18181b", "950": "#101012" } }, "favicon": "/histoire.svg" }, "responsivePresets": [{ "label": "Mobile (Small)", "width": 320, "height": 560 }, { "label": "Mobile (Medium)", "width": 360, "height": 640 }, { "label": "Mobile (Large)", "width": 414, "height": 896 }, { "label": "Tablet", "width": 768, "height": 1024 }, { "label": "Laptop (Small)", "width": 1024, "height": null }, { "label": "Laptop (Large)", "width": 1366, "height": null }, { "label": "Desktop", "width": 1920, "height": null }, { "label": "4K", "width": 3840, "height": null }], "backgroundPresets": [{ "label": "Transparent", "color": "transparent" }, { "label": "White", "color": "#fff" }, { "label": "Light gray", "color": "#aaa" }, { "label": "Dark gray", "color": "#333" }, { "label": "Black", "color": "#000" }], "sandboxDarkClass": "dark", "setupFile": "/src/histoire-setup.ts" };
|
|
111
113
|
const logos = {};
|
|
112
114
|
const histoireConfig = config$2;
|
|
113
115
|
const customLogos = logos;
|
|
@@ -2637,7 +2639,7 @@ defineComponent(__spreadProps2(__spreadValues2({}, PrivatePopperWrapper), {
|
|
|
2637
2639
|
name: "VTooltip",
|
|
2638
2640
|
vPopperTheme: "tooltip"
|
|
2639
2641
|
}));
|
|
2640
|
-
const _sfc_main$
|
|
2642
|
+
const _sfc_main$c = defineComponent({
|
|
2641
2643
|
name: "VTooltipDirective",
|
|
2642
2644
|
components: {
|
|
2643
2645
|
Popper: PrivatePopper(),
|
|
@@ -2728,8 +2730,8 @@ const _sfc_main$b = defineComponent({
|
|
|
2728
2730
|
}
|
|
2729
2731
|
}
|
|
2730
2732
|
});
|
|
2731
|
-
const _hoisted_1$
|
|
2732
|
-
const _hoisted_2$
|
|
2733
|
+
const _hoisted_1$9 = ["innerHTML"];
|
|
2734
|
+
const _hoisted_2$7 = ["textContent"];
|
|
2733
2735
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2734
2736
|
const _component_PopperContent = resolveComponent("PopperContent");
|
|
2735
2737
|
const _component_Popper = resolveComponent("Popper");
|
|
@@ -2772,10 +2774,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2772
2774
|
_ctx.html ? (openBlock(), createElementBlock("div", {
|
|
2773
2775
|
key: 0,
|
|
2774
2776
|
innerHTML: _ctx.finalContent
|
|
2775
|
-
}, null, 8, _hoisted_1$
|
|
2777
|
+
}, null, 8, _hoisted_1$9)) : (openBlock(), createElementBlock("div", {
|
|
2776
2778
|
key: 1,
|
|
2777
2779
|
textContent: toDisplayString(_ctx.finalContent)
|
|
2778
|
-
}, null, 8, _hoisted_2$
|
|
2780
|
+
}, null, 8, _hoisted_2$7))
|
|
2779
2781
|
]),
|
|
2780
2782
|
_: 2
|
|
2781
2783
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -2783,7 +2785,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2783
2785
|
_: 1
|
|
2784
2786
|
}, 16, ["theme", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2785
2787
|
}
|
|
2786
|
-
var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2788
|
+
var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render]]);
|
|
2787
2789
|
const TARGET_CLASS = "v-popper--has-tooltip";
|
|
2788
2790
|
function getPlacement(options2, modifiers) {
|
|
2789
2791
|
let result = options2.placement;
|
|
@@ -2909,21 +2911,21 @@ var PrivateVTooltip = {
|
|
|
2909
2911
|
};
|
|
2910
2912
|
const VTooltip = PrivateVTooltip;
|
|
2911
2913
|
const Dropdown = _sfc_main$3$1;
|
|
2912
|
-
const _hoisted_1$
|
|
2913
|
-
const _hoisted_2$
|
|
2914
|
+
const _hoisted_1$8 = { class: "htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-800 htw-flex htw-gap-2 htw-flex-wrap" };
|
|
2915
|
+
const _hoisted_2$6 = { class: "htw-w-28 htw-whitespace-nowrap htw-text-ellipsis htw-overflow-hidden htw-shrink-0" };
|
|
2914
2916
|
const _hoisted_3$5 = { class: "htw-grow htw-flex htw-items-center htw-gap-1" };
|
|
2915
2917
|
const _hoisted_4$4 = { class: "htw-block htw-grow" };
|
|
2916
|
-
const __default__$
|
|
2918
|
+
const __default__$b = {
|
|
2917
2919
|
name: "HstWrapper"
|
|
2918
2920
|
};
|
|
2919
|
-
const _sfc_main$
|
|
2921
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__$b), {
|
|
2920
2922
|
props: {
|
|
2921
2923
|
title: null
|
|
2922
2924
|
},
|
|
2923
2925
|
setup(__props) {
|
|
2924
2926
|
return (_ctx, _cache) => {
|
|
2925
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
2926
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_2$
|
|
2927
|
+
return openBlock(), createElementBlock("label", _hoisted_1$8, [
|
|
2928
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_2$6, [
|
|
2927
2929
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2928
2930
|
])), [
|
|
2929
2931
|
[unref(VTooltip), {
|
|
@@ -2942,18 +2944,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
2942
2944
|
};
|
|
2943
2945
|
}
|
|
2944
2946
|
}));
|
|
2945
|
-
const _hoisted_1$
|
|
2946
|
-
const _hoisted_2$
|
|
2947
|
+
const _hoisted_1$7 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
|
|
2948
|
+
const _hoisted_2$5 = {
|
|
2947
2949
|
width: "16",
|
|
2948
2950
|
height: "16",
|
|
2949
2951
|
viewBox: "0 0 24 24",
|
|
2950
2952
|
class: "htw-relative htw-z-10"
|
|
2951
2953
|
};
|
|
2952
2954
|
const _hoisted_3$4 = ["stroke-dasharray", "stroke-dashoffset"];
|
|
2953
|
-
const __default__$
|
|
2955
|
+
const __default__$a = {
|
|
2954
2956
|
name: "HstCheckbox"
|
|
2955
2957
|
};
|
|
2956
|
-
const _sfc_main$
|
|
2958
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__$a), {
|
|
2957
2959
|
props: {
|
|
2958
2960
|
modelValue: { type: Boolean },
|
|
2959
2961
|
title: null
|
|
@@ -2977,7 +2979,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
2977
2979
|
dasharray.value = (_c = (_b = (_a2 = path.value).getTotalLength) == null ? void 0 : _b.call(_a2)) != null ? _c : 21.21;
|
|
2978
2980
|
});
|
|
2979
2981
|
return (_ctx, _cache) => {
|
|
2980
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2982
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
2981
2983
|
role: "checkbox",
|
|
2982
2984
|
tabindex: "0",
|
|
2983
2985
|
class: "htw-cursor-pointer htw-items-center",
|
|
@@ -2992,13 +2994,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
2992
2994
|
renderSlot(_ctx.$slots, "actions")
|
|
2993
2995
|
]),
|
|
2994
2996
|
default: withCtx(() => [
|
|
2995
|
-
createBaseVNode("div", _hoisted_1$
|
|
2997
|
+
createBaseVNode("div", _hoisted_1$7, [
|
|
2996
2998
|
createBaseVNode("div", {
|
|
2997
2999
|
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", [
|
|
2998
3000
|
__props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
|
|
2999
3001
|
]])
|
|
3000
3002
|
}, null, 2),
|
|
3001
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
3003
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$5, [
|
|
3002
3004
|
createBaseVNode("path", {
|
|
3003
3005
|
ref_key: "path",
|
|
3004
3006
|
ref: path,
|
|
@@ -3021,11 +3023,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3021
3023
|
};
|
|
3022
3024
|
}
|
|
3023
3025
|
}));
|
|
3024
|
-
const _hoisted_1$
|
|
3025
|
-
const __default__$
|
|
3026
|
+
const _hoisted_1$6 = ["value"];
|
|
3027
|
+
const __default__$9 = {
|
|
3026
3028
|
name: "HstText"
|
|
3027
3029
|
};
|
|
3028
|
-
const _sfc_main$
|
|
3030
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__$9), {
|
|
3029
3031
|
props: {
|
|
3030
3032
|
title: null,
|
|
3031
3033
|
modelValue: null
|
|
@@ -3036,7 +3038,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3036
3038
|
setup(__props, { emit }) {
|
|
3037
3039
|
const input = ref();
|
|
3038
3040
|
return (_ctx, _cache) => {
|
|
3039
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3041
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
3040
3042
|
title: __props.title,
|
|
3041
3043
|
class: normalizeClass(["htw-cursor-text htw-items-center", _ctx.$attrs.class]),
|
|
3042
3044
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
@@ -3054,18 +3056,18 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3054
3056
|
value: __props.modelValue,
|
|
3055
3057
|
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",
|
|
3056
3058
|
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
3057
|
-
}), null, 16, _hoisted_1$
|
|
3059
|
+
}), null, 16, _hoisted_1$6)
|
|
3058
3060
|
]),
|
|
3059
3061
|
_: 3
|
|
3060
3062
|
}, 8, ["title", "class", "style"]);
|
|
3061
3063
|
};
|
|
3062
3064
|
}
|
|
3063
3065
|
}));
|
|
3064
|
-
const __default__$
|
|
3066
|
+
const __default__$8 = {
|
|
3065
3067
|
name: "HstNumber",
|
|
3066
3068
|
inheritAttrs: false
|
|
3067
3069
|
};
|
|
3068
|
-
const _sfc_main$
|
|
3070
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__$8), {
|
|
3069
3071
|
props: {
|
|
3070
3072
|
title: null,
|
|
3071
3073
|
modelValue: null
|
|
@@ -3112,7 +3114,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3112
3114
|
stopDragging();
|
|
3113
3115
|
});
|
|
3114
3116
|
return (_ctx, _cache) => {
|
|
3115
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3117
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
3116
3118
|
class: normalizeClass(["htw-cursor-ew-resize htw-items-center", [
|
|
3117
3119
|
_ctx.$attrs.class,
|
|
3118
3120
|
{ "htw-select-none": isDragging.value }
|
|
@@ -3149,6 +3151,87 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3149
3151
|
};
|
|
3150
3152
|
}
|
|
3151
3153
|
}));
|
|
3154
|
+
const _hoisted_1$5 = { class: "htw-relative htw-w-full htw-flex htw-items-center" };
|
|
3155
|
+
const _hoisted_2$4 = /* @__PURE__ */ createBaseVNode("div", { class: "htw-absolute htw-inset-0 htw-flex htw-items-center" }, [
|
|
3156
|
+
/* @__PURE__ */ createBaseVNode("div", { class: "htw-border htw-border-black/25 dark:htw-border-white/25 htw-h-1 htw-w-full htw-rounded-full" })
|
|
3157
|
+
], -1);
|
|
3158
|
+
const __default__$7 = {
|
|
3159
|
+
name: "HstSlider",
|
|
3160
|
+
inheritAttrs: false
|
|
3161
|
+
};
|
|
3162
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__$7), {
|
|
3163
|
+
props: {
|
|
3164
|
+
title: null,
|
|
3165
|
+
modelValue: null,
|
|
3166
|
+
min: null,
|
|
3167
|
+
max: null
|
|
3168
|
+
},
|
|
3169
|
+
emits: {
|
|
3170
|
+
"update:modelValue": (newValue) => true
|
|
3171
|
+
},
|
|
3172
|
+
setup(__props, { emit }) {
|
|
3173
|
+
const props = __props;
|
|
3174
|
+
const showTooltip = ref(false);
|
|
3175
|
+
const input = ref(null);
|
|
3176
|
+
const numberModel = computed({
|
|
3177
|
+
get: () => props.modelValue,
|
|
3178
|
+
set: (value) => {
|
|
3179
|
+
emit("update:modelValue", value);
|
|
3180
|
+
}
|
|
3181
|
+
});
|
|
3182
|
+
const percentage = computed(() => {
|
|
3183
|
+
return (props.modelValue - props.min) / (props.max - props.min);
|
|
3184
|
+
});
|
|
3185
|
+
const tooltipStyle = computed(() => {
|
|
3186
|
+
const gap = 8;
|
|
3187
|
+
if (input.value) {
|
|
3188
|
+
const position = gap + (input.value.clientWidth - 2 * gap) * percentage.value;
|
|
3189
|
+
return {
|
|
3190
|
+
left: position + "px"
|
|
3191
|
+
};
|
|
3192
|
+
}
|
|
3193
|
+
return {};
|
|
3194
|
+
});
|
|
3195
|
+
return (_ctx, _cache) => {
|
|
3196
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
3197
|
+
class: normalizeClass(["htw-items-center", _ctx.$attrs.class]),
|
|
3198
|
+
title: __props.title,
|
|
3199
|
+
style: normalizeStyle(_ctx.$attrs.style)
|
|
3200
|
+
}, {
|
|
3201
|
+
default: withCtx(() => [
|
|
3202
|
+
createBaseVNode("div", _hoisted_1$5, [
|
|
3203
|
+
_hoisted_2$4,
|
|
3204
|
+
withDirectives(createBaseVNode("input", mergeProps({
|
|
3205
|
+
ref_key: "input",
|
|
3206
|
+
ref: input,
|
|
3207
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(numberModel) ? numberModel.value = $event : null),
|
|
3208
|
+
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",
|
|
3209
|
+
type: "range"
|
|
3210
|
+
}, __spreadProps$1(__spreadValues$1({}, _ctx.$attrs), { class: null, style: null }), {
|
|
3211
|
+
onMouseover: _cache[1] || (_cache[1] = ($event) => showTooltip.value = true),
|
|
3212
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => showTooltip.value = false)
|
|
3213
|
+
}), null, 16), [
|
|
3214
|
+
[
|
|
3215
|
+
vModelText,
|
|
3216
|
+
unref(numberModel),
|
|
3217
|
+
void 0,
|
|
3218
|
+
{ number: true }
|
|
3219
|
+
]
|
|
3220
|
+
]),
|
|
3221
|
+
showTooltip.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
3222
|
+
key: 0,
|
|
3223
|
+
class: "htw-absolute",
|
|
3224
|
+
style: normalizeStyle(unref(tooltipStyle))
|
|
3225
|
+
}, null, 4)), [
|
|
3226
|
+
[unref(VTooltip), { content: __props.modelValue.toString(), shown: true, distance: 16, delay: 0 }]
|
|
3227
|
+
]) : createCommentVNode("", true)
|
|
3228
|
+
])
|
|
3229
|
+
]),
|
|
3230
|
+
_: 1
|
|
3231
|
+
}, 8, ["title", "class", "style"]);
|
|
3232
|
+
};
|
|
3233
|
+
}
|
|
3234
|
+
}));
|
|
3152
3235
|
const _hoisted_1$4 = ["value"];
|
|
3153
3236
|
const __default__$6 = {
|
|
3154
3237
|
name: "HstTextarea",
|
|
@@ -3165,7 +3248,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
3165
3248
|
setup(__props, { emit }) {
|
|
3166
3249
|
const input = ref();
|
|
3167
3250
|
return (_ctx, _cache) => {
|
|
3168
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3251
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
3169
3252
|
title: __props.title,
|
|
3170
3253
|
class: normalizeClass(["htw-cursor-text", _ctx.$attrs.class]),
|
|
3171
3254
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
@@ -5085,7 +5168,7 @@ const _sfc_main$4 = defineComponent(__spreadProps$1(__spreadValues$1({}, __defau
|
|
|
5085
5168
|
setup(__props, { emit: emits }) {
|
|
5086
5169
|
ref();
|
|
5087
5170
|
return (_ctx, _cache) => {
|
|
5088
|
-
return openBlock(), createBlock(_sfc_main$
|
|
5171
|
+
return openBlock(), createBlock(_sfc_main$b, {
|
|
5089
5172
|
title: __props.title,
|
|
5090
5173
|
class: normalizeClass(["htw-cursor-text htw-items-center", _ctx.$attrs.class]),
|
|
5091
5174
|
style: normalizeStyle(_ctx.$attrs.style)
|
|
@@ -5430,7 +5513,7 @@ const _hoisted_5 = { class: "htw-my-0 htw-opacity-50 htw-truncate htw-shrink" };
|
|
|
5430
5513
|
const __default__ = {
|
|
5431
5514
|
name: "HstTokenGrid"
|
|
5432
5515
|
};
|
|
5433
|
-
const _sfc_main$
|
|
5516
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValues$1({}, __default__), {
|
|
5434
5517
|
props: {
|
|
5435
5518
|
tokens: null,
|
|
5436
5519
|
colSize: { default: 180 },
|
|
@@ -5501,14 +5584,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
|
|
|
5501
5584
|
}));
|
|
5502
5585
|
const HstCopyIcon = _sfc_main$3;
|
|
5503
5586
|
function registerVueComponents(app) {
|
|
5504
|
-
app.component("HstCheckbox", _sfc_main$
|
|
5505
|
-
app.component("HstText", _sfc_main$
|
|
5506
|
-
app.component("HstNumber", _sfc_main$
|
|
5587
|
+
app.component("HstCheckbox", _sfc_main$a);
|
|
5588
|
+
app.component("HstText", _sfc_main$9);
|
|
5589
|
+
app.component("HstNumber", _sfc_main$8);
|
|
5590
|
+
app.component("HstSlider", _sfc_main$7);
|
|
5507
5591
|
app.component("HstSelect", _sfc_main$4);
|
|
5508
5592
|
app.component("HstTextarea", _sfc_main$6);
|
|
5509
5593
|
app.component("HstColorShades", _sfc_main$2);
|
|
5510
5594
|
app.component("HstTokenList", _sfc_main$1$1);
|
|
5511
|
-
app.component("HstTokenGrid", _sfc_main$
|
|
5595
|
+
app.component("HstTokenGrid", _sfc_main$d);
|
|
5512
5596
|
}
|
|
5513
5597
|
var __defProp = Object.defineProperty;
|
|
5514
5598
|
var __defProps = Object.defineProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as markRaw } from "./vendor.
|
|
1
|
+
import { a9 as markRaw } from "./vendor.31c91490.js";
|
|
2
2
|
let searchData$1 = { "index": { "reg": "{}", "text.cfg": '{"doc":0,"opt":1}', "text.map": "[{},{},{},{},{},{},{},{},{}]", "text.ctx": "[{}]" }, "idMap": {} };
|
|
3
3
|
const searchData = markRaw(searchData$1);
|
|
4
4
|
function onUpdate(cb) {
|