@histoire/controls 0.6.1 → 0.6.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.
Files changed (25) hide show
  1. package/.histoire/dist/__sandbox.html +1 -1
  2. package/.histoire/dist/assets/{BaseEmpty.c5f20ec7.js → BaseEmpty.d30f3079.js} +2 -2
  3. package/.histoire/dist/assets/{HomeView.d306a8d5.js → HomeView.8e044be6.js} +3 -4
  4. package/.histoire/dist/assets/{HstCheckbox.story.58c054a6.js → HstCheckbox.story.3d04d85b.js} +5 -6
  5. package/.histoire/dist/assets/{HstColorShades.story.b321a955.js → HstColorShades.story.68cf74d1.js} +9 -10
  6. package/.histoire/dist/assets/{HstCopyIcon.5a5f1bb8.js → HstCopyIcon.e40e725e.js} +1 -2
  7. package/.histoire/dist/assets/{HstNumber.story.5a14062c.js → HstNumber.story.1e1964ff.js} +3 -4
  8. package/.histoire/dist/assets/{HstSelect.story.d546c2ca.js → HstSelect.story.04860383.js} +8 -9
  9. package/.histoire/dist/assets/{HstText.story.77a76d7e.js → HstText.story.c915d831.js} +3 -4
  10. package/.histoire/dist/assets/{HstTextarea.story.a6a4d3ba.js → HstTextarea.story.802b9c26.js} +3 -4
  11. package/.histoire/dist/assets/{HstTokenGrid.story.28a4b8c9.js → HstTokenGrid.story.025819d6.js} +6 -7
  12. package/.histoire/dist/assets/{HstTokenList.story.efcdd763.js → HstTokenList.story.d3aa6575.js} +9 -10
  13. package/.histoire/dist/assets/{HstWrapper.a4ee2214.js → HstWrapper.246b6982.js} +3 -4
  14. package/.histoire/dist/assets/{SearchPane.d4c0545d.js → SearchPane.daa2675c.js} +11 -12
  15. package/.histoire/dist/assets/{StoryView.6adb630a.js → StoryView.2f64dad1.js} +74 -75
  16. package/.histoire/dist/assets/{bundle-main.2631970b.js → bundle-main.784e5bf7.js} +34 -35
  17. package/.histoire/dist/assets/{bundle-sandbox.91b9cf1c.js → bundle-sandbox.5e153933.js} +3 -4
  18. package/.histoire/dist/assets/{const.560925bb.js → const.268165fd.js} +2 -3
  19. package/.histoire/dist/assets/{global-components.1c794554.js → global-components.6736b2a9.js} +53 -46
  20. package/.histoire/dist/assets/{search-docs-data.de2485ce.js → search-docs-data.b9a75539.js} +1 -1
  21. package/.histoire/dist/assets/{vendor.96c97c65.js → vendor.2833ae3d.js} +7250 -259
  22. package/.histoire/dist/index.html +2 -2
  23. package/dist/index.es.js +10 -2
  24. package/package.json +2 -2
  25. package/vite.config.ts +8 -2
@@ -1,6 +1,5 @@
1
- import { u as useMediaQuery, I as Icon, s as scrollIntoView, c as createRouter, a as createWebHistory, d as defineStore, b as useTitle, e as createPinia, p as plugin, f as useStorage, g as useEventListener, h as useRoute } from "./vendor.96c97c65.js";
2
- import { defineComponent, ref, watch, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, unref, renderSlot, withModifiers, createBlock, Transition, withCtx, toDisplayString, createVNode, createCommentVNode, onMounted, resolveComponent, mergeProps, withKeys, Fragment, resolveDynamicComponent, createApp, renderList, resolveDirective, withDirectives, defineAsyncComponent, vShow, reactive, isRef, useCssVars, createTextVNode, pushScopeId, popScopeId } from "vue";
3
- import { _ as __vitePreload, f as files, m as mapFile, t as tree, h as histoireConfig, r as registerGlobalComponents, i as isDark, a as toggleDark, c as customLogos } from "./global-components.1c794554.js";
1
+ import { d as defineComponent, u as useMediaQuery, r as ref, w as watch, c as computed, o as onUnmounted, a as openBlock, b as createElementBlock, e as createBaseVNode, f as renderSlot, n as normalizeClass, g as withModifiers, h as normalizeStyle, i as unref, j as createBlock, k as withCtx, t as toDisplayString, l as createVNode, I as Icon, m as createCommentVNode, T as Transition, s as scrollIntoView, p as onMounted, q as resolveComponent, v as withKeys, x as mergeProps, y as createRouter, z as createWebHistory, A as defineStore, B as useTitle, C as resolveDynamicComponent, F as Fragment, D as createApp, E as createPinia, G as plugin, H as useStorage, J as renderList, K as useEventListener, L as resolveDirective, M as withDirectives, N as defineAsyncComponent, O as vShow, P as isRef, Q as useCssVars, R as createTextVNode, S as reactive, U as useRoute, V as pushScopeId, W as popScopeId } from "./vendor.2833ae3d.js";
2
+ import { _ as __vitePreload, f as files, m as mapFile, r as registerGlobalComponents, i as isDark, h as histoireConfig, t as toggleDark, a as tree, c as customLogos } from "./global-components.6736b2a9.js";
4
3
  var style = "";
5
4
  var $histoireThemeResolved = "";
6
5
  var _export_sfc = (sfc, props) => {
@@ -36,7 +35,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
36
35
  const _component_RouterLink = resolveComponent("RouterLink");
37
36
  return openBlock(), createBlock(_component_RouterLink, mergeProps(_ctx.$attrs, { custom: "" }), {
38
37
  default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
39
- createElementVNode("a", {
38
+ createBaseVNode("a", {
40
39
  href,
41
40
  class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
42
41
  _ctx.$attrs.class,
@@ -227,7 +226,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
227
226
  [__props.orientation]: true
228
227
  }])
229
228
  }, [
230
- createElementVNode("div", {
229
+ createBaseVNode("div", {
231
230
  class: normalizeClass(["htw-relative htw-top-0 htw-left-0 htw-z-20", {
232
231
  "htw-pointer-events-none": dragging.value,
233
232
  "htw-border-r htw-border-gray-200 dark:htw-border-gray-850": __props.orientation === "landscape",
@@ -236,7 +235,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
236
235
  style: normalizeStyle(unref(leftStyle))
237
236
  }, [
238
237
  renderSlot(_ctx.$slots, "first", {}, void 0, true),
239
- createElementVNode("div", {
238
+ createBaseVNode("div", {
240
239
  class: normalizeClass(["dragger htw-absolute htw-z-100 hover:htw-bg-primary-500/50 htw-transition-colors htw-duration-150 htw-delay-150", {
241
240
  "htw-top-0 htw-bottom-0 htw-cursor-ew-resize": __props.orientation === "landscape",
242
241
  "htw-left-0 htw-right-0 htw-cursor-ns-resize": __props.orientation === "portrait",
@@ -246,7 +245,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
246
245
  onMousedown: withModifiers(dragStart, ["prevent"])
247
246
  }, null, 42, _hoisted_1$1$1)
248
247
  ], 6),
249
- createElementVNode("div", {
248
+ createBaseVNode("div", {
250
249
  class: normalizeClass(["htw-relative htw-bottom-0 htw-right-0", {
251
250
  "htw-pointer-events-none": dragging.value,
252
251
  "htw-border-t htw-border-gray-200 dark:htw-border-gray-850": __props.orientation === "portrait",
@@ -280,9 +279,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
280
279
  return openBlock(), createBlock(Transition, { name: "__histoire-fade-bottom" }, {
281
280
  default: withCtx(() => [
282
281
  __props.opened ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
283
- createElementVNode("div", _hoisted_2$8, [
284
- createElementVNode("span", _hoisted_3$6, toDisplayString(__props.title), 1),
285
- createElementVNode("a", {
282
+ createBaseVNode("div", _hoisted_2$8, [
283
+ createBaseVNode("span", _hoisted_3$6, toDisplayString(__props.title), 1),
284
+ createBaseVNode("a", {
286
285
  class: "htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",
287
286
  onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
288
287
  }, [
@@ -307,12 +306,12 @@ const router = createRouter({
307
306
  {
308
307
  path: "/",
309
308
  name: "home",
310
- component: () => __vitePreload(() => import("./HomeView.d306a8d5.js"), true ? ["assets/HomeView.d306a8d5.js","assets/global-components.1c794554.js","assets/vendor.96c97c65.js"] : void 0)
309
+ component: () => __vitePreload(() => import("./HomeView.8e044be6.js"), true ? ["assets/HomeView.8e044be6.js","assets/vendor.2833ae3d.js","assets/global-components.6736b2a9.js"] : void 0)
311
310
  },
312
311
  {
313
312
  path: "/story/:storyId",
314
313
  name: "story",
315
- component: () => __vitePreload(() => import("./StoryView.6adb630a.js"), true ? ["assets/StoryView.6adb630a.js","assets/vendor.96c97c65.js","assets/BaseEmpty.c5f20ec7.js","assets/const.560925bb.js","assets/global-components.1c794554.js"] : void 0)
314
+ component: () => __vitePreload(() => import("./StoryView.2f64dad1.js"), true ? ["assets/StoryView.2f64dad1.js","assets/vendor.2833ae3d.js","assets/BaseEmpty.d30f3079.js","assets/const.268165fd.js","assets/global-components.6736b2a9.js"] : void 0)
316
315
  }
317
316
  ]
318
317
  });
@@ -417,7 +416,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
417
416
  default: withCtx(({ active: active2 }) => {
418
417
  var _a;
419
418
  return [
420
- createElementVNode("span", _hoisted_1$a, [
419
+ createBaseVNode("span", _hoisted_1$a, [
421
420
  createVNode(unref(Icon), {
422
421
  icon: (_a = __props.story.icon) != null ? _a : "carbon:cube",
423
422
  class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4 htw-flex-none", {
@@ -425,7 +424,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
425
424
  "bind-icon-color": !active2 && __props.story.iconColor
426
425
  }])
427
426
  }, null, 8, ["icon", "class"]),
428
- createElementVNode("span", _hoisted_2$7, toDisplayString(__props.story.title), 1)
427
+ createBaseVNode("span", _hoisted_2$7, toDisplayString(__props.story.title), 1)
429
428
  ]),
430
429
  !__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
431
430
  ];
@@ -509,7 +508,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
509
508
  return (_ctx, _cache) => {
510
509
  const _component_StoryListFolder = resolveComponent("StoryListFolder", true);
511
510
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
512
- createElementVNode("div", {
511
+ createBaseVNode("div", {
513
512
  role: "button",
514
513
  tabindex: "0",
515
514
  class: "htw-px-0.5 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900 htw-cursor-pointer htw-select-none htw-flex",
@@ -519,8 +518,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
519
518
  withKeys(toggleOpen, ["space"])
520
519
  ]
521
520
  }, [
522
- createElementVNode("span", _hoisted_3$4, [
523
- createElementVNode("span", _hoisted_4$3, [
521
+ createBaseVNode("span", _hoisted_3$4, [
522
+ createBaseVNode("span", _hoisted_4$3, [
524
523
  createVNode(unref(Icon), {
525
524
  icon: "carbon:caret-right",
526
525
  class: normalizeClass(["htw-w-4 htw-h-4 htw-transition-transform htw-duration-150 htw-opacity-30", {
@@ -532,7 +531,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
532
531
  class: "htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4"
533
532
  })
534
533
  ]),
535
- createElementVNode("span", _hoisted_5$1, toDisplayString(__props.folder.title), 1)
534
+ createBaseVNode("span", _hoisted_5$1, toDisplayString(__props.folder.title), 1)
536
535
  ])
537
536
  ], 40, _hoisted_2$6),
538
537
  unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_6, [
@@ -565,7 +564,7 @@ const _hoisted_1$8 = {
565
564
  };
566
565
  const _hoisted_2$5 = ["onKeyup"];
567
566
  const _hoisted_3$3 = { class: "htw-truncate htw-opacity-50" };
568
- const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "htw-h-[1px] htw-flex-1 htw-bg-gray-500/10 htw-mx-2" }, null, -1);
567
+ const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("span", { class: "htw-h-[1px] htw-flex-1 htw-bg-gray-500/10 htw-mx-2" }, null, -1);
569
568
  const _hoisted_5 = { key: 1 };
570
569
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
571
570
  name: "StoryGroup",
@@ -601,7 +600,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
601
600
  "htw-rotate-90": unref(isFolderOpen)
602
601
  }])
603
602
  }, null, 8, ["class"]),
604
- createElementVNode("span", _hoisted_3$3, toDisplayString(__props.group.title), 1),
603
+ createBaseVNode("span", _hoisted_3$3, toDisplayString(__props.group.title), 1),
605
604
  _hoisted_4$2
606
605
  ], 40, _hoisted_2$5)) : createCommentVNode("", true),
607
606
  unref(isFolderOpen) ? (openBlock(), createElementBlock("div", _hoisted_5, [
@@ -792,8 +791,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
792
791
  var _a;
793
792
  const _directive_tooltip = resolveDirective("tooltip");
794
793
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
795
- createElementVNode("div", _hoisted_2$4, [
796
- createElementVNode("a", {
794
+ createBaseVNode("div", _hoisted_2$4, [
795
+ createBaseVNode("a", {
797
796
  href: (_a = unref(histoireConfig).theme) == null ? void 0 : _a.logoHref,
798
797
  target: "_blank",
799
798
  class: "htw-w-full htw-h-full htw-flex htw-items-center"
@@ -801,7 +800,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
801
800
  createVNode(_sfc_main$6, { class: "htw-max-w-full htw-max-h-full" })
802
801
  ], 8, _hoisted_3$2)
803
802
  ]),
804
- createElementVNode("div", _hoisted_4$1, [
803
+ createBaseVNode("div", _hoisted_4$1, [
805
804
  withDirectives((openBlock(), createElementBlock("a", {
806
805
  class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
807
806
  "data-test-id": "search-btn",
@@ -831,7 +830,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
831
830
  }
832
831
  });
833
832
  const _withScopeId = (n) => (pushScopeId("data-v-5fe505b0"), n = n(), popScopeId(), n);
834
- const _hoisted_1$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-40" }, " / ", -1));
833
+ const _hoisted_1$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "htw-opacity-40" }, " / ", -1));
835
834
  const _hoisted_2$3 = { class: "htw-flex htw-items-center htw-gap-2" };
836
835
  const _hoisted_3$1 = { class: "htw-opacity-40 htw-text-sm" };
837
836
  const _hoisted_4 = /* @__PURE__ */ createTextVNode(" Select a story... ");
@@ -866,19 +865,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
866
865
  return (_ctx, _cache) => {
867
866
  var _a;
868
867
  return openBlock(), createElementBlock(Fragment, null, [
869
- createElementVNode("div", null, [
870
- createElementVNode("a", {
868
+ createBaseVNode("div", null, [
869
+ createBaseVNode("a", {
871
870
  class: "htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center",
872
871
  onClick: openMenu
873
872
  }, [
874
873
  unref(story) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
875
874
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(folders), (file, key) => {
876
875
  return openBlock(), createElementBlock(Fragment, { key }, [
877
- createElementVNode("span", null, toDisplayString(file), 1),
876
+ createBaseVNode("span", null, toDisplayString(file), 1),
878
877
  _hoisted_1$4
879
878
  ], 64);
880
879
  }), 128)),
881
- createElementVNode("span", _hoisted_2$3, [
880
+ createBaseVNode("span", _hoisted_2$3, [
882
881
  createVNode(unref(Icon), {
883
882
  icon: (_a = unref(story).icon) != null ? _a : "carbon:cube",
884
883
  class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none", {
@@ -887,7 +886,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
887
886
  }])
888
887
  }, null, 8, ["icon", "class"]),
889
888
  createTextVNode(" " + toDisplayString(unref(story).title) + " ", 1),
890
- createElementVNode("span", _hoisted_3$1, toDisplayString(unref(story).variants.length), 1)
889
+ createBaseVNode("span", _hoisted_3$1, toDisplayString(unref(story).variants.length), 1)
891
890
  ])
892
891
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
893
892
  _hoisted_4
@@ -951,7 +950,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
951
950
  },
952
951
  setup(__props, { emit }) {
953
952
  const SearchPane = defineAsyncComponent({
954
- loader: () => __vitePreload(() => import("./SearchPane.d4c0545d.js"), true ? ["assets/SearchPane.d4c0545d.js","assets/global-components.1c794554.js","assets/vendor.96c97c65.js","assets/BaseEmpty.c5f20ec7.js"] : void 0),
953
+ loader: () => __vitePreload(() => import("./SearchPane.daa2675c.js"), true ? ["assets/SearchPane.daa2675c.js","assets/global-components.6736b2a9.js","assets/vendor.2833ae3d.js","assets/BaseEmpty.d30f3079.js"] : void 0),
955
954
  loadingComponent: _sfc_main$3,
956
955
  delay: 0
957
956
  });
@@ -960,11 +959,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
960
959
  }
961
960
  return (_ctx, _cache) => {
962
961
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$2, [
963
- createElementVNode("div", {
962
+ createBaseVNode("div", {
964
963
  class: "htw-absolute htw-inset-0",
965
964
  onClick: _cache[0] || (_cache[0] = ($event) => close())
966
965
  }),
967
- createElementVNode("div", _hoisted_2$1, [
966
+ createBaseVNode("div", _hoisted_2$1, [
968
967
  createVNode(unref(SearchPane), {
969
968
  shown: __props.shown,
970
969
  onClose: _cache[1] || (_cache[1] = ($event) => close())
@@ -1001,7 +1000,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1001
1000
  key: n,
1002
1001
  class: "htw-bg-primary-500/10 htw-rounded-full"
1003
1002
  }, [
1004
- createElementVNode("div", {
1003
+ createBaseVNode("div", {
1005
1004
  class: normalizeClass(["htw-w-3 htw-h-3 htw-bg-primary-500 htw-rounded-full htw-duration-150 htw-ease-out", {
1006
1005
  "htw-transition-transform htw-scale-0": n >= progress.loaded
1007
1006
  }])
@@ -1076,7 +1075,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
1076
1075
  story: unref(storyStore).currentStory
1077
1076
  }, null, 8, ["story"]))
1078
1077
  ])) : createCommentVNode("", true),
1079
- createElementVNode("div", {
1078
+ createBaseVNode("div", {
1080
1079
  class: "htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100",
1081
1080
  style: normalizeStyle({
1082
1081
  opacity: mounted.value && !loading.value ? 1 : 0
@@ -1100,7 +1099,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
1100
1099
  class: "htw-h-full"
1101
1100
  }, {
1102
1101
  first: withCtx(() => [
1103
- createElementVNode("div", _hoisted_3, [
1102
+ createBaseVNode("div", _hoisted_3, [
1104
1103
  createVNode(_sfc_main$5, {
1105
1104
  class: "htw-flex-none",
1106
1105
  onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
@@ -1,7 +1,6 @@
1
- import { k as parseQuery, e as createPinia } from "./vendor.96c97c65.js";
2
- import { reactive, ref, createApp, computed, watch, onMounted, h } from "vue";
3
- import { m as mapFile, f as files, b as toRawDeep, r as registerGlobalComponents, i as isDark, h as histoireConfig, d as applyStateToVariant } from "./global-components.1c794554.js";
4
- import { S as STATE_SYNC, P as PREVIEW_SETTINGS_SYNC, _ as _sfc_main, a as SANDBOX_READY } from "./const.560925bb.js";
1
+ import { S as reactive, aa as parseQuery, r as ref, D as createApp, E as createPinia, w as watch, c as computed, p as onMounted, _ as h } from "./vendor.2833ae3d.js";
2
+ import { m as mapFile, f as files, r as registerGlobalComponents, b as toRawDeep, h as histoireConfig, i as isDark, d as applyStateToVariant } from "./global-components.6736b2a9.js";
3
+ import { S as STATE_SYNC, P as PREVIEW_SETTINGS_SYNC, a as SANDBOX_READY, _ as _sfc_main } from "./const.268165fd.js";
5
4
  var sandbox = "";
6
5
  const receivedSettings = reactive({});
7
6
  function applyPreviewSettings(settings) {
@@ -1,6 +1,5 @@
1
- import { defineComponent, ref, onMounted, watch, onUnmounted, openBlock, createElementBlock, createApp, Text, vModelText, vModelSelect, vModelRadio, vModelCheckbox, vModelDynamic } from "vue";
2
- import { C as Case } from "./vendor.96c97c65.js";
3
- import { d as applyStateToVariant } from "./global-components.1c794554.js";
1
+ import { d as defineComponent, r as ref, p as onMounted, w as watch, o as onUnmounted, a as openBlock, b as createElementBlock, D as createApp, ab as Case, ac as Text, Z as vModelText, ad as vModelSelect, ae as vModelRadio, af as vModelCheckbox, ag as vModelDynamic } from "./vendor.2833ae3d.js";
2
+ import { d as applyStateToVariant } from "./global-components.6736b2a9.js";
4
3
  var main = "";
5
4
  var histoireSetup = () => {
6
5
  };
@@ -1,5 +1,4 @@
1
- import { defineAsyncComponent, isRef, unref, defineComponent, pushScopeId, popScopeId, openBlock, createElementBlock, withDirectives, createTextVNode, toDisplayString, createElementVNode, renderSlot, ref, computed, watch, createBlock, withKeys, withModifiers, withCtx, normalizeClass, normalizeStyle, mergeProps, onUnmounted, vModelText, h, Fragment, renderList, createVNode, createCommentVNode, nextTick, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, getCurrentScope, onScopeDispose, createApp, useAttrs, getCurrentInstance, inject, provide, markRaw } from "vue";
2
- import { i as useDark, j as useToggle } from "./vendor.96c97c65.js";
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, m as createCommentVNode, $ 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.2833ae3d.js";
3
2
  const scriptRel = "modulepreload";
4
3
  const seen = {};
5
4
  const base = "/";
@@ -33,16 +32,16 @@ const __vitePreload = function preload(baseModule, deps) {
33
32
  }
34
33
  })).then(() => baseModule());
35
34
  };
36
- const Comp0 = defineAsyncComponent(() => __vitePreload(() => import("./HstCheckbox.story.58c054a6.js"), true ? ["assets/HstCheckbox.story.58c054a6.js","assets/HstWrapper.a4ee2214.js","assets/vendor.96c97c65.js"] : void 0));
37
- const Comp1 = defineAsyncComponent(() => __vitePreload(() => import("./HstColorShades.story.b321a955.js"), true ? ["assets/HstColorShades.story.b321a955.js","assets/vendor.96c97c65.js","assets/HstCopyIcon.5a5f1bb8.js"] : void 0));
38
- const Comp2 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenGrid.story.28a4b8c9.js"), true ? ["assets/HstTokenGrid.story.28a4b8c9.js","assets/vendor.96c97c65.js","assets/HstCopyIcon.5a5f1bb8.js"] : void 0));
39
- const Comp3 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenList.story.efcdd763.js"), true ? ["assets/HstTokenList.story.efcdd763.js","assets/HstCopyIcon.5a5f1bb8.js","assets/vendor.96c97c65.js"] : void 0));
40
- const Comp4 = defineAsyncComponent(() => __vitePreload(() => import("./HstNumber.story.5a14062c.js"), true ? ["assets/HstNumber.story.5a14062c.js","assets/HstWrapper.a4ee2214.js","assets/vendor.96c97c65.js"] : void 0));
41
- const Comp5 = defineAsyncComponent(() => __vitePreload(() => import("./HstSelect.story.d546c2ca.js"), true ? ["assets/HstSelect.story.d546c2ca.js","assets/HstWrapper.a4ee2214.js","assets/vendor.96c97c65.js"] : void 0));
42
- const Comp6 = defineAsyncComponent(() => __vitePreload(() => import("./HstTextarea.story.a6a4d3ba.js"), true ? ["assets/HstTextarea.story.a6a4d3ba.js","assets/HstWrapper.a4ee2214.js","assets/vendor.96c97c65.js"] : void 0));
43
- const Comp7 = defineAsyncComponent(() => __vitePreload(() => import("./HstText.story.77a76d7e.js"), true ? ["assets/HstText.story.77a76d7e.js","assets/HstWrapper.a4ee2214.js","assets/vendor.96c97c65.js"] : void 0));
44
- const Comp8 = defineAsyncComponent(() => __vitePreload(() => import("./vendor.96c97c65.js").then(function(n) {
45
- return n.T;
35
+ const Comp0 = defineAsyncComponent(() => __vitePreload(() => import("./HstCheckbox.story.3d04d85b.js"), true ? ["assets/HstCheckbox.story.3d04d85b.js","assets/vendor.2833ae3d.js","assets/HstWrapper.246b6982.js"] : void 0));
36
+ const Comp1 = defineAsyncComponent(() => __vitePreload(() => import("./HstColorShades.story.68cf74d1.js"), true ? ["assets/HstColorShades.story.68cf74d1.js","assets/vendor.2833ae3d.js","assets/HstCopyIcon.e40e725e.js"] : void 0));
37
+ const Comp2 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenGrid.story.025819d6.js"), true ? ["assets/HstTokenGrid.story.025819d6.js","assets/vendor.2833ae3d.js","assets/HstCopyIcon.e40e725e.js"] : void 0));
38
+ const Comp3 = defineAsyncComponent(() => __vitePreload(() => import("./HstTokenList.story.d3aa6575.js"), true ? ["assets/HstTokenList.story.d3aa6575.js","assets/vendor.2833ae3d.js","assets/HstCopyIcon.e40e725e.js"] : void 0));
39
+ const Comp4 = defineAsyncComponent(() => __vitePreload(() => import("./HstNumber.story.1e1964ff.js"), true ? ["assets/HstNumber.story.1e1964ff.js","assets/vendor.2833ae3d.js","assets/HstWrapper.246b6982.js"] : void 0));
40
+ const Comp5 = defineAsyncComponent(() => __vitePreload(() => import("./HstSelect.story.04860383.js"), true ? ["assets/HstSelect.story.04860383.js","assets/vendor.2833ae3d.js","assets/HstWrapper.246b6982.js"] : void 0));
41
+ const Comp6 = defineAsyncComponent(() => __vitePreload(() => import("./HstTextarea.story.802b9c26.js"), true ? ["assets/HstTextarea.story.802b9c26.js","assets/vendor.2833ae3d.js","assets/HstWrapper.246b6982.js"] : void 0));
42
+ const Comp7 = defineAsyncComponent(() => __vitePreload(() => import("./HstText.story.c915d831.js"), true ? ["assets/HstText.story.c915d831.js","assets/vendor.2833ae3d.js","assets/HstWrapper.246b6982.js"] : void 0));
43
+ const Comp8 = defineAsyncComponent(() => __vitePreload(() => import("./vendor.2833ae3d.js").then(function(n) {
44
+ return n.aA;
46
45
  }), true ? [] : void 0));
47
46
  let files = [
48
47
  { "id": "src-components-checkbox-hstcheckbox-story-vue", "path": ["HstCheckbox"], "story": { "id": "src-components-checkbox-hstcheckbox-story-vue", "title": "HstCheckbox", "group": null, "layout": { "type": "single", "iframe": true }, "icon": null, "iconColor": null, "docsOnly": false, "variants": [{ "id": "src-components-checkbox-hstcheckbox-story-vue-0", "title": "playground", "icon": null, "iconColor": null }] }, "framework": "vue3", "index": 0, component: Comp0 },
@@ -2399,7 +2398,7 @@ var script = {
2399
2398
  }
2400
2399
  }
2401
2400
  };
2402
- const _withId = /* @__PURE__ */ withScopeId("data-v-b329ee4c");
2401
+ const _withId = /* @__PURE__ */ withScopeId();
2403
2402
  pushScopeId("data-v-b329ee4c");
2404
2403
  const _hoisted_1$2$1 = {
2405
2404
  class: "resize-observer",
@@ -2456,8 +2455,8 @@ const _hoisted_2$1$1 = {
2456
2455
  ref: "inner",
2457
2456
  class: "v-popper__inner"
2458
2457
  };
2459
- const _hoisted_3$6 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
2460
- const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2458
+ const _hoisted_3$6 = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
2459
+ const _hoisted_4$5 = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
2461
2460
  const _hoisted_5$3 = [
2462
2461
  _hoisted_3$6,
2463
2462
  _hoisted_4$5
@@ -2491,19 +2490,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2491
2490
  "data-popper-placement": _ctx.result ? _ctx.result.placement : void 0,
2492
2491
  onKeyup: _cache[2] || (_cache[2] = withKeys(($event) => _ctx.autoHide && _ctx.$emit("hide"), ["esc"]))
2493
2492
  }, [
2494
- createElementVNode("div", {
2493
+ createBaseVNode("div", {
2495
2494
  class: "v-popper__backdrop",
2496
2495
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.autoHide && _ctx.$emit("hide"))
2497
2496
  }),
2498
- createElementVNode("div", {
2497
+ createBaseVNode("div", {
2499
2498
  class: "v-popper__wrapper",
2500
2499
  style: normalizeStyle(_ctx.result ? {
2501
2500
  transformOrigin: _ctx.result.transformOrigin
2502
2501
  } : void 0)
2503
2502
  }, [
2504
- createElementVNode("div", _hoisted_2$1$1, [
2503
+ createBaseVNode("div", _hoisted_2$1$1, [
2505
2504
  _ctx.mounted ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2506
- createElementVNode("div", null, [
2505
+ createBaseVNode("div", null, [
2507
2506
  renderSlot(_ctx.$slots, "default")
2508
2507
  ]),
2509
2508
  _ctx.handleResize ? (openBlock(), createBlock(_component_ResizeObserver, {
@@ -2512,7 +2511,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
2512
2511
  })) : createCommentVNode("", true)
2513
2512
  ], 64)) : createCommentVNode("", true)
2514
2513
  ], 512),
2515
- createElementVNode("div", {
2514
+ createBaseVNode("div", {
2516
2515
  ref: "arrow",
2517
2516
  class: "v-popper__arrow-container",
2518
2517
  style: normalizeStyle(_ctx.result ? {
@@ -2933,8 +2932,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
2933
2932
  distance: 12
2934
2933
  }]
2935
2934
  ]),
2936
- createElementVNode("span", _hoisted_3$5, [
2937
- createElementVNode("span", _hoisted_4$4, [
2935
+ createBaseVNode("span", _hoisted_3$5, [
2936
+ createBaseVNode("span", _hoisted_4$4, [
2938
2937
  renderSlot(_ctx.$slots, "default")
2939
2938
  ]),
2940
2939
  renderSlot(_ctx.$slots, "actions")
@@ -2993,14 +2992,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
2993
2992
  renderSlot(_ctx.$slots, "actions")
2994
2993
  ]),
2995
2994
  default: withCtx(() => [
2996
- createElementVNode("div", _hoisted_1$6, [
2997
- createElementVNode("div", {
2995
+ createBaseVNode("div", _hoisted_1$6, [
2996
+ createBaseVNode("div", {
2998
2997
  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", [
2999
2998
  __props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
3000
2999
  ]])
3001
3000
  }, null, 2),
3002
3001
  (openBlock(), createElementBlock("svg", _hoisted_2$4, [
3003
- createElementVNode("path", {
3002
+ createBaseVNode("path", {
3004
3003
  ref_key: "path",
3005
3004
  ref: path,
3006
3005
  d: "m 4 12 l 5 5 l 10 -10",
@@ -3047,7 +3046,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
3047
3046
  renderSlot(_ctx.$slots, "actions")
3048
3047
  ]),
3049
3048
  default: withCtx(() => [
3050
- createElementVNode("input", mergeProps({
3049
+ createBaseVNode("input", mergeProps({
3051
3050
  ref_key: "input",
3052
3051
  ref: input
3053
3052
  }, __spreadProps$1(__spreadValues$1({}, _ctx.$attrs), { class: null, style: null }), {
@@ -3127,7 +3126,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
3127
3126
  renderSlot(_ctx.$slots, "actions")
3128
3127
  ]),
3129
3128
  default: withCtx(() => [
3130
- withDirectives(createElementVNode("input", mergeProps({
3129
+ withDirectives(createBaseVNode("input", mergeProps({
3131
3130
  ref_key: "input",
3132
3131
  ref: input
3133
3132
  }, __spreadProps$1(__spreadValues$1({}, _ctx.$attrs), { class: null, style: null }), {
@@ -3176,7 +3175,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
3176
3175
  renderSlot(_ctx.$slots, "actions")
3177
3176
  ]),
3178
3177
  default: withCtx(() => [
3179
- createElementVNode("textarea", mergeProps({
3178
+ createBaseVNode("textarea", mergeProps({
3180
3179
  ref_key: "input",
3181
3180
  ref: input
3182
3181
  }, __spreadProps$1(__spreadValues$1({}, _ctx.$attrs), { class: null, style: null }), {
@@ -3275,7 +3274,7 @@ function mergeIconData(icon, alias) {
3275
3274
  }
3276
3275
  return result;
3277
3276
  }
3278
- function getIconData$1(data, name, full) {
3277
+ function getIconData$1(data, name, full = false) {
3279
3278
  function getIcon(name2, iteration) {
3280
3279
  if (data.icons[name2] !== void 0) {
3281
3280
  return Object.assign({}, data.icons[name2]);
@@ -4117,7 +4116,7 @@ function storeCallback(callback, icons, pendingSources) {
4117
4116
  });
4118
4117
  return abort;
4119
4118
  }
4120
- function listToIcons(list, validate, simpleNames2 = false) {
4119
+ function listToIcons(list, validate = true, simpleNames2 = false) {
4121
4120
  const result = [];
4122
4121
  list.forEach((item) => {
4123
4122
  const icon = typeof item === "string" ? stringToIcon(item, false, simpleNames2) : item;
@@ -5043,7 +5042,7 @@ const _sfc_main$5 = defineComponent(__spreadProps$1(__spreadValues$1({}, __defau
5043
5042
  return (_ctx, _cache) => {
5044
5043
  return openBlock(), createBlock(unref(Dropdown), { "auto-size": "" }, {
5045
5044
  popper: withCtx(({ hide }) => [
5046
- createElementVNode("div", _hoisted_3$3, [
5045
+ createBaseVNode("div", _hoisted_3$3, [
5047
5046
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formattedOptions), (label, value) => {
5048
5047
  return openBlock(), createElementBlock("div", mergeProps(__spreadProps$1(__spreadValues$1({}, _ctx.$attrs), { class: null, style: null }), {
5049
5048
  key: label,
@@ -5056,8 +5055,8 @@ const _sfc_main$5 = defineComponent(__spreadProps$1(__spreadValues$1({}, __defau
5056
5055
  ])
5057
5056
  ]),
5058
5057
  default: withCtx(() => [
5059
- createElementVNode("div", _hoisted_1$3, [
5060
- createElementVNode("div", _hoisted_2$3, [
5058
+ createBaseVNode("div", _hoisted_1$3, [
5059
+ createBaseVNode("div", _hoisted_2$3, [
5061
5060
  renderSlot(_ctx.$slots, "default", { label: unref(selectedLabel) }, () => [
5062
5061
  createTextVNode(toDisplayString(unref(selectedLabel)), 1)
5063
5062
  ])
@@ -5234,6 +5233,14 @@ const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !
5234
5233
  const globalKey = "__vueuse_ssr_handlers__";
5235
5234
  _global[globalKey] = _global[globalKey] || {};
5236
5235
  _global[globalKey];
5236
+ var SwipeDirection;
5237
+ (function(SwipeDirection2) {
5238
+ SwipeDirection2["UP"] = "UP";
5239
+ SwipeDirection2["RIGHT"] = "RIGHT";
5240
+ SwipeDirection2["DOWN"] = "DOWN";
5241
+ SwipeDirection2["LEFT"] = "LEFT";
5242
+ SwipeDirection2["NONE"] = "NONE";
5243
+ })(SwipeDirection || (SwipeDirection = {}));
5237
5244
  const __default__$3 = {
5238
5245
  name: "HstCopyIcon"
5239
5246
  };
@@ -5315,15 +5322,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
5315
5322
  renderSlot(_ctx.$slots, "default", {
5316
5323
  color: shade.color
5317
5324
  }, () => [
5318
- createElementVNode("div", {
5325
+ createBaseVNode("div", {
5319
5326
  class: "htw-rounded-full htw-w-16 htw-h-16",
5320
5327
  style: normalizeStyle({
5321
5328
  backgroundColor: shade.color
5322
5329
  })
5323
5330
  }, null, 4)
5324
5331
  ]),
5325
- createElementVNode("div", null, [
5326
- createElementVNode("div", _hoisted_3$2, [
5332
+ createBaseVNode("div", null, [
5333
+ createBaseVNode("div", _hoisted_3$2, [
5327
5334
  withDirectives((openBlock(), createElementBlock("pre", _hoisted_4$2, [
5328
5335
  createTextVNode(toDisplayString(shade.name), 1)
5329
5336
  ])), [
@@ -5335,7 +5342,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
5335
5342
  class: "htw-flex-none"
5336
5343
  }, null, 8, ["content"])) : createCommentVNode("", true)
5337
5344
  ]),
5338
- createElementVNode("div", _hoisted_5$2, [
5345
+ createBaseVNode("div", _hoisted_5$2, [
5339
5346
  withDirectives((openBlock(), createElementBlock("pre", _hoisted_6$1, [
5340
5347
  createTextVNode(toDisplayString(shade.color), 1)
5341
5348
  ])), [
@@ -5392,17 +5399,17 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadVa
5392
5399
  onMouseleave: _cache[0] || (_cache[0] = ($event) => hover.value = null)
5393
5400
  }, [
5394
5401
  renderSlot(_ctx.$slots, "default", { token }),
5395
- createElementVNode("div", _hoisted_2$1, [
5396
- createElementVNode("div", _hoisted_3$1, [
5397
- createElementVNode("pre", _hoisted_4$1, toDisplayString(token.name), 1),
5402
+ createBaseVNode("div", _hoisted_2$1, [
5403
+ createBaseVNode("div", _hoisted_3$1, [
5404
+ createBaseVNode("pre", _hoisted_4$1, toDisplayString(token.name), 1),
5398
5405
  hover.value === token.key ? (openBlock(), createBlock(_sfc_main$3, {
5399
5406
  key: 0,
5400
5407
  content: token.name,
5401
5408
  class: "htw-flex-none"
5402
5409
  }, null, 8, ["content"])) : createCommentVNode("", true)
5403
5410
  ]),
5404
- createElementVNode("div", _hoisted_5$1, [
5405
- createElementVNode("pre", _hoisted_6, toDisplayString(token.value), 1),
5411
+ createBaseVNode("div", _hoisted_5$1, [
5412
+ createBaseVNode("pre", _hoisted_6, toDisplayString(token.value), 1),
5406
5413
  hover.value === token.key ? (openBlock(), createBlock(_sfc_main$3, {
5407
5414
  key: 0,
5408
5415
  content: typeof token.value === "string" ? token.value : JSON.stringify(token.value),
@@ -5460,8 +5467,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
5460
5467
  onMouseleave: _cache[0] || (_cache[0] = ($event) => hover.value = null)
5461
5468
  }, [
5462
5469
  renderSlot(_ctx.$slots, "default", { token }),
5463
- createElementVNode("div", null, [
5464
- createElementVNode("div", _hoisted_2, [
5470
+ createBaseVNode("div", null, [
5471
+ createBaseVNode("div", _hoisted_2, [
5465
5472
  withDirectives((openBlock(), createElementBlock("pre", _hoisted_3, [
5466
5473
  createTextVNode(toDisplayString(token.name), 1)
5467
5474
  ])), [
@@ -5473,7 +5480,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps$1(__spreadValu
5473
5480
  class: "htw-flex-none"
5474
5481
  }, null, 8, ["content"])) : createCommentVNode("", true)
5475
5482
  ]),
5476
- createElementVNode("div", _hoisted_4, [
5483
+ createBaseVNode("div", _hoisted_4, [
5477
5484
  withDirectives((openBlock(), createElementBlock("pre", _hoisted_5, [
5478
5485
  createTextVNode(toDisplayString(token.value), 1)
5479
5486
  ])), [
@@ -5712,4 +5719,4 @@ function registerGlobalComponents(app) {
5712
5719
  app.component("Variant", _sfc_main$1);
5713
5720
  registerVueComponents(app);
5714
5721
  }
5715
- export { HstCopyIcon as H, __vitePreload as _, toggleDark as a, toRawDeep as b, customLogos as c, applyStateToVariant as d, clone as e, files as f, histoireConfig as h, isDark as i, mapFile as m, omit as o, registerGlobalComponents as r, tree as t };
5722
+ export { HstCopyIcon as H, __vitePreload as _, tree as a, toRawDeep as b, customLogos as c, applyStateToVariant as d, clone as e, files as f, histoireConfig as h, isDark as i, mapFile as m, omit as o, registerGlobalComponents as r, toggleDark as t };
@@ -1,4 +1,4 @@
1
- import { markRaw } from "vue";
1
+ import { a9 as markRaw } from "./vendor.2833ae3d.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) {