@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
@@ -1,142 +1,13 @@
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 _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
11
- 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; }
12
- 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; }
13
- import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
14
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
15
1
  import React from 'react';
16
- import FormSelectIcon from '@pingux/mdi-react/FormSelectIcon';
17
- import { AstroProvider, Box, Item, ListView, ListViewItem, NextGenTheme, Text } from '../../index';
2
+ import { Box } from '../../index';
3
+ import { ListViewNextGen } from '../../styles/themes/next-gen/stories/ListViewNextGenComponent';
18
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
- var items = _Array$from({
20
- length: 300
21
- }, function (_, index) {
22
- var id = (index + 1).toString();
23
- return {
24
- key: "Animal".concat(id),
25
- name: "Animal".concat(id),
26
- id: id
27
- };
28
- });
29
- var iconStyles = [{
30
- backgroundColor: 'cyan-100',
31
- fill: 'cyan-800',
32
- color: 'cyan-800'
33
- }, {
34
- backgroundColor: 'pink-100',
35
- color: 'pink-800',
36
- fill: 'pink-800'
37
- }, {
38
- backgroundColor: 'green-100',
39
- color: 'green-800',
40
- fill: 'green-800'
41
- }, {
42
- backgroundColor: 'orange-100',
43
- color: 'orange-800',
44
- fill: 'orange-800'
45
- }, {
46
- backgroundColor: 'blue-100',
47
- color: 'blue-800',
48
- fill: 'blue-800'
49
- }, {
50
- backgroundColor: 'red-100',
51
- color: 'red-800',
52
- fill: 'red-800'
53
- }, {
54
- backgroundColor: 'teal-100',
55
- color: 'teal-800',
56
- fill: 'teal-800'
57
- }, {
58
- backgroundColor: 'yellow-100',
59
- color: 'yellow-800',
60
- fill: 'yellow-800'
61
- }, {
62
- backgroundColor: 'indigo-100',
63
- color: 'indigo-800',
64
- fill: 'indigo-800'
65
- }, {
66
- backgroundColor: 'purple-100',
67
- color: 'purple-800',
68
- fill: 'purple-800'
69
- }];
70
- var createIcons = function createIcons(index) {
71
- var lastDigit = index % 10;
72
- return {
73
- size: '32px',
74
- sx: _objectSpread({
75
- borderRadius: '50%',
76
- padding: '6px'
77
- }, iconStyles[lastDigit])
78
- };
79
- };
80
5
  export default {
81
6
  title: 'Next Gen Recipes/ListView'
82
7
  };
83
8
  export var Default = function Default() {
84
9
  return ___EmotionJSX(Box, {
85
- backgroundColor: "white"
86
- }, ___EmotionJSX(AstroProvider, {
87
- themeOverrides: [NextGenTheme]
88
- }, ___EmotionJSX(Box, {
89
- height: "400px",
90
- backgroundColor: "white"
91
- }, ___EmotionJSX(ListView, {
92
- items: items,
93
- selectionMode: "single"
94
- }, _mapInstanceProperty(items).call(items, function (item, index) {
95
- return ___EmotionJSX(Item, _extends({
96
- key: item.name
97
- }, item, {
98
- index: index
99
- }), ___EmotionJSX(ListViewItem, {
100
- sx: {},
101
- data: {
102
- text: item.name,
103
- icon: FormSelectIcon
104
- },
105
- iconProps: _objectSpread({}, createIcons(index)),
106
- hasSeparator: false,
107
- index: index,
108
- items: items
109
- }));
110
- })))));
111
- };
112
- export var Expandable = function Expandable() {
113
- return ___EmotionJSX(Box, {
114
- backgroundColor: "white"
115
- }, ___EmotionJSX(AstroProvider, {
116
- themeOverrides: [NextGenTheme]
117
- }, ___EmotionJSX(Box, {
118
- height: "400px",
119
- backgroundColor: "white"
120
- }, ___EmotionJSX(ListView, {
121
- items: items,
122
- selectionMode: "expansion"
123
- }, _mapInstanceProperty(items).call(items, function (item, index) {
124
- return ___EmotionJSX(Item, _extends({
125
- key: item.name
126
- }, item, {
127
- index: index
128
- }), ___EmotionJSX(ListViewItem, {
129
- data: {
130
- text: item.name,
131
- icon: FormSelectIcon
132
- },
133
- iconProps: _objectSpread({}, createIcons(index)),
134
- hasSeparator: false,
135
- index: index,
136
- items: items
137
- }), ___EmotionJSX(Box, {
138
- py: "lg",
139
- px: "sm"
140
- }, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat.")));
141
- })))));
10
+ backgroundColor: "background.base",
11
+ p: "lg"
12
+ }, ___EmotionJSX(ListViewNextGen, null));
142
13
  };
@@ -1,15 +1,13 @@
1
1
  import React from 'react';
2
2
  import { useModalState } from '../../hooks';
3
- import { AstroProvider, Box, Button, Modal, NextGenTheme, OverlayProvider, Text } from '../../index';
3
+ import { Box, Button, Modal, OverlayProvider, Text } from '../../index';
4
4
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
5
  export default {
6
6
  title: 'Next Gen Recipes/Modal'
7
7
  };
8
8
  export var Default = function Default() {
9
9
  var state = useModalState();
10
- return ___EmotionJSX(AstroProvider, {
11
- themeOverrides: [NextGenTheme]
12
- }, ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Button, {
10
+ return ___EmotionJSX(OverlayProvider, null, ___EmotionJSX(Button, {
13
11
  onPress: state.open,
14
12
  "aria-label": "Open modal"
15
13
  }, "Open Modal"), (state.isOpen || state.isTransitioning) && ___EmotionJSX(Modal, {
@@ -26,17 +24,20 @@ export var Default = function Default() {
26
24
  sx: {
27
25
  p: '1rem 1.5rem',
28
26
  borderBottom: '1px solid',
29
- borderBottomColor: 'gray-300'
27
+ borderBottomColor: 'border.base',
28
+ bg: 'background.base'
30
29
  }
31
30
  }, ___EmotionJSX(Text, {
32
31
  variant: "modalTitle"
33
32
  }, "Modal Title")), ___EmotionJSX(Box, {
34
33
  p: "1.5rem 1.5rem"
35
- }, ___EmotionJSX(Text, null, "Do you want to continue with this action that you\u2018re performing?")), ___EmotionJSX(Box, {
34
+ }, ___EmotionJSX(Text, {
35
+ color: "text.primary"
36
+ }, "Do you want to continue with this action that you\u2018re performing?")), ___EmotionJSX(Box, {
36
37
  isRow: true,
37
38
  sx: {
38
39
  borderTop: '1px solid',
39
- borderTopColor: 'gray-300',
40
+ borderTopColor: 'border.base',
40
41
  p: '1rem 1.5rem'
41
42
  }
42
43
  }, ___EmotionJSX(Box, {
@@ -59,5 +60,5 @@ export var Default = function Default() {
59
60
  ml: ".25rem",
60
61
  "aria-label": "Continue",
61
62
  isDisabled: true
62
- }, "Next"))))));
63
+ }, "Next")))));
63
64
  };
@@ -1,223 +1,9 @@
1
1
  import React from 'react';
2
- import AccountCheckIcon from '@pingux/mdi-react/AccountCheckOutlineIcon';
3
- import AccountMultipleOutlineIcon from '@pingux/mdi-react/AccountMultipleOutlineIcon';
4
- import AppsIcon from '@pingux/mdi-react/AppsIcon';
5
- import CheckCircleOutlineIcon from '@pingux/mdi-react/CheckCircleOutlineIcon';
6
- import CodeTagsIcon from '@pingux/mdi-react/CodeTagsIcon';
7
- import CogOutlineIcon from '@pingux/mdi-react/CogOutlineIcon';
8
- import FileTreeIcon from '@pingux/mdi-react/FileTreeIcon';
9
- import LayersOutlineIcon from '@pingux/mdi-react/LayersOutlineIcon';
10
- import PaletteOutlineIcon from '@pingux/mdi-react/PaletteOutlineIcon';
11
- import ShieldCheckOutlineIcon from '@pingux/mdi-react/ShieldCheckOutlineIcon';
12
- import ShowChartIcon from '@pingux/mdi-react/ShowChartIcon';
13
- import DashboardIcon from '@pingux/mdi-react/ViewDashboardOutlineIcon';
14
- import WidgetsOutlineIcon from '@pingux/mdi-react/WidgetsOutlineIcon';
15
- import { AstroProvider, Box, NavBar, NavBarItem, NavBarItemButton, NavBarSection, NextGenTheme, Separator } from '../../index';
2
+ import { NavBarNextGenComponent } from '../../styles/themes/next-gen/stories/NavBarNextGenComponent';
16
3
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
4
  export default {
18
5
  title: 'Next Gen Recipes/NavBar'
19
6
  };
20
- var data = [{
21
- 'data-id': 'dashboard-data-id',
22
- heading: 'Monitoring',
23
- icon: ShowChartIcon,
24
- key: 'Monitoring',
25
- children: [___EmotionJSX(NavBarItemButton, {
26
- key: "Dashboards",
27
- id: "Dashboards"
28
- }, "Dashboards"), ___EmotionJSX(NavBarItemButton, {
29
- key: "Audit",
30
- id: "Audit"
31
- }, "Audits")]
32
- }, {
33
- 'data-id': 'Directory-data-id',
34
- heading: 'Directory',
35
- icon: AccountMultipleOutlineIcon,
36
- key: 'Directory',
37
- children: [___EmotionJSX(NavBarItemButton, {
38
- key: "Users",
39
- id: "Users"
40
- }, "Users"), ___EmotionJSX(NavBarItemButton, {
41
- key: "Group",
42
- id: "Group"
43
- }, "Groups")]
44
- }, {
45
- 'data-id': 'Applications-data-id',
46
- heading: 'Applications',
47
- icon: AppsIcon,
48
- key: 'Applications',
49
- children: [___EmotionJSX(NavBarItemButton, {
50
- key: "Applications-sub",
51
- id: "Applications-sub"
52
- }, "Applications"), ___EmotionJSX(NavBarItemButton, {
53
- key: "Resources",
54
- id: "Resources"
55
- }, "Resourcess")]
56
- }];
57
- var secondData = [{
58
- 'data-id': 'Authentication-data-id',
59
- heading: 'Authentication',
60
- icon: CheckCircleOutlineIcon,
61
- key: 'Authentication',
62
- children: [___EmotionJSX(NavBarItemButton, {
63
- key: "Authentication-Policies",
64
- id: "Authentication-Policies"
65
- }, "Authentication Policies"), ___EmotionJSX(NavBarItemButton, {
66
- key: "Password-Policies",
67
- id: "Password-Policies"
68
- }, "Password Policies")]
69
- }, {
70
- 'data-id': 'Threat Protection-data-id',
71
- heading: 'Threat Protection',
72
- icon: ShieldCheckOutlineIcon,
73
- key: 'Threat Protection',
74
- children: [___EmotionJSX(NavBarItemButton, {
75
- key: "Risk Policies",
76
- id: "Risk Policies"
77
- }, "Risk Policies"), ___EmotionJSX(NavBarItemButton, {
78
- key: "Predictors",
79
- id: "Predictors"
80
- }, "Predictors")]
81
- }, {
82
- 'data-id': 'Threat Protection-data-id',
83
- heading: 'Identity Verification',
84
- icon: LayersOutlineIcon,
85
- key: 'Identity Verification',
86
- children: [___EmotionJSX(NavBarItemButton, {
87
- key: "Verify Policies",
88
- id: "Verify Policies"
89
- }, "Verify Policies")]
90
- }, {
91
- 'data-id': 'Digital Credentials-data-id',
92
- heading: 'Digital Credentials',
93
- icon: CodeTagsIcon,
94
- key: 'Digital Credentials',
95
- children: [___EmotionJSX(NavBarItemButton, {
96
- key: "Management",
97
- id: "Management"
98
- }, "Management")]
99
- }, {
100
- 'data-id': 'Authorization-data-id',
101
- heading: 'Authorization',
102
- icon: AccountCheckIcon,
103
- key: 'Authorization',
104
- children: [___EmotionJSX(NavBarItemButton, {
105
- key: "Trust Framework",
106
- id: "Trust Framework"
107
- }, "Trust Framework"), ___EmotionJSX(NavBarItemButton, {
108
- key: "Policies",
109
- id: "Policies"
110
- }, "Policies")]
111
- }];
112
- var thirdData = [{
113
- 'data-id': 'Integrations-data-id',
114
- heading: 'Integrations',
115
- icon: WidgetsOutlineIcon,
116
- key: 'Integrations',
117
- children: [___EmotionJSX(NavBarItemButton, {
118
- key: "External IDPs",
119
- id: "External IDPs"
120
- }, "External IDPs"), ___EmotionJSX(NavBarItemButton, {
121
- key: "Provisioning",
122
- id: "Provisioning"
123
- }, "Provisioning")]
124
- }, {
125
- 'data-id': 'User Experience-data-id',
126
- heading: 'User Experience',
127
- icon: PaletteOutlineIcon,
128
- key: 'User Experience',
129
- children: [___EmotionJSX(NavBarItemButton, {
130
- key: "Notification Templates",
131
- id: "Notification Templates"
132
- }, "Notification Templates"), ___EmotionJSX(NavBarItemButton, {
133
- key: "Notification Policies",
134
- id: "Notification Policies"
135
- }, "Notification Policies")]
136
- }, {
137
- 'data-id': 'Settings-data-id',
138
- heading: 'Settings',
139
- icon: CogOutlineIcon,
140
- key: 'Settings',
141
- children: [___EmotionJSX(NavBarItemButton, {
142
- key: "Certificates & Key Pairs",
143
- id: "Certificates & Key Pairs"
144
- }, "Certificates & Key Pairs"), ___EmotionJSX(NavBarItemButton, {
145
- key: "Domains",
146
- id: "Domains"
147
- }, "Domains")]
148
- }];
149
- var logo = ___EmotionJSX("svg", {
150
- width: "161",
151
- height: "28",
152
- viewBox: "0 0 2385 415",
153
- fill: "none",
154
- xmlns: "http://www.w3.org/2000/svg"
155
- }, ___EmotionJSX("g", {
156
- "clip-path": "url(#clip0_10475_59692)"
157
- }, ___EmotionJSX("path", {
158
- d: "M0 372.674H372.613V0.000147457H0V372.674Z",
159
- fill: "#B3282D"
160
- }), ___EmotionJSX("mask", {
161
- id: "mask0_10475_59692",
162
- maskUnits: "userSpaceOnUse",
163
- x: "0",
164
- y: "0",
165
- width: "2385",
166
- height: "415"
167
- }, ___EmotionJSX("path", {
168
- d: "M0 0H2385V415H0V0Z",
169
- fill: "white"
170
- })), ___EmotionJSX("g", {
171
- mask: "url(#mask0_10475_59692)"
172
- }, ___EmotionJSX("path", {
173
- d: "M1974.57 113.426L2006.72 108.051V326.877H1974.57V113.426ZM2100.71 138.143V276.131C2100.71 299.777 2106.68 307.961 2126.13 307.961C2134.89 307.961 2132.57 308.056 2138.16 305.039L2142.53 326.545C2132.57 332.106 2128.91 333.724 2115 333.724C2104.67 333.724 2096.74 331.591 2089.17 327.727C2075.28 320.419 2070.12 306.666 2070.12 285.153V138.143H2044.3V112.787H2070.12V31.6623H2101.92V112.787H2151.58L2142.05 138.143H2100.71ZM2355.46 320.461C2343.1 320.461 2333.12 309.882 2333.12 295.254C2333.12 280.613 2343.1 270.051 2355.46 270.051C2367.81 270.051 2377.81 280.613 2377.81 295.254C2377.81 309.882 2367.81 320.461 2355.46 320.461ZM2355.46 263.967C2339.19 263.967 2325.91 278.01 2325.91 295.254C2325.91 312.485 2339.19 326.516 2355.46 326.516C2371.75 326.516 2385 312.485 2385 295.254C2385 278.01 2371.75 263.967 2355.46 263.967ZM2350.31 292.569V282.426H2355.86C2359.06 282.426 2362.66 283.107 2362.66 287.269C2362.66 292.037 2359.48 292.569 2355.79 292.569H2350.31ZM2368.88 287.813C2368.88 280.351 2364.54 277.4 2356.51 277.4H2344.09V312.862H2350.31V297.594H2354.06L2362.73 312.862H2369.12L2360.13 297.341C2365.61 296.802 2368.88 293.863 2368.88 287.813ZM2342.12 112.787L2274.19 334.583C2260.68 377.602 2244.77 405.967 2210.22 415.002L2201.08 392.218C2220.42 385.661 2230.56 376.129 2239.01 352.831C2235.84 335.936 2234.05 328.591 2234.05 328.591C2231.68 314.838 2220.94 273.113 2214.19 251.637L2171.65 117.513L2202.28 106.313L2242.81 245.167C2248.75 265.403 2254.71 298.487 2254.71 298.487H2255.51C2255.51 298.487 2263.04 270.985 2267.83 253.364L2306.76 112.787H2342.12ZM1385.26 272.263C1385.26 272.263 1381.67 281.293 1373.34 287.755C1360.6 297.623 1351.46 301.504 1335.21 301.504C1316.93 301.504 1304.59 294.2 1295.47 276.566C1289.1 264.108 1287.52 245.611 1287.52 220.674C1287.52 190.582 1290.68 175.12 1300.23 158.781C1308.57 144.169 1321.68 136.429 1337.2 136.429C1360.6 136.429 1375.34 143.754 1385.26 158.781V272.263ZM1416.66 31.6623H1385.65V102.918C1385.65 118.364 1386.04 135.997 1386.04 135.997C1374.15 118.812 1354.65 108.931 1332.42 108.931C1318.11 108.931 1306.99 112.786 1294.27 122.248C1267.25 142.426 1253.36 175.97 1253.36 221.537C1253.36 289.871 1282.76 329.852 1333.99 329.852C1357.04 329.852 1372.16 322.573 1386.45 304.952C1386.84 316.091 1390.82 326.877 1390.82 326.877H1422.61C1418.21 314.393 1416.66 294.615 1416.66 257.68V31.6623ZM1889.71 113.214H1940.82L1931.3 138.575H1888.51V276.566C1888.51 300.225 1894.47 308.405 1913.94 308.405C1922.69 308.405 1920.38 308.505 1925.96 305.467L1930.34 326.985C1920.38 332.554 1916.72 334.168 1902.8 334.168C1892.48 334.168 1884.55 332.039 1876.98 328.167C1863.09 320.859 1857.91 307.098 1857.91 285.597V138.575H1832.1V113.214H1857.91V32.1022H1889.71V113.214ZM1799.51 139.438C1802.68 147.173 1804.28 155.76 1804.28 164.375V326.893H1772.88V181.992C1772.88 159.196 1771.29 153.631 1765.72 146.31C1761.37 140.728 1753 137.28 1743.88 137.28C1727.95 137.28 1703.36 151.07 1689.05 167.384V326.893H1658.85V161.802C1658.85 131.266 1651.33 116.65 1651.33 116.65L1681.49 107.624C1681.49 107.624 1688.68 123.502 1688.68 141.164C1709.29 118.812 1729.95 108.051 1751.03 108.051C1772.49 108.051 1791.56 120.539 1799.51 139.438ZM1492.67 200.032C1494.24 155.747 1510.14 133.408 1538.35 133.408C1553.46 133.408 1567.34 140.728 1574.09 152.324C1580.07 162.636 1582.85 176.829 1583.24 200.032H1492.67ZM1539.93 107.176C1516.08 107.176 1496.63 116.65 1480.74 136.848C1464.05 158.378 1456.92 181.564 1456.92 217.678C1456.92 288.63 1489.86 331.591 1544.7 331.591C1570.14 331.591 1594 322.142 1611.44 304.952L1599.52 283.426C1585.63 297.204 1570.14 303.633 1551.05 303.633C1531.18 303.633 1512.91 295.909 1501.79 277.429C1495.03 266.278 1492.67 250.778 1492.67 230.58V225.401H1616.2V220.674C1615.44 169.538 1610.64 149.331 1593.59 130.391C1580.07 115.376 1561.39 107.176 1539.93 107.176ZM1178.26 31.9653H1210.05V326.877H1178.26V31.9653Z",
174
- fill: "#263746"
175
- }), ___EmotionJSX("path", {
176
- d: "M836.686 159.866C826.225 159.866 812.64 167.269 800.607 178.756V327.575H748.544V175.05C748.544 156.969 746.208 139.705 741.561 125.724L787.752 111.763C792.428 120.403 795.146 129.43 795.146 138.062C802.905 132.289 809.511 127.359 818.063 122.437C828.54 116.697 842.142 113.415 853.781 113.415C875.918 113.415 895.338 125.724 901.545 143.83C904.259 151.636 905.429 160.667 905.429 173.826V327.575H854.159V190.684C854.159 166.85 850.283 159.866 836.686 159.866ZM985.056 184.927C985.056 165.207 996.326 153.682 1016.12 153.682C1035.95 153.682 1047.59 165.207 1047.59 184.927C1047.59 204.25 1036.33 214.932 1015.74 214.932C997.484 214.932 985.056 206.308 985.056 184.927ZM1035.95 273.729L1007.98 273.314C1002.53 273.314 999.446 271.247 999.446 268.372C999.446 262.632 1006.82 257.702 1020.01 251.103C1023.88 251.527 1025.44 251.527 1027.78 251.527C1070.11 251.527 1101.2 225.195 1101.2 189.028C1101.2 175.05 1097.28 164.356 1089.51 154.52C1092.62 154.935 1098.07 155.736 1103.13 155.736C1117.49 155.736 1128.34 151.209 1139.62 140.112L1117.88 105.164C1105.83 116.697 1091.08 123.275 1076.71 123.275C1070.11 123.275 1063.1 121.603 1052.25 118.739C1037.87 115.054 1027.78 113.415 1016.51 113.415C965.662 113.415 932.645 141.357 932.645 184.521C932.645 215.758 946.616 235.076 975.355 242.899C942.724 251.921 938.857 264.69 938.857 278.249C938.857 292.641 944.662 302.09 953.998 305.771C963.33 309.901 978.467 311.934 1001.75 312.357L1023.88 312.772C1044.49 313.183 1060.39 318.952 1060.39 337.847C1060.39 346.487 1055.35 354.289 1047.59 359.211C1039.45 364.577 1028.18 366.191 1014.99 366.191C990.907 366.191 977.678 357.169 977.678 340.299C977.678 334.552 978.073 331.692 980.027 326.758H931.869C929.919 330.85 927.213 336.631 927.213 348.139C927.213 362.494 932.645 374.856 943.521 385.53C961.375 403.217 990.513 408.135 1018.84 408.135C1049.9 408.135 1079.82 400.757 1097.28 381.007C1108.17 368.685 1113.22 355.131 1113.22 337.452C1113.22 318.528 1107.77 304.145 1096.13 292.641C1082.14 279.058 1066.22 274.128 1035.95 273.729ZM654.178 120.781L706.199 112.145V327.575H654.178V120.781ZM648.34 59.1327C648.34 40.2294 663.1 25.0155 680.959 25.0155C698.436 25.0155 712.428 40.2294 712.428 59.1327C712.428 78.0359 698.042 93.2581 680.174 93.2581C662.718 93.2581 648.34 78.0359 648.34 59.1327ZM566.36 160.667C559.003 172.59 552.393 175.474 530.265 175.474H501.924V88.3113H536.455C559.381 88.3113 572.962 104.351 572.962 131.069C572.962 144.648 571.045 152.881 566.36 160.667ZM593.572 55.85C578.41 46.7989 564.427 41.8729 518.609 41.8729H447.559V327.575H501.924V222.344H531.812C561.7 222.344 573.364 219.049 585.792 212.878C615.298 198.087 632.365 167.663 632.365 129.861C632.365 96.9516 618.784 70.6531 593.572 55.85Z",
177
- fill: "#263746"
178
- }))), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
179
- id: "clip0_10475_59692"
180
- }, ___EmotionJSX("rect", {
181
- width: "2385",
182
- height: "415",
183
- fill: "white"
184
- }))));
185
7
  export var Default = function Default() {
186
- return ___EmotionJSX(AstroProvider, {
187
- themeOverrides: [NextGenTheme]
188
- }, ___EmotionJSX(NavBar, null, ___EmotionJSX(Box, {
189
- padding: "md",
190
- pb: "0px",
191
- key: "top-logo-parent"
192
- }, logo), ___EmotionJSX(Box, {
193
- paddingBottom: "xl",
194
- key: "first-section-container"
195
- }, ___EmotionJSX(NavBarItem, {
196
- "data-id": "nav-bar-item",
197
- icon: DashboardIcon,
198
- id: "Overview",
199
- key: "Overview",
200
- text: "Overview"
201
- }), ___EmotionJSX(NavBarSection, {
202
- items: data,
203
- "data-id": "nav-bar-section"
204
- }), ___EmotionJSX(Separator, {
205
- m: 0,
206
- backgroundColor: "neutral.60"
207
- }), ___EmotionJSX(NavBarItem, {
208
- "data-id": "nav-bar-item",
209
- icon: FileTreeIcon,
210
- id: "DaVinci",
211
- key: "DaVinci",
212
- text: "DaVinci"
213
- }), ___EmotionJSX(NavBarSection, {
214
- items: secondData,
215
- "data-id": "second-nav-bar-section"
216
- }), ___EmotionJSX(Separator, {
217
- m: 0,
218
- backgroundColor: "neutral.60"
219
- }), ___EmotionJSX(NavBarSection, {
220
- items: thirdData,
221
- "data-id": "third-nav-bar-section"
222
- }))));
8
+ return ___EmotionJSX(NavBarNextGenComponent, null);
223
9
  };
@@ -1,142 +1,9 @@
1
- import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
1
  import React from 'react';
3
- import { AstroProvider, Badge, Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow, NextGenTheme, Text } from '../../index';
2
+ import { DataTableNextGenComponent } from '../../styles/themes/next-gen/stories/DataTableNextGenComponent';
4
3
  import { jsx as ___EmotionJSX } from "@emotion/react";
5
4
  export default {
6
5
  title: 'Next Gen Recipes/DataTable'
7
6
  };
8
- var getCellProps = function getCellProps(columnKey, align) {
9
- return {
10
- pr: columnKey !== 'menu' ? 'lg' : 12,
11
- pl: columnKey === 'menu' ? 0 : 'lg',
12
- hideHeader: columnKey === 'menu',
13
- align: align
14
- };
15
- };
16
7
  export var Default = function Default() {
17
- var date = '2023-05-03';
18
- var time = '07:16:30 pm UTC';
19
- var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
20
- var columns = [{
21
- name: 'Timestamp',
22
- key: 'timestamp'
23
- }, {
24
- name: 'Event Type',
25
- key: 'eventType'
26
- }, {
27
- name: 'Description',
28
- key: 'description'
29
- }, {
30
- name: 'Status',
31
- key: 'status',
32
- isSortable: true
33
- }, {
34
- name: 'User Identity',
35
- key: 'userIdentity'
36
- }, {
37
- name: 'Menu',
38
- key: 'menu'
39
- }];
40
- var rows = [{
41
- id: 1,
42
- timestamp: timestampCell,
43
- eventType: 'User Access Allowed',
44
- description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
45
- status: ___EmotionJSX(Badge, {
46
- label: "Approved",
47
- variant: "success",
48
- sx: {
49
- width: '100px'
50
- }
51
- }),
52
- userIdentity: 'Vincent Diep',
53
- menu: ___EmotionJSX(DataTableMenu, null)
54
- }, {
55
- id: 2,
56
- timestamp: timestampCell,
57
- eventType: 'User Access Denied',
58
- description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
59
- display: "block"
60
- }, "Passed Role Access"), ___EmotionJSX(Box, {
61
- display: "block"
62
- }, "Control")),
63
- status: ___EmotionJSX(Badge, {
64
- label: "Rejected",
65
- variant: "danger",
66
- sx: {
67
- width: '100px'
68
- }
69
- }),
70
- userIdentity: 'Vincent Diep',
71
- menu: ___EmotionJSX(DataTableMenu, null)
72
- }, {
73
- id: 3,
74
- timestamp: timestampCell,
75
- eventType: 'User Access Allowed',
76
- description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
77
- display: "block"
78
- }, "Passed Role Access"), ___EmotionJSX(Box, {
79
- display: "block"
80
- }, "Control")),
81
- status: ___EmotionJSX(Badge, {
82
- label: "Inactive",
83
- variant: "secondary",
84
- sx: {
85
- width: '100px'
86
- }
87
- }),
88
- userIdentity: 'Vincent Diep',
89
- menu: ___EmotionJSX(DataTableMenu, null)
90
- }, {
91
- id: 4,
92
- timestamp: timestampCell,
93
- eventType: 'User Access Allowed',
94
- description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
95
- status: ___EmotionJSX(Badge, {
96
- label: "Approved",
97
- variant: "success",
98
- sx: {
99
- width: '100px'
100
- }
101
- }),
102
- userIdentity: 'Vincent Diep',
103
- menu: ___EmotionJSX(DataTableMenu, null)
104
- }, {
105
- id: 5,
106
- timestamp: timestampCell,
107
- eventType: 'User Access Allowed',
108
- description: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, "Passed Role Access"), ___EmotionJSX(Box, null, "Control")),
109
- status: ___EmotionJSX(Badge, {
110
- label: "Approved",
111
- variant: "success",
112
- sx: {
113
- width: '100px'
114
- }
115
- }),
116
- userIdentity: 'Vincent Diep',
117
- menu: ___EmotionJSX(DataTableMenu, null)
118
- }];
119
- return ___EmotionJSX(AstroProvider, {
120
- themeOverrides: [NextGenTheme]
121
- }, ___EmotionJSX(Box, {
122
- backgroundColor: "white"
123
- }, ___EmotionJSX(DataTable, {
124
- "aria-label": "Static table",
125
- height: "100%",
126
- density: "spacious",
127
- scale: "xl"
128
- }, ___EmotionJSX(DataTableHeader, {
129
- columns: columns
130
- }, function (column) {
131
- return ___EmotionJSX(DataTableColumn, _extends({}, getCellProps(column.key, false), {
132
- minWidth: column.key !== 'menu' ? 175 : 50,
133
- width: column.key !== 'menu' ? '19.4%' : 50
134
- }), ___EmotionJSX(Text, null, column.name));
135
- }), ___EmotionJSX(DataTableBody, {
136
- items: rows
137
- }, function (item) {
138
- return ___EmotionJSX(DataTableRow, null, function (columnKey) {
139
- return ___EmotionJSX(DataTableCell, getCellProps(columnKey, false), item[columnKey]);
140
- });
141
- }))));
8
+ return ___EmotionJSX(DataTableNextGenComponent, null);
142
9
  };
@@ -0,0 +1,11 @@
1
+ export default {
2
+ buttonHeight: 36,
3
+ column: 400,
4
+ container: {
5
+ xs: '400px',
6
+ sm: '550px',
7
+ md: '800px',
8
+ lg: '1200px',
9
+ full: '100%'
10
+ }
11
+ };
@@ -9,14 +9,16 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
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
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
+ import { themes } from '../utils/devUtils/constants/themes';
12
13
  import breakpoints from './breakpoints';
13
14
  import colors, { accent, focus, line, shadow } from './colors';
14
15
  import forms from './forms';
16
+ import sizes from './sizes';
15
17
  import spacing from './spacing';
16
18
  import { fontSizes, fontWeights, textColors } from './text';
17
19
  import { badges, buttons, cards, grids, images, links, text, variants } from './variants';
18
20
  export default {
19
- name: 'Astro',
21
+ name: themes.ASTRO,
20
22
  space: spacing,
21
23
  colors: _objectSpread(_objectSpread({}, colors), {}, {
22
24
  background: accent[99]
@@ -34,17 +36,7 @@ export default {
34
36
  lineHeights: {
35
37
  md: '1.5'
36
38
  },
37
- sizes: {
38
- buttonHeight: 36,
39
- column: 400,
40
- container: {
41
- xs: '400px',
42
- sm: '550px',
43
- md: '800px',
44
- lg: '1200px',
45
- full: '100%'
46
- }
47
- },
39
+ sizes: sizes,
48
40
  shadows: {
49
41
  standard: "0 1px 3px ".concat(shadow),
50
42
  row: "0 0 9px ".concat(accent[95]),