@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.js
CHANGED
|
@@ -1010,12 +1010,18 @@ var require_prop_types = __commonJS({
|
|
|
1010
1010
|
// src/index.tsx
|
|
1011
1011
|
var index_exports = {};
|
|
1012
1012
|
__export(index_exports, {
|
|
1013
|
+
Alert: () => Alert,
|
|
1014
|
+
AlertDialogCompleteStyled: () => AlertDialogCompleteStyled,
|
|
1015
|
+
AlertDialogDescriptionStyled: () => AlertDialogDescriptionStyled,
|
|
1016
|
+
AlertDialogRowStyled: () => AlertDialogRowStyled,
|
|
1017
|
+
AlertDialogSimpleStyled: () => AlertDialogSimpleStyled,
|
|
1018
|
+
AlertDialogSubtitleStyled: () => AlertDialogSubtitleStyled,
|
|
1019
|
+
AlertDialogTitleStyled: () => AlertDialogTitleStyled,
|
|
1020
|
+
AlertDialoghrStyled: () => AlertDialoghrStyled,
|
|
1013
1021
|
Avatar: () => Avatar,
|
|
1014
1022
|
AvatarStyled: () => AvatarStyled,
|
|
1015
1023
|
Badge: () => Badge,
|
|
1016
1024
|
BadgeStyled: () => BadgeStyled,
|
|
1017
|
-
BadgeText: () => BadgeText,
|
|
1018
|
-
BodyText: () => BodyText,
|
|
1019
1025
|
Box: () => Box,
|
|
1020
1026
|
Button: () => Button,
|
|
1021
1027
|
ButtonGroup: () => ButtonGroup,
|
|
@@ -1023,29 +1029,43 @@ __export(index_exports, {
|
|
|
1023
1029
|
ButtonItem: () => ButtonItem,
|
|
1024
1030
|
ButtonItemStyled: () => ButtonItemStyled,
|
|
1025
1031
|
ButtonStyled: () => ButtonStyled,
|
|
1026
|
-
CaptionText: () => CaptionText,
|
|
1027
1032
|
CheckboxGroup: () => CheckboxGroup,
|
|
1028
1033
|
CheckboxGroupStyled: () => CheckboxGroupStyled,
|
|
1029
1034
|
CheckboxItem: () => CheckboxItem,
|
|
1030
|
-
|
|
1035
|
+
Container: () => Container,
|
|
1036
|
+
ContainerStyled: () => ContainerStyled,
|
|
1031
1037
|
DropdownMenu: () => DropdownMenu2,
|
|
1032
1038
|
DropdownMenuItem: () => DropdownMenuItem,
|
|
1033
1039
|
Filter: () => Filter,
|
|
1034
1040
|
FilterItem: () => FilterItem,
|
|
1035
1041
|
Flex: () => Flex2,
|
|
1036
|
-
|
|
1042
|
+
FlexStyled: () => FlexStyled,
|
|
1043
|
+
Grid: () => Grid,
|
|
1044
|
+
GridStyled: () => GridStyled,
|
|
1037
1045
|
Icon: () => Icon,
|
|
1038
|
-
|
|
1046
|
+
Modal: () => Modal,
|
|
1047
|
+
ModalContentStyled: () => ModalContentStyled,
|
|
1048
|
+
ModalStyled: () => ModalStyled,
|
|
1049
|
+
ModalTitleStyled: () => ModalTitleStyled,
|
|
1039
1050
|
RadioGroup: () => RadioGroup,
|
|
1040
1051
|
RadioGroupStyled: () => RadioGroupStyled,
|
|
1041
1052
|
RadioItem: () => RadioItem,
|
|
1042
|
-
|
|
1053
|
+
Section: () => Section,
|
|
1054
|
+
SectionStyled: () => SectionStyled,
|
|
1055
|
+
Step: () => Step,
|
|
1056
|
+
StepContent: () => StepContent,
|
|
1057
|
+
StepList: () => StepList,
|
|
1058
|
+
StepStyled: () => StepStyled,
|
|
1059
|
+
StepTrigger: () => StepTrigger,
|
|
1060
|
+
StepWrapper: () => StepWrapper,
|
|
1061
|
+
Switch: () => Switch,
|
|
1062
|
+
SwitchStyled: () => SwitchStyled,
|
|
1043
1063
|
Text: () => Text,
|
|
1044
1064
|
TextField: () => TextField,
|
|
1045
1065
|
TextFieldSlot: () => TextFieldSlot,
|
|
1046
1066
|
TextFieldSlotStyled: () => TextFieldSlotStyled,
|
|
1047
1067
|
TextFieldStyled: () => TextFieldStyled,
|
|
1048
|
-
|
|
1068
|
+
TextStyle: () => TextStyle
|
|
1049
1069
|
});
|
|
1050
1070
|
module.exports = __toCommonJS(index_exports);
|
|
1051
1071
|
|
|
@@ -1270,7 +1290,41 @@ var fontSizes = {
|
|
|
1270
1290
|
"2xl": "1.5rem",
|
|
1271
1291
|
"3xl": "2rem",
|
|
1272
1292
|
"4xl": "2.5rem",
|
|
1273
|
-
full: "62.4375rem"
|
|
1293
|
+
full: "62.4375rem",
|
|
1294
|
+
displayLarge: "3.5rem",
|
|
1295
|
+
displayMedium: "3rem",
|
|
1296
|
+
displaySmall: "2.25rem",
|
|
1297
|
+
headline1: "2.5rem",
|
|
1298
|
+
headline2: "2rem",
|
|
1299
|
+
headline3: "1.75rem",
|
|
1300
|
+
headline4: "1.375rem",
|
|
1301
|
+
headline5: "1.25rem",
|
|
1302
|
+
headline6: "1.125rem",
|
|
1303
|
+
headline7: "1rem",
|
|
1304
|
+
headline8: "0.875rem",
|
|
1305
|
+
bodyXL: "1.25rem",
|
|
1306
|
+
bodyL: "1.125rem",
|
|
1307
|
+
bodyM: "1rem",
|
|
1308
|
+
bodyS: "0.875rem",
|
|
1309
|
+
bodyXS: "0.8125rem",
|
|
1310
|
+
bodyXXS: "0.75rem",
|
|
1311
|
+
buttonLarge: "1.25rem",
|
|
1312
|
+
buttonMedium: "0.875rem",
|
|
1313
|
+
buttonSmall: "0.875rem",
|
|
1314
|
+
buttonExtraSmall: "0.75rem",
|
|
1315
|
+
badgeLarge: "1rem",
|
|
1316
|
+
badgeMedium: "0.875rem",
|
|
1317
|
+
badgeSmall: "0.75rem",
|
|
1318
|
+
badgeExtraSmall: "0.625rem",
|
|
1319
|
+
tooltip: "0.875rem",
|
|
1320
|
+
popoversRegular: "0.875rem",
|
|
1321
|
+
labelLarge: "1rem",
|
|
1322
|
+
labelMedium: "0.875rem",
|
|
1323
|
+
labelSmall: "0.8125rem",
|
|
1324
|
+
labelExtraSmall: "0.75rem",
|
|
1325
|
+
captionLarge: "0.8125rem",
|
|
1326
|
+
captionMedium: "0.75rem",
|
|
1327
|
+
captionSmall: "0.625rem"
|
|
1274
1328
|
};
|
|
1275
1329
|
var fontWeights = {
|
|
1276
1330
|
regular: "400",
|
|
@@ -1287,8 +1341,42 @@ var lineHeights = {
|
|
|
1287
1341
|
// 12px
|
|
1288
1342
|
base: "150%",
|
|
1289
1343
|
// 16px
|
|
1290
|
-
tall: "175%"
|
|
1344
|
+
tall: "175%",
|
|
1291
1345
|
// 24px
|
|
1346
|
+
displayLarge: "4.5rem",
|
|
1347
|
+
displayMedium: "4rem",
|
|
1348
|
+
displaySmall: "3.25rem",
|
|
1349
|
+
headline1: "3.25rem",
|
|
1350
|
+
headline2: "2.75rem",
|
|
1351
|
+
headline3: "2.5rem",
|
|
1352
|
+
headline4: "1.75rem",
|
|
1353
|
+
headline5: "1.5rem",
|
|
1354
|
+
headline6: "1.375rem",
|
|
1355
|
+
headline7: "1.5rem",
|
|
1356
|
+
headline8: "1.25rem",
|
|
1357
|
+
bodyXL: "1.75rem",
|
|
1358
|
+
bodyL: "1.625rem",
|
|
1359
|
+
bodyM: "1.5rem",
|
|
1360
|
+
bodyS: "1.25rem",
|
|
1361
|
+
bodyXS: "1.125rem",
|
|
1362
|
+
bodyXXS: "1rem",
|
|
1363
|
+
buttonLarge: "1.25rem",
|
|
1364
|
+
buttonMedium: "1rem",
|
|
1365
|
+
buttonSmall: "0.875rem",
|
|
1366
|
+
buttonExtraSmall: "0.75rem",
|
|
1367
|
+
badgeLarge: "1rem",
|
|
1368
|
+
badgeMedium: "0.875rem",
|
|
1369
|
+
badgeSmall: "0.75rem",
|
|
1370
|
+
badgeExtraSmall: "0.625rem",
|
|
1371
|
+
tooltip: "1rem",
|
|
1372
|
+
popoversRegular: "1rem",
|
|
1373
|
+
labelLarge: "1.125rem",
|
|
1374
|
+
labelMedium: "1.125rem",
|
|
1375
|
+
labelSmall: "1rem",
|
|
1376
|
+
labelExtraSmall: "1rem",
|
|
1377
|
+
captionLarge: "1rem",
|
|
1378
|
+
captionMedium: "0.875rem",
|
|
1379
|
+
captionSmall: "0.75rem"
|
|
1292
1380
|
};
|
|
1293
1381
|
var radii = {
|
|
1294
1382
|
"3xs": "2px",
|
|
@@ -1368,175 +1456,211 @@ var {
|
|
|
1368
1456
|
|
|
1369
1457
|
// src/components/Text.tsx
|
|
1370
1458
|
var import_themes = require("@radix-ui/themes");
|
|
1371
|
-
var Text = styled(import_themes.Text, {
|
|
1372
|
-
fontFamily: "$default",
|
|
1373
|
-
lineHeight: "$base",
|
|
1374
|
-
color: "$gray100",
|
|
1375
|
-
letterSpacing: "$2",
|
|
1376
|
-
fontWeight: "$semibold",
|
|
1377
|
-
variants: {
|
|
1378
|
-
size: {
|
|
1379
|
-
lg: { fontSize: "$56" },
|
|
1380
|
-
md: { fontSize: "$48" },
|
|
1381
|
-
sm: { fontSize: "$36" }
|
|
1382
|
-
}
|
|
1383
|
-
},
|
|
1384
|
-
defaultVariants: {
|
|
1385
|
-
size: "md"
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
1459
|
|
|
1389
|
-
// src/
|
|
1390
|
-
var
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
fontWeight: "$semibold",
|
|
1396
|
-
variants: {
|
|
1397
|
-
size: {
|
|
1398
|
-
lg: { fontSize: "$56" },
|
|
1399
|
-
md: { fontSize: "$48" },
|
|
1400
|
-
sm: { fontSize: "$36" }
|
|
1401
|
-
}
|
|
1460
|
+
// src/types/typographyValues.ts
|
|
1461
|
+
var typographyValues = {
|
|
1462
|
+
displayLarge: {
|
|
1463
|
+
fontSize: "$displayLarge",
|
|
1464
|
+
lineHeight: "$displayLarge",
|
|
1465
|
+
letterSpacing: "$displayLarge"
|
|
1402
1466
|
},
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
// src/components/Headline.tsx
|
|
1409
|
-
var import_themes2 = require("@radix-ui/themes");
|
|
1410
|
-
var Headline = styled(import_themes2.Heading, {
|
|
1411
|
-
fontFamily: "$default",
|
|
1412
|
-
color: "$gray100",
|
|
1413
|
-
letterSpacing: "0px",
|
|
1414
|
-
variants: {
|
|
1415
|
-
size: {
|
|
1416
|
-
1: { fontSize: "$48", lineHeight: "$64", fontWeight: "$semibold" },
|
|
1417
|
-
2: { fontSize: "$32", lineHeight: "$48", fontWeight: "$semibold" },
|
|
1418
|
-
3: { fontSize: "$24", lineHeight: "$40", fontWeight: "$semibold" },
|
|
1419
|
-
4: { fontSize: "$20", lineHeight: "$36", fontWeight: "$semibold" },
|
|
1420
|
-
5: { fontSize: "$18", lineHeight: "$24", fontWeight: "$semibold" },
|
|
1421
|
-
6: { fontSize: "$18", lineHeight: "$34", fontWeight: "$medium" },
|
|
1422
|
-
7: { fontSize: "$16", lineHeight: "$32", fontWeight: "$semibold" },
|
|
1423
|
-
8: { fontSize: "$16", lineHeight: "$32", fontWeight: "$medium" }
|
|
1424
|
-
}
|
|
1467
|
+
displayMedium: {
|
|
1468
|
+
fontSize: "$displayMedium",
|
|
1469
|
+
lineHeight: "$displayMedium",
|
|
1470
|
+
letterSpacing: "$displayMedium"
|
|
1425
1471
|
},
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
// src/components/Subtitle.tsx
|
|
1432
|
-
var import_themes3 = require("@radix-ui/themes");
|
|
1433
|
-
var Subtitle = styled(import_themes3.Text, {
|
|
1434
|
-
fontFamily: "$default",
|
|
1435
|
-
color: "$gray100",
|
|
1436
|
-
letterSpacing: "0px",
|
|
1437
|
-
variants: {
|
|
1438
|
-
size: {
|
|
1439
|
-
1: { fontSize: "$20", lineHeight: "$36", fontWeight: "$regular" },
|
|
1440
|
-
2: { fontSize: "$18", lineHeight: "$34", fontWeight: "$regular" },
|
|
1441
|
-
3: { fontSize: "$16", lineHeight: "$32", fontWeight: "$regular" },
|
|
1442
|
-
4: { fontSize: "$14", lineHeight: "$24", fontWeight: "$regular" },
|
|
1443
|
-
5: { fontSize: "$14", lineHeight: "$16", fontWeight: "$semibold" }
|
|
1444
|
-
}
|
|
1472
|
+
displaySmall: {
|
|
1473
|
+
fontSize: "$displaySmall",
|
|
1474
|
+
lineHeight: "$displaySmall",
|
|
1475
|
+
letterSpacing: "$displaySmall"
|
|
1445
1476
|
},
|
|
1446
|
-
|
|
1447
|
-
|
|
1477
|
+
headline1: {
|
|
1478
|
+
fontSize: "$headline1",
|
|
1479
|
+
lineHeight: "$headline1"
|
|
1480
|
+
},
|
|
1481
|
+
headline2: {
|
|
1482
|
+
fontSize: "$headline2",
|
|
1483
|
+
lineHeight: "$headline2"
|
|
1484
|
+
},
|
|
1485
|
+
headline3: {
|
|
1486
|
+
fontSize: "$headline3",
|
|
1487
|
+
lineHeight: "$headline3"
|
|
1488
|
+
},
|
|
1489
|
+
headline4: {
|
|
1490
|
+
fontSize: "$headline4",
|
|
1491
|
+
lineHeight: "$headline4"
|
|
1492
|
+
},
|
|
1493
|
+
headline5: {
|
|
1494
|
+
fontSize: "$headline5",
|
|
1495
|
+
lineHeight: "$headline5"
|
|
1496
|
+
},
|
|
1497
|
+
headline6: {
|
|
1498
|
+
fontSize: "$headline6",
|
|
1499
|
+
lineHeight: "$headline6"
|
|
1500
|
+
},
|
|
1501
|
+
headline7: {
|
|
1502
|
+
fontSize: "$headline7",
|
|
1503
|
+
lineHeight: "$headline7"
|
|
1504
|
+
},
|
|
1505
|
+
headline8: {
|
|
1506
|
+
fontSize: "$headline8",
|
|
1507
|
+
lineHeight: "$headline8"
|
|
1508
|
+
},
|
|
1509
|
+
bodyXL: {
|
|
1510
|
+
fontSize: "$bodyXL",
|
|
1511
|
+
lineHeight: "$bodyXL"
|
|
1512
|
+
},
|
|
1513
|
+
bodyL: {
|
|
1514
|
+
fontSize: "$bodyL",
|
|
1515
|
+
lineHeight: "$bodyL"
|
|
1516
|
+
},
|
|
1517
|
+
bodyM: {
|
|
1518
|
+
fontSize: "$bodyM",
|
|
1519
|
+
lineHeight: "$bodyM"
|
|
1520
|
+
},
|
|
1521
|
+
bodyS: {
|
|
1522
|
+
fontSize: "$bodyS",
|
|
1523
|
+
lineHeight: "$bodyS"
|
|
1524
|
+
},
|
|
1525
|
+
bodyXS: {
|
|
1526
|
+
fontSize: "$bodyXS",
|
|
1527
|
+
lineHeight: "$bodyXS"
|
|
1528
|
+
},
|
|
1529
|
+
bodyXXS: {
|
|
1530
|
+
fontSize: "$bodyXXS",
|
|
1531
|
+
lineHeight: "$bodyXXS"
|
|
1532
|
+
},
|
|
1533
|
+
badgeLarge: {
|
|
1534
|
+
fontSize: "$badgeLarge",
|
|
1535
|
+
lineHeight: "$badgeLarge"
|
|
1536
|
+
},
|
|
1537
|
+
badgeMedium: {
|
|
1538
|
+
fontSize: "$badgeMedium",
|
|
1539
|
+
lineHeight: "$badgeMedium"
|
|
1540
|
+
},
|
|
1541
|
+
badgeSmall: {
|
|
1542
|
+
fontSize: "$badgeSmall",
|
|
1543
|
+
lineHeight: "$badgeSmall"
|
|
1544
|
+
},
|
|
1545
|
+
badgeExtraSmall: {
|
|
1546
|
+
fontSize: "$badgeExtraSmall",
|
|
1547
|
+
lineHeight: "$badgeExtraSmall"
|
|
1548
|
+
},
|
|
1549
|
+
tooltip: {
|
|
1550
|
+
fontSize: "$tooltip",
|
|
1551
|
+
lineHeight: "$tooltip"
|
|
1552
|
+
},
|
|
1553
|
+
popoversRegular: {
|
|
1554
|
+
fontSize: "$popoversRegular",
|
|
1555
|
+
lineHeight: "$popoversRegular"
|
|
1556
|
+
},
|
|
1557
|
+
captionLarge: {
|
|
1558
|
+
fontSize: "$captionLarge",
|
|
1559
|
+
lineHeight: "$captionLarge"
|
|
1560
|
+
},
|
|
1561
|
+
captionMedium: {
|
|
1562
|
+
fontSize: "$captionMedium",
|
|
1563
|
+
lineHeight: "$captionMedium"
|
|
1564
|
+
},
|
|
1565
|
+
captionSmall: {
|
|
1566
|
+
fontSize: "$captionSmall",
|
|
1567
|
+
lineHeight: "$captionSmall"
|
|
1568
|
+
},
|
|
1569
|
+
buttonLarge: {
|
|
1570
|
+
fontSize: "$buttonLarge",
|
|
1571
|
+
lineHeight: "$buttonLarge"
|
|
1572
|
+
},
|
|
1573
|
+
buttonMedium: {
|
|
1574
|
+
fontSize: "$buttonMedium",
|
|
1575
|
+
lineHeight: "$buttonMedium"
|
|
1576
|
+
},
|
|
1577
|
+
buttonSmall: {
|
|
1578
|
+
fontSize: "$buttonSmall",
|
|
1579
|
+
lineHeight: "$buttonSmall"
|
|
1580
|
+
},
|
|
1581
|
+
buttonExtraSmall: {
|
|
1582
|
+
fontSize: "$buttonExtraSmall",
|
|
1583
|
+
lineHeight: "$buttonExtraSmall"
|
|
1584
|
+
},
|
|
1585
|
+
labelLarge: {
|
|
1586
|
+
fontSize: "$labelLarge",
|
|
1587
|
+
lineHeight: "$labelLarge"
|
|
1588
|
+
},
|
|
1589
|
+
labelMedium: {
|
|
1590
|
+
fontSize: "$labelMedium",
|
|
1591
|
+
lineHeight: "$labelMedium"
|
|
1592
|
+
},
|
|
1593
|
+
labelSmall: {
|
|
1594
|
+
fontSize: "$labelSmall",
|
|
1595
|
+
lineHeight: "$labelSmall"
|
|
1596
|
+
},
|
|
1597
|
+
labelExtraSmall: {
|
|
1598
|
+
fontSize: "$labelExtraSmall",
|
|
1599
|
+
lineHeight: "$labelExtraSmall"
|
|
1448
1600
|
}
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
fontFamily: "$default",
|
|
1455
|
-
color: "$gray100",
|
|
1456
|
-
fontWeight: "$regular",
|
|
1457
|
-
variants: {
|
|
1458
|
-
size: {
|
|
1459
|
-
1: { fontSize: "$16", lineHeight: "$24" },
|
|
1460
|
-
2: { fontSize: "$14", lineHeight: "$24" },
|
|
1461
|
-
3: { fontSize: "$13", lineHeight: "$24" },
|
|
1462
|
-
4: { fontSize: "$12", lineHeight: "$16" }
|
|
1463
|
-
}
|
|
1601
|
+
};
|
|
1602
|
+
var typographyButtonValues = {
|
|
1603
|
+
buttonLarge: {
|
|
1604
|
+
fontSize: "$buttonLarge",
|
|
1605
|
+
lineHeight: "$buttonLarge"
|
|
1464
1606
|
},
|
|
1465
|
-
|
|
1466
|
-
|
|
1607
|
+
buttonMedium: {
|
|
1608
|
+
fontSize: "$buttonMedium",
|
|
1609
|
+
lineHeight: "$buttonMedium"
|
|
1610
|
+
},
|
|
1611
|
+
buttonSmall: {
|
|
1612
|
+
fontSize: "$buttonSmall",
|
|
1613
|
+
lineHeight: "$buttonSmall"
|
|
1614
|
+
},
|
|
1615
|
+
buttonExtraSmall: {
|
|
1616
|
+
fontSize: "$buttonExtraSmall",
|
|
1617
|
+
lineHeight: "$buttonExtraSmall"
|
|
1467
1618
|
}
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
fontFamily: "$default",
|
|
1474
|
-
color: "$gray100",
|
|
1475
|
-
letterSpacing: "0px",
|
|
1476
|
-
variants: {
|
|
1477
|
-
size: {
|
|
1478
|
-
1: { fontSize: "$18", lineHeight: "$22", fontWeight: "$semibold" },
|
|
1479
|
-
2: { fontSize: "$14", lineHeight: "$16", fontWeight: "$medium" },
|
|
1480
|
-
3: { fontSize: "$14", lineHeight: "$16", fontWeight: "$regular" },
|
|
1481
|
-
4: { fontSize: "$13", lineHeight: "$16", fontWeight: "$semibold", letterSpacing: "2px" },
|
|
1482
|
-
5: { fontSize: "$13", lineHeight: "$16", fontWeight: "$medium" },
|
|
1483
|
-
6: { fontSize: "$13", lineHeight: "$16", fontWeight: "$regular" },
|
|
1484
|
-
7: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" }
|
|
1485
|
-
}
|
|
1619
|
+
};
|
|
1620
|
+
var typographyLabelValues = {
|
|
1621
|
+
labelLarge: {
|
|
1622
|
+
fontSize: "$labelLarge",
|
|
1623
|
+
lineHeight: "$labelLarge"
|
|
1486
1624
|
},
|
|
1487
|
-
|
|
1488
|
-
|
|
1625
|
+
labelMedium: {
|
|
1626
|
+
fontSize: "$labelMedium",
|
|
1627
|
+
lineHeight: "$labelMedium"
|
|
1628
|
+
},
|
|
1629
|
+
labelSmall: {
|
|
1630
|
+
fontSize: "$labelSmall",
|
|
1631
|
+
lineHeight: "$labelSmall"
|
|
1632
|
+
},
|
|
1633
|
+
labelExtraSmall: {
|
|
1634
|
+
fontSize: "$labelExtraSmall",
|
|
1635
|
+
lineHeight: "$labelExtraSmall"
|
|
1489
1636
|
}
|
|
1490
|
-
}
|
|
1637
|
+
};
|
|
1491
1638
|
|
|
1492
|
-
// src/components/
|
|
1493
|
-
var
|
|
1494
|
-
var
|
|
1639
|
+
// src/components/Text.tsx
|
|
1640
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
1641
|
+
var TextStyle = styled(import_themes.Text, {
|
|
1495
1642
|
fontFamily: "$default",
|
|
1643
|
+
lineHeight: "$base",
|
|
1496
1644
|
color: "$gray100",
|
|
1497
|
-
letterSpacing: "0px",
|
|
1498
1645
|
variants: {
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
"sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1506
|
-
"md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1507
|
-
"xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
|
|
1646
|
+
typography: typographyValues,
|
|
1647
|
+
fontWeight: {
|
|
1648
|
+
regular: { fontWeight: "$regular" },
|
|
1649
|
+
medium: { fontWeight: "$medium" },
|
|
1650
|
+
semibold: { fontWeight: "$semibold" },
|
|
1651
|
+
bold: { fontWeight: "$bold" }
|
|
1508
1652
|
}
|
|
1509
|
-
},
|
|
1510
|
-
defaultVariants: {
|
|
1511
|
-
size: "1"
|
|
1512
1653
|
}
|
|
1513
1654
|
});
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
fontFamily: "$default",
|
|
1519
|
-
color: "$gray100",
|
|
1520
|
-
letterSpacing: "0px",
|
|
1521
|
-
fontSize: "$14",
|
|
1522
|
-
lineHeight: "$16",
|
|
1523
|
-
fontWeight: "$regular"
|
|
1524
|
-
});
|
|
1525
|
-
|
|
1526
|
-
// src/components/TooltipText.tsx
|
|
1527
|
-
var TooltipText = styled("span", {
|
|
1528
|
-
fontFamily: "$default",
|
|
1529
|
-
color: "$gray100",
|
|
1530
|
-
letterSpacing: "0px",
|
|
1531
|
-
fontSize: "$13",
|
|
1532
|
-
lineHeight: "$16",
|
|
1533
|
-
fontWeight: "$regular"
|
|
1534
|
-
});
|
|
1655
|
+
function Text(_a) {
|
|
1656
|
+
var props = __objRest(_a, []);
|
|
1657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TextStyle, __spreadValues({}, props));
|
|
1658
|
+
}
|
|
1535
1659
|
|
|
1536
1660
|
// src/components/Button.tsx
|
|
1537
|
-
var
|
|
1538
|
-
var
|
|
1539
|
-
var ButtonStyled = styled(
|
|
1661
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
1662
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1663
|
+
var ButtonStyled = styled(import_themes2.Button, {
|
|
1540
1664
|
fontFamily: "$default",
|
|
1541
1665
|
letterSpacing: 0,
|
|
1542
1666
|
border: 0,
|
|
@@ -1548,19 +1672,10 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1548
1672
|
alignItems: "center",
|
|
1549
1673
|
justifyContent: "center",
|
|
1550
1674
|
gap: "$10",
|
|
1551
|
-
"&:hover": {
|
|
1552
|
-
transform: "scale(1.05)"
|
|
1553
|
-
},
|
|
1554
|
-
"&:active": {
|
|
1555
|
-
transform: "scale(0.95)"
|
|
1556
|
-
},
|
|
1557
1675
|
"&:disabled": {
|
|
1558
1676
|
cursor: "not-allowed",
|
|
1559
1677
|
transition: "none"
|
|
1560
1678
|
},
|
|
1561
|
-
"&:hover:disabled": {
|
|
1562
|
-
transform: "none"
|
|
1563
|
-
},
|
|
1564
1679
|
variants: {
|
|
1565
1680
|
color: {
|
|
1566
1681
|
brand: {},
|
|
@@ -1614,27 +1729,12 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1614
1729
|
}
|
|
1615
1730
|
}
|
|
1616
1731
|
},
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
}
|
|
1623
|
-
sm: {
|
|
1624
|
-
padding: "$8 $14",
|
|
1625
|
-
fontSize: "$13",
|
|
1626
|
-
lineHeight: "$smaller"
|
|
1627
|
-
},
|
|
1628
|
-
md: {
|
|
1629
|
-
padding: "$12 $16",
|
|
1630
|
-
fontSize: "$14",
|
|
1631
|
-
lineHeight: "$smaller"
|
|
1632
|
-
},
|
|
1633
|
-
lg: {
|
|
1634
|
-
padding: "$13 $20",
|
|
1635
|
-
fontSize: "$18",
|
|
1636
|
-
lineHeight: "$smaller"
|
|
1637
|
-
}
|
|
1732
|
+
typography: typographyButtonValues,
|
|
1733
|
+
fontWeight: {
|
|
1734
|
+
regular: { fontWeight: "$regular" },
|
|
1735
|
+
medium: { fontWeight: "$medium" },
|
|
1736
|
+
semibold: { fontWeight: "$semibold" },
|
|
1737
|
+
bold: { fontWeight: "$bold" }
|
|
1638
1738
|
},
|
|
1639
1739
|
radii: {
|
|
1640
1740
|
"full": {
|
|
@@ -1644,7 +1744,7 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1644
1744
|
},
|
|
1645
1745
|
defaultVariants: {
|
|
1646
1746
|
variant: "contained",
|
|
1647
|
-
|
|
1747
|
+
typography: "buttonMedium",
|
|
1648
1748
|
color: "brand"
|
|
1649
1749
|
},
|
|
1650
1750
|
compoundVariants: [
|
|
@@ -1721,6 +1821,9 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1721
1821
|
css: {
|
|
1722
1822
|
color: "$grey50",
|
|
1723
1823
|
backgroundColor: "$brand500",
|
|
1824
|
+
borderWidth: "$2",
|
|
1825
|
+
borderStyle: "solid",
|
|
1826
|
+
borderColor: "transparent",
|
|
1724
1827
|
"&:hover": {
|
|
1725
1828
|
borderColor: "$brand700",
|
|
1726
1829
|
backgroundColor: "$blue600"
|
|
@@ -1867,14 +1970,14 @@ var ButtonStyled = styled(import_themes8.Button, {
|
|
|
1867
1970
|
});
|
|
1868
1971
|
function Button(_a) {
|
|
1869
1972
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
1870
|
-
const Component = asChild ?
|
|
1871
|
-
return /* @__PURE__ */ (0,
|
|
1973
|
+
const Component = asChild ? import_themes2.Button : "button";
|
|
1974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadValues({ as: Component }, props));
|
|
1872
1975
|
}
|
|
1873
1976
|
|
|
1874
1977
|
// src/components/ButtonGroup.tsx
|
|
1875
|
-
var
|
|
1876
|
-
var
|
|
1877
|
-
var ButtonItemStyled = styled(
|
|
1978
|
+
var import_themes3 = require("@radix-ui/themes");
|
|
1979
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1980
|
+
var ButtonItemStyled = styled(import_themes3.Button, {
|
|
1878
1981
|
fontFamily: "$default",
|
|
1879
1982
|
letterSpacing: 0,
|
|
1880
1983
|
border: 0,
|
|
@@ -1887,7 +1990,7 @@ var ButtonItemStyled = styled(import_themes9.Button, {
|
|
|
1887
1990
|
}
|
|
1888
1991
|
}
|
|
1889
1992
|
});
|
|
1890
|
-
var ButtonGroupStyled = styled(
|
|
1993
|
+
var ButtonGroupStyled = styled(import_themes3.Flex, {
|
|
1891
1994
|
display: "flex",
|
|
1892
1995
|
borderRadius: "$md",
|
|
1893
1996
|
overflow: "hidden",
|
|
@@ -1928,79 +2031,85 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
1928
2031
|
}
|
|
1929
2032
|
}
|
|
1930
2033
|
},
|
|
1931
|
-
|
|
1932
|
-
|
|
2034
|
+
typography: {
|
|
2035
|
+
buttonLarge: {
|
|
1933
2036
|
[`& ${ButtonItemStyled}`]: {
|
|
1934
|
-
padding: "$
|
|
1935
|
-
fontSize: "$
|
|
1936
|
-
lineHeight: "$
|
|
2037
|
+
padding: "$13 $20",
|
|
2038
|
+
fontSize: "$buttonLarge",
|
|
2039
|
+
lineHeight: "$buttonLarge",
|
|
1937
2040
|
"&:not(:first-child)": {
|
|
1938
2041
|
borderLeft: "none"
|
|
1939
2042
|
},
|
|
1940
2043
|
"&:first-child": {
|
|
1941
|
-
borderTopLeftRadius: "$
|
|
1942
|
-
borderBottomLeftRadius: "$
|
|
2044
|
+
borderTopLeftRadius: "$lg",
|
|
2045
|
+
borderBottomLeftRadius: "$lg"
|
|
1943
2046
|
},
|
|
1944
2047
|
"&:last-child": {
|
|
1945
|
-
borderTopRightRadius: "$
|
|
1946
|
-
borderBottomRightRadius: "$
|
|
2048
|
+
borderTopRightRadius: "$lg",
|
|
2049
|
+
borderBottomRightRadius: "$lg"
|
|
1947
2050
|
}
|
|
1948
2051
|
}
|
|
1949
2052
|
},
|
|
1950
|
-
|
|
2053
|
+
buttonMedium: {
|
|
1951
2054
|
[`& ${ButtonItemStyled}`]: {
|
|
1952
|
-
padding: "$
|
|
1953
|
-
fontSize: "$
|
|
1954
|
-
lineHeight: "$
|
|
2055
|
+
padding: "$12 $16",
|
|
2056
|
+
fontSize: "$buttonMedium",
|
|
2057
|
+
lineHeight: "$buttonMedium",
|
|
1955
2058
|
"&:not(:first-child)": {
|
|
1956
2059
|
borderLeft: "none"
|
|
1957
2060
|
},
|
|
1958
2061
|
"&:first-child": {
|
|
1959
|
-
borderTopLeftRadius: "$
|
|
1960
|
-
borderBottomLeftRadius: "$
|
|
2062
|
+
borderTopLeftRadius: "$md",
|
|
2063
|
+
borderBottomLeftRadius: "$md"
|
|
1961
2064
|
},
|
|
1962
2065
|
"&:last-child": {
|
|
1963
|
-
borderTopRightRadius: "$
|
|
1964
|
-
borderBottomRightRadius: "$
|
|
2066
|
+
borderTopRightRadius: "$md",
|
|
2067
|
+
borderBottomRightRadius: "$md"
|
|
1965
2068
|
}
|
|
1966
2069
|
}
|
|
1967
2070
|
},
|
|
1968
|
-
|
|
2071
|
+
buttonSmall: {
|
|
1969
2072
|
[`& ${ButtonItemStyled}`]: {
|
|
1970
|
-
padding: "$
|
|
1971
|
-
fontSize: "$
|
|
1972
|
-
lineHeight: "$
|
|
2073
|
+
padding: "$8 $14",
|
|
2074
|
+
fontSize: "$buttonSmall",
|
|
2075
|
+
lineHeight: "$buttonSmall",
|
|
1973
2076
|
"&:not(:first-child)": {
|
|
1974
2077
|
borderLeft: "none"
|
|
1975
2078
|
},
|
|
1976
2079
|
"&:first-child": {
|
|
1977
|
-
borderTopLeftRadius: "$
|
|
1978
|
-
borderBottomLeftRadius: "$
|
|
2080
|
+
borderTopLeftRadius: "$sm",
|
|
2081
|
+
borderBottomLeftRadius: "$sm"
|
|
1979
2082
|
},
|
|
1980
2083
|
"&:last-child": {
|
|
1981
|
-
borderTopRightRadius: "$
|
|
1982
|
-
borderBottomRightRadius: "$
|
|
2084
|
+
borderTopRightRadius: "$sm",
|
|
2085
|
+
borderBottomRightRadius: "$sm"
|
|
1983
2086
|
}
|
|
1984
2087
|
}
|
|
1985
2088
|
},
|
|
1986
|
-
|
|
2089
|
+
buttonExtraSmall: {
|
|
1987
2090
|
[`& ${ButtonItemStyled}`]: {
|
|
1988
|
-
padding: "$
|
|
1989
|
-
fontSize: "$
|
|
1990
|
-
lineHeight: "$
|
|
2091
|
+
padding: "$6 $12",
|
|
2092
|
+
fontSize: "$buttonExtraSmall",
|
|
2093
|
+
lineHeight: "$buttonExtraSmall",
|
|
1991
2094
|
"&:not(:first-child)": {
|
|
1992
2095
|
borderLeft: "none"
|
|
1993
2096
|
},
|
|
1994
2097
|
"&:first-child": {
|
|
1995
|
-
borderTopLeftRadius: "$
|
|
1996
|
-
borderBottomLeftRadius: "$
|
|
2098
|
+
borderTopLeftRadius: "$xs",
|
|
2099
|
+
borderBottomLeftRadius: "$xs"
|
|
1997
2100
|
},
|
|
1998
2101
|
"&:last-child": {
|
|
1999
|
-
borderTopRightRadius: "$
|
|
2000
|
-
borderBottomRightRadius: "$
|
|
2102
|
+
borderTopRightRadius: "$xs",
|
|
2103
|
+
borderBottomRightRadius: "$xs"
|
|
2001
2104
|
}
|
|
2002
2105
|
}
|
|
2003
2106
|
}
|
|
2107
|
+
},
|
|
2108
|
+
fontWeight: {
|
|
2109
|
+
regular: { [`& ${ButtonItemStyled}`]: { fontWeight: "$regular" } },
|
|
2110
|
+
medium: { [`& ${ButtonItemStyled}`]: { fontWeight: "$medium" } },
|
|
2111
|
+
semibold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$semibold" } },
|
|
2112
|
+
bold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$bold" } }
|
|
2004
2113
|
}
|
|
2005
2114
|
},
|
|
2006
2115
|
compoundVariants: [
|
|
@@ -2326,23 +2435,24 @@ var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
|
2326
2435
|
],
|
|
2327
2436
|
defaultVariants: {
|
|
2328
2437
|
variant: "contained",
|
|
2329
|
-
|
|
2438
|
+
typography: "buttonMedium",
|
|
2439
|
+
fontWeight: "medium",
|
|
2330
2440
|
color: "brand"
|
|
2331
2441
|
}
|
|
2332
2442
|
});
|
|
2333
2443
|
function ButtonItem(_a) {
|
|
2334
2444
|
var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
|
|
2335
|
-
return /* @__PURE__ */ (0,
|
|
2445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
|
|
2336
2446
|
}
|
|
2337
2447
|
function ButtonGroup(_a) {
|
|
2338
2448
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2339
|
-
return /* @__PURE__ */ (0,
|
|
2449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2340
2450
|
}
|
|
2341
2451
|
|
|
2342
2452
|
// src/components/Avatar.tsx
|
|
2343
|
-
var
|
|
2344
|
-
var
|
|
2345
|
-
var AvatarStyled = styled(
|
|
2453
|
+
var import_themes4 = require("@radix-ui/themes");
|
|
2454
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2455
|
+
var AvatarStyled = styled(import_themes4.Avatar, {
|
|
2346
2456
|
fontFamily: "$default",
|
|
2347
2457
|
color: "$gray100",
|
|
2348
2458
|
letterSpacing: "0px",
|
|
@@ -2386,61 +2496,15 @@ var AvatarStyled = styled(import_themes10.Avatar, {
|
|
|
2386
2496
|
});
|
|
2387
2497
|
function Avatar(_a) {
|
|
2388
2498
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
2389
|
-
return /* @__PURE__ */ (0,
|
|
2499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarStyled, __spreadValues({ as: import_themes4.Avatar }, props));
|
|
2390
2500
|
}
|
|
2391
2501
|
|
|
2392
|
-
// src/components/Flex.tsx
|
|
2393
|
-
var import_themes11 = require("@radix-ui/themes");
|
|
2394
|
-
var Flex2 = styled(import_themes11.Flex, {
|
|
2395
|
-
display: "flex",
|
|
2396
|
-
variants: {
|
|
2397
|
-
direction: {
|
|
2398
|
-
row: { flexDirection: "row" },
|
|
2399
|
-
column: { flexDirection: "column" },
|
|
2400
|
-
"row-reverse": { flexDirection: "row-reverse" },
|
|
2401
|
-
"column-reverse": { flexDirection: "column-reverse" }
|
|
2402
|
-
},
|
|
2403
|
-
gap: {
|
|
2404
|
-
2: { gap: "$2" },
|
|
2405
|
-
4: { gap: "$4" },
|
|
2406
|
-
6: { gap: "$6" },
|
|
2407
|
-
8: { gap: "$8" },
|
|
2408
|
-
10: { gap: "$10" },
|
|
2409
|
-
12: { gap: "$12" },
|
|
2410
|
-
14: { gap: "$14" },
|
|
2411
|
-
16: { gap: "$16" },
|
|
2412
|
-
20: { gap: "$20" },
|
|
2413
|
-
22: { gap: "$22" },
|
|
2414
|
-
24: { gap: "$24" },
|
|
2415
|
-
32: { gap: "$32" },
|
|
2416
|
-
36: { gap: "$36" },
|
|
2417
|
-
40: { gap: "$40" },
|
|
2418
|
-
48: { gap: "$48" },
|
|
2419
|
-
56: { gap: "$56" },
|
|
2420
|
-
64: { gap: "$64" },
|
|
2421
|
-
72: { gap: "$72" },
|
|
2422
|
-
80: { gap: "$80" },
|
|
2423
|
-
full: { gap: "$full" }
|
|
2424
|
-
}
|
|
2425
|
-
},
|
|
2426
|
-
defaultVariants: {
|
|
2427
|
-
direction: "row",
|
|
2428
|
-
gap: 10
|
|
2429
|
-
}
|
|
2430
|
-
});
|
|
2431
|
-
|
|
2432
|
-
// src/components/Box.tsx
|
|
2433
|
-
var import_themes12 = require("@radix-ui/themes");
|
|
2434
|
-
var Box = import_themes12.Box;
|
|
2435
|
-
|
|
2436
2502
|
// src/components/TextField.tsx
|
|
2437
|
-
var
|
|
2438
|
-
var
|
|
2439
|
-
var TextFieldStyled = styled(
|
|
2503
|
+
var import_themes5 = require("@radix-ui/themes");
|
|
2504
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
2505
|
+
var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
2440
2506
|
height: "$40",
|
|
2441
2507
|
fontFamily: "$default",
|
|
2442
|
-
letterSpacing: "0px",
|
|
2443
|
-
fontSize: "$13",
|
|
2444
2508
|
padding: "$12 $14",
|
|
2445
2509
|
borderRadius: "$sm",
|
|
2446
2510
|
boxSizing: "border-box",
|
|
@@ -2454,7 +2518,8 @@ var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
|
2454
2518
|
outline: "none",
|
|
2455
2519
|
padding: 0,
|
|
2456
2520
|
margin: 0,
|
|
2457
|
-
width: "100%"
|
|
2521
|
+
width: "100%",
|
|
2522
|
+
font: "inherit"
|
|
2458
2523
|
},
|
|
2459
2524
|
"&:has(input:focus)": {
|
|
2460
2525
|
border: "2px solid $brand300"
|
|
@@ -2486,7 +2551,7 @@ var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
|
2486
2551
|
"input::placeholder": {
|
|
2487
2552
|
color: "$error400"
|
|
2488
2553
|
},
|
|
2489
|
-
"
|
|
2554
|
+
"&:has(input:focus)": {
|
|
2490
2555
|
border: "2px solid $error400"
|
|
2491
2556
|
},
|
|
2492
2557
|
"&:has(input:disabled)": {
|
|
@@ -2497,6 +2562,13 @@ var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
|
2497
2562
|
}
|
|
2498
2563
|
}
|
|
2499
2564
|
},
|
|
2565
|
+
typography: typographyValues,
|
|
2566
|
+
fontWeight: {
|
|
2567
|
+
regular: { fontWeight: "$regular" },
|
|
2568
|
+
medium: { fontWeight: "$medium" },
|
|
2569
|
+
semibold: { fontWeight: "$semibold" },
|
|
2570
|
+
bold: { fontWeight: "$bold" }
|
|
2571
|
+
},
|
|
2500
2572
|
isValid: {
|
|
2501
2573
|
true: {},
|
|
2502
2574
|
false: {}
|
|
@@ -2545,62 +2617,116 @@ var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
|
2545
2617
|
}
|
|
2546
2618
|
]
|
|
2547
2619
|
});
|
|
2548
|
-
var TextFieldSlotStyled = styled(
|
|
2620
|
+
var TextFieldSlotStyled = styled(import_themes5.TextField.Slot, {
|
|
2549
2621
|
display: "flex",
|
|
2550
2622
|
alignItems: "center",
|
|
2551
|
-
justifyContent: "center"
|
|
2623
|
+
justifyContent: "center",
|
|
2624
|
+
variants: {
|
|
2625
|
+
typography: typographyValues,
|
|
2626
|
+
fontWeight: {
|
|
2627
|
+
regular: { fontWeight: "$regular" },
|
|
2628
|
+
medium: { fontWeight: "$medium" },
|
|
2629
|
+
semibold: { fontWeight: "$semibold" },
|
|
2630
|
+
bold: { fontWeight: "$bold" }
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2552
2633
|
});
|
|
2553
2634
|
function TextField(_a) {
|
|
2554
2635
|
var _b = _a, {
|
|
2555
2636
|
children,
|
|
2556
2637
|
isValid,
|
|
2557
2638
|
name,
|
|
2558
|
-
color
|
|
2639
|
+
color,
|
|
2640
|
+
typography,
|
|
2641
|
+
fontWeight
|
|
2559
2642
|
} = _b, props = __objRest(_b, [
|
|
2560
2643
|
"children",
|
|
2561
2644
|
"isValid",
|
|
2562
2645
|
"name",
|
|
2563
|
-
"color"
|
|
2646
|
+
"color",
|
|
2647
|
+
"typography",
|
|
2648
|
+
"fontWeight"
|
|
2564
2649
|
]);
|
|
2565
|
-
return /* @__PURE__ */ (0,
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
2651
|
+
TextFieldStyled,
|
|
2652
|
+
__spreadProps(__spreadValues({
|
|
2653
|
+
color,
|
|
2654
|
+
isValid,
|
|
2655
|
+
name,
|
|
2656
|
+
typography,
|
|
2657
|
+
fontWeight
|
|
2658
|
+
}, props), {
|
|
2659
|
+
children: [
|
|
2660
|
+
children,
|
|
2661
|
+
isValid && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2662
|
+
TextFieldSlot,
|
|
2663
|
+
{
|
|
2664
|
+
position: "flex-end",
|
|
2665
|
+
name,
|
|
2666
|
+
color,
|
|
2667
|
+
typography,
|
|
2668
|
+
fontWeight,
|
|
2669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "check" })
|
|
2670
|
+
}
|
|
2671
|
+
)
|
|
2672
|
+
]
|
|
2673
|
+
})
|
|
2674
|
+
);
|
|
2675
|
+
}
|
|
2676
|
+
function TextFieldSlot(_a) {
|
|
2677
|
+
var _b = _a, {
|
|
2678
|
+
children,
|
|
2679
|
+
position = "flex-start",
|
|
2680
|
+
onClick,
|
|
2681
|
+
typography = "bodyXS",
|
|
2682
|
+
fontWeight = "regular"
|
|
2683
|
+
} = _b, props = __objRest(_b, [
|
|
2576
2684
|
"children",
|
|
2577
2685
|
"position",
|
|
2578
|
-
"onClick"
|
|
2686
|
+
"onClick",
|
|
2687
|
+
"typography",
|
|
2688
|
+
"fontWeight"
|
|
2579
2689
|
]);
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2690
|
+
const sharedStyles = __spreadProps(__spreadValues({
|
|
2691
|
+
typography,
|
|
2692
|
+
fontWeight
|
|
2693
|
+
}, props), {
|
|
2694
|
+
color: void 0
|
|
2695
|
+
});
|
|
2696
|
+
return !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2697
|
+
TextFieldSlotStyled,
|
|
2698
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2699
|
+
style: {
|
|
2700
|
+
position: "absolute",
|
|
2701
|
+
left: position === "flex-end" ? "none" : 15,
|
|
2702
|
+
right: position === "flex-start" ? "none" : 15,
|
|
2703
|
+
padding: 13,
|
|
2704
|
+
zIndex: 2,
|
|
2705
|
+
top: 0,
|
|
2706
|
+
cursor: "pointer"
|
|
2707
|
+
},
|
|
2708
|
+
onClick: () => onClick(),
|
|
2709
|
+
children
|
|
2710
|
+
})
|
|
2711
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2712
|
+
TextFieldSlotStyled,
|
|
2713
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2714
|
+
style: {
|
|
2715
|
+
float: position === "flex-start" ? "left" : "right",
|
|
2716
|
+
order: position === "flex-start" ? 0 : 2,
|
|
2717
|
+
marginLeft: position === "flex-start" ? 0 : 15,
|
|
2718
|
+
marginRight: position === "flex-end" ? 0 : 15
|
|
2719
|
+
},
|
|
2720
|
+
children
|
|
2721
|
+
})
|
|
2722
|
+
);
|
|
2595
2723
|
}
|
|
2596
2724
|
|
|
2597
2725
|
// src/components/RadioGroup.tsx
|
|
2598
|
-
var
|
|
2599
|
-
var
|
|
2600
|
-
var RadioGroupStyled = styled(
|
|
2726
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
2727
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2728
|
+
var RadioGroupStyled = styled(import_themes6.RadioGroup.Root, {
|
|
2601
2729
|
fontFamily: "$default",
|
|
2602
|
-
letterSpacing: "0px",
|
|
2603
|
-
fontSize: "$13",
|
|
2604
2730
|
"label": {
|
|
2605
2731
|
display: "flex",
|
|
2606
2732
|
alignItems: "center",
|
|
@@ -2688,6 +2814,13 @@ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
|
2688
2814
|
}
|
|
2689
2815
|
},
|
|
2690
2816
|
false: {}
|
|
2817
|
+
},
|
|
2818
|
+
typography: typographyLabelValues,
|
|
2819
|
+
fontWeight: {
|
|
2820
|
+
regular: { fontWeight: "$regular" },
|
|
2821
|
+
medium: { fontWeight: "$medium" },
|
|
2822
|
+
semibold: { fontWeight: "$semibold" },
|
|
2823
|
+
bold: { fontWeight: "$bold" }
|
|
2691
2824
|
}
|
|
2692
2825
|
},
|
|
2693
2826
|
compoundVariants: [
|
|
@@ -2761,7 +2894,7 @@ function RadioGroup(_a) {
|
|
|
2761
2894
|
"children",
|
|
2762
2895
|
"disabled"
|
|
2763
2896
|
]);
|
|
2764
|
-
return /* @__PURE__ */ (0,
|
|
2897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
2765
2898
|
RadioGroupStyled,
|
|
2766
2899
|
__spreadProps(__spreadValues({
|
|
2767
2900
|
disabled
|
|
@@ -2776,16 +2909,14 @@ function RadioItem(_a) {
|
|
|
2776
2909
|
} = _b, props = __objRest(_b, [
|
|
2777
2910
|
"children"
|
|
2778
2911
|
]);
|
|
2779
|
-
return /* @__PURE__ */ (0,
|
|
2912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes6.RadioGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2780
2913
|
}
|
|
2781
2914
|
|
|
2782
2915
|
// src/components/CheckboxGroup.tsx
|
|
2783
|
-
var
|
|
2784
|
-
var
|
|
2785
|
-
var CheckboxGroupStyled = styled(
|
|
2916
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
2917
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
2918
|
+
var CheckboxGroupStyled = styled(import_themes7.CheckboxGroup.Root, {
|
|
2786
2919
|
fontFamily: "$default",
|
|
2787
|
-
letterSpacing: "0px",
|
|
2788
|
-
fontSize: "$13",
|
|
2789
2920
|
"svg": {
|
|
2790
2921
|
display: "none"
|
|
2791
2922
|
},
|
|
@@ -2875,6 +3006,13 @@ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
|
2875
3006
|
}
|
|
2876
3007
|
},
|
|
2877
3008
|
false: {}
|
|
3009
|
+
},
|
|
3010
|
+
typography: typographyLabelValues,
|
|
3011
|
+
fontWeight: {
|
|
3012
|
+
regular: { fontWeight: "$regular" },
|
|
3013
|
+
medium: { fontWeight: "$medium" },
|
|
3014
|
+
semibold: { fontWeight: "$semibold" },
|
|
3015
|
+
bold: { fontWeight: "$bold" }
|
|
2878
3016
|
}
|
|
2879
3017
|
},
|
|
2880
3018
|
compoundVariants: [
|
|
@@ -2946,7 +3084,7 @@ function CheckboxGroup(_a) {
|
|
|
2946
3084
|
} = _b, props = __objRest(_b, [
|
|
2947
3085
|
"children"
|
|
2948
3086
|
]);
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
3087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2950
3088
|
}
|
|
2951
3089
|
function CheckboxItem(_a) {
|
|
2952
3090
|
var _b = _a, {
|
|
@@ -2954,12 +3092,40 @@ function CheckboxItem(_a) {
|
|
|
2954
3092
|
} = _b, props = __objRest(_b, [
|
|
2955
3093
|
"children"
|
|
2956
3094
|
]);
|
|
2957
|
-
return /* @__PURE__ */ (0,
|
|
3095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes7.CheckboxGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2958
3096
|
}
|
|
2959
3097
|
|
|
2960
3098
|
// src/components/Filter.tsx
|
|
2961
|
-
var
|
|
2962
|
-
var
|
|
3099
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
3100
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
3101
|
+
var FilterContentStyled = styled(import_themes8.DropdownMenu.Content, {
|
|
3102
|
+
background: "white",
|
|
3103
|
+
padding: "$8 $12",
|
|
3104
|
+
border: "1px solid $dark300",
|
|
3105
|
+
borderRadius: "$xs",
|
|
3106
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3107
|
+
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
3108
|
+
minWidth: "100%",
|
|
3109
|
+
marginTop: "3px",
|
|
3110
|
+
fontFamily: "$default",
|
|
3111
|
+
variants: {
|
|
3112
|
+
typography: typographyLabelValues,
|
|
3113
|
+
fontWeight: {
|
|
3114
|
+
regular: {
|
|
3115
|
+
fontWeight: "$regular"
|
|
3116
|
+
},
|
|
3117
|
+
medium: {
|
|
3118
|
+
fontWeight: "$medium"
|
|
3119
|
+
},
|
|
3120
|
+
semibold: {
|
|
3121
|
+
fontWeight: "$semibold"
|
|
3122
|
+
},
|
|
3123
|
+
bold: {
|
|
3124
|
+
fontWeight: "$bold"
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
});
|
|
2963
3129
|
var FilterStyled = styled("div", {
|
|
2964
3130
|
fontFamily: "$default",
|
|
2965
3131
|
color: "$dark600",
|
|
@@ -2985,39 +3151,77 @@ var FilterStyled = styled("div", {
|
|
|
2985
3151
|
"svg:last-child": {
|
|
2986
3152
|
marginLeft: "auto"
|
|
2987
3153
|
}
|
|
3154
|
+
},
|
|
3155
|
+
variants: {
|
|
3156
|
+
typography: {
|
|
3157
|
+
labelLarge: {
|
|
3158
|
+
"span": {
|
|
3159
|
+
fontSize: "$labelLarge",
|
|
3160
|
+
lineHeight: "$labelLarge"
|
|
3161
|
+
}
|
|
3162
|
+
},
|
|
3163
|
+
labelMedium: {
|
|
3164
|
+
"span": {
|
|
3165
|
+
fontSize: "$labelMedium",
|
|
3166
|
+
lineHeight: "$labelMedium"
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
labelSmall: {
|
|
3170
|
+
"span": {
|
|
3171
|
+
fontSize: "$labelSmall",
|
|
3172
|
+
lineHeight: "$labelSmall"
|
|
3173
|
+
}
|
|
3174
|
+
},
|
|
3175
|
+
labelExtraSmall: {
|
|
3176
|
+
"span": {
|
|
3177
|
+
fontSize: "$labelExtraSmall",
|
|
3178
|
+
lineHeight: "$labelExtraSmall"
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
},
|
|
3182
|
+
fontWeight: {
|
|
3183
|
+
regular: {
|
|
3184
|
+
"span": { fontWeight: "$regular" }
|
|
3185
|
+
},
|
|
3186
|
+
medium: {
|
|
3187
|
+
"span": { fontWeight: "$medium" }
|
|
3188
|
+
},
|
|
3189
|
+
semibold: {
|
|
3190
|
+
"span": { fontWeight: "$semibold" }
|
|
3191
|
+
},
|
|
3192
|
+
bold: {
|
|
3193
|
+
"span": { fontWeight: "$bold" }
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
2988
3196
|
}
|
|
2989
3197
|
});
|
|
2990
|
-
var FilterContentStyled = styled(import_themes16.DropdownMenu.Content, {
|
|
2991
|
-
background: "white",
|
|
2992
|
-
padding: "$8 $12",
|
|
2993
|
-
border: "1px solid $dark300",
|
|
2994
|
-
borderRadius: "$xs",
|
|
2995
|
-
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
2996
|
-
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
2997
|
-
minWidth: "100%",
|
|
2998
|
-
marginTop: "3px"
|
|
2999
|
-
});
|
|
3000
3198
|
function Filter(_a) {
|
|
3001
3199
|
var _b = _a, {
|
|
3002
3200
|
children,
|
|
3003
|
-
placeholder
|
|
3201
|
+
placeholder,
|
|
3202
|
+
typography,
|
|
3203
|
+
fontWeight
|
|
3004
3204
|
} = _b, props = __objRest(_b, [
|
|
3005
3205
|
"children",
|
|
3006
|
-
"placeholder"
|
|
3206
|
+
"placeholder",
|
|
3207
|
+
"typography",
|
|
3208
|
+
"fontWeight"
|
|
3007
3209
|
]);
|
|
3008
|
-
return /* @__PURE__ */ (0,
|
|
3009
|
-
/* @__PURE__ */ (0,
|
|
3010
|
-
/* @__PURE__ */ (0,
|
|
3011
|
-
/* @__PURE__ */ (0,
|
|
3012
|
-
/* @__PURE__ */ (0,
|
|
3210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes8.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes8.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(FilterStyled, { typography, fontWeight, children: [
|
|
3211
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes8.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
3212
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "filter" }),
|
|
3213
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: placeholder || "Fitrar" }),
|
|
3214
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes8.DropdownMenu.TriggerIcon, {})
|
|
3013
3215
|
] }) }),
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3216
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
3015
3217
|
FilterContentStyled,
|
|
3016
3218
|
{
|
|
3017
3219
|
avoidCollisions: false,
|
|
3018
3220
|
align: "start",
|
|
3019
3221
|
alignOffset: -14,
|
|
3020
|
-
|
|
3222
|
+
typography,
|
|
3223
|
+
fontWeight,
|
|
3224
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxGroup, { children })
|
|
3021
3225
|
}
|
|
3022
3226
|
)
|
|
3023
3227
|
] }) })) });
|
|
@@ -3028,12 +3232,33 @@ function FilterItem(_a) {
|
|
|
3028
3232
|
} = _b, props = __objRest(_b, [
|
|
3029
3233
|
"children"
|
|
3030
3234
|
]);
|
|
3031
|
-
return /* @__PURE__ */ (0,
|
|
3235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
|
|
3032
3236
|
}
|
|
3033
3237
|
|
|
3034
3238
|
// src/components/Dropdown.tsx
|
|
3035
|
-
var
|
|
3036
|
-
var
|
|
3239
|
+
var import_themes9 = require("@radix-ui/themes");
|
|
3240
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
3241
|
+
var DropdownMenuItemStyled = styled(import_themes9.DropdownMenu.Item, {
|
|
3242
|
+
fontFamily: "$default",
|
|
3243
|
+
color: "$dark600",
|
|
3244
|
+
letterSpacing: "0px",
|
|
3245
|
+
padding: "$8 $12",
|
|
3246
|
+
"&:hover, &:focus": {
|
|
3247
|
+
backgroundColor: "transparent",
|
|
3248
|
+
border: "none",
|
|
3249
|
+
outline: "none",
|
|
3250
|
+
cursor: "pointer"
|
|
3251
|
+
},
|
|
3252
|
+
variants: {
|
|
3253
|
+
typography: typographyLabelValues,
|
|
3254
|
+
fontWeight: {
|
|
3255
|
+
regular: { fontWeight: "$regular" },
|
|
3256
|
+
medium: { fontWeight: "$medium" },
|
|
3257
|
+
semibold: { fontWeight: "$semibold" },
|
|
3258
|
+
bold: { fontWeight: "$bold" }
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
});
|
|
3037
3262
|
var DropdownMenuStyled = styled("div", {
|
|
3038
3263
|
fontFamily: "$default",
|
|
3039
3264
|
color: "$dark600",
|
|
@@ -3059,9 +3284,43 @@ var DropdownMenuStyled = styled("div", {
|
|
|
3059
3284
|
"svg": {
|
|
3060
3285
|
marginLeft: "auto"
|
|
3061
3286
|
}
|
|
3287
|
+
},
|
|
3288
|
+
variants: {
|
|
3289
|
+
typography: {
|
|
3290
|
+
labelLarge: {
|
|
3291
|
+
"button": {
|
|
3292
|
+
fontSize: "$labelLarge",
|
|
3293
|
+
lineHeight: "$labelLarge"
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
3296
|
+
labelMedium: {
|
|
3297
|
+
"button": {
|
|
3298
|
+
fontSize: "$labelMedium",
|
|
3299
|
+
lineHeight: "$labelMedium"
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
labelSmall: {
|
|
3303
|
+
"button": {
|
|
3304
|
+
fontSize: "$labelSmall",
|
|
3305
|
+
lineHeight: "$labelSmall"
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
labelExtraSmall: {
|
|
3309
|
+
"button": {
|
|
3310
|
+
fontSize: "$labelExtraSmall",
|
|
3311
|
+
lineHeight: "$labelExtraSmall"
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
},
|
|
3315
|
+
fontWeight: {
|
|
3316
|
+
regular: { "button": { fontWeight: "$regular" } },
|
|
3317
|
+
medium: { "button": { fontWeight: "$medium" } },
|
|
3318
|
+
semibold: { "button": { fontWeight: "$semibold" } },
|
|
3319
|
+
bold: { "button": { fontWeight: "$bold" } }
|
|
3320
|
+
}
|
|
3062
3321
|
}
|
|
3063
3322
|
});
|
|
3064
|
-
var DropdownMenuContentStyled = styled(
|
|
3323
|
+
var DropdownMenuContentStyled = styled(import_themes9.DropdownMenu.Content, {
|
|
3065
3324
|
background: "white",
|
|
3066
3325
|
padding: "$8 $12",
|
|
3067
3326
|
border: "1px solid $dark300",
|
|
@@ -3071,56 +3330,60 @@ var DropdownMenuContentStyled = styled(import_themes17.DropdownMenu.Content, {
|
|
|
3071
3330
|
minWidth: "100%",
|
|
3072
3331
|
marginTop: "3px"
|
|
3073
3332
|
});
|
|
3074
|
-
var DropdownMenuItemStyled = styled(import_themes17.DropdownMenu.Item, {
|
|
3075
|
-
fontFamily: "$default",
|
|
3076
|
-
color: "$dark600",
|
|
3077
|
-
letterSpacing: "0px",
|
|
3078
|
-
padding: "$8 $12",
|
|
3079
|
-
"&:hover, &:focus": {
|
|
3080
|
-
backgroundColor: "transparent",
|
|
3081
|
-
border: "none",
|
|
3082
|
-
outline: "none",
|
|
3083
|
-
cursor: "pointer"
|
|
3084
|
-
}
|
|
3085
|
-
});
|
|
3086
3333
|
function DropdownMenu2(_a) {
|
|
3087
3334
|
var _b = _a, {
|
|
3088
3335
|
children,
|
|
3089
|
-
placeholder
|
|
3336
|
+
placeholder,
|
|
3337
|
+
typography,
|
|
3338
|
+
fontWeight
|
|
3090
3339
|
} = _b, props = __objRest(_b, [
|
|
3091
3340
|
"children",
|
|
3092
|
-
"placeholder"
|
|
3341
|
+
"placeholder",
|
|
3342
|
+
"typography",
|
|
3343
|
+
"fontWeight"
|
|
3093
3344
|
]);
|
|
3094
|
-
return /* @__PURE__ */ (0,
|
|
3095
|
-
/* @__PURE__ */ (0,
|
|
3096
|
-
/* @__PURE__ */ (0,
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DropdownMenuStyled, { typography, fontWeight, children: [
|
|
3346
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { "aria-label": placeholder || "Filtrar", children: [
|
|
3347
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: placeholder || "Filtrar" }),
|
|
3348
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.TriggerIcon, {})
|
|
3098
3349
|
] }) }),
|
|
3099
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3100
3351
|
DropdownMenuContentStyled,
|
|
3101
3352
|
{
|
|
3102
3353
|
avoidCollisions: false,
|
|
3103
3354
|
align: "start",
|
|
3104
3355
|
alignOffset: -14,
|
|
3105
|
-
children: /* @__PURE__ */ (0,
|
|
3356
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.Group, { children })
|
|
3106
3357
|
}
|
|
3107
3358
|
)
|
|
3108
3359
|
] }) })) });
|
|
3109
3360
|
}
|
|
3110
3361
|
function DropdownMenuItem(_a) {
|
|
3111
3362
|
var _b = _a, {
|
|
3112
|
-
children
|
|
3363
|
+
children,
|
|
3364
|
+
typography,
|
|
3365
|
+
fontWeight
|
|
3113
3366
|
} = _b, props = __objRest(_b, [
|
|
3114
|
-
"children"
|
|
3367
|
+
"children",
|
|
3368
|
+
"typography",
|
|
3369
|
+
"fontWeight"
|
|
3115
3370
|
]);
|
|
3116
|
-
return /* @__PURE__ */ (0,
|
|
3371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3372
|
+
DropdownMenuItemStyled,
|
|
3373
|
+
__spreadProps(__spreadValues({
|
|
3374
|
+
typography,
|
|
3375
|
+
fontWeight
|
|
3376
|
+
}, props), {
|
|
3377
|
+
children
|
|
3378
|
+
})
|
|
3379
|
+
);
|
|
3117
3380
|
}
|
|
3118
3381
|
|
|
3119
3382
|
// src/components/Badge.tsx
|
|
3120
3383
|
var import_react2 = __toESM(require("react"));
|
|
3121
|
-
var
|
|
3122
|
-
var
|
|
3123
|
-
var BadgeStyled = styled(
|
|
3384
|
+
var import_themes10 = require("@radix-ui/themes");
|
|
3385
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
3386
|
+
var BadgeStyled = styled(import_themes10.Badge, {
|
|
3124
3387
|
fontFamily: "$default",
|
|
3125
3388
|
borderRadius: "$sm",
|
|
3126
3389
|
verticalAlign: "middle",
|
|
@@ -3181,29 +3444,35 @@ var BadgeStyled = styled(import_themes18.Badge, {
|
|
|
3181
3444
|
size: {
|
|
3182
3445
|
xs: {
|
|
3183
3446
|
padding: "$4 $6",
|
|
3184
|
-
fontSize: "$
|
|
3447
|
+
fontSize: "$badgeExtraSmall",
|
|
3185
3448
|
borderRadius: "$2xs",
|
|
3186
|
-
lineHeight: "$
|
|
3449
|
+
lineHeight: "$bagdeExtraSmall"
|
|
3187
3450
|
},
|
|
3188
3451
|
sm: {
|
|
3189
3452
|
padding: "$4 $8",
|
|
3190
|
-
fontSize: "$
|
|
3453
|
+
fontSize: "$badgeSmall",
|
|
3191
3454
|
borderRadius: "$xs",
|
|
3192
|
-
lineHeight: "$
|
|
3455
|
+
lineHeight: "$badgeSmall"
|
|
3193
3456
|
},
|
|
3194
3457
|
md: {
|
|
3195
3458
|
padding: "$8 $10",
|
|
3196
|
-
fontSize: "$
|
|
3459
|
+
fontSize: "$badgeMedium",
|
|
3197
3460
|
borderRadius: "$sm",
|
|
3198
|
-
lineHeight: "$
|
|
3461
|
+
lineHeight: "$badgeMedium"
|
|
3199
3462
|
},
|
|
3200
3463
|
xl: {
|
|
3201
3464
|
padding: "$12 $12",
|
|
3202
|
-
fontSize: "$
|
|
3465
|
+
fontSize: "$badgeLarge",
|
|
3203
3466
|
borderRadius: "$sm",
|
|
3204
|
-
lineHeight: "$
|
|
3467
|
+
lineHeight: "$badgeLarge"
|
|
3205
3468
|
}
|
|
3206
3469
|
},
|
|
3470
|
+
fontWeight: {
|
|
3471
|
+
regular: { fontWeight: "$regular" },
|
|
3472
|
+
medium: { fontWeight: "$medium" },
|
|
3473
|
+
semibold: { fontWeight: "$semibold" },
|
|
3474
|
+
bold: { fontWeight: "$bold" }
|
|
3475
|
+
},
|
|
3207
3476
|
radii: {
|
|
3208
3477
|
"full": {
|
|
3209
3478
|
borderRadius: "$full"
|
|
@@ -3212,26 +3481,768 @@ var BadgeStyled = styled(import_themes18.Badge, {
|
|
|
3212
3481
|
},
|
|
3213
3482
|
defaultVariants: {
|
|
3214
3483
|
size: "md",
|
|
3215
|
-
color: "primary"
|
|
3484
|
+
color: "primary",
|
|
3485
|
+
fontWeight: "regular"
|
|
3216
3486
|
}
|
|
3217
3487
|
});
|
|
3218
3488
|
function Badge(_a) {
|
|
3219
3489
|
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
3220
|
-
return /* @__PURE__ */ (0,
|
|
3490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
|
|
3221
3491
|
if (import_react2.default.isValidElement(child)) {
|
|
3222
3492
|
return import_react2.default.cloneElement(child, { size: props.size });
|
|
3223
3493
|
}
|
|
3224
3494
|
return child;
|
|
3225
3495
|
}) }));
|
|
3226
3496
|
}
|
|
3497
|
+
|
|
3498
|
+
// src/components/Modal.tsx
|
|
3499
|
+
var import_themes13 = require("@radix-ui/themes");
|
|
3500
|
+
|
|
3501
|
+
// src/components/Box.tsx
|
|
3502
|
+
var import_themes11 = require("@radix-ui/themes");
|
|
3503
|
+
var Box = import_themes11.Box;
|
|
3504
|
+
|
|
3505
|
+
// src/components/Flex.tsx
|
|
3506
|
+
var import_themes12 = require("@radix-ui/themes");
|
|
3507
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3508
|
+
var FlexStyled = styled(import_themes12.Flex, {
|
|
3509
|
+
variants: {
|
|
3510
|
+
display: {
|
|
3511
|
+
"flex": { display: "flex" },
|
|
3512
|
+
"inline-flex": { display: "inline-flex" }
|
|
3513
|
+
},
|
|
3514
|
+
align: {
|
|
3515
|
+
start: { alignItems: "flex-start" },
|
|
3516
|
+
center: { alignItems: "center" },
|
|
3517
|
+
end: { alignItems: "flex-end" },
|
|
3518
|
+
stretch: { alignItems: "stretch" },
|
|
3519
|
+
baseline: { alignItems: "baseline" }
|
|
3520
|
+
},
|
|
3521
|
+
justify: {
|
|
3522
|
+
start: { justifyContent: "flex-start" },
|
|
3523
|
+
center: { justifyContent: "center" },
|
|
3524
|
+
end: { justifyContent: "flex-end" },
|
|
3525
|
+
between: { justifyContent: "space-between" },
|
|
3526
|
+
around: { justifyContent: "space-around" },
|
|
3527
|
+
evenly: { justifyContent: "space-evenly" }
|
|
3528
|
+
},
|
|
3529
|
+
direction: {
|
|
3530
|
+
row: { flexDirection: "row" },
|
|
3531
|
+
column: { flexDirection: "column" },
|
|
3532
|
+
"row-reverse": { flexDirection: "row-reverse" },
|
|
3533
|
+
"column-reverse": { flexDirection: "column-reverse" }
|
|
3534
|
+
},
|
|
3535
|
+
gap: {
|
|
3536
|
+
2: { gap: "$2" },
|
|
3537
|
+
4: { gap: "$4" },
|
|
3538
|
+
6: { gap: "$6" },
|
|
3539
|
+
8: { gap: "$8" },
|
|
3540
|
+
10: { gap: "$10" },
|
|
3541
|
+
12: { gap: "$12" },
|
|
3542
|
+
14: { gap: "$14" },
|
|
3543
|
+
16: { gap: "$16" },
|
|
3544
|
+
20: { gap: "$20" },
|
|
3545
|
+
22: { gap: "$22" },
|
|
3546
|
+
24: { gap: "$24" },
|
|
3547
|
+
32: { gap: "$32" },
|
|
3548
|
+
36: { gap: "$36" },
|
|
3549
|
+
40: { gap: "$40" },
|
|
3550
|
+
48: { gap: "$48" },
|
|
3551
|
+
56: { gap: "$56" },
|
|
3552
|
+
64: { gap: "$64" },
|
|
3553
|
+
72: { gap: "$72" },
|
|
3554
|
+
80: { gap: "$80" },
|
|
3555
|
+
full: { gap: "$full" }
|
|
3556
|
+
},
|
|
3557
|
+
gapY: {
|
|
3558
|
+
2: { gap: "$2" },
|
|
3559
|
+
4: { gap: "$4" },
|
|
3560
|
+
6: { gap: "$6" },
|
|
3561
|
+
8: { gap: "$8" },
|
|
3562
|
+
10: { gap: "$10" },
|
|
3563
|
+
12: { gap: "$12" },
|
|
3564
|
+
14: { gap: "$14" },
|
|
3565
|
+
16: { gap: "$16" },
|
|
3566
|
+
20: { gap: "$20" },
|
|
3567
|
+
22: { gap: "$22" },
|
|
3568
|
+
24: { gap: "$24" },
|
|
3569
|
+
32: { gap: "$32" },
|
|
3570
|
+
36: { gap: "$36" },
|
|
3571
|
+
40: { gap: "$40" },
|
|
3572
|
+
48: { gap: "$48" },
|
|
3573
|
+
56: { gap: "$56" },
|
|
3574
|
+
64: { gap: "$64" },
|
|
3575
|
+
72: { gap: "$72" },
|
|
3576
|
+
80: { gap: "$80" },
|
|
3577
|
+
full: { gap: "$full" }
|
|
3578
|
+
},
|
|
3579
|
+
gapX: {
|
|
3580
|
+
2: { gap: "$2" },
|
|
3581
|
+
4: { gap: "$4" },
|
|
3582
|
+
6: { gap: "$6" },
|
|
3583
|
+
8: { gap: "$8" },
|
|
3584
|
+
10: { gap: "$10" },
|
|
3585
|
+
12: { gap: "$12" },
|
|
3586
|
+
14: { gap: "$14" },
|
|
3587
|
+
16: { gap: "$16" },
|
|
3588
|
+
20: { gap: "$20" },
|
|
3589
|
+
22: { gap: "$22" },
|
|
3590
|
+
24: { gap: "$24" },
|
|
3591
|
+
32: { gap: "$32" },
|
|
3592
|
+
36: { gap: "$36" },
|
|
3593
|
+
40: { gap: "$40" },
|
|
3594
|
+
48: { gap: "$48" },
|
|
3595
|
+
56: { gap: "$56" },
|
|
3596
|
+
64: { gap: "$64" },
|
|
3597
|
+
72: { gap: "$72" },
|
|
3598
|
+
80: { gap: "$80" },
|
|
3599
|
+
full: { gap: "$full" }
|
|
3600
|
+
}
|
|
3601
|
+
},
|
|
3602
|
+
defaultVariants: {
|
|
3603
|
+
display: "flex",
|
|
3604
|
+
direction: "row",
|
|
3605
|
+
gap: 10
|
|
3606
|
+
}
|
|
3607
|
+
});
|
|
3608
|
+
function Flex2(_a) {
|
|
3609
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
// src/components/Modal.tsx
|
|
3614
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
3615
|
+
var ModalStyled = styled("div", {
|
|
3616
|
+
fontFamily: "$default",
|
|
3617
|
+
lineHeight: "$base",
|
|
3618
|
+
fontSize: "$13",
|
|
3619
|
+
borderRadius: "$sm"
|
|
3620
|
+
});
|
|
3621
|
+
var ModalContentStyled = styled(import_themes13.Dialog.Content, {
|
|
3622
|
+
fontFamily: "$default",
|
|
3623
|
+
lineHeight: "$base",
|
|
3624
|
+
fontSize: "$13",
|
|
3625
|
+
maxWidth: "502px",
|
|
3626
|
+
width: "100%",
|
|
3627
|
+
border: "1px solid $neutral",
|
|
3628
|
+
borderRadius: "$2xl",
|
|
3629
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)"
|
|
3630
|
+
});
|
|
3631
|
+
var ModalHeaderStyled = styled("div", {
|
|
3632
|
+
borderBottom: "1px solid $neutral300",
|
|
3633
|
+
padding: "$16 $24",
|
|
3634
|
+
textAlign: "center",
|
|
3635
|
+
position: "relative",
|
|
3636
|
+
display: "flex",
|
|
3637
|
+
alignItems: "center",
|
|
3638
|
+
justifyContent: "center"
|
|
3639
|
+
});
|
|
3640
|
+
var ModalIconClose = styled(Icon_default, {
|
|
3641
|
+
position: "absolute",
|
|
3642
|
+
right: "$24",
|
|
3643
|
+
cursor: "pointer"
|
|
3644
|
+
});
|
|
3645
|
+
var ModalFooterStyled = styled("div", {
|
|
3646
|
+
borderTop: "1px solid $neutral300",
|
|
3647
|
+
padding: "$16 $24",
|
|
3648
|
+
".modal-footer-flex": {
|
|
3649
|
+
justifyContent: "flex-end"
|
|
3650
|
+
}
|
|
3651
|
+
});
|
|
3652
|
+
var ModalTitleStyled = styled(import_themes13.Dialog.Title, {
|
|
3653
|
+
fontFamily: "$default",
|
|
3654
|
+
lineHeight: "$base",
|
|
3655
|
+
fontSize: "$18",
|
|
3656
|
+
fontWeight: "medium",
|
|
3657
|
+
fontStyle: "normal",
|
|
3658
|
+
textTransform: "uppercase"
|
|
3659
|
+
});
|
|
3660
|
+
function Modal(_a) {
|
|
3661
|
+
var _b = _a, { children, title, trigger, cancel, cancelText, action, actionText, onAction } = _b, props = __objRest(_b, ["children", "title", "trigger", "cancel", "cancelText", "action", "actionText", "onAction"]);
|
|
3662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes13.Dialog.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3663
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes13.Dialog.Trigger, { children: trigger }),
|
|
3664
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalContentStyled, { children: [
|
|
3665
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
|
|
3666
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { children: title }),
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes13.Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3668
|
+
] }),
|
|
3669
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box, { children }),
|
|
3670
|
+
cancel || action ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", className: "modal-footer-flex", children: [
|
|
3671
|
+
action && onAction && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes13.Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, { variant: "contained", color: "brand", onClick: onAction, children: actionText ? actionText : "Salvar" }) }),
|
|
3672
|
+
cancel && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes13.Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, { variant: "outlined", color: "neutral", children: cancelText ? cancelText : "cancelar" }) })
|
|
3673
|
+
] }) }) : null
|
|
3674
|
+
] })
|
|
3675
|
+
] })) });
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
// src/components/Alert.tsx
|
|
3679
|
+
var import_themes14 = require("@radix-ui/themes");
|
|
3680
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
3681
|
+
var AlertDialogSimpleStyled = styled(import_themes14.AlertDialog.Content, {
|
|
3682
|
+
fontFamily: "$default",
|
|
3683
|
+
lineHeight: "$base",
|
|
3684
|
+
fontSize: "$13",
|
|
3685
|
+
padding: "$16",
|
|
3686
|
+
borderRadius: "$sm",
|
|
3687
|
+
display: "flex",
|
|
3688
|
+
alignItems: "center",
|
|
3689
|
+
justifyContent: "space-between",
|
|
3690
|
+
gap: "$10",
|
|
3691
|
+
marginTop: "$10",
|
|
3692
|
+
variants: {
|
|
3693
|
+
color: {
|
|
3694
|
+
error: {
|
|
3695
|
+
backgroundColor: "$error50",
|
|
3696
|
+
border: "1px solid $error600",
|
|
3697
|
+
color: "$error600",
|
|
3698
|
+
"svg": {
|
|
3699
|
+
color: "$error600"
|
|
3700
|
+
}
|
|
3701
|
+
},
|
|
3702
|
+
warning: {
|
|
3703
|
+
backgroundColor: "$warning50",
|
|
3704
|
+
border: "1px solid $warning600",
|
|
3705
|
+
color: "$warning600",
|
|
3706
|
+
"svg": {
|
|
3707
|
+
color: "$warning600"
|
|
3708
|
+
}
|
|
3709
|
+
},
|
|
3710
|
+
success: {
|
|
3711
|
+
backgroundColor: "$success50",
|
|
3712
|
+
border: "1px solid $success600",
|
|
3713
|
+
color: "$success600",
|
|
3714
|
+
"svg": {
|
|
3715
|
+
color: "$success600"
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
|
+
info: {
|
|
3719
|
+
backgroundColor: "$info50",
|
|
3720
|
+
border: "1px solid $info600",
|
|
3721
|
+
color: "$info600",
|
|
3722
|
+
"svg": {
|
|
3723
|
+
color: "$info600"
|
|
3724
|
+
}
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
},
|
|
3728
|
+
defaultVariants: {
|
|
3729
|
+
color: "success"
|
|
3730
|
+
}
|
|
3731
|
+
});
|
|
3732
|
+
var AlertDialogCompleteStyled = styled(import_themes14.AlertDialog.Content, {
|
|
3733
|
+
fontFamily: "$default",
|
|
3734
|
+
lineHeight: "$base",
|
|
3735
|
+
fontSize: "$13",
|
|
3736
|
+
borderRadius: "$sm",
|
|
3737
|
+
marginTop: "$10",
|
|
3738
|
+
maxWidth: "440px",
|
|
3739
|
+
width: "100%",
|
|
3740
|
+
boxShadow: "0px 0px 15px 5px rgba(0, 0, 0, 0.05)",
|
|
3741
|
+
border: "1px solid $neutral200",
|
|
3742
|
+
".le-alert-dialog-row": {
|
|
3743
|
+
display: "flex",
|
|
3744
|
+
flexDirection: "column",
|
|
3745
|
+
flexWrap: "wrap",
|
|
3746
|
+
alignItems: "center",
|
|
3747
|
+
textAlign: "center",
|
|
3748
|
+
justifyContent: "space-between",
|
|
3749
|
+
gap: "$10"
|
|
3750
|
+
},
|
|
3751
|
+
variants: {
|
|
3752
|
+
color: {}
|
|
3753
|
+
}
|
|
3754
|
+
});
|
|
3755
|
+
var AlertDialogDescriptionStyled = styled(import_themes14.AlertDialog.Description, {
|
|
3756
|
+
padding: 0,
|
|
3757
|
+
margin: 0
|
|
3758
|
+
});
|
|
3759
|
+
var AlertDialogTitleStyled = styled(import_themes14.AlertDialog.Title, {
|
|
3760
|
+
fontFamily: "$default",
|
|
3761
|
+
lineHeight: "$base",
|
|
3762
|
+
fontSize: "$20",
|
|
3763
|
+
fontWeight: "$semibold",
|
|
3764
|
+
padding: 0,
|
|
3765
|
+
margin: 0
|
|
3766
|
+
});
|
|
3767
|
+
var AlertDialogSubtitleStyled = styled(Text, {
|
|
3768
|
+
margin: 0,
|
|
3769
|
+
fontSize: "$48",
|
|
3770
|
+
color: "$gray100",
|
|
3771
|
+
fontWeight: "$semibold"
|
|
3772
|
+
});
|
|
3773
|
+
var AlertDialogRowStyled = styled("div", {
|
|
3774
|
+
padding: "$32 $24"
|
|
3775
|
+
});
|
|
3776
|
+
var AlertDialoghrStyled = styled("hr", {
|
|
3777
|
+
margin: 0,
|
|
3778
|
+
padding: 0,
|
|
3779
|
+
border: "none",
|
|
3780
|
+
borderTop: "1px solid $neutral200"
|
|
3781
|
+
});
|
|
3782
|
+
function Alert(_a) {
|
|
3783
|
+
var _b = _a, {
|
|
3784
|
+
color,
|
|
3785
|
+
trigger,
|
|
3786
|
+
completAlert,
|
|
3787
|
+
simpleAlert
|
|
3788
|
+
} = _b, props = __objRest(_b, [
|
|
3789
|
+
"color",
|
|
3790
|
+
"trigger",
|
|
3791
|
+
"completAlert",
|
|
3792
|
+
"simpleAlert"
|
|
3793
|
+
]);
|
|
3794
|
+
console.log("completAlert", completAlert, " simpleAlert", simpleAlert);
|
|
3795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
3796
|
+
simpleAlert && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes14.AlertDialog.Root, { children: [
|
|
3797
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.AlertDialog.Trigger, { children: trigger }),
|
|
3798
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3799
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
|
|
3800
|
+
simpleAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "text", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon_default, { name: "close" }) }) })
|
|
3801
|
+
] })) })
|
|
3802
|
+
] }) }),
|
|
3803
|
+
completAlert && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes14.AlertDialog.Root, { children: [
|
|
3804
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.AlertDialog.Trigger, { children: trigger }),
|
|
3805
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(AlertDialogCompleteStyled, { children: [
|
|
3806
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
|
|
3807
|
+
color === "success" && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3808
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" }) }),
|
|
3809
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3810
|
+
] }),
|
|
3811
|
+
color === "error" && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3812
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" }) }),
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3814
|
+
] }),
|
|
3815
|
+
color === "warning" && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3816
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" }) }),
|
|
3817
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3818
|
+
] }),
|
|
3819
|
+
color === "info" && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3820
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" }) }),
|
|
3821
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "40", height: "40", fill: "white" }) }) })
|
|
3822
|
+
] }),
|
|
3823
|
+
completAlert.title && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(AlertDialogTitleStyled, { children: completAlert.title }),
|
|
3824
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(AlertDialogDescriptionStyled, { children: [
|
|
3825
|
+
completAlert.subtitle && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { css: {
|
|
3826
|
+
fontSize: "$16"
|
|
3827
|
+
}, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h2", { children: completAlert.subtitle }) }),
|
|
3828
|
+
completAlert.description
|
|
3829
|
+
] })
|
|
3830
|
+
] }),
|
|
3831
|
+
completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(AlertDialoghrStyled, {}) : null,
|
|
3832
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", children: [
|
|
3833
|
+
completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "contained", onClick: completAlert.onAction, children: completAlert.actionText || "Salvar" }) }),
|
|
3834
|
+
completAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes14.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
|
|
3835
|
+
] }) })
|
|
3836
|
+
] })
|
|
3837
|
+
] }) })
|
|
3838
|
+
] });
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
// src/components/Switch.tsx
|
|
3842
|
+
var import_themes15 = require("@radix-ui/themes");
|
|
3843
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
3844
|
+
var SwitchStyled = styled(import_themes15.Switch, {
|
|
3845
|
+
all: "unset",
|
|
3846
|
+
borderRadius: "$full",
|
|
3847
|
+
position: "relative",
|
|
3848
|
+
display: "flex",
|
|
3849
|
+
alignItems: "center",
|
|
3850
|
+
justifyContent: "center",
|
|
3851
|
+
transition: "all 0.3s",
|
|
3852
|
+
cursor: "pointer",
|
|
3853
|
+
"&::before": {
|
|
3854
|
+
content: '""',
|
|
3855
|
+
position: "absolute",
|
|
3856
|
+
borderRadius: "$full",
|
|
3857
|
+
pointerEvents: "none",
|
|
3858
|
+
cursor: "pointer"
|
|
3859
|
+
},
|
|
3860
|
+
"span": {
|
|
3861
|
+
position: "absolute",
|
|
3862
|
+
top: "50%",
|
|
3863
|
+
left: 0,
|
|
3864
|
+
transform: "translate(0, -50%)",
|
|
3865
|
+
borderRadius: "50%",
|
|
3866
|
+
transition: "all 0.3s",
|
|
3867
|
+
cursor: "pointer",
|
|
3868
|
+
borderWidth: "1px",
|
|
3869
|
+
borderStyle: "solid",
|
|
3870
|
+
boxShadow: "0px 0px 4px 0px rgba(0, 0, 0, 0.24)"
|
|
3871
|
+
},
|
|
3872
|
+
'&[data-state="checked"] span': {
|
|
3873
|
+
left: "auto",
|
|
3874
|
+
transform: "translate(50%, -50%)"
|
|
3875
|
+
},
|
|
3876
|
+
variants: {
|
|
3877
|
+
color: {
|
|
3878
|
+
brand: {
|
|
3879
|
+
"&::before": {
|
|
3880
|
+
backgroundColor: "$brand50"
|
|
3881
|
+
},
|
|
3882
|
+
"span": {
|
|
3883
|
+
backgroundColor: "$dark50",
|
|
3884
|
+
borderColor: "$neutral300"
|
|
3885
|
+
},
|
|
3886
|
+
'&[data-state="checked"] span': {
|
|
3887
|
+
backgroundColor: "$brand500",
|
|
3888
|
+
borderColor: "$brand500"
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
},
|
|
3892
|
+
size: {
|
|
3893
|
+
sm: {
|
|
3894
|
+
width: "32px",
|
|
3895
|
+
height: "20px",
|
|
3896
|
+
"&::before": {
|
|
3897
|
+
width: "$32",
|
|
3898
|
+
height: "$12"
|
|
3899
|
+
},
|
|
3900
|
+
"span": {
|
|
3901
|
+
width: "$20",
|
|
3902
|
+
height: "$20"
|
|
3903
|
+
}
|
|
3904
|
+
},
|
|
3905
|
+
md: {
|
|
3906
|
+
width: "40px",
|
|
3907
|
+
height: "20px",
|
|
3908
|
+
"&::before": {
|
|
3909
|
+
width: "40px",
|
|
3910
|
+
height: "16px"
|
|
3911
|
+
},
|
|
3912
|
+
"span": {
|
|
3913
|
+
width: "24px",
|
|
3914
|
+
height: "24px"
|
|
3915
|
+
}
|
|
3916
|
+
},
|
|
3917
|
+
lg: {
|
|
3918
|
+
width: "56px",
|
|
3919
|
+
height: "32px",
|
|
3920
|
+
"&::before": {
|
|
3921
|
+
width: "56px",
|
|
3922
|
+
height: "24px"
|
|
3923
|
+
},
|
|
3924
|
+
"span": {
|
|
3925
|
+
width: "32px",
|
|
3926
|
+
height: "32px"
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
},
|
|
3931
|
+
defaultVariants: {
|
|
3932
|
+
size: "md",
|
|
3933
|
+
color: "brand"
|
|
3934
|
+
}
|
|
3935
|
+
});
|
|
3936
|
+
function Switch(props) {
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
// src/components/Step.tsx
|
|
3941
|
+
var import_react3 = __toESM(require("react"));
|
|
3942
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
3943
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
3944
|
+
var StepStyled = styled("div", {
|
|
3945
|
+
fontFamily: "$default",
|
|
3946
|
+
color: "$gray100",
|
|
3947
|
+
letterSpacing: "0px"
|
|
3948
|
+
});
|
|
3949
|
+
var StepTriggerStyled = styled(import_themes16.Tabs.Trigger, {
|
|
3950
|
+
all: "unset",
|
|
3951
|
+
position: "relative",
|
|
3952
|
+
display: "flex",
|
|
3953
|
+
alignItems: "center",
|
|
3954
|
+
justifyContent: "center",
|
|
3955
|
+
fontSize: "$16",
|
|
3956
|
+
fontWeight: "$medium",
|
|
3957
|
+
minWidth: "32px",
|
|
3958
|
+
minHeight: "32px",
|
|
3959
|
+
marginRight: "40px",
|
|
3960
|
+
"&:last-of-type": {
|
|
3961
|
+
marginRight: 0
|
|
3962
|
+
},
|
|
3963
|
+
"& > span:first-of-type": {
|
|
3964
|
+
width: "32px",
|
|
3965
|
+
height: "32px",
|
|
3966
|
+
borderRadius: "$full",
|
|
3967
|
+
backgroundColor: "$neutral50",
|
|
3968
|
+
border: "1px solid $neutral200",
|
|
3969
|
+
color: "$gray700",
|
|
3970
|
+
display: "flex",
|
|
3971
|
+
alignItems: "center",
|
|
3972
|
+
justifyContent: "center",
|
|
3973
|
+
zIndex: 1,
|
|
3974
|
+
position: "relative"
|
|
3975
|
+
},
|
|
3976
|
+
'&[data-state="active"] > span:first-of-type': {
|
|
3977
|
+
backgroundColor: "$blue500",
|
|
3978
|
+
borderColor: "$blue500",
|
|
3979
|
+
color: "white"
|
|
3980
|
+
},
|
|
3981
|
+
"& > span:last-of-type": {
|
|
3982
|
+
display: "none"
|
|
3983
|
+
},
|
|
3984
|
+
"&:not(:first-of-type)::before": {
|
|
3985
|
+
content: '""',
|
|
3986
|
+
position: "absolute",
|
|
3987
|
+
top: "50%",
|
|
3988
|
+
right: "calc(100% + 4px)",
|
|
3989
|
+
transform: "translateY(-50%)",
|
|
3990
|
+
width: "32px",
|
|
3991
|
+
height: "8px",
|
|
3992
|
+
borderRadius: "$sm",
|
|
3993
|
+
backgroundColor: "$neutral50",
|
|
3994
|
+
zIndex: 0
|
|
3995
|
+
},
|
|
3996
|
+
'&[data-state="active"]::before': {
|
|
3997
|
+
backgroundColor: "$blue500"
|
|
3998
|
+
},
|
|
3999
|
+
'&[data-filled="true"] > span:first-of-type': {
|
|
4000
|
+
backgroundColor: "$blue500",
|
|
4001
|
+
borderColor: "$blue500",
|
|
4002
|
+
color: "white"
|
|
4003
|
+
},
|
|
4004
|
+
'&[data-filled="true"]::before': {
|
|
4005
|
+
backgroundColor: "$blue500"
|
|
4006
|
+
}
|
|
4007
|
+
});
|
|
4008
|
+
var StepListStyled = styled(import_themes16.Tabs.List, {
|
|
4009
|
+
display: "flex",
|
|
4010
|
+
alignItems: "center",
|
|
4011
|
+
justifyContent: "flex-start",
|
|
4012
|
+
gap: "$4"
|
|
4013
|
+
});
|
|
4014
|
+
function Step(_a) {
|
|
4015
|
+
var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes16.Tabs.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
|
|
4017
|
+
}
|
|
4018
|
+
function StepTrigger(_a) {
|
|
4019
|
+
var _b = _a, { value, children, currentStep } = _b, props = __objRest(_b, ["value", "children", "currentStep"]);
|
|
4020
|
+
const isActiveOrPrevious = currentStep !== void 0 && value <= currentStep;
|
|
4021
|
+
console.log(isActiveOrPrevious, "isActiveOrPrevius", currentStep);
|
|
4022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StepTriggerStyled, __spreadProps(__spreadValues({ "data-filled": isActiveOrPrevious, value: String(value) }, props), { children }));
|
|
4023
|
+
}
|
|
4024
|
+
function StepContent(_a) {
|
|
4025
|
+
var _b = _a, { value, children } = _b, props = __objRest(_b, ["value", "children"]);
|
|
4026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes16.Tabs.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
|
|
4027
|
+
}
|
|
4028
|
+
function StepList(_a) {
|
|
4029
|
+
var _b = _a, { children, currentStep } = _b, props = __objRest(_b, ["children", "currentStep"]);
|
|
4030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StepListStyled, __spreadProps(__spreadValues({}, props), { children: import_react3.default.Children.map(children, (child) => {
|
|
4031
|
+
if (import_react3.default.isValidElement(child) && child.type === StepTrigger) {
|
|
4032
|
+
return import_react3.default.cloneElement(child, { currentStep });
|
|
4033
|
+
}
|
|
4034
|
+
return child;
|
|
4035
|
+
}) }));
|
|
4036
|
+
}
|
|
4037
|
+
function StepWrapper(_a) {
|
|
4038
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes16.Box, __spreadProps(__spreadValues({}, props), { children }));
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
// src/components/Grid.tsx
|
|
4043
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
4044
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
4045
|
+
var GridStyled = styled(import_themes17.Grid, {
|
|
4046
|
+
display: "grid",
|
|
4047
|
+
variants: {
|
|
4048
|
+
display: {
|
|
4049
|
+
"grid": { display: "grid" },
|
|
4050
|
+
"inline-grid": { display: "inline-grid" }
|
|
4051
|
+
},
|
|
4052
|
+
align: {
|
|
4053
|
+
start: { alignItems: "start" },
|
|
4054
|
+
center: { alignItems: "center" },
|
|
4055
|
+
end: { alignItems: "end" },
|
|
4056
|
+
stretch: { alignItems: "stretch" }
|
|
4057
|
+
},
|
|
4058
|
+
justify: {
|
|
4059
|
+
start: { justifyContent: "start" },
|
|
4060
|
+
center: { justifyContent: "center" },
|
|
4061
|
+
end: { justifyContent: "end" },
|
|
4062
|
+
between: { justifyContent: "space-between" }
|
|
4063
|
+
},
|
|
4064
|
+
flow: {
|
|
4065
|
+
row: { gridAutoFlow: "row" },
|
|
4066
|
+
column: { gridAutoFlow: "column" },
|
|
4067
|
+
"row-dense": { gridAutoFlow: "row dense" },
|
|
4068
|
+
"column-dense": { gridAutoFlow: "column dense" }
|
|
4069
|
+
},
|
|
4070
|
+
columns: {
|
|
4071
|
+
1: { gridTemplateColumns: "repeat(1, 1fr)" },
|
|
4072
|
+
2: { gridTemplateColumns: "repeat(2, 1fr)" },
|
|
4073
|
+
3: { gridTemplateColumns: "repeat(3, 1fr)" },
|
|
4074
|
+
4: { gridTemplateColumns: "repeat(4, 1fr)" },
|
|
4075
|
+
6: { gridTemplateColumns: "repeat(6, 1fr)" },
|
|
4076
|
+
12: { gridTemplateColumns: "repeat(12, 1fr)" }
|
|
4077
|
+
},
|
|
4078
|
+
rows: {
|
|
4079
|
+
1: { gridTemplateRows: "repeat(1, 1fr)" },
|
|
4080
|
+
2: { gridTemplateRows: "repeat(2, 1fr)" },
|
|
4081
|
+
3: { gridTemplateRows: "repeat(3, 1fr)" },
|
|
4082
|
+
4: { gridTemplateRows: "repeat(4, 1fr)" },
|
|
4083
|
+
5: { gridTemplateRows: "repeat(5, 1fr)" },
|
|
4084
|
+
6: { gridTemplateRows: "repeat(6, 1fr)" },
|
|
4085
|
+
7: { gridTemplateRows: "repeat(7, 1fr)" },
|
|
4086
|
+
8: { gridTemplateRows: "repeat(8, 1fr)" },
|
|
4087
|
+
9: { gridTemplateRows: "repeat(9, 1fr)" },
|
|
4088
|
+
10: { gridTemplateRows: "repeat(10, 1fr)" },
|
|
4089
|
+
11: { gridTemplateRows: "repeat(11, 1fr)" },
|
|
4090
|
+
12: { gridTemplateRows: "repeat(12, 1fr)" },
|
|
4091
|
+
auto: { gridTemplateRows: "auto" }
|
|
4092
|
+
},
|
|
4093
|
+
gap: {
|
|
4094
|
+
2: { gap: "$2" },
|
|
4095
|
+
4: { gap: "$4" },
|
|
4096
|
+
6: { gap: "$6" },
|
|
4097
|
+
8: { gap: "$8" },
|
|
4098
|
+
10: { gap: "$10" },
|
|
4099
|
+
12: { gap: "$12" },
|
|
4100
|
+
14: { gap: "$14" },
|
|
4101
|
+
16: { gap: "$16" },
|
|
4102
|
+
20: { gap: "$20" },
|
|
4103
|
+
22: { gap: "$22" },
|
|
4104
|
+
24: { gap: "$24" },
|
|
4105
|
+
32: { gap: "$32" },
|
|
4106
|
+
36: { gap: "$36" },
|
|
4107
|
+
40: { gap: "$40" },
|
|
4108
|
+
48: { gap: "$48" },
|
|
4109
|
+
56: { gap: "$56" },
|
|
4110
|
+
64: { gap: "$64" },
|
|
4111
|
+
72: { gap: "$72" },
|
|
4112
|
+
80: { gap: "$80" },
|
|
4113
|
+
full: { gap: "$full" }
|
|
4114
|
+
},
|
|
4115
|
+
gapX: {
|
|
4116
|
+
2: { gap: "$2" },
|
|
4117
|
+
4: { gap: "$4" },
|
|
4118
|
+
6: { gap: "$6" },
|
|
4119
|
+
8: { gap: "$8" },
|
|
4120
|
+
10: { gap: "$10" },
|
|
4121
|
+
12: { gap: "$12" },
|
|
4122
|
+
14: { gap: "$14" },
|
|
4123
|
+
16: { gap: "$16" },
|
|
4124
|
+
20: { gap: "$20" },
|
|
4125
|
+
22: { gap: "$22" },
|
|
4126
|
+
24: { gap: "$24" },
|
|
4127
|
+
32: { gap: "$32" },
|
|
4128
|
+
36: { gap: "$36" },
|
|
4129
|
+
40: { gap: "$40" },
|
|
4130
|
+
48: { gap: "$48" },
|
|
4131
|
+
56: { gap: "$56" },
|
|
4132
|
+
64: { gap: "$64" },
|
|
4133
|
+
72: { gap: "$72" },
|
|
4134
|
+
80: { gap: "$80" },
|
|
4135
|
+
full: { gap: "$full" }
|
|
4136
|
+
},
|
|
4137
|
+
gapY: {
|
|
4138
|
+
2: { gap: "$2" },
|
|
4139
|
+
4: { gap: "$4" },
|
|
4140
|
+
6: { gap: "$6" },
|
|
4141
|
+
8: { gap: "$8" },
|
|
4142
|
+
10: { gap: "$10" },
|
|
4143
|
+
12: { gap: "$12" },
|
|
4144
|
+
14: { gap: "$14" },
|
|
4145
|
+
16: { gap: "$16" },
|
|
4146
|
+
20: { gap: "$20" },
|
|
4147
|
+
22: { gap: "$22" },
|
|
4148
|
+
24: { gap: "$24" },
|
|
4149
|
+
32: { gap: "$32" },
|
|
4150
|
+
36: { gap: "$36" },
|
|
4151
|
+
40: { gap: "$40" },
|
|
4152
|
+
48: { gap: "$48" },
|
|
4153
|
+
56: { gap: "$56" },
|
|
4154
|
+
64: { gap: "$64" },
|
|
4155
|
+
72: { gap: "$72" },
|
|
4156
|
+
80: { gap: "$80" },
|
|
4157
|
+
full: { gap: "$full" }
|
|
4158
|
+
}
|
|
4159
|
+
},
|
|
4160
|
+
defaultVariants: {
|
|
4161
|
+
gap: 10
|
|
4162
|
+
}
|
|
4163
|
+
});
|
|
4164
|
+
function Grid(_a) {
|
|
4165
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
// src/components/Container.tsx
|
|
4170
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
4171
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4172
|
+
var ContainerStyled = styled(import_themes18.Container, {
|
|
4173
|
+
variants: {
|
|
4174
|
+
size: {
|
|
4175
|
+
xs: { maxWidth: "576px" },
|
|
4176
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
4177
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
4178
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
4179
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
4180
|
+
xxl: { mixWidth: "1400px" },
|
|
4181
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
4182
|
+
},
|
|
4183
|
+
display: {
|
|
4184
|
+
none: { display: "none" },
|
|
4185
|
+
initial: { display: "initial" }
|
|
4186
|
+
},
|
|
4187
|
+
align: {
|
|
4188
|
+
left: { marginLeft: 0, marginRight: "auto" },
|
|
4189
|
+
center: { marginLeft: "auto", marginRight: "auto" },
|
|
4190
|
+
right: { marginLeft: "auto", marginRight: 0 }
|
|
4191
|
+
}
|
|
4192
|
+
},
|
|
4193
|
+
defaultVariants: {
|
|
4194
|
+
size: "md",
|
|
4195
|
+
align: "left",
|
|
4196
|
+
display: "initial"
|
|
4197
|
+
}
|
|
4198
|
+
});
|
|
4199
|
+
function Container(_a) {
|
|
4200
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
// src/components/Section.tsx
|
|
4205
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
4206
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
4207
|
+
var SectionStyled = styled(import_themes19.Section, {
|
|
4208
|
+
variants: {
|
|
4209
|
+
size: {
|
|
4210
|
+
xs: { maxWidth: "576px" },
|
|
4211
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
4212
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
4213
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
4214
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
4215
|
+
xxl: { mixWidth: "1400px" },
|
|
4216
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
4217
|
+
},
|
|
4218
|
+
display: {
|
|
4219
|
+
none: { display: "none" },
|
|
4220
|
+
initial: { display: "initial" }
|
|
4221
|
+
}
|
|
4222
|
+
},
|
|
4223
|
+
defaultVariants: {
|
|
4224
|
+
size: "md",
|
|
4225
|
+
display: "initial"
|
|
4226
|
+
}
|
|
4227
|
+
});
|
|
4228
|
+
function Section(_a) {
|
|
4229
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
4231
|
+
}
|
|
3227
4232
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3228
4233
|
0 && (module.exports = {
|
|
4234
|
+
Alert,
|
|
4235
|
+
AlertDialogCompleteStyled,
|
|
4236
|
+
AlertDialogDescriptionStyled,
|
|
4237
|
+
AlertDialogRowStyled,
|
|
4238
|
+
AlertDialogSimpleStyled,
|
|
4239
|
+
AlertDialogSubtitleStyled,
|
|
4240
|
+
AlertDialogTitleStyled,
|
|
4241
|
+
AlertDialoghrStyled,
|
|
3229
4242
|
Avatar,
|
|
3230
4243
|
AvatarStyled,
|
|
3231
4244
|
Badge,
|
|
3232
4245
|
BadgeStyled,
|
|
3233
|
-
BadgeText,
|
|
3234
|
-
BodyText,
|
|
3235
4246
|
Box,
|
|
3236
4247
|
Button,
|
|
3237
4248
|
ButtonGroup,
|
|
@@ -3239,29 +4250,43 @@ function Badge(_a) {
|
|
|
3239
4250
|
ButtonItem,
|
|
3240
4251
|
ButtonItemStyled,
|
|
3241
4252
|
ButtonStyled,
|
|
3242
|
-
CaptionText,
|
|
3243
4253
|
CheckboxGroup,
|
|
3244
4254
|
CheckboxGroupStyled,
|
|
3245
4255
|
CheckboxItem,
|
|
3246
|
-
|
|
4256
|
+
Container,
|
|
4257
|
+
ContainerStyled,
|
|
3247
4258
|
DropdownMenu,
|
|
3248
4259
|
DropdownMenuItem,
|
|
3249
4260
|
Filter,
|
|
3250
4261
|
FilterItem,
|
|
3251
4262
|
Flex,
|
|
3252
|
-
|
|
4263
|
+
FlexStyled,
|
|
4264
|
+
Grid,
|
|
4265
|
+
GridStyled,
|
|
3253
4266
|
Icon,
|
|
3254
|
-
|
|
4267
|
+
Modal,
|
|
4268
|
+
ModalContentStyled,
|
|
4269
|
+
ModalStyled,
|
|
4270
|
+
ModalTitleStyled,
|
|
3255
4271
|
RadioGroup,
|
|
3256
4272
|
RadioGroupStyled,
|
|
3257
4273
|
RadioItem,
|
|
3258
|
-
|
|
4274
|
+
Section,
|
|
4275
|
+
SectionStyled,
|
|
4276
|
+
Step,
|
|
4277
|
+
StepContent,
|
|
4278
|
+
StepList,
|
|
4279
|
+
StepStyled,
|
|
4280
|
+
StepTrigger,
|
|
4281
|
+
StepWrapper,
|
|
4282
|
+
Switch,
|
|
4283
|
+
SwitchStyled,
|
|
3259
4284
|
Text,
|
|
3260
4285
|
TextField,
|
|
3261
4286
|
TextFieldSlot,
|
|
3262
4287
|
TextFieldSlotStyled,
|
|
3263
4288
|
TextFieldStyled,
|
|
3264
|
-
|
|
4289
|
+
TextStyle
|
|
3265
4290
|
});
|
|
3266
4291
|
/*! Bundled license information:
|
|
3267
4292
|
|