@x-plat/design-system 0.2.2 → 0.2.3

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.
Files changed (73) hide show
  1. package/dist/{colors-DmMsWD7G.d.cts → colors-BNxEsOY3.d.cts} +13 -4
  2. package/dist/{colors-DmMsWD7G.d.ts → colors-BNxEsOY3.d.ts} +13 -4
  3. package/dist/components/Avatar/index.cjs +1 -123
  4. package/dist/components/Avatar/index.d.cts +234 -2
  5. package/dist/components/Avatar/index.d.ts +234 -2
  6. package/dist/components/Avatar/index.js +1 -123
  7. package/dist/components/Badge/index.cjs +1 -123
  8. package/dist/components/Badge/index.d.cts +234 -2
  9. package/dist/components/Badge/index.d.ts +234 -2
  10. package/dist/components/Badge/index.js +1 -123
  11. package/dist/components/Button/index.cjs +1 -123
  12. package/dist/components/Button/index.d.cts +234 -2
  13. package/dist/components/Button/index.d.ts +234 -2
  14. package/dist/components/Button/index.js +1 -123
  15. package/dist/components/CheckBox/index.cjs +1 -123
  16. package/dist/components/CheckBox/index.d.cts +234 -2
  17. package/dist/components/CheckBox/index.d.ts +234 -2
  18. package/dist/components/CheckBox/index.js +1 -123
  19. package/dist/components/Chip/index.cjs +1 -123
  20. package/dist/components/Chip/index.d.cts +234 -2
  21. package/dist/components/Chip/index.d.ts +234 -2
  22. package/dist/components/Chip/index.js +1 -123
  23. package/dist/components/DatePicker/index.cjs +83 -86
  24. package/dist/components/DatePicker/index.d.cts +467 -3
  25. package/dist/components/DatePicker/index.d.ts +467 -3
  26. package/dist/components/DatePicker/index.js +83 -86
  27. package/dist/components/Pagination/index.cjs +1 -123
  28. package/dist/components/Pagination/index.d.cts +234 -2
  29. package/dist/components/Pagination/index.d.ts +234 -2
  30. package/dist/components/Pagination/index.js +1 -123
  31. package/dist/components/Progress/index.cjs +1 -123
  32. package/dist/components/Progress/index.d.cts +234 -2
  33. package/dist/components/Progress/index.d.ts +234 -2
  34. package/dist/components/Progress/index.js +1 -123
  35. package/dist/components/Radio/index.cjs +1 -123
  36. package/dist/components/Radio/index.d.cts +234 -2
  37. package/dist/components/Radio/index.d.ts +234 -2
  38. package/dist/components/Radio/index.js +1 -123
  39. package/dist/components/Spinner/index.cjs +1 -123
  40. package/dist/components/Spinner/index.d.cts +234 -2
  41. package/dist/components/Spinner/index.d.ts +234 -2
  42. package/dist/components/Spinner/index.js +1 -123
  43. package/dist/components/Steps/index.cjs +1 -123
  44. package/dist/components/Steps/index.d.cts +234 -2
  45. package/dist/components/Steps/index.d.ts +234 -2
  46. package/dist/components/Steps/index.js +1 -123
  47. package/dist/components/Switch/index.cjs +1 -123
  48. package/dist/components/Switch/index.d.cts +234 -2
  49. package/dist/components/Switch/index.d.ts +234 -2
  50. package/dist/components/Switch/index.js +1 -123
  51. package/dist/components/Table/index.cjs +1 -123
  52. package/dist/components/Table/index.d.cts +234 -2
  53. package/dist/components/Table/index.d.ts +234 -2
  54. package/dist/components/Table/index.js +1 -123
  55. package/dist/components/Tag/index.cjs +1 -123
  56. package/dist/components/Tag/index.d.cts +234 -2
  57. package/dist/components/Tag/index.d.ts +234 -2
  58. package/dist/components/Tag/index.js +1 -123
  59. package/dist/components/Tooltip/index.cjs +1 -123
  60. package/dist/components/Tooltip/index.d.cts +234 -2
  61. package/dist/components/Tooltip/index.d.ts +234 -2
  62. package/dist/components/Tooltip/index.js +1 -123
  63. package/dist/components/index.cjs +120 -123
  64. package/dist/components/index.d.cts +1 -1
  65. package/dist/components/index.d.ts +1 -1
  66. package/dist/components/index.js +120 -123
  67. package/dist/index.cjs +120 -123
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +120 -123
  71. package/dist/tokens/index.d.cts +1 -1
  72. package/dist/tokens/index.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1453,131 +1453,9 @@ var Alert = (props) => {
1453
1453
  Alert.displayName = "Alert";
1454
1454
  var Alert_default = Alert;
1455
1455
 
1456
- // src/tokens/colors.ts
1457
- var colors = {
1458
- xplat: {
1459
- red: {
1460
- 50: "#FFF0F0",
1461
- 100: "#FFDDDE",
1462
- 200: "#FFC1C2",
1463
- 300: "#FF9698",
1464
- 400: "#FF5A5D",
1465
- 500: "#FF272B",
1466
- 600: "#F80409",
1467
- 700: "#D40105",
1468
- 800: "#AE0609",
1469
- 900: "#900C0F"
1470
- },
1471
- green: {
1472
- 50: "#E5F6EA",
1473
- 100: "#C1E7CC",
1474
- 200: "#98D8AC",
1475
- 300: "#6CCA8B",
1476
- 400: "#47BE72",
1477
- 500: "#10B259",
1478
- 600: "#00A34F",
1479
- 700: "#009143",
1480
- 800: "#007F38",
1481
- 900: "#006024"
1482
- },
1483
- orange: {
1484
- 50: "#FFF8EC",
1485
- 100: "#FFF0D3",
1486
- 200: "#FFDDA5",
1487
- 300: "#FFC46D",
1488
- 400: "#FF9F32",
1489
- 500: "#FF820A",
1490
- 600: "#FF6900",
1491
- 700: "#CC4B02",
1492
- 800: "#A13A0B",
1493
- 900: "#82320C"
1494
- },
1495
- yellow: {
1496
- 50: "#FFFDE7",
1497
- 100: "#FFFAC1",
1498
- 200: "#FFF186",
1499
- 300: "#FFE041",
1500
- 400: "#FFCC0D",
1501
- 500: "#F0B100",
1502
- 600: "#D18800",
1503
- 700: "#A66002",
1504
- 800: "#894B0A",
1505
- 900: "#743D0F"
1506
- },
1507
- blue: {
1508
- 50: "#F1F4FD",
1509
- 100: "#DFE7FA",
1510
- 200: "#C5D4F8",
1511
- 300: "#9EB8F2",
1512
- 400: "#7093EA",
1513
- 500: "#4D6DE3",
1514
- 600: "#3950D7",
1515
- 700: "#303EC5",
1516
- 800: "#2D35A0",
1517
- 900: "#29317F"
1518
- },
1519
- lightblue: {
1520
- 50: "#EEFAFF",
1521
- 100: "#D9F4FF",
1522
- 200: "#BBEDFF",
1523
- 300: "#8DE3FF",
1524
- 400: "#57D0FF",
1525
- 500: "#30B6FF",
1526
- 600: "#1999F7",
1527
- 700: "#1280E3",
1528
- 800: "#1566B8",
1529
- 900: "#175791"
1530
- },
1531
- purple: {
1532
- 50: "#FBF6FE",
1533
- 100: "#F5EAFD",
1534
- 200: "#EDD8FC",
1535
- 300: "#E0BAF8",
1536
- 400: "#CD8DF3",
1537
- 500: "#B961EB",
1538
- 600: "#A541DC",
1539
- 700: "#9230C5",
1540
- 800: "#782B9E",
1541
- 900: "#62247F"
1542
- },
1543
- pink: {
1544
- 50: "#FFF4FE",
1545
- 100: "#FFE7FD",
1546
- 200: "#FFCFFA",
1547
- 300: "#FEA9F1",
1548
- 400: "#FD75E7",
1549
- 500: "#F553DA",
1550
- 600: "#D821B6",
1551
- 700: "#B31892",
1552
- 800: "#921676",
1553
- 900: "#781761"
1554
- },
1555
- neutral: {
1556
- 50: "#FAFAFA",
1557
- 100: "#F5F5F5",
1558
- 200: "#E5E5E5",
1559
- 300: "#D4D4D4",
1560
- 400: "#A1A1A1",
1561
- 500: "#737373",
1562
- 600: "#525252",
1563
- 700: "#404040",
1564
- 800: "#262626",
1565
- 900: "#171717"
1566
- },
1567
- black: "#000000",
1568
- white: "#FFFFFF"
1569
- },
1570
- test: {
1571
- default: "#ffffff"
1572
- }
1573
- };
1574
-
1575
1456
  // src/util/getColor.ts
1576
1457
  var getColorClass = (namespace, palette, shade) => {
1577
- const namespaceMap = colors[namespace];
1578
- const paletteMap = namespaceMap[palette];
1579
- const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
1580
- return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
1458
+ return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
1581
1459
  };
1582
1460
 
1583
1461
  // src/components/Avatar/Avatar.tsx
@@ -1763,6 +1641,125 @@ var CardTab_default = CardTab;
1763
1641
  // src/components/Chart/Chart.tsx
1764
1642
  var import_react4 = __toESM(require("react"), 1);
1765
1643
 
1644
+ // src/tokens/colors.ts
1645
+ var colors = {
1646
+ xplat: {
1647
+ red: {
1648
+ 50: "#FFF0F0",
1649
+ 100: "#FFDDDE",
1650
+ 200: "#FFC1C2",
1651
+ 300: "#FF9698",
1652
+ 400: "#FF5A5D",
1653
+ 500: "#FF272B",
1654
+ 600: "#F80409",
1655
+ 700: "#D40105",
1656
+ 800: "#AE0609",
1657
+ 900: "#900C0F"
1658
+ },
1659
+ green: {
1660
+ 50: "#E5F6EA",
1661
+ 100: "#C1E7CC",
1662
+ 200: "#98D8AC",
1663
+ 300: "#6CCA8B",
1664
+ 400: "#47BE72",
1665
+ 500: "#10B259",
1666
+ 600: "#00A34F",
1667
+ 700: "#009143",
1668
+ 800: "#007F38",
1669
+ 900: "#006024"
1670
+ },
1671
+ orange: {
1672
+ 50: "#FFF8EC",
1673
+ 100: "#FFF0D3",
1674
+ 200: "#FFDDA5",
1675
+ 300: "#FFC46D",
1676
+ 400: "#FF9F32",
1677
+ 500: "#FF820A",
1678
+ 600: "#FF6900",
1679
+ 700: "#CC4B02",
1680
+ 800: "#A13A0B",
1681
+ 900: "#82320C"
1682
+ },
1683
+ yellow: {
1684
+ 50: "#FFFDE7",
1685
+ 100: "#FFFAC1",
1686
+ 200: "#FFF186",
1687
+ 300: "#FFE041",
1688
+ 400: "#FFCC0D",
1689
+ 500: "#F0B100",
1690
+ 600: "#D18800",
1691
+ 700: "#A66002",
1692
+ 800: "#894B0A",
1693
+ 900: "#743D0F"
1694
+ },
1695
+ blue: {
1696
+ 50: "#F1F4FD",
1697
+ 100: "#DFE7FA",
1698
+ 200: "#C5D4F8",
1699
+ 300: "#9EB8F2",
1700
+ 400: "#7093EA",
1701
+ 500: "#4D6DE3",
1702
+ 600: "#3950D7",
1703
+ 700: "#303EC5",
1704
+ 800: "#2D35A0",
1705
+ 900: "#29317F"
1706
+ },
1707
+ lightblue: {
1708
+ 50: "#EEFAFF",
1709
+ 100: "#D9F4FF",
1710
+ 200: "#BBEDFF",
1711
+ 300: "#8DE3FF",
1712
+ 400: "#57D0FF",
1713
+ 500: "#30B6FF",
1714
+ 600: "#1999F7",
1715
+ 700: "#1280E3",
1716
+ 800: "#1566B8",
1717
+ 900: "#175791"
1718
+ },
1719
+ purple: {
1720
+ 50: "#FBF6FE",
1721
+ 100: "#F5EAFD",
1722
+ 200: "#EDD8FC",
1723
+ 300: "#E0BAF8",
1724
+ 400: "#CD8DF3",
1725
+ 500: "#B961EB",
1726
+ 600: "#A541DC",
1727
+ 700: "#9230C5",
1728
+ 800: "#782B9E",
1729
+ 900: "#62247F"
1730
+ },
1731
+ pink: {
1732
+ 50: "#FFF4FE",
1733
+ 100: "#FFE7FD",
1734
+ 200: "#FFCFFA",
1735
+ 300: "#FEA9F1",
1736
+ 400: "#FD75E7",
1737
+ 500: "#F553DA",
1738
+ 600: "#D821B6",
1739
+ 700: "#B31892",
1740
+ 800: "#921676",
1741
+ 900: "#781761"
1742
+ },
1743
+ neutral: {
1744
+ 50: "#FAFAFA",
1745
+ 100: "#F5F5F5",
1746
+ 200: "#E5E5E5",
1747
+ 300: "#D4D4D4",
1748
+ 400: "#A1A1A1",
1749
+ 500: "#737373",
1750
+ 600: "#525252",
1751
+ 700: "#404040",
1752
+ 800: "#262626",
1753
+ 900: "#171717"
1754
+ },
1755
+ black: "#000000",
1756
+ white: "#FFFFFF"
1757
+ },
1758
+ test: {
1759
+ default: "#ffffff"
1760
+ }
1761
+ };
1762
+
1766
1763
  // ../../node_modules/@kurkle/color/dist/color.esm.js
1767
1764
  function round(v) {
1768
1765
  return v + 0.5 | 0;
@@ -37,5 +37,5 @@ export { Tooltip } from './Tooltip/index.cjs';
37
37
  export { Video, VideoProps } from './Video/index.cjs';
38
38
  import 'react';
39
39
  import 'react/jsx-runtime';
40
- import '../colors-DmMsWD7G.cjs';
40
+ import '../colors-BNxEsOY3.cjs';
41
41
  import '../attributes-DJIWir_0.cjs';
@@ -37,5 +37,5 @@ export { Tooltip } from './Tooltip/index.js';
37
37
  export { Video, VideoProps } from './Video/index.js';
38
38
  import 'react';
39
39
  import 'react/jsx-runtime';
40
- import '../colors-DmMsWD7G.js';
40
+ import '../colors-BNxEsOY3.js';
41
41
  import '../attributes-DJIWir_0.js';
@@ -1378,131 +1378,9 @@ var Alert = (props) => {
1378
1378
  Alert.displayName = "Alert";
1379
1379
  var Alert_default = Alert;
1380
1380
 
1381
- // src/tokens/colors.ts
1382
- var colors = {
1383
- xplat: {
1384
- red: {
1385
- 50: "#FFF0F0",
1386
- 100: "#FFDDDE",
1387
- 200: "#FFC1C2",
1388
- 300: "#FF9698",
1389
- 400: "#FF5A5D",
1390
- 500: "#FF272B",
1391
- 600: "#F80409",
1392
- 700: "#D40105",
1393
- 800: "#AE0609",
1394
- 900: "#900C0F"
1395
- },
1396
- green: {
1397
- 50: "#E5F6EA",
1398
- 100: "#C1E7CC",
1399
- 200: "#98D8AC",
1400
- 300: "#6CCA8B",
1401
- 400: "#47BE72",
1402
- 500: "#10B259",
1403
- 600: "#00A34F",
1404
- 700: "#009143",
1405
- 800: "#007F38",
1406
- 900: "#006024"
1407
- },
1408
- orange: {
1409
- 50: "#FFF8EC",
1410
- 100: "#FFF0D3",
1411
- 200: "#FFDDA5",
1412
- 300: "#FFC46D",
1413
- 400: "#FF9F32",
1414
- 500: "#FF820A",
1415
- 600: "#FF6900",
1416
- 700: "#CC4B02",
1417
- 800: "#A13A0B",
1418
- 900: "#82320C"
1419
- },
1420
- yellow: {
1421
- 50: "#FFFDE7",
1422
- 100: "#FFFAC1",
1423
- 200: "#FFF186",
1424
- 300: "#FFE041",
1425
- 400: "#FFCC0D",
1426
- 500: "#F0B100",
1427
- 600: "#D18800",
1428
- 700: "#A66002",
1429
- 800: "#894B0A",
1430
- 900: "#743D0F"
1431
- },
1432
- blue: {
1433
- 50: "#F1F4FD",
1434
- 100: "#DFE7FA",
1435
- 200: "#C5D4F8",
1436
- 300: "#9EB8F2",
1437
- 400: "#7093EA",
1438
- 500: "#4D6DE3",
1439
- 600: "#3950D7",
1440
- 700: "#303EC5",
1441
- 800: "#2D35A0",
1442
- 900: "#29317F"
1443
- },
1444
- lightblue: {
1445
- 50: "#EEFAFF",
1446
- 100: "#D9F4FF",
1447
- 200: "#BBEDFF",
1448
- 300: "#8DE3FF",
1449
- 400: "#57D0FF",
1450
- 500: "#30B6FF",
1451
- 600: "#1999F7",
1452
- 700: "#1280E3",
1453
- 800: "#1566B8",
1454
- 900: "#175791"
1455
- },
1456
- purple: {
1457
- 50: "#FBF6FE",
1458
- 100: "#F5EAFD",
1459
- 200: "#EDD8FC",
1460
- 300: "#E0BAF8",
1461
- 400: "#CD8DF3",
1462
- 500: "#B961EB",
1463
- 600: "#A541DC",
1464
- 700: "#9230C5",
1465
- 800: "#782B9E",
1466
- 900: "#62247F"
1467
- },
1468
- pink: {
1469
- 50: "#FFF4FE",
1470
- 100: "#FFE7FD",
1471
- 200: "#FFCFFA",
1472
- 300: "#FEA9F1",
1473
- 400: "#FD75E7",
1474
- 500: "#F553DA",
1475
- 600: "#D821B6",
1476
- 700: "#B31892",
1477
- 800: "#921676",
1478
- 900: "#781761"
1479
- },
1480
- neutral: {
1481
- 50: "#FAFAFA",
1482
- 100: "#F5F5F5",
1483
- 200: "#E5E5E5",
1484
- 300: "#D4D4D4",
1485
- 400: "#A1A1A1",
1486
- 500: "#737373",
1487
- 600: "#525252",
1488
- 700: "#404040",
1489
- 800: "#262626",
1490
- 900: "#171717"
1491
- },
1492
- black: "#000000",
1493
- white: "#FFFFFF"
1494
- },
1495
- test: {
1496
- default: "#ffffff"
1497
- }
1498
- };
1499
-
1500
1381
  // src/util/getColor.ts
1501
1382
  var getColorClass = (namespace, palette, shade) => {
1502
- const namespaceMap = colors[namespace];
1503
- const paletteMap = namespaceMap[palette];
1504
- const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
1505
- return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
1383
+ return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
1506
1384
  };
1507
1385
 
1508
1386
  // src/components/Avatar/Avatar.tsx
@@ -1688,6 +1566,125 @@ var CardTab_default = CardTab;
1688
1566
  // src/components/Chart/Chart.tsx
1689
1567
  import React3 from "react";
1690
1568
 
1569
+ // src/tokens/colors.ts
1570
+ var colors = {
1571
+ xplat: {
1572
+ red: {
1573
+ 50: "#FFF0F0",
1574
+ 100: "#FFDDDE",
1575
+ 200: "#FFC1C2",
1576
+ 300: "#FF9698",
1577
+ 400: "#FF5A5D",
1578
+ 500: "#FF272B",
1579
+ 600: "#F80409",
1580
+ 700: "#D40105",
1581
+ 800: "#AE0609",
1582
+ 900: "#900C0F"
1583
+ },
1584
+ green: {
1585
+ 50: "#E5F6EA",
1586
+ 100: "#C1E7CC",
1587
+ 200: "#98D8AC",
1588
+ 300: "#6CCA8B",
1589
+ 400: "#47BE72",
1590
+ 500: "#10B259",
1591
+ 600: "#00A34F",
1592
+ 700: "#009143",
1593
+ 800: "#007F38",
1594
+ 900: "#006024"
1595
+ },
1596
+ orange: {
1597
+ 50: "#FFF8EC",
1598
+ 100: "#FFF0D3",
1599
+ 200: "#FFDDA5",
1600
+ 300: "#FFC46D",
1601
+ 400: "#FF9F32",
1602
+ 500: "#FF820A",
1603
+ 600: "#FF6900",
1604
+ 700: "#CC4B02",
1605
+ 800: "#A13A0B",
1606
+ 900: "#82320C"
1607
+ },
1608
+ yellow: {
1609
+ 50: "#FFFDE7",
1610
+ 100: "#FFFAC1",
1611
+ 200: "#FFF186",
1612
+ 300: "#FFE041",
1613
+ 400: "#FFCC0D",
1614
+ 500: "#F0B100",
1615
+ 600: "#D18800",
1616
+ 700: "#A66002",
1617
+ 800: "#894B0A",
1618
+ 900: "#743D0F"
1619
+ },
1620
+ blue: {
1621
+ 50: "#F1F4FD",
1622
+ 100: "#DFE7FA",
1623
+ 200: "#C5D4F8",
1624
+ 300: "#9EB8F2",
1625
+ 400: "#7093EA",
1626
+ 500: "#4D6DE3",
1627
+ 600: "#3950D7",
1628
+ 700: "#303EC5",
1629
+ 800: "#2D35A0",
1630
+ 900: "#29317F"
1631
+ },
1632
+ lightblue: {
1633
+ 50: "#EEFAFF",
1634
+ 100: "#D9F4FF",
1635
+ 200: "#BBEDFF",
1636
+ 300: "#8DE3FF",
1637
+ 400: "#57D0FF",
1638
+ 500: "#30B6FF",
1639
+ 600: "#1999F7",
1640
+ 700: "#1280E3",
1641
+ 800: "#1566B8",
1642
+ 900: "#175791"
1643
+ },
1644
+ purple: {
1645
+ 50: "#FBF6FE",
1646
+ 100: "#F5EAFD",
1647
+ 200: "#EDD8FC",
1648
+ 300: "#E0BAF8",
1649
+ 400: "#CD8DF3",
1650
+ 500: "#B961EB",
1651
+ 600: "#A541DC",
1652
+ 700: "#9230C5",
1653
+ 800: "#782B9E",
1654
+ 900: "#62247F"
1655
+ },
1656
+ pink: {
1657
+ 50: "#FFF4FE",
1658
+ 100: "#FFE7FD",
1659
+ 200: "#FFCFFA",
1660
+ 300: "#FEA9F1",
1661
+ 400: "#FD75E7",
1662
+ 500: "#F553DA",
1663
+ 600: "#D821B6",
1664
+ 700: "#B31892",
1665
+ 800: "#921676",
1666
+ 900: "#781761"
1667
+ },
1668
+ neutral: {
1669
+ 50: "#FAFAFA",
1670
+ 100: "#F5F5F5",
1671
+ 200: "#E5E5E5",
1672
+ 300: "#D4D4D4",
1673
+ 400: "#A1A1A1",
1674
+ 500: "#737373",
1675
+ 600: "#525252",
1676
+ 700: "#404040",
1677
+ 800: "#262626",
1678
+ 900: "#171717"
1679
+ },
1680
+ black: "#000000",
1681
+ white: "#FFFFFF"
1682
+ },
1683
+ test: {
1684
+ default: "#ffffff"
1685
+ }
1686
+ };
1687
+
1691
1688
  // ../../node_modules/@kurkle/color/dist/color.esm.js
1692
1689
  function round(v) {
1693
1690
  return v + 0.5 | 0;