@1337exp/taoui 5.39.1 → 5.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Comment, Text, Fragment, shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, withCtx, renderList, createTextVNode, withDirectives, withModifiers, withKeys, vModelText, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, onBeforeMount, resolveComponent, toRef, vShow, getCurrentInstance, reactive, TransitionGroup, onUpdated, createApp } from "vue";
1
+ import { Comment, Text, Fragment, shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, createStaticVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, withCtx, createTextVNode, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, nextTick, onMounted, Teleport, Transition, renderList, withDirectives, withModifiers, withKeys, vModelText, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, onBeforeMount, resolveComponent, toRef, vShow, getCurrentInstance, reactive, TransitionGroup, onUpdated, createApp } from "vue";
2
2
  function isDev() {
3
3
  try {
4
4
  return process.env.NODE_ENV !== "production";
@@ -110,9 +110,9 @@ function resolveTaoIcon(name) {
110
110
  return name.startsWith(TAO_ICON_PREFIX) ? builtin[name.slice(TAO_ICON_PREFIX.length)] : registered[name];
111
111
  }
112
112
  const taoIconNames = Object.keys(builtin).map((name) => TAO_ICON_PREFIX + name);
113
- const _hoisted_1$1c = { class: "tao-icon" };
113
+ const _hoisted_1$1d = { class: "tao-icon" };
114
114
  const _hoisted_2$13 = ["viewBox", "width", "height", "innerHTML"];
115
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
115
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
116
116
  ...{ name: "TaoIcon" },
117
117
  __name: "TaoIcon",
118
118
  props: {
@@ -132,7 +132,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
132
132
  }
133
133
  const box = computed(() => props.size ? `${props.size}px` : "1em");
134
134
  return (_ctx, _cache) => {
135
- return openBlock(), createElementBlock("span", _hoisted_1$1c, [
135
+ return openBlock(), createElementBlock("span", _hoisted_1$1d, [
136
136
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
137
137
  def.value ? (openBlock(), createElementBlock("svg", {
138
138
  key: 0,
@@ -165,7 +165,23 @@ const _export_sfc = (sfc, props) => {
165
165
  }
166
166
  return target;
167
167
  };
168
- const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-ef842331"]]);
168
+ const TaoIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-ef842331"]]);
169
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
170
+ ...{ name: "TaoKbd" },
171
+ __name: "TaoKbd",
172
+ props: {
173
+ variant: { default: "cap" }
174
+ },
175
+ setup(__props) {
176
+ return (_ctx, _cache) => {
177
+ return openBlock(), createElementBlock("kbd", {
178
+ class: normalizeClass(["tao-kbd", { "tao-kbd--plain": __props.variant === "plain" }])
179
+ }, [
180
+ renderSlot(_ctx.$slots, "default")
181
+ ], 2);
182
+ };
183
+ }
184
+ });
169
185
  const localeEn = {
170
186
  code: "en-US",
171
187
  alert: { closeLabel: "Close", detailsLabel: "Details" },
@@ -604,13 +620,13 @@ function pluralForm(forms, n, code) {
604
620
  }
605
621
  return forms[category] ?? forms.other;
606
622
  }
607
- const _hoisted_1$1b = ["role", "aria-hidden"];
623
+ const _hoisted_1$1c = ["role", "aria-hidden"];
608
624
  const _hoisted_2$12 = {
609
625
  key: 0,
610
626
  class: "tao-loader__ellipsis",
611
627
  "aria-hidden": "true"
612
628
  };
613
- const _hoisted_3$U = {
629
+ const _hoisted_3$T = {
614
630
  key: 1,
615
631
  class: "tao-loader__ring",
616
632
  "aria-hidden": "true"
@@ -672,25 +688,20 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
672
688
  createElementVNode("div", null, null, -1),
673
689
  createElementVNode("div", null, null, -1),
674
690
  createElementVNode("div", null, null, -1)
675
- ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$U)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$K, [..._cache[1] || (_cache[1] = [
691
+ ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$T)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$K, [..._cache[1] || (_cache[1] = [
676
692
  createStaticVNode('<span class="tao-loader__axis" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span><span class="tao-loader__axis tao-loader__axis--cross" data-v-03f29efb><i class="tao-loader__swap-left" data-v-03f29efb></i><i class="tao-loader__swap-right" data-v-03f29efb></i><i class="tao-loader__swap-hollow" data-v-03f29efb></i></span>', 2)
677
693
  ])])) : (openBlock(), createElementBlock("span", _hoisted_5$y)),
678
694
  !__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$r, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
679
- ], 14, _hoisted_1$1b);
695
+ ], 14, _hoisted_1$1c);
680
696
  };
681
697
  }
682
698
  });
683
699
  const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-03f29efb"]]);
684
- const _hoisted_1$1a = ["type", "aria-pressed", "aria-keyshortcuts", "title", "aria-busy", "disabled"];
700
+ const _hoisted_1$1b = ["type", "aria-pressed", "aria-keyshortcuts", "title", "aria-busy", "disabled"];
685
701
  const _hoisted_2$11 = {
686
702
  key: 2,
687
703
  class: "tao-button__content"
688
704
  };
689
- const _hoisted_3$T = {
690
- key: 4,
691
- class: "tao-button__shortcut",
692
- "aria-hidden": "true"
693
- };
694
705
  const _sfc_main$1n = /* @__PURE__ */ defineComponent({
695
706
  ...{ name: "TaoButton" },
696
707
  __name: "TaoButton",
@@ -782,12 +793,21 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
782
793
  class: "tao-button__icon",
783
794
  name: __props.iconEnd
784
795
  }, null, 8, ["name"])) : createCommentVNode("", true),
785
- __props.shortcut && !isIconOnly() ? (openBlock(), createElementBlock("kbd", _hoisted_3$T, toDisplayString(__props.shortcut), 1)) : createCommentVNode("", true)
786
- ], 14, _hoisted_1$1a);
796
+ __props.shortcut && !isIconOnly() ? (openBlock(), createBlock(_sfc_main$1p, {
797
+ key: 4,
798
+ class: "tao-button__shortcut",
799
+ "aria-hidden": "true"
800
+ }, {
801
+ default: withCtx(() => [
802
+ createTextVNode(toDisplayString(__props.shortcut), 1)
803
+ ]),
804
+ _: 1
805
+ })) : createCommentVNode("", true)
806
+ ], 14, _hoisted_1$1b);
787
807
  };
788
808
  }
789
809
  });
790
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-be24f74d"]]);
810
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-a491be1d"]]);
791
811
  function toCssLength(value) {
792
812
  if (value === void 0 || value === null || value === "") {
793
813
  return void 0;
@@ -861,7 +881,7 @@ function useField(props) {
861
881
  const describedBy = computed(() => field?.describedBy.value);
862
882
  return { field, controlId, invalid, describedBy, localId };
863
883
  }
864
- const _hoisted_1$19 = {
884
+ const _hoisted_1$1a = {
865
885
  key: 0,
866
886
  class: "tao-input__affix tao-input__affix--prefix"
867
887
  };
@@ -918,7 +938,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
918
938
  "tao-input-shell--suffix": has("suffix")
919
939
  }])
920
940
  }, [
921
- has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$19, [
941
+ has("prefix") ? (openBlock(), createElementBlock("span", _hoisted_1$1a, [
922
942
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
923
943
  ])) : createCommentVNode("", true),
924
944
  createElementVNode("input", mergeProps(unref(controlAttrs)(), {
@@ -943,7 +963,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
943
963
  }
944
964
  });
945
965
  const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-66bc5496"]]);
946
- const _hoisted_1$18 = {
966
+ const _hoisted_1$19 = {
947
967
  key: 0,
948
968
  class: "tao-input-group__addon tao-input-group__addon--before"
949
969
  };
@@ -979,7 +999,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
979
999
  onFocusin: onFocusIn,
980
1000
  onFocusout: onFocusOut
981
1001
  }, [
982
- has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
1002
+ has("before") ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
983
1003
  renderSlot(_ctx.$slots, "before", {}, void 0, true)
984
1004
  ])) : createCommentVNode("", true),
985
1005
  createElementVNode("div", _hoisted_2$$, [
@@ -993,7 +1013,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
993
1013
  }
994
1014
  });
995
1015
  const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-d38f6b53"]]);
996
- const _hoisted_1$17 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
1016
+ const _hoisted_1$18 = ["id", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
997
1017
  const _hoisted_2$_ = {
998
1018
  key: 0,
999
1019
  class: "tao-input-number__steppers"
@@ -1161,7 +1181,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
1161
1181
  onFocus,
1162
1182
  onBlur,
1163
1183
  onKeydown: onKeydown2
1164
- }), null, 16, _hoisted_1$17),
1184
+ }), null, 16, _hoisted_1$18),
1165
1185
  __props.controls ? (openBlock(), createElementBlock("div", _hoisted_2$_, [
1166
1186
  createElementVNode("button", {
1167
1187
  type: "button",
@@ -1197,7 +1217,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
1197
1217
  }
1198
1218
  });
1199
1219
  const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-dc5bb759"]]);
1200
- const _hoisted_1$16 = ["aria-label", "disabled"];
1220
+ const _hoisted_1$17 = ["aria-label", "disabled"];
1201
1221
  const _hoisted_2$Z = { "aria-hidden": "true" };
1202
1222
  const _hoisted_3$P = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
1203
1223
  const _hoisted_4$I = ["aria-label", "disabled"];
@@ -1347,7 +1367,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
1347
1367
  createVNode(TaoIcon, { name: "tao-minus" })
1348
1368
  ], true)
1349
1369
  ])
1350
- ], 8, _hoisted_1$16),
1370
+ ], 8, _hoisted_1$17),
1351
1371
  createElementVNode("input", mergeProps(unref(controlAttrs)(), {
1352
1372
  id: unref(controlId),
1353
1373
  class: "tao-quantity__input",
@@ -1385,8 +1405,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
1385
1405
  };
1386
1406
  }
1387
1407
  });
1388
- const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-6453479c"]]);
1389
- const _hoisted_1$15 = {
1408
+ const TaoQuantity = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-c7bd72bc"]]);
1409
+ const _hoisted_1$16 = {
1390
1410
  key: 0,
1391
1411
  class: "tao-card__media"
1392
1412
  };
@@ -1410,7 +1430,7 @@ const _hoisted_6$p = {
1410
1430
  key: 0,
1411
1431
  class: "tao-card__title"
1412
1432
  };
1413
- const _hoisted_7$l = {
1433
+ const _hoisted_7$k = {
1414
1434
  key: 1,
1415
1435
  class: "tao-card__sub"
1416
1436
  };
@@ -1481,7 +1501,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
1481
1501
  }]]),
1482
1502
  style: normalizeStyle(radiusStyle.value)
1483
1503
  }, [
1484
- _ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$15, [
1504
+ _ctx.$slots.media ? (openBlock(), createElementBlock("div", _hoisted_1$16, [
1485
1505
  renderSlot(_ctx.$slots, "media", {}, void 0, true),
1486
1506
  _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$Y, [
1487
1507
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
@@ -1501,7 +1521,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
1501
1521
  has("title") ? (openBlock(), createElementBlock("h2", _hoisted_6$p, [
1502
1522
  renderSlot(_ctx.$slots, "title", {}, void 0, true)
1503
1523
  ])) : createCommentVNode("", true),
1504
- has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$l, [
1524
+ has("sub") ? (openBlock(), createElementBlock("div", _hoisted_7$k, [
1505
1525
  renderSlot(_ctx.$slots, "sub", {}, void 0, true)
1506
1526
  ])) : createCommentVNode("", true)
1507
1527
  ])) : createCommentVNode("", true),
@@ -1531,7 +1551,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
1531
1551
  };
1532
1552
  }
1533
1553
  });
1534
- const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-4096cfb6"]]);
1554
+ const TaoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-b5dbaa1c"]]);
1535
1555
  const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
1536
1556
  function getFocusable(root) {
1537
1557
  return [...root.querySelectorAll(FOCUSABLE)].filter(
@@ -1707,7 +1727,7 @@ function useWholePixelPanel(panel, open) {
1707
1727
  stop();
1708
1728
  });
1709
1729
  }
1710
- const _hoisted_1$14 = ["aria-labelledby"];
1730
+ const _hoisted_1$15 = ["aria-labelledby"];
1711
1731
  const _hoisted_2$X = {
1712
1732
  key: 0,
1713
1733
  class: "tao-modal__header"
@@ -1716,7 +1736,7 @@ const _hoisted_3$N = ["id"];
1716
1736
  const _hoisted_4$G = { key: 1 };
1717
1737
  const _hoisted_5$u = ["aria-label"];
1718
1738
  const _hoisted_6$o = { "aria-hidden": "true" };
1719
- const _hoisted_7$k = { class: "tao-modal__content" };
1739
+ const _hoisted_7$j = { class: "tao-modal__content" };
1720
1740
  const _hoisted_8$d = {
1721
1741
  key: 1,
1722
1742
  class: "tao-modal__footer"
@@ -1828,13 +1848,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
1828
1848
  ])
1829
1849
  ], 8, _hoisted_5$u)) : createCommentVNode("", true)
1830
1850
  ])) : createCommentVNode("", true),
1831
- createElementVNode("div", _hoisted_7$k, [
1851
+ createElementVNode("div", _hoisted_7$j, [
1832
1852
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
1833
1853
  ]),
1834
1854
  has("footer") ? (openBlock(), createElementBlock("div", _hoisted_8$d, [
1835
1855
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
1836
1856
  ])) : createCommentVNode("", true)
1837
- ], 16, _hoisted_1$14)
1857
+ ], 16, _hoisted_1$15)
1838
1858
  ], 34)) : createCommentVNode("", true)
1839
1859
  ]),
1840
1860
  _: 3
@@ -1844,7 +1864,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
1844
1864
  }
1845
1865
  });
1846
1866
  const TaoModal = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-d0ba0ca9"]]);
1847
- const _hoisted_1$13 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
1867
+ const _hoisted_1$14 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
1848
1868
  const _hoisted_2$W = ["id", "aria-labelledby"];
1849
1869
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
1850
1870
  ...{ name: "TaoTabs" },
@@ -1941,7 +1961,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
1941
1961
  }, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1942
1962
  createTextVNode(toDisplayString(tab.label), 1)
1943
1963
  ], 64))
1944
- ], 8, _hoisted_1$13);
1964
+ ], 8, _hoisted_1$14);
1945
1965
  }), 128))
1946
1966
  ], 36),
1947
1967
  createElementVNode("div", {
@@ -1956,7 +1976,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
1956
1976
  };
1957
1977
  }
1958
1978
  });
1959
- const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-70811078"]]);
1979
+ const TaoTabs = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-56341624"]]);
1960
1980
  function listenFocusLoss(onLoss) {
1961
1981
  function onVisibilityChange() {
1962
1982
  if (document.hidden) {
@@ -2469,7 +2489,7 @@ function zoneGradient(zones, min, max, vertical = false, dimmed = false) {
2469
2489
  const stops = zones.map((z) => `${dimmed && z.reveal ? "transparent" : z.color} ${ratioOf(z.from, min, max) * 100}% ${ratioOf(z.to, min, max) * 100}%`);
2470
2490
  return `linear-gradient(${vertical ? "to top" : "to right"}, ${stops.join(", ")})`;
2471
2491
  }
2472
- const _hoisted_1$12 = ["aria-disabled"];
2492
+ const _hoisted_1$13 = ["aria-disabled"];
2473
2493
  const _hoisted_2$V = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "aria-keyshortcuts", "onKeydown"];
2474
2494
  const _hoisted_3$M = {
2475
2495
  key: 2,
@@ -2481,7 +2501,7 @@ const _hoisted_5$t = {
2481
2501
  class: "tao-slider__marks"
2482
2502
  };
2483
2503
  const _hoisted_6$n = ["disabled", "onClick"];
2484
- const _hoisted_7$j = {
2504
+ const _hoisted_7$i = {
2485
2505
  key: 0,
2486
2506
  class: "tao-slider__mark-label"
2487
2507
  };
@@ -2880,7 +2900,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
2880
2900
  onClick: ($event) => onMarkClick(mark)
2881
2901
  }, [
2882
2902
  _cache[9] || (_cache[9] = createElementVNode("span", { class: "tao-slider__tick" }, null, -1)),
2883
- mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$j, [
2903
+ mark.label ? (openBlock(), createElementBlock("span", _hoisted_7$i, [
2884
2904
  renderSlot(_ctx.$slots, "mark", {
2885
2905
  mark,
2886
2906
  active: unref(isMarkActive)(mark.value, values.value)
@@ -2891,11 +2911,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
2891
2911
  ], 14, _hoisted_6$n);
2892
2912
  }), 128))
2893
2913
  ])) : createCommentVNode("", true)
2894
- ], 42, _hoisted_1$12);
2914
+ ], 42, _hoisted_1$13);
2895
2915
  };
2896
2916
  }
2897
2917
  });
2898
- const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-8ec84551"]]);
2918
+ const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-daf2df57"]]);
2899
2919
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
2900
2920
  ...{ name: "TaoSlider" },
2901
2921
  __name: "TaoSlider",
@@ -2964,7 +2984,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
2964
2984
  };
2965
2985
  }
2966
2986
  });
2967
- const _hoisted_1$11 = { class: "tao-scrubber__controls" };
2987
+ const _hoisted_1$12 = { class: "tao-scrubber__controls" };
2968
2988
  const _hoisted_2$U = { class: "tao-scrubber__track" };
2969
2989
  const _hoisted_3$L = {
2970
2990
  key: 0,
@@ -3010,7 +3030,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
3010
3030
  return openBlock(), createElementBlock("div", {
3011
3031
  class: normalizeClass(["tao-scrubber", [unref(sizeClass)(__props.size), `tao-scrubber--${__props.variant}`, { "tao-scrubber--marks-start": __props.marksSide === "start", "tao-scrubber--disabled": __props.disabled }]])
3012
3032
  }, [
3013
- createElementVNode("div", _hoisted_1$11, [
3033
+ createElementVNode("div", _hoisted_1$12, [
3014
3034
  createVNode(TaoButton, {
3015
3035
  size: "small",
3016
3036
  variant: "secondary",
@@ -3205,15 +3225,24 @@ function useFloating(anchor, panel, open, options = {}) {
3205
3225
  });
3206
3226
  return { style, side, anchorOffset, placed, update };
3207
3227
  }
3228
+ const _hoisted_1$11 = { class: "tao-tooltip__text" };
3208
3229
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3209
3230
  ...{ name: "TaoTooltip" },
3210
3231
  __name: "TaoTooltip",
3211
3232
  props: {
3212
3233
  content: {},
3213
- placement: { default: "top" }
3234
+ placement: { default: "top" },
3235
+ shortcut: {},
3236
+ animated: { type: [Boolean, Number], default: void 0 },
3237
+ bold: { type: Boolean, default: true }
3214
3238
  },
3215
3239
  setup(__props) {
3216
3240
  const props = __props;
3241
+ const motion = computed(() => {
3242
+ if (props.animated === void 0) return void 0;
3243
+ const n = props.animated === true ? 1 : Number(props.animated);
3244
+ return Number.isFinite(n) && n > 0 ? n : 0;
3245
+ });
3217
3246
  const wrapperRef = ref(null);
3218
3247
  const tooltipRef = ref(null);
3219
3248
  const showTooltip = ref(false);
@@ -3221,7 +3250,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3221
3250
  placement: () => props.placement,
3222
3251
  gap: 8
3223
3252
  });
3224
- const panelStyle = computed(() => ({ ...style.value, visibility: placed.value ? "visible" : "hidden" }));
3253
+ const panelStyle = computed(() => ({
3254
+ ...style.value,
3255
+ visibility: placed.value ? "visible" : "hidden",
3256
+ ...motion.value === void 0 ? {} : { "--tao-tooltip-motion": String(motion.value) }
3257
+ }));
3225
3258
  const arrowStyle = computed(() => {
3226
3259
  const arrowPad = 10;
3227
3260
  const el = tooltipRef.value;
@@ -3264,11 +3297,20 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3264
3297
  key: 0,
3265
3298
  ref_key: "tooltipRef",
3266
3299
  ref: tooltipRef,
3267
- class: normalizeClass(["tao-tooltip", `tao-tooltip--${unref(side)}`]),
3300
+ class: normalizeClass(["tao-tooltip", [`tao-tooltip--${unref(side)}`, { "tao-tooltip--regular": !__props.bold }]]),
3268
3301
  role: "tooltip",
3269
3302
  style: normalizeStyle(panelStyle.value)
3270
3303
  }, [
3271
- createTextVNode(toDisplayString(__props.content) + " ", 1),
3304
+ createElementVNode("span", _hoisted_1$11, toDisplayString(__props.content), 1),
3305
+ __props.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
3306
+ key: 0,
3307
+ class: "tao-tooltip__shortcut"
3308
+ }, {
3309
+ default: withCtx(() => [
3310
+ createTextVNode(toDisplayString(__props.shortcut), 1)
3311
+ ]),
3312
+ _: 1
3313
+ })) : createCommentVNode("", true),
3272
3314
  createElementVNode("span", {
3273
3315
  class: "tao-tooltip__arrow",
3274
3316
  style: normalizeStyle(arrowStyle.value),
@@ -3283,7 +3325,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
3283
3325
  };
3284
3326
  }
3285
3327
  });
3286
- const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-32ae3936"]]);
3328
+ const TaoTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-dfb081a5"]]);
3287
3329
  const resolved = ["compact", "default", "comfortable"];
3288
3330
  function densityClass(density) {
3289
3331
  return density ? `tao-density-${density}` : void 0;
@@ -3653,7 +3695,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3653
3695
  };
3654
3696
  }
3655
3697
  });
3656
- const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-e181129d"]]);
3698
+ const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-7e06b308"]]);
3657
3699
  function readTaoMode(el) {
3658
3700
  const mode = el.getAttribute("data-tao-mode");
3659
3701
  if (mode === "light" || mode === "dark") {
@@ -3865,7 +3907,7 @@ const _hoisted_3$J = ["aria-labelledby", "aria-describedby"];
3865
3907
  const _hoisted_4$D = ["id"];
3866
3908
  const _hoisted_5$s = ["id"];
3867
3909
  const _hoisted_6$m = { class: "tao-tour__footer" };
3868
- const _hoisted_7$i = {
3910
+ const _hoisted_7$h = {
3869
3911
  key: 0,
3870
3912
  class: "tao-tour__progress"
3871
3913
  };
@@ -4081,7 +4123,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
4081
4123
  }, toDisplayString(__props.step.text), 9, _hoisted_5$s)) : createCommentVNode("", true)
4082
4124
  ]),
4083
4125
  createElementVNode("div", _hoisted_6$m, [
4084
- __props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$i, [
4126
+ __props.count > 1 ? (openBlock(), createElementBlock("span", _hoisted_7$h, [
4085
4127
  createElementVNode("span", _hoisted_8$c, [
4086
4128
  (openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (i) => {
4087
4129
  return openBlock(), createElementBlock("i", {
@@ -5255,7 +5297,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
5255
5297
  };
5256
5298
  }
5257
5299
  });
5258
- const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-abce6609"]]);
5300
+ const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-7c39a7eb"]]);
5259
5301
  const _hoisted_1$O = { class: "tao-progress" };
5260
5302
  const _hoisted_2$J = {
5261
5303
  key: 0,
@@ -5438,7 +5480,7 @@ const _hoisted_5$q = {
5438
5480
  class: "tao-file-drop__list"
5439
5481
  };
5440
5482
  const _hoisted_6$k = { class: "tao-file-drop__name" };
5441
- const _hoisted_7$h = { class: "tao-file-drop__meta" };
5483
+ const _hoisted_7$g = { class: "tao-file-drop__meta" };
5442
5484
  const _hoisted_8$b = ["aria-label", "onClick"];
5443
5485
  const _hoisted_9$8 = { "aria-hidden": "true" };
5444
5486
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
@@ -5602,7 +5644,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5602
5644
  class: "tao-file-drop__file"
5603
5645
  }, [
5604
5646
  createElementVNode("span", _hoisted_6$k, toDisplayString(file.name), 1),
5605
- createElementVNode("span", _hoisted_7$h, toDisplayString(sizeLabel(file.size)), 1),
5647
+ createElementVNode("span", _hoisted_7$g, toDisplayString(sizeLabel(file.size)), 1),
5606
5648
  createElementVNode("button", {
5607
5649
  type: "button",
5608
5650
  class: "tao-file-drop__remove",
@@ -5722,10 +5764,6 @@ const _hoisted_3$A = {
5722
5764
  const _hoisted_4$x = ["id", "role", "aria-checked", "aria-disabled", "aria-haspopup", "aria-expanded", "aria-keyshortcuts", "onClick", "onMouseenter"];
5723
5765
  const _hoisted_5$p = { class: "tao-menu__text" };
5724
5766
  const _hoisted_6$j = {
5725
- key: 1,
5726
- class: "tao-menu__shortcut"
5727
- };
5728
- const _hoisted_7$g = {
5729
5767
  key: 2,
5730
5768
  class: "tao-menu__arrow",
5731
5769
  "aria-hidden": "true"
@@ -5950,8 +5988,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5950
5988
  }, null, 8, ["name"])) : createCommentVNode("", true),
5951
5989
  createElementVNode("span", _hoisted_5$p, toDisplayString(item.label), 1)
5952
5990
  ]),
5953
- "shortcut" in item && item.shortcut ? (openBlock(), createElementBlock("span", _hoisted_6$j, toDisplayString(item.shortcut), 1)) : createCommentVNode("", true),
5954
- "items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_7$g)) : createCommentVNode("", true)
5991
+ "shortcut" in item && item.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
5992
+ key: 1,
5993
+ variant: "plain",
5994
+ class: "tao-menu__shortcut"
5995
+ }, {
5996
+ default: withCtx(() => [
5997
+ createTextVNode(toDisplayString(item.shortcut), 1)
5998
+ ]),
5999
+ _: 2
6000
+ }, 1024)) : createCommentVNode("", true),
6001
+ "items" in item && item.items ? (openBlock(), createElementBlock("span", _hoisted_6$j)) : createCommentVNode("", true)
5955
6002
  ], 42, _hoisted_4$x),
5956
6003
  "items" in item && item.items && openSub.value === index ? (openBlock(), createBlock(_component_TaoMenu, {
5957
6004
  key: 0,
@@ -6511,7 +6558,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6511
6558
  }
6512
6559
  const style = getComputedStyle(el);
6513
6560
  const gap = parseFloat(style.columnGap) || 0;
6514
- const available = el.clientWidth - (parseFloat(style.paddingLeft) || 0) - (parseFloat(style.paddingRight) || 0);
6561
+ const padding = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0);
6562
+ const limit = parseFloat(style.maxWidth);
6563
+ const border = (parseFloat(style.borderLeftWidth) || 0) + (parseFloat(style.borderRightWidth) || 0);
6564
+ const fromLimit = Number.isFinite(limit) ? style.boxSizing === "border-box" ? limit - border - padding : limit : 0;
6565
+ const available = Math.max(el.clientWidth - padding, fromLimit);
6515
6566
  if (moreHost.value && !moreHost.value.hasAttribute("data-tao-away")) {
6516
6567
  moreWidth = outerWidth(moreHost.value);
6517
6568
  }
@@ -6756,7 +6807,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6756
6807
  };
6757
6808
  }
6758
6809
  });
6759
- const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-cdccb5ab"]]);
6810
+ const TaoToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-bff9478a"]]);
6760
6811
  const _hoisted_1$I = ["aria-label"];
6761
6812
  const _hoisted_2$D = ["data-tao-away", "hidden"];
6762
6813
  const _hoisted_3$x = ["aria-label"];
@@ -7561,7 +7612,7 @@ const _hoisted_11$4 = {
7561
7612
  class: "tao-nav__icon",
7562
7613
  "aria-hidden": "true"
7563
7614
  };
7564
- const _hoisted_12$3 = { class: "tao-nav__label" };
7615
+ const _hoisted_12$2 = { class: "tao-nav__label" };
7565
7616
  const _hoisted_13$1 = {
7566
7617
  key: 1,
7567
7618
  class: "tao-nav__footer"
@@ -7698,7 +7749,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7698
7749
  size: 20
7699
7750
  })
7700
7751
  ]),
7701
- createElementVNode("span", _hoisted_12$3, toDisplayString(unref(l10n).moreLabel), 1)
7752
+ createElementVNode("span", _hoisted_12$2, toDisplayString(unref(l10n).moreLabel), 1)
7702
7753
  ], 10, _hoisted_10$4)
7703
7754
  ])) : createCommentVNode("", true)
7704
7755
  ]),
@@ -9118,7 +9169,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
9118
9169
  };
9119
9170
  }
9120
9171
  });
9121
- const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-02851c84"]]);
9172
+ const TaoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-8edb0d09"]]);
9122
9173
  const segmentedKey = Symbol("taoSegmented");
9123
9174
  const _hoisted_1$u = ["disabled", "aria-describedby", "aria-invalid", "aria-labelledby", "id"];
9124
9175
  const _hoisted_2$r = {
@@ -9707,7 +9758,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
9707
9758
  };
9708
9759
  }
9709
9760
  });
9710
- const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-9e38bead"]]);
9761
+ const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-d42483b7"]]);
9711
9762
  const _hoisted_1$r = ["disabled", "aria-label", "aria-expanded"];
9712
9763
  const _hoisted_2$o = ["disabled"];
9713
9764
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
@@ -9803,7 +9854,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9803
9854
  };
9804
9855
  }
9805
9856
  });
9806
- const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-7e3f5d62"]]);
9857
+ const TaoColorInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-c849f0f5"]]);
9807
9858
  const _hoisted_1$q = ["id", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby", "disabled", "placeholder", "value"];
9808
9859
  const _hoisted_2$n = {
9809
9860
  key: 0,
@@ -10257,7 +10308,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
10257
10308
  };
10258
10309
  }
10259
10310
  });
10260
- const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-0e178aeb"]]);
10311
+ const TaoCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-14e11c2a"]]);
10261
10312
  function presetLine(options) {
10262
10313
  const usable2 = options.filter((option) => !option.disabled);
10263
10314
  return [...usable2.filter((option) => !option.default), ...usable2.filter((option) => option.default)];
@@ -10651,10 +10702,6 @@ const _hoisted_10$3 = {
10651
10702
  class: "tao-command-list__where"
10652
10703
  };
10653
10704
  const _hoisted_11$3 = {
10654
- key: 2,
10655
- class: "tao-command-list__shortcut"
10656
- };
10657
- const _hoisted_12$2 = {
10658
10705
  key: 0,
10659
10706
  class: "tao-command-list__empty",
10660
10707
  role: "presentation"
@@ -10838,12 +10885,21 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10838
10885
  row.match.item.description ? (openBlock(), createElementBlock("span", _hoisted_9$5, toDisplayString(row.match.item.description), 1)) : createCommentVNode("", true)
10839
10886
  ]),
10840
10887
  query.value.trim() && row.match.item.group ? (openBlock(), createElementBlock("span", _hoisted_10$3, toDisplayString(row.match.item.group), 1)) : createCommentVNode("", true),
10841
- row.match.item.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_11$3, toDisplayString(row.match.item.shortcut), 1)) : createCommentVNode("", true)
10888
+ row.match.item.shortcut ? (openBlock(), createBlock(_sfc_main$1p, {
10889
+ key: 2,
10890
+ variant: "plain",
10891
+ class: "tao-command-list__shortcut"
10892
+ }, {
10893
+ default: withCtx(() => [
10894
+ createTextVNode(toDisplayString(row.match.item.shortcut), 1)
10895
+ ]),
10896
+ _: 2
10897
+ }, 1024)) : createCommentVNode("", true)
10842
10898
  ], true)
10843
10899
  ], 42, _hoisted_5$e))
10844
10900
  ], 64);
10845
10901
  }), 128)),
10846
- !results.value.length ? (openBlock(), createElementBlock("li", _hoisted_12$2, [
10902
+ !results.value.length ? (openBlock(), createElementBlock("li", _hoisted_11$3, [
10847
10903
  renderSlot(_ctx.$slots, "empty", {}, () => [
10848
10904
  createTextVNode(toDisplayString(__props.emptyText ?? unref(l10n).emptyText), 1)
10849
10905
  ], true)
@@ -10853,7 +10909,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
10853
10909
  };
10854
10910
  }
10855
10911
  });
10856
- const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1010454e"]]);
10912
+ const TaoCommandList = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-7e038749"]]);
10857
10913
  const _hoisted_1$n = ["aria-modal", "aria-label"];
10858
10914
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
10859
10915
  ...{ name: "TaoCommandPalette", inheritAttrs: false },
@@ -15416,6 +15472,7 @@ const components = [
15416
15472
  TaoTabs,
15417
15473
  TaoScrubber,
15418
15474
  TaoTooltip,
15475
+ _sfc_main$1p,
15419
15476
  TaoPopover,
15420
15477
  TaoSpoiler,
15421
15478
  TaoSpoilerGroup,
@@ -15551,6 +15608,7 @@ export {
15551
15608
  TaoInput,
15552
15609
  TaoInputGroup,
15553
15610
  TaoInputNumber,
15611
+ _sfc_main$1p as TaoKbd,
15554
15612
  _sfc_main$y as TaoLink,
15555
15613
  TaoList,
15556
15614
  TaoListItem,