@code-coaching/vuetiful 0.15.2 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, watchEffect, provide, onUnmounted, inject, toRaw, watch, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition, mergeProps, resolveComponent, renderList } from "vue";
2
- const _hoisted_1$9 = ["src", "alt"];
3
- const _hoisted_2$4 = {
1
+ import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, watchEffect, provide, onUnmounted, inject, toRaw, watch, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition, mergeProps, renderList, pushScopeId, popScopeId, resolveComponent } from "vue";
2
+ const _hoisted_1$a = ["src", "alt"];
3
+ const _hoisted_2$5 = {
4
4
  key: 1,
5
5
  class: "avatar-initials h-full w-full",
6
6
  viewBox: "0 0 512 512"
7
7
  };
8
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
8
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
9
9
  __name: "VAvatar",
10
10
  props: {
11
11
  initials: { type: String, default: "" },
@@ -39,7 +39,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
39
39
  src: imgSrc.value,
40
40
  alt: __props.alt,
41
41
  onError: _cache[0] || (_cache[0] = () => imgSrc.value = __props.fallback)
42
- }, null, 40, _hoisted_1$9)) : (openBlock(), createElementBlock("svg", _hoisted_2$4, [
42
+ }, null, 40, _hoisted_1$a)) : (openBlock(), createElementBlock("svg", _hoisted_2$5, [
43
43
  createElementVNode("text", {
44
44
  x: "50%",
45
45
  y: "50%",
@@ -61,17 +61,17 @@ var _export_sfc = (sfc, props) => {
61
61
  }
62
62
  return target;
63
63
  };
64
- const _sfc_main$h = {};
65
- const _hoisted_1$8 = {
64
+ const _sfc_main$i = {};
65
+ const _hoisted_1$9 = {
66
66
  class: /* @__PURE__ */ normalizeClass(`vuetiful-badge badge`)
67
67
  };
68
68
  function _sfc_render$3(_ctx, _cache) {
69
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
69
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
70
70
  renderSlot(_ctx.$slots, "default")
71
71
  ]);
72
72
  }
73
- var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$3]]);
74
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
73
+ var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$3]]);
74
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
75
75
  __name: "VButton",
76
76
  props: {
77
77
  icon: {
@@ -121,16 +121,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
121
121
  };
122
122
  }
123
123
  });
124
- const _sfc_main$f = {};
125
- const _hoisted_1$7 = {
124
+ const _sfc_main$g = {};
125
+ const _hoisted_1$8 = {
126
126
  class: /* @__PURE__ */ normalizeClass(`vuetiful-chip chip`)
127
127
  };
128
128
  function _sfc_render$2(_ctx, _cache) {
129
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
129
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
130
130
  renderSlot(_ctx.$slots, "default")
131
131
  ]);
132
132
  }
133
- var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]]);
133
+ var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$2]]);
134
134
  var deepFreezeEs6 = { exports: {} };
135
135
  function deepFreeze(obj) {
136
136
  if (obj instanceof Map) {
@@ -46471,12 +46471,12 @@ const useHighlight = () => {
46471
46471
  };
46472
46472
  };
46473
46473
  var githubDark = "";
46474
- const _hoisted_1$6 = { class: "code-block bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
46475
- const _hoisted_2$3 = {
46474
+ const _hoisted_1$7 = { class: "code-block bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
46475
+ const _hoisted_2$4 = {
46476
46476
  class: /* @__PURE__ */ normalizeClass(`code-block-language`)
46477
46477
  };
46478
- const _hoisted_3$1 = ["innerHTML"];
46479
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
46478
+ const _hoisted_3$2 = ["innerHTML"];
46479
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
46480
46480
  __name: "VCodeBlock",
46481
46481
  props: {
46482
46482
  language: {
@@ -46501,7 +46501,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
46501
46501
  },
46502
46502
  buttonClass: {
46503
46503
  type: String,
46504
- default: "btn btn-sm variant-soft !text-white"
46504
+ default: "btn-sm bg-surface-400 text-surface-900"
46505
46505
  },
46506
46506
  buttonText: {
46507
46507
  type: String,
@@ -46509,7 +46509,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
46509
46509
  },
46510
46510
  buttonCopiedText: {
46511
46511
  type: String,
46512
- default: "\u{1F44D}"
46512
+ default: "Copied!"
46513
46513
  }
46514
46514
  },
46515
46515
  emits: ["copy"],
@@ -46534,17 +46534,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
46534
46534
  emit("copy");
46535
46535
  }
46536
46536
  return (_ctx, _cache) => {
46537
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
46537
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
46538
46538
  createElementVNode("header", {
46539
46539
  class: normalizeClass(`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${__props.headerClass}`)
46540
46540
  }, [
46541
- createElementVNode("span", _hoisted_2$3, toDisplayString(languageFormatter(__props.language)), 1),
46542
- withDirectives((openBlock(), createElementBlock("button", {
46541
+ createElementVNode("span", _hoisted_2$4, toDisplayString(languageFormatter(__props.language)), 1),
46542
+ withDirectives((openBlock(), createBlock(unref(_sfc_main$h), {
46543
46543
  class: normalizeClass(`code-block-btn ${__props.buttonClass}`),
46544
46544
  onClick: _cache[0] || (_cache[0] = ($event) => onCopyClick())
46545
- }, [
46546
- createTextVNode(toDisplayString(!copyState.value ? __props.buttonText : __props.buttonCopiedText), 1)
46547
- ], 2)), [
46545
+ }, {
46546
+ default: withCtx(() => [
46547
+ createTextVNode(toDisplayString(!copyState.value ? __props.buttonText : __props.buttonCopiedText), 1)
46548
+ ]),
46549
+ _: 1
46550
+ }, 8, ["class"])), [
46548
46551
  [unref(clipboard), props.code]
46549
46552
  ])
46550
46553
  ], 2),
@@ -46554,13 +46557,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
46554
46557
  createElementVNode("code", {
46555
46558
  class: normalizeClass(`code-block-code language-${__props.language}`),
46556
46559
  innerHTML: unref(highlight2)(props.code, props.language)
46557
- }, null, 10, _hoisted_3$1)
46560
+ }, null, 10, _hoisted_3$2)
46558
46561
  ], 2)
46559
46562
  ]);
46560
46563
  };
46561
46564
  }
46562
46565
  });
46563
- const _sfc_main$d = defineComponent({
46566
+ const _sfc_main$e = defineComponent({
46564
46567
  props: {
46565
46568
  bgLight: {
46566
46569
  type: String,
@@ -46651,8 +46654,8 @@ const _sfc_main$d = defineComponent({
46651
46654
  };
46652
46655
  }
46653
46656
  });
46654
- const _hoisted_1$5 = ["aria-checked", "title"];
46655
- const _hoisted_2$2 = ["d"];
46657
+ const _hoisted_1$6 = ["aria-checked", "title"];
46658
+ const _hoisted_2$3 = ["d"];
46656
46659
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46657
46660
  return openBlock(), createElementBlock("div", {
46658
46661
  class: normalizeClass(`lightswitch-track ${_ctx.classesTrack}`),
@@ -46677,12 +46680,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46677
46680
  createElementVNode("path", {
46678
46681
  fill: "currentColor",
46679
46682
  d: _ctx.currentMode ? _ctx.svgPath.sun : _ctx.svgPath.moon
46680
- }, null, 8, _hoisted_2$2)
46683
+ }, null, 8, _hoisted_2$3)
46681
46684
  ], 2))
46682
46685
  ], 2)
46683
- ], 42, _hoisted_1$5);
46686
+ ], 42, _hoisted_1$6);
46684
46687
  }
46685
- var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$1]]);
46688
+ var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$1]]);
46686
46689
  function u(r2, n2, ...a2) {
46687
46690
  if (r2 in n2) {
46688
46691
  let e2 = n2[r2];
@@ -47175,7 +47178,7 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
47175
47178
  return h$1(Fragment, [n2 != null && i2.value != null ? h$1(f$1, K$1({ features: a$1.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: i2.value, form: D, name: n2, value: L })) : null, H$2({ ourProps: x, theirProps: { ...a2, ...T$2(R, ["modelValue", "defaultChecked"]) }, slot: K2, attrs: a2, slots: o$2, name: "Switch" })]);
47176
47179
  };
47177
47180
  } }), de = T, ce = E;
47178
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
47181
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
47179
47182
  __name: "VRadioDescription",
47180
47183
  props: {
47181
47184
  as: {
@@ -47194,7 +47197,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
47194
47197
  };
47195
47198
  }
47196
47199
  });
47197
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
47200
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
47198
47201
  __name: "VRadioGroup",
47199
47202
  props: {
47200
47203
  as: {
@@ -47262,7 +47265,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
47262
47265
  };
47263
47266
  }
47264
47267
  });
47265
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
47268
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
47266
47269
  __name: "VRadioItem",
47267
47270
  props: {
47268
47271
  value: {
@@ -47288,7 +47291,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47288
47291
  };
47289
47292
  }
47290
47293
  });
47291
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47294
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
47292
47295
  __name: "VRadioLabel",
47293
47296
  props: {
47294
47297
  as: {
@@ -47307,11 +47310,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47307
47310
  };
47308
47311
  }
47309
47312
  });
47310
- const _hoisted_1$4 = {
47313
+ const _hoisted_1$5 = {
47311
47314
  key: 0,
47312
47315
  class: "sr-only"
47313
47316
  };
47314
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47317
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47315
47318
  __name: "VSwitch",
47316
47319
  props: {
47317
47320
  modelValue: {
@@ -47387,7 +47390,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47387
47390
  createElementVNode("div", {
47388
47391
  class: normalizeClass(`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-token ${unref(trackSize)} ${__props.disabled ? "cursor-not-allowed" : "cursor-pointer"} ${__props.switchClass}`)
47389
47392
  }, [
47390
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$4, [
47393
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$5, [
47391
47394
  renderSlot(_ctx.$slots, "default")
47392
47395
  ])) : createCommentVNode("", true),
47393
47396
  createElementVNode("div", {
@@ -47400,7 +47403,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47400
47403
  };
47401
47404
  }
47402
47405
  });
47403
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47406
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47404
47407
  __name: "VSwitchDescription",
47405
47408
  props: {
47406
47409
  as: {
@@ -47419,7 +47422,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47419
47422
  };
47420
47423
  }
47421
47424
  });
47422
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47425
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47423
47426
  __name: "VSwitchGroup",
47424
47427
  props: {
47425
47428
  as: {
@@ -47438,7 +47441,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47438
47441
  };
47439
47442
  }
47440
47443
  });
47441
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
47444
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47442
47445
  __name: "VSwitchLabel",
47443
47446
  props: {
47444
47447
  as: {
@@ -47583,8 +47586,8 @@ const useDarkMode = () => {
47583
47586
  MODE
47584
47587
  };
47585
47588
  };
47586
- const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
47587
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
47589
+ const _hoisted_1$4 = ["aria-labelledby", "aria-describedby"];
47590
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
47588
47591
  __name: "VDrawer",
47589
47592
  props: {
47590
47593
  regionBackdrop: {
@@ -47648,7 +47651,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
47648
47651
  "aria-describedby": unref(describedby)
47649
47652
  }, [
47650
47653
  renderSlot(_ctx.$slots, "default")
47651
- ], 10, _hoisted_1$3)) : createCommentVNode("", true)
47654
+ ], 10, _hoisted_1$4)) : createCommentVNode("", true)
47652
47655
  ]),
47653
47656
  _: 3
47654
47657
  }, 8, ["name"]),
@@ -47671,8 +47674,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
47671
47674
  };
47672
47675
  }
47673
47676
  });
47674
- const _hoisted_1$2 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
47675
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
47677
+ const _hoisted_1$3 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
47678
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
47676
47679
  __name: "VRail",
47677
47680
  props: {
47678
47681
  active: {
@@ -47701,7 +47704,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
47701
47704
  provide("active", props.active);
47702
47705
  provide("hover", props.hover);
47703
47706
  return (_ctx, _cache) => {
47704
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
47707
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
47705
47708
  createElementVNode("div", {
47706
47709
  class: normalizeClass(["v-bar-lead", __props.regionLead])
47707
47710
  }, [
@@ -47721,7 +47724,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
47721
47724
  };
47722
47725
  }
47723
47726
  });
47724
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
47727
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
47725
47728
  __name: "VRailTile",
47726
47729
  props: {
47727
47730
  value: {
@@ -47797,9 +47800,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
47797
47800
  };
47798
47801
  }
47799
47802
  });
47800
- const _hoisted_1$1 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
47801
- const _hoisted_2$1 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
47802
- const _sfc_main$1 = defineComponent({
47803
+ const _hoisted_1$2 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
47804
+ const _hoisted_2$2 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
47805
+ const _sfc_main$2 = defineComponent({
47803
47806
  __name: "VShell",
47804
47807
  props: {
47805
47808
  regionPage: { type: String, default: "" },
@@ -47814,14 +47817,14 @@ const _sfc_main$1 = defineComponent({
47814
47817
  setup(__props) {
47815
47818
  return (_ctx, _cache) => {
47816
47819
  var _a;
47817
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
47820
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
47818
47821
  _ctx.$slots.fixedHeader ? (openBlock(), createElementBlock("header", {
47819
47822
  key: 0,
47820
47823
  class: normalizeClass(`vuetiful-fixed-header ${__props.slotFixedHeader}`)
47821
47824
  }, [
47822
47825
  renderSlot(_ctx.$slots, "fixedHeader")
47823
47826
  ], 2)) : createCommentVNode("", true),
47824
- createElementVNode("div", _hoisted_2$1, [
47827
+ createElementVNode("div", _hoisted_2$2, [
47825
47828
  _ctx.$slots.sidebarLeft ? (openBlock(), createElementBlock("aside", {
47826
47829
  key: 0,
47827
47830
  class: normalizeClass(`vuetiful-sidebar-left overflow-y-auto overflow-x-hidden ${__props.slotSidebarLeft}`)
@@ -47867,34 +47870,291 @@ const _sfc_main$1 = defineComponent({
47867
47870
  };
47868
47871
  }
47869
47872
  });
47873
+ var VPreview_vue_vue_type_style_index_0_scoped_true_lang = "";
47874
+ const _withScopeId = (n2) => (pushScopeId("data-v-11c10f2c"), n2 = n2(), popScopeId(), n2);
47875
+ const _hoisted_1$1 = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
47876
+ const _hoisted_2$1 = { class: "flex items-center gap-2" };
47877
+ const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47878
+ class: "icon",
47879
+ xmlns: "http://www.w3.org/2000/svg",
47880
+ viewBox: "0 0 576 512"
47881
+ }, [
47882
+ /* @__PURE__ */ createElementVNode("path", { d: "M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z" })
47883
+ ], -1));
47884
+ const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47885
+ class: "icon",
47886
+ xmlns: "http://www.w3.org/2000/svg",
47887
+ viewBox: "0 0 640 512"
47888
+ }, [
47889
+ /* @__PURE__ */ createElementVNode("path", { d: "M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z" })
47890
+ ], -1));
47891
+ const _hoisted_5$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47892
+ class: "icon",
47893
+ xmlns: "http://www.w3.org/2000/svg",
47894
+ viewBox: "0 0 384 512"
47895
+ }, [
47896
+ /* @__PURE__ */ createElementVNode("path", { d: "M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z" })
47897
+ ], -1));
47898
+ const _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47899
+ class: "icon",
47900
+ xmlns: "http://www.w3.org/2000/svg",
47901
+ viewBox: "0 0 576 512"
47902
+ }, [
47903
+ /* @__PURE__ */ createElementVNode("path", { d: "M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V352H64V64H512z" })
47904
+ ], -1));
47905
+ const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47906
+ class: "icon",
47907
+ xmlns: "http://www.w3.org/2000/svg",
47908
+ viewBox: "0 0 512 512"
47909
+ }, [
47910
+ /* @__PURE__ */ createElementVNode("path", { d: "M0 32C0 14.3 14.3 0 32 0H160c17.7 0 32 14.3 32 32V416c0 53-43 96-96 96s-96-43-96-96V32zM223.6 425.9c.3-3.3 .4-6.6 .4-9.9V154l75.4-75.4c12.5-12.5 32.8-12.5 45.3 0l90.5 90.5c12.5 12.5 12.5 32.8 0 45.3L223.6 425.9zM182.8 512l192-192H480c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32H182.8zM128 64H64v64h64V64zM64 192v64h64V192H64zM96 440a24 24 0 1 0 0-48 24 24 0 1 0 0 48z" })
47911
+ ], -1));
47912
+ const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47913
+ class: "icon",
47914
+ xmlns: "http://www.w3.org/2000/svg",
47915
+ viewBox: "0 0 512 512"
47916
+ }, [
47917
+ /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" })
47918
+ ], -1));
47919
+ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
47920
+ class: "icon",
47921
+ xmlns: "http://www.w3.org/2000/svg",
47922
+ viewBox: "0 0 512 512"
47923
+ }, [
47924
+ /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })
47925
+ ], -1));
47926
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
47927
+ __name: "VPreview",
47928
+ props: {
47929
+ hideMobileToggle: {
47930
+ type: Boolean,
47931
+ default: false
47932
+ },
47933
+ hideSwatches: {
47934
+ type: Boolean,
47935
+ default: false
47936
+ },
47937
+ background: {
47938
+ type: String,
47939
+ default: "neutral"
47940
+ },
47941
+ regionHeader: {
47942
+ type: String,
47943
+ default: ""
47944
+ },
47945
+ regionViewport: {
47946
+ type: String,
47947
+ default: ""
47948
+ },
47949
+ regionPreview: {
47950
+ type: String,
47951
+ default: ""
47952
+ },
47953
+ regionFooter: {
47954
+ type: String,
47955
+ default: ""
47956
+ },
47957
+ regionSource: {
47958
+ type: String,
47959
+ default: ""
47960
+ }
47961
+ },
47962
+ setup(__props) {
47963
+ const props = __props;
47964
+ const backgrounds = {
47965
+ "bg-transparent": "bg-transparent",
47966
+ neutral: "bg-white/25 dark:bg-black/25",
47967
+ "neutral-opaque": "bg-white/50 dark:bg-black/50",
47968
+ "variant-filled-surface": "variant-filled-surface",
47969
+ "variant-filled-primary": "variant-filled-primary",
47970
+ "variant-filled-secondary": "variant-filled-secondary",
47971
+ "variant-filled-tertiary": "variant-filled-tertiary",
47972
+ "variant-filled-success": "variant-filled-success",
47973
+ "variant-filled-warning": "variant-filled-warning",
47974
+ "variant-filled-error": "variant-filled-error"
47975
+ };
47976
+ const chosenBackground = ref(props.background);
47977
+ const tabView = ref("preview");
47978
+ const radioSize = ref("full");
47979
+ const swatches = ref(false);
47980
+ const toggleSwatches = () => swatches.value = !swatches.value;
47981
+ return (_ctx, _cache) => {
47982
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
47983
+ createElementVNode("header", {
47984
+ class: normalizeClass(`vuetiful-previewer-header flex items-center justify-between gap-4 p-4 bg-surface-200-700-token ${__props.regionHeader}`)
47985
+ }, [
47986
+ createElementVNode("div", _hoisted_2$1, [
47987
+ createVNode(unref(_sfc_main$c), {
47988
+ modelValue: tabView.value,
47989
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tabView.value = $event)
47990
+ }, {
47991
+ default: withCtx(() => [
47992
+ createVNode(unref(_sfc_main$b), {
47993
+ "data-test": "radio-item-preview",
47994
+ value: "preview",
47995
+ title: "Preview"
47996
+ }, {
47997
+ default: withCtx(() => [
47998
+ renderSlot(_ctx.$slots, "preview-item", {}, () => [
47999
+ _hoisted_3$1
48000
+ ], true)
48001
+ ]),
48002
+ _: 3
48003
+ }),
48004
+ createVNode(unref(_sfc_main$b), {
48005
+ "data-test": "radio-item-code",
48006
+ value: "code",
48007
+ title: "Code"
48008
+ }, {
48009
+ default: withCtx(() => [
48010
+ renderSlot(_ctx.$slots, "code-item", {}, () => [
48011
+ _hoisted_4$1
48012
+ ], true)
48013
+ ]),
48014
+ _: 3
48015
+ })
48016
+ ]),
48017
+ _: 3
48018
+ }, 8, ["modelValue"]),
48019
+ !__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$c), {
48020
+ key: 0,
48021
+ class: "hidden sm:!inline-flex",
48022
+ modelValue: radioSize.value,
48023
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => radioSize.value = $event)
48024
+ }, {
48025
+ default: withCtx(() => [
48026
+ createVNode(unref(_sfc_main$b), {
48027
+ "data-test": "radio-item-mobile",
48028
+ value: "mobile"
48029
+ }, {
48030
+ default: withCtx(() => [
48031
+ renderSlot(_ctx.$slots, "mobile-item", {}, () => [
48032
+ _hoisted_5$1
48033
+ ], true)
48034
+ ]),
48035
+ _: 3
48036
+ }),
48037
+ createVNode(unref(_sfc_main$b), { value: "full" }, {
48038
+ default: withCtx(() => [
48039
+ renderSlot(_ctx.$slots, "desktop-item", {}, () => [
48040
+ _hoisted_6$1
48041
+ ], true)
48042
+ ]),
48043
+ _: 3
48044
+ })
48045
+ ]),
48046
+ _: 3
48047
+ }, 8, ["modelValue"])) : createCommentVNode("", true)
48048
+ ]),
48049
+ !__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$h), {
48050
+ key: 0,
48051
+ "data-test": "swatch-button",
48052
+ class: normalizeClass(`${swatches.value ? "variant-filled" : "variant-ghost"} px-4 py-1 border-token border-surface-400-500-token`),
48053
+ onClick: toggleSwatches,
48054
+ title: "Backgrounds"
48055
+ }, {
48056
+ default: withCtx(() => [
48057
+ renderSlot(_ctx.$slots, "swatchbook-item", {}, () => [
48058
+ _hoisted_7
48059
+ ], true)
48060
+ ]),
48061
+ _: 3
48062
+ }, 8, ["class"])) : createCommentVNode("", true)
48063
+ ], 2),
48064
+ swatches.value ? (openBlock(), createBlock(unref(_sfc_main$c), {
48065
+ key: 0,
48066
+ "data-test": "swatches",
48067
+ class: normalizeClass(`vuetiful-previewer-swatches variant-soft grid grid-cols-6 gap-2 !rounded-none p-4 sm:grid-cols-12`),
48068
+ active: "bg-transparent",
48069
+ hover: "bg-transparent",
48070
+ modelValue: chosenBackground.value,
48071
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => chosenBackground.value = $event)
48072
+ }, {
48073
+ default: withCtx(() => [
48074
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(backgrounds), ([key, value], index2) => {
48075
+ return openBlock(), createBlock(unref(_sfc_main$b), {
48076
+ value: key,
48077
+ key: index2,
48078
+ class: normalizeClass(`${value} flex aspect-square cursor-pointer items-center justify-center rounded ring-[1px] ring-surface-500/50`),
48079
+ title: key
48080
+ }, {
48081
+ default: withCtx(() => [
48082
+ index2 === 0 && chosenBackground.value !== key ? renderSlot(_ctx.$slots, "cancel-item", { key: 0 }, () => [
48083
+ _hoisted_8
48084
+ ], true) : createCommentVNode("", true),
48085
+ chosenBackground.value === key ? renderSlot(_ctx.$slots, "selected-item", { key: 1 }, () => [
48086
+ _hoisted_9
48087
+ ], true) : createCommentVNode("", true)
48088
+ ]),
48089
+ _: 2
48090
+ }, 1032, ["value", "class", "title"]);
48091
+ }), 128))
48092
+ ]),
48093
+ _: 3
48094
+ }, 8, ["modelValue"])) : createCommentVNode("", true),
48095
+ tabView.value === "preview" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
48096
+ createElementVNode("div", {
48097
+ class: normalizeClass(`vuetiful-previewer-viewport p-4 md:p-10 ${backgrounds[chosenBackground.value]} ${__props.regionViewport}`)
48098
+ }, [
48099
+ createElementVNode("div", {
48100
+ "data-test": "previewer-preview",
48101
+ class: normalizeClass(`vuetiful-previewer-preview mx-auto flex duration-300 ${radioSize.value === "mobile" ? "mobile-screen flex h-[812px] max-w-[375px] flex-col overflow-hidden rounded-3xl border-8 border-black/50 p-2 shadow-2xl dark:border-white/50" : "w-full items-center justify-center"} ${__props.regionPreview}`)
48102
+ }, [
48103
+ renderSlot(_ctx.$slots, "preview", {}, () => [
48104
+ createTextVNode("(preview)")
48105
+ ], true)
48106
+ ], 2)
48107
+ ], 2),
48108
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", {
48109
+ key: 0,
48110
+ class: normalizeClass(`vuetiful-previewer-footer variant-soft p-4 ${__props.regionFooter}`)
48111
+ }, [
48112
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
48113
+ ], 2)) : createCommentVNode("", true)
48114
+ ], 64)) : createCommentVNode("", true),
48115
+ tabView.value === "code" ? (openBlock(), createElementBlock("div", {
48116
+ key: 2,
48117
+ "data-test": "previewer-source",
48118
+ class: normalizeClass(`vuetiful-previewer-source space-y-4 p-4 bg-surface-200-700-token ${__props.regionSource}`)
48119
+ }, [
48120
+ renderSlot(_ctx.$slots, "source", {}, () => [
48121
+ createTextVNode("(source)")
48122
+ ], true)
48123
+ ], 2)) : createCommentVNode("", true)
48124
+ ]);
48125
+ };
48126
+ }
48127
+ });
48128
+ var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-11c10f2c"]]);
47870
48129
  var components = /* @__PURE__ */ Object.freeze({
47871
48130
  __proto__: null,
47872
48131
  [Symbol.toStringTag]: "Module",
47873
- VAvatar: _sfc_main$i,
47874
- VButton: _sfc_main$g,
48132
+ VAvatar: _sfc_main$j,
48133
+ VButton: _sfc_main$h,
47875
48134
  VBadge,
47876
48135
  VChip,
47877
- VCodeBlock: _sfc_main$e,
48136
+ VCodeBlock: _sfc_main$f,
47878
48137
  VLightSwitch,
47879
- VRadioGroup: _sfc_main$b,
47880
- VRadioItem: _sfc_main$a,
47881
- VRadioLabel: _sfc_main$9,
47882
- VRadioDescription: _sfc_main$c,
47883
- VSwitchGroup: _sfc_main$6,
47884
- VSwitchLabel: _sfc_main$5,
47885
- VSwitchDescription: _sfc_main$7,
47886
- VSwitch: _sfc_main$8,
47887
- VRail: _sfc_main$3,
47888
- VRailTile: _sfc_main$2,
47889
- VShell: _sfc_main$1,
47890
- VDrawer: _sfc_main$4
48138
+ VRadioGroup: _sfc_main$c,
48139
+ VRadioItem: _sfc_main$b,
48140
+ VRadioLabel: _sfc_main$a,
48141
+ VRadioDescription: _sfc_main$d,
48142
+ VSwitchGroup: _sfc_main$7,
48143
+ VSwitchLabel: _sfc_main$6,
48144
+ VSwitchDescription: _sfc_main$8,
48145
+ VSwitch: _sfc_main$9,
48146
+ VRail: _sfc_main$4,
48147
+ VRailTile: _sfc_main$3,
48148
+ VShell: _sfc_main$2,
48149
+ VDrawer: _sfc_main$5,
48150
+ VPreview
47891
48151
  });
47892
48152
  var main = "";
47893
48153
  var tailwind = "";
47894
48154
  const _sfc_main = defineComponent({
47895
48155
  components: {
47896
48156
  VLightSwitch,
47897
- VButton: _sfc_main$g
48157
+ VButton: _sfc_main$h
47898
48158
  },
47899
48159
  props: {
47900
48160
  bgLight: {
@@ -48134,4 +48394,4 @@ function install(app) {
48134
48394
  }
48135
48395
  }
48136
48396
  var index = { install };
48137
- export { themeSwitcher as ThemeSwitcher, _sfc_main$i as VAvatar, VBadge, _sfc_main$g as VButton, VChip, _sfc_main$e as VCodeBlock, _sfc_main$4 as VDrawer, VLightSwitch, _sfc_main$c as VRadioDescription, _sfc_main$b as VRadioGroup, _sfc_main$a as VRadioItem, _sfc_main$9 as VRadioLabel, _sfc_main$3 as VRail, _sfc_main$2 as VRailTile, _sfc_main$1 as VShell, _sfc_main$8 as VSwitch, _sfc_main$7 as VSwitchDescription, _sfc_main$6 as VSwitchGroup, _sfc_main$5 as VSwitchLabel, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };
48397
+ export { themeSwitcher as ThemeSwitcher, _sfc_main$j as VAvatar, VBadge, _sfc_main$h as VButton, VChip, _sfc_main$f as VCodeBlock, _sfc_main$5 as VDrawer, VLightSwitch, VPreview, _sfc_main$d as VRadioDescription, _sfc_main$c as VRadioGroup, _sfc_main$b as VRadioItem, _sfc_main$a as VRadioLabel, _sfc_main$4 as VRail, _sfc_main$3 as VRailTile, _sfc_main$2 as VShell, _sfc_main$9 as VSwitch, _sfc_main$8 as VSwitchDescription, _sfc_main$7 as VSwitchGroup, _sfc_main$6 as VSwitchLabel, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };