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