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