@1337exp/taoui 3.4.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.d.ts CHANGED
@@ -17,6 +17,7 @@ disabled: boolean;
17
17
  loading: boolean;
18
18
  block: boolean;
19
19
  icon: string;
20
+ minWidth: undefined;
20
21
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
22
  click: (...args: any[]) => void;
22
23
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -27,6 +28,7 @@ disabled: boolean;
27
28
  loading: boolean;
28
29
  block: boolean;
29
30
  icon: string;
31
+ minWidth: undefined;
30
32
  }>>> & Readonly<{
31
33
  onClick?: ((...args: any[]) => any) | undefined;
32
34
  }>, {
@@ -37,6 +39,7 @@ disabled: boolean;
37
39
  variant: "primary" | "secondary" | "ghost" | "text" | "danger";
38
40
  loading: boolean;
39
41
  block: boolean;
42
+ minWidth: number | string;
40
43
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
41
44
 
42
45
  declare const __VLS_component_10: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToRuntimeProps_10<{
@@ -738,9 +741,9 @@ animated: boolean;
738
741
  }>>> & Readonly<{}>, {
739
742
  progress: number;
740
743
  max: number;
744
+ minWidth: number;
741
745
  height: number;
742
746
  min: number;
743
- minWidth: number;
744
747
  maxWidth: number;
745
748
  showPercentage: boolean | "top" | "right";
746
749
  animated: boolean;
@@ -1220,6 +1223,8 @@ error?: boolean;
1220
1223
  /** Without it the group takes the size of its ancestors. / Без него — размер предков. */
1221
1224
  size?: TaoSize;
1222
1225
  block?: boolean;
1226
+ /** Minimum width of every option (number = px). Same as the `--tao-segmented-option-min-width` variable. / Минимальная ширина каждого варианта (число = px). То же, что переменная `--tao-segmented-option-min-width`. */
1227
+ minWidth?: number | string;
1223
1228
  }>, {
1224
1229
  disabled: boolean;
1225
1230
  error: boolean;
@@ -1237,6 +1242,8 @@ error?: boolean;
1237
1242
  /** Without it the group takes the size of its ancestors. / Без него — размер предков. */
1238
1243
  size?: TaoSize;
1239
1244
  block?: boolean;
1245
+ /** Minimum width of every option (number = px). Same as the `--tao-segmented-option-min-width` variable. / Минимальная ширина каждого варианта (число = px). То же, что переменная `--tao-segmented-option-min-width`. */
1246
+ minWidth?: number | string;
1240
1247
  }>, {
1241
1248
  disabled: boolean;
1242
1249
  error: boolean;
@@ -4055,6 +4062,8 @@ declare interface Props {
4055
4062
  loading?: boolean;
4056
4063
  block?: boolean;
4057
4064
  icon?: string;
4065
+ /** Minimum width (number = px). Same as the `--tao-button-min-width` variable. / Минимальная ширина (число = px). То же, что переменная `--tao-button-min-width`. */
4066
+ minWidth?: number | string;
4058
4067
  }
4059
4068
 
4060
4069
  declare interface Props_10 {
@@ -4272,11 +4281,11 @@ export declare function rgbToHsl(r: number, g: number, b: number): {
4272
4281
  };
4273
4282
 
4274
4283
  /**
4275
- * Sets the language of built-in texts: a whole locale (`localeEn`) or a few keys on top of `base`
4276
- * (Russian by default). Works at any moment: components already on the page switch at once.
4284
+ * Sets the language of built-in texts: a whole locale (`localeRu`) or a few keys on top of `base`
4285
+ * (English by default). Works at any moment: components already on the page switch at once.
4277
4286
  *
4278
- * Задаёт язык встроенных текстов: целую локаль (`localeEn`) или несколько ключей поверх `base`
4279
- * (по умолчанию русской). Работает в любой момент: уже показанные компоненты переключаются сразу.
4287
+ * Задаёт язык встроенных текстов: целую локаль (`localeRu`) или несколько ключей поверх `base`
4288
+ * (по умолчанию английской). Работает в любой момент: уже показанные компоненты переключаются сразу.
4280
4289
  */
4281
4290
  export declare function setTaoLocale(locale: TaoLocaleOverrides, base?: TaoLocale): void;
4282
4291
 
@@ -5419,8 +5428,8 @@ export default TaoUI;
5419
5428
 
5420
5429
  export declare interface TaoUIOptions {
5421
5430
  /**
5422
- * Language of built-in texts: `localeEn`, or a few keys on top of Russian (the default).
5423
- * Язык встроенных текстов: `localeEn` или несколько ключей поверх русской (по умолчанию).
5431
+ * Language of built-in texts: `localeRu` (or any other), or a few keys on top of English (the default).
5432
+ * Язык встроенных текстов: `localeRu` (или любая другая) или несколько ключей поверх английской (по умолчанию).
5424
5433
  */
5425
5434
  locale?: TaoLocale | TaoLocaleOverrides;
5426
5435
  }
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;
@@ -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,6 +62,7 @@ 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
@@ -67,7 +72,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
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;
@@ -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 });
@@ -5346,7 +5351,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5346
5351
  disabled: { type: Boolean, default: false },
5347
5352
  error: { type: Boolean, default: false },
5348
5353
  size: {},
5349
- block: { type: Boolean, default: false }
5354
+ block: { type: Boolean, default: false },
5355
+ minWidth: {}
5350
5356
  },
5351
5357
  emits: ["update:modelValue", "change"],
5352
5358
  setup(__props, { emit: __emit }) {
@@ -5359,6 +5365,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5359
5365
  const groupDisabled = computed(() => props.disabled);
5360
5366
  const invalid = computed(() => props.error || Boolean(field == null ? void 0 : field.invalid.value));
5361
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
+ );
5362
5371
  const trackRef = ref(null);
5363
5372
  const thumbStyle = ref({ opacity: "0" });
5364
5373
  let resizeObserver = null;
@@ -5441,6 +5450,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5441
5450
  }
5442
5451
  ]]),
5443
5452
  disabled: __props.disabled,
5453
+ style: normalizeStyle(minWidthStyle.value),
5444
5454
  "aria-describedby": describedBy.value,
5445
5455
  "aria-invalid": invalid.value || void 0,
5446
5456
  "aria-labelledby": __props.legend ? void 0 : unref(field) ? `${unref(field).id}-label` : void 0,
@@ -5459,11 +5469,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5459
5469
  }, null, 4),
5460
5470
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
5461
5471
  ], 512)
5462
- ], 10, _hoisted_1$p);
5472
+ ], 14, _hoisted_1$p);
5463
5473
  };
5464
5474
  }
5465
5475
  });
5466
- 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"]]);
5467
5477
  const _hoisted_1$o = ["for"];
5468
5478
  const _hoisted_2$m = ["id", "name", "value", "checked", "disabled", "aria-label"];
5469
5479
  const _hoisted_3$j = { class: "tao-segmented-option__face" };
@@ -5572,7 +5582,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5572
5582
  };
5573
5583
  }
5574
5584
  });
5575
- 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"]]);
5576
5586
  const _hoisted_1$n = ["tabindex", "aria-label", "aria-valuetext", "aria-valuenow"];
5577
5587
  const _hoisted_2$l = { class: "tao-color-picker__strips" };
5578
5588
  const _hoisted_3$i = { class: "tao-color-picker__row" };
@@ -6562,7 +6572,7 @@ function isTaoDateInRange(iso, min, max) {
6562
6572
  }
6563
6573
  return true;
6564
6574
  }
6565
- function formatTaoDateLabel(iso, locale = "ru-RU") {
6575
+ function formatTaoDateLabel(iso, locale = "en-US") {
6566
6576
  const parts = parseTaoDate(iso);
6567
6577
  if (!parts) {
6568
6578
  return "";
@@ -6587,7 +6597,7 @@ function parseTaoDateRange(value) {
6587
6597
  }
6588
6598
  return sortTaoDateRange(formatTaoDateIso(start), formatTaoDateIso(end));
6589
6599
  }
6590
- function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6600
+ function formatTaoDateRangeLabel(start, end, locale = "en-US") {
6591
6601
  const fromParts = parseTaoDate(start);
6592
6602
  const toParts = parseTaoDate(end);
6593
6603
  if (!fromParts || !toParts) {
@@ -6603,7 +6613,7 @@ function formatTaoDateRangeLabel(start, end, locale = "ru-RU") {
6603
6613
  });
6604
6614
  return `${from} — ${formatTaoDateLabel(end, locale)}`;
6605
6615
  }
6606
- function formatTaoMonthLabel(year, month, locale = "ru-RU") {
6616
+ function formatTaoMonthLabel(year, month, locale = "en-US") {
6607
6617
  const label = new Date(year, month - 1, 1).toLocaleDateString(locale, {
6608
6618
  month: "long",
6609
6619
  year: "numeric"
@@ -6617,7 +6627,7 @@ function taoDateWeekdayIndex(iso) {
6617
6627
  }
6618
6628
  return (new Date(parts.y, parts.m - 1, parts.d).getDay() + 6) % 7;
6619
6629
  }
6620
- function taoWeekdayLabels(locale = "ru-RU") {
6630
+ function taoWeekdayLabels(locale = "en-US") {
6621
6631
  return Array.from({ length: 7 }, (_, index) => {
6622
6632
  const label = new Date(2026, 0, 5 + index).toLocaleDateString(locale, { weekday: "short" });
6623
6633
  return label.replace(/\.$/, "");