@newtonschool/grauity 0.0.14 → 0.1.11

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 (392) hide show
  1. package/README.md +145 -9
  2. package/dist/fonts/grauity-icons.eot +0 -0
  3. package/dist/fonts/grauity-icons.ttf +0 -0
  4. package/dist/fonts/grauity-icons.woff +0 -0
  5. package/dist/fonts/grauity-icons.woff2 +0 -0
  6. package/dist/hooks/index.d.ts +4 -0
  7. package/dist/hooks/index.d.ts.map +1 -0
  8. package/dist/hooks/useClickAway.d.ts +15 -0
  9. package/dist/hooks/useClickAway.d.ts.map +1 -0
  10. package/dist/hooks/useDisableBodyScroll.d.ts +7 -0
  11. package/dist/hooks/useDisableBodyScroll.d.ts.map +1 -0
  12. package/dist/hooks/useKeyboardEvent.d.ts +17 -0
  13. package/dist/hooks/useKeyboardEvent.d.ts.map +1 -0
  14. package/dist/index.d.ts +1109 -39
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/main.cjs +1 -1
  17. package/dist/main.cjs.map +1 -1
  18. package/dist/main.css +10 -1
  19. package/dist/main.css.map +1 -1
  20. package/dist/module.css +10 -1
  21. package/dist/module.css.map +1 -1
  22. package/dist/module.mjs +1 -1
  23. package/dist/module.mjs.map +1 -1
  24. package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts +7 -0
  25. package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts.map +1 -0
  26. package/dist/stories/atoms/Colors/index.stories.d.ts +18 -0
  27. package/dist/stories/atoms/Colors/index.stories.d.ts.map +1 -0
  28. package/dist/stories/atoms/CornerRadius/index.stories.d.ts +7 -0
  29. package/dist/stories/atoms/CornerRadius/index.stories.d.ts.map +1 -0
  30. package/dist/stories/atoms/Spacing/index.stories.d.ts +7 -0
  31. package/dist/stories/atoms/Spacing/index.stories.d.ts.map +1 -0
  32. package/dist/stories/decorators/withEnableBodyScroll.d.ts +8 -0
  33. package/dist/stories/decorators/withEnableBodyScroll.d.ts.map +1 -0
  34. package/dist/stories/decorators/withInlineContainer.d.ts +15 -0
  35. package/dist/stories/decorators/withInlineContainer.d.ts.map +1 -0
  36. package/dist/stories/elements/Alert/Gallery.stories.d.ts +30 -0
  37. package/dist/stories/elements/Alert/Gallery.stories.d.ts.map +1 -0
  38. package/dist/stories/elements/Alert/index.stories.d.ts +30 -0
  39. package/dist/stories/elements/Alert/index.stories.d.ts.map +1 -0
  40. package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts +33 -0
  41. package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts.map +1 -0
  42. package/dist/stories/elements/AlertBanner/index.stories.d.ts +30 -0
  43. package/dist/stories/elements/AlertBanner/index.stories.d.ts.map +1 -0
  44. package/dist/stories/elements/Button/Gallery.stories.d.ts +10 -0
  45. package/dist/stories/elements/Button/Gallery.stories.d.ts.map +1 -0
  46. package/dist/stories/elements/Button/index.stories.d.ts +9 -0
  47. package/dist/stories/elements/Button/index.stories.d.ts.map +1 -0
  48. package/dist/stories/elements/Icon/index.stories.d.ts +14 -0
  49. package/dist/stories/elements/Icon/index.stories.d.ts.map +1 -0
  50. package/dist/stories/elements/IconButton/Gallery.stories.d.ts +10 -0
  51. package/dist/stories/elements/IconButton/Gallery.stories.d.ts.map +1 -0
  52. package/dist/stories/elements/IconButton/index.stories.d.ts +9 -0
  53. package/dist/stories/elements/IconButton/index.stories.d.ts.map +1 -0
  54. package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts +3 -0
  55. package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts.map +1 -0
  56. package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts +43 -0
  57. package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts.map +1 -0
  58. package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts +42 -0
  59. package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts.map +1 -0
  60. package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts +46 -0
  61. package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts.map +1 -0
  62. package/dist/stories/elements/Modal/index.stories.d.ts +32 -0
  63. package/dist/stories/elements/Modal/index.stories.d.ts.map +1 -0
  64. package/dist/stories/elements/Modal/multiStepArgs.d.ts +4 -0
  65. package/dist/stories/elements/Modal/multiStepArgs.d.ts.map +1 -0
  66. package/dist/stories/elements/Modal/singleStepArgs.d.ts +4 -0
  67. package/dist/stories/elements/Modal/singleStepArgs.d.ts.map +1 -0
  68. package/dist/stories/elements/MultiSelectDropdown/index.stories.d.ts +11 -0
  69. package/dist/stories/elements/MultiSelectDropdown/index.stories.d.ts.map +1 -0
  70. package/dist/stories/elements/SelectDropdown/index.stories.d.ts +11 -0
  71. package/dist/stories/elements/SelectDropdown/index.stories.d.ts.map +1 -0
  72. package/dist/stories/elements/Table/Manual.source.d.ts +3 -0
  73. package/dist/stories/elements/Table/Manual.source.d.ts.map +1 -0
  74. package/dist/stories/elements/Table/Manual.stories.d.ts +54 -0
  75. package/dist/stories/elements/Table/Manual.stories.d.ts.map +1 -0
  76. package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts +3 -0
  77. package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts.map +1 -0
  78. package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts +53 -0
  79. package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts.map +1 -0
  80. package/dist/stories/elements/Table/index.stories.d.ts +46 -0
  81. package/dist/stories/elements/Table/index.stories.d.ts.map +1 -0
  82. package/dist/stories/elements/Table/simpleArgs.d.ts +4 -0
  83. package/dist/stories/elements/Table/simpleArgs.d.ts.map +1 -0
  84. package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts +29 -0
  85. package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts.map +1 -0
  86. package/dist/stories/elements/Typography/index.stories.d.ts +28 -0
  87. package/dist/stories/elements/Typography/index.stories.d.ts.map +1 -0
  88. package/dist/stories/helper-components/ColorRenderer/index.d.ts +15 -0
  89. package/dist/stories/helper-components/ColorRenderer/index.d.ts.map +1 -0
  90. package/dist/stories/helper-components/DocPageWithPlayground.d.ts +12 -0
  91. package/dist/stories/helper-components/DocPageWithPlayground.d.ts.map +1 -0
  92. package/dist/stories/helper-components/TokenBlock/index.d.ts +21 -0
  93. package/dist/stories/helper-components/TokenBlock/index.d.ts.map +1 -0
  94. package/dist/stories/helper-components/TokenBlock/index.styles.d.ts +4 -0
  95. package/dist/stories/helper-components/TokenBlock/index.styles.d.ts.map +1 -0
  96. package/dist/stories/utils/index.d.ts +82 -0
  97. package/dist/stories/utils/index.d.ts.map +1 -0
  98. package/dist/ui/core/colors/colorTypes.d.ts +1 -0
  99. package/dist/ui/core/colors/colorTypes.d.ts.map +1 -0
  100. package/dist/ui/core/colors/index.d.ts +1 -0
  101. package/dist/ui/core/colors/index.d.ts.map +1 -0
  102. package/dist/ui/core/icons/iconTags.d.ts +409 -0
  103. package/dist/ui/core/icons/iconTags.d.ts.map +1 -0
  104. package/dist/ui/core/icons/iconTypes.d.ts +399 -0
  105. package/dist/ui/core/icons/iconTypes.d.ts.map +1 -0
  106. package/dist/{core → ui/core}/icons/index.d.ts +1 -1
  107. package/dist/ui/core/icons/index.d.ts.map +1 -0
  108. package/dist/ui/core/index.d.ts +7 -0
  109. package/dist/ui/core/index.d.ts.map +1 -0
  110. package/dist/ui/core/miscellaneous-choices/index.d.ts.map +1 -0
  111. package/dist/ui/core/miscellaneous-choices/miscellaneousTypes.d.ts.map +1 -0
  112. package/dist/ui/core/sizes/index.d.ts.map +1 -0
  113. package/dist/ui/core/sizes/sizeTypes.d.ts +3 -0
  114. package/dist/ui/core/sizes/sizeTypes.d.ts.map +1 -0
  115. package/dist/ui/elements/Alert/Alert.d.ts +8 -0
  116. package/dist/ui/elements/Alert/Alert.d.ts.map +1 -0
  117. package/dist/ui/elements/Alert/Alert.styles.d.ts +7 -0
  118. package/dist/ui/elements/Alert/Alert.styles.d.ts.map +1 -0
  119. package/dist/ui/elements/Alert/Alert.test.d.ts +2 -0
  120. package/dist/ui/elements/Alert/Alert.test.d.ts.map +1 -0
  121. package/dist/ui/elements/Alert/constants.d.ts +140 -0
  122. package/dist/ui/elements/Alert/constants.d.ts.map +1 -0
  123. package/dist/ui/elements/Alert/index.d.ts +7 -0
  124. package/dist/ui/elements/Alert/index.d.ts.map +1 -0
  125. package/dist/ui/elements/Alert/types.d.ts +125 -0
  126. package/dist/ui/elements/Alert/types.d.ts.map +1 -0
  127. package/dist/ui/elements/Alert/utils.d.ts +1 -0
  128. package/dist/ui/elements/Alert/utils.d.ts.map +1 -0
  129. package/dist/ui/elements/AlertBanner/AlertBanner.d.ts +9 -0
  130. package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -0
  131. package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts +4 -0
  132. package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts.map +1 -0
  133. package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts +2 -0
  134. package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts.map +1 -0
  135. package/dist/ui/elements/AlertBanner/constants.d.ts +140 -0
  136. package/dist/ui/elements/AlertBanner/constants.d.ts.map +1 -0
  137. package/dist/ui/elements/AlertBanner/index.d.ts +7 -0
  138. package/dist/ui/elements/AlertBanner/index.d.ts.map +1 -0
  139. package/dist/ui/elements/AlertBanner/types.d.ts +111 -0
  140. package/dist/ui/elements/AlertBanner/types.d.ts.map +1 -0
  141. package/dist/ui/elements/AlertBanner/utils.d.ts +105 -0
  142. package/dist/ui/elements/AlertBanner/utils.d.ts.map +1 -0
  143. package/dist/ui/elements/Button/Button.d.ts +11 -0
  144. package/dist/ui/elements/Button/Button.d.ts.map +1 -0
  145. package/dist/ui/elements/Button/Button.styles.d.ts +4 -0
  146. package/dist/ui/elements/Button/Button.styles.d.ts.map +1 -0
  147. package/dist/ui/elements/Button/Button.test.d.ts +2 -0
  148. package/dist/ui/elements/Button/Button.test.d.ts.map +1 -0
  149. package/dist/ui/elements/Button/ButtonGroup.d.ts +11 -0
  150. package/dist/ui/elements/Button/ButtonGroup.d.ts.map +1 -0
  151. package/dist/ui/elements/Button/ButtonGroup.styles.d.ts +2 -0
  152. package/dist/ui/elements/Button/ButtonGroup.styles.d.ts.map +1 -0
  153. package/dist/ui/elements/Button/IconButton.d.ts +8 -0
  154. package/dist/ui/elements/Button/IconButton.d.ts.map +1 -0
  155. package/dist/ui/elements/Button/IconButton.test.d.ts +2 -0
  156. package/dist/ui/elements/Button/IconButton.test.d.ts.map +1 -0
  157. package/dist/ui/elements/Button/constants.d.ts +54 -0
  158. package/dist/ui/elements/Button/constants.d.ts.map +1 -0
  159. package/dist/ui/elements/Button/index.d.ts +9 -0
  160. package/dist/ui/elements/Button/index.d.ts.map +1 -0
  161. package/dist/ui/elements/Button/types.d.ts +226 -0
  162. package/dist/ui/elements/Button/types.d.ts.map +1 -0
  163. package/dist/ui/elements/Button/utils.d.ts +1 -0
  164. package/dist/ui/elements/Button/utils.d.ts.map +1 -0
  165. package/dist/ui/elements/Icon/Icon.d.ts +48 -0
  166. package/dist/ui/elements/Icon/Icon.d.ts.map +1 -0
  167. package/dist/ui/elements/Icon/Icon.styles.d.ts +5 -0
  168. package/dist/ui/elements/Icon/Icon.styles.d.ts.map +1 -0
  169. package/dist/ui/elements/Icon/index.d.ts +3 -0
  170. package/dist/ui/elements/Icon/index.d.ts.map +1 -0
  171. package/dist/ui/elements/Icon/types.d.ts +74 -0
  172. package/dist/ui/elements/Icon/types.d.ts.map +1 -0
  173. package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts +43 -0
  174. package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts.map +1 -0
  175. package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts +2 -0
  176. package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts.map +1 -0
  177. package/dist/ui/elements/Modal/Modal.d.ts +21 -0
  178. package/dist/ui/elements/Modal/Modal.d.ts.map +1 -0
  179. package/dist/ui/elements/Modal/Modal.styles.d.ts +18 -0
  180. package/dist/ui/elements/Modal/Modal.styles.d.ts.map +1 -0
  181. package/dist/ui/elements/Modal/Modal.test.d.ts +2 -0
  182. package/dist/ui/elements/Modal/Modal.test.d.ts.map +1 -0
  183. package/dist/ui/elements/Modal/MultiStepModal/index.d.ts +46 -0
  184. package/dist/ui/elements/Modal/MultiStepModal/index.d.ts.map +1 -0
  185. package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts +2 -0
  186. package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts.map +1 -0
  187. package/dist/ui/elements/Modal/constants.d.ts +1 -0
  188. package/dist/ui/elements/Modal/constants.d.ts.map +1 -0
  189. package/dist/ui/elements/Modal/index.d.ts +5 -0
  190. package/dist/ui/elements/Modal/index.d.ts.map +1 -0
  191. package/dist/ui/elements/Modal/types.d.ts +312 -0
  192. package/dist/ui/elements/Modal/types.d.ts.map +1 -0
  193. package/dist/ui/elements/Modal/utils.d.ts +1 -0
  194. package/dist/ui/elements/Modal/utils.d.ts.map +1 -0
  195. package/dist/ui/elements/MultiSelectDropdown/DropdownListItem.d.ts +4 -0
  196. package/dist/ui/elements/MultiSelectDropdown/DropdownListItem.d.ts.map +1 -0
  197. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts +5 -0
  198. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -0
  199. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.d.ts +14 -0
  200. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.d.ts.map +1 -0
  201. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.d.ts +2 -0
  202. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.d.ts.map +1 -0
  203. package/dist/ui/elements/MultiSelectDropdown/index.d.ts +3 -0
  204. package/dist/ui/elements/MultiSelectDropdown/index.d.ts.map +1 -0
  205. package/dist/ui/elements/MultiSelectDropdown/types.d.ts +70 -0
  206. package/dist/ui/elements/MultiSelectDropdown/types.d.ts.map +1 -0
  207. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts +5 -0
  208. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts.map +1 -0
  209. package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts +10 -0
  210. package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts.map +1 -0
  211. package/dist/ui/elements/SelectDropdown/SelectDropdown.test.d.ts +2 -0
  212. package/dist/ui/elements/SelectDropdown/SelectDropdown.test.d.ts.map +1 -0
  213. package/dist/ui/elements/SelectDropdown/index.d.ts +3 -0
  214. package/dist/ui/elements/SelectDropdown/index.d.ts.map +1 -0
  215. package/dist/ui/elements/SelectDropdown/types.d.ts +59 -0
  216. package/dist/ui/elements/SelectDropdown/types.d.ts.map +1 -0
  217. package/dist/ui/elements/Table/Table.d.ts +47 -0
  218. package/dist/ui/elements/Table/Table.d.ts.map +1 -0
  219. package/dist/ui/elements/Table/Table.styles.d.ts +8 -0
  220. package/dist/ui/elements/Table/Table.styles.d.ts.map +1 -0
  221. package/dist/ui/elements/Table/Table.test.d.ts +2 -0
  222. package/dist/ui/elements/Table/Table.test.d.ts.map +1 -0
  223. package/dist/ui/elements/Table/constants.d.ts +1 -0
  224. package/dist/ui/elements/Table/constants.d.ts.map +1 -0
  225. package/dist/ui/elements/Table/index.d.ts +3 -0
  226. package/dist/ui/elements/Table/index.d.ts.map +1 -0
  227. package/dist/ui/elements/Table/types.d.ts +223 -0
  228. package/dist/ui/elements/Table/types.d.ts.map +1 -0
  229. package/dist/ui/elements/Table/utils.d.ts +1 -0
  230. package/dist/ui/elements/Table/utils.d.ts.map +1 -0
  231. package/dist/ui/elements/Typography/Typography.d.ts +36 -0
  232. package/dist/ui/elements/Typography/Typography.d.ts.map +1 -0
  233. package/dist/ui/elements/Typography/Typography.styles.d.ts +6 -0
  234. package/dist/ui/elements/Typography/Typography.styles.d.ts.map +1 -0
  235. package/dist/ui/elements/Typography/constants.d.ts +22 -0
  236. package/dist/ui/elements/Typography/constants.d.ts.map +1 -0
  237. package/dist/ui/elements/Typography/index.d.ts +5 -0
  238. package/dist/ui/elements/Typography/index.d.ts.map +1 -0
  239. package/dist/ui/elements/Typography/types.d.ts +50 -0
  240. package/dist/ui/elements/Typography/types.d.ts.map +1 -0
  241. package/dist/ui/elements/Typography/utils.d.ts +2 -0
  242. package/dist/ui/elements/Typography/utils.d.ts.map +1 -0
  243. package/dist/ui/helpers/classNameBuilders.d.ts.map +1 -0
  244. package/dist/ui/helpers/index.d.ts +3 -0
  245. package/dist/ui/helpers/index.d.ts.map +1 -0
  246. package/dist/ui/index.d.ts +11 -0
  247. package/dist/ui/index.d.ts.map +1 -0
  248. package/dist/{init → ui/init}/GrauityInit.d.ts +15 -3
  249. package/dist/ui/init/GrauityInit.d.ts.map +1 -0
  250. package/dist/ui/init/index.d.ts.map +1 -0
  251. package/dist/ui/themes/GlobalStyle.d.ts +5 -0
  252. package/dist/ui/themes/GlobalStyle.d.ts.map +1 -0
  253. package/dist/ui/themes/ThemeContext.d.ts +24 -0
  254. package/dist/ui/themes/ThemeContext.d.ts.map +1 -0
  255. package/dist/ui/themes/constants.d.ts +6 -0
  256. package/dist/ui/themes/constants.d.ts.map +1 -0
  257. package/dist/ui/themes/darkThemeConstants.d.ts +70 -0
  258. package/dist/ui/themes/darkThemeConstants.d.ts.map +1 -0
  259. package/dist/ui/themes/lightThemeConstants.d.ts +70 -0
  260. package/dist/ui/themes/lightThemeConstants.d.ts.map +1 -0
  261. package/dist/ui/themes/tokens.d.ts +1 -0
  262. package/dist/ui/themes/tokens.d.ts.map +1 -0
  263. package/dist/ui/themes/types.d.ts +73 -0
  264. package/dist/ui/themes/types.d.ts.map +1 -0
  265. package/package.json +59 -28
  266. package/ui/core/colors/colorTypes.ts +2 -20
  267. package/ui/core/colors/index.ts +23 -23
  268. package/ui/core/icons/iconTags.ts +1063 -59
  269. package/ui/core/icons/iconTypes.ts +837 -84
  270. package/ui/core/icons/index.ts +1 -3
  271. package/ui/core/index.ts +7 -10
  272. package/ui/core/sizes/sizeTypes.ts +1 -0
  273. package/ui/css/fonts.scss +0 -8
  274. package/ui/css/index.scss +0 -8
  275. package/ui/css/reset.scss +2 -5
  276. package/ui/elements/Alert/Alert.styles.ts +66 -0
  277. package/ui/elements/Alert/Alert.test.tsx +81 -0
  278. package/ui/elements/Alert/Alert.tsx +153 -0
  279. package/ui/elements/Alert/constants.ts +169 -0
  280. package/ui/elements/Alert/index.ts +6 -0
  281. package/ui/elements/Alert/types.ts +150 -0
  282. package/ui/elements/AlertBanner/AlertBanner.styles.ts +35 -0
  283. package/ui/elements/AlertBanner/AlertBanner.test.tsx +70 -0
  284. package/ui/elements/AlertBanner/AlertBanner.tsx +137 -0
  285. package/ui/elements/AlertBanner/constants.ts +179 -0
  286. package/ui/elements/AlertBanner/index.ts +6 -0
  287. package/ui/elements/AlertBanner/types.ts +133 -0
  288. package/ui/elements/AlertBanner/utils.ts +52 -0
  289. package/ui/elements/Button/Button.styles.ts +88 -0
  290. package/ui/elements/Button/Button.test.tsx +78 -0
  291. package/ui/elements/Button/Button.tsx +134 -0
  292. package/ui/elements/Button/ButtonGroup.styles.ts +7 -0
  293. package/ui/elements/Button/ButtonGroup.tsx +21 -0
  294. package/ui/elements/Button/IconButton.test.tsx +39 -0
  295. package/ui/elements/Button/IconButton.tsx +118 -0
  296. package/ui/elements/Button/constants.ts +304 -0
  297. package/ui/elements/Button/index.ts +8 -0
  298. package/ui/elements/Button/types.ts +282 -0
  299. package/ui/elements/Button/utils.ts +0 -0
  300. package/ui/elements/Icon/Icon.styles.ts +99 -0
  301. package/ui/elements/Icon/Icon.tsx +17 -107
  302. package/ui/elements/Icon/index.ts +1 -2
  303. package/ui/elements/Icon/types.ts +96 -0
  304. package/ui/elements/Modal/ConfirmationDialog/index.test.tsx +116 -0
  305. package/ui/elements/Modal/ConfirmationDialog/index.tsx +151 -0
  306. package/ui/elements/Modal/Modal.styles.ts +230 -0
  307. package/ui/elements/Modal/Modal.test.tsx +117 -0
  308. package/ui/elements/Modal/Modal.tsx +179 -0
  309. package/ui/elements/Modal/MultiStepModal/index.test.tsx +116 -0
  310. package/ui/elements/Modal/MultiStepModal/index.tsx +184 -0
  311. package/ui/elements/Modal/constants.ts +0 -0
  312. package/ui/elements/Modal/index.ts +4 -0
  313. package/ui/elements/Modal/types.ts +379 -0
  314. package/ui/elements/Modal/utils.tsx +0 -0
  315. package/ui/elements/MultiSelectDropdown/DropdownListItem.tsx +33 -0
  316. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.ts +127 -0
  317. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.tsx +224 -0
  318. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.tsx +156 -0
  319. package/ui/elements/MultiSelectDropdown/index.ts +2 -0
  320. package/ui/elements/MultiSelectDropdown/types.ts +87 -0
  321. package/ui/elements/SelectDropdown/SelectDropdown.styles.ts +99 -0
  322. package/ui/elements/SelectDropdown/SelectDropdown.test.tsx +86 -0
  323. package/ui/elements/SelectDropdown/SelectDropdown.tsx +94 -0
  324. package/ui/elements/SelectDropdown/index.tsx +2 -0
  325. package/ui/elements/SelectDropdown/types.ts +73 -0
  326. package/ui/elements/Table/Table.styles.ts +178 -0
  327. package/ui/elements/Table/Table.test.tsx +72 -0
  328. package/ui/elements/Table/Table.tsx +118 -0
  329. package/ui/elements/Table/constants.ts +0 -0
  330. package/ui/elements/Table/index.ts +2 -0
  331. package/ui/elements/Table/types.ts +270 -0
  332. package/ui/elements/Table/utils.ts +0 -0
  333. package/ui/elements/Typography/Typography.styles.ts +29 -0
  334. package/ui/elements/Typography/Typography.tsx +70 -0
  335. package/ui/elements/Typography/constants.ts +292 -0
  336. package/ui/elements/Typography/index.ts +9 -0
  337. package/ui/elements/Typography/types.ts +116 -0
  338. package/ui/elements/Typography/utils.ts +11 -0
  339. package/ui/fonts/grauity-icons.eot +0 -0
  340. package/ui/fonts/grauity-icons.ttf +0 -0
  341. package/ui/fonts/grauity-icons.woff +0 -0
  342. package/ui/fonts/grauity-icons.woff2 +0 -0
  343. package/ui/helpers/index.ts +1 -7
  344. package/ui/index.ts +42 -3
  345. package/ui/init/GrauityInit.tsx +30 -7
  346. package/ui/init/index.ts +0 -1
  347. package/ui/themes/GlobalStyle.ts +273 -0
  348. package/ui/themes/ThemeContext.tsx +140 -0
  349. package/ui/themes/constants.ts +8 -0
  350. package/ui/themes/darkThemeConstants.ts +73 -0
  351. package/ui/themes/lightThemeConstants.ts +73 -0
  352. package/ui/themes/tokens.ts +0 -0
  353. package/ui/themes/types.ts +77 -0
  354. package/dist/core/colors/colorTypes.d.ts +0 -3
  355. package/dist/core/colors/colorTypes.d.ts.map +0 -1
  356. package/dist/core/colors/index.d.ts +0 -14
  357. package/dist/core/colors/index.d.ts.map +0 -1
  358. package/dist/core/icons/iconTags.d.ts +0 -158
  359. package/dist/core/icons/iconTags.d.ts.map +0 -1
  360. package/dist/core/icons/iconTypes.d.ts +0 -148
  361. package/dist/core/icons/iconTypes.d.ts.map +0 -1
  362. package/dist/core/icons/index.d.ts.map +0 -1
  363. package/dist/core/index.d.ts +0 -9
  364. package/dist/core/index.d.ts.map +0 -1
  365. package/dist/core/miscellaneous-choices/index.d.ts.map +0 -1
  366. package/dist/core/miscellaneous-choices/miscellaneousTypes.d.ts.map +0 -1
  367. package/dist/core/sizes/index.d.ts.map +0 -1
  368. package/dist/core/sizes/sizeTypes.d.ts +0 -3
  369. package/dist/core/sizes/sizeTypes.d.ts.map +0 -1
  370. package/dist/elements/Icon/Icon.d.ts +0 -115
  371. package/dist/elements/Icon/Icon.d.ts.map +0 -1
  372. package/dist/elements/Icon/index.d.ts +0 -3
  373. package/dist/elements/Icon/index.d.ts.map +0 -1
  374. package/dist/elements/index.d.ts +0 -3
  375. package/dist/elements/index.d.ts.map +0 -1
  376. package/dist/helpers/classNameBuilders.d.ts.map +0 -1
  377. package/dist/helpers/getElementTypeFromProps.d.ts +0 -14
  378. package/dist/helpers/getElementTypeFromProps.d.ts.map +0 -1
  379. package/dist/helpers/index.d.ts +0 -4
  380. package/dist/helpers/index.d.ts.map +0 -1
  381. package/dist/init/GrauityInit.d.ts.map +0 -1
  382. package/dist/init/index.d.ts.map +0 -1
  383. package/ui/css/colors.scss +0 -131
  384. package/ui/css/icons.scss +0 -96
  385. package/ui/elements/index.ts +0 -2
  386. package/ui/helpers/getElementTypeFromProps.ts +0 -32
  387. /package/dist/{core → ui/core}/miscellaneous-choices/index.d.ts +0 -0
  388. /package/dist/{core → ui/core}/miscellaneous-choices/miscellaneousTypes.d.ts +0 -0
  389. /package/dist/{core → ui/core}/sizes/index.d.ts +0 -0
  390. /package/dist/{helpers → ui/helpers}/classNameBuilders.d.ts +0 -0
  391. /package/dist/{init → ui/init}/index.d.ts +0 -0
  392. /package/ui/{css/sizes.scss → elements/Alert/utils.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,150 +1,399 @@
1
- import * as React from "react";
2
- type grauityIconSizeName = '4' | '8' | '12' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
3
- type grauityIconColorName = 'white' | 'black' | 'grey' | 'blue' | 'red' | 'green' | 'orange' | 'yellow' | 'purple';
4
- type grauityIconName = 'exclamation-circle' | 'exclamation-triangle' | 'info-circle' | 'question-circle' | 'code-alt' | 'code' | 'terminal' | 'desktop' | 'gamepad' | 'lamp' | 'laptop' | 'mobile' | 'archive' | 'bookmark-fill' | 'bookmark' | 'file-alt' | 'file' | 'folder-open' | 'folder' | 'label-fill' | 'label' | 'note' | 'pen' | 'pin' | 'mic-off' | 'mic' | 'pause-circle-fill' | 'pause-circle' | 'pause' | 'play-circle-fill' | 'play-circle' | 'play' | 'video-off' | 'video' | 'volume-maximum' | 'volume-minimum' | 'volume-mute' | 'heart-fill' | 'heart' | 'lock-close' | 'lock-open' | 'message-circle' | 'message-double-question' | 'message-square-info' | 'message-square' | 'milestone' | 'quiz' | 'smiley' | 'spark-fill' | 'spark' | 'sparkle' | 'target' | 'check-badge' | 'crown' | 'flag' | 'gift' | 'medal' | 'star-fill' | 'star-half-fill' | 'star' | 'trophy' | 'arrow-double' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'bin' | 'call-end' | 'call-start' | 'caret-double' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'check-circle-fill' | 'check-circle' | 'check-square-fill' | 'check-square' | 'check' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'close-circle-fill' | 'close-circle' | 'close-square-fill' | 'close-square' | 'close' | 'download' | 'forward' | 'grip-hortizontal' | 'grip-vertical' | 'growth-down' | 'growth-up' | 'home' | 'kebab-horizontal' | 'kebab-vertical' | 'link' | 'list' | 'load' | 'maximize' | 'menu-grid' | 'menu' | 'minimize' | 'minus-circle-fill' | 'minus-circle' | 'minus-square-fill' | 'minus-square' | 'moon' | 'new-tab' | 'plus-circle-fill' | 'plus-circle' | 'plus-square-fill' | 'plus-square' | 'plus' | 'refresh' | 'reply' | 'screenshare-start' | 'screenshare-stop' | 'search' | 'settings' | 'signin' | 'signout' | 'square' | 'sun' | 'upload' | 'bell' | 'calender-check' | 'calender-plus' | 'calender' | 'clock' | 'rewatch' | 'stopwatch' | 'bot' | 'person-check' | 'person-plus' | 'person' | 'users';
1
+ import React, { ReactNode } from "react";
2
+ import PropTypes from "prop-types";
5
3
  export const ICON_TAGS: {
4
+ "exclamation-circle-filled": string[];
6
5
  "exclamation-circle": string[];
6
+ "exclamation-triangle-filled": string[];
7
7
  "exclamation-triangle": string[];
8
+ "info-circle-filled": string[];
8
9
  "info-circle": string[];
10
+ "question-circle-filled": string[];
9
11
  "question-circle": string[];
12
+ "code-alt-filled": string[];
10
13
  "code-alt": string[];
14
+ "code-filled": string[];
11
15
  code: string[];
16
+ "project-filled": string[];
17
+ project: string[];
18
+ "terminal-filled": string[];
12
19
  terminal: string[];
20
+ "desktop-filled": string[];
13
21
  desktop: string[];
22
+ "gamepad-filled": string[];
14
23
  gamepad: string[];
24
+ "lamp-filled": string[];
15
25
  lamp: string[];
26
+ "laptop-filled": string[];
16
27
  laptop: string[];
28
+ "mobile-filled": string[];
17
29
  mobile: string[];
30
+ "archive-filled": string[];
18
31
  archive: string[];
19
- "bookmark-fill": string[];
32
+ "bookmark-filled": string[];
20
33
  bookmark: string[];
34
+ "file-alt-filled": string[];
21
35
  "file-alt": string[];
36
+ "file-filled": string[];
22
37
  file: string[];
38
+ "folder-filled": string[];
39
+ "folder-open-filled": string[];
23
40
  "folder-open": string[];
24
41
  folder: string[];
25
- "label-fill": string[];
42
+ "label-filled": string[];
26
43
  label: string[];
44
+ "note-filled": string[];
27
45
  note: string[];
46
+ "pen-filled": string[];
28
47
  pen: string[];
48
+ "pin-filled": string[];
29
49
  pin: string[];
30
- "mic-off": string[];
50
+ "headphone-filled": string[];
51
+ "headphone-mic-filled": string[];
52
+ "headphone-mic": string[];
53
+ headphone: string[];
54
+ "mic-filled": string[];
31
55
  mic: string[];
32
- "pause-circle-fill": string[];
56
+ "micmute-filled": string[];
57
+ micmute: string[];
58
+ "pause-circle-filled": string[];
33
59
  "pause-circle": string[];
60
+ "pause-filled": string[];
34
61
  pause: string[];
35
- "play-circle-fill": string[];
62
+ "play-circle-filled": string[];
36
63
  "play-circle": string[];
64
+ "play-filled": string[];
65
+ "play-rectangle-filled": string[];
66
+ "play-rectangle": string[];
37
67
  play: string[];
68
+ "video-filled": string[];
69
+ "video-off-filled": string[];
38
70
  "video-off": string[];
39
71
  video: string[];
72
+ "volume-maximum-filled": string[];
40
73
  "volume-maximum": string[];
74
+ "volume-minimum-filled": string[];
41
75
  "volume-minimum": string[];
76
+ "volume-mute-filled": string[];
42
77
  "volume-mute": string[];
43
- "heart-fill": string[];
78
+ "comment-filled": string[];
79
+ comment: string[];
80
+ "connector-filled": string[];
81
+ connector: string[];
82
+ "doubt-alt2-filled": string[];
83
+ "doubt-alt2": string[];
84
+ "doubt-filled": string[];
85
+ "doubt-message-filled": string[];
86
+ "doubt-message": string[];
87
+ doubt: string[];
88
+ "hearing-filled": string[];
89
+ hearing: string[];
90
+ "heart-filled": string[];
44
91
  heart: string[];
45
- "lock-close": string[];
92
+ "lock-filled": string[];
93
+ "lock-open-filled": string[];
46
94
  "lock-open": string[];
47
- "message-circle": string[];
48
- "message-double-question": string[];
49
- "message-square-info": string[];
50
- "message-square": string[];
95
+ lock: string[];
96
+ "message-filled": string[];
97
+ "message-info-filled": string[];
98
+ "message-info": string[];
99
+ message: string[];
100
+ "milestone-filled": string[];
51
101
  milestone: string[];
52
- quiz: string[];
102
+ "scholar-hat-filled": string[];
103
+ "scholar-hat": string[];
104
+ "smiley-bad-filled": string[];
105
+ "smiley-bad": string[];
106
+ "smiley-filled": string[];
107
+ "smiley-happy-filled": string[];
108
+ "smiley-happy": string[];
109
+ "smiley-neutral-filled": string[];
110
+ "smiley-neutral": string[];
111
+ "smiley-sad-filled": string[];
112
+ "smiley-sad": string[];
113
+ "smiley-very-bad-filled": string[];
114
+ "smiley-very-bad": string[];
115
+ "smiley-very-happy-filled": string[];
116
+ "smiley-very-happy": string[];
53
117
  smiley: string[];
54
- "spark-fill": string[];
118
+ "spark-filled": string[];
55
119
  spark: string[];
120
+ "sparkle-filled": string[];
56
121
  sparkle: string[];
122
+ "target-filled": string[];
57
123
  target: string[];
124
+ "check-badge-filled": string[];
58
125
  "check-badge": string[];
126
+ "crown-filled": string[];
59
127
  crown: string[];
128
+ "flag-filled": string[];
60
129
  flag: string[];
130
+ "gift-filled": string[];
61
131
  gift: string[];
132
+ "leaderboard-filled": string[];
133
+ leaderboard: string[];
134
+ "medal-filled": string[];
62
135
  medal: string[];
63
- "star-fill": string[];
64
- "star-half-fill": string[];
136
+ "star-filled": string[];
65
137
  star: string[];
138
+ "trophy-filled": string[];
66
139
  trophy: string[];
140
+ "arrow-double-filled": string[];
67
141
  "arrow-double": string[];
142
+ "arrow-down-filled": string[];
143
+ "arrow-down-left-filled": string[];
144
+ "arrow-down-left": string[];
145
+ "arrow-down-right-filled": string[];
146
+ "arrow-down-right": string[];
68
147
  "arrow-down": string[];
148
+ "arrow-left-filled": string[];
69
149
  "arrow-left": string[];
150
+ "arrow-right-filled": string[];
70
151
  "arrow-right": string[];
152
+ "arrow-up-filled": string[];
153
+ "arrow-up-left-filled": string[];
154
+ "arrow-up-left": string[];
155
+ "arrow-up-right-filled": string[];
156
+ "arrow-up-right": string[];
71
157
  "arrow-up": string[];
158
+ "ban-filled": string[];
159
+ ban: string[];
160
+ "bin-filled": string[];
72
161
  bin: string[];
162
+ "book-alt-filled": string[];
163
+ "book-alt": string[];
164
+ "book-alt2-filled": string[];
165
+ "book-alt2": string[];
166
+ "book-alt3-filled": string[];
167
+ "book-alt3": string[];
168
+ "book-filled": string[];
169
+ book: string[];
170
+ "briefcase-alt2-filled": string[];
171
+ "briefcase-alt2": string[];
172
+ "briefcase-filled": string[];
173
+ briefcase: string[];
174
+ "broadcast-filled": string[];
175
+ broadcast: string[];
176
+ "bug-filled": string[];
177
+ bug: string[];
178
+ "bulb-filled": string[];
179
+ bulb: string[];
180
+ "call-end-filled": string[];
73
181
  "call-end": string[];
182
+ "call-start-filled": string[];
74
183
  "call-start": string[];
184
+ "camera-filled": string[];
185
+ camera: string[];
186
+ "caret-double-filled": string[];
75
187
  "caret-double": string[];
188
+ "caret-down-filled": string[];
76
189
  "caret-down": string[];
190
+ "caret-left-filled": string[];
77
191
  "caret-left": string[];
192
+ "caret-right-filled": string[];
78
193
  "caret-right": string[];
194
+ "caret-up-filled": string[];
79
195
  "caret-up": string[];
80
- "check-circle-fill": string[];
196
+ "check-circle-filled": string[];
81
197
  "check-circle": string[];
82
- "check-square-fill": string[];
198
+ "check-filled": string[];
199
+ "check-square-filled": string[];
83
200
  "check-square": string[];
84
201
  check: string[];
85
- "chevron-double-down": string[];
86
- "chevron-double-left": string[];
87
- "chevron-double-right": string[];
88
- "chevron-double-up": string[];
202
+ "chevron-down-double-filled": string[];
203
+ "chevron-down-double": string[];
204
+ "chevron-down-filled": string[];
89
205
  "chevron-down": string[];
206
+ "chevron-left-double-filled": string[];
207
+ "chevron-left-double": string[];
208
+ "chevron-left-filled": string[];
90
209
  "chevron-left": string[];
210
+ "chevron-right-double-filled": string[];
211
+ "chevron-right-double": string[];
212
+ "chevron-right-filled": string[];
91
213
  "chevron-right": string[];
214
+ "chevron-up-double-filled": string[];
215
+ "chevron-up-double": string[];
216
+ "chevron-up-filled": string[];
92
217
  "chevron-up": string[];
218
+ "circle-filled": string[];
93
219
  circle: string[];
94
- "close-circle-fill": string[];
220
+ "clock-alarm-filled": string[];
221
+ "clock-alarm": string[];
222
+ "close-circle-filled": string[];
95
223
  "close-circle": string[];
96
- "close-square-fill": string[];
224
+ "close-filled": string[];
225
+ "close-square-filled": string[];
97
226
  "close-square": string[];
98
227
  close: string[];
228
+ "compass-filled": string[];
229
+ compass: string[];
230
+ "diamond-filled": string[];
231
+ diamond: string[];
232
+ "double-check-filled": string[];
233
+ "double-check": string[];
234
+ "download-filled": string[];
99
235
  download: string[];
236
+ "email-alt-filled": string[];
237
+ "email-alt": string[];
238
+ "email-filled": string[];
239
+ email: string[];
240
+ "filter-filled": string[];
241
+ filter: string[];
242
+ "floppy-filled": string[];
243
+ floppy: string[];
244
+ "forward-filled": string[];
100
245
  forward: string[];
246
+ "gear-filled": string[];
247
+ gear: string[];
248
+ "git-commit-filled": string[];
249
+ "git-commit": string[];
250
+ "globe-filled": string[];
251
+ globe: string[];
252
+ "grip-hortizontal-filled": string[];
101
253
  "grip-hortizontal": string[];
254
+ "grip-vertical-filled": string[];
102
255
  "grip-vertical": string[];
256
+ "growth-down-filled": string[];
103
257
  "growth-down": string[];
258
+ "growth-up-filled": string[];
104
259
  "growth-up": string[];
260
+ "help-filled": string[];
261
+ help: string[];
262
+ "hold-filled": string[];
263
+ hold: string[];
264
+ "home-filled": string[];
105
265
  home: string[];
266
+ "hourglass-filled": string[];
267
+ hourglass: string[];
268
+ "kebab-horizontal-filled": string[];
106
269
  "kebab-horizontal": string[];
270
+ "kebab-vertical-filled": string[];
107
271
  "kebab-vertical": string[];
272
+ "link-filled": string[];
108
273
  link: string[];
274
+ "list-checked-filled": string[];
275
+ "list-checked": string[];
276
+ "list-filled": string[];
109
277
  list: string[];
278
+ "load-filled": string[];
110
279
  load: string[];
280
+ "loudspeaker-filled": string[];
281
+ loudspeaker: string[];
282
+ "map-pin-alt1-filled": string[];
283
+ "map-pin-alt1": string[];
284
+ "map-pin-alt2-filled": string[];
285
+ "map-pin-alt2": string[];
286
+ "map-pin-filled": string[];
287
+ "map-pin": string[];
288
+ "maximize-filled": string[];
111
289
  maximize: string[];
290
+ "menu-alt2-filled": string[];
291
+ "menu-alt2": string[];
292
+ "menu-filled": string[];
293
+ "menu-grid-filled": string[];
112
294
  "menu-grid": string[];
113
295
  menu: string[];
296
+ "microchip-filled": string[];
297
+ microchip: string[];
298
+ "minimize-filled": string[];
114
299
  minimize: string[];
115
- "minus-circle-fill": string[];
300
+ "minus-circle-filled": string[];
116
301
  "minus-circle": string[];
117
- "minus-square-fill": string[];
302
+ "minus-square-filled": string[];
118
303
  "minus-square": string[];
304
+ "moon-filled": string[];
119
305
  moon: string[];
306
+ "new-tab-filled": string[];
120
307
  "new-tab": string[];
121
- "plus-circle-fill": string[];
308
+ "paper-clip-filled": string[];
309
+ "paper-clip": string[];
310
+ "plus-circle-filled": string[];
122
311
  "plus-circle": string[];
123
- "plus-square-fill": string[];
312
+ "plus-filled": string[];
313
+ "plus-square-filled": string[];
124
314
  "plus-square": string[];
125
315
  plus: string[];
316
+ "printer-filled": string[];
317
+ printer: string[];
318
+ "quiz-filled": string[];
319
+ quiz: string[];
320
+ "refresh-filled": string[];
126
321
  refresh: string[];
322
+ "remove-filled": string[];
323
+ remove: string[];
324
+ "reply-filled": string[];
127
325
  reply: string[];
326
+ "screenshare-start-filled": string[];
128
327
  "screenshare-start": string[];
328
+ "screenshare-stop-filled": string[];
129
329
  "screenshare-stop": string[];
330
+ "search-filled": string[];
130
331
  search: string[];
131
- settings: string[];
332
+ "share-filled": string[];
333
+ share: string[];
334
+ "shield-alert-filled": string[];
335
+ "shield-alert": string[];
336
+ "shield-check-filled": string[];
337
+ "shield-check": string[];
338
+ "shield-filled": string[];
339
+ "shield-lock-filled": string[];
340
+ "shield-lock": string[];
341
+ "shield-x-filled": string[];
342
+ "shield-x": string[];
343
+ shield: string[];
344
+ "sidebar-left-filled": string[];
345
+ "sidebar-left": string[];
346
+ "sidebar-right-filled": string[];
347
+ "sidebar-right": string[];
348
+ "signin-filled": string[];
132
349
  signin: string[];
350
+ "signout-filled": string[];
133
351
  signout: string[];
352
+ "slider-filled": string[];
353
+ slider: string[];
354
+ "square-filled": string[];
134
355
  square: string[];
356
+ "sticky-note-filled": string[];
357
+ "sticky-note": string[];
358
+ "study-plan-filled": string[];
359
+ "study-plan": string[];
360
+ "sun-filled": string[];
135
361
  sun: string[];
362
+ "thumbs-down-filled": string[];
363
+ "thumbs-down": string[];
364
+ "thumbs-up-filled": string[];
365
+ "thumbs-up": string[];
366
+ "thunder-filled": string[];
367
+ thunder: string[];
368
+ "upload-filled": string[];
136
369
  upload: string[];
370
+ "wrench-filled": string[];
371
+ wrench: string[];
372
+ "bell-filled": string[];
137
373
  bell: string[];
374
+ "calender-check-filled": string[];
138
375
  "calender-check": string[];
376
+ "calender-filled": string[];
377
+ "calender-plus-filled": string[];
139
378
  "calender-plus": string[];
140
379
  calender: string[];
380
+ "clock-filled": string[];
141
381
  clock: string[];
382
+ "rewatch-filled": string[];
142
383
  rewatch: string[];
384
+ "stopwatch-filled": string[];
143
385
  stopwatch: string[];
386
+ "bot-filled": string[];
144
387
  bot: string[];
388
+ "person-check-filled": string[];
145
389
  "person-check": string[];
390
+ "person-filled": string[];
391
+ "person-plus-filled": string[];
146
392
  "person-plus": string[];
147
393
  person: string[];
394
+ "user-speak-filled": string[];
395
+ "user-speak": string[];
396
+ "users-filled": string[];
148
397
  users: string[];
149
398
  };
150
399
  export const TAG_ICONS: {
@@ -159,8 +408,10 @@ export const TAG_ICONS: {
159
408
  Time: string[];
160
409
  User: string[];
161
410
  };
411
+ type grauityIconName = 'exclamation-circle-filled' | 'exclamation-circle' | 'exclamation-triangle-filled' | 'exclamation-triangle' | 'info-circle-filled' | 'info-circle' | 'question-circle-filled' | 'question-circle' | 'code-alt-filled' | 'code-alt' | 'code-filled' | 'code' | 'project-filled' | 'project' | 'terminal-filled' | 'terminal' | 'desktop-filled' | 'desktop' | 'gamepad-filled' | 'gamepad' | 'lamp-filled' | 'lamp' | 'laptop-filled' | 'laptop' | 'mobile-filled' | 'mobile' | 'archive-filled' | 'archive' | 'bookmark-filled' | 'bookmark' | 'file-alt-filled' | 'file-alt' | 'file-filled' | 'file' | 'folder-filled' | 'folder-open-filled' | 'folder-open' | 'folder' | 'label-filled' | 'label' | 'note-filled' | 'note' | 'pen-filled' | 'pen' | 'pin-filled' | 'pin' | 'headphone-filled' | 'headphone-mic-filled' | 'headphone-mic' | 'headphone' | 'mic-filled' | 'mic' | 'micmute-filled' | 'micmute' | 'pause-circle-filled' | 'pause-circle' | 'pause-filled' | 'pause' | 'play-circle-filled' | 'play-circle' | 'play-filled' | 'play-rectangle-filled' | 'play-rectangle' | 'play' | 'video-filled' | 'video-off-filled' | 'video-off' | 'video' | 'volume-maximum-filled' | 'volume-maximum' | 'volume-minimum-filled' | 'volume-minimum' | 'volume-mute-filled' | 'volume-mute' | 'comment-filled' | 'comment' | 'connector-filled' | 'connector' | 'doubt-alt2-filled' | 'doubt-alt2' | 'doubt-filled' | 'doubt-message-filled' | 'doubt-message' | 'doubt' | 'hearing-filled' | 'hearing' | 'heart-filled' | 'heart' | 'lock-filled' | 'lock-open-filled' | 'lock-open' | 'lock' | 'message-filled' | 'message-info-filled' | 'message-info' | 'message' | 'milestone-filled' | 'milestone' | 'scholar-hat-filled' | 'scholar-hat' | 'smiley-bad-filled' | 'smiley-bad' | 'smiley-filled' | 'smiley-happy-filled' | 'smiley-happy' | 'smiley-neutral-filled' | 'smiley-neutral' | 'smiley-sad-filled' | 'smiley-sad' | 'smiley-very-bad-filled' | 'smiley-very-bad' | 'smiley-very-happy-filled' | 'smiley-very-happy' | 'smiley' | 'spark-filled' | 'spark' | 'sparkle-filled' | 'sparkle' | 'target-filled' | 'target' | 'check-badge-filled' | 'check-badge' | 'crown-filled' | 'crown' | 'flag-filled' | 'flag' | 'gift-filled' | 'gift' | 'leaderboard-filled' | 'leaderboard' | 'medal-filled' | 'medal' | 'star-filled' | 'star' | 'trophy-filled' | 'trophy' | 'arrow-double-filled' | 'arrow-double' | 'arrow-down-filled' | 'arrow-down-left-filled' | 'arrow-down-left' | 'arrow-down-right-filled' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-filled' | 'arrow-left' | 'arrow-right-filled' | 'arrow-right' | 'arrow-up-filled' | 'arrow-up-left-filled' | 'arrow-up-left' | 'arrow-up-right-filled' | 'arrow-up-right' | 'arrow-up' | 'ban-filled' | 'ban' | 'bin-filled' | 'bin' | 'book-alt-filled' | 'book-alt' | 'book-alt2-filled' | 'book-alt2' | 'book-alt3-filled' | 'book-alt3' | 'book-filled' | 'book' | 'briefcase-alt2-filled' | 'briefcase-alt2' | 'briefcase-filled' | 'briefcase' | 'broadcast-filled' | 'broadcast' | 'bug-filled' | 'bug' | 'bulb-filled' | 'bulb' | 'call-end-filled' | 'call-end' | 'call-start-filled' | 'call-start' | 'camera-filled' | 'camera' | 'caret-double-filled' | 'caret-double' | 'caret-down-filled' | 'caret-down' | 'caret-left-filled' | 'caret-left' | 'caret-right-filled' | 'caret-right' | 'caret-up-filled' | 'caret-up' | 'check-circle-filled' | 'check-circle' | 'check-filled' | 'check-square-filled' | 'check-square' | 'check' | 'chevron-down-double-filled' | 'chevron-down-double' | 'chevron-down-filled' | 'chevron-down' | 'chevron-left-double-filled' | 'chevron-left-double' | 'chevron-left-filled' | 'chevron-left' | 'chevron-right-double-filled' | 'chevron-right-double' | 'chevron-right-filled' | 'chevron-right' | 'chevron-up-double-filled' | 'chevron-up-double' | 'chevron-up-filled' | 'chevron-up' | 'circle-filled' | 'circle' | 'clock-alarm-filled' | 'clock-alarm' | 'close-circle-filled' | 'close-circle' | 'close-filled' | 'close-square-filled' | 'close-square' | 'close' | 'compass-filled' | 'compass' | 'diamond-filled' | 'diamond' | 'double-check-filled' | 'double-check' | 'download-filled' | 'download' | 'email-alt-filled' | 'email-alt' | 'email-filled' | 'email' | 'filter-filled' | 'filter' | 'floppy-filled' | 'floppy' | 'forward-filled' | 'forward' | 'gear-filled' | 'gear' | 'git-commit-filled' | 'git-commit' | 'globe-filled' | 'globe' | 'grip-hortizontal-filled' | 'grip-hortizontal' | 'grip-vertical-filled' | 'grip-vertical' | 'growth-down-filled' | 'growth-down' | 'growth-up-filled' | 'growth-up' | 'help-filled' | 'help' | 'hold-filled' | 'hold' | 'home-filled' | 'home' | 'hourglass-filled' | 'hourglass' | 'kebab-horizontal-filled' | 'kebab-horizontal' | 'kebab-vertical-filled' | 'kebab-vertical' | 'link-filled' | 'link' | 'list-checked-filled' | 'list-checked' | 'list-filled' | 'list' | 'load-filled' | 'load' | 'loudspeaker-filled' | 'loudspeaker' | 'map-pin-alt1-filled' | 'map-pin-alt1' | 'map-pin-alt2-filled' | 'map-pin-alt2' | 'map-pin-filled' | 'map-pin' | 'maximize-filled' | 'maximize' | 'menu-alt2-filled' | 'menu-alt2' | 'menu-filled' | 'menu-grid-filled' | 'menu-grid' | 'menu' | 'microchip-filled' | 'microchip' | 'minimize-filled' | 'minimize' | 'minus-circle-filled' | 'minus-circle' | 'minus-square-filled' | 'minus-square' | 'moon-filled' | 'moon' | 'new-tab-filled' | 'new-tab' | 'paper-clip-filled' | 'paper-clip' | 'plus-circle-filled' | 'plus-circle' | 'plus-filled' | 'plus-square-filled' | 'plus-square' | 'plus' | 'printer-filled' | 'printer' | 'quiz-filled' | 'quiz' | 'refresh-filled' | 'refresh' | 'remove-filled' | 'remove' | 'reply-filled' | 'reply' | 'screenshare-start-filled' | 'screenshare-start' | 'screenshare-stop-filled' | 'screenshare-stop' | 'search-filled' | 'search' | 'share-filled' | 'share' | 'shield-alert-filled' | 'shield-alert' | 'shield-check-filled' | 'shield-check' | 'shield-filled' | 'shield-lock-filled' | 'shield-lock' | 'shield-x-filled' | 'shield-x' | 'shield' | 'sidebar-left-filled' | 'sidebar-left' | 'sidebar-right-filled' | 'sidebar-right' | 'signin-filled' | 'signin' | 'signout-filled' | 'signout' | 'slider-filled' | 'slider' | 'square-filled' | 'square' | 'sticky-note-filled' | 'sticky-note' | 'study-plan-filled' | 'study-plan' | 'sun-filled' | 'sun' | 'thumbs-down-filled' | 'thumbs-down' | 'thumbs-up-filled' | 'thumbs-up' | 'thunder-filled' | 'thunder' | 'upload-filled' | 'upload' | 'wrench-filled' | 'wrench' | 'bell-filled' | 'bell' | 'calender-check-filled' | 'calender-check' | 'calender-filled' | 'calender-plus-filled' | 'calender-plus' | 'calender' | 'clock-filled' | 'clock' | 'rewatch-filled' | 'rewatch' | 'stopwatch-filled' | 'stopwatch' | 'bot-filled' | 'bot' | 'person-check-filled' | 'person-check' | 'person-filled' | 'person-plus-filled' | 'person-plus' | 'person' | 'user-speak-filled' | 'user-speak' | 'users-filled' | 'users';
162
412
  type grauityFlippedChoiceName = 'vertically' | 'horizontally';
163
413
  type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
414
+ type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
164
415
  export interface GrauityInitProps {
165
416
  /**
166
417
  * An element type to render as (string or function).
@@ -169,35 +420,67 @@ export interface GrauityInitProps {
169
420
  /**
170
421
  * The font size to be applied on this element and so will act as standard for the `ems` of all grauity components.
171
422
  * */
172
- fontSize: string;
423
+ fontSize?: string;
173
424
  /**
174
425
  * The multiplier is multiplied will all the `ems` of the grauity components.
175
426
  * */
176
427
  multiplier?: number;
428
+ /**
429
+ * Additional classes to be added to the component
430
+ * */
431
+ className?: string;
177
432
  /**
178
433
  * The children to be rendered inside this component.
179
434
  * */
180
435
  children?: React.ReactNode;
436
+ /**
437
+ * Additional styles to be added to the component
438
+ * */
439
+ style?: object;
181
440
  }
182
441
  /**
183
442
  * This component is used to initialize the Grauity library. Ideally, it should be the root component of your application.
184
443
  * But nonetheless all the grauity components should be the children of this component.
185
444
  * */
186
- export function GrauityInit({ as, fontSize, multiplier, children }: GrauityInitProps): JSX.Element;
445
+ export function GrauityInit({ as, fontSize, multiplier, className, style, children, }: GrauityInitProps): JSX.Element;
187
446
  declare namespace GrauityInit {
188
447
  var propTypes: {
189
448
  as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
190
449
  fontSize: PropTypes.Requireable<string>;
191
450
  multiplier: PropTypes.Requireable<number>;
451
+ className: PropTypes.Requireable<string>;
452
+ style: PropTypes.Requireable<object>;
192
453
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
193
454
  };
194
455
  var defaultProps: {
195
456
  as: string;
196
457
  fontSize: string;
197
458
  multiplier: number;
459
+ className: string;
460
+ style: {};
198
461
  children: any;
199
462
  };
200
463
  }
464
+ type ThemeType = 'light' | 'dark';
465
+ export const ThemeContext: React.Context<any>;
466
+ interface ThemeWrapperProps {
467
+ children: React.ReactNode;
468
+ defaultTheme?: ThemeType;
469
+ usePreferredColorScheme?: boolean;
470
+ }
471
+ export const ThemeWrapper: {
472
+ ({ children, defaultTheme, usePreferredColorScheme, }: ThemeWrapperProps): JSX.Element;
473
+ propTypes: {
474
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
475
+ defaultTheme: PropTypes.Requireable<ThemeType>;
476
+ usePreferredColorScheme: PropTypes.Requireable<boolean>;
477
+ };
478
+ defaultProps: {
479
+ defaultTheme: ThemeType;
480
+ usePreferredColorScheme: boolean;
481
+ };
482
+ };
483
+ export const ThemeConsumer: React.Consumer<any>;
201
484
  export interface IconProps {
202
485
  /**
203
486
  * Icon can have the aria hidden attribute
@@ -222,7 +505,7 @@ export interface IconProps {
222
505
  /**
223
506
  * Color of the icon
224
507
  * */
225
- color?: grauityIconColorName;
508
+ color?: string;
226
509
  /**
227
510
  * Additional classes to be added to the component
228
511
  * */
@@ -268,6 +551,9 @@ export interface IconProps {
268
551
  * */
269
552
  style?: React.CSSProperties;
270
553
  }
554
+ /**
555
+ * An icon is a glyph used to represent something else.
556
+ */
271
557
  export function Icon({ ariaHidden, ariaLabel, as, bordered, circular, color, className, disabled, fitted, flipped, inverted, link, loading, name, rotated, size, style, ...props }: IconProps): JSX.Element;
272
558
  declare namespace Icon {
273
559
  var propTypes: {
@@ -276,17 +562,17 @@ declare namespace Icon {
276
562
  as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
277
563
  bordered: PropTypes.Requireable<boolean>;
278
564
  circular: PropTypes.Requireable<boolean>;
279
- color: PropTypes.Requireable<import("core").GRAUITY_COLOR>;
565
+ color: PropTypes.Requireable<string>;
280
566
  className: PropTypes.Requireable<string>;
281
567
  disabled: PropTypes.Requireable<boolean>;
282
568
  fitted: PropTypes.Requireable<boolean>;
283
- flipped: PropTypes.Requireable<import("core/miscellaneous-choices").GRAUITY_FLIPPED_CHOICES>;
569
+ flipped: PropTypes.Requireable<import("ui/core/miscellaneous-choices").GRAUITY_FLIPPED_CHOICES>;
284
570
  inverted: PropTypes.Requireable<boolean>;
285
571
  link: PropTypes.Requireable<boolean>;
286
572
  loading: PropTypes.Requireable<boolean>;
287
573
  name: PropTypes.Validator<string>;
288
- rotated: PropTypes.Requireable<import("core/miscellaneous-choices").GRAUITY_ROTATED_CHOICES>;
289
- size: PropTypes.Requireable<import("core").GRAUITY_SIZE>;
574
+ rotated: PropTypes.Requireable<import("ui/core/miscellaneous-choices").GRAUITY_ROTATED_CHOICES>;
575
+ size: PropTypes.Requireable<import("ui/core").GRAUITY_SIZE>;
290
576
  style: PropTypes.Requireable<object>;
291
577
  };
292
578
  var defaultProps: {
@@ -308,5 +594,789 @@ declare namespace Icon {
308
594
  style: any;
309
595
  };
310
596
  }
597
+ export enum BUTTON_VARIANTS_ENUM {
598
+ PRIMARY = "primary",
599
+ SECONDARY = "secondary",
600
+ TERTIARY = "tertiary",
601
+ SUCCESS = "success",
602
+ DANGER = "danger",
603
+ WARNING = "warning",
604
+ PRIMARY_OUTLINED = "primary-outlined",
605
+ SECONDARY_OUTLINED = "secondary-outlined",
606
+ TERTIARY_OUTLINED = "tertiary-outlined",
607
+ SUCCESS_OUTLINED = "success-outlined",
608
+ DANGER_OUTLINED = "danger-outlined",
609
+ WARNING_OUTLINED = "warning-outlined"
610
+ }
611
+ export enum BUTTON_SIZES_ENUM {
612
+ SMALL = "small",
613
+ MEDIUM = "medium",
614
+ LARGE = "large",
615
+ EXTRA_LARGE = "extra-large"
616
+ }
617
+ export enum BUTTON_ICON_POSITIONS_ENUM {
618
+ LEFT = "left",
619
+ RIGHT = "right"
620
+ }
621
+ export const BUTTON_VARIANTS: BUTTON_VARIANTS_ENUM[];
622
+ type ButtonVariants = 'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'primary-outlined' | 'secondary-outlined' | 'tertiary-outlined' | 'success-outlined' | 'danger-outlined' | 'warning-outlined';
623
+ type ButtonSizes = 'small' | 'medium' | 'large' | 'extra-large';
624
+ type ButtonIconPositions = 'left' | 'right';
625
+ export interface ButtonProps {
626
+ /**
627
+ * Variant of the button
628
+ *
629
+ * Available choices: `primary`, `secondary`, `tertiary`, `success`, `danger`, `warning`, `primary-outlined`, `secondary-outlined`, `tertiary-outlined`, `success-outlined`, `danger-outlined`, `warning-outlined`
630
+ *
631
+ * Default: `primary`
632
+ * */
633
+ variant?: ButtonVariants;
634
+ /**
635
+ * Size of the button
636
+ * Available choices: `small`, `medium`, `large`
637
+ *
638
+ * Default: `medium`
639
+ * */
640
+ size?: ButtonSizes;
641
+ /**
642
+ * Icon to be displayed in the button.
643
+ * */
644
+ icon?: grauityIconName;
645
+ /**
646
+ * Size of the icon
647
+ * */
648
+ iconSize?: grauityIconSizeName;
649
+ /**
650
+ * Position of the icon
651
+ *
652
+ * Available choices: `left`, `right`
653
+ *
654
+ * Default: `left`
655
+ * */
656
+ iconPosition?: ButtonIconPositions;
657
+ /**
658
+ * Additional classes to be added to the component.
659
+ * */
660
+ className?: string;
661
+ /**
662
+ * Show that the button is inactive
663
+ *
664
+ * Default: `false`
665
+ * */
666
+ disabled?: boolean;
667
+ /**
668
+ * Show that the button is loading
669
+ *
670
+ * Default: `false`
671
+ * */
672
+ loading?: boolean;
673
+ /**
674
+ * Function to be called on click
675
+ *
676
+ * If the button is disabled, the function will not be called
677
+ * */
678
+ onClick?: (e?: any) => void;
679
+ /**
680
+ * Additional styles to be used over the element
681
+ *
682
+ * Default: `{}`
683
+ * */
684
+ style?: React.CSSProperties;
685
+ /**
686
+ * Make the button full width
687
+ *
688
+ * Default: `false`
689
+ * */
690
+ fullWidth?: boolean;
691
+ /**
692
+ * Children of the component
693
+ * */
694
+ children?: React.ReactNode;
695
+ /**
696
+ * Type of the button
697
+ *
698
+ * Default: `button`
699
+ * */
700
+ type?: 'button' | 'submit' | 'reset';
701
+ /**
702
+ * Aria label for the button
703
+ * */
704
+ ariaLabel?: string;
705
+ /**
706
+ * Tooltip to be displayed on hover, uses the `title` attribute
707
+ * */
708
+ tooltip?: string;
709
+ /**
710
+ * Tab index of the button
711
+ * */
712
+ tabIndex?: number;
713
+ /**
714
+ * Function to be called on mouse enter
715
+ * */
716
+ onMouseEnter?: (e: React.MouseEvent<HTMLButtonElement>) => void;
717
+ /**
718
+ * Function to be called on mouse leave
719
+ * */
720
+ onMouseLeave?: (e: React.MouseEvent<HTMLButtonElement>) => void;
721
+ /**
722
+ * Additional props to be passed to the button element
723
+ * */
724
+ buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
725
+ }
726
+ interface ButtonGroupProps {
727
+ children: React.ReactNode;
728
+ }
729
+ /**
730
+ * A Button is a component that is used to trigger an action.
731
+ * It can contain text and an icon, or only text.
732
+ *
733
+ * To create an icon button, checkout the IconButton component.
734
+ */
735
+ export const NSButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
736
+ export const NSButtonGroup: {
737
+ ({ children }: ButtonGroupProps): JSX.Element;
738
+ defaultProps: ButtonGroupProps;
739
+ propTypes: {
740
+ children: PropTypes.Requireable<any>;
741
+ };
742
+ };
743
+ type TypographyAsType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label' | 'caption' | 'code' | 'auto';
744
+ type TypographyVariantType = 'heading-semibold-h40' | 'heading-semibold-h36' | 'heading-semibold-h28' | 'heading-semibold-h24' | 'heading-semibold-h20' | 'heading-semibold-h16' | 'paragraph-semibold-body1' | 'paragraph-semibold-body2' | 'paragraph-semibold-body3' | 'paragraph-semibold-body4' | 'paragraph-semibold-label' | 'paragraph-semibold-label2' | 'paragraph-semibold-callout' | 'paragraph-medium-body1' | 'paragraph-medium-body2' | 'paragraph-medium-body3' | 'paragraph-medium-body4' | 'paragraph-medium-label' | 'paragraph-medium-label2' | 'paragraph-medium-callout' | 'paragraph-medium-code' | 'heading-semibold-overline1' | 'heading-semibold-overline2' | 'action-semibold-primary' | 'action-semibold-link' | 'blog-semibold-title' | 'blog-medium-regular' | 'blog-medium-bold' | 'blog-medium-italic';
745
+ export interface TypographyProps {
746
+ /**
747
+ * Variant of the Typography element
748
+ *
749
+ * Available choices:
750
+ *
751
+ * Default: `paragraph-medium-body1`
752
+ * */
753
+ variant?: TypographyVariantType;
754
+ /**
755
+ * Color of the Typography element
756
+ * */
757
+ color?: string;
758
+ /**
759
+ * Determines the type of the element rendered
760
+ * Available choices:
761
+ *
762
+ * Default: `p`
763
+ * */
764
+ as?: TypographyAsType;
765
+ /**
766
+ * Text alignment of the Typography element
767
+ * */
768
+ textAlign?: string;
769
+ /**
770
+ * Text transformation of the Typography element
771
+ * */
772
+ textTransform?: string;
773
+ /**
774
+ * Font size of the Typography element
775
+ * */
776
+ fontSize?: string;
777
+ /**
778
+ * Children of the component
779
+ * */
780
+ children: React.ReactNode;
781
+ }
782
+ export const TYPOGRAPHY_VARIANTS_ENUM: {
783
+ [x: string]: TypographyVariantType;
784
+ };
785
+ export const TYPOGRAPHY_VARIANTS: readonly TypographyVariantType[];
786
+ export const TYPOGRAPHY_AS_ENUM: {
787
+ [x: string]: TypographyAsType;
788
+ };
789
+ export const TYPOGRAPHY_AS_LIST: readonly TypographyAsType[];
790
+ /**
791
+ * A typography component can be used to display text in different styles.
792
+ *
793
+ * Use the prop `variant` to select the style of the text.
794
+ *
795
+ * By default, prop `as` is set to `'auto'`, and the component will automatically
796
+ * select the HTML tag based on the prop `variant`.
797
+
798
+ * If you want the text to be rendered as a different HTML tag, provide your desired
799
+ * value to prop `as`, such as `'h1'`, `'h2'`, `'p'`, etc.
800
+ */
801
+ export const NSTypography: {
802
+ ({ variant, as, color, textAlign, textTransform, fontSize, children, }: TypographyProps): JSX.Element;
803
+ propTypes: {
804
+ variant: PropTypes.Requireable<import("ui/elements/Typography/types").TypographyVariantType>;
805
+ as: PropTypes.Requireable<string>;
806
+ color: PropTypes.Requireable<string>;
807
+ textAlign: PropTypes.Requireable<string>;
808
+ textTransform: PropTypes.Requireable<string>;
809
+ fontSize: PropTypes.Requireable<string>;
810
+ children: PropTypes.Requireable<any>;
811
+ };
812
+ defaultProps: {
813
+ variant: string;
814
+ as: string;
815
+ color: string;
816
+ textAlign: any;
817
+ textTransform: any;
818
+ fontSize: any;
819
+ children: string;
820
+ };
821
+ };
822
+ interface TableColumn {
823
+ /**
824
+ * Column key
825
+ * */
826
+ key: string;
827
+ /**
828
+ * Column display name
829
+ * */
830
+ display: string;
831
+ /**
832
+ * Column width
833
+ * */
834
+ width?: string;
835
+ /**
836
+ * Column alignment, default is center
837
+ * */
838
+ align?: 'left' | 'right' | 'center';
839
+ /**
840
+ * Row span, default is 1
841
+ * */
842
+ rowSpan?: number;
843
+ /**
844
+ * Col span, default is 1
845
+ * */
846
+ colSpan?: number;
847
+ }
848
+ interface TableCellInterface {
849
+ /**
850
+ * Cell display, can be a string or a React element
851
+ * */
852
+ display?: ReactNode;
853
+ /**
854
+ * Custom cell render function. If provided, display will be ignored
855
+ * */
856
+ render?: (args: TableCellInterface) => ReactNode;
857
+ /**
858
+ * Row vertical alignment, default is top
859
+ * */
860
+ vAlign?: 'top' | 'bottom' | 'middle';
861
+ /**
862
+ * Row span, default is 1
863
+ * */
864
+ rowSpan?: number;
865
+ /**
866
+ * Col span, default is 1
867
+ * */
868
+ colSpan?: number;
869
+ /**
870
+ * Row actions (rendered as buttons by default)
871
+ * */
872
+ actions?: TableCellAction[];
873
+ /**
874
+ * Row alignment
875
+ * */
876
+ align?: 'left' | 'right' | 'center';
877
+ }
878
+ interface TableCellAction {
879
+ /**
880
+ * Action key
881
+ * */
882
+ key: string;
883
+ /**
884
+ * Action display, can be a string or a React element
885
+ * */
886
+ display: any;
887
+ /**
888
+ * Action icon
889
+ * */
890
+ icon?: grauityIconName;
891
+ /**
892
+ * Action type, can be a button or a link, default is button
893
+ * */
894
+ as?: 'button' | 'link';
895
+ /**
896
+ * Action href, only used if the action type is link
897
+ * */
898
+ href?: string;
899
+ /**
900
+ * Action click handler
901
+ * */
902
+ handleClick?: (data: any) => void;
903
+ }
904
+ interface TableRow {
905
+ /**
906
+ * Table data, in JS Object format, with table column keys as keys of object
907
+ */
908
+ [columnKey: string]: TableCellInterface;
909
+ }
910
+ export interface TableProps {
911
+ /**
912
+ * Table columns, see type `TableColumn`
913
+ * */
914
+ columns?: TableColumn[];
915
+ /**
916
+ * Table rows, see type `TableRow`
917
+ * */
918
+ rows?: TableRow[];
919
+ /**
920
+ * Determines if the table is condensed (Reduced padding).
921
+ * Available choices: true, false
922
+ *
923
+ * Default: `true`
924
+ * */
925
+ condensed?: boolean;
926
+ /**
927
+ * Are alternate rows striped (shaded).
928
+ * Available choices: true, false
929
+ *
930
+ * Default: `false`
931
+ * */
932
+ striped?: boolean;
933
+ /**
934
+ * Determines if the table has a border around it.
935
+ * Available choices: true, false
936
+ *
937
+ * Default: `true`
938
+ * */
939
+ borderAround?: boolean;
940
+ /**
941
+ * Determines if the table has a border between rows.
942
+ * Available choices: true, false
943
+ *
944
+ * Has more precedence than `borderHorizontal` and `borderVertical`.
945
+ *
946
+ * Default: `true`
947
+ * */
948
+ borderWithin?: boolean;
949
+ /**
950
+ * Determines if the table has a border between columns.
951
+ *
952
+ * Default: `true`
953
+ * */
954
+ borderHorizontal?: boolean;
955
+ /**
956
+ * Determines if the table has a border between rows.
957
+ *
958
+ * Default: `true`
959
+ * */
960
+ borderVertical?: boolean;
961
+ /**
962
+ * Additional classes to be added to the component.
963
+ * */
964
+ className?: string;
965
+ /**
966
+ * Show that the table is loading
967
+ *
968
+ * Default: `false`
969
+ * */
970
+ loading?: boolean;
971
+ /**
972
+ * Additional styles to be used over the element
973
+ *
974
+ * Default: `{}`
975
+ * */
976
+ style?: React.CSSProperties;
977
+ /**
978
+ * Capitalize the header
979
+ *
980
+ * Default: `true`
981
+ * */
982
+ capitalizeHeaders?: boolean;
983
+ /**
984
+ * Determines if table headers should be highlighted
985
+ *
986
+ * Default: `true`
987
+ * */
988
+ highlightHeaders?: boolean;
989
+ }
990
+ /**
991
+ * A table is a component that is used to display data in a tabular format.
992
+ * It is composed of rows and columns.
993
+ */
994
+ export const NSTable: {
995
+ ({ rows, columns, ...props }: TableProps): JSX.Element;
996
+ propTypes: {
997
+ rows: PropTypes.Requireable<any[]>;
998
+ columns: PropTypes.Requireable<any[]>;
999
+ condensed: PropTypes.Requireable<boolean>;
1000
+ striped: PropTypes.Requireable<boolean>;
1001
+ borderAround: PropTypes.Requireable<boolean>;
1002
+ borderWithin: PropTypes.Requireable<boolean>;
1003
+ borderHorizontal: PropTypes.Requireable<boolean>;
1004
+ borderVertical: PropTypes.Requireable<boolean>;
1005
+ className: PropTypes.Requireable<string>;
1006
+ loading: PropTypes.Requireable<boolean>;
1007
+ style: PropTypes.Requireable<object>;
1008
+ capitalizeHeaders: PropTypes.Requireable<boolean>;
1009
+ highlightHeaders: PropTypes.Requireable<boolean>;
1010
+ };
1011
+ defaultProps: {
1012
+ rows: any[];
1013
+ columns: any[];
1014
+ condensed: boolean;
1015
+ striped: boolean;
1016
+ borderAround: boolean;
1017
+ borderWithin: boolean;
1018
+ borderHorizontal: boolean;
1019
+ borderVertical: boolean;
1020
+ className: string;
1021
+ loading: boolean;
1022
+ style: {};
1023
+ capitalizeHeaders: boolean;
1024
+ highlightHeaders: boolean;
1025
+ };
1026
+ NSTable: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableComponentProps, never>;
1027
+ TableBody: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableBodyComponentProps, never>;
1028
+ TableDataCell: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableDataCellComponentProps, never>;
1029
+ TableHead: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableHeadComponentProps, never>;
1030
+ TableHeadingCell: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableHeadingCellComponentProps, never>;
1031
+ TableRow: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableRowComponentProps, never>;
1032
+ };
1033
+ type ModalContentType = React.ReactNode;
1034
+ interface ModalStep {
1035
+ /**
1036
+ * Banner for the modal, can be a valid React node
1037
+ * */
1038
+ banner?: ModalContentType;
1039
+ /**
1040
+ * Title for the modal, can be a valid React node
1041
+ * */
1042
+ title: ModalContentType;
1043
+ /**
1044
+ * Description for the modal, can be a string
1045
+ * */
1046
+ description?: string | null;
1047
+ /**
1048
+ * Body for the modal, can be a valid React node
1049
+ * */
1050
+ body?: ModalContentType;
1051
+ /**
1052
+ * Text for the next button
1053
+ * */
1054
+ nextButtonText?: string;
1055
+ /**
1056
+ * Determines if the back button should be shown
1057
+ * Available choices: `true`, `false`
1058
+ *
1059
+ * Default: `false`
1060
+ * */
1061
+ showBackButton?: boolean;
1062
+ /**
1063
+ * Variant for the button
1064
+ * */
1065
+ buttonVariant?: ButtonVariants | null;
1066
+ }
1067
+ export interface ModalProps {
1068
+ /**
1069
+ * Banner for the modal, can be a valid React node
1070
+ * */
1071
+ banner?: ModalContentType;
1072
+ /**
1073
+ * Title for the modal, can be a valid React node
1074
+ * */
1075
+ title?: ModalContentType;
1076
+ /**
1077
+ * Description for the modal, can be a string
1078
+ * */
1079
+ description?: string;
1080
+ /**
1081
+ * Body for the modal, can be a valid React node
1082
+ * */
1083
+ body?: ModalContentType;
1084
+ /**
1085
+ * Action for the modal, can be a valid React node
1086
+ * */
1087
+ action?: ModalContentType;
1088
+ /**
1089
+ * Determines if the modal should hide on click away
1090
+ * Available choices: `true`, `false`
1091
+ *
1092
+ * Default: `false`
1093
+ * */
1094
+ hideOnClickAway: boolean;
1095
+ /**
1096
+ * Determines if the modal should blur the background
1097
+ * Available choices: `true`, `false`
1098
+ *
1099
+ * Default: `false`
1100
+ * */
1101
+ blurBackground?: boolean;
1102
+ /**
1103
+ * Callback function to be called when the modal is hidden
1104
+ * */
1105
+ onHide?: () => void;
1106
+ /**
1107
+ * Determines if the modal should be full width on mobile
1108
+ * Available choices: `true`, `false`
1109
+ *
1110
+ * Default: `false`
1111
+ * */
1112
+ mobileBottomFullWidth?: boolean;
1113
+ /**
1114
+ * Padding for the modal
1115
+ * */
1116
+ modalPadding?: string;
1117
+ /**
1118
+ * Margin for the modal body
1119
+ * */
1120
+ modalBodyMargin?: string;
1121
+ /**
1122
+ * Width of the modal
1123
+ * */
1124
+ width?: string;
1125
+ /**
1126
+ * Height of the modal
1127
+ * */
1128
+ height?: string;
1129
+ /**
1130
+ * Minimum height of the modal
1131
+ * */
1132
+ minHeight?: string;
1133
+ /**
1134
+ * Determines if the close button should be shown
1135
+ *
1136
+ * Available choices: `true`, `false`
1137
+ *
1138
+ * Default: `false`
1139
+ * */
1140
+ showCloseButton?: boolean;
1141
+ }
1142
+ interface MultiStepModalProps {
1143
+ /**
1144
+ * Modal steps
1145
+ * */
1146
+ modalSteps: ModalStep[];
1147
+ /**
1148
+ * Determines if the modal should show pagination if there are multiple modal steps
1149
+ * Available choices: true, false
1150
+ *
1151
+ * Default: `true`
1152
+ * */
1153
+ showModalStepsPagination?: boolean;
1154
+ /**
1155
+ * Determines if the modal should hide on click away
1156
+ * Available choices: true, false
1157
+ *
1158
+ * Default: `false`
1159
+ * */
1160
+ hideOnClickAway?: boolean;
1161
+ /**
1162
+ * Determines if the modal should blur the background
1163
+ * Available choices: true, false
1164
+ *
1165
+ * Default: `false`
1166
+ * */
1167
+ blurBackground?: boolean;
1168
+ /**
1169
+ * Callback function to be called when the modal is hidden
1170
+ * */
1171
+ onHide?: () => void;
1172
+ /**
1173
+ * Callback function to be called when the final step is reached
1174
+ * */
1175
+ onFinalStep?: () => void;
1176
+ /**
1177
+ * Determines if the modal should be full width on mobile
1178
+ * Available choices: true, false
1179
+ *
1180
+ * Default: `false`
1181
+ * */
1182
+ mobileBottomFullWidth?: boolean;
1183
+ /**
1184
+ * Callback function to be called when the step changes
1185
+ * */
1186
+ onStepChange?: () => void;
1187
+ /**
1188
+ * Determines if the modal buttons should be shown
1189
+ * Available choices: true, false
1190
+ *
1191
+ * Default: `true`
1192
+ * */
1193
+ showModalButtons?: boolean;
1194
+ /**
1195
+ * Determines if the modal header should be shown
1196
+ * Available choices: true, false
1197
+ *
1198
+ * Default: `true`
1199
+ * */
1200
+ showHeader?: boolean;
1201
+ /**
1202
+ * Padding for the modal
1203
+ * */
1204
+ modalPadding?: string;
1205
+ /**
1206
+ * Margin for the modal body
1207
+ * */
1208
+ modalBodyMargin?: string;
1209
+ /**
1210
+ * Width of the modal
1211
+ * */
1212
+ width?: string;
1213
+ /**
1214
+ * Height of the modal
1215
+ * */
1216
+ height?: string;
1217
+ /**
1218
+ * Minimum height of the modal
1219
+ * */
1220
+ minHeight?: string;
1221
+ /**
1222
+ * Determines if the close button should be shown
1223
+ *
1224
+ * Available choices: true, false
1225
+ *
1226
+ * NOTE: If Modal has a banner, the close button will be hidden by default
1227
+ *
1228
+ * Default: `false`
1229
+ * */
1230
+ showCloseButton?: boolean;
1231
+ }
1232
+ export interface ConfirmationDialogProps {
1233
+ /**
1234
+ * Text for the cancel button
1235
+ * */
1236
+ cancelText?: string;
1237
+ /**
1238
+ * Text for the confirm button
1239
+ * */
1240
+ confirmText?: string;
1241
+ /**
1242
+ * Callback function to be called when the cancel button is clicked
1243
+ * */
1244
+ onCancel: () => void;
1245
+ /**
1246
+ * Callback function to be called when the confirm button is clicked
1247
+ * */
1248
+ onConfirm: () => void;
1249
+ /**
1250
+ * Banner for the modal, can be a valid React node
1251
+ * */
1252
+ banner?: ModalContentType;
1253
+ /**
1254
+ * Title for the modal, can be a valid React node
1255
+ * */
1256
+ title?: ModalContentType;
1257
+ /**
1258
+ * Description for the modal, can be a string
1259
+ * */
1260
+ description?: string;
1261
+ /**
1262
+ * Body for the modal, can be a valid React node
1263
+ * */
1264
+ body?: ModalContentType;
1265
+ /**
1266
+ * Variant for the cancel button
1267
+ * */
1268
+ cancelButtonVariant?: ButtonVariants;
1269
+ /**
1270
+ * Variant for the confirm button
1271
+ * */
1272
+ confirmButtonVariant?: ButtonVariants;
1273
+ /**
1274
+ * Determines if the close button should be shown
1275
+ * Available choices: `true`, `false`
1276
+ *
1277
+ * Default: `false`
1278
+ * */
1279
+ showCloseButton?: boolean;
1280
+ /**
1281
+ * Determines if the modal should hide on click away
1282
+ * Available choices: `true`, `false`
1283
+ *
1284
+ * Default: `false`
1285
+ * */
1286
+ hideOnClickAway?: boolean;
1287
+ /**
1288
+ * Determines if the modal should blur the background
1289
+ * Available choices: `true`, `false`
1290
+ *
1291
+ * Default: `false`
1292
+ * */
1293
+ blurBackground?: boolean;
1294
+ /**
1295
+ * Determines if the modal should be at bottom with full width on mobile
1296
+ * Available choices: `true`, `false`
1297
+ *
1298
+ * Default: `false`
1299
+ * */
1300
+ mobileBottomFullWidth?: boolean;
1301
+ }
1302
+ /**
1303
+ * A confirmation dialog is a dialog box that asks the user to confirm an action.
1304
+ */
1305
+ export const NSModal: {
1306
+ ({ cancelText, confirmText, onCancel, onConfirm, banner, title, description, body, cancelButtonVariant, confirmButtonVariant, showCloseButton, hideOnClickAway, blurBackground, mobileBottomFullWidth, }: ConfirmationDialogProps): JSX.Element;
1307
+ propTypes: {
1308
+ cancelText: PropTypes.Requireable<string>;
1309
+ confirmText: PropTypes.Requireable<string>;
1310
+ onCancel: PropTypes.Requireable<(...args: any[]) => any>;
1311
+ onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
1312
+ banner: PropTypes.Requireable<PropTypes.ReactNodeLike>;
1313
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
1314
+ description: PropTypes.Requireable<string>;
1315
+ body: PropTypes.Requireable<PropTypes.ReactNodeLike>;
1316
+ cancelButtonVariant: PropTypes.Requireable<string>;
1317
+ confirmButtonVariant: PropTypes.Requireable<string>;
1318
+ showCloseButton: PropTypes.Requireable<boolean>;
1319
+ hideOnClickAway: PropTypes.Requireable<boolean>;
1320
+ blurBackground: PropTypes.Requireable<boolean>;
1321
+ mobileBottomFullWidth: PropTypes.Requireable<boolean>;
1322
+ };
1323
+ defaultProps: {
1324
+ cancelText: string;
1325
+ confirmText: string;
1326
+ banner: any;
1327
+ title: string;
1328
+ description: string;
1329
+ body: any;
1330
+ onCancel: () => void;
1331
+ onConfirm: () => void;
1332
+ cancelButtonVariant: string;
1333
+ confirmButtonVariant: string;
1334
+ showCloseButton: boolean;
1335
+ hideOnClickAway: boolean;
1336
+ blurBackground: boolean;
1337
+ mobileBottomFullWidth: boolean;
1338
+ };
1339
+ };
1340
+ /**
1341
+ * A multi-step modal is a modal that has multiple steps.
1342
+ */
1343
+ export const NSMultiStepModal: {
1344
+ ({ modalSteps, showModalStepsPagination, hideOnClickAway, blurBackground, onHide, onFinalStep, mobileBottomFullWidth, onStepChange, modalPadding, modalBodyMargin, width, height, minHeight, showCloseButton, }: MultiStepModalProps): JSX.Element;
1345
+ propTypes: {
1346
+ modalSteps: PropTypes.Requireable<any[]>;
1347
+ showModalStepsPagination: PropTypes.Requireable<boolean>;
1348
+ hideOnClickAway: PropTypes.Requireable<boolean>;
1349
+ blurBackground: PropTypes.Requireable<boolean>;
1350
+ onHide: PropTypes.Requireable<(...args: any[]) => any>;
1351
+ onFinalStep: PropTypes.Requireable<(...args: any[]) => any>;
1352
+ mobileBottomFullWidth: PropTypes.Requireable<boolean>;
1353
+ onStepChange: PropTypes.Requireable<(...args: any[]) => any>;
1354
+ modalPadding: PropTypes.Requireable<string>;
1355
+ modalBodyMargin: PropTypes.Requireable<string>;
1356
+ width: PropTypes.Requireable<string>;
1357
+ height: PropTypes.Requireable<string>;
1358
+ minHeight: PropTypes.Requireable<string>;
1359
+ showCloseButton: PropTypes.Requireable<boolean>;
1360
+ };
1361
+ defaultProps: {
1362
+ modalSteps: any[];
1363
+ showModalStepsPagination: boolean;
1364
+ hideOnClickAway: boolean;
1365
+ blurBackground: boolean;
1366
+ onHide: () => void;
1367
+ onFinalStep: () => void;
1368
+ mobileBottomFullWidth: boolean;
1369
+ onStepChange: () => void;
1370
+ modalPadding: string;
1371
+ modalBodyMargin: string;
1372
+ width: any;
1373
+ height: any;
1374
+ minHeight: any;
1375
+ showCloseButton: boolean;
1376
+ };
1377
+ PaginatedActions: import("styled-components").StyledComponent<string, any, {}, never>;
1378
+ Pagination: import("styled-components").StyledComponent<string, any, {}, never>;
1379
+ PaginationItem: import("styled-components").StyledComponent<string, any, import("ui/elements/Modal/types").ModalPaginationItemProps, never>;
1380
+ };
311
1381
 
312
1382
  //# sourceMappingURL=index.d.ts.map