@procore/core-react 12.25.1 → 12.26.0

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 (721) hide show
  1. package/.jest/ckeditorMock.js +67 -0
  2. package/.jest/esToolkitMock.js +23 -0
  3. package/.jest/example.test.js +5 -0
  4. package/.jest/fileMock.js +1 -0
  5. package/.jest/public/avatar.png +0 -0
  6. package/.jest/setupTests.js +31 -0
  7. package/.jest/snapshotResolver.js +47 -0
  8. package/.jest/styleMock.js +1 -0
  9. package/.jest/styledV6PropsMock.js +23 -0
  10. package/.jest/svgTransform.js +10 -0
  11. package/.jest/testShims.js +22 -0
  12. package/.jest/translationMock.js +3 -0
  13. package/.jest/videoMock.js +1 -0
  14. package/CHANGELOG.md +23 -0
  15. package/README.md +49 -3
  16. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  17. package/dist/Avatar/Avatar.d.ts +9 -10
  18. package/dist/Avatar/Avatar.js.map +1 -1
  19. package/dist/Avatar/Avatar.styles.js +5 -5
  20. package/dist/AvatarStack/AvatarStack.styles.d.ts +2 -2
  21. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  22. package/dist/AvatarStack/mocks/getAvatarMocks.d.ts +25 -0
  23. package/dist/AvatarStack/mocks/getAvatarMocks.js +305 -0
  24. package/dist/AvatarStack/mocks/getAvatarMocks.js.map +1 -0
  25. package/dist/AvatarStack/mocks/images.d.ts +2 -0
  26. package/dist/AvatarStack/mocks/images.js +13 -0
  27. package/dist/AvatarStack/mocks/images.js.map +1 -0
  28. package/dist/AvatarStack/mocks/img/1.png +0 -0
  29. package/dist/AvatarStack/mocks/img/2.png +0 -0
  30. package/dist/AvatarStack/mocks/img/3.png +0 -0
  31. package/dist/AvatarStack/mocks/img/4.png +0 -0
  32. package/dist/AvatarStack/mocks/img/5.png +0 -0
  33. package/dist/AvatarStack/mocks/logo/1.png +0 -0
  34. package/dist/AvatarStack/mocks/logo/2.png +0 -0
  35. package/dist/AvatarStack/mocks/logo/3.png +0 -0
  36. package/dist/AvatarStack/mocks/logo/4.png +0 -0
  37. package/dist/AvatarStack/mocks/logo/5.png +0 -0
  38. package/dist/Badge/Badge.styles.js +2 -2
  39. package/dist/BadgePill/BadgePill.styles.js +4 -4
  40. package/dist/Banner/Banner.d.ts +15 -15
  41. package/dist/Banner/Banner.js.map +1 -1
  42. package/dist/Banner/Banner.styles.d.ts +4 -4
  43. package/dist/Banner/Banner.styles.js +10 -10
  44. package/dist/Box/Box.d.ts +1 -2
  45. package/dist/Box/Box.js.map +1 -1
  46. package/dist/Box/Box.styles.js +1 -1
  47. package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -4
  48. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  49. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  50. package/dist/Button/Button.styles.js +5 -5
  51. package/dist/Button/Button.types.d.ts +2 -3
  52. package/dist/Button/Button.types.js.map +1 -1
  53. package/dist/Calendar/Calendar.styles.js +8 -8
  54. package/dist/Card/Card.d.ts +1 -2
  55. package/dist/Card/Card.js.map +1 -1
  56. package/dist/Card/Card.styles.js +1 -1
  57. package/dist/Checkbox/Checkbox.styles.js +6 -6
  58. package/dist/Checkbox/Checkbox.types.d.ts +1 -2
  59. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  60. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  61. package/dist/ContactItem/ContactItem.d.ts +2 -3
  62. package/dist/ContactItem/ContactItem.js.map +1 -1
  63. package/dist/ContactItem/ContactItem.styles.d.ts +5 -5
  64. package/dist/ContactItem/ContactItem.styles.js +5 -5
  65. package/dist/Content/Content.styles.d.ts +4 -4
  66. package/dist/Content/Content.styles.js +2 -2
  67. package/dist/DateInput/DateInput.js.map +1 -1
  68. package/dist/DateInput/DateInput.styles.js +6 -6
  69. package/dist/DateInput/DateInput.types.d.ts +2 -2
  70. package/dist/DateInput/DateInput.types.js.map +1 -1
  71. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.d.ts +19 -0
  72. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.js +159 -0
  73. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.js.map +1 -0
  74. package/dist/{TextEditor/TextEditor.styles.js → DeprecatedTextEditor/DeprecatedTextEditor.styles.js} +1 -1
  75. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.styles.js.map +1 -0
  76. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.d.ts +72 -0
  77. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.js +2 -0
  78. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.js.map +1 -0
  79. package/dist/DeprecatedTextEditor/index.d.ts +2 -0
  80. package/dist/DeprecatedTextEditor/index.js +3 -0
  81. package/dist/DeprecatedTextEditor/index.js.map +1 -0
  82. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.d.ts +12 -0
  83. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.js +45 -0
  84. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.js.map +1 -0
  85. package/dist/{TextEditorOutput/TextEditorOutput.styles.js → DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.js} +2 -2
  86. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.js.map +1 -0
  87. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.d.ts +16 -0
  88. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.js +2 -0
  89. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.js.map +1 -0
  90. package/dist/DeprecatedTextEditorOutput/index.d.ts +2 -0
  91. package/dist/DeprecatedTextEditorOutput/index.js +2 -0
  92. package/dist/DeprecatedTextEditorOutput/index.js.map +1 -0
  93. package/dist/DetailPage/DetailPage.styles.d.ts +4 -4
  94. package/dist/DetailPage/DetailPage.styles.js +7 -7
  95. package/dist/Dropdown/Dropdown.d.ts +1 -1
  96. package/dist/Dropdown/Dropdown.styles.d.ts +2 -2
  97. package/dist/Dropdown/Dropdown.styles.js +3 -3
  98. package/dist/DropdownFlyout/DropdownFlyout.helpers.js +1 -1
  99. package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  100. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  101. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
  102. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  103. package/dist/Dropzone/Dropzone.d.ts +2 -3
  104. package/dist/Dropzone/Dropzone.js +1 -2
  105. package/dist/Dropzone/Dropzone.js.map +1 -1
  106. package/dist/Dropzone/Dropzone.styles.d.ts +6 -6
  107. package/dist/Dropzone/Dropzone.styles.js +9 -9
  108. package/dist/EmptyState/EmptyState.d.ts +6 -6
  109. package/dist/EmptyState/EmptyState.js.map +1 -1
  110. package/dist/EmptyState/EmptyState.styles.js +6 -6
  111. package/dist/EmptyState/assets/default.stories.png +0 -0
  112. package/dist/Field/Field.styles.js +3 -3
  113. package/dist/FileList/FileList.d.ts +1 -2
  114. package/dist/FileList/FileList.js.map +1 -1
  115. package/dist/FileList/FileList.styles.js +4 -4
  116. package/dist/FileList/storybook/fileListMockData.d.ts +5 -0
  117. package/dist/FileList/storybook/fileListMockData.js +34 -0
  118. package/dist/FileList/storybook/fileListMockData.js.map +1 -0
  119. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  120. package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +1 -2
  121. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  122. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.d.ts +2 -2
  123. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  124. package/dist/FileSelect/FileSelect.d.ts +3 -4
  125. package/dist/FileSelect/FileSelect.js.map +1 -1
  126. package/dist/FileSelect/FileSelect.styles.d.ts +2 -2
  127. package/dist/FileSelect/FileSelect.styles.js +2 -2
  128. package/dist/FileSelect/FileSelect.types.d.ts +1 -2
  129. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  130. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  131. package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +1 -2
  132. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  133. package/dist/FileSelect/FileTokenList/FileTokenList.styles.d.ts +2 -2
  134. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  135. package/dist/FileSelect/GridSource/GridSource.d.ts +1 -2
  136. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  137. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +6 -6
  138. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  139. package/dist/FileSelect/LocalSource/LocalSource.styles.d.ts +1 -1
  140. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  141. package/dist/FileSelect/SourceItem/SourceItem.d.ts +2 -2
  142. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  143. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  144. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  145. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  146. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +2 -2
  147. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
  148. package/dist/FileSelect/TreeSource/TreeSource.d.ts +1 -2
  149. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  150. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  151. package/dist/FileToken/FileToken.d.ts +1 -2
  152. package/dist/FileToken/FileToken.js +17 -18
  153. package/dist/FileToken/FileToken.js.map +1 -1
  154. package/dist/FileToken/FileToken.styles.js +9 -9
  155. package/dist/FileToken/FileToken.styles.js.map +1 -1
  156. package/dist/FileToken/FileToken.types.d.ts +22 -0
  157. package/dist/FileToken/FileToken.types.js.map +1 -1
  158. package/dist/FileToken/FileTokenInner.d.ts +3 -0
  159. package/dist/FileToken/FileTokenInner.js +25 -0
  160. package/dist/FileToken/FileTokenInner.js.map +1 -0
  161. package/dist/FilterToken/FilterToken.d.ts +3 -4
  162. package/dist/FilterToken/FilterToken.js.map +1 -1
  163. package/dist/FilterToken/FilterToken.styles.js +5 -5
  164. package/dist/Flex/Flex.d.ts +1 -2
  165. package/dist/Flex/Flex.js.map +1 -1
  166. package/dist/FlexList/FlexList.d.ts +1 -2
  167. package/dist/FlexList/FlexList.js.map +1 -1
  168. package/dist/FlexList/FlexList.styles.d.ts +2 -2
  169. package/dist/FlexList/FlexList.styles.js +1 -1
  170. package/dist/Form/Form.d.ts +2 -2
  171. package/dist/Form/Form.js +1 -30
  172. package/dist/Form/Form.js.map +1 -1
  173. package/dist/Form/Form.styles.js +14 -14
  174. package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
  175. package/dist/Form/StyledFormikForm.styles.js +2 -2
  176. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  177. package/dist/Grid/Grid.styles.js +2 -2
  178. package/dist/Grid/Grid.types.d.ts +4 -4
  179. package/dist/Grid/Grid.types.js.map +1 -1
  180. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  181. package/dist/GroupSelect/mocks/groupSelectMockData.d.ts +18 -0
  182. package/dist/GroupSelect/mocks/groupSelectMockData.js +122 -0
  183. package/dist/GroupSelect/mocks/groupSelectMockData.js.map +1 -0
  184. package/dist/Input/Input.d.ts +1 -2
  185. package/dist/Input/Input.js.map +1 -1
  186. package/dist/Input/Input.styles.js +1 -1
  187. package/dist/Input/Input.types.d.ts +2 -2
  188. package/dist/Input/Input.types.js.map +1 -1
  189. package/dist/Link/Link.styles.js +1 -1
  190. package/dist/Link/Link.types.d.ts +2 -2
  191. package/dist/Link/Link.types.js.map +1 -1
  192. package/dist/ListPage/ListPage.styles.js +8 -8
  193. package/dist/Loader/Loader.styles.js +2 -2
  194. package/dist/Menu/Menu.d.ts +8 -9
  195. package/dist/Menu/Menu.js.map +1 -1
  196. package/dist/MenuImperative/MenuImperative.d.ts +8 -9
  197. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  198. package/dist/MenuImperative/MenuImperative.styles.d.ts +2 -2
  199. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  200. package/dist/MenuImperative/MenuImperative.types.d.ts +2 -2
  201. package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
  202. package/dist/Modal/Modal.d.ts +6 -5
  203. package/dist/Modal/Modal.js +47 -11
  204. package/dist/Modal/Modal.js.map +1 -1
  205. package/dist/Modal/Modal.styles.d.ts +4 -4
  206. package/dist/Modal/Modal.styles.js +15 -14
  207. package/dist/Modal/Modal.styles.js.map +1 -1
  208. package/dist/Modal/Modal.types.d.ts +6 -4
  209. package/dist/Modal/Modal.types.js.map +1 -1
  210. package/dist/MultiSelect/MultiSelect.styles.d.ts +2 -2
  211. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  212. package/dist/NextMenu/NextMenu.styles.js +3 -3
  213. package/dist/NextTextEditor/EditorError.d.ts +2 -0
  214. package/dist/NextTextEditor/EditorError.js +9 -0
  215. package/dist/NextTextEditor/EditorError.js.map +1 -0
  216. package/dist/NextTextEditor/NextTextEditor.d.ts +3 -0
  217. package/dist/NextTextEditor/NextTextEditor.js +156 -0
  218. package/dist/NextTextEditor/NextTextEditor.js.map +1 -0
  219. package/dist/NextTextEditor/NextTextEditor.styles.d.ts +5 -0
  220. package/dist/NextTextEditor/NextTextEditor.styles.js +22 -0
  221. package/dist/NextTextEditor/NextTextEditor.styles.js.map +1 -0
  222. package/dist/NextTextEditor/NextTextEditor.types.d.ts +111 -0
  223. package/dist/NextTextEditor/NextTextEditor.types.js +2 -0
  224. package/dist/NextTextEditor/NextTextEditor.types.js.map +1 -0
  225. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.d.ts +5 -0
  226. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.js +2 -0
  227. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.js.map +1 -0
  228. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.d.ts +3 -0
  229. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.js +153 -0
  230. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.js.map +1 -0
  231. package/dist/NextTextEditor/StickyToolbar/index.d.ts +4 -0
  232. package/dist/NextTextEditor/StickyToolbar/index.js +3 -0
  233. package/dist/NextTextEditor/StickyToolbar/index.js.map +1 -0
  234. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.d.ts +2 -0
  235. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.js +49 -0
  236. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.js.map +1 -0
  237. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.d.ts +12 -0
  238. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.js +2 -0
  239. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.js.map +1 -0
  240. package/dist/NextTextEditor/index.d.ts +2 -0
  241. package/dist/NextTextEditor/index.js +3 -0
  242. package/dist/NextTextEditor/index.js.map +1 -0
  243. package/dist/NextTextEditor/license_key.d.ts +2 -0
  244. package/dist/NextTextEditor/license_key.js +3 -0
  245. package/dist/NextTextEditor/license_key.js.map +1 -0
  246. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.d.ts +5 -0
  247. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.js +99 -0
  248. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.js.map +1 -0
  249. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.d.ts +5 -0
  250. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.js +56 -0
  251. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.js.map +1 -0
  252. package/dist/NextTextEditor/plugins/CutPlugin/index.d.ts +1 -0
  253. package/dist/NextTextEditor/plugins/CutPlugin/index.js +2 -0
  254. package/dist/NextTextEditor/plugins/CutPlugin/index.js.map +1 -0
  255. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.d.ts +5 -0
  256. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.js +40 -0
  257. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.js.map +1 -0
  258. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.d.ts +1 -0
  259. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.js +2 -0
  260. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.js.map +1 -0
  261. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.d.ts +15 -0
  262. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.js +65 -0
  263. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.js.map +1 -0
  264. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.d.ts +13 -0
  265. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.js +80 -0
  266. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.js.map +1 -0
  267. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.d.ts +5 -0
  268. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js +86 -0
  269. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js.map +1 -0
  270. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.d.ts +5 -0
  271. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js +56 -0
  272. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js.map +1 -0
  273. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.d.ts +1 -0
  274. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.js +2 -0
  275. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.js.map +1 -0
  276. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.d.ts +5 -0
  277. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.js +149 -0
  278. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.js.map +1 -0
  279. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.d.ts +5 -0
  280. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.js +56 -0
  281. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.js.map +1 -0
  282. package/dist/NextTextEditor/plugins/PastePlugin/index.d.ts +1 -0
  283. package/dist/NextTextEditor/plugins/PastePlugin/index.js +2 -0
  284. package/dist/NextTextEditor/plugins/PastePlugin/index.js.map +1 -0
  285. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.d.ts +6 -0
  286. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.js +87 -0
  287. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.js.map +1 -0
  288. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.d.ts +1 -0
  289. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.js +2 -0
  290. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.js.map +1 -0
  291. package/dist/NextTextEditor/textEditorTheming/icons.d.ts +23 -0
  292. package/dist/NextTextEditor/textEditorTheming/icons.js +24 -0
  293. package/dist/NextTextEditor/textEditorTheming/icons.js.map +1 -0
  294. package/dist/NextTextEditor/textEditorTheming/index.d.ts +1 -0
  295. package/dist/NextTextEditor/textEditorTheming/index.js +2 -0
  296. package/dist/NextTextEditor/textEditorTheming/index.js.map +1 -0
  297. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.d.ts +2 -0
  298. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.js +10 -0
  299. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.js.map +1 -0
  300. package/dist/NextTextEditor/useCKEditorCss.d.ts +3 -0
  301. package/dist/NextTextEditor/useCKEditorCss.js +36 -0
  302. package/dist/NextTextEditor/useCKEditorCss.js.map +1 -0
  303. package/dist/NextTextEditor/useTabAsNavigation.d.ts +11 -0
  304. package/dist/NextTextEditor/useTabAsNavigation.js +29 -0
  305. package/dist/NextTextEditor/useTabAsNavigation.js.map +1 -0
  306. package/dist/NextTextEditor/utils/config.d.ts +3 -0
  307. package/dist/NextTextEditor/utils/config.js +179 -0
  308. package/dist/NextTextEditor/utils/config.js.map +1 -0
  309. package/dist/NextTextEditor/utils/index.d.ts +2 -0
  310. package/dist/NextTextEditor/utils/index.js +3 -0
  311. package/dist/NextTextEditor/utils/index.js.map +1 -0
  312. package/dist/NextTextEditor/utils/locale.d.ts +3 -0
  313. package/dist/NextTextEditor/utils/locale.js +102 -0
  314. package/dist/NextTextEditor/utils/locale.js.map +1 -0
  315. package/dist/NextTextEditor/utils/plugins.d.ts +7 -0
  316. package/dist/NextTextEditor/utils/plugins.js +184 -0
  317. package/dist/NextTextEditor/utils/plugins.js.map +1 -0
  318. package/dist/NextTextEditorOutput/NextTextEditorOutput.d.ts +9 -0
  319. package/dist/NextTextEditorOutput/NextTextEditorOutput.js +29 -0
  320. package/dist/NextTextEditorOutput/NextTextEditorOutput.js.map +1 -0
  321. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.d.ts +2 -0
  322. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js +6 -0
  323. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js.map +1 -0
  324. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.d.ts +9 -0
  325. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.js +2 -0
  326. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.js.map +1 -0
  327. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.d.ts +2 -0
  328. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.js +59 -0
  329. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.js.map +1 -0
  330. package/dist/NextTextEditorOutput/index.d.ts +2 -0
  331. package/dist/NextTextEditorOutput/index.js +2 -0
  332. package/dist/NextTextEditorOutput/index.js.map +1 -0
  333. package/dist/NextTile/NextTile.types.d.ts +3 -3
  334. package/dist/NextTile/NextTile.types.js.map +1 -1
  335. package/dist/Notation/Notation.d.ts +1 -2
  336. package/dist/Notation/Notation.js +1 -1
  337. package/dist/Notation/Notation.js.map +1 -1
  338. package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
  339. package/dist/NumberInput/NumberInput.styles.js +7 -7
  340. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  341. package/dist/PageLayout/PageLayout.d.ts +2 -2
  342. package/dist/PageLayout/PageLayout.js.map +1 -1
  343. package/dist/PageLayout/PageLayout.styles.js +16 -16
  344. package/dist/PageLayout/PageLayout.types.d.ts +3 -3
  345. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  346. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  347. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +4 -4
  348. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  349. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +5 -3
  350. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  351. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  352. package/dist/Pagination/Pagination.styles.d.ts +6 -6
  353. package/dist/Pagination/Pagination.styles.js +5 -5
  354. package/dist/Panel/Panel.d.ts +6 -7
  355. package/dist/Panel/Panel.js +22 -8
  356. package/dist/Panel/Panel.js.map +1 -1
  357. package/dist/Panel/Panel.styles.d.ts +5 -5
  358. package/dist/Panel/Panel.styles.js +16 -15
  359. package/dist/Panel/Panel.styles.js.map +1 -1
  360. package/dist/Panel/Panel.types.d.ts +14 -5
  361. package/dist/Panel/Panel.types.js.map +1 -1
  362. package/dist/Pill/Pill.js +15 -7
  363. package/dist/Pill/Pill.js.map +1 -1
  364. package/dist/Pill/Pill.styles.d.ts +3 -0
  365. package/dist/Pill/Pill.styles.js +7 -3
  366. package/dist/Pill/Pill.styles.js.map +1 -1
  367. package/dist/Pill/Pill.types.d.ts +1 -1
  368. package/dist/Pill/Pill.types.js.map +1 -1
  369. package/dist/PillSelect/PillSelect.js.map +1 -1
  370. package/dist/PillSelect/PillSelect.styles.js +4 -4
  371. package/dist/Popover/Popover.d.ts +1 -2
  372. package/dist/Popover/Popover.js.map +1 -1
  373. package/dist/Popover/Popover.styles.js +4 -4
  374. package/dist/Popover/Popover.styles.js.map +1 -1
  375. package/dist/Portal/Portal.styles.js +1 -1
  376. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  377. package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
  378. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  379. package/dist/RadioButton/RadioButton.styles.js +3 -3
  380. package/dist/Required/Required.styles.js +3 -3
  381. package/dist/Search/Search.styles.js +5 -5
  382. package/dist/Section/Section.js +6 -5
  383. package/dist/Section/Section.js.map +1 -1
  384. package/dist/Section/Section.styles.d.ts +5 -5
  385. package/dist/Section/Section.styles.js +9 -8
  386. package/dist/Section/Section.styles.js.map +1 -1
  387. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  388. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
  389. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  390. package/dist/Select/Select.styles.d.ts +2 -2
  391. package/dist/Select/Select.styles.js +7 -7
  392. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  393. package/dist/Semantic/Semantic.styles.js +9 -9
  394. package/dist/Semantic/Semantic.types.d.ts +1 -2
  395. package/dist/Semantic/Semantic.types.js.map +1 -1
  396. package/dist/Slider/Slider.styles.d.ts +2 -2
  397. package/dist/Slider/Slider.styles.js +5 -5
  398. package/dist/Slider/Slider.types.d.ts +2 -2
  399. package/dist/Slider/Slider.types.js.map +1 -1
  400. package/dist/Spinner/Spinner.js +5 -7
  401. package/dist/Spinner/Spinner.js.map +1 -1
  402. package/dist/Spinner/Spinner.styles.js +7 -7
  403. package/dist/SplitViewCard/SplitViewCard.d.ts +0 -1
  404. package/dist/SplitViewCard/SplitViewCard.js +29 -26
  405. package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
  406. package/dist/SplitViewCard/SplitViewCard.styles.js +10 -9
  407. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  408. package/dist/SplitViewCard/SplitViewCard.types.d.ts +11 -0
  409. package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
  410. package/dist/SplitViewCard/SplitViewCardInternal.context.d.ts +2 -2
  411. package/dist/SplitViewCard/SplitViewCardInternal.context.js +4 -1
  412. package/dist/SplitViewCard/SplitViewCardInternal.context.js.map +1 -1
  413. package/dist/SuperSelect/SuperSelect.components.d.ts +1 -2
  414. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  415. package/dist/SuperSelect/SuperSelect.presets.styles.d.ts +2 -2
  416. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  417. package/dist/SuperSelect/SuperSelect.styles.d.ts +6 -6
  418. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  419. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -2
  420. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  421. package/dist/Switch/Switch.d.ts +1 -2
  422. package/dist/Switch/Switch.js.map +1 -1
  423. package/dist/Switch/Switch.styles.js +4 -4
  424. package/dist/Switch/Switch.types.d.ts +2 -2
  425. package/dist/Switch/Switch.types.js.map +1 -1
  426. package/dist/Table/Table.d.ts +34 -35
  427. package/dist/Table/Table.js.map +1 -1
  428. package/dist/Table/Table.styles.d.ts +6 -6
  429. package/dist/Table/Table.styles.js +28 -28
  430. package/dist/Table/Table.types.d.ts +1 -2
  431. package/dist/Table/Table.types.js.map +1 -1
  432. package/dist/TableShelf/TableShelf.d.ts +12 -13
  433. package/dist/TableShelf/TableShelf.js.map +1 -1
  434. package/dist/TableShelf/TableShelf.styles.js +5 -5
  435. package/dist/Tabs/Tabs.d.ts +4 -5
  436. package/dist/Tabs/Tabs.js.map +1 -1
  437. package/dist/Tabs/Tabs.styles.d.ts +2 -2
  438. package/dist/Tabs/Tabs.styles.js +15 -15
  439. package/dist/Tearsheet/Tearsheet.js +9 -6
  440. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  441. package/dist/Tearsheet/Tearsheet.styles.d.ts +2 -2
  442. package/dist/Tearsheet/Tearsheet.styles.js +7 -6
  443. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  444. package/dist/Tearsheet/storybook/PageLayoutDemo.d.ts +4 -0
  445. package/dist/Tearsheet/storybook/PageLayoutDemo.js +164 -0
  446. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -0
  447. package/dist/TextArea/TextArea.d.ts +1 -2
  448. package/dist/TextArea/TextArea.js.map +1 -1
  449. package/dist/TextArea/TextArea.styles.js +1 -1
  450. package/dist/TextArea/TextArea.types.d.ts +2 -2
  451. package/dist/TextArea/TextArea.types.js.map +1 -1
  452. package/dist/TextEditor/TextEditor.d.ts +2 -19
  453. package/dist/TextEditor/TextEditor.js +11 -169
  454. package/dist/TextEditor/TextEditor.js.map +1 -1
  455. package/dist/TextEditor/TextEditor.types.d.ts +19 -86
  456. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  457. package/dist/TextEditor/TextEditorDocs.types.d.ts +65 -0
  458. package/dist/TextEditor/TextEditorDocs.types.js +2 -0
  459. package/dist/TextEditor/TextEditorDocs.types.js.map +1 -0
  460. package/dist/TextEditor/TextEditorProvider.d.ts +4 -0
  461. package/dist/TextEditor/TextEditorProvider.js +17 -0
  462. package/dist/TextEditor/TextEditorProvider.js.map +1 -0
  463. package/dist/TextEditor/TextEditorProvider.types.d.ts +14 -0
  464. package/dist/TextEditor/TextEditorProvider.types.js +2 -0
  465. package/dist/TextEditor/TextEditorProvider.types.js.map +1 -0
  466. package/dist/TextEditor/index.d.ts +4 -2
  467. package/dist/TextEditor/index.js +2 -1
  468. package/dist/TextEditor/index.js.map +1 -1
  469. package/dist/TextEditorOutput/TextEditorOutput.d.ts +6 -9
  470. package/dist/TextEditorOutput/TextEditorOutput.js +17 -34
  471. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  472. package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +16 -13
  473. package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
  474. package/dist/TextEditorOutput/TextEditorOutputDocs.types.d.ts +21 -0
  475. package/dist/TextEditorOutput/TextEditorOutputDocs.types.js +2 -0
  476. package/dist/TextEditorOutput/TextEditorOutputDocs.types.js.map +1 -0
  477. package/dist/TextInput/TextInput.d.ts +1 -1
  478. package/dist/Thumbnail/Thumbnail.hooks.d.ts +6 -7
  479. package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
  480. package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
  481. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  482. package/dist/Thumbnail/mocks/images/thumb_104x104_1.png +0 -0
  483. package/dist/Thumbnail/mocks/images/thumb_104x104_2.png +0 -0
  484. package/dist/Thumbnail/mocks/images/thumb_104x104_3.png +0 -0
  485. package/dist/Thumbnail/mocks/images/thumb_104x104_4.png +0 -0
  486. package/dist/Thumbnail/mocks/images/thumb_40x40_1.png +0 -0
  487. package/dist/Thumbnail/mocks/images/thumb_40x40_2.png +0 -0
  488. package/dist/Thumbnail/mocks/images/thumb_40x40_3.png +0 -0
  489. package/dist/Thumbnail/mocks/images/thumb_40x40_4.png +0 -0
  490. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +1 -2
  491. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  492. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +2 -2
  493. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  494. package/dist/TieredSelect/TierSelectionTieredSelect.js +3 -1
  495. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  496. package/dist/TieredSelect/TieredSelect.styles.d.ts +15 -15
  497. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  498. package/dist/TieredSelect/TieredSelect.types.d.ts +4 -0
  499. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  500. package/dist/Tile/Tile.styles.d.ts +1 -1
  501. package/dist/Tile/Tile.styles.js +8 -8
  502. package/dist/Tile/Tile.types.d.ts +4 -4
  503. package/dist/Tile/Tile.types.js.map +1 -1
  504. package/dist/Tile/mocks/dog.jpeg +0 -0
  505. package/dist/Tile/mocks/iframe.d.ts +5 -0
  506. package/dist/Tile/mocks/iframe.js +15 -0
  507. package/dist/Tile/mocks/iframe.js.map +1 -0
  508. package/dist/Tile/mocks/svg.d.ts +3 -0
  509. package/dist/Tile/mocks/svg.js +830 -0
  510. package/dist/Tile/mocks/svg.js.map +1 -0
  511. package/dist/Tile/mocks/video.mp4 +0 -0
  512. package/dist/Title/Title.d.ts +5 -6
  513. package/dist/Title/Title.js.map +1 -1
  514. package/dist/Title/Title.styles.d.ts +3 -3
  515. package/dist/Title/Title.styles.js +7 -7
  516. package/dist/Title/Title.types.d.ts +2 -2
  517. package/dist/Title/Title.types.js.map +1 -1
  518. package/dist/Title/mocks/thumb_40x40_1.png +0 -0
  519. package/dist/Title/mocks/visual_placeholder_40x40.svg +9 -0
  520. package/dist/Toast/Toast.d.ts +4 -5
  521. package/dist/Toast/Toast.js.map +1 -1
  522. package/dist/Toast/Toast.styles.js +3 -3
  523. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  524. package/dist/ToggleButton/ToggleButton.types.d.ts +1 -2
  525. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  526. package/dist/Token/Token.d.ts +5 -4
  527. package/dist/Token/Token.js +37 -10
  528. package/dist/Token/Token.js.map +1 -1
  529. package/dist/Token/Token.styles.d.ts +3 -7
  530. package/dist/Token/Token.styles.js +7 -7
  531. package/dist/Token/Token.styles.js.map +1 -1
  532. package/dist/Token/Token.types.d.ts +4 -0
  533. package/dist/Token/Token.types.js.map +1 -1
  534. package/dist/ToolHeader/ToolHeader.d.ts +6 -7
  535. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  536. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  537. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  538. package/dist/Tooltip/Tooltip.styles.js +2 -2
  539. package/dist/Tree/Tree.styles.d.ts +6 -6
  540. package/dist/Tree/Tree.styles.js +9 -9
  541. package/dist/Tree/Tree.types.d.ts +2 -3
  542. package/dist/Tree/Tree.types.js.map +1 -1
  543. package/dist/Tree/mocks/treeMockData.d.ts +8 -0
  544. package/dist/Tree/mocks/treeMockData.js +44 -0
  545. package/dist/Tree/mocks/treeMockData.js.map +1 -0
  546. package/dist/Typeahead/Typeahead.styles.js +3 -3
  547. package/dist/Typography/Typography.d.ts +1 -2
  548. package/dist/Typography/Typography.js.map +1 -1
  549. package/dist/Typography/Typography.styles.js +1 -1
  550. package/dist/Typography/Typography.table.story.js +2 -2
  551. package/dist/_hooks/ClickOutside.js +8 -4
  552. package/dist/_hooks/ClickOutside.js.map +1 -1
  553. package/dist/_locales/de-DE.json +1 -1
  554. package/dist/_locales/en-AU.json +1 -1
  555. package/dist/_locales/en-CA.json +1 -1
  556. package/dist/_locales/en-GB.json +1 -1
  557. package/dist/_locales/en.json +1 -1
  558. package/dist/_locales/es-ES.json +1 -1
  559. package/dist/_locales/es.json +1 -1
  560. package/dist/_locales/fr-CA.json +1 -1
  561. package/dist/_locales/fr-FR.json +1 -1
  562. package/dist/_locales/is-IS.json +1 -1
  563. package/dist/_locales/it-IT.json +1 -1
  564. package/dist/_locales/ja-JP.json +1 -1
  565. package/dist/_locales/pl-PL.json +1 -1
  566. package/dist/_locales/pseudo.json +1 -1
  567. package/dist/_locales/pt-BR.json +1 -1
  568. package/dist/_locales/th-TH.json +1 -1
  569. package/dist/_locales/zh-SG.json +1 -1
  570. package/dist/_locales/zh-TW.json +1 -1
  571. package/dist/_storyHelpers_/components/Deprecation.d.ts +3 -0
  572. package/dist/_storyHelpers_/components/Deprecation.js +10 -0
  573. package/dist/_storyHelpers_/components/Deprecation.js.map +1 -0
  574. package/dist/_storyHelpers_/components/Deprecation.styles.d.ts +4 -0
  575. package/dist/_storyHelpers_/components/Deprecation.styles.js +7 -0
  576. package/dist/_storyHelpers_/components/Deprecation.styles.js.map +1 -0
  577. package/dist/_storyHelpers_/components/Deprecation.types.d.ts +9 -0
  578. package/dist/_storyHelpers_/components/Deprecation.types.js +2 -0
  579. package/dist/_storyHelpers_/components/Deprecation.types.js.map +1 -0
  580. package/dist/_storyHelpers_/components/FullLayout.d.ts +6 -0
  581. package/dist/_storyHelpers_/components/FullLayout.js +15 -0
  582. package/dist/_storyHelpers_/components/FullLayout.js.map +1 -0
  583. package/dist/_storyHelpers_/components/StoryGrid.d.ts +7 -0
  584. package/dist/_storyHelpers_/components/StoryGrid.js +40 -0
  585. package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -0
  586. package/dist/_storyHelpers_/components/WithNavigationLayout.d.ts +2 -0
  587. package/dist/_storyHelpers_/components/WithNavigationLayout.js +47 -0
  588. package/dist/_storyHelpers_/components/WithNavigationLayout.js.map +1 -0
  589. package/dist/_storyHelpers_/constants.d.ts +35 -0
  590. package/dist/_storyHelpers_/constants.js +168 -0
  591. package/dist/_storyHelpers_/constants.js.map +1 -0
  592. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.d.ts +3 -0
  593. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.js +8 -0
  594. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.js.map +1 -0
  595. package/dist/_storyHelpers_/effects/useWaitForElement.d.ts +1 -0
  596. package/dist/_storyHelpers_/effects/useWaitForElement.js +24 -0
  597. package/dist/_storyHelpers_/effects/useWaitForElement.js.map +1 -0
  598. package/dist/_storyHelpers_/mocks/dropzoneMockData.d.ts +13 -0
  599. package/dist/_storyHelpers_/mocks/dropzoneMockData.js +39 -0
  600. package/dist/_storyHelpers_/mocks/dropzoneMockData.js.map +1 -0
  601. package/dist/_storyHelpers_/mocks/pillSelectMockData.d.ts +6 -0
  602. package/dist/_storyHelpers_/mocks/pillSelectMockData.js +22 -0
  603. package/dist/_storyHelpers_/mocks/pillSelectMockData.js.map +1 -0
  604. package/dist/_storyHelpers_/mocks/selectMockData.d.ts +11 -0
  605. package/dist/_storyHelpers_/mocks/selectMockData.js +36 -0
  606. package/dist/_storyHelpers_/mocks/selectMockData.js.map +1 -0
  607. package/dist/_storyHelpers_/mocks/tableMockData.d.ts +4 -0
  608. package/dist/_storyHelpers_/mocks/tableMockData.js +38 -0
  609. package/dist/_storyHelpers_/mocks/tableMockData.js.map +1 -0
  610. package/dist/_storyHelpers_/mocks/tieredSelect.d.ts +77 -0
  611. package/dist/_storyHelpers_/mocks/tieredSelect.js +277 -0
  612. package/dist/_storyHelpers_/mocks/tieredSelect.js.map +1 -0
  613. package/dist/_styles/mixins.d.ts +4 -0
  614. package/dist/_styles/mixins.js +7 -0
  615. package/dist/_styles/mixins.js.map +1 -1
  616. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  617. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  618. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  619. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  620. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  621. package/dist/_typedoc/Box/Box.types.json +68 -68
  622. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  623. package/dist/_typedoc/Button/Button.types.json +13 -13
  624. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  625. package/dist/_typedoc/Card/Card.types.json +6 -6
  626. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -18
  627. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  628. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  629. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  630. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  631. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  632. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  633. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  634. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  635. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  636. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  637. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  638. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  639. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  640. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  641. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  642. package/dist/_typedoc/Form/Form.types.json +929 -793
  643. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  644. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  645. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  646. package/dist/_typedoc/Input/Input.types.json +2 -2
  647. package/dist/_typedoc/Link/Link.types.json +1 -31
  648. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  649. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  650. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  651. package/dist/_typedoc/Modal/Modal.types.json +54 -54
  652. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  653. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  654. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  655. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  656. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  657. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -56
  658. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  659. package/dist/_typedoc/Panel/Panel.types.json +51 -29
  660. package/dist/_typedoc/Pill/Pill.types.json +4 -4
  661. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  662. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  663. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  664. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  665. package/dist/_typedoc/Required/Required.types.json +5 -5
  666. package/dist/_typedoc/Search/Search.types.json +18 -18
  667. package/dist/_typedoc/Section/Section.types.json +15 -15
  668. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  669. package/dist/_typedoc/Select/Select.types.json +60 -60
  670. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  671. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  672. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  673. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +34 -12
  674. package/dist/_typedoc/Switch/Switch.types.json +1 -32
  675. package/dist/_typedoc/Table/Table.types.json +101 -101
  676. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  677. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  678. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  679. package/dist/_typedoc/TextEditor/TextEditor.types.json +1 -100
  680. package/dist/_typedoc/TextEditor/TextEditorDocs.types.json +98 -0
  681. package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +28 -0
  682. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +6 -42
  683. package/dist/_typedoc/TextEditorOutput/TextEditorOutputDocs.types.json +38 -0
  684. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  685. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  686. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  687. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  688. package/dist/_typedoc/Title/Title.types.json +1 -1
  689. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  690. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  691. package/dist/_typedoc/Token/Token.types.json +30 -4
  692. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  693. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  694. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  695. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  696. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  697. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  698. package/dist/_typedoc/_utils/types.json +3 -3
  699. package/dist/_typedoc/deprecations.json +1 -1
  700. package/dist/_utils/propsTypedoc.d.ts +3 -0
  701. package/dist/_utils/propsTypedoc.js +3 -0
  702. package/dist/_utils/propsTypedoc.js.map +1 -1
  703. package/dist/_utils/slotify.d.ts +1 -2
  704. package/dist/_utils/slotify.js.map +1 -1
  705. package/dist/_utils/types.d.ts +11 -48
  706. package/dist/_utils/types.js.map +1 -1
  707. package/dist/index.d.ts +1 -1
  708. package/dist/index.js.map +1 -1
  709. package/jestConfig.js +52 -0
  710. package/package.json +26 -11
  711. package/.eslintignore +0 -4
  712. package/.eslintrc.cjs +0 -54
  713. package/__mocks__/@react-aria/utils.js +0 -10
  714. package/babel.config.js +0 -40
  715. package/dist/TextEditor/TextEditor.styles.js.map +0 -1
  716. package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +0 -1
  717. package/tsconfig.json +0 -24
  718. package/tsconfig.prod.json +0 -11
  719. package/tsconfig.test.json +0 -4
  720. /package/dist/{TextEditor/TextEditor.styles.d.ts → DeprecatedTextEditor/DeprecatedTextEditor.styles.d.ts} +0 -0
  721. /package/dist/{TextEditorOutput/TextEditorOutput.styles.d.ts → DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"FileToken.js","names":["useId","VisuallyHidden","React","Loader","loaderTransitionDuration","Token","Tooltip","useI18nContext","parseFilename","pulseAnimationDuration","StyledExtension","StyledFilename","StyledFilenameShortcut","StyledFileToken","FileToken","forwardRef","_ref","ref","fileName","_ref$progressValue","progressValue","_ref$errorMessage","errorMessage","onLabelClick","onClose","qa","props","_objectWithoutProperties","_excluded","i18n","isError","Boolean","isProgressValueComplete","_React$useState","useState","_React$useState2","_slicedToArray","isProgressComplete","setProgressComplete","_React$useState3","_React$useState4","isFinalized","setFinalized","didMountRef","useRef","_parseFilename","filename","extension","isFilename","progressBarLabelId","name","concat","useEffect","timerId","window","setTimeout","clearTimeout","current","token","createElement","Label","onClick","Remove","closeButton","trigger","overlay","_extends","$error","$finalized","$progressComplete","value","animated","id","t","role","displayName"],"sources":["../../src/FileToken/FileToken.tsx"],"sourcesContent":["import { useId } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport React from 'react'\nimport { Loader } from '../Loader/Loader'\nimport { loaderTransitionDuration } from '../Loader/Loader.styles'\nimport { Token } from '../Token/Token'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { parseFilename } from '../_utils/filename'\nimport type { DivAttributes } from '../_utils/types'\nimport {\n pulseAnimationDuration,\n StyledExtension,\n StyledFilename,\n StyledFilenameShortcut,\n StyledFileToken,\n} from './FileToken.styles'\nimport type { FileTokenProps } from './FileToken.types'\n\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development.\n */\nexport const FileToken = React.forwardRef<\n HTMLDivElement,\n FileTokenProps & DivAttributes\n>(function FileToken(\n {\n fileName,\n progressValue = 0,\n errorMessage = '',\n onLabelClick,\n onClose,\n qa,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n const isError = Boolean(errorMessage)\n\n const isProgressValueComplete = !isError && progressValue >= 100\n\n const [isProgressComplete, setProgressComplete] = React.useState(\n isProgressValueComplete\n )\n\n const [isFinalized, setFinalized] = React.useState(false)\n\n const didMountRef = React.useRef(false)\n\n const { filename, extension, isFilename } = parseFilename(fileName)\n\n const progressBarLabelId = useId()\n const name = isFilename ? `${filename}.` : fileName\n\n React.useEffect(() => {\n const timerId: number | null = isProgressValueComplete\n ? window.setTimeout(() => {\n setProgressComplete(true)\n }, loaderTransitionDuration)\n : null\n\n if (!isProgressValueComplete) {\n setProgressComplete(false)\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressValueComplete])\n\n React.useEffect(() => {\n const isFinalized = didMountRef.current && isProgressComplete\n const timerId: number | null = isFinalized\n ? window.setTimeout(() => {\n setFinalized(false)\n }, pulseAnimationDuration)\n : null\n\n setFinalized(didMountRef.current && isProgressComplete)\n\n if (!didMountRef.current) {\n didMountRef.current = true\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressComplete])\n\n const token = (\n <Token>\n <Token.Label onClick={onLabelClick}>\n <StyledFilenameShortcut>\n <StyledFilename>{name}</StyledFilename>\n <StyledExtension>{extension}</StyledExtension>\n </StyledFilenameShortcut>\n </Token.Label>\n <Token.Remove onClick={onClose} data-qa={qa?.closeButton} />\n </Token>\n )\n\n // prevent empty tooltip blinks when navigating via the keyboard by wrapping in tooltip conditionally\n if (isError) {\n return (\n <Tooltip ref={ref} trigger=\"hover\" overlay={errorMessage}>\n <StyledFileToken\n {...props}\n $error={isError}\n $finalized={isFinalized}\n $progressComplete={isProgressComplete}\n >\n {token}\n <Loader value={progressValue} animated>\n {token}\n </Loader>\n </StyledFileToken>\n </Tooltip>\n )\n }\n\n return (\n <StyledFileToken\n {...props}\n $error={isError}\n $finalized={isFinalized}\n $progressComplete={isProgressComplete}\n ref={ref}\n >\n {token}\n <Loader value={progressValue} animated aria-hidden>\n {token}\n </Loader>\n <VisuallyHidden>\n <span id={progressBarLabelId}>\n {i18n.t('core.fileToken.uploading')}\n </span>\n <div\n aria-labelledby={progressBarLabelId}\n role=\"progressbar\"\n aria-valuenow={progressValue}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuetext={`${progressValue}%`}\n />\n </VisuallyHidden>\n </StyledFileToken>\n )\n})\n\nFileToken.displayName = 'FileToken'\n"],"mappings":";;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,wBAAwB,QAAQ,yBAAyB;AAClE,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,aAAa,QAAQ,oBAAoB;AAElD,SACEC,sBAAsB,EACtBC,eAAe,EACfC,cAAc,EACdC,sBAAsB,EACtBC,eAAe,QACV,oBAAoB;AAG3B;AACA;AACA;AACA;AACA,OAAO,IAAMC,SAAS,gBAAGZ,KAAK,CAACa,UAAU,CAGvC,SAASD,SAASA,CAAAE,IAAA,EAUlBC,GAAG,EACH;EAAA,IATEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,kBAAA,GAAAH,IAAA,CACRI,aAAa;IAAbA,aAAa,GAAAD,kBAAA,cAAG,CAAC,GAAAA,kBAAA;IAAAE,iBAAA,GAAAL,IAAA,CACjBM,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,EAAE,GAAAA,iBAAA;IACjBE,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,OAAO,GAAAR,IAAA,CAAPQ,OAAO;IACPC,EAAE,GAAAT,IAAA,CAAFS,EAAE;IACCC,KAAK,GAAAC,wBAAA,CAAAX,I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A,CAAAyD,aAAA,CAAC9C,eAAe,EAAAqD,QAAA,KACVxC,KAAK;MACTyC,MAAM,EAAErC,OAAQ;MAChBsC,UAAU,EAAE3B,WAAY;MACxB4B,iBAAiB,EAAEhC;IAAmB,IAErCqB,KAAK,eACNxD,KAAA,CAAAyD,aAAA,CAACxD,MAAM;MAACmE,KAAK,EAAElD,aAAc;MAACmD,QAAQ;IAAA,GACnCb,KACK,CACO,CACV,CAAC;EAEd;EAEA,oBACExD,KAAA,CAAAyD,aAAA,CAAC9C,eAAe,EAAAqD,QAAA,KACVxC,KAAK;IACTyC,MAAM,EAAErC,OAAQ;IAChBsC,UAAU,EAAE3B,WAAY;IACxB4B,iBAAiB,EAAEhC,kBAAmB;IACtCpB,GAAG,EAAEA;EAAI,IAERyC,KAAK,eACNxD,KAAA,CAAAyD,aAAA,CAACxD,MAAM;IAACmE,KAAK,EAAElD,aAAc;IAACmD,QAAQ;IAAC;EAAW,GAC/Cb,KACK,CAAC,eACTxD,KAAA,CAAAyD,aAAA,CAAC1D,cAAc,qBACbC,KAAA,CAAAyD,aAAA;IAAMa,EAAE,EAAEvB;EAAmB,GAC1BpB,IAAI,CAAC4C,CAAC,CAAC,0BAA0B,CAC9B,CAAC,eACPvE,KAAA,CAAAyD,aAAA;IACE,mBAAiBV,kBAAmB;IACpCyB,IAAI,EAAC,aAAa;IAClB,iBAAetD,aAAc;IAC7B,iBAAe,CAAE;IACjB,iBAAe,GAAI;IACnB,qBAAA+B,MAAA,CAAmB/B,aAAa;EAAI,CACrC,CACa,CACD,CAAC;AAEtB,CAAC,CAAC;AAEFN,SAAS,CAAC6D,WAAW,GAAG,WAAW"}
1
+ {"version":3,"file":"FileToken.js","names":["useId","VisuallyHidden","React","Loader","loaderTransitionDuration","Tooltip","useI18nContext","pulseAnimationDuration","StyledFileToken","FileTokenInner","FileToken","forwardRef","_ref","ref","fileName","_ref$progressValue","progressValue","_ref$errorMessage","errorMessage","onLabelClick","onClose","qa","props","_objectWithoutProperties","_excluded","i18n","isError","Boolean","isProgressValueComplete","_React$useState","useState","_React$useState2","_slicedToArray","isProgressComplete","setProgressComplete","_React$useState3","_React$useState4","isFinalized","setFinalized","didMountRef","useRef","progressBarLabelId","useEffect","timerId","window","setTimeout","clearTimeout","current","renderToken","includeInTabOrder","arguments","length","undefined","createElement","fullFilename","onClick","qaCloseBtn","closeButton","trigger","overlay","_extends","$error","$finalized","$progressComplete","value","animated","id","t","role","concat","displayName"],"sources":["../../src/FileToken/FileToken.tsx"],"sourcesContent":["import { useId } from '@react-aria/utils'\nimport { VisuallyHidden } from '@react-aria/visually-hidden'\nimport React from 'react'\nimport { Loader } from '../Loader/Loader'\nimport { loaderTransitionDuration } from '../Loader/Loader.styles'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { pulseAnimationDuration, StyledFileToken } from './FileToken.styles'\nimport type { FileTokenProps } from './FileToken.types'\nimport { FileTokenInner } from './FileTokenInner'\n\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development.\n */\nexport const FileToken = React.forwardRef<\n HTMLDivElement,\n FileTokenProps & React.HTMLAttributes<HTMLDivElement>\n>(function FileToken(\n {\n fileName,\n progressValue = 0,\n errorMessage = '',\n onLabelClick,\n onClose,\n qa,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n const isError = Boolean(errorMessage)\n\n const isProgressValueComplete = !isError && progressValue >= 100\n\n const [isProgressComplete, setProgressComplete] = React.useState(\n isProgressValueComplete\n )\n\n const [isFinalized, setFinalized] = React.useState(false)\n\n const didMountRef = React.useRef(false)\n\n const progressBarLabelId = useId()\n\n React.useEffect(() => {\n const timerId: number | null = isProgressValueComplete\n ? window.setTimeout(() => {\n setProgressComplete(true)\n }, loaderTransitionDuration)\n : null\n\n if (!isProgressValueComplete) {\n setProgressComplete(false)\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressValueComplete])\n\n React.useEffect(() => {\n const isFinalized = didMountRef.current && isProgressComplete\n const timerId: number | null = isFinalized\n ? window.setTimeout(() => {\n setFinalized(false)\n }, pulseAnimationDuration)\n : null\n\n setFinalized(didMountRef.current && isProgressComplete)\n\n if (!didMountRef.current) {\n didMountRef.current = true\n }\n\n return () => {\n timerId && clearTimeout(timerId)\n }\n }, [isProgressComplete])\n\n const renderToken = (includeInTabOrder = false) => (\n <FileTokenInner\n fullFilename={fileName}\n includeInTabOrder={includeInTabOrder}\n onClick={onLabelClick}\n onClose={onClose}\n qaCloseBtn={qa?.closeButton}\n />\n )\n\n // prevent empty tooltip blinks when navigating via the keyboard by wrapping in tooltip conditionally\n if (isError) {\n return (\n <Tooltip ref={ref} trigger=\"hover\" overlay={errorMessage}>\n <StyledFileToken\n {...props}\n $error={isError}\n $finalized={isFinalized}\n $progressComplete={isProgressComplete}\n >\n {renderToken(true)}\n <Loader value={progressValue} animated>\n {renderToken()}\n </Loader>\n </StyledFileToken>\n </Tooltip>\n )\n }\n\n return (\n <StyledFileToken\n {...props}\n $error={isError}\n $finalized={isFinalized}\n $progressComplete={isProgressComplete}\n ref={ref}\n >\n {renderToken(true)}\n <Loader value={progressValue} animated aria-hidden>\n {renderToken()}\n </Loader>\n <VisuallyHidden>\n <span id={progressBarLabelId}>\n {i18n.t('core.fileToken.uploading')}\n </span>\n <div\n aria-labelledby={progressBarLabelId}\n role=\"progressbar\"\n aria-valuenow={progressValue}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuetext={`${progressValue}%`}\n />\n </VisuallyHidden>\n </StyledFileToken>\n )\n})\n\nFileToken.displayName = 'FileToken'\n"],"mappings":";;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,wBAAwB,QAAQ,yBAAyB;AAClE,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ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AAI;IACnB,qBAAAqD,MAAA,CAAmBrD,aAAa;EAAI,CACrC,CACa,CACD,CAAC;AAEtB,CAAC,CAAC;AAEFN,SAAS,CAAC4D,WAAW,GAAG,WAAW"}
@@ -1,35 +1,35 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
2
  import { StyledLoader } from '../Loader/Loader.styles';
3
- import { StyledLabel, StyledToken } from '../Token/Token.styles';
3
+ import { StyledLabel, StyledRemove, StyledToken } from '../Token/Token.styles';
4
4
  import { colors } from '../_styles/colors';
5
5
  export var pulseAnimationDuration = 600;
6
6
  var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
7
7
  export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledFilenameShortcut",
9
- componentId: "core-12_25_1__sc-13jx4bx-0"
9
+ componentId: "core-12_26_0__sc-13jx4bx-0"
10
10
  })(["display:flex;"]);
11
11
  export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
12
12
  displayName: "StyledFilename",
13
- componentId: "core-12_25_1__sc-13jx4bx-1"
13
+ componentId: "core-12_26_0__sc-13jx4bx-1"
14
14
  })(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
15
15
  export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
16
16
  displayName: "StyledExtension",
17
- componentId: "core-12_25_1__sc-13jx4bx-2"
17
+ componentId: "core-12_26_0__sc-13jx4bx-2"
18
18
  })(["flex-shrink:0;"]);
19
19
  export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledFileToken",
21
- componentId: "core-12_25_1__sc-13jx4bx-3"
22
- })(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
21
+ componentId: "core-12_26_0__sc-13jx4bx-3"
22
+ })(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;", "{color:", ";}}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
23
23
  var $progressComplete = _ref.$progressComplete;
24
24
  return $progressComplete && css(["background-color:", ";"], colors.blue45);
25
- }, StyledToken, colors.blue40, StyledLoader, StyledToken, colors.white, StyledLabel, function (_ref2) {
25
+ }, StyledToken, colors.blue40, StyledRemove, colors.blue40, StyledLoader, StyledToken, colors.white, StyledLabel, function (_ref2) {
26
26
  var $error = _ref2.$error,
27
27
  $finalized = _ref2.$finalized,
28
28
  $progressComplete = _ref2.$progressComplete;
29
29
  if ($error) {
30
- return css(["background-color:", ";&:focus{background-color:", ";}", "{color:", ";}", "{display:none;}"], colors.red50, colors.red50, StyledToken, colors.white, StyledLoader);
30
+ return css(["background-color:", ";&:focus{background-color:", ";}", "{color:", ";", "{color:", ";&.focus,&:focus,&.hover,&:hover{color:", ";}}}", "{display:none;}"], colors.red50, colors.red50, StyledToken, colors.white, StyledRemove, colors.white, colors.blue40, StyledLoader);
31
31
  } else if ($finalized || $progressComplete) {
32
- return css(["", ";", "{opacity:0;pointer-events:none;}", "{background-color:", ";color:", ";&:hover,&:focus{background-color:", ";}}&.hover,&.focus{", "{background-color:", ";}}"], $finalized && css(["animation-delay:0;animation-duration:", "ms;animation-name:", ";animation-timing-function:ease-out;"], pulseAnimationDuration, focusPulse), StyledLoader, StyledToken, colors.blue50, colors.white, colors.blue45, StyledToken, colors.blue45);
32
+ return css(["", ";", "{opacity:0;pointer-events:none;}", "{background-color:", ";color:", ";&:hover,&:focus{background-color:", ";}", "{color:", ";&.focus,&:focus,&.hover,&:hover{color:", ";}}}&.hover,&.focus{", "{background-color:", ";}}"], $finalized && css(["animation-delay:0;animation-duration:", "ms;animation-name:", ";animation-timing-function:ease-out;"], pulseAnimationDuration, focusPulse), StyledLoader, StyledToken, colors.blue50, colors.white, colors.blue45, StyledRemove, colors.white, colors.blue40, StyledToken, colors.blue45);
33
33
  }
34
34
  return css([""]);
35
35
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FileToken.styles.js","names":["styled","css","keyframes","StyledLoader","StyledLabel","StyledToken","colors","pulseAnimationDuration","focusPulse","blue60","blue90","blue94","StyledFilenameShortcut","div","withConfig","displayName","componentId","StyledFilename","span","StyledExtension","StyledFileToken","gray96","blue40","_ref","$progressComplete","blue45","white","_ref2","$error","$finalized","red50","blue50"],"sources":["../../src/FileToken/FileToken.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledLoader } from '../Loader/Loader.styles'\nimport { StyledLabel, StyledToken } from '../Token/Token.styles'\nimport { colors } from '../_styles/colors'\n\nexport const pulseAnimationDuration = 600\n\nconst focusPulse = keyframes`\n 0% {\n box-shadow: 0 0 0 0 ${colors.blue60}, 0 0 0 0 ${colors.blue90}, 0 0 0 0 ${colors.blue94};\n }\n 25% {\n box-shadow: 0 0 0 0 ${colors.blue60}, 0 0 0 0 ${colors.blue90}, 0 0 0 0 ${colors.blue94};\n }\n 50% {\n box-shadow: 0 0 0 1px ${colors.blue60}, 0 0 0 3px ${colors.blue90}, 0 0 0 2px ${colors.blue94};\n }\n 100% {\n box-shadow: 0 0 0 1.5px ${colors.blue60}, 0 0 0 3px ${colors.blue90}, 0 0 0 6px ${colors.blue94};\n }\n`\n\nexport const StyledFilenameShortcut = styled.div`\n display: flex;\n`\n\nexport const StyledFilename = styled.span`\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n`\n\nexport const StyledExtension = styled.span`\n flex-shrink: 0;\n`\n\nexport const StyledFileToken = styled.div<{\n $error?: boolean\n $finalized?: boolean\n $progressComplete?: boolean\n}>`\n background-color: ${colors.gray96};\n border-radius: 200px;\n max-width: 100%;\n outline: none;\n overflow: hidden;\n position: relative;\n\n &:focus,\n &.focus {\n box-shadow: 0 0 0 2px ${colors.blue40};\n outline: none;\n\n ${StyledToken} {\n border-color: transparent;\n\n ${({ $progressComplete }) =>\n $progressComplete &&\n css`\n background-color: ${colors.blue45};\n `}\n }\n }\n\n ${StyledToken} {\n background: none;\n color: ${colors.blue40};\n display: flex;\n user-select: none;\n }\n\n ${StyledLoader} {\n overflow: hidden;\n\n ${StyledToken} {\n border-radius: 200px 0 0 200px;\n color: ${colors.white};\n padding-right: 0;\n transition: color 0s linear, background-color 0s linear;\n user-select: none;\n\n ${StyledLabel} {\n flex: 0 0 auto;\n }\n }\n }\n\n ${({ $error, $finalized, $progressComplete }) => {\n if ($error) {\n return css`\n background-color: ${colors.red50};\n\n &:focus {\n background-color: ${colors.red50};\n }\n\n ${StyledToken} {\n color: ${colors.white};\n }\n\n ${StyledLoader} {\n display: none;\n }\n `\n } else if ($finalized || $progressComplete) {\n return css`\n ${$finalized &&\n css`\n animation-delay: 0;\n animation-duration: ${pulseAnimationDuration}ms;\n animation-name: ${focusPulse};\n animation-timing-function: ease-out;\n `};\n\n ${StyledLoader} {\n opacity: 0;\n pointer-events: none;\n }\n\n ${StyledToken} {\n background-color: ${colors.blue50};\n color: ${colors.white};\n\n &:hover,\n &:focus {\n background-color: ${colors.blue45};\n }\n }\n\n &.hover,\n &.focus {\n ${StyledToken} {\n background-color: ${colors.blue45};\n }\n }\n `\n }\n\n return css``\n }}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW,EAAEC,WAAW,QAAQ,uBAAuB;AAChE,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,OAAO,IAAMC,sBAAsB,GAAG,GAAG;AAEzC,IAAMC,UAAU,gBAAGN,SAAS,iPAEFI,MAAM,CAACG,MAAM,EAAaH,MAAM,CAACI,MAAM,EAAaJ,MAAM,CAACK,MAAM,EAGjEL,MAAM,CAACG,MAAM,EAAaH,MAAM,CAACI,MAAM,EAAaJ,MAAM,CAACK,MAAM,EAG/DL,MAAM,CAACG,MAAM,EAAeH,MAAM,CAACI,MAAM,EAAeJ,MAAM,CAACK,MAAM,EAGnEL,MAAM,CAACG,MAAM,EAAeH,MAAM,CAACI,MAAM,EAAeJ,MAAM,CAACK,MAAM,CAElG;AAED,OAAO,IAAMC,sBAAsB,gBAAGZ,MAAM,CAACa,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qBAE/C;AAED,OAAO,IAAMC,cAAc,gBAAGjB,MAAM,CAACkB,IAAI,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6DAIxC;AAED,OAAO,IAAMG,eAAe,gBAAGnB,MAAM,CAACkB,IAAI,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sBAEzC;AAED,OAAO,IAAMI,eAAe,gBAAGpB,MAAM,CAACa,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+bAKnBV,MAAM,CAACe,MAAM,EASPf,MAAM,CAACgB,MAAM,EAGnCjB,WAAW,EAGT,UAAAkB,IAAA;EAAA,IAAGC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB;EAAA,OACpBA,iBAAiB,IACjBvB,GAAG,6BACmBK,MAAM,CAACmB,MAAM,CAClC;AAAA,GAILpB,WAAW,EAEFC,MAAM,CAACgB,MAAM,EAKtBnB,YAAY,EAGVE,WAAW,EAEFC,MAAM,CAACoB,KAAK,EAKnBtB,WAAW,EAMf,UAAAuB,KAAA,EAA+C;EAAA,IAA5CC,MAAM,GAAAD,KAAA,CAANC,MAAM;IAAEC,UAAU,GAAAF,KAAA,CAAVE,UAAU;IAAEL,iBAAiB,GAAAG,KAAA,CAAjBH,iBAAiB;EACxC,IAAII,MAAM,EAAE;IACV,OAAO3B,GAAG,gGACYK,MAAM,CAACwB,KAAK,EAGVxB,MAAM,CAACwB,KAAK,EAGhCzB,WAAW,EACFC,MAAM,CAACoB,KAAK,EAGrBvB,YAAY;EAIlB,CAAC,MAAM,IAAI0B,UAAU,IAAIL,iBAAiB,EAAE;IAC1C,OAAOvB,GAAG,2KACN4B,UAAU,IACZ5B,GAAG,0GAEqBM,sBAAsB,EAC1BC,UAAU,CAE7B,EAECL,YAAY,EAKZE,WAAW,EACSC,MAAM,CAACyB,MAAM,EACxBzB,MAAM,CAACoB,KAAK,EAICpB,MAAM,CAACmB,MAAM,EAMjCpB,WAAW,EACSC,MAAM,CAACmB,MAAM;EAIzC;EAEA,OAAOxB,GAAG;AACZ,CAAC,CACF"}
1
+ {"version":3,"file":"FileToken.styles.js","names":["styled","css","keyframes","StyledLoader","StyledLabel","StyledRemove","StyledToken","colors","pulseAnimationDuration","focusPulse","blue60","blue90","blue94","StyledFilenameShortcut","div","withConfig","displayName","componentId","StyledFilename","span","StyledExtension","StyledFileToken","gray96","blue40","_ref","$progressComplete","blue45","white","_ref2","$error","$finalized","red50","blue50"],"sources":["../../src/FileToken/FileToken.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledLoader } from '../Loader/Loader.styles'\nimport { StyledLabel, StyledRemove, StyledToken } from '../Token/Token.styles'\nimport { colors } from '../_styles/colors'\n\nexport const pulseAnimationDuration = 600\n\nconst focusPulse = keyframes`\n 0% {\n box-shadow: 0 0 0 0 ${colors.blue60}, 0 0 0 0 ${colors.blue90}, 0 0 0 0 ${colors.blue94};\n }\n 25% {\n box-shadow: 0 0 0 0 ${colors.blue60}, 0 0 0 0 ${colors.blue90}, 0 0 0 0 ${colors.blue94};\n }\n 50% {\n box-shadow: 0 0 0 1px ${colors.blue60}, 0 0 0 3px ${colors.blue90}, 0 0 0 2px ${colors.blue94};\n }\n 100% {\n box-shadow: 0 0 0 1.5px ${colors.blue60}, 0 0 0 3px ${colors.blue90}, 0 0 0 6px ${colors.blue94};\n }\n`\n\nexport const StyledFilenameShortcut = styled.div`\n display: flex;\n`\n\nexport const StyledFilename = styled.span`\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n`\n\nexport const StyledExtension = styled.span`\n flex-shrink: 0;\n`\n\nexport const StyledFileToken = styled.div<{\n $error?: boolean\n $finalized?: boolean\n $progressComplete?: boolean\n}>`\n background-color: ${colors.gray96};\n border-radius: 200px;\n max-width: 100%;\n outline: none;\n overflow: hidden;\n position: relative;\n\n &:focus,\n &.focus {\n box-shadow: 0 0 0 2px ${colors.blue40};\n outline: none;\n\n ${StyledToken} {\n border-color: transparent;\n\n ${({ $progressComplete }) =>\n $progressComplete &&\n css`\n background-color: ${colors.blue45};\n `}\n }\n }\n\n ${StyledToken} {\n background: none;\n color: ${colors.blue40};\n display: flex;\n user-select: none;\n\n ${StyledRemove} {\n color: ${colors.blue40};\n }\n }\n\n ${StyledLoader} {\n overflow: hidden;\n\n ${StyledToken} {\n border-radius: 200px 0 0 200px;\n color: ${colors.white};\n padding-right: 0;\n transition: color 0s linear, background-color 0s linear;\n user-select: none;\n\n ${StyledLabel} {\n flex: 0 0 auto;\n }\n }\n }\n\n ${({ $error, $finalized, $progressComplete }) => {\n if ($error) {\n return css`\n background-color: ${colors.red50};\n\n &:focus {\n background-color: ${colors.red50};\n }\n\n ${StyledToken} {\n color: ${colors.white};\n\n ${StyledRemove} {\n color: ${colors.white};\n\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n color: ${colors.blue40};\n }\n }\n }\n\n ${StyledLoader} {\n display: none;\n }\n `\n } else if ($finalized || $progressComplete) {\n return css`\n ${$finalized &&\n css`\n animation-delay: 0;\n animation-duration: ${pulseAnimationDuration}ms;\n animation-name: ${focusPulse};\n animation-timing-function: ease-out;\n `};\n\n ${StyledLoader} {\n opacity: 0;\n pointer-events: none;\n }\n\n ${StyledToken} {\n background-color: ${colors.blue50};\n color: ${colors.white};\n\n &:hover,\n &:focus {\n background-color: ${colors.blue45};\n }\n\n ${StyledRemove} {\n color: ${colors.white};\n\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n color: ${colors.blue40};\n }\n }\n }\n\n &.hover,\n &.focus {\n ${StyledToken} {\n background-color: ${colors.blue45};\n }\n }\n `\n }\n\n return css``\n }}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW,EAAEC,YAAY,EAAEC,WAAW,QAAQ,uBAAuB;AAC9E,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,OAAO,IAAMC,sBAAsB,GAAG,GAAG;AAEzC,IAAMC,UAAU,gBAAGP,SAAS,iPAEFK,MAAM,CAACG,MAAM,EAAaH,MAAM,CAACI,MAAM,EAAaJ,MAAM,CAACK,MAAM,EAGjEL,MAAM,CAACG,MAAM,EAAaH,MAAM,CAACI,MAAM,EAAaJ,MAAM,CAACK,MAAM,EAG/DL,MAAM,CAACG,MAAM,EAAeH,MAAM,CAACI,MAAM,EAAeJ,MAAM,CAACK,MAAM,EAGnEL,MAAM,CAACG,MAAM,EAAeH,MAAM,CAACI,MAAM,EAAeJ,MAAM,CAACK,MAAM,CAElG;AAED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AOxB,GAAG,wOACN6B,UAAU,IACZ7B,GAAG,0GAEqBO,sBAAsB,EAC1BC,UAAU,CAE7B,EAECN,YAAY,EAKZG,WAAW,EACSC,MAAM,CAACyB,MAAM,EACxBzB,MAAM,CAACoB,KAAK,EAICpB,MAAM,CAACmB,MAAM,EAGjCrB,YAAY,EACHE,MAAM,CAACoB,KAAK,EAMVpB,MAAM,CAACgB,MAAM,EAOxBjB,WAAW,EACSC,MAAM,CAACmB,MAAM;EAIzC;EAEA,OAAOzB,GAAG;AACZ,CAAC,CACF"}
@@ -31,4 +31,26 @@ export interface FileTokenProps extends Props {
31
31
  */
32
32
  qa?: QaTags;
33
33
  }
34
+ export interface FileTokenInnerProps {
35
+ /**
36
+ * @since 12.25.0
37
+ */
38
+ fullFilename: string;
39
+ /**
40
+ * @since 12.25.0
41
+ */
42
+ includeInTabOrder?: boolean;
43
+ /**
44
+ * @since 12.25.0
45
+ */
46
+ onClick?: () => void;
47
+ /**
48
+ * @since 12.25.0
49
+ */
50
+ onClose?: () => void;
51
+ /**
52
+ * @since 12.25.0
53
+ */
54
+ qaCloseBtn?: QaTags['closeButton'];
55
+ }
34
56
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FileToken.types.js","names":[],"sources":["../../src/FileToken/FileToken.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n closeButton?: string\n}\nexport interface FileTokenProps extends Props {\n /**\n * @since 10.19.0\n */\n fileName: string\n /**\n * @since 10.19.0\n */\n progressValue?: number\n /**\n * @since 10.19.0\n */\n errorMessage?: string\n /**\n * @since 10.19.0\n */\n onLabelClick?: () => void\n /**\n * @since 10.19.0\n */\n onClose?: () => void\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n"],"mappings":""}
1
+ {"version":3,"file":"FileToken.types.js","names":[],"sources":["../../src/FileToken/FileToken.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n closeButton?: string\n}\nexport interface FileTokenProps extends Props {\n /**\n * @since 10.19.0\n */\n fileName: string\n /**\n * @since 10.19.0\n */\n progressValue?: number\n /**\n * @since 10.19.0\n */\n errorMessage?: string\n /**\n * @since 10.19.0\n */\n onLabelClick?: () => void\n /**\n * @since 10.19.0\n */\n onClose?: () => void\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface FileTokenInnerProps {\n /**\n * @since 12.25.0\n */\n fullFilename: string\n /**\n * @since 12.25.0\n */\n includeInTabOrder?: boolean\n /**\n * @since 12.25.0\n */\n onClick?: () => void\n /**\n * @since 12.25.0\n */\n onClose?: () => void\n /**\n * @since 12.25.0\n */\n qaCloseBtn?: QaTags['closeButton']\n}\n"],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FileTokenInnerProps } from './FileToken.types';
3
+ export declare const FileTokenInner: ({ fullFilename, includeInTabOrder, onClick, onClose, qaCloseBtn, }: FileTokenInnerProps) => React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { Token } from '../Token';
3
+ import { parseFilename } from '../_utils/filename';
4
+ import { StyledExtension, StyledFilename, StyledFilenameShortcut } from './FileToken.styles';
5
+ export var FileTokenInner = function FileTokenInner(_ref) {
6
+ var fullFilename = _ref.fullFilename,
7
+ includeInTabOrder = _ref.includeInTabOrder,
8
+ onClick = _ref.onClick,
9
+ onClose = _ref.onClose,
10
+ qaCloseBtn = _ref.qaCloseBtn;
11
+ var _parseFilename = parseFilename(fullFilename),
12
+ filename = _parseFilename.filename,
13
+ extension = _parseFilename.extension,
14
+ isFilename = _parseFilename.isFilename;
15
+ var name = isFilename ? "".concat(filename, ".") : fullFilename;
16
+ return /*#__PURE__*/React.createElement(Token, {
17
+ tabIndex: includeInTabOrder ? 0 : -1
18
+ }, /*#__PURE__*/React.createElement(Token.Label, {
19
+ onClick: onClick
20
+ }, /*#__PURE__*/React.createElement(StyledFilenameShortcut, null, /*#__PURE__*/React.createElement(StyledFilename, null, name), /*#__PURE__*/React.createElement(StyledExtension, null, extension))), includeInTabOrder && /*#__PURE__*/React.createElement(Token.Remove, {
21
+ "data-qa": qaCloseBtn,
22
+ onClick: onClose
23
+ }));
24
+ };
25
+ //# sourceMappingURL=FileTokenInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileTokenInner.js","names":["React","Token","parseFilename","StyledExtension","StyledFilename","StyledFilenameShortcut","FileTokenInner","_ref","fullFilename","includeInTabOrder","onClick","onClose","qaCloseBtn","_parseFilename","filename","extension","isFilename","name","concat","createElement","tabIndex","Label","Remove"],"sources":["../../src/FileToken/FileTokenInner.tsx"],"sourcesContent":["import React from 'react'\nimport { Token } from '../Token'\nimport { parseFilename } from '../_utils/filename'\nimport {\n StyledExtension,\n StyledFilename,\n StyledFilenameShortcut,\n} from './FileToken.styles'\nimport type { FileTokenInnerProps } from './FileToken.types'\n\nexport const FileTokenInner = ({\n fullFilename,\n includeInTabOrder,\n onClick,\n onClose,\n qaCloseBtn,\n}: FileTokenInnerProps) => {\n const { filename, extension, isFilename } = parseFilename(fullFilename)\n const name = isFilename ? `${filename}.` : fullFilename\n\n return (\n <Token tabIndex={includeInTabOrder ? 0 : -1}>\n <Token.Label onClick={onClick}>\n <StyledFilenameShortcut>\n <StyledFilename>{name}</StyledFilename>\n <StyledExtension>{extension}</StyledExtension>\n </StyledFilenameShortcut>\n </Token.Label>\n {includeInTabOrder && (\n <Token.Remove data-qa={qaCloseBtn} onClick={onClose} />\n )}\n </Token>\n )\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SACEC,eAAe,EACfC,cAAc,EACdC,sBAAsB,QACjB,oBAAoB;AAG3B,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAMA;EAAA,IALzBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACZC,iBAAiB,GAAAF,IAAA,CAAjBE,iBAAiB;IACjBC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IACPC,UAAU,GAAAL,IAAA,CAAVK,UAAU;EAEV,IAAAC,cAAA,GAA4CX,aAAa,CAACM,YAAY,CAAC;IAA/DM,QAAQ,GAAAD,cAAA,CAARC,QAAQ;IAAEC,SAAS,GAAAF,cAAA,CAATE,SAAS;IAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU;EACvC,IAAMC,IAAI,GAAGD,UAAU,MAAAE,MAAA,CAAMJ,QAAQ,SAAMN,YAAY;EAEvD,oBACER,KAAA,CAAAmB,aAAA,CAAClB,KAAK;IAACmB,QAAQ,EAAEX,iBAAiB,GAAG,CAAC,GAAG,CAAC;EAAE,gBAC1CT,KAAA,CAAAmB,aAAA,CAAClB,KAAK,CAACoB,KAAK;IAACX,OAAO,EAAEA;EAAQ,gBAC5BV,KAAA,CAAAmB,aAAA,CAACd,sBAAsB,qBACrBL,KAAA,CAAAmB,aAAA,CAACf,cAAc,QAAEa,IAAqB,CAAC,eACvCjB,KAAA,CAAAmB,aAAA,CAAChB,eAAe,QAAEY,SAA2B,CACvB,CACb,CAAC,EACbN,iBAAiB,iBAChBT,KAAA,CAAAmB,aAAA,CAAClB,KAAK,CAACqB,MAAM;IAAC,WAASV,UAAW;IAACF,OAAO,EAAEC;EAAQ,CAAE,CAEnD,CAAC;AAEZ,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import type { ButtonAttributes, DivAttributes, Props, SpanAttributes } from '../_utils/types';
3
2
  import type { FilterTokenProps } from './FilterToken.types';
4
- export declare const FilterToken: React.ForwardRefExoticComponent<DivAttributes & FilterTokenProps & React.RefAttributes<HTMLDivElement>> & {
5
- Label: React.ForwardRefExoticComponent<SpanAttributes & Props & React.RefAttributes<HTMLSpanElement>>;
6
- Remove: React.ForwardRefExoticComponent<ButtonAttributes & Props & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const FilterToken: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & FilterTokenProps & React.RefAttributes<HTMLDivElement>> & {
4
+ Label: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
5
+ Remove: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
7
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FilterToken.js","names":["Clear","React","useI18nContext","addSubcomponents","StyledContent","StyledContentLabel","StyledFilterRemoveButton","StyledFilterToken","StyledLabel","Parent","forwardRef","_ref","ref","_ref$focused","focused","props","_objectWithoutProperties","_excluded","createElement","_extends","$focused","Remove","_ref2","children","disabled","_excluded2","i18n","$disabled","t","tabIndex","type","Children","map","child","Label","displayName","FilterToken"],"sources":["../../src/FilterToken/FilterToken.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type {\n ButtonAttributes,\n DivAttributes,\n Props,\n SpanAttributes,\n} from '../_utils/types'\nimport {\n StyledContent,\n StyledContentLabel,\n StyledFilterRemoveButton,\n StyledFilterToken,\n StyledLabel,\n} from './FilterToken.styles'\nimport type { FilterTokenProps } from './FilterToken.types'\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n DivAttributes & FilterTokenProps\n>(({ focused = false, ...props }, ref) => (\n <StyledFilterToken $focused={focused} ref={ref} {...props} />\n))\n\nconst Remove = React.forwardRef<HTMLButtonElement, ButtonAttributes & Props>(\n ({ children, disabled, ...props }, ref) => {\n const i18n = useI18nContext()\n\n return (\n <StyledFilterRemoveButton\n $disabled={disabled ?? false}\n aria-label={i18n.t('core.token.remove')}\n tabIndex={0}\n type=\"button\"\n ref={ref}\n {...props}\n >\n <StyledContent>\n <Clear data-icon-prop=\"true\" />\n {React.Children.map(children, (child) => (\n <StyledContentLabel>{child}</StyledContentLabel>\n ))}\n </StyledContent>\n </StyledFilterRemoveButton>\n )\n }\n)\n\nconst Label = React.forwardRef<HTMLSpanElement, SpanAttributes & Props>(\n (props, ref) => <StyledLabel ref={ref} {...props} />\n)\n\nParent.displayName = 'FilterToken'\nRemove.displayName = 'FilterToken.Remove'\nLabel.displayName = 'FilterToken.Label'\n\nexport const FilterToken = addSubcomponents(\n {\n Label,\n Remove,\n },\n Parent\n)\n"],"mappings":";;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAO7D,SACEC,aAAa,EACbC,kBAAkB,EAClBC,wBAAwB,EACxBC,iBAAiB,EACjBC,WAAW,QACN,sBAAsB;AAG7B,IAAMC,MAAM,gBAAGR,KAAK,CAACS,UAAU,CAG7B,UAAAC,IAAA,EAAgCC,GAAG;EAAA,IAAAC,YAAA,GAAAF,IAAA,CAAhCG,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IAAKE,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAAA,oBAC5BhB,KAAA,CAAAiB,aAAA,CAACX,iBAAiB,EAAAY,QAAA;IAACC,QAAQ,EAAEN,OAAQ;IAACF,GAAG,EAAEA;EAAI,GAAKG,KAAK,CAAG,CAAC;AAAA,CAC9D,CAAC;AAEF,IAAMM,MAAM,gBAAGpB,KAAK,CAACS,UAAU,CAC7B,UAAAY,KAAA,EAAmCV,GAAG,EAAK;EAAA,IAAxCW,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IAAEC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAKT,KAAK,GAAAC,wBAAA,CAAAM,KAAA,EAAAG,UAAA;EAC7B,IAAMC,IAAI,GAAGxB,cAAc,CAAC,CAAC;EAE7B,oBACED,KAAA,CAAAiB,aAAA,CAACZ,wBAAwB,EAAAa,QAAA;IACvBQ,SAAS,EAAEH,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,KAAM;IAC7B,cAAYE,IAAI,CAACE,CAAC,CAAC,mBAAmB,CAAE;IACxCC,QAAQ,EAAE,CAAE;IACZC,IAAI,EAAC,QAAQ;IACblB,GAAG,EAAEA;EAAI,GACLG,KAAK,gBAETd,KAAA,CAAAiB,aAAA,CAACd,aAAa,qBACZH,KAAA,CAAAiB,aAAA,CAAClB,KAAK;IAAC,kBAAe;EAAM,CAAE,CAAC,EAC9BC,KAAK,CAAC8B,QAAQ,CAACC,GAAG,CAACT,QAAQ,EAAE,UAACU,KAAK;IAAA,oBAClChC,KAAA,CAAAiB,aAAA,CAACb,kBAAkB,QAAE4B,KAA0B,CAAC;EAAA,CACjD,CACY,CACS,CAAC;AAE/B,CACF,CAAC;AAED,IAAMC,KAAK,gBAAGjC,KAAK,CAACS,UAAU,CAC5B,UAACK,KAAK,EAAEH,GAAG;EAAA,oBAAKX,KAAA,CAAAiB,aAAA,CAACV,WAAW,EAAAW,QAAA;IAACP,GAAG,EAAEA;EAAI,GAAKG,KAAK,CAAG,CAAC;AAAA,CACtD,CAAC;AAEDN,MAAM,CAAC0B,WAAW,GAAG,aAAa;AAClCd,MAAM,CAACc,WAAW,GAAG,oBAAoB;AACzCD,KAAK,CAACC,WAAW,GAAG,mBAAmB;AAEvC,OAAO,IAAMC,WAAW,GAAGjC,gBAAgB,CACzC;EACE+B,KAAK,EAALA,KAAK;EACLb,MAAM,EAANA;AACF,CAAC,EACDZ,MACF,CAAC"}
1
+ {"version":3,"file":"FilterToken.js","names":["Clear","React","useI18nContext","addSubcomponents","StyledContent","StyledContentLabel","StyledFilterRemoveButton","StyledFilterToken","StyledLabel","Parent","forwardRef","_ref","ref","_ref$focused","focused","props","_objectWithoutProperties","_excluded","createElement","_extends","$focused","Remove","_ref2","children","disabled","_excluded2","i18n","$disabled","t","tabIndex","type","Children","map","child","Label","displayName","FilterToken"],"sources":["../../src/FilterToken/FilterToken.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport React from 'react'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n StyledContent,\n StyledContentLabel,\n StyledFilterRemoveButton,\n StyledFilterToken,\n StyledLabel,\n} from './FilterToken.styles'\nimport type { FilterTokenProps } from './FilterToken.types'\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & FilterTokenProps\n>(({ focused = false, ...props }, ref) => (\n <StyledFilterToken $focused={focused} ref={ref} {...props} />\n))\n\nconst Remove = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ children, disabled, ...props }, ref) => {\n const i18n = useI18nContext()\n\n return (\n <StyledFilterRemoveButton\n $disabled={disabled ?? false}\n aria-label={i18n.t('core.token.remove')}\n tabIndex={0}\n type=\"button\"\n ref={ref}\n {...props}\n >\n <StyledContent>\n <Clear data-icon-prop=\"true\" />\n {React.Children.map(children, (child) => (\n <StyledContentLabel>{child}</StyledContentLabel>\n ))}\n </StyledContent>\n </StyledFilterRemoveButton>\n )\n})\n\nconst Label = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement>\n>((props, ref) => <StyledLabel ref={ref} {...props} />)\n\nParent.displayName = 'FilterToken'\nRemove.displayName = 'FilterToken.Remove'\nLabel.displayName = 'FilterToken.Label'\n\nexport const FilterToken = addSubcomponents(\n {\n Label,\n Remove,\n },\n Parent\n)\n"],"mappings":";;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,aAAa,EACbC,kBAAkB,EAClBC,wB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AE4B,KAA0B,CAAC;EAAA,CACjD,CACY,CACS,CAAC;AAE/B,CAAC,CAAC;AAEF,IAAMC,KAAK,gBAAGjC,KAAK,CAACS,UAAU,CAG5B,UAACK,KAAK,EAAEH,GAAG;EAAA,oBAAKX,KAAA,CAAAiB,aAAA,CAACV,WAAW,EAAAW,QAAA;IAACP,GAAG,EAAEA;EAAI,GAAKG,KAAK,CAAG,CAAC;AAAA,EAAC;AAEvDN,MAAM,CAAC0B,WAAW,GAAG,aAAa;AAClCd,MAAM,CAACc,WAAW,GAAG,oBAAoB;AACzCD,KAAK,CAACC,WAAW,GAAG,mBAAmB;AAEvC,OAAO,IAAMC,WAAW,GAAGjC,gBAAgB,CACzC;EACE+B,KAAK,EAALA,KAAK;EACLb,MAAM,EAANA;AACF,CAAC,EACDZ,MACF,CAAC"}
@@ -6,11 +6,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
6
6
  import { spacing } from '../_styles/spacing';
7
7
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
8
8
  displayName: "StyledLabel",
9
- componentId: "core-12_25_1__sc-1l1h29r-0"
9
+ componentId: "core-12_26_0__sc-1l1h29r-0"
10
10
  })(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
11
11
  export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledFilterToken",
13
- componentId: "core-12_25_1__sc-1l1h29r-1"
13
+ componentId: "core-12_26_0__sc-1l1h29r-1"
14
14
  })(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
15
15
  var _ref$$focused = _ref.$focused,
16
16
  $focused = _ref$$focused === void 0 ? false : _ref$$focused;
@@ -18,17 +18,17 @@ export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
18
18
  });
19
19
  export var StyledFilterRemoveButton = /*#__PURE__*/styled.button.withConfig({
20
20
  displayName: "StyledFilterRemoveButton",
21
- componentId: "core-12_25_1__sc-1l1h29r-2"
21
+ componentId: "core-12_26_0__sc-1l1h29r-2"
22
22
  })(["", " ", ";background:transparent;color:", ";&:active,&:focus,&:hover{background:", ";color:", ";}&:disabled{pointer-events:none;user-select:none;}&:disabled,&[aria-disabled='true']{background:transparent;color:", ";}height:24px;margin:0 0 0 6px;padding:0 ", "px;[data-icon-prop='true']{pointer-events:none;height:16px;width:16px;}"], function (_ref2) {
23
23
  var $disabled = _ref2.$disabled;
24
24
  return getButtonStyles(false, $disabled, false, 'sm', 'tertiary');
25
25
  }, getTypographyIntent('small'), colors.blue45, colors.white, colors.blue45, colors.blue45, spacing.xs);
26
26
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
27
27
  displayName: "StyledContent",
28
- componentId: "core-12_25_1__sc-1l1h29r-3"
28
+ componentId: "core-12_26_0__sc-1l1h29r-3"
29
29
  })(["align-items:center;display:flex;overflow:hidden;"]);
30
30
  export var StyledContentLabel = /*#__PURE__*/styled.span.withConfig({
31
31
  displayName: "StyledContentLabel",
32
- componentId: "core-12_25_1__sc-1l1h29r-4"
32
+ componentId: "core-12_26_0__sc-1l1h29r-4"
33
33
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
34
34
  //# sourceMappingURL=FilterToken.styles.js.map
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { DivAttributes } from '../_utils/types';
3
2
  import type { FlexProps } from './Flex.types';
4
3
  /**
5
4
  * `Flex` is a wrapper around `Box` defaulting to display flex CSS
6
5
  * and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).
7
6
  * `Box` can mimic anything `Flex` can.
8
7
  */
9
- export declare const Flex: React.ForwardRefExoticComponent<DivAttributes & FlexProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const Flex: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & FlexProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.js","names":["React","Box","Flex","forwardRef","_ref","ref","_ref$alignItems","alignItems","basis","_ref$direction","direction","gap","grow","flex","_ref$inline","inline","_ref$justifyContent","justifyContent","shrink","wrap","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","displayName"],"sources":["../../src/Flex/Flex.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Box } from '../Box/Box'\nimport type { DivAttributes } from '../_utils/types'\nimport type { FlexProps } from './Flex.types'\n\n/**\n * `Flex` is a wrapper around `Box` defaulting to display flex CSS\n * and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).\n * `Box` can mimic anything `Flex` can.\n */\nexport const Flex = React.forwardRef<HTMLDivElement, DivAttributes & FlexProps>(\n function Flex(\n {\n alignItems = 'flex-start',\n basis,\n direction = 'row',\n gap,\n grow,\n flex,\n inline = false,\n justifyContent = 'flex-start',\n shrink,\n wrap,\n ...props\n },\n ref\n ) {\n return (\n <Box\n {...props}\n ref={ref}\n display={inline ? 'inline-flex' : 'flex'}\n alignItems={alignItems}\n justifyContent={justifyContent}\n flexBasis={basis}\n flexDirection={direction}\n flexGrow={grow}\n flexShrink={shrink}\n flexWrap={wrap}\n flex={flex}\n gap={gap}\n />\n )\n }\n)\n\nFlex.displayName = 'Flex'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,YAAY;AAIhC;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,IAAI,gBAAGF,KAAK,CAACG,UAAU,CAClC,SAASD,IAAIA,CAAAE,IAAA,EAcXC,GAAG,EACH;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAbEG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,YAAY,GAAAA,eAAA;IACzBE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,cAAA,GAAAL,IAAA,CACLM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IACjBE,GAAG,GAAAP,IAAA,CAAHO,GAAG;IACHC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;IACJC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IAAAC,WAAA,GAAAV,IAAA,CACJW,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;IAAAE,mBAAA,GAAAZ,IAAA,CACda,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAG,YAAY,GAAAA,mBAAA;IAC7BE,MAAM,GAAAd,IAAA,CAANc,MAAM;IACNC,IAAI,GAAAf,IAAA,CAAJe,IAAI;IACDC,KAAK,GAAAC,wBAAA,CAAAjB,IAAA,EAAAkB,SAAA;EAIV,oBACEtB,KAAA,CAAAuB,aAAA,CAACtB,GAAG,EAAAuB,QAAA,KACEJ,KAAK;IACTf,GAAG,EAAEA,GAAI;IACToB,OAAO,EAAEV,MAAM,GAAG,aAAa,GAAG,MAAO;IACzCR,UAAU,EAAEA,UAAW;IACvBU,cAAc,EAAEA,cAAe;IAC/BS,SAAS,EAAElB,KAAM;IACjBmB,aAAa,EAAEjB,SAAU;IACzBkB,QAAQ,EAAEhB,IAAK;IACfiB,UAAU,EAAEX,MAAO;IACnBY,QAAQ,EAAEX,IAAK;IACfN,IAAI,EAAEA,IAAK;IACXF,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDT,IAAI,CAAC6B,WAAW,GAAG,MAAM"}
1
+ {"version":3,"file":"Flex.js","names":["React","Box","Flex","forwardRef","_ref","ref","_ref$alignItems","alignItems","basis","_ref$direction","direction","gap","grow","flex","_ref$inline","inline","_ref$justifyContent","justifyContent","shrink","wrap","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","displayName"],"sources":["../../src/Flex/Flex.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Box } from '../Box/Box'\nimport type { FlexProps } from './Flex.types'\n\n/**\n * `Flex` is a wrapper around `Box` defaulting to display flex CSS\n * and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).\n * `Box` can mimic anything `Flex` can.\n */\nexport const Flex = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & FlexProps\n>(function Flex(\n {\n alignItems = 'flex-start',\n basis,\n direction = 'row',\n gap,\n grow,\n flex,\n inline = false,\n justifyContent = 'flex-start',\n shrink,\n wrap,\n ...props\n },\n ref\n) {\n return (\n <Box\n {...props}\n ref={ref}\n display={inline ? 'inline-flex' : 'flex'}\n alignItems={alignItems}\n justifyContent={justifyContent}\n flexBasis={basis}\n flexDirection={direction}\n flexGrow={grow}\n flexShrink={shrink}\n flexWrap={wrap}\n flex={flex}\n gap={gap}\n />\n )\n})\n\nFlex.displayName = 'Flex'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,YAAY;AAGhC;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,IAAI,gBAAGF,KAAK,CAACG,UAAU,CAGlC,SAASD,IAAIA,CAAAE,IAAA,EAcbC,GAAG,EACH;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAbEG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,YAAY,GAAAA,eAAA;IACzBE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,cAAA,GAAAL,IAAA,CACLM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IACjBE,GAAG,GAAAP,IAAA,CAAHO,GAAG;IACHC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;IACJC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IAAAC,WAAA,GAAAV,IAAA,CACJW,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;IAAAE,mBAAA,GAAAZ,IAAA,CACda,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAG,YAAY,GAAAA,mBAAA;IAC7BE,MAAM,GAAAd,IAAA,CAANc,MAAM;IACNC,IAAI,GAAAf,IAAA,CAAJe,IAAI;IACDC,KAAK,GAAAC,wBAAA,CAAAjB,IAAA,EAAAkB,SAAA;EAIV,oBACEtB,KAAA,CAAAuB,aAAA,CAACtB,GAAG,EAAAuB,QAAA,KACEJ,KAAK;IACTf,GAAG,EAAEA,GAAI;IACToB,OAAO,EAAEV,MAAM,GAAG,aAAa,GAAG,MAAO;IACzCR,UAAU,EAAEA,UAAW;IACvBU,cAAc,EAAEA,cAAe;IAC/BS,SAAS,EAAElB,KAAM;IACjBmB,aAAa,EAAEjB,SAAU;IACzBkB,QAAQ,EAAEhB,IAAK;IACfiB,UAAU,EAAEX,MAAO;IACnBY,QAAQ,EAAEX,IAAK;IACfN,IAAI,EAAEA,IAAK;IACXF,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CAAC,CAAC;AAEFT,IAAI,CAAC6B,WAAW,GAAG,MAAM"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
- import type { DivAttributes } from '../_utils/types';
3
2
  import type { FlexListProps } from './FlexList.types';
4
3
  /**
5
4
  * `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**
6
5
  * having a margin (leading and trailing space removed). This isolates the
7
6
  * children React components from the `display: flex` on direct children in CSS.
8
7
  */
9
- export declare const FlexList: React.ForwardRefExoticComponent<DivAttributes & FlexListProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const FlexList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & FlexListProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"FlexList.js","names":["React","Box","StyledFlex","getSingleSize","size","arguments","length","undefined","split","getItemMargin","direction","includes","concat","getMargin","space","margin","marginRight","marginBottom","FlexList","forwardRef","_ref","ref","boxProps","children","_ref$direction","_ref$size","props","_objectWithoutProperties","_excluded","singleSize","useMemo","createElement","_extends","$direction","Children","toArray","filter","child","map","i","key","displayName"],"sources":["../../src/FlexList/FlexList.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport type { FlexDirection, MarginSize } from '../Box/Box.types'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledFlex } from './FlexList.styles'\nimport type { FlexListProps } from './FlexList.types'\n\nfunction getSingleSize(size: string = ''): MarginSize {\n return size.split(' ')[0] as MarginSize\n}\n\nfunction getItemMargin(direction: FlexDirection, size: MarginSize): string {\n return direction.includes('row') ? `0 ${size}` : `${size} 0`\n}\n\nfunction getMargin(\n direction: FlexDirection,\n space?: MarginSize,\n size: MarginSize = 'md'\n) {\n if (space === undefined) {\n return { margin: getItemMargin(direction, size) }\n }\n\n if (space && direction.includes('row')) {\n return { marginRight: space }\n }\n\n if (space && direction.includes('column')) {\n return { marginBottom: space }\n }\n\n return {}\n}\n\n/**\n * `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**\n * having a margin (leading and trailing space removed). This isolates the\n * children React components from the `display: flex` on direct children in CSS.\n */\nexport const FlexList = React.forwardRef<\n HTMLDivElement,\n DivAttributes & FlexListProps\n>(function FlexList(\n { boxProps, children, direction = 'row', size = 'md', space, ...props },\n ref\n) {\n const singleSize = React.useMemo(() => getSingleSize(size), [size])\n\n const margin = React.useMemo(\n () => getMargin(direction, space, singleSize),\n [direction, space, singleSize]\n )\n\n return (\n <StyledFlex\n {...props}\n ref={ref}\n direction={direction}\n $direction={direction}\n >\n {React.Children.toArray(children)\n .filter((child) => child)\n .map(\n (child: any, i) =>\n child && (\n <Box {...boxProps} {...margin} key={child.key || i}>\n {child}\n </Box>\n )\n )}\n </StyledFlex>\n )\n})\n\nFlexList.displayName = 'FlexList'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,O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AAAJ,IAAA,CAAEV,SAAS;IAATA,SAAS,GAAAc,cAAA,cAAG,KAAK,GAAAA,cAAA;IAAAC,SAAA,GAAAL,IAAA,CAAEhB,IAAI;IAAJA,IAAI,GAAAqB,SAAA,cAAG,IAAI,GAAAA,SAAA;IAAEX,KAAK,GAAAM,IAAA,CAALN,KAAK;IAAKY,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAGrE,IAAMC,UAAU,GAAG7B,KAAK,CAAC8B,OAAO,CAAC;IAAA,OAAM3B,aAAa,CAACC,IAAI,CAAC;EAAA,GAAE,CAACA,IAAI,CAAC,CAAC;EAEnE,IAAMW,MAAM,GAAGf,KAAK,CAAC8B,OAAO,CAC1B;IAAA,OAAMjB,SAAS,CAACH,SAAS,EAAEI,KAAK,EAAEe,UAAU,CAAC;EAAA,GAC7C,CAACnB,SAAS,EAAEI,KAAK,EAAEe,UAAU,CAC/B,CAAC;EAED,oBACE7B,KAAA,CAAA+B,aAAA,CAAC7B,UAAU,EAAA8B,QAAA,KACLN,KAAK;IACTL,GAAG,EAAEA,GAAI;IACTX,SAAS,EAAEA,SAAU;IACrBuB,UAAU,EAAEvB;EAAU,IAErBV,KAAK,CAACkC,QAAQ,CAACC,OAAO,CAACZ,QAAQ,CAAC,CAC9Ba,MAAM,CAAC,UAACC,KAAK;IAAA,OAAKA,KAAK;EAAA,EAAC,CACxBC,GAAG,CACF,UAACD,KAAU,EAAEE,CAAC;IAAA,OACZF,KAAK,iBACHrC,KAAA,CAAA+B,aAAA,CAAC9B,GAAG,EAAA+B,QAAA,KAAKV,QAAQ,EAAMP,MAAM;MAAEyB,GAAG,EAAEH,KAAK,CAACG,GAAG,IAAID;IAAE,IAChDF,KACE,CACN;EAAA,CACL,CACQ,CAAC;AAEjB,CAAC,CAAC;AAEFnB,QAAQ,CAACuB,WAAW,GAAG,UAAU"}
1
+ {"version":3,"file":"FlexList.js","names":["React","Box","StyledFlex","getSingleSize","size","arguments","length","undefined","split","getItemMargin","direction","includes","concat","getMargin","space","margin","marginRight","marginBottom","FlexList","forwardRef","_ref","ref","boxProps","children","_ref$direction","_ref$size","props","_objectWithoutProperties","_excluded","singleSize","useMemo","createElement","_extends","$direction","Children","toArray","filter","child","map","i","key","displayName"],"sources":["../../src/FlexList/FlexList.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport type { FlexDirection, MarginSize } from '../Box/Box.types'\nimport { StyledFlex } from './FlexList.styles'\nimport type { FlexListProps } from './FlexList.types'\n\nfunction getSingleSize(size: string = ''): MarginSize {\n return size.split(' ')[0] as MarginSize\n}\n\nfunction getItemMargin(direction: FlexDirection, size: MarginSize): string {\n return direction.includes('row') ? `0 ${size}` : `${size} 0`\n}\n\nfunction getMargin(\n direction: FlexDirection,\n space?: MarginSize,\n size: MarginSize = 'md'\n) {\n if (space === undefined) {\n return { margin: getItemMargin(direction, size) }\n }\n\n if (space && direction.includes('row')) {\n return { marginRight: space }\n }\n\n if (space && direction.includes('column')) {\n return { marginBottom: space }\n }\n\n return {}\n}\n\n/**\n * `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**\n * having a margin (leading and trailing space removed). This isolates the\n * children React components from the `display: flex` on direct children in CSS.\n */\nexport const FlexList = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & FlexListProps\n>(function FlexList(\n { boxProps, children, direction = 'row', size = 'md', space, ...props },\n ref\n) {\n const singleSize = React.useMemo(() => getSingleSize(size), [size])\n\n const margin = React.useMemo(\n () => getMargin(direction, space, singleSize),\n [direction, space, singleSize]\n )\n\n return (\n <StyledFlex\n {...props}\n ref={ref}\n direction={direction}\n $direction={direction}\n >\n {React.Children.toArray(children)\n .filter((child) => child)\n .map(\n (child: any, i) =>\n child && (\n <Box {...boxProps} {...margin} key={child.key || i}>\n {child}\n </Box>\n )\n )}\n </StyledFlex>\n )\n})\n\nFlexList.displayName = 'FlexList'\n"],"mappings":";;;;AAAA,OAAOA,KAAK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/Box.types';
3
- export declare const StyledFlex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("..").DivAttributes & import("..").FlexProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
3
+ export declare const StyledFlex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("..").FlexProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
5
  }, {
6
6
  $direction?: FlexDirection | undefined;
7
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("..").FlexProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
7
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("..").FlexProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
3
3
  import { Flex } from '../Flex/Flex';
4
4
  export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
5
5
  displayName: "StyledFlex",
6
- componentId: "core-12_25_1__sc-1quvv61-0"
6
+ componentId: "core-12_26_0__sc-1quvv61-0"
7
7
  })(["> ", "{", "}"], StyledBox, function (_ref) {
8
8
  var $direction = _ref.$direction;
9
9
  if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {
@@ -2,7 +2,7 @@ import type { Form as FormikForm, FormikContextType } from 'formik';
2
2
  import React from 'react';
3
3
  import type { InputProps } from '../Input';
4
4
  import type { PageFooterProps } from '../PageLayout/PageLayout.types';
5
- import type { DivAttributes, Props } from '../_utils/types';
5
+ import type { Props } from '../_utils/types';
6
6
  import type { BaseFieldProps, ComponentWithFieldProp, FieldCheckboxComponentProps, FieldCheckboxesComponentProps, FieldCheckboxesValueType, FieldConfig, FieldCurrencyComponentProps, FieldDateComponentProps, FieldDateValueType, FieldGroupSelectComponentProps, FieldGroupSelectValueType, FieldMultiSelectComponentProps, FieldMultiSelectValueType, FieldNumberComponentProps, FieldPillSelectComponentProps, FieldRadioButtonsComponentProps, FieldRichTextComponentProps, FieldSelectComponentProps, FieldTextAreaComponentProps, FieldTextComponentProps, FieldTieredSelectComponentProps, FieldTieredSelectValueType, FormCheckboxesProps, FormCheckboxProps, FormContextAPI, FormCurrencyProps, FormDateProps, FormErrorBannerProps, FormFieldAPI, FormFieldProps, FormFieldValueComponentProps, FormGroupSelectProps, FormMultiSelectProps, FormNumberProps, FormPillSelectProps, FormProps, FormRadioButtonsProps, FormRichTextProps, FormSelectProps, FormTextAreaProps, FormTextProps, FormTieredSelectProps, GroupedOptionsConfig, OptionList, TraditionalBaseFieldProps, ViewFieldProps } from './Form.types';
7
7
  export declare const FormContext: React.Context<FormContextAPI>;
8
8
  export declare function useFormContext<Values = any>(): FormikContextType<Values> & FormContextAPI;
@@ -11,7 +11,7 @@ export declare function useField<Value = any>({ disabled: _disabled, error: _err
11
11
  declare function Form_<Values = any>({ initialValues, onSubmit: _onSubmit, disabled, enableConfirmNavigation, variant, validationSchema, view, ...props }: FormProps<Values>): React.JSX.Element;
12
12
  declare type FormFormProps = Omit<React.ComponentPropsWithoutRef<typeof FormikForm>, 'placeholder' | 'onPointerEnterCapture' | 'onPointerLeaveCapture'>;
13
13
  export declare function FormForm({ children, className, onKeyDown, style, ...props }: FormFormProps): React.JSX.Element;
14
- export declare function FormErrorBanner({ item, i18nScope, ...rest }: FormErrorBannerProps & DivAttributes): React.JSX.Element | null;
14
+ export declare function FormErrorBanner({ item, i18nScope, ...rest }: FormErrorBannerProps & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element | null;
15
15
  export declare function isFormFieldEmpty(val: any): boolean;
16
16
  export declare function WXPField<Value, ComponentProps extends FormFieldValueComponentProps<Value>>({ as: AsComponent, children, colStart, colWidth, disabled, description, error, label, name, required, tooltip, validate, view, inlineLabel: singleCheckboxInlineLabel, inlineDescription: singleCheckboxInlineDescription, ...props }: BaseFieldProps<Value, ComponentProps> & Pick<FormCheckboxProps, 'inlineLabel' | 'inlineDescription'> & {
17
17
  getId?: OptionList<Value>['getId'];
package/dist/Form/Form.js CHANGED
@@ -18,7 +18,7 @@ var _excluded = ["initialValues", "onSubmit", "disabled", "enableConfirmNavigati
18
18
  _excluded16 = ["field", "onBlur", "onChange"],
19
19
  _excluded17 = ["field"],
20
20
  _excluded18 = ["onChange", "field"],
21
- _excluded19 = ["field", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCompositionEnd", "onCompositionStart", "onCompositionUpdate", "onCut", "onDrag", "onDragDrop", "onDragEnd", "onDragGesture", "onDragOver", "onDrop", "onFocus", "onInput", "onKeyDown", "onKeyPress", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onPaste", "onReset", "onSubmit"],
21
+ _excluded19 = ["field"],
22
22
  _excluded20 = ["field", "getId", "getLabel", "isDisabledOption", "options"],
23
23
  _excluded21 = ["field", "getId", "getLabel", "options"],
24
24
  _excluded22 = ["field", "getId", "getLabel", "isDisabledOption", "isIndeterminateOption", "options"],
@@ -938,35 +938,6 @@ export var RichTextInput = /*#__PURE__*/React.forwardRef(function RichTextInput(
938
938
  });
939
939
  export var RichTextOutput = /*#__PURE__*/React.forwardRef(function RichTextOutput(_ref20, ref) {
940
940
  var field = _ref20.field,
941
- onBlur = _ref20.onBlur,
942
- onChange = _ref20.onChange,
943
- onClick = _ref20.onClick,
944
- onContextMenu = _ref20.onContextMenu,
945
- onCopy = _ref20.onCopy,
946
- onCompositionEnd = _ref20.onCompositionEnd,
947
- onCompositionStart = _ref20.onCompositionStart,
948
- onCompositionUpdate = _ref20.onCompositionUpdate,
949
- onCut = _ref20.onCut,
950
- onDrag = _ref20.onDrag,
951
- onDragDrop = _ref20.onDragDrop,
952
- onDragEnd = _ref20.onDragEnd,
953
- onDragGesture = _ref20.onDragGesture,
954
- onDragOver = _ref20.onDragOver,
955
- onDrop = _ref20.onDrop,
956
- onFocus = _ref20.onFocus,
957
- onInput = _ref20.onInput,
958
- onKeyDown = _ref20.onKeyDown,
959
- onKeyPress = _ref20.onKeyPress,
960
- onMouseDown = _ref20.onMouseDown,
961
- onMouseEnter = _ref20.onMouseEnter,
962
- onMouseLeave = _ref20.onMouseLeave,
963
- onMouseMove = _ref20.onMouseMove,
964
- onMouseOut = _ref20.onMouseOut,
965
- onMouseOver = _ref20.onMouseOver,
966
- onMouseUp = _ref20.onMouseUp,
967
- onPaste = _ref20.onPaste,
968
- onReset = _ref20.onReset,
969
- onSubmit = _ref20.onSubmit,
970
941
  props = _objectWithoutProperties(_ref20, _excluded19);
971
942
  return /*#__PURE__*/React.createElement(TextEditorOutput, _extends({
972
943
  value: field.input.value,