@khipu/design-system 0.2.0-alpha.44 → 0.2.0-alpha.45
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/beercss/khipu-beercss.css +69 -1
- package/dist/beercss/khipu-beercss.min.css +1 -1
- package/dist/beercss/khipu-beercss.scoped.css +69 -1
- package/dist/beercss/khipu-beercss.scoped.min.css +1 -1
- package/dist/beercss/metadata.json +5 -5
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +312 -285
- package/dist/index.mjs +294 -268
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1205,27 +1205,72 @@ var KdsSecureLoader = forwardRef6(
|
|
|
1205
1205
|
);
|
|
1206
1206
|
KdsSecureLoader.displayName = "KdsSecureLoader";
|
|
1207
1207
|
|
|
1208
|
-
// src/components/core/
|
|
1208
|
+
// src/components/core/KdsCopyButton/KdsCopyButton.tsx
|
|
1209
1209
|
import { forwardRef as forwardRef7 } from "react";
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1210
|
+
|
|
1211
|
+
// src/components/core/hooks/useCopyToClipboard.ts
|
|
1212
|
+
import { useState, useCallback } from "react";
|
|
1213
|
+
function useCopyToClipboard(resetMs = 1200) {
|
|
1214
|
+
const [copied, setCopied] = useState(false);
|
|
1215
|
+
const copy = useCallback(
|
|
1216
|
+
async (text) => {
|
|
1217
|
+
try {
|
|
1218
|
+
await navigator.clipboard.writeText(text);
|
|
1219
|
+
setCopied(true);
|
|
1220
|
+
setTimeout(() => setCopied(false), resetMs);
|
|
1221
|
+
} catch {
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
[resetMs]
|
|
1225
|
+
);
|
|
1226
|
+
return { copied, copy };
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
// src/components/core/KdsCopyButton/KdsCopyButton.tsx
|
|
1230
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1231
|
+
var KdsCopyButton = forwardRef7(
|
|
1232
|
+
({ value, copiedText = "Copiado", className, ...props }, ref) => {
|
|
1233
|
+
const { copied, copy } = useCopyToClipboard();
|
|
1234
|
+
return /* @__PURE__ */ jsxs6(
|
|
1235
|
+
"button",
|
|
1236
|
+
{
|
|
1237
|
+
ref,
|
|
1238
|
+
type: "button",
|
|
1239
|
+
className: clsx("kds-copy-button", copied && "copied", className),
|
|
1240
|
+
onClick: () => copy(value),
|
|
1241
|
+
"aria-label": `Copiar: ${value}`,
|
|
1242
|
+
...props,
|
|
1243
|
+
children: [
|
|
1244
|
+
/* @__PURE__ */ jsx8("span", { className: "kds-copy-button-value", children: copied ? copiedText : value }),
|
|
1245
|
+
/* @__PURE__ */ jsx8("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: copied ? "check" : "content_copy" })
|
|
1246
|
+
]
|
|
1247
|
+
}
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
);
|
|
1251
|
+
KdsCopyButton.displayName = "KdsCopyButton";
|
|
1252
|
+
|
|
1253
|
+
// src/components/core/KdsLinearProgress/KdsLinearProgress.tsx
|
|
1254
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
1255
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1256
|
+
var KdsLinearProgress = forwardRef8(
|
|
1257
|
+
({ value, max = 100, className, ...props }, ref) => /* @__PURE__ */ jsx9("progress", { ref, className: clsx("kds-progress", className), value, max, ...props })
|
|
1213
1258
|
);
|
|
1214
1259
|
KdsLinearProgress.displayName = "KdsLinearProgress";
|
|
1215
1260
|
|
|
1216
1261
|
// src/components/core/KdsAlert/KdsAlert.tsx
|
|
1217
|
-
import { forwardRef as
|
|
1218
|
-
import { jsx as
|
|
1262
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
1263
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1219
1264
|
var DEFAULT_ICONS = {
|
|
1220
1265
|
success: "check_circle",
|
|
1221
1266
|
info: "info",
|
|
1222
1267
|
warning: "warning",
|
|
1223
1268
|
error: "error"
|
|
1224
1269
|
};
|
|
1225
|
-
var KdsAlert =
|
|
1270
|
+
var KdsAlert = forwardRef9(
|
|
1226
1271
|
({ severity, title, icon, inline, onClose, children, className, ...props }, ref) => {
|
|
1227
1272
|
const resolvedIcon = icon === false ? null : typeof icon === "string" ? icon : DEFAULT_ICONS[severity];
|
|
1228
|
-
return /* @__PURE__ */
|
|
1273
|
+
return /* @__PURE__ */ jsxs7(
|
|
1229
1274
|
"div",
|
|
1230
1275
|
{
|
|
1231
1276
|
ref,
|
|
@@ -1233,19 +1278,19 @@ var KdsAlert = forwardRef8(
|
|
|
1233
1278
|
className: clsx("kds-alert", `kds-${severity}`, inline && "kds-alert-inline", className),
|
|
1234
1279
|
...props,
|
|
1235
1280
|
children: [
|
|
1236
|
-
resolvedIcon && /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
title && /* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */
|
|
1281
|
+
resolvedIcon && /* @__PURE__ */ jsx10("div", { className: "kds-alert-icon", children: /* @__PURE__ */ jsx10("i", { className: "material-symbols-outlined", children: resolvedIcon }) }),
|
|
1282
|
+
/* @__PURE__ */ jsxs7("div", { className: "kds-alert-content", children: [
|
|
1283
|
+
title && /* @__PURE__ */ jsx10("p", { className: "kds-alert-title", children: title }),
|
|
1284
|
+
/* @__PURE__ */ jsx10("p", { className: "kds-alert-description", children })
|
|
1240
1285
|
] }),
|
|
1241
|
-
onClose && /* @__PURE__ */
|
|
1286
|
+
onClose && /* @__PURE__ */ jsx10(
|
|
1242
1287
|
"button",
|
|
1243
1288
|
{
|
|
1244
1289
|
type: "button",
|
|
1245
1290
|
className: "kds-alert-close",
|
|
1246
1291
|
onClick: onClose,
|
|
1247
1292
|
"aria-label": "Cerrar",
|
|
1248
|
-
children: /* @__PURE__ */
|
|
1293
|
+
children: /* @__PURE__ */ jsx10("i", { className: "material-symbols-outlined", children: "close" })
|
|
1249
1294
|
}
|
|
1250
1295
|
)
|
|
1251
1296
|
]
|
|
@@ -1256,8 +1301,8 @@ var KdsAlert = forwardRef8(
|
|
|
1256
1301
|
KdsAlert.displayName = "KdsAlert";
|
|
1257
1302
|
|
|
1258
1303
|
// src/components/core/KdsTypography/KdsTypography.tsx
|
|
1259
|
-
import { forwardRef as
|
|
1260
|
-
import { jsx as
|
|
1304
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
1305
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1261
1306
|
var variantTag = {
|
|
1262
1307
|
display1: "h1",
|
|
1263
1308
|
display2: "h2",
|
|
@@ -1272,10 +1317,10 @@ var variantTag = {
|
|
|
1272
1317
|
muted: "p",
|
|
1273
1318
|
link: "span"
|
|
1274
1319
|
};
|
|
1275
|
-
var KdsTypography =
|
|
1320
|
+
var KdsTypography = forwardRef10(
|
|
1276
1321
|
({ variant = "body", color, as, children, className, ...props }, ref) => {
|
|
1277
1322
|
const Tag = as || variantTag[variant];
|
|
1278
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ jsx11(
|
|
1279
1324
|
Tag,
|
|
1280
1325
|
{
|
|
1281
1326
|
ref,
|
|
@@ -1293,12 +1338,12 @@ var KdsTypography = forwardRef9(
|
|
|
1293
1338
|
KdsTypography.displayName = "KdsTypography";
|
|
1294
1339
|
|
|
1295
1340
|
// src/components/core/KdsTabs/KdsTabs.tsx
|
|
1296
|
-
import
|
|
1341
|
+
import React11, { forwardRef as forwardRef11, Children, useMemo } from "react";
|
|
1297
1342
|
|
|
1298
1343
|
// src/components/core/hooks/useTabsKeyboard.ts
|
|
1299
|
-
import { useCallback } from "react";
|
|
1344
|
+
import { useCallback as useCallback2 } from "react";
|
|
1300
1345
|
function useTabsKeyboard(tabCount, activeIndex, onChange) {
|
|
1301
|
-
const onKeyDown =
|
|
1346
|
+
const onKeyDown = useCallback2(
|
|
1302
1347
|
(e) => {
|
|
1303
1348
|
let next = activeIndex;
|
|
1304
1349
|
if (e.key === "ArrowRight") next = (activeIndex + 1) % tabCount;
|
|
@@ -1318,8 +1363,8 @@ function useTabsKeyboard(tabCount, activeIndex, onChange) {
|
|
|
1318
1363
|
}
|
|
1319
1364
|
|
|
1320
1365
|
// src/components/core/KdsTabs/KdsTabs.tsx
|
|
1321
|
-
import { jsx as
|
|
1322
|
-
var KdsTabs =
|
|
1366
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1367
|
+
var KdsTabs = forwardRef11(
|
|
1323
1368
|
({ activeIndex, onChange, children, className, style, ...props }, ref) => {
|
|
1324
1369
|
const tabCount = Children.count(children);
|
|
1325
1370
|
const { onKeyDown } = useTabsKeyboard(tabCount, activeIndex, onChange);
|
|
@@ -1331,7 +1376,7 @@ var KdsTabs = forwardRef10(
|
|
|
1331
1376
|
}),
|
|
1332
1377
|
[tabCount, activeIndex, style]
|
|
1333
1378
|
);
|
|
1334
|
-
return /* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ jsx12(
|
|
1335
1380
|
"div",
|
|
1336
1381
|
{
|
|
1337
1382
|
ref,
|
|
@@ -1341,8 +1386,8 @@ var KdsTabs = forwardRef10(
|
|
|
1341
1386
|
onKeyDown,
|
|
1342
1387
|
...props,
|
|
1343
1388
|
children: Children.map(children, (child, i) => {
|
|
1344
|
-
if (!
|
|
1345
|
-
return
|
|
1389
|
+
if (!React11.isValidElement(child)) return child;
|
|
1390
|
+
return React11.cloneElement(child, {
|
|
1346
1391
|
_active: i === activeIndex,
|
|
1347
1392
|
_onClick: () => onChange(i)
|
|
1348
1393
|
});
|
|
@@ -1352,8 +1397,8 @@ var KdsTabs = forwardRef10(
|
|
|
1352
1397
|
}
|
|
1353
1398
|
);
|
|
1354
1399
|
KdsTabs.displayName = "KdsTabs";
|
|
1355
|
-
var KdsTab =
|
|
1356
|
-
({ _active, _onClick, children, className, ...props }, ref) => /* @__PURE__ */
|
|
1400
|
+
var KdsTab = forwardRef11(
|
|
1401
|
+
({ _active, _onClick, children, className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1357
1402
|
"button",
|
|
1358
1403
|
{
|
|
1359
1404
|
ref,
|
|
@@ -1369,8 +1414,8 @@ var KdsTab = forwardRef10(
|
|
|
1369
1414
|
)
|
|
1370
1415
|
);
|
|
1371
1416
|
KdsTab.displayName = "KdsTab";
|
|
1372
|
-
var KdsTabPanel =
|
|
1373
|
-
({ active, children, className, ...props }, ref) => /* @__PURE__ */
|
|
1417
|
+
var KdsTabPanel = forwardRef11(
|
|
1418
|
+
({ active, children, className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
1374
1419
|
"div",
|
|
1375
1420
|
{
|
|
1376
1421
|
ref,
|
|
@@ -1385,13 +1430,13 @@ var KdsTabPanel = forwardRef10(
|
|
|
1385
1430
|
KdsTabPanel.displayName = "KdsTabPanel";
|
|
1386
1431
|
|
|
1387
1432
|
// src/components/core/KdsRadioGroup/KdsRadioGroup.tsx
|
|
1388
|
-
import { forwardRef as
|
|
1389
|
-
import { jsx as
|
|
1390
|
-
var KdsRadioGroup =
|
|
1391
|
-
({ label, name, options, value, onChange, size, className, ...props }, ref) => /* @__PURE__ */
|
|
1392
|
-
label && /* @__PURE__ */
|
|
1393
|
-
options.map((opt) => /* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1433
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
1434
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1435
|
+
var KdsRadioGroup = forwardRef12(
|
|
1436
|
+
({ label, name, options, value, onChange, size, className, ...props }, ref) => /* @__PURE__ */ jsxs8("fieldset", { ref, className: clsx("kds-radio-group", className), ...props, children: [
|
|
1437
|
+
label && /* @__PURE__ */ jsx13("legend", { children: label }),
|
|
1438
|
+
options.map((opt) => /* @__PURE__ */ jsxs8("label", { className: clsx("radio", size), children: [
|
|
1439
|
+
/* @__PURE__ */ jsx13(
|
|
1395
1440
|
"input",
|
|
1396
1441
|
{
|
|
1397
1442
|
type: "radio",
|
|
@@ -1402,16 +1447,16 @@ var KdsRadioGroup = forwardRef11(
|
|
|
1402
1447
|
onChange: () => onChange?.(opt.value)
|
|
1403
1448
|
}
|
|
1404
1449
|
),
|
|
1405
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ jsx13("span", { children: opt.label })
|
|
1406
1451
|
] }, opt.value))
|
|
1407
1452
|
] })
|
|
1408
1453
|
);
|
|
1409
1454
|
KdsRadioGroup.displayName = "KdsRadioGroup";
|
|
1410
1455
|
|
|
1411
1456
|
// src/components/core/KdsSelect/KdsSelect.tsx
|
|
1412
|
-
import { forwardRef as
|
|
1413
|
-
import { jsx as
|
|
1414
|
-
var KdsSelect =
|
|
1457
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
1458
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1459
|
+
var KdsSelect = forwardRef13(
|
|
1415
1460
|
({
|
|
1416
1461
|
label,
|
|
1417
1462
|
options,
|
|
@@ -1427,7 +1472,7 @@ var KdsSelect = forwardRef12(
|
|
|
1427
1472
|
...props
|
|
1428
1473
|
}, ref) => {
|
|
1429
1474
|
const fieldId = id || `kds-select-${label.toLowerCase().replace(/\s+/g, "-")}`;
|
|
1430
|
-
return /* @__PURE__ */
|
|
1475
|
+
return /* @__PURE__ */ jsxs9(
|
|
1431
1476
|
"div",
|
|
1432
1477
|
{
|
|
1433
1478
|
className: clsx(
|
|
@@ -1440,8 +1485,8 @@ var KdsSelect = forwardRef12(
|
|
|
1440
1485
|
className
|
|
1441
1486
|
),
|
|
1442
1487
|
children: [
|
|
1443
|
-
prefixIcon && /* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1488
|
+
prefixIcon && /* @__PURE__ */ jsx14("i", { className: "material-symbols-outlined", children: prefixIcon }),
|
|
1489
|
+
/* @__PURE__ */ jsxs9(
|
|
1445
1490
|
"select",
|
|
1446
1491
|
{
|
|
1447
1492
|
ref,
|
|
@@ -1450,16 +1495,16 @@ var KdsSelect = forwardRef12(
|
|
|
1450
1495
|
required,
|
|
1451
1496
|
...props,
|
|
1452
1497
|
children: [
|
|
1453
|
-
placeholder !== void 0 && /* @__PURE__ */
|
|
1454
|
-
options.map((opt) => /* @__PURE__ */
|
|
1498
|
+
placeholder !== void 0 && /* @__PURE__ */ jsx14("option", { value: "", children: placeholder }),
|
|
1499
|
+
options.map((opt) => /* @__PURE__ */ jsx14("option", { value: opt.value, disabled: opt.disabled, children: opt.label }, opt.value))
|
|
1455
1500
|
]
|
|
1456
1501
|
}
|
|
1457
1502
|
),
|
|
1458
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ jsxs9("label", { htmlFor: fieldId, children: [
|
|
1459
1504
|
label,
|
|
1460
1505
|
required && " *"
|
|
1461
1506
|
] }),
|
|
1462
|
-
helperText && /* @__PURE__ */
|
|
1507
|
+
helperText && /* @__PURE__ */ jsx14("span", { className: "helper", children: helperText })
|
|
1463
1508
|
]
|
|
1464
1509
|
}
|
|
1465
1510
|
);
|
|
@@ -1468,13 +1513,13 @@ var KdsSelect = forwardRef12(
|
|
|
1468
1513
|
KdsSelect.displayName = "KdsSelect";
|
|
1469
1514
|
|
|
1470
1515
|
// src/components/core/KdsChip/KdsChip.tsx
|
|
1471
|
-
import { forwardRef as
|
|
1472
|
-
import { jsx as
|
|
1473
|
-
var KdsChip =
|
|
1474
|
-
({ color, icon, onDelete, children, className, ...props }, ref) => /* @__PURE__ */
|
|
1475
|
-
icon && /* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
1477
|
-
onDelete && /* @__PURE__ */
|
|
1516
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
1517
|
+
import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1518
|
+
var KdsChip = forwardRef14(
|
|
1519
|
+
({ color, icon, onDelete, children, className, ...props }, ref) => /* @__PURE__ */ jsxs10("span", { ref, className: clsx("kds-badge", color, className), ...props, children: [
|
|
1520
|
+
icon && /* @__PURE__ */ jsx15("i", { className: "material-symbols-outlined", children: icon }),
|
|
1521
|
+
/* @__PURE__ */ jsx15("span", { children }),
|
|
1522
|
+
onDelete && /* @__PURE__ */ jsx15(
|
|
1478
1523
|
"button",
|
|
1479
1524
|
{
|
|
1480
1525
|
type: "button",
|
|
@@ -1484,7 +1529,7 @@ var KdsChip = forwardRef13(
|
|
|
1484
1529
|
onDelete();
|
|
1485
1530
|
},
|
|
1486
1531
|
"aria-label": "Eliminar",
|
|
1487
|
-
children: /* @__PURE__ */
|
|
1532
|
+
children: /* @__PURE__ */ jsx15("i", { className: "material-symbols-outlined", children: "close" })
|
|
1488
1533
|
}
|
|
1489
1534
|
)
|
|
1490
1535
|
] })
|
|
@@ -1492,12 +1537,12 @@ var KdsChip = forwardRef13(
|
|
|
1492
1537
|
KdsChip.displayName = "KdsChip";
|
|
1493
1538
|
|
|
1494
1539
|
// src/components/core/KdsSnackbar/KdsSnackbar.tsx
|
|
1495
|
-
import { forwardRef as
|
|
1540
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
1496
1541
|
|
|
1497
1542
|
// src/components/core/hooks/useAutoHide.ts
|
|
1498
|
-
import { useState, useEffect, useRef } from "react";
|
|
1543
|
+
import { useState as useState2, useEffect, useRef } from "react";
|
|
1499
1544
|
function useAutoHide(durationMs, onHide) {
|
|
1500
|
-
const [visible, setVisible] =
|
|
1545
|
+
const [visible, setVisible] = useState2(true);
|
|
1501
1546
|
const onHideRef = useRef(onHide);
|
|
1502
1547
|
onHideRef.current = onHide;
|
|
1503
1548
|
useEffect(() => {
|
|
@@ -1512,13 +1557,13 @@ function useAutoHide(durationMs, onHide) {
|
|
|
1512
1557
|
}
|
|
1513
1558
|
|
|
1514
1559
|
// src/components/core/KdsSnackbar/KdsSnackbar.tsx
|
|
1515
|
-
import { jsx as
|
|
1560
|
+
import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1516
1561
|
var DEFAULT_ICONS2 = {
|
|
1517
1562
|
info: "info",
|
|
1518
1563
|
success: "check_circle",
|
|
1519
1564
|
error: "error"
|
|
1520
1565
|
};
|
|
1521
|
-
var KdsSnackbar =
|
|
1566
|
+
var KdsSnackbar = forwardRef15(
|
|
1522
1567
|
({
|
|
1523
1568
|
message,
|
|
1524
1569
|
type = "info",
|
|
@@ -1535,7 +1580,7 @@ var KdsSnackbar = forwardRef14(
|
|
|
1535
1580
|
if (!open || !visible) return null;
|
|
1536
1581
|
const resolvedIcon = icon === false ? null : icon ?? DEFAULT_ICONS2[type];
|
|
1537
1582
|
const mergedStyle = autoDismiss ? { ...style, ["--kds-snackbar-duration"]: `${duration}ms` } : style ?? {};
|
|
1538
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsxs11(
|
|
1539
1584
|
"div",
|
|
1540
1585
|
{
|
|
1541
1586
|
ref,
|
|
@@ -1545,16 +1590,16 @@ var KdsSnackbar = forwardRef14(
|
|
|
1545
1590
|
style: mergedStyle,
|
|
1546
1591
|
...props,
|
|
1547
1592
|
children: [
|
|
1548
|
-
resolvedIcon && /* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
onClose && /* @__PURE__ */
|
|
1593
|
+
resolvedIcon && /* @__PURE__ */ jsx16("i", { className: "material-symbols-outlined", children: resolvedIcon }),
|
|
1594
|
+
/* @__PURE__ */ jsx16("span", { className: "max", children: message }),
|
|
1595
|
+
onClose && /* @__PURE__ */ jsx16(
|
|
1551
1596
|
"button",
|
|
1552
1597
|
{
|
|
1553
1598
|
type: "button",
|
|
1554
1599
|
className: "kds-snackbar-close",
|
|
1555
1600
|
onClick: onClose,
|
|
1556
1601
|
"aria-label": "Cerrar",
|
|
1557
|
-
children: /* @__PURE__ */
|
|
1602
|
+
children: /* @__PURE__ */ jsx16("i", { className: "material-symbols-outlined", children: "close" })
|
|
1558
1603
|
}
|
|
1559
1604
|
)
|
|
1560
1605
|
]
|
|
@@ -1566,7 +1611,7 @@ KdsSnackbar.displayName = "KdsSnackbar";
|
|
|
1566
1611
|
|
|
1567
1612
|
// src/components/core/KdsTooltip/KdsTooltip.tsx
|
|
1568
1613
|
import * as Tooltip from "@radix-ui/react-tooltip";
|
|
1569
|
-
import { jsx as
|
|
1614
|
+
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1570
1615
|
function KdsTooltip({
|
|
1571
1616
|
content,
|
|
1572
1617
|
children,
|
|
@@ -1577,9 +1622,9 @@ function KdsTooltip({
|
|
|
1577
1622
|
onOpenChange,
|
|
1578
1623
|
delayDuration = 300
|
|
1579
1624
|
}) {
|
|
1580
|
-
return /* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
1582
|
-
/* @__PURE__ */
|
|
1625
|
+
return /* @__PURE__ */ jsx17(Tooltip.Provider, { delayDuration, children: /* @__PURE__ */ jsxs12(Tooltip.Root, { open, defaultOpen, onOpenChange, children: [
|
|
1626
|
+
/* @__PURE__ */ jsx17(Tooltip.Trigger, { asChild: true, children }),
|
|
1627
|
+
/* @__PURE__ */ jsx17(Tooltip.Portal, { children: /* @__PURE__ */ jsxs12(
|
|
1583
1628
|
Tooltip.Content,
|
|
1584
1629
|
{
|
|
1585
1630
|
className: clsx("kds-tooltip", className),
|
|
@@ -1588,7 +1633,7 @@ function KdsTooltip({
|
|
|
1588
1633
|
collisionPadding: 8,
|
|
1589
1634
|
children: [
|
|
1590
1635
|
content,
|
|
1591
|
-
/* @__PURE__ */
|
|
1636
|
+
/* @__PURE__ */ jsx17(Tooltip.Arrow, { className: "kds-tooltip-arrow", width: 10, height: 5 })
|
|
1592
1637
|
]
|
|
1593
1638
|
}
|
|
1594
1639
|
) })
|
|
@@ -1596,68 +1641,68 @@ function KdsTooltip({
|
|
|
1596
1641
|
}
|
|
1597
1642
|
|
|
1598
1643
|
// src/components/core/KdsAccordion/KdsAccordion.tsx
|
|
1599
|
-
import { forwardRef as
|
|
1600
|
-
import { jsx as
|
|
1601
|
-
var KdsAccordion =
|
|
1602
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
1644
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
1645
|
+
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1646
|
+
var KdsAccordion = forwardRef16(
|
|
1647
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx18("details", { ref, className: clsx("kds-accordion", className), ...props, children })
|
|
1603
1648
|
);
|
|
1604
1649
|
KdsAccordion.displayName = "KdsAccordion";
|
|
1605
|
-
var KdsAccordionSummary =
|
|
1606
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
1650
|
+
var KdsAccordionSummary = forwardRef16(
|
|
1651
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsxs13("summary", { ref, className: clsx("kds-accordion-summary", className), ...props, children: [
|
|
1607
1652
|
children,
|
|
1608
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx18("i", { className: "material-symbols-outlined", children: "expand_more" })
|
|
1609
1654
|
] })
|
|
1610
1655
|
);
|
|
1611
1656
|
KdsAccordionSummary.displayName = "KdsAccordionSummary";
|
|
1612
|
-
var KdsAccordionDetails =
|
|
1613
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
1657
|
+
var KdsAccordionDetails = forwardRef16(
|
|
1658
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx18("div", { ref, className: clsx("kds-accordion-details", className), ...props, children })
|
|
1614
1659
|
);
|
|
1615
1660
|
KdsAccordionDetails.displayName = "KdsAccordionDetails";
|
|
1616
1661
|
|
|
1617
1662
|
// src/components/core/KdsDivider/KdsDivider.tsx
|
|
1618
|
-
import { forwardRef as
|
|
1619
|
-
import { jsx as
|
|
1620
|
-
var KdsDivider =
|
|
1621
|
-
({ dashed, className, ...props }, ref) => /* @__PURE__ */
|
|
1663
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
1664
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1665
|
+
var KdsDivider = forwardRef17(
|
|
1666
|
+
({ dashed, className, ...props }, ref) => /* @__PURE__ */ jsx19("hr", { ref, className: clsx(dashed ? "kds-hr-dashed" : "kds-hr", className), ...props })
|
|
1622
1667
|
);
|
|
1623
1668
|
KdsDivider.displayName = "KdsDivider";
|
|
1624
1669
|
|
|
1625
1670
|
// src/components/core/KdsSectionNote/KdsSectionNote.tsx
|
|
1626
|
-
import { forwardRef as
|
|
1627
|
-
import { jsx as
|
|
1628
|
-
var KdsSectionNote =
|
|
1629
|
-
({ icon = "info", children, className, ...props }, ref) => /* @__PURE__ */
|
|
1630
|
-
/* @__PURE__ */
|
|
1631
|
-
/* @__PURE__ */
|
|
1671
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
1672
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1673
|
+
var KdsSectionNote = forwardRef18(
|
|
1674
|
+
({ icon = "info", children, className, ...props }, ref) => /* @__PURE__ */ jsxs14("p", { ref, className: clsx("kds-section-note", className), ...props, children: [
|
|
1675
|
+
/* @__PURE__ */ jsx20("i", { className: "material-symbols-outlined", children: icon }),
|
|
1676
|
+
/* @__PURE__ */ jsx20("span", { children })
|
|
1632
1677
|
] })
|
|
1633
1678
|
);
|
|
1634
1679
|
KdsSectionNote.displayName = "KdsSectionNote";
|
|
1635
1680
|
|
|
1636
1681
|
// src/components/core/KdsStatusBlock/KdsStatusBlock.tsx
|
|
1637
|
-
import { forwardRef as
|
|
1638
|
-
import { jsx as
|
|
1639
|
-
var KdsStatusBlock =
|
|
1640
|
-
({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */
|
|
1641
|
-
/* @__PURE__ */
|
|
1642
|
-
/* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
description && /* @__PURE__ */
|
|
1682
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
1683
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1684
|
+
var KdsStatusBlock = forwardRef19(
|
|
1685
|
+
({ status, icon, title, description, inline, className, ...props }, ref) => /* @__PURE__ */ jsxs15("div", { ref, className: clsx("kds-status-block", inline && "inline", className), "data-status": status, ...props, children: [
|
|
1686
|
+
/* @__PURE__ */ jsx21("div", { className: "kds-status-block-icon", children: icon && /* @__PURE__ */ jsx21("i", { className: "material-symbols-outlined", children: icon }) }),
|
|
1687
|
+
/* @__PURE__ */ jsxs15("div", { children: [
|
|
1688
|
+
/* @__PURE__ */ jsx21("h2", { className: "kds-status-block-title", children: title }),
|
|
1689
|
+
description && /* @__PURE__ */ jsx21("p", { className: "kds-status-block-description", children: description })
|
|
1645
1690
|
] })
|
|
1646
1691
|
] })
|
|
1647
1692
|
);
|
|
1648
1693
|
KdsStatusBlock.displayName = "KdsStatusBlock";
|
|
1649
1694
|
|
|
1650
1695
|
// src/components/core/KdsStepper/KdsStepper.tsx
|
|
1651
|
-
import { forwardRef as
|
|
1652
|
-
import { jsx as
|
|
1653
|
-
var KdsStepper =
|
|
1654
|
-
({ steps, current, className, ...props }, ref) => /* @__PURE__ */
|
|
1696
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
1697
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1698
|
+
var KdsStepper = forwardRef20(
|
|
1699
|
+
({ steps, current, className, ...props }, ref) => /* @__PURE__ */ jsx22("div", { ref, className: clsx("kds-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ jsxs16(
|
|
1655
1700
|
"div",
|
|
1656
1701
|
{
|
|
1657
1702
|
className: clsx("kds-step", i < current && "completed", i === current && "current"),
|
|
1658
1703
|
children: [
|
|
1659
|
-
/* @__PURE__ */
|
|
1660
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsx22("div", { className: "kds-step-indicator" }),
|
|
1705
|
+
/* @__PURE__ */ jsx22("div", { className: "kds-step-label", children: label })
|
|
1661
1706
|
]
|
|
1662
1707
|
},
|
|
1663
1708
|
`${i}-${label}`
|
|
@@ -1666,32 +1711,12 @@ var KdsStepper = forwardRef19(
|
|
|
1666
1711
|
KdsStepper.displayName = "KdsStepper";
|
|
1667
1712
|
|
|
1668
1713
|
// src/components/core/KdsCopyRow/KdsCopyRow.tsx
|
|
1669
|
-
import { forwardRef as
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
import { useState as useState2, useCallback as useCallback2 } from "react";
|
|
1673
|
-
function useCopyToClipboard(resetMs = 1200) {
|
|
1674
|
-
const [copied, setCopied] = useState2(false);
|
|
1675
|
-
const copy = useCallback2(
|
|
1676
|
-
async (text) => {
|
|
1677
|
-
try {
|
|
1678
|
-
await navigator.clipboard.writeText(text);
|
|
1679
|
-
setCopied(true);
|
|
1680
|
-
setTimeout(() => setCopied(false), resetMs);
|
|
1681
|
-
} catch {
|
|
1682
|
-
}
|
|
1683
|
-
},
|
|
1684
|
-
[resetMs]
|
|
1685
|
-
);
|
|
1686
|
-
return { copied, copy };
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
// src/components/core/KdsCopyRow/KdsCopyRow.tsx
|
|
1690
|
-
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1691
|
-
var KdsCopyRow = forwardRef20(
|
|
1714
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
1715
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1716
|
+
var KdsCopyRow = forwardRef21(
|
|
1692
1717
|
({ label, value, copiedText = "Copiado", className, ...props }, ref) => {
|
|
1693
1718
|
const { copied, copy } = useCopyToClipboard();
|
|
1694
|
-
return /* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ jsxs17(
|
|
1695
1720
|
"button",
|
|
1696
1721
|
{
|
|
1697
1722
|
ref,
|
|
@@ -1702,13 +1727,13 @@ var KdsCopyRow = forwardRef20(
|
|
|
1702
1727
|
"aria-label": `Copiar ${label}: ${value}`,
|
|
1703
1728
|
...props,
|
|
1704
1729
|
children: [
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ jsx23("i", { className: "material-symbols-outlined", "aria-hidden": "true", children: "content_copy" }),
|
|
1731
|
+
/* @__PURE__ */ jsxs17("div", { children: [
|
|
1732
|
+
/* @__PURE__ */ jsx23("span", { className: "kds-copy-row-label", children: label }),
|
|
1733
|
+
/* @__PURE__ */ jsx23("span", { className: "kds-copy-row-value", children: value })
|
|
1709
1734
|
] }),
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1735
|
+
/* @__PURE__ */ jsxs17("span", { className: "kds-copy-toast", "aria-hidden": "true", children: [
|
|
1736
|
+
/* @__PURE__ */ jsx23("i", { className: "material-symbols-outlined", children: "check_circle" }),
|
|
1712
1737
|
" ",
|
|
1713
1738
|
copiedText
|
|
1714
1739
|
] })
|
|
@@ -1720,8 +1745,8 @@ var KdsCopyRow = forwardRef20(
|
|
|
1720
1745
|
KdsCopyRow.displayName = "KdsCopyRow";
|
|
1721
1746
|
|
|
1722
1747
|
// src/components/core/KdsCopyableTable/KdsCopyableTable.tsx
|
|
1723
|
-
import { forwardRef as
|
|
1724
|
-
import { Fragment as Fragment2, jsx as
|
|
1748
|
+
import { forwardRef as forwardRef22, useState as useState3, useRef as useRef2, useCallback as useCallback3 } from "react";
|
|
1749
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1725
1750
|
async function copyToClipboard(text) {
|
|
1726
1751
|
try {
|
|
1727
1752
|
if (navigator.clipboard?.writeText) {
|
|
@@ -1746,7 +1771,7 @@ async function copyToClipboard(text) {
|
|
|
1746
1771
|
}
|
|
1747
1772
|
}
|
|
1748
1773
|
var TRANSITION_MS = 300;
|
|
1749
|
-
var KdsCopyableTable =
|
|
1774
|
+
var KdsCopyableTable = forwardRef22(
|
|
1750
1775
|
({
|
|
1751
1776
|
rows,
|
|
1752
1777
|
copyAllLabel = "Copiar todos los datos",
|
|
@@ -1819,8 +1844,8 @@ var KdsCopyableTable = forwardRef21(
|
|
|
1819
1844
|
setTimeout(() => setAllCopied(false), 2e3);
|
|
1820
1845
|
}
|
|
1821
1846
|
};
|
|
1822
|
-
return /* @__PURE__ */
|
|
1823
|
-
/* @__PURE__ */
|
|
1847
|
+
return /* @__PURE__ */ jsxs18(Fragment2, { children: [
|
|
1848
|
+
/* @__PURE__ */ jsx24("div", { ref, className: clsx("kds-copyable-table", className), ...props, children: rows.map((row, i) => /* @__PURE__ */ jsxs18(
|
|
1824
1849
|
"div",
|
|
1825
1850
|
{
|
|
1826
1851
|
className: clsx(
|
|
@@ -1839,13 +1864,13 @@ var KdsCopyableTable = forwardRef21(
|
|
|
1839
1864
|
},
|
|
1840
1865
|
"aria-label": `Copiar ${row.label}: ${row.value}`,
|
|
1841
1866
|
children: [
|
|
1842
|
-
/* @__PURE__ */
|
|
1843
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ jsx24("span", { className: "kds-key", children: row.label }),
|
|
1868
|
+
/* @__PURE__ */ jsx24("span", { className: "kds-value", children: row.value })
|
|
1844
1869
|
]
|
|
1845
1870
|
},
|
|
1846
1871
|
`${row.label}-${i}`
|
|
1847
1872
|
)) }),
|
|
1848
|
-
showCopyAll && /* @__PURE__ */
|
|
1873
|
+
showCopyAll && /* @__PURE__ */ jsxs18(
|
|
1849
1874
|
"button",
|
|
1850
1875
|
{
|
|
1851
1876
|
type: "button",
|
|
@@ -1859,8 +1884,8 @@ var KdsCopyableTable = forwardRef21(
|
|
|
1859
1884
|
onClick: handleCopyAll,
|
|
1860
1885
|
"aria-label": allCopied ? copiedAllLabel : copyAllLabel,
|
|
1861
1886
|
children: [
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ jsx24("span", { className: "kds-icon", children: /* @__PURE__ */ jsx24("i", { className: "material-symbols-outlined", children: allCopied ? "check" : "content_copy" }) }),
|
|
1888
|
+
/* @__PURE__ */ jsx24("span", { children: allCopied ? copiedAllLabel : copyAllLabel })
|
|
1864
1889
|
]
|
|
1865
1890
|
}
|
|
1866
1891
|
)
|
|
@@ -1870,32 +1895,32 @@ var KdsCopyableTable = forwardRef21(
|
|
|
1870
1895
|
KdsCopyableTable.displayName = "KdsCopyableTable";
|
|
1871
1896
|
|
|
1872
1897
|
// src/components/core/KdsExpandPanel/KdsExpandPanel.tsx
|
|
1873
|
-
import { forwardRef as
|
|
1874
|
-
import { jsx as
|
|
1875
|
-
var KdsExpandPanel =
|
|
1898
|
+
import { forwardRef as forwardRef23, useState as useState4 } from "react";
|
|
1899
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1900
|
+
var KdsExpandPanel = forwardRef23(
|
|
1876
1901
|
({ label, defaultExpanded = false, children, className, ...props }, ref) => {
|
|
1877
1902
|
const [expanded, setExpanded] = useState4(defaultExpanded);
|
|
1878
|
-
return /* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ jsxs19("div", { ref, className, ...props, children: [
|
|
1904
|
+
/* @__PURE__ */ jsxs19(
|
|
1880
1905
|
"button",
|
|
1881
1906
|
{
|
|
1882
1907
|
className: "kds-expand-toggle",
|
|
1883
1908
|
onClick: () => setExpanded((v) => !v),
|
|
1884
1909
|
"aria-expanded": expanded,
|
|
1885
1910
|
children: [
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ jsx25("span", { children: label }),
|
|
1912
|
+
/* @__PURE__ */ jsx25("i", { className: "material-symbols-outlined", children: expanded ? "expand_less" : "expand_more" })
|
|
1888
1913
|
]
|
|
1889
1914
|
}
|
|
1890
1915
|
),
|
|
1891
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ jsx25("div", { className: clsx("kds-expand-panel", expanded && "open"), hidden: !expanded, children })
|
|
1892
1917
|
] });
|
|
1893
1918
|
}
|
|
1894
1919
|
);
|
|
1895
1920
|
KdsExpandPanel.displayName = "KdsExpandPanel";
|
|
1896
1921
|
|
|
1897
1922
|
// src/components/core/KdsCountdown/KdsCountdown.tsx
|
|
1898
|
-
import { forwardRef as
|
|
1923
|
+
import { forwardRef as forwardRef24, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
1899
1924
|
|
|
1900
1925
|
// src/components/core/hooks/useCountdown.ts
|
|
1901
1926
|
import { useState as useState5, useEffect as useEffect2 } from "react";
|
|
@@ -1921,8 +1946,8 @@ function useCountdown(deadline) {
|
|
|
1921
1946
|
}
|
|
1922
1947
|
|
|
1923
1948
|
// src/components/core/KdsCountdown/KdsCountdown.tsx
|
|
1924
|
-
import { jsx as
|
|
1925
|
-
var KdsCountdown =
|
|
1949
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1950
|
+
var KdsCountdown = forwardRef24(
|
|
1926
1951
|
({ deadline, label, onExpire, className, ...props }, ref) => {
|
|
1927
1952
|
const { hours, minutes, seconds, expired, urgent } = useCountdown(deadline);
|
|
1928
1953
|
const onExpireRef = useRef3(onExpire);
|
|
@@ -1936,9 +1961,9 @@ var KdsCountdown = forwardRef23(
|
|
|
1936
1961
|
return null;
|
|
1937
1962
|
}
|
|
1938
1963
|
const pad = (n) => String(n).padStart(2, "0");
|
|
1939
|
-
return /* @__PURE__ */
|
|
1940
|
-
label && /* @__PURE__ */
|
|
1941
|
-
/* @__PURE__ */
|
|
1964
|
+
return /* @__PURE__ */ jsxs20("div", { ref, className: clsx("kds-countdown", urgent && "urgent", className), ...props, children: [
|
|
1965
|
+
label && /* @__PURE__ */ jsx26("span", { className: "kds-countdown-label", children: label }),
|
|
1966
|
+
/* @__PURE__ */ jsxs20("span", { className: "kds-countdown-value", children: [
|
|
1942
1967
|
pad(hours),
|
|
1943
1968
|
":",
|
|
1944
1969
|
pad(minutes),
|
|
@@ -1951,18 +1976,18 @@ var KdsCountdown = forwardRef23(
|
|
|
1951
1976
|
KdsCountdown.displayName = "KdsCountdown";
|
|
1952
1977
|
|
|
1953
1978
|
// src/components/core/KdsSegmentedTabs/KdsSegmentedTabs.tsx
|
|
1954
|
-
import { forwardRef as
|
|
1955
|
-
import { jsx as
|
|
1956
|
-
var KdsSegmentedTabs =
|
|
1957
|
-
(props, ref) => /* @__PURE__ */
|
|
1979
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
1980
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1981
|
+
var KdsSegmentedTabs = forwardRef25(
|
|
1982
|
+
(props, ref) => /* @__PURE__ */ jsx27(KdsTabs, { ref, ...props })
|
|
1958
1983
|
);
|
|
1959
1984
|
KdsSegmentedTabs.displayName = "KdsSegmentedTabs";
|
|
1960
1985
|
|
|
1961
1986
|
// src/components/domain/KdsBankRow/KdsBankRow.tsx
|
|
1962
|
-
import { forwardRef as
|
|
1963
|
-
import { jsx as
|
|
1964
|
-
var KdsBankRow =
|
|
1965
|
-
({ name, logoUrl, selected, className, ...props }, ref) => /* @__PURE__ */
|
|
1987
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
1988
|
+
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1989
|
+
var KdsBankRow = forwardRef26(
|
|
1990
|
+
({ name, logoUrl, selected, className, ...props }, ref) => /* @__PURE__ */ jsxs21(
|
|
1966
1991
|
"button",
|
|
1967
1992
|
{
|
|
1968
1993
|
ref,
|
|
@@ -1970,9 +1995,9 @@ var KdsBankRow = forwardRef25(
|
|
|
1970
1995
|
className: clsx("kds-bank-row", selected && "selected", className),
|
|
1971
1996
|
...props,
|
|
1972
1997
|
children: [
|
|
1973
|
-
/* @__PURE__ */
|
|
1974
|
-
/* @__PURE__ */
|
|
1975
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ jsx28("span", { className: "kds-bank-row-logo", children: logoUrl ? /* @__PURE__ */ jsx28("img", { src: logoUrl, alt: name }) : /* @__PURE__ */ jsx28("span", { className: "initials", children: name.charAt(0) }) }),
|
|
1999
|
+
/* @__PURE__ */ jsx28("span", { className: "kds-bank-row-name", children: name }),
|
|
2000
|
+
/* @__PURE__ */ jsx28("i", { className: "material-symbols-outlined", children: selected ? "check_circle" : "chevron_right" })
|
|
1976
2001
|
]
|
|
1977
2002
|
}
|
|
1978
2003
|
)
|
|
@@ -1980,32 +2005,32 @@ var KdsBankRow = forwardRef25(
|
|
|
1980
2005
|
KdsBankRow.displayName = "KdsBankRow";
|
|
1981
2006
|
|
|
1982
2007
|
// src/components/domain/KdsBankList/KdsBankList.tsx
|
|
1983
|
-
import { forwardRef as
|
|
1984
|
-
import { jsx as
|
|
1985
|
-
var KdsBankList =
|
|
1986
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
2008
|
+
import { forwardRef as forwardRef27 } from "react";
|
|
2009
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2010
|
+
var KdsBankList = forwardRef27(
|
|
2011
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx29("div", { ref, className: clsx("kds-bank-list", className), role: "list", ...props, children })
|
|
1987
2012
|
);
|
|
1988
2013
|
KdsBankList.displayName = "KdsBankList";
|
|
1989
2014
|
|
|
1990
2015
|
// src/components/domain/KdsBankModal/KdsBankModal.tsx
|
|
1991
|
-
import { forwardRef as
|
|
2016
|
+
import { forwardRef as forwardRef28, useState as useState6 } from "react";
|
|
1992
2017
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
1993
|
-
import { jsx as
|
|
1994
|
-
var KdsBankModal =
|
|
2018
|
+
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2019
|
+
var KdsBankModal = forwardRef28(
|
|
1995
2020
|
({ open, onClose, title = "Selecciona tu banco", searchPlaceholder = "Buscar banco...", onSearch, children, className, container }, ref) => {
|
|
1996
2021
|
const [query, setQuery] = useState6("");
|
|
1997
2022
|
const handleSearch = (value) => {
|
|
1998
2023
|
setQuery(value);
|
|
1999
2024
|
onSearch?.(value);
|
|
2000
2025
|
};
|
|
2001
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx30(Dialog.Root, { open, onOpenChange: (o) => {
|
|
2002
2027
|
if (!o) onClose();
|
|
2003
|
-
}, children: /* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2028
|
+
}, children: /* @__PURE__ */ jsx30(Dialog.Portal, { container, children: /* @__PURE__ */ jsx30(Dialog.Overlay, { className: "kds-bank-modal-scrim open", children: /* @__PURE__ */ jsxs22(Dialog.Content, { ref, className: clsx("kds-bank-modal", className), children: [
|
|
2029
|
+
/* @__PURE__ */ jsxs22("div", { className: "kds-bank-modal-header", children: [
|
|
2030
|
+
/* @__PURE__ */ jsx30(Dialog.Title, { asChild: true, children: /* @__PURE__ */ jsx30("h3", { children: title }) }),
|
|
2031
|
+
/* @__PURE__ */ jsx30(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx30("button", { className: "kds-bank-modal-close", "aria-label": "Cerrar", children: /* @__PURE__ */ jsx30("i", { className: "material-symbols-outlined", children: "close" }) }) })
|
|
2007
2032
|
] }),
|
|
2008
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx30("div", { className: "kds-bank-modal-search", children: /* @__PURE__ */ jsx30(
|
|
2009
2034
|
"input",
|
|
2010
2035
|
{
|
|
2011
2036
|
type: "text",
|
|
@@ -2014,33 +2039,33 @@ var KdsBankModal = forwardRef27(
|
|
|
2014
2039
|
onChange: (e) => handleSearch(e.target.value)
|
|
2015
2040
|
}
|
|
2016
2041
|
) }),
|
|
2017
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx30("div", { className: "kds-bank-modal-body", children })
|
|
2018
2043
|
] }) }) }) });
|
|
2019
2044
|
}
|
|
2020
2045
|
);
|
|
2021
2046
|
KdsBankModal.displayName = "KdsBankModal";
|
|
2022
2047
|
|
|
2023
2048
|
// src/components/domain/KdsQrRow/KdsQrRow.tsx
|
|
2024
|
-
import { forwardRef as
|
|
2025
|
-
import { jsx as
|
|
2026
|
-
var KdsQrRow =
|
|
2027
|
-
({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
description && /* @__PURE__ */
|
|
2049
|
+
import { forwardRef as forwardRef29 } from "react";
|
|
2050
|
+
import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2051
|
+
var KdsQrRow = forwardRef29(
|
|
2052
|
+
({ name, description, badge, icon = "qr_code_2", className, ...props }, ref) => /* @__PURE__ */ jsxs23("button", { ref, type: "button", className: clsx("kds-qr-row", className), ...props, children: [
|
|
2053
|
+
/* @__PURE__ */ jsx31("span", { className: "kds-qr-avatar", "aria-hidden": "true", children: /* @__PURE__ */ jsx31("i", { className: "material-symbols-outlined", children: icon }) }),
|
|
2054
|
+
/* @__PURE__ */ jsxs23("span", { className: "kds-qr-text", children: [
|
|
2055
|
+
/* @__PURE__ */ jsx31("span", { className: "kds-qr-title", children: name }),
|
|
2056
|
+
description && /* @__PURE__ */ jsx31("span", { className: "kds-qr-subtitle", children: description })
|
|
2032
2057
|
] }),
|
|
2033
|
-
badge && /* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2058
|
+
badge && /* @__PURE__ */ jsx31("span", { className: "kds-qr-badge", children: badge }),
|
|
2059
|
+
/* @__PURE__ */ jsx31("i", { className: "material-symbols-outlined", children: "chevron_right" })
|
|
2035
2060
|
] })
|
|
2036
2061
|
);
|
|
2037
2062
|
KdsQrRow.displayName = "KdsQrRow";
|
|
2038
2063
|
|
|
2039
2064
|
// src/components/domain/KdsCardSelector/KdsCardSelector.tsx
|
|
2040
|
-
import { forwardRef as
|
|
2041
|
-
import { jsx as
|
|
2042
|
-
var KdsCardSelector =
|
|
2043
|
-
({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */
|
|
2065
|
+
import { forwardRef as forwardRef30 } from "react";
|
|
2066
|
+
import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2067
|
+
var KdsCardSelector = forwardRef30(
|
|
2068
|
+
({ icon, title, description, selected, className, ...props }, ref) => /* @__PURE__ */ jsxs24(
|
|
2044
2069
|
"button",
|
|
2045
2070
|
{
|
|
2046
2071
|
ref,
|
|
@@ -2048,9 +2073,9 @@ var KdsCardSelector = forwardRef29(
|
|
|
2048
2073
|
className: clsx("kds-card-selector", selected && "selected", className),
|
|
2049
2074
|
...props,
|
|
2050
2075
|
children: [
|
|
2051
|
-
icon && /* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
description && /* @__PURE__ */
|
|
2076
|
+
icon && /* @__PURE__ */ jsx32("span", { className: "kds-card-selector-icon", children: /* @__PURE__ */ jsx32("i", { className: "material-symbols-outlined", children: icon }) }),
|
|
2077
|
+
/* @__PURE__ */ jsx32("span", { className: "kds-card-selector-title", children: title }),
|
|
2078
|
+
description && /* @__PURE__ */ jsx32("span", { className: "kds-card-selector-description", children: description })
|
|
2054
2079
|
]
|
|
2055
2080
|
}
|
|
2056
2081
|
)
|
|
@@ -2058,26 +2083,26 @@ var KdsCardSelector = forwardRef29(
|
|
|
2058
2083
|
KdsCardSelector.displayName = "KdsCardSelector";
|
|
2059
2084
|
|
|
2060
2085
|
// src/components/domain/KdsCardPlan/KdsCardPlan.tsx
|
|
2061
|
-
import { forwardRef as
|
|
2062
|
-
import { jsx as
|
|
2063
|
-
var KdsCardPlan =
|
|
2064
|
-
({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */
|
|
2086
|
+
import { forwardRef as forwardRef31 } from "react";
|
|
2087
|
+
import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2088
|
+
var KdsCardPlan = forwardRef31(
|
|
2089
|
+
({ title, price, period, features, recommended, badgeText, action, className, ...props }, ref) => /* @__PURE__ */ jsxs25(
|
|
2065
2090
|
"div",
|
|
2066
2091
|
{
|
|
2067
2092
|
ref,
|
|
2068
2093
|
className: clsx("kds-card-plan", recommended && "recommended", className),
|
|
2069
2094
|
...props,
|
|
2070
2095
|
children: [
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
period && /* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ jsx33("div", { className: "kds-card-plan-header", children: /* @__PURE__ */ jsx33("h3", { children: title }) }),
|
|
2097
|
+
/* @__PURE__ */ jsxs25("div", { className: "kds-card-plan-price", children: [
|
|
2098
|
+
/* @__PURE__ */ jsx33("span", { className: "kds-price", children: price }),
|
|
2099
|
+
period && /* @__PURE__ */ jsxs25("span", { className: "kds-price-period", children: [
|
|
2075
2100
|
"/",
|
|
2076
2101
|
period
|
|
2077
2102
|
] })
|
|
2078
2103
|
] }),
|
|
2079
|
-
badgeText && /* @__PURE__ */
|
|
2080
|
-
features && features.length > 0 && /* @__PURE__ */
|
|
2104
|
+
badgeText && /* @__PURE__ */ jsx33("span", { className: "kds-card-plan-badge", children: badgeText }),
|
|
2105
|
+
features && features.length > 0 && /* @__PURE__ */ jsx33("ul", { className: "kds-card-plan-features", children: features.map((f, i) => /* @__PURE__ */ jsx33("li", { children: f }, i)) }),
|
|
2081
2106
|
action
|
|
2082
2107
|
]
|
|
2083
2108
|
}
|
|
@@ -2086,18 +2111,18 @@ var KdsCardPlan = forwardRef30(
|
|
|
2086
2111
|
KdsCardPlan.displayName = "KdsCardPlan";
|
|
2087
2112
|
|
|
2088
2113
|
// src/components/domain/KdsInvoiceSticky/KdsInvoiceSticky.tsx
|
|
2089
|
-
import { forwardRef as
|
|
2090
|
-
import { jsx as
|
|
2091
|
-
var KdsInvoiceSticky =
|
|
2092
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
2114
|
+
import { forwardRef as forwardRef32 } from "react";
|
|
2115
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2116
|
+
var KdsInvoiceSticky = forwardRef32(
|
|
2117
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx34("div", { ref, className: clsx("kds-card-elevated", "kds-invoice-sticky", className), ...props, children })
|
|
2093
2118
|
);
|
|
2094
2119
|
KdsInvoiceSticky.displayName = "KdsInvoiceSticky";
|
|
2095
2120
|
|
|
2096
2121
|
// src/components/domain/KdsBottomSheet/KdsBottomSheet.tsx
|
|
2097
|
-
import { forwardRef as
|
|
2122
|
+
import { forwardRef as forwardRef33 } from "react";
|
|
2098
2123
|
import * as Dialog2 from "@radix-ui/react-dialog";
|
|
2099
|
-
import { jsx as
|
|
2100
|
-
var KdsBottomSheet =
|
|
2124
|
+
import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2125
|
+
var KdsBottomSheet = forwardRef33(
|
|
2101
2126
|
({
|
|
2102
2127
|
open,
|
|
2103
2128
|
onClose,
|
|
@@ -2109,14 +2134,14 @@ var KdsBottomSheet = forwardRef32(
|
|
|
2109
2134
|
showCloseButton = false,
|
|
2110
2135
|
container,
|
|
2111
2136
|
className
|
|
2112
|
-
}, ref) => /* @__PURE__ */
|
|
2137
|
+
}, ref) => /* @__PURE__ */ jsx35(
|
|
2113
2138
|
Dialog2.Root,
|
|
2114
2139
|
{
|
|
2115
2140
|
open,
|
|
2116
2141
|
onOpenChange: (o) => {
|
|
2117
2142
|
if (!o) onClose();
|
|
2118
2143
|
},
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2144
|
+
children: /* @__PURE__ */ jsx35(Dialog2.Portal, { container, children: /* @__PURE__ */ jsx35(Dialog2.Overlay, { className: "kds-bottom-sheet-scrim open", children: /* @__PURE__ */ jsxs26(
|
|
2120
2145
|
Dialog2.Content,
|
|
2121
2146
|
{
|
|
2122
2147
|
ref,
|
|
@@ -2126,20 +2151,20 @@ var KdsBottomSheet = forwardRef32(
|
|
|
2126
2151
|
if (target.closest(".kds-bottom-sheet")) e.preventDefault();
|
|
2127
2152
|
},
|
|
2128
2153
|
children: [
|
|
2129
|
-
showGrabber && /* @__PURE__ */
|
|
2130
|
-
showCloseButton && /* @__PURE__ */
|
|
2154
|
+
showGrabber && /* @__PURE__ */ jsx35("div", { className: "kds-bottom-sheet-grabber", "aria-hidden": "true" }),
|
|
2155
|
+
showCloseButton && /* @__PURE__ */ jsx35(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx35(
|
|
2131
2156
|
"button",
|
|
2132
2157
|
{
|
|
2133
2158
|
type: "button",
|
|
2134
2159
|
className: "kds-bottom-sheet-close",
|
|
2135
2160
|
"aria-label": "Cerrar",
|
|
2136
|
-
children: /* @__PURE__ */
|
|
2161
|
+
children: /* @__PURE__ */ jsx35("i", { className: "material-symbols-outlined", children: "close" })
|
|
2137
2162
|
}
|
|
2138
2163
|
) }),
|
|
2139
|
-
title && /* @__PURE__ */
|
|
2140
|
-
description && /* @__PURE__ */
|
|
2141
|
-
/* @__PURE__ */
|
|
2142
|
-
actions && /* @__PURE__ */
|
|
2164
|
+
title && /* @__PURE__ */ jsx35(Dialog2.Title, { className: "kds-bottom-sheet-title", children: title }),
|
|
2165
|
+
description && /* @__PURE__ */ jsx35(Dialog2.Description, { className: "kds-bottom-sheet-description", children: description }),
|
|
2166
|
+
/* @__PURE__ */ jsx35("div", { className: "kds-bottom-sheet-body", children }),
|
|
2167
|
+
actions && /* @__PURE__ */ jsx35("div", { className: "kds-bottom-sheet-actions", children: actions })
|
|
2143
2168
|
]
|
|
2144
2169
|
}
|
|
2145
2170
|
) }) })
|
|
@@ -2149,55 +2174,55 @@ var KdsBottomSheet = forwardRef32(
|
|
|
2149
2174
|
KdsBottomSheet.displayName = "KdsBottomSheet";
|
|
2150
2175
|
|
|
2151
2176
|
// src/components/domain/KdsSecureFooter/KdsSecureFooter.tsx
|
|
2152
|
-
import { forwardRef as
|
|
2153
|
-
import { jsx as
|
|
2154
|
-
var KdsSecureFooter =
|
|
2155
|
-
({ variant = "default", children, className, ...props }, ref) => /* @__PURE__ */
|
|
2156
|
-
/* @__PURE__ */
|
|
2157
|
-
children || /* @__PURE__ */
|
|
2177
|
+
import { forwardRef as forwardRef34 } from "react";
|
|
2178
|
+
import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2179
|
+
var KdsSecureFooter = forwardRef34(
|
|
2180
|
+
({ variant = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsxs27("footer", { ref, className: clsx("kds-secure-footer", variant === "inside" && "inside", className), ...props, children: [
|
|
2181
|
+
/* @__PURE__ */ jsx36("i", { className: "material-symbols-outlined", children: "lock" }),
|
|
2182
|
+
children || /* @__PURE__ */ jsx36("span", { children: "Pago seguro con Khipu" })
|
|
2158
2183
|
] })
|
|
2159
2184
|
);
|
|
2160
2185
|
KdsSecureFooter.displayName = "KdsSecureFooter";
|
|
2161
2186
|
|
|
2162
2187
|
// src/components/domain/KdsRecapList/KdsRecapList.tsx
|
|
2163
|
-
import { forwardRef as
|
|
2164
|
-
import { jsx as
|
|
2165
|
-
var KdsRecapList =
|
|
2166
|
-
({ items, className, ...props }, ref) => /* @__PURE__ */
|
|
2167
|
-
/* @__PURE__ */
|
|
2168
|
-
/* @__PURE__ */
|
|
2188
|
+
import { forwardRef as forwardRef35 } from "react";
|
|
2189
|
+
import { jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2190
|
+
var KdsRecapList = forwardRef35(
|
|
2191
|
+
({ items, className, ...props }, ref) => /* @__PURE__ */ jsx37("ul", { ref, className: clsx("kds-recap-list", className), ...props, children: items.map((item, i) => /* @__PURE__ */ jsxs28("li", { children: [
|
|
2192
|
+
/* @__PURE__ */ jsx37("span", { className: "kds-key", children: item.label }),
|
|
2193
|
+
/* @__PURE__ */ jsx37("span", { className: clsx("kds-value", !item.value && item.placeholder && "placeholder"), children: item.value || item.placeholder || "-" })
|
|
2169
2194
|
] }, i)) })
|
|
2170
2195
|
);
|
|
2171
2196
|
KdsRecapList.displayName = "KdsRecapList";
|
|
2172
2197
|
|
|
2173
2198
|
// src/components/domain/KdsMontoRow/KdsMontoRow.tsx
|
|
2174
|
-
import { forwardRef as
|
|
2175
|
-
import { jsx as
|
|
2176
|
-
var KdsMontoRow =
|
|
2177
|
-
({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */
|
|
2178
|
-
/* @__PURE__ */
|
|
2179
|
-
/* @__PURE__ */
|
|
2180
|
-
deadline && /* @__PURE__ */
|
|
2199
|
+
import { forwardRef as forwardRef36 } from "react";
|
|
2200
|
+
import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2201
|
+
var KdsMontoRow = forwardRef36(
|
|
2202
|
+
({ title, value, deadline, className, ...props }, ref) => /* @__PURE__ */ jsxs29("div", { ref, className: clsx("kds-monto-row", className), ...props, children: [
|
|
2203
|
+
/* @__PURE__ */ jsxs29("div", { children: [
|
|
2204
|
+
/* @__PURE__ */ jsx38("div", { className: "kds-monto-row-title", children: title }),
|
|
2205
|
+
deadline && /* @__PURE__ */ jsx38("div", { className: "kds-monto-row-deadline", children: deadline })
|
|
2181
2206
|
] }),
|
|
2182
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ jsx38("div", { className: "kds-monto-row-value", children: value })
|
|
2183
2208
|
] })
|
|
2184
2209
|
);
|
|
2185
2210
|
KdsMontoRow.displayName = "KdsMontoRow";
|
|
2186
2211
|
|
|
2187
2212
|
// src/components/domain/KdsMerchantTile/KdsMerchantTile.tsx
|
|
2188
|
-
import { forwardRef as
|
|
2189
|
-
import { jsx as
|
|
2190
|
-
var KdsMerchantTile =
|
|
2213
|
+
import { forwardRef as forwardRef37 } from "react";
|
|
2214
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2215
|
+
var KdsMerchantTile = forwardRef37(
|
|
2191
2216
|
({ name, logoUrl, initials, compact, className, ...props }, ref) => {
|
|
2192
2217
|
const displayInitials = (initials ?? name.slice(0, 2)).toUpperCase();
|
|
2193
|
-
return /* @__PURE__ */
|
|
2218
|
+
return /* @__PURE__ */ jsx39(
|
|
2194
2219
|
"div",
|
|
2195
2220
|
{
|
|
2196
2221
|
ref,
|
|
2197
2222
|
className: clsx("kds-merchant-tile", logoUrl && "logo", compact && "compact", className),
|
|
2198
2223
|
"aria-label": name,
|
|
2199
2224
|
...props,
|
|
2200
|
-
children: logoUrl ? /* @__PURE__ */
|
|
2225
|
+
children: logoUrl ? /* @__PURE__ */ jsx39("img", { src: logoUrl, alt: name }) : displayInitials
|
|
2201
2226
|
}
|
|
2202
2227
|
);
|
|
2203
2228
|
}
|
|
@@ -2205,9 +2230,9 @@ var KdsMerchantTile = forwardRef36(
|
|
|
2205
2230
|
KdsMerchantTile.displayName = "KdsMerchantTile";
|
|
2206
2231
|
|
|
2207
2232
|
// src/components/domain/KdsPaymentTotal/KdsPaymentTotal.tsx
|
|
2208
|
-
import { forwardRef as
|
|
2209
|
-
import { jsx as
|
|
2210
|
-
var KdsPaymentTotal =
|
|
2233
|
+
import { forwardRef as forwardRef38 } from "react";
|
|
2234
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2235
|
+
var KdsPaymentTotal = forwardRef38(
|
|
2211
2236
|
({
|
|
2212
2237
|
variant = "default",
|
|
2213
2238
|
tone = "brand",
|
|
@@ -2225,7 +2250,7 @@ var KdsPaymentTotal = forwardRef37(
|
|
|
2225
2250
|
const { integer, fraction } = formatAmount(amount, decimals, locale);
|
|
2226
2251
|
const isEmail = variant === "email";
|
|
2227
2252
|
const isInfoTone = tone === "info";
|
|
2228
|
-
return /* @__PURE__ */
|
|
2253
|
+
return /* @__PURE__ */ jsxs30(
|
|
2229
2254
|
"div",
|
|
2230
2255
|
{
|
|
2231
2256
|
ref,
|
|
@@ -2238,14 +2263,14 @@ var KdsPaymentTotal = forwardRef37(
|
|
|
2238
2263
|
),
|
|
2239
2264
|
...props,
|
|
2240
2265
|
children: [
|
|
2241
|
-
!isEmail && title != null && /* @__PURE__ */
|
|
2242
|
-
!isEmail && titleMobile != null && /* @__PURE__ */
|
|
2243
|
-
label != null && /* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2266
|
+
!isEmail && title != null && /* @__PURE__ */ jsx40("h5", { className: "kds-payment-total-title", children: title }),
|
|
2267
|
+
!isEmail && titleMobile != null && /* @__PURE__ */ jsx40("h5", { className: "kds-payment-total-title-mobile", children: titleMobile }),
|
|
2268
|
+
label != null && /* @__PURE__ */ jsx40("h6", { className: "kds-payment-label", children: label }),
|
|
2269
|
+
/* @__PURE__ */ jsxs30("h5", { className: "kds-payment-amount", children: [
|
|
2245
2270
|
currency,
|
|
2246
2271
|
" ",
|
|
2247
2272
|
integer,
|
|
2248
|
-
fraction !== null && /* @__PURE__ */
|
|
2273
|
+
fraction !== null && /* @__PURE__ */ jsx40("sup", { className: "kds-payment-total-decimal-sup", children: fraction })
|
|
2249
2274
|
] })
|
|
2250
2275
|
]
|
|
2251
2276
|
}
|
|
@@ -2281,10 +2306,10 @@ function formatAmount(amount, decimals, locale) {
|
|
|
2281
2306
|
}
|
|
2282
2307
|
|
|
2283
2308
|
// src/components/domain/KdsBillAttachment/KdsBillAttachment.tsx
|
|
2284
|
-
import { forwardRef as
|
|
2285
|
-
import { jsx as
|
|
2286
|
-
var KdsBillAttachment =
|
|
2287
|
-
({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */
|
|
2309
|
+
import { forwardRef as forwardRef39 } from "react";
|
|
2310
|
+
import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2311
|
+
var KdsBillAttachment = forwardRef39(
|
|
2312
|
+
({ filename, href, icon = "attach_file", className, ...props }, ref) => /* @__PURE__ */ jsxs31(
|
|
2288
2313
|
"a",
|
|
2289
2314
|
{
|
|
2290
2315
|
ref,
|
|
@@ -2294,15 +2319,15 @@ var KdsBillAttachment = forwardRef38(
|
|
|
2294
2319
|
className: clsx("kds-bill-attachment", className),
|
|
2295
2320
|
...props,
|
|
2296
2321
|
children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ jsx41("i", { className: "material-symbols-outlined", children: icon }),
|
|
2323
|
+
/* @__PURE__ */ jsx41("span", { children: filename })
|
|
2299
2324
|
]
|
|
2300
2325
|
}
|
|
2301
2326
|
)
|
|
2302
2327
|
);
|
|
2303
2328
|
KdsBillAttachment.displayName = "KdsBillAttachment";
|
|
2304
|
-
var KdsBillAttachments =
|
|
2305
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
2329
|
+
var KdsBillAttachments = forwardRef39(
|
|
2330
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx41("div", { ref, className: clsx("kds-bill-attachments", className), ...props, children })
|
|
2306
2331
|
);
|
|
2307
2332
|
KdsBillAttachments.displayName = "KdsBillAttachments";
|
|
2308
2333
|
export {
|
|
@@ -2325,6 +2350,7 @@ export {
|
|
|
2325
2350
|
KdsCardSelector,
|
|
2326
2351
|
KdsCheckbox,
|
|
2327
2352
|
KdsChip,
|
|
2353
|
+
KdsCopyButton,
|
|
2328
2354
|
KdsCopyRow,
|
|
2329
2355
|
KdsCopyableTable,
|
|
2330
2356
|
KdsCountdown,
|