@dmitriikapustin/ui 0.3.3 → 0.3.4

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/dist/index.cjs CHANGED
@@ -5517,7 +5517,7 @@ function ComparisonTable({ columns, rows, className = "" }) {
5517
5517
  "td",
5518
5518
  {
5519
5519
  className: cellClass,
5520
- children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.iconSuccess, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.iconMuted, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 18 }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.textValue, children: val })
5520
+ children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.iconSuccess, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.iconMuted, children: /* @__PURE__ */ jsxRuntime.jsx(IconlyClose, { size: 18 }) }) : typeof val === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: __default57.textValue, children: val }) : val
5521
5521
  },
5522
5522
  vi
5523
5523
  );
package/dist/index.d.cts CHANGED
@@ -715,7 +715,13 @@ interface ComparisonColumn {
715
715
  }
716
716
  interface ComparisonRow {
717
717
  feature: string;
718
- values: (boolean | string)[];
718
+ /**
719
+ * Значения колонок по порядку.
720
+ * - `boolean` — рендерится как ✓ (true) / ✗ (false) иконка.
721
+ * - `string` — рендерится как текст по центру (стилизация .textValue).
722
+ * - `ReactNode` (JSX) — рендерится as-is без обёртки. Use-case: CTA-row с `<Button>`, badges, иконки.
723
+ */
724
+ values: (boolean | string | ReactNode)[];
719
725
  }
720
726
  interface ComparisonTableProps {
721
727
  columns: ComparisonColumn[];
package/dist/index.d.ts CHANGED
@@ -715,7 +715,13 @@ interface ComparisonColumn {
715
715
  }
716
716
  interface ComparisonRow {
717
717
  feature: string;
718
- values: (boolean | string)[];
718
+ /**
719
+ * Значения колонок по порядку.
720
+ * - `boolean` — рендерится как ✓ (true) / ✗ (false) иконка.
721
+ * - `string` — рендерится как текст по центру (стилизация .textValue).
722
+ * - `ReactNode` (JSX) — рендерится as-is без обёртки. Use-case: CTA-row с `<Button>`, badges, иконки.
723
+ */
724
+ values: (boolean | string | ReactNode)[];
719
725
  }
720
726
  interface ComparisonTableProps {
721
727
  columns: ComparisonColumn[];
package/dist/index.js CHANGED
@@ -5511,7 +5511,7 @@ function ComparisonTable({ columns, rows, className = "" }) {
5511
5511
  "td",
5512
5512
  {
5513
5513
  className: cellClass,
5514
- children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsx("span", { className: __default57.iconSuccess, children: /* @__PURE__ */ jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsx("span", { className: __default57.iconMuted, children: /* @__PURE__ */ jsx(IconlyClose, { size: 18 }) }) : /* @__PURE__ */ jsx("span", { className: __default57.textValue, children: val })
5514
+ children: typeof val === "boolean" ? val ? /* @__PURE__ */ jsx("span", { className: __default57.iconSuccess, children: /* @__PURE__ */ jsx(IconlyCheck, { size: 18 }) }) : /* @__PURE__ */ jsx("span", { className: __default57.iconMuted, children: /* @__PURE__ */ jsx(IconlyClose, { size: 18 }) }) : typeof val === "string" ? /* @__PURE__ */ jsx("span", { className: __default57.textValue, children: val }) : val
5515
5515
  },
5516
5516
  vi
5517
5517
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmitriikapustin/ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Universal UI/UX Kit — React 19 component library with Atomic Design, CSS custom properties, and SCSS modules",
5
5
  "author": "Kapustin Team",
6
6
  "license": "MIT",