@primer/react-brand 0.7.2 → 0.8.0-rc.302d683

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 (115) hide show
  1. package/lib/AnchorNav/AnchorNav.d.ts +65 -0
  2. package/lib/AnchorNav/AnchorNav.visual.spec.d.ts +1 -0
  3. package/lib/AnchorNav/index.d.ts +1 -0
  4. package/lib/AnchorNav/useExpandedMenu.d.ts +2 -0
  5. package/lib/CTABanner/CTABanner.d.ts +51 -0
  6. package/lib/CTABanner/CTABanner.visual.spec.d.ts +1 -0
  7. package/lib/CTABanner/index.d.ts +1 -0
  8. package/lib/Heading/Heading.d.ts +1 -2
  9. package/lib/component-helpers.d.ts +7 -1
  10. package/lib/css/main.css +499 -20
  11. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  12. package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
  13. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  14. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  15. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +15 -0
  19. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +15 -0
  24. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  39. package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
  40. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  41. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  42. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  43. package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
  44. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  45. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  46. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  47. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  48. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  49. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  50. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  51. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  52. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  53. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  54. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  55. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  56. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  57. package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
  58. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  59. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  60. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  61. package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
  62. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  63. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  64. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  65. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  66. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  67. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  68. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  69. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  70. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  71. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  72. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  73. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  74. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  75. package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
  76. package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
  77. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  78. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  79. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  80. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  81. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  82. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  83. package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
  84. package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
  85. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  86. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  87. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  88. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  89. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  90. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  91. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  92. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  93. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  94. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  95. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  96. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  97. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  98. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  99. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  100. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  101. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  102. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  103. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  104. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  105. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  106. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  107. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  108. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  109. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  110. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  111. package/lib/hooks/useWindowSize.d.ts +1 -0
  112. package/lib/index.d.ts +2 -0
  113. package/lib/index.js +1 -1
  114. package/lib/test-utils/mocks/match-media-mock.d.ts +0 -0
  115. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  declare const tokens: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 17 Nov 2022 13:45:06 GMT
3
+ * Generated on Thu, 08 Dec 2022 22:40:32 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -1,6 +1,7 @@
1
1
  declare type WindowSize = {
2
2
  width?: number;
3
3
  height?: number;
4
+ isLarge?: boolean;
4
5
  };
5
6
  export declare function useWindowSize(): WindowSize;
6
7
  export {};
package/lib/index.d.ts CHANGED
@@ -15,3 +15,5 @@ export * from './forms';
15
15
  export * from './Stack';
16
16
  export * from './Testimonial';
17
17
  export * from './ComparisonTable';
18
+ export * from './AnchorNav';
19
+ export * from './CTABanner';