@1337exp/taoui 1.4.0 → 1.5.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
@@ -11,6 +11,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
11
11
  type: string;
12
12
  size: string;
13
13
  variant: string;
14
+ tone: string;
14
15
  disabled: boolean;
15
16
  loading: boolean;
16
17
  block: boolean;
@@ -21,6 +22,7 @@ click: (...args: any[]) => void;
21
22
  type: string;
22
23
  size: string;
23
24
  variant: string;
25
+ tone: string;
24
26
  disabled: boolean;
25
27
  loading: boolean;
26
28
  block: boolean;
@@ -29,9 +31,10 @@ icon: string;
29
31
  onClick?: ((...args: any[]) => any) | undefined;
30
32
  }>, {
31
33
  type: "button" | "submit" | "reset";
34
+ tone: "danger" | "success" | "warning" | "info" | "";
32
35
  size: "small" | "medium" | "large";
33
36
  disabled: boolean;
34
- variant: "primary" | "secondary" | "ghost" | "danger";
37
+ variant: "primary" | "secondary" | "ghost" | "text" | "danger";
35
38
  loading: boolean;
36
39
  block: boolean;
37
40
  icon: string;
@@ -2664,7 +2667,9 @@ export declare function parseTaoDateRange(value: TaoDateRangeValue | null | unde
2664
2667
  declare interface Props {
2665
2668
  type?: 'button' | 'submit' | 'reset';
2666
2669
  size?: 'small' | 'medium' | 'large';
2667
- variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
2670
+ variant?: 'primary' | 'secondary' | 'ghost' | 'text' | 'danger';
2671
+ /** Красит кнопку: danger / success / warning / info. Не вместо variant. */
2672
+ tone?: 'danger' | 'success' | 'warning' | 'info' | '';
2668
2673
  disabled?: boolean;
2669
2674
  loading?: boolean;
2670
2675
  block?: boolean;
package/dist/index.mjs CHANGED
@@ -16,6 +16,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
16
16
  type: { default: "button" },
17
17
  size: { default: "medium" },
18
18
  variant: { default: "primary" },
19
+ tone: { default: "" },
19
20
  disabled: { type: Boolean, default: false },
20
21
  loading: { type: Boolean, default: false },
21
22
  block: { type: Boolean, default: false },
@@ -39,7 +40,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
39
40
  "tao-button--disabled": __props.disabled,
40
41
  "tao-button--loading": __props.loading,
41
42
  "tao-button--block": __props.block,
42
- "tao-button--icon": !!__props.icon
43
+ "tao-button--icon": !!__props.icon,
44
+ [`tao-button--tone-${__props.tone}`]: !!__props.tone
43
45
  }
44
46
  ]]),
45
47
  type: __props.type,
@@ -62,7 +64,7 @@ const _export_sfc = (sfc, props) => {
62
64
  }
63
65
  return target;
64
66
  };
65
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-085cd74d"]]);
67
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-c3034f66"]]);
66
68
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
67
69
  ...{ name: "TaoBlock" },
68
70
  __name: "TaoBlock",