@primer/primitives 10.3.0-rc.b425078b → 10.3.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 (56) hide show
  1. package/dist/build/transformers/colorToHex.js +3 -3
  2. package/dist/build/transformers/colorToRgbAlpha.js +2 -2
  3. package/dist/build/transformers/shadowToCss.js +2 -2
  4. package/dist/build/transformers/utilities/alpha.d.ts +2 -2
  5. package/dist/build/transformers/utilities/alpha.js +3 -3
  6. package/dist/build/utilities/log.d.ts +6 -0
  7. package/dist/build/utilities/log.js +34 -0
  8. package/dist/docs/functional/themes/dark-colorblind.json +174 -12
  9. package/dist/docs/functional/themes/dark-dimmed.json +212 -12
  10. package/dist/docs/functional/themes/dark-high-contrast.json +213 -13
  11. package/dist/docs/functional/themes/dark-tritanopia.json +174 -12
  12. package/dist/docs/functional/themes/dark.json +174 -12
  13. package/dist/docs/functional/themes/light-colorblind.json +170 -10
  14. package/dist/docs/functional/themes/light-high-contrast.json +211 -11
  15. package/dist/docs/functional/themes/light-tritanopia.json +170 -10
  16. package/dist/docs/functional/themes/light.json +170 -10
  17. package/dist/figma/themes/dark-colorblind.json +165 -164
  18. package/dist/figma/themes/dark-dimmed.json +165 -115
  19. package/dist/figma/themes/dark-high-contrast.json +165 -114
  20. package/dist/figma/themes/dark-tritanopia.json +165 -164
  21. package/dist/figma/themes/dark.json +165 -164
  22. package/dist/figma/themes/light-colorblind.json +164 -164
  23. package/dist/figma/themes/light-high-contrast.json +151 -100
  24. package/dist/figma/themes/light-tritanopia.json +164 -164
  25. package/dist/figma/themes/light.json +164 -164
  26. package/dist/styleLint/functional/themes/dark-colorblind.json +174 -12
  27. package/dist/styleLint/functional/themes/dark-dimmed.json +212 -12
  28. package/dist/styleLint/functional/themes/dark-high-contrast.json +213 -13
  29. package/dist/styleLint/functional/themes/dark-tritanopia.json +174 -12
  30. package/dist/styleLint/functional/themes/dark.json +174 -12
  31. package/dist/styleLint/functional/themes/light-colorblind.json +170 -10
  32. package/dist/styleLint/functional/themes/light-high-contrast.json +211 -11
  33. package/dist/styleLint/functional/themes/light-tritanopia.json +170 -10
  34. package/dist/styleLint/functional/themes/light.json +170 -10
  35. package/package.json +1 -1
  36. package/src/tokens/component/header.json5 +65 -0
  37. package/src/tokens/component/headerSerach.json5 +32 -0
  38. package/src/tokens/component/overlay.json5 +68 -0
  39. package/src/tokens/component/skeletonLoader.json5 +29 -0
  40. package/src/tokens/functional/color/dark/app-dark.json5 +0 -81
  41. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -18
  42. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -21
  43. package/src/tokens/functional/color/dark/patterns-dark.json5 +0 -127
  44. package/src/tokens/functional/color/light/app-light.json5 +0 -75
  45. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -21
  46. package/src/tokens/functional/color/light/patterns-light.json5 +0 -127
  47. package/dist/figma/figma.json +0 -133
  48. package/dist/figma/shadows/dark-colorblind.json +0 -1152
  49. package/dist/figma/shadows/dark-dimmed.json +0 -1152
  50. package/dist/figma/shadows/dark-high-contrast.json +0 -1152
  51. package/dist/figma/shadows/dark-tritanopia.json +0 -1152
  52. package/dist/figma/shadows/dark.json +0 -1152
  53. package/dist/figma/shadows/light-colorblind.json +0 -1052
  54. package/dist/figma/shadows/light-high-contrast.json +0 -1052
  55. package/dist/figma/shadows/light-tritanopia.json +0 -1052
  56. package/dist/figma/shadows/light.json +0 -1052
@@ -1643,81 +1643,6 @@
1643
1643
  },
1644
1644
  },
1645
1645
  },
1646
- header: {
1647
- bgColor: {
1648
- $value: '{base.color.neutral.12}',
1649
- $type: 'color',
1650
- $extensions: {
1651
- 'org.primer.figma': {
1652
- collection: 'mode',
1653
- group: 'component (internal)',
1654
- scopes: ['bgColor'],
1655
- },
1656
- },
1657
- },
1658
- fgColor: {
1659
- default: {
1660
- $value: '{base.color.neutral.0}',
1661
- $type: 'color',
1662
- $extensions: {
1663
- 'org.primer.figma': {
1664
- collection: 'mode',
1665
- group: 'component (internal)',
1666
- scopes: ['fgColor'],
1667
- },
1668
- },
1669
- alpha: 0.7,
1670
- },
1671
- logo: {
1672
- $value: '{base.color.neutral.0}',
1673
- $type: 'color',
1674
- $extensions: {
1675
- 'org.primer.figma': {
1676
- collection: 'mode',
1677
- group: 'component (internal)',
1678
- scopes: ['fgColor'],
1679
- },
1680
- },
1681
- },
1682
- },
1683
- borderColor: {
1684
- divider: {
1685
- $value: '{base.color.neutral.8}',
1686
- $type: 'color',
1687
- $extensions: {
1688
- 'org.primer.figma': {
1689
- collection: 'mode',
1690
- group: 'component (internal)',
1691
- scopes: ['borderColor'],
1692
- },
1693
- },
1694
- },
1695
- },
1696
- },
1697
- headerSearch: {
1698
- bgColor: {
1699
- $value: '{base.color.neutral.12}',
1700
- $type: 'color',
1701
- $extensions: {
1702
- 'org.primer.figma': {
1703
- collection: 'mode',
1704
- group: 'component (internal)',
1705
- scopes: ['bgColor'],
1706
- },
1707
- },
1708
- },
1709
- borderColor: {
1710
- $value: '{base.color.neutral.8}',
1711
- $type: 'color',
1712
- $extensions: {
1713
- 'org.primer.figma': {
1714
- collection: 'mode',
1715
- group: 'component (internal)',
1716
- scopes: ['borderColor'],
1717
- },
1718
- },
1719
- },
1720
- },
1721
1646
  menu: {
1722
1647
  bgColor: {
1723
1648
  active: {
@@ -1733,44 +1658,6 @@
1733
1658
  },
1734
1659
  },
1735
1660
  },
1736
- overlay: {
1737
- bgColor: {
1738
- $value: '{base.color.neutral.0}',
1739
- $type: 'color',
1740
- $extensions: {
1741
- 'org.primer.figma': {
1742
- collection: 'mode',
1743
- group: 'component (internal)',
1744
- scopes: ['bgColor'],
1745
- },
1746
- },
1747
- },
1748
- borderColor: {
1749
- $value: '{borderColor.muted}',
1750
- $type: 'color',
1751
- $extensions: {
1752
- 'org.primer.figma': {
1753
- collection: 'mode',
1754
- group: 'component (internal)',
1755
- },
1756
- },
1757
- alpha: 0.5,
1758
- },
1759
- backdrop: {
1760
- bgColor: {
1761
- $value: '{base.color.neutral.7}',
1762
- $type: 'color',
1763
- $extensions: {
1764
- 'org.primer.figma': {
1765
- collection: 'mode',
1766
- group: 'component (internal)',
1767
- scopes: ['bgColor'],
1768
- },
1769
- },
1770
- alpha: 0.4,
1771
- },
1772
- },
1773
- },
1774
1661
  selectMenu: {
1775
1662
  borderColor: {
1776
1663
  $value: '{base.color.transparent}',
@@ -1812,20 +1699,6 @@
1812
1699
  },
1813
1700
  },
1814
1701
  },
1815
- skeletonLoader: {
1816
- bgColor: {
1817
- $value: '{base.color.neutral.8}',
1818
- $type: 'color',
1819
- $extensions: {
1820
- 'org.primer.figma': {
1821
- collection: 'mode',
1822
- group: 'component',
1823
- scopes: ['bgColor'],
1824
- },
1825
- },
1826
- alpha: 0.1,
1827
- },
1828
- },
1829
1702
  treeViewItem: {
1830
1703
  leadingVisual: {
1831
1704
  iconColor: {
@@ -1,133 +0,0 @@
1
- {
2
- "collections": {
3
- "base/size": {
4
- "modes": [
5
- "default"
6
- ],
7
- "groups": [
8
- "base/size"
9
- ]
10
- },
11
- "functional/size": {
12
- "modes": [
13
- "default"
14
- ],
15
- "groups": [
16
- "functional/size"
17
- ]
18
- },
19
- "pattern/size": {
20
- "modes": [
21
- "default"
22
- ],
23
- "groups": [
24
- "pattern/size",
25
- "component"
26
- ]
27
- },
28
- "base/color/dark-dimmed": {
29
- "modes": [
30
- "default"
31
- ],
32
- "groups": [
33
- "base/color/dark-dimmed"
34
- ]
35
- },
36
- "base/color/dark": {
37
- "modes": [
38
- "default"
39
- ],
40
- "groups": [
41
- "base/color/dark"
42
- ]
43
- },
44
- "base/color/dark-high-contrast": {
45
- "modes": [
46
- "default"
47
- ],
48
- "groups": [
49
- "base/color/dark-high-contrast"
50
- ]
51
- },
52
- "base/color/light-high-contrast": {
53
- "modes": [
54
- "default"
55
- ],
56
- "groups": [
57
- "base/color/light-high-contrast"
58
- ]
59
- },
60
- "base/color/light": {
61
- "modes": [
62
- "default"
63
- ],
64
- "groups": [
65
- "base/color/light"
66
- ]
67
- },
68
- "mode": {
69
- "modes": [
70
- "light",
71
- "dark",
72
- "dark dimmed",
73
- "light high contrast",
74
- "dark high contrast",
75
- "light protanopia deuteranopia",
76
- "dark protanopia deuteranopia",
77
- "light tritanopia",
78
- "dark tritanopia"
79
- ],
80
- "groups": [
81
- "component shadow",
82
- "shadow",
83
- "component (internal)",
84
- "component",
85
- "semantic",
86
- "syntax"
87
- ]
88
- },
89
- "base/typography": {
90
- "modes": [
91
- "default"
92
- ],
93
- "groups": [
94
- "base/typography"
95
- ]
96
- },
97
- "typography": {
98
- "modes": [
99
- "default"
100
- ],
101
- "groups": [
102
- "typography"
103
- ]
104
- }
105
- },
106
- "files": [
107
- "dist/figma/dimension/dimension.json",
108
- "dist/figma/scales/dark-dimmed.json",
109
- "dist/figma/scales/dark-high-constrast.json",
110
- "dist/figma/scales/dark.json",
111
- "dist/figma/scales/light-high-constrast.json",
112
- "dist/figma/scales/light.json",
113
- "dist/figma/shadows/dark-colorblind.json",
114
- "dist/figma/shadows/dark-dimmed.json",
115
- "dist/figma/shadows/dark-high-contrast.json",
116
- "dist/figma/shadows/dark-tritanopia.json",
117
- "dist/figma/shadows/dark.json",
118
- "dist/figma/shadows/light-colorblind.json",
119
- "dist/figma/shadows/light-high-contrast.json",
120
- "dist/figma/shadows/light-tritanopia.json",
121
- "dist/figma/shadows/light.json",
122
- "dist/figma/themes/dark-colorblind.json",
123
- "dist/figma/themes/dark-dimmed.json",
124
- "dist/figma/themes/dark-high-contrast.json",
125
- "dist/figma/themes/dark-tritanopia.json",
126
- "dist/figma/themes/dark.json",
127
- "dist/figma/themes/light-colorblind.json",
128
- "dist/figma/themes/light-high-contrast.json",
129
- "dist/figma/themes/light-tritanopia.json",
130
- "dist/figma/themes/light.json",
131
- "dist/figma/typography/typography.json"
132
- ]
133
- }