@khipu/design-system 0.3.5-alpha.3 → 0.3.5-alpha.30

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.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ KDS_VERSION: () => KDS_VERSION,
33
34
  KdsAccordion: () => KdsAccordion,
34
35
  KdsAccordionDetails: () => KdsAccordionDetails,
35
36
  KdsAccordionSummary: () => KdsAccordionSummary,
@@ -54,9 +55,11 @@ __export(index_exports, {
54
55
  KdsCopyableTable: () => KdsCopyableTable,
55
56
  KdsCountdown: () => KdsCountdown,
56
57
  KdsDivider: () => KdsDivider,
58
+ KdsDocumentFrame: () => KdsDocumentFrame,
57
59
  KdsEmptyState: () => KdsEmptyState,
58
60
  KdsExpandPanel: () => KdsExpandPanel,
59
61
  KdsFab: () => KdsFab,
62
+ KdsInvoiceHeaderSkeleton: () => KdsInvoiceHeaderSkeleton,
60
63
  KdsInvoiceMerchant: () => KdsInvoiceMerchant,
61
64
  KdsInvoiceSticky: () => KdsInvoiceSticky,
62
65
  KdsLinearProgress: () => KdsLinearProgress,
@@ -126,9 +129,6 @@ __export(index_exports, {
126
129
  });
127
130
  module.exports = __toCommonJS(index_exports);
128
131
 
129
- // src/theme/KdsThemeProvider.tsx
130
- var import_react = require("react");
131
-
132
132
  // src/components/core/utils.ts
133
133
  var import_clsx = require("clsx");
134
134
  function hexToRgb(hex) {
@@ -200,79 +200,28 @@ function formatTime(iso) {
200
200
  return `${pad(date.getHours())}:${pad(date.getMinutes())}`;
201
201
  }
202
202
 
203
+ // src/version.ts
204
+ var KDS_VERSION = "0.3.5-alpha.30";
205
+
203
206
  // src/theme/KdsThemeProvider.tsx
204
207
  var import_jsx_runtime = require("react/jsx-runtime");
205
- var CARD_MIN_DELTA_PX = 8;
206
- var CARD_TRANSITION_MS = 280;
207
- var BODY_CARD_SELECTOR = ".kds-screen > .kds-card-elevated";
208
- var CARD_MARK_ATTRIBUTE = "data-kds-height-transition";
209
- function useCardHeightTransition() {
210
- (0, import_react.useEffect)(() => {
211
- if (typeof window === "undefined" || typeof ResizeObserver === "undefined") {
212
- return;
213
- }
214
- if (typeof Element.prototype.animate !== "function") {
215
- return;
216
- }
217
- if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
218
- return;
219
- }
220
- const observers = [];
221
- const observe = (card) => {
222
- if (card.getAttribute(CARD_MARK_ATTRIBUTE) === "on") {
223
- return;
224
- }
225
- card.setAttribute(CARD_MARK_ATTRIBUTE, "on");
226
- let previous = card.offsetHeight;
227
- let animating = false;
228
- const observer = new ResizeObserver(() => {
229
- if (animating) {
230
- return;
231
- }
232
- const next = card.offsetHeight;
233
- if (Math.abs(next - previous) < CARD_MIN_DELTA_PX) {
234
- previous = next;
235
- return;
236
- }
237
- animating = true;
238
- const animation = card.animate(
239
- [{ height: `${previous}px` }, { height: `${next}px` }],
240
- { duration: CARD_TRANSITION_MS, easing: "ease-out" }
241
- );
242
- previous = next;
243
- animation.finished.then(() => {
244
- animating = false;
245
- previous = card.offsetHeight;
246
- }).catch(() => {
247
- animating = false;
248
- });
249
- });
250
- observer.observe(card);
251
- observers.push(observer);
252
- };
253
- document.querySelectorAll(BODY_CARD_SELECTOR).forEach(observe);
254
- const tree = new MutationObserver(() => {
255
- document.querySelectorAll(BODY_CARD_SELECTOR).forEach(observe);
256
- });
257
- tree.observe(document.body, { childList: true, subtree: true });
258
- return () => {
259
- tree.disconnect();
260
- observers.forEach((observer) => observer.disconnect());
261
- document.querySelectorAll(BODY_CARD_SELECTOR).forEach((card) => {
262
- card.removeAttribute(CARD_MARK_ATTRIBUTE);
263
- });
264
- };
265
- }, []);
266
- }
267
208
  function KdsThemeProvider({ primaryColor, mode = "light", children }) {
268
- useCardHeightTransition();
269
209
  const style = primaryColor ? {
270
210
  "--primary": primaryColor,
271
211
  "--on-primary": getContrastColor(primaryColor),
272
212
  "--primary-container": lighten(primaryColor, 0.85),
273
213
  "--on-primary-container": primaryColor
274
214
  } : void 0;
275
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `kds-theme-root ${mode}`, "data-theme": mode, style, children });
215
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
216
+ "div",
217
+ {
218
+ className: `kds-theme-root ${mode}`,
219
+ "data-theme": mode,
220
+ "data-kds-version": KDS_VERSION,
221
+ style,
222
+ children
223
+ }
224
+ );
276
225
  }
277
226
 
278
227
  // src/tokens/index.ts
@@ -1247,9 +1196,9 @@ var tokens = {
1247
1196
  };
1248
1197
 
1249
1198
  // src/components/core/KdsButton/KdsButton.tsx
1250
- var import_react2 = require("react");
1199
+ var import_react = require("react");
1251
1200
  var import_jsx_runtime2 = require("react/jsx-runtime");
1252
- var KdsButton = (0, import_react2.forwardRef)(
1201
+ var KdsButton = (0, import_react.forwardRef)(
1253
1202
  ({
1254
1203
  variant = "primary",
1255
1204
  size,
@@ -1293,9 +1242,9 @@ var KdsButton = (0, import_react2.forwardRef)(
1293
1242
  KdsButton.displayName = "KdsButton";
1294
1243
 
1295
1244
  // src/components/core/KdsTextField/KdsTextField.tsx
1296
- var import_react3 = require("react");
1245
+ var import_react2 = require("react");
1297
1246
  var import_jsx_runtime3 = require("react/jsx-runtime");
1298
- var KdsTextField = (0, import_react3.forwardRef)(
1247
+ var KdsTextField = (0, import_react2.forwardRef)(
1299
1248
  ({
1300
1249
  label,
1301
1250
  helperText,
@@ -1314,7 +1263,7 @@ var KdsTextField = (0, import_react3.forwardRef)(
1314
1263
  requiredMark = true,
1315
1264
  ...props
1316
1265
  }, ref) => {
1317
- const [revealed, setRevealed] = (0, import_react3.useState)(false);
1266
+ const [revealed, setRevealed] = (0, import_react2.useState)(false);
1318
1267
  const fieldId = id || `kds-field-${label.toLowerCase().replace(/\s+/g, "-")}`;
1319
1268
  const isRevealable = !!revealable && !readOnly && !props.disabled;
1320
1269
  const inputType = isRevealable ? revealed ? "text" : "password" : type;
@@ -1383,9 +1332,9 @@ var KdsTextField = (0, import_react3.forwardRef)(
1383
1332
  KdsTextField.displayName = "KdsTextField";
1384
1333
 
1385
1334
  // src/components/core/KdsSearchField/KdsSearchField.tsx
1386
- var import_react4 = require("react");
1335
+ var import_react3 = require("react");
1387
1336
  var import_jsx_runtime4 = require("react/jsx-runtime");
1388
- var KdsSearchField = (0, import_react4.forwardRef)(
1337
+ var KdsSearchField = (0, import_react3.forwardRef)(
1389
1338
  ({ className, withIcon = false, ...props }, ref) => {
1390
1339
  const input = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1391
1340
  "input",
@@ -1408,9 +1357,9 @@ var KdsSearchField = (0, import_react4.forwardRef)(
1408
1357
  KdsSearchField.displayName = "KdsSearchField";
1409
1358
 
1410
1359
  // src/components/core/KdsCheckbox/KdsCheckbox.tsx
1411
- var import_react5 = require("react");
1360
+ var import_react4 = require("react");
1412
1361
  var import_jsx_runtime5 = require("react/jsx-runtime");
1413
- var KdsCheckbox = (0, import_react5.forwardRef)(
1362
+ var KdsCheckbox = (0, import_react4.forwardRef)(
1414
1363
  ({ label, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: (0, import_clsx.clsx)("checkbox", className), children: [
1415
1364
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("input", { ref, type: "checkbox", ...props }),
1416
1365
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: label })
@@ -1419,9 +1368,9 @@ var KdsCheckbox = (0, import_react5.forwardRef)(
1419
1368
  KdsCheckbox.displayName = "KdsCheckbox";
1420
1369
 
1421
1370
  // src/components/core/KdsCard/KdsCard.tsx
1422
- var import_react6 = require("react");
1371
+ var import_react5 = require("react");
1423
1372
  var import_jsx_runtime6 = require("react/jsx-runtime");
1424
- var KdsCard = (0, import_react6.forwardRef)(
1373
+ var KdsCard = (0, import_react5.forwardRef)(
1425
1374
  ({ variant = "elevated", dimmed, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1426
1375
  "article",
1427
1376
  {
@@ -1437,28 +1386,28 @@ var KdsCard = (0, import_react6.forwardRef)(
1437
1386
  )
1438
1387
  );
1439
1388
  KdsCard.displayName = "KdsCard";
1440
- var KdsCardHeader = (0, import_react6.forwardRef)(
1389
+ var KdsCardHeader = (0, import_react5.forwardRef)(
1441
1390
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-header", className), ...props, children })
1442
1391
  );
1443
1392
  KdsCardHeader.displayName = "KdsCardHeader";
1444
- var KdsCardBody = (0, import_react6.forwardRef)(
1393
+ var KdsCardBody = (0, import_react5.forwardRef)(
1445
1394
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-body", className), ...props, children })
1446
1395
  );
1447
1396
  KdsCardBody.displayName = "KdsCardBody";
1448
- var KdsCardFooter = (0, import_react6.forwardRef)(
1397
+ var KdsCardFooter = (0, import_react5.forwardRef)(
1449
1398
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-footer", className), ...props, children })
1450
1399
  );
1451
1400
  KdsCardFooter.displayName = "KdsCardFooter";
1452
1401
 
1453
1402
  // src/components/core/KdsSpinner/KdsSpinner.tsx
1454
- var import_react7 = require("react");
1403
+ var import_react6 = require("react");
1455
1404
  var import_jsx_runtime7 = require("react/jsx-runtime");
1456
1405
  var SIZE_CLASS = {
1457
1406
  small: "small",
1458
1407
  medium: null,
1459
1408
  large: "large"
1460
1409
  };
1461
- var KdsSpinner = (0, import_react7.forwardRef)(
1410
+ var KdsSpinner = (0, import_react6.forwardRef)(
1462
1411
  ({ size = "medium", label, className, ...props }, ref) => {
1463
1412
  const sizeClass = SIZE_CLASS[size];
1464
1413
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
@@ -1480,9 +1429,9 @@ var KdsSpinner = (0, import_react7.forwardRef)(
1480
1429
  KdsSpinner.displayName = "KdsSpinner";
1481
1430
 
1482
1431
  // src/components/core/KdsSecureLoader/KdsSecureLoader.tsx
1483
- var import_react8 = require("react");
1432
+ var import_react7 = require("react");
1484
1433
  var import_jsx_runtime8 = require("react/jsx-runtime");
1485
- var KdsSecureLoader = (0, import_react8.forwardRef)(
1434
+ var KdsSecureLoader = (0, import_react7.forwardRef)(
1486
1435
  ({ title, message, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-secure-loader", className), role: "status", "aria-busy": "true", ...props, children: [
1487
1436
  (title || message) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "kds-secure-loader-text", children: [
1488
1437
  title && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "kds-secure-loader-title", children: title }),
@@ -1508,13 +1457,13 @@ var KdsSecureLoader = (0, import_react8.forwardRef)(
1508
1457
  KdsSecureLoader.displayName = "KdsSecureLoader";
1509
1458
 
1510
1459
  // src/components/core/KdsCopyButton/KdsCopyButton.tsx
1511
- var import_react10 = require("react");
1460
+ var import_react9 = require("react");
1512
1461
 
1513
1462
  // src/components/core/hooks/useCopyToClipboard.ts
1514
- var import_react9 = require("react");
1463
+ var import_react8 = require("react");
1515
1464
  function useCopyToClipboard(resetMs = 1200) {
1516
- const [copied, setCopied] = (0, import_react9.useState)(false);
1517
- const copy = (0, import_react9.useCallback)(
1465
+ const [copied, setCopied] = (0, import_react8.useState)(false);
1466
+ const copy = (0, import_react8.useCallback)(
1518
1467
  async (text) => {
1519
1468
  try {
1520
1469
  await navigator.clipboard.writeText(text);
@@ -1530,7 +1479,7 @@ function useCopyToClipboard(resetMs = 1200) {
1530
1479
 
1531
1480
  // src/components/core/KdsCopyButton/KdsCopyButton.tsx
1532
1481
  var import_jsx_runtime9 = require("react/jsx-runtime");
1533
- var KdsCopyButton = (0, import_react10.forwardRef)(
1482
+ var KdsCopyButton = (0, import_react9.forwardRef)(
1534
1483
  ({ value, copiedText = "Copiado", className, ...props }, ref) => {
1535
1484
  const { copied, copy } = useCopyToClipboard();
1536
1485
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
@@ -1556,15 +1505,15 @@ var KdsCopyButton = (0, import_react10.forwardRef)(
1556
1505
  KdsCopyButton.displayName = "KdsCopyButton";
1557
1506
 
1558
1507
  // src/components/core/KdsLinearProgress/KdsLinearProgress.tsx
1559
- var import_react11 = require("react");
1508
+ var import_react10 = require("react");
1560
1509
  var import_jsx_runtime10 = require("react/jsx-runtime");
1561
- var KdsLinearProgress = (0, import_react11.forwardRef)(
1510
+ var KdsLinearProgress = (0, import_react10.forwardRef)(
1562
1511
  ({ value, max = 100, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("progress", { ref, className: (0, import_clsx.clsx)("kds-progress", className), value, max, ...props })
1563
1512
  );
1564
1513
  KdsLinearProgress.displayName = "KdsLinearProgress";
1565
1514
 
1566
1515
  // src/components/core/KdsAlert/KdsAlert.tsx
1567
- var import_react12 = require("react");
1516
+ var import_react11 = require("react");
1568
1517
  var import_jsx_runtime11 = require("react/jsx-runtime");
1569
1518
  var DEFAULT_ICONS = {
1570
1519
  success: "check_circle",
@@ -1572,7 +1521,7 @@ var DEFAULT_ICONS = {
1572
1521
  warning: "warning",
1573
1522
  error: "error"
1574
1523
  };
1575
- var KdsAlert = (0, import_react12.forwardRef)(
1524
+ var KdsAlert = (0, import_react11.forwardRef)(
1576
1525
  ({ severity, title, icon, inline, onClose, children, className, ...props }, ref) => {
1577
1526
  const resolvedIcon = icon === false ? null : typeof icon === "string" ? icon : DEFAULT_ICONS[severity];
1578
1527
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
@@ -1606,7 +1555,7 @@ var KdsAlert = (0, import_react12.forwardRef)(
1606
1555
  KdsAlert.displayName = "KdsAlert";
1607
1556
 
1608
1557
  // src/components/core/KdsTypography/KdsTypography.tsx
1609
- var import_react13 = require("react");
1558
+ var import_react12 = require("react");
1610
1559
  var import_jsx_runtime12 = require("react/jsx-runtime");
1611
1560
  var variantTag = {
1612
1561
  display1: "h1",
@@ -1627,7 +1576,7 @@ var variantTag = {
1627
1576
  link: "span",
1628
1577
  strong: "span"
1629
1578
  };
1630
- var KdsTypography = (0, import_react13.forwardRef)(
1579
+ var KdsTypography = (0, import_react12.forwardRef)(
1631
1580
  ({ variant = "body", color, as, children, className, ...props }, ref) => {
1632
1581
  const Tag = as || variantTag[variant];
1633
1582
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -1648,12 +1597,12 @@ var KdsTypography = (0, import_react13.forwardRef)(
1648
1597
  KdsTypography.displayName = "KdsTypography";
1649
1598
 
1650
1599
  // src/components/core/KdsTabs/KdsTabs.tsx
1651
- var import_react15 = __toESM(require("react"));
1600
+ var import_react14 = __toESM(require("react"));
1652
1601
 
1653
1602
  // src/components/core/hooks/useTabsKeyboard.ts
1654
- var import_react14 = require("react");
1603
+ var import_react13 = require("react");
1655
1604
  function useTabsKeyboard(tabCount, activeIndex, onChange) {
1656
- const onKeyDown = (0, import_react14.useCallback)(
1605
+ const onKeyDown = (0, import_react13.useCallback)(
1657
1606
  (e) => {
1658
1607
  let next = activeIndex;
1659
1608
  if (e.key === "ArrowRight") next = (activeIndex + 1) % tabCount;
@@ -1674,11 +1623,11 @@ function useTabsKeyboard(tabCount, activeIndex, onChange) {
1674
1623
 
1675
1624
  // src/components/core/KdsTabs/KdsTabs.tsx
1676
1625
  var import_jsx_runtime13 = require("react/jsx-runtime");
1677
- var KdsTabs = (0, import_react15.forwardRef)(
1626
+ var KdsTabs = (0, import_react14.forwardRef)(
1678
1627
  ({ activeIndex, onChange, children, className, style, ...props }, ref) => {
1679
- const tabCount = import_react15.Children.count(children);
1628
+ const tabCount = import_react14.Children.count(children);
1680
1629
  const { onKeyDown } = useTabsKeyboard(tabCount, activeIndex, onChange);
1681
- const mergedStyle = (0, import_react15.useMemo)(
1630
+ const mergedStyle = (0, import_react14.useMemo)(
1682
1631
  () => ({
1683
1632
  ...style,
1684
1633
  "--_tab-count": tabCount,
@@ -1695,9 +1644,9 @@ var KdsTabs = (0, import_react15.forwardRef)(
1695
1644
  style: mergedStyle,
1696
1645
  onKeyDown,
1697
1646
  ...props,
1698
- children: import_react15.Children.map(children, (child, i) => {
1699
- if (!import_react15.default.isValidElement(child)) return child;
1700
- return import_react15.default.cloneElement(child, {
1647
+ children: import_react14.Children.map(children, (child, i) => {
1648
+ if (!import_react14.default.isValidElement(child)) return child;
1649
+ return import_react14.default.cloneElement(child, {
1701
1650
  _active: i === activeIndex,
1702
1651
  _onClick: () => onChange(i)
1703
1652
  });
@@ -1707,7 +1656,7 @@ var KdsTabs = (0, import_react15.forwardRef)(
1707
1656
  }
1708
1657
  );
1709
1658
  KdsTabs.displayName = "KdsTabs";
1710
- var KdsTab = (0, import_react15.forwardRef)(
1659
+ var KdsTab = (0, import_react14.forwardRef)(
1711
1660
  ({ _active, _onClick, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1712
1661
  "button",
1713
1662
  {
@@ -1724,7 +1673,7 @@ var KdsTab = (0, import_react15.forwardRef)(
1724
1673
  )
1725
1674
  );
1726
1675
  KdsTab.displayName = "KdsTab";
1727
- var KdsTabPanel = (0, import_react15.forwardRef)(
1676
+ var KdsTabPanel = (0, import_react14.forwardRef)(
1728
1677
  ({ active, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1729
1678
  "div",
1730
1679
  {
@@ -1740,9 +1689,9 @@ var KdsTabPanel = (0, import_react15.forwardRef)(
1740
1689
  KdsTabPanel.displayName = "KdsTabPanel";
1741
1690
 
1742
1691
  // src/components/core/KdsRadioGroup/KdsRadioGroup.tsx
1743
- var import_react16 = require("react");
1692
+ var import_react15 = require("react");
1744
1693
  var import_jsx_runtime14 = require("react/jsx-runtime");
1745
- var KdsRadioGroup = (0, import_react16.forwardRef)(
1694
+ var KdsRadioGroup = (0, import_react15.forwardRef)(
1746
1695
  ({ label, name, options, value, onChange, size, variant, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1747
1696
  "fieldset",
1748
1697
  {
@@ -1772,9 +1721,9 @@ var KdsRadioGroup = (0, import_react16.forwardRef)(
1772
1721
  KdsRadioGroup.displayName = "KdsRadioGroup";
1773
1722
 
1774
1723
  // src/components/core/KdsSelect/KdsSelect.tsx
1775
- var import_react17 = require("react");
1724
+ var import_react16 = require("react");
1776
1725
  var import_jsx_runtime15 = require("react/jsx-runtime");
1777
- var KdsSelect = (0, import_react17.forwardRef)(
1726
+ var KdsSelect = (0, import_react16.forwardRef)(
1778
1727
  ({
1779
1728
  label,
1780
1729
  options,
@@ -1831,9 +1780,9 @@ var KdsSelect = (0, import_react17.forwardRef)(
1831
1780
  KdsSelect.displayName = "KdsSelect";
1832
1781
 
1833
1782
  // src/components/core/KdsChip/KdsChip.tsx
1834
- var import_react18 = require("react");
1783
+ var import_react17 = require("react");
1835
1784
  var import_jsx_runtime16 = require("react/jsx-runtime");
1836
- var KdsChip = (0, import_react18.forwardRef)(
1785
+ var KdsChip = (0, import_react17.forwardRef)(
1837
1786
  ({ color, icon, onDelete, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { ref, className: (0, import_clsx.clsx)("kds-badge", color, className), ...props, children: [
1838
1787
  icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1839
1788
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children }),
@@ -1855,15 +1804,15 @@ var KdsChip = (0, import_react18.forwardRef)(
1855
1804
  KdsChip.displayName = "KdsChip";
1856
1805
 
1857
1806
  // src/components/core/KdsSnackbar/KdsSnackbar.tsx
1858
- var import_react20 = require("react");
1807
+ var import_react19 = require("react");
1859
1808
 
1860
1809
  // src/components/core/hooks/useAutoHide.ts
1861
- var import_react19 = require("react");
1810
+ var import_react18 = require("react");
1862
1811
  function useAutoHide(durationMs, onHide) {
1863
- const [visible, setVisible] = (0, import_react19.useState)(true);
1864
- const onHideRef = (0, import_react19.useRef)(onHide);
1812
+ const [visible, setVisible] = (0, import_react18.useState)(true);
1813
+ const onHideRef = (0, import_react18.useRef)(onHide);
1865
1814
  onHideRef.current = onHide;
1866
- (0, import_react19.useEffect)(() => {
1815
+ (0, import_react18.useEffect)(() => {
1867
1816
  if (durationMs <= 0) return;
1868
1817
  const timer = setTimeout(() => {
1869
1818
  setVisible(false);
@@ -1881,7 +1830,7 @@ var DEFAULT_ICONS2 = {
1881
1830
  success: "check_circle",
1882
1831
  error: "error"
1883
1832
  };
1884
- var KdsSnackbar = (0, import_react20.forwardRef)(
1833
+ var KdsSnackbar = (0, import_react19.forwardRef)(
1885
1834
  ({
1886
1835
  message,
1887
1836
  type = "info",
@@ -1959,68 +1908,104 @@ function KdsTooltip({
1959
1908
  }
1960
1909
 
1961
1910
  // src/components/core/KdsAccordion/KdsAccordion.tsx
1962
- var import_react21 = require("react");
1911
+ var import_react20 = require("react");
1963
1912
  var import_jsx_runtime19 = require("react/jsx-runtime");
1964
- var KdsAccordion = (0, import_react21.forwardRef)(
1913
+ var KdsAccordion = (0, import_react20.forwardRef)(
1965
1914
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("details", { ref, className: (0, import_clsx.clsx)("kds-accordion", className), ...props, children })
1966
1915
  );
1967
1916
  KdsAccordion.displayName = "KdsAccordion";
1968
- var KdsAccordionSummary = (0, import_react21.forwardRef)(
1917
+ var KdsAccordionSummary = (0, import_react20.forwardRef)(
1969
1918
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("summary", { ref, className: (0, import_clsx.clsx)("kds-accordion-summary", className), ...props, children: [
1970
1919
  children,
1971
1920
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("i", { className: "material-symbols-outlined", children: "expand_more" })
1972
1921
  ] })
1973
1922
  );
1974
1923
  KdsAccordionSummary.displayName = "KdsAccordionSummary";
1975
- var KdsAccordionDetails = (0, import_react21.forwardRef)(
1924
+ var KdsAccordionDetails = (0, import_react20.forwardRef)(
1976
1925
  ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-accordion-details", className), ...props, children })
1977
1926
  );
1978
1927
  KdsAccordionDetails.displayName = "KdsAccordionDetails";
1979
1928
 
1980
1929
  // src/components/core/KdsDivider/KdsDivider.tsx
1981
- var import_react22 = require("react");
1930
+ var import_react21 = require("react");
1982
1931
  var import_jsx_runtime20 = require("react/jsx-runtime");
1983
- var KdsDivider = (0, import_react22.forwardRef)(
1932
+ var KdsDivider = (0, import_react21.forwardRef)(
1984
1933
  ({ dashed, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("hr", { ref, className: (0, import_clsx.clsx)(dashed ? "kds-hr-dashed" : "kds-hr", className), ...props })
1985
1934
  );
1986
1935
  KdsDivider.displayName = "KdsDivider";
1987
1936
 
1937
+ // src/components/core/KdsDocumentFrame/KdsDocumentFrame.tsx
1938
+ var import_react22 = require("react");
1939
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1940
+ var KdsDocumentFrame = (0, import_react22.forwardRef)(
1941
+ ({ src, title, scale = 1, className, style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1942
+ "div",
1943
+ {
1944
+ ref,
1945
+ className: (0, import_clsx.clsx)("kds-document-frame", className),
1946
+ style: { "--kds-document-frame-scale": scale, ...style },
1947
+ ...props,
1948
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("iframe", { src, title })
1949
+ }
1950
+ )
1951
+ );
1952
+ KdsDocumentFrame.displayName = "KdsDocumentFrame";
1953
+
1988
1954
  // src/components/core/KdsSectionNote/KdsSectionNote.tsx
1989
1955
  var import_react23 = require("react");
1990
- var import_jsx_runtime21 = require("react/jsx-runtime");
1956
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1991
1957
  var KdsSectionNote = (0, import_react23.forwardRef)(
1992
- ({ icon = "info", children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { ref, className: (0, import_clsx.clsx)("kds-section-note", className), ...props, children: [
1993
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1994
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children })
1958
+ ({ icon = "info", children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("p", { ref, className: (0, import_clsx.clsx)("kds-section-note", className), ...props, children: [
1959
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1960
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children })
1995
1961
  ] })
1996
1962
  );
1997
1963
  KdsSectionNote.displayName = "KdsSectionNote";
1998
1964
 
1999
1965
  // src/components/core/KdsStatusBlock/KdsStatusBlock.tsx
2000
1966
  var import_react24 = require("react");
2001
- var import_jsx_runtime22 = require("react/jsx-runtime");
1967
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2002
1968
  var KdsStatusBlock = (0, import_react24.forwardRef)(
2003
- ({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-status-block", inline && "inline", className), "data-status": status, ...props, children: [
2004
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2005
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
2006
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "kds-status-block-title", children: title }),
2007
- description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "kds-status-block-description", children: description })
2008
- ] })
2009
- ] })
1969
+ ({ status, icon, title, description, inline, className, ...props }, ref) => {
1970
+ const descriptionBelowRow = Boolean(inline && description);
1971
+ const descriptionNode = description ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "kds-status-block-description", children: description }) : null;
1972
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1973
+ "div",
1974
+ {
1975
+ ref,
1976
+ className: (0, import_clsx.clsx)(
1977
+ "kds-status-block",
1978
+ inline && "inline",
1979
+ descriptionBelowRow && "kds-status-block--described",
1980
+ className
1981
+ ),
1982
+ "data-status": status,
1983
+ ...props,
1984
+ children: [
1985
+ /* @__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 }) }),
1986
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1987
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h2", { className: "kds-status-block-title", children: title }),
1988
+ !descriptionBelowRow && descriptionNode
1989
+ ] }),
1990
+ descriptionBelowRow && descriptionNode
1991
+ ]
1992
+ }
1993
+ );
1994
+ }
2010
1995
  );
2011
1996
  KdsStatusBlock.displayName = "KdsStatusBlock";
2012
1997
 
2013
1998
  // src/components/core/KdsStepper/KdsStepper.tsx
2014
1999
  var import_react25 = require("react");
2015
- var import_jsx_runtime23 = require("react/jsx-runtime");
2000
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2016
2001
  var KdsStepper = (0, import_react25.forwardRef)(
2017
- ({ steps, current, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2002
+ ({ steps, current, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2018
2003
  "div",
2019
2004
  {
2020
2005
  className: (0, import_clsx.clsx)("kds-step", i < current && "completed", i === current && "current"),
2021
2006
  children: [
2022
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-step-indicator" }),
2023
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-step-label", children: label })
2007
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "kds-step-indicator" }),
2008
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "kds-step-label", children: label })
2024
2009
  ]
2025
2010
  },
2026
2011
  `${i}-${label}`
@@ -2030,11 +2015,11 @@ KdsStepper.displayName = "KdsStepper";
2030
2015
 
2031
2016
  // src/components/core/KdsCopyRow/KdsCopyRow.tsx
2032
2017
  var import_react26 = require("react");
2033
- var import_jsx_runtime24 = require("react/jsx-runtime");
2018
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2034
2019
  var KdsCopyRow = (0, import_react26.forwardRef)(
2035
2020
  ({ label, value, copiedText = "Copiado", className, ...props }, ref) => {
2036
2021
  const { copied, copy } = useCopyToClipboard();
2037
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2022
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2038
2023
  "button",
2039
2024
  {
2040
2025
  ref,
@@ -2045,13 +2030,13 @@ var KdsCopyRow = (0, import_react26.forwardRef)(
2045
2030
  "aria-label": `Copiar ${label}: ${value}`,
2046
2031
  ...props,
2047
2032
  children: [
2048
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: "content_copy" }),
2049
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
2050
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-copy-row-label", children: label }),
2051
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-copy-row-value", children: value })
2033
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: "content_copy" }),
2034
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2035
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-copy-row-label", children: label }),
2036
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-copy-row-value", children: value })
2052
2037
  ] }),
2053
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "kds-copy-toast", "aria-hidden": "true", children: [
2054
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("i", { className: "material-symbols-outlined", children: "check_circle" }),
2038
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "kds-copy-toast", "aria-hidden": "true", children: [
2039
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("i", { className: "material-symbols-outlined", children: "check_circle" }),
2055
2040
  " ",
2056
2041
  copiedText
2057
2042
  ] })
@@ -2064,7 +2049,7 @@ KdsCopyRow.displayName = "KdsCopyRow";
2064
2049
 
2065
2050
  // src/components/core/KdsCopyableTable/KdsCopyableTable.tsx
2066
2051
  var import_react27 = require("react");
2067
- var import_jsx_runtime25 = require("react/jsx-runtime");
2052
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2068
2053
  async function copyToClipboard(text) {
2069
2054
  try {
2070
2055
  if (navigator.clipboard?.writeText) {
@@ -2096,18 +2081,18 @@ function GridVariant({
2096
2081
  forwardedRef,
2097
2082
  rest
2098
2083
  }) {
2099
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2084
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2100
2085
  "div",
2101
2086
  {
2102
2087
  ref: forwardedRef,
2103
2088
  className: (0, import_clsx.clsx)("kds-copyable-table", "kds-copyable-table--grid", className),
2104
2089
  ...rest,
2105
- children: gridRows.map((cells, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2090
+ children: gridRows.map((cells, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2106
2091
  "div",
2107
2092
  {
2108
2093
  className: "kds-copyable-table-row kds-copyable-table-row--grid",
2109
2094
  "data-testid": "kds-grid-row",
2110
- children: cells.map((text, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2095
+ children: cells.map((text, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2111
2096
  "span",
2112
2097
  {
2113
2098
  className: (0, import_clsx.clsx)("kds-grid-cell", disabled && "kds-grid-cell--disabled"),
@@ -2194,8 +2179,8 @@ function CopyableVariant({
2194
2179
  setTimeout(() => setAllCopied(false), 2e3);
2195
2180
  }
2196
2181
  };
2197
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
2198
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref: forwardedRef, className: (0, import_clsx.clsx)("kds-copyable-table", className), ...rest, children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2182
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
2183
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: forwardedRef, className: (0, import_clsx.clsx)("kds-copyable-table", className), ...rest, children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2199
2184
  "div",
2200
2185
  {
2201
2186
  className: (0, import_clsx.clsx)(
@@ -2214,13 +2199,13 @@ function CopyableVariant({
2214
2199
  },
2215
2200
  "aria-label": `Copiar ${row.label}: ${row.value}`,
2216
2201
  children: [
2217
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-key", children: row.label }),
2218
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-value", children: row.value })
2202
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "kds-key", children: row.label }),
2203
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "kds-value", children: row.value })
2219
2204
  ]
2220
2205
  },
2221
2206
  `${row.label}-${i}`
2222
2207
  )) }),
2223
- showCopyAll && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2208
+ showCopyAll && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2224
2209
  "button",
2225
2210
  {
2226
2211
  type: "button",
@@ -2234,8 +2219,8 @@ function CopyableVariant({
2234
2219
  onClick: handleCopyAll,
2235
2220
  "aria-label": allCopied ? copiedAllLabel : copyAllLabel,
2236
2221
  children: [
2237
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-icon", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("i", { className: "material-symbols-outlined", children: allCopied ? "check" : "content_copy" }) }),
2238
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: allCopied ? copiedAllLabel : copyAllLabel })
2222
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "kds-icon", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("i", { className: "material-symbols-outlined", children: allCopied ? "check" : "content_copy" }) }),
2223
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: allCopied ? copiedAllLabel : copyAllLabel })
2239
2224
  ]
2240
2225
  }
2241
2226
  )
@@ -2254,7 +2239,7 @@ var KdsCopyableTable = (0, import_react27.forwardRef)(
2254
2239
  ...props
2255
2240
  }, ref) => {
2256
2241
  if (variant === "grid") {
2257
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2242
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2258
2243
  GridVariant,
2259
2244
  {
2260
2245
  gridRows,
@@ -2265,7 +2250,7 @@ var KdsCopyableTable = (0, import_react27.forwardRef)(
2265
2250
  }
2266
2251
  );
2267
2252
  }
2268
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2253
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2269
2254
  CopyableVariant,
2270
2255
  {
2271
2256
  rows,
@@ -2283,24 +2268,24 @@ KdsCopyableTable.displayName = "KdsCopyableTable";
2283
2268
 
2284
2269
  // src/components/core/KdsExpandPanel/KdsExpandPanel.tsx
2285
2270
  var import_react28 = require("react");
2286
- var import_jsx_runtime26 = require("react/jsx-runtime");
2271
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2287
2272
  var KdsExpandPanel = (0, import_react28.forwardRef)(
2288
2273
  ({ label, defaultExpanded = false, children, className, ...props }, ref) => {
2289
2274
  const [expanded, setExpanded] = (0, import_react28.useState)(defaultExpanded);
2290
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, className, ...props, children: [
2291
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2275
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref, className, ...props, children: [
2276
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2292
2277
  "button",
2293
2278
  {
2294
2279
  className: "kds-expand-toggle",
2295
2280
  onClick: () => setExpanded((v) => !v),
2296
2281
  "aria-expanded": expanded,
2297
2282
  children: [
2298
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: label }),
2299
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("i", { className: "material-symbols-outlined", children: expanded ? "expand_less" : "expand_more" })
2283
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: label }),
2284
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("i", { className: "material-symbols-outlined", children: expanded ? "expand_less" : "expand_more" })
2300
2285
  ]
2301
2286
  }
2302
2287
  ),
2303
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"), hidden: !expanded, children })
2288
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"), hidden: !expanded, children })
2304
2289
  ] });
2305
2290
  }
2306
2291
  );
@@ -2333,7 +2318,7 @@ function useCountdown(deadline) {
2333
2318
  }
2334
2319
 
2335
2320
  // src/components/core/KdsCountdown/KdsCountdown.tsx
2336
- var import_jsx_runtime27 = require("react/jsx-runtime");
2321
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2337
2322
  var KdsCountdown = (0, import_react30.forwardRef)(
2338
2323
  ({ deadline, label, onExpire, className, ...props }, ref) => {
2339
2324
  const { hours, minutes, seconds, expired, urgent } = useCountdown(deadline);
@@ -2348,9 +2333,9 @@ var KdsCountdown = (0, import_react30.forwardRef)(
2348
2333
  return null;
2349
2334
  }
2350
2335
  const pad = (n) => String(n).padStart(2, "0");
2351
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-countdown", urgent && "urgent", className), ...props, children: [
2352
- label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "kds-countdown-label", children: label }),
2353
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "kds-countdown-value", children: [
2336
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-countdown", urgent && "urgent", className), ...props, children: [
2337
+ label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "kds-countdown-label", children: label }),
2338
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "kds-countdown-value", children: [
2354
2339
  pad(hours),
2355
2340
  ":",
2356
2341
  pad(minutes),
@@ -2364,17 +2349,17 @@ KdsCountdown.displayName = "KdsCountdown";
2364
2349
 
2365
2350
  // src/components/core/KdsSegmentedTabs/KdsSegmentedTabs.tsx
2366
2351
  var import_react31 = require("react");
2367
- var import_jsx_runtime28 = require("react/jsx-runtime");
2352
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2368
2353
  var KdsSegmentedTabs = (0, import_react31.forwardRef)(
2369
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(KdsTabs, { ref, ...props })
2354
+ (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(KdsTabs, { ref, ...props })
2370
2355
  );
2371
2356
  KdsSegmentedTabs.displayName = "KdsSegmentedTabs";
2372
2357
 
2373
2358
  // src/components/core/KdsFab/KdsFab.tsx
2374
2359
  var import_react32 = require("react");
2375
- var import_jsx_runtime29 = require("react/jsx-runtime");
2360
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2376
2361
  var KdsFab = (0, import_react32.forwardRef)(
2377
- ({ icon, position = "top-right", hidden = false, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2362
+ ({ icon, position = "top-right", hidden = false, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2378
2363
  "button",
2379
2364
  {
2380
2365
  ref,
@@ -2388,7 +2373,7 @@ var KdsFab = (0, import_react32.forwardRef)(
2388
2373
  "aria-hidden": hidden || void 0,
2389
2374
  tabIndex: hidden ? -1 : void 0,
2390
2375
  ...props,
2391
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("i", { className: "material-symbols-outlined", children: icon })
2376
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { className: "material-symbols-outlined", children: icon })
2392
2377
  }
2393
2378
  )
2394
2379
  );
@@ -2396,9 +2381,9 @@ KdsFab.displayName = "KdsFab";
2396
2381
 
2397
2382
  // src/components/core/KdsEmptyState/KdsEmptyState.tsx
2398
2383
  var import_react33 = require("react");
2399
- var import_jsx_runtime30 = require("react/jsx-runtime");
2384
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2400
2385
  var KdsEmptyState = (0, import_react33.forwardRef)(
2401
- ({ icon = "hide_source", title, description, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2386
+ ({ icon = "hide_source", title, description, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2402
2387
  "div",
2403
2388
  {
2404
2389
  ref,
@@ -2406,10 +2391,10 @@ var KdsEmptyState = (0, import_react33.forwardRef)(
2406
2391
  className: (0, import_clsx.clsx)("kds-empty-state", className),
2407
2392
  ...props,
2408
2393
  children: [
2409
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: icon }),
2410
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "kds-empty-state-text", children: [
2411
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(KdsTypography, { variant: "body", color: "primary", children: title }),
2412
- description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(KdsTypography, { variant: "body", color: "secondary", children: description })
2394
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: icon }),
2395
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "kds-empty-state-text", children: [
2396
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(KdsTypography, { variant: "body", color: "primary", children: title }),
2397
+ description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(KdsTypography, { variant: "body", color: "secondary", children: description })
2413
2398
  ] })
2414
2399
  ]
2415
2400
  }
@@ -2419,11 +2404,11 @@ KdsEmptyState.displayName = "KdsEmptyState";
2419
2404
 
2420
2405
  // src/components/domain/KdsBankRow/KdsBankRow.tsx
2421
2406
  var import_react34 = require("react");
2422
- var import_jsx_runtime31 = require("react/jsx-runtime");
2407
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2423
2408
  var KdsBankRow = (0, import_react34.forwardRef)(
2424
2409
  ({ name, logoUrl, selected, hideLogo, className, ...props }, ref) => {
2425
2410
  const nameStr = typeof name === "string" ? name : "";
2426
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2411
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2427
2412
  "button",
2428
2413
  {
2429
2414
  ref,
@@ -2431,9 +2416,9 @@ var KdsBankRow = (0, import_react34.forwardRef)(
2431
2416
  className: (0, import_clsx.clsx)("kds-bank-row", selected && "selected", className),
2432
2417
  ...props,
2433
2418
  children: [
2434
- !hideLogo && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-bank-row-logo", children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: logoUrl, alt: nameStr }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "initials", children: nameStr.charAt(0) }) }),
2435
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-bank-row-name", children: name }),
2436
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("i", { className: "material-symbols-outlined", children: selected ? "check_circle" : "chevron_right" })
2419
+ !hideLogo && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-bank-row-logo", children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("img", { src: logoUrl, alt: nameStr }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "initials", children: nameStr.charAt(0) }) }),
2420
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-bank-row-name", children: name }),
2421
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("i", { className: "material-symbols-outlined", children: selected ? "check_circle" : "chevron_right" })
2437
2422
  ]
2438
2423
  }
2439
2424
  );
@@ -2443,16 +2428,16 @@ KdsBankRow.displayName = "KdsBankRow";
2443
2428
 
2444
2429
  // src/components/domain/KdsBankList/KdsBankList.tsx
2445
2430
  var import_react35 = require("react");
2446
- var import_jsx_runtime32 = require("react/jsx-runtime");
2431
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2447
2432
  var KdsBankList = (0, import_react35.forwardRef)(
2448
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bank-list", className), role: "list", ...props, children })
2433
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bank-list", className), role: "list", ...props, children })
2449
2434
  );
2450
2435
  KdsBankList.displayName = "KdsBankList";
2451
2436
 
2452
2437
  // src/components/domain/KdsBankModal/KdsBankModal.tsx
2453
2438
  var import_react36 = require("react");
2454
2439
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
2455
- var import_jsx_runtime33 = require("react/jsx-runtime");
2440
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2456
2441
  var KdsBankModal = (0, import_react36.forwardRef)(
2457
2442
  ({ open, onClose, title = "Selecciona tu banco", searchPlaceholder = "Buscar banco...", onSearch, children, className, container }, ref) => {
2458
2443
  const [query, setQuery] = (0, import_react36.useState)("");
@@ -2460,14 +2445,14 @@ var KdsBankModal = (0, import_react36.forwardRef)(
2460
2445
  setQuery(value);
2461
2446
  onSearch?.(value);
2462
2447
  };
2463
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog.Root, { open, onOpenChange: (o) => {
2448
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog.Root, { open, onOpenChange: (o) => {
2464
2449
  if (!o) onClose();
2465
- }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog.Overlay, { className: "kds-bank-modal-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Dialog.Content, { ref, className: (0, import_clsx.clsx)("kds-bank-modal", className), children: [
2466
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "kds-bank-modal-header", children: [
2467
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog.Title, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("h3", { children: title }) }),
2468
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { className: "kds-bank-modal-close", "aria-label": "Cerrar", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("i", { className: "material-symbols-outlined", children: "close" }) }) })
2450
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog.Overlay, { className: "kds-bank-modal-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Dialog.Content, { ref, className: (0, import_clsx.clsx)("kds-bank-modal", className), children: [
2451
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "kds-bank-modal-header", children: [
2452
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog.Title, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h3", { children: title }) }),
2453
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { className: "kds-bank-modal-close", "aria-label": "Cerrar", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("i", { className: "material-symbols-outlined", children: "close" }) }) })
2469
2454
  ] }),
2470
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "kds-bank-modal-search", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2455
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "kds-bank-modal-search", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2471
2456
  KdsSearchField,
2472
2457
  {
2473
2458
  placeholder: searchPlaceholder,
@@ -2475,7 +2460,7 @@ var KdsBankModal = (0, import_react36.forwardRef)(
2475
2460
  onChange: (e) => handleSearch(e.target.value)
2476
2461
  }
2477
2462
  ) }),
2478
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "kds-bank-modal-body", children })
2463
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "kds-bank-modal-body", children })
2479
2464
  ] }) }) }) });
2480
2465
  }
2481
2466
  );
@@ -2483,25 +2468,25 @@ KdsBankModal.displayName = "KdsBankModal";
2483
2468
 
2484
2469
  // src/components/domain/KdsQrRow/KdsQrRow.tsx
2485
2470
  var import_react37 = require("react");
2486
- var import_jsx_runtime34 = require("react/jsx-runtime");
2471
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2487
2472
  var KdsQrRow = (0, import_react37.forwardRef)(
2488
- ({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("button", { ref, type: "button", className: (0, import_clsx.clsx)("kds-qr-row", className), ...props, children: [
2489
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-qr-avatar", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2490
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "kds-qr-text", children: [
2491
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-qr-title", children: name }),
2492
- description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-qr-subtitle", children: description })
2473
+ ({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("button", { ref, type: "button", className: (0, import_clsx.clsx)("kds-qr-row", className), ...props, children: [
2474
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-qr-avatar", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2475
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "kds-qr-text", children: [
2476
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-qr-title", children: name }),
2477
+ description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-qr-subtitle", children: description })
2493
2478
  ] }),
2494
- badge && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-qr-badge", children: badge }),
2495
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("i", { className: "material-symbols-outlined", children: "chevron_right" })
2479
+ badge && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-qr-badge", children: badge }),
2480
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("i", { className: "material-symbols-outlined", children: "chevron_right" })
2496
2481
  ] })
2497
2482
  );
2498
2483
  KdsQrRow.displayName = "KdsQrRow";
2499
2484
 
2500
2485
  // src/components/domain/KdsCardSelector/KdsCardSelector.tsx
2501
2486
  var import_react38 = require("react");
2502
- var import_jsx_runtime35 = require("react/jsx-runtime");
2487
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2503
2488
  var KdsCardSelector = (0, import_react38.forwardRef)(
2504
- ({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2489
+ ({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2505
2490
  "button",
2506
2491
  {
2507
2492
  ref,
@@ -2509,9 +2494,9 @@ var KdsCardSelector = (0, import_react38.forwardRef)(
2509
2494
  className: (0, import_clsx.clsx)("kds-card-selector", selected && "selected", className),
2510
2495
  ...props,
2511
2496
  children: [
2512
- icon && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-card-selector-icon", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2513
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-card-selector-title", children: title }),
2514
- description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "kds-card-selector-description", children: description })
2497
+ icon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "kds-card-selector-icon", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2498
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "kds-card-selector-title", children: title }),
2499
+ description && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "kds-card-selector-description", children: description })
2515
2500
  ]
2516
2501
  }
2517
2502
  )
@@ -2520,25 +2505,25 @@ KdsCardSelector.displayName = "KdsCardSelector";
2520
2505
 
2521
2506
  // src/components/domain/KdsCardPlan/KdsCardPlan.tsx
2522
2507
  var import_react39 = require("react");
2523
- var import_jsx_runtime36 = require("react/jsx-runtime");
2508
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2524
2509
  var KdsCardPlan = (0, import_react39.forwardRef)(
2525
- ({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2510
+ ({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2526
2511
  "div",
2527
2512
  {
2528
2513
  ref,
2529
2514
  className: (0, import_clsx.clsx)("kds-card-plan", recommended && "recommended", className),
2530
2515
  ...props,
2531
2516
  children: [
2532
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "kds-card-plan-header", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { children: title }) }),
2533
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "kds-card-plan-price", children: [
2534
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "kds-price", children: price }),
2535
- period && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "kds-price-period", children: [
2517
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "kds-card-plan-header", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h3", { children: title }) }),
2518
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "kds-card-plan-price", children: [
2519
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "kds-price", children: price }),
2520
+ period && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "kds-price-period", children: [
2536
2521
  "/",
2537
2522
  period
2538
2523
  ] })
2539
2524
  ] }),
2540
- badgeText && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "kds-card-plan-badge", children: badgeText }),
2541
- features && features.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { className: "kds-card-plan-features", children: features.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("li", { children: f }, i)) }),
2525
+ badgeText && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "kds-card-plan-badge", children: badgeText }),
2526
+ features && features.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("ul", { className: "kds-card-plan-features", children: features.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { children: f }, i)) }),
2542
2527
  action
2543
2528
  ]
2544
2529
  }
@@ -2548,9 +2533,9 @@ KdsCardPlan.displayName = "KdsCardPlan";
2548
2533
 
2549
2534
  // src/components/domain/KdsInvoiceSticky/KdsInvoiceSticky.tsx
2550
2535
  var import_react40 = require("react");
2551
- var import_jsx_runtime37 = require("react/jsx-runtime");
2536
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2552
2537
  var KdsInvoiceSticky = (0, import_react40.forwardRef)(
2553
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2538
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2554
2539
  "article",
2555
2540
  {
2556
2541
  ref,
@@ -2562,11 +2547,34 @@ var KdsInvoiceSticky = (0, import_react40.forwardRef)(
2562
2547
  );
2563
2548
  KdsInvoiceSticky.displayName = "KdsInvoiceSticky";
2564
2549
 
2565
- // src/components/domain/KdsBottomSheet/KdsBottomSheet.tsx
2550
+ // src/components/domain/KdsInvoiceHeaderSkeleton/KdsInvoiceHeaderSkeleton.tsx
2566
2551
  var import_react41 = require("react");
2552
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2553
+ var Line = () => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "kds-skeleton kds-skeleton--text" });
2554
+ var KdsInvoiceHeaderSkeleton = (0, import_react41.forwardRef)(
2555
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(KdsInvoiceSticky, { ref, className: (0, import_clsx.clsx)("kds-invoice-skeleton", className), "aria-hidden": "true", ...props, children: [
2556
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("header", { className: "kds-invoice-header", children: [
2557
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
2558
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "kds-invoice-amount", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) }),
2559
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "kds-invoice-code", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) })
2560
+ ] }),
2561
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-invoice-merchant kds-skeleton" })
2562
+ ] }),
2563
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-invoice-collapsible", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-invoice-summary", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("dl", { className: "kds-kv", children: [
2564
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("dt", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) }),
2565
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) }),
2566
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("dt", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) }),
2567
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Line, {}) })
2568
+ ] }) }) })
2569
+ ] })
2570
+ );
2571
+ KdsInvoiceHeaderSkeleton.displayName = "KdsInvoiceHeaderSkeleton";
2572
+
2573
+ // src/components/domain/KdsBottomSheet/KdsBottomSheet.tsx
2574
+ var import_react42 = require("react");
2567
2575
  var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
2568
- var import_jsx_runtime38 = require("react/jsx-runtime");
2569
- var KdsBottomSheet = (0, import_react41.forwardRef)(
2576
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2577
+ var KdsBottomSheet = (0, import_react42.forwardRef)(
2570
2578
  ({
2571
2579
  open,
2572
2580
  onClose,
@@ -2578,39 +2586,40 @@ var KdsBottomSheet = (0, import_react41.forwardRef)(
2578
2586
  showCloseButton = false,
2579
2587
  container,
2580
2588
  className,
2589
+ size = "auto",
2581
2590
  ...props
2582
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2591
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2583
2592
  Dialog2.Root,
2584
2593
  {
2585
2594
  open,
2586
2595
  onOpenChange: (o) => {
2587
2596
  if (!o) onClose();
2588
2597
  },
2589
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-theme-root", style: { display: "contents" }, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Overlay, { className: "kds-bottom-sheet-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2598
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dialog2.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "kds-theme-root", style: { display: "contents" }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dialog2.Overlay, { className: "kds-bottom-sheet-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2590
2599
  Dialog2.Content,
2591
2600
  {
2592
2601
  ref,
2593
- className: (0, import_clsx.clsx)("kds-bottom-sheet", className),
2602
+ className: (0, import_clsx.clsx)("kds-bottom-sheet", size === "full" && "kds-bottom-sheet-full", className),
2594
2603
  onPointerDownOutside: (e) => {
2595
2604
  const target = e.target;
2596
2605
  if (target.closest(".kds-bottom-sheet")) e.preventDefault();
2597
2606
  },
2598
2607
  ...props,
2599
2608
  children: [
2600
- showGrabber && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-bottom-sheet-grabber", "aria-hidden": "true" }),
2601
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2609
+ showGrabber && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "kds-bottom-sheet-grabber", "aria-hidden": "true" }),
2610
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2602
2611
  "button",
2603
2612
  {
2604
2613
  type: "button",
2605
2614
  className: "kds-bottom-sheet-close",
2606
2615
  "aria-label": "Cerrar",
2607
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("i", { className: "material-symbols-outlined", children: "close" })
2616
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "material-symbols-outlined", children: "close" })
2608
2617
  }
2609
2618
  ) }),
2610
- title && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Title, { className: "kds-bottom-sheet-title", children: title }),
2611
- description && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2.Description, { className: "kds-bottom-sheet-description", children: description }),
2612
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-bottom-sheet-body", children }),
2613
- actions && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-bottom-sheet-actions", children: actions })
2619
+ title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dialog2.Title, { className: "kds-bottom-sheet-title", children: title }),
2620
+ description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dialog2.Description, { className: "kds-bottom-sheet-description", children: description }),
2621
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "kds-bottom-sheet-body", children }),
2622
+ actions && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "kds-bottom-sheet-actions", children: actions })
2614
2623
  ]
2615
2624
  }
2616
2625
  ) }) }) })
@@ -2620,13 +2629,13 @@ var KdsBottomSheet = (0, import_react41.forwardRef)(
2620
2629
  KdsBottomSheet.displayName = "KdsBottomSheet";
2621
2630
 
2622
2631
  // src/components/domain/KdsSecureFooter/KdsSecureFooter.tsx
2623
- var import_react43 = require("react");
2632
+ var import_react44 = require("react");
2624
2633
 
2625
2634
  // src/components/domain/KdsSecureFooter/KhipuWordmark.tsx
2626
- var import_react42 = require("react");
2627
- var import_jsx_runtime39 = require("react/jsx-runtime");
2628
- var KhipuWordmark = (0, import_react42.forwardRef)(
2629
- ({ className = "khipu-mark", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2635
+ var import_react43 = require("react");
2636
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2637
+ var KhipuWordmark = (0, import_react43.forwardRef)(
2638
+ ({ className = "khipu-mark", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2630
2639
  "svg",
2631
2640
  {
2632
2641
  ref,
@@ -2637,14 +2646,14 @@ var KhipuWordmark = (0, import_react42.forwardRef)(
2637
2646
  xmlns: "http://www.w3.org/2000/svg",
2638
2647
  ...props,
2639
2648
  children: [
2640
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M16.6417 11.8339C16.7273 11.9196 16.8272 11.9624 16.9472 11.9624H18.9628C19.0798 11.9624 19.1826 11.9196 19.2682 11.8339C19.3539 11.7483 19.3967 11.6483 19.3967 11.5284V7.12891C19.3967 6.50081 19.3111 5.95551 19.1398 5.49586C18.9685 5.03621 18.7315 4.65937 18.4289 4.3596C18.1234 4.05983 17.758 3.83999 17.3326 3.69439C16.9043 3.55164 16.4361 3.47741 15.9251 3.47741C15.4226 3.47741 14.9801 3.58019 14.5975 3.7886C14.2121 3.99702 13.9295 4.214 13.7496 4.43668V1.03071C13.7496 0.913654 13.7068 0.810874 13.6211 0.728079C13.5355 0.642434 13.4355 0.599609 13.3185 0.599609H11.2943C11.1773 0.599609 11.0745 0.642434 10.9888 0.728079C10.9032 0.813729 10.8604 0.913654 10.8604 1.03071V11.5284C10.8604 11.6455 10.9032 11.7483 10.9888 11.8339C11.0745 11.9196 11.1744 11.9624 11.2943 11.9624H13.3099C13.427 11.9624 13.5298 11.9196 13.6126 11.8339C13.6982 11.7483 13.741 11.6483 13.741 11.5284V7.48006C13.741 7.02041 13.8495 6.65216 14.0693 6.37521C14.2892 6.09826 14.6375 5.95836 15.1171 5.95836C15.5968 5.95836 15.9479 6.09826 16.1735 6.37521C16.3961 6.65216 16.5103 7.02041 16.5103 7.48006V11.5284C16.5132 11.6483 16.556 11.7483 16.6417 11.8339Z", fill: "#8347AD" }),
2641
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M23.6189 3.64014H21.6005C21.4834 3.64014 21.3806 3.68296 21.295 3.76861C21.2093 3.85426 21.1665 3.95418 21.1665 4.07124V11.5284C21.1665 11.6454 21.2093 11.7482 21.295 11.8339C21.3806 11.9195 21.4806 11.9623 21.6005 11.9623H23.6161C23.7331 11.9623 23.8359 11.9195 23.9187 11.8339C24.0044 11.7482 24.0472 11.6483 24.0472 11.5284V4.07124C24.0472 3.95418 24.0044 3.85141 23.9187 3.76861C23.8359 3.68296 23.736 3.64014 23.6189 3.64014Z", fill: "#8347AD" }),
2642
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M34.1881 10.0723C34.3851 9.61264 34.4936 9.07019 34.5164 8.43924C34.5278 8.27934 34.5335 8.06239 34.5335 7.79114C34.5335 7.51994 34.5278 7.30294 34.5164 7.14309C34.4936 6.51499 34.3851 5.96969 34.1881 5.51004C33.9911 5.05039 33.7313 4.67068 33.4115 4.36519C33.0918 4.05971 32.7178 3.83702 32.2924 3.69427C31.8642 3.55152 31.4131 3.47729 30.9334 3.47729C30.5823 3.47729 30.2854 3.50584 30.0455 3.5658C29.8057 3.62575 29.603 3.69998 29.4374 3.78848C29.2718 3.87984 29.1348 3.98263 29.0206 4.09968C28.9093 4.21674 28.8036 4.32808 28.7094 4.43657V4.06828C28.7094 3.95122 28.6666 3.84844 28.5809 3.7628C28.4953 3.67715 28.3954 3.63432 28.2783 3.63432H26.3426C26.2256 3.63432 26.1228 3.67715 26.0372 3.7628C25.9515 3.84844 25.9087 3.94837 25.9087 4.06828V14.566C25.9087 14.683 25.9515 14.7858 26.0372 14.8715C26.1228 14.9571 26.2227 14.9999 26.3426 14.9999H28.3583C28.4753 14.9999 28.5781 14.9571 28.6637 14.8715C28.7494 14.7858 28.7922 14.6859 28.7922 14.566V11.1629C28.8664 11.2599 28.9635 11.3627 29.0806 11.474C29.1976 11.5854 29.3432 11.691 29.5117 11.7852C29.683 11.8823 29.8857 11.9622 30.1198 12.0251C30.3539 12.0879 30.6251 12.1221 30.9363 12.1221C31.4159 12.1221 31.8699 12.0479 32.2953 11.8994C32.7206 11.751 33.0946 11.5226 33.4144 11.22C33.7313 10.9145 33.9911 10.5319 34.1881 10.0723ZM31.65 8.24794C31.6186 8.62194 31.4959 8.94739 31.2817 9.22434C31.0676 9.50129 30.7107 9.64119 30.2083 9.64119C29.9742 9.64119 29.7715 9.60404 29.6002 9.52984C29.4289 9.45559 29.289 9.35569 29.1748 9.23289C29.0634 9.11014 28.9749 8.97309 28.9121 8.82464C28.8493 8.67619 28.8065 8.52204 28.7836 8.35929C28.7608 8.19939 28.7522 8.01384 28.7522 7.79974C28.7522 7.58559 28.7637 7.40004 28.7836 7.24014C28.8036 7.08029 28.8465 6.92609 28.9121 6.77479C28.9749 6.62634 29.0634 6.48929 29.1748 6.36654C29.2861 6.24374 29.4289 6.14384 29.6002 6.06959C29.7715 5.99539 29.9742 5.95824 30.2083 5.95824C30.7107 5.95824 31.0676 6.09814 31.2817 6.37509C31.4959 6.65204 31.6186 6.97749 31.65 7.35149C31.6843 7.65124 31.6843 7.95104 31.65 8.24794Z", fill: "#8347AD" }),
2643
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M41.7481 11.8339C41.8337 11.9195 41.9337 11.9623 42.0536 11.9623H43.9093C44.0264 11.9623 44.1291 11.9195 44.2119 11.8339C44.2976 11.7482 44.3404 11.6483 44.3404 11.5284V4.07124C44.3404 3.95418 44.2976 3.85141 44.2119 3.76861C44.1263 3.68296 44.0264 3.64014 43.9093 3.64014H41.8937C41.7766 3.64014 41.6739 3.68296 41.5882 3.76861C41.5026 3.85426 41.4597 3.95418 41.4597 4.07124V8.1196C41.4597 8.57925 41.3598 8.94755 41.1628 9.22445C40.9658 9.5014 40.6318 9.6413 40.1636 9.6413C39.6954 9.6413 39.3585 9.5014 39.1558 9.22445C38.9531 8.94755 38.8503 8.57925 38.8503 8.1196V4.07124C38.8503 3.95418 38.8075 3.85141 38.7218 3.76861C38.6362 3.68296 38.5363 3.64014 38.4163 3.64014H36.4007C36.2837 3.64014 36.1809 3.68296 36.0953 3.76861C36.0096 3.85426 35.9668 3.95418 35.9668 4.07124V8.47075C35.9668 9.7298 36.2723 10.6519 36.8861 11.24C37.4999 11.8282 38.325 12.1194 39.3585 12.1194C39.6897 12.1194 39.9752 12.0908 40.215 12.0309C40.4548 11.9709 40.6661 11.8967 40.8459 11.8082C41.0286 11.7168 41.18 11.6169 41.3027 11.5027C41.4255 11.3914 41.5283 11.2772 41.6139 11.1601V11.5284C41.6196 11.6483 41.6624 11.7482 41.7481 11.8339Z", fill: "#8347AD" }),
2644
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M22.5569 2.78074C21.7889 2.78074 21.1665 2.1555 21.1665 1.39037C21.1665 0.622385 21.7918 0 22.5569 0C23.3249 0 23.9473 0.62524 23.9473 1.39037C23.9501 2.1555 23.3249 2.78074 22.5569 2.78074Z", fill: "#3CB4E5" }),
2645
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M3.1374 7.43996V4.78198L2.34372 5.77836C2.22095 5.93256 2.21524 6.14951 2.32944 6.31226L3.1374 7.43996Z", fill: "#743CEB" }),
2646
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M2.96345 0.722369C2.88351 0.642434 2.78074 0.599609 2.66368 0.599609H0.40826C0.299771 0.599609 0.205557 0.639579 0.122763 0.722369C0.0428246 0.802309 0 0.905089 0 1.02214V11.557C0 11.6655 0.0399696 11.7597 0.122763 11.8425C0.202703 11.9224 0.299771 11.9652 0.40826 11.9652H2.66368C2.78359 11.9652 2.88351 11.9253 2.96345 11.8425C3.04339 11.7625 3.08622 11.6655 3.08622 11.557V8.41081L2.83783 8.08246L2.83212 8.07676L2.82642 8.06821L1.81576 6.65216C1.55024 6.28101 1.56166 5.76996 1.84716 5.41306L2.84069 4.16261L3.08622 3.84285V1.01929C3.08622 0.902234 3.04625 0.802309 2.96345 0.722369Z", fill: "#8347AD" }),
2647
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M9.60962 11.9625C9.70667 11.9625 9.78947 11.9282 9.85227 11.8568C9.91797 11.7855 9.94937 11.7084 9.94937 11.6227C9.94937 11.5371 9.92652 11.4714 9.88367 11.4286L5.89242 6.0384L9.59247 1.13642C9.63532 1.08217 9.65812 1.01651 9.65812 0.942284C9.65812 0.856634 9.62387 0.776694 9.55252 0.708174C9.50967 0.665349 9.45832 0.633944 9.40407 0.616814C9.37267 0.608249 9.33552 0.602539 9.30127 0.602539H6.73752C6.56337 0.602539 6.42632 0.636799 6.32352 0.708174C6.22077 0.779549 6.14082 0.850924 6.08942 0.928009L3.32868 4.54525L2.32944 5.80145C2.27234 5.8728 2.24094 5.95845 2.24094 6.04695C2.23808 6.13545 2.26378 6.2211 2.31802 6.2982L2.83477 7.0205L3.32868 7.70855L6.29787 11.6199C6.32927 11.6627 6.39492 11.7312 6.49197 11.8226C6.55192 11.8797 6.63472 11.9197 6.73752 11.9425C6.80032 11.9568 6.86882 11.9625 6.94592 11.9625H9.60962Z", fill: "#3CB4E5" })
2649
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M16.6417 11.8339C16.7273 11.9196 16.8272 11.9624 16.9472 11.9624H18.9628C19.0798 11.9624 19.1826 11.9196 19.2682 11.8339C19.3539 11.7483 19.3967 11.6483 19.3967 11.5284V7.12891C19.3967 6.50081 19.3111 5.95551 19.1398 5.49586C18.9685 5.03621 18.7315 4.65937 18.4289 4.3596C18.1234 4.05983 17.758 3.83999 17.3326 3.69439C16.9043 3.55164 16.4361 3.47741 15.9251 3.47741C15.4226 3.47741 14.9801 3.58019 14.5975 3.7886C14.2121 3.99702 13.9295 4.214 13.7496 4.43668V1.03071C13.7496 0.913654 13.7068 0.810874 13.6211 0.728079C13.5355 0.642434 13.4355 0.599609 13.3185 0.599609H11.2943C11.1773 0.599609 11.0745 0.642434 10.9888 0.728079C10.9032 0.813729 10.8604 0.913654 10.8604 1.03071V11.5284C10.8604 11.6455 10.9032 11.7483 10.9888 11.8339C11.0745 11.9196 11.1744 11.9624 11.2943 11.9624H13.3099C13.427 11.9624 13.5298 11.9196 13.6126 11.8339C13.6982 11.7483 13.741 11.6483 13.741 11.5284V7.48006C13.741 7.02041 13.8495 6.65216 14.0693 6.37521C14.2892 6.09826 14.6375 5.95836 15.1171 5.95836C15.5968 5.95836 15.9479 6.09826 16.1735 6.37521C16.3961 6.65216 16.5103 7.02041 16.5103 7.48006V11.5284C16.5132 11.6483 16.556 11.7483 16.6417 11.8339Z", fill: "#8347AD" }),
2650
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M23.6189 3.64014H21.6005C21.4834 3.64014 21.3806 3.68296 21.295 3.76861C21.2093 3.85426 21.1665 3.95418 21.1665 4.07124V11.5284C21.1665 11.6454 21.2093 11.7482 21.295 11.8339C21.3806 11.9195 21.4806 11.9623 21.6005 11.9623H23.6161C23.7331 11.9623 23.8359 11.9195 23.9187 11.8339C24.0044 11.7482 24.0472 11.6483 24.0472 11.5284V4.07124C24.0472 3.95418 24.0044 3.85141 23.9187 3.76861C23.8359 3.68296 23.736 3.64014 23.6189 3.64014Z", fill: "#8347AD" }),
2651
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M34.1881 10.0723C34.3851 9.61264 34.4936 9.07019 34.5164 8.43924C34.5278 8.27934 34.5335 8.06239 34.5335 7.79114C34.5335 7.51994 34.5278 7.30294 34.5164 7.14309C34.4936 6.51499 34.3851 5.96969 34.1881 5.51004C33.9911 5.05039 33.7313 4.67068 33.4115 4.36519C33.0918 4.05971 32.7178 3.83702 32.2924 3.69427C31.8642 3.55152 31.4131 3.47729 30.9334 3.47729C30.5823 3.47729 30.2854 3.50584 30.0455 3.5658C29.8057 3.62575 29.603 3.69998 29.4374 3.78848C29.2718 3.87984 29.1348 3.98263 29.0206 4.09968C28.9093 4.21674 28.8036 4.32808 28.7094 4.43657V4.06828C28.7094 3.95122 28.6666 3.84844 28.5809 3.7628C28.4953 3.67715 28.3954 3.63432 28.2783 3.63432H26.3426C26.2256 3.63432 26.1228 3.67715 26.0372 3.7628C25.9515 3.84844 25.9087 3.94837 25.9087 4.06828V14.566C25.9087 14.683 25.9515 14.7858 26.0372 14.8715C26.1228 14.9571 26.2227 14.9999 26.3426 14.9999H28.3583C28.4753 14.9999 28.5781 14.9571 28.6637 14.8715C28.7494 14.7858 28.7922 14.6859 28.7922 14.566V11.1629C28.8664 11.2599 28.9635 11.3627 29.0806 11.474C29.1976 11.5854 29.3432 11.691 29.5117 11.7852C29.683 11.8823 29.8857 11.9622 30.1198 12.0251C30.3539 12.0879 30.6251 12.1221 30.9363 12.1221C31.4159 12.1221 31.8699 12.0479 32.2953 11.8994C32.7206 11.751 33.0946 11.5226 33.4144 11.22C33.7313 10.9145 33.9911 10.5319 34.1881 10.0723ZM31.65 8.24794C31.6186 8.62194 31.4959 8.94739 31.2817 9.22434C31.0676 9.50129 30.7107 9.64119 30.2083 9.64119C29.9742 9.64119 29.7715 9.60404 29.6002 9.52984C29.4289 9.45559 29.289 9.35569 29.1748 9.23289C29.0634 9.11014 28.9749 8.97309 28.9121 8.82464C28.8493 8.67619 28.8065 8.52204 28.7836 8.35929C28.7608 8.19939 28.7522 8.01384 28.7522 7.79974C28.7522 7.58559 28.7637 7.40004 28.7836 7.24014C28.8036 7.08029 28.8465 6.92609 28.9121 6.77479C28.9749 6.62634 29.0634 6.48929 29.1748 6.36654C29.2861 6.24374 29.4289 6.14384 29.6002 6.06959C29.7715 5.99539 29.9742 5.95824 30.2083 5.95824C30.7107 5.95824 31.0676 6.09814 31.2817 6.37509C31.4959 6.65204 31.6186 6.97749 31.65 7.35149C31.6843 7.65124 31.6843 7.95104 31.65 8.24794Z", fill: "#8347AD" }),
2652
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M41.7481 11.8339C41.8337 11.9195 41.9337 11.9623 42.0536 11.9623H43.9093C44.0264 11.9623 44.1291 11.9195 44.2119 11.8339C44.2976 11.7482 44.3404 11.6483 44.3404 11.5284V4.07124C44.3404 3.95418 44.2976 3.85141 44.2119 3.76861C44.1263 3.68296 44.0264 3.64014 43.9093 3.64014H41.8937C41.7766 3.64014 41.6739 3.68296 41.5882 3.76861C41.5026 3.85426 41.4597 3.95418 41.4597 4.07124V8.1196C41.4597 8.57925 41.3598 8.94755 41.1628 9.22445C40.9658 9.5014 40.6318 9.6413 40.1636 9.6413C39.6954 9.6413 39.3585 9.5014 39.1558 9.22445C38.9531 8.94755 38.8503 8.57925 38.8503 8.1196V4.07124C38.8503 3.95418 38.8075 3.85141 38.7218 3.76861C38.6362 3.68296 38.5363 3.64014 38.4163 3.64014H36.4007C36.2837 3.64014 36.1809 3.68296 36.0953 3.76861C36.0096 3.85426 35.9668 3.95418 35.9668 4.07124V8.47075C35.9668 9.7298 36.2723 10.6519 36.8861 11.24C37.4999 11.8282 38.325 12.1194 39.3585 12.1194C39.6897 12.1194 39.9752 12.0908 40.215 12.0309C40.4548 11.9709 40.6661 11.8967 40.8459 11.8082C41.0286 11.7168 41.18 11.6169 41.3027 11.5027C41.4255 11.3914 41.5283 11.2772 41.6139 11.1601V11.5284C41.6196 11.6483 41.6624 11.7482 41.7481 11.8339Z", fill: "#8347AD" }),
2653
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M22.5569 2.78074C21.7889 2.78074 21.1665 2.1555 21.1665 1.39037C21.1665 0.622385 21.7918 0 22.5569 0C23.3249 0 23.9473 0.62524 23.9473 1.39037C23.9501 2.1555 23.3249 2.78074 22.5569 2.78074Z", fill: "#3CB4E5" }),
2654
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M3.1374 7.43996V4.78198L2.34372 5.77836C2.22095 5.93256 2.21524 6.14951 2.32944 6.31226L3.1374 7.43996Z", fill: "#743CEB" }),
2655
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M2.96345 0.722369C2.88351 0.642434 2.78074 0.599609 2.66368 0.599609H0.40826C0.299771 0.599609 0.205557 0.639579 0.122763 0.722369C0.0428246 0.802309 0 0.905089 0 1.02214V11.557C0 11.6655 0.0399696 11.7597 0.122763 11.8425C0.202703 11.9224 0.299771 11.9652 0.40826 11.9652H2.66368C2.78359 11.9652 2.88351 11.9253 2.96345 11.8425C3.04339 11.7625 3.08622 11.6655 3.08622 11.557V8.41081L2.83783 8.08246L2.83212 8.07676L2.82642 8.06821L1.81576 6.65216C1.55024 6.28101 1.56166 5.76996 1.84716 5.41306L2.84069 4.16261L3.08622 3.84285V1.01929C3.08622 0.902234 3.04625 0.802309 2.96345 0.722369Z", fill: "#8347AD" }),
2656
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M9.60962 11.9625C9.70667 11.9625 9.78947 11.9282 9.85227 11.8568C9.91797 11.7855 9.94937 11.7084 9.94937 11.6227C9.94937 11.5371 9.92652 11.4714 9.88367 11.4286L5.89242 6.0384L9.59247 1.13642C9.63532 1.08217 9.65812 1.01651 9.65812 0.942284C9.65812 0.856634 9.62387 0.776694 9.55252 0.708174C9.50967 0.665349 9.45832 0.633944 9.40407 0.616814C9.37267 0.608249 9.33552 0.602539 9.30127 0.602539H6.73752C6.56337 0.602539 6.42632 0.636799 6.32352 0.708174C6.22077 0.779549 6.14082 0.850924 6.08942 0.928009L3.32868 4.54525L2.32944 5.80145C2.27234 5.8728 2.24094 5.95845 2.24094 6.04695C2.23808 6.13545 2.26378 6.2211 2.31802 6.2982L2.83477 7.0205L3.32868 7.70855L6.29787 11.6199C6.32927 11.6627 6.39492 11.7312 6.49197 11.8226C6.55192 11.8797 6.63472 11.9197 6.73752 11.9425C6.80032 11.9568 6.86882 11.9625 6.94592 11.9625H9.60962Z", fill: "#3CB4E5" })
2648
2657
  ]
2649
2658
  }
2650
2659
  )
@@ -2652,17 +2661,17 @@ var KhipuWordmark = (0, import_react42.forwardRef)(
2652
2661
  KhipuWordmark.displayName = "KhipuWordmark";
2653
2662
 
2654
2663
  // src/components/domain/KdsSecureFooter/KdsSecureFooter.tsx
2655
- var import_jsx_runtime40 = require("react/jsx-runtime");
2656
- var KdsSecureFooter = (0, import_react43.forwardRef)(
2657
- ({ variant = "default", showLogo = true, psp, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("footer", { ref, className: (0, import_clsx.clsx)("kds-secure-footer", variant === "inside" && "inside", className), ...props, children: [
2658
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("svg", { className: "kds-secure-footer-lock", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
2659
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("rect", { x: "4.5", y: "10.5", width: "15", height: "10", rx: "2.25" }),
2660
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M8 10.5V7a4 4 0 0 1 8 0v3.5" })
2664
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2665
+ var KdsSecureFooter = (0, import_react44.forwardRef)(
2666
+ ({ variant = "default", showLogo = true, psp, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("footer", { ref, className: (0, import_clsx.clsx)("kds-secure-footer", variant === "inside" && "inside", className), ...props, children: [
2667
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("svg", { className: "kds-secure-footer-lock", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
2668
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("rect", { x: "4.5", y: "10.5", width: "15", height: "10", rx: "2.25" }),
2669
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { d: "M8 10.5V7a4 4 0 0 1 8 0v3.5" })
2661
2670
  ] }),
2662
- children || /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: "Pago seguro procesado por" }),
2663
- showLogo && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(KhipuWordmark, {}),
2664
- psp && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
2665
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "kds-secure-footer-sep", "aria-hidden": "true" }),
2671
+ children || /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: "Pago seguro procesado por" }),
2672
+ showLogo && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(KhipuWordmark, {}),
2673
+ psp && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
2674
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "kds-secure-footer-sep", "aria-hidden": "true" }),
2666
2675
  psp
2667
2676
  ] })
2668
2677
  ] })
@@ -2670,44 +2679,44 @@ var KdsSecureFooter = (0, import_react43.forwardRef)(
2670
2679
  KdsSecureFooter.displayName = "KdsSecureFooter";
2671
2680
 
2672
2681
  // src/components/domain/KdsRecapList/KdsRecapList.tsx
2673
- var import_react44 = require("react");
2674
- var import_jsx_runtime41 = require("react/jsx-runtime");
2675
- var KdsRecapList = (0, import_react44.forwardRef)(
2676
- ({ items, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ul", { ref, className: (0, import_clsx.clsx)("kds-recap-list", className), ...props, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("li", { children: [
2677
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "kds-key", children: item.label }),
2678
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: (0, import_clsx.clsx)("kds-value", !item.value && item.placeholder && "placeholder"), children: item.value || item.placeholder || "-" })
2682
+ var import_react45 = require("react");
2683
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2684
+ var KdsRecapList = (0, import_react45.forwardRef)(
2685
+ ({ items, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { ref, className: (0, import_clsx.clsx)("kds-recap-list", className), ...props, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("li", { children: [
2686
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "kds-key", children: item.label }),
2687
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: (0, import_clsx.clsx)("kds-value", !item.value && item.placeholder && "placeholder"), children: item.value || item.placeholder || "-" })
2679
2688
  ] }, i)) })
2680
2689
  );
2681
2690
  KdsRecapList.displayName = "KdsRecapList";
2682
2691
 
2683
2692
  // src/components/domain/KdsMontoRow/KdsMontoRow.tsx
2684
- var import_react45 = require("react");
2685
- var import_jsx_runtime42 = require("react/jsx-runtime");
2686
- var KdsMontoRow = (0, import_react45.forwardRef)(
2687
- ({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-monto-row", className), ...props, children: [
2688
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
2689
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "kds-monto-row-title", children: title }),
2690
- deadline && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "kds-monto-row-deadline", children: deadline })
2693
+ var import_react46 = require("react");
2694
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2695
+ var KdsMontoRow = (0, import_react46.forwardRef)(
2696
+ ({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-monto-row", className), ...props, children: [
2697
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
2698
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "kds-monto-row-title", children: title }),
2699
+ deadline && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "kds-monto-row-deadline", children: deadline })
2691
2700
  ] }),
2692
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "kds-monto-row-value", children: value })
2701
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "kds-monto-row-value", children: value })
2693
2702
  ] })
2694
2703
  );
2695
2704
  KdsMontoRow.displayName = "KdsMontoRow";
2696
2705
 
2697
2706
  // src/components/domain/KdsMerchantTile/KdsMerchantTile.tsx
2698
- var import_react46 = require("react");
2699
- var import_jsx_runtime43 = require("react/jsx-runtime");
2700
- var KdsMerchantTile = (0, import_react46.forwardRef)(
2707
+ var import_react47 = require("react");
2708
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2709
+ var KdsMerchantTile = (0, import_react47.forwardRef)(
2701
2710
  ({ name, logoUrl, initials, compact, className, ...props }, ref) => {
2702
2711
  const displayInitials = (initials ?? name.slice(0, 2)).toUpperCase();
2703
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2712
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2704
2713
  "div",
2705
2714
  {
2706
2715
  ref,
2707
2716
  className: (0, import_clsx.clsx)("kds-merchant-tile", logoUrl && "logo", compact && "compact", className),
2708
2717
  "aria-label": name,
2709
2718
  ...props,
2710
- children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("img", { src: logoUrl, alt: name }) : displayInitials
2719
+ children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("img", { src: logoUrl, alt: name }) : displayInitials
2711
2720
  }
2712
2721
  );
2713
2722
  }
@@ -2715,10 +2724,10 @@ var KdsMerchantTile = (0, import_react46.forwardRef)(
2715
2724
  KdsMerchantTile.displayName = "KdsMerchantTile";
2716
2725
 
2717
2726
  // src/components/domain/KdsInvoiceMerchant/KdsInvoiceMerchant.tsx
2718
- var import_react48 = require("react");
2727
+ var import_react49 = require("react");
2719
2728
 
2720
2729
  // src/components/domain/KdsInvoiceMerchant/useLogoBackdrop.ts
2721
- var import_react47 = require("react");
2730
+ var import_react48 = require("react");
2722
2731
 
2723
2732
  // src/components/domain/KdsInvoiceMerchant/logoLuminance.ts
2724
2733
  var LIGHT_LOGO_LUMINANCE_THRESHOLD = 0.72;
@@ -2767,8 +2776,8 @@ function pickLogoBackdrop(luminance) {
2767
2776
 
2768
2777
  // src/components/domain/KdsInvoiceMerchant/useLogoBackdrop.ts
2769
2778
  function useLogoBackdrop(logoUrl) {
2770
- const [backdrop, setBackdrop] = (0, import_react47.useState)("light");
2771
- (0, import_react47.useEffect)(() => {
2779
+ const [backdrop, setBackdrop] = (0, import_react48.useState)("light");
2780
+ (0, import_react48.useEffect)(() => {
2772
2781
  let cancelled = false;
2773
2782
  setBackdrop("light");
2774
2783
  if (!logoUrl) {
@@ -2787,13 +2796,13 @@ function useLogoBackdrop(logoUrl) {
2787
2796
  }
2788
2797
 
2789
2798
  // src/components/domain/KdsInvoiceMerchant/KdsInvoiceMerchant.tsx
2790
- var import_jsx_runtime44 = require("react/jsx-runtime");
2791
- var KdsInvoiceMerchant = (0, import_react48.forwardRef)(
2799
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2800
+ var KdsInvoiceMerchant = (0, import_react49.forwardRef)(
2792
2801
  ({ logoUrl, brandColor, className, style, ...props }, ref) => {
2793
- const [failed, setFailed] = (0, import_react48.useState)(false);
2802
+ const [failed, setFailed] = (0, import_react49.useState)(false);
2794
2803
  const showLogo = !!logoUrl && !failed;
2795
2804
  const backdrop = useLogoBackdrop(showLogo ? logoUrl : void 0);
2796
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2805
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2797
2806
  "div",
2798
2807
  {
2799
2808
  ref,
@@ -2806,7 +2815,7 @@ var KdsInvoiceMerchant = (0, import_react48.forwardRef)(
2806
2815
  "aria-hidden": "true",
2807
2816
  style: !showLogo && brandColor ? { background: brandColor, ...style } : style,
2808
2817
  ...props,
2809
- children: showLogo ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("img", { src: logoUrl, alt: "", onError: () => setFailed(true) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("i", { className: "material-symbols-outlined", children: "storefront" })
2818
+ children: showLogo ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("img", { src: logoUrl, alt: "", onError: () => setFailed(true) }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("i", { className: "material-symbols-outlined", children: "storefront" })
2810
2819
  }
2811
2820
  );
2812
2821
  }
@@ -2814,9 +2823,9 @@ var KdsInvoiceMerchant = (0, import_react48.forwardRef)(
2814
2823
  KdsInvoiceMerchant.displayName = "KdsInvoiceMerchant";
2815
2824
 
2816
2825
  // src/components/domain/KdsPaymentTotal/KdsPaymentTotal.tsx
2817
- var import_react49 = require("react");
2818
- var import_jsx_runtime45 = require("react/jsx-runtime");
2819
- var KdsPaymentTotal = (0, import_react49.forwardRef)(
2826
+ var import_react50 = require("react");
2827
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2828
+ var KdsPaymentTotal = (0, import_react50.forwardRef)(
2820
2829
  ({
2821
2830
  variant = "default",
2822
2831
  tone = "brand",
@@ -2834,7 +2843,7 @@ var KdsPaymentTotal = (0, import_react49.forwardRef)(
2834
2843
  const { integer, fraction } = formatAmount(amount, decimals, locale);
2835
2844
  const isEmail = variant === "email";
2836
2845
  const isInfoTone = tone === "info";
2837
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2846
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2838
2847
  "div",
2839
2848
  {
2840
2849
  ref,
@@ -2847,14 +2856,14 @@ var KdsPaymentTotal = (0, import_react49.forwardRef)(
2847
2856
  ),
2848
2857
  ...props,
2849
2858
  children: [
2850
- !isEmail && title != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h5", { className: "kds-payment-total-title", children: title }),
2851
- !isEmail && titleMobile != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h5", { className: "kds-payment-total-title-mobile", children: titleMobile }),
2852
- label != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h6", { className: "kds-payment-label", children: label }),
2853
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("h5", { className: "kds-payment-amount", children: [
2859
+ !isEmail && title != null && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h5", { className: "kds-payment-total-title", children: title }),
2860
+ !isEmail && titleMobile != null && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h5", { className: "kds-payment-total-title-mobile", children: titleMobile }),
2861
+ label != null && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h6", { className: "kds-payment-label", children: label }),
2862
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("h5", { className: "kds-payment-amount", children: [
2854
2863
  currency,
2855
2864
  " ",
2856
2865
  integer,
2857
- fraction !== null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("sup", { className: "kds-payment-total-decimal-sup", children: fraction })
2866
+ fraction !== null && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("sup", { className: "kds-payment-total-decimal-sup", children: fraction })
2858
2867
  ] })
2859
2868
  ]
2860
2869
  }
@@ -2890,10 +2899,10 @@ function formatAmount(amount, decimals, locale) {
2890
2899
  }
2891
2900
 
2892
2901
  // src/components/domain/KdsBillAttachment/KdsBillAttachment.tsx
2893
- var import_react50 = require("react");
2894
- var import_jsx_runtime46 = require("react/jsx-runtime");
2895
- var KdsBillAttachment = (0, import_react50.forwardRef)(
2896
- ({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2902
+ var import_react51 = require("react");
2903
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2904
+ var KdsBillAttachment = (0, import_react51.forwardRef)(
2905
+ ({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
2897
2906
  "a",
2898
2907
  {
2899
2908
  ref,
@@ -2903,15 +2912,15 @@ var KdsBillAttachment = (0, import_react50.forwardRef)(
2903
2912
  className: (0, import_clsx.clsx)("kds-bill-attachment", className),
2904
2913
  ...props,
2905
2914
  children: [
2906
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("i", { className: "material-symbols-outlined", children: icon }),
2907
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: filename })
2915
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("i", { className: "material-symbols-outlined", children: icon }),
2916
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: filename })
2908
2917
  ]
2909
2918
  }
2910
2919
  )
2911
2920
  );
2912
2921
  KdsBillAttachment.displayName = "KdsBillAttachment";
2913
- var KdsBillAttachments = (0, import_react50.forwardRef)(
2914
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bill-attachments", className), ...props, children })
2922
+ var KdsBillAttachments = (0, import_react51.forwardRef)(
2923
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bill-attachments", className), ...props, children })
2915
2924
  );
2916
2925
  KdsBillAttachments.displayName = "KdsBillAttachments";
2917
2926
 
@@ -3010,12 +3019,12 @@ var guideToFirstInvalidFieldOnBlur = (form) => {
3010
3019
  };
3011
3020
 
3012
3021
  // src/components/core/hooks/useStickyInvoiceCollapse.ts
3013
- var import_react51 = require("react");
3022
+ var import_react52 = require("react");
3014
3023
  function useStickyInvoiceCollapse(options = {}) {
3015
3024
  const { onCollapseStart, collapseEnd = 20, mobileBreakpoint = 768 } = options;
3016
- const onCollapseStartRef = (0, import_react51.useRef)(onCollapseStart);
3025
+ const onCollapseStartRef = (0, import_react52.useRef)(onCollapseStart);
3017
3026
  onCollapseStartRef.current = onCollapseStart;
3018
- (0, import_react51.useEffect)(() => {
3027
+ (0, import_react52.useEffect)(() => {
3019
3028
  let viewportOffset = 0;
3020
3029
  let ticking = false;
3021
3030
  let wasCollapsing = false;
@@ -3088,24 +3097,24 @@ function useStickyInvoiceCollapse(options = {}) {
3088
3097
  }
3089
3098
 
3090
3099
  // src/components/core/hooks/useExpandToggle.ts
3091
- var import_react52 = require("react");
3100
+ var import_react53 = require("react");
3092
3101
  function useExpandToggle(options = {}) {
3093
3102
  const { defaultOpen = false, open: controlledOpen, onOpenChange, id } = options;
3094
- const generatedId = (0, import_react52.useId)();
3103
+ const generatedId = (0, import_react53.useId)();
3095
3104
  const panelId = id ?? `kds-expand-${generatedId}`;
3096
3105
  const isControlled = controlledOpen !== void 0;
3097
- const [uncontrolledOpen, setUncontrolledOpen] = (0, import_react52.useState)(defaultOpen);
3106
+ const [uncontrolledOpen, setUncontrolledOpen] = (0, import_react53.useState)(defaultOpen);
3098
3107
  const open = isControlled ? controlledOpen : uncontrolledOpen;
3099
- const panelRef = (0, import_react52.useRef)(null);
3100
- const setPanelRef = (0, import_react52.useCallback)((node) => {
3108
+ const panelRef = (0, import_react53.useRef)(null);
3109
+ const setPanelRef = (0, import_react53.useCallback)((node) => {
3101
3110
  panelRef.current = node;
3102
3111
  }, []);
3103
- (0, import_react52.useLayoutEffect)(() => {
3112
+ (0, import_react53.useLayoutEffect)(() => {
3104
3113
  const panel = panelRef.current;
3105
3114
  if (!panel) return;
3106
3115
  panel.style.maxHeight = open ? `${panel.scrollHeight}px` : "";
3107
3116
  }, [open]);
3108
- const setOpen = (0, import_react52.useCallback)(
3117
+ const setOpen = (0, import_react53.useCallback)(
3109
3118
  (next) => {
3110
3119
  if (!isControlled) {
3111
3120
  setUncontrolledOpen(next);
@@ -3114,8 +3123,8 @@ function useExpandToggle(options = {}) {
3114
3123
  },
3115
3124
  [isControlled, onOpenChange]
3116
3125
  );
3117
- const toggle = (0, import_react52.useCallback)(() => setOpen(!open), [open, setOpen]);
3118
- const getToggleProps = (0, import_react52.useCallback)(
3126
+ const toggle = (0, import_react53.useCallback)(() => setOpen(!open), [open, setOpen]);
3127
+ const getToggleProps = (0, import_react53.useCallback)(
3119
3128
  () => ({
3120
3129
  type: "button",
3121
3130
  "aria-expanded": open,
@@ -3124,7 +3133,7 @@ function useExpandToggle(options = {}) {
3124
3133
  }),
3125
3134
  [open, panelId, toggle]
3126
3135
  );
3127
- const getPanelProps = (0, import_react52.useCallback)(
3136
+ const getPanelProps = (0, import_react53.useCallback)(
3128
3137
  (baseClassName = "kds-expand-panel") => ({
3129
3138
  id: panelId,
3130
3139
  className: open ? `${baseClassName} open` : baseClassName,
@@ -3137,11 +3146,11 @@ function useExpandToggle(options = {}) {
3137
3146
  }
3138
3147
 
3139
3148
  // src/components/core/hooks/useHideOnScroll.ts
3140
- var import_react53 = require("react");
3149
+ var import_react54 = require("react");
3141
3150
  function useHideOnScroll(options = {}) {
3142
3151
  const { threshold = 8, topOffset = 0 } = options;
3143
- const [hidden, setHidden] = (0, import_react53.useState)(false);
3144
- (0, import_react53.useEffect)(() => {
3152
+ const [hidden, setHidden] = (0, import_react54.useState)(false);
3153
+ (0, import_react54.useEffect)(() => {
3145
3154
  let viewportOffset = 0;
3146
3155
  let lastY = 0;
3147
3156
  let ticking = false;
@@ -3184,12 +3193,12 @@ function useHideOnScroll(options = {}) {
3184
3193
  }
3185
3194
 
3186
3195
  // src/components/core/hooks/useMediaQuery.ts
3187
- var import_react54 = require("react");
3196
+ var import_react55 = require("react");
3188
3197
  function useMediaQuery(query) {
3189
- const [matches, setMatches] = (0, import_react54.useState)(
3198
+ const [matches, setMatches] = (0, import_react55.useState)(
3190
3199
  () => typeof window !== "undefined" ? window.matchMedia(query).matches : false
3191
3200
  );
3192
- (0, import_react54.useEffect)(() => {
3201
+ (0, import_react55.useEffect)(() => {
3193
3202
  if (typeof window === "undefined") return;
3194
3203
  const mql = window.matchMedia(query);
3195
3204
  setMatches(mql.matches);
@@ -3201,6 +3210,7 @@ function useMediaQuery(query) {
3201
3210
  }
3202
3211
  // Annotate the CommonJS export names for ESM import in node:
3203
3212
  0 && (module.exports = {
3213
+ KDS_VERSION,
3204
3214
  KdsAccordion,
3205
3215
  KdsAccordionDetails,
3206
3216
  KdsAccordionSummary,
@@ -3225,9 +3235,11 @@ function useMediaQuery(query) {
3225
3235
  KdsCopyableTable,
3226
3236
  KdsCountdown,
3227
3237
  KdsDivider,
3238
+ KdsDocumentFrame,
3228
3239
  KdsEmptyState,
3229
3240
  KdsExpandPanel,
3230
3241
  KdsFab,
3242
+ KdsInvoiceHeaderSkeleton,
3231
3243
  KdsInvoiceMerchant,
3232
3244
  KdsInvoiceSticky,
3233
3245
  KdsLinearProgress,