@ntbjs/react-components 2.0.0-rc.13 → 2.0.0-rc.27

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 (545) hide show
  1. package/build/ActionButton-4db754c3.js +85 -0
  2. package/build/Alert-e6847a22.js +131 -0
  3. package/build/Badge-d93586a9.js +214 -0
  4. package/build/Button-179a2fe4.js +442 -0
  5. package/build/Checkbox-4a5fd716.js +213 -0
  6. package/build/CompactAutocompleteSelect-52c49513.js +546 -0
  7. package/build/CompactStarRating-9af2f427.js +411 -0
  8. package/build/CompactTextInput-42ca5d42.js +516 -0
  9. package/build/InputGroup-1294d190.js +23 -0
  10. package/build/MultiLevelCheckboxSelect-d8044c88.js +604 -0
  11. package/build/MultiSelect-9f497e62.js +461 -0
  12. package/build/Popover-20050b91.js +232 -0
  13. package/build/Radio-73ca3ae2.js +134 -0
  14. package/build/SectionSeparator-f47760a2.js +31 -0
  15. package/build/Switch-ecf3122b.js +160 -0
  16. package/build/Tab-04d435c3.js +32 -0
  17. package/build/Tabs-74d1ea8a.js +159 -0
  18. package/build/TextArea-1e5b9201.js +611 -0
  19. package/build/TextInput-fab35842.js +364 -0
  20. package/build/Tooltip-c1d1199e.js +65 -0
  21. package/build/VerificationStatusIcon-49cb1c1b.js +95 -0
  22. package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-c245b26a.js} +1 -1
  23. package/{esm/icons/arrow-forward.svg.js → build/arrow-forward-ad12c5f3.js} +4 -5
  24. package/{esm/icons/close.svg.js → build/close-a5d37608.js} +4 -5
  25. package/build/data/Alert/index.js +6 -0
  26. package/build/data/Badge/index.js +5 -0
  27. package/build/data/Popover/index.js +10 -0
  28. package/build/data/Tab/index.js +5 -0
  29. package/build/data/Tabs/index.js +7 -0
  30. package/build/data/Tooltip/index.js +7 -0
  31. package/build/data/index.js +16 -0
  32. package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-1bcc2541.js} +578 -17
  33. package/{esm/icons/edit-note.svg.js → build/edit-note-283a0e15.js} +4 -5
  34. package/{esm/icons/expand-more.svg.js → build/expand-more-c5523c46.js} +4 -5
  35. package/build/icons/add-circle.svg +3 -0
  36. package/build/icons/add.svg +3 -0
  37. package/build/icons/album.svg +3 -0
  38. package/build/icons/arrow-back.svg +4 -0
  39. package/build/icons/arrow-drop-down.svg +4 -0
  40. package/build/icons/arrow-forward.svg +3 -0
  41. package/build/icons/audio.svg +3 -0
  42. package/build/icons/bell.svg +3 -0
  43. package/build/icons/check-circle-filled.svg +3 -0
  44. package/build/icons/check-rectangle-filled.svg +3 -0
  45. package/build/icons/check.svg +3 -0
  46. package/build/icons/clear-circle-filled.svg +14 -0
  47. package/build/icons/close.svg +4 -0
  48. package/build/icons/corporate.svg +3 -0
  49. package/build/icons/delete-context-menu.svg +4 -0
  50. package/build/icons/delete.svg +3 -0
  51. package/build/icons/design-services.svg +4 -0
  52. package/build/icons/download.svg +3 -0
  53. package/build/icons/edit-note.svg +4 -0
  54. package/build/icons/edit.svg +3 -0
  55. package/build/icons/expand-more.svg +4 -0
  56. package/build/icons/file.svg +3 -0
  57. package/build/icons/ftp.svg +3 -0
  58. package/build/icons/gear.svg +3 -0
  59. package/build/icons/headset.svg +1 -0
  60. package/build/icons/index.js +79 -0
  61. package/build/icons/layers.svg +3 -0
  62. package/build/icons/library-add.svg +3 -0
  63. package/build/icons/link.svg +4 -0
  64. package/build/icons/pdf.svg +3 -0
  65. package/build/icons/play.svg +3 -0
  66. package/build/icons/remove-circle.svg +3 -0
  67. package/build/icons/search.svg +3 -0
  68. package/build/icons/share.svg +3 -0
  69. package/build/icons/shopping_cart_add.svg +3 -0
  70. package/build/icons/star-filled.svg +3 -0
  71. package/build/icons/star.svg +3 -0
  72. package/build/icons/triangle-right.svg +4 -0
  73. package/build/icons/verification.svg +3 -0
  74. package/build/icons/warning-circle.svg +3 -0
  75. package/build/icons/warning-triangle.svg +3 -0
  76. package/build/inputs/ActionButton/index.js +6 -0
  77. package/build/inputs/Button/index.js +13 -0
  78. package/build/inputs/Checkbox/index.js +6 -0
  79. package/build/inputs/CompactAutocompleteSelect/index.js +23 -0
  80. package/build/inputs/CompactStarRating/index.js +17 -0
  81. package/build/inputs/CompactTextInput/index.js +19 -0
  82. package/build/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +26 -0
  83. package/build/inputs/MultiSelect/index.js +10 -0
  84. package/build/inputs/Radio/index.js +7 -0
  85. package/build/inputs/Switch/index.js +6 -0
  86. package/build/inputs/TextArea/index.js +20 -0
  87. package/build/inputs/TextInput/index.js +9 -0
  88. package/build/inputs/index.js +40 -0
  89. package/build/layout/InputGroup/index.js +5 -0
  90. package/build/layout/SectionSeparator/index.js +5 -0
  91. package/build/layout/index.js +6 -0
  92. package/build/shift-away-subtle-0dd94a03.js +7 -0
  93. package/build/styles/all.scss +3 -0
  94. package/build/styles/config.scss +38 -0
  95. package/{styles/utils/.colors.scss → build/styles/utils/colors.scss} +1 -1
  96. package/build/styles/utils/theme.scss +33 -0
  97. package/{esm/icons/warning-circle.svg.js → build/warning-circle-24f3efcd.js} +4 -5
  98. package/build/widgets/AssetGallery/AssetGallery.js +2356 -0
  99. package/build/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +127 -0
  100. package/build/widgets/ContextMenu/ContextMenu.js +26 -0
  101. package/build/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +127 -0
  102. package/build/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +37 -0
  103. package/build/widgets/InfoCard/InfoCard.js +125 -0
  104. package/build/widgets/Instructions/Instructions.js +255 -0
  105. package/build/widgets/ProgressBar/ProgressBar.js +210 -0
  106. package/package.json +49 -56
  107. package/styles/all.scss +3 -3
  108. package/styles/config.scss +38 -0
  109. package/styles/utils/colors.scss +15 -0
  110. package/styles/utils/theme.scss +0 -2
  111. package/.eslintrc +0 -19
  112. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
  113. package/cjs/_virtual/index.js +0 -7
  114. package/cjs/_virtual/index2.js +0 -7
  115. package/cjs/_virtual/index3.js +0 -7
  116. package/cjs/_virtual/index4.js +0 -7
  117. package/cjs/_virtual/index5.js +0 -7
  118. package/cjs/_virtual/react-dom.development.js +0 -7
  119. package/cjs/_virtual/react-dom.production.js +0 -7
  120. package/cjs/_virtual/react-is.development.js +0 -7
  121. package/cjs/_virtual/react-is.development2.js +0 -7
  122. package/cjs/_virtual/react-is.production.min.js +0 -7
  123. package/cjs/_virtual/react-is.production.min2.js +0 -7
  124. package/cjs/_virtual/react.development.js +0 -7
  125. package/cjs/_virtual/react.production.js +0 -7
  126. package/cjs/components/data/Alert/Alert.js +0 -79
  127. package/cjs/components/data/Alert/Alert.styled.js +0 -79
  128. package/cjs/components/data/Alert/data/Alert/index.js +0 -9
  129. package/cjs/components/data/Badge/Badge.js +0 -93
  130. package/cjs/components/data/Badge/Badge.styled.js +0 -167
  131. package/cjs/components/data/Badge/data/Badge/index.js +0 -9
  132. package/cjs/components/data/Popover/Popover.js +0 -104
  133. package/cjs/components/data/Popover/Popover.styled.js +0 -159
  134. package/cjs/components/data/Popover/data/Popover/index.js +0 -9
  135. package/cjs/components/data/Tab/Tab.js +0 -31
  136. package/cjs/components/data/Tab/Tab.styled.js +0 -27
  137. package/cjs/components/data/Tab/data/Tab/index.js +0 -9
  138. package/cjs/components/data/Tabs/Tabs.js +0 -101
  139. package/cjs/components/data/Tabs/Tabs.styled.js +0 -110
  140. package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
  141. package/cjs/components/data/Tooltip/Tooltip.js +0 -52
  142. package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
  143. package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
  144. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
  145. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -88
  146. package/cjs/components/data/data/index.js +0 -21
  147. package/cjs/components/inputs/ActionButton/ActionButton.js +0 -44
  148. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -75
  149. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
  150. package/cjs/components/inputs/Button/Button.js +0 -195
  151. package/cjs/components/inputs/Button/Button.styled.js +0 -340
  152. package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
  153. package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
  154. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -160
  155. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
  156. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
  157. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -363
  158. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
  159. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -177
  160. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -269
  161. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
  162. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
  163. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -406
  164. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
  165. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
  166. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -106
  167. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
  168. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -147
  169. package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -208
  170. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -275
  171. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
  172. package/cjs/components/inputs/Radio/Radio.js +0 -67
  173. package/cjs/components/inputs/Radio/Radio.styled.js +0 -100
  174. package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
  175. package/cjs/components/inputs/Switch/Switch.js +0 -69
  176. package/cjs/components/inputs/Switch/Switch.styled.js +0 -138
  177. package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
  178. package/cjs/components/inputs/TextArea/TextArea.js +0 -176
  179. package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -530
  180. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
  181. package/cjs/components/inputs/TextInput/TextInput.js +0 -146
  182. package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -289
  183. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
  184. package/cjs/components/inputs/inputs/index.js +0 -33
  185. package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
  186. package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -23
  187. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
  188. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
  189. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -28
  190. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
  191. package/cjs/components/layout/layout/index.js +0 -11
  192. package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
  193. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -69
  194. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
  195. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -29
  196. package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -106
  197. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -395
  198. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -52
  199. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -405
  200. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -385
  201. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
  202. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
  203. package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
  204. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
  205. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
  206. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -107
  207. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
  208. package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -29
  209. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -24
  210. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
  211. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -102
  212. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
  213. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
  214. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -35
  215. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
  216. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
  217. package/cjs/components/widgets/InfoCard/InfoCard.js +0 -47
  218. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -137
  219. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
  220. package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -79
  221. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -210
  222. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
  223. package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -93
  224. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -169
  225. package/cjs/components/widgets/widgets/index.js +0 -23
  226. package/cjs/hooks/useEventListner.js +0 -26
  227. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
  228. package/cjs/hooks/useOnClickOutside.js +0 -17
  229. package/cjs/icons/arrow-back.svg.js +0 -20
  230. package/cjs/icons/arrow-forward.svg.js +0 -20
  231. package/cjs/icons/check-rectangle-filled.svg.js +0 -20
  232. package/cjs/icons/close.svg.js +0 -20
  233. package/cjs/icons/edit-note.svg.js +0 -20
  234. package/cjs/icons/expand-more.svg.js +0 -20
  235. package/cjs/icons/headset.svg.js +0 -20
  236. package/cjs/icons/layers.svg.js +0 -20
  237. package/cjs/icons/link.svg.js +0 -20
  238. package/cjs/icons/play.svg.js +0 -20
  239. package/cjs/icons/search.svg.js +0 -20
  240. package/cjs/icons/star-filled.svg.js +0 -20
  241. package/cjs/icons/star.svg.js +0 -20
  242. package/cjs/icons/triangle-right.svg.js +0 -20
  243. package/cjs/icons/verification.svg.js +0 -20
  244. package/cjs/icons/warning-circle.svg.js +0 -20
  245. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
  246. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
  247. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
  248. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
  249. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
  250. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
  251. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
  252. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
  253. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
  254. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
  255. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
  256. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
  257. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
  258. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
  259. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
  260. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
  261. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
  262. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
  263. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  264. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
  265. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
  266. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
  267. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
  268. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
  269. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
  270. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
  271. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
  272. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
  273. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -503
  274. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
  275. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
  276. package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -158
  277. package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -66
  278. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
  279. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
  280. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
  281. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -16
  282. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -60
  283. package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
  284. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -915
  285. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
  286. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -130
  287. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -166
  288. package/cjs/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -43
  289. package/cjs/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -39
  290. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
  291. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
  292. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  293. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
  294. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
  295. package/cjs/node_modules/object-assign/index.js +0 -94
  296. package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
  297. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
  298. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
  299. package/cjs/node_modules/prop-types/index.js +0 -33
  300. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
  301. package/cjs/node_modules/prop-types/lib/has.js +0 -7
  302. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
  303. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  304. package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
  305. package/cjs/node_modules/react/cjs/react.development.js +0 -1289
  306. package/cjs/node_modules/react/cjs/react.production.js +0 -548
  307. package/cjs/node_modules/react/index.js +0 -19
  308. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
  309. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
  310. package/cjs/node_modules/react-dom/index.js +0 -44
  311. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
  312. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
  313. package/cjs/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2659
  314. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
  315. package/cjs/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -101
  316. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
  317. package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
  318. package/cjs/node_modules/stylis/src/Enum.js +0 -24
  319. package/cjs/node_modules/stylis/src/Middleware.js +0 -37
  320. package/cjs/node_modules/stylis/src/Parser.js +0 -201
  321. package/cjs/node_modules/stylis/src/Serializer.js +0 -43
  322. package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
  323. package/cjs/node_modules/stylis/src/Utility.js +0 -134
  324. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
  325. package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
  326. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -13
  327. package/cjs/ssr/ssr/index.js +0 -12
  328. package/cjs/styles/utils/colors-export.js +0 -41
  329. package/cjs/utils/dateTime.js +0 -20
  330. package/cjs/utils/defaultTheme.js +0 -75
  331. package/doctor-storybook.log +0 -20
  332. package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
  333. package/esm/_virtual/index.js +0 -3
  334. package/esm/_virtual/index2.js +0 -3
  335. package/esm/_virtual/index3.js +0 -3
  336. package/esm/_virtual/index4.js +0 -3
  337. package/esm/_virtual/index5.js +0 -3
  338. package/esm/_virtual/react-dom.development.js +0 -3
  339. package/esm/_virtual/react-dom.production.js +0 -3
  340. package/esm/_virtual/react-is.development.js +0 -3
  341. package/esm/_virtual/react-is.development2.js +0 -3
  342. package/esm/_virtual/react-is.production.min.js +0 -3
  343. package/esm/_virtual/react-is.production.min2.js +0 -3
  344. package/esm/_virtual/react.development.js +0 -3
  345. package/esm/_virtual/react.production.js +0 -3
  346. package/esm/components/data/Alert/Alert.js +0 -75
  347. package/esm/components/data/Alert/Alert.styled.js +0 -70
  348. package/esm/components/data/Alert/data/Alert/index.js +0 -1
  349. package/esm/components/data/Badge/Badge.js +0 -89
  350. package/esm/components/data/Badge/Badge.styled.js +0 -156
  351. package/esm/components/data/Badge/data/Badge/index.js +0 -1
  352. package/esm/components/data/Popover/Popover.js +0 -96
  353. package/esm/components/data/Popover/Popover.styled.js +0 -150
  354. package/esm/components/data/Popover/data/Popover/index.js +0 -1
  355. package/esm/components/data/Tab/Tab.js +0 -27
  356. package/esm/components/data/Tab/Tab.styled.js +0 -19
  357. package/esm/components/data/Tab/data/Tab/index.js +0 -1
  358. package/esm/components/data/Tabs/Tabs.js +0 -97
  359. package/esm/components/data/Tabs/Tabs.styled.js +0 -98
  360. package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
  361. package/esm/components/data/Tooltip/Tooltip.js +0 -48
  362. package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
  363. package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
  364. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
  365. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -78
  366. package/esm/components/data/data/index.js +0 -7
  367. package/esm/components/inputs/ActionButton/ActionButton.js +0 -40
  368. package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -67
  369. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
  370. package/esm/components/inputs/Button/Button.js +0 -191
  371. package/esm/components/inputs/Button/Button.styled.js +0 -323
  372. package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
  373. package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
  374. package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -147
  375. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
  376. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
  377. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -335
  378. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
  379. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -173
  380. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -256
  381. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
  382. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
  383. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -389
  384. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
  385. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
  386. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -92
  387. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
  388. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -129
  389. package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -204
  390. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
  391. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
  392. package/esm/components/inputs/Radio/Radio.js +0 -63
  393. package/esm/components/inputs/Radio/Radio.styled.js +0 -91
  394. package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
  395. package/esm/components/inputs/Switch/Switch.js +0 -65
  396. package/esm/components/inputs/Switch/Switch.styled.js +0 -125
  397. package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
  398. package/esm/components/inputs/TextArea/TextArea.js +0 -172
  399. package/esm/components/inputs/TextArea/TextArea.styled.js +0 -512
  400. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
  401. package/esm/components/inputs/TextInput/TextInput.js +0 -142
  402. package/esm/components/inputs/TextInput/TextInput.styled.js +0 -274
  403. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
  404. package/esm/components/inputs/inputs/index.js +0 -13
  405. package/esm/components/layout/InputGroup/InputGroup.js +0 -22
  406. package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -15
  407. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
  408. package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
  409. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -20
  410. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
  411. package/esm/components/layout/layout/index.js +0 -2
  412. package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
  413. package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -57
  414. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
  415. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -21
  416. package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -102
  417. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -387
  418. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -42
  419. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -401
  420. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -358
  421. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
  422. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
  423. package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
  424. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
  425. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
  426. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -95
  427. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
  428. package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -25
  429. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -16
  430. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
  431. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -92
  432. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
  433. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
  434. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -27
  435. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
  436. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
  437. package/esm/components/widgets/InfoCard/InfoCard.js +0 -43
  438. package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -121
  439. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
  440. package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -75
  441. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -191
  442. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
  443. package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -89
  444. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -151
  445. package/esm/components/widgets/widgets/index.js +0 -8
  446. package/esm/hooks/useEventListner.js +0 -22
  447. package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
  448. package/esm/hooks/useOnClickOutside.js +0 -13
  449. package/esm/icons/arrow-back.svg.js +0 -16
  450. package/esm/icons/check-rectangle-filled.svg.js +0 -16
  451. package/esm/icons/headset.svg.js +0 -16
  452. package/esm/icons/layers.svg.js +0 -16
  453. package/esm/icons/link.svg.js +0 -16
  454. package/esm/icons/play.svg.js +0 -16
  455. package/esm/icons/search.svg.js +0 -16
  456. package/esm/icons/star-filled.svg.js +0 -16
  457. package/esm/icons/star.svg.js +0 -16
  458. package/esm/icons/triangle-right.svg.js +0 -16
  459. package/esm/icons/verification.svg.js +0 -16
  460. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
  461. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
  462. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  463. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
  464. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
  465. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  466. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
  467. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  468. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
  469. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
  470. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
  471. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
  472. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
  473. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
  474. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
  475. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  476. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
  477. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
  478. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
  479. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
  480. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  481. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
  482. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  483. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  484. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  485. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  486. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
  487. package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +0 -499
  488. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
  489. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  490. package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +0 -149
  491. package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -56
  492. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
  493. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
  494. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
  495. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +0 -12
  496. package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +0 -54
  497. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
  498. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -902
  499. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
  500. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -112
  501. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -139
  502. package/esm/node_modules/@restart/hooks/lib/useMergedRefs.js +0 -38
  503. package/esm/node_modules/@restart/hooks/lib/useUpdateEffect.js +0 -35
  504. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
  505. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
  506. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  507. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
  508. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
  509. package/esm/node_modules/object-assign/index.js +0 -90
  510. package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
  511. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  512. package/esm/node_modules/prop-types/index.js +0 -29
  513. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  514. package/esm/node_modules/prop-types/lib/has.js +0 -3
  515. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
  516. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  517. package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
  518. package/esm/node_modules/react/cjs/react.development.js +0 -1287
  519. package/esm/node_modules/react/cjs/react.production.js +0 -543
  520. package/esm/node_modules/react/index.js +0 -15
  521. package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
  522. package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
  523. package/esm/node_modules/react-dom/index.js +0 -42
  524. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
  525. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
  526. package/esm/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2650
  527. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
  528. package/esm/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -97
  529. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
  530. package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
  531. package/esm/node_modules/stylis/src/Enum.js +0 -12
  532. package/esm/node_modules/stylis/src/Middleware.js +0 -32
  533. package/esm/node_modules/stylis/src/Parser.js +0 -193
  534. package/esm/node_modules/stylis/src/Serializer.js +0 -38
  535. package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
  536. package/esm/node_modules/stylis/src/Utility.js +0 -117
  537. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
  538. package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
  539. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -9
  540. package/esm/styles/utils/colors-export.js +0 -37
  541. package/esm/utils/dateTime.js +0 -16
  542. package/esm/utils/defaultTheme.js +0 -70
  543. package/migration-storybook.log +0 -392
  544. package/styles/utils/colors-export.js +0 -35
  545. /package/{esm/ssr → build}/ssr/index.js +0 -0
@@ -1,370 +0,0 @@
1
- import { offset, autoPlacement, shift, flip, size, hide, arrow, inline, limitShift } from '../../core/dist/floating-ui.core.mjs.js';
2
- import { createCoords, rectToClientRect, round, floor, max, min } from '../../utils/dist/floating-ui.utils.mjs.js';
3
- import { getOverflowAncestors, isElement, getWindow, getFrameElement, getComputedStyle as getComputedStyle$1, getDocumentElement, isHTMLElement, isWebKit } from '../../utils/dist/floating-ui.utils.dom.mjs.js';
4
- export { getOverflowAncestors } from '../../utils/dist/floating-ui.utils.dom.mjs.js';
5
-
6
- function getCssDimensions(element) {
7
- const css = getComputedStyle$1(element);
8
- // In testing environments, the `width` and `height` properties are empty
9
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
10
- let width = parseFloat(css.width) || 0;
11
- let height = parseFloat(css.height) || 0;
12
- const hasOffset = isHTMLElement(element);
13
- const offsetWidth = hasOffset ? element.offsetWidth : width;
14
- const offsetHeight = hasOffset ? element.offsetHeight : height;
15
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
16
- if (shouldFallback) {
17
- width = offsetWidth;
18
- height = offsetHeight;
19
- }
20
- return {
21
- width,
22
- height,
23
- $: shouldFallback
24
- };
25
- }
26
-
27
- function unwrapElement(element) {
28
- return !isElement(element) ? element.contextElement : element;
29
- }
30
-
31
- function getScale(element) {
32
- const domElement = unwrapElement(element);
33
- if (!isHTMLElement(domElement)) {
34
- return createCoords(1);
35
- }
36
- const rect = domElement.getBoundingClientRect();
37
- const {
38
- width,
39
- height,
40
- $
41
- } = getCssDimensions(domElement);
42
- let x = ($ ? round(rect.width) : rect.width) / width;
43
- let y = ($ ? round(rect.height) : rect.height) / height;
44
-
45
- // 0, NaN, or Infinity should always fallback to 1.
46
-
47
- if (!x || !Number.isFinite(x)) {
48
- x = 1;
49
- }
50
- if (!y || !Number.isFinite(y)) {
51
- y = 1;
52
- }
53
- return {
54
- x,
55
- y
56
- };
57
- }
58
-
59
- const noOffsets = /*#__PURE__*/createCoords(0);
60
- function getVisualOffsets(element) {
61
- const win = getWindow(element);
62
- if (!isWebKit() || !win.visualViewport) {
63
- return noOffsets;
64
- }
65
- return {
66
- x: win.visualViewport.offsetLeft,
67
- y: win.visualViewport.offsetTop
68
- };
69
- }
70
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
71
- if (isFixed === void 0) {
72
- isFixed = false;
73
- }
74
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
75
- return false;
76
- }
77
- return isFixed;
78
- }
79
-
80
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
81
- if (includeScale === void 0) {
82
- includeScale = false;
83
- }
84
- if (isFixedStrategy === void 0) {
85
- isFixedStrategy = false;
86
- }
87
- const clientRect = element.getBoundingClientRect();
88
- const domElement = unwrapElement(element);
89
- let scale = createCoords(1);
90
- if (includeScale) {
91
- if (offsetParent) {
92
- if (isElement(offsetParent)) {
93
- scale = getScale(offsetParent);
94
- }
95
- } else {
96
- scale = getScale(element);
97
- }
98
- }
99
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
100
- let x = (clientRect.left + visualOffsets.x) / scale.x;
101
- let y = (clientRect.top + visualOffsets.y) / scale.y;
102
- let width = clientRect.width / scale.x;
103
- let height = clientRect.height / scale.y;
104
- if (domElement) {
105
- const win = getWindow(domElement);
106
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
107
- let currentWin = win;
108
- let currentIFrame = getFrameElement(currentWin);
109
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
110
- const iframeScale = getScale(currentIFrame);
111
- const iframeRect = currentIFrame.getBoundingClientRect();
112
- const css = getComputedStyle$1(currentIFrame);
113
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
114
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
115
- x *= iframeScale.x;
116
- y *= iframeScale.y;
117
- width *= iframeScale.x;
118
- height *= iframeScale.y;
119
- x += left;
120
- y += top;
121
- currentWin = getWindow(currentIFrame);
122
- currentIFrame = getFrameElement(currentWin);
123
- }
124
- }
125
- return rectToClientRect({
126
- width,
127
- height,
128
- x,
129
- y
130
- });
131
- }
132
-
133
- function rectsAreEqual(a, b) {
134
- return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
135
- }
136
-
137
- // https://samthor.au/2021/observing-dom/
138
- function observeMove(element, onMove) {
139
- let io = null;
140
- let timeoutId;
141
- const root = getDocumentElement(element);
142
- function cleanup() {
143
- var _io;
144
- clearTimeout(timeoutId);
145
- (_io = io) == null || _io.disconnect();
146
- io = null;
147
- }
148
- function refresh(skip, threshold) {
149
- if (skip === void 0) {
150
- skip = false;
151
- }
152
- if (threshold === void 0) {
153
- threshold = 1;
154
- }
155
- cleanup();
156
- const elementRectForRootMargin = element.getBoundingClientRect();
157
- const {
158
- left,
159
- top,
160
- width,
161
- height
162
- } = elementRectForRootMargin;
163
- if (!skip) {
164
- onMove();
165
- }
166
- if (!width || !height) {
167
- return;
168
- }
169
- const insetTop = floor(top);
170
- const insetRight = floor(root.clientWidth - (left + width));
171
- const insetBottom = floor(root.clientHeight - (top + height));
172
- const insetLeft = floor(left);
173
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
174
- const options = {
175
- rootMargin,
176
- threshold: max(0, min(1, threshold)) || 1
177
- };
178
- let isFirstUpdate = true;
179
- function handleObserve(entries) {
180
- const ratio = entries[0].intersectionRatio;
181
- if (ratio !== threshold) {
182
- if (!isFirstUpdate) {
183
- return refresh();
184
- }
185
- if (!ratio) {
186
- // If the reference is clipped, the ratio is 0. Throttle the refresh
187
- // to prevent an infinite loop of updates.
188
- timeoutId = setTimeout(() => {
189
- refresh(false, 1e-7);
190
- }, 1000);
191
- } else {
192
- refresh(false, ratio);
193
- }
194
- }
195
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
196
- // It's possible that even though the ratio is reported as 1, the
197
- // element is not actually fully within the IntersectionObserver's root
198
- // area anymore. This can happen under performance constraints. This may
199
- // be a bug in the browser's IntersectionObserver implementation. To
200
- // work around this, we compare the element's bounding rect now with
201
- // what it was at the time we created the IntersectionObserver. If they
202
- // are not equal then the element moved, so we refresh.
203
- refresh();
204
- }
205
- isFirstUpdate = false;
206
- }
207
-
208
- // Older browsers don't support a `document` as the root and will throw an
209
- // error.
210
- try {
211
- io = new IntersectionObserver(handleObserve, {
212
- ...options,
213
- // Handle <iframe>s
214
- root: root.ownerDocument
215
- });
216
- } catch (_e) {
217
- io = new IntersectionObserver(handleObserve, options);
218
- }
219
- io.observe(element);
220
- }
221
- refresh(true);
222
- return cleanup;
223
- }
224
-
225
- /**
226
- * Automatically updates the position of the floating element when necessary.
227
- * Should only be called when the floating element is mounted on the DOM or
228
- * visible on the screen.
229
- * @returns cleanup function that should be invoked when the floating element is
230
- * removed from the DOM or hidden from the screen.
231
- * @see https://floating-ui.com/docs/autoUpdate
232
- */
233
- function autoUpdate(reference, floating, update, options) {
234
- if (options === void 0) {
235
- options = {};
236
- }
237
- const {
238
- ancestorScroll = true,
239
- ancestorResize = true,
240
- elementResize = typeof ResizeObserver === 'function',
241
- layoutShift = typeof IntersectionObserver === 'function',
242
- animationFrame = false
243
- } = options;
244
- const referenceEl = unwrapElement(reference);
245
- const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
246
- ancestors.forEach(ancestor => {
247
- ancestorScroll && ancestor.addEventListener('scroll', update, {
248
- passive: true
249
- });
250
- ancestorResize && ancestor.addEventListener('resize', update);
251
- });
252
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
253
- let reobserveFrame = -1;
254
- let resizeObserver = null;
255
- if (elementResize) {
256
- resizeObserver = new ResizeObserver(_ref => {
257
- let [firstEntry] = _ref;
258
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
259
- // Prevent update loops when using the `size` middleware.
260
- // https://github.com/floating-ui/floating-ui/issues/1740
261
- resizeObserver.unobserve(floating);
262
- cancelAnimationFrame(reobserveFrame);
263
- reobserveFrame = requestAnimationFrame(() => {
264
- var _resizeObserver;
265
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
266
- });
267
- }
268
- update();
269
- });
270
- if (referenceEl && !animationFrame) {
271
- resizeObserver.observe(referenceEl);
272
- }
273
- resizeObserver.observe(floating);
274
- }
275
- let frameId;
276
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
277
- if (animationFrame) {
278
- frameLoop();
279
- }
280
- function frameLoop() {
281
- const nextRefRect = getBoundingClientRect(reference);
282
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
283
- update();
284
- }
285
- prevRefRect = nextRefRect;
286
- frameId = requestAnimationFrame(frameLoop);
287
- }
288
- update();
289
- return () => {
290
- var _resizeObserver2;
291
- ancestors.forEach(ancestor => {
292
- ancestorScroll && ancestor.removeEventListener('scroll', update);
293
- ancestorResize && ancestor.removeEventListener('resize', update);
294
- });
295
- cleanupIo == null || cleanupIo();
296
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
297
- resizeObserver = null;
298
- if (animationFrame) {
299
- cancelAnimationFrame(frameId);
300
- }
301
- };
302
- }
303
-
304
- /**
305
- * Modifies the placement by translating the floating element along the
306
- * specified axes.
307
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
308
- * object may be passed.
309
- * @see https://floating-ui.com/docs/offset
310
- */
311
- offset;
312
-
313
- /**
314
- * Optimizes the visibility of the floating element by choosing the placement
315
- * that has the most space available automatically, without needing to specify a
316
- * preferred placement. Alternative to `flip`.
317
- * @see https://floating-ui.com/docs/autoPlacement
318
- */
319
- autoPlacement;
320
-
321
- /**
322
- * Optimizes the visibility of the floating element by shifting it in order to
323
- * keep it in view when it will overflow the clipping boundary.
324
- * @see https://floating-ui.com/docs/shift
325
- */
326
- shift;
327
-
328
- /**
329
- * Optimizes the visibility of the floating element by flipping the `placement`
330
- * in order to keep it in view when the preferred placement(s) will overflow the
331
- * clipping boundary. Alternative to `autoPlacement`.
332
- * @see https://floating-ui.com/docs/flip
333
- */
334
- flip;
335
-
336
- /**
337
- * Provides data that allows you to change the size of the floating element —
338
- * for instance, prevent it from overflowing the clipping boundary or match the
339
- * width of the reference element.
340
- * @see https://floating-ui.com/docs/size
341
- */
342
- size;
343
-
344
- /**
345
- * Provides data to hide the floating element in applicable situations, such as
346
- * when it is not in the same clipping context as the reference element.
347
- * @see https://floating-ui.com/docs/hide
348
- */
349
- hide;
350
-
351
- /**
352
- * Provides data to position an inner element of the floating element so that it
353
- * appears centered to the reference element.
354
- * @see https://floating-ui.com/docs/arrow
355
- */
356
- arrow;
357
-
358
- /**
359
- * Provides improved positioning for inline reference elements that can span
360
- * over multiple lines, such as hyperlinks or range selections.
361
- * @see https://floating-ui.com/docs/inline
362
- */
363
- inline;
364
-
365
- /**
366
- * Built-in `limiter` that will stop `shift()` at a certain point.
367
- */
368
- limitShift;
369
-
370
- export { autoUpdate };
@@ -1,112 +0,0 @@
1
- function hasWindow() {
2
- return typeof window !== 'undefined';
3
- }
4
- function getNodeName(node) {
5
- if (isNode(node)) {
6
- return (node.nodeName || '').toLowerCase();
7
- }
8
- // Mocked nodes in testing environments may not be instances of Node. By
9
- // returning `#document` an infinite loop won't occur.
10
- // https://github.com/floating-ui/floating-ui/issues/2317
11
- return '#document';
12
- }
13
- function getWindow(node) {
14
- var _node$ownerDocument;
15
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
16
- }
17
- function getDocumentElement(node) {
18
- var _ref;
19
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
20
- }
21
- function isNode(value) {
22
- if (!hasWindow()) {
23
- return false;
24
- }
25
- return value instanceof Node || value instanceof getWindow(value).Node;
26
- }
27
- function isElement(value) {
28
- if (!hasWindow()) {
29
- return false;
30
- }
31
- return value instanceof Element || value instanceof getWindow(value).Element;
32
- }
33
- function isHTMLElement(value) {
34
- if (!hasWindow()) {
35
- return false;
36
- }
37
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
38
- }
39
- function isShadowRoot(value) {
40
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
41
- return false;
42
- }
43
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
44
- }
45
- const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
46
- function isOverflowElement(element) {
47
- const {
48
- overflow,
49
- overflowX,
50
- overflowY,
51
- display
52
- } = getComputedStyle(element);
53
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
54
- }
55
- function isWebKit() {
56
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
57
- return CSS.supports('-webkit-backdrop-filter', 'none');
58
- }
59
- const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
60
- function isLastTraversableNode(node) {
61
- return lastTraversableNodeNames.has(getNodeName(node));
62
- }
63
- function getComputedStyle(element) {
64
- return getWindow(element).getComputedStyle(element);
65
- }
66
- function getParentNode(node) {
67
- if (getNodeName(node) === 'html') {
68
- return node;
69
- }
70
- const result =
71
- // Step into the shadow DOM of the parent of a slotted node.
72
- node.assignedSlot ||
73
- // DOM Element detected.
74
- node.parentNode ||
75
- // ShadowRoot detected.
76
- isShadowRoot(node) && node.host ||
77
- // Fallback.
78
- getDocumentElement(node);
79
- return isShadowRoot(result) ? result.host : result;
80
- }
81
- function getNearestOverflowAncestor(node) {
82
- const parentNode = getParentNode(node);
83
- if (isLastTraversableNode(parentNode)) {
84
- return node.ownerDocument ? node.ownerDocument.body : node.body;
85
- }
86
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
87
- return parentNode;
88
- }
89
- return getNearestOverflowAncestor(parentNode);
90
- }
91
- function getOverflowAncestors(node, list, traverseIframes) {
92
- var _node$ownerDocument2;
93
- if (list === void 0) {
94
- list = [];
95
- }
96
- if (traverseIframes === void 0) {
97
- traverseIframes = true;
98
- }
99
- const scrollableAncestor = getNearestOverflowAncestor(node);
100
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
101
- const win = getWindow(scrollableAncestor);
102
- if (isBody) {
103
- const frameElement = getFrameElement(win);
104
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
105
- }
106
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
107
- }
108
- function getFrameElement(win) {
109
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
110
- }
111
-
112
- export { getComputedStyle, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getOverflowAncestors, getParentNode, getWindow, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isWebKit };
@@ -1,139 +0,0 @@
1
- /**
2
- * Custom positioning reference element.
3
- * @see https://floating-ui.com/docs/virtual-elements
4
- */
5
-
6
- const sides = ['top', 'right', 'bottom', 'left'];
7
- const alignments = ['start', 'end'];
8
- const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
9
- const min = Math.min;
10
- const max = Math.max;
11
- const round = Math.round;
12
- const floor = Math.floor;
13
- const createCoords = v => ({
14
- x: v,
15
- y: v
16
- });
17
- const oppositeSideMap = {
18
- left: 'right',
19
- right: 'left',
20
- bottom: 'top',
21
- top: 'bottom'
22
- };
23
- const oppositeAlignmentMap = {
24
- start: 'end',
25
- end: 'start'
26
- };
27
- function clamp(start, value, end) {
28
- return max(start, min(value, end));
29
- }
30
- function evaluate(value, param) {
31
- return typeof value === 'function' ? value(param) : value;
32
- }
33
- function getSide(placement) {
34
- return placement.split('-')[0];
35
- }
36
- function getAlignment(placement) {
37
- return placement.split('-')[1];
38
- }
39
- function getOppositeAxis(axis) {
40
- return axis === 'x' ? 'y' : 'x';
41
- }
42
- function getAxisLength(axis) {
43
- return axis === 'y' ? 'height' : 'width';
44
- }
45
- const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
46
- function getSideAxis(placement) {
47
- return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
48
- }
49
- function getAlignmentAxis(placement) {
50
- return getOppositeAxis(getSideAxis(placement));
51
- }
52
- function getAlignmentSides(placement, rects, rtl) {
53
- if (rtl === void 0) {
54
- rtl = false;
55
- }
56
- const alignment = getAlignment(placement);
57
- const alignmentAxis = getAlignmentAxis(placement);
58
- const length = getAxisLength(alignmentAxis);
59
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
60
- if (rects.reference[length] > rects.floating[length]) {
61
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
62
- }
63
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
64
- }
65
- function getExpandedPlacements(placement) {
66
- const oppositePlacement = getOppositePlacement(placement);
67
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
68
- }
69
- function getOppositeAlignmentPlacement(placement) {
70
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
71
- }
72
- const lrPlacement = ['left', 'right'];
73
- const rlPlacement = ['right', 'left'];
74
- const tbPlacement = ['top', 'bottom'];
75
- const btPlacement = ['bottom', 'top'];
76
- function getSideList(side, isStart, rtl) {
77
- switch (side) {
78
- case 'top':
79
- case 'bottom':
80
- if (rtl) return isStart ? rlPlacement : lrPlacement;
81
- return isStart ? lrPlacement : rlPlacement;
82
- case 'left':
83
- case 'right':
84
- return isStart ? tbPlacement : btPlacement;
85
- default:
86
- return [];
87
- }
88
- }
89
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
90
- const alignment = getAlignment(placement);
91
- let list = getSideList(getSide(placement), direction === 'start', rtl);
92
- if (alignment) {
93
- list = list.map(side => side + "-" + alignment);
94
- if (flipAlignment) {
95
- list = list.concat(list.map(getOppositeAlignmentPlacement));
96
- }
97
- }
98
- return list;
99
- }
100
- function getOppositePlacement(placement) {
101
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
102
- }
103
- function expandPaddingObject(padding) {
104
- return {
105
- top: 0,
106
- right: 0,
107
- bottom: 0,
108
- left: 0,
109
- ...padding
110
- };
111
- }
112
- function getPaddingObject(padding) {
113
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
114
- top: padding,
115
- right: padding,
116
- bottom: padding,
117
- left: padding
118
- };
119
- }
120
- function rectToClientRect(rect) {
121
- const {
122
- x,
123
- y,
124
- width,
125
- height
126
- } = rect;
127
- return {
128
- width,
129
- height,
130
- top: y,
131
- left: x,
132
- right: x + width,
133
- bottom: y + height,
134
- x,
135
- y
136
- };
137
- }
138
-
139
- export { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };
@@ -1,38 +0,0 @@
1
- import '../../../react/index.js';
2
- import { r as react } from '../../../../_virtual/index.js';
3
-
4
- function toFnRef(ref) {
5
- return !ref || typeof ref === 'function' ? ref : value => {
6
- ref.current = value;
7
- };
8
- }
9
- function mergeRefs(refA, refB) {
10
- const a = toFnRef(refA);
11
- const b = toFnRef(refB);
12
- return value => {
13
- if (a) a(value);
14
- if (b) b(value);
15
- };
16
- }
17
-
18
- /**
19
- * Create and returns a single callback ref composed from two other Refs.
20
- *
21
- * ```tsx
22
- * const Button = React.forwardRef((props, ref) => {
23
- * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
24
- * const mergedRef = useMergedRefs(ref, attachRef);
25
- *
26
- * return <button ref={mergedRef} {...props}/>
27
- * })
28
- * ```
29
- *
30
- * @param refA A Callback or mutable Ref
31
- * @param refB A Callback or mutable Ref
32
- * @category refs
33
- */
34
- function useMergedRefs(refA, refB) {
35
- return react.exports.useMemo(() => mergeRefs(refA, refB), [refA, refB]);
36
- }
37
-
38
- export { useMergedRefs as default, mergeRefs };
@@ -1,35 +0,0 @@
1
- import '../../../react/index.js';
2
- import { r as react } from '../../../../_virtual/index.js';
3
-
4
- /**
5
- * Runs an effect only when the dependencies have changed, skipping the
6
- * initial "on mount" run. Caution, if the dependency list never changes,
7
- * the effect is **never run**
8
- *
9
- * ```ts
10
- * const ref = useRef<HTMLInput>(null);
11
- *
12
- * // focuses an element only if the focus changes, and not on mount
13
- * useUpdateEffect(() => {
14
- * const element = ref.current?.children[focusedIdx] as HTMLElement
15
- *
16
- * element?.focus()
17
- *
18
- * }, [focusedIndex])
19
- * ```
20
- * @param effect An effect to run on mount
21
- *
22
- * @category effects
23
- */
24
- function useUpdateEffect(fn, deps) {
25
- const isFirst = react.exports.useRef(true);
26
- react.exports.useEffect(() => {
27
- if (isFirst.current) {
28
- isFirst.current = false;
29
- return;
30
- }
31
- return fn();
32
- }, deps);
33
- }
34
-
35
- export { useUpdateEffect as default };