@pingux/astro 2.91.0 → 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
@@ -215,6 +215,7 @@ declare const _default: {
215
215
  boxShadow: string;
216
216
  };
217
217
  sectionButton: {
218
+ borderRadius: string;
218
219
  '&.is-hovered': {
219
220
  backgroundColor: string;
220
221
  };
@@ -228,7 +229,10 @@ declare const _default: {
228
229
  };
229
230
  };
230
231
  itemButton: {
232
+ py: string;
233
+ paddingLeft: string;
231
234
  color: string;
235
+ borderRadius: string;
232
236
  '&.is-focused': {
233
237
  outline: string;
234
238
  outlineColor: string;
@@ -243,6 +247,7 @@ declare const _default: {
243
247
  };
244
248
  '&.is-selected': {
245
249
  bg: string;
250
+ boxShadow: string;
246
251
  color: string;
247
252
  };
248
253
  };
@@ -251,11 +256,13 @@ declare const _default: {
251
256
  };
252
257
  headerText: {
253
258
  color: string;
259
+ ml: string;
254
260
  '.is-selected &': {
255
261
  color: string;
256
262
  };
257
263
  };
258
264
  headerNav: {
265
+ borderRadius: string;
259
266
  color: string;
260
267
  '&.is-hovered': {
261
268
  backgroundColor: string;
@@ -270,17 +277,22 @@ declare const _default: {
270
277
  px: string;
271
278
  py: string;
272
279
  color: string;
280
+ borderRadius: string;
273
281
  '&.is-hovered': {
274
282
  backgroundColor: string;
275
283
  };
276
284
  '> div > svg': {
277
285
  fill: string;
278
286
  };
287
+ '&.is-pressed': {
288
+ backgroundColor: string;
289
+ };
279
290
  '&.is-selected': {
280
291
  '> div > svg': {
281
292
  fill: string;
282
293
  };
283
294
  backgroundColor: string;
295
+ boxShadow: string;
284
296
  };
285
297
  '&.is-focused': {
286
298
  outline: string;
@@ -292,10 +304,13 @@ declare const _default: {
292
304
  };
293
305
  };
294
306
  itemHeaderContainer: {
307
+ boxShadow: string;
308
+ maxWidth: string;
295
309
  px: string;
296
310
  py: string;
297
311
  '&.is-selected': {
298
312
  backgroundColor: string;
313
+ boxShadow: string;
299
314
  };
300
315
  backgroundColor: string;
301
316
  '> svg': {
@@ -305,13 +320,18 @@ declare const _default: {
305
320
  fill: string;
306
321
  };
307
322
  };
323
+ navBarItemBody: {
324
+ mb: string;
325
+ };
308
326
  };
309
327
  fieldHelperText: {
310
328
  title: {
311
- color: string;
312
329
  fontSize: string;
313
330
  pt: string;
314
331
  mt: string;
332
+ '&.is-default': {
333
+ color: string;
334
+ };
315
335
  '&.is-error': {
316
336
  color: string;
317
337
  };
@@ -466,6 +486,15 @@ declare const _default: {
466
486
  m: string;
467
487
  };
468
488
  };
489
+ navBarSeparator: {
490
+ my: string;
491
+ mx: string;
492
+ maxWidth: string;
493
+ backgroundColor: string;
494
+ };
495
+ navBarSubtitleSeparator: {
496
+ backgroundColor: string;
497
+ };
469
498
  };
470
499
  menuItem: {
471
500
  item: {
@@ -558,9 +587,6 @@ declare const _default: {
558
587
  boxShadow: string;
559
588
  bg: string;
560
589
  };
561
- '&.is-pressed': {
562
- bg: string;
563
- };
564
590
  };
565
591
  styledContainer: {
566
592
  py: string;
@@ -764,10 +790,48 @@ declare const _default: {
764
790
  p: string;
765
791
  border: string;
766
792
  borderColor: string;
767
- item: {
768
- '&.is-pressed': {
769
- bg: string;
793
+ };
794
+ iconWrapper: {
795
+ sm: {
796
+ '&.is-circle': {
797
+ borderRadius: string;
798
+ };
799
+ borderRadius: string;
800
+ minHeight: string;
801
+ minWidth: string;
802
+ height: string;
803
+ width: string;
804
+ p: string;
805
+ };
806
+ md: {
807
+ '&.is-circle': {
808
+ borderRadius: string;
809
+ };
810
+ borderRadius: string;
811
+ minHeight: string;
812
+ minWidth: string;
813
+ height: string;
814
+ width: string;
815
+ p: string;
816
+ };
817
+ lg: {
818
+ '&.is-circle': {
819
+ borderRadius: string;
770
820
  };
821
+ borderRadius: string;
822
+ minHeight: string;
823
+ minWidth: string;
824
+ height: string;
825
+ width: string;
826
+ p: string;
827
+ };
828
+ };
829
+ overlayPanel: {
830
+ container: {
831
+ backgroundColor: string;
832
+ };
833
+ innerPanel: {
834
+ backgroundColor: string;
771
835
  };
772
836
  };
773
837
  };
@@ -15,15 +15,24 @@ _Object$defineProperty(exports, "__esModule", {
15
15
  exports["default"] = exports.badges = exports.badgeDeleteButton = void 0;
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
17
  var _codeView = _interopRequireDefault(require("../codeView/codeView"));
18
+ var _avatar = require("./avatar");
18
19
  var _button = _interopRequireDefault(require("./button"));
20
+ var _iconWrapper = _interopRequireDefault(require("./iconWrapper"));
21
+ var _listview = require("./listview");
22
+ var _menu = require("./menu");
23
+ var _messages = require("./messages");
24
+ var _navbar = require("./navbar");
25
+ var _tabs = require("./tabs");
19
26
  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; }
20
27
  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; }
21
28
  var fieldHelperText = {
22
29
  title: {
23
- color: 'text.secondary',
24
30
  fontSize: 'sm',
25
31
  pt: '0px !important',
26
32
  mt: '.25rem',
33
+ '&.is-default': {
34
+ color: 'text.fieldHelper'
35
+ },
27
36
  '&.is-error': {
28
37
  color: 'critical.dark'
29
38
  },
@@ -35,46 +44,6 @@ var fieldHelperText = {
35
44
  }
36
45
  }
37
46
  };
38
- var message = {
39
- item: {
40
- maxWidth: 400,
41
- pointerEvents: 'all',
42
- mb: 'md',
43
- p: '1.25rem',
44
- wordBreak: 'break-word',
45
- alignItems: 'center',
46
- backgroundColor: 'blue-100',
47
- borderLeftWidth: '5px',
48
- borderLeftStyle: 'solid',
49
- borderLeftColor: 'teal-500',
50
- color: 'gray-700',
51
- fontSize: '15px !important',
52
- borderRadius: 4,
53
- '&.is-success': {
54
- bg: 'green-100',
55
- borderLeftColor: 'green-500',
56
- color: 'gray-700'
57
- },
58
- '&.is-warning': {
59
- bg: 'warning.light',
60
- borderLeftColor: 'yellow-500',
61
- color: 'gray-700'
62
- },
63
- '&.is-error, > .is-error': {
64
- bg: 'red-100',
65
- color: 'gray-700'
66
- },
67
- '&.is-error, > button > svg': {
68
- color: 'gray-700 !important',
69
- path: {
70
- fill: 'gray-700'
71
- }
72
- },
73
- '&.is-error': {
74
- borderLeftColor: 'red-500'
75
- }
76
- }
77
- };
78
47
  var badgeFont = {
79
48
  fontSize: '11.25px',
80
49
  fontWeight: 2
@@ -210,31 +179,6 @@ var modal = {
210
179
  justifyContent: 'start'
211
180
  }
212
181
  };
213
- var tab = {
214
- borderRadius: '2px',
215
- pt: '.5rem',
216
- '& > span': {
217
- px: '1rem',
218
- fontSize: '.9375rem'
219
- },
220
- '&.is-focused': {
221
- boxShadow: 'none',
222
- outline: '3px solid',
223
- outlineColor: 'active',
224
- outlineOffset: '1px',
225
- '& > span': {
226
- outline: 'none'
227
- }
228
- },
229
- '& > div': {
230
- borderBottom: '3px solid',
231
- borderBottomColor: 'primary',
232
- ml: '0px'
233
- }
234
- };
235
- var menuTab = {
236
- ml: '0px !important'
237
- };
238
182
  var listBox = {
239
183
  container: {
240
184
  px: 'sm',
@@ -262,79 +206,22 @@ var listBox = {
262
206
  }
263
207
  }
264
208
  };
265
- var menuItem = {
266
- item: {
267
- bg: 'transparent',
268
- padding: '10px 10px',
269
- outline: 'none',
270
- color: 'text.primary',
271
- cursor: 'pointer',
272
- '&.is-focused, &.is-selected, &.is-pressed': {
273
- bg: 'gray-100',
274
- color: 'text.primary',
275
- '> *': {
276
- color: 'text.primary'
277
- }
278
- },
279
- '&.is-pressed': {
280
- color: 'text.primary',
281
- bg: 'lightblue'
282
- }
283
- },
284
- separator: {
285
- my: 'sm'
286
- }
287
- };
288
209
  var separator = {
289
210
  base: {
290
- bg: 'gray-300',
211
+ bg: 'border.base',
291
212
  '&.is-vertical': {
292
213
  m: '0'
293
214
  }
294
- }
295
- };
296
- var avatar = {
297
- backgroundColor: 'lightcyan',
298
- color: 'darkcyan',
299
- cursor: 'pointer',
300
- '&.is-orange': {
301
- backgroundColor: 'lightorange',
302
- color: 'darkorange'
303
- },
304
- '&.is-green': {
305
- backgroundColor: 'lightgreen',
306
- color: 'darkgreen'
307
- },
308
- '&.is-purple': {
309
- backgroundColor: 'lightpurple',
310
- color: 'darkpurple'
311
- },
312
- '&.is-pink': {
313
- backgroundColor: 'lightpink',
314
- color: 'darkpink'
315
215
  },
316
- '&.is-red': {
317
- backgroundColor: 'lightred',
318
- color: 'darkred'
216
+ navBarSeparator: {
217
+ my: '.5rem',
218
+ mx: '0px',
219
+ maxWidth: '236px',
220
+ backgroundColor: 'border.separator'
319
221
  },
320
- '&.is-yellow': {
321
- backgroundColor: 'lightyellow',
322
- color: 'darkyellow'
323
- },
324
- '&.is-cyan': {
325
- backgroundColor: 'lightcyan',
326
- color: 'darkcyan'
327
- },
328
- '&.is-teal': {
329
- backgroundColor: 'lightteal',
330
- color: 'darkteal'
331
- },
332
- display: 'flex',
333
- borderRadius: '50%',
334
- textAlign: 'center',
335
- alignItems: 'center',
336
- justifyContent: 'center',
337
- fontFamily: 'standard'
222
+ navBarSubtitleSeparator: {
223
+ backgroundColor: 'border.separator'
224
+ }
338
225
  };
339
226
  var progressBarContainer = {
340
227
  backgroundColor: 'gray-200',
@@ -348,182 +235,15 @@ var progressBar = {
348
235
  backgroundColor: 'active'
349
236
  })
350
237
  };
351
- var listViewItem = {
352
- rightOfData: {
353
- flexShrink: 4,
354
- whiteSpace: 'nowrap'
355
- },
356
- iconContainer: {
357
- ml: '0px'
358
- },
359
- styledListItem: {
360
- bg: 'white',
361
- '&.is-selected': {
362
- bg: 'gray-100'
363
- },
364
- borderBottom: 'none',
365
- '&.has-separator': {
366
- borderBottom: '1px solid',
367
- borderBottomColor: 'gray-200'
368
- },
369
- '&.is-hovered': {
370
- bg: 'gray-100'
371
- },
372
- '&.is-focused': {
373
- boxShadow: '0 0 0 3px inset #1a73e8',
374
- bg: 'gray-100'
375
- },
376
- '&.is-pressed': {
377
- bg: 'gray-200'
378
- }
379
- },
380
- styledContainer: {
381
- py: 'md',
382
- px: 'lg',
383
- bg: 'transparent',
384
- '&.is-hovered': {
385
- bg: 'transparent',
386
- cursor: 'pointer'
387
- }
388
- },
389
- expandableStyledListItem: {
390
- pr: '1.25rem',
391
- pl: 0
392
- },
393
- expandableItemBody: {
394
- px: '1.5rem'
395
- },
396
- expandableRow: {
397
- '&.has-separator': {
398
- borderBottom: '1px solid',
399
- borderBottomColor: 'gray-300'
400
- }
401
- }
402
- };
403
- var navBarSelected = {
404
- backgroundColor: 'lightblue'
405
- };
406
- var navBarFocus = {
407
- outline: '2px solid',
408
- outlineColor: 'active',
409
- outlineOffset: '-2px'
410
- };
411
- var navBar = {
412
- container: {
413
- width: '252px',
414
- p: 'sm',
415
- backgroundColor: 'white',
416
- boxShadow: '0 .5rem 1rem rgba(0, 0, 0, .15)'
417
- },
418
- sectionButton: {
419
- '&.is-hovered': {
420
- backgroundColor: 'light'
421
- },
422
- '&.is-pressed': {
423
- backgroundColor: 'light'
424
- },
425
- '&.is-focused': _objectSpread({}, navBarFocus)
426
- },
427
- itemButton: {
428
- color: 'text.primary',
429
- '&.is-focused': _objectSpread({}, navBarFocus),
430
- '&.is-hovered': {
431
- backgroundColor: 'light'
432
- },
433
- '&.is-pressed': {
434
- backgroundColor: 'light',
435
- color: 'text.primary'
436
- },
437
- '&.is-selected': {
438
- bg: 'lightblue',
439
- color: 'darkblue'
440
- }
441
- },
442
- subtitle: {
443
- color: 'text.primary'
444
- },
445
- headerText: {
446
- color: 'text.primary',
447
- '.is-selected &': {
448
- color: 'darkblue'
449
- }
450
- },
451
- headerNav: {
452
- color: 'text.primary',
453
- '&.is-hovered': {
454
- backgroundColor: 'light'
455
- },
456
- '&.is-focused': {
457
- boxShadow: 'none',
458
- WebkitBoxShadow: 'none',
459
- MozBoxShadow: 'none'
460
- }
461
- },
462
- item: {
463
- px: '1rem',
464
- py: '.75rem',
465
- color: 'text.primary',
466
- '&.is-hovered': {
467
- backgroundColor: 'light'
468
- },
469
- '> div > svg': {
470
- fill: 'text.primary'
471
- },
472
- '&.is-selected': _objectSpread(_objectSpread({}, navBarSelected), {}, {
473
- '> div > svg': {
474
- fill: 'darkblue'
475
- }
476
- }),
477
- '&.is-focused': {
478
- outline: '2px solid',
479
- outlineColor: 'active',
480
- outlineOffset: '-2px',
481
- boxShadow: 'none',
482
- WebkitBoxShadow: 'none',
483
- MozBoxShadow: 'none'
484
- }
485
- },
486
- itemHeaderContainer: {
487
- px: '1rem',
488
- py: '.75rem',
489
- '&.is-selected': _objectSpread({}, navBarSelected),
490
- backgroundColor: 'transparent',
491
- '> svg': {
492
- fill: 'text.primary'
493
- },
494
- '> div > svg': {
495
- fill: 'text.primary'
496
- }
497
- }
498
- };
499
- var listView = {
500
- container: {
501
- borderRadius: '16px',
502
- border: '1px solid',
503
- borderColor: '#e7eef4',
504
- '& > div > div': {
505
- '& > div:first-of-type': {
506
- '& > div > div': {
507
- borderRadius: '16px 16px 0 0'
508
- }
509
- },
510
- '& > div:last-of-type': {
511
- '& > div > div': {
512
- borderRadius: ' 0 0 16px 16px'
513
- }
514
- }
515
- }
516
- }
517
- };
518
238
  var dataTable = {
519
239
  container: {
520
240
  border: '1px solid',
521
- borderColor: 'gray-300',
241
+ borderColor: 'border.base',
522
242
  borderRadius: '16px'
523
243
  },
524
244
  tableRow: {
525
245
  borderTop: '1px solid',
526
- borderTopColor: 'gray-300',
246
+ borderTopColor: 'border.base',
527
247
  borderBottom: '0',
528
248
  pl: 'lg'
529
249
  },
@@ -542,53 +262,33 @@ var dataTable = {
542
262
  fontSize: 'md'
543
263
  }
544
264
  };
545
-
546
- /* const codeView = {
547
- wrapper: {
548
- backgroundColor: 'gray-900',
549
- borderRadius: '4px',
550
- '> button >svg': {
551
- color: 'gray-300',
552
- path: {
553
- fill: 'gray-300',
554
- },
555
- },
556
- '> pre': {
557
- p: 'md',
558
- },
265
+ var overlayPanel = {
266
+ container: {
267
+ backgroundColor: 'background.base'
559
268
  },
560
- }; */
561
-
562
- var tabs = {
563
- gap: '0px'
564
- };
565
- var menu = {
566
- p: 'sm',
567
- border: '1px solid',
568
- borderColor: 'gray-300',
569
- item: {
570
- '&.is-pressed': {
571
- bg: 'blue-100'
572
- }
269
+ innerPanel: {
270
+ backgroundColor: 'background.base'
573
271
  }
574
272
  };
575
273
  var _default = {
576
- navBar: navBar,
274
+ navBar: _navbar.navBar,
577
275
  fieldHelperText: fieldHelperText,
578
- message: message,
276
+ message: _messages.message,
579
277
  modal: modal,
580
- tab: tab,
581
- menuTab: menuTab,
278
+ tab: _tabs.tab,
279
+ menuTab: _tabs.menuTab,
582
280
  listBox: listBox,
583
281
  separator: separator,
584
- menuItem: menuItem,
585
- avatar: avatar,
586
- listViewItem: listViewItem,
282
+ menuItem: _menu.menuItem,
283
+ avatar: _avatar.avatar,
284
+ listViewItem: _listview.listViewItem,
587
285
  progressBar: progressBar,
588
- listView: listView,
286
+ listView: _listview.listView,
589
287
  dataTable: dataTable,
590
288
  codeView: _codeView["default"],
591
- tabs: tabs,
592
- menu: menu
289
+ tabs: _tabs.tabs,
290
+ menu: _menu.menu,
291
+ iconWrapper: _iconWrapper["default"],
292
+ overlayPanel: overlayPanel
593
293
  };
594
294
  exports["default"] = _default;
@@ -0,0 +1,15 @@
1
+ import { BoxProps } from './box';
2
+ import { IconProps, IconTypeExtended } from './icon';
3
+ export interface IconWrapperProps {
4
+ icon?: IconTypeExtended;
5
+ iconProps?: IconProps;
6
+ wrapperProps?: BoxProps;
7
+ color?: string;
8
+ size: string;
9
+ className?: string;
10
+ isCircle?: boolean;
11
+ title: {
12
+ name: string;
13
+ id?: string;
14
+ };
15
+ }
@@ -0,0 +1,6 @@
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
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const pingLogoHorizontalSmall: React.JSX.Element;
3
+ export declare const pingLogoHorizontalSmallWhite: React.JSX.Element;