@khipu/design-system 0.2.0-alpha.50 → 0.2.0-alpha.52

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
@@ -63,6 +63,7 @@ __export(index_exports, {
63
63
  KdsQrRow: () => KdsQrRow,
64
64
  KdsRadioGroup: () => KdsRadioGroup,
65
65
  KdsRecapList: () => KdsRecapList,
66
+ KdsSearchField: () => KdsSearchField,
66
67
  KdsSectionNote: () => KdsSectionNote,
67
68
  KdsSecureFooter: () => KdsSecureFooter,
68
69
  KdsSecureLoader: () => KdsSecureLoader,
@@ -1252,22 +1253,47 @@ var KdsTextField = (0, import_react2.forwardRef)(
1252
1253
  );
1253
1254
  KdsTextField.displayName = "KdsTextField";
1254
1255
 
1255
- // src/components/core/KdsCheckbox/KdsCheckbox.tsx
1256
+ // src/components/core/KdsSearchField/KdsSearchField.tsx
1256
1257
  var import_react3 = require("react");
1257
1258
  var import_jsx_runtime4 = require("react/jsx-runtime");
1258
- var KdsCheckbox = (0, import_react3.forwardRef)(
1259
- ({ label, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: (0, import_clsx.clsx)("checkbox", className), children: [
1260
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("input", { ref, type: "checkbox", ...props }),
1261
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: label })
1259
+ var KdsSearchField = (0, import_react3.forwardRef)(
1260
+ ({ className, withIcon = false, ...props }, ref) => {
1261
+ const input = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1262
+ "input",
1263
+ {
1264
+ ref,
1265
+ type: "search",
1266
+ className: (0, import_clsx.clsx)("kds-search-field", className),
1267
+ ...props
1268
+ }
1269
+ );
1270
+ if (!withIcon) {
1271
+ return input;
1272
+ }
1273
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "kds-search-field-wrapper", children: [
1274
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("i", { className: "material-symbols-outlined kds-search-field-icon", "aria-hidden": "true", children: "search" }),
1275
+ input
1276
+ ] });
1277
+ }
1278
+ );
1279
+ KdsSearchField.displayName = "KdsSearchField";
1280
+
1281
+ // src/components/core/KdsCheckbox/KdsCheckbox.tsx
1282
+ var import_react4 = require("react");
1283
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1284
+ var KdsCheckbox = (0, import_react4.forwardRef)(
1285
+ ({ label, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("label", { className: (0, import_clsx.clsx)("checkbox", className), children: [
1286
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("input", { ref, type: "checkbox", ...props }),
1287
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: label })
1262
1288
  ] })
1263
1289
  );
1264
1290
  KdsCheckbox.displayName = "KdsCheckbox";
1265
1291
 
1266
1292
  // src/components/core/KdsCard/KdsCard.tsx
1267
- var import_react4 = require("react");
1268
- var import_jsx_runtime5 = require("react/jsx-runtime");
1269
- var KdsCard = (0, import_react4.forwardRef)(
1270
- ({ variant = "elevated", dimmed, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1293
+ var import_react5 = require("react");
1294
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1295
+ var KdsCard = (0, import_react5.forwardRef)(
1296
+ ({ variant = "elevated", dimmed, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1271
1297
  "article",
1272
1298
  {
1273
1299
  ref,
@@ -1282,31 +1308,31 @@ var KdsCard = (0, import_react4.forwardRef)(
1282
1308
  )
1283
1309
  );
1284
1310
  KdsCard.displayName = "KdsCard";
1285
- var KdsCardHeader = (0, import_react4.forwardRef)(
1286
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-header", className), ...props, children })
1311
+ var KdsCardHeader = (0, import_react5.forwardRef)(
1312
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-header", className), ...props, children })
1287
1313
  );
1288
1314
  KdsCardHeader.displayName = "KdsCardHeader";
1289
- var KdsCardBody = (0, import_react4.forwardRef)(
1290
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-body", className), ...props, children })
1315
+ var KdsCardBody = (0, import_react5.forwardRef)(
1316
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-body", className), ...props, children })
1291
1317
  );
1292
1318
  KdsCardBody.displayName = "KdsCardBody";
1293
- var KdsCardFooter = (0, import_react4.forwardRef)(
1294
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-footer", className), ...props, children })
1319
+ var KdsCardFooter = (0, import_react5.forwardRef)(
1320
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-footer", className), ...props, children })
1295
1321
  );
1296
1322
  KdsCardFooter.displayName = "KdsCardFooter";
1297
1323
 
1298
1324
  // src/components/core/KdsSpinner/KdsSpinner.tsx
1299
- var import_react5 = require("react");
1300
- var import_jsx_runtime6 = require("react/jsx-runtime");
1325
+ var import_react6 = require("react");
1326
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1301
1327
  var SIZE_CLASS = {
1302
1328
  small: "small",
1303
1329
  medium: null,
1304
1330
  large: "large"
1305
1331
  };
1306
- var KdsSpinner = (0, import_react5.forwardRef)(
1332
+ var KdsSpinner = (0, import_react6.forwardRef)(
1307
1333
  ({ size = "medium", label, className, ...props }, ref) => {
1308
1334
  const sizeClass = SIZE_CLASS[size];
1309
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1335
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1310
1336
  "div",
1311
1337
  {
1312
1338
  ref,
@@ -1314,9 +1340,9 @@ var KdsSpinner = (0, import_react5.forwardRef)(
1314
1340
  role: "status",
1315
1341
  ...props,
1316
1342
  children: [
1317
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("progress", { className: (0, import_clsx.clsx)("circle indeterminate", sizeClass) }),
1318
- label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "kds-text-body-small kds-text-muted", children: label }),
1319
- !label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "kds-hidden", children: "Cargando" })
1343
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("progress", { className: (0, import_clsx.clsx)("circle indeterminate", sizeClass) }),
1344
+ label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "kds-text-body-small kds-text-muted", children: label }),
1345
+ !label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "kds-hidden", children: "Cargando" })
1320
1346
  ]
1321
1347
  }
1322
1348
  );
@@ -1325,16 +1351,16 @@ var KdsSpinner = (0, import_react5.forwardRef)(
1325
1351
  KdsSpinner.displayName = "KdsSpinner";
1326
1352
 
1327
1353
  // src/components/core/KdsSecureLoader/KdsSecureLoader.tsx
1328
- var import_react6 = require("react");
1329
- var import_jsx_runtime7 = require("react/jsx-runtime");
1330
- var KdsSecureLoader = (0, import_react6.forwardRef)(
1331
- ({ title, message, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-secure-loader", className), role: "status", "aria-busy": "true", ...props, children: [
1332
- (title || message) && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "kds-secure-loader-text", children: [
1333
- title && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "kds-secure-loader-title", children: title }),
1334
- message && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "kds-secure-loader-message", children: message })
1354
+ var import_react7 = require("react");
1355
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1356
+ var KdsSecureLoader = (0, import_react7.forwardRef)(
1357
+ ({ 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: [
1358
+ (title || message) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "kds-secure-loader-text", children: [
1359
+ title && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "kds-secure-loader-title", children: title }),
1360
+ message && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "kds-secure-loader-message", children: message })
1335
1361
  ] }),
1336
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "kds-secure-loader-spinner", children: [
1337
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1362
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "kds-secure-loader-spinner", children: [
1363
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1338
1364
  "svg",
1339
1365
  {
1340
1366
  className: "kds-secure-loader-ring",
@@ -1343,23 +1369,23 @@ var KdsSecureLoader = (0, import_react6.forwardRef)(
1343
1369
  height: "100",
1344
1370
  fill: "none",
1345
1371
  "aria-hidden": "true",
1346
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("circle", { cx: "44", cy: "44", r: "20.2", fill: "none" })
1372
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("circle", { cx: "44", cy: "44", r: "20.2", fill: "none" })
1347
1373
  }
1348
1374
  ),
1349
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("i", { className: "material-symbols-outlined kds-secure-loader-lock", "aria-hidden": "true", children: "lock" })
1375
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { className: "material-symbols-outlined kds-secure-loader-lock", "aria-hidden": "true", children: "lock" })
1350
1376
  ] })
1351
1377
  ] })
1352
1378
  );
1353
1379
  KdsSecureLoader.displayName = "KdsSecureLoader";
1354
1380
 
1355
1381
  // src/components/core/KdsCopyButton/KdsCopyButton.tsx
1356
- var import_react8 = require("react");
1382
+ var import_react9 = require("react");
1357
1383
 
1358
1384
  // src/components/core/hooks/useCopyToClipboard.ts
1359
- var import_react7 = require("react");
1385
+ var import_react8 = require("react");
1360
1386
  function useCopyToClipboard(resetMs = 1200) {
1361
- const [copied, setCopied] = (0, import_react7.useState)(false);
1362
- const copy = (0, import_react7.useCallback)(
1387
+ const [copied, setCopied] = (0, import_react8.useState)(false);
1388
+ const copy = (0, import_react8.useCallback)(
1363
1389
  async (text) => {
1364
1390
  try {
1365
1391
  await navigator.clipboard.writeText(text);
@@ -1374,11 +1400,11 @@ function useCopyToClipboard(resetMs = 1200) {
1374
1400
  }
1375
1401
 
1376
1402
  // src/components/core/KdsCopyButton/KdsCopyButton.tsx
1377
- var import_jsx_runtime8 = require("react/jsx-runtime");
1378
- var KdsCopyButton = (0, import_react8.forwardRef)(
1403
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1404
+ var KdsCopyButton = (0, import_react9.forwardRef)(
1379
1405
  ({ value, copiedText = "Copiado", className, ...props }, ref) => {
1380
1406
  const { copied, copy } = useCopyToClipboard();
1381
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1407
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1382
1408
  "button",
1383
1409
  {
1384
1410
  ref,
@@ -1388,11 +1414,11 @@ var KdsCopyButton = (0, import_react8.forwardRef)(
1388
1414
  "aria-label": `Copiar: ${value}`,
1389
1415
  ...props,
1390
1416
  children: [
1391
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "kds-copy-button-label", children: [
1392
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "kds-copy-button-value", "aria-hidden": copied || void 0, children: value }),
1393
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "kds-copy-button-copied", "aria-hidden": !copied || void 0, children: copiedText })
1417
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "kds-copy-button-label", children: [
1418
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "kds-copy-button-value", "aria-hidden": copied || void 0, children: value }),
1419
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "kds-copy-button-copied", "aria-hidden": !copied || void 0, children: copiedText })
1394
1420
  ] }),
1395
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: copied ? "check" : "content_copy" })
1421
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: copied ? "check" : "content_copy" })
1396
1422
  ]
1397
1423
  }
1398
1424
  );
@@ -1401,26 +1427,26 @@ var KdsCopyButton = (0, import_react8.forwardRef)(
1401
1427
  KdsCopyButton.displayName = "KdsCopyButton";
1402
1428
 
1403
1429
  // src/components/core/KdsLinearProgress/KdsLinearProgress.tsx
1404
- var import_react9 = require("react");
1405
- var import_jsx_runtime9 = require("react/jsx-runtime");
1406
- var KdsLinearProgress = (0, import_react9.forwardRef)(
1407
- ({ value, max = 100, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("progress", { ref, className: (0, import_clsx.clsx)("kds-progress", className), value, max, ...props })
1430
+ var import_react10 = require("react");
1431
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1432
+ var KdsLinearProgress = (0, import_react10.forwardRef)(
1433
+ ({ 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 })
1408
1434
  );
1409
1435
  KdsLinearProgress.displayName = "KdsLinearProgress";
1410
1436
 
1411
1437
  // src/components/core/KdsAlert/KdsAlert.tsx
1412
- var import_react10 = require("react");
1413
- var import_jsx_runtime10 = require("react/jsx-runtime");
1438
+ var import_react11 = require("react");
1439
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1414
1440
  var DEFAULT_ICONS = {
1415
1441
  success: "check_circle",
1416
1442
  info: "info",
1417
1443
  warning: "warning",
1418
1444
  error: "error"
1419
1445
  };
1420
- var KdsAlert = (0, import_react10.forwardRef)(
1446
+ var KdsAlert = (0, import_react11.forwardRef)(
1421
1447
  ({ severity, title, icon, inline, onClose, children, className, ...props }, ref) => {
1422
1448
  const resolvedIcon = icon === false ? null : typeof icon === "string" ? icon : DEFAULT_ICONS[severity];
1423
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1449
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1424
1450
  "div",
1425
1451
  {
1426
1452
  ref,
@@ -1428,19 +1454,19 @@ var KdsAlert = (0, import_react10.forwardRef)(
1428
1454
  className: (0, import_clsx.clsx)("kds-alert", `kds-${severity}`, inline && "kds-alert-inline", className),
1429
1455
  ...props,
1430
1456
  children: [
1431
- resolvedIcon && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "kds-alert-icon", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("i", { className: "material-symbols-outlined", children: resolvedIcon }) }),
1432
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "kds-alert-content", children: [
1433
- title && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "kds-alert-title", children: title }),
1434
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "kds-alert-description", children })
1457
+ resolvedIcon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "kds-alert-icon", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("i", { className: "material-symbols-outlined", children: resolvedIcon }) }),
1458
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "kds-alert-content", children: [
1459
+ title && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "kds-alert-title", children: title }),
1460
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "kds-alert-description", children })
1435
1461
  ] }),
1436
- onClose && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1462
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1437
1463
  "button",
1438
1464
  {
1439
1465
  type: "button",
1440
1466
  className: "kds-alert-close",
1441
1467
  onClick: onClose,
1442
1468
  "aria-label": "Cerrar",
1443
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1469
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1444
1470
  }
1445
1471
  )
1446
1472
  ]
@@ -1451,8 +1477,8 @@ var KdsAlert = (0, import_react10.forwardRef)(
1451
1477
  KdsAlert.displayName = "KdsAlert";
1452
1478
 
1453
1479
  // src/components/core/KdsTypography/KdsTypography.tsx
1454
- var import_react11 = require("react");
1455
- var import_jsx_runtime11 = require("react/jsx-runtime");
1480
+ var import_react12 = require("react");
1481
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1456
1482
  var variantTag = {
1457
1483
  display1: "h1",
1458
1484
  display2: "h2",
@@ -1468,10 +1494,10 @@ var variantTag = {
1468
1494
  link: "span",
1469
1495
  strong: "span"
1470
1496
  };
1471
- var KdsTypography = (0, import_react11.forwardRef)(
1497
+ var KdsTypography = (0, import_react12.forwardRef)(
1472
1498
  ({ variant = "body", color, as, children, className, ...props }, ref) => {
1473
1499
  const Tag = as || variantTag[variant];
1474
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1500
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1475
1501
  Tag,
1476
1502
  {
1477
1503
  ref,
@@ -1489,12 +1515,12 @@ var KdsTypography = (0, import_react11.forwardRef)(
1489
1515
  KdsTypography.displayName = "KdsTypography";
1490
1516
 
1491
1517
  // src/components/core/KdsTabs/KdsTabs.tsx
1492
- var import_react13 = __toESM(require("react"));
1518
+ var import_react14 = __toESM(require("react"));
1493
1519
 
1494
1520
  // src/components/core/hooks/useTabsKeyboard.ts
1495
- var import_react12 = require("react");
1521
+ var import_react13 = require("react");
1496
1522
  function useTabsKeyboard(tabCount, activeIndex, onChange) {
1497
- const onKeyDown = (0, import_react12.useCallback)(
1523
+ const onKeyDown = (0, import_react13.useCallback)(
1498
1524
  (e) => {
1499
1525
  let next = activeIndex;
1500
1526
  if (e.key === "ArrowRight") next = (activeIndex + 1) % tabCount;
@@ -1514,12 +1540,12 @@ function useTabsKeyboard(tabCount, activeIndex, onChange) {
1514
1540
  }
1515
1541
 
1516
1542
  // src/components/core/KdsTabs/KdsTabs.tsx
1517
- var import_jsx_runtime12 = require("react/jsx-runtime");
1518
- var KdsTabs = (0, import_react13.forwardRef)(
1543
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1544
+ var KdsTabs = (0, import_react14.forwardRef)(
1519
1545
  ({ activeIndex, onChange, children, className, style, ...props }, ref) => {
1520
- const tabCount = import_react13.Children.count(children);
1546
+ const tabCount = import_react14.Children.count(children);
1521
1547
  const { onKeyDown } = useTabsKeyboard(tabCount, activeIndex, onChange);
1522
- const mergedStyle = (0, import_react13.useMemo)(
1548
+ const mergedStyle = (0, import_react14.useMemo)(
1523
1549
  () => ({
1524
1550
  ...style,
1525
1551
  "--_tab-count": tabCount,
@@ -1527,7 +1553,7 @@ var KdsTabs = (0, import_react13.forwardRef)(
1527
1553
  }),
1528
1554
  [tabCount, activeIndex, style]
1529
1555
  );
1530
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1556
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1531
1557
  "div",
1532
1558
  {
1533
1559
  ref,
@@ -1536,9 +1562,9 @@ var KdsTabs = (0, import_react13.forwardRef)(
1536
1562
  style: mergedStyle,
1537
1563
  onKeyDown,
1538
1564
  ...props,
1539
- children: import_react13.Children.map(children, (child, i) => {
1540
- if (!import_react13.default.isValidElement(child)) return child;
1541
- return import_react13.default.cloneElement(child, {
1565
+ children: import_react14.Children.map(children, (child, i) => {
1566
+ if (!import_react14.default.isValidElement(child)) return child;
1567
+ return import_react14.default.cloneElement(child, {
1542
1568
  _active: i === activeIndex,
1543
1569
  _onClick: () => onChange(i)
1544
1570
  });
@@ -1548,8 +1574,8 @@ var KdsTabs = (0, import_react13.forwardRef)(
1548
1574
  }
1549
1575
  );
1550
1576
  KdsTabs.displayName = "KdsTabs";
1551
- var KdsTab = (0, import_react13.forwardRef)(
1552
- ({ _active, _onClick, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1577
+ var KdsTab = (0, import_react14.forwardRef)(
1578
+ ({ _active, _onClick, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1553
1579
  "button",
1554
1580
  {
1555
1581
  ref,
@@ -1565,8 +1591,8 @@ var KdsTab = (0, import_react13.forwardRef)(
1565
1591
  )
1566
1592
  );
1567
1593
  KdsTab.displayName = "KdsTab";
1568
- var KdsTabPanel = (0, import_react13.forwardRef)(
1569
- ({ active, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1594
+ var KdsTabPanel = (0, import_react14.forwardRef)(
1595
+ ({ active, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1570
1596
  "div",
1571
1597
  {
1572
1598
  ref,
@@ -1581,13 +1607,13 @@ var KdsTabPanel = (0, import_react13.forwardRef)(
1581
1607
  KdsTabPanel.displayName = "KdsTabPanel";
1582
1608
 
1583
1609
  // src/components/core/KdsRadioGroup/KdsRadioGroup.tsx
1584
- var import_react14 = require("react");
1585
- var import_jsx_runtime13 = require("react/jsx-runtime");
1586
- var KdsRadioGroup = (0, import_react14.forwardRef)(
1587
- ({ label, name, options, value, onChange, size, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("fieldset", { ref, className: (0, import_clsx.clsx)("kds-radio-group", className), ...props, children: [
1588
- label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("legend", { children: label }),
1589
- options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: (0, import_clsx.clsx)("radio", size), children: [
1590
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1610
+ var import_react15 = require("react");
1611
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1612
+ var KdsRadioGroup = (0, import_react15.forwardRef)(
1613
+ ({ label, name, options, value, onChange, size, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("fieldset", { ref, className: (0, import_clsx.clsx)("kds-radio-group", className), ...props, children: [
1614
+ label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("legend", { children: label }),
1615
+ options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: (0, import_clsx.clsx)("radio", size), children: [
1616
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1591
1617
  "input",
1592
1618
  {
1593
1619
  type: "radio",
@@ -1598,16 +1624,16 @@ var KdsRadioGroup = (0, import_react14.forwardRef)(
1598
1624
  onChange: () => onChange?.(opt.value)
1599
1625
  }
1600
1626
  ),
1601
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: opt.label })
1627
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: opt.label })
1602
1628
  ] }, opt.value))
1603
1629
  ] })
1604
1630
  );
1605
1631
  KdsRadioGroup.displayName = "KdsRadioGroup";
1606
1632
 
1607
1633
  // src/components/core/KdsSelect/KdsSelect.tsx
1608
- var import_react15 = require("react");
1609
- var import_jsx_runtime14 = require("react/jsx-runtime");
1610
- var KdsSelect = (0, import_react15.forwardRef)(
1634
+ var import_react16 = require("react");
1635
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1636
+ var KdsSelect = (0, import_react16.forwardRef)(
1611
1637
  ({
1612
1638
  label,
1613
1639
  options,
@@ -1623,7 +1649,7 @@ var KdsSelect = (0, import_react15.forwardRef)(
1623
1649
  ...props
1624
1650
  }, ref) => {
1625
1651
  const fieldId = id || `kds-select-${label.toLowerCase().replace(/\s+/g, "-")}`;
1626
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1652
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1627
1653
  "div",
1628
1654
  {
1629
1655
  className: (0, import_clsx.clsx)(
@@ -1636,8 +1662,8 @@ var KdsSelect = (0, import_react15.forwardRef)(
1636
1662
  className
1637
1663
  ),
1638
1664
  children: [
1639
- prefixIcon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("i", { className: "material-symbols-outlined", children: prefixIcon }),
1640
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1665
+ prefixIcon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("i", { className: "material-symbols-outlined", children: prefixIcon }),
1666
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1641
1667
  "select",
1642
1668
  {
1643
1669
  ref,
@@ -1646,16 +1672,16 @@ var KdsSelect = (0, import_react15.forwardRef)(
1646
1672
  required,
1647
1673
  ...props,
1648
1674
  children: [
1649
- placeholder !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: "", children: placeholder }),
1650
- options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { value: opt.value, disabled: opt.disabled, children: opt.label }, opt.value))
1675
+ placeholder !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: "", children: placeholder }),
1676
+ options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("option", { value: opt.value, disabled: opt.disabled, children: opt.label }, opt.value))
1651
1677
  ]
1652
1678
  }
1653
1679
  ),
1654
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { htmlFor: fieldId, children: [
1680
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { htmlFor: fieldId, children: [
1655
1681
  label,
1656
1682
  required && " *"
1657
1683
  ] }),
1658
- helperText && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "helper", children: helperText })
1684
+ helperText && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "helper", children: helperText })
1659
1685
  ]
1660
1686
  }
1661
1687
  );
@@ -1664,13 +1690,13 @@ var KdsSelect = (0, import_react15.forwardRef)(
1664
1690
  KdsSelect.displayName = "KdsSelect";
1665
1691
 
1666
1692
  // src/components/core/KdsChip/KdsChip.tsx
1667
- var import_react16 = require("react");
1668
- var import_jsx_runtime15 = require("react/jsx-runtime");
1669
- var KdsChip = (0, import_react16.forwardRef)(
1670
- ({ color, icon, onDelete, children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { ref, className: (0, import_clsx.clsx)("kds-badge", color, className), ...props, children: [
1671
- icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1672
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children }),
1673
- onDelete && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1693
+ var import_react17 = require("react");
1694
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1695
+ var KdsChip = (0, import_react17.forwardRef)(
1696
+ ({ 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: [
1697
+ icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1698
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children }),
1699
+ onDelete && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1674
1700
  "button",
1675
1701
  {
1676
1702
  type: "button",
@@ -1680,7 +1706,7 @@ var KdsChip = (0, import_react16.forwardRef)(
1680
1706
  onDelete();
1681
1707
  },
1682
1708
  "aria-label": "Eliminar",
1683
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1709
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1684
1710
  }
1685
1711
  )
1686
1712
  ] })
@@ -1688,15 +1714,15 @@ var KdsChip = (0, import_react16.forwardRef)(
1688
1714
  KdsChip.displayName = "KdsChip";
1689
1715
 
1690
1716
  // src/components/core/KdsSnackbar/KdsSnackbar.tsx
1691
- var import_react18 = require("react");
1717
+ var import_react19 = require("react");
1692
1718
 
1693
1719
  // src/components/core/hooks/useAutoHide.ts
1694
- var import_react17 = require("react");
1720
+ var import_react18 = require("react");
1695
1721
  function useAutoHide(durationMs, onHide) {
1696
- const [visible, setVisible] = (0, import_react17.useState)(true);
1697
- const onHideRef = (0, import_react17.useRef)(onHide);
1722
+ const [visible, setVisible] = (0, import_react18.useState)(true);
1723
+ const onHideRef = (0, import_react18.useRef)(onHide);
1698
1724
  onHideRef.current = onHide;
1699
- (0, import_react17.useEffect)(() => {
1725
+ (0, import_react18.useEffect)(() => {
1700
1726
  if (durationMs <= 0) return;
1701
1727
  const timer = setTimeout(() => {
1702
1728
  setVisible(false);
@@ -1708,13 +1734,13 @@ function useAutoHide(durationMs, onHide) {
1708
1734
  }
1709
1735
 
1710
1736
  // src/components/core/KdsSnackbar/KdsSnackbar.tsx
1711
- var import_jsx_runtime16 = require("react/jsx-runtime");
1737
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1712
1738
  var DEFAULT_ICONS2 = {
1713
1739
  info: "info",
1714
1740
  success: "check_circle",
1715
1741
  error: "error"
1716
1742
  };
1717
- var KdsSnackbar = (0, import_react18.forwardRef)(
1743
+ var KdsSnackbar = (0, import_react19.forwardRef)(
1718
1744
  ({
1719
1745
  message,
1720
1746
  type = "info",
@@ -1731,7 +1757,7 @@ var KdsSnackbar = (0, import_react18.forwardRef)(
1731
1757
  if (!open || !visible) return null;
1732
1758
  const resolvedIcon = icon === false ? null : icon ?? DEFAULT_ICONS2[type];
1733
1759
  const mergedStyle = autoDismiss ? { ...style, ["--kds-snackbar-duration"]: `${duration}ms` } : style ?? {};
1734
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1760
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1735
1761
  "div",
1736
1762
  {
1737
1763
  ref,
@@ -1741,16 +1767,16 @@ var KdsSnackbar = (0, import_react18.forwardRef)(
1741
1767
  style: mergedStyle,
1742
1768
  ...props,
1743
1769
  children: [
1744
- resolvedIcon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { className: "material-symbols-outlined", children: resolvedIcon }),
1745
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "max", children: message }),
1746
- onClose && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1770
+ resolvedIcon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", { className: "material-symbols-outlined", children: resolvedIcon }),
1771
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "max", children: message }),
1772
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1747
1773
  "button",
1748
1774
  {
1749
1775
  type: "button",
1750
1776
  className: "kds-snackbar-close",
1751
1777
  onClick: onClose,
1752
1778
  "aria-label": "Cerrar",
1753
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1779
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", { className: "material-symbols-outlined", children: "close" })
1754
1780
  }
1755
1781
  )
1756
1782
  ]
@@ -1762,7 +1788,7 @@ KdsSnackbar.displayName = "KdsSnackbar";
1762
1788
 
1763
1789
  // src/components/core/KdsTooltip/KdsTooltip.tsx
1764
1790
  var Tooltip = __toESM(require("@radix-ui/react-tooltip"));
1765
- var import_jsx_runtime17 = require("react/jsx-runtime");
1791
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1766
1792
  function KdsTooltip({
1767
1793
  content,
1768
1794
  children,
@@ -1773,9 +1799,9 @@ function KdsTooltip({
1773
1799
  onOpenChange,
1774
1800
  delayDuration = 300
1775
1801
  }) {
1776
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tooltip.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Tooltip.Root, { open, defaultOpen, onOpenChange, children: [
1777
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tooltip.Trigger, { asChild: true, children }),
1778
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1802
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tooltip.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Tooltip.Root, { open, defaultOpen, onOpenChange, children: [
1803
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tooltip.Trigger, { asChild: true, children }),
1804
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1779
1805
  Tooltip.Content,
1780
1806
  {
1781
1807
  className: (0, import_clsx.clsx)("kds-tooltip", className),
@@ -1784,7 +1810,7 @@ function KdsTooltip({
1784
1810
  collisionPadding: 8,
1785
1811
  children: [
1786
1812
  content,
1787
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tooltip.Arrow, { className: "kds-tooltip-arrow", width: 10, height: 5 })
1813
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tooltip.Arrow, { className: "kds-tooltip-arrow", width: 10, height: 5 })
1788
1814
  ]
1789
1815
  }
1790
1816
  ) })
@@ -1792,68 +1818,68 @@ function KdsTooltip({
1792
1818
  }
1793
1819
 
1794
1820
  // src/components/core/KdsAccordion/KdsAccordion.tsx
1795
- var import_react19 = require("react");
1796
- var import_jsx_runtime18 = require("react/jsx-runtime");
1797
- var KdsAccordion = (0, import_react19.forwardRef)(
1798
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("details", { ref, className: (0, import_clsx.clsx)("kds-accordion", className), ...props, children })
1821
+ var import_react20 = require("react");
1822
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1823
+ var KdsAccordion = (0, import_react20.forwardRef)(
1824
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("details", { ref, className: (0, import_clsx.clsx)("kds-accordion", className), ...props, children })
1799
1825
  );
1800
1826
  KdsAccordion.displayName = "KdsAccordion";
1801
- var KdsAccordionSummary = (0, import_react19.forwardRef)(
1802
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("summary", { ref, className: (0, import_clsx.clsx)("kds-accordion-summary", className), ...props, children: [
1827
+ var KdsAccordionSummary = (0, import_react20.forwardRef)(
1828
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("summary", { ref, className: (0, import_clsx.clsx)("kds-accordion-summary", className), ...props, children: [
1803
1829
  children,
1804
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", { className: "material-symbols-outlined", children: "expand_more" })
1830
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("i", { className: "material-symbols-outlined", children: "expand_more" })
1805
1831
  ] })
1806
1832
  );
1807
1833
  KdsAccordionSummary.displayName = "KdsAccordionSummary";
1808
- var KdsAccordionDetails = (0, import_react19.forwardRef)(
1809
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-accordion-details", className), ...props, children })
1834
+ var KdsAccordionDetails = (0, import_react20.forwardRef)(
1835
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-accordion-details", className), ...props, children })
1810
1836
  );
1811
1837
  KdsAccordionDetails.displayName = "KdsAccordionDetails";
1812
1838
 
1813
1839
  // src/components/core/KdsDivider/KdsDivider.tsx
1814
- var import_react20 = require("react");
1815
- var import_jsx_runtime19 = require("react/jsx-runtime");
1816
- var KdsDivider = (0, import_react20.forwardRef)(
1817
- ({ dashed, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("hr", { ref, className: (0, import_clsx.clsx)(dashed ? "kds-hr-dashed" : "kds-hr", className), ...props })
1840
+ var import_react21 = require("react");
1841
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1842
+ var KdsDivider = (0, import_react21.forwardRef)(
1843
+ ({ 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 })
1818
1844
  );
1819
1845
  KdsDivider.displayName = "KdsDivider";
1820
1846
 
1821
1847
  // src/components/core/KdsSectionNote/KdsSectionNote.tsx
1822
- var import_react21 = require("react");
1823
- var import_jsx_runtime20 = require("react/jsx-runtime");
1824
- var KdsSectionNote = (0, import_react21.forwardRef)(
1825
- ({ icon = "info", children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("p", { ref, className: (0, import_clsx.clsx)("kds-section-note", className), ...props, children: [
1826
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1827
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children })
1848
+ var import_react22 = require("react");
1849
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1850
+ var KdsSectionNote = (0, import_react22.forwardRef)(
1851
+ ({ 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: [
1852
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("i", { className: "material-symbols-outlined", children: icon }),
1853
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children })
1828
1854
  ] })
1829
1855
  );
1830
1856
  KdsSectionNote.displayName = "KdsSectionNote";
1831
1857
 
1832
1858
  // src/components/core/KdsStatusBlock/KdsStatusBlock.tsx
1833
- var import_react22 = require("react");
1834
- var import_jsx_runtime21 = require("react/jsx-runtime");
1835
- var KdsStatusBlock = (0, import_react22.forwardRef)(
1836
- ({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-status-block", inline && "inline", className), "data-status": status, ...props, children: [
1837
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
1838
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
1839
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h2", { className: "kds-status-block-title", children: title }),
1840
- description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "kds-status-block-description", children: description })
1859
+ var import_react23 = require("react");
1860
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1861
+ var KdsStatusBlock = (0, import_react23.forwardRef)(
1862
+ ({ 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: [
1863
+ /* @__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 }) }),
1864
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1865
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "kds-status-block-title", children: title }),
1866
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "kds-status-block-description", children: description })
1841
1867
  ] })
1842
1868
  ] })
1843
1869
  );
1844
1870
  KdsStatusBlock.displayName = "KdsStatusBlock";
1845
1871
 
1846
1872
  // src/components/core/KdsStepper/KdsStepper.tsx
1847
- var import_react23 = require("react");
1848
- var import_jsx_runtime22 = require("react/jsx-runtime");
1849
- var KdsStepper = (0, import_react23.forwardRef)(
1850
- ({ steps, current, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1873
+ var import_react24 = require("react");
1874
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1875
+ var KdsStepper = (0, import_react24.forwardRef)(
1876
+ ({ 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)(
1851
1877
  "div",
1852
1878
  {
1853
1879
  className: (0, import_clsx.clsx)("kds-step", i < current && "completed", i === current && "current"),
1854
1880
  children: [
1855
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "kds-step-indicator" }),
1856
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "kds-step-label", children: label })
1881
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-step-indicator" }),
1882
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "kds-step-label", children: label })
1857
1883
  ]
1858
1884
  },
1859
1885
  `${i}-${label}`
@@ -1862,12 +1888,12 @@ var KdsStepper = (0, import_react23.forwardRef)(
1862
1888
  KdsStepper.displayName = "KdsStepper";
1863
1889
 
1864
1890
  // src/components/core/KdsCopyRow/KdsCopyRow.tsx
1865
- var import_react24 = require("react");
1866
- var import_jsx_runtime23 = require("react/jsx-runtime");
1867
- var KdsCopyRow = (0, import_react24.forwardRef)(
1891
+ var import_react25 = require("react");
1892
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1893
+ var KdsCopyRow = (0, import_react25.forwardRef)(
1868
1894
  ({ label, value, copiedText = "Copiado", className, ...props }, ref) => {
1869
1895
  const { copied, copy } = useCopyToClipboard();
1870
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1896
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1871
1897
  "button",
1872
1898
  {
1873
1899
  ref,
@@ -1878,13 +1904,13 @@ var KdsCopyRow = (0, import_react24.forwardRef)(
1878
1904
  "aria-label": `Copiar ${label}: ${value}`,
1879
1905
  ...props,
1880
1906
  children: [
1881
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: "content_copy" }),
1882
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1883
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "kds-copy-row-label", children: label }),
1884
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "kds-copy-row-value", children: value })
1907
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: "content_copy" }),
1908
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
1909
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-copy-row-label", children: label }),
1910
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-copy-row-value", children: value })
1885
1911
  ] }),
1886
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "kds-copy-toast", "aria-hidden": "true", children: [
1887
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("i", { className: "material-symbols-outlined", children: "check_circle" }),
1912
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "kds-copy-toast", "aria-hidden": "true", children: [
1913
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("i", { className: "material-symbols-outlined", children: "check_circle" }),
1888
1914
  " ",
1889
1915
  copiedText
1890
1916
  ] })
@@ -1896,8 +1922,8 @@ var KdsCopyRow = (0, import_react24.forwardRef)(
1896
1922
  KdsCopyRow.displayName = "KdsCopyRow";
1897
1923
 
1898
1924
  // src/components/core/KdsCopyableTable/KdsCopyableTable.tsx
1899
- var import_react25 = require("react");
1900
- var import_jsx_runtime24 = require("react/jsx-runtime");
1925
+ var import_react26 = require("react");
1926
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1901
1927
  async function copyToClipboard(text) {
1902
1928
  try {
1903
1929
  if (navigator.clipboard?.writeText) {
@@ -1922,159 +1948,228 @@ async function copyToClipboard(text) {
1922
1948
  }
1923
1949
  }
1924
1950
  var TRANSITION_MS = 300;
1925
- var KdsCopyableTable = (0, import_react25.forwardRef)(
1926
- ({
1927
- rows,
1928
- copyAllLabel = "Copiar todos los datos",
1929
- copiedAllLabel = "Datos copiados",
1930
- showCopyAll = true,
1931
- className,
1932
- ...props
1933
- }, ref) => {
1934
- const copiedTimers = (0, import_react25.useRef)(/* @__PURE__ */ new Map());
1935
- const settlingTimers = (0, import_react25.useRef)(/* @__PURE__ */ new Map());
1936
- const [copiedRows, setCopiedRows] = (0, import_react25.useState)(/* @__PURE__ */ new Set());
1937
- const [settlingRows, setSettlingRows] = (0, import_react25.useState)(/* @__PURE__ */ new Set());
1938
- const [allCopied, setAllCopied] = (0, import_react25.useState)(false);
1939
- const markCopied = (0, import_react25.useCallback)((indexes, duration = 1500) => {
1940
- setCopiedRows((prev) => {
1941
- const next = new Set(prev);
1942
- indexes.forEach((i) => next.add(i));
1943
- return next;
1944
- });
1945
- indexes.forEach((i) => {
1946
- const st = settlingTimers.current.get(i);
1947
- if (st) {
1948
- clearTimeout(st);
1949
- settlingTimers.current.delete(i);
1950
- }
1951
- });
1952
- setSettlingRows((prev) => {
1953
- const next = new Set(prev);
1954
- indexes.forEach((i) => next.delete(i));
1955
- return next;
1956
- });
1957
- indexes.forEach((i) => {
1958
- const existing = copiedTimers.current.get(i);
1959
- if (existing) clearTimeout(existing);
1960
- const t = setTimeout(() => {
1961
- setCopiedRows((prev) => {
1962
- const next = new Set(prev);
1963
- next.delete(i);
1964
- return next;
1965
- });
1951
+ function GridVariant({
1952
+ gridRows,
1953
+ disabled,
1954
+ className,
1955
+ forwardedRef,
1956
+ rest
1957
+ }) {
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1959
+ "div",
1960
+ {
1961
+ ref: forwardedRef,
1962
+ className: (0, import_clsx.clsx)("kds-copyable-table", "kds-copyable-table--grid", className),
1963
+ ...rest,
1964
+ children: gridRows.map((cells, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1965
+ "div",
1966
+ {
1967
+ className: "kds-copyable-table-row kds-copyable-table-row--grid",
1968
+ "data-testid": "kds-grid-row",
1969
+ children: cells.map((text, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1970
+ "span",
1971
+ {
1972
+ className: (0, import_clsx.clsx)("kds-grid-cell", disabled && "kds-grid-cell--disabled"),
1973
+ children: text
1974
+ },
1975
+ cellIndex
1976
+ ))
1977
+ },
1978
+ rowIndex
1979
+ ))
1980
+ }
1981
+ );
1982
+ }
1983
+ function CopyableVariant({
1984
+ rows,
1985
+ copyAllLabel = "Copiar todos los datos",
1986
+ copiedAllLabel = "Datos copiados",
1987
+ showCopyAll = true,
1988
+ className,
1989
+ forwardedRef,
1990
+ rest
1991
+ }) {
1992
+ const copiedTimers = (0, import_react26.useRef)(/* @__PURE__ */ new Map());
1993
+ const settlingTimers = (0, import_react26.useRef)(/* @__PURE__ */ new Map());
1994
+ const [copiedRows, setCopiedRows] = (0, import_react26.useState)(/* @__PURE__ */ new Set());
1995
+ const [settlingRows, setSettlingRows] = (0, import_react26.useState)(/* @__PURE__ */ new Set());
1996
+ const [allCopied, setAllCopied] = (0, import_react26.useState)(false);
1997
+ const markCopied = (0, import_react26.useCallback)((indexes, duration = 1500) => {
1998
+ setCopiedRows((prev) => {
1999
+ const next = new Set(prev);
2000
+ indexes.forEach((i) => next.add(i));
2001
+ return next;
2002
+ });
2003
+ indexes.forEach((i) => {
2004
+ const st = settlingTimers.current.get(i);
2005
+ if (st) {
2006
+ clearTimeout(st);
2007
+ settlingTimers.current.delete(i);
2008
+ }
2009
+ });
2010
+ setSettlingRows((prev) => {
2011
+ const next = new Set(prev);
2012
+ indexes.forEach((i) => next.delete(i));
2013
+ return next;
2014
+ });
2015
+ indexes.forEach((i) => {
2016
+ const existing = copiedTimers.current.get(i);
2017
+ if (existing) clearTimeout(existing);
2018
+ const t = setTimeout(() => {
2019
+ setCopiedRows((prev) => {
2020
+ const next = new Set(prev);
2021
+ next.delete(i);
2022
+ return next;
2023
+ });
2024
+ setSettlingRows((prev) => {
2025
+ const next = new Set(prev);
2026
+ next.add(i);
2027
+ return next;
2028
+ });
2029
+ copiedTimers.current.delete(i);
2030
+ const settlingT = setTimeout(() => {
1966
2031
  setSettlingRows((prev) => {
1967
2032
  const next = new Set(prev);
1968
- next.add(i);
2033
+ next.delete(i);
1969
2034
  return next;
1970
2035
  });
1971
- copiedTimers.current.delete(i);
1972
- const settlingT = setTimeout(() => {
1973
- setSettlingRows((prev) => {
1974
- const next = new Set(prev);
1975
- next.delete(i);
1976
- return next;
1977
- });
1978
- settlingTimers.current.delete(i);
1979
- }, TRANSITION_MS);
1980
- settlingTimers.current.set(i, settlingT);
1981
- }, duration);
1982
- copiedTimers.current.set(i, t);
1983
- });
1984
- }, []);
1985
- const handleRowCopy = async (row, index) => {
1986
- const ok = await copyToClipboard(row.copy ?? row.value);
1987
- if (ok) markCopied([index]);
1988
- };
1989
- const handleCopyAll = async () => {
1990
- const text = rows.map((r) => `${r.label}: ${r.value}`).join("\n");
1991
- const ok = await copyToClipboard(text);
1992
- if (ok) {
1993
- markCopied(rows.map((_, i) => i));
1994
- setAllCopied(true);
1995
- setTimeout(() => setAllCopied(false), 2e3);
1996
- }
1997
- };
1998
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1999
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-copyable-table", className), ...props, children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2000
- "div",
2001
- {
2002
- className: (0, import_clsx.clsx)(
2003
- "kds-copyable-table-row",
2004
- copiedRows.has(i) && "copied",
2005
- settlingRows.has(i) && "settling"
2006
- ),
2007
- role: "button",
2008
- tabIndex: 0,
2009
- onClick: () => handleRowCopy(row, i),
2010
- onKeyDown: (e) => {
2011
- if (e.key === "Enter" || e.key === " ") {
2012
- e.preventDefault();
2013
- handleRowCopy(row, i);
2014
- }
2015
- },
2016
- "aria-label": `Copiar ${row.label}: ${row.value}`,
2017
- children: [
2018
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-key", children: row.label }),
2019
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-value", children: row.value })
2020
- ]
2036
+ settlingTimers.current.delete(i);
2037
+ }, TRANSITION_MS);
2038
+ settlingTimers.current.set(i, settlingT);
2039
+ }, duration);
2040
+ copiedTimers.current.set(i, t);
2041
+ });
2042
+ }, []);
2043
+ const handleRowCopy = async (row, index) => {
2044
+ const ok = await copyToClipboard(row.copy ?? row.value);
2045
+ if (ok) markCopied([index]);
2046
+ };
2047
+ const handleCopyAll = async () => {
2048
+ const text = rows.map((r) => `${r.label}: ${r.value}`).join("\n");
2049
+ const ok = await copyToClipboard(text);
2050
+ if (ok) {
2051
+ markCopied(rows.map((_, i) => i));
2052
+ setAllCopied(true);
2053
+ setTimeout(() => setAllCopied(false), 2e3);
2054
+ }
2055
+ };
2056
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
2057
+ /* @__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)(
2058
+ "div",
2059
+ {
2060
+ className: (0, import_clsx.clsx)(
2061
+ "kds-copyable-table-row",
2062
+ copiedRows.has(i) && "copied",
2063
+ settlingRows.has(i) && "settling"
2064
+ ),
2065
+ role: "button",
2066
+ tabIndex: 0,
2067
+ onClick: () => handleRowCopy(row, i),
2068
+ onKeyDown: (e) => {
2069
+ if (e.key === "Enter" || e.key === " ") {
2070
+ e.preventDefault();
2071
+ handleRowCopy(row, i);
2072
+ }
2021
2073
  },
2022
- `${row.label}-${i}`
2023
- )) }),
2024
- showCopyAll && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2025
- "button",
2074
+ "aria-label": `Copiar ${row.label}: ${row.value}`,
2075
+ children: [
2076
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-key", children: row.label }),
2077
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "kds-value", children: row.value })
2078
+ ]
2079
+ },
2080
+ `${row.label}-${i}`
2081
+ )) }),
2082
+ showCopyAll && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2083
+ "button",
2084
+ {
2085
+ type: "button",
2086
+ className: (0, import_clsx.clsx)(
2087
+ "kds-btn",
2088
+ "kds-btn-outlined",
2089
+ "kds-btn-block",
2090
+ "kds-copy-all-btn",
2091
+ allCopied && "copied"
2092
+ ),
2093
+ onClick: handleCopyAll,
2094
+ "aria-label": allCopied ? copiedAllLabel : copyAllLabel,
2095
+ children: [
2096
+ /* @__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" }) }),
2097
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: allCopied ? copiedAllLabel : copyAllLabel })
2098
+ ]
2099
+ }
2100
+ )
2101
+ ] });
2102
+ }
2103
+ var KdsCopyableTable = (0, import_react26.forwardRef)(
2104
+ ({
2105
+ rows = [],
2106
+ variant = "copyable",
2107
+ gridRows = [],
2108
+ disabled = false,
2109
+ copyAllLabel,
2110
+ copiedAllLabel,
2111
+ showCopyAll,
2112
+ className,
2113
+ ...props
2114
+ }, ref) => {
2115
+ if (variant === "grid") {
2116
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2117
+ GridVariant,
2026
2118
  {
2027
- type: "button",
2028
- className: (0, import_clsx.clsx)(
2029
- "kds-btn",
2030
- "kds-btn-outlined",
2031
- "kds-btn-block",
2032
- "kds-copy-all-btn",
2033
- allCopied && "copied"
2034
- ),
2035
- onClick: handleCopyAll,
2036
- "aria-label": allCopied ? copiedAllLabel : copyAllLabel,
2037
- children: [
2038
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "kds-icon", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("i", { className: "material-symbols-outlined", children: allCopied ? "check" : "content_copy" }) }),
2039
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: allCopied ? copiedAllLabel : copyAllLabel })
2040
- ]
2119
+ gridRows,
2120
+ disabled,
2121
+ className,
2122
+ forwardedRef: ref,
2123
+ rest: props
2041
2124
  }
2042
- )
2043
- ] });
2125
+ );
2126
+ }
2127
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2128
+ CopyableVariant,
2129
+ {
2130
+ rows,
2131
+ copyAllLabel,
2132
+ copiedAllLabel,
2133
+ showCopyAll,
2134
+ className,
2135
+ forwardedRef: ref,
2136
+ rest: props
2137
+ }
2138
+ );
2044
2139
  }
2045
2140
  );
2046
2141
  KdsCopyableTable.displayName = "KdsCopyableTable";
2047
2142
 
2048
2143
  // src/components/core/KdsExpandPanel/KdsExpandPanel.tsx
2049
- var import_react26 = require("react");
2050
- var import_jsx_runtime25 = require("react/jsx-runtime");
2051
- var KdsExpandPanel = (0, import_react26.forwardRef)(
2144
+ var import_react27 = require("react");
2145
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2146
+ var KdsExpandPanel = (0, import_react27.forwardRef)(
2052
2147
  ({ label, defaultExpanded = false, children, className, ...props }, ref) => {
2053
- const [expanded, setExpanded] = (0, import_react26.useState)(defaultExpanded);
2054
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ref, className, ...props, children: [
2055
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2148
+ const [expanded, setExpanded] = (0, import_react27.useState)(defaultExpanded);
2149
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, className, ...props, children: [
2150
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2056
2151
  "button",
2057
2152
  {
2058
2153
  className: "kds-expand-toggle",
2059
2154
  onClick: () => setExpanded((v) => !v),
2060
2155
  "aria-expanded": expanded,
2061
2156
  children: [
2062
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: label }),
2063
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("i", { className: "material-symbols-outlined", children: expanded ? "expand_less" : "expand_more" })
2157
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: label }),
2158
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("i", { className: "material-symbols-outlined", children: expanded ? "expand_less" : "expand_more" })
2064
2159
  ]
2065
2160
  }
2066
2161
  ),
2067
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"), hidden: !expanded, children })
2162
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"), hidden: !expanded, children })
2068
2163
  ] });
2069
2164
  }
2070
2165
  );
2071
2166
  KdsExpandPanel.displayName = "KdsExpandPanel";
2072
2167
 
2073
2168
  // src/components/core/KdsCountdown/KdsCountdown.tsx
2074
- var import_react28 = require("react");
2169
+ var import_react29 = require("react");
2075
2170
 
2076
2171
  // src/components/core/hooks/useCountdown.ts
2077
- var import_react27 = require("react");
2172
+ var import_react28 = require("react");
2078
2173
  function calcRemaining(deadline) {
2079
2174
  const diff = Math.max(0, new Date(deadline).getTime() - Date.now());
2080
2175
  const totalSeconds = Math.floor(diff / 1e3);
@@ -2087,8 +2182,8 @@ function calcRemaining(deadline) {
2087
2182
  };
2088
2183
  }
2089
2184
  function useCountdown(deadline) {
2090
- const [state, setState] = (0, import_react27.useState)(() => calcRemaining(deadline));
2091
- (0, import_react27.useEffect)(() => {
2185
+ const [state, setState] = (0, import_react28.useState)(() => calcRemaining(deadline));
2186
+ (0, import_react28.useEffect)(() => {
2092
2187
  const tick = () => setState(calcRemaining(deadline));
2093
2188
  const id = setInterval(tick, 1e3);
2094
2189
  return () => clearInterval(id);
@@ -2097,13 +2192,13 @@ function useCountdown(deadline) {
2097
2192
  }
2098
2193
 
2099
2194
  // src/components/core/KdsCountdown/KdsCountdown.tsx
2100
- var import_jsx_runtime26 = require("react/jsx-runtime");
2101
- var KdsCountdown = (0, import_react28.forwardRef)(
2195
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2196
+ var KdsCountdown = (0, import_react29.forwardRef)(
2102
2197
  ({ deadline, label, onExpire, className, ...props }, ref) => {
2103
2198
  const { hours, minutes, seconds, expired, urgent } = useCountdown(deadline);
2104
- const onExpireRef = (0, import_react28.useRef)(onExpire);
2199
+ const onExpireRef = (0, import_react29.useRef)(onExpire);
2105
2200
  onExpireRef.current = onExpire;
2106
- (0, import_react28.useEffect)(() => {
2201
+ (0, import_react29.useEffect)(() => {
2107
2202
  if (expired) {
2108
2203
  onExpireRef.current?.();
2109
2204
  }
@@ -2112,9 +2207,9 @@ var KdsCountdown = (0, import_react28.forwardRef)(
2112
2207
  return null;
2113
2208
  }
2114
2209
  const pad = (n) => String(n).padStart(2, "0");
2115
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-countdown", urgent && "urgent", className), ...props, children: [
2116
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "kds-countdown-label", children: label }),
2117
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "kds-countdown-value", children: [
2210
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-countdown", urgent && "urgent", className), ...props, children: [
2211
+ label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "kds-countdown-label", children: label }),
2212
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "kds-countdown-value", children: [
2118
2213
  pad(hours),
2119
2214
  ":",
2120
2215
  pad(minutes),
@@ -2127,18 +2222,18 @@ var KdsCountdown = (0, import_react28.forwardRef)(
2127
2222
  KdsCountdown.displayName = "KdsCountdown";
2128
2223
 
2129
2224
  // src/components/core/KdsSegmentedTabs/KdsSegmentedTabs.tsx
2130
- var import_react29 = require("react");
2131
- var import_jsx_runtime27 = require("react/jsx-runtime");
2132
- var KdsSegmentedTabs = (0, import_react29.forwardRef)(
2133
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(KdsTabs, { ref, ...props })
2225
+ var import_react30 = require("react");
2226
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2227
+ var KdsSegmentedTabs = (0, import_react30.forwardRef)(
2228
+ (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(KdsTabs, { ref, ...props })
2134
2229
  );
2135
2230
  KdsSegmentedTabs.displayName = "KdsSegmentedTabs";
2136
2231
 
2137
2232
  // src/components/domain/KdsBankRow/KdsBankRow.tsx
2138
- var import_react30 = require("react");
2139
- var import_jsx_runtime28 = require("react/jsx-runtime");
2140
- var KdsBankRow = (0, import_react30.forwardRef)(
2141
- ({ name, logoUrl, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2233
+ var import_react31 = require("react");
2234
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2235
+ var KdsBankRow = (0, import_react31.forwardRef)(
2236
+ ({ name, logoUrl, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
2142
2237
  "button",
2143
2238
  {
2144
2239
  ref,
@@ -2146,9 +2241,9 @@ var KdsBankRow = (0, import_react30.forwardRef)(
2146
2241
  className: (0, import_clsx.clsx)("kds-bank-row", selected && "selected", className),
2147
2242
  ...props,
2148
2243
  children: [
2149
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "kds-bank-row-logo", children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("img", { src: logoUrl, alt: name }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "initials", children: name.charAt(0) }) }),
2150
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "kds-bank-row-name", children: name }),
2151
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("i", { className: "material-symbols-outlined", children: selected ? "check_circle" : "chevron_right" })
2244
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "kds-bank-row-logo", children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("img", { src: logoUrl, alt: name }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "initials", children: name.charAt(0) }) }),
2245
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "kds-bank-row-name", children: name }),
2246
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("i", { className: "material-symbols-outlined", children: selected ? "check_circle" : "chevron_right" })
2152
2247
  ]
2153
2248
  }
2154
2249
  )
@@ -2156,67 +2251,66 @@ var KdsBankRow = (0, import_react30.forwardRef)(
2156
2251
  KdsBankRow.displayName = "KdsBankRow";
2157
2252
 
2158
2253
  // src/components/domain/KdsBankList/KdsBankList.tsx
2159
- var import_react31 = require("react");
2160
- var import_jsx_runtime29 = require("react/jsx-runtime");
2161
- var KdsBankList = (0, import_react31.forwardRef)(
2162
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bank-list", className), role: "list", ...props, children })
2254
+ var import_react32 = require("react");
2255
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2256
+ var KdsBankList = (0, import_react32.forwardRef)(
2257
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bank-list", className), role: "list", ...props, children })
2163
2258
  );
2164
2259
  KdsBankList.displayName = "KdsBankList";
2165
2260
 
2166
2261
  // src/components/domain/KdsBankModal/KdsBankModal.tsx
2167
- var import_react32 = require("react");
2262
+ var import_react33 = require("react");
2168
2263
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
2169
- var import_jsx_runtime30 = require("react/jsx-runtime");
2170
- var KdsBankModal = (0, import_react32.forwardRef)(
2264
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2265
+ var KdsBankModal = (0, import_react33.forwardRef)(
2171
2266
  ({ open, onClose, title = "Selecciona tu banco", searchPlaceholder = "Buscar banco...", onSearch, children, className, container }, ref) => {
2172
- const [query, setQuery] = (0, import_react32.useState)("");
2267
+ const [query, setQuery] = (0, import_react33.useState)("");
2173
2268
  const handleSearch = (value) => {
2174
2269
  setQuery(value);
2175
2270
  onSearch?.(value);
2176
2271
  };
2177
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Dialog.Root, { open, onOpenChange: (o) => {
2272
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Dialog.Root, { open, onOpenChange: (o) => {
2178
2273
  if (!o) onClose();
2179
- }, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Dialog.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Dialog.Overlay, { className: "kds-bank-modal-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Dialog.Content, { ref, className: (0, import_clsx.clsx)("kds-bank-modal", className), children: [
2180
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "kds-bank-modal-header", children: [
2181
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Dialog.Title, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { children: title }) }),
2182
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { className: "kds-bank-modal-close", "aria-label": "Cerrar", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { className: "material-symbols-outlined", children: "close" }) }) })
2274
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Dialog.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Dialog.Overlay, { className: "kds-bank-modal-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Dialog.Content, { ref, className: (0, import_clsx.clsx)("kds-bank-modal", className), children: [
2275
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "kds-bank-modal-header", children: [
2276
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Dialog.Title, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("h3", { children: title }) }),
2277
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { className: "kds-bank-modal-close", "aria-label": "Cerrar", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("i", { className: "material-symbols-outlined", children: "close" }) }) })
2183
2278
  ] }),
2184
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "kds-bank-modal-search", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2185
- "input",
2279
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "kds-bank-modal-search", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2280
+ KdsSearchField,
2186
2281
  {
2187
- type: "text",
2188
2282
  placeholder: searchPlaceholder,
2189
2283
  value: query,
2190
2284
  onChange: (e) => handleSearch(e.target.value)
2191
2285
  }
2192
2286
  ) }),
2193
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "kds-bank-modal-body", children })
2287
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "kds-bank-modal-body", children })
2194
2288
  ] }) }) }) });
2195
2289
  }
2196
2290
  );
2197
2291
  KdsBankModal.displayName = "KdsBankModal";
2198
2292
 
2199
2293
  // src/components/domain/KdsQrRow/KdsQrRow.tsx
2200
- var import_react33 = require("react");
2201
- var import_jsx_runtime31 = require("react/jsx-runtime");
2202
- var KdsQrRow = (0, import_react33.forwardRef)(
2203
- ({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("button", { ref, type: "button", className: (0, import_clsx.clsx)("kds-qr-row", className), ...props, children: [
2204
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-qr-avatar", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2205
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "kds-qr-text", children: [
2206
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-qr-title", children: name }),
2207
- description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-qr-subtitle", children: description })
2294
+ var import_react34 = require("react");
2295
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2296
+ var KdsQrRow = (0, import_react34.forwardRef)(
2297
+ ({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("button", { ref, type: "button", className: (0, import_clsx.clsx)("kds-qr-row", className), ...props, children: [
2298
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-qr-avatar", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2299
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "kds-qr-text", children: [
2300
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-qr-title", children: name }),
2301
+ description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-qr-subtitle", children: description })
2208
2302
  ] }),
2209
- badge && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "kds-qr-badge", children: badge }),
2210
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("i", { className: "material-symbols-outlined", children: "chevron_right" })
2303
+ badge && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-qr-badge", children: badge }),
2304
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("i", { className: "material-symbols-outlined", children: "chevron_right" })
2211
2305
  ] })
2212
2306
  );
2213
2307
  KdsQrRow.displayName = "KdsQrRow";
2214
2308
 
2215
2309
  // src/components/domain/KdsCardSelector/KdsCardSelector.tsx
2216
- var import_react34 = require("react");
2217
- var import_jsx_runtime32 = require("react/jsx-runtime");
2218
- var KdsCardSelector = (0, import_react34.forwardRef)(
2219
- ({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2310
+ var import_react35 = require("react");
2311
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2312
+ var KdsCardSelector = (0, import_react35.forwardRef)(
2313
+ ({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2220
2314
  "button",
2221
2315
  {
2222
2316
  ref,
@@ -2224,9 +2318,9 @@ var KdsCardSelector = (0, import_react34.forwardRef)(
2224
2318
  className: (0, import_clsx.clsx)("kds-card-selector", selected && "selected", className),
2225
2319
  ...props,
2226
2320
  children: [
2227
- icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-card-selector-icon", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2228
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-card-selector-title", children: title }),
2229
- description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "kds-card-selector-description", children: description })
2321
+ icon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "kds-card-selector-icon", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("i", { className: "material-symbols-outlined", children: icon }) }),
2322
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "kds-card-selector-title", children: title }),
2323
+ description && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "kds-card-selector-description", children: description })
2230
2324
  ]
2231
2325
  }
2232
2326
  )
@@ -2234,26 +2328,26 @@ var KdsCardSelector = (0, import_react34.forwardRef)(
2234
2328
  KdsCardSelector.displayName = "KdsCardSelector";
2235
2329
 
2236
2330
  // src/components/domain/KdsCardPlan/KdsCardPlan.tsx
2237
- var import_react35 = require("react");
2238
- var import_jsx_runtime33 = require("react/jsx-runtime");
2239
- var KdsCardPlan = (0, import_react35.forwardRef)(
2240
- ({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2331
+ var import_react36 = require("react");
2332
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2333
+ var KdsCardPlan = (0, import_react36.forwardRef)(
2334
+ ({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2241
2335
  "div",
2242
2336
  {
2243
2337
  ref,
2244
2338
  className: (0, import_clsx.clsx)("kds-card-plan", recommended && "recommended", className),
2245
2339
  ...props,
2246
2340
  children: [
2247
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "kds-card-plan-header", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("h3", { children: title }) }),
2248
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "kds-card-plan-price", children: [
2249
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "kds-price", children: price }),
2250
- period && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "kds-price-period", children: [
2341
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "kds-card-plan-header", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h3", { children: title }) }),
2342
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "kds-card-plan-price", children: [
2343
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-price", children: price }),
2344
+ period && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "kds-price-period", children: [
2251
2345
  "/",
2252
2346
  period
2253
2347
  ] })
2254
2348
  ] }),
2255
- badgeText && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "kds-card-plan-badge", children: badgeText }),
2256
- features && features.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "kds-card-plan-features", children: features.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { children: f }, i)) }),
2349
+ badgeText && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "kds-card-plan-badge", children: badgeText }),
2350
+ features && features.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "kds-card-plan-features", children: features.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { children: f }, i)) }),
2257
2351
  action
2258
2352
  ]
2259
2353
  }
@@ -2262,18 +2356,18 @@ var KdsCardPlan = (0, import_react35.forwardRef)(
2262
2356
  KdsCardPlan.displayName = "KdsCardPlan";
2263
2357
 
2264
2358
  // src/components/domain/KdsInvoiceSticky/KdsInvoiceSticky.tsx
2265
- var import_react36 = require("react");
2266
- var import_jsx_runtime34 = require("react/jsx-runtime");
2267
- var KdsInvoiceSticky = (0, import_react36.forwardRef)(
2268
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-elevated", "kds-invoice-sticky", className), ...props, children })
2359
+ var import_react37 = require("react");
2360
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2361
+ var KdsInvoiceSticky = (0, import_react37.forwardRef)(
2362
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-card-elevated", "kds-invoice-sticky", className), ...props, children })
2269
2363
  );
2270
2364
  KdsInvoiceSticky.displayName = "KdsInvoiceSticky";
2271
2365
 
2272
2366
  // src/components/domain/KdsBottomSheet/KdsBottomSheet.tsx
2273
- var import_react37 = require("react");
2367
+ var import_react38 = require("react");
2274
2368
  var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
2275
- var import_jsx_runtime35 = require("react/jsx-runtime");
2276
- var KdsBottomSheet = (0, import_react37.forwardRef)(
2369
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2370
+ var KdsBottomSheet = (0, import_react38.forwardRef)(
2277
2371
  ({
2278
2372
  open,
2279
2373
  onClose,
@@ -2285,14 +2379,14 @@ var KdsBottomSheet = (0, import_react37.forwardRef)(
2285
2379
  showCloseButton = false,
2286
2380
  container,
2287
2381
  className
2288
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2382
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2289
2383
  Dialog2.Root,
2290
2384
  {
2291
2385
  open,
2292
2386
  onOpenChange: (o) => {
2293
2387
  if (!o) onClose();
2294
2388
  },
2295
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dialog2.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dialog2.Overlay, { className: "kds-bottom-sheet-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2389
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Dialog2.Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Dialog2.Overlay, { className: "kds-bottom-sheet-scrim open", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2296
2390
  Dialog2.Content,
2297
2391
  {
2298
2392
  ref,
@@ -2302,20 +2396,20 @@ var KdsBottomSheet = (0, import_react37.forwardRef)(
2302
2396
  if (target.closest(".kds-bottom-sheet")) e.preventDefault();
2303
2397
  },
2304
2398
  children: [
2305
- showGrabber && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "kds-bottom-sheet-grabber", "aria-hidden": "true" }),
2306
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2399
+ showGrabber && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "kds-bottom-sheet-grabber", "aria-hidden": "true" }),
2400
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2307
2401
  "button",
2308
2402
  {
2309
2403
  type: "button",
2310
2404
  className: "kds-bottom-sheet-close",
2311
2405
  "aria-label": "Cerrar",
2312
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("i", { className: "material-symbols-outlined", children: "close" })
2406
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("i", { className: "material-symbols-outlined", children: "close" })
2313
2407
  }
2314
2408
  ) }),
2315
- title && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dialog2.Title, { className: "kds-bottom-sheet-title", children: title }),
2316
- description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dialog2.Description, { className: "kds-bottom-sheet-description", children: description }),
2317
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "kds-bottom-sheet-body", children }),
2318
- actions && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "kds-bottom-sheet-actions", children: actions })
2409
+ title && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Dialog2.Title, { className: "kds-bottom-sheet-title", children: title }),
2410
+ description && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Dialog2.Description, { className: "kds-bottom-sheet-description", children: description }),
2411
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "kds-bottom-sheet-body", children }),
2412
+ actions && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "kds-bottom-sheet-actions", children: actions })
2319
2413
  ]
2320
2414
  }
2321
2415
  ) }) })
@@ -2325,55 +2419,55 @@ var KdsBottomSheet = (0, import_react37.forwardRef)(
2325
2419
  KdsBottomSheet.displayName = "KdsBottomSheet";
2326
2420
 
2327
2421
  // src/components/domain/KdsSecureFooter/KdsSecureFooter.tsx
2328
- var import_react38 = require("react");
2329
- var import_jsx_runtime36 = require("react/jsx-runtime");
2330
- var KdsSecureFooter = (0, import_react38.forwardRef)(
2331
- ({ variant = "default", children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("footer", { ref, className: (0, import_clsx.clsx)("kds-secure-footer", variant === "inside" && "inside", className), ...props, children: [
2332
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("i", { className: "material-symbols-outlined", children: "lock" }),
2333
- children || /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Pago seguro con Khipu" })
2422
+ var import_react39 = require("react");
2423
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2424
+ var KdsSecureFooter = (0, import_react39.forwardRef)(
2425
+ ({ variant = "default", children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("footer", { ref, className: (0, import_clsx.clsx)("kds-secure-footer", variant === "inside" && "inside", className), ...props, children: [
2426
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("i", { className: "material-symbols-outlined", children: "lock" }),
2427
+ children || /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Pago seguro con Khipu" })
2334
2428
  ] })
2335
2429
  );
2336
2430
  KdsSecureFooter.displayName = "KdsSecureFooter";
2337
2431
 
2338
2432
  // src/components/domain/KdsRecapList/KdsRecapList.tsx
2339
- var import_react39 = require("react");
2340
- var import_jsx_runtime37 = require("react/jsx-runtime");
2341
- var KdsRecapList = (0, import_react39.forwardRef)(
2342
- ({ items, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("ul", { ref, className: (0, import_clsx.clsx)("kds-recap-list", className), ...props, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("li", { children: [
2343
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "kds-key", children: item.label }),
2344
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: (0, import_clsx.clsx)("kds-value", !item.value && item.placeholder && "placeholder"), children: item.value || item.placeholder || "-" })
2433
+ var import_react40 = require("react");
2434
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2435
+ var KdsRecapList = (0, import_react40.forwardRef)(
2436
+ ({ items, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("ul", { ref, className: (0, import_clsx.clsx)("kds-recap-list", className), ...props, children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("li", { children: [
2437
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "kds-key", children: item.label }),
2438
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: (0, import_clsx.clsx)("kds-value", !item.value && item.placeholder && "placeholder"), children: item.value || item.placeholder || "-" })
2345
2439
  ] }, i)) })
2346
2440
  );
2347
2441
  KdsRecapList.displayName = "KdsRecapList";
2348
2442
 
2349
2443
  // src/components/domain/KdsMontoRow/KdsMontoRow.tsx
2350
- var import_react40 = require("react");
2351
- var import_jsx_runtime38 = require("react/jsx-runtime");
2352
- var KdsMontoRow = (0, import_react40.forwardRef)(
2353
- ({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-monto-row", className), ...props, children: [
2354
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
2355
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-monto-row-title", children: title }),
2356
- deadline && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-monto-row-deadline", children: deadline })
2444
+ var import_react41 = require("react");
2445
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2446
+ var KdsMontoRow = (0, import_react41.forwardRef)(
2447
+ ({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ref, className: (0, import_clsx.clsx)("kds-monto-row", className), ...props, children: [
2448
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
2449
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-monto-row-title", children: title }),
2450
+ deadline && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-monto-row-deadline", children: deadline })
2357
2451
  ] }),
2358
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "kds-monto-row-value", children: value })
2452
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "kds-monto-row-value", children: value })
2359
2453
  ] })
2360
2454
  );
2361
2455
  KdsMontoRow.displayName = "KdsMontoRow";
2362
2456
 
2363
2457
  // src/components/domain/KdsMerchantTile/KdsMerchantTile.tsx
2364
- var import_react41 = require("react");
2365
- var import_jsx_runtime39 = require("react/jsx-runtime");
2366
- var KdsMerchantTile = (0, import_react41.forwardRef)(
2458
+ var import_react42 = require("react");
2459
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2460
+ var KdsMerchantTile = (0, import_react42.forwardRef)(
2367
2461
  ({ name, logoUrl, initials, compact, className, ...props }, ref) => {
2368
2462
  const displayInitials = (initials ?? name.slice(0, 2)).toUpperCase();
2369
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2463
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2370
2464
  "div",
2371
2465
  {
2372
2466
  ref,
2373
2467
  className: (0, import_clsx.clsx)("kds-merchant-tile", logoUrl && "logo", compact && "compact", className),
2374
2468
  "aria-label": name,
2375
2469
  ...props,
2376
- children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("img", { src: logoUrl, alt: name }) : displayInitials
2470
+ children: logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("img", { src: logoUrl, alt: name }) : displayInitials
2377
2471
  }
2378
2472
  );
2379
2473
  }
@@ -2381,9 +2475,9 @@ var KdsMerchantTile = (0, import_react41.forwardRef)(
2381
2475
  KdsMerchantTile.displayName = "KdsMerchantTile";
2382
2476
 
2383
2477
  // src/components/domain/KdsPaymentTotal/KdsPaymentTotal.tsx
2384
- var import_react42 = require("react");
2385
- var import_jsx_runtime40 = require("react/jsx-runtime");
2386
- var KdsPaymentTotal = (0, import_react42.forwardRef)(
2478
+ var import_react43 = require("react");
2479
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2480
+ var KdsPaymentTotal = (0, import_react43.forwardRef)(
2387
2481
  ({
2388
2482
  variant = "default",
2389
2483
  tone = "brand",
@@ -2401,7 +2495,7 @@ var KdsPaymentTotal = (0, import_react42.forwardRef)(
2401
2495
  const { integer, fraction } = formatAmount(amount, decimals, locale);
2402
2496
  const isEmail = variant === "email";
2403
2497
  const isInfoTone = tone === "info";
2404
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2498
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2405
2499
  "div",
2406
2500
  {
2407
2501
  ref,
@@ -2414,14 +2508,14 @@ var KdsPaymentTotal = (0, import_react42.forwardRef)(
2414
2508
  ),
2415
2509
  ...props,
2416
2510
  children: [
2417
- !isEmail && title != null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "kds-payment-total-title", children: title }),
2418
- !isEmail && titleMobile != null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h5", { className: "kds-payment-total-title-mobile", children: titleMobile }),
2419
- label != null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h6", { className: "kds-payment-label", children: label }),
2420
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("h5", { className: "kds-payment-amount", children: [
2511
+ !isEmail && title != null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h5", { className: "kds-payment-total-title", children: title }),
2512
+ !isEmail && titleMobile != null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h5", { className: "kds-payment-total-title-mobile", children: titleMobile }),
2513
+ label != null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h6", { className: "kds-payment-label", children: label }),
2514
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("h5", { className: "kds-payment-amount", children: [
2421
2515
  currency,
2422
2516
  " ",
2423
2517
  integer,
2424
- fraction !== null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("sup", { className: "kds-payment-total-decimal-sup", children: fraction })
2518
+ fraction !== null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("sup", { className: "kds-payment-total-decimal-sup", children: fraction })
2425
2519
  ] })
2426
2520
  ]
2427
2521
  }
@@ -2457,10 +2551,10 @@ function formatAmount(amount, decimals, locale) {
2457
2551
  }
2458
2552
 
2459
2553
  // src/components/domain/KdsBillAttachment/KdsBillAttachment.tsx
2460
- var import_react43 = require("react");
2461
- var import_jsx_runtime41 = require("react/jsx-runtime");
2462
- var KdsBillAttachment = (0, import_react43.forwardRef)(
2463
- ({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2554
+ var import_react44 = require("react");
2555
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2556
+ var KdsBillAttachment = (0, import_react44.forwardRef)(
2557
+ ({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2464
2558
  "a",
2465
2559
  {
2466
2560
  ref,
@@ -2470,15 +2564,15 @@ var KdsBillAttachment = (0, import_react43.forwardRef)(
2470
2564
  className: (0, import_clsx.clsx)("kds-bill-attachment", className),
2471
2565
  ...props,
2472
2566
  children: [
2473
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("i", { className: "material-symbols-outlined", children: icon }),
2474
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: filename })
2567
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("i", { className: "material-symbols-outlined", children: icon }),
2568
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: filename })
2475
2569
  ]
2476
2570
  }
2477
2571
  )
2478
2572
  );
2479
2573
  KdsBillAttachment.displayName = "KdsBillAttachment";
2480
- var KdsBillAttachments = (0, import_react43.forwardRef)(
2481
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bill-attachments", className), ...props, children })
2574
+ var KdsBillAttachments = (0, import_react44.forwardRef)(
2575
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: (0, import_clsx.clsx)("kds-bill-attachments", className), ...props, children })
2482
2576
  );
2483
2577
  KdsBillAttachments.displayName = "KdsBillAttachments";
2484
2578
  // Annotate the CommonJS export names for ESM import in node:
@@ -2516,6 +2610,7 @@ KdsBillAttachments.displayName = "KdsBillAttachments";
2516
2610
  KdsQrRow,
2517
2611
  KdsRadioGroup,
2518
2612
  KdsRecapList,
2613
+ KdsSearchField,
2519
2614
  KdsSectionNote,
2520
2615
  KdsSecureFooter,
2521
2616
  KdsSecureLoader,