@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/README.md CHANGED
@@ -10,7 +10,7 @@ change a handful of CSS variables and the whole kit follows.
10
10
  ### Basics
11
11
 
12
12
  - **TaoBlock** — container with padding and radius
13
- - **TaoButton** — `primary` / `secondary` / `ghost` / `danger`, sizes and states
13
+ - **TaoButton** — `primary` / `secondary` / `ghost` / `text` / `danger`. `tone` tints ghost and text (danger, success, warning, info)
14
14
  - **TaoCard** — card with cover / header / footer slots. `#cover` can be a photo or `TaoCarousel`
15
15
  - **TaoCopy** — clipboard icon. After a click, a “Copied” tooltip; if the trigger is gone, the tooltip is too
16
16
  - **TaoInput** — text field with v-model, validation, and `#prefix` / `#suffix` slots (icon or text inside the frame)
package/README.ru.md CHANGED
@@ -10,7 +10,7 @@
10
10
  ### Базовые
11
11
 
12
12
  - **TaoBlock** — базовый контейнер с настраиваемыми отступами и скруглением
13
- - **TaoButton** — кнопка с вариантами (primary, secondary, ghost, danger), размерами и состояниями
13
+ - **TaoButton** — кнопка: `primary` / `secondary` / `ghost` / `text` / `danger`. `tone` красит ghost и text (danger, success, warning, info)
14
14
  - **TaoCard** — карточка со слотами cover / header / footer. В `#cover` — фото или `TaoCarousel`
15
15
  - **TaoCopy** — иконка копирования в буфер. После клика сверху тултип «Скопировано»; если кнопку убрали — тултип тоже
16
16
  - **TaoInput** — поле ввода с поддержкой v-model, валидации и слотов `#prefix` / `#suffix` (иконка или текст внутри рамки)
package/dist/index.cjs CHANGED
@@ -19,6 +19,7 @@
19
19
  type: { default: "button" },
20
20
  size: { default: "medium" },
21
21
  variant: { default: "primary" },
22
+ tone: { default: "" },
22
23
  disabled: { type: Boolean, default: false },
23
24
  loading: { type: Boolean, default: false },
24
25
  block: { type: Boolean, default: false },
@@ -42,7 +43,8 @@
42
43
  "tao-button--disabled": __props.disabled,
43
44
  "tao-button--loading": __props.loading,
44
45
  "tao-button--block": __props.block,
45
- "tao-button--icon": !!__props.icon
46
+ "tao-button--icon": !!__props.icon,
47
+ [`tao-button--tone-${__props.tone}`]: !!__props.tone
46
48
  }
47
49
  ]]),
48
50
  type: __props.type,
@@ -65,7 +67,7 @@
65
67
  }
66
68
  return target;
67
69
  };
68
- const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-085cd74d"]]);
70
+ const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-c3034f66"]]);
69
71
  const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
70
72
  ...{ name: "TaoBlock" },
71
73
  __name: "TaoBlock",