@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,68 @@
1
+ export var listViewItem = {
2
+ rightOfData: {
3
+ flexShrink: 4,
4
+ whiteSpace: 'nowrap'
5
+ },
6
+ iconContainer: {
7
+ ml: '0px'
8
+ },
9
+ styledListItem: {
10
+ bg: 'white',
11
+ '&.is-selected': {
12
+ bg: 'gray-100'
13
+ },
14
+ borderBottom: 'none',
15
+ '&.has-separator': {
16
+ borderBottom: '1px solid',
17
+ borderBottomColor: 'gray-200'
18
+ },
19
+ '&.is-hovered': {
20
+ bg: 'gray-100'
21
+ },
22
+ '&.is-focused': {
23
+ boxShadow: '0 0 0 3px inset #1a73e8',
24
+ bg: 'gray-100'
25
+ }
26
+ },
27
+ styledContainer: {
28
+ py: 'md',
29
+ px: 'lg',
30
+ bg: 'transparent',
31
+ '&.is-hovered': {
32
+ bg: 'transparent',
33
+ cursor: 'pointer'
34
+ }
35
+ },
36
+ expandableStyledListItem: {
37
+ pr: '1.25rem',
38
+ pl: 0
39
+ },
40
+ expandableItemBody: {
41
+ px: '1.5rem'
42
+ },
43
+ expandableRow: {
44
+ '&.has-separator': {
45
+ borderBottom: '1px solid',
46
+ borderBottomColor: 'border.base'
47
+ }
48
+ }
49
+ };
50
+ export var listView = {
51
+ container: {
52
+ borderRadius: '16px',
53
+ border: '1px solid',
54
+ borderColor: '#e7eef4',
55
+ '& > div > div': {
56
+ '& > div:first-of-type': {
57
+ '& > div > div': {
58
+ borderRadius: '16px 16px 0 0'
59
+ }
60
+ },
61
+ '& > div:last-of-type': {
62
+ '& > div > div': {
63
+ borderRadius: ' 0 0 16px 16px'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ };
@@ -0,0 +1,28 @@
1
+ export var menu = {
2
+ p: 'sm',
3
+ border: '1px solid',
4
+ borderColor: 'border.base'
5
+ };
6
+ export var menuItem = {
7
+ item: {
8
+ bg: 'transparent',
9
+ padding: '10px 10px',
10
+ outline: 'none',
11
+ color: 'text.primary',
12
+ cursor: 'pointer',
13
+ '&.is-focused, &.is-selected, &.is-pressed': {
14
+ bg: 'gray-100',
15
+ color: 'text.primary',
16
+ '> *': {
17
+ color: 'text.primary'
18
+ }
19
+ },
20
+ '&.is-pressed': {
21
+ color: 'text.primary',
22
+ bg: 'lightblue'
23
+ }
24
+ },
25
+ separator: {
26
+ my: 'sm'
27
+ }
28
+ };
@@ -0,0 +1,40 @@
1
+ export var message = {
2
+ item: {
3
+ maxWidth: 400,
4
+ pointerEvents: 'all',
5
+ mb: 'md',
6
+ p: '1.25rem',
7
+ wordBreak: 'break-word',
8
+ alignItems: 'center',
9
+ backgroundColor: 'blue-100',
10
+ borderLeftWidth: '5px',
11
+ borderLeftStyle: 'solid',
12
+ borderLeftColor: 'teal-500',
13
+ color: 'text.message',
14
+ fontSize: '15px !important',
15
+ borderRadius: 4,
16
+ '&.is-success': {
17
+ bg: 'green-100',
18
+ borderLeftColor: 'green-500',
19
+ color: 'text.message'
20
+ },
21
+ '&.is-warning': {
22
+ bg: 'warning.light',
23
+ borderLeftColor: 'yellow-500',
24
+ color: 'text.message'
25
+ },
26
+ '&.is-error, > .is-error': {
27
+ bg: 'red-100',
28
+ color: 'text.message'
29
+ },
30
+ '&.is-error, > button > svg': {
31
+ color: 'text.message !important',
32
+ path: {
33
+ fill: 'text.message'
34
+ }
35
+ },
36
+ '&.is-error': {
37
+ borderLeftColor: 'red-500'
38
+ }
39
+ }
40
+ };
@@ -0,0 +1,124 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ 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; }
11
+ 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) { _defineProperty(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; }
12
+ export var navBarSelected = {
13
+ backgroundColor: 'lightblue',
14
+ boxShadow: 'none'
15
+ };
16
+ export var navBarFocus = {
17
+ outline: '2px solid',
18
+ outlineColor: 'active',
19
+ outlineOffset: '-2px'
20
+ };
21
+ export var navBar = {
22
+ container: {
23
+ width: '252px',
24
+ p: 'sm',
25
+ backgroundColor: 'background.base',
26
+ boxShadow: '0 .5rem 1rem rgba(0, 0, 0, .15)'
27
+ },
28
+ sectionButton: {
29
+ borderRadius: '4px',
30
+ '&.is-hovered': {
31
+ backgroundColor: 'light'
32
+ },
33
+ '&.is-pressed': {
34
+ backgroundColor: 'gray-200'
35
+ },
36
+ '&.is-focused': _objectSpread({}, navBarFocus)
37
+ },
38
+ itemButton: {
39
+ py: '.75rem',
40
+ paddingLeft: '53px',
41
+ color: 'text.primary',
42
+ borderRadius: '4px',
43
+ '&.is-focused': _objectSpread({}, navBarFocus),
44
+ '&.is-hovered': {
45
+ backgroundColor: 'light'
46
+ },
47
+ '&.is-pressed': {
48
+ backgroundColor: 'gray-200',
49
+ color: 'text.primary'
50
+ },
51
+ '&.is-selected': {
52
+ bg: 'lightblue',
53
+ boxShadow: 'none',
54
+ color: 'darkblue'
55
+ }
56
+ },
57
+ subtitle: {
58
+ color: 'text.primary'
59
+ },
60
+ headerText: {
61
+ color: 'text.primary',
62
+ ml: 'sm',
63
+ '.is-selected &': {
64
+ color: 'darkblue'
65
+ }
66
+ },
67
+ headerNav: {
68
+ borderRadius: '4px',
69
+ color: 'text.primary',
70
+ '&.is-hovered': {
71
+ backgroundColor: 'light'
72
+ },
73
+ '&.is-focused': {
74
+ boxShadow: 'none',
75
+ WebkitBoxShadow: 'none',
76
+ MozBoxShadow: 'none'
77
+ }
78
+ },
79
+ item: {
80
+ px: '1rem',
81
+ py: '.75rem',
82
+ color: 'text.primary',
83
+ borderRadius: '4px',
84
+ '&.is-hovered': {
85
+ backgroundColor: 'light'
86
+ },
87
+ '> div > svg': {
88
+ fill: 'text.primary'
89
+ },
90
+ '&.is-pressed': {
91
+ backgroundColor: 'gray-200'
92
+ },
93
+ '&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
94
+ '> div > svg': {
95
+ fill: 'darkblue'
96
+ }
97
+ }),
98
+ '&.is-focused': {
99
+ outline: '2px solid',
100
+ outlineColor: 'active',
101
+ outlineOffset: '-2px',
102
+ boxShadow: 'none',
103
+ WebkitBoxShadow: 'none',
104
+ MozBoxShadow: 'none'
105
+ }
106
+ },
107
+ itemHeaderContainer: {
108
+ boxShadow: 'none',
109
+ maxWidth: '236px',
110
+ px: '1rem',
111
+ py: '.75rem',
112
+ '&.is-selected': _objectSpread({}, navBarSelected),
113
+ backgroundColor: 'transparent',
114
+ '> svg': {
115
+ fill: 'text.primary'
116
+ },
117
+ '> div > svg': {
118
+ fill: 'text.primary'
119
+ }
120
+ },
121
+ navBarItemBody: {
122
+ mb: '0px !important'
123
+ }
124
+ };
@@ -42,7 +42,7 @@ var logoBand = _objectSpread(_objectSpread({}, link), {}, {
42
42
  var headerPlaceholder = {
43
43
  fontSize: 'lg',
44
44
  ml: 'md',
45
- color: 'text.primary',
45
+ color: 'text.secondary',
46
46
  lineHeight: 'body',
47
47
  fontWeight: '1',
48
48
  '&.is-hovered': {
@@ -56,8 +56,8 @@ var navigationHeader = {
56
56
  container: {
57
57
  fontFamily: 'standard',
58
58
  borderBottom: '1px solid',
59
- borderColor: 'gray-300',
60
- bg: '#fff',
59
+ borderColor: 'border.base',
60
+ backgroundColor: 'background.base',
61
61
  height: '4.5rem',
62
62
  justifyContent: 'center'
63
63
  },
@@ -65,9 +65,11 @@ var navigationHeader = {
65
65
  px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
66
66
  maxWidth: '1540px',
67
67
  mx: 'auto',
68
- width: '100%'
68
+ width: '100%',
69
+ backgroundColor: 'background.base'
69
70
  },
70
71
  dropdownMenu: {
72
+ backgroundColor: 'background.base',
71
73
  maxWidth: 'unset',
72
74
  p: 'sm',
73
75
  '& > li': {
@@ -0,0 +1,28 @@
1
+ export var tabs = {
2
+ gap: '0px'
3
+ };
4
+ export var menuTab = {
5
+ ml: '0px !important'
6
+ };
7
+ export var tab = {
8
+ borderRadius: '2px',
9
+ pt: '.5rem',
10
+ '& > span': {
11
+ px: '1rem',
12
+ fontSize: '.9375rem'
13
+ },
14
+ '&.is-focused': {
15
+ boxShadow: 'none',
16
+ outline: '3px solid',
17
+ outlineColor: 'active',
18
+ outlineOffset: '1px',
19
+ '& > span': {
20
+ outline: 'none'
21
+ }
22
+ },
23
+ '& > div': {
24
+ borderBottom: '3px solid',
25
+ borderBottomColor: 'primary',
26
+ ml: '0px'
27
+ }
28
+ };
@@ -13,45 +13,55 @@ var hTags = {
13
13
  h1: {
14
14
  fontSize: 'xxx',
15
15
  fontWeight: 2,
16
- color: 'text.primary',
16
+ color: 'text.secondary',
17
17
  fontFamily: 'standard'
18
18
  },
19
19
  h2: {
20
20
  fontSize: 'xx',
21
21
  fontWeight: 2,
22
- color: 'text.primary',
22
+ color: 'text.secondary',
23
23
  fontFamily: 'standard'
24
24
  },
25
25
  h3: {
26
26
  fontSize: 'xl',
27
27
  fontWeight: 2,
28
- color: 'text.primary',
28
+ color: 'text.secondary',
29
29
  fontFamily: 'standard'
30
30
  },
31
31
  h4: {
32
32
  fontSize: 'lg',
33
33
  fontWeight: 2,
34
- color: 'text.primary',
34
+ color: 'text.secondary',
35
35
  fontFamily: 'standard'
36
36
  },
37
37
  h5: {
38
38
  fontSize: 'md',
39
39
  fontWeight: 2,
40
- color: 'text.primary',
40
+ color: 'text.secondary',
41
41
  fontFamily: 'standard'
42
42
  },
43
43
  h6: {
44
44
  textTransform: 'uppercase',
45
- color: 'text.primary',
45
+ color: 'text.secondary',
46
46
  fontFamily: 'standard',
47
47
  fontWeight: 1,
48
48
  fontSize: 'xs'
49
49
  }
50
50
  };
51
51
  export var text = _objectSpread({
52
+ sideNavHeader: {
53
+ py: 'sm',
54
+ lineHeight: 'body',
55
+ textDecoration: 'none',
56
+ color: 'text.secondary',
57
+ px: '0',
58
+ fontWeight: '1',
59
+ letterSpacing: '1px'
60
+ },
52
61
  modalTitle: {
53
62
  fontSize: '20px',
54
63
  fontWeight: '2',
64
+ color: 'text.secondary',
55
65
  fontFamily: 'standard'
56
66
  },
57
67
  tabLabel: {
@@ -65,11 +75,12 @@ export var text = _objectSpread({
65
75
  lineHeight: 'body'
66
76
  },
67
77
  listViewItemText: {
78
+ color: 'text.secondary',
68
79
  fontWeight: 2
69
80
  },
70
81
  small: {
71
82
  fontSize: 'sm',
72
- color: 'gray-500',
83
+ color: 'text.primary',
73
84
  fontFamily: 'standard',
74
85
  lineHeight: 'md'
75
86
  }