@lets-events/react 5.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 +8 -1
- package/dist/index.d.mts +42 -11
- package/dist/index.d.ts +42 -11
- package/dist/index.js +585 -141
- package/dist/index.mjs +589 -145
- package/package.json +1 -1
- package/src/components/Alert.tsx +255 -255
- 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 -342
- package/src/components/ButtonGroup.tsx +484 -477
- package/src/components/CheckboxGroup.tsx +214 -208
- package/src/components/Container.tsx +39 -39
- package/src/components/Dropdown.tsx +167 -109
- package/src/components/Filter.tsx +164 -95
- package/src/components/Flex.tsx +117 -117
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +108 -108
- package/src/components/RadioGroup.tsx +210 -203
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +147 -147
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +31 -31
- package/src/components/TextField.tsx +241 -193
- package/src/index.tsx +27 -27
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +179 -0
- package/tsconfig.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -235,7 +235,7 @@ var require_react_is_development = __commonJS({
|
|
|
235
235
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
236
236
|
var Element = REACT_ELEMENT_TYPE;
|
|
237
237
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
238
|
-
var
|
|
238
|
+
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
239
239
|
var Lazy = REACT_LAZY_TYPE;
|
|
240
240
|
var Memo = REACT_MEMO_TYPE;
|
|
241
241
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -294,7 +294,7 @@ var require_react_is_development = __commonJS({
|
|
|
294
294
|
exports.ContextProvider = ContextProvider;
|
|
295
295
|
exports.Element = Element;
|
|
296
296
|
exports.ForwardRef = ForwardRef;
|
|
297
|
-
exports.Fragment =
|
|
297
|
+
exports.Fragment = Fragment2;
|
|
298
298
|
exports.Lazy = Lazy;
|
|
299
299
|
exports.Memo = Memo;
|
|
300
300
|
exports.Portal = Portal;
|
|
@@ -1222,7 +1222,41 @@ var fontSizes = {
|
|
|
1222
1222
|
"2xl": "1.5rem",
|
|
1223
1223
|
"3xl": "2rem",
|
|
1224
1224
|
"4xl": "2.5rem",
|
|
1225
|
-
full: "62.4375rem"
|
|
1225
|
+
full: "62.4375rem",
|
|
1226
|
+
displayLarge: "3.5rem",
|
|
1227
|
+
displayMedium: "3rem",
|
|
1228
|
+
displaySmall: "2.25rem",
|
|
1229
|
+
headline1: "2.5rem",
|
|
1230
|
+
headline2: "2rem",
|
|
1231
|
+
headline3: "1.75rem",
|
|
1232
|
+
headline4: "1.375rem",
|
|
1233
|
+
headline5: "1.25rem",
|
|
1234
|
+
headline6: "1.125rem",
|
|
1235
|
+
headline7: "1rem",
|
|
1236
|
+
headline8: "0.875rem",
|
|
1237
|
+
bodyXL: "1.25rem",
|
|
1238
|
+
bodyL: "1.125rem",
|
|
1239
|
+
bodyM: "1rem",
|
|
1240
|
+
bodyS: "0.875rem",
|
|
1241
|
+
bodyXS: "0.8125rem",
|
|
1242
|
+
bodyXXS: "0.75rem",
|
|
1243
|
+
buttonLarge: "1.25rem",
|
|
1244
|
+
buttonMedium: "0.875rem",
|
|
1245
|
+
buttonSmall: "0.875rem",
|
|
1246
|
+
buttonExtraSmall: "0.75rem",
|
|
1247
|
+
badgeLarge: "1rem",
|
|
1248
|
+
badgeMedium: "0.875rem",
|
|
1249
|
+
badgeSmall: "0.75rem",
|
|
1250
|
+
badgeExtraSmall: "0.625rem",
|
|
1251
|
+
tooltip: "0.875rem",
|
|
1252
|
+
popoversRegular: "0.875rem",
|
|
1253
|
+
labelLarge: "1rem",
|
|
1254
|
+
labelMedium: "0.875rem",
|
|
1255
|
+
labelSmall: "0.8125rem",
|
|
1256
|
+
labelExtraSmall: "0.75rem",
|
|
1257
|
+
captionLarge: "0.8125rem",
|
|
1258
|
+
captionMedium: "0.75rem",
|
|
1259
|
+
captionSmall: "0.625rem"
|
|
1226
1260
|
};
|
|
1227
1261
|
var fontWeights = {
|
|
1228
1262
|
regular: "400",
|
|
@@ -1239,8 +1273,42 @@ var lineHeights = {
|
|
|
1239
1273
|
// 12px
|
|
1240
1274
|
base: "150%",
|
|
1241
1275
|
// 16px
|
|
1242
|
-
tall: "175%"
|
|
1276
|
+
tall: "175%",
|
|
1243
1277
|
// 24px
|
|
1278
|
+
displayLarge: "4.5rem",
|
|
1279
|
+
displayMedium: "4rem",
|
|
1280
|
+
displaySmall: "3.25rem",
|
|
1281
|
+
headline1: "3.25rem",
|
|
1282
|
+
headline2: "2.75rem",
|
|
1283
|
+
headline3: "2.5rem",
|
|
1284
|
+
headline4: "1.75rem",
|
|
1285
|
+
headline5: "1.5rem",
|
|
1286
|
+
headline6: "1.375rem",
|
|
1287
|
+
headline7: "1.5rem",
|
|
1288
|
+
headline8: "1.25rem",
|
|
1289
|
+
bodyXL: "1.75rem",
|
|
1290
|
+
bodyL: "1.625rem",
|
|
1291
|
+
bodyM: "1.5rem",
|
|
1292
|
+
bodyS: "1.25rem",
|
|
1293
|
+
bodyXS: "1.125rem",
|
|
1294
|
+
bodyXXS: "1rem",
|
|
1295
|
+
buttonLarge: "1.25rem",
|
|
1296
|
+
buttonMedium: "1rem",
|
|
1297
|
+
buttonSmall: "0.875rem",
|
|
1298
|
+
buttonExtraSmall: "0.75rem",
|
|
1299
|
+
badgeLarge: "1rem",
|
|
1300
|
+
badgeMedium: "0.875rem",
|
|
1301
|
+
badgeSmall: "0.75rem",
|
|
1302
|
+
badgeExtraSmall: "0.625rem",
|
|
1303
|
+
tooltip: "1rem",
|
|
1304
|
+
popoversRegular: "1rem",
|
|
1305
|
+
labelLarge: "1.125rem",
|
|
1306
|
+
labelMedium: "1.125rem",
|
|
1307
|
+
labelSmall: "1rem",
|
|
1308
|
+
labelExtraSmall: "1rem",
|
|
1309
|
+
captionLarge: "1rem",
|
|
1310
|
+
captionMedium: "0.875rem",
|
|
1311
|
+
captionSmall: "0.75rem"
|
|
1244
1312
|
};
|
|
1245
1313
|
var radii = {
|
|
1246
1314
|
"3xs": "2px",
|
|
@@ -1320,19 +1388,199 @@ var {
|
|
|
1320
1388
|
|
|
1321
1389
|
// src/components/Text.tsx
|
|
1322
1390
|
import { Text as TextRadix } from "@radix-ui/themes";
|
|
1391
|
+
|
|
1392
|
+
// src/types/typographyValues.ts
|
|
1393
|
+
var typographyValues = {
|
|
1394
|
+
displayLarge: {
|
|
1395
|
+
fontSize: "$displayLarge",
|
|
1396
|
+
lineHeight: "$displayLarge",
|
|
1397
|
+
letterSpacing: "$displayLarge"
|
|
1398
|
+
},
|
|
1399
|
+
displayMedium: {
|
|
1400
|
+
fontSize: "$displayMedium",
|
|
1401
|
+
lineHeight: "$displayMedium",
|
|
1402
|
+
letterSpacing: "$displayMedium"
|
|
1403
|
+
},
|
|
1404
|
+
displaySmall: {
|
|
1405
|
+
fontSize: "$displaySmall",
|
|
1406
|
+
lineHeight: "$displaySmall",
|
|
1407
|
+
letterSpacing: "$displaySmall"
|
|
1408
|
+
},
|
|
1409
|
+
headline1: {
|
|
1410
|
+
fontSize: "$headline1",
|
|
1411
|
+
lineHeight: "$headline1"
|
|
1412
|
+
},
|
|
1413
|
+
headline2: {
|
|
1414
|
+
fontSize: "$headline2",
|
|
1415
|
+
lineHeight: "$headline2"
|
|
1416
|
+
},
|
|
1417
|
+
headline3: {
|
|
1418
|
+
fontSize: "$headline3",
|
|
1419
|
+
lineHeight: "$headline3"
|
|
1420
|
+
},
|
|
1421
|
+
headline4: {
|
|
1422
|
+
fontSize: "$headline4",
|
|
1423
|
+
lineHeight: "$headline4"
|
|
1424
|
+
},
|
|
1425
|
+
headline5: {
|
|
1426
|
+
fontSize: "$headline5",
|
|
1427
|
+
lineHeight: "$headline5"
|
|
1428
|
+
},
|
|
1429
|
+
headline6: {
|
|
1430
|
+
fontSize: "$headline6",
|
|
1431
|
+
lineHeight: "$headline6"
|
|
1432
|
+
},
|
|
1433
|
+
headline7: {
|
|
1434
|
+
fontSize: "$headline7",
|
|
1435
|
+
lineHeight: "$headline7"
|
|
1436
|
+
},
|
|
1437
|
+
headline8: {
|
|
1438
|
+
fontSize: "$headline8",
|
|
1439
|
+
lineHeight: "$headline8"
|
|
1440
|
+
},
|
|
1441
|
+
bodyXL: {
|
|
1442
|
+
fontSize: "$bodyXL",
|
|
1443
|
+
lineHeight: "$bodyXL"
|
|
1444
|
+
},
|
|
1445
|
+
bodyL: {
|
|
1446
|
+
fontSize: "$bodyL",
|
|
1447
|
+
lineHeight: "$bodyL"
|
|
1448
|
+
},
|
|
1449
|
+
bodyM: {
|
|
1450
|
+
fontSize: "$bodyM",
|
|
1451
|
+
lineHeight: "$bodyM"
|
|
1452
|
+
},
|
|
1453
|
+
bodyS: {
|
|
1454
|
+
fontSize: "$bodyS",
|
|
1455
|
+
lineHeight: "$bodyS"
|
|
1456
|
+
},
|
|
1457
|
+
bodyXS: {
|
|
1458
|
+
fontSize: "$bodyXS",
|
|
1459
|
+
lineHeight: "$bodyXS"
|
|
1460
|
+
},
|
|
1461
|
+
bodyXXS: {
|
|
1462
|
+
fontSize: "$bodyXXS",
|
|
1463
|
+
lineHeight: "$bodyXXS"
|
|
1464
|
+
},
|
|
1465
|
+
badgeLarge: {
|
|
1466
|
+
fontSize: "$badgeLarge",
|
|
1467
|
+
lineHeight: "$badgeLarge"
|
|
1468
|
+
},
|
|
1469
|
+
badgeMedium: {
|
|
1470
|
+
fontSize: "$badgeMedium",
|
|
1471
|
+
lineHeight: "$badgeMedium"
|
|
1472
|
+
},
|
|
1473
|
+
badgeSmall: {
|
|
1474
|
+
fontSize: "$badgeSmall",
|
|
1475
|
+
lineHeight: "$badgeSmall"
|
|
1476
|
+
},
|
|
1477
|
+
badgeExtraSmall: {
|
|
1478
|
+
fontSize: "$badgeExtraSmall",
|
|
1479
|
+
lineHeight: "$badgeExtraSmall"
|
|
1480
|
+
},
|
|
1481
|
+
tooltip: {
|
|
1482
|
+
fontSize: "$tooltip",
|
|
1483
|
+
lineHeight: "$tooltip"
|
|
1484
|
+
},
|
|
1485
|
+
popoversRegular: {
|
|
1486
|
+
fontSize: "$popoversRegular",
|
|
1487
|
+
lineHeight: "$popoversRegular"
|
|
1488
|
+
},
|
|
1489
|
+
captionLarge: {
|
|
1490
|
+
fontSize: "$captionLarge",
|
|
1491
|
+
lineHeight: "$captionLarge"
|
|
1492
|
+
},
|
|
1493
|
+
captionMedium: {
|
|
1494
|
+
fontSize: "$captionMedium",
|
|
1495
|
+
lineHeight: "$captionMedium"
|
|
1496
|
+
},
|
|
1497
|
+
captionSmall: {
|
|
1498
|
+
fontSize: "$captionSmall",
|
|
1499
|
+
lineHeight: "$captionSmall"
|
|
1500
|
+
},
|
|
1501
|
+
buttonLarge: {
|
|
1502
|
+
fontSize: "$buttonLarge",
|
|
1503
|
+
lineHeight: "$buttonLarge"
|
|
1504
|
+
},
|
|
1505
|
+
buttonMedium: {
|
|
1506
|
+
fontSize: "$buttonMedium",
|
|
1507
|
+
lineHeight: "$buttonMedium"
|
|
1508
|
+
},
|
|
1509
|
+
buttonSmall: {
|
|
1510
|
+
fontSize: "$buttonSmall",
|
|
1511
|
+
lineHeight: "$buttonSmall"
|
|
1512
|
+
},
|
|
1513
|
+
buttonExtraSmall: {
|
|
1514
|
+
fontSize: "$buttonExtraSmall",
|
|
1515
|
+
lineHeight: "$buttonExtraSmall"
|
|
1516
|
+
},
|
|
1517
|
+
labelLarge: {
|
|
1518
|
+
fontSize: "$labelLarge",
|
|
1519
|
+
lineHeight: "$labelLarge"
|
|
1520
|
+
},
|
|
1521
|
+
labelMedium: {
|
|
1522
|
+
fontSize: "$labelMedium",
|
|
1523
|
+
lineHeight: "$labelMedium"
|
|
1524
|
+
},
|
|
1525
|
+
labelSmall: {
|
|
1526
|
+
fontSize: "$labelSmall",
|
|
1527
|
+
lineHeight: "$labelSmall"
|
|
1528
|
+
},
|
|
1529
|
+
labelExtraSmall: {
|
|
1530
|
+
fontSize: "$labelExtraSmall",
|
|
1531
|
+
lineHeight: "$labelExtraSmall"
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
var typographyButtonValues = {
|
|
1535
|
+
buttonLarge: {
|
|
1536
|
+
fontSize: "$buttonLarge",
|
|
1537
|
+
lineHeight: "$buttonLarge"
|
|
1538
|
+
},
|
|
1539
|
+
buttonMedium: {
|
|
1540
|
+
fontSize: "$buttonMedium",
|
|
1541
|
+
lineHeight: "$buttonMedium"
|
|
1542
|
+
},
|
|
1543
|
+
buttonSmall: {
|
|
1544
|
+
fontSize: "$buttonSmall",
|
|
1545
|
+
lineHeight: "$buttonSmall"
|
|
1546
|
+
},
|
|
1547
|
+
buttonExtraSmall: {
|
|
1548
|
+
fontSize: "$buttonExtraSmall",
|
|
1549
|
+
lineHeight: "$buttonExtraSmall"
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
var typographyLabelValues = {
|
|
1553
|
+
labelLarge: {
|
|
1554
|
+
fontSize: "$labelLarge",
|
|
1555
|
+
lineHeight: "$labelLarge"
|
|
1556
|
+
},
|
|
1557
|
+
labelMedium: {
|
|
1558
|
+
fontSize: "$labelMedium",
|
|
1559
|
+
lineHeight: "$labelMedium"
|
|
1560
|
+
},
|
|
1561
|
+
labelSmall: {
|
|
1562
|
+
fontSize: "$labelSmall",
|
|
1563
|
+
lineHeight: "$labelSmall"
|
|
1564
|
+
},
|
|
1565
|
+
labelExtraSmall: {
|
|
1566
|
+
fontSize: "$labelExtraSmall",
|
|
1567
|
+
lineHeight: "$labelExtraSmall"
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
// src/components/Text.tsx
|
|
1323
1572
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1324
1573
|
var TextStyle = styled(TextRadix, {
|
|
1325
1574
|
fontFamily: "$default",
|
|
1326
1575
|
lineHeight: "$base",
|
|
1327
1576
|
color: "$gray100",
|
|
1328
|
-
letterSpacing: "$2",
|
|
1329
|
-
fontWeight: "$semibold",
|
|
1330
|
-
fontSize: "$sm",
|
|
1331
1577
|
variants: {
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1578
|
+
typography: typographyValues,
|
|
1579
|
+
fontWeight: {
|
|
1580
|
+
regular: { fontWeight: "$regular" },
|
|
1581
|
+
medium: { fontWeight: "$medium" },
|
|
1582
|
+
semibold: { fontWeight: "$semibold" },
|
|
1583
|
+
bold: { fontWeight: "$bold" }
|
|
1336
1584
|
}
|
|
1337
1585
|
}
|
|
1338
1586
|
});
|
|
@@ -1413,27 +1661,12 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1413
1661
|
}
|
|
1414
1662
|
}
|
|
1415
1663
|
},
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
}
|
|
1422
|
-
sm: {
|
|
1423
|
-
padding: "$8 $14",
|
|
1424
|
-
fontSize: "$13",
|
|
1425
|
-
lineHeight: "$smaller"
|
|
1426
|
-
},
|
|
1427
|
-
md: {
|
|
1428
|
-
padding: "$12 $16",
|
|
1429
|
-
fontSize: "$14",
|
|
1430
|
-
lineHeight: "$smaller"
|
|
1431
|
-
},
|
|
1432
|
-
lg: {
|
|
1433
|
-
padding: "$13 $20",
|
|
1434
|
-
fontSize: "$18",
|
|
1435
|
-
lineHeight: "$smaller"
|
|
1436
|
-
}
|
|
1664
|
+
typography: typographyButtonValues,
|
|
1665
|
+
fontWeight: {
|
|
1666
|
+
regular: { fontWeight: "$regular" },
|
|
1667
|
+
medium: { fontWeight: "$medium" },
|
|
1668
|
+
semibold: { fontWeight: "$semibold" },
|
|
1669
|
+
bold: { fontWeight: "$bold" }
|
|
1437
1670
|
},
|
|
1438
1671
|
radii: {
|
|
1439
1672
|
"full": {
|
|
@@ -1443,7 +1676,7 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1443
1676
|
},
|
|
1444
1677
|
defaultVariants: {
|
|
1445
1678
|
variant: "contained",
|
|
1446
|
-
|
|
1679
|
+
typography: "buttonMedium",
|
|
1447
1680
|
color: "brand"
|
|
1448
1681
|
},
|
|
1449
1682
|
compoundVariants: [
|
|
@@ -1730,79 +1963,85 @@ var ButtonGroupStyled = styled(Flex, {
|
|
|
1730
1963
|
}
|
|
1731
1964
|
}
|
|
1732
1965
|
},
|
|
1733
|
-
|
|
1734
|
-
|
|
1966
|
+
typography: {
|
|
1967
|
+
buttonLarge: {
|
|
1735
1968
|
[`& ${ButtonItemStyled}`]: {
|
|
1736
|
-
padding: "$
|
|
1737
|
-
fontSize: "$
|
|
1738
|
-
lineHeight: "$
|
|
1969
|
+
padding: "$13 $20",
|
|
1970
|
+
fontSize: "$buttonLarge",
|
|
1971
|
+
lineHeight: "$buttonLarge",
|
|
1739
1972
|
"&:not(:first-child)": {
|
|
1740
1973
|
borderLeft: "none"
|
|
1741
1974
|
},
|
|
1742
1975
|
"&:first-child": {
|
|
1743
|
-
borderTopLeftRadius: "$
|
|
1744
|
-
borderBottomLeftRadius: "$
|
|
1976
|
+
borderTopLeftRadius: "$lg",
|
|
1977
|
+
borderBottomLeftRadius: "$lg"
|
|
1745
1978
|
},
|
|
1746
1979
|
"&:last-child": {
|
|
1747
|
-
borderTopRightRadius: "$
|
|
1748
|
-
borderBottomRightRadius: "$
|
|
1980
|
+
borderTopRightRadius: "$lg",
|
|
1981
|
+
borderBottomRightRadius: "$lg"
|
|
1749
1982
|
}
|
|
1750
1983
|
}
|
|
1751
1984
|
},
|
|
1752
|
-
|
|
1985
|
+
buttonMedium: {
|
|
1753
1986
|
[`& ${ButtonItemStyled}`]: {
|
|
1754
|
-
padding: "$
|
|
1755
|
-
fontSize: "$
|
|
1756
|
-
lineHeight: "$
|
|
1987
|
+
padding: "$12 $16",
|
|
1988
|
+
fontSize: "$buttonMedium",
|
|
1989
|
+
lineHeight: "$buttonMedium",
|
|
1757
1990
|
"&:not(:first-child)": {
|
|
1758
1991
|
borderLeft: "none"
|
|
1759
1992
|
},
|
|
1760
1993
|
"&:first-child": {
|
|
1761
|
-
borderTopLeftRadius: "$
|
|
1762
|
-
borderBottomLeftRadius: "$
|
|
1994
|
+
borderTopLeftRadius: "$md",
|
|
1995
|
+
borderBottomLeftRadius: "$md"
|
|
1763
1996
|
},
|
|
1764
1997
|
"&:last-child": {
|
|
1765
|
-
borderTopRightRadius: "$
|
|
1766
|
-
borderBottomRightRadius: "$
|
|
1998
|
+
borderTopRightRadius: "$md",
|
|
1999
|
+
borderBottomRightRadius: "$md"
|
|
1767
2000
|
}
|
|
1768
2001
|
}
|
|
1769
2002
|
},
|
|
1770
|
-
|
|
2003
|
+
buttonSmall: {
|
|
1771
2004
|
[`& ${ButtonItemStyled}`]: {
|
|
1772
|
-
padding: "$
|
|
1773
|
-
fontSize: "$
|
|
1774
|
-
lineHeight: "$
|
|
2005
|
+
padding: "$8 $14",
|
|
2006
|
+
fontSize: "$buttonSmall",
|
|
2007
|
+
lineHeight: "$buttonSmall",
|
|
1775
2008
|
"&:not(:first-child)": {
|
|
1776
2009
|
borderLeft: "none"
|
|
1777
2010
|
},
|
|
1778
2011
|
"&:first-child": {
|
|
1779
|
-
borderTopLeftRadius: "$
|
|
1780
|
-
borderBottomLeftRadius: "$
|
|
2012
|
+
borderTopLeftRadius: "$sm",
|
|
2013
|
+
borderBottomLeftRadius: "$sm"
|
|
1781
2014
|
},
|
|
1782
2015
|
"&:last-child": {
|
|
1783
|
-
borderTopRightRadius: "$
|
|
1784
|
-
borderBottomRightRadius: "$
|
|
2016
|
+
borderTopRightRadius: "$sm",
|
|
2017
|
+
borderBottomRightRadius: "$sm"
|
|
1785
2018
|
}
|
|
1786
2019
|
}
|
|
1787
2020
|
},
|
|
1788
|
-
|
|
2021
|
+
buttonExtraSmall: {
|
|
1789
2022
|
[`& ${ButtonItemStyled}`]: {
|
|
1790
|
-
padding: "$
|
|
1791
|
-
fontSize: "$
|
|
1792
|
-
lineHeight: "$
|
|
2023
|
+
padding: "$6 $12",
|
|
2024
|
+
fontSize: "$buttonExtraSmall",
|
|
2025
|
+
lineHeight: "$buttonExtraSmall",
|
|
1793
2026
|
"&:not(:first-child)": {
|
|
1794
2027
|
borderLeft: "none"
|
|
1795
2028
|
},
|
|
1796
2029
|
"&:first-child": {
|
|
1797
|
-
borderTopLeftRadius: "$
|
|
1798
|
-
borderBottomLeftRadius: "$
|
|
2030
|
+
borderTopLeftRadius: "$xs",
|
|
2031
|
+
borderBottomLeftRadius: "$xs"
|
|
1799
2032
|
},
|
|
1800
2033
|
"&:last-child": {
|
|
1801
|
-
borderTopRightRadius: "$
|
|
1802
|
-
borderBottomRightRadius: "$
|
|
2034
|
+
borderTopRightRadius: "$xs",
|
|
2035
|
+
borderBottomRightRadius: "$xs"
|
|
1803
2036
|
}
|
|
1804
2037
|
}
|
|
1805
2038
|
}
|
|
2039
|
+
},
|
|
2040
|
+
fontWeight: {
|
|
2041
|
+
regular: { [`& ${ButtonItemStyled}`]: { fontWeight: "$regular" } },
|
|
2042
|
+
medium: { [`& ${ButtonItemStyled}`]: { fontWeight: "$medium" } },
|
|
2043
|
+
semibold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$semibold" } },
|
|
2044
|
+
bold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$bold" } }
|
|
1806
2045
|
}
|
|
1807
2046
|
},
|
|
1808
2047
|
compoundVariants: [
|
|
@@ -2128,7 +2367,8 @@ var ButtonGroupStyled = styled(Flex, {
|
|
|
2128
2367
|
],
|
|
2129
2368
|
defaultVariants: {
|
|
2130
2369
|
variant: "contained",
|
|
2131
|
-
|
|
2370
|
+
typography: "buttonMedium",
|
|
2371
|
+
fontWeight: "medium",
|
|
2132
2372
|
color: "brand"
|
|
2133
2373
|
}
|
|
2134
2374
|
});
|
|
@@ -2193,12 +2433,10 @@ function Avatar(_a) {
|
|
|
2193
2433
|
|
|
2194
2434
|
// src/components/TextField.tsx
|
|
2195
2435
|
import { TextField as TextFieldRadix } from "@radix-ui/themes";
|
|
2196
|
-
import {
|
|
2436
|
+
import { jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
2197
2437
|
var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
2198
2438
|
height: "$40",
|
|
2199
2439
|
fontFamily: "$default",
|
|
2200
|
-
letterSpacing: "0px",
|
|
2201
|
-
fontSize: "$13",
|
|
2202
2440
|
padding: "$12 $14",
|
|
2203
2441
|
borderRadius: "$sm",
|
|
2204
2442
|
boxSizing: "border-box",
|
|
@@ -2212,7 +2450,8 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2212
2450
|
outline: "none",
|
|
2213
2451
|
padding: 0,
|
|
2214
2452
|
margin: 0,
|
|
2215
|
-
width: "100%"
|
|
2453
|
+
width: "100%",
|
|
2454
|
+
font: "inherit"
|
|
2216
2455
|
},
|
|
2217
2456
|
"&:has(input:focus)": {
|
|
2218
2457
|
border: "2px solid $brand300"
|
|
@@ -2244,7 +2483,7 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2244
2483
|
"input::placeholder": {
|
|
2245
2484
|
color: "$error400"
|
|
2246
2485
|
},
|
|
2247
|
-
"
|
|
2486
|
+
"&:has(input:focus)": {
|
|
2248
2487
|
border: "2px solid $error400"
|
|
2249
2488
|
},
|
|
2250
2489
|
"&:has(input:disabled)": {
|
|
@@ -2255,6 +2494,13 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2255
2494
|
}
|
|
2256
2495
|
}
|
|
2257
2496
|
},
|
|
2497
|
+
typography: typographyValues,
|
|
2498
|
+
fontWeight: {
|
|
2499
|
+
regular: { fontWeight: "$regular" },
|
|
2500
|
+
medium: { fontWeight: "$medium" },
|
|
2501
|
+
semibold: { fontWeight: "$semibold" },
|
|
2502
|
+
bold: { fontWeight: "$bold" }
|
|
2503
|
+
},
|
|
2258
2504
|
isValid: {
|
|
2259
2505
|
true: {},
|
|
2260
2506
|
false: {}
|
|
@@ -2306,50 +2552,106 @@ var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
|
2306
2552
|
var TextFieldSlotStyled = styled(TextFieldRadix.Slot, {
|
|
2307
2553
|
display: "flex",
|
|
2308
2554
|
alignItems: "center",
|
|
2309
|
-
justifyContent: "center"
|
|
2555
|
+
justifyContent: "center",
|
|
2556
|
+
variants: {
|
|
2557
|
+
typography: typographyValues,
|
|
2558
|
+
fontWeight: {
|
|
2559
|
+
regular: { fontWeight: "$regular" },
|
|
2560
|
+
medium: { fontWeight: "$medium" },
|
|
2561
|
+
semibold: { fontWeight: "$semibold" },
|
|
2562
|
+
bold: { fontWeight: "$bold" }
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2310
2565
|
});
|
|
2311
2566
|
function TextField(_a) {
|
|
2312
2567
|
var _b = _a, {
|
|
2313
2568
|
children,
|
|
2314
2569
|
isValid,
|
|
2315
2570
|
name,
|
|
2316
|
-
color
|
|
2571
|
+
color,
|
|
2572
|
+
typography,
|
|
2573
|
+
fontWeight
|
|
2317
2574
|
} = _b, props = __objRest(_b, [
|
|
2318
2575
|
"children",
|
|
2319
2576
|
"isValid",
|
|
2320
2577
|
"name",
|
|
2321
|
-
"color"
|
|
2578
|
+
"color",
|
|
2579
|
+
"typography",
|
|
2580
|
+
"fontWeight"
|
|
2322
2581
|
]);
|
|
2323
|
-
return /* @__PURE__ */ jsxs(
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2582
|
+
return /* @__PURE__ */ jsxs(
|
|
2583
|
+
TextFieldStyled,
|
|
2584
|
+
__spreadProps(__spreadValues({
|
|
2585
|
+
color,
|
|
2586
|
+
isValid,
|
|
2587
|
+
name,
|
|
2588
|
+
typography,
|
|
2589
|
+
fontWeight
|
|
2590
|
+
}, props), {
|
|
2591
|
+
children: [
|
|
2592
|
+
children,
|
|
2593
|
+
isValid && /* @__PURE__ */ jsx6(
|
|
2594
|
+
TextFieldSlot,
|
|
2595
|
+
{
|
|
2596
|
+
position: "flex-end",
|
|
2597
|
+
name,
|
|
2598
|
+
color,
|
|
2599
|
+
typography,
|
|
2600
|
+
fontWeight,
|
|
2601
|
+
children: /* @__PURE__ */ jsx6(Icon_default, { name: "check" })
|
|
2602
|
+
}
|
|
2603
|
+
)
|
|
2604
|
+
]
|
|
2605
|
+
})
|
|
2606
|
+
);
|
|
2327
2607
|
}
|
|
2328
2608
|
function TextFieldSlot(_a) {
|
|
2329
2609
|
var _b = _a, {
|
|
2330
2610
|
children,
|
|
2331
2611
|
position = "flex-start",
|
|
2332
|
-
onClick
|
|
2612
|
+
onClick,
|
|
2613
|
+
typography = "bodyXS",
|
|
2614
|
+
fontWeight = "regular"
|
|
2333
2615
|
} = _b, props = __objRest(_b, [
|
|
2334
2616
|
"children",
|
|
2335
2617
|
"position",
|
|
2336
|
-
"onClick"
|
|
2618
|
+
"onClick",
|
|
2619
|
+
"typography",
|
|
2620
|
+
"fontWeight"
|
|
2337
2621
|
]);
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2622
|
+
const sharedStyles = __spreadProps(__spreadValues({
|
|
2623
|
+
typography,
|
|
2624
|
+
fontWeight
|
|
2625
|
+
}, props), {
|
|
2626
|
+
color: void 0
|
|
2627
|
+
});
|
|
2628
|
+
return !!onClick ? /* @__PURE__ */ jsx6(
|
|
2629
|
+
TextFieldSlotStyled,
|
|
2630
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2631
|
+
style: {
|
|
2632
|
+
position: "absolute",
|
|
2633
|
+
left: position === "flex-end" ? "none" : 15,
|
|
2634
|
+
right: position === "flex-start" ? "none" : 15,
|
|
2635
|
+
padding: 13,
|
|
2636
|
+
zIndex: 2,
|
|
2637
|
+
top: 0,
|
|
2638
|
+
cursor: "pointer"
|
|
2639
|
+
},
|
|
2640
|
+
onClick: () => onClick(),
|
|
2641
|
+
children
|
|
2642
|
+
})
|
|
2643
|
+
) : /* @__PURE__ */ jsx6(
|
|
2644
|
+
TextFieldSlotStyled,
|
|
2645
|
+
__spreadProps(__spreadValues({}, sharedStyles), {
|
|
2646
|
+
style: {
|
|
2647
|
+
float: position === "flex-start" ? "left" : "right",
|
|
2648
|
+
order: position === "flex-start" ? 0 : 2,
|
|
2649
|
+
marginLeft: position === "flex-start" ? 0 : 15,
|
|
2650
|
+
marginRight: position === "flex-end" ? 0 : 15
|
|
2651
|
+
},
|
|
2652
|
+
children
|
|
2653
|
+
})
|
|
2654
|
+
);
|
|
2353
2655
|
}
|
|
2354
2656
|
|
|
2355
2657
|
// src/components/RadioGroup.tsx
|
|
@@ -2357,8 +2659,6 @@ import { RadioGroup as RadioGroupRadix } from "@radix-ui/themes";
|
|
|
2357
2659
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2358
2660
|
var RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
2359
2661
|
fontFamily: "$default",
|
|
2360
|
-
letterSpacing: "0px",
|
|
2361
|
-
fontSize: "$13",
|
|
2362
2662
|
"label": {
|
|
2363
2663
|
display: "flex",
|
|
2364
2664
|
alignItems: "center",
|
|
@@ -2446,6 +2746,13 @@ var RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
|
2446
2746
|
}
|
|
2447
2747
|
},
|
|
2448
2748
|
false: {}
|
|
2749
|
+
},
|
|
2750
|
+
typography: typographyLabelValues,
|
|
2751
|
+
fontWeight: {
|
|
2752
|
+
regular: { fontWeight: "$regular" },
|
|
2753
|
+
medium: { fontWeight: "$medium" },
|
|
2754
|
+
semibold: { fontWeight: "$semibold" },
|
|
2755
|
+
bold: { fontWeight: "$bold" }
|
|
2449
2756
|
}
|
|
2450
2757
|
},
|
|
2451
2758
|
compoundVariants: [
|
|
@@ -2542,8 +2849,6 @@ import { CheckboxGroup as CheckboxGroupRadix } from "@radix-ui/themes";
|
|
|
2542
2849
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2543
2850
|
var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
2544
2851
|
fontFamily: "$default",
|
|
2545
|
-
letterSpacing: "0px",
|
|
2546
|
-
fontSize: "$13",
|
|
2547
2852
|
"svg": {
|
|
2548
2853
|
display: "none"
|
|
2549
2854
|
},
|
|
@@ -2633,6 +2938,13 @@ var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
|
2633
2938
|
}
|
|
2634
2939
|
},
|
|
2635
2940
|
false: {}
|
|
2941
|
+
},
|
|
2942
|
+
typography: typographyLabelValues,
|
|
2943
|
+
fontWeight: {
|
|
2944
|
+
regular: { fontWeight: "$regular" },
|
|
2945
|
+
medium: { fontWeight: "$medium" },
|
|
2946
|
+
semibold: { fontWeight: "$semibold" },
|
|
2947
|
+
bold: { fontWeight: "$bold" }
|
|
2636
2948
|
}
|
|
2637
2949
|
},
|
|
2638
2950
|
compoundVariants: [
|
|
@@ -2718,6 +3030,34 @@ function CheckboxItem(_a) {
|
|
|
2718
3030
|
// src/components/Filter.tsx
|
|
2719
3031
|
import { Theme, DropdownMenu } from "@radix-ui/themes";
|
|
2720
3032
|
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3033
|
+
var FilterContentStyled = styled(DropdownMenu.Content, {
|
|
3034
|
+
background: "white",
|
|
3035
|
+
padding: "$8 $12",
|
|
3036
|
+
border: "1px solid $dark300",
|
|
3037
|
+
borderRadius: "$xs",
|
|
3038
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3039
|
+
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
3040
|
+
minWidth: "100%",
|
|
3041
|
+
marginTop: "3px",
|
|
3042
|
+
fontFamily: "$default",
|
|
3043
|
+
variants: {
|
|
3044
|
+
typography: typographyLabelValues,
|
|
3045
|
+
fontWeight: {
|
|
3046
|
+
regular: {
|
|
3047
|
+
fontWeight: "$regular"
|
|
3048
|
+
},
|
|
3049
|
+
medium: {
|
|
3050
|
+
fontWeight: "$medium"
|
|
3051
|
+
},
|
|
3052
|
+
semibold: {
|
|
3053
|
+
fontWeight: "$semibold"
|
|
3054
|
+
},
|
|
3055
|
+
bold: {
|
|
3056
|
+
fontWeight: "$bold"
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
});
|
|
2721
3061
|
var FilterStyled = styled("div", {
|
|
2722
3062
|
fontFamily: "$default",
|
|
2723
3063
|
color: "$dark600",
|
|
@@ -2743,27 +3083,63 @@ var FilterStyled = styled("div", {
|
|
|
2743
3083
|
"svg:last-child": {
|
|
2744
3084
|
marginLeft: "auto"
|
|
2745
3085
|
}
|
|
3086
|
+
},
|
|
3087
|
+
variants: {
|
|
3088
|
+
typography: {
|
|
3089
|
+
labelLarge: {
|
|
3090
|
+
"span": {
|
|
3091
|
+
fontSize: "$labelLarge",
|
|
3092
|
+
lineHeight: "$labelLarge"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
labelMedium: {
|
|
3096
|
+
"span": {
|
|
3097
|
+
fontSize: "$labelMedium",
|
|
3098
|
+
lineHeight: "$labelMedium"
|
|
3099
|
+
}
|
|
3100
|
+
},
|
|
3101
|
+
labelSmall: {
|
|
3102
|
+
"span": {
|
|
3103
|
+
fontSize: "$labelSmall",
|
|
3104
|
+
lineHeight: "$labelSmall"
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
labelExtraSmall: {
|
|
3108
|
+
"span": {
|
|
3109
|
+
fontSize: "$labelExtraSmall",
|
|
3110
|
+
lineHeight: "$labelExtraSmall"
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
fontWeight: {
|
|
3115
|
+
regular: {
|
|
3116
|
+
"span": { fontWeight: "$regular" }
|
|
3117
|
+
},
|
|
3118
|
+
medium: {
|
|
3119
|
+
"span": { fontWeight: "$medium" }
|
|
3120
|
+
},
|
|
3121
|
+
semibold: {
|
|
3122
|
+
"span": { fontWeight: "$semibold" }
|
|
3123
|
+
},
|
|
3124
|
+
bold: {
|
|
3125
|
+
"span": { fontWeight: "$bold" }
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
2746
3128
|
}
|
|
2747
3129
|
});
|
|
2748
|
-
var FilterContentStyled = styled(DropdownMenu.Content, {
|
|
2749
|
-
background: "white",
|
|
2750
|
-
padding: "$8 $12",
|
|
2751
|
-
border: "1px solid $dark300",
|
|
2752
|
-
borderRadius: "$xs",
|
|
2753
|
-
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
2754
|
-
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
2755
|
-
minWidth: "100%",
|
|
2756
|
-
marginTop: "3px"
|
|
2757
|
-
});
|
|
2758
3130
|
function Filter(_a) {
|
|
2759
3131
|
var _b = _a, {
|
|
2760
3132
|
children,
|
|
2761
|
-
placeholder
|
|
3133
|
+
placeholder,
|
|
3134
|
+
typography,
|
|
3135
|
+
fontWeight
|
|
2762
3136
|
} = _b, props = __objRest(_b, [
|
|
2763
3137
|
"children",
|
|
2764
|
-
"placeholder"
|
|
3138
|
+
"placeholder",
|
|
3139
|
+
"typography",
|
|
3140
|
+
"fontWeight"
|
|
2765
3141
|
]);
|
|
2766
|
-
return /* @__PURE__ */ jsx9(Theme, { children: /* @__PURE__ */ jsx9(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs2(FilterStyled, { children: [
|
|
3142
|
+
return /* @__PURE__ */ jsx9(Theme, { children: /* @__PURE__ */ jsx9(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs2(FilterStyled, { typography, fontWeight, children: [
|
|
2767
3143
|
/* @__PURE__ */ jsx9(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsxs2("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
2768
3144
|
/* @__PURE__ */ jsx9(Icon, { name: "filter" }),
|
|
2769
3145
|
/* @__PURE__ */ jsx9("span", { children: placeholder || "Fitrar" }),
|
|
@@ -2775,6 +3151,8 @@ function Filter(_a) {
|
|
|
2775
3151
|
avoidCollisions: false,
|
|
2776
3152
|
align: "start",
|
|
2777
3153
|
alignOffset: -14,
|
|
3154
|
+
typography,
|
|
3155
|
+
fontWeight,
|
|
2778
3156
|
children: /* @__PURE__ */ jsx9(CheckboxGroup, { children })
|
|
2779
3157
|
}
|
|
2780
3158
|
)
|
|
@@ -2792,6 +3170,27 @@ function FilterItem(_a) {
|
|
|
2792
3170
|
// src/components/Dropdown.tsx
|
|
2793
3171
|
import { Theme as Theme2, DropdownMenu as DropdownMenuRadix } from "@radix-ui/themes";
|
|
2794
3172
|
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
3173
|
+
var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
|
|
3174
|
+
fontFamily: "$default",
|
|
3175
|
+
color: "$dark600",
|
|
3176
|
+
letterSpacing: "0px",
|
|
3177
|
+
padding: "$8 $12",
|
|
3178
|
+
"&:hover, &:focus": {
|
|
3179
|
+
backgroundColor: "transparent",
|
|
3180
|
+
border: "none",
|
|
3181
|
+
outline: "none",
|
|
3182
|
+
cursor: "pointer"
|
|
3183
|
+
},
|
|
3184
|
+
variants: {
|
|
3185
|
+
typography: typographyLabelValues,
|
|
3186
|
+
fontWeight: {
|
|
3187
|
+
regular: { fontWeight: "$regular" },
|
|
3188
|
+
medium: { fontWeight: "$medium" },
|
|
3189
|
+
semibold: { fontWeight: "$semibold" },
|
|
3190
|
+
bold: { fontWeight: "$bold" }
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
2795
3194
|
var DropdownMenuStyled = styled("div", {
|
|
2796
3195
|
fontFamily: "$default",
|
|
2797
3196
|
color: "$dark600",
|
|
@@ -2817,6 +3216,40 @@ var DropdownMenuStyled = styled("div", {
|
|
|
2817
3216
|
"svg": {
|
|
2818
3217
|
marginLeft: "auto"
|
|
2819
3218
|
}
|
|
3219
|
+
},
|
|
3220
|
+
variants: {
|
|
3221
|
+
typography: {
|
|
3222
|
+
labelLarge: {
|
|
3223
|
+
"button": {
|
|
3224
|
+
fontSize: "$labelLarge",
|
|
3225
|
+
lineHeight: "$labelLarge"
|
|
3226
|
+
}
|
|
3227
|
+
},
|
|
3228
|
+
labelMedium: {
|
|
3229
|
+
"button": {
|
|
3230
|
+
fontSize: "$labelMedium",
|
|
3231
|
+
lineHeight: "$labelMedium"
|
|
3232
|
+
}
|
|
3233
|
+
},
|
|
3234
|
+
labelSmall: {
|
|
3235
|
+
"button": {
|
|
3236
|
+
fontSize: "$labelSmall",
|
|
3237
|
+
lineHeight: "$labelSmall"
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
labelExtraSmall: {
|
|
3241
|
+
"button": {
|
|
3242
|
+
fontSize: "$labelExtraSmall",
|
|
3243
|
+
lineHeight: "$labelExtraSmall"
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
},
|
|
3247
|
+
fontWeight: {
|
|
3248
|
+
regular: { "button": { fontWeight: "$regular" } },
|
|
3249
|
+
medium: { "button": { fontWeight: "$medium" } },
|
|
3250
|
+
semibold: { "button": { fontWeight: "$semibold" } },
|
|
3251
|
+
bold: { "button": { fontWeight: "$bold" } }
|
|
3252
|
+
}
|
|
2820
3253
|
}
|
|
2821
3254
|
});
|
|
2822
3255
|
var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
|
|
@@ -2829,29 +3262,21 @@ var DropdownMenuContentStyled = styled(DropdownMenuRadix.Content, {
|
|
|
2829
3262
|
minWidth: "100%",
|
|
2830
3263
|
marginTop: "3px"
|
|
2831
3264
|
});
|
|
2832
|
-
var DropdownMenuItemStyled = styled(DropdownMenuRadix.Item, {
|
|
2833
|
-
fontFamily: "$default",
|
|
2834
|
-
color: "$dark600",
|
|
2835
|
-
letterSpacing: "0px",
|
|
2836
|
-
padding: "$8 $12",
|
|
2837
|
-
"&:hover, &:focus": {
|
|
2838
|
-
backgroundColor: "transparent",
|
|
2839
|
-
border: "none",
|
|
2840
|
-
outline: "none",
|
|
2841
|
-
cursor: "pointer"
|
|
2842
|
-
}
|
|
2843
|
-
});
|
|
2844
3265
|
function DropdownMenu2(_a) {
|
|
2845
3266
|
var _b = _a, {
|
|
2846
3267
|
children,
|
|
2847
|
-
placeholder
|
|
3268
|
+
placeholder,
|
|
3269
|
+
typography,
|
|
3270
|
+
fontWeight
|
|
2848
3271
|
} = _b, props = __objRest(_b, [
|
|
2849
3272
|
"children",
|
|
2850
|
-
"placeholder"
|
|
3273
|
+
"placeholder",
|
|
3274
|
+
"typography",
|
|
3275
|
+
"fontWeight"
|
|
2851
3276
|
]);
|
|
2852
|
-
return /* @__PURE__ */ jsx10(Theme2, { children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs3(DropdownMenuStyled, { children: [
|
|
2853
|
-
/* @__PURE__ */ jsx10(DropdownMenuRadix.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "
|
|
2854
|
-
/* @__PURE__ */ jsx10("span", { children: placeholder || "
|
|
3277
|
+
return /* @__PURE__ */ jsx10(Theme2, { children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs3(DropdownMenuStyled, { typography, fontWeight, children: [
|
|
3278
|
+
/* @__PURE__ */ jsx10(DropdownMenuRadix.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "Filtrar", children: [
|
|
3279
|
+
/* @__PURE__ */ jsx10("span", { children: placeholder || "Filtrar" }),
|
|
2855
3280
|
/* @__PURE__ */ jsx10(DropdownMenuRadix.TriggerIcon, {})
|
|
2856
3281
|
] }) }),
|
|
2857
3282
|
/* @__PURE__ */ jsx10(
|
|
@@ -2867,11 +3292,23 @@ function DropdownMenu2(_a) {
|
|
|
2867
3292
|
}
|
|
2868
3293
|
function DropdownMenuItem(_a) {
|
|
2869
3294
|
var _b = _a, {
|
|
2870
|
-
children
|
|
3295
|
+
children,
|
|
3296
|
+
typography,
|
|
3297
|
+
fontWeight
|
|
2871
3298
|
} = _b, props = __objRest(_b, [
|
|
2872
|
-
"children"
|
|
3299
|
+
"children",
|
|
3300
|
+
"typography",
|
|
3301
|
+
"fontWeight"
|
|
2873
3302
|
]);
|
|
2874
|
-
return /* @__PURE__ */ jsx10(
|
|
3303
|
+
return /* @__PURE__ */ jsx10(
|
|
3304
|
+
DropdownMenuItemStyled,
|
|
3305
|
+
__spreadProps(__spreadValues({
|
|
3306
|
+
typography,
|
|
3307
|
+
fontWeight
|
|
3308
|
+
}, props), {
|
|
3309
|
+
children
|
|
3310
|
+
})
|
|
3311
|
+
);
|
|
2875
3312
|
}
|
|
2876
3313
|
|
|
2877
3314
|
// src/components/Badge.tsx
|
|
@@ -2939,29 +3376,35 @@ var BadgeStyled = styled(BadgeRadix, {
|
|
|
2939
3376
|
size: {
|
|
2940
3377
|
xs: {
|
|
2941
3378
|
padding: "$4 $6",
|
|
2942
|
-
fontSize: "$
|
|
3379
|
+
fontSize: "$badgeExtraSmall",
|
|
2943
3380
|
borderRadius: "$2xs",
|
|
2944
|
-
lineHeight: "$
|
|
3381
|
+
lineHeight: "$bagdeExtraSmall"
|
|
2945
3382
|
},
|
|
2946
3383
|
sm: {
|
|
2947
3384
|
padding: "$4 $8",
|
|
2948
|
-
fontSize: "$
|
|
3385
|
+
fontSize: "$badgeSmall",
|
|
2949
3386
|
borderRadius: "$xs",
|
|
2950
|
-
lineHeight: "$
|
|
3387
|
+
lineHeight: "$badgeSmall"
|
|
2951
3388
|
},
|
|
2952
3389
|
md: {
|
|
2953
3390
|
padding: "$8 $10",
|
|
2954
|
-
fontSize: "$
|
|
3391
|
+
fontSize: "$badgeMedium",
|
|
2955
3392
|
borderRadius: "$sm",
|
|
2956
|
-
lineHeight: "$
|
|
3393
|
+
lineHeight: "$badgeMedium"
|
|
2957
3394
|
},
|
|
2958
3395
|
xl: {
|
|
2959
3396
|
padding: "$12 $12",
|
|
2960
|
-
fontSize: "$
|
|
3397
|
+
fontSize: "$badgeLarge",
|
|
2961
3398
|
borderRadius: "$sm",
|
|
2962
|
-
lineHeight: "$
|
|
3399
|
+
lineHeight: "$badgeLarge"
|
|
2963
3400
|
}
|
|
2964
3401
|
},
|
|
3402
|
+
fontWeight: {
|
|
3403
|
+
regular: { fontWeight: "$regular" },
|
|
3404
|
+
medium: { fontWeight: "$medium" },
|
|
3405
|
+
semibold: { fontWeight: "$semibold" },
|
|
3406
|
+
bold: { fontWeight: "$bold" }
|
|
3407
|
+
},
|
|
2965
3408
|
radii: {
|
|
2966
3409
|
"full": {
|
|
2967
3410
|
borderRadius: "$full"
|
|
@@ -2970,7 +3413,8 @@ var BadgeStyled = styled(BadgeRadix, {
|
|
|
2970
3413
|
},
|
|
2971
3414
|
defaultVariants: {
|
|
2972
3415
|
size: "md",
|
|
2973
|
-
color: "primary"
|
|
3416
|
+
color: "primary",
|
|
3417
|
+
fontWeight: "regular"
|
|
2974
3418
|
}
|
|
2975
3419
|
});
|
|
2976
3420
|
function Badge(_a) {
|
|
@@ -3165,7 +3609,7 @@ function Modal(_a) {
|
|
|
3165
3609
|
|
|
3166
3610
|
// src/components/Alert.tsx
|
|
3167
3611
|
import { Theme as Theme3, AlertDialog } from "@radix-ui/themes";
|
|
3168
|
-
import { Fragment
|
|
3612
|
+
import { Fragment, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3169
3613
|
var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
|
|
3170
3614
|
fontFamily: "$default",
|
|
3171
3615
|
lineHeight: "$base",
|
|
@@ -3280,10 +3724,10 @@ function Alert(_a) {
|
|
|
3280
3724
|
"simpleAlert"
|
|
3281
3725
|
]);
|
|
3282
3726
|
console.log("completAlert", completAlert, " simpleAlert", simpleAlert);
|
|
3283
|
-
return /* @__PURE__ */ jsxs5(
|
|
3727
|
+
return /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
3284
3728
|
simpleAlert && /* @__PURE__ */ jsx14(Theme3, { children: /* @__PURE__ */ jsxs5(AlertDialog.Root, { children: [
|
|
3285
3729
|
/* @__PURE__ */ jsx14(AlertDialog.Trigger, { children: trigger }),
|
|
3286
|
-
/* @__PURE__ */ jsx14(
|
|
3730
|
+
/* @__PURE__ */ jsx14(Fragment, { children: /* @__PURE__ */ jsxs5(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3287
3731
|
/* @__PURE__ */ jsx14(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
|
|
3288
3732
|
simpleAlert.cancel && /* @__PURE__ */ jsx14(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx14(Button, { variant: "text", children: /* @__PURE__ */ jsx14(Icon_default, { name: "close" }) }) })
|
|
3289
3733
|
] })) })
|