@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,157 @@
1
+ import type React from 'react';
2
+ import Select from 'react-select';
3
+ import { AsyncPaginate } from 'react-select-async-paginate';
4
+ import CreatableSelect from 'react-select/creatable';
5
+ import type { PartialNtbTheme } from '../../../utils/defaultTheme';
6
+ /**
7
+ * `CompactAutocompleteSelect.tsx`'s `type` prop, verbatim from its
8
+ * `PropTypes.oneOf(['', 'error', 'warning', 'instructions-warning', 'loading', 'success'])`,
9
+ * carried WITHOUT a `$` to `Control`, `ValueContainer` and `Placeholder` — see
10
+ * `ControlStyleProps` for why that is not a DOM leak here.
11
+ *
12
+ * Closed on purpose (§J.6): the templates below compare against this value 14 times, so a
13
+ * mistyped state name is TS2367 rather than a branch that silently never fires. `''` is a
14
+ * member because the component defaults `type = ''` (tsx line 172).
15
+ */
16
+ type CompactAutocompleteSelectType = '' | 'error' | 'warning' | 'instructions-warning' | 'loading' | 'success';
17
+ /**
18
+ * The `theme` prop of every `styled(<react-select component>)` in this file — 14 of them.
19
+ *
20
+ * `theme` is the one prop name that both styled-components and react-select claim.
21
+ * react-select types it `ThemeConfig = Theme | ((t: Theme) => Theme)` and its `Theme`
22
+ * REQUIRES `borderRadius`, which `NtbTheme` does not have, so `.attrs(applyDefaultTheme)`
23
+ * — return type `{ theme: NtbTheme }` — was unassignable at all 14 sites, each reporting
24
+ * the same last line:
25
+ *
26
+ * TS2345 … Types of property 'theme' are incompatible.
27
+ * Property 'borderRadius' is missing in type 'NtbTheme' but required in type 'Theme'.
28
+ *
29
+ * Declaring `theme` in the `.attrs<P>()` generic fixes it because the generic is applied
30
+ * as `Substitute<OuterProps, P> = FastOmit<OuterProps, keyof P> & P`, i.e. it REPLACES
31
+ * react-select's declaration rather than intersecting with it. That is the truth about
32
+ * this boundary: react-select's `getTheme()` is `{ ...its defaultTheme, ...props.theme }`,
33
+ * so our `colors`/`spacing` win — which is why `ThemeColors`/`ThemeSpacing` in
34
+ * `utils/defaultTheme.ts` carry react-select's member names — and `borderRadius` falls
35
+ * through to react-select's own `4`. `NtbTheme` is deliberately a PARTIAL override of
36
+ * react-select's theme. Do NOT add `borderRadius` to `NtbTheme` to "fix" this: that hands
37
+ * react-select a border radius it does not get today, which is a render change.
38
+ *
39
+ * `MultiSelect.styled.ts` carries the same interface for the same reason.
40
+ */
41
+ interface SelectThemeProp {
42
+ /** A partial override merged over `defaultTheme` by `applyDefaultTheme`. */
43
+ theme?: PartialNtbTheme;
44
+ }
45
+ declare const AsyncCreatableSelectPaginate: import("react-select-async-paginate").WithAsyncPaginateType;
46
+ /**
47
+ * The WRITTEN type of the four `styled(<react-select component>)` exports below. Same
48
+ * mechanism, same wording and the same audit as `SelectWrapper` in
49
+ * `src/components/inputs/MultiSelect/MultiSelect.styled.ts` — read that one; it is the
50
+ * canonical note. §G.4.
51
+ *
52
+ * Short version: the INFERRED type is correct and unprintable. Under `--declaration` its
53
+ * printed form expands to react-select's `PublicBaseSelectProps` and
54
+ * `StateManagerAdditionalProps`, which `react-select`'s `exports` map does not serve, so
55
+ * tsc reported 8 x TS2883 here and — because `noEmitOnError` is false — silently declined
56
+ * to write this file's `.d.ts` at all. That in turn erased the props of the PUBLISHED
57
+ * `CompactAutocompleteSelect` declaration down to
58
+ * `ForwardRefExoticComponent<RefAttributes<unknown>>`, a closed props type with zero
59
+ * members: the exact §G.4 poison, arriving from react-select rather than from `allowJs`.
60
+ *
61
+ * tsc prints a generic alias APPLICATION by reference, so `SelectWrapper<typeof Select>`
62
+ * is writeable where the expansion is not. `Omit<ComponentProps<C>, keyof P> & P` is
63
+ * styled-components' own `Substitute<OuterProps, P>`, so no prop is widened or narrowed.
64
+ */
65
+ type SelectWrapper<C extends React.ComponentType<any>> = React.ComponentType<Omit<React.ComponentProps<C>, keyof SelectWrapperStyleProps> & SelectWrapperStyleProps>;
66
+ type AsyncCreatablePaginateWrapper = SelectWrapper<typeof AsyncCreatableSelectPaginate>;
67
+ /**
68
+ * The four select wrappers share this: `$hasLabel` for `sharedStyle`'s sake, `theme` for
69
+ * react-select's sake, and `disabled` — which is a deferred defect, see below.
70
+ */
71
+ export interface SelectWrapperStyleProps extends SelectThemeProp {
72
+ /** `!isEmpty(label)` — narrows the control to 66.66% so the label gets the other third. */
73
+ $hasLabel?: boolean;
74
+ disabled?: boolean;
75
+ }
76
+ interface DisabledStyleProps {
77
+ /** `disabled` — dims and blocks the pointer. Also reaches the DOM; see above. */
78
+ disabled?: boolean;
79
+ }
80
+ export declare const CompactAutocompleteSelect: import("styled-components/dist/types").IStyledComponentBase<"web", 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>>, DisabledStyleProps>, never>> & string;
81
+ 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<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>>, DisabledStyleProps>, never>> & string;
82
+ export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", 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>> & string;
83
+ 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<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
84
+ export declare const AsyncCreatableAutocompleteSelect: AsyncCreatablePaginateWrapper;
85
+ export declare const AsyncAutocompleteSelect: SelectWrapper<typeof AsyncPaginate>;
86
+ export declare const AutocompletSelect: SelectWrapper<typeof Select>;
87
+ export declare const AutocompletCreatableSelect: SelectWrapper<typeof CreatableSelect>;
88
+ /**
89
+ * Props of `Control`, the react-select control wrapper.
90
+ *
91
+ * `edit` and `type` HAVE NO `$` AND STILL DO NOT LEAK TO THE DOM, which makes this the one
92
+ * benign member of §E.4's non-`$` list in this file and worth stating so nobody "fixes" it
93
+ * blind. There is no `withConfig`/`shouldForwardProp` on a `styled(<component>)` — there is
94
+ * no DOM element to filter for — and react-select's `Control` renders only its
95
+ * `innerProps` onto the `<div>`, ignoring props it does not know. So
96
+ * `<S.Control edit={edit} type={type} …>` (tsx line 193) reaches the template and stops
97
+ * there. Prefixing them would be tidier but is not a bug fix, and it still touches two
98
+ * files for no type benefit.
99
+ *
100
+ * `isFocused` is deliberately ABSENT: it is a real `ControlProps` member, so the template's
101
+ * seven reads of it already typecheck. §J.9's first case.
102
+ *
103
+ * ================== DEFERRED DEFECT in this component's template =====================
104
+ * `!props.type === 'instructions-warning'` (the `isFocused` border-color rule, ~40 lines
105
+ * down; the note has to live here because backticks cannot appear inside the styled
106
+ * template) NEGATES FIRST AND THEN COMPARES A BOOLEAN TO A STRING. It is always false, so
107
+ * that whole `border-color` rule is dead — a FOCUSED control has never received the
108
+ * gray-600 border.
109
+ *
110
+ * That is the 5th and last remaining error in this file, TS2367 "This comparison appears
111
+ * to be unintentional because the types 'boolean' and 'string' have no overlap", and NO
112
+ * ANNOTATION CAN REMOVE IT: `!props.type` is `boolean` whatever `type` is declared as,
113
+ * `any` included. It is a defect in the expression, and §E.1 rule 3 says fix the code, not
114
+ * the type. The fix is `props.type !== 'instructions-warning'`, which ACTIVATES a rule that
115
+ * has never fired on the most visible state of the component — C9 for the fix, C10 for the
116
+ * re-record, not this commit. §J.8.
117
+ * ====================================================================================
118
+ */
119
+ interface ControlStyleProps extends SelectThemeProp {
120
+ /** `edit` (`PropTypes.bool`) — grey "this is editable" background. */
121
+ edit?: boolean;
122
+ /** `type` — see `CompactAutocompleteSelectType`. Branched on 11 times below. */
123
+ type?: CompactAutocompleteSelectType;
124
+ }
125
+ export declare const Control: 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-select").ControlProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ControlProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, ControlStyleProps>, never>> & string & Omit<(<Option_1, IsMulti_1 extends boolean, Group_1 extends import("react-select").GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
126
+ export declare const Option: 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-select").OptionProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").OptionProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_16, IsMulti_16 extends boolean, Group_16 extends import("react-select").GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
127
+ /**
128
+ * `CompactAutocompleteSelect.tsx` passes `<S.Placeholder className="select-placeholder"
129
+ * type={type} …>` (tsx line 225). Same non-`$`-but-not-leaking situation as `Control`.
130
+ */
131
+ interface PlaceholderStyleProps extends SelectThemeProp {
132
+ /** `type` — dims the placeholder for the `error` and `warning` states only. */
133
+ type?: CompactAutocompleteSelectType;
134
+ }
135
+ export declare const Placeholder: 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-select").PlaceholderProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").PlaceholderProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, PlaceholderStyleProps>, never>> & string & Omit<(<Option_17, IsMulti_17 extends boolean, Group_17 extends import("react-select").GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
136
+ export declare const SingleValue: 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-select").SingleValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").SingleValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_19, IsMulti_19 extends boolean, Group_19 extends import("react-select").GroupBase<Option_19>>(props: import("react-select").SingleValueProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
137
+ export declare const Input: 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-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_7, IsMulti_7 extends boolean, Group_7 extends import("react-select").GroupBase<Option_7>>(props: import("react-select").InputProps<Option_7, IsMulti_7, Group_7>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
138
+ export declare const Menu: 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-select").MenuProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").MenuProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_9, IsMulti_9 extends boolean, Group_9 extends import("react-select").GroupBase<Option_9>>(props: import("react-select").MenuProps<Option_9, IsMulti_9, Group_9>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
139
+ export declare const ValueContainer: 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-select").ValueContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ValueContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_20, IsMulti_20 extends boolean, Group_20 extends import("react-select").GroupBase<Option_20>>(props: import("react-select").ValueContainerProps<Option_20, IsMulti_20, Group_20>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
140
+ export declare const ClearIndicator: 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-select").ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option, IsMulti extends boolean, Group extends import("react-select").GroupBase<Option>>(props: import("react-select").ClearIndicatorProps<Option, IsMulti, Group>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
141
+ export declare const DropdownIndicator: 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-select").DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_2, IsMulti_2 extends boolean, Group_2 extends import("react-select").GroupBase<Option_2>>(props: import("react-select").DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
142
+ export declare const DropdownIndicatorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.SVGProps<SVGSVGElement> & {
143
+ title?: string;
144
+ }, React.SVGProps<SVGSVGElement> & {
145
+ title?: string;
146
+ }>, never>, never>> & string & Omit<React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
147
+ title?: string;
148
+ }>, keyof React.Component<any, {}, any>>;
149
+ export declare const ClearIndicatorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.SVGProps<SVGSVGElement> & {
150
+ title?: string;
151
+ }, React.SVGProps<SVGSVGElement> & {
152
+ title?: string;
153
+ }>, never>, never>> & string & Omit<React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
154
+ title?: string;
155
+ }>, keyof React.Component<any, {}, any>>;
156
+ export declare const IndicatorSeparator: 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-select").IndicatorSeparatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>, import("react-select").IndicatorSeparatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>>, SelectThemeProp>, never>> & string & Omit<(<Option_6, IsMulti_6 extends boolean, Group_6 extends import("react-select").GroupBase<Option_6>>(props: import("react-select").IndicatorSeparatorProps<Option_6, IsMulti_6, Group_6>) => import("@emotion/react").jsx.JSX.Element), keyof React.Component<any, {}, any>>;
157
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './CompactAutocompleteSelect';
@@ -0,0 +1,96 @@
1
+ import React from 'react';
2
+ type CompactStarRatingOwnProps = {
3
+ /**
4
+ * Whether the star rating is read-only
5
+ */
6
+ readOnly?: boolean;
7
+ /**
8
+ * Whether the star rating is disabled
9
+ */
10
+ disabled?: boolean;
11
+ /**
12
+ * Displays a grey background to show that the star rating is editable
13
+ */
14
+ edit?: boolean;
15
+ /**
16
+ * Rating value (0-5)
17
+ */
18
+ value?: number;
19
+ /**
20
+ * Define the type based on error, warning, loading and success.
21
+ */
22
+ type?: '' | 'error' | 'warning' | 'loading' | 'success';
23
+ /**
24
+ * Default rating value
25
+ */
26
+ defaultValue?: number;
27
+ /**
28
+ * Compact star rating label
29
+ */
30
+ label?: string;
31
+ /**
32
+ * Name of the text area (used when sending form data)
33
+ */
34
+ name?: string;
35
+ /**
36
+ * Icon element – E.g: `icon={<StarIcon />}`
37
+ */
38
+ icon?: React.ReactElement<any>;
39
+ /**
40
+ * Filled icon element – E.g: `icon={<StarIcon />}`
41
+ */
42
+ iconFill?: React.ReactElement<any>;
43
+ /**
44
+ * Max number of stars: 5
45
+ */
46
+ max?: number;
47
+ /**
48
+ * View Compact Star Rating component when no values have been assigned
49
+ */
50
+ viewEmpty?: boolean;
51
+ /**
52
+ * Optional callback function for `onChange`
53
+ */
54
+ onChange?: (...args: any[]) => any;
55
+ /**
56
+ * Optional callback function for `onBlur`
57
+ */
58
+ onBlur?: (...args: any[]) => any;
59
+ /**
60
+ * Whether the component is hidden or visible.
61
+ */
62
+ hidden?: boolean;
63
+ /**
64
+ * Icon element – E.g: `icon={<Spinner />}`
65
+ */
66
+ loadingIcon?: React.ReactElement<any>;
67
+ /**
68
+ * Icon element – E.g: `icon={<Check />}`
69
+ */
70
+ successIcon?: React.ReactElement<any>;
71
+ /**
72
+ * Description ToolTip text.
73
+ */
74
+ descriptionToolTip?: string;
75
+ };
76
+ /**
77
+ * A compact star rating.
78
+ *
79
+ * To remove a rating (i.e. show 0 stars), click the first star to give a 1-star rating, and then click the first star again.
80
+ *
81
+ * ### Import
82
+ *
83
+ * ``` js
84
+ * import { CompactStarRating } from '@ntbjs/react-components/inputs'
85
+ * // or
86
+ * import CompactStarRating from '@ntbjs/react-components/inputs/CompactStarRating'
87
+ * ```
88
+ * ### Values
89
+ * Pass default value as a prop (`defaultValue`) into the component: 0 or state value.
90
+ * ```
91
+ */
92
+ declare const CompactStarRating: 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>>, {
93
+ readOnly?: boolean;
94
+ disabled?: boolean;
95
+ }>, never>, "ref">, keyof CompactStarRatingOwnProps> & CompactStarRatingOwnProps & React.RefAttributes<any>>;
96
+ export default CompactStarRating;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * `CompactStarRating.tsx`'s `type` prop, from its
3
+ * `PropTypes.oneOf(['', 'error', 'warning', 'loading', 'success'])`. The component
4
+ * defaults it to `''`, so `''` is a member — this is the propTypes verbatim.
5
+ *
6
+ * Carried WITHOUT a `$` by `starsWidth`, which is a defect in its own right (see
7
+ * there). `Star` / `StarFill` / `CheckIconContainer` also branch on a `type`, but
8
+ * theirs is not this one — see the notes at those three.
9
+ */
10
+ type CompactStarRatingType = '' | 'error' | 'warning' | 'loading' | 'success';
11
+ export declare const CompactStarRating: 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>>, {
12
+ /** `readOnly` — `PropTypes.bool`. Leaks to the DOM; see above. */
13
+ readOnly?: boolean;
14
+ /** `disabled` — `PropTypes.bool`. Leaks to the DOM; see above. */
15
+ disabled?: boolean;
16
+ }>, never>> & string;
17
+ export declare const labelWidth: 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>>, {
18
+ disabled?: boolean;
19
+ }>, never>> & string;
20
+ 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;
21
+ interface StarsWidthStyleProps {
22
+ /** `edit` — `PropTypes.bool`. Shows the editable-affordance background. */
23
+ $edit?: boolean;
24
+ /**
25
+ * `type` — see `CompactStarRatingType`. HAS NO `$`, AND THAT IS A DEFECT: this is a
26
+ * `styled.div`, `type` is not a member of `HTMLAttributes<HTMLDivElement>`, and
27
+ * `shouldForwardProp` forwards it — so `type="error"` / `type="loading"` etc. is on
28
+ * this `<div>` in the render baseline whenever the prop is non-empty. Fix = rename
29
+ * `$type`; removes a DOM attribute → C10 with its re-record. §E.4 third case.
30
+ */
31
+ type?: CompactStarRatingType;
32
+ /** `readOnly` — `PropTypes.bool`. Leaks to the DOM the same way. */
33
+ readOnly?: boolean;
34
+ /**
35
+ * `success` IS DECLARED BECAUSE THE NESTED `css<{ success?: boolean }>` BLOCK BELOW
36
+ * READS IT, NOT BECAUSE ANYTHING PASSES IT. Nothing does — `CompactStarRating.tsx`
37
+ * renders `<S.starsWidth $edit={edit} type={type} readOnly={readOnly}>` and there is
38
+ * no other importer — so `props.success` is always `undefined` and that block's
39
+ * animation is unconditionally `fadeOut`. The success-fade-IN state of this component
40
+ * is unimplemented. A DIFFERENT DEFECT from the `fadeIn` branch removed from
41
+ * `SuccessContainer` above, and left alone deliberately: `fadeIn` was a mistyped
42
+ * identifier that never existed as a prop, whereas `success` WAS a real
43
+ * `PropTypes.bool` (added by `4ed910a`) that `b5d59e7`/`7e46b9d` deleted from the
44
+ * component while leaving this read behind. Deciding between restoring the prop and
45
+ * deleting the block is its own call, on its own commit.
46
+ *
47
+ * Without this member the interpolation is TS2345, and the reason is the WEAK-TYPE
48
+ * RULE (§J.7): `{ success?: boolean }` is all-optional, assignability to a weak type
49
+ * requires at least one member in common, and the host had none — measured verbatim as
50
+ * "…has no properties in common with type '{ success?: boolean; }'". Same shape as
51
+ * `CompactTextInput`'s `StyledLink` / `linkColor`.
52
+ *
53
+ * It also has no `$`, but since nothing passes it, it does not currently leak.
54
+ */
55
+ success?: boolean;
56
+ }
57
+ export declare const starsWidth: 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>>, StarsWidthStyleProps>, never>> & string;
58
+ /**
59
+ * The props `Star` and `StarFill` share — they are byte-identical templates apart from
60
+ * one `type === 'error'` block, and the JSX passes them the same set.
61
+ *
62
+ * `disabled` is deliberately ABSENT: on a `styled.button` it is a genuine
63
+ * `ButtonHTMLAttributes` member, so the read already typechecks and the attribute
64
+ * belongs on the element (§J.9 first row).
65
+ *
66
+ * `type` IS ALSO DELIBERATELY ABSENT, AND THAT IS WHY FOUR TS2367 ERRORS SURVIVE IN
67
+ * THIS FILE. See the note above `StarFill`.
68
+ */
69
+ interface StarStyleProps {
70
+ /** `hover && key + 1 <= tempRating` — derived in the component, so `boolean`. */
71
+ $hover?: boolean;
72
+ /**
73
+ * `readOnly` — `PropTypes.bool`. HAS NO `$`, AND THAT IS A DEFECT: `readOnly` is NOT a
74
+ * member of `ButtonHTMLAttributes` (unlike `disabled`), and `shouldForwardProp`
75
+ * forwards it, so `readonly=""` is on every rendered star `<button>` today and is in
76
+ * the recorded render baseline. Fix = rename `$readOnly`; removes a DOM attribute →
77
+ * C10 with its re-record. §E.4 third case.
78
+ */
79
+ readOnly?: boolean;
80
+ }
81
+ export declare const Star: 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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, StarStyleProps>, never>> & string;
82
+ export declare const StarFill: 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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, StarStyleProps>, never>> & string;
83
+ export declare const CheckIconContainer: 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>>, {
84
+ type?: CompactStarRatingType;
85
+ }>, never>> & string;
86
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './CompactStarRating';
@@ -0,0 +1,116 @@
1
+ import React from 'react';
2
+ type CompactTextInputOwnProps = {
3
+ /**
4
+ * The label of the input field - leave `undefined` to hide the label
5
+ */
6
+ label?: string;
7
+ /**
8
+ * Displays a light green background to show that an action was successful.
9
+ */
10
+ success?: boolean;
11
+ /**
12
+ * The input type - eg. `text`, `number`
13
+ */
14
+ inputType?: string;
15
+ /**
16
+ * The input name
17
+ */
18
+ name?: string;
19
+ /**
20
+ * The default value of the input - creates an uncontrolled input
21
+ */
22
+ defaultValue?: string;
23
+ /**
24
+ * The value of the input - creates a controlled input
25
+ */
26
+ value?: string;
27
+ /**
28
+ * The placeholder of the input
29
+ */
30
+ placeholder?: string;
31
+ /**
32
+ * A URL associated with the input value. Creates a clickable link that accepts full or relative URL
33
+ */
34
+ link?: string;
35
+ /**
36
+ * The target for the link. Only applies when the field is in read-only mode
37
+ */
38
+ linkTarget?: '_self' | '_blank' | '_parent' | '_top';
39
+ /**
40
+ * Whether the link has a onClick event.
41
+ */
42
+ linkHandler?: (...args: any[]) => any;
43
+ /**
44
+ * Whether the handler should preceed the link behavior.
45
+ */
46
+ activeLinkHandler?: boolean;
47
+ /**
48
+ * Whether to auto select the entire value when the input is focused – does also work when the field is in read-only mode
49
+ */
50
+ autoSelect?: boolean;
51
+ /**
52
+ * Whether the value is read only
53
+ */
54
+ readOnly?: boolean;
55
+ /**
56
+ * Whether the value is disabled
57
+ */
58
+ disabled?: boolean;
59
+ /**
60
+ * Displays a grey background to show that value is editable
61
+ */
62
+ edit?: boolean;
63
+ /**
64
+ * There is a warning present.
65
+ */
66
+ warning?: boolean | string;
67
+ /**
68
+ * Whether to bold the input content - Slightly increases the font size and font weight of the input value
69
+ */
70
+ bold?: boolean;
71
+ /**
72
+ * Whether the component is hidden or visible.
73
+ */
74
+ hidden?: boolean;
75
+ /**
76
+ * Callback for `onChange`
77
+ */
78
+ onChange?: (...args: any[]) => any;
79
+ /**
80
+ * Callback for `onFocus`
81
+ */
82
+ onFocus?: (...args: any[]) => any;
83
+ /**
84
+ * Callback for `onBlur`
85
+ */
86
+ onBlur?: (...args: any[]) => any;
87
+ /**
88
+ * Define the type based on error, warning, loading and success.
89
+ */
90
+ type?: '' | 'error' | 'warning' | 'loading' | 'success';
91
+ /**
92
+ * Description ToolTip text.
93
+ */
94
+ descriptionToolTip?: string;
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
+ /**
105
+ * Compact text inputs let users enter and edit text in the UI in a compact way. They typically appear in forms or displays of metadata.
106
+ *
107
+ * ### Import
108
+ *
109
+ * ``` js
110
+ * import { CompactTextInput } from '@ntbjs/react-components/inputs'
111
+ * // or
112
+ * import CompactTextInput from '@ntbjs/react-components/inputs/CompactTextInput'
113
+ * ```
114
+ */
115
+ declare const CompactTextInput: 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 CompactTextInputOwnProps> & CompactTextInputOwnProps & React.RefAttributes<any>>;
116
+ export default CompactTextInput;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * `CompactTextInput.tsx`'s `type` prop, from its
3
+ * `PropTypes.oneOf(['', 'error', 'warning', 'loading', 'success'])`, carried across
4
+ * the `shouldForwardProp` boundary as `$type` by both `Input` and
5
+ * `InputIconContainer`.
6
+ *
7
+ * Closed on purpose, not widened to `string`. The templates below branch on this
8
+ * value 20 times; with a closed union a mistyped state name is TS2367 rather than a
9
+ * branch that silently never fires. `''` is a member because the component defaults
10
+ * `type = ''` — this union is the propTypes verbatim, not a tidied version of it.
11
+ */
12
+ type CompactTextInputType = '' | 'error' | 'warning' | 'loading' | 'success';
13
+ export declare const CompactTextInput: 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;
14
+ 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>>, {
15
+ $disabled?: boolean;
16
+ }>, never>> & string;
17
+ export declare const InputContainer: 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>>, {
18
+ $hasLabel?: boolean;
19
+ }>, never>> & string;
20
+ 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;
21
+ export declare const InputSuccessContainer: 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;
22
+ 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>>, {
23
+ $type?: CompactTextInputType;
24
+ }>, never>> & string;
25
+ /**
26
+ * Props of `Input`.
27
+ *
28
+ * Every member is transient, so `shouldForwardProp` filters all of them out of the DOM.
29
+ * `$haslink` is lower-case by existing convention at both ends; renaming it would be a
30
+ * two-file change for no type benefit.
31
+ *
32
+ * `$inputType` WAS `inputtype`, WITH NO `$`, AND THAT WAS A DOM LEAK — now fixed.
33
+ * It is a style/behaviour input (the `.attrs()` callback turns it into the real `type`
34
+ * attribute), but without the `$` prefix `shouldForwardProp` forwarded it verbatim too,
35
+ * so `inputtype="text"` was on every rendered `<input>` — visible in seven entries of the
36
+ * recorded render baseline (`inputs/CompactTextInput` and its five variants, plus
37
+ * `layout/InputGroup`). §E.4's third case, and the fix is the `$` prefix.
38
+ *
39
+ * The PUBLIC prop is unaffected: `CompactTextInput.tsx` still takes `inputType` and maps
40
+ * it to this transient prop internally, so no consumer has to react. (Grepped: neither
41
+ * `mb-main-client/src` nor `ntb-dam/client/src` mentions `inputtype` or `inputType` at
42
+ * all, and no stylesheet in `src` selects on `[inputtype]`.)
43
+ *
44
+ * `readOnly` and `disabled` are read by the template too and are deliberately ABSENT
45
+ * from this interface: both are real `InputHTMLAttributes` members, so those reads
46
+ * already typecheck and declaring them would add nothing. §J.9.
47
+ */
48
+ interface InputStyleProps {
49
+ /** `type` — see `CompactTextInputType`. Branched on 20 times below. */
50
+ $type?: CompactTextInputType;
51
+ /** `edit` — shows the editable-affordance background. */
52
+ $edit?: boolean;
53
+ /** `bold` — larger font-size/weight for the value. */
54
+ $bold?: boolean;
55
+ /** `!isEmpty(link)` — the component derives this, so `boolean`, not `link`'s type. */
56
+ $haslink?: boolean;
57
+ /**
58
+ * `inputType` — the real `<input type>`, defaulted to `'text'` in the callback.
59
+ * `string` because the propTypes say `PropTypes.string` and the value is handed
60
+ * straight to the `type` attribute the callback produces.
61
+ */
62
+ $inputType?: string;
63
+ }
64
+ export declare const Input: 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>>, InputStyleProps>, never>> & string;
65
+ export declare const LinkPopoverContainer: 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;
66
+ export declare const StyledLink: 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").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>, {
67
+ disabled?: boolean;
68
+ }>, never>> & string;
69
+ export declare const ReadOnlyLinkContainer: 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;
70
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './CompactTextInput';
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import type { MultiLevelCheckboxNode } from './types';
3
+ type MultiLevelCheckboxOwnProps = {
4
+ options?: MultiLevelCheckboxNode[];
5
+ /**
6
+ * Array of checked option values
7
+ */
8
+ checked: any[];
9
+ /**
10
+ * Label text for the MultiLevelCheckbox
11
+ */
12
+ label?: string;
13
+ /**
14
+ * Optional search string
15
+ */
16
+ search?: string;
17
+ /**
18
+ * Optional text to display when no results are found while searching.`
19
+ */
20
+ noResultsText?: string;
21
+ /**
22
+ * Callback function for the `onChange` event
23
+ */
24
+ onChange: (...args: any[]) => any;
25
+ };
26
+ /**
27
+ * MultiLevelCheckbox allow the user to select one or more items from a nested set.
28
+ *
29
+ * This component is controlled which means that the consumer will have to keep track of what options are selected. The selected options should be provided to the `checked`-prop.
30
+ * On any selection or deselection `onChange` will be called with an updated `checked`-list.
31
+ *
32
+ * ### Import
33
+ *
34
+ * ```js
35
+ * import { MultiLevelCheckbox } from '@ntbjs/react-components/inputs'
36
+ * // or
37
+ * import MultiLevelCheckbox from '@ntbjs/react-components/inputs/MultiLevelCheckbox'
38
+ * ```
39
+ */
40
+ declare const MultiLevelCheckbox: React.ForwardRefExoticComponent<Omit<Omit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>>, never>, never>, "ref">, keyof MultiLevelCheckboxOwnProps> & MultiLevelCheckboxOwnProps & React.RefAttributes<any>>;
41
+ export default MultiLevelCheckbox;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Props of the two components that take the expand/collapse state across the
3
+ * `shouldForwardProp` boundary.
4
+ *
5
+ * `MultiLevelCheckbox.tsx` passes `$expanded={expanded || expandedBySearch}` at both
6
+ * sites (lines 263 and 302) — two `useState<boolean>` values OR'd together, hence
7
+ * `boolean`. Optional, per §J.5: nothing supplies a default and the templates are
8
+ * written for its absence (`props.$expanded && css`…``).
9
+ */
10
+ interface ExpandedStyleProps {
11
+ /** `expanded || expandedBySearch` — opens the `grid-template-rows` / rotates the caret. */
12
+ $expanded?: boolean;
13
+ }
14
+ export declare const MultiLevelCheckbox: 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").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>>, never>, never>> & string;
15
+ export declare const MultiLevelCheckboxLegend: 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<HTMLLegendElement>, HTMLLegendElement>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>>, never>, never>> & string;
16
+ export declare const MultiLevelCheckboxNoResults: 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;
17
+ export declare const CheckboxTreeChildren: 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>>, ExpandedStyleProps>, never>> & string;
18
+ export declare const CheckboxTree: 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;
19
+ export declare const CheckboxTreeCheckboxContainer: 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 declare const ExpandTreeButton: 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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, ExpandedStyleProps>, never>> & string;
21
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default } from './MultiLevelCheckbox';
2
+ export { NodeType, findChildValues } from './types';