@windstream/react-shared-components 0.0.17 → 0.0.20

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 (141) hide show
  1. package/dist/contentful/index.d.ts +35 -5
  2. package/dist/contentful/index.esm.js +1 -1
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +1 -1
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +38 -10
  7. package/dist/index.d.ts +39 -11
  8. package/dist/index.esm.js +5 -5
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +5 -5
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles.css +1 -1
  13. package/dist/utils/index.esm.js.map +1 -1
  14. package/dist/utils/index.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/components/accordion/Accordion.stories.tsx +16 -11
  17. package/src/components/accordion/index.tsx +19 -8
  18. package/src/components/accordion/types.ts +8 -9
  19. package/src/components/alert-card/AlertCard.stories.tsx +4 -5
  20. package/src/components/alert-card/index.tsx +6 -9
  21. package/src/components/alert-card/types.ts +9 -9
  22. package/src/components/brand-button/BrandButton.stories.tsx +8 -10
  23. package/src/components/brand-button/helpers.ts +8 -8
  24. package/src/components/brand-button/index.tsx +30 -27
  25. package/src/components/brand-button/types.ts +6 -8
  26. package/src/components/button/Button.stories.tsx +6 -6
  27. package/src/components/button/index.tsx +3 -1
  28. package/src/components/button/types.ts +14 -14
  29. package/src/components/call-button/CallButton.stories.tsx +1 -1
  30. package/src/components/call-button/index.tsx +3 -4
  31. package/src/components/call-button/types.ts +1 -0
  32. package/src/components/checkbox/Checkbox.stories.tsx +6 -7
  33. package/src/components/checkbox/index.tsx +17 -7
  34. package/src/components/checkbox/types.ts +19 -16
  35. package/src/components/checklist/Checklist.stories.tsx +1 -2
  36. package/src/components/checklist/index.tsx +12 -6
  37. package/src/components/checklist/types.ts +5 -5
  38. package/src/components/collapse/Collapse.stories.tsx +18 -19
  39. package/src/components/collapse/index.tsx +1 -1
  40. package/src/components/collapse/types.ts +4 -4
  41. package/src/components/divider/Divider.stories.tsx +16 -17
  42. package/src/components/divider/index.tsx +2 -3
  43. package/src/components/divider/type.ts +2 -2
  44. package/src/components/image/Image.stories.tsx +113 -0
  45. package/src/components/image/index.tsx +22 -0
  46. package/src/components/image/types.ts +28 -0
  47. package/src/components/input/Input.stories.tsx +13 -46
  48. package/src/components/input/index.tsx +18 -15
  49. package/src/components/input/types.ts +1 -1
  50. package/src/components/link/Link.stories.tsx +1 -1
  51. package/src/components/link/index.tsx +1 -2
  52. package/src/components/link/types.ts +25 -25
  53. package/src/components/list/List.stories.tsx +1 -1
  54. package/src/components/list/index.tsx +86 -86
  55. package/src/components/list/list-item/index.tsx +36 -36
  56. package/src/components/list/list-item/types.ts +13 -13
  57. package/src/components/list/types.ts +29 -29
  58. package/src/components/material-icon/MaterialIcon.stories.tsx +1 -1
  59. package/src/components/material-icon/constants.ts +1 -1
  60. package/src/components/material-icon/index.tsx +44 -44
  61. package/src/components/material-icon/types.ts +31 -31
  62. package/src/components/modal/Modal.stories.tsx +9 -9
  63. package/src/components/modal/index.tsx +8 -14
  64. package/src/components/modal/types.ts +1 -1
  65. package/src/components/radio-button/RadioButton.stories.tsx +7 -7
  66. package/src/components/radio-button/index.tsx +11 -9
  67. package/src/components/radio-button/types.ts +18 -19
  68. package/src/components/see-more/SeeMore.stories.tsx +14 -15
  69. package/src/components/see-more/index.tsx +33 -29
  70. package/src/components/see-more/types.ts +3 -3
  71. package/src/components/select/Select.stories.tsx +3 -2
  72. package/src/components/select/index.tsx +15 -17
  73. package/src/components/select/types.ts +2 -1
  74. package/src/components/select-plan-button/SelectPlanButton.stories.tsx +20 -12
  75. package/src/components/select-plan-button/index.tsx +28 -20
  76. package/src/components/select-plan-button/types.ts +1 -1
  77. package/src/components/skeleton/Skeleton.stories.tsx +9 -10
  78. package/src/components/skeleton/index.tsx +61 -61
  79. package/src/components/skeleton/types.ts +3 -3
  80. package/src/components/spinner/Spinner.stories.tsx +1 -1
  81. package/src/components/spinner/index.tsx +1 -1
  82. package/src/components/spinner/types.ts +4 -4
  83. package/src/components/text/Text.stories.tsx +35 -16
  84. package/src/components/text/index.tsx +2 -5
  85. package/src/components/text/types.ts +45 -45
  86. package/src/components/tooltip/Tooltip.stories.tsx +15 -16
  87. package/src/components/tooltip/index.tsx +1 -5
  88. package/src/components/tooltip/types.ts +4 -4
  89. package/src/components/view-cart-button/ViewCartButton.stories.tsx +23 -12
  90. package/src/components/view-cart-button/index.tsx +11 -6
  91. package/src/components/view-cart-button/types.ts +1 -1
  92. package/src/contentful/blocks/accordion/Accordion.stories.tsx +23 -0
  93. package/src/contentful/blocks/accordion/index.tsx +11 -1
  94. package/src/contentful/blocks/accordion/types.ts +1 -1
  95. package/src/contentful/blocks/button/Button.stories.tsx +40 -0
  96. package/src/contentful/blocks/button/index.tsx +15 -14
  97. package/src/contentful/blocks/button/types.ts +17 -17
  98. package/src/contentful/blocks/callout/Callout.stories.tsx +23 -0
  99. package/src/contentful/blocks/callout/index.tsx +9 -1
  100. package/src/contentful/blocks/callout/types.ts +1 -1
  101. package/src/contentful/blocks/cards/Cards.stories.tsx +23 -0
  102. package/src/contentful/blocks/cards/index.tsx +7 -1
  103. package/src/contentful/blocks/cards/types.ts +1 -1
  104. package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -0
  105. package/src/contentful/blocks/carousel/index.tsx +7 -1
  106. package/src/contentful/blocks/carousel/types.ts +1 -1
  107. package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -0
  108. package/src/contentful/blocks/cta-callout/index.tsx +5 -5
  109. package/src/contentful/blocks/cta-callout/types.ts +16 -16
  110. package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +23 -0
  111. package/src/contentful/blocks/floating-banner/index.tsx +6 -2
  112. package/src/contentful/blocks/floating-banner/types.ts +1 -1
  113. package/src/contentful/blocks/footer/Footer.stories.tsx +30 -0
  114. package/src/contentful/blocks/footer/index.tsx +8 -7
  115. package/src/contentful/blocks/footer/types.ts +7 -6
  116. package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -0
  117. package/src/contentful/blocks/image-promo-bar/index.tsx +84 -2
  118. package/src/contentful/blocks/image-promo-bar/types.ts +28 -1
  119. package/src/contentful/blocks/modal/Modal.stories.tsx +23 -0
  120. package/src/contentful/blocks/modal/index.tsx +8 -2
  121. package/src/contentful/blocks/modal/types.ts +1 -1
  122. package/src/contentful/blocks/navigation/Navigation.stories.tsx +23 -0
  123. package/src/contentful/blocks/navigation/index.tsx +6 -2
  124. package/src/contentful/blocks/navigation/types.ts +1 -1
  125. package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -0
  126. package/src/contentful/blocks/primary-hero/index.tsx +4 -3
  127. package/src/contentful/blocks/primary-hero/types.ts +29 -25
  128. package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -0
  129. package/src/contentful/blocks/shape-background-wrapper/index.tsx +107 -106
  130. package/src/contentful/blocks/shape-background-wrapper/types.ts +24 -23
  131. package/src/contentful/blocks/text/Text.stories.tsx +23 -0
  132. package/src/contentful/blocks/text/index.tsx +7 -1
  133. package/src/contentful/blocks/text/types.ts +1 -1
  134. package/src/contentful/index.ts +1 -1
  135. package/src/hooks/use-body-scroll-lock.ts +2 -1
  136. package/src/index.ts +14 -2
  137. package/src/setupTests.ts +46 -46
  138. package/src/stories/DocsTemplate.tsx +0 -2
  139. package/src/styles/globals.css +162 -162
  140. package/src/types/global.d.ts +9 -9
  141. package/src/utils/index.ts +34 -34
@@ -2,41 +2,41 @@ import { clsx, type ClassValue } from "clsx";
2
2
  import { extendTailwindMerge } from "tailwind-merge";
3
3
 
4
4
  const twMerge = extendTailwindMerge({
5
- // Define class groups so twMerge knows which classes override each other
6
- extend: {
7
- classGroups: {
8
- ["font-variants" as any]: [
9
- "heading1",
10
- "heading2",
11
- "heading3",
12
- "heading4",
13
- "heading5",
14
- "heading6",
15
- "subheading1",
16
- "subheading2",
17
- "subheading3",
18
- "subheading4",
19
- "subheading5",
20
- "subheading6",
21
- "body1",
22
- "body2",
23
- "body3",
24
- "footnote",
25
- "micro",
26
- "label1",
27
- "label2",
28
- "label3",
29
- "label4",
30
- ],
31
- ["button-sizes" as any]: [
32
- "btn-small",
33
- "btn-medium",
34
- "btn-large",
35
- "btn-x-large",
36
- ],
37
- },
5
+ // Define class groups so twMerge knows which classes override each other
6
+ extend: {
7
+ classGroups: {
8
+ ["font-variants" as any]: [
9
+ "heading1",
10
+ "heading2",
11
+ "heading3",
12
+ "heading4",
13
+ "heading5",
14
+ "heading6",
15
+ "subheading1",
16
+ "subheading2",
17
+ "subheading3",
18
+ "subheading4",
19
+ "subheading5",
20
+ "subheading6",
21
+ "body1",
22
+ "body2",
23
+ "body3",
24
+ "footnote",
25
+ "micro",
26
+ "label1",
27
+ "label2",
28
+ "label3",
29
+ "label4",
30
+ ],
31
+ ["button-sizes" as any]: [
32
+ "btn-small",
33
+ "btn-medium",
34
+ "btn-large",
35
+ "btn-x-large",
36
+ ],
38
37
  },
39
- });
38
+ },
39
+ });
40
40
 
41
41
  /**
42
42
  * Utility function to combine class names using clsx