@pingux/astro 2.91.0-alpha.1 → 2.92.0-alpha.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 (283) hide show
  1. package/lib/cjs/components/Card/Card.stories.js +2 -1
  2. package/lib/cjs/components/Card/Card.styles.d.ts +12 -0
  3. package/lib/cjs/components/Card/Card.styles.js +2 -1
  4. package/lib/cjs/components/CodeView/CodeView.js +7 -3
  5. package/lib/cjs/components/CodeView/CodeView.test.js +11 -4
  6. package/lib/cjs/components/ComboBox/ComboBoxInput.js +5 -2
  7. package/lib/cjs/components/DataTable/DataTable.js +7 -4
  8. package/lib/cjs/components/Icon/NoticeIcon.js +4 -1
  9. package/lib/cjs/components/IconWrapper/IconWrapper.d.ts +4 -0
  10. package/lib/cjs/components/IconWrapper/IconWrapper.js +62 -0
  11. package/lib/cjs/components/IconWrapper/IconWrapper.mdx +14 -0
  12. package/lib/cjs/components/IconWrapper/IconWrapper.stories.d.ts +4 -0
  13. package/lib/cjs/components/IconWrapper/IconWrapper.stories.js +53 -0
  14. package/lib/cjs/components/IconWrapper/IconWrapper.test.d.ts +1 -0
  15. package/lib/cjs/components/IconWrapper/IconWrapper.test.js +41 -0
  16. package/lib/cjs/components/IconWrapper/iconWrapperAttributes.d.ts +21 -0
  17. package/lib/cjs/components/IconWrapper/iconWrapperAttributes.js +31 -0
  18. package/lib/cjs/components/IconWrapper/index.d.ts +1 -0
  19. package/lib/cjs/components/IconWrapper/index.js +14 -0
  20. package/lib/cjs/components/Link/Link.stories.js +1 -1
  21. package/lib/cjs/components/ListView/ListViewExpandableItem.js +6 -3
  22. package/lib/cjs/components/NavBar/NavBar.stories.js +10 -3
  23. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +4 -1
  24. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +6 -4
  25. package/lib/cjs/components/NavSideBar/NavSideBarSectionHeader.js +6 -3
  26. package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +15 -16
  27. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +5 -1
  28. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +5 -2
  29. package/lib/cjs/components/Tabs/Tabs.stories.js +3 -3
  30. package/lib/cjs/hooks/index.d.ts +1 -0
  31. package/lib/cjs/hooks/index.js +7 -0
  32. package/lib/cjs/hooks/useGetTheme/index.d.ts +1 -0
  33. package/lib/cjs/hooks/useGetTheme/index.js +14 -0
  34. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +26 -0
  35. package/lib/cjs/hooks/useGetTheme/useGetTheme.js +82 -0
  36. package/lib/cjs/hooks/useGetTheme/useGetTheme.test.d.ts +1 -0
  37. package/lib/cjs/hooks/useGetTheme/useGetTheme.test.js +88 -0
  38. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +5 -3
  39. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +17 -0
  40. package/lib/cjs/index.d.ts +3 -0
  41. package/lib/cjs/index.js +77 -50
  42. package/lib/cjs/recipes/NextGen/ListViewNextGen.stories.js +6 -135
  43. package/lib/cjs/recipes/NextGen/ModalNextGen.stories.js +8 -7
  44. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +2 -216
  45. package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.js +2 -135
  46. package/lib/cjs/styles/sizes.d.ts +12 -0
  47. package/lib/cjs/styles/sizes.js +19 -0
  48. package/lib/cjs/styles/theme.js +4 -12
  49. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +75 -0
  50. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +97 -0
  51. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +7 -0
  52. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +24 -0
  53. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +11 -0
  54. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +24 -0
  55. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/index.d.ts +1 -0
  56. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/index.js +14 -0
  57. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.d.ts +2 -0
  58. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +31 -0
  59. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.d.ts +6 -0
  60. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +22 -0
  61. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.d.ts +6 -0
  62. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +22 -0
  63. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.d.ts +6 -0
  64. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +22 -0
  65. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.d.ts +6 -0
  66. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +22 -0
  67. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.d.ts +43 -0
  68. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +51 -0
  69. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +92 -0
  70. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +96 -0
  71. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +82 -0
  72. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +105 -0
  73. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +15 -0
  74. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +23 -0
  75. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +68 -0
  76. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +71 -0
  77. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.d.ts +53 -0
  78. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +75 -0
  79. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +8 -0
  80. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +35 -0
  81. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +40 -0
  82. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +47 -0
  83. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/lsitview.d.ts +24 -0
  84. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/lsitview.js +33 -0
  85. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.d.ts +26 -0
  86. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +35 -0
  87. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.d.ts +52 -0
  88. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/message.js +60 -0
  89. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.d.ts +132 -0
  90. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +149 -0
  91. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +375 -0
  92. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +71 -0
  93. package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +8 -0
  94. package/lib/cjs/styles/themes/astro/customProperties/icons.js +23 -0
  95. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +12 -0
  96. package/lib/cjs/styles/themes/astro/customProperties/index.js +15 -0
  97. package/lib/cjs/styles/themes/astro/customProperties/styles.d.ts +4 -0
  98. package/lib/cjs/styles/themes/astro/customProperties/styles.js +11 -0
  99. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +36 -0
  100. package/lib/cjs/styles/themes/next-gen/colors/colors.js +22 -4
  101. package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.d.ts +22 -0
  102. package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +31 -0
  103. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +11 -1
  104. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +15 -4
  105. package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +8 -0
  106. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +23 -0
  107. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +12 -0
  108. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +15 -0
  109. package/lib/cjs/styles/themes/next-gen/customProperties/styles.d.ts +4 -0
  110. package/lib/cjs/styles/themes/next-gen/customProperties/styles.js +11 -0
  111. package/lib/cjs/styles/themes/next-gen/forms.js +3 -3
  112. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +244 -8
  113. package/lib/cjs/styles/themes/next-gen/next-gen.js +5 -9
  114. package/lib/cjs/styles/themes/next-gen/sizes.d.ts +7 -0
  115. package/lib/cjs/styles/themes/next-gen/sizes.js +10 -1
  116. package/lib/cjs/styles/themes/next-gen/stories/DataTableNextGenComponent.d.ts +6 -0
  117. package/lib/cjs/styles/themes/next-gen/stories/DataTableNextGenComponent.js +151 -0
  118. package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.d.ts +29 -0
  119. package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.js +84 -0
  120. package/lib/cjs/styles/themes/next-gen/stories/ListViewNextGenComponent.d.ts +2 -0
  121. package/lib/cjs/styles/themes/next-gen/stories/ListViewNextGenComponent.js +67 -0
  122. package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.d.ts +2 -0
  123. package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.js +191 -0
  124. package/lib/cjs/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.d.ts +6 -0
  125. package/lib/cjs/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +22 -0
  126. package/lib/cjs/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.d.ts +6 -0
  127. package/lib/cjs/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +22 -0
  128. package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.d.ts +7 -0
  129. package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +36 -0
  130. package/lib/cjs/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.d.ts +6 -0
  131. package/lib/cjs/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +22 -0
  132. package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.d.ts +6 -0
  133. package/lib/cjs/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +22 -0
  134. package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.d.ts +3 -0
  135. package/lib/cjs/styles/themes/next-gen/stories/StickerSheetComponent.js +286 -0
  136. package/lib/cjs/styles/themes/next-gen/variants/avatar.d.ts +43 -0
  137. package/lib/cjs/styles/themes/next-gen/variants/avatar.js +51 -0
  138. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +208 -0
  139. package/lib/cjs/styles/themes/next-gen/variants/badges.js +103 -0
  140. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +1 -0
  141. package/lib/cjs/styles/themes/next-gen/variants/button.js +5 -4
  142. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +40 -0
  143. package/lib/cjs/styles/themes/next-gen/variants/cards.js +22 -2
  144. package/lib/cjs/styles/themes/next-gen/variants/iconWrapper.d.ts +36 -0
  145. package/lib/cjs/styles/themes/next-gen/variants/iconWrapper.js +51 -0
  146. package/lib/cjs/styles/themes/next-gen/variants/input.js +9 -9
  147. package/lib/cjs/styles/themes/next-gen/variants/label.js +1 -1
  148. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +75 -0
  149. package/lib/cjs/styles/themes/next-gen/variants/links.js +7 -1
  150. package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +68 -0
  151. package/lib/cjs/styles/themes/next-gen/variants/listview.js +77 -0
  152. package/lib/cjs/styles/themes/next-gen/variants/menu.d.ts +28 -0
  153. package/lib/cjs/styles/themes/next-gen/variants/menu.js +37 -0
  154. package/lib/cjs/styles/themes/next-gen/variants/messages.d.ts +40 -0
  155. package/lib/cjs/styles/themes/next-gen/variants/messages.js +48 -0
  156. package/lib/cjs/styles/themes/next-gen/variants/navbar.d.ts +126 -0
  157. package/lib/cjs/styles/themes/next-gen/variants/navbar.js +134 -0
  158. package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.d.ts +3 -1
  159. package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +6 -4
  160. package/lib/cjs/styles/themes/next-gen/variants/tabs.d.ts +28 -0
  161. package/lib/cjs/styles/themes/next-gen/variants/tabs.js +38 -0
  162. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +11 -0
  163. package/lib/cjs/styles/themes/next-gen/variants/text.js +18 -7
  164. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +71 -7
  165. package/lib/cjs/styles/themes/next-gen/variants/variants.js +38 -338
  166. package/lib/cjs/types/iconWrapper.d.ts +15 -0
  167. package/lib/cjs/types/iconWrapper.js +6 -0
  168. package/lib/cjs/utils/devUtils/constants/logos.d.ts +3 -0
  169. package/lib/cjs/utils/devUtils/constants/logos.js +84 -0
  170. package/lib/cjs/utils/devUtils/constants/tShirtSizes.d.ts +11 -0
  171. package/lib/cjs/utils/devUtils/constants/tShirtSizes.js +8 -2
  172. package/lib/cjs/utils/devUtils/constants/themes.d.ts +5 -0
  173. package/lib/cjs/utils/devUtils/constants/themes.js +13 -0
  174. package/lib/cjs/utils/devUtils/shouldReturnComingSoon.d.ts +1 -0
  175. package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +41 -0
  176. package/lib/cjs/utils/docUtils/iconSizeProps.d.ts +1 -1
  177. package/lib/cjs/utils/docUtils/iconSizeProps.js +1 -1
  178. package/lib/cjs/utils/testUtils/testWrapper.d.ts +4 -2
  179. package/lib/cjs/utils/testUtils/testWrapper.js +10 -4
  180. package/lib/components/Card/Card.stories.js +2 -1
  181. package/lib/components/Card/Card.styles.js +1 -1
  182. package/lib/components/CodeView/CodeView.js +7 -3
  183. package/lib/components/CodeView/CodeView.test.js +12 -5
  184. package/lib/components/ComboBox/ComboBoxInput.js +4 -1
  185. package/lib/components/DataTable/DataTable.js +7 -4
  186. package/lib/components/Icon/NoticeIcon.js +4 -1
  187. package/lib/components/IconWrapper/IconWrapper.js +50 -0
  188. package/lib/components/IconWrapper/IconWrapper.mdx +14 -0
  189. package/lib/components/IconWrapper/IconWrapper.stories.js +44 -0
  190. package/lib/components/IconWrapper/IconWrapper.test.js +38 -0
  191. package/lib/components/IconWrapper/iconWrapperAttributes.js +23 -0
  192. package/lib/components/IconWrapper/index.js +1 -0
  193. package/lib/components/Link/Link.stories.js +2 -2
  194. package/lib/components/ListView/ListViewExpandableItem.js +6 -3
  195. package/lib/components/NavBar/NavBar.stories.js +10 -3
  196. package/lib/components/NavBarSection/NavBarItemBody.js +4 -1
  197. package/lib/components/NavBarSection/NavBarItemHeader.js +5 -3
  198. package/lib/components/NavSideBar/NavSideBarSectionHeader.js +5 -2
  199. package/lib/components/NavigationHeader/NavigationHeader.stories.js +17 -18
  200. package/lib/components/OverlayPanel/OverlayPanel.stories.js +5 -1
  201. package/lib/components/SelectFieldBase/SelectFieldBase.js +4 -1
  202. package/lib/components/Tabs/Tabs.stories.js +3 -3
  203. package/lib/hooks/index.js +1 -0
  204. package/lib/hooks/useGetTheme/index.js +1 -0
  205. package/lib/hooks/useGetTheme/useGetTheme.js +74 -0
  206. package/lib/hooks/useGetTheme/useGetTheme.test.js +81 -0
  207. package/lib/hooks/useTShirtSize/useTShirtSize.js +5 -3
  208. package/lib/hooks/useTShirtSize/useTShirtSize.test.js +17 -0
  209. package/lib/index.js +3 -3
  210. package/lib/recipes/NextGen/ListViewNextGen.stories.js +5 -134
  211. package/lib/recipes/NextGen/ModalNextGen.stories.js +9 -8
  212. package/lib/recipes/NextGen/NavBarNextGen.stories.js +2 -216
  213. package/lib/recipes/NextGen/NextGenDataTable.stories.js +2 -135
  214. package/lib/styles/sizes.js +11 -0
  215. package/lib/styles/theme.js +4 -12
  216. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +88 -0
  217. package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/icons.js +16 -0
  218. package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +16 -0
  219. package/lib/styles/themeOverrides/nextGenDarkMode/index.js +1 -0
  220. package/lib/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +22 -0
  221. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkDataTable.chomatic.stories.js +12 -0
  222. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js +12 -0
  223. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkNavStory.chomatic.stories.js +12 -0
  224. package/lib/styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkStickerSheet.chromatic.stories.js +12 -0
  225. package/lib/styles/themeOverrides/nextGenDarkMode/variants/avatar.js +43 -0
  226. package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +88 -0
  227. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +97 -0
  228. package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +15 -0
  229. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +60 -0
  230. package/lib/styles/themeOverrides/nextGenDarkMode/variants/iconBadge.js +67 -0
  231. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +26 -0
  232. package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +39 -0
  233. package/lib/styles/themeOverrides/nextGenDarkMode/variants/lsitview.js +24 -0
  234. package/lib/styles/themeOverrides/nextGenDarkMode/variants/menu.js +26 -0
  235. package/lib/styles/themeOverrides/nextGenDarkMode/variants/message.js +52 -0
  236. package/lib/styles/themeOverrides/nextGenDarkMode/variants/navbar.js +141 -0
  237. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +62 -0
  238. package/lib/styles/themes/astro/customProperties/icons.js +14 -0
  239. package/lib/styles/themes/astro/customProperties/index.js +6 -0
  240. package/lib/styles/themes/astro/customProperties/styles.js +3 -0
  241. package/lib/styles/themes/next-gen/colors/colors.js +22 -4
  242. package/lib/styles/themes/next-gen/colors/iconWrapper.js +23 -0
  243. package/lib/styles/themes/next-gen/convertedComponentList.js +12 -2
  244. package/lib/styles/themes/next-gen/customProperties/icons.js +14 -0
  245. package/lib/styles/themes/next-gen/customProperties/index.js +6 -0
  246. package/lib/styles/themes/next-gen/customProperties/styles.js +3 -0
  247. package/lib/styles/themes/next-gen/forms.js +3 -3
  248. package/lib/styles/themes/next-gen/next-gen.js +4 -5
  249. package/lib/styles/themes/next-gen/sizes.js +10 -1
  250. package/lib/styles/themes/next-gen/stories/DataTableNextGenComponent.js +141 -0
  251. package/lib/styles/themes/next-gen/stories/ListViewItemNextGen.js +75 -0
  252. package/lib/styles/themes/next-gen/stories/ListViewNextGenComponent.js +58 -0
  253. package/lib/styles/themes/next-gen/stories/NavBarNextGenComponent.js +182 -0
  254. package/lib/styles/themes/next-gen/stories/NextGenDataTable.chromatic.stories.js +12 -0
  255. package/lib/styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js +12 -0
  256. package/lib/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +26 -0
  257. package/lib/styles/themes/next-gen/stories/NextGenNavBar.chromatic.stories.js +12 -0
  258. package/lib/styles/themes/next-gen/stories/NextGenStickerSheet.chromatic.stories.js +12 -0
  259. package/lib/styles/themes/next-gen/stories/StickerSheetComponent.js +277 -0
  260. package/lib/styles/themes/next-gen/variants/avatar.js +43 -0
  261. package/lib/styles/themes/next-gen/variants/badges.js +94 -0
  262. package/lib/styles/themes/next-gen/variants/button.js +5 -4
  263. package/lib/styles/themes/next-gen/variants/cards.js +21 -2
  264. package/lib/styles/themes/next-gen/variants/iconWrapper.js +43 -0
  265. package/lib/styles/themes/next-gen/variants/input.js +9 -9
  266. package/lib/styles/themes/next-gen/variants/label.js +1 -1
  267. package/lib/styles/themes/next-gen/variants/links.js +7 -1
  268. package/lib/styles/themes/next-gen/variants/listview.js +68 -0
  269. package/lib/styles/themes/next-gen/variants/menu.js +28 -0
  270. package/lib/styles/themes/next-gen/variants/messages.js +40 -0
  271. package/lib/styles/themes/next-gen/variants/navbar.js +124 -0
  272. package/lib/styles/themes/next-gen/variants/navigationHeader.js +6 -4
  273. package/lib/styles/themes/next-gen/variants/tabs.js +28 -0
  274. package/lib/styles/themes/next-gen/variants/text.js +18 -7
  275. package/lib/styles/themes/next-gen/variants/variants.js +31 -331
  276. package/lib/types/iconWrapper.js +1 -0
  277. package/lib/utils/devUtils/constants/logos.js +74 -0
  278. package/lib/utils/devUtils/constants/tShirtSizes.js +5 -0
  279. package/lib/utils/devUtils/constants/themes.js +5 -0
  280. package/lib/utils/devUtils/shouldReturnComingSoon.js +27 -0
  281. package/lib/utils/docUtils/iconSizeProps.js +1 -1
  282. package/lib/utils/testUtils/testWrapper.js +10 -4
  283. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ export declare const menu: {
2
+ p: string;
3
+ border: string;
4
+ borderColor: string;
5
+ };
6
+ export declare const menuItem: {
7
+ item: {
8
+ bg: string;
9
+ padding: string;
10
+ outline: string;
11
+ color: string;
12
+ cursor: string;
13
+ '&.is-focused, &.is-selected, &.is-pressed': {
14
+ bg: string;
15
+ color: string;
16
+ '> *': {
17
+ color: string;
18
+ };
19
+ };
20
+ '&.is-pressed': {
21
+ color: string;
22
+ bg: string;
23
+ };
24
+ };
25
+ separator: {
26
+ my: string;
27
+ };
28
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.menuItem = exports.menu = void 0;
8
+ var menu = {
9
+ p: 'sm',
10
+ border: '1px solid',
11
+ borderColor: 'border.base'
12
+ };
13
+ exports.menu = menu;
14
+ var menuItem = {
15
+ item: {
16
+ bg: 'transparent',
17
+ padding: '10px 10px',
18
+ outline: 'none',
19
+ color: 'text.primary',
20
+ cursor: 'pointer',
21
+ '&.is-focused, &.is-selected, &.is-pressed': {
22
+ bg: 'gray-100',
23
+ color: 'text.primary',
24
+ '> *': {
25
+ color: 'text.primary'
26
+ }
27
+ },
28
+ '&.is-pressed': {
29
+ color: 'text.primary',
30
+ bg: 'lightblue'
31
+ }
32
+ },
33
+ separator: {
34
+ my: 'sm'
35
+ }
36
+ };
37
+ exports.menuItem = menuItem;
@@ -0,0 +1,40 @@
1
+ export declare const message: {
2
+ item: {
3
+ maxWidth: number;
4
+ pointerEvents: string;
5
+ mb: string;
6
+ p: string;
7
+ wordBreak: string;
8
+ alignItems: string;
9
+ backgroundColor: string;
10
+ borderLeftWidth: string;
11
+ borderLeftStyle: string;
12
+ borderLeftColor: string;
13
+ color: string;
14
+ fontSize: string;
15
+ borderRadius: number;
16
+ '&.is-success': {
17
+ bg: string;
18
+ borderLeftColor: string;
19
+ color: string;
20
+ };
21
+ '&.is-warning': {
22
+ bg: string;
23
+ borderLeftColor: string;
24
+ color: string;
25
+ };
26
+ '&.is-error, > .is-error': {
27
+ bg: string;
28
+ color: string;
29
+ };
30
+ '&.is-error, > button > svg': {
31
+ color: string;
32
+ path: {
33
+ fill: string;
34
+ };
35
+ };
36
+ '&.is-error': {
37
+ borderLeftColor: string;
38
+ };
39
+ };
40
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.message = void 0;
8
+ var message = {
9
+ item: {
10
+ maxWidth: 400,
11
+ pointerEvents: 'all',
12
+ mb: 'md',
13
+ p: '1.25rem',
14
+ wordBreak: 'break-word',
15
+ alignItems: 'center',
16
+ backgroundColor: 'blue-100',
17
+ borderLeftWidth: '5px',
18
+ borderLeftStyle: 'solid',
19
+ borderLeftColor: 'teal-500',
20
+ color: 'text.message',
21
+ fontSize: '15px !important',
22
+ borderRadius: 4,
23
+ '&.is-success': {
24
+ bg: 'green-100',
25
+ borderLeftColor: 'green-500',
26
+ color: 'text.message'
27
+ },
28
+ '&.is-warning': {
29
+ bg: 'warning.light',
30
+ borderLeftColor: 'yellow-500',
31
+ color: 'text.message'
32
+ },
33
+ '&.is-error, > .is-error': {
34
+ bg: 'red-100',
35
+ color: 'text.message'
36
+ },
37
+ '&.is-error, > button > svg': {
38
+ color: 'text.message !important',
39
+ path: {
40
+ fill: 'text.message'
41
+ }
42
+ },
43
+ '&.is-error': {
44
+ borderLeftColor: 'red-500'
45
+ }
46
+ }
47
+ };
48
+ exports.message = message;
@@ -0,0 +1,126 @@
1
+ export declare const navBarSelected: {
2
+ backgroundColor: string;
3
+ boxShadow: string;
4
+ };
5
+ export declare const navBarFocus: {
6
+ outline: string;
7
+ outlineColor: string;
8
+ outlineOffset: string;
9
+ };
10
+ export declare const navBar: {
11
+ container: {
12
+ width: string;
13
+ p: string;
14
+ backgroundColor: string;
15
+ boxShadow: string;
16
+ };
17
+ sectionButton: {
18
+ borderRadius: string;
19
+ '&.is-hovered': {
20
+ backgroundColor: string;
21
+ };
22
+ '&.is-pressed': {
23
+ backgroundColor: string;
24
+ };
25
+ '&.is-focused': {
26
+ outline: string;
27
+ outlineColor: string;
28
+ outlineOffset: string;
29
+ };
30
+ };
31
+ itemButton: {
32
+ py: string;
33
+ paddingLeft: string;
34
+ color: string;
35
+ borderRadius: string;
36
+ '&.is-focused': {
37
+ outline: string;
38
+ outlineColor: string;
39
+ outlineOffset: string;
40
+ };
41
+ '&.is-hovered': {
42
+ backgroundColor: string;
43
+ };
44
+ '&.is-pressed': {
45
+ backgroundColor: string;
46
+ color: string;
47
+ };
48
+ '&.is-selected': {
49
+ bg: string;
50
+ boxShadow: string;
51
+ color: string;
52
+ };
53
+ };
54
+ subtitle: {
55
+ color: string;
56
+ };
57
+ headerText: {
58
+ color: string;
59
+ ml: string;
60
+ '.is-selected &': {
61
+ color: string;
62
+ };
63
+ };
64
+ headerNav: {
65
+ borderRadius: string;
66
+ color: string;
67
+ '&.is-hovered': {
68
+ backgroundColor: string;
69
+ };
70
+ '&.is-focused': {
71
+ boxShadow: string;
72
+ WebkitBoxShadow: string;
73
+ MozBoxShadow: string;
74
+ };
75
+ };
76
+ item: {
77
+ px: string;
78
+ py: string;
79
+ color: string;
80
+ borderRadius: string;
81
+ '&.is-hovered': {
82
+ backgroundColor: string;
83
+ };
84
+ '> div > svg': {
85
+ fill: string;
86
+ };
87
+ '&.is-pressed': {
88
+ backgroundColor: string;
89
+ };
90
+ '&.is-selected': {
91
+ '> div > svg': {
92
+ fill: string;
93
+ };
94
+ backgroundColor: string;
95
+ boxShadow: string;
96
+ };
97
+ '&.is-focused': {
98
+ outline: string;
99
+ outlineColor: string;
100
+ outlineOffset: string;
101
+ boxShadow: string;
102
+ WebkitBoxShadow: string;
103
+ MozBoxShadow: string;
104
+ };
105
+ };
106
+ itemHeaderContainer: {
107
+ boxShadow: string;
108
+ maxWidth: string;
109
+ px: string;
110
+ py: string;
111
+ '&.is-selected': {
112
+ backgroundColor: string;
113
+ boxShadow: string;
114
+ };
115
+ backgroundColor: string;
116
+ '> svg': {
117
+ fill: string;
118
+ };
119
+ '> div > svg': {
120
+ fill: string;
121
+ };
122
+ };
123
+ navBarItemBody: {
124
+ mb: string;
125
+ };
126
+ };
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
5
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
7
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
8
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
9
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
10
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
11
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
12
+ _Object$defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ exports.navBarSelected = exports.navBarFocus = exports.navBar = void 0;
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
19
+ var navBarSelected = {
20
+ backgroundColor: 'lightblue',
21
+ boxShadow: 'none'
22
+ };
23
+ exports.navBarSelected = navBarSelected;
24
+ var navBarFocus = {
25
+ outline: '2px solid',
26
+ outlineColor: 'active',
27
+ outlineOffset: '-2px'
28
+ };
29
+ exports.navBarFocus = navBarFocus;
30
+ var navBar = {
31
+ container: {
32
+ width: '252px',
33
+ p: 'sm',
34
+ backgroundColor: 'background.base',
35
+ boxShadow: '0 .5rem 1rem rgba(0, 0, 0, .15)'
36
+ },
37
+ sectionButton: {
38
+ borderRadius: '4px',
39
+ '&.is-hovered': {
40
+ backgroundColor: 'light'
41
+ },
42
+ '&.is-pressed': {
43
+ backgroundColor: 'gray-200'
44
+ },
45
+ '&.is-focused': _objectSpread({}, navBarFocus)
46
+ },
47
+ itemButton: {
48
+ py: '.75rem',
49
+ paddingLeft: '53px',
50
+ color: 'text.primary',
51
+ borderRadius: '4px',
52
+ '&.is-focused': _objectSpread({}, navBarFocus),
53
+ '&.is-hovered': {
54
+ backgroundColor: 'light'
55
+ },
56
+ '&.is-pressed': {
57
+ backgroundColor: 'gray-200',
58
+ color: 'text.primary'
59
+ },
60
+ '&.is-selected': {
61
+ bg: 'lightblue',
62
+ boxShadow: 'none',
63
+ color: 'darkblue'
64
+ }
65
+ },
66
+ subtitle: {
67
+ color: 'text.primary'
68
+ },
69
+ headerText: {
70
+ color: 'text.primary',
71
+ ml: 'sm',
72
+ '.is-selected &': {
73
+ color: 'darkblue'
74
+ }
75
+ },
76
+ headerNav: {
77
+ borderRadius: '4px',
78
+ color: 'text.primary',
79
+ '&.is-hovered': {
80
+ backgroundColor: 'light'
81
+ },
82
+ '&.is-focused': {
83
+ boxShadow: 'none',
84
+ WebkitBoxShadow: 'none',
85
+ MozBoxShadow: 'none'
86
+ }
87
+ },
88
+ item: {
89
+ px: '1rem',
90
+ py: '.75rem',
91
+ color: 'text.primary',
92
+ borderRadius: '4px',
93
+ '&.is-hovered': {
94
+ backgroundColor: 'light'
95
+ },
96
+ '> div > svg': {
97
+ fill: 'text.primary'
98
+ },
99
+ '&.is-pressed': {
100
+ backgroundColor: 'gray-200'
101
+ },
102
+ '&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
103
+ '> div > svg': {
104
+ fill: 'darkblue'
105
+ }
106
+ }),
107
+ '&.is-focused': {
108
+ outline: '2px solid',
109
+ outlineColor: 'active',
110
+ outlineOffset: '-2px',
111
+ boxShadow: 'none',
112
+ WebkitBoxShadow: 'none',
113
+ MozBoxShadow: 'none'
114
+ }
115
+ },
116
+ itemHeaderContainer: {
117
+ boxShadow: 'none',
118
+ maxWidth: '236px',
119
+ px: '1rem',
120
+ py: '.75rem',
121
+ '&.is-selected': _objectSpread({}, navBarSelected),
122
+ backgroundColor: 'transparent',
123
+ '> svg': {
124
+ fill: 'text.primary'
125
+ },
126
+ '> div > svg': {
127
+ fill: 'text.primary'
128
+ }
129
+ },
130
+ navBarItemBody: {
131
+ mb: '0px !important'
132
+ }
133
+ };
134
+ exports.navBar = navBar;
@@ -64,7 +64,7 @@ declare const navigationHeader: {
64
64
  fontFamily: string;
65
65
  borderBottom: string;
66
66
  borderColor: string;
67
- bg: string;
67
+ backgroundColor: string;
68
68
  height: string;
69
69
  justifyContent: string;
70
70
  };
@@ -73,8 +73,10 @@ declare const navigationHeader: {
73
73
  maxWidth: string;
74
74
  mx: string;
75
75
  width: string;
76
+ backgroundColor: string;
76
77
  };
77
78
  dropdownMenu: {
79
+ backgroundColor: string;
78
80
  maxWidth: string;
79
81
  p: string;
80
82
  '& > li': {
@@ -49,7 +49,7 @@ var logoBand = _objectSpread(_objectSpread({}, link), {}, {
49
49
  var headerPlaceholder = {
50
50
  fontSize: 'lg',
51
51
  ml: 'md',
52
- color: 'text.primary',
52
+ color: 'text.secondary',
53
53
  lineHeight: 'body',
54
54
  fontWeight: '1',
55
55
  '&.is-hovered': {
@@ -63,8 +63,8 @@ var navigationHeader = {
63
63
  container: {
64
64
  fontFamily: 'standard',
65
65
  borderBottom: '1px solid',
66
- borderColor: 'gray-300',
67
- bg: '#fff',
66
+ borderColor: 'border.base',
67
+ backgroundColor: 'background.base',
68
68
  height: '4.5rem',
69
69
  justifyContent: 'center'
70
70
  },
@@ -72,9 +72,11 @@ var navigationHeader = {
72
72
  px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
73
73
  maxWidth: '1540px',
74
74
  mx: 'auto',
75
- width: '100%'
75
+ width: '100%',
76
+ backgroundColor: 'background.base'
76
77
  },
77
78
  dropdownMenu: {
79
+ backgroundColor: 'background.base',
78
80
  maxWidth: 'unset',
79
81
  p: 'sm',
80
82
  '& > li': {
@@ -0,0 +1,28 @@
1
+ export declare const tabs: {
2
+ gap: string;
3
+ };
4
+ export declare const menuTab: {
5
+ ml: string;
6
+ };
7
+ export declare const tab: {
8
+ borderRadius: string;
9
+ pt: string;
10
+ '& > span': {
11
+ px: string;
12
+ fontSize: string;
13
+ };
14
+ '&.is-focused': {
15
+ boxShadow: string;
16
+ outline: string;
17
+ outlineColor: string;
18
+ outlineOffset: string;
19
+ '& > span': {
20
+ outline: string;
21
+ };
22
+ };
23
+ '& > div': {
24
+ borderBottom: string;
25
+ borderBottomColor: string;
26
+ ml: string;
27
+ };
28
+ };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.tabs = exports.tab = exports.menuTab = void 0;
8
+ var tabs = {
9
+ gap: '0px'
10
+ };
11
+ exports.tabs = tabs;
12
+ var menuTab = {
13
+ ml: '0px !important'
14
+ };
15
+ exports.menuTab = menuTab;
16
+ var tab = {
17
+ borderRadius: '2px',
18
+ pt: '.5rem',
19
+ '& > span': {
20
+ px: '1rem',
21
+ fontSize: '.9375rem'
22
+ },
23
+ '&.is-focused': {
24
+ boxShadow: 'none',
25
+ outline: '3px solid',
26
+ outlineColor: 'active',
27
+ outlineOffset: '1px',
28
+ '& > span': {
29
+ outline: 'none'
30
+ }
31
+ },
32
+ '& > div': {
33
+ borderBottom: '3px solid',
34
+ borderBottomColor: 'primary',
35
+ ml: '0px'
36
+ }
37
+ };
38
+ exports.tab = tab;
@@ -36,9 +36,19 @@ export declare const text: {
36
36
  fontWeight: number;
37
37
  fontSize: string;
38
38
  };
39
+ sideNavHeader: {
40
+ py: string;
41
+ lineHeight: string;
42
+ textDecoration: string;
43
+ color: string;
44
+ px: string;
45
+ fontWeight: string;
46
+ letterSpacing: string;
47
+ };
39
48
  modalTitle: {
40
49
  fontSize: string;
41
50
  fontWeight: string;
51
+ color: string;
42
52
  fontFamily: string;
43
53
  };
44
54
  tabLabel: {
@@ -52,6 +62,7 @@ export declare const text: {
52
62
  lineHeight: string;
53
63
  };
54
64
  listViewItemText: {
65
+ color: string;
55
66
  fontWeight: number;
56
67
  };
57
68
  small: {
@@ -20,45 +20,55 @@ var hTags = {
20
20
  h1: {
21
21
  fontSize: 'xxx',
22
22
  fontWeight: 2,
23
- color: 'text.primary',
23
+ color: 'text.secondary',
24
24
  fontFamily: 'standard'
25
25
  },
26
26
  h2: {
27
27
  fontSize: 'xx',
28
28
  fontWeight: 2,
29
- color: 'text.primary',
29
+ color: 'text.secondary',
30
30
  fontFamily: 'standard'
31
31
  },
32
32
  h3: {
33
33
  fontSize: 'xl',
34
34
  fontWeight: 2,
35
- color: 'text.primary',
35
+ color: 'text.secondary',
36
36
  fontFamily: 'standard'
37
37
  },
38
38
  h4: {
39
39
  fontSize: 'lg',
40
40
  fontWeight: 2,
41
- color: 'text.primary',
41
+ color: 'text.secondary',
42
42
  fontFamily: 'standard'
43
43
  },
44
44
  h5: {
45
45
  fontSize: 'md',
46
46
  fontWeight: 2,
47
- color: 'text.primary',
47
+ color: 'text.secondary',
48
48
  fontFamily: 'standard'
49
49
  },
50
50
  h6: {
51
51
  textTransform: 'uppercase',
52
- color: 'text.primary',
52
+ color: 'text.secondary',
53
53
  fontFamily: 'standard',
54
54
  fontWeight: 1,
55
55
  fontSize: 'xs'
56
56
  }
57
57
  };
58
58
  var text = _objectSpread({
59
+ sideNavHeader: {
60
+ py: 'sm',
61
+ lineHeight: 'body',
62
+ textDecoration: 'none',
63
+ color: 'text.secondary',
64
+ px: '0',
65
+ fontWeight: '1',
66
+ letterSpacing: '1px'
67
+ },
59
68
  modalTitle: {
60
69
  fontSize: '20px',
61
70
  fontWeight: '2',
71
+ color: 'text.secondary',
62
72
  fontFamily: 'standard'
63
73
  },
64
74
  tabLabel: {
@@ -72,11 +82,12 @@ var text = _objectSpread({
72
82
  lineHeight: 'body'
73
83
  },
74
84
  listViewItemText: {
85
+ color: 'text.secondary',
75
86
  fontWeight: 2
76
87
  },
77
88
  small: {
78
89
  fontSize: 'sm',
79
- color: 'gray-500',
90
+ color: 'text.primary',
80
91
  fontFamily: 'standard',
81
92
  lineHeight: 'md'
82
93
  }