@ntbjs/react-components 2.0.14 → 3.0.0-rc.2

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 (344) hide show
  1. package/README.md +34 -0
  2. package/build/data/Alert/Alert.js +18 -33
  3. package/build/data/Alert/Alert.js.map +1 -1
  4. package/build/data/Alert/Alert.styled.js +9 -47
  5. package/build/data/Alert/Alert.styled.js.map +1 -1
  6. package/build/data/Badge/Badge.js +36 -61
  7. package/build/data/Badge/Badge.js.map +1 -1
  8. package/build/data/Badge/Badge.styled.js +21 -70
  9. package/build/data/Badge/Badge.styled.js.map +1 -1
  10. package/build/data/Popover/Popover.js +125 -71
  11. package/build/data/Popover/Popover.js.map +1 -1
  12. package/build/data/Popover/Popover.styled.js +10 -140
  13. package/build/data/Popover/Popover.styled.js.map +1 -1
  14. package/build/data/SeverityBadge/SeverityBadge.js +13 -22
  15. package/build/data/SeverityBadge/SeverityBadge.js.map +1 -1
  16. package/build/data/SeverityBadge/index.js +2 -0
  17. package/build/data/SeverityBadge/index.js.map +1 -0
  18. package/build/data/Tab/Tab.js +7 -13
  19. package/build/data/Tab/Tab.js.map +1 -1
  20. package/build/data/Tab/Tab.styled.js +4 -7
  21. package/build/data/Tab/Tab.styled.js.map +1 -1
  22. package/build/data/Tabs/Tabs.js +30 -32
  23. package/build/data/Tabs/Tabs.js.map +1 -1
  24. package/build/data/Tabs/Tabs.styled.js +21 -57
  25. package/build/data/Tabs/Tabs.styled.js.map +1 -1
  26. package/build/data/Tooltip/Tooltip.js +102 -33
  27. package/build/data/Tooltip/Tooltip.js.map +1 -1
  28. package/build/data/Tooltip/Tooltip.styled.js +9 -22
  29. package/build/data/Tooltip/Tooltip.styled.js.map +1 -1
  30. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +16 -23
  31. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -1
  32. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +13 -31
  33. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -1
  34. package/build/data/VerificationStatusIcon/index.js +2 -0
  35. package/build/data/VerificationStatusIcon/index.js.map +1 -0
  36. package/build/data/_shared/FloatingArrow.styled.js +30 -0
  37. package/build/data/_shared/FloatingArrow.styled.js.map +1 -0
  38. package/build/hooks/useEventListner.js.map +1 -1
  39. package/build/hooks/useFloatingPopover.js +187 -0
  40. package/build/hooks/useFloatingPopover.js.map +1 -0
  41. package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  42. package/build/hooks/useOnClickOutside.js.map +1 -1
  43. package/build/hooks/useTooltipAutoShow.js.map +1 -1
  44. package/build/icons/arrow-back.svg.js +3 -3
  45. package/build/icons/arrow-back.svg.js.map +1 -1
  46. package/build/icons/arrow-forward.svg.js +4 -4
  47. package/build/icons/arrow-forward.svg.js.map +1 -1
  48. package/build/icons/check-rectangle-filled.svg.js +3 -3
  49. package/build/icons/check-rectangle-filled.svg.js.map +1 -1
  50. package/build/icons/close.svg.js +3 -3
  51. package/build/icons/close.svg.js.map +1 -1
  52. package/build/icons/edit-note.svg.js +3 -3
  53. package/build/icons/edit-note.svg.js.map +1 -1
  54. package/build/icons/expand-more.svg.js +3 -3
  55. package/build/icons/expand-more.svg.js.map +1 -1
  56. package/build/icons/headset.svg.js +3 -3
  57. package/build/icons/headset.svg.js.map +1 -1
  58. package/build/icons/layers.svg.js +3 -3
  59. package/build/icons/layers.svg.js.map +1 -1
  60. package/build/icons/link.svg.js +3 -3
  61. package/build/icons/link.svg.js.map +1 -1
  62. package/build/icons/play.svg.js +3 -3
  63. package/build/icons/play.svg.js.map +1 -1
  64. package/build/icons/search.svg.js +3 -3
  65. package/build/icons/search.svg.js.map +1 -1
  66. package/build/icons/star-filled.svg.js +3 -3
  67. package/build/icons/star-filled.svg.js.map +1 -1
  68. package/build/icons/star.svg.js +3 -3
  69. package/build/icons/star.svg.js.map +1 -1
  70. package/build/icons/triangle-right.svg.js +3 -3
  71. package/build/icons/triangle-right.svg.js.map +1 -1
  72. package/build/icons/verification.svg.js +3 -3
  73. package/build/icons/verification.svg.js.map +1 -1
  74. package/build/icons/warning-circle.svg.js +3 -3
  75. package/build/icons/warning-circle.svg.js.map +1 -1
  76. package/build/inputs/ActionButton/ActionButton.js +11 -22
  77. package/build/inputs/ActionButton/ActionButton.js.map +1 -1
  78. package/build/inputs/ActionButton/ActionButton.styled.js +5 -54
  79. package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -1
  80. package/build/inputs/Button/Button.js +125 -121
  81. package/build/inputs/Button/Button.js.map +1 -1
  82. package/build/inputs/Button/Button.styled.js +42 -260
  83. package/build/inputs/Button/Button.styled.js.map +1 -1
  84. package/build/inputs/Checkbox/Checkbox.js +45 -61
  85. package/build/inputs/Checkbox/Checkbox.js.map +1 -1
  86. package/build/inputs/Checkbox/Checkbox.styled.js +24 -153
  87. package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -1
  88. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +106 -111
  89. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -1
  90. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +88 -273
  91. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -1
  92. package/build/inputs/CompactStarRating/CompactStarRating.js +56 -77
  93. package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -1
  94. package/build/inputs/CompactStarRating/CompactStarRating.styled.js +32 -211
  95. package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -1
  96. package/build/inputs/CompactTextInput/CompactTextInput.js +86 -105
  97. package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -1
  98. package/build/inputs/CompactTextInput/CompactTextInput.styled.js +55 -258
  99. package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -1
  100. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +70 -77
  101. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -1
  102. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +28 -60
  103. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -1
  104. package/build/inputs/MultiLevelCheckbox/types.js +12 -12
  105. package/build/inputs/MultiLevelCheckbox/types.js.map +1 -1
  106. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +69 -73
  107. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -1
  108. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +44 -87
  109. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -1
  110. package/build/inputs/MultiSelect/MultiSelect.js +69 -79
  111. package/build/inputs/MultiSelect/MultiSelect.js.map +1 -1
  112. package/build/inputs/MultiSelect/MultiSelect.styled.js +70 -76
  113. package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -1
  114. package/build/inputs/Radio/Radio.js +20 -33
  115. package/build/inputs/Radio/Radio.js.map +1 -1
  116. package/build/inputs/Radio/Radio.styled.js +15 -96
  117. package/build/inputs/Radio/Radio.styled.js.map +1 -1
  118. package/build/inputs/Switch/Switch.js +28 -40
  119. package/build/inputs/Switch/Switch.js.map +1 -1
  120. package/build/inputs/Switch/Switch.styled.js +24 -94
  121. package/build/inputs/Switch/Switch.styled.js.map +1 -1
  122. package/build/inputs/TextArea/TextArea.js +98 -123
  123. package/build/inputs/TextArea/TextArea.js.map +1 -1
  124. package/build/inputs/TextArea/TextArea.styled.js +64 -379
  125. package/build/inputs/TextArea/TextArea.styled.js.map +1 -1
  126. package/build/inputs/TextInput/TextInput.js +59 -79
  127. package/build/inputs/TextInput/TextInput.js.map +1 -1
  128. package/build/inputs/TextInput/TextInput.styled.js +33 -224
  129. package/build/inputs/TextInput/TextInput.styled.js.map +1 -1
  130. package/build/layout/InputGroup/InputGroup.js +6 -9
  131. package/build/layout/InputGroup/InputGroup.js.map +1 -1
  132. package/build/layout/InputGroup/InputGroup.styled.js +4 -3
  133. package/build/layout/InputGroup/InputGroup.styled.js.map +1 -1
  134. package/build/layout/InputGroup/index.js +2 -0
  135. package/build/layout/InputGroup/index.js.map +1 -0
  136. package/build/layout/SectionSeparator/SectionSeparator.js +5 -9
  137. package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -1
  138. package/build/layout/SectionSeparator/SectionSeparator.styled.js +4 -8
  139. package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -1
  140. package/build/styles/utils/colors-export.d.ts +54 -0
  141. package/build/styles/utils/colors-export.js.map +1 -1
  142. package/build/utils/dateTime.js.map +1 -1
  143. package/build/utils/defaultTheme.js +14 -28
  144. package/build/utils/defaultTheme.js.map +1 -1
  145. package/build/utils/getElementRef.js +14 -0
  146. package/build/utils/getElementRef.js.map +1 -0
  147. package/build/utils/parseTrigger.js +16 -0
  148. package/build/utils/parseTrigger.js.map +1 -0
  149. package/build/widgets/AssetAction/AssetAction.js +26 -33
  150. package/build/widgets/AssetAction/AssetAction.js.map +1 -1
  151. package/build/widgets/AssetAction/AssetAction.styled.js +20 -34
  152. package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -1
  153. package/build/widgets/AssetActionsBase/AssetActionsBase.js +8 -13
  154. package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -1
  155. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +4 -9
  156. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -1
  157. package/build/widgets/AssetGallery/AssetGallery.js +15 -40
  158. package/build/widgets/AssetGallery/AssetGallery.js.map +1 -1
  159. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +55 -70
  160. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -1
  161. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -24
  162. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -1
  163. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +146 -122
  164. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -1
  165. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +99 -286
  166. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -1
  167. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +170 -125
  168. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -1
  169. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +135 -364
  170. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -1
  171. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +20 -21
  172. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -1
  173. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +20 -71
  174. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -1
  175. package/build/widgets/ContextMenu/ContextMenu.js +12 -11
  176. package/build/widgets/ContextMenu/ContextMenu.js.map +1 -1
  177. package/build/widgets/ContextMenu/ContextMenu.styled.js +4 -4
  178. package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -1
  179. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +17 -25
  180. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -1
  181. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -71
  182. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -1
  183. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +7 -11
  184. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -1
  185. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +4 -11
  186. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -1
  187. package/build/widgets/InfoCard/InfoCard.js +26 -21
  188. package/build/widgets/InfoCard/InfoCard.js.map +1 -1
  189. package/build/widgets/InfoCard/InfoCard.styled.js +36 -84
  190. package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -1
  191. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js +28 -34
  192. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js.map +1 -1
  193. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js +21 -57
  194. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js.map +1 -1
  195. package/build/widgets/InstructionSeverityDisplay/index.js +2 -0
  196. package/build/widgets/InstructionSeverityDisplay/index.js.map +1 -0
  197. package/build/widgets/Instructions/Instructions.js +53 -95
  198. package/build/widgets/Instructions/Instructions.js.map +1 -1
  199. package/build/widgets/Instructions/Instructions.styled.js +27 -26
  200. package/build/widgets/Instructions/Instructions.styled.js.map +1 -1
  201. package/build/widgets/ProgressBar/ProgressBar.js +39 -37
  202. package/build/widgets/ProgressBar/ProgressBar.js.map +1 -1
  203. package/build/widgets/ProgressBar/ProgressBar.styled.js +56 -125
  204. package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -1
  205. package/build/widgets/SummaryCard/SummaryCard.js +55 -64
  206. package/build/widgets/SummaryCard/SummaryCard.js.map +1 -1
  207. package/build/widgets/SummaryCard/SummaryCard.styled.js +51 -106
  208. package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -1
  209. package/package.json +84 -36
  210. package/styles/utils/colors-export.d.ts +54 -0
  211. package/types/components/data/Alert/Alert.d.ts +76 -0
  212. package/types/components/data/Alert/Alert.styled.d.ts +52 -0
  213. package/types/components/data/Alert/index.d.ts +1 -0
  214. package/types/components/data/Badge/Badge.d.ts +120 -0
  215. package/types/components/data/Badge/Badge.styled.d.ts +33 -0
  216. package/types/components/data/Badge/index.d.ts +1 -0
  217. package/types/components/data/Popover/Popover.d.ts +116 -0
  218. package/types/components/data/Popover/Popover.styled.d.ts +15 -0
  219. package/types/components/data/Popover/index.d.ts +1 -0
  220. package/types/components/data/SeverityBadge/SeverityBadge.d.ts +72 -0
  221. package/types/components/data/SeverityBadge/index.d.ts +1 -0
  222. package/types/components/data/Tab/Tab.d.ts +14 -0
  223. package/types/components/data/Tab/Tab.styled.d.ts +1 -0
  224. package/types/components/data/Tab/index.d.ts +1 -0
  225. package/types/components/data/Tabs/Tabs.d.ts +111 -0
  226. package/types/components/data/Tabs/Tabs.styled.d.ts +26 -0
  227. package/types/components/data/Tabs/index.d.ts +1 -0
  228. package/types/components/data/Tooltip/Tooltip.d.ts +88 -0
  229. package/types/components/data/Tooltip/Tooltip.styled.d.ts +8 -0
  230. package/types/components/data/Tooltip/index.d.ts +1 -0
  231. package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.d.ts +35 -0
  232. package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.d.ts +27 -0
  233. package/types/components/data/VerificationStatusIcon/index.d.ts +1 -0
  234. package/types/components/data/_shared/FloatingArrow.styled.d.ts +29 -0
  235. package/types/components/data/index.d.ts +8 -0
  236. package/types/components/index.d.ts +3 -0
  237. package/types/components/inputs/ActionButton/ActionButton.d.ts +55 -0
  238. package/types/components/inputs/ActionButton/ActionButton.styled.d.ts +16 -0
  239. package/types/components/inputs/ActionButton/index.d.ts +1 -0
  240. package/types/components/inputs/Button/Button.d.ts +82 -0
  241. package/types/components/inputs/Button/Button.styled.d.ts +60 -0
  242. package/types/components/inputs/Button/index.d.ts +1 -0
  243. package/types/components/inputs/Checkbox/Checkbox.d.ts +83 -0
  244. package/types/components/inputs/Checkbox/Checkbox.styled.d.ts +29 -0
  245. package/types/components/inputs/Checkbox/index.d.ts +1 -0
  246. package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.d.ts +242 -0
  247. package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.d.ts +104 -0
  248. package/types/components/inputs/CompactAutocompleteSelect/index.d.ts +1 -0
  249. package/types/components/inputs/CompactStarRating/CompactStarRating.d.ts +96 -0
  250. package/types/components/inputs/CompactStarRating/CompactStarRating.styled.d.ts +34 -0
  251. package/types/components/inputs/CompactStarRating/index.d.ts +1 -0
  252. package/types/components/inputs/CompactTextInput/CompactTextInput.d.ts +116 -0
  253. package/types/components/inputs/CompactTextInput/CompactTextInput.styled.d.ts +42 -0
  254. package/types/components/inputs/CompactTextInput/index.d.ts +1 -0
  255. package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.d.ts +41 -0
  256. package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.d.ts +13 -0
  257. package/types/components/inputs/MultiLevelCheckbox/index.d.ts +2 -0
  258. package/types/components/inputs/MultiLevelCheckbox/types.d.ts +29 -0
  259. package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.d.ts +44 -0
  260. package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.d.ts +11 -0
  261. package/types/components/inputs/MultiLevelCheckboxSelect/index.d.ts +1 -0
  262. package/types/components/inputs/MultiSelect/MultiSelect.d.ts +115 -0
  263. package/types/components/inputs/MultiSelect/MultiSelect.styled.d.ts +34 -0
  264. package/types/components/inputs/MultiSelect/index.d.ts +1 -0
  265. package/types/components/inputs/Radio/Radio.d.ts +65 -0
  266. package/types/components/inputs/Radio/Radio.styled.d.ts +11 -0
  267. package/types/components/inputs/Radio/index.d.ts +1 -0
  268. package/types/components/inputs/Switch/Switch.d.ts +62 -0
  269. package/types/components/inputs/Switch/Switch.styled.d.ts +16 -0
  270. package/types/components/inputs/Switch/index.d.ts +1 -0
  271. package/types/components/inputs/TextArea/TextArea.d.ts +120 -0
  272. package/types/components/inputs/TextArea/TextArea.styled.d.ts +93 -0
  273. package/types/components/inputs/TextArea/index.d.ts +1 -0
  274. package/types/components/inputs/TextInput/TextInput.d.ts +109 -0
  275. package/types/components/inputs/TextInput/TextInput.styled.d.ts +43 -0
  276. package/types/components/inputs/TextInput/index.d.ts +1 -0
  277. package/types/components/inputs/index.d.ts +13 -0
  278. package/types/components/layout/InputGroup/InputGroup.d.ts +31 -0
  279. package/types/components/layout/InputGroup/InputGroup.styled.d.ts +1 -0
  280. package/types/components/layout/InputGroup/index.d.ts +1 -0
  281. package/types/components/layout/SectionSeparator/SectionSeparator.d.ts +28 -0
  282. package/types/components/layout/SectionSeparator/SectionSeparator.styled.d.ts +7 -0
  283. package/types/components/layout/SectionSeparator/index.d.ts +1 -0
  284. package/types/components/layout/index.d.ts +2 -0
  285. package/types/components/widgets/AssetAction/AssetAction.d.ts +16 -0
  286. package/types/components/widgets/AssetAction/AssetAction.styled.d.ts +15 -0
  287. package/types/components/widgets/AssetAction/index.d.ts +1 -0
  288. package/types/components/widgets/AssetActionsBase/AssetActionsBase.d.ts +25 -0
  289. package/types/components/widgets/AssetActionsBase/AssetActionsBase.styled.d.ts +1 -0
  290. package/types/components/widgets/AssetActionsBase/index.d.ts +1 -0
  291. package/types/components/widgets/AssetGallery/AssetGallery.d.ts +170 -0
  292. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.d.ts +76 -0
  293. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.d.ts +3 -0
  294. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.d.ts +3 -0
  295. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.d.ts +52 -0
  296. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.d.ts +2 -0
  297. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.d.ts +49 -0
  298. package/types/components/widgets/AssetGallery/asset.types.d.ts +329 -0
  299. package/types/components/widgets/AssetGallery/index.d.ts +1 -0
  300. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.d.ts +60 -0
  301. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.d.ts +21 -0
  302. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/index.d.ts +1 -0
  303. package/types/components/widgets/ContextMenu/ContextMenu.d.ts +118 -0
  304. package/types/components/widgets/ContextMenu/ContextMenu.styled.d.ts +1 -0
  305. package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.d.ts +45 -0
  306. package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.d.ts +18 -0
  307. package/types/components/widgets/ContextMenu/ContextMenuItem/index.d.ts +1 -0
  308. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.d.ts +23 -0
  309. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.d.ts +1 -0
  310. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/index.d.ts +1 -0
  311. package/types/components/widgets/ContextMenu/index.d.ts +1 -0
  312. package/types/components/widgets/InfoCard/InfoCard.d.ts +33 -0
  313. package/types/components/widgets/InfoCard/InfoCard.styled.d.ts +28 -0
  314. package/types/components/widgets/InfoCard/index.d.ts +1 -0
  315. package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.d.ts +46 -0
  316. package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.d.ts +30 -0
  317. package/types/components/widgets/InstructionSeverityDisplay/index.d.ts +1 -0
  318. package/types/components/widgets/Instructions/Instructions.d.ts +156 -0
  319. package/types/components/widgets/Instructions/Instructions.styled.d.ts +14 -0
  320. package/types/components/widgets/Instructions/index.d.ts +1 -0
  321. package/types/components/widgets/ProgressBar/ProgressBar.d.ts +30 -0
  322. package/types/components/widgets/ProgressBar/ProgressBar.styled.d.ts +41 -0
  323. package/types/components/widgets/ProgressBar/index.d.ts +1 -0
  324. package/types/components/widgets/SummaryCard/SummaryCard.d.ts +83 -0
  325. package/types/components/widgets/SummaryCard/SummaryCard.styled.d.ts +29 -0
  326. package/types/components/widgets/SummaryCard/index.d.ts +1 -0
  327. package/types/components/widgets/index.d.ts +11 -0
  328. package/types/hooks/useElementSize.d.ts +14 -0
  329. package/types/hooks/useEventListner.d.ts +14 -0
  330. package/types/hooks/useFloatingPopover.d.ts +161 -0
  331. package/types/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  332. package/types/hooks/useOnClickOutside.d.ts +13 -0
  333. package/types/hooks/useTooltipAutoShow.d.ts +31 -0
  334. package/types/icons/index.d.ts +41 -0
  335. package/types/ssr/index.d.ts +1 -0
  336. package/types/styles/utils/colors-export.d.ts +54 -0
  337. package/types/utils/dateTime.d.ts +8 -0
  338. package/types/utils/defaultTheme.d.ts +95 -0
  339. package/types/utils/getElementRef.d.ts +2 -0
  340. package/types/utils/parseTrigger.d.ts +22 -0
  341. package/build/_virtual/_rollupPluginBabelHelpers.js +0 -12
  342. package/build/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
  343. package/build/widgets/AssetGallery/asset.propType.js +0 -56
  344. package/build/widgets/AssetGallery/asset.propType.js.map +0 -1
@@ -0,0 +1,120 @@
1
+ import React from 'react';
2
+ import * as S from './TextArea.styled';
3
+ type TextAreaOwnProps = {
4
+ /**
5
+ * Value to be sent. Typically the content of the text area.
6
+ */
7
+ value?: string;
8
+ /**
9
+ * Default value/text to be displayed in the text area by default.
10
+ */
11
+ defaultValue?: string;
12
+ /**
13
+ * Name of the text area (used when sending form data)
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Label text for the text area. If the text area is empty (no input and no placeholder)
18
+ * and isn't in focus, the label text will be displayed grayed out in the text area itself.
19
+ * Otherwise, the label text will be displayed in the top left corner.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Field Label text for the text area field. I
24
+ */
25
+ fieldLabel?: string;
26
+ /**
27
+ * Placeholder text to be displayed if the text area is empty (no input)
28
+ */
29
+ placeholder?: string;
30
+ /**
31
+ * Whether the user is required to fill in the text area
32
+ */
33
+ required?: boolean;
34
+ /**
35
+ * Whether the text area is disabled
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Whether the component is hidden or visible.
40
+ */
41
+ hidden?: boolean;
42
+ /**
43
+ * Whether the text area is read-only
44
+ */
45
+ readOnly?: boolean;
46
+ /**
47
+ * Displays a grey background to show that value is editable
48
+ */
49
+ edit?: boolean;
50
+ /**
51
+ * ?
52
+ */
53
+ autoComplete?: string;
54
+ /**
55
+ * Descriptive text displayed below the text area
56
+ */
57
+ description?: string;
58
+ /**
59
+ * Optional icon to be displayed left of the text inside the text area
60
+ */
61
+ icon?: React.ReactElement<any>;
62
+ /**
63
+ * How many rows/lines of text to be displayed by default
64
+ */
65
+ rows?: number | string;
66
+ /**
67
+ * Add custom class names to the HTML element
68
+ */
69
+ className?: string;
70
+ /**
71
+ * Add custom CSS styling
72
+ */
73
+ style?: any;
74
+ /**
75
+ * Add padding (small-medium-large)
76
+ */
77
+ padding?: '' | 'small' | 'medium' | 'large';
78
+ /**
79
+ * Optional callback function for the `onChange` event
80
+ */
81
+ onChange?: (...args: any[]) => any;
82
+ /**
83
+ * Optional callback function for the `onBlur` event
84
+ */
85
+ onBlur?: (...args: any[]) => any;
86
+ noBorder?: boolean;
87
+ /**
88
+ * Define the type based on error,error-border , warning, loading and success.
89
+ */
90
+ type?: '' | 'error' | 'error-border' | 'warning-border' | 'warning' | 'loading' | 'success' | 'instructions-warning';
91
+ /**
92
+ * Icon element â€" E.g: `icon={<Spinner />}`
93
+ */
94
+ loadingIcon?: React.ReactElement<any>;
95
+ /**
96
+ * Icon element â€" E.g: `icon={<Check />}`
97
+ */
98
+ successIcon?: React.ReactElement<any>;
99
+ /**
100
+ * Description ToolTip text.
101
+ */
102
+ descriptionToolTip?: string;
103
+ /**
104
+ * Border Radius for rounded borders.
105
+ */
106
+ borderRadius?: number;
107
+ };
108
+ /**
109
+ * Text areas let users enter and edit text in the UI. They typically appear in forms and dialogs.
110
+ *
111
+ * ### Import
112
+ *
113
+ * ``` js
114
+ * import { TextArea } from '@ntbjs/react-components/inputs'
115
+ * // or
116
+ * import TextArea from '@ntbjs/react-components/inputs/TextArea'
117
+ * ```
118
+ */
119
+ declare const TextArea: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>>, S.TextInputFieldStyleProps>, never>, "ref">, keyof TextAreaOwnProps> & TextAreaOwnProps & React.RefAttributes<any>>;
120
+ export default TextArea;
@@ -0,0 +1,93 @@
1
+ /**
2
+ * `TextArea.tsx`'s `type` prop, verbatim from its
3
+ * `PropTypes.oneOf(['', 'error', 'error-border', 'warning-border', 'warning', 'loading', 'success'])`,
4
+ * carried as `$type` by `TextInputField`, `TextInputFieldIconAlert`, `TextInput` and
5
+ * `Description`.
6
+ *
7
+ * Closed on purpose: the templates branch on this value 26 times, so a mistyped state name
8
+ * becomes a type error instead of a rule that silently never fires. `''` is a member because
9
+ * the component defaults `type = ''`.
10
+ */
11
+ type TextAreaType = '' | 'error' | 'error-border' | 'warning-border' | 'warning' | 'loading' | 'success' | 'instructions-warning';
12
+ /**
13
+ * `TextArea.tsx`'s `padding` prop, from `PropTypes.oneOf(['small', 'medium', 'large'])`.
14
+ * See `TextInputFieldStyleProps` for why this type has two members in that interface.
15
+ *
16
+ * `''` IS HERE FOR THE SAME REASON AS `TextAreaType`'s `'instructions-warning'`:
17
+ * `Instructions`' `padding` union is `'' | 'small' | 'medium' | 'large'` and it forwards
18
+ * the value straight through at `Instructions.tsx:354`. Every read of this value below is
19
+ * an `===` against one of the three real sizes, so an extra member changes no comparison
20
+ * result — and all three of those reads are dead anyway (the DEFERRED DEFECT below: the
21
+ * component passes `$padding`, the template reads `padding`).
22
+ */
23
+ type TextAreaPadding = '' | 'small' | 'medium' | 'large';
24
+ interface DisabledStyleProps {
25
+ /** `disabled` — dims and blocks the pointer. Also reaches the DOM; see above. */
26
+ disabled?: boolean;
27
+ }
28
+ export declare const TextAreaContainter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
29
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>, DisabledStyleProps>, never>> & string;
30
+ export declare const InputIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, DisabledStyleProps>, never>> & string;
31
+ /**
32
+ * Props of `TextInputField`, the `<textarea>` itself. Six transient props plus the two
33
+ * halves of a defect.
34
+ *
35
+ * `readOnly` and `disabled` are deliberately absent: both are real `TextareaHTMLAttributes`
36
+ * members, so the template's reads already typecheck.
37
+ */
38
+ export interface TextInputFieldStyleProps {
39
+ /**
40
+ * `borderRadius` (`PropTypes.number`, default `0`) — interpolated as
41
+ * `${props.$borderRadius}px`, so `number` and not `number | string`: a string here would
42
+ * render `border-radius: 4pxpx`. Same reasoning as `SectionSeparator`'s `$margin`.
43
+ */
44
+ $borderRadius?: number;
45
+ /** `type` — see `TextAreaType`. The template branches on it 26 times. */
46
+ $type?: TextAreaType;
47
+ /** `edit` — shows the editable-affordance background and border. */
48
+ $edit?: boolean;
49
+ /** `noBorder` — suppresses the border by matching it to the background. */
50
+ $noBorder?: boolean;
51
+ /** `Boolean(icon)` — makes room on the left for the icon. */
52
+ $hasIcon?: boolean;
53
+ /** READ by the template, NEVER passed. The dead half — see above. */
54
+ padding?: TextAreaPadding;
55
+ /** PASSED by `TextArea.tsx:118`, never read. The inert half — see above. */
56
+ $padding?: TextAreaPadding;
57
+ }
58
+ export declare const TextInputField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>>, TextInputFieldStyleProps>, never>> & string;
59
+ /**
60
+ * Props of `TextInputLabel`, the floating label. All three come from `TextArea.tsx:150-155`.
61
+ */
62
+ interface TextInputLabelStyleProps {
63
+ /** `inputIsEmpty` state — the label only floats up when the field is NOT empty. */
64
+ $inputIsEmpty?: boolean;
65
+ /** `Boolean(placeholder)` — a placeholder also forces the label up. */
66
+ $hasPlaceholder?: boolean;
67
+ /** `Boolean(icon)` — shifts the label right to clear the icon. */
68
+ $hasIcon?: boolean;
69
+ }
70
+ export declare const TextInputLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>, TextInputLabelStyleProps>, never>> & string;
71
+ export declare const TextInputFieldIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
72
+ export declare const TextInputFieldIconAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
73
+ $type?: TextAreaType;
74
+ }>, never>> & string;
75
+ /**
76
+ * Props of `TextInput`, the positioning wrapper. `TextArea.tsx:91-98` renders
77
+ * `<S.TextInput $fieldLabel={…} disabled={disabled} readOnly={readOnly} $type={type} …>`.
78
+ */
79
+ interface TextInputStyleProps extends DisabledStyleProps {
80
+ /** `!isEmpty(fieldLabel)` — narrows the wrapper to 66.66% so the field label gets a third. */
81
+ $fieldLabel?: boolean;
82
+ /** `type` — only the `error` arm is used here, to recolour the floated label. */
83
+ $type?: TextAreaType;
84
+ /** Passed by `TextArea.tsx:94`, read by nothing. Leaks as `readonly=""`; see above. */
85
+ readOnly?: boolean;
86
+ }
87
+ export declare const TextInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, TextInputStyleProps>, never>> & string;
88
+ export declare const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, {
89
+ $type?: TextAreaType;
90
+ }>, never>> & string;
91
+ export declare const SuccessContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
92
+ export declare const SuccessContainerLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
93
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './TextArea';
@@ -0,0 +1,109 @@
1
+ import React from 'react';
2
+ import * as S from './TextInput.styled';
3
+ type TextInputOwnProps = {
4
+ /**
5
+ * Content of the text input field
6
+ */
7
+ value?: string;
8
+ /**
9
+ * Default content of the text input field
10
+ */
11
+ defaultValue?: string;
12
+ /**
13
+ * Name of the text input field (used when sending form data)
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Label text for the text input field. If the text input field is empty (no input and no placeholder)
18
+ * and isn't in focus, the label text will be displayed grayed out in the field itself.
19
+ * Otherwise, the label text will be displayed in the top left corner.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Placeholder text to be displayed if the text area is empty (no input)
24
+ */
25
+ placeholder?: string;
26
+ /**
27
+ * Type of input – e.g. `text`, `email`, `password`, etc.
28
+ */
29
+ type?: string;
30
+ /**
31
+ * Whether the field is required
32
+ */
33
+ required?: boolean;
34
+ /**
35
+ * Whether the field is disabled
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Whether the field is read-only
40
+ */
41
+ readOnly?: boolean;
42
+ /**
43
+ * ?
44
+ */
45
+ autoComplete?: string;
46
+ /**
47
+ * Descriptive text displayed below the text input field
48
+ */
49
+ description?: string;
50
+ /**
51
+ * Set to `true` to display the text input field with a red border. Set to a string to
52
+ * aslo display the given string as an error message below the field.
53
+ */
54
+ error?: boolean | string;
55
+ /**
56
+ * Set to `true` to display the text input field with a yellow/orange border. Set to a string to
57
+ * aslo display the given string as a warning message below the field.
58
+ */
59
+ warning?: boolean | string;
60
+ /**
61
+ * Optional icon to be displayed left of the text inside the text area
62
+ */
63
+ icon?: React.ReactElement<any>;
64
+ /**
65
+ * Text to be displayed before/after the user input. Takes an object with two values:
66
+ * `prefix` and `suffix`, where prefix will be displayed before and suffix will be
67
+ * displayed after the user input.
68
+ */
69
+ adornments?: {
70
+ prefix?: string;
71
+ suffix?: string;
72
+ };
73
+ /**
74
+ * Add custom class names to the HTML element
75
+ */
76
+ className?: string;
77
+ /**
78
+ * Add custom CSS styling
79
+ */
80
+ style?: any;
81
+ /**
82
+ * Optional callback function for the `onChange` event
83
+ */
84
+ onChange?: (...args: any[]) => any;
85
+ /**
86
+ * Optional callback function for the `onBlur` event
87
+ */
88
+ onBlur?: (...args: any[]) => any;
89
+ /**
90
+ * Whether to display the text input field without borders when it's not in focus
91
+ */
92
+ noBorder?: boolean;
93
+ };
94
+ /**
95
+ * Text inputs let users enter and edit text in the UI. They typically appear in forms and dialogs.
96
+ *
97
+ * ### Import
98
+ *
99
+ * ``` js
100
+ * import { TextInput } from '@ntbjs/react-components/inputs'
101
+ * // or
102
+ * import TextInput from '@ntbjs/react-components/inputs/TextInput'
103
+ * ```
104
+ */
105
+ declare const TextInput: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>, S.ValidationStyleProps & {
106
+ $noBorder?: boolean;
107
+ $hasIcon?: boolean;
108
+ }>, never>, "ref">, keyof TextInputOwnProps> & TextInputOwnProps & React.RefAttributes<any>>;
109
+ export default TextInput;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The validation pair that five of this file's seven styled components carry.
3
+ *
4
+ * `boolean` for both, and NOT the `bool | string` that `error`'s and `warning`'s own
5
+ * propTypes allow: `TextInput.tsx` derives `hasError` / `hasWarning`
6
+ * (`isBoolean(x) ? x : !isEmpty(x)`) and passes those, keeping the message text for
7
+ * `Description`'s children. The JSX site says which value arrives.
8
+ */
9
+ export interface ValidationStyleProps {
10
+ /** `hasError` — red border / red message. */
11
+ $error?: boolean;
12
+ /** `hasWarning` — orange border / orange message. */
13
+ $warning?: boolean;
14
+ }
15
+ export declare const Adornment: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, ValidationStyleProps & {
16
+ /**
17
+ * `true` on the prefix adornment and `false` on the suffix one — the JSX passes
18
+ * both literals explicitly, so this is `boolean` and the `else` arm is live.
19
+ */
20
+ $isPrefix?: boolean;
21
+ }>, never>> & string;
22
+ export declare const TextInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
23
+ export declare const InputIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, ValidationStyleProps>, never>> & string;
24
+ export declare const TextInputField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>, ValidationStyleProps & {
25
+ /** `noBorder` — `PropTypes.bool`, component default `false`. */
26
+ $noBorder?: boolean;
27
+ /** `Boolean(icon)` — derived, so `boolean` and not `icon`'s element type. */
28
+ $hasIcon?: boolean;
29
+ }>, never>> & string;
30
+ export declare const TextInputLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>, {
31
+ /** `Boolean(placeholder)` — floats the label out of the field. */
32
+ $hasPlaceholder?: boolean;
33
+ /** `Boolean(prefix || suffix)` — same effect, for the adornment case. */
34
+ $hasAdornments?: boolean;
35
+ /** `Boolean(icon)` — shifts the label right of the icon. */
36
+ $hasIcon?: boolean;
37
+ }>, never>> & string;
38
+ export declare const TextInputFieldIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
39
+ export declare const TextInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, ValidationStyleProps & {
40
+ /** `disabled` — `PropTypes.bool`. Leaks to the DOM; see above. */
41
+ disabled?: boolean;
42
+ }>, never>> & string;
43
+ export declare const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, ValidationStyleProps>, never>> & string;
@@ -0,0 +1 @@
1
+ export { default } from './TextInput';
@@ -0,0 +1,13 @@
1
+ export { default as ActionButton } from './ActionButton';
2
+ export { default as Button } from './Button';
3
+ export { default as Checkbox } from './Checkbox';
4
+ export { default as CompactAutocompleteSelect } from './CompactAutocompleteSelect';
5
+ export { default as CompactStarRating } from './CompactStarRating';
6
+ export { default as CompactTextInput } from './CompactTextInput';
7
+ export { default as MultiSelect } from './MultiSelect';
8
+ export { default as Radio } from './Radio';
9
+ export { default as TextArea } from './TextArea';
10
+ export { default as TextInput } from './TextInput';
11
+ export { default as Switch } from './Switch';
12
+ export { default as MultiLevelCheckbox } from './MultiLevelCheckbox';
13
+ export { default as MultiLevelCheckboxSelect } from './MultiLevelCheckboxSelect';
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ type InputGroupOwnProps = {
3
+ /**
4
+ * An array of inputs – e.g. `<CompactTextInput>`
5
+ */
6
+ children?: React.ReactNode;
7
+ };
8
+ /**
9
+ * Wrapper component to visually group related inputs by adding space above/below the group.
10
+ *
11
+ * ### Import
12
+ *
13
+ * ``` js
14
+ * import { InputGroup } from '@ntbjs/react-components/layout'
15
+ * // or
16
+ * import InputGroup from '@ntbjs/react-components/layout/InputGroup'
17
+ * ```
18
+ *
19
+ * ### Usage example
20
+ * Pass an array of input elements to the `InputGroup` as its children:
21
+ *
22
+ * ``` js
23
+ const item1 = <CompactTextInput label="Size" type="text" value="4369 x 2913 px" />;
24
+ const item2 = <CompactTextInput label="Resolution" type="text" value="300 dpi 37.0 x 24.7 cm px" />;
25
+ const item3 = <CompactTextInput label="File size" type="text" value="7.22 MB" />;
26
+
27
+ const inputGroup = <InputGroup>{[item1, item2, item3, item4]}</InputGroup>;
28
+ * ```
29
+ */
30
+ declare const InputGroup: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>, "ref">, "children"> & InputGroupOwnProps & React.RefAttributes<any>>;
31
+ export default InputGroup;
@@ -0,0 +1 @@
1
+ export declare const InputGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
@@ -0,0 +1 @@
1
+ export { default } from './InputGroup';
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import * as S from './SectionSeparator.styled';
3
+ type SectionSeparatorOwnProps = {
4
+ /**
5
+ * Whether the section separator should be displayed vertically.
6
+ */
7
+ vertical?: boolean;
8
+ /**
9
+ * Padding in pixels to apply to the separator.
10
+ */
11
+ margin?: number;
12
+ };
13
+ /**
14
+ * Section separators are used to separate sections in the UI.
15
+ * It will fill 100% of the width or height of its parent container by default.
16
+ *
17
+ *
18
+ * ### Import
19
+ *
20
+ * ``` js
21
+ * import { SectionSeparator } from '@ntbjs/react-components/layout'
22
+ * // or
23
+ * import SectionSeparator from '@ntbjs/react-components/layout/SectionSeparator'
24
+ * ```
25
+ *
26
+ */
27
+ declare const SectionSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, S.SectionSeparatorStyleProps>, never>, "ref">, keyof SectionSeparatorOwnProps> & SectionSeparatorOwnProps & React.RefAttributes<any>>;
28
+ export default SectionSeparator;
@@ -0,0 +1,7 @@
1
+ export interface SectionSeparatorStyleProps {
2
+ /** `vertical` — swaps which axis gets the 1px hairline. */
3
+ $vertical?: boolean;
4
+ /** `margin` — px, interpolated so type is `number`. */
5
+ $margin?: number;
6
+ }
7
+ export declare const SectionSeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, SectionSeparatorStyleProps>, never>> & string;
@@ -0,0 +1 @@
1
+ export { default } from './SectionSeparator';
@@ -0,0 +1,2 @@
1
+ export { default as InputGroup } from './InputGroup';
2
+ export { default as SectionSeparator } from './SectionSeparator';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ type AssetActionOwnProps = {
3
+ action?: {
4
+ icon?: React.ReactNode;
5
+ onClick?: (...args: any[]) => any;
6
+ actionWidthHeight?: number[];
7
+ title?: string;
8
+ };
9
+ asset?: any;
10
+ itemKey?: string;
11
+ };
12
+ /**
13
+ * This is a component to help you get started with development.
14
+ */
15
+ declare const AssetAction: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>, "ref">, keyof AssetActionOwnProps> & AssetActionOwnProps & React.RefAttributes<any>>;
16
+ export default AssetAction;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Props passed by `AssetAction.tsx` to `<S.AssetActionButton>`.
3
+ */
4
+ interface AssetActionButtonStyleProps {
5
+ /**
6
+ * `[width, height]` in pixels, used arithmetically.
7
+ */
8
+ $actionWidthHeight?: number[];
9
+ }
10
+ export declare const AssetAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
11
+ export declare const AssetActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, AssetActionButtonStyleProps>, never>> & string;
12
+ export declare const ActionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
13
+ export declare const StyledFloatingArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("@floating-ui/react").FloatingArrowProps, "ref"> & import("react").RefAttributes<SVGSVGElement>, Omit<import("@floating-ui/react").FloatingArrowProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>, never>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("@floating-ui/react").FloatingArrowProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
14
+ export declare const Floating: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './AssetAction';
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ type AssetActionsBaseOwnProps = {
3
+ actions?: any[];
4
+ asset?: any;
5
+ };
6
+ declare const AssetActionsBase: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>, "ref">, keyof {
7
+ action?: {
8
+ icon?: React.ReactNode;
9
+ onClick?: (...args: any[]) => any;
10
+ actionWidthHeight?: number[];
11
+ title?: string;
12
+ };
13
+ asset?: any;
14
+ itemKey?: string;
15
+ }> & {
16
+ action?: {
17
+ icon?: React.ReactNode;
18
+ onClick?: (...args: any[]) => any;
19
+ actionWidthHeight?: number[];
20
+ title?: string;
21
+ };
22
+ asset?: any;
23
+ itemKey?: string;
24
+ } & React.RefAttributes<any>, "ref">, keyof AssetActionsBaseOwnProps> & AssetActionsBaseOwnProps & React.RefAttributes<any>>;
25
+ export default AssetActionsBase;
@@ -0,0 +1 @@
1
+ export declare const AssetActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
@@ -0,0 +1 @@
1
+ export { default } from './AssetActionsBase';