@ntbjs/react-components 2.0.0-rc.6 → 2.0.1-rc.31

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 (709) hide show
  1. package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_virtual/_rollupPluginBabelHelpers.js} +2 -1
  2. package/build/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  3. package/build/data/Alert/Alert.js +73 -0
  4. package/build/data/Alert/Alert.js.map +1 -0
  5. package/build/data/Alert/Alert.styled.js +63 -0
  6. package/build/data/Alert/Alert.styled.js.map +1 -0
  7. package/build/data/Alert/index.js +2 -0
  8. package/build/data/Alert/index.js.map +1 -0
  9. package/build/data/Badge/Badge.js +87 -0
  10. package/build/data/Badge/Badge.js.map +1 -0
  11. package/build/data/Badge/Badge.styled.js +144 -0
  12. package/build/data/Badge/Badge.styled.js.map +1 -0
  13. package/build/data/Badge/index.js +2 -0
  14. package/build/data/Badge/index.js.map +1 -0
  15. package/{esm/components → build}/data/Popover/Popover.js +35 -34
  16. package/build/data/Popover/Popover.js.map +1 -0
  17. package/{esm/components → build}/data/Popover/Popover.styled.js +40 -44
  18. package/build/data/Popover/Popover.styled.js.map +1 -0
  19. package/build/data/Popover/index.js +2 -0
  20. package/build/data/Popover/index.js.map +1 -0
  21. package/build/data/Tab/Tab.js +25 -0
  22. package/build/data/Tab/Tab.js.map +1 -0
  23. package/build/data/Tab/Tab.styled.js +18 -0
  24. package/build/data/Tab/Tab.styled.js.map +1 -0
  25. package/build/data/Tab/index.js +2 -0
  26. package/build/data/Tab/index.js.map +1 -0
  27. package/build/data/Tabs/Tabs.js +91 -0
  28. package/build/data/Tabs/Tabs.js.map +1 -0
  29. package/build/data/Tabs/Tabs.styled.js +87 -0
  30. package/build/data/Tabs/Tabs.styled.js.map +1 -0
  31. package/build/data/Tabs/index.js +2 -0
  32. package/build/data/Tabs/index.js.map +1 -0
  33. package/{esm/components → build}/data/Tooltip/Tooltip.js +20 -20
  34. package/build/data/Tooltip/Tooltip.js.map +1 -0
  35. package/build/data/Tooltip/Tooltip.styled.js +28 -0
  36. package/build/data/Tooltip/Tooltip.styled.js.map +1 -0
  37. package/build/data/Tooltip/index.js +2 -0
  38. package/build/data/Tooltip/index.js.map +1 -0
  39. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js +36 -0
  40. package/build/data/VerificationStatusIcon/VerificationStatusIcon.js.map +1 -0
  41. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +62 -0
  42. package/build/data/VerificationStatusIcon/VerificationStatusIcon.styled.js.map +1 -0
  43. package/build/data/index.js +8 -0
  44. package/build/data/index.js.map +1 -0
  45. package/{esm → build}/hooks/useEventListner.js +5 -6
  46. package/build/hooks/useEventListner.js.map +1 -0
  47. package/build/hooks/useIsomorphicLayoutEffect.js +6 -0
  48. package/build/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  49. package/{esm → build}/hooks/useOnClickOutside.js +2 -1
  50. package/build/hooks/useOnClickOutside.js.map +1 -0
  51. package/build/icons/add-circle.svg +3 -0
  52. package/build/icons/add.svg +3 -0
  53. package/build/icons/album.svg +3 -0
  54. package/build/icons/arrow-back.svg +4 -0
  55. package/{esm → build}/icons/arrow-back.svg.js +4 -4
  56. package/build/icons/arrow-back.svg.js.map +1 -0
  57. package/build/icons/arrow-drop-down.svg +4 -0
  58. package/build/icons/arrow-forward.svg +3 -0
  59. package/{esm → build}/icons/arrow-forward.svg.js +4 -4
  60. package/build/icons/arrow-forward.svg.js.map +1 -0
  61. package/build/icons/audio.svg +3 -0
  62. package/build/icons/bell.svg +3 -0
  63. package/build/icons/check-circle-filled.svg +3 -0
  64. package/build/icons/check-rectangle-filled.svg +3 -0
  65. package/{esm → build}/icons/check-rectangle-filled.svg.js +4 -4
  66. package/build/icons/check-rectangle-filled.svg.js.map +1 -0
  67. package/build/icons/check.svg +3 -0
  68. package/build/icons/clear-circle-filled.svg +14 -0
  69. package/build/icons/close.svg +4 -0
  70. package/{esm → build}/icons/close.svg.js +4 -4
  71. package/build/icons/close.svg.js.map +1 -0
  72. package/build/icons/corporate.svg +3 -0
  73. package/build/icons/delete-context-menu.svg +4 -0
  74. package/build/icons/delete.svg +3 -0
  75. package/build/icons/design-services.svg +4 -0
  76. package/build/icons/download.svg +3 -0
  77. package/build/icons/edit-note.svg +4 -0
  78. package/{esm → build}/icons/edit-note.svg.js +4 -4
  79. package/build/icons/edit-note.svg.js.map +1 -0
  80. package/build/icons/edit.svg +3 -0
  81. package/build/icons/expand-more.svg +4 -0
  82. package/{esm → build}/icons/expand-more.svg.js +4 -4
  83. package/build/icons/expand-more.svg.js.map +1 -0
  84. package/build/icons/file.svg +3 -0
  85. package/build/icons/ftp.svg +3 -0
  86. package/build/icons/gear.svg +3 -0
  87. package/build/icons/headset.svg +1 -0
  88. package/{esm → build}/icons/headset.svg.js +4 -4
  89. package/build/icons/headset.svg.js.map +1 -0
  90. package/build/icons/index.js +79 -0
  91. package/build/icons/layers.svg +3 -0
  92. package/{esm → build}/icons/layers.svg.js +4 -4
  93. package/build/icons/layers.svg.js.map +1 -0
  94. package/build/icons/library-add.svg +3 -0
  95. package/build/icons/link.svg +4 -0
  96. package/{esm → build}/icons/link.svg.js +4 -4
  97. package/build/icons/link.svg.js.map +1 -0
  98. package/build/icons/pdf.svg +3 -0
  99. package/build/icons/play.svg +3 -0
  100. package/{esm → build}/icons/play.svg.js +4 -4
  101. package/build/icons/play.svg.js.map +1 -0
  102. package/build/icons/remove-circle.svg +3 -0
  103. package/build/icons/search.svg +3 -0
  104. package/{esm → build}/icons/search.svg.js +4 -4
  105. package/build/icons/search.svg.js.map +1 -0
  106. package/build/icons/share.svg +3 -0
  107. package/build/icons/shopping_cart_add.svg +3 -0
  108. package/build/icons/star-filled.svg +3 -0
  109. package/{esm → build}/icons/star-filled.svg.js +4 -4
  110. package/build/icons/star-filled.svg.js.map +1 -0
  111. package/build/icons/star.svg +3 -0
  112. package/{esm → build}/icons/star.svg.js +4 -4
  113. package/build/icons/star.svg.js.map +1 -0
  114. package/build/icons/triangle-right.svg +4 -0
  115. package/{esm → build}/icons/triangle-right.svg.js +4 -4
  116. package/build/icons/triangle-right.svg.js.map +1 -0
  117. package/build/icons/verification.svg +3 -0
  118. package/{esm → build}/icons/verification.svg.js +4 -4
  119. package/build/icons/verification.svg.js.map +1 -0
  120. package/build/icons/warning-circle.svg +3 -0
  121. package/{esm → build}/icons/warning-circle.svg.js +4 -4
  122. package/build/icons/warning-circle.svg.js.map +1 -0
  123. package/build/icons/warning-triangle.svg +3 -0
  124. package/build/index.js +5 -0
  125. package/build/index.js.map +1 -0
  126. package/build/inputs/ActionButton/ActionButton.js +38 -0
  127. package/build/inputs/ActionButton/ActionButton.js.map +1 -0
  128. package/build/inputs/ActionButton/ActionButton.styled.js +64 -0
  129. package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -0
  130. package/build/inputs/ActionButton/index.js +2 -0
  131. package/build/inputs/ActionButton/index.js.map +1 -0
  132. package/build/inputs/Button/Button.js +188 -0
  133. package/build/inputs/Button/Button.js.map +1 -0
  134. package/build/inputs/Button/Button.styled.js +289 -0
  135. package/build/inputs/Button/Button.styled.js.map +1 -0
  136. package/build/inputs/Button/index.js +2 -0
  137. package/build/inputs/Button/index.js.map +1 -0
  138. package/{esm/components → build}/inputs/Checkbox/Checkbox.js +16 -17
  139. package/build/inputs/Checkbox/Checkbox.js.map +1 -0
  140. package/build/inputs/Checkbox/Checkbox.styled.js +137 -0
  141. package/build/inputs/Checkbox/Checkbox.styled.js.map +1 -0
  142. package/build/inputs/Checkbox/index.js +2 -0
  143. package/build/inputs/Checkbox/index.js.map +1 -0
  144. package/{esm/components → build}/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +61 -58
  145. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js.map +1 -0
  146. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +296 -0
  147. package/build/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js.map +1 -0
  148. package/build/inputs/CompactAutocompleteSelect/index.js +2 -0
  149. package/build/inputs/CompactAutocompleteSelect/index.js.map +1 -0
  150. package/{esm/components → build}/inputs/CompactStarRating/CompactStarRating.js +56 -54
  151. package/build/inputs/CompactStarRating/CompactStarRating.js.map +1 -0
  152. package/build/inputs/CompactStarRating/CompactStarRating.styled.js +234 -0
  153. package/build/inputs/CompactStarRating/CompactStarRating.styled.js.map +1 -0
  154. package/build/inputs/CompactStarRating/index.js +2 -0
  155. package/build/inputs/CompactStarRating/index.js.map +1 -0
  156. package/{esm/components → build}/inputs/CompactTextInput/CompactTextInput.js +62 -61
  157. package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -0
  158. package/build/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
  159. package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -0
  160. package/build/inputs/CompactTextInput/index.js +2 -0
  161. package/build/inputs/CompactTextInput/index.js.map +1 -0
  162. package/{esm/components → build}/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +44 -84
  163. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js.map +1 -0
  164. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +83 -0
  165. package/build/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js.map +1 -0
  166. package/build/inputs/MultiLevelCheckbox/index.js +3 -0
  167. package/build/inputs/MultiLevelCheckbox/index.js.map +1 -0
  168. package/build/inputs/MultiLevelCheckbox/types.js +27 -0
  169. package/build/inputs/MultiLevelCheckbox/types.js.map +1 -0
  170. package/{esm/components → build}/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +53 -50
  171. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js.map +1 -0
  172. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +118 -0
  173. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js.map +1 -0
  174. package/build/inputs/MultiLevelCheckboxSelect/index.js +2 -0
  175. package/build/inputs/MultiLevelCheckboxSelect/index.js.map +1 -0
  176. package/{esm/components → build}/inputs/MultiSelect/MultiSelect.js +46 -92
  177. package/build/inputs/MultiSelect/MultiSelect.js.map +1 -0
  178. package/build/inputs/MultiSelect/MultiSelect.styled.js +224 -0
  179. package/build/inputs/MultiSelect/MultiSelect.styled.js.map +1 -0
  180. package/build/inputs/MultiSelect/index.js +2 -0
  181. package/build/inputs/MultiSelect/index.js.map +1 -0
  182. package/build/inputs/Radio/Radio.js +60 -0
  183. package/build/inputs/Radio/Radio.js.map +1 -0
  184. package/{esm/components → build}/inputs/Radio/Radio.styled.js +27 -24
  185. package/build/inputs/Radio/Radio.styled.js.map +1 -0
  186. package/build/inputs/Radio/index.js +2 -0
  187. package/build/inputs/Radio/index.js.map +1 -0
  188. package/{esm/components → build}/inputs/Switch/Switch.js +12 -13
  189. package/build/inputs/Switch/Switch.js.map +1 -0
  190. package/build/inputs/Switch/Switch.styled.js +117 -0
  191. package/build/inputs/Switch/Switch.styled.js.map +1 -0
  192. package/build/inputs/Switch/index.js +2 -0
  193. package/build/inputs/Switch/index.js.map +1 -0
  194. package/build/inputs/TextArea/TextArea.js +175 -0
  195. package/build/inputs/TextArea/TextArea.js.map +1 -0
  196. package/build/inputs/TextArea/TextArea.styled.js +470 -0
  197. package/build/inputs/TextArea/TextArea.styled.js.map +1 -0
  198. package/build/inputs/TextArea/index.js +2 -0
  199. package/build/inputs/TextArea/index.js.map +1 -0
  200. package/build/inputs/TextInput/TextInput.js +139 -0
  201. package/build/inputs/TextInput/TextInput.js.map +1 -0
  202. package/build/inputs/TextInput/TextInput.styled.js +249 -0
  203. package/build/inputs/TextInput/TextInput.styled.js.map +1 -0
  204. package/build/inputs/TextInput/index.js +2 -0
  205. package/build/inputs/TextInput/index.js.map +1 -0
  206. package/build/inputs/index.js +15 -0
  207. package/build/inputs/index.js.map +1 -0
  208. package/build/layout/InputGroup/InputGroup.js +20 -0
  209. package/build/layout/InputGroup/InputGroup.js.map +1 -0
  210. package/build/layout/InputGroup/InputGroup.styled.js +14 -0
  211. package/build/layout/InputGroup/InputGroup.styled.js.map +1 -0
  212. package/build/layout/SectionSeparator/SectionSeparator.js +23 -0
  213. package/build/layout/SectionSeparator/SectionSeparator.js.map +1 -0
  214. package/build/layout/SectionSeparator/SectionSeparator.styled.js +19 -0
  215. package/build/layout/SectionSeparator/SectionSeparator.styled.js.map +1 -0
  216. package/build/layout/SectionSeparator/index.js +2 -0
  217. package/build/layout/SectionSeparator/index.js.map +1 -0
  218. package/build/layout/index.js +3 -0
  219. package/build/layout/index.js.map +1 -0
  220. package/{esm/ssr → build}/ssr/index.js +1 -0
  221. package/build/ssr/index.js.map +1 -0
  222. package/build/styles/.config.scss +38 -0
  223. package/build/styles/all.scss +3 -0
  224. package/build/styles/utils/.colors.scss +15 -0
  225. package/build/styles/utils/colors-export.js +38 -0
  226. package/build/styles/utils/colors-export.js.map +1 -0
  227. package/build/styles/utils/theme.scss +35 -0
  228. package/{esm → build}/utils/dateTime.js +1 -0
  229. package/build/utils/dateTime.js.map +1 -0
  230. package/build/utils/defaultTheme.js +67 -0
  231. package/build/utils/defaultTheme.js.map +1 -0
  232. package/{esm/components → build}/widgets/AssetAction/AssetAction.js +23 -26
  233. package/build/widgets/AssetAction/AssetAction.js.map +1 -0
  234. package/build/widgets/AssetAction/AssetAction.styled.js +52 -0
  235. package/build/widgets/AssetAction/AssetAction.styled.js.map +1 -0
  236. package/build/widgets/AssetAction/index.js +2 -0
  237. package/build/widgets/AssetAction/index.js.map +1 -0
  238. package/build/widgets/AssetActionsBase/AssetActionsBase.js +29 -0
  239. package/build/widgets/AssetActionsBase/AssetActionsBase.js.map +1 -0
  240. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js +20 -0
  241. package/build/widgets/AssetActionsBase/AssetActionsBase.styled.js.map +1 -0
  242. package/build/widgets/AssetActionsBase/index.js +2 -0
  243. package/build/widgets/AssetActionsBase/index.js.map +1 -0
  244. package/{esm/components → build}/widgets/AssetGallery/AssetGallery.js +35 -34
  245. package/build/widgets/AssetGallery/AssetGallery.js.map +1 -0
  246. package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +65 -64
  247. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js.map +1 -0
  248. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +39 -0
  249. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js.map +1 -0
  250. package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +122 -108
  251. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -0
  252. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +329 -0
  253. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -0
  254. package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +132 -115
  255. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -0
  256. package/{esm/components → build}/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +98 -120
  257. package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -0
  258. package/{esm/components → build}/widgets/AssetGallery/asset.propType.js +5 -4
  259. package/build/widgets/AssetGallery/asset.propType.js.map +1 -0
  260. package/build/widgets/AssetGallery/index.js +2 -0
  261. package/build/widgets/AssetGallery/index.js.map +1 -0
  262. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +44 -0
  263. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js.map +1 -0
  264. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +88 -0
  265. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js.map +1 -0
  266. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -0
  267. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js.map +1 -0
  268. package/build/widgets/ContextMenu/ContextMenu.js +23 -0
  269. package/build/widgets/ContextMenu/ContextMenu.js.map +1 -0
  270. package/build/widgets/ContextMenu/ContextMenu.styled.js +15 -0
  271. package/build/widgets/ContextMenu/ContextMenu.styled.js.map +1 -0
  272. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +44 -0
  273. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js.map +1 -0
  274. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +86 -0
  275. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js.map +1 -0
  276. package/build/widgets/ContextMenu/ContextMenuItem/index.js +2 -0
  277. package/build/widgets/ContextMenu/ContextMenuItem/index.js.map +1 -0
  278. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +22 -0
  279. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js.map +1 -0
  280. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +26 -0
  281. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js.map +1 -0
  282. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +2 -0
  283. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js.map +1 -0
  284. package/build/widgets/ContextMenu/index.js +2 -0
  285. package/build/widgets/ContextMenu/index.js.map +1 -0
  286. package/build/widgets/InfoCard/InfoCard.js +40 -0
  287. package/build/widgets/InfoCard/InfoCard.js.map +1 -0
  288. package/build/widgets/InfoCard/InfoCard.styled.js +113 -0
  289. package/build/widgets/InfoCard/InfoCard.styled.js.map +1 -0
  290. package/build/widgets/InfoCard/index.js +2 -0
  291. package/build/widgets/InfoCard/index.js.map +1 -0
  292. package/{esm/components → build}/widgets/Instructions/Instructions.js +60 -63
  293. package/build/widgets/Instructions/Instructions.js.map +1 -0
  294. package/build/widgets/Instructions/Instructions.styled.js +32 -0
  295. package/build/widgets/Instructions/Instructions.styled.js.map +1 -0
  296. package/build/widgets/Instructions/index.js +2 -0
  297. package/build/widgets/Instructions/index.js.map +1 -0
  298. package/build/widgets/ProgressBar/ProgressBar.js +72 -0
  299. package/build/widgets/ProgressBar/ProgressBar.js.map +1 -0
  300. package/build/widgets/ProgressBar/ProgressBar.styled.js +178 -0
  301. package/build/widgets/ProgressBar/ProgressBar.styled.js.map +1 -0
  302. package/build/widgets/ProgressBar/index.js +2 -0
  303. package/build/widgets/ProgressBar/index.js.map +1 -0
  304. package/build/widgets/SummaryCard/SummaryCard.js +93 -0
  305. package/build/widgets/SummaryCard/SummaryCard.js.map +1 -0
  306. package/build/widgets/SummaryCard/SummaryCard.styled.js +137 -0
  307. package/build/widgets/SummaryCard/SummaryCard.styled.js.map +1 -0
  308. package/build/widgets/SummaryCard/index.js +2 -0
  309. package/build/widgets/SummaryCard/index.js.map +1 -0
  310. package/build/widgets/index.js +11 -0
  311. package/build/widgets/index.js.map +1 -0
  312. package/package.json +46 -61
  313. package/styles/.config.scss +38 -0
  314. package/styles/config.scss +1 -0
  315. package/styles/utils/.colors.scss +15 -0
  316. package/styles/utils/colors-export.js +35 -0
  317. package/styles/utils/colors.scss +4 -4
  318. package/.eslintrc +0 -19
  319. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
  320. package/cjs/_virtual/index.js +0 -7
  321. package/cjs/_virtual/index2.js +0 -7
  322. package/cjs/_virtual/index3.js +0 -7
  323. package/cjs/_virtual/index4.js +0 -7
  324. package/cjs/_virtual/react-dom.development.js +0 -7
  325. package/cjs/_virtual/react-dom.production.js +0 -7
  326. package/cjs/_virtual/react-is.development.js +0 -7
  327. package/cjs/_virtual/react-is.production.min.js +0 -7
  328. package/cjs/_virtual/react.development.js +0 -7
  329. package/cjs/_virtual/react.production.js +0 -7
  330. package/cjs/components/data/Alert/Alert.js +0 -81
  331. package/cjs/components/data/Alert/Alert.styled.js +0 -72
  332. package/cjs/components/data/Alert/data/Alert/index.js +0 -9
  333. package/cjs/components/data/Badge/Badge.js +0 -93
  334. package/cjs/components/data/Badge/Badge.styled.js +0 -156
  335. package/cjs/components/data/Badge/data/Badge/index.js +0 -9
  336. package/cjs/components/data/Popover/Popover.js +0 -102
  337. package/cjs/components/data/Popover/Popover.styled.js +0 -159
  338. package/cjs/components/data/Popover/data/Popover/index.js +0 -9
  339. package/cjs/components/data/Tab/Tab.js +0 -31
  340. package/cjs/components/data/Tab/Tab.styled.js +0 -22
  341. package/cjs/components/data/Tab/data/Tab/index.js +0 -9
  342. package/cjs/components/data/Tabs/Tabs.js +0 -91
  343. package/cjs/components/data/Tabs/Tabs.styled.js +0 -97
  344. package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
  345. package/cjs/components/data/Tooltip/Tooltip.js +0 -50
  346. package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
  347. package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
  348. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
  349. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -79
  350. package/cjs/components/data/data/index.js +0 -21
  351. package/cjs/components/inputs/ActionButton/ActionButton.js +0 -42
  352. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -66
  353. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
  354. package/cjs/components/inputs/Button/Button.js +0 -188
  355. package/cjs/components/inputs/Button/Button.styled.js +0 -294
  356. package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
  357. package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
  358. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -145
  359. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
  360. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
  361. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -352
  362. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
  363. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -178
  364. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -258
  365. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
  366. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
  367. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -352
  368. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
  369. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
  370. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -89
  371. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
  372. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -122
  373. package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -251
  374. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -279
  375. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
  376. package/cjs/components/inputs/Radio/Radio.js +0 -67
  377. package/cjs/components/inputs/Radio/Radio.styled.js +0 -93
  378. package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
  379. package/cjs/components/inputs/Switch/Switch.js +0 -69
  380. package/cjs/components/inputs/Switch/Switch.styled.js +0 -123
  381. package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
  382. package/cjs/components/inputs/TextArea/TextArea.js +0 -186
  383. package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -455
  384. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
  385. package/cjs/components/inputs/TextInput/TextInput.js +0 -147
  386. package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -276
  387. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
  388. package/cjs/components/inputs/inputs/index.js +0 -33
  389. package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
  390. package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -18
  391. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
  392. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
  393. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -21
  394. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
  395. package/cjs/components/layout/layout/index.js +0 -11
  396. package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
  397. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -58
  398. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
  399. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -24
  400. package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -102
  401. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -392
  402. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -43
  403. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -402
  404. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -338
  405. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
  406. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
  407. package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
  408. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
  409. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
  410. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -96
  411. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
  412. package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -28
  413. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -19
  414. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
  415. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -93
  416. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
  417. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
  418. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -30
  419. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
  420. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
  421. package/cjs/components/widgets/InfoCard/InfoCard.js +0 -39
  422. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -110
  423. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
  424. package/cjs/components/widgets/Instructions/Instructions.js +0 -217
  425. package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
  426. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
  427. package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -58
  428. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -154
  429. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
  430. package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -92
  431. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -142
  432. package/cjs/components/widgets/widgets/index.js +0 -25
  433. package/cjs/hooks/useEventListner.js +0 -26
  434. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
  435. package/cjs/hooks/useOnClickOutside.js +0 -17
  436. package/cjs/icons/arrow-back.svg.js +0 -20
  437. package/cjs/icons/arrow-forward.svg.js +0 -20
  438. package/cjs/icons/check-rectangle-filled.svg.js +0 -20
  439. package/cjs/icons/close.svg.js +0 -20
  440. package/cjs/icons/edit-note.svg.js +0 -20
  441. package/cjs/icons/expand-more.svg.js +0 -20
  442. package/cjs/icons/headset.svg.js +0 -20
  443. package/cjs/icons/layers.svg.js +0 -20
  444. package/cjs/icons/link.svg.js +0 -20
  445. package/cjs/icons/play.svg.js +0 -20
  446. package/cjs/icons/search.svg.js +0 -20
  447. package/cjs/icons/star-filled.svg.js +0 -20
  448. package/cjs/icons/star.svg.js +0 -20
  449. package/cjs/icons/triangle-right.svg.js +0 -20
  450. package/cjs/icons/verification.svg.js +0 -20
  451. package/cjs/icons/warning-circle.svg.js +0 -20
  452. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
  453. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
  454. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
  455. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
  456. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
  457. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
  458. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
  459. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
  460. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
  461. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
  462. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
  463. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
  464. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
  465. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
  466. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
  467. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
  468. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
  469. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
  470. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  471. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
  472. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
  473. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
  474. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
  475. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
  476. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
  477. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
  478. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
  479. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
  480. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -445
  481. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
  482. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
  483. package/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -116
  484. package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -63
  485. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
  486. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
  487. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
  488. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -14
  489. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -51
  490. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -907
  491. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
  492. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -128
  493. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -165
  494. package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -46
  495. package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -41
  496. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
  497. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
  498. package/cjs/node_modules/object-assign/index.js +0 -94
  499. package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
  500. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
  501. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
  502. package/cjs/node_modules/prop-types/index.js +0 -33
  503. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
  504. package/cjs/node_modules/prop-types/lib/has.js +0 -7
  505. package/cjs/node_modules/react/cjs/react.development.js +0 -1246
  506. package/cjs/node_modules/react/cjs/react.production.js +0 -552
  507. package/cjs/node_modules/react/index.js +0 -19
  508. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
  509. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
  510. package/cjs/node_modules/react-dom/index.js +0 -44
  511. package/cjs/node_modules/react-is/cjs/react-is.development.js +0 -228
  512. package/cjs/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  513. package/cjs/node_modules/react-is/index.js +0 -13
  514. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
  515. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
  516. package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2653
  517. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
  518. package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -101
  519. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
  520. package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
  521. package/cjs/node_modules/stylis/src/Enum.js +0 -24
  522. package/cjs/node_modules/stylis/src/Middleware.js +0 -37
  523. package/cjs/node_modules/stylis/src/Parser.js +0 -201
  524. package/cjs/node_modules/stylis/src/Serializer.js +0 -43
  525. package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
  526. package/cjs/node_modules/stylis/src/Utility.js +0 -134
  527. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
  528. package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
  529. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -10
  530. package/cjs/ssr/ssr/index.js +0 -12
  531. package/cjs/styles/utils/colors.scss.js +0 -11
  532. package/cjs/utils/dateTime.js +0 -20
  533. package/cjs/utils/defaultTheme.js +0 -52
  534. package/doctor-storybook.log +0 -20
  535. package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
  536. package/esm/_virtual/index.js +0 -3
  537. package/esm/_virtual/index2.js +0 -3
  538. package/esm/_virtual/index3.js +0 -3
  539. package/esm/_virtual/index4.js +0 -3
  540. package/esm/_virtual/react-dom.development.js +0 -3
  541. package/esm/_virtual/react-dom.production.js +0 -3
  542. package/esm/_virtual/react-is.development.js +0 -3
  543. package/esm/_virtual/react-is.production.min.js +0 -3
  544. package/esm/_virtual/react.development.js +0 -3
  545. package/esm/_virtual/react.production.js +0 -3
  546. package/esm/components/data/Alert/Alert.js +0 -77
  547. package/esm/components/data/Alert/Alert.styled.js +0 -63
  548. package/esm/components/data/Alert/data/Alert/index.js +0 -1
  549. package/esm/components/data/Badge/Badge.js +0 -89
  550. package/esm/components/data/Badge/Badge.styled.js +0 -145
  551. package/esm/components/data/Badge/data/Badge/index.js +0 -1
  552. package/esm/components/data/Popover/data/Popover/index.js +0 -1
  553. package/esm/components/data/Tab/Tab.js +0 -27
  554. package/esm/components/data/Tab/Tab.styled.js +0 -14
  555. package/esm/components/data/Tab/data/Tab/index.js +0 -1
  556. package/esm/components/data/Tabs/Tabs.js +0 -87
  557. package/esm/components/data/Tabs/Tabs.styled.js +0 -85
  558. package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
  559. package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
  560. package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
  561. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
  562. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -69
  563. package/esm/components/data/data/index.js +0 -7
  564. package/esm/components/inputs/ActionButton/ActionButton.js +0 -38
  565. package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -58
  566. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
  567. package/esm/components/inputs/Button/Button.js +0 -184
  568. package/esm/components/inputs/Button/Button.styled.js +0 -277
  569. package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
  570. package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -132
  571. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
  572. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -324
  573. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
  574. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -245
  575. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
  576. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -335
  577. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
  578. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -75
  579. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -104
  580. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
  581. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
  582. package/esm/components/inputs/Radio/Radio.js +0 -63
  583. package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
  584. package/esm/components/inputs/Switch/Switch.styled.js +0 -110
  585. package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
  586. package/esm/components/inputs/TextArea/TextArea.js +0 -182
  587. package/esm/components/inputs/TextArea/TextArea.styled.js +0 -437
  588. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
  589. package/esm/components/inputs/TextInput/TextInput.js +0 -143
  590. package/esm/components/inputs/TextInput/TextInput.styled.js +0 -261
  591. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
  592. package/esm/components/inputs/inputs/index.js +0 -13
  593. package/esm/components/layout/InputGroup/InputGroup.js +0 -22
  594. package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -10
  595. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
  596. package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
  597. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -13
  598. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
  599. package/esm/components/layout/layout/index.js +0 -2
  600. package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -46
  601. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
  602. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -16
  603. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -33
  604. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -311
  605. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
  606. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
  607. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -84
  608. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
  609. package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -24
  610. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -11
  611. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
  612. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -83
  613. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
  614. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
  615. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -22
  616. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
  617. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
  618. package/esm/components/widgets/InfoCard/InfoCard.js +0 -35
  619. package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -94
  620. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
  621. package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
  622. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
  623. package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -54
  624. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -137
  625. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
  626. package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -88
  627. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -124
  628. package/esm/components/widgets/widgets/index.js +0 -9
  629. package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
  630. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
  631. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
  632. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  633. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
  634. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
  635. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  636. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
  637. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  638. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
  639. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
  640. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
  641. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
  642. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
  643. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
  644. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
  645. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  646. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
  647. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
  648. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
  649. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
  650. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  651. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
  652. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  653. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  654. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  655. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  656. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
  657. package/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -441
  658. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
  659. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  660. package/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -107
  661. package/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -56
  662. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
  663. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
  664. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
  665. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -10
  666. package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
  667. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -894
  668. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
  669. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -110
  670. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -138
  671. package/esm/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -41
  672. package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -37
  673. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
  674. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
  675. package/esm/node_modules/object-assign/index.js +0 -90
  676. package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
  677. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  678. package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -617
  679. package/esm/node_modules/prop-types/index.js +0 -29
  680. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  681. package/esm/node_modules/prop-types/lib/has.js +0 -3
  682. package/esm/node_modules/react/cjs/react.development.js +0 -1244
  683. package/esm/node_modules/react/cjs/react.production.js +0 -547
  684. package/esm/node_modules/react/index.js +0 -15
  685. package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
  686. package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
  687. package/esm/node_modules/react-dom/index.js +0 -42
  688. package/esm/node_modules/react-is/cjs/react-is.development.js +0 -223
  689. package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  690. package/esm/node_modules/react-is/index.js +0 -11
  691. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
  692. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
  693. package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2644
  694. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
  695. package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -97
  696. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
  697. package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
  698. package/esm/node_modules/stylis/src/Enum.js +0 -12
  699. package/esm/node_modules/stylis/src/Middleware.js +0 -32
  700. package/esm/node_modules/stylis/src/Parser.js +0 -193
  701. package/esm/node_modules/stylis/src/Serializer.js +0 -38
  702. package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
  703. package/esm/node_modules/stylis/src/Utility.js +0 -117
  704. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
  705. package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
  706. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
  707. package/esm/styles/utils/colors.scss.js +0 -7
  708. package/esm/utils/defaultTheme.js +0 -47
  709. package/migration-storybook.log +0 -392
@@ -0,0 +1,139 @@
1
+ import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React__default, { useRef, useState, useMemo } from 'react';
3
+ import { nanoid } from 'nanoid';
4
+ import PropTypes from 'prop-types';
5
+ import useMergedRefs from '@restart/hooks/useMergedRefs';
6
+ import { isBoolean, isEmpty } from 'lodash';
7
+ import { ReactComponent as SvgEditNote } from '../../icons/edit-note.svg.js';
8
+ import { TextInput as TextInput$1, TextInputFieldIcon, TextInputWrapper, Adornment, TextInputField, InputIconContainer, TextInputLabel, Description } from './TextInput.styled.js';
9
+
10
+ const TextInput = React__default.forwardRef(function TextInput({
11
+ value,
12
+ defaultValue,
13
+ name,
14
+ label,
15
+ placeholder,
16
+ type,
17
+ required,
18
+ disabled,
19
+ readOnly,
20
+ autoComplete,
21
+ description,
22
+ error,
23
+ warning,
24
+ icon,
25
+ adornments,
26
+ className,
27
+ style,
28
+ onChange,
29
+ onBlur,
30
+ noBorder,
31
+ ...rest
32
+ }, forwardedRef) {
33
+ const textInputDomNode = useRef(null);
34
+ const textInputRef = useMergedRefs(forwardedRef, textInputDomNode);
35
+ const [uniqueId] = useState(nanoid());
36
+ const hasError = useMemo(() => {
37
+ if (isBoolean(error)) {
38
+ return error;
39
+ }
40
+ return !isEmpty(error);
41
+ }, [error]);
42
+ const hasWarning = useMemo(() => {
43
+ if (isBoolean(warning)) {
44
+ return warning;
45
+ }
46
+ return !isEmpty(warning);
47
+ }, [warning]);
48
+ const descriptionText = useMemo(() => {
49
+ if (!isEmpty(error)) {
50
+ return error;
51
+ }
52
+ if (!isEmpty(warning)) {
53
+ return warning;
54
+ }
55
+ if (!isEmpty(description)) {
56
+ return description;
57
+ }
58
+ return null;
59
+ }, [description, error, warning]);
60
+ return React__default.createElement(TextInput$1, {
61
+ $error: hasError,
62
+ disabled: disabled,
63
+ $warning: hasWarning,
64
+ className: className,
65
+ style: style
66
+ }, typeof icon !== 'undefined' && React__default.createElement(TextInputFieldIcon, null, icon), React__default.createElement(TextInputWrapper, null, typeof adornments?.prefix === 'string' && adornments.prefix.length > 0 && React__default.createElement(Adornment, {
67
+ htmlFor: `text-input-${uniqueId}`,
68
+ $error: hasError,
69
+ $warning: hasWarning,
70
+ $isPrefix: true,
71
+ onClick: () => textInputDomNode.current.focus()
72
+ }, adornments.prefix), React__default.createElement(TextInputField, _extends({
73
+ ref: textInputRef,
74
+ value: value,
75
+ defaultValue: defaultValue,
76
+ name: name,
77
+ placeholder: placeholder || ' ',
78
+ type: type,
79
+ required: required,
80
+ autoComplete: autoComplete,
81
+ $hasIcon: Boolean(icon),
82
+ $error: hasError,
83
+ $warning: hasWarning,
84
+ id: `text-input-${uniqueId}`,
85
+ onChange: onChange,
86
+ onBlur: onBlur,
87
+ readOnly: readOnly,
88
+ $noBorder: noBorder
89
+ }, rest)), !readOnly && noBorder && React__default.createElement(InputIconContainer, {
90
+ $error: hasError,
91
+ $warning: hasWarning
92
+ }, React__default.createElement(SvgEditNote, null)), label && React__default.createElement(TextInputLabel, {
93
+ htmlFor: `text-input-${uniqueId}`,
94
+ $hasPlaceholder: Boolean(placeholder),
95
+ $hasAdornments: Boolean(typeof adornments?.prefix === 'string' && adornments.prefix.length > 0 || typeof adornments?.suffix === 'string' && adornments.suffix.length > 0),
96
+ $hasIcon: Boolean(icon),
97
+ $error: hasError
98
+ }, label, required && ' *'), typeof adornments?.suffix === 'string' && adornments.suffix.length > 0 && React__default.createElement(Adornment, {
99
+ $error: hasError,
100
+ $warning: hasWarning,
101
+ $isPrefix: false,
102
+ onClick: () => textInputDomNode.current.focus()
103
+ }, adornments.suffix)), typeof descriptionText === 'string' && descriptionText.length > 0 && React__default.createElement(Description, {
104
+ $error: hasError,
105
+ $warning: hasWarning
106
+ }, descriptionText));
107
+ });
108
+ TextInput.defaultProps = {
109
+ type: 'text',
110
+ noBorder: false
111
+ };
112
+ TextInput.propTypes = process.env.NODE_ENV !== "production" ? {
113
+ value: PropTypes.string,
114
+ defaultValue: PropTypes.string,
115
+ name: PropTypes.string,
116
+ label: PropTypes.string,
117
+ placeholder: PropTypes.string,
118
+ type: PropTypes.string,
119
+ required: PropTypes.bool,
120
+ disabled: PropTypes.bool,
121
+ readOnly: PropTypes.bool,
122
+ autoComplete: PropTypes.string,
123
+ description: PropTypes.string,
124
+ error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
125
+ warning: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
126
+ icon: PropTypes.element,
127
+ adornments: PropTypes.shape({
128
+ prefix: PropTypes.string,
129
+ suffix: PropTypes.string
130
+ }),
131
+ className: PropTypes.string,
132
+ style: PropTypes.object,
133
+ onChange: PropTypes.func,
134
+ onBlur: PropTypes.func,
135
+ noBorder: PropTypes.bool
136
+ } : {};
137
+
138
+ export { TextInput as default };
139
+ //# sourceMappingURL=TextInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.js","sources":["../../../src/components/inputs/TextInput/TextInput.js"],"sourcesContent":["import React, { useMemo, useRef, useState } from 'react';\n\nimport { nanoid } from 'nanoid';\nimport PropTypes from 'prop-types';\n\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport { isBoolean, isEmpty } from 'lodash';\nimport { ReactComponent as EditNoteIcon } from '../../../icons/edit-note.svg';\nimport * as S from './TextInput.styled';\n\n/**\n * Text inputs let users enter and edit text in the UI. They typically appear in forms and dialogs.\n *\n * ### Import\n *\n * ``` js\n * import { TextInput } from '@ntbjs/react-components/inputs'\n * // or\n * import TextInput from '@ntbjs/react-components/inputs/TextInput'\n * ```\n */\nconst TextInput = React.forwardRef(function TextInput(\n {\n value,\n defaultValue,\n name,\n label,\n placeholder,\n type,\n required,\n disabled,\n readOnly,\n autoComplete,\n description,\n error,\n warning,\n icon,\n adornments,\n className,\n style,\n onChange,\n onBlur,\n noBorder,\n ...rest\n },\n forwardedRef\n) {\n const textInputDomNode = useRef(null);\n const textInputRef = useMergedRefs(forwardedRef, textInputDomNode);\n const [uniqueId] = useState(nanoid());\n\n const hasError = useMemo(() => {\n if (isBoolean(error)) {\n return error;\n }\n\n return !isEmpty(error);\n }, [error]);\n\n const hasWarning = useMemo(() => {\n if (isBoolean(warning)) {\n return warning;\n }\n\n return !isEmpty(warning);\n }, [warning]);\n\n const descriptionText = useMemo(() => {\n if (!isEmpty(error)) {\n return error;\n }\n\n if (!isEmpty(warning)) {\n return warning;\n }\n\n if (!isEmpty(description)) {\n return description;\n }\n\n return null;\n }, [description, error, warning]);\n\n return (\n <S.TextInput\n $error={hasError}\n disabled={disabled}\n $warning={hasWarning}\n className={className}\n style={style}\n >\n {typeof icon !== 'undefined' && <S.TextInputFieldIcon>{icon}</S.TextInputFieldIcon>}\n <S.TextInputWrapper>\n {typeof adornments?.prefix === 'string' && adornments.prefix.length > 0 && (\n <S.Adornment\n htmlFor={`text-input-${uniqueId}`}\n $error={hasError}\n $warning={hasWarning}\n $isPrefix={true}\n onClick={() => textInputDomNode.current.focus()}\n >\n {adornments.prefix}\n </S.Adornment>\n )}\n <S.TextInputField\n ref={textInputRef}\n value={value}\n defaultValue={defaultValue}\n name={name}\n placeholder={placeholder || ' '}\n type={type}\n required={required}\n autoComplete={autoComplete}\n $hasIcon={Boolean(icon)}\n $error={hasError}\n $warning={hasWarning}\n id={`text-input-${uniqueId}`}\n onChange={onChange}\n onBlur={onBlur}\n readOnly={readOnly}\n $noBorder={noBorder}\n {...rest}\n />\n {!readOnly && noBorder && (\n <S.InputIconContainer $error={hasError} $warning={hasWarning}>\n <EditNoteIcon />\n </S.InputIconContainer>\n )}\n {label && (\n <S.TextInputLabel\n htmlFor={`text-input-${uniqueId}`}\n $hasPlaceholder={Boolean(placeholder)}\n $hasAdornments={Boolean(\n (typeof adornments?.prefix === 'string' && adornments.prefix.length > 0) ||\n (typeof adornments?.suffix === 'string' && adornments.suffix.length > 0)\n )}\n $hasIcon={Boolean(icon)}\n $error={hasError}\n >\n {label}\n {required && ' *'}\n </S.TextInputLabel>\n )}\n {typeof adornments?.suffix === 'string' && adornments.suffix.length > 0 && (\n <S.Adornment\n $error={hasError}\n $warning={hasWarning}\n $isPrefix={false}\n onClick={() => textInputDomNode.current.focus()}\n >\n {adornments.suffix}\n </S.Adornment>\n )}\n </S.TextInputWrapper>\n {typeof descriptionText === 'string' && descriptionText.length > 0 && (\n <S.Description $error={hasError} $warning={hasWarning}>\n {descriptionText}\n </S.Description>\n )}\n </S.TextInput>\n );\n});\n\nTextInput.defaultProps = {\n type: 'text',\n noBorder: false\n};\n\nTextInput.propTypes = {\n /**\n * Content of the text input field\n */\n value: PropTypes.string,\n\n /**\n * Default content of the text input field\n */\n defaultValue: PropTypes.string,\n\n /**\n * Name of the text input field (used when sending form data)\n */\n name: PropTypes.string,\n\n /**\n * Label text for the text input field. If the text input field is empty (no input and no placeholder)\n * and isn't in focus, the label text will be displayed grayed out in the field itself.\n * Otherwise, the label text will be displayed in the top left corner.\n */\n label: PropTypes.string,\n\n /**\n * Placeholder text to be displayed if the text area is empty (no input)\n */\n placeholder: PropTypes.string,\n\n /**\n * Type of input – e.g. `text`, `email`, `password`, etc.\n */\n type: PropTypes.string,\n\n /**\n * Whether the field is required\n */\n required: PropTypes.bool,\n\n /**\n * Whether the field is disabled\n */\n disabled: PropTypes.bool,\n\n /**\n * Whether the field is read-only\n */\n readOnly: PropTypes.bool,\n\n /**\n * ?\n */\n autoComplete: PropTypes.string,\n\n /**\n * Descriptive text displayed below the text input field\n */\n description: PropTypes.string,\n\n /**\n * Set to `true` to display the text input field with a red border. Set to a string to\n * aslo display the given string as an error message below the field.\n */\n error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n\n /**\n * Set to `true` to display the text input field with a yellow/orange border. Set to a string to\n * aslo display the given string as a warning message below the field.\n */\n warning: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n\n /**\n * Optional icon to be displayed left of the text inside the text area\n */\n icon: PropTypes.element,\n\n /**\n * Text to be displayed before/after the user input. Takes an object with two values:\n * `prefix` and `suffix`, where prefix will be displayed before and suffix will be\n * displayed after the user input.\n */\n adornments: PropTypes.shape({ prefix: PropTypes.string, suffix: PropTypes.string }),\n\n /**\n * Add custom class names to the HTML element\n */\n className: PropTypes.string,\n\n /**\n * Add custom CSS styling\n */\n style: PropTypes.object,\n\n /**\n * Optional callback function for the `onChange` event\n */\n onChange: PropTypes.func,\n\n /**\n * Optional callback function for the `onBlur` event\n */\n onBlur: PropTypes.func,\n\n /**\n * Whether to display the text input field without borders when it's not in focus\n */\n noBorder: PropTypes.bool\n};\n\nexport default TextInput;\n"],"names":["TextInput","React","forwardRef","value","defaultValue","name","label","placeholder","type","required","disabled","readOnly","autoComplete","description","error","warning","icon","adornments","className","style","onChange","onBlur","noBorder","rest","forwardedRef","textInputDomNode","useRef","textInputRef","useMergedRefs","uniqueId","useState","nanoid","hasError","useMemo","isBoolean","isEmpty","hasWarning","descriptionText","createElement","S","$error","$warning","prefix","length","htmlFor","$isPrefix","onClick","current","focus","_extends","ref","$hasIcon","Boolean","id","$noBorder","EditNoteIcon","$hasPlaceholder","$hasAdornments","suffix","defaultProps","propTypes","process","env","NODE_ENV","PropTypes","string","bool","oneOfType","element","shape","object","func"],"mappings":";;;;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AS,CAACE,IAAI;EAKxBxD,QAAQ,EAAEsD,SAAS,CAACE,IAAI;EAKxBvD,QAAQ,EAAEqD,SAAS,CAACE,IAAI;EAKxBtD,YAAY,EAAEoD,SAAS,CAACC,MAAM;EAK9BpD,WAAW,EAAEmD,SAAS,CAACC,MAAM;AAM7BnD,EAAAA,KAAK,EAAEkD,SAAS,CAACG,SAAS,CAAC,CAACH,SAAS,CAACE,IAAI,EAAEF,SAAS,CAACC,MAAM,CAAC,CAAC;AAM9DlD,EAAAA,OAAO,EAAEiD,SAAS,CAACG,SAAS,CAAC,CAACH,SAAS,CAACE,IAAI,EAAEF,SAAS,CAACC,MAAM,CAAC,CAAC;EAKhEjD,IAAI,EAAEgD,SAAS,CAACI,OAAO;AAOvBnD,EAAAA,UAAU,EAAE+C,SAAS,CAACK,KAAK,CAAC;IAAE3B,MAAM,EAAEsB,SAAS,CAACC,MAAM;IAAEP,MAAM,EAAEM,SAAS,CAACC,MAAAA;AAAO,GAAC,CAAC;EAKnF/C,SAAS,EAAE8C,SAAS,CAACC,MAAM;EAK3B9C,KAAK,EAAE6C,SAAS,CAACM,MAAM;EAKvBlD,QAAQ,EAAE4C,SAAS,CAACO,IAAI;EAKxBlD,MAAM,EAAE2C,SAAS,CAACO,IAAI;EAKtBjD,QAAQ,EAAE0C,SAAS,CAACE,IAAAA;AACtB,CAAC,GAAA,EAAA;;;;"}
@@ -0,0 +1,249 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { applyDefaultTheme } from '../../utils/defaultTheme.js';
3
+
4
+ const activeLabel = css`
5
+ font-size: 0.75rem;
6
+ padding: 0 3px;
7
+ top: -7px;
8
+ letter-spacing: 0.03em;
9
+ left: 8px !important;
10
+ opacity: 1 !important;
11
+ `;
12
+ const shouldForwardProp = prop => {
13
+ return prop !== 'theme' && !prop.startsWith('$');
14
+ };
15
+ const Adornment = styled.div.withConfig({
16
+ shouldForwardProp
17
+ }).attrs(applyDefaultTheme)`
18
+ flex-shrink: 0;
19
+ font-family: inherit;
20
+ font-size: 0.875rem;
21
+ line-height: initial;
22
+ padding: 13px 10px;
23
+
24
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'))}
25
+ ${props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
26
+ border: 1px solid;
27
+ ${props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'))}
28
+ border-radius: 3px;
29
+ ${props => props.$isPrefix ? css`
30
+ padding-right: 10px;
31
+ border-right: 0;
32
+ border-top-right-radius: 0;
33
+ border-bottom-right-radius: 0;
34
+ ` : css`
35
+ padding-left: 0;
36
+ margin-left: -3px;
37
+ border-left: 0;
38
+ border-top-left-radius: 0;
39
+ border-bottom-left-radius: 0;
40
+ `}
41
+ box-sizing: border-box;
42
+ appearance: none;
43
+ transition: border-color 350ms;
44
+ height: 2.75rem;
45
+
46
+ ${props => props.$warning && css`
47
+ border-color: ${props.theme.getColor('orange-500')} !important;
48
+ `}
49
+ ${props => props.$error && css`
50
+ border-color: ${props.theme.getColor('red-500')} !important;
51
+ `}
52
+ `;
53
+ const TextInputWrapper = styled.div.withConfig({
54
+ shouldForwardProp
55
+ }).attrs(applyDefaultTheme)`
56
+ display: flex;
57
+ align-content: center;
58
+
59
+ &:focus-within {
60
+ ${Adornment} {
61
+ outline: none;
62
+ ${props => props.theme.themeProp('border-color', props.theme.getColor('gray-600'), props.theme.getColor('gray-600'), 1)}
63
+ }
64
+ }
65
+ `;
66
+ const InputIconContainer = styled.div.withConfig({
67
+ shouldForwardProp
68
+ }).attrs(applyDefaultTheme)`
69
+ opacity: 0;
70
+ pointer-events: none;
71
+ border-top-right-radius: 3px;
72
+ border-bottom-right-radius: 3px;
73
+ padding-right: 4px;
74
+ padding-left: 30px;
75
+ display: flex;
76
+ align-items: center;
77
+ position: absolute;
78
+ right: 0;
79
+ top: 0;
80
+ bottom: 0;
81
+ color: ${props => props.theme.getColor('gray-400')};
82
+
83
+ ${props => props.$warning && props.theme.themeProp('color', '#C3AF43', '#C3AF43')}
84
+
85
+ ${props => props.$error && props.theme.themeProp('color', '#CB968F', '#CB968F')}
86
+
87
+ > svg {
88
+ width: 12px;
89
+ }
90
+ `;
91
+ const TextInputField = styled.input.withConfig({
92
+ shouldForwardProp
93
+ }).attrs(applyDefaultTheme)`
94
+ display: block;
95
+ width: 100%;
96
+ font-family: inherit;
97
+ font-size: 0.875rem;
98
+ line-height: 1;
99
+ padding: 13px 10px;
100
+ border-radius: 3px;
101
+ box-sizing: border-box;
102
+ appearance: none;
103
+ transition: border-color 350ms;
104
+ height: 2.75rem !important;
105
+ margin-bottom: 0;
106
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900'))}
107
+ ${props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
108
+ border: 1px solid;
109
+ ${props => props.$noBorder || props.readOnly ? 'border-color: transparent !important' : props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400'))};
110
+
111
+ ${props => props.readOnly && css`
112
+ user-select: text;
113
+ cursor: default;
114
+ `}
115
+
116
+ ${props => props.$warning && css`
117
+ border-color: ${props.theme.getColor('orange-500')} !important;
118
+ `}
119
+ ${props => props.$error && css`
120
+ border-color: ${props.theme.getColor('red-500')} !important;
121
+ `}
122
+ ${props => props.$hasIcon && css`
123
+ padding-left: 35px;
124
+ `}
125
+
126
+ &::placeholder {
127
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'), 1)}
128
+
129
+ ${props => props.theme.themeProp('opacity', 0.6, 0.5, 1)}
130
+ }
131
+ &:focus {
132
+ outline: none !important;
133
+ box-shadow: none !important;
134
+ ${props => props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-600'))}
135
+ ${props => props.readOnly && css`
136
+ outline: none;
137
+ `}
138
+ }
139
+ &&:hover:not(:focus) {
140
+ ${props => props.$noBorder ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-200')) : props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))};
141
+ transition: background 350ms;
142
+ & + ${InputIconContainer} {
143
+ opacity: 1;
144
+ transition: opacity 350ms;
145
+ }
146
+ }
147
+
148
+
149
+ `;
150
+ const TextInputLabel = styled.label.withConfig({
151
+ shouldForwardProp
152
+ }).attrs(applyDefaultTheme)`
153
+ position: absolute;
154
+ top: 15px;
155
+ left: 11px;
156
+ line-height: 1.2;
157
+ font-size: 0.875rem;
158
+ transition: all 150ms;
159
+
160
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'))}
161
+
162
+ ${props => props.theme.themeProp('opacity', 0.6, 0.5)}
163
+
164
+ ${props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`)}
165
+
166
+ ${props => (props.$hasPlaceholder || props.$hasAdornments) && css`
167
+ ${activeLabel};
168
+ `}
169
+
170
+ ${props => props.$hasIcon && css`
171
+ left: 35px;
172
+ `}
173
+ `;
174
+ const TextInputFieldIcon = styled.div.withConfig({
175
+ shouldForwardProp
176
+ }).attrs(applyDefaultTheme)`
177
+ position: absolute;
178
+ top: 0;
179
+ left: 0;
180
+ height: 2.625rem;
181
+ display: flex;
182
+ padding: 0 10px;
183
+
184
+ svg {
185
+ width: 15px;
186
+ opacity: 0.6;
187
+ transition: opacity 250ms;
188
+ }
189
+ `;
190
+ const TextInput = styled.div.withConfig({
191
+ shouldForwardProp
192
+ }).attrs(applyDefaultTheme)`
193
+ position: relative;
194
+
195
+ ${props => props.disabled && css`
196
+ user-select: none;
197
+ opacity: 0.5;
198
+ cursor: not-allowed;
199
+ > * {
200
+ pointer-events: none;
201
+ }
202
+ `}
203
+
204
+ &:focus-within {
205
+ ${TextInputLabel} {
206
+ ${activeLabel};
207
+ }
208
+
209
+ ${TextInputFieldIcon} {
210
+ svg {
211
+ opacity: 1;
212
+ }
213
+ }
214
+ }
215
+
216
+ ${TextInputField}:not(:placeholder-shown) + ${TextInputLabel} {
217
+ ${activeLabel};
218
+ ${props => props.$error && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))}
219
+
220
+ ${props => props.$error && css`
221
+ color: ${props.theme.getColor('red-500')};
222
+ `}
223
+ ${props => props.$warning && css`
224
+ color: ${props.theme.getColor('orange-500')};
225
+ `}
226
+ }
227
+ }
228
+ `;
229
+ const Description = styled.p.withConfig({
230
+ shouldForwardProp
231
+ }).attrs(applyDefaultTheme)`
232
+ margin: 8px 0 0 0;
233
+ padding: 0 0.6875rem;
234
+ font-size: 0.75rem;
235
+ line-height: 1.333;
236
+
237
+ ${props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'))};
238
+
239
+ ${props => props.$error && css`
240
+ ${props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))}
241
+ `}
242
+
243
+ ${props => props.$warning && css`
244
+ ${props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))}
245
+ `}
246
+ `;
247
+
248
+ export { Adornment, Description, InputIconContainer, TextInput, TextInputField, TextInputFieldIcon, TextInputLabel, TextInputWrapper };
249
+ //# sourceMappingURL=TextInput.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.styled.js","sources":["../../../src/components/inputs/TextInput/TextInput.styled.js"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { applyDefaultTheme } from '../../../utils/defaultTheme';\n\nconst activeLabel = css`\n font-size: 0.75rem;\n padding: 0 3px;\n top: -7px;\n letter-spacing: 0.03em;\n left: 8px !important;\n opacity: 1 !important;\n`;\n\nconst shouldForwardProp = prop => {\n return prop !== 'theme' && !prop.startsWith('$');\n};\n\nexport const Adornment = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n flex-shrink: 0;\n font-family: inherit;\n font-size: 0.875rem;\n line-height: initial;\n padding: 13px 10px;\n\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-400'),\n props.theme.getColor('gray-500')\n )}\n ${props =>\n props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )}\n border: 1px solid;\n ${props =>\n props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-500'),\n props.theme.getColor('gray-400')\n )}\n border-radius: 3px;\n ${props =>\n props.$isPrefix\n ? css`\n padding-right: 10px;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n `\n : css`\n padding-left: 0;\n margin-left: -3px;\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n `}\n box-sizing: border-box;\n appearance: none;\n transition: border-color 350ms;\n height: 2.75rem;\n\n ${props =>\n props.$warning &&\n css`\n border-color: ${props.theme.getColor('orange-500')} !important;\n `}\n ${props =>\n props.$error &&\n css`\n border-color: ${props.theme.getColor('red-500')} !important;\n `}\n`;\n\nexport const TextInputWrapper = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n display: flex;\n align-content: center;\n\n &:focus-within {\n ${Adornment} {\n outline: none;\n ${props =>\n props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-600'),\n props.theme.getColor('gray-600'),\n 1\n )}\n }\n }\n`;\n\nexport const InputIconContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n opacity: 0;\n pointer-events: none;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n padding-right: 4px;\n padding-left: 30px;\n display: flex;\n align-items: center;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n color: ${props => props.theme.getColor('gray-400')};\n\n ${props => props.$warning && props.theme.themeProp('color', '#C3AF43', '#C3AF43')}\n\n ${props => props.$error && props.theme.themeProp('color', '#CB968F', '#CB968F')}\n\n > svg {\n width: 12px;\n }\n`;\n\nexport const TextInputField = styled.input\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n display: block;\n width: 100%;\n font-family: inherit;\n font-size: 0.875rem;\n line-height: 1;\n padding: 13px 10px;\n border-radius: 3px;\n box-sizing: border-box;\n appearance: none;\n transition: border-color 350ms;\n height: 2.75rem !important;\n margin-bottom: 0;\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-100'),\n props.theme.getColor('gray-900')\n )}\n ${props =>\n props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )}\n border: 1px solid;\n ${props =>\n props.$noBorder || props.readOnly\n ? 'border-color: transparent !important'\n : props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-500'),\n props.theme.getColor('gray-400')\n )};\n\n ${props =>\n props.readOnly &&\n css`\n user-select: text;\n cursor: default;\n `}\n\n ${props =>\n props.$warning &&\n css`\n border-color: ${props.theme.getColor('orange-500')} !important;\n `}\n ${props =>\n props.$error &&\n css`\n border-color: ${props.theme.getColor('red-500')} !important;\n `}\n ${props =>\n props.$hasIcon &&\n css`\n padding-left: 35px;\n `}\n\n &::placeholder {\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-300'),\n props.theme.getColor('gray-600'),\n 1\n )}\n\n ${props => props.theme.themeProp('opacity', 0.6, 0.5, 1)}\n }\n &:focus {\n outline: none !important;\n box-shadow: none !important;\n ${props =>\n props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-400'),\n props.theme.getColor('gray-600')\n )}\n ${props =>\n props.readOnly &&\n css`\n outline: none;\n `}\n }\n &&:hover:not(:focus) {\n ${props =>\n props.$noBorder\n ? props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-200')\n )\n : props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n )};\n transition: background 350ms;\n & + ${InputIconContainer} {\n opacity: 1;\n transition: opacity 350ms;\n }\n }\n\n\n`;\n\nexport const TextInputLabel = styled.label\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n position: absolute;\n top: 15px;\n left: 11px;\n line-height: 1.2;\n font-size: 0.875rem;\n transition: all 150ms;\n\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-300'),\n props.theme.getColor('gray-600')\n )}\n\n ${props => props.theme.themeProp('opacity', 0.6, 0.5)}\n\n ${props =>\n props.theme.themeProp(\n 'background',\n `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`,\n `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`\n )}\n\n ${props =>\n (props.$hasPlaceholder || props.$hasAdornments) &&\n css`\n ${activeLabel};\n `}\n\n ${props =>\n props.$hasIcon &&\n css`\n left: 35px;\n `}\n`;\n\nexport const TextInputFieldIcon = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n position: absolute;\n top: 0;\n left: 0;\n height: 2.625rem;\n display: flex;\n padding: 0 10px;\n\n svg {\n width: 15px;\n opacity: 0.6;\n transition: opacity 250ms;\n }\n`;\n\nexport const TextInput = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n position: relative;\n\n ${props =>\n props.disabled &&\n css`\n user-select: none;\n opacity: 0.5;\n cursor: not-allowed;\n > * {\n pointer-events: none;\n }\n `}\n\n &:focus-within {\n ${TextInputLabel} {\n ${activeLabel};\n }\n\n ${TextInputFieldIcon} {\n svg {\n opacity: 1;\n }\n }\n }\n\n ${TextInputField}:not(:placeholder-shown) + ${TextInputLabel} {\n ${activeLabel};\n ${props =>\n props.$error &&\n props.theme.themeProp(\n 'color',\n props.theme.getColor('red-200'),\n props.theme.getColor('red-500')\n )}\n\n ${props =>\n props.$error &&\n css`\n color: ${props.theme.getColor('red-500')};\n `}\n ${props =>\n props.$warning &&\n css`\n color: ${props.theme.getColor('orange-500')};\n `} \n } \n}\n`;\n\nexport const Description = styled.p\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n margin: 8px 0 0 0;\n padding: 0 0.6875rem;\n font-size: 0.75rem;\n line-height: 1.333;\n\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-400'),\n props.theme.getColor('gray-500')\n )};\n\n ${props =>\n props.$error &&\n css`\n ${props.theme.themeProp(\n 'color',\n props.theme.getColor('red-200'),\n props.theme.getColor('red-500')\n )}\n `}\n\n ${props =>\n props.$warning &&\n css`\n ${props.theme.themeProp(\n 'color',\n props.theme.getColor('red-200'),\n props.theme.getColor('orange-500')\n )}\n `}\n`;\n"],"names":["activeLabel","css","shouldForwardProp","prop","startsWith","Adornment","styled","div","withConfig","attrs","applyDefaultTheme","props","theme","themeProp","getColor","$isPrefix","$warning","$error","TextInputWrapper","InputIconContainer","TextInputField","input","$noBorder","readOnly","$hasIcon","TextInputLabel","label","$hasPlaceholder","$hasAdornments","TextInputFieldIcon","TextInput","disabled","Description","p"],"mappings":";;;AAGA,MAAMA,WAAW,GAAGC,GAAG,CAAA;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAA;AAED,MAAMC,iBAAiB,GAAGC,IAAI,IAAI;EAChC,OAAOA,IAAI,KAAK,OAAO,IAAI,CAACA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,CAAA;AAClD,CAAC,CAAA;AAEM,MAAMC,SAAS,GAAGC,MAAM,CAACC,GAAG,CAChCC,UAAU,CAAC;AACVN,EAAAA,iBAAAA;AACF,CAAC,CAAC,CACDO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,EAAIC,EAAAA,KAAK,IACLA,KAAK,CAACC,KAAK,CAACC,SAAS,CACnB,OAAO,EACPF,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,UAAU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CAACC,KAAK,CAACC,SAAS,CACrB,OAAO,EACPF,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,SAAS,CAAC,EAC/BH,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,SAAS,CAChC,CAAC,CAAA;AACP,IAAK,CAAA,CAAA;AACL;AACA,EAAA,EAAIH,KAAK,IACLA,KAAK,CAACK,QAAQ,IACdf,GAAG,CAAA;AACP,MAAQU,EAAAA,KAAK,CAACC,KAAK,CAACC,SAAS,CACrB,OAAO,EACPF,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,SAAS,CAAC,EAC/BH,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,YAAY,CACnC,CAAC,CAAA;AACP,IAAK,CAAA,CAAA;AACL;;;;"}
@@ -0,0 +1,2 @@
1
+ export { default } from './TextInput.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export { default as ActionButton } from './ActionButton/ActionButton.js';
2
+ export { default as Button } from './Button/Button.js';
3
+ export { default as Checkbox } from './Checkbox/Checkbox.js';
4
+ export { default as CompactAutocompleteSelect } from './CompactAutocompleteSelect/CompactAutocompleteSelect.js';
5
+ export { default as CompactStarRating } from './CompactStarRating/CompactStarRating.js';
6
+ export { default as CompactTextInput } from './CompactTextInput/CompactTextInput.js';
7
+ export { default as MultiSelect } from './MultiSelect/MultiSelect.js';
8
+ export { default as Radio } from './Radio/Radio.js';
9
+ export { default as TextArea } from './TextArea/TextArea.js';
10
+ export { default as TextInput } from './TextInput/TextInput.js';
11
+ export { default as Switch } from './Switch/Switch.js';
12
+ export { default as MultiLevelCheckbox } from './MultiLevelCheckbox/MultiLevelCheckbox.js';
13
+ import './MultiLevelCheckbox/types.js';
14
+ export { default as MultiLevelCheckboxSelect } from './MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js';
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { InputGroup as InputGroup$1 } from './InputGroup.styled.js';
5
+
6
+ const InputGroup = React__default.forwardRef(function InputGroup({
7
+ children,
8
+ ...props
9
+ }, forwardedRef) {
10
+ return React__default.createElement(InputGroup$1, _extends({
11
+ ref: forwardedRef
12
+ }, props), children);
13
+ });
14
+ InputGroup.propTypes = process.env.NODE_ENV !== "production" ? {
15
+ children: PropTypes.node
16
+ } : {};
17
+ InputGroup.defaultProps = {};
18
+
19
+ export { InputGroup as default };
20
+ //# sourceMappingURL=InputGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputGroup.js","sources":["../../../src/components/layout/InputGroup/InputGroup.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as S from './InputGroup.styled';\n\n/**\n * Wrapper component to visually group related inputs by adding space above/below the group.\n *\n * ### Import\n *\n * ``` js\n * import { InputGroup } from '@ntbjs/react-components/layout'\n * // or\n * import InputGroup from '@ntbjs/react-components/layout/InputGroup'\n * ```\n *\n * ### Usage example\n * Pass an array of input elements to the `InputGroup` as its children:\n *\n * ``` js\nconst item1 = <CompactTextInput label=\"Size\" type=\"text\" value=\"4369 x 2913 px\" />;\nconst item2 = <CompactTextInput label=\"Resolution\" type=\"text\" value=\"300 dpi 37.0 x 24.7 cm px\" />;\nconst item3 = <CompactTextInput label=\"File size\" type=\"text\" value=\"7.22 MB\" />;\n\nconst inputGroup = <InputGroup>{[item1, item2, item3, item4]}</InputGroup>;\n * ```\n */\nconst InputGroup = React.forwardRef(function InputGroup({ children, ...props }, forwardedRef) {\n return (\n <S.InputGroup ref={forwardedRef} {...props}>\n {children}\n </S.InputGroup>\n );\n});\n\nInputGroup.propTypes = {\n /**\n * An array of inputs – e.g. `<CompactTextInput>`\n */\n children: PropTypes.node\n};\n\nInputGroup.defaultProps = {};\n\nexport default InputGroup;\n"],"names":["InputGroup","React","forwardRef","children","props","forwardedRef","createElement","S","_extends","ref","propTypes","process","env","NODE_ENV","PropTypes","node","defaultProps"],"mappings":";;;;;AA0BMA,MAAAA,UAAU,GAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,UAAUA,CAAC;EAAEG,QAAQ;EAAE,GAAGC,KAAAA;AAAM,CAAC,EAAEC,YAAY,EAAE;EAC5F,OACEJ,cAAA,CAAAK,aAAA,CAACC,YAAY,EAAAC,QAAA,CAAA;AAACC,IAAAA,GAAG,EAAEJ,YAAAA;GAAkBD,EAAAA,KAAK,CACvCD,EAAAA,QACW,CAAC,CAAA;AAEnB,CAAC,EAAC;AAEFH,UAAU,CAACU,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,KAAG,YAAA,GAAA;EAIrBV,QAAQ,EAAEW,SAAS,CAACC,IAAAA;AACtB,CAAC,GAAA,EAAA,CAAA;AAEDf,UAAU,CAACgB,YAAY,GAAG,EAAE;;;;"}
@@ -0,0 +1,14 @@
1
+ import styled from 'styled-components';
2
+ import { applyDefaultTheme } from '../../utils/defaultTheme.js';
3
+
4
+ const shouldForwardProp = prop => {
5
+ return prop !== 'theme' && !prop.startsWith('$');
6
+ };
7
+ const InputGroup = styled.div.withConfig({
8
+ shouldForwardProp
9
+ }).attrs(applyDefaultTheme)`
10
+ margin: 8px 0;
11
+ `;
12
+
13
+ export { InputGroup };
14
+ //# sourceMappingURL=InputGroup.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputGroup.styled.js","sources":["../../../src/components/layout/InputGroup/InputGroup.styled.js"],"sourcesContent":["import styled from 'styled-components';\nimport { applyDefaultTheme } from '../../../utils/defaultTheme';\n\nconst shouldForwardProp = prop => {\n return prop !== 'theme' && !prop.startsWith('$');\n};\n\nexport const InputGroup = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n margin: 8px 0;\n`;\n"],"names":["shouldForwardProp","prop","startsWith","InputGroup","styled","div","withConfig","attrs","applyDefaultTheme"],"mappings":";;;AAGA,MAAMA,iBAAiB,GAAGC,IAAI,IAAI;EAChC,OAAOA,IAAI,KAAK,OAAO,IAAI,CAACA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,CAAA;AAClD,CAAC,CAAA;AAEM,MAAMC,UAAU,GAAGC,MAAM,CAACC,GAAG,CACjCC,UAAU,CAAC;AACVN,EAAAA,iBAAAA;AACF,CAAC,CAAC,CACDO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC3B;AACA;;;;"}
@@ -0,0 +1,23 @@
1
+ import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import { SectionSeparator as SectionSeparator$1 } from './SectionSeparator.styled.js';
5
+
6
+ const SectionSeparator = React__default.forwardRef(function SectionSeparator({
7
+ vertical = false,
8
+ margin = 0,
9
+ ...props
10
+ }, forwardedRef) {
11
+ return React__default.createElement(SectionSeparator$1, _extends({
12
+ $vertical: vertical,
13
+ $margin: margin,
14
+ ref: forwardedRef
15
+ }, props));
16
+ });
17
+ SectionSeparator.propTypes = process.env.NODE_ENV !== "production" ? {
18
+ vertical: PropTypes.bool,
19
+ margin: PropTypes.number
20
+ } : {};
21
+
22
+ export { SectionSeparator as default };
23
+ //# sourceMappingURL=SectionSeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionSeparator.js","sources":["../../../src/components/layout/SectionSeparator/SectionSeparator.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as S from './SectionSeparator.styled';\n\n/**\n * Section separators are used to separate sections in the UI.\n * It will fill 100% of the width or height of its parent container by default.\n *\n *\n * ### Import\n *\n * ``` js\n * import { SectionSeparator } from '@ntbjs/react-components/layout'\n * // or\n * import SectionSeparator from '@ntbjs/react-components/layout/SectionSeparator'\n * ```\n *\n */\nconst SectionSeparator = React.forwardRef(function SectionSeparator(\n { vertical = false, margin = 0, ...props },\n forwardedRef\n) {\n return <S.SectionSeparator $vertical={vertical} $margin={margin} ref={forwardedRef} {...props} />;\n});\n\nSectionSeparator.propTypes = {\n /**\n * Whether the section separator should be displayed vertically.\n */\n vertical: PropTypes.bool,\n /**\n * Padding in pixels to apply to the separator.\n */\n margin: PropTypes.number\n};\n\nexport default SectionSeparator;\n"],"names":["SectionSeparator","React","forwardRef","vertical","margin","props","forwardedRef","createElement","S","_extends","$vertical","$margin","ref","propTypes","process","env","NODE_ENV","PropTypes","bool","number"],"mappings":";;;;;AAkBMA,MAAAA,gBAAgB,GAAGC,cAAK,CAACC,UAAU,CAAC,SAASF,gBAAgBA,CACjE;AAAEG,EAAAA,QAAQ,GAAG,KAAK;AAAEC,EAAAA,MAAM,GAAG,CAAC;EAAE,GAAGC,KAAAA;AAAM,CAAC,EAC1CC,YAAY,EACZ;EACA,OAAOL,cAAA,CAAAM,aAAA,CAACC,kBAAkB,EAAAC,QAAA,CAAA;AAACC,IAAAA,SAAS,EAAEP,QAAS;AAACQ,IAAAA,OAAO,EAAEP,MAAO;AAACQ,IAAAA,GAAG,EAAEN,YAAAA;GAAkBD,EAAAA,KAAK,CAAG,CAAC,CAAA;AACnG,CAAC,EAAC;AAEFL,gBAAgB,CAACa,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,KAAG,YAAA,GAAA;EAI3Bb,QAAQ,EAAEc,SAAS,CAACC,IAAI;EAIxBd,MAAM,EAAEa,SAAS,CAACE,MAAAA;AACpB,CAAC,GAAA,EAAA;;;;"}
@@ -0,0 +1,19 @@
1
+ import styled from 'styled-components';
2
+ import { applyDefaultTheme } from '../../utils/defaultTheme.js';
3
+
4
+ const shouldForwardProp = prop => {
5
+ return prop !== 'theme' && !prop.startsWith('$');
6
+ };
7
+ const SectionSeparator = styled.div.withConfig({
8
+ shouldForwardProp
9
+ }).attrs(applyDefaultTheme)`
10
+ height: ${props => props.$vertical ? '100%' : '1px'};
11
+ width: ${props => props.$vertical ? '1px' : '100%'};
12
+
13
+ ${props => props.$vertical ? `margin-left: ${props.$margin}px; margin-right: ${props.$margin}px;` : `margin-top: ${props.$margin}px; margin-bottom: ${props.$margin}px;`}
14
+
15
+ ${props => props.theme.themeProp('background-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-200'))}
16
+ `;
17
+
18
+ export { SectionSeparator };
19
+ //# sourceMappingURL=SectionSeparator.styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionSeparator.styled.js","sources":["../../../src/components/layout/SectionSeparator/SectionSeparator.styled.js"],"sourcesContent":["import styled from 'styled-components';\nimport { applyDefaultTheme } from '../../../utils/defaultTheme';\n\nconst shouldForwardProp = prop => {\n return prop !== 'theme' && !prop.startsWith('$');\n};\n\nexport const SectionSeparator = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n height: ${props => (props.$vertical ? '100%' : '1px')};\n width: ${props => (props.$vertical ? '1px' : '100%')};\n\n ${props =>\n props.$vertical\n ? `margin-left: ${props.$margin}px; margin-right: ${props.$margin}px;`\n : `margin-top: ${props.$margin}px; margin-bottom: ${props.$margin}px;`}\n\n ${props =>\n props.theme.themeProp(\n 'background-color',\n props.theme.getColor('gray-500'),\n props.theme.getColor('gray-200')\n )}\n`;\n"],"names":["shouldForwardProp","prop","startsWith","SectionSeparator","styled","div","withConfig","attrs","applyDefaultTheme","props","$vertical","$margin","theme","themeProp","getColor"],"mappings":";;;AAGA,MAAMA,iBAAiB,GAAGC,IAAI,IAAI;EAChC,OAAOA,IAAI,KAAK,OAAO,IAAI,CAACA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,CAAA;AAClD,CAAC,CAAA;AAEM,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,GAAG,CACvCC,UAAU,CAAC;AACVN,EAAAA,iBAAAA;AACF,CAAC,CAAC,CACDO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC3B,UAAYC,EAAAA,KAAK,IAAKA,KAAK,CAACC,SAAS,GAAG,MAAM,GAAG,KAAM,CAAA;AACvD,SAAWD,EAAAA,KAAK,IAAKA,KAAK,CAACC,SAAS,GAAG,KAAK,GAAG,MAAO,CAAA;AACtD;AACA,EAAID,EAAAA,KAAK,IACLA,KAAK,CAACC,SAAS,GACX,CAAgBD,aAAAA,EAAAA,KAAK,CAACE,OAAO,CAAqBF,kBAAAA,EAAAA,KAAK,CAACE,OAAO,CAAA,GAAA,CAAK,GACpE,CAAA,YAAA,EAAeF,KAAK,CAACE,OAAO,CAAsBF,mBAAAA,EAAAA,KAAK,CAACE,OAAO,CAAK,GAAA,CAAA,CAAA;AAC5E;AACA,EAAIF,EAAAA,KAAK,IACLA,KAAK,CAACG,KAAK,CAACC,SAAS,CACnB,kBAAkB,EAClBJ,KAAK,CAACG,KAAK,CAACE,QAAQ,CAAC,UAAU,CAAC,EAChCL,KAAK,CAACG,KAAK,CAACE,QAAQ,CAAC,UAAU,CACjC,CAAC,CAAA;AACL;;;;"}
@@ -0,0 +1,2 @@
1
+ export { default } from './SectionSeparator.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { default as InputGroup } from './InputGroup/InputGroup.js';
2
+ export { default as SectionSeparator } from './SectionSeparator/SectionSeparator.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +1,2 @@
1
1
  export { ServerStyleSheet } from 'styled-components';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}