@ntbjs/react-components 2.0.13 → 3.0.0-rc.1

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 (343) hide show
  1. package/build/data/Alert/Alert.js +18 -33
  2. package/build/data/Alert/Alert.js.map +1 -1
  3. package/build/data/Alert/Alert.styled.js +9 -47
  4. package/build/data/Alert/Alert.styled.js.map +1 -1
  5. package/build/data/Badge/Badge.js +36 -61
  6. package/build/data/Badge/Badge.js.map +1 -1
  7. package/build/data/Badge/Badge.styled.js +21 -70
  8. package/build/data/Badge/Badge.styled.js.map +1 -1
  9. package/build/data/Popover/Popover.js +125 -71
  10. package/build/data/Popover/Popover.js.map +1 -1
  11. package/build/data/Popover/Popover.styled.js +10 -140
  12. package/build/data/Popover/Popover.styled.js.map +1 -1
  13. package/build/data/SeverityBadge/SeverityBadge.js +13 -22
  14. package/build/data/SeverityBadge/SeverityBadge.js.map +1 -1
  15. package/build/data/SeverityBadge/index.js +2 -0
  16. package/build/data/SeverityBadge/index.js.map +1 -0
  17. package/build/data/Tab/Tab.js +7 -13
  18. package/build/data/Tab/Tab.js.map +1 -1
  19. package/build/data/Tab/Tab.styled.js +4 -7
  20. package/build/data/Tab/Tab.styled.js.map +1 -1
  21. package/build/data/Tabs/Tabs.js +30 -32
  22. package/build/data/Tabs/Tabs.js.map +1 -1
  23. package/build/data/Tabs/Tabs.styled.js +21 -57
  24. package/build/data/Tabs/Tabs.styled.js.map +1 -1
  25. package/build/data/Tooltip/Tooltip.js +102 -33
  26. package/build/data/Tooltip/Tooltip.js.map +1 -1
  27. package/build/data/Tooltip/Tooltip.styled.js +9 -22
  28. package/build/data/Tooltip/Tooltip.styled.js.map +1 -1
  29. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +16 -23
  30. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -1
  31. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +13 -31
  32. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -1
  33. package/build/data/VerificationStatusIcon/index.js +2 -0
  34. package/build/data/VerificationStatusIcon/index.js.map +1 -0
  35. package/build/data/_shared/FloatingArrow.styled.js +30 -0
  36. package/build/data/_shared/FloatingArrow.styled.js.map +1 -0
  37. package/build/hooks/useEventListner.js.map +1 -1
  38. package/build/hooks/useFloatingPopover.js +187 -0
  39. package/build/hooks/useFloatingPopover.js.map +1 -0
  40. package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  41. package/build/hooks/useOnClickOutside.js.map +1 -1
  42. package/build/hooks/useTooltipAutoShow.js.map +1 -1
  43. package/build/icons/arrow-back.svg.js +3 -3
  44. package/build/icons/arrow-back.svg.js.map +1 -1
  45. package/build/icons/arrow-forward.svg.js +4 -4
  46. package/build/icons/arrow-forward.svg.js.map +1 -1
  47. package/build/icons/check-rectangle-filled.svg.js +3 -3
  48. package/build/icons/check-rectangle-filled.svg.js.map +1 -1
  49. package/build/icons/close.svg.js +3 -3
  50. package/build/icons/close.svg.js.map +1 -1
  51. package/build/icons/edit-note.svg.js +3 -3
  52. package/build/icons/edit-note.svg.js.map +1 -1
  53. package/build/icons/expand-more.svg.js +3 -3
  54. package/build/icons/expand-more.svg.js.map +1 -1
  55. package/build/icons/headset.svg.js +3 -3
  56. package/build/icons/headset.svg.js.map +1 -1
  57. package/build/icons/layers.svg.js +3 -3
  58. package/build/icons/layers.svg.js.map +1 -1
  59. package/build/icons/link.svg.js +3 -3
  60. package/build/icons/link.svg.js.map +1 -1
  61. package/build/icons/play.svg.js +3 -3
  62. package/build/icons/play.svg.js.map +1 -1
  63. package/build/icons/search.svg.js +3 -3
  64. package/build/icons/search.svg.js.map +1 -1
  65. package/build/icons/star-filled.svg.js +3 -3
  66. package/build/icons/star-filled.svg.js.map +1 -1
  67. package/build/icons/star.svg.js +3 -3
  68. package/build/icons/star.svg.js.map +1 -1
  69. package/build/icons/triangle-right.svg.js +3 -3
  70. package/build/icons/triangle-right.svg.js.map +1 -1
  71. package/build/icons/verification.svg.js +3 -3
  72. package/build/icons/verification.svg.js.map +1 -1
  73. package/build/icons/warning-circle.svg.js +3 -3
  74. package/build/icons/warning-circle.svg.js.map +1 -1
  75. package/build/inputs/ActionButton/ActionButton.js +11 -22
  76. package/build/inputs/ActionButton/ActionButton.js.map +1 -1
  77. package/build/inputs/ActionButton/ActionButton.styled.js +5 -54
  78. package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -1
  79. package/build/inputs/Button/Button.js +125 -121
  80. package/build/inputs/Button/Button.js.map +1 -1
  81. package/build/inputs/Button/Button.styled.js +42 -260
  82. package/build/inputs/Button/Button.styled.js.map +1 -1
  83. package/build/inputs/Checkbox/Checkbox.js +45 -61
  84. package/build/inputs/Checkbox/Checkbox.js.map +1 -1
  85. package/build/inputs/Checkbox/Checkbox.styled.js +24 -153
  86. package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -1
  87. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +106 -111
  88. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -1
  89. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +88 -273
  90. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -1
  91. package/build/inputs/CompactStarRating/CompactStarRating.js +56 -77
  92. package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -1
  93. package/build/inputs/CompactStarRating/CompactStarRating.styled.js +32 -211
  94. package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -1
  95. package/build/inputs/CompactTextInput/CompactTextInput.js +86 -105
  96. package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -1
  97. package/build/inputs/CompactTextInput/CompactTextInput.styled.js +55 -258
  98. package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -1
  99. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +70 -77
  100. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -1
  101. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +28 -60
  102. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -1
  103. package/build/inputs/MultiLevelCheckbox/types.js +12 -12
  104. package/build/inputs/MultiLevelCheckbox/types.js.map +1 -1
  105. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +69 -73
  106. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -1
  107. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +44 -87
  108. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -1
  109. package/build/inputs/MultiSelect/MultiSelect.js +69 -79
  110. package/build/inputs/MultiSelect/MultiSelect.js.map +1 -1
  111. package/build/inputs/MultiSelect/MultiSelect.styled.js +70 -76
  112. package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -1
  113. package/build/inputs/Radio/Radio.js +20 -33
  114. package/build/inputs/Radio/Radio.js.map +1 -1
  115. package/build/inputs/Radio/Radio.styled.js +15 -96
  116. package/build/inputs/Radio/Radio.styled.js.map +1 -1
  117. package/build/inputs/Switch/Switch.js +28 -40
  118. package/build/inputs/Switch/Switch.js.map +1 -1
  119. package/build/inputs/Switch/Switch.styled.js +24 -94
  120. package/build/inputs/Switch/Switch.styled.js.map +1 -1
  121. package/build/inputs/TextArea/TextArea.js +98 -123
  122. package/build/inputs/TextArea/TextArea.js.map +1 -1
  123. package/build/inputs/TextArea/TextArea.styled.js +64 -379
  124. package/build/inputs/TextArea/TextArea.styled.js.map +1 -1
  125. package/build/inputs/TextInput/TextInput.js +59 -79
  126. package/build/inputs/TextInput/TextInput.js.map +1 -1
  127. package/build/inputs/TextInput/TextInput.styled.js +33 -224
  128. package/build/inputs/TextInput/TextInput.styled.js.map +1 -1
  129. package/build/layout/InputGroup/InputGroup.js +6 -9
  130. package/build/layout/InputGroup/InputGroup.js.map +1 -1
  131. package/build/layout/InputGroup/InputGroup.styled.js +4 -3
  132. package/build/layout/InputGroup/InputGroup.styled.js.map +1 -1
  133. package/build/layout/InputGroup/index.js +2 -0
  134. package/build/layout/InputGroup/index.js.map +1 -0
  135. package/build/layout/SectionSeparator/SectionSeparator.js +5 -9
  136. package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -1
  137. package/build/layout/SectionSeparator/SectionSeparator.styled.js +4 -8
  138. package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -1
  139. package/build/styles/utils/colors-export.d.ts +73 -0
  140. package/build/styles/utils/colors-export.js.map +1 -1
  141. package/build/utils/dateTime.js.map +1 -1
  142. package/build/utils/defaultTheme.js +14 -28
  143. package/build/utils/defaultTheme.js.map +1 -1
  144. package/build/utils/getElementRef.js +14 -0
  145. package/build/utils/getElementRef.js.map +1 -0
  146. package/build/utils/parseTrigger.js +16 -0
  147. package/build/utils/parseTrigger.js.map +1 -0
  148. package/build/widgets/AssetAction/AssetAction.js +26 -33
  149. package/build/widgets/AssetAction/AssetAction.js.map +1 -1
  150. package/build/widgets/AssetAction/AssetAction.styled.js +20 -34
  151. package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -1
  152. package/build/widgets/AssetActionsBase/AssetActionsBase.js +8 -13
  153. package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -1
  154. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +4 -9
  155. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -1
  156. package/build/widgets/AssetGallery/AssetGallery.js +15 -40
  157. package/build/widgets/AssetGallery/AssetGallery.js.map +1 -1
  158. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +55 -70
  159. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -1
  160. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -24
  161. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -1
  162. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +146 -120
  163. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -1
  164. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +99 -285
  165. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -1
  166. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +170 -125
  167. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -1
  168. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +135 -364
  169. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -1
  170. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +20 -21
  171. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -1
  172. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +20 -71
  173. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -1
  174. package/build/widgets/ContextMenu/ContextMenu.js +12 -11
  175. package/build/widgets/ContextMenu/ContextMenu.js.map +1 -1
  176. package/build/widgets/ContextMenu/ContextMenu.styled.js +4 -4
  177. package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -1
  178. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +17 -25
  179. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -1
  180. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -71
  181. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -1
  182. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +7 -11
  183. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -1
  184. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +4 -11
  185. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -1
  186. package/build/widgets/InfoCard/InfoCard.js +26 -21
  187. package/build/widgets/InfoCard/InfoCard.js.map +1 -1
  188. package/build/widgets/InfoCard/InfoCard.styled.js +36 -84
  189. package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -1
  190. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js +28 -34
  191. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.js.map +1 -1
  192. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js +21 -57
  193. package/build/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.js.map +1 -1
  194. package/build/widgets/InstructionSeverityDisplay/index.js +2 -0
  195. package/build/widgets/InstructionSeverityDisplay/index.js.map +1 -0
  196. package/build/widgets/Instructions/Instructions.js +53 -95
  197. package/build/widgets/Instructions/Instructions.js.map +1 -1
  198. package/build/widgets/Instructions/Instructions.styled.js +27 -26
  199. package/build/widgets/Instructions/Instructions.styled.js.map +1 -1
  200. package/build/widgets/ProgressBar/ProgressBar.js +39 -37
  201. package/build/widgets/ProgressBar/ProgressBar.js.map +1 -1
  202. package/build/widgets/ProgressBar/ProgressBar.styled.js +56 -125
  203. package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -1
  204. package/build/widgets/SummaryCard/SummaryCard.js +55 -64
  205. package/build/widgets/SummaryCard/SummaryCard.js.map +1 -1
  206. package/build/widgets/SummaryCard/SummaryCard.styled.js +51 -106
  207. package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -1
  208. package/package.json +77 -36
  209. package/styles/utils/colors-export.d.ts +73 -0
  210. package/types/components/data/Alert/Alert.d.ts +76 -0
  211. package/types/components/data/Alert/Alert.styled.d.ts +83 -0
  212. package/types/components/data/Alert/index.d.ts +1 -0
  213. package/types/components/data/Badge/Badge.d.ts +128 -0
  214. package/types/components/data/Badge/Badge.styled.d.ts +132 -0
  215. package/types/components/data/Badge/index.d.ts +1 -0
  216. package/types/components/data/Popover/Popover.d.ts +205 -0
  217. package/types/components/data/Popover/Popover.styled.d.ts +15 -0
  218. package/types/components/data/Popover/index.d.ts +1 -0
  219. package/types/components/data/SeverityBadge/SeverityBadge.d.ts +72 -0
  220. package/types/components/data/SeverityBadge/index.d.ts +1 -0
  221. package/types/components/data/Tab/Tab.d.ts +27 -0
  222. package/types/components/data/Tab/Tab.styled.d.ts +1 -0
  223. package/types/components/data/Tab/index.d.ts +1 -0
  224. package/types/components/data/Tabs/Tabs.d.ts +111 -0
  225. package/types/components/data/Tabs/Tabs.styled.d.ts +42 -0
  226. package/types/components/data/Tabs/index.d.ts +1 -0
  227. package/types/components/data/Tooltip/Tooltip.d.ts +134 -0
  228. package/types/components/data/Tooltip/Tooltip.styled.d.ts +8 -0
  229. package/types/components/data/Tooltip/index.d.ts +1 -0
  230. package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.d.ts +35 -0
  231. package/types/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.d.ts +46 -0
  232. package/types/components/data/VerificationStatusIcon/index.d.ts +1 -0
  233. package/types/components/data/_shared/FloatingArrow.styled.d.ts +129 -0
  234. package/types/components/data/index.d.ts +8 -0
  235. package/types/components/index.d.ts +3 -0
  236. package/types/components/inputs/ActionButton/ActionButton.d.ts +55 -0
  237. package/types/components/inputs/ActionButton/ActionButton.styled.d.ts +34 -0
  238. package/types/components/inputs/ActionButton/index.d.ts +1 -0
  239. package/types/components/inputs/Button/Button.d.ts +82 -0
  240. package/types/components/inputs/Button/Button.styled.d.ts +102 -0
  241. package/types/components/inputs/Button/index.d.ts +1 -0
  242. package/types/components/inputs/Checkbox/Checkbox.d.ts +92 -0
  243. package/types/components/inputs/Checkbox/Checkbox.styled.d.ts +33 -0
  244. package/types/components/inputs/Checkbox/index.d.ts +1 -0
  245. package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.d.ts +242 -0
  246. package/types/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.d.ts +157 -0
  247. package/types/components/inputs/CompactAutocompleteSelect/index.d.ts +1 -0
  248. package/types/components/inputs/CompactStarRating/CompactStarRating.d.ts +96 -0
  249. package/types/components/inputs/CompactStarRating/CompactStarRating.styled.d.ts +86 -0
  250. package/types/components/inputs/CompactStarRating/index.d.ts +1 -0
  251. package/types/components/inputs/CompactTextInput/CompactTextInput.d.ts +116 -0
  252. package/types/components/inputs/CompactTextInput/CompactTextInput.styled.d.ts +70 -0
  253. package/types/components/inputs/CompactTextInput/index.d.ts +1 -0
  254. package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.d.ts +41 -0
  255. package/types/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.d.ts +21 -0
  256. package/types/components/inputs/MultiLevelCheckbox/index.d.ts +2 -0
  257. package/types/components/inputs/MultiLevelCheckbox/types.d.ts +72 -0
  258. package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.d.ts +44 -0
  259. package/types/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.d.ts +11 -0
  260. package/types/components/inputs/MultiLevelCheckboxSelect/index.d.ts +1 -0
  261. package/types/components/inputs/MultiSelect/MultiSelect.d.ts +172 -0
  262. package/types/components/inputs/MultiSelect/MultiSelect.styled.d.ts +99 -0
  263. package/types/components/inputs/MultiSelect/index.d.ts +1 -0
  264. package/types/components/inputs/Radio/Radio.d.ts +65 -0
  265. package/types/components/inputs/Radio/Radio.styled.d.ts +11 -0
  266. package/types/components/inputs/Radio/index.d.ts +1 -0
  267. package/types/components/inputs/Switch/Switch.d.ts +62 -0
  268. package/types/components/inputs/Switch/Switch.styled.d.ts +20 -0
  269. package/types/components/inputs/Switch/index.d.ts +1 -0
  270. package/types/components/inputs/TextArea/TextArea.d.ts +124 -0
  271. package/types/components/inputs/TextArea/TextArea.styled.d.ts +95 -0
  272. package/types/components/inputs/TextArea/index.d.ts +1 -0
  273. package/types/components/inputs/TextInput/TextInput.d.ts +109 -0
  274. package/types/components/inputs/TextInput/TextInput.styled.d.ts +43 -0
  275. package/types/components/inputs/TextInput/index.d.ts +1 -0
  276. package/types/components/inputs/index.d.ts +13 -0
  277. package/types/components/layout/InputGroup/InputGroup.d.ts +31 -0
  278. package/types/components/layout/InputGroup/InputGroup.styled.d.ts +1 -0
  279. package/types/components/layout/InputGroup/index.d.ts +1 -0
  280. package/types/components/layout/SectionSeparator/SectionSeparator.d.ts +28 -0
  281. package/types/components/layout/SectionSeparator/SectionSeparator.styled.d.ts +14 -0
  282. package/types/components/layout/SectionSeparator/index.d.ts +1 -0
  283. package/types/components/layout/index.d.ts +2 -0
  284. package/types/components/widgets/AssetAction/AssetAction.d.ts +16 -0
  285. package/types/components/widgets/AssetAction/AssetAction.styled.d.ts +20 -0
  286. package/types/components/widgets/AssetAction/index.d.ts +1 -0
  287. package/types/components/widgets/AssetActionsBase/AssetActionsBase.d.ts +25 -0
  288. package/types/components/widgets/AssetActionsBase/AssetActionsBase.styled.d.ts +1 -0
  289. package/types/components/widgets/AssetActionsBase/index.d.ts +1 -0
  290. package/types/components/widgets/AssetGallery/AssetGallery.d.ts +170 -0
  291. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.d.ts +88 -0
  292. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.d.ts +3 -0
  293. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.d.ts +3 -0
  294. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.d.ts +100 -0
  295. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.d.ts +2 -0
  296. package/types/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.d.ts +85 -0
  297. package/types/components/widgets/AssetGallery/asset.types.d.ts +446 -0
  298. package/types/components/widgets/AssetGallery/index.d.ts +1 -0
  299. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.d.ts +60 -0
  300. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.d.ts +35 -0
  301. package/types/components/widgets/AssetPreview/AssetPreviewTopBar/index.d.ts +1 -0
  302. package/types/components/widgets/ContextMenu/ContextMenu.d.ts +134 -0
  303. package/types/components/widgets/ContextMenu/ContextMenu.styled.d.ts +1 -0
  304. package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.d.ts +45 -0
  305. package/types/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.d.ts +26 -0
  306. package/types/components/widgets/ContextMenu/ContextMenuItem/index.d.ts +1 -0
  307. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.d.ts +41 -0
  308. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.d.ts +1 -0
  309. package/types/components/widgets/ContextMenu/ContextMenuItemsGroup/index.d.ts +1 -0
  310. package/types/components/widgets/ContextMenu/index.d.ts +1 -0
  311. package/types/components/widgets/InfoCard/InfoCard.d.ts +33 -0
  312. package/types/components/widgets/InfoCard/InfoCard.styled.d.ts +45 -0
  313. package/types/components/widgets/InfoCard/index.d.ts +1 -0
  314. package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.d.ts +46 -0
  315. package/types/components/widgets/InstructionSeverityDisplay/InstructionSeverityDisplay.styled.d.ts +40 -0
  316. package/types/components/widgets/InstructionSeverityDisplay/index.d.ts +1 -0
  317. package/types/components/widgets/Instructions/Instructions.d.ts +156 -0
  318. package/types/components/widgets/Instructions/Instructions.styled.d.ts +26 -0
  319. package/types/components/widgets/Instructions/index.d.ts +1 -0
  320. package/types/components/widgets/ProgressBar/ProgressBar.d.ts +30 -0
  321. package/types/components/widgets/ProgressBar/ProgressBar.styled.d.ts +78 -0
  322. package/types/components/widgets/ProgressBar/index.d.ts +1 -0
  323. package/types/components/widgets/SummaryCard/SummaryCard.d.ts +83 -0
  324. package/types/components/widgets/SummaryCard/SummaryCard.styled.d.ts +68 -0
  325. package/types/components/widgets/SummaryCard/index.d.ts +1 -0
  326. package/types/components/widgets/index.d.ts +11 -0
  327. package/types/hooks/useElementSize.d.ts +25 -0
  328. package/types/hooks/useEventListner.d.ts +46 -0
  329. package/types/hooks/useFloatingPopover.d.ts +242 -0
  330. package/types/hooks/useIsomorphicLayoutEffect.d.ts +26 -0
  331. package/types/hooks/useOnClickOutside.d.ts +31 -0
  332. package/types/hooks/useTooltipAutoShow.d.ts +80 -0
  333. package/types/icons/index.d.ts +41 -0
  334. package/types/ssr/index.d.ts +1 -0
  335. package/types/styles/utils/colors-export.d.ts +73 -0
  336. package/types/utils/dateTime.d.ts +13 -0
  337. package/types/utils/defaultTheme.d.ts +174 -0
  338. package/types/utils/getElementRef.d.ts +21 -0
  339. package/types/utils/parseTrigger.d.ts +92 -0
  340. package/build/_virtual/_rollupPluginBabelHelpers.js +0 -12
  341. package/build/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
  342. package/build/widgets/AssetGallery/asset.propType.js +0 -56
  343. package/build/widgets/AssetGallery/asset.propType.js.map +0 -1
@@ -0,0 +1,124 @@
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
+ * `''` is not from this component's propTypes; `Instructions` forwards its own
78
+ * `'' | 'small' | 'medium' | 'large'` straight in at `Instructions.tsx:354`. Kept in
79
+ * sync with `TextAreaPadding` in `TextArea.styled.ts`, which has the full rationale.
80
+ */
81
+ padding?: '' | 'small' | 'medium' | 'large';
82
+ /**
83
+ * Optional callback function for the `onChange` event
84
+ */
85
+ onChange?: (...args: any[]) => any;
86
+ /**
87
+ * Optional callback function for the `onBlur` event
88
+ */
89
+ onBlur?: (...args: any[]) => any;
90
+ noBorder?: boolean;
91
+ /**
92
+ * Define the type based on error,error-border , warning, loading and success.
93
+ */
94
+ type?: '' | 'error' | 'error-border' | 'warning-border' | 'warning' | 'loading' | 'success' | 'instructions-warning';
95
+ /**
96
+ * Icon element â€" E.g: `icon={<Spinner />}`
97
+ */
98
+ loadingIcon?: React.ReactElement<any>;
99
+ /**
100
+ * Icon element â€" E.g: `icon={<Check />}`
101
+ */
102
+ successIcon?: React.ReactElement<any>;
103
+ /**
104
+ * Description ToolTip text.
105
+ */
106
+ descriptionToolTip?: string;
107
+ /**
108
+ * Border Radius for rounded borders.
109
+ */
110
+ borderRadius?: number;
111
+ };
112
+ /**
113
+ * Text areas let users enter and edit text in the UI. They typically appear in forms and dialogs.
114
+ *
115
+ * ### Import
116
+ *
117
+ * ``` js
118
+ * import { TextArea } from '@ntbjs/react-components/inputs'
119
+ * // or
120
+ * import TextArea from '@ntbjs/react-components/inputs/TextArea'
121
+ * ```
122
+ */
123
+ 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>>;
124
+ export default TextArea;
@@ -0,0 +1,95 @@
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 (§J.6): the templates below branch on this value 26 times, and with a
8
+ * closed union a mistyped state name is TS2367 instead of a rule that silently never
9
+ * fires — which is exactly the failure this file already contains three of. `''` is a
10
+ * member because the component defaults `type = ''` (tsx line 40).
11
+ */
12
+ type TextAreaType = '' | 'error' | 'error-border' | 'warning-border' | 'warning' | 'loading' | 'success' | 'instructions-warning';
13
+ /**
14
+ * `TextArea.tsx`'s `padding` prop, from `PropTypes.oneOf(['small', 'medium', 'large'])`.
15
+ * See `TextInputFieldStyleProps` for why this type has two members in that interface.
16
+ *
17
+ * `''` IS HERE FOR THE SAME REASON AS `TextAreaType`'s `'instructions-warning'`:
18
+ * `Instructions`' `padding` union is `'' | 'small' | 'medium' | 'large'` and it forwards
19
+ * the value straight through at `Instructions.tsx:354`. Every read of this value below is
20
+ * an `===` against one of the three real sizes, so an extra member changes no comparison
21
+ * result — and all three of those reads are dead anyway (the DEFERRED DEFECT below: the
22
+ * component passes `$padding`, the template reads `padding`).
23
+ */
24
+ type TextAreaPadding = '' | 'small' | 'medium' | 'large';
25
+ interface DisabledStyleProps {
26
+ /** `disabled` — dims and blocks the pointer. Also reaches the DOM; see above. */
27
+ disabled?: boolean;
28
+ }
29
+ 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;
30
+ 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;
31
+ 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;
32
+ /**
33
+ * Props of `TextInputField`, the `<textarea>` itself. Six transient props plus the two
34
+ * halves of a defect.
35
+ *
36
+ * `readOnly` and `disabled` are read by the template (7 times between them) and are
37
+ * deliberately ABSENT from this interface: both are real `TextareaHTMLAttributes` members,
38
+ * so those reads already typecheck and declaring them would add nothing. §J.9's first case.
39
+ */
40
+ export interface TextInputFieldStyleProps {
41
+ /**
42
+ * `borderRadius` (`PropTypes.number`, default `0`) — interpolated as
43
+ * `${props.$borderRadius}px`, so `number` and not `number | string`: a string here would
44
+ * render `border-radius: 4pxpx`. Same reasoning as `SectionSeparator`'s `$margin`.
45
+ */
46
+ $borderRadius?: number;
47
+ /** `type` — see `TextAreaType`. The template branches on it 26 times. */
48
+ $type?: TextAreaType;
49
+ /** `edit` — shows the editable-affordance background and border. */
50
+ $edit?: boolean;
51
+ /** `noBorder` — suppresses the border by matching it to the background. */
52
+ $noBorder?: boolean;
53
+ /** `Boolean(icon)` — makes room on the left for the icon. */
54
+ $hasIcon?: boolean;
55
+ /** READ by the template, NEVER passed. The dead half — see above. */
56
+ padding?: TextAreaPadding;
57
+ /** PASSED by `TextArea.tsx:118`, never read. The inert half — see above. */
58
+ $padding?: TextAreaPadding;
59
+ }
60
+ 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;
61
+ /**
62
+ * Props of `TextInputLabel`, the floating label. All three come from `TextArea.tsx:150-155`.
63
+ */
64
+ interface TextInputLabelStyleProps {
65
+ /** `inputIsEmpty` state — the label only floats up when the field is NOT empty. */
66
+ $inputIsEmpty?: boolean;
67
+ /** `Boolean(placeholder)` — a placeholder also forces the label up. */
68
+ $hasPlaceholder?: boolean;
69
+ /** `Boolean(icon)` — shifts the label right to clear the icon. */
70
+ $hasIcon?: boolean;
71
+ }
72
+ 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;
73
+ 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;
74
+ 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>>, {
75
+ $type?: TextAreaType;
76
+ }>, never>> & string;
77
+ /**
78
+ * Props of `TextInput`, the positioning wrapper. `TextArea.tsx:91-98` renders
79
+ * `<S.TextInput $fieldLabel={…} disabled={disabled} readOnly={readOnly} $type={type} …>`.
80
+ */
81
+ interface TextInputStyleProps extends DisabledStyleProps {
82
+ /** `!isEmpty(fieldLabel)` — narrows the wrapper to 66.66% so the field label gets a third. */
83
+ $fieldLabel?: boolean;
84
+ /** `type` — only the `error` arm is used here, to recolour the floated label. */
85
+ $type?: TextAreaType;
86
+ /** Passed by `TextArea.tsx:94`, read by nothing. Leaks as `readonly=""`; see above. */
87
+ readOnly?: boolean;
88
+ }
89
+ 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;
90
+ 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>>, {
91
+ $type?: TextAreaType;
92
+ }>, never>> & string;
93
+ 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;
94
+ 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;
95
+ 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. §J.6, rule 2 — 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,14 @@
1
+ /**
2
+ * Props of the styled root, i.e. `SectionSeparator.tsx`'s `vertical` / `margin`
3
+ * carried across the `shouldForwardProp` boundary.
4
+ */
5
+ export interface SectionSeparatorStyleProps {
6
+ /** `vertical` — swaps which axis gets the 1px hairline and which gets 100%. */
7
+ $vertical?: boolean;
8
+ /**
9
+ * `margin` — px, interpolated as `${props.$margin}px`, so `number` and not
10
+ * `number | string`: a string here would already render `margin-top: 8pxpx`.
11
+ */
12
+ $margin?: number;
13
+ }
14
+ 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,20 @@
1
+ /**
2
+ * `AssetActionButton`'s props, i.e. what `AssetAction.tsx` passes to it:
3
+ * `$actionWidthHeight={action.actionWidthHeight}` and nothing else.
4
+ */
5
+ interface AssetActionButtonStyleProps {
6
+ /**
7
+ * `action.actionWidthHeight` — `PropTypes.arrayOf(PropTypes.number)`, read as
8
+ * `[width, height]`. `number[]` and not `[number, number]`: the propTypes say an
9
+ * array of numbers of any length, and the template guards on the array's presence
10
+ * rather than its length. The values are px and are also used arithmetically
11
+ * (`- 14`), so `number` and not `number | string`.
12
+ */
13
+ $actionWidthHeight?: number[];
14
+ }
15
+ 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;
16
+ 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;
17
+ 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;
18
+ 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>>;
19
+ 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;
20
+ 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';