@1337exp/taoui 5.0.0 → 5.1.1
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 +329 -314
- package/dist/index.d.ts +17 -0
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/references/components.md +1 -0
- package/src/styles/contexts/tone.css +3 -1
- package/src/styles/themes/dark.css +14 -8
- package/src/styles/themes/light.css +1 -0
- package/src/styles/tokens/primitives.css +7 -0
- package/src/styles/tokens/semantic.css +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1680,11 +1680,19 @@ disabled?: boolean;
|
|
|
1680
1680
|
error?: boolean;
|
|
1681
1681
|
/** Size, same scale as TaoButton; without it — the size of ancestors. / Размер, шкала как у TaoButton; без него — размер предков. */
|
|
1682
1682
|
size?: TaoSize;
|
|
1683
|
+
/**
|
|
1684
|
+
* The change is being applied (a request is on its way): a spinner on the thumb, a click does nothing, and it is
|
|
1685
|
+
* not greyed out like a disabled switch. A screen reader hears it busy.
|
|
1686
|
+
* Изменение применяется (запрос в пути): на бегунке крутится кольцо, щелчок ничего не делает, и переключатель не
|
|
1687
|
+
* гаснет, как недоступный. Скринридер слышит «занят».
|
|
1688
|
+
*/
|
|
1689
|
+
loading?: boolean;
|
|
1683
1690
|
}>, {
|
|
1684
1691
|
modelValue: boolean;
|
|
1685
1692
|
label: string;
|
|
1686
1693
|
disabled: boolean;
|
|
1687
1694
|
error: boolean;
|
|
1695
|
+
loading: boolean;
|
|
1688
1696
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1689
1697
|
change: (value: boolean) => void;
|
|
1690
1698
|
"update:modelValue": (value: boolean) => void;
|
|
@@ -1696,11 +1704,19 @@ disabled?: boolean;
|
|
|
1696
1704
|
error?: boolean;
|
|
1697
1705
|
/** Size, same scale as TaoButton; without it — the size of ancestors. / Размер, шкала как у TaoButton; без него — размер предков. */
|
|
1698
1706
|
size?: TaoSize;
|
|
1707
|
+
/**
|
|
1708
|
+
* The change is being applied (a request is on its way): a spinner on the thumb, a click does nothing, and it is
|
|
1709
|
+
* not greyed out like a disabled switch. A screen reader hears it busy.
|
|
1710
|
+
* Изменение применяется (запрос в пути): на бегунке крутится кольцо, щелчок ничего не делает, и переключатель не
|
|
1711
|
+
* гаснет, как недоступный. Скринридер слышит «занят».
|
|
1712
|
+
*/
|
|
1713
|
+
loading?: boolean;
|
|
1699
1714
|
}>, {
|
|
1700
1715
|
modelValue: boolean;
|
|
1701
1716
|
label: string;
|
|
1702
1717
|
disabled: boolean;
|
|
1703
1718
|
error: boolean;
|
|
1719
|
+
loading: boolean;
|
|
1704
1720
|
}>>> & Readonly<{
|
|
1705
1721
|
onChange?: ((value: boolean) => any) | undefined;
|
|
1706
1722
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -1708,6 +1724,7 @@ onChange?: ((value: boolean) => any) | undefined;
|
|
|
1708
1724
|
label: string;
|
|
1709
1725
|
disabled: boolean;
|
|
1710
1726
|
error: boolean;
|
|
1727
|
+
loading: boolean;
|
|
1711
1728
|
modelValue: boolean;
|
|
1712
1729
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1713
1730
|
|
package/dist/index.js
CHANGED
|
@@ -2043,7 +2043,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
2043
2043
|
};
|
|
2044
2044
|
}
|
|
2045
2045
|
});
|
|
2046
|
-
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-
|
|
2046
|
+
const TaoSliderBase = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-6085dc4f"]]);
|
|
2047
2047
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
2048
2048
|
...{ name: "TaoSlider" },
|
|
2049
2049
|
__name: "TaoSlider",
|
|
@@ -3036,7 +3036,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
3036
3036
|
savedBodyCursor = document.body.style.cursor;
|
|
3037
3037
|
savedHtmlCursor = document.documentElement.style.cursor;
|
|
3038
3038
|
savedUserSelect = document.body.style.userSelect;
|
|
3039
|
-
const cursor = isRow.value ? "
|
|
3039
|
+
const cursor = isRow.value ? "ew-resize" : "ns-resize";
|
|
3040
3040
|
document.body.style.cursor = cursor;
|
|
3041
3041
|
document.documentElement.style.cursor = cursor;
|
|
3042
3042
|
document.body.style.userSelect = "none";
|
|
@@ -3260,7 +3260,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
3260
3260
|
};
|
|
3261
3261
|
}
|
|
3262
3262
|
});
|
|
3263
|
-
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
3263
|
+
const TaoSplit = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-316b0d45"]]);
|
|
3264
3264
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
3265
3265
|
...{ name: "TaoLoader" },
|
|
3266
3266
|
__name: "TaoLoader",
|
|
@@ -4955,7 +4955,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4955
4955
|
};
|
|
4956
4956
|
}
|
|
4957
4957
|
});
|
|
4958
|
-
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
4958
|
+
const TaoMenubar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-9d46a2dc"]]);
|
|
4959
4959
|
const _hoisted_1$y = { class: "tao-nav__shell" };
|
|
4960
4960
|
const _hoisted_2$v = ["aria-label"];
|
|
4961
4961
|
const _hoisted_3$r = { class: "tao-nav__list" };
|
|
@@ -5487,7 +5487,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5487
5487
|
};
|
|
5488
5488
|
}
|
|
5489
5489
|
});
|
|
5490
|
-
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
5490
|
+
const TaoTree = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-cdbcd8e8"]]);
|
|
5491
5491
|
const _hoisted_1$w = ["id", "disabled", "aria-describedby", "aria-invalid", "aria-labelledby"];
|
|
5492
5492
|
const _hoisted_2$t = {
|
|
5493
5493
|
key: 0,
|
|
@@ -8424,7 +8424,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8424
8424
|
});
|
|
8425
8425
|
const TaoDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4f6bc7bf"]]);
|
|
8426
8426
|
const _hoisted_1$i = ["for"];
|
|
8427
|
-
const _hoisted_2$g = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby"];
|
|
8427
|
+
const _hoisted_2$g = ["id", "checked", "disabled", "aria-checked", "aria-invalid", "aria-describedby", "aria-busy"];
|
|
8428
8428
|
const _hoisted_3$d = {
|
|
8429
8429
|
key: 0,
|
|
8430
8430
|
class: "tao-switch__label"
|
|
@@ -8441,15 +8441,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8441
8441
|
label: { default: "" },
|
|
8442
8442
|
disabled: { type: Boolean, default: false },
|
|
8443
8443
|
error: { type: Boolean, default: false },
|
|
8444
|
-
size: {}
|
|
8444
|
+
size: {},
|
|
8445
|
+
loading: { type: Boolean, default: false }
|
|
8445
8446
|
},
|
|
8446
8447
|
emits: ["update:modelValue", "change"],
|
|
8447
8448
|
setup(__props, { emit: __emit }) {
|
|
8448
8449
|
const props = __props;
|
|
8449
8450
|
const emit = __emit;
|
|
8450
8451
|
const { controlId, invalid, describedBy } = useField(props);
|
|
8451
|
-
function toggle() {
|
|
8452
|
-
if (props.disabled) {
|
|
8452
|
+
function toggle(event) {
|
|
8453
|
+
if (props.disabled || props.loading) {
|
|
8454
|
+
if (event?.target instanceof HTMLInputElement) {
|
|
8455
|
+
event.target.checked = props.modelValue;
|
|
8456
|
+
}
|
|
8453
8457
|
return;
|
|
8454
8458
|
}
|
|
8455
8459
|
const next = !props.modelValue;
|
|
@@ -8458,7 +8462,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8458
8462
|
}
|
|
8459
8463
|
return (_ctx, _cache) => {
|
|
8460
8464
|
return openBlock(), createElementBlock("label", {
|
|
8461
|
-
class: normalizeClass(["tao-switch", [unref(sizeClass)(__props.size), { "tao-switch--disabled": __props.disabled, "tao-switch--on": __props.modelValue, "tao-switch--invalid": unref(invalid) }]]),
|
|
8465
|
+
class: normalizeClass(["tao-switch", [unref(sizeClass)(__props.size), { "tao-switch--disabled": __props.disabled, "tao-switch--on": __props.modelValue, "tao-switch--invalid": unref(invalid), "tao-switch--loading": __props.loading }]]),
|
|
8462
8466
|
for: unref(controlId)
|
|
8463
8467
|
}, [
|
|
8464
8468
|
createElementVNode("input", {
|
|
@@ -8471,6 +8475,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8471
8475
|
"aria-checked": __props.modelValue,
|
|
8472
8476
|
"aria-invalid": unref(invalid) || void 0,
|
|
8473
8477
|
"aria-describedby": unref(describedBy),
|
|
8478
|
+
"aria-busy": __props.loading || void 0,
|
|
8474
8479
|
onChange: toggle
|
|
8475
8480
|
}, null, 40, _hoisted_2$g),
|
|
8476
8481
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
@@ -8486,7 +8491,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
8486
8491
|
};
|
|
8487
8492
|
}
|
|
8488
8493
|
});
|
|
8489
|
-
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
8494
|
+
const TaoSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-fc2a8d88"]]);
|
|
8490
8495
|
const radioGroupKey = Symbol("taoRadioGroup");
|
|
8491
8496
|
const _hoisted_1$h = ["for"];
|
|
8492
8497
|
const _hoisted_2$f = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-describedby"];
|