@1337exp/taoui 5.25.0 → 5.26.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.26.0
4
+
5
+ Nothing to migrate; the defaults do not change.
6
+
7
+ - **TaoLoader `variant="diamonds"`.** Four diamonds on two axes, which flow into each other. On each axis a hollow diamond crosses to a filled one; the filled one shrinks as it comes (from half way) and is gone when the hollow one lands; the new filled one grows at the place the hollow one left, before the old one is quite gone; then it goes back the other way. The second axis is the same pair turned a quarter and a fifth of the cycle behind, so the two pass the middle one after the other. Sized, toned and named like the other looks (`size`, `tone`, `color`, `label`), hidden from a screen reader as a picture; under reduced motion it stands and breathes. `showcase/lab/` is a bench for working on such an animation frame by frame (not part of the package).
8
+
3
9
  ## 5.25.0
4
10
 
5
11
  Nothing to migrate; the defaults do not change.
package/README.md CHANGED
@@ -125,7 +125,7 @@
125
125
  - **TaoAlert** — inline page/form banner (success / error / warning / info); `collapsible` folds the body under the title (find-in-page still finds it)
126
126
  - **TaoProgress** — static bar (`progress` in %). Percent centered on top, or `showPercentage="right"`; `#left` / `#right` slots are captions, then the percent sits in parentheses on the right. `false` hides it. Width is `minWidth` / `maxWidth`, not the value domain
127
127
  - **TaoScrubber** — play / pause, a slider over time with event marks, a “time / length” label. Does not advance time by itself: drive `v-model` with your own clock
128
- - **TaoLoader** — the wait whose end is unknown: `variant` `dots` (default) / `ring` / `pulse`, `tone`, `size` (a number or small / medium / large), says "Loading" to a screen reader (`label`), breathes under reduced motion; `TaoButton loading` wears the same ring
128
+ - **TaoLoader** — the wait whose end is unknown: `variant` `dots` (default) / `ring` / `pulse` / `diamonds`, `tone`, `size` (a number or small / medium / large), says "Loading" to a screen reader (`label`), breathes under reduced motion; `TaoButton loading` wears the same ring
129
129
  - **TaoImage** — `<img>` wrapper: fade-in and placeholder. `lazy` turns on native `loading="lazy"`
130
130
  - **TaoIcon** — SVG icons (42 built in, your own via `registerTaoIcons`) or an icon font (see Icons below)
131
131
 
package/README.ru.md CHANGED
@@ -125,7 +125,7 @@
125
125
  - **TaoAlert** — инлайн-баннер страницы или ошибки формы (success / error / warning / info); `collapsible` сворачивает тело под заголовок (поиск по странице его всё равно находит)
126
126
  - **TaoProgress** — статичная полоса (`progress` в %). Проценты сверху по центру или `showPercentage="right"` справа; слоты `#left` / `#right` — подписи, тогда процент справа в скобках. `false` прячет. Ширина — `minWidth` / `maxWidth`, не диапазон значения
127
127
  - **TaoScrubber** — play / pause, слайдер по времени с метками событий, подпись «время / длина». Время сама не двигает: ведите `v-model` своими часами
128
- - **TaoLoader** — ожидание, конца которого не знаем: `variant` `dots` (по умолчанию) / `ring` / `pulse`, `tone`, `size` (число или small / medium / large), говорит «Загрузка» скринридеру (`label`), при «уменьшить движение» дышит; `TaoButton loading` носит то же кольцо
128
+ - **TaoLoader** — ожидание, конца которого не знаем: `variant` `dots` (по умолчанию) / `ring` / `pulse` / `diamonds`, `tone`, `size` (число или small / medium / large), говорит «Загрузка» скринридеру (`label`), при «уменьшить движение» дышит; `TaoButton loading` носит то же кольцо
129
129
  - **TaoImage** — обёртка над `<img>`: fade-in и плейсхолдер. `lazy` включает нативный `loading="lazy"`
130
130
  - **TaoIcon** — SVG-иконки (42 встроенных, свои через `registerTaoIcons`) или icon-шрифт (см. раздел «Иконки» ниже)
131
131
 
package/dist/index.d.ts CHANGED
@@ -6228,8 +6228,8 @@ declare interface Props_10 {
6228
6228
  }
6229
6229
 
6230
6230
  declare interface Props_11 {
6231
- /** The look of the wait: `dots` (the four jumping dots), `ring` (a turning arc), `pulse` (a ripple). / Вид ожидания. */
6232
- variant?: 'dots' | 'ring' | 'pulse';
6231
+ /** The look of the wait: `dots` (the four jumping dots), `ring` (a turning arc), `pulse` (a ripple), `diamonds` (four diamonds on two axes: a hollow one crosses to a filled one and takes it in, and a new filled one grows where it stood). / Вид ожидания. */
6232
+ variant?: 'dots' | 'ring' | 'pulse' | 'diamonds';
6233
6233
  /**
6234
6234
  * The size: a number is px, `'40px'` works, or `small` / `medium` / `large` (24 / 40 / 64 px).
6235
6235
  * Without it: 80 for `dots` (as it always was), 40 for the others.
@@ -7051,7 +7051,7 @@ decorative: boolean;
7051
7051
  size: number | string;
7052
7052
  label: string;
7053
7053
  tone: TaoToneName;
7054
- variant: "dots" | "ring" | "pulse";
7054
+ variant: "dots" | "ring" | "pulse" | "diamonds";
7055
7055
  color: string;
7056
7056
  inline: boolean;
7057
7057
  decorative: boolean;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { shallowReactive, defineComponent, useCssVars, computed, openBlock, createElementBlock, renderSlot, normalizeClass, normalizeStyle, ref, inject, provide, shallowRef, unref, createElementVNode, toDisplayString, createCommentVNode, useSlots, useAttrs, createBlock, useId, mergeProps, watch, createVNode, toValue, onBeforeUnmount, Teleport, Transition, withCtx, nextTick, Fragment, renderList, createTextVNode, onMounted, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
1
+ import { 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, Teleport, Transition, withCtx, nextTick, Fragment, renderList, createTextVNode, onMounted, createSlots, normalizeProps, guardReactiveProps, resolveDynamicComponent, withModifiers, onBeforeMount, resolveComponent, toRef, withDirectives, vShow, getCurrentInstance, reactive, withKeys, vModelText, TransitionGroup, onUpdated, createApp } from "vue";
2
2
  function isDev() {
3
3
  try {
4
4
  return process.env.NODE_ENV !== "production";
@@ -554,11 +554,16 @@ const _hoisted_3$R = {
554
554
  };
555
555
  const _hoisted_4$G = {
556
556
  key: 2,
557
- class: "tao-loader__pulse",
557
+ class: "tao-loader__swap",
558
558
  "aria-hidden": "true"
559
559
  };
560
560
  const _hoisted_5$w = {
561
561
  key: 3,
562
+ class: "tao-loader__pulse",
563
+ "aria-hidden": "true"
564
+ };
565
+ const _hoisted_6$q = {
566
+ key: 4,
562
567
  class: "tao-sr-only"
563
568
  };
564
569
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
@@ -604,13 +609,15 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
604
609
  createElementVNode("div", null, null, -1),
605
610
  createElementVNode("div", null, null, -1),
606
611
  createElementVNode("div", null, null, -1)
607
- ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$R)) : (openBlock(), createElementBlock("span", _hoisted_4$G)),
608
- !__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_5$w, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
612
+ ])])) : __props.variant === "ring" ? (openBlock(), createElementBlock("span", _hoisted_3$R)) : __props.variant === "diamonds" ? (openBlock(), createElementBlock("span", _hoisted_4$G, [..._cache[1] || (_cache[1] = [
613
+ 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)
614
+ ])])) : (openBlock(), createElementBlock("span", _hoisted_5$w)),
615
+ !__props.decorative ? (openBlock(), createElementBlock("span", _hoisted_6$q, toDisplayString(unref(l10n).label), 1)) : createCommentVNode("", true)
609
616
  ], 14, _hoisted_1$17);
610
617
  };
611
618
  }
612
619
  });
613
- const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-77dd8549"]]);
620
+ const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-03f29efb"]]);
614
621
  const _hoisted_1$16 = ["type", "aria-pressed", "aria-keyshortcuts", "aria-busy", "disabled"];
615
622
  const _hoisted_2$Y = {
616
623
  key: 2,