@khipu/design-system 0.3.5-alpha.28 → 0.3.5-alpha.29

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@khipu/design-system/beercss",
3
- "version": "0.3.5-alpha.28",
3
+ "version": "0.3.5-alpha.29",
4
4
  "description": "Khipu BeerCSS bundle with Material Design 3 and Khipu customizations",
5
- "buildDate": "2026-10-05T17:43:40.941Z",
5
+ "buildDate": "2026-10-05T18:10:37.326Z",
6
6
  "includes": {
7
7
  "beercss": "4.0.1",
8
8
  "khipu-tokens": "latest",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "scopeClass": ".kds-theme-root",
21
21
  "cdn": {
22
- "css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.28/dist/beercss/khipu-beercss.min.css",
23
- "cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.28/dist/beercss/khipu-beercss.scoped.min.css",
24
- "js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.28/dist/beercss/khipu-beercss.min.js"
22
+ "css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.29/dist/beercss/khipu-beercss.min.css",
23
+ "cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.29/dist/beercss/khipu-beercss.scoped.min.css",
24
+ "js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.29/dist/beercss/khipu-beercss.min.js"
25
25
  }
26
26
  }
package/dist/index.d.mts CHANGED
@@ -29,7 +29,7 @@ interface KdsThemeProviderProps {
29
29
  */
30
30
  declare function KdsThemeProvider({ primaryColor, mode, children }: KdsThemeProviderProps): react_jsx_runtime.JSX.Element;
31
31
 
32
- declare const KDS_VERSION = "0.3.5-alpha.28";
32
+ declare const KDS_VERSION = "0.3.5-alpha.29";
33
33
 
34
34
  /**
35
35
  * Color tokens organized by theme mode
@@ -3185,6 +3185,10 @@ interface KdsStatusBlockProps extends React__default.HTMLAttributes<HTMLDivEleme
3185
3185
  * Texto descriptivo bajo el título. Acepta `ReactNode` para permitir énfasis
3186
3186
  * en línea (p.ej. un lead-in en `<strong>` seguido del detalle). Se renderiza
3187
3187
  * dentro de un `<p>`, así que usar solo contenido válido como hijo de párrafo.
3188
+ *
3189
+ * With `inline`, the description goes below the icon+title row as a full-width
3190
+ * paragraph (result screens), and the block owns the spacing around it: the
3191
+ * consumer does not add margins to the description or to what follows it.
3188
3192
  */
3189
3193
  description?: React__default.ReactNode;
3190
3194
  inline?: boolean;
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ interface KdsThemeProviderProps {
29
29
  */
30
30
  declare function KdsThemeProvider({ primaryColor, mode, children }: KdsThemeProviderProps): react_jsx_runtime.JSX.Element;
31
31
 
32
- declare const KDS_VERSION = "0.3.5-alpha.28";
32
+ declare const KDS_VERSION = "0.3.5-alpha.29";
33
33
 
34
34
  /**
35
35
  * Color tokens organized by theme mode
@@ -3185,6 +3185,10 @@ interface KdsStatusBlockProps extends React__default.HTMLAttributes<HTMLDivEleme
3185
3185
  * Texto descriptivo bajo el título. Acepta `ReactNode` para permitir énfasis
3186
3186
  * en línea (p.ej. un lead-in en `<strong>` seguido del detalle). Se renderiza
3187
3187
  * dentro de un `<p>`, así que usar solo contenido válido como hijo de párrafo.
3188
+ *
3189
+ * With `inline`, the description goes below the icon+title row as a full-width
3190
+ * paragraph (result screens), and the block owns the spacing around it: the
3191
+ * consumer does not add margins to the description or to what follows it.
3188
3192
  */
3189
3193
  description?: React__default.ReactNode;
3190
3194
  inline?: boolean;
package/dist/index.js CHANGED
@@ -200,7 +200,7 @@ function formatTime(iso) {
200
200
  }
201
201
 
202
202
  // src/version.ts
203
- var KDS_VERSION = "0.3.5-alpha.28";
203
+ var KDS_VERSION = "0.3.5-alpha.29";
204
204
 
205
205
  // src/theme/KdsThemeProvider.tsx
206
206
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -1965,13 +1965,32 @@ KdsSectionNote.displayName = "KdsSectionNote";
1965
1965
  var import_react24 = require("react");
1966
1966
  var import_jsx_runtime23 = require("react/jsx-runtime");
1967
1967
  var KdsStatusBlock = (0, import_react24.forwardRef)(
1968
- ({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-status-block", inline && "inline", className), "data-status": status, ...props, children: [
1969
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
1970
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1971
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h2", { className: "kds-status-block-title", children: title }),
1972
- description && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "kds-status-block-description", children: description })
1973
- ] })
1974
- ] })
1968
+ ({ status, icon, title, description, inline, className, ...props }, ref) => {
1969
+ const descriptionBelowRow = Boolean(inline && description);
1970
+ const descriptionNode = description ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "kds-status-block-description", children: description }) : null;
1971
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1972
+ "div",
1973
+ {
1974
+ ref,
1975
+ className: (0, import_clsx.clsx)(
1976
+ "kds-status-block",
1977
+ inline && "inline",
1978
+ descriptionBelowRow && "kds-status-block--described",
1979
+ className
1980
+ ),
1981
+ "data-status": status,
1982
+ ...props,
1983
+ children: [
1984
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
1985
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1986
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h2", { className: "kds-status-block-title", children: title }),
1987
+ !descriptionBelowRow && descriptionNode
1988
+ ] }),
1989
+ descriptionBelowRow && descriptionNode
1990
+ ]
1991
+ }
1992
+ );
1993
+ }
1975
1994
  );
1976
1995
  KdsStatusBlock.displayName = "KdsStatusBlock";
1977
1996
 
package/dist/index.mjs CHANGED
@@ -70,7 +70,7 @@ function formatTime(iso) {
70
70
  }
71
71
 
72
72
  // src/version.ts
73
- var KDS_VERSION = "0.3.5-alpha.28";
73
+ var KDS_VERSION = "0.3.5-alpha.29";
74
74
 
75
75
  // src/theme/KdsThemeProvider.tsx
76
76
  import { jsx } from "react/jsx-runtime";
@@ -1835,13 +1835,32 @@ KdsSectionNote.displayName = "KdsSectionNote";
1835
1835
  import { forwardRef as forwardRef21 } from "react";
1836
1836
  import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
1837
1837
  var KdsStatusBlock = forwardRef21(
1838
- ({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */ jsxs16("div", { ref, className: clsx("kds-status-block", inline && "inline", className), "data-status": status, ...props, children: [
1839
- /* @__PURE__ */ jsx23("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ jsx23("i", { className: "material-symbols-outlined", children: icon }) }),
1840
- /* @__PURE__ */ jsxs16("div", { children: [
1841
- /* @__PURE__ */ jsx23("h2", { className: "kds-status-block-title", children: title }),
1842
- description && /* @__PURE__ */ jsx23("p", { className: "kds-status-block-description", children: description })
1843
- ] })
1844
- ] })
1838
+ ({ status, icon, title, description, inline, className, ...props }, ref) => {
1839
+ const descriptionBelowRow = Boolean(inline && description);
1840
+ const descriptionNode = description ? /* @__PURE__ */ jsx23("p", { className: "kds-status-block-description", children: description }) : null;
1841
+ return /* @__PURE__ */ jsxs16(
1842
+ "div",
1843
+ {
1844
+ ref,
1845
+ className: clsx(
1846
+ "kds-status-block",
1847
+ inline && "inline",
1848
+ descriptionBelowRow && "kds-status-block--described",
1849
+ className
1850
+ ),
1851
+ "data-status": status,
1852
+ ...props,
1853
+ children: [
1854
+ /* @__PURE__ */ jsx23("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ jsx23("i", { className: "material-symbols-outlined", children: icon }) }),
1855
+ /* @__PURE__ */ jsxs16("div", { children: [
1856
+ /* @__PURE__ */ jsx23("h2", { className: "kds-status-block-title", children: title }),
1857
+ !descriptionBelowRow && descriptionNode
1858
+ ] }),
1859
+ descriptionBelowRow && descriptionNode
1860
+ ]
1861
+ }
1862
+ );
1863
+ }
1845
1864
  );
1846
1865
  KdsStatusBlock.displayName = "KdsStatusBlock";
1847
1866
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khipu/design-system",
3
- "version": "0.3.5-alpha.28",
3
+ "version": "0.3.5-alpha.29",
4
4
  "description": "Khipu Design System - UI components and design tokens for the Khipu payment platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",