@1337exp/taoui 3.2.0 → 3.3.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/CHANGELOG.md +184 -0
- package/LICENSE +21 -0
- package/README.md +676 -625
- package/README.ru.md +681 -631
- package/dist/index.cjs +41 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +41 -35
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +43 -19
- package/src/styles/primitives.css +139 -130
- package/src/styles/semantic.css +93 -82
- package/src/styles/themes/light.css +74 -61
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ onClick?: ((...args: any[]) => any) | undefined;
|
|
|
32
32
|
}>, {
|
|
33
33
|
type: "button" | "submit" | "reset";
|
|
34
34
|
icon: string;
|
|
35
|
-
tone: "danger" | "success" | "warning" | "info" | "";
|
|
35
|
+
tone: "danger" | "success" | "warning" | "info" | "neutral" | "";
|
|
36
36
|
disabled: boolean;
|
|
37
37
|
variant: "primary" | "secondary" | "ghost" | "text" | "danger";
|
|
38
38
|
loading: boolean;
|
|
@@ -4035,7 +4035,7 @@ declare interface Props {
|
|
|
4035
4035
|
size?: TaoSize;
|
|
4036
4036
|
variant?: 'primary' | 'secondary' | 'ghost' | 'text' | 'danger';
|
|
4037
4037
|
/** Красит кнопку: danger / success / warning / info. Не вместо variant. */
|
|
4038
|
-
tone?: 'danger' | 'success' | 'warning' | 'info' | '';
|
|
4038
|
+
tone?: 'danger' | 'success' | 'warning' | 'info' | 'neutral' | '';
|
|
4039
4039
|
disabled?: boolean;
|
|
4040
4040
|
loading?: boolean;
|
|
4041
4041
|
block?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
};
|
|
81
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
81
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2e564683"]]);
|
|
82
82
|
function toCssLength(value) {
|
|
83
83
|
if (value === void 0 || value === null || value === "") {
|
|
84
84
|
return void 0;
|
|
@@ -252,7 +252,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-
|
|
255
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-0ea00845"]]);
|
|
256
256
|
const _hoisted_1$Q = {
|
|
257
257
|
key: 0,
|
|
258
258
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
@@ -849,7 +849,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
});
|
|
852
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-
|
|
852
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3f4e6197"]]);
|
|
853
853
|
const _hoisted_1$O = ["aria-label", "disabled"];
|
|
854
854
|
const _hoisted_2$H = { "aria-hidden": "true" };
|
|
855
855
|
const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
@@ -1071,7 +1071,7 @@ const _hoisted_8$c = {
|
|
|
1071
1071
|
key: 1,
|
|
1072
1072
|
class: "tao-card__sub"
|
|
1073
1073
|
};
|
|
1074
|
-
const _hoisted_9$
|
|
1074
|
+
const _hoisted_9$6 = {
|
|
1075
1075
|
key: 3,
|
|
1076
1076
|
class: "tao-card__body"
|
|
1077
1077
|
};
|
|
@@ -1156,7 +1156,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
1156
1156
|
renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1157
1157
|
])) : createCommentVNode("", true)
|
|
1158
1158
|
])) : createCommentVNode("", true),
|
|
1159
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
1159
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
|
|
1160
1160
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1161
1161
|
])) : createCommentVNode("", true),
|
|
1162
1162
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_10$4, [
|
|
@@ -3516,7 +3516,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3516
3516
|
};
|
|
3517
3517
|
}
|
|
3518
3518
|
});
|
|
3519
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-
|
|
3519
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-95e0dac5"]]);
|
|
3520
3520
|
const _hoisted_1$z = ["role", "aria-hidden"];
|
|
3521
3521
|
const _hoisted_2$w = {
|
|
3522
3522
|
key: 1,
|
|
@@ -3814,7 +3814,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
3814
3814
|
};
|
|
3815
3815
|
}
|
|
3816
3816
|
});
|
|
3817
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
3817
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fb037862"]]);
|
|
3818
3818
|
const _hoisted_1$w = ["tabindex", "aria-label"];
|
|
3819
3819
|
const _hoisted_2$t = { class: "tao-scroll-top__content" };
|
|
3820
3820
|
const RIPPLE_DURATION = 750;
|
|
@@ -4097,7 +4097,7 @@ const _hoisted_5$g = {
|
|
|
4097
4097
|
const _hoisted_6$d = { class: "tao-file-drop__name" };
|
|
4098
4098
|
const _hoisted_7$b = { class: "tao-file-drop__meta" };
|
|
4099
4099
|
const _hoisted_8$a = ["aria-label", "onClick"];
|
|
4100
|
-
const _hoisted_9$
|
|
4100
|
+
const _hoisted_9$5 = { "aria-hidden": "true" };
|
|
4101
4101
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
4102
4102
|
...{ name: "TaoFileDrop" },
|
|
4103
4103
|
__name: "TaoFileDrop",
|
|
@@ -4288,7 +4288,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4288
4288
|
"aria-label": unref(l10n).removeLabel.replace("{name}", file.name),
|
|
4289
4289
|
onClick: ($event) => removeAt(index)
|
|
4290
4290
|
}, [
|
|
4291
|
-
createElementVNode("span", _hoisted_9$
|
|
4291
|
+
createElementVNode("span", _hoisted_9$5, [
|
|
4292
4292
|
renderSlot(_ctx.$slots, "remove-icon", {}, () => [
|
|
4293
4293
|
_cache[2] || (_cache[2] = createTextVNode("✕", -1))
|
|
4294
4294
|
], true)
|
|
@@ -4301,7 +4301,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
4301
4301
|
};
|
|
4302
4302
|
}
|
|
4303
4303
|
});
|
|
4304
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
4304
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-5e6f74d1"]]);
|
|
4305
4305
|
const _hoisted_1$t = ["aria-expanded", "aria-label"];
|
|
4306
4306
|
const _hoisted_2$q = {
|
|
4307
4307
|
key: 1,
|
|
@@ -4898,7 +4898,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
4898
4898
|
};
|
|
4899
4899
|
}
|
|
4900
4900
|
});
|
|
4901
|
-
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
4901
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f0778b06"]]);
|
|
4902
4902
|
const _hoisted_1$q = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
4903
4903
|
const _hoisted_2$o = { class: "tao-select__value" };
|
|
4904
4904
|
const _hoisted_3$k = ["aria-activedescendant"];
|
|
@@ -5538,12 +5538,16 @@ const _hoisted_2$l = { class: "tao-color-picker__strips" };
|
|
|
5538
5538
|
const _hoisted_3$i = { class: "tao-color-picker__row" };
|
|
5539
5539
|
const _hoisted_4$g = { class: "tao-color-picker__preview" };
|
|
5540
5540
|
const _hoisted_5$e = {
|
|
5541
|
+
key: 0,
|
|
5542
|
+
class: "tao-color-picker__hex"
|
|
5543
|
+
};
|
|
5544
|
+
const _hoisted_6$b = {
|
|
5541
5545
|
key: 1,
|
|
5542
5546
|
class: "tao-color-picker__channels"
|
|
5543
5547
|
};
|
|
5544
|
-
const
|
|
5545
|
-
const
|
|
5546
|
-
const
|
|
5548
|
+
const _hoisted_7$9 = ["disabled", "aria-label", "title"];
|
|
5549
|
+
const _hoisted_8$9 = ["aria-label"];
|
|
5550
|
+
const _hoisted_9$4 = ["disabled", "aria-label", "title", "onClick"];
|
|
5547
5551
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
5548
5552
|
...{ name: "TaoColorPicker" },
|
|
5549
5553
|
__name: "TaoColorPicker",
|
|
@@ -5807,18 +5811,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
5807
5811
|
style: normalizeStyle({ backgroundColor: hex.value })
|
|
5808
5812
|
}, null, 4)
|
|
5809
5813
|
]),
|
|
5810
|
-
activeMode.value === "hex" ? (openBlock(),
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5814
|
+
activeMode.value === "hex" ? (openBlock(), createElementBlock("label", _hoisted_5$e, [
|
|
5815
|
+
_cache[6] || (_cache[6] = createElementVNode("span", null, "HEX", -1)),
|
|
5816
|
+
createVNode(TaoInput, {
|
|
5817
|
+
modelValue: hexText.value,
|
|
5818
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => hexText.value = $event),
|
|
5819
|
+
size: "small",
|
|
5820
|
+
error: hexInvalid.value,
|
|
5821
|
+
disabled: __props.disabled,
|
|
5822
|
+
"aria-label": unref(l10n).hexLabel,
|
|
5823
|
+
onBlur: commitHex,
|
|
5824
|
+
onKeydown: withKeys(commitHex, ["enter"])
|
|
5825
|
+
}, null, 8, ["modelValue", "error", "disabled", "aria-label"])
|
|
5826
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
5822
5827
|
(openBlock(true), createElementBlock(Fragment, null, renderList(channels.value, (c) => {
|
|
5823
5828
|
return openBlock(), createElementBlock("label", {
|
|
5824
5829
|
key: c.key,
|
|
@@ -5846,7 +5851,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
5846
5851
|
"aria-label": unref(l10n).eyedropperLabel,
|
|
5847
5852
|
title: unref(l10n).eyedropperLabel,
|
|
5848
5853
|
onClick: eyedrop
|
|
5849
|
-
}, " ✎ ", 8,
|
|
5854
|
+
}, " ✎ ", 8, _hoisted_7$9)) : createCommentVNode("", true)
|
|
5850
5855
|
]),
|
|
5851
5856
|
((_a = __props.swatches) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", {
|
|
5852
5857
|
key: 1,
|
|
@@ -5864,14 +5869,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
5864
5869
|
"aria-label": s,
|
|
5865
5870
|
title: s,
|
|
5866
5871
|
onClick: ($event) => pick(s)
|
|
5867
|
-
}, null, 14,
|
|
5872
|
+
}, null, 14, _hoisted_9$4);
|
|
5868
5873
|
}), 128))
|
|
5869
|
-
], 8,
|
|
5874
|
+
], 8, _hoisted_8$9)) : createCommentVNode("", true)
|
|
5870
5875
|
], 2);
|
|
5871
5876
|
};
|
|
5872
5877
|
}
|
|
5873
5878
|
});
|
|
5874
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
5879
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bebf52dc"]]);
|
|
5875
5880
|
const _hoisted_1$m = ["disabled", "aria-label", "aria-expanded"];
|
|
5876
5881
|
const _hoisted_2$k = { class: "tao-color-input__swatch" };
|
|
5877
5882
|
const _hoisted_3$h = { class: "tao-color-input__text" };
|
|
@@ -8605,7 +8610,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
8605
8610
|
};
|
|
8606
8611
|
}
|
|
8607
8612
|
});
|
|
8608
|
-
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
8613
|
+
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0d301b76"]]);
|
|
8609
8614
|
const _hoisted_1$6 = ["aria-label"];
|
|
8610
8615
|
const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
|
|
8611
8616
|
const _hoisted_3$4 = {
|
|
@@ -9446,7 +9451,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
9446
9451
|
};
|
|
9447
9452
|
}
|
|
9448
9453
|
});
|
|
9449
|
-
const TaoStages = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
9454
|
+
const TaoStages = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-f0601921"]]);
|
|
9450
9455
|
const _hoisted_1$2 = ["role"];
|
|
9451
9456
|
const _hoisted_2$1 = {
|
|
9452
9457
|
class: "tao-toast__icon",
|
|
@@ -9674,7 +9679,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
9674
9679
|
};
|
|
9675
9680
|
}
|
|
9676
9681
|
});
|
|
9677
|
-
const TaoToastItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
9682
|
+
const TaoToastItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-715f7748"]]);
|
|
9678
9683
|
const _hoisted_1$1 = { class: "tao-toast-slot__inner" };
|
|
9679
9684
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
9680
9685
|
...{ name: "TaoToastViewport" },
|
|
@@ -9906,7 +9911,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9906
9911
|
createElementVNode("div", _hoisted_8, [
|
|
9907
9912
|
createVNode(TaoButton, {
|
|
9908
9913
|
"data-tao-confirm-cancel": "",
|
|
9909
|
-
variant: "
|
|
9914
|
+
variant: "ghost",
|
|
9915
|
+
tone: "neutral",
|
|
9910
9916
|
onClick: _cache[0] || (_cache[0] = ($event) => answer(false))
|
|
9911
9917
|
}, {
|
|
9912
9918
|
default: withCtx(() => [
|
|
@@ -9934,7 +9940,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9934
9940
|
};
|
|
9935
9941
|
}
|
|
9936
9942
|
});
|
|
9937
|
-
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
9943
|
+
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-359ae029"]]);
|
|
9938
9944
|
const TYPE_TIMEOUT = {
|
|
9939
9945
|
success: 3e3,
|
|
9940
9946
|
error: 5e3,
|