@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.js
CHANGED
|
@@ -241,7 +241,7 @@ var require_react_is_development = __commonJS({
|
|
|
241
241
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
242
242
|
var Element = REACT_ELEMENT_TYPE;
|
|
243
243
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
244
|
-
var
|
|
244
|
+
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
245
245
|
var Lazy = REACT_LAZY_TYPE;
|
|
246
246
|
var Memo = REACT_MEMO_TYPE;
|
|
247
247
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -300,7 +300,7 @@ var require_react_is_development = __commonJS({
|
|
|
300
300
|
exports2.ContextProvider = ContextProvider;
|
|
301
301
|
exports2.Element = Element;
|
|
302
302
|
exports2.ForwardRef = ForwardRef;
|
|
303
|
-
exports2.Fragment =
|
|
303
|
+
exports2.Fragment = Fragment2;
|
|
304
304
|
exports2.Lazy = Lazy;
|
|
305
305
|
exports2.Memo = Memo;
|
|
306
306
|
exports2.Portal = Portal;
|
|
@@ -1290,7 +1290,41 @@ var fontSizes = {
|
|
|
1290
1290
|
"2xl": "1.5rem",
|
|
1291
1291
|
"3xl": "2rem",
|
|
1292
1292
|
"4xl": "2.5rem",
|
|
1293
|
-
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"
|
|
1294
1328
|
};
|
|
1295
1329
|
var fontWeights = {
|
|
1296
1330
|
regular: "400",
|
|
@@ -1307,8 +1341,42 @@ var lineHeights = {
|
|
|
1307
1341
|
// 12px
|
|
1308
1342
|
base: "150%",
|
|
1309
1343
|
// 16px
|
|
1310
|
-
tall: "175%"
|
|
1344
|
+
tall: "175%",
|
|
1311
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"
|
|
1312
1380
|
};
|
|
1313
1381
|
var radii = {
|
|
1314
1382
|
"3xs": "2px",
|
|
@@ -1388,19 +1456,199 @@ var {
|
|
|
1388
1456
|
|
|
1389
1457
|
// src/components/Text.tsx
|
|
1390
1458
|
var import_themes = require("@radix-ui/themes");
|
|
1459
|
+
|
|
1460
|
+
// src/types/typographyValues.ts
|
|
1461
|
+
var typographyValues = {
|
|
1462
|
+
displayLarge: {
|
|
1463
|
+
fontSize: "$displayLarge",
|
|
1464
|
+
lineHeight: "$displayLarge",
|
|
1465
|
+
letterSpacing: "$displayLarge"
|
|
1466
|
+
},
|
|
1467
|
+
displayMedium: {
|
|
1468
|
+
fontSize: "$displayMedium",
|
|
1469
|
+
lineHeight: "$displayMedium",
|
|
1470
|
+
letterSpacing: "$displayMedium"
|
|
1471
|
+
},
|
|
1472
|
+
displaySmall: {
|
|
1473
|
+
fontSize: "$displaySmall",
|
|
1474
|
+
lineHeight: "$displaySmall",
|
|
1475
|
+
letterSpacing: "$displaySmall"
|
|
1476
|
+
},
|
|
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"
|
|
1600
|
+
}
|
|
1601
|
+
};
|
|
1602
|
+
var typographyButtonValues = {
|
|
1603
|
+
buttonLarge: {
|
|
1604
|
+
fontSize: "$buttonLarge",
|
|
1605
|
+
lineHeight: "$buttonLarge"
|
|
1606
|
+
},
|
|
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"
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
var typographyLabelValues = {
|
|
1621
|
+
labelLarge: {
|
|
1622
|
+
fontSize: "$labelLarge",
|
|
1623
|
+
lineHeight: "$labelLarge"
|
|
1624
|
+
},
|
|
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"
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
// src/components/Text.tsx
|
|
1391
1640
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
1392
1641
|
var TextStyle = styled(import_themes.Text, {
|
|
1393
1642
|
fontFamily: "$default",
|
|
1394
1643
|
lineHeight: "$base",
|
|
1395
1644
|
color: "$gray100",
|
|
1396
|
-
letterSpacing: "$2",
|
|
1397
|
-
fontWeight: "$semibold",
|
|
1398
|
-
fontSize: "$sm",
|
|
1399
1645
|
variants: {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1646
|
+
typography: typographyValues,
|
|
1647
|
+
fontWeight: {
|
|
1648
|
+
regular: { fontWeight: "$regular" },
|
|
1649
|
+
medium: { fontWeight: "$medium" },
|
|
1650
|
+
semibold: { fontWeight: "$semibold" },
|
|
1651
|
+
bold: { fontWeight: "$bold" }
|
|
1404
1652
|
}
|
|
1405
1653
|
}
|
|
1406
1654
|
});
|
|
@@ -1481,27 +1729,12 @@ var ButtonStyled = styled(import_themes2.Button, {
|
|
|
1481
1729
|
}
|
|
1482
1730
|
}
|
|
1483
1731
|
},
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
}
|
|
1490
|
-
sm: {
|
|
1491
|
-
padding: "$8 $14",
|
|
1492
|
-
fontSize: "$13",
|
|
1493
|
-
lineHeight: "$smaller"
|
|
1494
|
-
},
|
|
1495
|
-
md: {
|
|
1496
|
-
padding: "$12 $16",
|
|
1497
|
-
fontSize: "$14",
|
|
1498
|
-
lineHeight: "$smaller"
|
|
1499
|
-
},
|
|
1500
|
-
lg: {
|
|
1501
|
-
padding: "$13 $20",
|
|
1502
|
-
fontSize: "$18",
|
|
1503
|
-
lineHeight: "$smaller"
|
|
1504
|
-
}
|
|
1732
|
+
typography: typographyButtonValues,
|
|
1733
|
+
fontWeight: {
|
|
1734
|
+
regular: { fontWeight: "$regular" },
|
|
1735
|
+
medium: { fontWeight: "$medium" },
|
|
1736
|
+
semibold: { fontWeight: "$semibold" },
|
|
1737
|
+
bold: { fontWeight: "$bold" }
|
|
1505
1738
|
},
|
|
1506
1739
|
radii: {
|
|
1507
1740
|
"full": {
|
|
@@ -1511,7 +1744,7 @@ var ButtonStyled = styled(import_themes2.Button, {
|
|
|
1511
1744
|
},
|
|
1512
1745
|
defaultVariants: {
|
|
1513
1746
|
variant: "contained",
|
|
1514
|
-
|
|
1747
|
+
typography: "buttonMedium",
|
|
1515
1748
|
color: "brand"
|
|
1516
1749
|
},
|
|
1517
1750
|
compoundVariants: [
|
|
@@ -1798,79 +2031,85 @@ var ButtonGroupStyled = styled(import_themes3.Flex, {
|
|
|
1798
2031
|
}
|
|
1799
2032
|
}
|
|
1800
2033
|
},
|
|
1801
|
-
|
|
1802
|
-
|
|
2034
|
+
typography: {
|
|
2035
|
+
buttonLarge: {
|
|
1803
2036
|
[`& ${ButtonItemStyled}`]: {
|
|
1804
|
-
padding: "$
|
|
1805
|
-
fontSize: "$
|
|
1806
|
-
lineHeight: "$
|
|
2037
|
+
padding: "$13 $20",
|
|
2038
|
+
fontSize: "$buttonLarge",
|
|
2039
|
+
lineHeight: "$buttonLarge",
|
|
1807
2040
|
"&:not(:first-child)": {
|
|
1808
2041
|
borderLeft: "none"
|
|
1809
2042
|
},
|
|
1810
2043
|
"&:first-child": {
|
|
1811
|
-
borderTopLeftRadius: "$
|
|
1812
|
-
borderBottomLeftRadius: "$
|
|
2044
|
+
borderTopLeftRadius: "$lg",
|
|
2045
|
+
borderBottomLeftRadius: "$lg"
|
|
1813
2046
|
},
|
|
1814
2047
|
"&:last-child": {
|
|
1815
|
-
borderTopRightRadius: "$
|
|
1816
|
-
borderBottomRightRadius: "$
|
|
2048
|
+
borderTopRightRadius: "$lg",
|
|
2049
|
+
borderBottomRightRadius: "$lg"
|
|
1817
2050
|
}
|
|
1818
2051
|
}
|
|
1819
2052
|
},
|
|
1820
|
-
|
|
2053
|
+
buttonMedium: {
|
|
1821
2054
|
[`& ${ButtonItemStyled}`]: {
|
|
1822
|
-
padding: "$
|
|
1823
|
-
fontSize: "$
|
|
1824
|
-
lineHeight: "$
|
|
2055
|
+
padding: "$12 $16",
|
|
2056
|
+
fontSize: "$buttonMedium",
|
|
2057
|
+
lineHeight: "$buttonMedium",
|
|
1825
2058
|
"&:not(:first-child)": {
|
|
1826
2059
|
borderLeft: "none"
|
|
1827
2060
|
},
|
|
1828
2061
|
"&:first-child": {
|
|
1829
|
-
borderTopLeftRadius: "$
|
|
1830
|
-
borderBottomLeftRadius: "$
|
|
2062
|
+
borderTopLeftRadius: "$md",
|
|
2063
|
+
borderBottomLeftRadius: "$md"
|
|
1831
2064
|
},
|
|
1832
2065
|
"&:last-child": {
|
|
1833
|
-
borderTopRightRadius: "$
|
|
1834
|
-
borderBottomRightRadius: "$
|
|
2066
|
+
borderTopRightRadius: "$md",
|
|
2067
|
+
borderBottomRightRadius: "$md"
|
|
1835
2068
|
}
|
|
1836
2069
|
}
|
|
1837
2070
|
},
|
|
1838
|
-
|
|
2071
|
+
buttonSmall: {
|
|
1839
2072
|
[`& ${ButtonItemStyled}`]: {
|
|
1840
|
-
padding: "$
|
|
1841
|
-
fontSize: "$
|
|
1842
|
-
lineHeight: "$
|
|
2073
|
+
padding: "$8 $14",
|
|
2074
|
+
fontSize: "$buttonSmall",
|
|
2075
|
+
lineHeight: "$buttonSmall",
|
|
1843
2076
|
"&:not(:first-child)": {
|
|
1844
2077
|
borderLeft: "none"
|
|
1845
2078
|
},
|
|
1846
2079
|
"&:first-child": {
|
|
1847
|
-
borderTopLeftRadius: "$
|
|
1848
|
-
borderBottomLeftRadius: "$
|
|
2080
|
+
borderTopLeftRadius: "$sm",
|
|
2081
|
+
borderBottomLeftRadius: "$sm"
|
|
1849
2082
|
},
|
|
1850
2083
|
"&:last-child": {
|
|
1851
|
-
borderTopRightRadius: "$
|
|
1852
|
-
borderBottomRightRadius: "$
|
|
2084
|
+
borderTopRightRadius: "$sm",
|
|
2085
|
+
borderBottomRightRadius: "$sm"
|
|
1853
2086
|
}
|
|
1854
2087
|
}
|
|
1855
2088
|
},
|
|
1856
|
-
|
|
2089
|
+
buttonExtraSmall: {
|
|
1857
2090
|
[`& ${ButtonItemStyled}`]: {
|
|
1858
|
-
padding: "$
|
|
1859
|
-
fontSize: "$
|
|
1860
|
-
lineHeight: "$
|
|
2091
|
+
padding: "$6 $12",
|
|
2092
|
+
fontSize: "$buttonExtraSmall",
|
|
2093
|
+
lineHeight: "$buttonExtraSmall",
|
|
1861
2094
|
"&:not(:first-child)": {
|
|
1862
2095
|
borderLeft: "none"
|
|
1863
2096
|
},
|
|
1864
2097
|
"&:first-child": {
|
|
1865
|
-
borderTopLeftRadius: "$
|
|
1866
|
-
borderBottomLeftRadius: "$
|
|
2098
|
+
borderTopLeftRadius: "$xs",
|
|
2099
|
+
borderBottomLeftRadius: "$xs"
|
|
1867
2100
|
},
|
|
1868
2101
|
"&:last-child": {
|
|
1869
|
-
borderTopRightRadius: "$
|
|
1870
|
-
borderBottomRightRadius: "$
|
|
2102
|
+
borderTopRightRadius: "$xs",
|
|
2103
|
+
borderBottomRightRadius: "$xs"
|
|
1871
2104
|
}
|
|
1872
2105
|
}
|
|
1873
2106
|
}
|
|
2107
|
+
},
|
|
2108
|
+
fontWeight: {
|
|
2109
|
+
regular: { [`& ${ButtonItemStyled}`]: { fontWeight: "$regular" } },
|
|
2110
|
+
medium: { [`& ${ButtonItemStyled}`]: { fontWeight: "$medium" } },
|
|
2111
|
+
semibold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$semibold" } },
|
|
2112
|
+
bold: { [`& ${ButtonItemStyled}`]: { fontWeight: "$bold" } }
|
|
1874
2113
|
}
|
|
1875
2114
|
},
|
|
1876
2115
|
compoundVariants: [
|
|
@@ -2196,7 +2435,8 @@ var ButtonGroupStyled = styled(import_themes3.Flex, {
|
|
|
2196
2435
|
],
|
|
2197
2436
|
defaultVariants: {
|
|
2198
2437
|
variant: "contained",
|
|
2199
|
-
|
|
2438
|
+
typography: "buttonMedium",
|
|
2439
|
+
fontWeight: "medium",
|
|
2200
2440
|
color: "brand"
|
|
2201
2441
|
}
|
|
2202
2442
|
});
|
|
@@ -2265,8 +2505,6 @@ var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
|
2265
2505
|
var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
2266
2506
|
height: "$40",
|
|
2267
2507
|
fontFamily: "$default",
|
|
2268
|
-
letterSpacing: "0px",
|
|
2269
|
-
fontSize: "$13",
|
|
2270
2508
|
padding: "$12 $14",
|
|
2271
2509
|
borderRadius: "$sm",
|
|
2272
2510
|
boxSizing: "border-box",
|
|
@@ -2280,7 +2518,8 @@ var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
|
2280
2518
|
outline: "none",
|
|
2281
2519
|
padding: 0,
|
|
2282
2520
|
margin: 0,
|
|
2283
|
-
width: "100%"
|
|
2521
|
+
width: "100%",
|
|
2522
|
+
font: "inherit"
|
|
2284
2523
|
},
|
|
2285
2524
|
"&:has(input:focus)": {
|
|
2286
2525
|
border: "2px solid $brand300"
|
|
@@ -2312,7 +2551,7 @@ var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
|
2312
2551
|
"input::placeholder": {
|
|
2313
2552
|
color: "$error400"
|
|
2314
2553
|
},
|
|
2315
|
-
"
|
|
2554
|
+
"&:has(input:focus)": {
|
|
2316
2555
|
border: "2px solid $error400"
|
|
2317
2556
|
},
|
|
2318
2557
|
"&:has(input:disabled)": {
|
|
@@ -2323,6 +2562,13 @@ var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
|
2323
2562
|
}
|
|
2324
2563
|
}
|
|
2325
2564
|
},
|
|
2565
|
+
typography: typographyValues,
|
|
2566
|
+
fontWeight: {
|
|
2567
|
+
regular: { fontWeight: "$regular" },
|
|
2568
|
+
medium: { fontWeight: "$medium" },
|
|
2569
|
+
semibold: { fontWeight: "$semibold" },
|
|
2570
|
+
bold: { fontWeight: "$bold" }
|
|
2571
|
+
},
|
|
2326
2572
|
isValid: {
|
|
2327
2573
|
true: {},
|
|
2328
2574
|
false: {}
|
|
@@ -2374,50 +2620,106 @@ var TextFieldStyled = styled(import_themes5.TextField.Root, {
|
|
|
2374
2620
|
var TextFieldSlotStyled = styled(import_themes5.TextField.Slot, {
|
|
2375
2621
|
display: "flex",
|
|
2376
2622
|
alignItems: "center",
|
|
2377
|
-
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
|
+
}
|
|
2378
2633
|
});
|
|
2379
2634
|
function TextField(_a) {
|
|
2380
2635
|
var _b = _a, {
|
|
2381
2636
|
children,
|
|
2382
2637
|
isValid,
|
|
2383
2638
|
name,
|
|
2384
|
-
color
|
|
2639
|
+
color,
|
|
2640
|
+
typography,
|
|
2641
|
+
fontWeight
|
|
2385
2642
|
} = _b, props = __objRest(_b, [
|
|
2386
2643
|
"children",
|
|
2387
2644
|
"isValid",
|
|
2388
2645
|
"name",
|
|
2389
|
-
"color"
|
|
2646
|
+
"color",
|
|
2647
|
+
"typography",
|
|
2648
|
+
"fontWeight"
|
|
2390
2649
|
]);
|
|
2391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
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
|
+
);
|
|
2395
2675
|
}
|
|
2396
2676
|
function TextFieldSlot(_a) {
|
|
2397
2677
|
var _b = _a, {
|
|
2398
2678
|
children,
|
|
2399
2679
|
position = "flex-start",
|
|
2400
|
-
onClick
|
|
2680
|
+
onClick,
|
|
2681
|
+
typography = "bodyXS",
|
|
2682
|
+
fontWeight = "regular"
|
|
2401
2683
|
} = _b, props = __objRest(_b, [
|
|
2402
2684
|
"children",
|
|
2403
2685
|
"position",
|
|
2404
|
-
"onClick"
|
|
2686
|
+
"onClick",
|
|
2687
|
+
"typography",
|
|
2688
|
+
"fontWeight"
|
|
2405
2689
|
]);
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
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
|
+
);
|
|
2421
2723
|
}
|
|
2422
2724
|
|
|
2423
2725
|
// src/components/RadioGroup.tsx
|
|
@@ -2425,8 +2727,6 @@ var import_themes6 = require("@radix-ui/themes");
|
|
|
2425
2727
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2426
2728
|
var RadioGroupStyled = styled(import_themes6.RadioGroup.Root, {
|
|
2427
2729
|
fontFamily: "$default",
|
|
2428
|
-
letterSpacing: "0px",
|
|
2429
|
-
fontSize: "$13",
|
|
2430
2730
|
"label": {
|
|
2431
2731
|
display: "flex",
|
|
2432
2732
|
alignItems: "center",
|
|
@@ -2514,6 +2814,13 @@ var RadioGroupStyled = styled(import_themes6.RadioGroup.Root, {
|
|
|
2514
2814
|
}
|
|
2515
2815
|
},
|
|
2516
2816
|
false: {}
|
|
2817
|
+
},
|
|
2818
|
+
typography: typographyLabelValues,
|
|
2819
|
+
fontWeight: {
|
|
2820
|
+
regular: { fontWeight: "$regular" },
|
|
2821
|
+
medium: { fontWeight: "$medium" },
|
|
2822
|
+
semibold: { fontWeight: "$semibold" },
|
|
2823
|
+
bold: { fontWeight: "$bold" }
|
|
2517
2824
|
}
|
|
2518
2825
|
},
|
|
2519
2826
|
compoundVariants: [
|
|
@@ -2610,8 +2917,6 @@ var import_themes7 = require("@radix-ui/themes");
|
|
|
2610
2917
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
2611
2918
|
var CheckboxGroupStyled = styled(import_themes7.CheckboxGroup.Root, {
|
|
2612
2919
|
fontFamily: "$default",
|
|
2613
|
-
letterSpacing: "0px",
|
|
2614
|
-
fontSize: "$13",
|
|
2615
2920
|
"svg": {
|
|
2616
2921
|
display: "none"
|
|
2617
2922
|
},
|
|
@@ -2701,6 +3006,13 @@ var CheckboxGroupStyled = styled(import_themes7.CheckboxGroup.Root, {
|
|
|
2701
3006
|
}
|
|
2702
3007
|
},
|
|
2703
3008
|
false: {}
|
|
3009
|
+
},
|
|
3010
|
+
typography: typographyLabelValues,
|
|
3011
|
+
fontWeight: {
|
|
3012
|
+
regular: { fontWeight: "$regular" },
|
|
3013
|
+
medium: { fontWeight: "$medium" },
|
|
3014
|
+
semibold: { fontWeight: "$semibold" },
|
|
3015
|
+
bold: { fontWeight: "$bold" }
|
|
2704
3016
|
}
|
|
2705
3017
|
},
|
|
2706
3018
|
compoundVariants: [
|
|
@@ -2786,6 +3098,34 @@ function CheckboxItem(_a) {
|
|
|
2786
3098
|
// src/components/Filter.tsx
|
|
2787
3099
|
var import_themes8 = require("@radix-ui/themes");
|
|
2788
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
|
+
});
|
|
2789
3129
|
var FilterStyled = styled("div", {
|
|
2790
3130
|
fontFamily: "$default",
|
|
2791
3131
|
color: "$dark600",
|
|
@@ -2811,27 +3151,63 @@ var FilterStyled = styled("div", {
|
|
|
2811
3151
|
"svg:last-child": {
|
|
2812
3152
|
marginLeft: "auto"
|
|
2813
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
|
+
}
|
|
2814
3196
|
}
|
|
2815
3197
|
});
|
|
2816
|
-
var FilterContentStyled = styled(import_themes8.DropdownMenu.Content, {
|
|
2817
|
-
background: "white",
|
|
2818
|
-
padding: "$8 $12",
|
|
2819
|
-
border: "1px solid $dark300",
|
|
2820
|
-
borderRadius: "$xs",
|
|
2821
|
-
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
2822
|
-
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
2823
|
-
minWidth: "100%",
|
|
2824
|
-
marginTop: "3px"
|
|
2825
|
-
});
|
|
2826
3198
|
function Filter(_a) {
|
|
2827
3199
|
var _b = _a, {
|
|
2828
3200
|
children,
|
|
2829
|
-
placeholder
|
|
3201
|
+
placeholder,
|
|
3202
|
+
typography,
|
|
3203
|
+
fontWeight
|
|
2830
3204
|
} = _b, props = __objRest(_b, [
|
|
2831
3205
|
"children",
|
|
2832
|
-
"placeholder"
|
|
3206
|
+
"placeholder",
|
|
3207
|
+
"typography",
|
|
3208
|
+
"fontWeight"
|
|
2833
3209
|
]);
|
|
2834
|
-
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, { children: [
|
|
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: [
|
|
2835
3211
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes8.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
2836
3212
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "filter" }),
|
|
2837
3213
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: placeholder || "Fitrar" }),
|
|
@@ -2843,6 +3219,8 @@ function Filter(_a) {
|
|
|
2843
3219
|
avoidCollisions: false,
|
|
2844
3220
|
align: "start",
|
|
2845
3221
|
alignOffset: -14,
|
|
3222
|
+
typography,
|
|
3223
|
+
fontWeight,
|
|
2846
3224
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CheckboxGroup, { children })
|
|
2847
3225
|
}
|
|
2848
3226
|
)
|
|
@@ -2860,6 +3238,27 @@ function FilterItem(_a) {
|
|
|
2860
3238
|
// src/components/Dropdown.tsx
|
|
2861
3239
|
var import_themes9 = require("@radix-ui/themes");
|
|
2862
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
|
+
});
|
|
2863
3262
|
var DropdownMenuStyled = styled("div", {
|
|
2864
3263
|
fontFamily: "$default",
|
|
2865
3264
|
color: "$dark600",
|
|
@@ -2885,6 +3284,40 @@ var DropdownMenuStyled = styled("div", {
|
|
|
2885
3284
|
"svg": {
|
|
2886
3285
|
marginLeft: "auto"
|
|
2887
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
|
+
}
|
|
2888
3321
|
}
|
|
2889
3322
|
});
|
|
2890
3323
|
var DropdownMenuContentStyled = styled(import_themes9.DropdownMenu.Content, {
|
|
@@ -2897,29 +3330,21 @@ var DropdownMenuContentStyled = styled(import_themes9.DropdownMenu.Content, {
|
|
|
2897
3330
|
minWidth: "100%",
|
|
2898
3331
|
marginTop: "3px"
|
|
2899
3332
|
});
|
|
2900
|
-
var DropdownMenuItemStyled = styled(import_themes9.DropdownMenu.Item, {
|
|
2901
|
-
fontFamily: "$default",
|
|
2902
|
-
color: "$dark600",
|
|
2903
|
-
letterSpacing: "0px",
|
|
2904
|
-
padding: "$8 $12",
|
|
2905
|
-
"&:hover, &:focus": {
|
|
2906
|
-
backgroundColor: "transparent",
|
|
2907
|
-
border: "none",
|
|
2908
|
-
outline: "none",
|
|
2909
|
-
cursor: "pointer"
|
|
2910
|
-
}
|
|
2911
|
-
});
|
|
2912
3333
|
function DropdownMenu2(_a) {
|
|
2913
3334
|
var _b = _a, {
|
|
2914
3335
|
children,
|
|
2915
|
-
placeholder
|
|
3336
|
+
placeholder,
|
|
3337
|
+
typography,
|
|
3338
|
+
fontWeight
|
|
2916
3339
|
} = _b, props = __objRest(_b, [
|
|
2917
3340
|
"children",
|
|
2918
|
-
"placeholder"
|
|
3341
|
+
"placeholder",
|
|
3342
|
+
"typography",
|
|
3343
|
+
"fontWeight"
|
|
2919
3344
|
]);
|
|
2920
|
-
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, { children: [
|
|
2921
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { "aria-label": placeholder || "
|
|
2922
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: placeholder || "
|
|
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" }),
|
|
2923
3348
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes9.DropdownMenu.TriggerIcon, {})
|
|
2924
3349
|
] }) }),
|
|
2925
3350
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
@@ -2935,11 +3360,23 @@ function DropdownMenu2(_a) {
|
|
|
2935
3360
|
}
|
|
2936
3361
|
function DropdownMenuItem(_a) {
|
|
2937
3362
|
var _b = _a, {
|
|
2938
|
-
children
|
|
3363
|
+
children,
|
|
3364
|
+
typography,
|
|
3365
|
+
fontWeight
|
|
2939
3366
|
} = _b, props = __objRest(_b, [
|
|
2940
|
-
"children"
|
|
3367
|
+
"children",
|
|
3368
|
+
"typography",
|
|
3369
|
+
"fontWeight"
|
|
2941
3370
|
]);
|
|
2942
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3372
|
+
DropdownMenuItemStyled,
|
|
3373
|
+
__spreadProps(__spreadValues({
|
|
3374
|
+
typography,
|
|
3375
|
+
fontWeight
|
|
3376
|
+
}, props), {
|
|
3377
|
+
children
|
|
3378
|
+
})
|
|
3379
|
+
);
|
|
2943
3380
|
}
|
|
2944
3381
|
|
|
2945
3382
|
// src/components/Badge.tsx
|
|
@@ -3007,29 +3444,35 @@ var BadgeStyled = styled(import_themes10.Badge, {
|
|
|
3007
3444
|
size: {
|
|
3008
3445
|
xs: {
|
|
3009
3446
|
padding: "$4 $6",
|
|
3010
|
-
fontSize: "$
|
|
3447
|
+
fontSize: "$badgeExtraSmall",
|
|
3011
3448
|
borderRadius: "$2xs",
|
|
3012
|
-
lineHeight: "$
|
|
3449
|
+
lineHeight: "$bagdeExtraSmall"
|
|
3013
3450
|
},
|
|
3014
3451
|
sm: {
|
|
3015
3452
|
padding: "$4 $8",
|
|
3016
|
-
fontSize: "$
|
|
3453
|
+
fontSize: "$badgeSmall",
|
|
3017
3454
|
borderRadius: "$xs",
|
|
3018
|
-
lineHeight: "$
|
|
3455
|
+
lineHeight: "$badgeSmall"
|
|
3019
3456
|
},
|
|
3020
3457
|
md: {
|
|
3021
3458
|
padding: "$8 $10",
|
|
3022
|
-
fontSize: "$
|
|
3459
|
+
fontSize: "$badgeMedium",
|
|
3023
3460
|
borderRadius: "$sm",
|
|
3024
|
-
lineHeight: "$
|
|
3461
|
+
lineHeight: "$badgeMedium"
|
|
3025
3462
|
},
|
|
3026
3463
|
xl: {
|
|
3027
3464
|
padding: "$12 $12",
|
|
3028
|
-
fontSize: "$
|
|
3465
|
+
fontSize: "$badgeLarge",
|
|
3029
3466
|
borderRadius: "$sm",
|
|
3030
|
-
lineHeight: "$
|
|
3467
|
+
lineHeight: "$badgeLarge"
|
|
3031
3468
|
}
|
|
3032
3469
|
},
|
|
3470
|
+
fontWeight: {
|
|
3471
|
+
regular: { fontWeight: "$regular" },
|
|
3472
|
+
medium: { fontWeight: "$medium" },
|
|
3473
|
+
semibold: { fontWeight: "$semibold" },
|
|
3474
|
+
bold: { fontWeight: "$bold" }
|
|
3475
|
+
},
|
|
3033
3476
|
radii: {
|
|
3034
3477
|
"full": {
|
|
3035
3478
|
borderRadius: "$full"
|
|
@@ -3038,7 +3481,8 @@ var BadgeStyled = styled(import_themes10.Badge, {
|
|
|
3038
3481
|
},
|
|
3039
3482
|
defaultVariants: {
|
|
3040
3483
|
size: "md",
|
|
3041
|
-
color: "primary"
|
|
3484
|
+
color: "primary",
|
|
3485
|
+
fontWeight: "regular"
|
|
3042
3486
|
}
|
|
3043
3487
|
});
|
|
3044
3488
|
function Badge(_a) {
|