@1337exp/taoui 3.3.1 → 4.0.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot, computed, normalizeStyle, getCurrentInstance, camelize, inject, useId, ref, shallowRef, watch, createTextVNode, useSlots, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, nextTick, Fragment, renderList, onMounted, mergeProps, createSlots, normalizeProps, guardReactiveProps, provide, resolveDynamicComponent, withModifiers, useCssVars, reactive, onBeforeMount, withKeys, TransitionGroup, onUpdated, createApp } from "vue";
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, toDisplayString, createElementVNode, renderSlot, getCurrentInstance, camelize, inject, useId, ref, shallowRef, watch, createTextVNode, useSlots, onBeforeUnmount, createBlock, Teleport, createVNode, Transition, withCtx, nextTick, Fragment, renderList, onMounted, mergeProps, createSlots, normalizeProps, guardReactiveProps, provide, resolveDynamicComponent, withModifiers, useCssVars, reactive, onBeforeMount, withKeys, TransitionGroup, onUpdated, createApp } from "vue";
2
2
  const sizes = ["small", "medium", "large"];
3
3
  function sizeClass(size) {
4
4
  return size ? `tao-size-${size}` : void 0;
@@ -18,7 +18,7 @@ const _hoisted_2$L = {
18
18
  key: 0,
19
19
  class: "tao-button__loader"
20
20
  };
21
- const _hoisted_3$D = {
21
+ const _hoisted_3$E = {
22
22
  key: 1,
23
23
  class: "tao-button__icon"
24
24
  };
@@ -34,11 +34,15 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
34
34
  disabled: { type: Boolean, default: false },
35
35
  loading: { type: Boolean, default: false },
36
36
  block: { type: Boolean, default: false },
37
- icon: { default: "" }
37
+ icon: { default: "" },
38
+ minWidth: { default: void 0 }
38
39
  },
39
40
  emits: ["click"],
40
41
  setup(__props, { emit: __emit }) {
41
42
  const props = __props;
43
+ const minWidthStyle = computed(
44
+ () => props.minWidth === void 0 ? void 0 : { "--tao-button-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
45
+ );
42
46
  const emit = __emit;
43
47
  function handleClick(event) {
44
48
  if (!props.disabled && !props.loading) {
@@ -58,16 +62,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
58
62
  [`tao-button--tone-${__props.tone}`]: !!__props.tone
59
63
  }
60
64
  ]]),
65
+ style: normalizeStyle(minWidthStyle.value),
61
66
  type: __props.type,
62
67
  disabled: __props.disabled || __props.loading,
63
68
  onClick: handleClick
64
69
  }, [
65
70
  __props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$L)) : createCommentVNode("", true),
66
- __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$D, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
71
+ __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3$E, toDisplayString(__props.icon), 1)) : createCommentVNode("", true),
67
72
  createElementVNode("span", _hoisted_4$x, [
68
73
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
69
74
  ])
70
- ], 10, _hoisted_1$S);
75
+ ], 14, _hoisted_1$S);
71
76
  };
72
77
  }
73
78
  });
@@ -78,7 +83,7 @@ const _export_sfc = (sfc, props) => {
78
83
  }
79
84
  return target;
80
85
  };
81
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2e564683"]]);
86
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2b4000a6"]]);
82
87
  function toCssLength(value) {
83
88
  if (value === void 0 || value === null || value === "") {
84
89
  return void 0;
@@ -160,7 +165,7 @@ const _hoisted_2$K = {
160
165
  key: 0,
161
166
  class: "tao-input__affix tao-input__affix--prefix"
162
167
  };
163
- const _hoisted_3$C = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
168
+ const _hoisted_3$D = ["id", "type", "value", "placeholder", "disabled", "aria-invalid", "aria-describedby"];
164
169
  const _hoisted_4$w = {
165
170
  key: 1,
166
171
  class: "tao-input__affix tao-input__affix--suffix"
@@ -242,7 +247,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
242
247
  onInput: handleInput,
243
248
  onBlur: handleBlur,
244
249
  onFocus: handleFocus
245
- }, null, 42, _hoisted_3$C),
250
+ }, null, 42, _hoisted_3$D),
246
251
  _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$w, [
247
252
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
248
253
  ])) : createCommentVNode("", true)
@@ -258,7 +263,7 @@ const _hoisted_1$Q = {
258
263
  class: "tao-input-group__addon tao-input-group__addon--before"
259
264
  };
260
265
  const _hoisted_2$J = { class: "tao-input-group__field" };
261
- const _hoisted_3$B = {
266
+ const _hoisted_3$C = {
262
267
  key: 1,
263
268
  class: "tao-input-group__addon tao-input-group__addon--after"
264
269
  };
@@ -293,7 +298,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
293
298
  createElementVNode("div", _hoisted_2$J, [
294
299
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
295
300
  ]),
296
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
301
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
297
302
  renderSlot(_ctx.$slots, "after", {}, void 0, true)
298
303
  ])) : createCommentVNode("", true)
299
304
  ], 34);
@@ -301,98 +306,98 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
301
306
  }
302
307
  });
303
308
  const TaoInputGroup = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-55b2d297"]]);
304
- const localeRu = {
305
- code: "ru-RU",
306
- alert: { closeLabel: "Закрыть" },
309
+ const localeEn = {
310
+ code: "en-US",
311
+ alert: { closeLabel: "Close" },
307
312
  avatar: {
308
- fallbackLabel: "Аватар",
309
- notificationsLabel: "{count} уведомлений",
313
+ fallbackLabel: "Avatar",
314
+ notificationsLabel: "{count} notifications",
310
315
  dotLabels: {
311
- success: "в сети",
312
- danger: "занят",
313
- warning: "отошёл",
314
- info: "статус",
315
- neutral: "не в сети"
316
+ success: "online",
317
+ danger: "busy",
318
+ warning: "away",
319
+ info: "status",
320
+ neutral: "offline"
316
321
  }
317
322
  },
318
- breadcrumb: { ariaLabel: "Хлебные крошки" },
323
+ breadcrumb: { ariaLabel: "Breadcrumb" },
319
324
  carousel: {
320
- ariaLabel: "Лента",
321
- prevLabel: "Назад",
322
- nextLabel: "Вперёд",
323
- dotsLabel: "Слайды",
324
- slideLabel: "Слайд {n} из {count}"
325
+ ariaLabel: "Carousel",
326
+ prevLabel: "Previous",
327
+ nextLabel: "Next",
328
+ dotsLabel: "Slides",
329
+ slideLabel: "Slide {n} of {count}"
325
330
  },
326
331
  combobox: {
327
- placeholder: "Начните вводить",
328
- emptyText: "Ничего не найдено",
329
- clearText: "Очистить",
330
- createText: "Добавить «{text}»"
332
+ placeholder: "Start typing",
333
+ emptyText: "Nothing found",
334
+ clearText: "Clear",
335
+ createText: "Add “{text}”"
331
336
  },
332
- confirm: { ok: "ОК", cancel: "Отмена" },
333
- copy: { copyLabel: "Копировать", successText: "Скопировано!" },
337
+ confirm: { ok: "OK", cancel: "Cancel" },
338
+ copy: { copyLabel: "Copy", successText: "Copied!" },
334
339
  date: {
335
- placeholder: "Дата",
336
- todayText: "Сегодня",
337
- clearText: "Очистить",
338
- prevMonthLabel: "Предыдущий месяц",
339
- nextMonthLabel: "Следующий месяц"
340
+ placeholder: "Date",
341
+ todayText: "Today",
342
+ clearText: "Clear",
343
+ prevMonthLabel: "Previous month",
344
+ nextMonthLabel: "Next month"
340
345
  },
341
346
  dateRange: {
342
- placeholder: "Период",
343
- todayText: "Сегодня",
344
- clearText: "Очистить",
345
- prevMonthLabel: "Предыдущий месяц",
346
- nextMonthLabel: "Следующий месяц"
347
+ placeholder: "Period",
348
+ todayText: "Today",
349
+ clearText: "Clear",
350
+ prevMonthLabel: "Previous month",
351
+ nextMonthLabel: "Next month"
347
352
  },
348
- drawer: { closeLabel: "Закрыть" },
349
- dropdownMenu: { menuLabel: "Меню" },
350
- empty: { title: "Ничего нет" },
353
+ drawer: { closeLabel: "Close" },
354
+ dropdownMenu: { menuLabel: "Menu" },
355
+ empty: { title: "Nothing here" },
351
356
  fileDrop: {
352
- clearLabel: "Очистить файлы",
353
- removeLabel: "Убрать «{name}»",
354
- zoneText: "Перетащите файл сюда или нажмите, чтобы выбрать",
355
- units: ["Б", "КБ", "МБ"],
356
- decimalSeparator: ","
357
+ clearLabel: "Clear files",
358
+ removeLabel: "Remove “{name}”",
359
+ zoneText: "Drop a file here or click to choose",
360
+ units: ["B", "KB", "MB"],
361
+ decimalSeparator: "."
357
362
  },
358
- inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
359
- list: { emptyText: "Ничего нет" },
360
- modal: { closeLabel: "Закрыть" },
363
+ inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
364
+ list: { emptyText: "Nothing here" },
365
+ modal: { closeLabel: "Close" },
361
366
  pagination: {
362
- ariaLabel: "Пагинация",
363
- prevLabel: "Назад",
364
- nextLabel: "Вперёд",
365
- pageLabel: "Страница {page}",
366
- jumpPrevLabel: "Назад на {n} страниц",
367
- jumpNextLabel: "Вперёд на {n} страниц",
368
- totalText: "{from}–{to} из {total}",
369
- emptyTotalText: "0 из 0"
367
+ ariaLabel: "Pagination",
368
+ prevLabel: "Previous",
369
+ nextLabel: "Next",
370
+ pageLabel: "Page {page}",
371
+ jumpPrevLabel: "Back {n} pages",
372
+ jumpNextLabel: "Forward {n} pages",
373
+ totalText: "{from}–{to} of {total}",
374
+ emptyTotalText: "0 of 0"
370
375
  },
371
- quantity: { decrementLabel: "Уменьшить", removeLabel: "Убрать", incrementLabel: "Увеличить" },
372
- scrollTop: { ariaLabel: "Наверх" },
373
- select: { placeholder: "Выберите", clearText: "Очистить" },
376
+ quantity: { decrementLabel: "Decrease", removeLabel: "Remove", incrementLabel: "Increase" },
377
+ scrollTop: { ariaLabel: "Back to top" },
378
+ select: { placeholder: "Select", clearText: "Clear" },
374
379
  stages: {
375
- ariaLabel: "Стадии",
376
- statusLabels: { wait: "ожидание", work: "в работе", ok: "готово", bad: "ошибка" }
380
+ ariaLabel: "Stages",
381
+ statusLabels: { wait: "pending", work: "in progress", ok: "done", bad: "failed" }
377
382
  },
378
- table: { emptyText: "Нет данных" },
379
- tag: { closeLabel: "Убрать" },
383
+ table: { emptyText: "No data" },
384
+ tag: { closeLabel: "Remove" },
380
385
  colorPicker: {
381
- areaLabel: "Насыщенность и яркость",
382
- hueLabel: "Оттенок",
383
- alphaLabel: "Прозрачность",
384
- hexLabel: "Цвет в hex",
385
- modeLabel: "Способ ввода",
386
- swatchesLabel: "Образцы",
387
- eyedropperLabel: "Пипетка",
388
- chooseLabel: "Выбрать цвет"
386
+ areaLabel: "Saturation and brightness",
387
+ hueLabel: "Hue",
388
+ alphaLabel: "Opacity",
389
+ hexLabel: "Color in hex",
390
+ modeLabel: "Input mode",
391
+ swatchesLabel: "Swatches",
392
+ eyedropperLabel: "Eyedropper",
393
+ chooseLabel: "Choose color"
389
394
  },
390
- timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
391
- toast: { closeLabel: "Закрыть уведомление" }
395
+ timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
396
+ toast: { closeLabel: "Close notification" }
392
397
  };
393
398
  const confirmDefaults = {
394
- ok: localeRu.confirm.ok,
395
- cancel: localeRu.confirm.cancel,
399
+ ok: localeEn.confirm.ok,
400
+ cancel: localeEn.confirm.cancel,
396
401
  surface: "glass"
397
402
  };
398
403
  const currentConfirm = ref(null);
@@ -449,7 +454,7 @@ const toastDefaults = {
449
454
  timeout: 3e3,
450
455
  closable: true,
451
456
  progress: true,
452
- closeLabel: localeRu.toast.closeLabel,
457
+ closeLabel: localeEn.toast.closeLabel,
453
458
  surface: "glass"
454
459
  };
455
460
  const toasts = ref([]);
@@ -515,96 +520,96 @@ function hasToastViewport() {
515
520
  }
516
521
  return Boolean(document.querySelector("[data-tao-toast-viewport]"));
517
522
  }
518
- const localeEn = {
519
- code: "en-US",
520
- alert: { closeLabel: "Close" },
523
+ const localeRu = {
524
+ code: "ru-RU",
525
+ alert: { closeLabel: "Закрыть" },
521
526
  avatar: {
522
- fallbackLabel: "Avatar",
523
- notificationsLabel: "{count} notifications",
527
+ fallbackLabel: "Аватар",
528
+ notificationsLabel: "{count} уведомлений",
524
529
  dotLabels: {
525
- success: "online",
526
- danger: "busy",
527
- warning: "away",
528
- info: "status",
529
- neutral: "offline"
530
+ success: "в сети",
531
+ danger: "занят",
532
+ warning: "отошёл",
533
+ info: "статус",
534
+ neutral: "не в сети"
530
535
  }
531
536
  },
532
- breadcrumb: { ariaLabel: "Breadcrumb" },
537
+ breadcrumb: { ariaLabel: "Хлебные крошки" },
533
538
  carousel: {
534
- ariaLabel: "Carousel",
535
- prevLabel: "Previous",
536
- nextLabel: "Next",
537
- dotsLabel: "Slides",
538
- slideLabel: "Slide {n} of {count}"
539
+ ariaLabel: "Лента",
540
+ prevLabel: "Назад",
541
+ nextLabel: "Вперёд",
542
+ dotsLabel: "Слайды",
543
+ slideLabel: "Слайд {n} из {count}"
539
544
  },
540
545
  combobox: {
541
- placeholder: "Start typing",
542
- emptyText: "Nothing found",
543
- clearText: "Clear",
544
- createText: "Add “{text}”"
546
+ placeholder: "Начните вводить",
547
+ emptyText: "Ничего не найдено",
548
+ clearText: "Очистить",
549
+ createText: "Добавить «{text}»"
545
550
  },
546
- confirm: { ok: "OK", cancel: "Cancel" },
547
- copy: { copyLabel: "Copy", successText: "Copied!" },
551
+ confirm: { ok: "ОК", cancel: "Отмена" },
552
+ copy: { copyLabel: "Копировать", successText: "Скопировано!" },
548
553
  date: {
549
- placeholder: "Date",
550
- todayText: "Today",
551
- clearText: "Clear",
552
- prevMonthLabel: "Previous month",
553
- nextMonthLabel: "Next month"
554
+ placeholder: "Дата",
555
+ todayText: "Сегодня",
556
+ clearText: "Очистить",
557
+ prevMonthLabel: "Предыдущий месяц",
558
+ nextMonthLabel: "Следующий месяц"
554
559
  },
555
560
  dateRange: {
556
- placeholder: "Period",
557
- todayText: "Today",
558
- clearText: "Clear",
559
- prevMonthLabel: "Previous month",
560
- nextMonthLabel: "Next month"
561
+ placeholder: "Период",
562
+ todayText: "Сегодня",
563
+ clearText: "Очистить",
564
+ prevMonthLabel: "Предыдущий месяц",
565
+ nextMonthLabel: "Следующий месяц"
561
566
  },
562
- drawer: { closeLabel: "Close" },
563
- dropdownMenu: { menuLabel: "Menu" },
564
- empty: { title: "Nothing here" },
567
+ drawer: { closeLabel: "Закрыть" },
568
+ dropdownMenu: { menuLabel: "Меню" },
569
+ empty: { title: "Ничего нет" },
565
570
  fileDrop: {
566
- clearLabel: "Clear files",
567
- removeLabel: "Remove “{name}”",
568
- zoneText: "Drop a file here or click to choose",
569
- units: ["B", "KB", "MB"],
570
- decimalSeparator: "."
571
+ clearLabel: "Очистить файлы",
572
+ removeLabel: "Убрать «{name}»",
573
+ zoneText: "Перетащите файл сюда или нажмите, чтобы выбрать",
574
+ units: ["Б", "КБ", "МБ"],
575
+ decimalSeparator: ","
571
576
  },
572
- inputNumber: { incrementLabel: "Increase", decrementLabel: "Decrease" },
573
- list: { emptyText: "Nothing here" },
574
- modal: { closeLabel: "Close" },
577
+ inputNumber: { incrementLabel: "Увеличить", decrementLabel: "Уменьшить" },
578
+ list: { emptyText: "Ничего нет" },
579
+ modal: { closeLabel: "Закрыть" },
575
580
  pagination: {
576
- ariaLabel: "Pagination",
577
- prevLabel: "Previous",
578
- nextLabel: "Next",
579
- pageLabel: "Page {page}",
580
- jumpPrevLabel: "Back {n} pages",
581
- jumpNextLabel: "Forward {n} pages",
582
- totalText: "{from}–{to} of {total}",
583
- emptyTotalText: "0 of 0"
581
+ ariaLabel: "Пагинация",
582
+ prevLabel: "Назад",
583
+ nextLabel: "Вперёд",
584
+ pageLabel: "Страница {page}",
585
+ jumpPrevLabel: "Назад на {n} страниц",
586
+ jumpNextLabel: "Вперёд на {n} страниц",
587
+ totalText: "{from}–{to} из {total}",
588
+ emptyTotalText: "0 из 0"
584
589
  },
585
- quantity: { decrementLabel: "Decrease", removeLabel: "Remove", incrementLabel: "Increase" },
586
- scrollTop: { ariaLabel: "Back to top" },
587
- select: { placeholder: "Select", clearText: "Clear" },
590
+ quantity: { decrementLabel: "Уменьшить", removeLabel: "Убрать", incrementLabel: "Увеличить" },
591
+ scrollTop: { ariaLabel: "Наверх" },
592
+ select: { placeholder: "Выберите", clearText: "Очистить" },
588
593
  stages: {
589
- ariaLabel: "Stages",
590
- statusLabels: { wait: "pending", work: "in progress", ok: "done", bad: "failed" }
594
+ ariaLabel: "Стадии",
595
+ statusLabels: { wait: "ожидание", work: "в работе", ok: "готово", bad: "ошибка" }
591
596
  },
592
- table: { emptyText: "No data" },
593
- tag: { closeLabel: "Remove" },
597
+ table: { emptyText: "Нет данных" },
598
+ tag: { closeLabel: "Убрать" },
594
599
  colorPicker: {
595
- areaLabel: "Saturation and brightness",
596
- hueLabel: "Hue",
597
- alphaLabel: "Opacity",
598
- hexLabel: "Color in hex",
599
- modeLabel: "Input mode",
600
- swatchesLabel: "Swatches",
601
- eyedropperLabel: "Eyedropper",
602
- chooseLabel: "Choose color"
600
+ areaLabel: "Насыщенность и яркость",
601
+ hueLabel: "Оттенок",
602
+ alphaLabel: "Прозрачность",
603
+ hexLabel: "Цвет в hex",
604
+ modeLabel: "Способ ввода",
605
+ swatchesLabel: "Образцы",
606
+ eyedropperLabel: "Пипетка",
607
+ chooseLabel: "Выбрать цвет"
603
608
  },
604
- timeline: { playLabel: "Play", pauseLabel: "Pause", restartLabel: "Restart" },
605
- toast: { closeLabel: "Close notification" }
609
+ timeline: { playLabel: "Играть", pauseLabel: "Пауза", restartLabel: "В начало" },
610
+ toast: { closeLabel: "Закрыть уведомление" }
606
611
  };
607
- const current = shallowRef(localeRu);
612
+ const current = shallowRef(localeEn);
608
613
  function taoLocale() {
609
614
  return current.value;
610
615
  }
@@ -623,7 +628,7 @@ function merge(base, overrides) {
623
628
  }
624
629
  return out;
625
630
  }
626
- function setTaoLocale(locale, base = localeRu) {
631
+ function setTaoLocale(locale, base = localeEn) {
627
632
  current.value = merge(base, locale);
628
633
  configureToastDefaults({ closeLabel: current.value.toast.closeLabel });
629
634
  configureConfirmDefaults({ ok: current.value.confirm.ok, cancel: current.value.confirm.cancel });
@@ -649,7 +654,7 @@ const _hoisted_2$I = {
649
654
  key: 0,
650
655
  class: "tao-input-number__steppers"
651
656
  };
652
- const _hoisted_3$A = ["aria-label", "disabled"];
657
+ const _hoisted_3$B = ["aria-label", "disabled"];
653
658
  const _hoisted_4$v = { "aria-hidden": "true" };
654
659
  const _hoisted_5$n = ["aria-label", "disabled"];
655
660
  const _hoisted_6$i = { "aria-hidden": "true" };
@@ -829,7 +834,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
829
834
  _cache[2] || (_cache[2] = createTextVNode("+", -1))
830
835
  ], true)
831
836
  ])
832
- ], 8, _hoisted_3$A),
837
+ ], 8, _hoisted_3$B),
833
838
  createElementVNode("button", {
834
839
  type: "button",
835
840
  class: "tao-input-number__step",
@@ -852,7 +857,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
852
857
  const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3f4e6197"]]);
853
858
  const _hoisted_1$O = ["aria-label", "disabled"];
854
859
  const _hoisted_2$H = { "aria-hidden": "true" };
855
- const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
860
+ const _hoisted_3$A = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
856
861
  const _hoisted_4$u = ["aria-label", "disabled"];
857
862
  const _hoisted_5$m = { "aria-hidden": "true" };
858
863
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
@@ -1023,7 +1028,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1023
1028
  onFocus,
1024
1029
  onBlur,
1025
1030
  onKeydown
1026
- }, null, 40, _hoisted_3$z),
1031
+ }, null, 40, _hoisted_3$A),
1027
1032
  createElementVNode("button", {
1028
1033
  type: "button",
1029
1034
  class: "tao-quantity__btn tao-quantity__btn--inc",
@@ -1050,7 +1055,7 @@ const _hoisted_2$G = {
1050
1055
  key: 0,
1051
1056
  class: "tao-card__overlay"
1052
1057
  };
1053
- const _hoisted_3$y = {
1058
+ const _hoisted_3$z = {
1054
1059
  key: 1,
1055
1060
  class: "tao-card__overlay"
1056
1061
  };
@@ -1126,7 +1131,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1126
1131
  _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
1127
1132
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1128
1133
  ])) : createCommentVNode("", true)
1129
- ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
1134
+ ])) : _ctx.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
1130
1135
  renderSlot(_ctx.$slots, "overlay", {}, void 0, true)
1131
1136
  ])) : createCommentVNode("", true),
1132
1137
  hasContent.value ? (openBlock(), createElementBlock("div", {
@@ -1194,7 +1199,15 @@ function trapTab(event, root) {
1194
1199
  if (!event.shiftKey && document.activeElement === last) {
1195
1200
  event.preventDefault();
1196
1201
  first.focus();
1202
+ return;
1197
1203
  }
1204
+ const backwards = event.shiftKey;
1205
+ setTimeout(() => {
1206
+ if (!root.isConnected || root.contains(document.activeElement)) {
1207
+ return;
1208
+ }
1209
+ (backwards ? last : first).focus();
1210
+ }, 0);
1198
1211
  }
1199
1212
  let locks = 0;
1200
1213
  let previousOverflow = "";
@@ -1226,7 +1239,7 @@ const _hoisted_2$F = {
1226
1239
  key: 0,
1227
1240
  class: "tao-modal__header"
1228
1241
  };
1229
- const _hoisted_3$x = ["id"];
1242
+ const _hoisted_3$y = ["id"];
1230
1243
  const _hoisted_4$s = { key: 1 };
1231
1244
  const _hoisted_5$k = ["aria-label"];
1232
1245
  const _hoisted_6$g = { "aria-hidden": "true" };
@@ -1358,7 +1371,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
1358
1371
  key: 0,
1359
1372
  id: unref(titleId),
1360
1373
  class: "tao-modal__title"
1361
- }, toDisplayString(__props.title), 9, _hoisted_3$x)) : (openBlock(), createElementBlock("span", _hoisted_4$s))
1374
+ }, toDisplayString(__props.title), 9, _hoisted_3$y)) : (openBlock(), createElementBlock("span", _hoisted_4$s))
1362
1375
  ], true),
1363
1376
  __props.closable ? (openBlock(), createElementBlock("button", {
1364
1377
  key: 0,
@@ -1611,7 +1624,7 @@ function isMarkActive(markValue, values) {
1611
1624
  }
1612
1625
  const _hoisted_1$K = ["aria-disabled"];
1613
1626
  const _hoisted_2$D = ["id", "tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "aria-orientation", "aria-disabled", "aria-invalid", "aria-describedby", "onKeydown"];
1614
- const _hoisted_3$w = {
1627
+ const _hoisted_3$x = {
1615
1628
  key: 0,
1616
1629
  class: "tao-slider__value"
1617
1630
  };
@@ -1853,7 +1866,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1853
1866
  onBlur: _cache[0] || (_cache[0] = ($event) => pointerFocus.value = false)
1854
1867
  }, null, 46, _hoisted_2$D);
1855
1868
  }), 128)),
1856
- __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
1869
+ __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
1857
1870
  renderSlot(_ctx.$slots, "pre-value", {}, void 0, true),
1858
1871
  createTextVNode(toDisplayString(barText.value), 1),
1859
1872
  renderSlot(_ctx.$slots, "post-value", {}, void 0, true)
@@ -1950,7 +1963,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1950
1963
  });
1951
1964
  const _hoisted_1$J = { class: "tao-timeline__controls" };
1952
1965
  const _hoisted_2$C = { class: "tao-timeline__track" };
1953
- const _hoisted_3$v = {
1966
+ const _hoisted_3$w = {
1954
1967
  key: 0,
1955
1968
  class: "tao-timeline__time"
1956
1969
  };
@@ -2046,7 +2059,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2046
2059
  } : void 0
2047
2060
  ]), 1032, ["model-value", "max", "step", "marks", "marks-side", "variant", "size", "disabled"])
2048
2061
  ]),
2049
- __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
2062
+ __props.showTime ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
2050
2063
  renderSlot(_ctx.$slots, "time", {
2051
2064
  time: __props.modelValue,
2052
2065
  length: __props.length,
@@ -2426,7 +2439,7 @@ const TaoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data
2426
2439
  const spoilerGroupKey = Symbol("taoSpoilerGroup");
2427
2440
  const _hoisted_1$H = { class: "tao-spoiler" };
2428
2441
  const _hoisted_2$B = ["aria-expanded", "aria-controls"];
2429
- const _hoisted_3$u = {
2442
+ const _hoisted_3$v = {
2430
2443
  key: 0,
2431
2444
  class: "tao-spoiler__title"
2432
2445
  };
@@ -2499,7 +2512,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2499
2512
  createElementVNode("span", {
2500
2513
  class: normalizeClass(["tao-spoiler__icon", { "tao-spoiler__icon--open": isOpen.value }])
2501
2514
  }, "▶", 2),
2502
- __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
2515
+ __props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
2503
2516
  renderSlot(_ctx.$slots, "title", {}, () => [
2504
2517
  createTextVNode(toDisplayString(__props.title), 1)
2505
2518
  ], true)
@@ -2856,7 +2869,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2856
2869
  const TaoGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ad288026"]]);
2857
2870
  const _hoisted_1$E = { class: "tao-split__pane tao-split__pane--start" };
2858
2871
  const _hoisted_2$A = ["aria-orientation", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-disabled", "tabindex"];
2859
- const _hoisted_3$t = { class: "tao-split__pane tao-split__pane--end" };
2872
+ const _hoisted_3$u = { class: "tao-split__pane tao-split__pane--end" };
2860
2873
  const _hoisted_4$p = {
2861
2874
  key: 0,
2862
2875
  class: "tao-split__shield"
@@ -3182,7 +3195,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
3182
3195
  onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
3183
3196
  }, ["prevent"]))
3184
3197
  }, null, 40, _hoisted_2$A),
3185
- createElementVNode("div", _hoisted_3$t, [
3198
+ createElementVNode("div", _hoisted_3$u, [
3186
3199
  renderSlot(_ctx.$slots, "end", {}, void 0, true)
3187
3200
  ]),
3188
3201
  isDragging.value ? (openBlock(), createElementBlock("div", _hoisted_4$p)) : createCommentVNode("", true)
@@ -3283,7 +3296,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
3283
3296
  const TaoLoader = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-49a9f1b2"]]);
3284
3297
  const _hoisted_1$C = { class: "tao-image" };
3285
3298
  const _hoisted_2$z = ["src", "alt", "loading"];
3286
- const _hoisted_3$s = { class: "tao-image__placeholder" };
3299
+ const _hoisted_3$t = { class: "tao-image__placeholder" };
3287
3300
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
3288
3301
  ...{ name: "TaoImage" },
3289
3302
  __name: "TaoImage",
@@ -3328,7 +3341,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
3328
3341
  onError: handleError
3329
3342
  }, null, 42, _hoisted_2$z)) : createCommentVNode("", true),
3330
3343
  !__props.src || hasError.value ? renderSlot(_ctx.$slots, "default", {}, () => [
3331
- createElementVNode("div", _hoisted_3$s, toDisplayString(__props.placeholderText), 1)
3344
+ createElementVNode("div", _hoisted_3$t, toDisplayString(__props.placeholderText), 1)
3332
3345
  ], true, 1) : createCommentVNode("", true)
3333
3346
  ]);
3334
3347
  };
@@ -3337,7 +3350,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
3337
3350
  const TaoImage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-61f47c52"]]);
3338
3351
  const _hoisted_1$B = ["for"];
3339
3352
  const _hoisted_2$y = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
3340
- const _hoisted_3$r = {
3353
+ const _hoisted_3$s = {
3341
3354
  key: 0,
3342
3355
  class: "tao-checkbox__label"
3343
3356
  };
@@ -3425,7 +3438,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
3425
3438
  onChange: onInputChange
3426
3439
  }, null, 40, _hoisted_2$y),
3427
3440
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "tao-checkbox__box" }, null, -1)),
3428
- __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$r, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, [
3441
+ __props.label ? (openBlock(), createElementBlock("span", _hoisted_3$s, toDisplayString(__props.label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, [
3429
3442
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
3430
3443
  ])),
3431
3444
  renderSlot(_ctx.$slots, "post", { text: __props.label }, void 0, true)
@@ -3439,7 +3452,7 @@ const _hoisted_1$A = {
3439
3452
  class: "tao-tag__prefix"
3440
3453
  };
3441
3454
  const _hoisted_2$x = { class: "tao-tag__text" };
3442
- const _hoisted_3$q = ["aria-label"];
3455
+ const _hoisted_3$r = ["aria-label"];
3443
3456
  const _hoisted_4$n = { "aria-hidden": "true" };
3444
3457
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
3445
3458
  ...{ name: "TaoTag" },
@@ -3511,7 +3524,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
3511
3524
  _cache[0] || (_cache[0] = createTextVNode("✕", -1))
3512
3525
  ], true)
3513
3526
  ])
3514
- ], 8, _hoisted_3$q)) : createCommentVNode("", true)
3527
+ ], 8, _hoisted_3$r)) : createCommentVNode("", true)
3515
3528
  ], 6);
3516
3529
  };
3517
3530
  }
@@ -3522,7 +3535,7 @@ const _hoisted_2$w = {
3522
3535
  key: 1,
3523
3536
  class: "tao-divider__text"
3524
3537
  };
3525
- const _hoisted_3$p = {
3538
+ const _hoisted_3$q = {
3526
3539
  key: 2,
3527
3540
  class: "tao-divider__line tao-divider__line--end"
3528
3541
  };
@@ -3565,7 +3578,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
3565
3578
  createTextVNode(toDisplayString(__props.text), 1)
3566
3579
  ], true)
3567
3580
  ])) : createCommentVNode("", true),
3568
- __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$p)) : createCommentVNode("", true)
3581
+ __props.variant !== "gap" && hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$q)) : createCommentVNode("", true)
3569
3582
  ], 10, _hoisted_1$z);
3570
3583
  };
3571
3584
  }
@@ -3817,13 +3830,23 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
3817
3830
  const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fb037862"]]);
3818
3831
  const _hoisted_1$w = ["tabindex", "aria-label"];
3819
3832
  const _hoisted_2$t = { class: "tao-scroll-top__content" };
3833
+ const _hoisted_3$p = {
3834
+ key: 1,
3835
+ class: "tao-scroll-top__text",
3836
+ "aria-hidden": "true"
3837
+ };
3820
3838
  const RIPPLE_DURATION = 750;
3821
3839
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
3822
- ...{ name: "TaoScrollTop" },
3840
+ ...{ name: "TaoScrollTop", inheritAttrs: false },
3823
3841
  __name: "TaoScrollTop",
3824
3842
  props: {
3843
+ variant: { default: "solid" },
3844
+ side: { default: "right" },
3845
+ offset: { default: void 0 },
3846
+ label: { default: void 0 },
3847
+ labelSide: { default: void 0 },
3825
3848
  size: { default: 40 },
3826
- right: { default: 24 },
3849
+ right: { default: void 0 },
3827
3850
  bottom: { default: 24 },
3828
3851
  zIndex: { default: 1e3 },
3829
3852
  boundary: { default: 300 },
@@ -3834,17 +3857,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3834
3857
  },
3835
3858
  setup(__props) {
3836
3859
  const props = __props;
3837
- useLocaleText(props, "scrollTop");
3860
+ const l10n = useLocaleText(props, "scrollTop");
3838
3861
  const fmtProp = (value, unit = "px") => typeof value === "number" ? value + unit : value;
3839
3862
  let prevPos = 0;
3840
3863
  let activeBack = false;
3841
- const mainStyle = reactive({
3842
- width: fmtProp(props.size),
3843
- height: fmtProp(props.size),
3844
- right: fmtProp(props.right),
3864
+ const isText = computed(() => props.variant === "text");
3865
+ const wrapStyle = computed(() => ({
3866
+ [props.side]: fmtProp(props.offset ?? props.right ?? 24),
3845
3867
  bottom: fmtProp(props.bottom),
3846
3868
  zIndex: props.zIndex
3847
- });
3869
+ }));
3870
+ const mainStyle = computed(() => ({
3871
+ height: fmtProp(props.size),
3872
+ ...isText.value ? {} : { width: fmtProp(props.size) }
3873
+ }));
3874
+ const captionSide = computed(() => props.labelSide ?? (props.side === "right" ? "left" : "right"));
3875
+ const caption = computed(() => props.label ?? (isText.value ? l10n.value.ariaLabel : void 0));
3876
+ const accessibleName = computed(() => props.ariaLabel || props.label || l10n.value.ariaLabel);
3848
3877
  const rippleStyle = reactive({
3849
3878
  top: fmtProp(-1 * props.size),
3850
3879
  left: fmtProp(-1 * props.size),
@@ -3887,7 +3916,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3887
3916
  isActive.value = tooFar && activeBack;
3888
3917
  }
3889
3918
  function onClick(e) {
3890
- if (!isRippleActive.value) {
3919
+ if (!isText.value && !isRippleActive.value) {
3891
3920
  const elTarget = e.currentTarget;
3892
3921
  if (elTarget) {
3893
3922
  const rect = elTarget.getBoundingClientRect();
@@ -3916,40 +3945,56 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3916
3945
  return (_ctx, _cache) => {
3917
3946
  return openBlock(), createBlock(Transition, { name: "tao-scroll-top-fade" }, {
3918
3947
  default: withCtx(() => [
3919
- isActive.value ? (openBlock(), createElementBlock("button", {
3948
+ isActive.value ? (openBlock(), createElementBlock("div", {
3920
3949
  key: 0,
3921
- type: "button",
3922
- style: normalizeStyle(mainStyle),
3923
- tabindex: props.tabindex,
3924
- class: normalizeClass(["tao-scroll-top", { "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false }]),
3925
- "aria-label": props.ariaLabel,
3926
- onClick: withModifiers(onClick, ["prevent"])
3950
+ class: "tao-scroll-top-wrap",
3951
+ style: normalizeStyle(wrapStyle.value)
3927
3952
  }, [
3928
- createElementVNode("div", _hoisted_2$t, [
3929
- createElementVNode("div", {
3930
- class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3931
- style: normalizeStyle(rippleStyle)
3932
- }, null, 6),
3933
- renderSlot(_ctx.$slots, "default", {}, () => [
3934
- _cache[0] || (_cache[0] = createElementVNode("svg", {
3935
- class: "tao-scroll-top__icon",
3936
- viewBox: "0 0 24 24",
3937
- width: "16",
3938
- height: "16",
3939
- fill: "currentColor"
3940
- }, [
3941
- createElementVNode("path", { d: "M12 6l-7 7 1.4 1.4L12 8.8l5.6 5.6L19 13z" })
3942
- ], -1))
3943
- ], true)
3944
- ])
3945
- ], 14, _hoisted_1$w)) : createCommentVNode("", true)
3953
+ createElementVNode("button", mergeProps(_ctx.$attrs, {
3954
+ type: "button",
3955
+ style: mainStyle.value,
3956
+ tabindex: props.tabindex,
3957
+ class: ["tao-scroll-top", [
3958
+ `tao-scroll-top--${props.variant}`,
3959
+ { "tao-scroll-top--no-outline": (props.outline ?? props.hasOutline) === false },
3960
+ isText.value && `tao-scroll-top--caption-${captionSide.value}`
3961
+ ]],
3962
+ "aria-label": accessibleName.value,
3963
+ onClick: withModifiers(onClick, ["prevent"])
3964
+ }), [
3965
+ createElementVNode("span", _hoisted_2$t, [
3966
+ !isText.value ? (openBlock(), createElementBlock("span", {
3967
+ key: 0,
3968
+ class: normalizeClass([{ "tao-scroll-top__ripple--active": isRippleActive.value }, "tao-scroll-top__ripple"]),
3969
+ style: normalizeStyle(rippleStyle)
3970
+ }, null, 6)) : createCommentVNode("", true),
3971
+ isText.value && caption.value ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(caption.value), 1)) : createCommentVNode("", true),
3972
+ renderSlot(_ctx.$slots, "default", {}, () => [
3973
+ _cache[0] || (_cache[0] = createElementVNode("svg", {
3974
+ class: "tao-scroll-top__icon",
3975
+ viewBox: "0 0 24 24",
3976
+ width: "16",
3977
+ height: "16",
3978
+ fill: "currentColor"
3979
+ }, [
3980
+ createElementVNode("path", { d: "M12 6l-7 7 1.4 1.4L12 8.8l5.6 5.6L19 13z" })
3981
+ ], -1))
3982
+ ], true)
3983
+ ])
3984
+ ], 16, _hoisted_1$w),
3985
+ !isText.value && caption.value ? (openBlock(), createElementBlock("span", {
3986
+ key: 0,
3987
+ class: normalizeClass(["tao-scroll-top__label", `tao-scroll-top__label--${captionSide.value}`]),
3988
+ "aria-hidden": "true"
3989
+ }, toDisplayString(caption.value), 3)) : createCommentVNode("", true)
3990
+ ], 4)) : createCommentVNode("", true)
3946
3991
  ]),
3947
3992
  _: 3
3948
3993
  });
3949
3994
  };
3950
3995
  }
3951
3996
  });
3952
- const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89d2feaa"]]);
3997
+ const TaoScrollTop = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-89b8959a"]]);
3953
3998
  const _hoisted_1$v = { class: "tao-progress" };
3954
3999
  const _hoisted_2$s = {
3955
4000
  key: 0,
@@ -5306,7 +5351,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5306
5351
  disabled: { type: Boolean, default: false },
5307
5352
  error: { type: Boolean, default: false },
5308
5353
  size: {},
5309
- block: { type: Boolean, default: false }
5354
+ block: { type: Boolean, default: false },
5355
+ minWidth: {}
5310
5356
  },
5311
5357
  emits: ["update:modelValue", "change"],
5312
5358
  setup(__props, { emit: __emit }) {
@@ -5319,6 +5365,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5319
5365
  const groupDisabled = computed(() => props.disabled);
5320
5366
  const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
5321
5367
  const describedBy = computed(() => field == null ? void 0 : field.describedBy.value);
5368
+ const minWidthStyle = computed(
5369
+ () => props.minWidth === void 0 ? void 0 : { "--tao-segmented-option-min-width": typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth }
5370
+ );
5322
5371
  const trackRef = ref(null);
5323
5372
  const thumbStyle = ref({ opacity: "0" });
5324
5373
  let resizeObserver = null;
@@ -5401,6 +5450,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5401
5450
  }
5402
5451
  ]]),
5403
5452
  disabled: __props.disabled,
5453
+ style: normalizeStyle(minWidthStyle.value),
5404
5454
  "aria-describedby": describedBy.value,
5405
5455
  "aria-invalid": invalid.value || void 0,
5406
5456
  "aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
@@ -5419,11 +5469,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5419
5469
  }, null, 4),
5420
5470
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
5421
5471
  ], 512)
5422
- ], 10, _hoisted_1$p);
5472
+ ], 14, _hoisted_1$p);
5423
5473
  };
5424
5474
  }
5425
5475
  });
5426
- const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7dc6820f"]]);
5476
+ const TaoSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e4e082a4"]]);
5427
5477
  const _hoisted_1$o = ["for"];
5428
5478
  const _hoisted_2$m = ["id", "name", "value", "checked", "disabled", "aria-label"];
5429
5479
  const _hoisted_3$j = { class: "tao-segmented-option__face" };
@@ -5532,7 +5582,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5532
5582
  };
5533
5583
  }
5534
5584
  });
5535
- const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-fba7ca12"]]);
5585
+ const TaoSegmentedOption = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-588d637d"]]);
5536
5586
  const _hoisted_1$n = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
5537
5587
  const _hoisted_2$l = { class: "tao-color-picker__strips" };
5538
5588
  const _hoisted_3$i = { class: "tao-color-picker__row" };
@@ -6522,7 +6572,7 @@ function isTaoDateInRange(iso, min, max) {
6522
6572
  }
6523
6573
  return true;
6524
6574
  }
6525
- function formatTaoDateLabel(iso, locale = "ru-RU") {
6575
+ function formatTaoDateLabel(iso, locale = "en-US") {
6526
6576
  const parts = parseTaoDate(iso);
6527
6577
  if (!parts) {
6528
6578
  return "";
@@ -6547,7 +6597,7 @@ function parseTaoDateRange(value) {
6547
6597
  }
6548
6598
  return sortTaoDateRange(formatTaoDateIso(start), formatTaoDateIso(end));
6549
6599
  }
6550
- function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6600
+ function formatTaoDateRangeLabel(start, end, locale = "en-US") {
6551
6601
  const fromParts = parseTaoDate(start);
6552
6602
  const toParts = parseTaoDate(end);
6553
6603
  if (!fromParts || !toParts) {
@@ -6563,7 +6613,7 @@ function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6563
6613
  });
6564
6614
  return `${from} — ${formatTaoDateLabel(end, locale)}`;
6565
6615
  }
6566
- function formatTaoMonthLabel(year, month, locale = "ru-RU") {
6616
+ function formatTaoMonthLabel(year, month, locale = "en-US") {
6567
6617
  const label = new Date(year, month - 1, 1).toLocaleDateString(locale, {
6568
6618
  month: "long",
6569
6619
  year: "numeric"
@@ -6577,7 +6627,7 @@ function taoDateWeekdayIndex(iso) {
6577
6627
  }
6578
6628
  return (new Date(parts.y, parts.m - 1, parts.d).getDay() + 6) % 7;
6579
6629
  }
6580
- function taoWeekdayLabels(locale = "ru-RU") {
6630
+ function taoWeekdayLabels(locale = "en-US") {
6581
6631
  return Array.from({ length: 7 }, (_, index) => {
6582
6632
  const label = new Date(2026, 0, 5 + index).toLocaleDateString(locale, { weekday: "short" });
6583
6633
  return label.replace(/\.$/, "");