@1337exp/taoui 1.8.0 → 1.9.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 +1 -1
- package/README.ru.md +1 -1
- package/dist/index.cjs +34 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.mjs +34 -17
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +72 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ change a handful of CSS variables and the whole kit follows.
|
|
|
29
29
|
- **TaoFlex** — flexbox wrapper: justify / align / direction / wrap / gap
|
|
30
30
|
- **TaoSpace** — even gap between children
|
|
31
31
|
- **TaoGrid** / **TaoGridItem** — tiles: `min` is a catalog (auto-fill), `cols` is bento. Item `col` / `row` span; below ~560px span resets. Not masonry
|
|
32
|
-
- **TaoDivider** — `
|
|
32
|
+
- **TaoDivider** — `solid` (plain border) / `dashed` / `colored` (accent) / `gap`. Optional `text` sits in the middle of any of them; `fade` softens the line ends; `size` is for `gap` (small / medium / large)
|
|
33
33
|
- **TaoSplit** — two panes and a gutter. `row` / `column` like Flex. `v-model` is the start size in `%` or `px`; `resizable="false"` locks the gutter. Not Divider.
|
|
34
34
|
- **TaoFieldset** — grouped frame: `legend` sits on the top border, `align` is start / center / end
|
|
35
35
|
- **TaoAnimatedBorder** — rainbow border wrapper (decorative, not tied to the theme)
|
package/README.ru.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
- **TaoFlex** — обёртка над flexbox с пропами justify/align/direction/wrap/gap
|
|
30
30
|
- **TaoSpace** — авто-расстановка дочерних элементов с равномерным gap
|
|
31
31
|
- **TaoGrid** / **TaoGridItem** — плитки: `min` — каталог (auto-fill), `cols` — bento. У item `col` / `row`; уже ~560px span сбрасывается. Не masonry
|
|
32
|
-
- **TaoDivider** —
|
|
32
|
+
- **TaoDivider** — `solid` (обычный border) / `dashed` / `colored` (акцент) / `gap`. Подпись — опциональный `text` на любом варианте; `fade` — плавные края линии; `size` только у `gap` (small / medium / large)
|
|
33
33
|
- **TaoSplit** — две панели и полоса. `row` / `column` как у Flex. `v-model` — размер start в `%` или `px`; `resizable="false"` фиксирует полосу. Не Divider.
|
|
34
34
|
- **TaoFieldset** — рамка-группа: `legend` сидит на верхней границе, `align` — start / center / end
|
|
35
35
|
- **TaoAnimatedBorder** — контейнер с анимированной радужной рамкой (декоративный, не завязан на тему)
|
package/dist/index.cjs
CHANGED
|
@@ -2463,40 +2463,57 @@
|
|
|
2463
2463
|
}
|
|
2464
2464
|
});
|
|
2465
2465
|
const TaoTag = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-f353f529"]]);
|
|
2466
|
-
const _hoisted_1$y =
|
|
2466
|
+
const _hoisted_1$y = ["role", "aria-hidden"];
|
|
2467
|
+
const _hoisted_2$v = {
|
|
2467
2468
|
key: 1,
|
|
2468
|
-
class: "tao-
|
|
2469
|
+
class: "tao-divider__text"
|
|
2469
2470
|
};
|
|
2470
|
-
const _hoisted_2$v = { class: "tao-divider-text__value" };
|
|
2471
2471
|
const _hoisted_3$o = {
|
|
2472
2472
|
key: 2,
|
|
2473
|
-
class: "tao-
|
|
2473
|
+
class: "tao-divider__line tao-divider__line--end"
|
|
2474
2474
|
};
|
|
2475
2475
|
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
2476
2476
|
...{ name: "TaoDivider" },
|
|
2477
2477
|
__name: "TaoDivider",
|
|
2478
2478
|
props: {
|
|
2479
|
-
variant: { default: "
|
|
2480
|
-
size: { default: "medium" }
|
|
2479
|
+
variant: { default: "solid" },
|
|
2480
|
+
size: { default: "medium" },
|
|
2481
|
+
text: { default: "" },
|
|
2482
|
+
fade: { type: Boolean, default: false }
|
|
2481
2483
|
},
|
|
2482
2484
|
setup(__props) {
|
|
2483
2485
|
const props = __props;
|
|
2486
|
+
const slots = vue.useSlots();
|
|
2484
2487
|
const gapSize = vue.computed(() => props.size === "big" ? "large" : props.size);
|
|
2488
|
+
const hasLabel = vue.computed(() => Boolean(props.text) || Boolean(slots.default));
|
|
2485
2489
|
return (_ctx, _cache) => {
|
|
2486
|
-
return
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2490
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2491
|
+
class: vue.normalizeClass(["tao-divider", [
|
|
2492
|
+
`tao-divider--${__props.variant}`,
|
|
2493
|
+
{
|
|
2494
|
+
"tao-divider--labeled": hasLabel.value,
|
|
2495
|
+
"tao-divider--fade": __props.fade && __props.variant !== "gap",
|
|
2496
|
+
[`tao-divider--gap-${gapSize.value}`]: __props.variant === "gap"
|
|
2497
|
+
}
|
|
2498
|
+
]]),
|
|
2499
|
+
role: __props.variant === "gap" && !hasLabel.value ? void 0 : "separator",
|
|
2500
|
+
"aria-hidden": __props.variant === "gap" && !hasLabel.value ? true : void 0
|
|
2501
|
+
}, [
|
|
2502
|
+
__props.variant !== "gap" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
2503
|
+
key: 0,
|
|
2504
|
+
class: vue.normalizeClass(["tao-divider__line", { "tao-divider__line--start": hasLabel.value }])
|
|
2505
|
+
}, null, 2)) : vue.createCommentVNode("", true),
|
|
2506
|
+
hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$v, [
|
|
2507
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2508
|
+
vue.createTextVNode(vue.toDisplayString(__props.text), 1)
|
|
2509
|
+
], true)
|
|
2510
|
+
])) : vue.createCommentVNode("", true),
|
|
2511
|
+
__props.variant !== "gap" && hasLabel.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o)) : vue.createCommentVNode("", true)
|
|
2512
|
+
], 10, _hoisted_1$y);
|
|
2496
2513
|
};
|
|
2497
2514
|
}
|
|
2498
2515
|
});
|
|
2499
|
-
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
2516
|
+
const TaoDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c1d072e5"]]);
|
|
2500
2517
|
const _hoisted_1$x = {
|
|
2501
2518
|
key: 0,
|
|
2502
2519
|
class: "tao-fieldset__legend"
|