@lets-events/react 4.0.0 → 6.0.0
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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +20 -18
- package/CHANGELOG.md +13 -0
- package/dist/index.d.mts +2855 -164
- package/dist/index.d.ts +2855 -164
- package/dist/index.js +1428 -403
- package/dist/index.mjs +1374 -369
- package/package.json +1 -1
- package/src/components/Alert.tsx +256 -0
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +129 -121
- package/src/components/Box.tsx +3 -3
- package/src/components/Button.tsx +328 -348
- package/src/components/ButtonGroup.tsx +484 -477
- package/src/components/CheckboxGroup.tsx +214 -208
- package/src/components/Container.tsx +40 -0
- package/src/components/Dropdown.tsx +167 -109
- package/src/components/Filter.tsx +164 -95
- package/src/components/Flex.tsx +118 -47
- package/src/components/Grid.tsx +138 -0
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +109 -0
- package/src/components/RadioGroup.tsx +210 -203
- package/src/components/Section.tsx +34 -0
- package/src/components/Step.tsx +148 -0
- package/src/components/Switch.tsx +109 -0
- package/src/components/Text.tsx +32 -26
- package/src/components/TextField.tsx +241 -193
- package/src/index.tsx +27 -23
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +179 -0
- package/tsconfig.json +3 -3
- package/src/components/BadgeText.tsx +0 -29
- package/src/components/BodyText.tsx +0 -24
- package/src/components/CaptionText.tsx +0 -16
- package/src/components/DisplayText.tsx +0 -26
- package/src/components/Headline.tsx +0 -29
- package/src/components/Label.tsx +0 -28
- package/src/components/Subtitle.tsx +0 -26
- package/src/components/TooltipText.tsx +0 -15
package/dist/index.mjs
CHANGED
|
@@ -1222,7 +1222,41 @@ var fontSizes = {
|
|
|
1222
1222
|
"2xl": "1.5rem",
|
|
1223
1223
|
"3xl": "2rem",
|
|
1224
1224
|
"4xl": "2.5rem",
|
|
1225
|
-
full: "62.4375rem"
|
|
1225
|
+
full: "62.4375rem",
|
|
1226
|
+
displayLarge: "3.5rem",
|
|
1227
|
+
displayMedium: "3rem",
|
|
1228
|
+
displaySmall: "2.25rem",
|
|
1229
|
+
headline1: "2.5rem",
|
|
1230
|
+
headline2: "2rem",
|
|
1231
|
+
headline3: "1.75rem",
|
|
1232
|
+
headline4: "1.375rem",
|
|
1233
|
+
headline5: "1.25rem",
|
|
1234
|
+
headline6: "1.125rem",
|
|
1235
|
+
headline7: "1rem",
|
|
1236
|
+
headline8: "0.875rem",
|
|
1237
|
+
bodyXL: "1.25rem",
|
|
1238
|
+
bodyL: "1.125rem",
|
|
1239
|
+
bodyM: "1rem",
|
|
1240
|
+
bodyS: "0.875rem",
|
|
1241
|
+
bodyXS: "0.8125rem",
|
|
1242
|
+
bodyXXS: "0.75rem",
|
|
1243
|
+
buttonLarge: "1.25rem",
|
|
1244
|
+
buttonMedium: "0.875rem",
|
|
1245
|
+
buttonSmall: "0.875rem",
|
|
1246
|
+
buttonExtraSmall: "0.75rem",
|
|
1247
|
+
badgeLarge: "1rem",
|
|
1248
|
+
badgeMedium: "0.875rem",
|
|
1249
|
+
badgeSmall: "0.75rem",
|
|
1250
|
+
badgeExtraSmall: "0.625rem",
|
|
1251
|
+
tooltip: "0.875rem",
|
|
1252
|
+
popoversRegular: "0.875rem",
|
|
1253
|
+
labelLarge: "1rem",
|
|
1254
|
+
labelMedium: "0.875rem",
|
|
1255
|
+
labelSmall: "0.8125rem",
|
|
1256
|
+
labelExtraSmall: "0.75rem",
|
|
1257
|
+
captionLarge: "0.8125rem",
|
|
1258
|
+
captionMedium: "0.75rem",
|
|
1259
|
+
captionSmall: "0.625rem"
|
|
1226
1260
|
};
|
|
1227
1261
|
var fontWeights = {
|
|
1228
1262
|
regular: "400",
|
|
@@ -1239,8 +1273,42 @@ var lineHeights = {
|
|
|
1239
1273
|
// 12px
|
|
1240
1274
|
base: "150%",
|
|
1241
1275
|
// 16px
|
|
1242
|
-
tall: "175%"
|
|
1276
|
+
tall: "175%",
|
|
1243
1277
|
// 24px
|
|
1278
|
+
displayLarge: "4.5rem",
|
|
1279
|
+
displayMedium: "4rem",
|
|
1280
|
+
displaySmall: "3.25rem",
|
|
1281
|
+
headline1: "3.25rem",
|
|
1282
|
+
headline2: "2.75rem",
|
|
1283
|
+
headline3: "2.5rem",
|
|
1284
|
+
headline4: "1.75rem",
|
|
1285
|
+
headline5: "1.5rem",
|
|
1286
|
+
headline6: "1.375rem",
|
|
1287
|
+
headline7: "1.5rem",
|
|
1288
|
+
headline8: "1.25rem",
|
|
1289
|
+
bodyXL: "1.75rem",
|
|
1290
|
+
bodyL: "1.625rem",
|
|
1291
|
+
bodyM: "1.5rem",
|
|
1292
|
+
bodyS: "1.25rem",
|
|
1293
|
+
bodyXS: "1.125rem",
|
|
1294
|
+
bodyXXS: "1rem",
|
|
1295
|
+
buttonLarge: "1.25rem",
|
|
1296
|
+
buttonMedium: "1rem",
|
|
1297
|
+
buttonSmall: "0.875rem",
|
|
1298
|
+
buttonExtraSmall: "0.75rem",
|
|
1299
|
+
badgeLarge: "1rem",
|
|
1300
|
+
badgeMedium: "0.875rem",
|
|
1301
|
+
badgeSmall: "0.75rem",
|
|
1302
|
+
badgeExtraSmall: "0.625rem",
|
|
1303
|
+
tooltip: "1rem",
|
|
1304
|
+
popoversRegular: "1rem",
|
|
1305
|
+
labelLarge: "1.125rem",
|
|
1306
|
+
labelMedium: "1.125rem",
|
|
1307
|
+
labelSmall: "1rem",
|
|
1308
|
+
labelExtraSmall: "1rem",
|
|
1309
|
+
captionLarge: "1rem",
|
|
1310
|
+
captionMedium: "0.875rem",
|
|
1311
|
+
captionSmall: "0.75rem"
|
|
1244
1312
|
};
|
|
1245
1313
|
var radii = {
|
|
1246
1314
|
"3xs": "2px",
|
|
@@ -1320,174 +1388,210 @@ var {
|
|
|
1320
1388
|
|
|
1321
1389
|
// src/components/Text.tsx
|
|
1322
1390
|
import { Text as TextRadix } from "@radix-ui/themes";
|
|
1323
|
-
var Text = styled(TextRadix, {
|
|
1324
|
-
fontFamily: "$default",
|
|
1325
|
-
lineHeight: "$base",
|
|
1326
|
-
color: "$gray100",
|
|
1327
|
-
letterSpacing: "$2",
|
|
1328
|
-
fontWeight: "$semibold",
|
|
1329
|
-
variants: {
|
|
1330
|
-
size: {
|
|
1331
|
-
lg: { fontSize: "$56" },
|
|
1332
|
-
md: { fontSize: "$48" },
|
|
1333
|
-
sm: { fontSize: "$36" }
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
defaultVariants: {
|
|
1337
|
-
size: "md"
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
1391
|
|
|
1341
|
-
// src/
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
fontWeight: "$semibold",
|
|
1348
|
-
variants: {
|
|
1349
|
-
size: {
|
|
1350
|
-
lg: { fontSize: "$56" },
|
|
1351
|
-
md: { fontSize: "$48" },
|
|
1352
|
-
sm: { fontSize: "$36" }
|
|
1353
|
-
}
|
|
1392
|
+
// src/types/typographyValues.ts
|
|
1393
|
+
var typographyValues = {
|
|
1394
|
+
displayLarge: {
|
|
1395
|
+
fontSize: "$displayLarge",
|
|
1396
|
+
lineHeight: "$displayLarge",
|
|
1397
|
+
letterSpacing: "$displayLarge"
|
|
1354
1398
|
},
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
// src/components/Headline.tsx
|
|
1361
|
-
import { Heading } from "@radix-ui/themes";
|
|
1362
|
-
var Headline = styled(Heading, {
|
|
1363
|
-
fontFamily: "$default",
|
|
1364
|
-
color: "$gray100",
|
|
1365
|
-
letterSpacing: "0px",
|
|
1366
|
-
variants: {
|
|
1367
|
-
size: {
|
|
1368
|
-
1: { fontSize: "$48", lineHeight: "$64", fontWeight: "$semibold" },
|
|
1369
|
-
2: { fontSize: "$32", lineHeight: "$48", fontWeight: "$semibold" },
|
|
1370
|
-
3: { fontSize: "$24", lineHeight: "$40", fontWeight: "$semibold" },
|
|
1371
|
-
4: { fontSize: "$20", lineHeight: "$36", fontWeight: "$semibold" },
|
|
1372
|
-
5: { fontSize: "$18", lineHeight: "$24", fontWeight: "$semibold" },
|
|
1373
|
-
6: { fontSize: "$18", lineHeight: "$34", fontWeight: "$medium" },
|
|
1374
|
-
7: { fontSize: "$16", lineHeight: "$32", fontWeight: "$semibold" },
|
|
1375
|
-
8: { fontSize: "$16", lineHeight: "$32", fontWeight: "$medium" }
|
|
1376
|
-
}
|
|
1399
|
+
displayMedium: {
|
|
1400
|
+
fontSize: "$displayMedium",
|
|
1401
|
+
lineHeight: "$displayMedium",
|
|
1402
|
+
letterSpacing: "$displayMedium"
|
|
1377
1403
|
},
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
// src/components/Subtitle.tsx
|
|
1384
|
-
import { Text as Text2 } from "@radix-ui/themes";
|
|
1385
|
-
var Subtitle = styled(Text2, {
|
|
1386
|
-
fontFamily: "$default",
|
|
1387
|
-
color: "$gray100",
|
|
1388
|
-
letterSpacing: "0px",
|
|
1389
|
-
variants: {
|
|
1390
|
-
size: {
|
|
1391
|
-
1: { fontSize: "$20", lineHeight: "$36", fontWeight: "$regular" },
|
|
1392
|
-
2: { fontSize: "$18", lineHeight: "$34", fontWeight: "$regular" },
|
|
1393
|
-
3: { fontSize: "$16", lineHeight: "$32", fontWeight: "$regular" },
|
|
1394
|
-
4: { fontSize: "$14", lineHeight: "$24", fontWeight: "$regular" },
|
|
1395
|
-
5: { fontSize: "$14", lineHeight: "$16", fontWeight: "$semibold" }
|
|
1396
|
-
}
|
|
1404
|
+
displaySmall: {
|
|
1405
|
+
fontSize: "$displaySmall",
|
|
1406
|
+
lineHeight: "$displaySmall",
|
|
1407
|
+
letterSpacing: "$displaySmall"
|
|
1397
1408
|
},
|
|
1398
|
-
|
|
1399
|
-
|
|
1409
|
+
headline1: {
|
|
1410
|
+
fontSize: "$headline1",
|
|
1411
|
+
lineHeight: "$headline1"
|
|
1412
|
+
},
|
|
1413
|
+
headline2: {
|
|
1414
|
+
fontSize: "$headline2",
|
|
1415
|
+
lineHeight: "$headline2"
|
|
1416
|
+
},
|
|
1417
|
+
headline3: {
|
|
1418
|
+
fontSize: "$headline3",
|
|
1419
|
+
lineHeight: "$headline3"
|
|
1420
|
+
},
|
|
1421
|
+
headline4: {
|
|
1422
|
+
fontSize: "$headline4",
|
|
1423
|
+
lineHeight: "$headline4"
|
|
1424
|
+
},
|
|
1425
|
+
headline5: {
|
|
1426
|
+
fontSize: "$headline5",
|
|
1427
|
+
lineHeight: "$headline5"
|
|
1428
|
+
},
|
|
1429
|
+
headline6: {
|
|
1430
|
+
fontSize: "$headline6",
|
|
1431
|
+
lineHeight: "$headline6"
|
|
1432
|
+
},
|
|
1433
|
+
headline7: {
|
|
1434
|
+
fontSize: "$headline7",
|
|
1435
|
+
lineHeight: "$headline7"
|
|
1436
|
+
},
|
|
1437
|
+
headline8: {
|
|
1438
|
+
fontSize: "$headline8",
|
|
1439
|
+
lineHeight: "$headline8"
|
|
1440
|
+
},
|
|
1441
|
+
bodyXL: {
|
|
1442
|
+
fontSize: "$bodyXL",
|
|
1443
|
+
lineHeight: "$bodyXL"
|
|
1444
|
+
},
|
|
1445
|
+
bodyL: {
|
|
1446
|
+
fontSize: "$bodyL",
|
|
1447
|
+
lineHeight: "$bodyL"
|
|
1448
|
+
},
|
|
1449
|
+
bodyM: {
|
|
1450
|
+
fontSize: "$bodyM",
|
|
1451
|
+
lineHeight: "$bodyM"
|
|
1452
|
+
},
|
|
1453
|
+
bodyS: {
|
|
1454
|
+
fontSize: "$bodyS",
|
|
1455
|
+
lineHeight: "$bodyS"
|
|
1456
|
+
},
|
|
1457
|
+
bodyXS: {
|
|
1458
|
+
fontSize: "$bodyXS",
|
|
1459
|
+
lineHeight: "$bodyXS"
|
|
1460
|
+
},
|
|
1461
|
+
bodyXXS: {
|
|
1462
|
+
fontSize: "$bodyXXS",
|
|
1463
|
+
lineHeight: "$bodyXXS"
|
|
1464
|
+
},
|
|
1465
|
+
badgeLarge: {
|
|
1466
|
+
fontSize: "$badgeLarge",
|
|
1467
|
+
lineHeight: "$badgeLarge"
|
|
1468
|
+
},
|
|
1469
|
+
badgeMedium: {
|
|
1470
|
+
fontSize: "$badgeMedium",
|
|
1471
|
+
lineHeight: "$badgeMedium"
|
|
1472
|
+
},
|
|
1473
|
+
badgeSmall: {
|
|
1474
|
+
fontSize: "$badgeSmall",
|
|
1475
|
+
lineHeight: "$badgeSmall"
|
|
1476
|
+
},
|
|
1477
|
+
badgeExtraSmall: {
|
|
1478
|
+
fontSize: "$badgeExtraSmall",
|
|
1479
|
+
lineHeight: "$badgeExtraSmall"
|
|
1480
|
+
},
|
|
1481
|
+
tooltip: {
|
|
1482
|
+
fontSize: "$tooltip",
|
|
1483
|
+
lineHeight: "$tooltip"
|
|
1484
|
+
},
|
|
1485
|
+
popoversRegular: {
|
|
1486
|
+
fontSize: "$popoversRegular",
|
|
1487
|
+
lineHeight: "$popoversRegular"
|
|
1488
|
+
},
|
|
1489
|
+
captionLarge: {
|
|
1490
|
+
fontSize: "$captionLarge",
|
|
1491
|
+
lineHeight: "$captionLarge"
|
|
1492
|
+
},
|
|
1493
|
+
captionMedium: {
|
|
1494
|
+
fontSize: "$captionMedium",
|
|
1495
|
+
lineHeight: "$captionMedium"
|
|
1496
|
+
},
|
|
1497
|
+
captionSmall: {
|
|
1498
|
+
fontSize: "$captionSmall",
|
|
1499
|
+
lineHeight: "$captionSmall"
|
|
1500
|
+
},
|
|
1501
|
+
buttonLarge: {
|
|
1502
|
+
fontSize: "$buttonLarge",
|
|
1503
|
+
lineHeight: "$buttonLarge"
|
|
1504
|
+
},
|
|
1505
|
+
buttonMedium: {
|
|
1506
|
+
fontSize: "$buttonMedium",
|
|
1507
|
+
lineHeight: "$buttonMedium"
|
|
1508
|
+
},
|
|
1509
|
+
buttonSmall: {
|
|
1510
|
+
fontSize: "$buttonSmall",
|
|
1511
|
+
lineHeight: "$buttonSmall"
|
|
1512
|
+
},
|
|
1513
|
+
buttonExtraSmall: {
|
|
1514
|
+
fontSize: "$buttonExtraSmall",
|
|
1515
|
+
lineHeight: "$buttonExtraSmall"
|
|
1516
|
+
},
|
|
1517
|
+
labelLarge: {
|
|
1518
|
+
fontSize: "$labelLarge",
|
|
1519
|
+
lineHeight: "$labelLarge"
|
|
1520
|
+
},
|
|
1521
|
+
labelMedium: {
|
|
1522
|
+
fontSize: "$labelMedium",
|
|
1523
|
+
lineHeight: "$labelMedium"
|
|
1524
|
+
},
|
|
1525
|
+
labelSmall: {
|
|
1526
|
+
fontSize: "$labelSmall",
|
|
1527
|
+
lineHeight: "$labelSmall"
|
|
1528
|
+
},
|
|
1529
|
+
labelExtraSmall: {
|
|
1530
|
+
fontSize: "$labelExtraSmall",
|
|
1531
|
+
lineHeight: "$labelExtraSmall"
|
|
1400
1532
|
}
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
fontFamily: "$default",
|
|
1407
|
-
color: "$gray100",
|
|
1408
|
-
fontWeight: "$regular",
|
|
1409
|
-
variants: {
|
|
1410
|
-
size: {
|
|
1411
|
-
1: { fontSize: "$16", lineHeight: "$24" },
|
|
1412
|
-
2: { fontSize: "$14", lineHeight: "$24" },
|
|
1413
|
-
3: { fontSize: "$13", lineHeight: "$24" },
|
|
1414
|
-
4: { fontSize: "$12", lineHeight: "$16" }
|
|
1415
|
-
}
|
|
1533
|
+
};
|
|
1534
|
+
var typographyButtonValues = {
|
|
1535
|
+
buttonLarge: {
|
|
1536
|
+
fontSize: "$buttonLarge",
|
|
1537
|
+
lineHeight: "$buttonLarge"
|
|
1416
1538
|
},
|
|
1417
|
-
|
|
1418
|
-
|
|
1539
|
+
buttonMedium: {
|
|
1540
|
+
fontSize: "$buttonMedium",
|
|
1541
|
+
lineHeight: "$buttonMedium"
|
|
1542
|
+
},
|
|
1543
|
+
buttonSmall: {
|
|
1544
|
+
fontSize: "$buttonSmall",
|
|
1545
|
+
lineHeight: "$buttonSmall"
|
|
1546
|
+
},
|
|
1547
|
+
buttonExtraSmall: {
|
|
1548
|
+
fontSize: "$buttonExtraSmall",
|
|
1549
|
+
lineHeight: "$buttonExtraSmall"
|
|
1419
1550
|
}
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
fontFamily: "$default",
|
|
1426
|
-
color: "$gray100",
|
|
1427
|
-
letterSpacing: "0px",
|
|
1428
|
-
variants: {
|
|
1429
|
-
size: {
|
|
1430
|
-
1: { fontSize: "$18", lineHeight: "$22", fontWeight: "$semibold" },
|
|
1431
|
-
2: { fontSize: "$14", lineHeight: "$16", fontWeight: "$medium" },
|
|
1432
|
-
3: { fontSize: "$14", lineHeight: "$16", fontWeight: "$regular" },
|
|
1433
|
-
4: { fontSize: "$13", lineHeight: "$16", fontWeight: "$semibold", letterSpacing: "2px" },
|
|
1434
|
-
5: { fontSize: "$13", lineHeight: "$16", fontWeight: "$medium" },
|
|
1435
|
-
6: { fontSize: "$13", lineHeight: "$16", fontWeight: "$regular" },
|
|
1436
|
-
7: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" }
|
|
1437
|
-
}
|
|
1551
|
+
};
|
|
1552
|
+
var typographyLabelValues = {
|
|
1553
|
+
labelLarge: {
|
|
1554
|
+
fontSize: "$labelLarge",
|
|
1555
|
+
lineHeight: "$labelLarge"
|
|
1438
1556
|
},
|
|
1439
|
-
|
|
1440
|
-
|
|
1557
|
+
labelMedium: {
|
|
1558
|
+
fontSize: "$labelMedium",
|
|
1559
|
+
lineHeight: "$labelMedium"
|
|
1560
|
+
},
|
|
1561
|
+
labelSmall: {
|
|
1562
|
+
fontSize: "$labelSmall",
|
|
1563
|
+
lineHeight: "$labelSmall"
|
|
1564
|
+
},
|
|
1565
|
+
labelExtraSmall: {
|
|
1566
|
+
fontSize: "$labelExtraSmall",
|
|
1567
|
+
lineHeight: "$labelExtraSmall"
|
|
1441
1568
|
}
|
|
1442
|
-
}
|
|
1569
|
+
};
|
|
1443
1570
|
|
|
1444
|
-
// src/components/
|
|
1445
|
-
import {
|
|
1446
|
-
var
|
|
1571
|
+
// src/components/Text.tsx
|
|
1572
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1573
|
+
var TextStyle = styled(TextRadix, {
|
|
1447
1574
|
fontFamily: "$default",
|
|
1575
|
+
lineHeight: "$base",
|
|
1448
1576
|
color: "$gray100",
|
|
1449
|
-
letterSpacing: "0px",
|
|
1450
1577
|
variants: {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
"sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1458
|
-
"md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1459
|
-
"xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
|
|
1578
|
+
typography: typographyValues,
|
|
1579
|
+
fontWeight: {
|
|
1580
|
+
regular: { fontWeight: "$regular" },
|
|
1581
|
+
medium: { fontWeight: "$medium" },
|
|
1582
|
+
semibold: { fontWeight: "$semibold" },
|
|
1583
|
+
bold: { fontWeight: "$bold" }
|
|
1460
1584
|
}
|
|
1461
|
-
},
|
|
1462
|
-
defaultVariants: {
|
|
1463
|
-
size: "1"
|
|
1464
1585
|
}
|
|
1465
1586
|
});
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
fontFamily: "$default",
|
|
1471
|
-
color: "$gray100",
|
|
1472
|
-
letterSpacing: "0px",
|
|
1473
|
-
fontSize: "$14",
|
|
1474
|
-
lineHeight: "$16",
|
|
1475
|
-
fontWeight: "$regular"
|
|
1476
|
-
});
|
|
1477
|
-
|
|
1478
|
-
// src/components/TooltipText.tsx
|
|
1479
|
-
var TooltipText = styled("span", {
|
|
1480
|
-
fontFamily: "$default",
|
|
1481
|
-
color: "$gray100",
|
|
1482
|
-
letterSpacing: "0px",
|
|
1483
|
-
fontSize: "$13",
|
|
1484
|
-
lineHeight: "$16",
|
|
1485
|
-
fontWeight: "$regular"
|
|
1486
|
-
});
|
|
1587
|
+
function Text(_a) {
|
|
1588
|
+
var props = __objRest(_a, []);
|
|
1589
|
+
return /* @__PURE__ */ jsx2(TextStyle, __spreadValues({}, props));
|
|
1590
|
+
}
|
|
1487
1591
|
|
|
1488
1592
|
// src/components/Button.tsx
|
|
1489
1593
|
import { Button as ButtonRadix } from "@radix-ui/themes";
|
|
1490
|
-
import { jsx as
|
|
1594
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1491
1595
|
var ButtonStyled = styled(ButtonRadix, {
|
|
1492
1596
|
fontFamily: "$default",
|
|
1493
1597
|
letterSpacing: 0,
|
|
@@ -1500,19 +1604,10 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1500
1604
|
alignItems: "center",
|
|
1501
1605
|
justifyContent: "center",
|
|
1502
1606
|
gap: "$10",
|
|
1503
|
-
"&:hover": {
|
|
1504
|
-
transform: "scale(1.05)"
|
|
1505
|
-
},
|
|
1506
|
-
"&:active": {
|
|
1507
|
-
transform: "scale(0.95)"
|
|
1508
|
-
},
|
|
1509
1607
|
"&:disabled": {
|
|
1510
1608
|
cursor: "not-allowed",
|
|
1511
1609
|
transition: "none"
|
|
1512
1610
|
},
|
|
1513
|
-
"&:hover:disabled": {
|
|
1514
|
-
transform: "none"
|
|
1515
|
-
},
|
|
1516
1611
|
variants: {
|
|
1517
1612
|
color: {
|
|
1518
1613
|
brand: {},
|
|
@@ -1566,27 +1661,12 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1566
1661
|
}
|
|
1567
1662
|
}
|
|
1568
1663
|
},
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
}
|
|
1575
|
-
sm: {
|
|
1576
|
-
padding: "$8 $14",
|
|
1577
|
-
fontSize: "$13",
|
|
1578
|
-
lineHeight: "$smaller"
|
|
1579
|
-
},
|
|
1580
|
-
md: {
|
|
1581
|
-
padding: "$12 $16",
|
|
1582
|
-
fontSize: "$14",
|
|
1583
|
-
lineHeight: "$smaller"
|
|
1584
|
-
},
|
|
1585
|
-
lg: {
|
|
1586
|
-
padding: "$13 $20",
|
|
1587
|
-
fontSize: "$18",
|
|
1588
|
-
lineHeight: "$smaller"
|
|
1589
|
-
}
|
|
1664
|
+
typography: typographyButtonValues,
|
|
1665
|
+
fontWeight: {
|
|
1666
|
+
regular: { fontWeight: "$regular" },
|
|
1667
|
+
medium: { fontWeight: "$medium" },
|
|
1668
|
+
semibold: { fontWeight: "$semibold" },
|
|
1669
|
+
bold: { fontWeight: "$bold" }
|
|
1590
1670
|
},
|
|
1591
1671
|
radii: {
|
|
1592
1672
|
"full": {
|
|
@@ -1596,7 +1676,7 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1596
1676
|
},
|
|
1597
1677
|
defaultVariants: {
|
|
1598
1678
|
variant: "contained",
|
|
1599
|
-
|
|
1679
|
+
typography: "buttonMedium",
|
|
1600
1680
|
color: "brand"
|
|
1601
1681
|
},
|
|
1602
1682
|
compoundVariants: [
|
|
@@ -1673,6 +1753,9 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1673
1753
|
css: {
|
|
1674
1754
|
color: "$grey50",
|
|
1675
1755
|
backgroundColor: "$brand500",
|
|
1756
|
+
borderWidth: "$2",
|
|
1757
|
+
borderStyle: "solid",
|
|
1758
|
+
borderColor: "transparent",
|
|
1676
1759
|
"&:hover": {
|
|
1677
1760
|
borderColor: "$brand700",
|
|
1678
1761
|
backgroundColor: "$blue600"
|
|
@@ -1820,12 +1903,12 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1820
1903
|
function Button(_a) {
|
|
1821
1904
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
1822
1905
|
const Component = asChild ? ButtonRadix : "button";
|
|
1823
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx3(ButtonStyled, __spreadValues({ as: Component }, props));
|
|
1824
1907
|
}
|
|
1825
1908
|
|
|
1826
1909
|
// src/components/ButtonGroup.tsx
|
|
1827
1910
|
import { Button as Button2, Flex } from "@radix-ui/themes";
|
|
1828
|
-
import { jsx as
|
|
1911
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1829
1912
|
var ButtonItemStyled = styled(Button2, {
|
|
1830
1913
|
fontFamily: "$default",
|
|
1831
1914
|
letterSpacing: 0,
|
|
@@ -1880,79 +1963,85 @@ var ButtonGroupStyled = styled(Flex, {
|
|
|
1880
1963
|
}
|
|
1881
1964
|
}
|
|
1882
1965
|
},
|
|
1883
|
-
|
|
1884
|
-
|
|
1966
|
+
typography: {
|
|
1967
|
+
buttonLarge: {
|
|
1885
1968
|
[`& ${ButtonItemStyled}`]: {
|
|
1886
|
-
padding: "$
|
|
1887
|
-
fontSize: "$
|
|
1888
|
-
lineHeight: "$
|
|
1969
|
+
padding: "$13 $20",
|
|
1970
|
+
fontSize: "$buttonLarge",
|
|
1971
|
+
lineHeight: "$buttonLarge",
|
|
1889
1972
|
"&:not(:first-child)": {
|
|
1890
1973
|
borderLeft: "none"
|
|
1891
1974
|
},
|
|
1892
1975
|
"&:first-child": {
|
|
1893
|
-
borderTopLeftRadius: "$
|
|
1894
|
-
borderBottomLeftRadius: "$
|
|
1976
|
+
borderTopLeftRadius: "$lg",
|
|
1977
|
+
borderBottomLeftRadius: "$lg"
|
|
1895
1978
|
},
|
|
1896
1979
|
"&:last-child": {
|
|
1897
|
-
borderTopRightRadius: "$
|
|
1898
|
-
borderBottomRightRadius: "$
|
|
1980
|
+
borderTopRightRadius: "$lg",
|
|
1981
|
+
borderBottomRightRadius: "$lg"
|
|
1899
1982
|
}
|
|
1900
1983
|
}
|
|
1901
1984
|
},
|
|
1902
|
-
|
|
1985
|
+
buttonMedium: {
|
|
1903
1986
|
[`& ${ButtonItemStyled}`]: {
|
|
1904
|
-
padding: "$
|
|
1905
|
-
fontSize: "$
|
|
1906
|
-
lineHeight: "$
|
|
1987
|
+
padding: "$12 $16",
|
|
1988
|
+
fontSize: "$buttonMedium",
|
|
1989
|
+
lineHeight: "$buttonMedium",
|
|
1907
1990
|
"&:not(:first-child)": {
|
|
1908
1991
|
borderLeft: "none"
|
|
1909
1992
|
},
|
|
1910
1993
|
"&:first-child": {
|
|
1911
|
-
borderTopLeftRadius: "$
|
|
1912
|
-
borderBottomLeftRadius: "$
|
|
1994
|
+
borderTopLeftRadius: "$md",
|
|
1995
|
+
borderBottomLeftRadius: "$md"
|
|
1913
1996
|
},
|
|
1914
1997
|
"&:last-child": {
|
|
1915
|
-
borderTopRightRadius: "$
|
|
1916
|
-
borderBottomRightRadius: "$
|
|
1998
|
+
borderTopRightRadius: "$md",
|
|
1999
|
+
borderBottomRightRadius: "$md"
|
|
1917
2000
|
}
|
|
1918
2001
|
}
|
|
1919
2002
|
},
|
|
1920
|
-
|
|
2003
|
+
buttonSmall: {
|
|
1921
2004
|
[`& ${ButtonItemStyled}`]: {
|
|
1922
|
-
padding: "$
|
|
1923
|
-
fontSize: "$
|
|
1924
|
-
lineHeight: "$
|
|
2005
|
+
padding: "$8 $14",
|
|
2006
|
+
fontSize: "$buttonSmall",
|
|
2007
|
+
lineHeight: "$buttonSmall",
|
|
1925
2008
|
"&:not(:first-child)": {
|
|
1926
2009
|
borderLeft: "none"
|
|
1927
2010
|
},
|
|
1928
2011
|
"&:first-child": {
|
|
1929
|
-
borderTopLeftRadius: "$
|
|
1930
|
-
borderBottomLeftRadius: "$
|
|
2012
|
+
borderTopLeftRadius: "$sm",
|
|
2013
|
+
borderBottomLeftRadius: "$sm"
|
|
1931
2014
|
},
|
|
1932
2015
|
"&:last-child": {
|
|
1933
|
-
borderTopRightRadius: "$
|
|
1934
|
-
borderBottomRightRadius: "$
|
|
2016
|
+
borderTopRightRadius: "$sm",
|
|
2017
|
+
borderBottomRightRadius: "$sm"
|
|
1935
2018
|
}
|
|
1936
2019
|
}
|
|
1937
2020
|
},
|
|
1938
|
-
|
|
2021
|
+
buttonExtraSmall: {
|
|
1939
2022
|
[`& ${ButtonItemStyled}`]: {
|
|
1940
|
-
padding: "$
|
|
1941
|
-
fontSize: "$
|
|
1942
|
-
lineHeight: "$
|
|
2023
|
+
padding: "$6 $12",
|
|
2024
|
+
fontSize: "$buttonExtraSmall",
|
|
2025
|
+
lineHeight: "$buttonExtraSmall",
|
|
1943
2026
|
"&:not(:first-child)": {
|
|
1944
2027
|
borderLeft: "none"
|
|
1945
2028
|
},
|
|
1946
2029
|
"&:first-child": {
|
|
1947
|
-
borderTopLeftRadius: "$
|
|
1948
|
-
borderBottomLeftRadius: "$
|
|
2030
|
+
borderTopLeftRadius: "$xs",
|
|
2031
|
+
borderBottomLeftRadius: "$xs"
|
|
1949
2032
|
},
|
|
1950
2033
|
"&:last-child": {
|
|
1951
|
-
borderTopRightRadius: "$
|
|
1952
|
-
borderBottomRightRadius: "$
|
|
2034
|
+
borderTopRightRadius: "$xs",
|
|
2035
|
+
borderBottomRightRadius: "$xs"
|
|
1953
2036
|
}
|
|
1954
2037
|
}
|
|
1955
2038
|
}
|
|
2039
|
+
},
|
|
2040
|
+
fontWeight: {
|
|
2041
|
+
regular: { [`& ${ButtonItemStyled}`]: { fontWeight: "$regular" } },
|
|
2042
|
+
medium: { [`& ${ButtonItemStyled}`]: { fontWeight: "$medium" } },
|
|
2043
|
+
semibold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$semibold" } },
|
|
2044
|
+
bold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$bold" } }
|
|
1956
2045
|
}
|
|
1957
2046
|
},
|
|
1958
2047
|
compoundVariants: [
|
|
@@ -2278,22 +2367,23 @@ var ButtonGroupStyled = styled(Flex, {
|
|
|
2278
2367
|
],
|
|
2279
2368
|
defaultVariants: {
|
|
2280
2369
|
variant: "contained",
|
|
2281
|
-
|
|
2370
|
+
typography: "buttonMedium",
|
|
2371
|
+
fontWeight: "medium",
|
|
2282
2372
|
color: "brand"
|
|
2283
2373
|
}
|
|
2284
2374
|
});
|
|
2285
2375
|
function ButtonItem(_a) {
|
|
2286
2376
|
var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
|
|
2287
|
-
return /* @__PURE__ */
|
|
2377
|
+
return /* @__PURE__ */ jsx4(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
|
|
2288
2378
|
}
|
|
2289
2379
|
function ButtonGroup(_a) {
|
|
2290
2380
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2291
|
-
return /* @__PURE__ */
|
|
2381
|
+
return /* @__PURE__ */ jsx4(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2292
2382
|
}
|
|
2293
2383
|
|
|
2294
2384
|
// src/components/Avatar.tsx
|
|
2295
2385
|
import { Avatar as AvatarRadix } from "@radix-ui/themes";
|
|
2296
|
-
import { jsx as
|
|
2386
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2297
2387
|
var AvatarStyled = styled(AvatarRadix, {
|
|
2298
2388
|
fontFamily: "$default",
|
|
2299
2389
|
color: "$gray100",
|
|
@@ -2338,61 +2428,15 @@ var AvatarStyled = styled(AvatarRadix, {
|
|
|
2338
2428
|
});
|
|
2339
2429
|
function Avatar(_a) {
|
|
2340
2430
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
2341
|
-
return /* @__PURE__ */
|
|
2431
|
+
return /* @__PURE__ */ jsx5(AvatarStyled, __spreadValues({ as: AvatarRadix }, props));
|
|
2342
2432
|
}
|
|
2343
2433
|
|
|
2344
|
-
// src/components/Flex.tsx
|
|
2345
|
-
import { Flex as FlexRadix } from "@radix-ui/themes";
|
|
2346
|
-
var Flex2 = styled(FlexRadix, {
|
|
2347
|
-
display: "flex",
|
|
2348
|
-
variants: {
|
|
2349
|
-
direction: {
|
|
2350
|
-
row: { flexDirection: "row" },
|
|
2351
|
-
column: { flexDirection: "column" },
|
|
2352
|
-
"row-reverse": { flexDirection: "row-reverse" },
|
|
2353
|
-
"column-reverse": { flexDirection: "column-reverse" }
|
|
2354
|
-
},
|
|
2355
|
-
gap: {
|
|
2356
|
-
2: { gap: "$2" },
|
|
2357
|
-
4: { gap: "$4" },
|
|
2358
|
-
6: { gap: "$6" },
|
|
2359
|
-
8: { gap: "$8" },
|
|
2360
|
-
10: { gap: "$10" },
|
|
2361
|
-
12: { gap: "$12" },
|
|
2362
|
-
14: { gap: "$14" },
|
|
2363
|
-
16: { gap: "$16" },
|
|
2364
|
-
20: { gap: "$20" },
|
|
2365
|
-
22: { gap: "$22" },
|
|
2366
|
-
24: { gap: "$24" },
|
|
2367
|
-
32: { gap: "$32" },
|
|
2368
|
-
36: { gap: "$36" },
|
|
2369
|
-
40: { gap: "$40" },
|
|
2370
|
-
48: { gap: "$48" },
|
|
2371
|
-
56: { gap: "$56" },
|
|
2372
|
-
64: { gap: "$64" },
|
|
2373
|
-
72: { gap: "$72" },
|
|
2374
|
-
80: { gap: "$80" },
|
|
2375
|
-
full: { gap: "$full" }
|
|
2376
|
-
}
|
|
2377
|
-
},
|
|
2378
|
-
defaultVariants: {
|
|
2379
|
-
direction: "row",
|
|
2380
|
-
gap: 10
|
|
2381
|
-
}
|
|
2382
|
-
});
|
|
2383
|
-
|
|
2384
|
-
// src/components/Box.tsx
|
|
2385
|
-
import { Box as BoxRadix } from "@radix-ui/themes";
|
|
2386
|
-
var Box = BoxRadix;
|
|
2387
|
-
|
|
2388
2434
|
// src/components/TextField.tsx
|
|
2389
2435
|
import { TextField as TextFieldRadix } from "@radix-ui/themes";
|
|
2390
|
-
import {
|
|
2436
|
+
import { jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
2391
2437
|
var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
2392
2438
|
height: "$40",
|
|
2393
2439
|
fontFamily: "$default",
|
|
2394
|
-
letterSpacing: "0px",
|
|
2395
|
-
fontSize: "$13",
|
|
2396
2440
|
padding: "$12 $14",
|
|
2397
2441
|
borderRadius: "$sm",
|
|
2398
2442
|
boxSizing: "border-box",
|
|
@@ -2406,7 +2450,8 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2406
2450
|
outline: "none",
|
|
2407
2451
|
padding: 0,
|
|
2408
2452
|
margin: 0,
|
|
2409
|
-
width: "100%"
|
|
2453
|
+
width: "100%",
|
|
2454
|
+
font: "inherit"
|
|
2410
2455
|
},
|
|
2411
2456
|
"&:has(input:focus)": {
|
|
2412
2457
|
border: "2px solid $brand300"
|
|
@@ -2438,7 +2483,7 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2438
2483
|
"input::placeholder": {
|
|
2439
2484
|
color: "$error400"
|
|
2440
2485
|
},
|
|
2441
|
-
"
|
|
2486
|
+
"&:has(input:focus)": {
|
|
2442
2487
|
border: "2px solid $error400"
|
|
2443
2488
|
},
|
|
2444
2489
|
"&:has(input:disabled)": {
|
|
@@ -2449,6 +2494,13 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2449
2494
|
}
|
|
2450
2495
|
}
|
|
2451
2496
|
},
|
|
2497
|
+
typography: typographyValues,
|
|
2498
|
+
fontWeight: {
|
|
2499
|
+
regular: { fontWeight: "$regular" },
|
|
2500
|
+
medium: { fontWeight: "$medium" },
|
|
2501
|
+
semibold: { fontWeight: "$semibold" },
|
|
2502
|
+
bold: { fontWeight: "$bold" }
|
|
2503
|
+
},
|
|
2452
2504
|
isValid: {
|
|
2453
2505
|
true: {},
|
|
2454
2506
|
false: {}
|
|
@@ -2500,59 +2552,113 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2500
2552
|
var TextFieldSlotStyled = styled(TextFieldRadix.Slot, {
|
|
2501
2553
|
display: "flex",
|
|
2502
2554
|
alignItems: "center",
|
|
2503
|
-
justifyContent: "center"
|
|
2555
|
+
justifyContent: "center",
|
|
2556
|
+
variants: {
|
|
2557
|
+
typography: typographyValues,
|
|
2558
|
+
fontWeight: {
|
|
2559
|
+
regular: { fontWeight: "$regular" },
|
|
2560
|
+
medium: { fontWeight: "$medium" },
|
|
2561
|
+
semibold: { fontWeight: "$semibold" },
|
|
2562
|
+
bold: { fontWeight: "$bold" }
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2504
2565
|
});
|
|
2505
2566
|
function TextField(_a) {
|
|
2506
2567
|
var _b = _a, {
|
|
2507
2568
|
children,
|
|
2508
2569
|
isValid,
|
|
2509
2570
|
name,
|
|
2510
|
-
color
|
|
2571
|
+
color,
|
|
2572
|
+
typography,
|
|
2573
|
+
fontWeight
|
|
2511
2574
|
} = _b, props = __objRest(_b, [
|
|
2512
2575
|
"children",
|
|
2513
2576
|
"isValid",
|
|
2514
2577
|
"name",
|
|
2515
|
-
"color"
|
|
2578
|
+
"color",
|
|
2579
|
+
"typography",
|
|
2580
|
+
"fontWeight"
|
|
2516
2581
|
]);
|
|
2517
|
-
return /* @__PURE__ */ jsxs(
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2582
|
+
return /* @__PURE__ */ jsxs(
|
|
2583
|
+
TextFieldStyled,
|
|
2584
|
+
__spreadProps(__spreadValues({
|
|
2585
|
+
color,
|
|
2586
|
+
isValid,
|
|
2587
|
+
name,
|
|
2588
|
+
typography,
|
|
2589
|
+
fontWeight
|
|
2590
|
+
}, props), {
|
|
2591
|
+
children: [
|
|
2592
|
+
children,
|
|
2593
|
+
isValid && /* @__PURE__ */ jsx6(
|
|
2594
|
+
TextFieldSlot,
|
|
2595
|
+
{
|
|
2596
|
+
position: "flex-end",
|
|
2597
|
+
name,
|
|
2598
|
+
color,
|
|
2599
|
+
typography,
|
|
2600
|
+
fontWeight,
|
|
2601
|
+
children: /* @__PURE__ */ jsx6(Icon_default, { name: "check" })
|
|
2602
|
+
}
|
|
2603
|
+
)
|
|
2604
|
+
]
|
|
2605
|
+
})
|
|
2606
|
+
);
|
|
2521
2607
|
}
|
|
2522
2608
|
function TextFieldSlot(_a) {
|
|
2523
2609
|
var _b = _a, {
|
|
2524
2610
|
children,
|
|
2525
2611
|
position = "flex-start",
|
|
2526
|
-
onClick
|
|
2612
|
+
onClick,
|
|
2613
|
+
typography = "bodyXS",
|
|
2614
|
+
fontWeight = "regular"
|
|
2527
2615
|
} = _b, props = __objRest(_b, [
|
|
2528
2616
|
"children",
|
|
2529
2617
|
"position",
|
|
2530
|
-
"onClick"
|
|
2618
|
+
"onClick",
|
|
2619
|
+
"typography",
|
|
2620
|
+
"fontWeight"
|
|
2531
2621
|
]);
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2622
|
+
const sharedStyles = __spreadProps(__spreadValues({
|
|
2623
|
+
typography,
|
|
2624
|
+
fontWeight
|
|
2625
|
+
}, props), {
|
|
2626
|
+
color: void 0
|
|
2627
|
+
});
|
|
2628
|
+
return !!onClick ? /* @__PURE__ */ jsx6(
|
|
2629
|
+
TextFieldSlotStyled,
|
|
2630
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2631
|
+
style: {
|
|
2632
|
+
position: "absolute",
|
|
2633
|
+
left: position === "flex-end" ? "none" : 15,
|
|
2634
|
+
right: position === "flex-start" ? "none" : 15,
|
|
2635
|
+
padding: 13,
|
|
2636
|
+
zIndex: 2,
|
|
2637
|
+
top: 0,
|
|
2638
|
+
cursor: "pointer"
|
|
2639
|
+
},
|
|
2640
|
+
onClick: () => onClick(),
|
|
2641
|
+
children
|
|
2642
|
+
})
|
|
2643
|
+
) : /* @__PURE__ */ jsx6(
|
|
2644
|
+
TextFieldSlotStyled,
|
|
2645
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2646
|
+
style: {
|
|
2647
|
+
float: position === "flex-start" ? "left" : "right",
|
|
2648
|
+
order: position === "flex-start" ? 0 : 2,
|
|
2649
|
+
marginLeft: position === "flex-start" ? 0 : 15,
|
|
2650
|
+
marginRight: position === "flex-end" ? 0 : 15
|
|
2651
|
+
},
|
|
2652
|
+
children
|
|
2653
|
+
})
|
|
2654
|
+
);
|
|
2547
2655
|
}
|
|
2548
2656
|
|
|
2549
2657
|
// src/components/RadioGroup.tsx
|
|
2550
2658
|
import { RadioGroup as RadioGroupRadix } from "@radix-ui/themes";
|
|
2551
|
-
import { jsx as
|
|
2659
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2552
2660
|
var RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
2553
2661
|
fontFamily: "$default",
|
|
2554
|
-
letterSpacing: "0px",
|
|
2555
|
-
fontSize: "$13",
|
|
2556
2662
|
"label": {
|
|
2557
2663
|
display: "flex",
|
|
2558
2664
|
alignItems: "center",
|
|
@@ -2640,6 +2746,13 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
|
2640
2746
|
}
|
|
2641
2747
|
},
|
|
2642
2748
|
false: {}
|
|
2749
|
+
},
|
|
2750
|
+
typography: typographyLabelValues,
|
|
2751
|
+
fontWeight: {
|
|
2752
|
+
regular: { fontWeight: "$regular" },
|
|
2753
|
+
medium: { fontWeight: "$medium" },
|
|
2754
|
+
semibold: { fontWeight: "$semibold" },
|
|
2755
|
+
bold: { fontWeight: "$bold" }
|
|
2643
2756
|
}
|
|
2644
2757
|
},
|
|
2645
2758
|
compoundVariants: [
|
|
@@ -2713,7 +2826,7 @@ function RadioGroup(_a) {
|
|
|
2713
2826
|
"children",
|
|
2714
2827
|
"disabled"
|
|
2715
2828
|
]);
|
|
2716
|
-
return /* @__PURE__ */
|
|
2829
|
+
return /* @__PURE__ */ jsx7(
|
|
2717
2830
|
RadioGroupStyled,
|
|
2718
2831
|
__spreadProps(__spreadValues({
|
|
2719
2832
|
disabled
|
|
@@ -2728,16 +2841,14 @@ function RadioItem(_a) {
|
|
|
2728
2841
|
} = _b, props = __objRest(_b, [
|
|
2729
2842
|
"children"
|
|
2730
2843
|
]);
|
|
2731
|
-
return /* @__PURE__ */
|
|
2844
|
+
return /* @__PURE__ */ jsx7(RadioGroupRadix.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2732
2845
|
}
|
|
2733
2846
|
|
|
2734
2847
|
// src/components/CheckboxGroup.tsx
|
|
2735
2848
|
import { CheckboxGroup as CheckboxGroupRadix } from "@radix-ui/themes";
|
|
2736
|
-
import { jsx as
|
|
2849
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2737
2850
|
var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
2738
2851
|
fontFamily: "$default",
|
|
2739
|
-
letterSpacing: "0px",
|
|
2740
|
-
fontSize: "$13",
|
|
2741
2852
|
"svg": {
|
|
2742
2853
|
display: "none"
|
|
2743
2854
|
},
|
|
@@ -2827,6 +2938,13 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
|
2827
2938
|
}
|
|
2828
2939
|
},
|
|
2829
2940
|
false: {}
|
|
2941
|
+
},
|
|
2942
|
+
typography: typographyLabelValues,
|
|
2943
|
+
fontWeight: {
|
|
2944
|
+
regular: { fontWeight: "$regular" },
|
|
2945
|
+
medium: { fontWeight: "$medium" },
|
|
2946
|
+
semibold: { fontWeight: "$semibold" },
|
|
2947
|
+
bold: { fontWeight: "$bold" }
|
|
2830
2948
|
}
|
|
2831
2949
|
},
|
|
2832
2950
|
compoundVariants: [
|
|
@@ -2898,7 +3016,7 @@ function CheckboxGroup(_a) {
|
|
|
2898
3016
|
} = _b, props = __objRest(_b, [
|
|
2899
3017
|
"children"
|
|
2900
3018
|
]);
|
|
2901
|
-
return /* @__PURE__ */
|
|
3019
|
+
return /* @__PURE__ */ jsx8(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2902
3020
|
}
|
|
2903
3021
|
function CheckboxItem(_a) {
|
|
2904
3022
|
var _b = _a, {
|
|
@@ -2906,12 +3024,40 @@ function CheckboxItem(_a) {
|
|
|
2906
3024
|
} = _b, props = __objRest(_b, [
|
|
2907
3025
|
"children"
|
|
2908
3026
|
]);
|
|
2909
|
-
return /* @__PURE__ */
|
|
3027
|
+
return /* @__PURE__ */ jsx8(CheckboxGroupRadix.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2910
3028
|
}
|
|
2911
3029
|
|
|
2912
3030
|
// src/components/Filter.tsx
|
|
2913
3031
|
import { Theme, DropdownMenu } from "@radix-ui/themes";
|
|
2914
|
-
import { jsx as
|
|
3032
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3033
|
+
var FilterContentStyled = styled(DropdownMenu.Content, {
|
|
3034
|
+
background: "white",
|
|
3035
|
+
padding: "$8 $12",
|
|
3036
|
+
border: "1px solid $dark300",
|
|
3037
|
+
borderRadius: "$xs",
|
|
3038
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3039
|
+
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
3040
|
+
minWidth: "100%",
|
|
3041
|
+
marginTop: "3px",
|
|
3042
|
+
fontFamily: "$default",
|
|
3043
|
+
variants: {
|
|
3044
|
+
typography: typographyLabelValues,
|
|
3045
|
+
fontWeight: {
|
|
3046
|
+
regular: {
|
|
3047
|
+
fontWeight: "$regular"
|
|
3048
|
+
},
|
|
3049
|
+
medium: {
|
|
3050
|
+
fontWeight: "$medium"
|
|
3051
|
+
},
|
|
3052
|
+
semibold: {
|
|
3053
|
+
fontWeight: "$semibold"
|
|
3054
|
+
},
|
|
3055
|
+
bold: {
|
|
3056
|
+
fontWeight: "$bold"
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
});
|
|
2915
3061
|
var FilterStyled = styled("div", {
|
|
2916
3062
|
fontFamily: "$default",
|
|
2917
3063
|
color: "$dark600",
|
|
@@ -2937,39 +3083,77 @@ var FilterStyled = styled("div", {
|
|
|
2937
3083
|
"svg:last-child": {
|
|
2938
3084
|
marginLeft: "auto"
|
|
2939
3085
|
}
|
|
3086
|
+
},
|
|
3087
|
+
variants: {
|
|
3088
|
+
typography: {
|
|
3089
|
+
labelLarge: {
|
|
3090
|
+
"span": {
|
|
3091
|
+
fontSize: "$labelLarge",
|
|
3092
|
+
lineHeight: "$labelLarge"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
labelMedium: {
|
|
3096
|
+
"span": {
|
|
3097
|
+
fontSize: "$labelMedium",
|
|
3098
|
+
lineHeight: "$labelMedium"
|
|
3099
|
+
}
|
|
3100
|
+
},
|
|
3101
|
+
labelSmall: {
|
|
3102
|
+
"span": {
|
|
3103
|
+
fontSize: "$labelSmall",
|
|
3104
|
+
lineHeight: "$labelSmall"
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
labelExtraSmall: {
|
|
3108
|
+
"span": {
|
|
3109
|
+
fontSize: "$labelExtraSmall",
|
|
3110
|
+
lineHeight: "$labelExtraSmall"
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
fontWeight: {
|
|
3115
|
+
regular: {
|
|
3116
|
+
"span": { fontWeight: "$regular" }
|
|
3117
|
+
},
|
|
3118
|
+
medium: {
|
|
3119
|
+
"span": { fontWeight: "$medium" }
|
|
3120
|
+
},
|
|
3121
|
+
semibold: {
|
|
3122
|
+
"span": { fontWeight: "$semibold" }
|
|
3123
|
+
},
|
|
3124
|
+
bold: {
|
|
3125
|
+
"span": { fontWeight: "$bold" }
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
2940
3128
|
}
|
|
2941
3129
|
});
|
|
2942
|
-
var FilterContentStyled = styled(DropdownMenu.Content, {
|
|
2943
|
-
background: "white",
|
|
2944
|
-
padding: "$8 $12",
|
|
2945
|
-
border: "1px solid $dark300",
|
|
2946
|
-
borderRadius: "$xs",
|
|
2947
|
-
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
2948
|
-
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
2949
|
-
minWidth: "100%",
|
|
2950
|
-
marginTop: "3px"
|
|
2951
|
-
});
|
|
2952
3130
|
function Filter(_a) {
|
|
2953
3131
|
var _b = _a, {
|
|
2954
3132
|
children,
|
|
2955
|
-
placeholder
|
|
3133
|
+
placeholder,
|
|
3134
|
+
typography,
|
|
3135
|
+
fontWeight
|
|
2956
3136
|
} = _b, props = __objRest(_b, [
|
|
2957
3137
|
"children",
|
|
2958
|
-
"placeholder"
|
|
3138
|
+
"placeholder",
|
|
3139
|
+
"typography",
|
|
3140
|
+
"fontWeight"
|
|
2959
3141
|
]);
|
|
2960
|
-
return /* @__PURE__ */
|
|
2961
|
-
/* @__PURE__ */
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ jsx9(Theme, { children: /* @__PURE__ */ jsx9(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs2(FilterStyled, { typography, fontWeight, children: [
|
|
3143
|
+
/* @__PURE__ */ jsx9(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsxs2("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
3144
|
+
/* @__PURE__ */ jsx9(Icon, { name: "filter" }),
|
|
3145
|
+
/* @__PURE__ */ jsx9("span", { children: placeholder || "Fitrar" }),
|
|
3146
|
+
/* @__PURE__ */ jsx9(DropdownMenu.TriggerIcon, {})
|
|
2965
3147
|
] }) }),
|
|
2966
|
-
/* @__PURE__ */
|
|
3148
|
+
/* @__PURE__ */ jsx9(
|
|
2967
3149
|
FilterContentStyled,
|
|
2968
3150
|
{
|
|
2969
3151
|
avoidCollisions: false,
|
|
2970
3152
|
align: "start",
|
|
2971
3153
|
alignOffset: -14,
|
|
2972
|
-
|
|
3154
|
+
typography,
|
|
3155
|
+
fontWeight,
|
|
3156
|
+
children: /* @__PURE__ */ jsx9(CheckboxGroup, { children })
|
|
2973
3157
|
}
|
|
2974
3158
|
)
|
|
2975
3159
|
] }) })) });
|
|
@@ -2980,12 +3164,33 @@ function FilterItem(_a) {
|
|
|
2980
3164
|
} = _b, props = __objRest(_b, [
|
|
2981
3165
|
"children"
|
|
2982
3166
|
]);
|
|
2983
|
-
return /* @__PURE__ */
|
|
3167
|
+
return /* @__PURE__ */ jsx9(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
|
|
2984
3168
|
}
|
|
2985
3169
|
|
|
2986
3170
|
// src/components/Dropdown.tsx
|
|
2987
3171
|
import { Theme as Theme2, DropdownMenu as DropdownMenuRadix } from "@radix-ui/themes";
|
|
2988
|
-
import { jsx as
|
|
3172
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
3173
|
+
var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
|
|
3174
|
+
fontFamily: "$default",
|
|
3175
|
+
color: "$dark600",
|
|
3176
|
+
letterSpacing: "0px",
|
|
3177
|
+
padding: "$8 $12",
|
|
3178
|
+
"&:hover, &:focus": {
|
|
3179
|
+
backgroundColor: "transparent",
|
|
3180
|
+
border: "none",
|
|
3181
|
+
outline: "none",
|
|
3182
|
+
cursor: "pointer"
|
|
3183
|
+
},
|
|
3184
|
+
variants: {
|
|
3185
|
+
typography: typographyLabelValues,
|
|
3186
|
+
fontWeight: {
|
|
3187
|
+
regular: { fontWeight: "$regular" },
|
|
3188
|
+
medium: { fontWeight: "$medium" },
|
|
3189
|
+
semibold: { fontWeight: "$semibold" },
|
|
3190
|
+
bold: { fontWeight: "$bold" }
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
2989
3194
|
var DropdownMenuStyled = styled("div", {
|
|
2990
3195
|
fontFamily: "$default",
|
|
2991
3196
|
color: "$dark600",
|
|
@@ -3011,6 +3216,40 @@ var DropdownMenuStyled = styled("div", {
|
|
|
3011
3216
|
"svg": {
|
|
3012
3217
|
marginLeft: "auto"
|
|
3013
3218
|
}
|
|
3219
|
+
},
|
|
3220
|
+
variants: {
|
|
3221
|
+
typography: {
|
|
3222
|
+
labelLarge: {
|
|
3223
|
+
"button": {
|
|
3224
|
+
fontSize: "$labelLarge",
|
|
3225
|
+
lineHeight: "$labelLarge"
|
|
3226
|
+
}
|
|
3227
|
+
},
|
|
3228
|
+
labelMedium: {
|
|
3229
|
+
"button": {
|
|
3230
|
+
fontSize: "$labelMedium",
|
|
3231
|
+
lineHeight: "$labelMedium"
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
labelSmall: {
|
|
3235
|
+
"button": {
|
|
3236
|
+
fontSize: "$labelSmall",
|
|
3237
|
+
lineHeight: "$labelSmall"
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
labelExtraSmall: {
|
|
3241
|
+
"button": {
|
|
3242
|
+
fontSize: "$labelExtraSmall",
|
|
3243
|
+
lineHeight: "$labelExtraSmall"
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
},
|
|
3247
|
+
fontWeight: {
|
|
3248
|
+
regular: { "button": { fontWeight: "$regular" } },
|
|
3249
|
+
medium: { "button": { fontWeight: "$medium" } },
|
|
3250
|
+
semibold: { "button": { fontWeight: "$semibold" } },
|
|
3251
|
+
bold: { "button": { fontWeight: "$bold" } }
|
|
3252
|
+
}
|
|
3014
3253
|
}
|
|
3015
3254
|
});
|
|
3016
3255
|
var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
|
|
@@ -3023,55 +3262,59 @@ var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
|
|
|
3023
3262
|
minWidth: "100%",
|
|
3024
3263
|
marginTop: "3px"
|
|
3025
3264
|
});
|
|
3026
|
-
var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
|
|
3027
|
-
fontFamily: "$default",
|
|
3028
|
-
color: "$dark600",
|
|
3029
|
-
letterSpacing: "0px",
|
|
3030
|
-
padding: "$8 $12",
|
|
3031
|
-
"&:hover, &:focus": {
|
|
3032
|
-
backgroundColor: "transparent",
|
|
3033
|
-
border: "none",
|
|
3034
|
-
outline: "none",
|
|
3035
|
-
cursor: "pointer"
|
|
3036
|
-
}
|
|
3037
|
-
});
|
|
3038
3265
|
function DropdownMenu2(_a) {
|
|
3039
3266
|
var _b = _a, {
|
|
3040
3267
|
children,
|
|
3041
|
-
placeholder
|
|
3268
|
+
placeholder,
|
|
3269
|
+
typography,
|
|
3270
|
+
fontWeight
|
|
3042
3271
|
} = _b, props = __objRest(_b, [
|
|
3043
3272
|
"children",
|
|
3044
|
-
"placeholder"
|
|
3273
|
+
"placeholder",
|
|
3274
|
+
"typography",
|
|
3275
|
+
"fontWeight"
|
|
3045
3276
|
]);
|
|
3046
|
-
return /* @__PURE__ */
|
|
3047
|
-
/* @__PURE__ */
|
|
3048
|
-
/* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */
|
|
3277
|
+
return /* @__PURE__ */ jsx10(Theme2, { children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs3(DropdownMenuStyled, { typography, fontWeight, children: [
|
|
3278
|
+
/* @__PURE__ */ jsx10(DropdownMenuRadix.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "Filtrar", children: [
|
|
3279
|
+
/* @__PURE__ */ jsx10("span", { children: placeholder || "Filtrar" }),
|
|
3280
|
+
/* @__PURE__ */ jsx10(DropdownMenuRadix.TriggerIcon, {})
|
|
3050
3281
|
] }) }),
|
|
3051
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx10(
|
|
3052
3283
|
DropdownMenuContentStyled,
|
|
3053
3284
|
{
|
|
3054
3285
|
avoidCollisions: false,
|
|
3055
3286
|
align: "start",
|
|
3056
3287
|
alignOffset: -14,
|
|
3057
|
-
children: /* @__PURE__ */
|
|
3288
|
+
children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Group, { children })
|
|
3058
3289
|
}
|
|
3059
3290
|
)
|
|
3060
3291
|
] }) })) });
|
|
3061
3292
|
}
|
|
3062
3293
|
function DropdownMenuItem(_a) {
|
|
3063
3294
|
var _b = _a, {
|
|
3064
|
-
children
|
|
3295
|
+
children,
|
|
3296
|
+
typography,
|
|
3297
|
+
fontWeight
|
|
3065
3298
|
} = _b, props = __objRest(_b, [
|
|
3066
|
-
"children"
|
|
3299
|
+
"children",
|
|
3300
|
+
"typography",
|
|
3301
|
+
"fontWeight"
|
|
3067
3302
|
]);
|
|
3068
|
-
return /* @__PURE__ */
|
|
3303
|
+
return /* @__PURE__ */ jsx10(
|
|
3304
|
+
DropdownMenuItemStyled,
|
|
3305
|
+
__spreadProps(__spreadValues({
|
|
3306
|
+
typography,
|
|
3307
|
+
fontWeight
|
|
3308
|
+
}, props), {
|
|
3309
|
+
children
|
|
3310
|
+
})
|
|
3311
|
+
);
|
|
3069
3312
|
}
|
|
3070
3313
|
|
|
3071
3314
|
// src/components/Badge.tsx
|
|
3072
3315
|
import React from "react";
|
|
3073
3316
|
import { Badge as BadgeRadix } from "@radix-ui/themes";
|
|
3074
|
-
import { jsx as
|
|
3317
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
3075
3318
|
var BadgeStyled = styled(BadgeRadix, {
|
|
3076
3319
|
fontFamily: "$default",
|
|
3077
3320
|
borderRadius: "$sm",
|
|
@@ -3133,29 +3376,35 @@ var BadgeStyled = styled(BadgeRadix, {
|
|
|
3133
3376
|
size: {
|
|
3134
3377
|
xs: {
|
|
3135
3378
|
padding: "$4 $6",
|
|
3136
|
-
fontSize: "$
|
|
3379
|
+
fontSize: "$badgeExtraSmall",
|
|
3137
3380
|
borderRadius: "$2xs",
|
|
3138
|
-
lineHeight: "$
|
|
3381
|
+
lineHeight: "$bagdeExtraSmall"
|
|
3139
3382
|
},
|
|
3140
3383
|
sm: {
|
|
3141
3384
|
padding: "$4 $8",
|
|
3142
|
-
fontSize: "$
|
|
3385
|
+
fontSize: "$badgeSmall",
|
|
3143
3386
|
borderRadius: "$xs",
|
|
3144
|
-
lineHeight: "$
|
|
3387
|
+
lineHeight: "$badgeSmall"
|
|
3145
3388
|
},
|
|
3146
3389
|
md: {
|
|
3147
3390
|
padding: "$8 $10",
|
|
3148
|
-
fontSize: "$
|
|
3391
|
+
fontSize: "$badgeMedium",
|
|
3149
3392
|
borderRadius: "$sm",
|
|
3150
|
-
lineHeight: "$
|
|
3393
|
+
lineHeight: "$badgeMedium"
|
|
3151
3394
|
},
|
|
3152
3395
|
xl: {
|
|
3153
3396
|
padding: "$12 $12",
|
|
3154
|
-
fontSize: "$
|
|
3397
|
+
fontSize: "$badgeLarge",
|
|
3155
3398
|
borderRadius: "$sm",
|
|
3156
|
-
lineHeight: "$
|
|
3399
|
+
lineHeight: "$badgeLarge"
|
|
3157
3400
|
}
|
|
3158
3401
|
},
|
|
3402
|
+
fontWeight: {
|
|
3403
|
+
regular: { fontWeight: "$regular" },
|
|
3404
|
+
medium: { fontWeight: "$medium" },
|
|
3405
|
+
semibold: { fontWeight: "$semibold" },
|
|
3406
|
+
bold: { fontWeight: "$bold" }
|
|
3407
|
+
},
|
|
3159
3408
|
radii: {
|
|
3160
3409
|
"full": {
|
|
3161
3410
|
borderRadius: "$full"
|
|
@@ -3164,25 +3413,767 @@ var BadgeStyled = styled(BadgeRadix, {
|
|
|
3164
3413
|
},
|
|
3165
3414
|
defaultVariants: {
|
|
3166
3415
|
size: "md",
|
|
3167
|
-
color: "primary"
|
|
3416
|
+
color: "primary",
|
|
3417
|
+
fontWeight: "regular"
|
|
3168
3418
|
}
|
|
3169
3419
|
});
|
|
3170
3420
|
function Badge(_a) {
|
|
3171
3421
|
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
3172
|
-
return /* @__PURE__ */
|
|
3422
|
+
return /* @__PURE__ */ jsx11(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: React.Children.map(children, (child) => {
|
|
3173
3423
|
if (React.isValidElement(child)) {
|
|
3174
3424
|
return React.cloneElement(child, { size: props.size });
|
|
3175
3425
|
}
|
|
3176
3426
|
return child;
|
|
3177
3427
|
}) }));
|
|
3178
3428
|
}
|
|
3429
|
+
|
|
3430
|
+
// src/components/Modal.tsx
|
|
3431
|
+
import { Dialog as ModalRadix } from "@radix-ui/themes";
|
|
3432
|
+
|
|
3433
|
+
// src/components/Box.tsx
|
|
3434
|
+
import { Box as BoxRadix } from "@radix-ui/themes";
|
|
3435
|
+
var Box = BoxRadix;
|
|
3436
|
+
|
|
3437
|
+
// src/components/Flex.tsx
|
|
3438
|
+
import { Flex as FlexRadix } from "@radix-ui/themes";
|
|
3439
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
3440
|
+
var FlexStyled = styled(FlexRadix, {
|
|
3441
|
+
variants: {
|
|
3442
|
+
display: {
|
|
3443
|
+
"flex": { display: "flex" },
|
|
3444
|
+
"inline-flex": { display: "inline-flex" }
|
|
3445
|
+
},
|
|
3446
|
+
align: {
|
|
3447
|
+
start: { alignItems: "flex-start" },
|
|
3448
|
+
center: { alignItems: "center" },
|
|
3449
|
+
end: { alignItems: "flex-end" },
|
|
3450
|
+
stretch: { alignItems: "stretch" },
|
|
3451
|
+
baseline: { alignItems: "baseline" }
|
|
3452
|
+
},
|
|
3453
|
+
justify: {
|
|
3454
|
+
start: { justifyContent: "flex-start" },
|
|
3455
|
+
center: { justifyContent: "center" },
|
|
3456
|
+
end: { justifyContent: "flex-end" },
|
|
3457
|
+
between: { justifyContent: "space-between" },
|
|
3458
|
+
around: { justifyContent: "space-around" },
|
|
3459
|
+
evenly: { justifyContent: "space-evenly" }
|
|
3460
|
+
},
|
|
3461
|
+
direction: {
|
|
3462
|
+
row: { flexDirection: "row" },
|
|
3463
|
+
column: { flexDirection: "column" },
|
|
3464
|
+
"row-reverse": { flexDirection: "row-reverse" },
|
|
3465
|
+
"column-reverse": { flexDirection: "column-reverse" }
|
|
3466
|
+
},
|
|
3467
|
+
gap: {
|
|
3468
|
+
2: { gap: "$2" },
|
|
3469
|
+
4: { gap: "$4" },
|
|
3470
|
+
6: { gap: "$6" },
|
|
3471
|
+
8: { gap: "$8" },
|
|
3472
|
+
10: { gap: "$10" },
|
|
3473
|
+
12: { gap: "$12" },
|
|
3474
|
+
14: { gap: "$14" },
|
|
3475
|
+
16: { gap: "$16" },
|
|
3476
|
+
20: { gap: "$20" },
|
|
3477
|
+
22: { gap: "$22" },
|
|
3478
|
+
24: { gap: "$24" },
|
|
3479
|
+
32: { gap: "$32" },
|
|
3480
|
+
36: { gap: "$36" },
|
|
3481
|
+
40: { gap: "$40" },
|
|
3482
|
+
48: { gap: "$48" },
|
|
3483
|
+
56: { gap: "$56" },
|
|
3484
|
+
64: { gap: "$64" },
|
|
3485
|
+
72: { gap: "$72" },
|
|
3486
|
+
80: { gap: "$80" },
|
|
3487
|
+
full: { gap: "$full" }
|
|
3488
|
+
},
|
|
3489
|
+
gapY: {
|
|
3490
|
+
2: { gap: "$2" },
|
|
3491
|
+
4: { gap: "$4" },
|
|
3492
|
+
6: { gap: "$6" },
|
|
3493
|
+
8: { gap: "$8" },
|
|
3494
|
+
10: { gap: "$10" },
|
|
3495
|
+
12: { gap: "$12" },
|
|
3496
|
+
14: { gap: "$14" },
|
|
3497
|
+
16: { gap: "$16" },
|
|
3498
|
+
20: { gap: "$20" },
|
|
3499
|
+
22: { gap: "$22" },
|
|
3500
|
+
24: { gap: "$24" },
|
|
3501
|
+
32: { gap: "$32" },
|
|
3502
|
+
36: { gap: "$36" },
|
|
3503
|
+
40: { gap: "$40" },
|
|
3504
|
+
48: { gap: "$48" },
|
|
3505
|
+
56: { gap: "$56" },
|
|
3506
|
+
64: { gap: "$64" },
|
|
3507
|
+
72: { gap: "$72" },
|
|
3508
|
+
80: { gap: "$80" },
|
|
3509
|
+
full: { gap: "$full" }
|
|
3510
|
+
},
|
|
3511
|
+
gapX: {
|
|
3512
|
+
2: { gap: "$2" },
|
|
3513
|
+
4: { gap: "$4" },
|
|
3514
|
+
6: { gap: "$6" },
|
|
3515
|
+
8: { gap: "$8" },
|
|
3516
|
+
10: { gap: "$10" },
|
|
3517
|
+
12: { gap: "$12" },
|
|
3518
|
+
14: { gap: "$14" },
|
|
3519
|
+
16: { gap: "$16" },
|
|
3520
|
+
20: { gap: "$20" },
|
|
3521
|
+
22: { gap: "$22" },
|
|
3522
|
+
24: { gap: "$24" },
|
|
3523
|
+
32: { gap: "$32" },
|
|
3524
|
+
36: { gap: "$36" },
|
|
3525
|
+
40: { gap: "$40" },
|
|
3526
|
+
48: { gap: "$48" },
|
|
3527
|
+
56: { gap: "$56" },
|
|
3528
|
+
64: { gap: "$64" },
|
|
3529
|
+
72: { gap: "$72" },
|
|
3530
|
+
80: { gap: "$80" },
|
|
3531
|
+
full: { gap: "$full" }
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
defaultVariants: {
|
|
3535
|
+
display: "flex",
|
|
3536
|
+
direction: "row",
|
|
3537
|
+
gap: 10
|
|
3538
|
+
}
|
|
3539
|
+
});
|
|
3540
|
+
function Flex2(_a) {
|
|
3541
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3542
|
+
return /* @__PURE__ */ jsx12(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
// src/components/Modal.tsx
|
|
3546
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
3547
|
+
var ModalStyled = styled("div", {
|
|
3548
|
+
fontFamily: "$default",
|
|
3549
|
+
lineHeight: "$base",
|
|
3550
|
+
fontSize: "$13",
|
|
3551
|
+
borderRadius: "$sm"
|
|
3552
|
+
});
|
|
3553
|
+
var ModalContentStyled = styled(ModalRadix.Content, {
|
|
3554
|
+
fontFamily: "$default",
|
|
3555
|
+
lineHeight: "$base",
|
|
3556
|
+
fontSize: "$13",
|
|
3557
|
+
maxWidth: "502px",
|
|
3558
|
+
width: "100%",
|
|
3559
|
+
border: "1px solid $neutral",
|
|
3560
|
+
borderRadius: "$2xl",
|
|
3561
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)"
|
|
3562
|
+
});
|
|
3563
|
+
var ModalHeaderStyled = styled("div", {
|
|
3564
|
+
borderBottom: "1px solid $neutral300",
|
|
3565
|
+
padding: "$16 $24",
|
|
3566
|
+
textAlign: "center",
|
|
3567
|
+
position: "relative",
|
|
3568
|
+
display: "flex",
|
|
3569
|
+
alignItems: "center",
|
|
3570
|
+
justifyContent: "center"
|
|
3571
|
+
});
|
|
3572
|
+
var ModalIconClose = styled(Icon_default, {
|
|
3573
|
+
position: "absolute",
|
|
3574
|
+
right: "$24",
|
|
3575
|
+
cursor: "pointer"
|
|
3576
|
+
});
|
|
3577
|
+
var ModalFooterStyled = styled("div", {
|
|
3578
|
+
borderTop: "1px solid $neutral300",
|
|
3579
|
+
padding: "$16 $24",
|
|
3580
|
+
".modal-footer-flex": {
|
|
3581
|
+
justifyContent: "flex-end"
|
|
3582
|
+
}
|
|
3583
|
+
});
|
|
3584
|
+
var ModalTitleStyled = styled(ModalRadix.Title, {
|
|
3585
|
+
fontFamily: "$default",
|
|
3586
|
+
lineHeight: "$base",
|
|
3587
|
+
fontSize: "$18",
|
|
3588
|
+
fontWeight: "medium",
|
|
3589
|
+
fontStyle: "normal",
|
|
3590
|
+
textTransform: "uppercase"
|
|
3591
|
+
});
|
|
3592
|
+
function Modal(_a) {
|
|
3593
|
+
var _b = _a, { children, title, trigger, cancel, cancelText, action, actionText, onAction } = _b, props = __objRest(_b, ["children", "title", "trigger", "cancel", "cancelText", "action", "actionText", "onAction"]);
|
|
3594
|
+
return /* @__PURE__ */ jsx13(ModalRadix.Root, { children: /* @__PURE__ */ jsxs4(ModalStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3595
|
+
/* @__PURE__ */ jsx13(ModalRadix.Trigger, { children: trigger }),
|
|
3596
|
+
/* @__PURE__ */ jsxs4(ModalContentStyled, { children: [
|
|
3597
|
+
/* @__PURE__ */ jsxs4(ModalHeaderStyled, { children: [
|
|
3598
|
+
title && /* @__PURE__ */ jsx13(ModalTitleStyled, { children: title }),
|
|
3599
|
+
/* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3600
|
+
] }),
|
|
3601
|
+
/* @__PURE__ */ jsx13(Box, { children }),
|
|
3602
|
+
cancel || action ? /* @__PURE__ */ jsx13(ModalFooterStyled, { children: /* @__PURE__ */ jsxs4(Flex2, { gap: "10", justify: "end", width: "100%", className: "modal-footer-flex", children: [
|
|
3603
|
+
action && onAction && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "contained", color: "brand", onClick: onAction, children: actionText ? actionText : "Salvar" }) }),
|
|
3604
|
+
cancel && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "outlined", color: "neutral", children: cancelText ? cancelText : "cancelar" }) })
|
|
3605
|
+
] }) }) : null
|
|
3606
|
+
] })
|
|
3607
|
+
] })) });
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
// src/components/Alert.tsx
|
|
3611
|
+
import { Theme as Theme3, AlertDialog } from "@radix-ui/themes";
|
|
3612
|
+
import { Fragment, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3613
|
+
var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
|
|
3614
|
+
fontFamily: "$default",
|
|
3615
|
+
lineHeight: "$base",
|
|
3616
|
+
fontSize: "$13",
|
|
3617
|
+
padding: "$16",
|
|
3618
|
+
borderRadius: "$sm",
|
|
3619
|
+
display: "flex",
|
|
3620
|
+
alignItems: "center",
|
|
3621
|
+
justifyContent: "space-between",
|
|
3622
|
+
gap: "$10",
|
|
3623
|
+
marginTop: "$10",
|
|
3624
|
+
variants: {
|
|
3625
|
+
color: {
|
|
3626
|
+
error: {
|
|
3627
|
+
backgroundColor: "$error50",
|
|
3628
|
+
border: "1px solid $error600",
|
|
3629
|
+
color: "$error600",
|
|
3630
|
+
"svg": {
|
|
3631
|
+
color: "$error600"
|
|
3632
|
+
}
|
|
3633
|
+
},
|
|
3634
|
+
warning: {
|
|
3635
|
+
backgroundColor: "$warning50",
|
|
3636
|
+
border: "1px solid $warning600",
|
|
3637
|
+
color: "$warning600",
|
|
3638
|
+
"svg": {
|
|
3639
|
+
color: "$warning600"
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
success: {
|
|
3643
|
+
backgroundColor: "$success50",
|
|
3644
|
+
border: "1px solid $success600",
|
|
3645
|
+
color: "$success600",
|
|
3646
|
+
"svg": {
|
|
3647
|
+
color: "$success600"
|
|
3648
|
+
}
|
|
3649
|
+
},
|
|
3650
|
+
info: {
|
|
3651
|
+
backgroundColor: "$info50",
|
|
3652
|
+
border: "1px solid $info600",
|
|
3653
|
+
color: "$info600",
|
|
3654
|
+
"svg": {
|
|
3655
|
+
color: "$info600"
|
|
3656
|
+
}
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
},
|
|
3660
|
+
defaultVariants: {
|
|
3661
|
+
color: "success"
|
|
3662
|
+
}
|
|
3663
|
+
});
|
|
3664
|
+
var AlertDialogCompleteStyled = styled(AlertDialog.Content, {
|
|
3665
|
+
fontFamily: "$default",
|
|
3666
|
+
lineHeight: "$base",
|
|
3667
|
+
fontSize: "$13",
|
|
3668
|
+
borderRadius: "$sm",
|
|
3669
|
+
marginTop: "$10",
|
|
3670
|
+
maxWidth: "440px",
|
|
3671
|
+
width: "100%",
|
|
3672
|
+
boxShadow: "0px 0px 15px 5px rgba(0, 0, 0, 0.05)",
|
|
3673
|
+
border: "1px solid $neutral200",
|
|
3674
|
+
".le-alert-dialog-row": {
|
|
3675
|
+
display: "flex",
|
|
3676
|
+
flexDirection: "column",
|
|
3677
|
+
flexWrap: "wrap",
|
|
3678
|
+
alignItems: "center",
|
|
3679
|
+
textAlign: "center",
|
|
3680
|
+
justifyContent: "space-between",
|
|
3681
|
+
gap: "$10"
|
|
3682
|
+
},
|
|
3683
|
+
variants: {
|
|
3684
|
+
color: {}
|
|
3685
|
+
}
|
|
3686
|
+
});
|
|
3687
|
+
var AlertDialogDescriptionStyled = styled(AlertDialog.Description, {
|
|
3688
|
+
padding: 0,
|
|
3689
|
+
margin: 0
|
|
3690
|
+
});
|
|
3691
|
+
var AlertDialogTitleStyled = styled(AlertDialog.Title, {
|
|
3692
|
+
fontFamily: "$default",
|
|
3693
|
+
lineHeight: "$base",
|
|
3694
|
+
fontSize: "$20",
|
|
3695
|
+
fontWeight: "$semibold",
|
|
3696
|
+
padding: 0,
|
|
3697
|
+
margin: 0
|
|
3698
|
+
});
|
|
3699
|
+
var AlertDialogSubtitleStyled = styled(Text, {
|
|
3700
|
+
margin: 0,
|
|
3701
|
+
fontSize: "$48",
|
|
3702
|
+
color: "$gray100",
|
|
3703
|
+
fontWeight: "$semibold"
|
|
3704
|
+
});
|
|
3705
|
+
var AlertDialogRowStyled = styled("div", {
|
|
3706
|
+
padding: "$32 $24"
|
|
3707
|
+
});
|
|
3708
|
+
var AlertDialoghrStyled = styled("hr", {
|
|
3709
|
+
margin: 0,
|
|
3710
|
+
padding: 0,
|
|
3711
|
+
border: "none",
|
|
3712
|
+
borderTop: "1px solid $neutral200"
|
|
3713
|
+
});
|
|
3714
|
+
function Alert(_a) {
|
|
3715
|
+
var _b = _a, {
|
|
3716
|
+
color,
|
|
3717
|
+
trigger,
|
|
3718
|
+
completAlert,
|
|
3719
|
+
simpleAlert
|
|
3720
|
+
} = _b, props = __objRest(_b, [
|
|
3721
|
+
"color",
|
|
3722
|
+
"trigger",
|
|
3723
|
+
"completAlert",
|
|
3724
|
+
"simpleAlert"
|
|
3725
|
+
]);
|
|
3726
|
+
console.log("completAlert", completAlert, " simpleAlert", simpleAlert);
|
|
3727
|
+
return /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
3728
|
+
simpleAlert && /* @__PURE__ */ jsx14(Theme3, { children: /* @__PURE__ */ jsxs5(AlertDialog.Root, { children: [
|
|
3729
|
+
/* @__PURE__ */ jsx14(AlertDialog.Trigger, { children: trigger }),
|
|
3730
|
+
/* @__PURE__ */ jsx14(Fragment, { children: /* @__PURE__ */ jsxs5(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3731
|
+
/* @__PURE__ */ jsx14(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
|
|
3732
|
+
simpleAlert.cancel && /* @__PURE__ */ jsx14(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx14(Button, { variant: "text", children: /* @__PURE__ */ jsx14(Icon_default, { name: "close" }) }) })
|
|
3733
|
+
] })) })
|
|
3734
|
+
] }) }),
|
|
3735
|
+
completAlert && /* @__PURE__ */ jsx14(Theme3, { children: /* @__PURE__ */ jsxs5(AlertDialog.Root, { children: [
|
|
3736
|
+
/* @__PURE__ */ jsx14(AlertDialog.Trigger, { children: trigger }),
|
|
3737
|
+
/* @__PURE__ */ jsxs5(AlertDialogCompleteStyled, { children: [
|
|
3738
|
+
/* @__PURE__ */ jsxs5(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
|
|
3739
|
+
color === "success" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3740
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM40.3594 22.8594L26.3594 36.8594C25.3312 37.8875 23.6688 37.8875 22.6516 36.8594L15.6516 29.8594C14.6234 28.8312 14.6234 27.1688 15.6516 26.1516C16.6797 25.1344 18.3422 25.1234 19.3594 26.1516L24.5 31.2922L36.6406 19.1406C37.6688 18.1125 39.3312 18.1125 40.3484 19.1406C41.3656 20.1688 41.3766 21.8312 40.3484 22.8484L40.3594 22.8594Z", fill: "#1E8535" }) }),
|
|
3741
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3742
|
+
] }),
|
|
3743
|
+
color === "error" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3744
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM19.1406 19.1406C20.1687 18.1125 21.8312 18.1125 22.8484 19.1406L27.9891 24.2812L33.1297 19.1406C34.1578 18.1125 35.8203 18.1125 36.8375 19.1406C37.8547 20.1687 37.8656 21.8312 36.8375 22.8484L31.6969 27.9891L36.8375 33.1297C37.8656 34.1578 37.8656 35.8203 36.8375 36.8375C35.8094 37.8547 34.1469 37.8656 33.1297 36.8375L27.9891 31.6969L22.8484 36.8375C21.8203 37.8656 20.1578 37.8656 19.1406 36.8375C18.1234 35.8094 18.1125 34.1469 19.1406 33.1297L24.2812 27.9891L19.1406 22.8484C18.1125 21.8203 18.1125 20.1578 19.1406 19.1406Z", fill: "#AD1F2B" }) }),
|
|
3745
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3746
|
+
] }),
|
|
3747
|
+
color === "warning" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3748
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM28 14C29.4547 14 30.625 15.1703 30.625 16.625V28.875C30.625 30.3297 29.4547 31.5 28 31.5C26.5453 31.5 25.375 30.3297 25.375 28.875V16.625C25.375 15.1703 26.5453 14 28 14ZM24.5 38.5C24.5 37.5717 24.8687 36.6815 25.5251 36.0251C26.1815 35.3688 27.0717 35 28 35C28.9283 35 29.8185 35.3688 30.4749 36.0251C31.1313 36.6815 31.5 37.5717 31.5 38.5C31.5 39.4283 31.1313 40.3185 30.4749 40.9749C29.8185 41.6312 28.9283 42 28 42C27.0717 42 26.1815 41.6312 25.5251 40.9749C24.8687 40.3185 24.5 39.4283 24.5 38.5Z", fill: "#CC9A06" }) }),
|
|
3749
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3750
|
+
] }),
|
|
3751
|
+
color === "info" && /* @__PURE__ */ jsxs5("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3752
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ jsx14("path", { d: "M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM20 10C21.0391 10 21.875 10.8359 21.875 11.875V20.625C21.875 21.6641 21.0391 22.5 20 22.5C18.9609 22.5 18.125 21.6641 18.125 20.625V11.875C18.125 10.8359 18.9609 10 20 10ZM17.5 27.5C17.5 26.837 17.7634 26.2011 18.2322 25.7322C18.7011 25.2634 19.337 25 20 25C20.663 25 21.2989 25.2634 21.7678 25.7322C22.2366 26.2011 22.5 26.837 22.5 27.5C22.5 28.163 22.2366 28.7989 21.7678 29.2678C21.2989 29.7366 20.663 30 20 30C19.337 30 18.7011 29.7366 18.2322 29.2678C17.7634 28.7989 17.5 28.163 17.5 27.5Z", fill: "#9FB6C7" }) }),
|
|
3753
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ jsx14("rect", { width: "40", height: "40", fill: "white" }) }) })
|
|
3754
|
+
] }),
|
|
3755
|
+
completAlert.title && /* @__PURE__ */ jsx14(AlertDialogTitleStyled, { children: completAlert.title }),
|
|
3756
|
+
/* @__PURE__ */ jsxs5(AlertDialogDescriptionStyled, { children: [
|
|
3757
|
+
completAlert.subtitle && /* @__PURE__ */ jsx14(Text, { css: {
|
|
3758
|
+
fontSize: "$16"
|
|
3759
|
+
}, asChild: true, children: /* @__PURE__ */ jsx14("h2", { children: completAlert.subtitle }) }),
|
|
3760
|
+
completAlert.description
|
|
3761
|
+
] })
|
|
3762
|
+
] }),
|
|
3763
|
+
completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx14(AlertDialoghrStyled, {}) : null,
|
|
3764
|
+
/* @__PURE__ */ jsx14(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs5(Flex2, { gap: "10", justify: "end", width: "100%", children: [
|
|
3765
|
+
completAlert.onAction && /* @__PURE__ */ jsx14(AlertDialog.Action, { children: /* @__PURE__ */ jsx14(Button, { variant: "contained", onClick: completAlert.onAction, children: completAlert.actionText || "Salvar" }) }),
|
|
3766
|
+
completAlert.cancel && /* @__PURE__ */ jsx14(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx14(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
|
|
3767
|
+
] }) })
|
|
3768
|
+
] })
|
|
3769
|
+
] }) })
|
|
3770
|
+
] });
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
// src/components/Switch.tsx
|
|
3774
|
+
import { Switch as RadixSwitch } from "@radix-ui/themes";
|
|
3775
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
3776
|
+
var SwitchStyled = styled(RadixSwitch, {
|
|
3777
|
+
all: "unset",
|
|
3778
|
+
borderRadius: "$full",
|
|
3779
|
+
position: "relative",
|
|
3780
|
+
display: "flex",
|
|
3781
|
+
alignItems: "center",
|
|
3782
|
+
justifyContent: "center",
|
|
3783
|
+
transition: "all 0.3s",
|
|
3784
|
+
cursor: "pointer",
|
|
3785
|
+
"&::before": {
|
|
3786
|
+
content: '""',
|
|
3787
|
+
position: "absolute",
|
|
3788
|
+
borderRadius: "$full",
|
|
3789
|
+
pointerEvents: "none",
|
|
3790
|
+
cursor: "pointer"
|
|
3791
|
+
},
|
|
3792
|
+
"span": {
|
|
3793
|
+
position: "absolute",
|
|
3794
|
+
top: "50%",
|
|
3795
|
+
left: 0,
|
|
3796
|
+
transform: "translate(0, -50%)",
|
|
3797
|
+
borderRadius: "50%",
|
|
3798
|
+
transition: "all 0.3s",
|
|
3799
|
+
cursor: "pointer",
|
|
3800
|
+
borderWidth: "1px",
|
|
3801
|
+
borderStyle: "solid",
|
|
3802
|
+
boxShadow: "0px 0px 4px 0px rgba(0, 0, 0, 0.24)"
|
|
3803
|
+
},
|
|
3804
|
+
'&[data-state="checked"] span': {
|
|
3805
|
+
left: "auto",
|
|
3806
|
+
transform: "translate(50%, -50%)"
|
|
3807
|
+
},
|
|
3808
|
+
variants: {
|
|
3809
|
+
color: {
|
|
3810
|
+
brand: {
|
|
3811
|
+
"&::before": {
|
|
3812
|
+
backgroundColor: "$brand50"
|
|
3813
|
+
},
|
|
3814
|
+
"span": {
|
|
3815
|
+
backgroundColor: "$dark50",
|
|
3816
|
+
borderColor: "$neutral300"
|
|
3817
|
+
},
|
|
3818
|
+
'&[data-state="checked"] span': {
|
|
3819
|
+
backgroundColor: "$brand500",
|
|
3820
|
+
borderColor: "$brand500"
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
},
|
|
3824
|
+
size: {
|
|
3825
|
+
sm: {
|
|
3826
|
+
width: "32px",
|
|
3827
|
+
height: "20px",
|
|
3828
|
+
"&::before": {
|
|
3829
|
+
width: "$32",
|
|
3830
|
+
height: "$12"
|
|
3831
|
+
},
|
|
3832
|
+
"span": {
|
|
3833
|
+
width: "$20",
|
|
3834
|
+
height: "$20"
|
|
3835
|
+
}
|
|
3836
|
+
},
|
|
3837
|
+
md: {
|
|
3838
|
+
width: "40px",
|
|
3839
|
+
height: "20px",
|
|
3840
|
+
"&::before": {
|
|
3841
|
+
width: "40px",
|
|
3842
|
+
height: "16px"
|
|
3843
|
+
},
|
|
3844
|
+
"span": {
|
|
3845
|
+
width: "24px",
|
|
3846
|
+
height: "24px"
|
|
3847
|
+
}
|
|
3848
|
+
},
|
|
3849
|
+
lg: {
|
|
3850
|
+
width: "56px",
|
|
3851
|
+
height: "32px",
|
|
3852
|
+
"&::before": {
|
|
3853
|
+
width: "56px",
|
|
3854
|
+
height: "24px"
|
|
3855
|
+
},
|
|
3856
|
+
"span": {
|
|
3857
|
+
width: "32px",
|
|
3858
|
+
height: "32px"
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
},
|
|
3863
|
+
defaultVariants: {
|
|
3864
|
+
size: "md",
|
|
3865
|
+
color: "brand"
|
|
3866
|
+
}
|
|
3867
|
+
});
|
|
3868
|
+
function Switch(props) {
|
|
3869
|
+
return /* @__PURE__ */ jsx15(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
// src/components/Step.tsx
|
|
3873
|
+
import React2 from "react";
|
|
3874
|
+
import { Box as Box2, Tabs as StepRadix } from "@radix-ui/themes";
|
|
3875
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
3876
|
+
var StepStyled = styled("div", {
|
|
3877
|
+
fontFamily: "$default",
|
|
3878
|
+
color: "$gray100",
|
|
3879
|
+
letterSpacing: "0px"
|
|
3880
|
+
});
|
|
3881
|
+
var StepTriggerStyled = styled(StepRadix.Trigger, {
|
|
3882
|
+
all: "unset",
|
|
3883
|
+
position: "relative",
|
|
3884
|
+
display: "flex",
|
|
3885
|
+
alignItems: "center",
|
|
3886
|
+
justifyContent: "center",
|
|
3887
|
+
fontSize: "$16",
|
|
3888
|
+
fontWeight: "$medium",
|
|
3889
|
+
minWidth: "32px",
|
|
3890
|
+
minHeight: "32px",
|
|
3891
|
+
marginRight: "40px",
|
|
3892
|
+
"&:last-of-type": {
|
|
3893
|
+
marginRight: 0
|
|
3894
|
+
},
|
|
3895
|
+
"& > span:first-of-type": {
|
|
3896
|
+
width: "32px",
|
|
3897
|
+
height: "32px",
|
|
3898
|
+
borderRadius: "$full",
|
|
3899
|
+
backgroundColor: "$neutral50",
|
|
3900
|
+
border: "1px solid $neutral200",
|
|
3901
|
+
color: "$gray700",
|
|
3902
|
+
display: "flex",
|
|
3903
|
+
alignItems: "center",
|
|
3904
|
+
justifyContent: "center",
|
|
3905
|
+
zIndex: 1,
|
|
3906
|
+
position: "relative"
|
|
3907
|
+
},
|
|
3908
|
+
'&[data-state="active"] > span:first-of-type': {
|
|
3909
|
+
backgroundColor: "$blue500",
|
|
3910
|
+
borderColor: "$blue500",
|
|
3911
|
+
color: "white"
|
|
3912
|
+
},
|
|
3913
|
+
"& > span:last-of-type": {
|
|
3914
|
+
display: "none"
|
|
3915
|
+
},
|
|
3916
|
+
"&:not(:first-of-type)::before": {
|
|
3917
|
+
content: '""',
|
|
3918
|
+
position: "absolute",
|
|
3919
|
+
top: "50%",
|
|
3920
|
+
right: "calc(100% + 4px)",
|
|
3921
|
+
transform: "translateY(-50%)",
|
|
3922
|
+
width: "32px",
|
|
3923
|
+
height: "8px",
|
|
3924
|
+
borderRadius: "$sm",
|
|
3925
|
+
backgroundColor: "$neutral50",
|
|
3926
|
+
zIndex: 0
|
|
3927
|
+
},
|
|
3928
|
+
'&[data-state="active"]::before': {
|
|
3929
|
+
backgroundColor: "$blue500"
|
|
3930
|
+
},
|
|
3931
|
+
'&[data-filled="true"] > span:first-of-type': {
|
|
3932
|
+
backgroundColor: "$blue500",
|
|
3933
|
+
borderColor: "$blue500",
|
|
3934
|
+
color: "white"
|
|
3935
|
+
},
|
|
3936
|
+
'&[data-filled="true"]::before': {
|
|
3937
|
+
backgroundColor: "$blue500"
|
|
3938
|
+
}
|
|
3939
|
+
});
|
|
3940
|
+
var StepListStyled = styled(StepRadix.List, {
|
|
3941
|
+
display: "flex",
|
|
3942
|
+
alignItems: "center",
|
|
3943
|
+
justifyContent: "flex-start",
|
|
3944
|
+
gap: "$4"
|
|
3945
|
+
});
|
|
3946
|
+
function Step(_a) {
|
|
3947
|
+
var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
|
|
3948
|
+
return /* @__PURE__ */ jsx16(StepRadix.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ jsx16(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
|
|
3949
|
+
}
|
|
3950
|
+
function StepTrigger(_a) {
|
|
3951
|
+
var _b = _a, { value, children, currentStep } = _b, props = __objRest(_b, ["value", "children", "currentStep"]);
|
|
3952
|
+
const isActiveOrPrevious = currentStep !== void 0 && value <= currentStep;
|
|
3953
|
+
console.log(isActiveOrPrevious, "isActiveOrPrevius", currentStep);
|
|
3954
|
+
return /* @__PURE__ */ jsx16(StepTriggerStyled, __spreadProps(__spreadValues({ "data-filled": isActiveOrPrevious, value: String(value) }, props), { children }));
|
|
3955
|
+
}
|
|
3956
|
+
function StepContent(_a) {
|
|
3957
|
+
var _b = _a, { value, children } = _b, props = __objRest(_b, ["value", "children"]);
|
|
3958
|
+
return /* @__PURE__ */ jsx16(StepRadix.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
|
|
3959
|
+
}
|
|
3960
|
+
function StepList(_a) {
|
|
3961
|
+
var _b = _a, { children, currentStep } = _b, props = __objRest(_b, ["children", "currentStep"]);
|
|
3962
|
+
return /* @__PURE__ */ jsx16(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React2.Children.map(children, (child) => {
|
|
3963
|
+
if (React2.isValidElement(child) && child.type === StepTrigger) {
|
|
3964
|
+
return React2.cloneElement(child, { currentStep });
|
|
3965
|
+
}
|
|
3966
|
+
return child;
|
|
3967
|
+
}) }));
|
|
3968
|
+
}
|
|
3969
|
+
function StepWrapper(_a) {
|
|
3970
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3971
|
+
return /* @__PURE__ */ jsx16(Box2, __spreadProps(__spreadValues({}, props), { children }));
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
// src/components/Grid.tsx
|
|
3975
|
+
import { Grid as GridRadix } from "@radix-ui/themes";
|
|
3976
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
3977
|
+
var GridStyled = styled(GridRadix, {
|
|
3978
|
+
display: "grid",
|
|
3979
|
+
variants: {
|
|
3980
|
+
display: {
|
|
3981
|
+
"grid": { display: "grid" },
|
|
3982
|
+
"inline-grid": { display: "inline-grid" }
|
|
3983
|
+
},
|
|
3984
|
+
align: {
|
|
3985
|
+
start: { alignItems: "start" },
|
|
3986
|
+
center: { alignItems: "center" },
|
|
3987
|
+
end: { alignItems: "end" },
|
|
3988
|
+
stretch: { alignItems: "stretch" }
|
|
3989
|
+
},
|
|
3990
|
+
justify: {
|
|
3991
|
+
start: { justifyContent: "start" },
|
|
3992
|
+
center: { justifyContent: "center" },
|
|
3993
|
+
end: { justifyContent: "end" },
|
|
3994
|
+
between: { justifyContent: "space-between" }
|
|
3995
|
+
},
|
|
3996
|
+
flow: {
|
|
3997
|
+
row: { gridAutoFlow: "row" },
|
|
3998
|
+
column: { gridAutoFlow: "column" },
|
|
3999
|
+
"row-dense": { gridAutoFlow: "row dense" },
|
|
4000
|
+
"column-dense": { gridAutoFlow: "column dense" }
|
|
4001
|
+
},
|
|
4002
|
+
columns: {
|
|
4003
|
+
1: { gridTemplateColumns: "repeat(1, 1fr)" },
|
|
4004
|
+
2: { gridTemplateColumns: "repeat(2, 1fr)" },
|
|
4005
|
+
3: { gridTemplateColumns: "repeat(3, 1fr)" },
|
|
4006
|
+
4: { gridTemplateColumns: "repeat(4, 1fr)" },
|
|
4007
|
+
6: { gridTemplateColumns: "repeat(6, 1fr)" },
|
|
4008
|
+
12: { gridTemplateColumns: "repeat(12, 1fr)" }
|
|
4009
|
+
},
|
|
4010
|
+
rows: {
|
|
4011
|
+
1: { gridTemplateRows: "repeat(1, 1fr)" },
|
|
4012
|
+
2: { gridTemplateRows: "repeat(2, 1fr)" },
|
|
4013
|
+
3: { gridTemplateRows: "repeat(3, 1fr)" },
|
|
4014
|
+
4: { gridTemplateRows: "repeat(4, 1fr)" },
|
|
4015
|
+
5: { gridTemplateRows: "repeat(5, 1fr)" },
|
|
4016
|
+
6: { gridTemplateRows: "repeat(6, 1fr)" },
|
|
4017
|
+
7: { gridTemplateRows: "repeat(7, 1fr)" },
|
|
4018
|
+
8: { gridTemplateRows: "repeat(8, 1fr)" },
|
|
4019
|
+
9: { gridTemplateRows: "repeat(9, 1fr)" },
|
|
4020
|
+
10: { gridTemplateRows: "repeat(10, 1fr)" },
|
|
4021
|
+
11: { gridTemplateRows: "repeat(11, 1fr)" },
|
|
4022
|
+
12: { gridTemplateRows: "repeat(12, 1fr)" },
|
|
4023
|
+
auto: { gridTemplateRows: "auto" }
|
|
4024
|
+
},
|
|
4025
|
+
gap: {
|
|
4026
|
+
2: { gap: "$2" },
|
|
4027
|
+
4: { gap: "$4" },
|
|
4028
|
+
6: { gap: "$6" },
|
|
4029
|
+
8: { gap: "$8" },
|
|
4030
|
+
10: { gap: "$10" },
|
|
4031
|
+
12: { gap: "$12" },
|
|
4032
|
+
14: { gap: "$14" },
|
|
4033
|
+
16: { gap: "$16" },
|
|
4034
|
+
20: { gap: "$20" },
|
|
4035
|
+
22: { gap: "$22" },
|
|
4036
|
+
24: { gap: "$24" },
|
|
4037
|
+
32: { gap: "$32" },
|
|
4038
|
+
36: { gap: "$36" },
|
|
4039
|
+
40: { gap: "$40" },
|
|
4040
|
+
48: { gap: "$48" },
|
|
4041
|
+
56: { gap: "$56" },
|
|
4042
|
+
64: { gap: "$64" },
|
|
4043
|
+
72: { gap: "$72" },
|
|
4044
|
+
80: { gap: "$80" },
|
|
4045
|
+
full: { gap: "$full" }
|
|
4046
|
+
},
|
|
4047
|
+
gapX: {
|
|
4048
|
+
2: { gap: "$2" },
|
|
4049
|
+
4: { gap: "$4" },
|
|
4050
|
+
6: { gap: "$6" },
|
|
4051
|
+
8: { gap: "$8" },
|
|
4052
|
+
10: { gap: "$10" },
|
|
4053
|
+
12: { gap: "$12" },
|
|
4054
|
+
14: { gap: "$14" },
|
|
4055
|
+
16: { gap: "$16" },
|
|
4056
|
+
20: { gap: "$20" },
|
|
4057
|
+
22: { gap: "$22" },
|
|
4058
|
+
24: { gap: "$24" },
|
|
4059
|
+
32: { gap: "$32" },
|
|
4060
|
+
36: { gap: "$36" },
|
|
4061
|
+
40: { gap: "$40" },
|
|
4062
|
+
48: { gap: "$48" },
|
|
4063
|
+
56: { gap: "$56" },
|
|
4064
|
+
64: { gap: "$64" },
|
|
4065
|
+
72: { gap: "$72" },
|
|
4066
|
+
80: { gap: "$80" },
|
|
4067
|
+
full: { gap: "$full" }
|
|
4068
|
+
},
|
|
4069
|
+
gapY: {
|
|
4070
|
+
2: { gap: "$2" },
|
|
4071
|
+
4: { gap: "$4" },
|
|
4072
|
+
6: { gap: "$6" },
|
|
4073
|
+
8: { gap: "$8" },
|
|
4074
|
+
10: { gap: "$10" },
|
|
4075
|
+
12: { gap: "$12" },
|
|
4076
|
+
14: { gap: "$14" },
|
|
4077
|
+
16: { gap: "$16" },
|
|
4078
|
+
20: { gap: "$20" },
|
|
4079
|
+
22: { gap: "$22" },
|
|
4080
|
+
24: { gap: "$24" },
|
|
4081
|
+
32: { gap: "$32" },
|
|
4082
|
+
36: { gap: "$36" },
|
|
4083
|
+
40: { gap: "$40" },
|
|
4084
|
+
48: { gap: "$48" },
|
|
4085
|
+
56: { gap: "$56" },
|
|
4086
|
+
64: { gap: "$64" },
|
|
4087
|
+
72: { gap: "$72" },
|
|
4088
|
+
80: { gap: "$80" },
|
|
4089
|
+
full: { gap: "$full" }
|
|
4090
|
+
}
|
|
4091
|
+
},
|
|
4092
|
+
defaultVariants: {
|
|
4093
|
+
gap: 10
|
|
4094
|
+
}
|
|
4095
|
+
});
|
|
4096
|
+
function Grid(_a) {
|
|
4097
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4098
|
+
return /* @__PURE__ */ jsx17(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4099
|
+
}
|
|
4100
|
+
|
|
4101
|
+
// src/components/Container.tsx
|
|
4102
|
+
import { Container as ContainerRadix } from "@radix-ui/themes";
|
|
4103
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
4104
|
+
var ContainerStyled = styled(ContainerRadix, {
|
|
4105
|
+
variants: {
|
|
4106
|
+
size: {
|
|
4107
|
+
xs: { maxWidth: "576px" },
|
|
4108
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
4109
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
4110
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
4111
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
4112
|
+
xxl: { mixWidth: "1400px" },
|
|
4113
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
4114
|
+
},
|
|
4115
|
+
display: {
|
|
4116
|
+
none: { display: "none" },
|
|
4117
|
+
initial: { display: "initial" }
|
|
4118
|
+
},
|
|
4119
|
+
align: {
|
|
4120
|
+
left: { marginLeft: 0, marginRight: "auto" },
|
|
4121
|
+
center: { marginLeft: "auto", marginRight: "auto" },
|
|
4122
|
+
right: { marginLeft: "auto", marginRight: 0 }
|
|
4123
|
+
}
|
|
4124
|
+
},
|
|
4125
|
+
defaultVariants: {
|
|
4126
|
+
size: "md",
|
|
4127
|
+
align: "left",
|
|
4128
|
+
display: "initial"
|
|
4129
|
+
}
|
|
4130
|
+
});
|
|
4131
|
+
function Container(_a) {
|
|
4132
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4133
|
+
return /* @__PURE__ */ jsx18(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
// src/components/Section.tsx
|
|
4137
|
+
import { Section as SectionRadix } from "@radix-ui/themes";
|
|
4138
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
4139
|
+
var SectionStyled = styled(SectionRadix, {
|
|
4140
|
+
variants: {
|
|
4141
|
+
size: {
|
|
4142
|
+
xs: { maxWidth: "576px" },
|
|
4143
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
4144
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
4145
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
4146
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
4147
|
+
xxl: { mixWidth: "1400px" },
|
|
4148
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
4149
|
+
},
|
|
4150
|
+
display: {
|
|
4151
|
+
none: { display: "none" },
|
|
4152
|
+
initial: { display: "initial" }
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
defaultVariants: {
|
|
4156
|
+
size: "md",
|
|
4157
|
+
display: "initial"
|
|
4158
|
+
}
|
|
4159
|
+
});
|
|
4160
|
+
function Section(_a) {
|
|
4161
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4162
|
+
return /* @__PURE__ */ jsx19(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4163
|
+
}
|
|
3179
4164
|
export {
|
|
4165
|
+
Alert,
|
|
4166
|
+
AlertDialogCompleteStyled,
|
|
4167
|
+
AlertDialogDescriptionStyled,
|
|
4168
|
+
AlertDialogRowStyled,
|
|
4169
|
+
AlertDialogSimpleStyled,
|
|
4170
|
+
AlertDialogSubtitleStyled,
|
|
4171
|
+
AlertDialogTitleStyled,
|
|
4172
|
+
AlertDialoghrStyled,
|
|
3180
4173
|
Avatar,
|
|
3181
4174
|
AvatarStyled,
|
|
3182
4175
|
Badge,
|
|
3183
4176
|
BadgeStyled,
|
|
3184
|
-
BadgeText,
|
|
3185
|
-
BodyText,
|
|
3186
4177
|
Box,
|
|
3187
4178
|
Button,
|
|
3188
4179
|
ButtonGroup,
|
|
@@ -3190,29 +4181,43 @@ export {
|
|
|
3190
4181
|
ButtonItem,
|
|
3191
4182
|
ButtonItemStyled,
|
|
3192
4183
|
ButtonStyled,
|
|
3193
|
-
CaptionText,
|
|
3194
4184
|
CheckboxGroup,
|
|
3195
4185
|
CheckboxGroupStyled,
|
|
3196
4186
|
CheckboxItem,
|
|
3197
|
-
|
|
4187
|
+
Container,
|
|
4188
|
+
ContainerStyled,
|
|
3198
4189
|
DropdownMenu2 as DropdownMenu,
|
|
3199
4190
|
DropdownMenuItem,
|
|
3200
4191
|
Filter,
|
|
3201
4192
|
FilterItem,
|
|
3202
4193
|
Flex2 as Flex,
|
|
3203
|
-
|
|
4194
|
+
FlexStyled,
|
|
4195
|
+
Grid,
|
|
4196
|
+
GridStyled,
|
|
3204
4197
|
Icon,
|
|
3205
|
-
|
|
4198
|
+
Modal,
|
|
4199
|
+
ModalContentStyled,
|
|
4200
|
+
ModalStyled,
|
|
4201
|
+
ModalTitleStyled,
|
|
3206
4202
|
RadioGroup,
|
|
3207
4203
|
RadioGroupStyled,
|
|
3208
4204
|
RadioItem,
|
|
3209
|
-
|
|
4205
|
+
Section,
|
|
4206
|
+
SectionStyled,
|
|
4207
|
+
Step,
|
|
4208
|
+
StepContent,
|
|
4209
|
+
StepList,
|
|
4210
|
+
StepStyled,
|
|
4211
|
+
StepTrigger,
|
|
4212
|
+
StepWrapper,
|
|
4213
|
+
Switch,
|
|
4214
|
+
SwitchStyled,
|
|
3210
4215
|
Text,
|
|
3211
4216
|
TextField,
|
|
3212
4217
|
TextFieldSlot,
|
|
3213
4218
|
TextFieldSlotStyled,
|
|
3214
4219
|
TextFieldStyled,
|
|
3215
|
-
|
|
4220
|
+
TextStyle
|
|
3216
4221
|
};
|
|
3217
4222
|
/*! Bundled license information:
|
|
3218
4223
|
|