@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.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<{
@@ -616,8 +619,13 @@ light: boolean;
616
619
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
617
620
 
618
621
  declare const __VLS_component_29: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_29<__VLS_TypePropsToRuntimeProps_31<Props_14>, {
622
+ variant: string;
623
+ side: string;
624
+ offset: undefined;
625
+ label: undefined;
626
+ labelSide: undefined;
619
627
  size: number;
620
- right: number;
628
+ right: undefined;
621
629
  bottom: number;
622
630
  zIndex: number;
623
631
  boundary: number;
@@ -625,8 +633,13 @@ outline: undefined;
625
633
  hasOutline: undefined;
626
634
  tabindex: number;
627
635
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_29<__VLS_TypePropsToRuntimeProps_31<Props_14>, {
636
+ variant: string;
637
+ side: string;
638
+ offset: undefined;
639
+ label: undefined;
640
+ labelSide: undefined;
628
641
  size: number;
629
- right: number;
642
+ right: undefined;
630
643
  bottom: number;
631
644
  zIndex: number;
632
645
  boundary: number;
@@ -634,10 +647,15 @@ outline: undefined;
634
647
  hasOutline: undefined;
635
648
  tabindex: number;
636
649
  }>>> & Readonly<{}>, {
650
+ label: string;
637
651
  size: number;
652
+ variant: "solid" | "ghost" | "text";
638
653
  tabindex: number;
639
654
  bottom: string | number;
640
655
  right: string | number;
656
+ side: "left" | "right";
657
+ offset: string | number;
658
+ labelSide: "left" | "right";
641
659
  zIndex: number;
642
660
  boundary: number;
643
661
  outline: boolean;
@@ -723,9 +741,9 @@ animated: boolean;
723
741
  }>>> & Readonly<{}>, {
724
742
  progress: number;
725
743
  max: number;
744
+ minWidth: number;
726
745
  height: number;
727
746
  min: number;
728
- minWidth: number;
729
747
  maxWidth: number;
730
748
  showPercentage: boolean | "top" | "right";
731
749
  animated: boolean;
@@ -1205,6 +1223,8 @@ error?: boolean;
1205
1223
  /** Without it the group takes the size of its ancestors. / Без него — размер предков. */
1206
1224
  size?: TaoSize;
1207
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;
1208
1228
  }>, {
1209
1229
  disabled: boolean;
1210
1230
  error: boolean;
@@ -1222,6 +1242,8 @@ error?: boolean;
1222
1242
  /** Without it the group takes the size of its ancestors. / Без него — размер предков. */
1223
1243
  size?: TaoSize;
1224
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;
1225
1247
  }>, {
1226
1248
  disabled: boolean;
1227
1249
  error: boolean;
@@ -4040,6 +4062,8 @@ declare interface Props {
4040
4062
  loading?: boolean;
4041
4063
  block?: boolean;
4042
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;
4043
4067
  }
4044
4068
 
4045
4069
  declare interface Props_10 {
@@ -4089,7 +4113,29 @@ declare interface Props_13 {
4089
4113
  }
4090
4114
 
4091
4115
  declare interface Props_14 {
4116
+ /**
4117
+ * `solid` — accent circle; `ghost` — light circle on a raised surface; `text` — bare uppercase caption with an arrow.
4118
+ * `solid` — круг акцентного цвета; `ghost` — лёгкий круг на приподнятой поверхности; `text` — подпись капсом со стрелкой.
4119
+ */
4120
+ variant?: 'solid' | 'ghost' | 'text';
4121
+ /** Which edge of the page the button sits on. / У какого края страницы стоит кнопка. */
4122
+ side?: 'left' | 'right';
4123
+ /** Offset from that edge; `right` is its older name. / Отступ от этого края; `right` — прежнее имя. */
4124
+ offset?: string | number;
4125
+ /**
4126
+ * Caption: beside the button on mouse hover (and keyboard focus) for `solid` / `ghost`, always visible for `text`
4127
+ * (the locale text by default there; an empty string hides it).
4128
+ * Подпись: рядом с кнопкой при наведении мыши (и фокусе с клавиатуры) у `solid` / `ghost`, у `text` видна всегда
4129
+ * (по умолчанию — текст локали; пустая строка скрывает).
4130
+ */
4131
+ label?: string;
4132
+ /**
4133
+ * Where the caption goes relative to the button. Default: opposite to `side`, so it opens towards the page.
4134
+ * С какой стороны подпись относительно кнопки. По умолчанию — противоположная `side`, то есть к странице.
4135
+ */
4136
+ labelSide?: 'left' | 'right';
4092
4137
  size?: number;
4138
+ /** Older name of `offset`. / Прежнее имя `offset`. */
4093
4139
  right?: string | number;
4094
4140
  bottom?: string | number;
4095
4141
  zIndex?: number;
@@ -4235,11 +4281,11 @@ export declare function rgbToHsl(r: number, g: number, b: number): {
4235
4281
  };
4236
4282
 
4237
4283
  /**
4238
- * Sets the language of built-in texts: a whole locale (`localeEn`) or a few keys on top of `base`
4239
- * (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.
4240
4286
  *
4241
- * Задаёт язык встроенных текстов: целую локаль (`localeEn`) или несколько ключей поверх `base`
4242
- * (по умолчанию русской). Работает в любой момент: уже показанные компоненты переключаются сразу.
4287
+ * Задаёт язык встроенных текстов: целую локаль (`localeRu`) или несколько ключей поверх `base`
4288
+ * (по умолчанию английской). Работает в любой момент: уже показанные компоненты переключаются сразу.
4243
4289
  */
4244
4290
  export declare function setTaoLocale(locale: TaoLocaleOverrides, base?: TaoLocale): void;
4245
4291
 
@@ -5382,8 +5428,8 @@ export default TaoUI;
5382
5428
 
5383
5429
  export declare interface TaoUIOptions {
5384
5430
  /**
5385
- * Language of built-in texts: `localeEn`, or a few keys on top of Russian (the default).
5386
- * Язык встроенных текстов: `localeEn` или несколько ключей поверх русской (по умолчанию).
5431
+ * Language of built-in texts: `localeRu` (or any other), or a few keys on top of English (the default).
5432
+ * Язык встроенных текстов: `localeRu` (или любая другая) или несколько ключей поверх английской (по умолчанию).
5387
5433
  */
5388
5434
  locale?: TaoLocale | TaoLocaleOverrides;
5389
5435
  }