@automattic/vip-design-system 2.18.0 → 2.19.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.
Files changed (72) hide show
  1. package/.storybook/preview-head.html +1 -0
  2. package/build/system/Badge/Badge.js +2 -1
  3. package/build/system/DescriptionList/DescriptionList.js +0 -1
  4. package/build/system/Form/Label.d.ts +1 -3
  5. package/build/system/Form/Label.js +1 -3
  6. package/build/system/Form/RadioBoxGroup.jsx +12 -1
  7. package/build/system/Form/RadioBoxGroup.stories.jsx +6 -1
  8. package/build/system/Heading/Heading.js +2 -3
  9. package/build/system/Heading/Heading.stories.js +15 -2
  10. package/build/system/Nav/styles/variants/menu.js +1 -2
  11. package/build/system/Notice/Notice.js +1 -1
  12. package/build/system/Pagination/Pagination.d.ts +10 -20
  13. package/build/system/Pagination/Pagination.js +50 -68
  14. package/build/system/Pagination/Pagination.stories.js +13 -11
  15. package/build/system/Pagination/Pagination.test.js +4 -4
  16. package/build/system/Pagination/PaginationLayout.d.ts +27 -0
  17. package/build/system/Pagination/PaginationLayout.js +63 -0
  18. package/build/system/Pagination/SimplePagination.d.ts +26 -0
  19. package/build/system/Pagination/SimplePagination.js +76 -0
  20. package/build/system/Pagination/SimplePagination.stories.d.ts +13 -0
  21. package/build/system/Pagination/SimplePagination.stories.js +130 -0
  22. package/build/system/Pagination/SimplePagination.test.d.ts +2 -0
  23. package/build/system/Pagination/SimplePagination.test.js +171 -0
  24. package/build/system/Pagination/index.d.ts +3 -1
  25. package/build/system/Pagination/index.js +2 -1
  26. package/build/system/Pagination/styles.js +1 -4
  27. package/build/system/Table/TableCell.js +1 -1
  28. package/build/system/Text/Text.js +0 -1
  29. package/build/system/Text/Text.stories.js +16 -13
  30. package/build/system/Toolbar/Logo.js +22 -6
  31. package/build/system/Wizard/Wizard.stories.js +11 -11
  32. package/build/system/Wizard/WizardStep.js +0 -2
  33. package/build/system/index.d.ts +2 -2
  34. package/build/system/index.js +2 -2
  35. package/build/system/theme/generated/valet-theme-dark.json +224 -227
  36. package/build/system/theme/generated/valet-theme-light.json +224 -227
  37. package/build/system/theme/getPropValue.js +3 -7
  38. package/build/system/theme/index.d.ts +20 -12
  39. package/build/system/theme/index.js +27 -20
  40. package/docs/SETUP.md +1 -1
  41. package/package.json +1 -1
  42. package/src/system/Badge/Badge.tsx +2 -1
  43. package/src/system/DescriptionList/DescriptionList.tsx +0 -1
  44. package/src/system/Form/Label.tsx +1 -3
  45. package/src/system/Form/RadioBoxGroup.jsx +12 -1
  46. package/src/system/Form/RadioBoxGroup.stories.jsx +6 -1
  47. package/src/system/Heading/Heading.stories.tsx +10 -1
  48. package/src/system/Heading/Heading.tsx +1 -2
  49. package/src/system/Nav/styles/variants/menu.ts +1 -2
  50. package/src/system/Notice/Notice.tsx +1 -1
  51. package/src/system/Pagination/Pagination.stories.tsx +13 -10
  52. package/src/system/Pagination/Pagination.test.tsx +4 -6
  53. package/src/system/Pagination/Pagination.tsx +36 -71
  54. package/src/system/Pagination/PaginationLayout.tsx +93 -0
  55. package/src/system/Pagination/SimplePagination.stories.tsx +127 -0
  56. package/src/system/Pagination/SimplePagination.test.tsx +120 -0
  57. package/src/system/Pagination/SimplePagination.tsx +97 -0
  58. package/src/system/Pagination/index.ts +3 -1
  59. package/src/system/Pagination/styles.ts +1 -4
  60. package/src/system/Table/TableCell.tsx +1 -1
  61. package/src/system/Text/Text.stories.tsx +7 -4
  62. package/src/system/Text/Text.tsx +0 -1
  63. package/src/system/Toolbar/Logo.tsx +19 -2
  64. package/src/system/Wizard/Wizard.stories.tsx +11 -11
  65. package/src/system/Wizard/WizardStep.tsx +0 -2
  66. package/src/system/index.ts +2 -1
  67. package/src/system/theme/generated/valet-theme-dark.json +224 -227
  68. package/src/system/theme/generated/valet-theme-light.json +224 -227
  69. package/src/system/theme/getPropValue.ts +1 -8
  70. package/src/system/theme/index.ts +33 -18
  71. package/tokens/valet-core/valet-core.json +39 -9
  72. package/tokens/valet-core/wpvip-product-core.json +88 -125
@@ -7,13 +7,13 @@
7
7
  "fontSize": {
8
8
  "static": {
9
9
  "0": {
10
- "value": "{rem}*.625",
10
+ "value": "{rem}*.6875",
11
11
  "type": "fontSizes"
12
12
  },
13
13
  "1": {
14
14
  "value": ".75 * {rem}",
15
15
  "type": "fontSizes",
16
- "description": "these are non-responsive font sizes used for body copy, helper text and other elements that don't need to respond to viewport width."
16
+ "description": "These static font sizes are non-responsive and are used for body copy, helper text, and other UI text that should not scale with viewport width."
17
17
  },
18
18
  "2": {
19
19
  "value": ".875 * {rem}",
@@ -28,7 +28,11 @@
28
28
  "type": "fontSizes"
29
29
  },
30
30
  "5": {
31
- "value": "1.25 * {rem}",
31
+ "value": "1.75 * {rem}",
32
+ "type": "fontSizes"
33
+ },
34
+ "6": {
35
+ "value": "2.5 * {rem}",
32
36
  "type": "fontSizes"
33
37
  }
34
38
  },
@@ -765,13 +769,18 @@
765
769
  }
766
770
  },
767
771
  "lineHeight": {
772
+ "0": {
773
+ "value": "100%",
774
+ "type": "lineHeights",
775
+ "description": "Use for short text labels"
776
+ },
768
777
  "1": {
769
- "value": "110%",
778
+ "value": "115%",
770
779
  "type": "lineHeights",
771
780
  "description": "Use only for display."
772
781
  },
773
782
  "2": {
774
- "value": "120%",
783
+ "value": "125%",
775
784
  "type": "lineHeights",
776
785
  "description": "Use for larger headings."
777
786
  },
@@ -809,6 +818,10 @@
809
818
  "value": "500",
810
819
  "type": "fontWeights"
811
820
  },
821
+ "semibold": {
822
+ "value": "600",
823
+ "type": "fontWeights"
824
+ },
812
825
  "bold": {
813
826
  "value": "700",
814
827
  "type": "fontWeights"
@@ -819,17 +832,34 @@
819
832
  }
820
833
  },
821
834
  "letterSpacing": {
835
+ "tight-3": {
836
+ "value": "-0.02em",
837
+ "type": "letterSpacing"
838
+ },
839
+ "tight-2": {
840
+ "value": "-0.015em",
841
+ "type": "letterSpacing"
842
+ },
843
+ "tight-1": {
844
+ "value": "-0.01em",
845
+ "type": "letterSpacing"
846
+ },
847
+
822
848
  "none": {
823
849
  "value": "0em",
824
850
  "type": "letterSpacing",
825
851
  "description": "in Figma, letter spacing values need to be % but in production they need to be expressed in em to work with varable fonts"
826
852
  },
827
- "tight": {
828
- "value": "-.02em",
853
+ "loose-1": {
854
+ "value": "0.005em",
855
+ "type": "letterSpacing"
856
+ },
857
+ "loose-2": {
858
+ "value": "0.01em",
829
859
  "type": "letterSpacing"
830
860
  },
831
- "loose": {
832
- "value": ".03em",
861
+ "loose-3": {
862
+ "value": "0.02em",
833
863
  "type": "letterSpacing"
834
864
  }
835
865
  },
@@ -939,55 +939,61 @@
939
939
  },
940
940
  "helper-text": {
941
941
  "value": {
942
- "fontFamily": "{fontFamily.body}",
943
- "fontWeight": "{fontWeight.body}",
944
- "fontSize": "{fontSize.1}",
945
- "lineHeight": "150%"
942
+ "fontFamily": "{fontFamily.default}",
943
+ "fontWeight": "{fontWeight.regular}",
944
+ "fontSize": "{fontSize.static.1}",
945
+ "lineHeight": "{lineHeight.5}",
946
+ "letterSpacing": "{letterSpacing.loose-2}"
946
947
  },
947
948
  "type": "typography"
948
949
  },
949
950
  "label-xs": {
950
951
  "value": {
951
- "fontFamily": "{fontFamily.body}",
952
- "fontWeight": "{fontWeight.body}",
953
- "lineHeight": "100%",
954
- "fontSize": "11"
952
+ "fontFamily": "{fontFamily.default}",
953
+ "fontWeight": "{fontWeight.regular}",
954
+ "lineHeight": "{lineHeight.0}",
955
+ "fontSize": "{fontSize.static.0}",
956
+ "letterSpacing": "{letterSpacing.loose-3}"
955
957
  },
956
958
  "type": "typography"
957
959
  },
958
960
  "label-small": {
959
961
  "value": {
960
- "fontFamily": "{fontFamily.body}",
961
- "fontWeight": "{fontWeight.body}",
962
- "lineHeight": "100%",
963
- "fontSize": "{fontSize.1}"
962
+ "fontFamily": "{fontFamily.default}",
963
+ "fontWeight": "{fontWeight.semibold}",
964
+ "lineHeight": "{lineHeight.0}",
965
+ "fontSize": "{fontSize.static.1}",
966
+ "letterSpacing": "{letterSpacing.loose-1}"
964
967
  },
965
968
  "type": "typography"
966
969
  },
967
970
  "label-default": {
968
971
  "value": {
969
- "fontFamily": "{fontFamily.body}",
970
- "fontWeight": "{fontWeight.heading}",
971
- "lineHeight": "100%",
972
- "fontSize": "{fontSize.2}"
972
+ "fontFamily": "{fontFamily.default}",
973
+ "fontWeight": "{fontWeight.semibold}",
974
+ "lineHeight": "{lineHeight.0}",
975
+ "fontSize": "{fontSize.static.2}",
976
+ "letterSpacing": "{letterSpacing.loose-1}"
973
977
  },
974
978
  "type": "typography"
975
979
  },
976
980
  "label-default-quiet": {
977
981
  "value": {
978
- "fontFamily": "{fontFamily.body}",
979
- "fontWeight": "{fontWeight.body}",
980
- "lineHeight": "100%",
981
- "fontSize": "{fontSize.2}"
982
+ "fontFamily": "{fontFamily.default}",
983
+ "fontWeight": "{fontWeight.regular}",
984
+ "lineHeight": "{lineHeight.0}",
985
+ "fontSize": "{fontSize.static.2}",
986
+ "letterSpacing": "{letterSpacing.loose-1}"
982
987
  },
983
988
  "type": "typography"
984
989
  },
985
990
  "label-default-loud": {
986
991
  "value": {
987
- "fontFamily": "{fontFamily.body}",
988
- "fontWeight": "700",
989
- "lineHeight": "100%",
990
- "fontSize": "{fontSize.2}"
992
+ "fontFamily": "{fontFamily.default}",
993
+ "fontWeight": "{fontWeight.bold}",
994
+ "lineHeight": "{lineHeight.0}",
995
+ "fontSize": "{fontSize.static.2}",
996
+ "letterSpacing": "{letterSpacing.loose-1}"
991
997
  },
992
998
  "type": "typography"
993
999
  }
@@ -1539,170 +1545,127 @@
1539
1545
  }
1540
1546
  },
1541
1547
  "fontFamily": {
1542
- "body": {
1543
- "value": "SF Pro Text",
1544
- "type": "fontFamilies"
1545
- },
1546
- "serif": {
1547
- "value": "Recoleta",
1548
+ "default": {
1549
+ "value": "aktiv-grotesk, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
1548
1550
  "type": "fontFamilies"
1549
1551
  },
1550
1552
  "monospace": {
1551
- "value": "SF Mono",
1553
+ "value": "SF Mono, monospace",
1552
1554
  "type": "fontFamilies"
1553
1555
  }
1554
1556
  },
1555
- "fontSize": {
1556
- "0": {
1557
- "value": "{fontSize.static.0}",
1558
- "type": "fontSizes"
1559
- },
1560
- "1": {
1561
- "value": "{fontSize.static.1}",
1562
- "type": "fontSizes"
1563
- },
1564
- "2": {
1565
- "value": "{fontSize.static.2}",
1566
- "type": "fontSizes"
1567
- },
1568
- "3": {
1569
- "value": "19",
1570
- "type": "fontSizes"
1571
- },
1572
- "4": {
1573
- "value": "32",
1574
- "type": "fontSizes"
1575
- },
1576
- "5": {
1577
- "value": "40",
1578
- "type": "fontSizes"
1579
- }
1580
- },
1581
- "lineHeight": {
1582
- "body": {
1583
- "value": "{lineHeight.5}",
1584
- "type": "lineHeights"
1585
- },
1586
- "heading": {
1587
- "value": "113%",
1588
- "type": "lineHeights"
1589
- }
1590
- },
1591
1557
  "heading": {
1592
1558
  "1": {
1593
1559
  "value": {
1594
- "fontFamily": "{fontFamily.serif}",
1595
- "fontWeight": "{fontWeight.body}",
1596
- "lineHeight": "135%",
1597
- "fontSize": "{fontSize.5}",
1598
- "letterSpacing": "-1%"
1560
+ "fontFamily": "{fontFamily.default}",
1561
+ "fontWeight": "{fontWeight.bold}",
1562
+ "lineHeight": "{lineHeight.1}",
1563
+ "fontSize": "{fontSize.static.6}",
1564
+ "letterSpacing": "{letterSpacing.tight-3}"
1599
1565
  },
1600
1566
  "type": "typography"
1601
1567
  },
1602
1568
  "2": {
1603
1569
  "value": {
1604
- "fontFamily": "{fontFamily.body}",
1605
- "fontWeight": "{fontWeight.heading}",
1606
- "lineHeight": "120%",
1607
- "fontSize": "{fontSize.4}",
1608
- "letterSpacing": "0%"
1570
+ "fontFamily": "{fontFamily.default}",
1571
+ "fontWeight": "{fontWeight.semibold}",
1572
+ "lineHeight": "{lineHeight.2}",
1573
+ "fontSize": "{fontSize.static.5}",
1574
+ "letterSpacing": "{letterSpacing.tight-2}"
1609
1575
  },
1610
1576
  "type": "typography"
1611
1577
  },
1612
1578
  "3": {
1613
1579
  "value": {
1614
- "fontFamily": "{fontFamily.body}",
1615
- "fontWeight": "{fontWeight.heading}",
1616
- "lineHeight": "150%",
1617
- "fontSize": "{fontSize.3}",
1618
- "letterSpacing": "0%"
1580
+ "fontFamily": "{fontFamily.default}",
1581
+ "fontWeight": "{fontWeight.semibold}",
1582
+ "lineHeight": "{lineHeight.3}",
1583
+ "fontSize": "{fontSize.static.4}",
1584
+ "letterSpacing": "{letterSpacing.tight-2}"
1619
1585
  },
1620
1586
  "type": "typography"
1621
1587
  },
1622
1588
  "4": {
1623
1589
  "value": {
1624
- "fontFamily": "{fontFamily.body}",
1625
- "fontWeight": "{fontWeight.heading}",
1626
- "lineHeight": "160%",
1627
- "fontSize": "{fontSize.2}",
1628
- "letterSpacing": "0%"
1590
+ "fontFamily": "{fontFamily.default}",
1591
+ "fontWeight": "{fontWeight.bold}",
1592
+ "lineHeight": "{lineHeight.4}",
1593
+ "fontSize": "{fontSize.static.2}",
1594
+ "letterSpacing": "{letterSpacing.none}"
1629
1595
  },
1630
1596
  "type": "typography"
1631
1597
  },
1632
1598
  "5": {
1633
1599
  "value": {
1634
- "fontFamily": "{fontFamily.body}",
1635
- "fontWeight": "{fontWeight.heading}",
1636
- "lineHeight": "150%",
1637
- "fontSize": "{fontSize.1}"
1600
+ "fontFamily": "{fontFamily.default}",
1601
+ "fontWeight": "{fontWeight.bold}",
1602
+ "lineHeight": "{lineHeight.4}",
1603
+ "fontSize": "{fontSize.static.1}",
1604
+ "letterSpacing": "{letterSpacing.none}"
1638
1605
  },
1639
1606
  "type": "typography"
1640
1607
  },
1641
1608
  "caps": {
1642
1609
  "value": {
1643
- "fontFamily": "{fontFamily.body}",
1644
- "fontWeight": "{fontWeight.bold}",
1645
- "lineHeight": "150%",
1646
- "fontSize": "{fontSize.1}",
1647
- "letterSpacing": "5%",
1648
- "textCase": "{textCase.uppercase}"
1610
+ "fontFamily": "{fontFamily.default}",
1611
+ "fontWeight": "{fontWeight.semibold}",
1612
+ "lineHeight": "{lineHeight.5}",
1613
+ "fontSize": "{fontSize.static.1}",
1614
+ "letterSpacing": "{letterSpacing.loose-3}",
1615
+ "textTransform": "uppercase"
1649
1616
  },
1650
1617
  "type": "typography"
1651
1618
  }
1652
1619
  },
1653
- "fontWeight": {
1654
- "body": {
1655
- "value": "{fontWeight.regular}",
1656
- "type": "fontWeights"
1657
- },
1658
- "heading": {
1659
- "value": "{fontWeight.medium}",
1660
- "type": "fontWeights"
1661
- }
1662
- },
1620
+
1663
1621
  "body": {
1664
1622
  "small": {
1665
1623
  "value": {
1666
- "fontFamily": "{fontFamily.body}",
1667
- "fontWeight": "{fontWeight.body}",
1668
- "lineHeight": "{lineHeight.body}",
1669
- "fontSize": "{fontSize.1}"
1624
+ "fontFamily": "{fontFamily.default}",
1625
+ "fontWeight": "{fontWeight.regular}",
1626
+ "lineHeight": "{lineHeight.5}",
1627
+ "fontSize": "{fontSize.static.1}",
1628
+ "letterSpacing": "{letterSpacing.loose-2}"
1670
1629
  },
1671
1630
  "type": "typography"
1672
1631
  },
1673
1632
  "default": {
1674
1633
  "value": {
1675
- "fontFamily": "{fontFamily.body}",
1676
- "fontWeight": "{fontWeight.body}",
1677
- "lineHeight": "{lineHeight.body}",
1678
- "fontSize": "{fontSize.2}"
1634
+ "fontFamily": "{fontFamily.default}",
1635
+ "fontWeight": "{fontWeight.regular}",
1636
+ "lineHeight": "{lineHeight.5}",
1637
+ "fontSize": "{fontSize.static.2}",
1638
+ "letterSpacing": "{letterSpacing.loose-2}"
1679
1639
  },
1680
1640
  "type": "typography"
1681
1641
  },
1682
1642
  "large": {
1683
1643
  "value": {
1684
- "fontFamily": "{fontFamily.body}",
1685
- "fontWeight": "{fontWeight.body}",
1686
- "lineHeight": "{lineHeight.body}",
1687
- "fontSize": "20"
1644
+ "fontFamily": "{fontFamily.default}",
1645
+ "fontWeight": "{fontWeight.regular}",
1646
+ "lineHeight": "{lineHeight.5}",
1647
+ "fontSize": "{fontSize.static.4}",
1648
+ "letterSpacing": "{letterSpacing.loose-2}"
1688
1649
  },
1689
1650
  "type": "typography"
1690
1651
  },
1691
1652
  "mono": {
1692
1653
  "value": {
1693
1654
  "fontFamily": "{fontFamily.monospace}",
1694
- "fontWeight": "{fontWeight.body}",
1695
- "lineHeight": "{lineHeight.body}",
1696
- "fontSize": "{fontSize.2}"
1655
+ "fontWeight": "{fontWeight.regular}",
1656
+ "lineHeight": "{lineHeight.5}",
1657
+ "fontSize": "{fontSize.static.2}",
1658
+ "letterSpacing": "{letterSpacing.none}"
1697
1659
  },
1698
1660
  "type": "typography"
1699
1661
  },
1700
1662
  "mono-bold": {
1701
1663
  "value": {
1702
1664
  "fontFamily": "{fontFamily.monospace}",
1703
- "lineHeight": "{lineHeight.body}",
1704
- "fontSize": "{fontSize.2}",
1705
- "fontWeight": "{fontWeight.bold}"
1665
+ "lineHeight": "{lineHeight.5}",
1666
+ "fontSize": "{fontSize.static.2}",
1667
+ "fontWeight": "{fontWeight.bold}",
1668
+ "letterSpacing": "{letterSpacing.none}"
1706
1669
  },
1707
1670
  "type": "typography"
1708
1671
  }