@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.cjs
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
return target;
|
|
83
83
|
};
|
|
84
|
-
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
84
|
+
const TaoButton = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2e564683"]]);
|
|
85
85
|
function toCssLength(value) {
|
|
86
86
|
if (value === void 0 || value === null || value === "") {
|
|
87
87
|
return void 0;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
|
-
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-
|
|
258
|
+
const TaoInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-0ea00845"]]);
|
|
259
259
|
const _hoisted_1$Q = {
|
|
260
260
|
key: 0,
|
|
261
261
|
class: "tao-input-group__addon tao-input-group__addon--before"
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
});
|
|
855
|
-
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-
|
|
855
|
+
const TaoInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3f4e6197"]]);
|
|
856
856
|
const _hoisted_1$O = ["aria-label", "disabled"];
|
|
857
857
|
const _hoisted_2$H = { "aria-hidden": "true" };
|
|
858
858
|
const _hoisted_3$z = ["id", "value", "disabled", "aria-invalid", "aria-describedby", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
@@ -1074,7 +1074,7 @@
|
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
class: "tao-card__sub"
|
|
1076
1076
|
};
|
|
1077
|
-
const _hoisted_9$
|
|
1077
|
+
const _hoisted_9$6 = {
|
|
1078
1078
|
key: 3,
|
|
1079
1079
|
class: "tao-card__body"
|
|
1080
1080
|
};
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
vue.renderSlot(_ctx.$slots, "sub", {}, void 0, true)
|
|
1160
1160
|
])) : vue.createCommentVNode("", true)
|
|
1161
1161
|
])) : vue.createCommentVNode("", true),
|
|
1162
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$
|
|
1162
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$6, [
|
|
1163
1163
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1164
1164
|
])) : vue.createCommentVNode("", true),
|
|
1165
1165
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$4, [
|
|
@@ -3519,7 +3519,7 @@
|
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
3521
|
});
|
|
3522
|
-
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-
|
|
3522
|
+
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-95e0dac5"]]);
|
|
3523
3523
|
const _hoisted_1$z = ["role", "aria-hidden"];
|
|
3524
3524
|
const _hoisted_2$w = {
|
|
3525
3525
|
key: 1,
|
|
@@ -3817,7 +3817,7 @@
|
|
|
3817
3817
|
};
|
|
3818
3818
|
}
|
|
3819
3819
|
});
|
|
3820
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
3820
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fb037862"]]);
|
|
3821
3821
|
const _hoisted_1$w = ["tabindex", "aria-label"];
|
|
3822
3822
|
const _hoisted_2$t = { class: "tao-scroll-top__content" };
|
|
3823
3823
|
const RIPPLE_DURATION = 750;
|
|
@@ -4100,7 +4100,7 @@
|
|
|
4100
4100
|
const _hoisted_6$d = { class: "tao-file-drop__name" };
|
|
4101
4101
|
const _hoisted_7$b = { class: "tao-file-drop__meta" };
|
|
4102
4102
|
const _hoisted_8$a = ["aria-label", "onClick"];
|
|
4103
|
-
const _hoisted_9$
|
|
4103
|
+
const _hoisted_9$5 = { "aria-hidden": "true" };
|
|
4104
4104
|
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
4105
4105
|
...{ name: "TaoFileDrop" },
|
|
4106
4106
|
__name: "TaoFileDrop",
|
|
@@ -4291,7 +4291,7 @@
|
|
|
4291
4291
|
"aria-label": vue.unref(l10n).removeLabel.replace("{name}", file.name),
|
|
4292
4292
|
onClick: ($event) => removeAt(index)
|
|
4293
4293
|
}, [
|
|
4294
|
-
vue.createElementVNode("span", _hoisted_9$
|
|
4294
|
+
vue.createElementVNode("span", _hoisted_9$5, [
|
|
4295
4295
|
vue.renderSlot(_ctx.$slots, "remove-icon", {}, () => [
|
|
4296
4296
|
_cache[2] || (_cache[2] = vue.createTextVNode("✕", -1))
|
|
4297
4297
|
], true)
|
|
@@ -4304,7 +4304,7 @@
|
|
|
4304
4304
|
};
|
|
4305
4305
|
}
|
|
4306
4306
|
});
|
|
4307
|
-
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
4307
|
+
const TaoFileDrop = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-5e6f74d1"]]);
|
|
4308
4308
|
const _hoisted_1$t = ["aria-expanded", "aria-label"];
|
|
4309
4309
|
const _hoisted_2$q = {
|
|
4310
4310
|
key: 1,
|
|
@@ -4901,7 +4901,7 @@
|
|
|
4901
4901
|
};
|
|
4902
4902
|
}
|
|
4903
4903
|
});
|
|
4904
|
-
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
4904
|
+
const TaoFormField = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f0778b06"]]);
|
|
4905
4905
|
const _hoisted_1$q = ["id", "aria-expanded", "aria-invalid", "aria-describedby", "disabled"];
|
|
4906
4906
|
const _hoisted_2$o = { class: "tao-select__value" };
|
|
4907
4907
|
const _hoisted_3$k = ["aria-activedescendant"];
|
|
@@ -5541,12 +5541,16 @@
|
|
|
5541
5541
|
const _hoisted_3$i = { class: "tao-color-picker__row" };
|
|
5542
5542
|
const _hoisted_4$g = { class: "tao-color-picker__preview" };
|
|
5543
5543
|
const _hoisted_5$e = {
|
|
5544
|
+
key: 0,
|
|
5545
|
+
class: "tao-color-picker__hex"
|
|
5546
|
+
};
|
|
5547
|
+
const _hoisted_6$b = {
|
|
5544
5548
|
key: 1,
|
|
5545
5549
|
class: "tao-color-picker__channels"
|
|
5546
5550
|
};
|
|
5547
|
-
const
|
|
5548
|
-
const
|
|
5549
|
-
const
|
|
5551
|
+
const _hoisted_7$9 = ["disabled", "aria-label", "title"];
|
|
5552
|
+
const _hoisted_8$9 = ["aria-label"];
|
|
5553
|
+
const _hoisted_9$4 = ["disabled", "aria-label", "title", "onClick"];
|
|
5550
5554
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
5551
5555
|
...{ name: "TaoColorPicker" },
|
|
5552
5556
|
__name: "TaoColorPicker",
|
|
@@ -5810,18 +5814,19 @@
|
|
|
5810
5814
|
style: vue.normalizeStyle({ backgroundColor: hex.value })
|
|
5811
5815
|
}, null, 4)
|
|
5812
5816
|
]),
|
|
5813
|
-
activeMode.value === "hex" ? (vue.openBlock(), vue.
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5817
|
+
activeMode.value === "hex" ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_5$e, [
|
|
5818
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("span", null, "HEX", -1)),
|
|
5819
|
+
vue.createVNode(TaoInput, {
|
|
5820
|
+
modelValue: hexText.value,
|
|
5821
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => hexText.value = $event),
|
|
5822
|
+
size: "small",
|
|
5823
|
+
error: hexInvalid.value,
|
|
5824
|
+
disabled: __props.disabled,
|
|
5825
|
+
"aria-label": vue.unref(l10n).hexLabel,
|
|
5826
|
+
onBlur: commitHex,
|
|
5827
|
+
onKeydown: vue.withKeys(commitHex, ["enter"])
|
|
5828
|
+
}, null, 8, ["modelValue", "error", "disabled", "aria-label"])
|
|
5829
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$b, [
|
|
5825
5830
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(channels.value, (c) => {
|
|
5826
5831
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
5827
5832
|
key: c.key,
|
|
@@ -5849,7 +5854,7 @@
|
|
|
5849
5854
|
"aria-label": vue.unref(l10n).eyedropperLabel,
|
|
5850
5855
|
title: vue.unref(l10n).eyedropperLabel,
|
|
5851
5856
|
onClick: eyedrop
|
|
5852
|
-
}, " ✎ ", 8,
|
|
5857
|
+
}, " ✎ ", 8, _hoisted_7$9)) : vue.createCommentVNode("", true)
|
|
5853
5858
|
]),
|
|
5854
5859
|
((_a = __props.swatches) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5855
5860
|
key: 1,
|
|
@@ -5867,14 +5872,14 @@
|
|
|
5867
5872
|
"aria-label": s,
|
|
5868
5873
|
title: s,
|
|
5869
5874
|
onClick: ($event) => pick(s)
|
|
5870
|
-
}, null, 14,
|
|
5875
|
+
}, null, 14, _hoisted_9$4);
|
|
5871
5876
|
}), 128))
|
|
5872
|
-
], 8,
|
|
5877
|
+
], 8, _hoisted_8$9)) : vue.createCommentVNode("", true)
|
|
5873
5878
|
], 2);
|
|
5874
5879
|
};
|
|
5875
5880
|
}
|
|
5876
5881
|
});
|
|
5877
|
-
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
5882
|
+
const TaoColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bebf52dc"]]);
|
|
5878
5883
|
const _hoisted_1$m = ["disabled", "aria-label", "aria-expanded"];
|
|
5879
5884
|
const _hoisted_2$k = { class: "tao-color-input__swatch" };
|
|
5880
5885
|
const _hoisted_3$h = { class: "tao-color-input__text" };
|
|
@@ -8608,7 +8613,7 @@
|
|
|
8608
8613
|
};
|
|
8609
8614
|
}
|
|
8610
8615
|
});
|
|
8611
|
-
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
8616
|
+
const TaoAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0d301b76"]]);
|
|
8612
8617
|
const _hoisted_1$6 = ["aria-label"];
|
|
8613
8618
|
const _hoisted_2$5 = { class: "tao-breadcrumb__list" };
|
|
8614
8619
|
const _hoisted_3$4 = {
|
|
@@ -9449,7 +9454,7 @@
|
|
|
9449
9454
|
};
|
|
9450
9455
|
}
|
|
9451
9456
|
});
|
|
9452
|
-
const TaoStages = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
9457
|
+
const TaoStages = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-f0601921"]]);
|
|
9453
9458
|
const _hoisted_1$2 = ["role"];
|
|
9454
9459
|
const _hoisted_2$1 = {
|
|
9455
9460
|
class: "tao-toast__icon",
|
|
@@ -9677,7 +9682,7 @@
|
|
|
9677
9682
|
};
|
|
9678
9683
|
}
|
|
9679
9684
|
});
|
|
9680
|
-
const TaoToastItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
9685
|
+
const TaoToastItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-715f7748"]]);
|
|
9681
9686
|
const _hoisted_1$1 = { class: "tao-toast-slot__inner" };
|
|
9682
9687
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
9683
9688
|
...{ name: "TaoToastViewport" },
|
|
@@ -9909,7 +9914,8 @@
|
|
|
9909
9914
|
vue.createElementVNode("div", _hoisted_8, [
|
|
9910
9915
|
vue.createVNode(TaoButton, {
|
|
9911
9916
|
"data-tao-confirm-cancel": "",
|
|
9912
|
-
variant: "
|
|
9917
|
+
variant: "ghost",
|
|
9918
|
+
tone: "neutral",
|
|
9913
9919
|
onClick: _cache[0] || (_cache[0] = ($event) => answer(false))
|
|
9914
9920
|
}, {
|
|
9915
9921
|
default: vue.withCtx(() => [
|
|
@@ -9937,7 +9943,7 @@
|
|
|
9937
9943
|
};
|
|
9938
9944
|
}
|
|
9939
9945
|
});
|
|
9940
|
-
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
9946
|
+
const TaoConfirmHost = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-359ae029"]]);
|
|
9941
9947
|
const TYPE_TIMEOUT = {
|
|
9942
9948
|
success: 3e3,
|
|
9943
9949
|
error: 5e3,
|