@procore/core-react 12.25.2 → 12.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) 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 +17 -0
  15. package/README.md +49 -3
  16. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  17. package/dist/Avatar/Avatar.styles.js +5 -5
  18. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  19. package/dist/AvatarStack/mocks/getAvatarMocks.d.ts +25 -0
  20. package/dist/AvatarStack/mocks/getAvatarMocks.js +305 -0
  21. package/dist/AvatarStack/mocks/getAvatarMocks.js.map +1 -0
  22. package/dist/AvatarStack/mocks/images.d.ts +2 -0
  23. package/dist/AvatarStack/mocks/images.js +13 -0
  24. package/dist/AvatarStack/mocks/images.js.map +1 -0
  25. package/dist/AvatarStack/mocks/img/1.png +0 -0
  26. package/dist/AvatarStack/mocks/img/2.png +0 -0
  27. package/dist/AvatarStack/mocks/img/3.png +0 -0
  28. package/dist/AvatarStack/mocks/img/4.png +0 -0
  29. package/dist/AvatarStack/mocks/img/5.png +0 -0
  30. package/dist/AvatarStack/mocks/logo/1.png +0 -0
  31. package/dist/AvatarStack/mocks/logo/2.png +0 -0
  32. package/dist/AvatarStack/mocks/logo/3.png +0 -0
  33. package/dist/AvatarStack/mocks/logo/4.png +0 -0
  34. package/dist/AvatarStack/mocks/logo/5.png +0 -0
  35. package/dist/Badge/Badge.styles.js +2 -2
  36. package/dist/BadgePill/BadgePill.styles.js +4 -4
  37. package/dist/Banner/Banner.styles.js +10 -10
  38. package/dist/Box/Box.styles.js +1 -1
  39. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  40. package/dist/Button/Button.styles.js +5 -5
  41. package/dist/Calendar/Calendar.styles.js +8 -8
  42. package/dist/Card/Card.styles.js +1 -1
  43. package/dist/Checkbox/Checkbox.styles.js +6 -6
  44. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  45. package/dist/ContactItem/ContactItem.styles.js +5 -5
  46. package/dist/Content/Content.styles.js +2 -2
  47. package/dist/DateInput/DateInput.styles.js +6 -6
  48. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.d.ts +19 -0
  49. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.js +159 -0
  50. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.js.map +1 -0
  51. package/dist/{TextEditor/TextEditor.styles.js → DeprecatedTextEditor/DeprecatedTextEditor.styles.js} +1 -1
  52. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.styles.js.map +1 -0
  53. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.d.ts +72 -0
  54. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.js +2 -0
  55. package/dist/DeprecatedTextEditor/DeprecatedTextEditor.types.js.map +1 -0
  56. package/dist/DeprecatedTextEditor/index.d.ts +2 -0
  57. package/dist/DeprecatedTextEditor/index.js +3 -0
  58. package/dist/DeprecatedTextEditor/index.js.map +1 -0
  59. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.d.ts +12 -0
  60. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.js +45 -0
  61. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.js.map +1 -0
  62. package/dist/{TextEditorOutput/TextEditorOutput.styles.js → DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.js} +2 -2
  63. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.js.map +1 -0
  64. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.d.ts +16 -0
  65. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.js +2 -0
  66. package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.types.js.map +1 -0
  67. package/dist/DeprecatedTextEditorOutput/index.d.ts +2 -0
  68. package/dist/DeprecatedTextEditorOutput/index.js +2 -0
  69. package/dist/DeprecatedTextEditorOutput/index.js.map +1 -0
  70. package/dist/DetailPage/DetailPage.styles.js +7 -7
  71. package/dist/Dropdown/Dropdown.styles.js +3 -3
  72. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  73. package/dist/Dropzone/Dropzone.js +1 -1
  74. package/dist/Dropzone/Dropzone.styles.js +9 -9
  75. package/dist/EmptyState/EmptyState.styles.js +6 -6
  76. package/dist/EmptyState/assets/default.stories.png +0 -0
  77. package/dist/Field/Field.styles.js +3 -3
  78. package/dist/FileList/FileList.styles.js +4 -4
  79. package/dist/FileList/storybook/fileListMockData.d.ts +5 -0
  80. package/dist/FileList/storybook/fileListMockData.js +34 -0
  81. package/dist/FileList/storybook/fileListMockData.js.map +1 -0
  82. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  83. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  84. package/dist/FileSelect/FileSelect.styles.js +2 -2
  85. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  86. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  87. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  88. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  89. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  90. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  91. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  92. package/dist/FileToken/FileToken.styles.js +4 -4
  93. package/dist/FilterToken/FilterToken.styles.js +5 -5
  94. package/dist/FlexList/FlexList.styles.js +1 -1
  95. package/dist/Form/Form.js +1 -30
  96. package/dist/Form/Form.js.map +1 -1
  97. package/dist/Form/Form.styles.js +14 -14
  98. package/dist/Form/StyledFormikForm.styles.js +2 -2
  99. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  100. package/dist/Grid/Grid.styles.js +2 -2
  101. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  102. package/dist/GroupSelect/mocks/groupSelectMockData.d.ts +18 -0
  103. package/dist/GroupSelect/mocks/groupSelectMockData.js +122 -0
  104. package/dist/GroupSelect/mocks/groupSelectMockData.js.map +1 -0
  105. package/dist/Input/Input.styles.js +1 -1
  106. package/dist/Link/Link.styles.js +1 -1
  107. package/dist/ListPage/ListPage.styles.js +8 -8
  108. package/dist/Loader/Loader.styles.js +2 -2
  109. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  110. package/dist/Modal/Modal.styles.js +15 -15
  111. package/dist/Modal/Modal.styles.js.map +1 -1
  112. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  113. package/dist/NextMenu/NextMenu.styles.js +3 -3
  114. package/dist/NextTextEditor/EditorError.d.ts +2 -0
  115. package/dist/NextTextEditor/EditorError.js +9 -0
  116. package/dist/NextTextEditor/EditorError.js.map +1 -0
  117. package/dist/NextTextEditor/NextTextEditor.d.ts +3 -0
  118. package/dist/NextTextEditor/NextTextEditor.js +156 -0
  119. package/dist/NextTextEditor/NextTextEditor.js.map +1 -0
  120. package/dist/NextTextEditor/NextTextEditor.styles.d.ts +5 -0
  121. package/dist/NextTextEditor/NextTextEditor.styles.js +22 -0
  122. package/dist/NextTextEditor/NextTextEditor.styles.js.map +1 -0
  123. package/dist/NextTextEditor/NextTextEditor.types.d.ts +111 -0
  124. package/dist/NextTextEditor/NextTextEditor.types.js +2 -0
  125. package/dist/NextTextEditor/NextTextEditor.types.js.map +1 -0
  126. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.d.ts +5 -0
  127. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.js +2 -0
  128. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.types.js.map +1 -0
  129. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.d.ts +3 -0
  130. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.js +153 -0
  131. package/dist/NextTextEditor/StickyToolbar/StickyToolbar.utils.js.map +1 -0
  132. package/dist/NextTextEditor/StickyToolbar/index.d.ts +4 -0
  133. package/dist/NextTextEditor/StickyToolbar/index.js +3 -0
  134. package/dist/NextTextEditor/StickyToolbar/index.js.map +1 -0
  135. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.d.ts +2 -0
  136. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.js +49 -0
  137. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.js.map +1 -0
  138. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.d.ts +12 -0
  139. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.js +2 -0
  140. package/dist/NextTextEditor/StickyToolbar/useStickyToolbar.types.js.map +1 -0
  141. package/dist/NextTextEditor/index.d.ts +2 -0
  142. package/dist/NextTextEditor/index.js +3 -0
  143. package/dist/NextTextEditor/index.js.map +1 -0
  144. package/dist/NextTextEditor/license_key.d.ts +2 -0
  145. package/dist/NextTextEditor/license_key.js +3 -0
  146. package/dist/NextTextEditor/license_key.js.map +1 -0
  147. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.d.ts +5 -0
  148. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.js +99 -0
  149. package/dist/NextTextEditor/plugins/CutPlugin/CutCommand.js.map +1 -0
  150. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.d.ts +5 -0
  151. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.js +56 -0
  152. package/dist/NextTextEditor/plugins/CutPlugin/CutPlugin.js.map +1 -0
  153. package/dist/NextTextEditor/plugins/CutPlugin/index.d.ts +1 -0
  154. package/dist/NextTextEditor/plugins/CutPlugin/index.js +2 -0
  155. package/dist/NextTextEditor/plugins/CutPlugin/index.js.map +1 -0
  156. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.d.ts +5 -0
  157. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.js +40 -0
  158. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.js.map +1 -0
  159. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.d.ts +1 -0
  160. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.js +2 -0
  161. package/dist/NextTextEditor/plugins/IndentPaddingToMarginPlugin/index.js.map +1 -0
  162. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.d.ts +15 -0
  163. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.js +65 -0
  164. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/index.js.map +1 -0
  165. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.d.ts +13 -0
  166. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.js +80 -0
  167. package/dist/NextTextEditor/plugins/LegacyPasteAdapter/legacyTinyMceAdapter.js.map +1 -0
  168. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.d.ts +5 -0
  169. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js +86 -0
  170. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js.map +1 -0
  171. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.d.ts +5 -0
  172. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js +56 -0
  173. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js.map +1 -0
  174. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.d.ts +1 -0
  175. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.js +2 -0
  176. package/dist/NextTextEditor/plugins/PasteAsTextPlugin/index.js.map +1 -0
  177. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.d.ts +5 -0
  178. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.js +149 -0
  179. package/dist/NextTextEditor/plugins/PastePlugin/PasteCommand.js.map +1 -0
  180. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.d.ts +5 -0
  181. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.js +56 -0
  182. package/dist/NextTextEditor/plugins/PastePlugin/PastePlugin.js.map +1 -0
  183. package/dist/NextTextEditor/plugins/PastePlugin/index.d.ts +1 -0
  184. package/dist/NextTextEditor/plugins/PastePlugin/index.js +2 -0
  185. package/dist/NextTextEditor/plugins/PastePlugin/index.js.map +1 -0
  186. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.d.ts +6 -0
  187. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.js +87 -0
  188. package/dist/NextTextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.js.map +1 -0
  189. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.d.ts +1 -0
  190. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.js +2 -0
  191. package/dist/NextTextEditor/plugins/TabSpacesPlugin/index.js.map +1 -0
  192. package/dist/NextTextEditor/textEditorTheming/icons.d.ts +23 -0
  193. package/dist/NextTextEditor/textEditorTheming/icons.js +24 -0
  194. package/dist/NextTextEditor/textEditorTheming/icons.js.map +1 -0
  195. package/dist/NextTextEditor/textEditorTheming/index.d.ts +1 -0
  196. package/dist/NextTextEditor/textEditorTheming/index.js +2 -0
  197. package/dist/NextTextEditor/textEditorTheming/index.js.map +1 -0
  198. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.d.ts +2 -0
  199. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.js +10 -0
  200. package/dist/NextTextEditor/textEditorTheming/textEditorTheming.styles.js.map +1 -0
  201. package/dist/NextTextEditor/useCKEditorCss.d.ts +3 -0
  202. package/dist/NextTextEditor/useCKEditorCss.js +36 -0
  203. package/dist/NextTextEditor/useCKEditorCss.js.map +1 -0
  204. package/dist/NextTextEditor/useTabAsNavigation.d.ts +11 -0
  205. package/dist/NextTextEditor/useTabAsNavigation.js +29 -0
  206. package/dist/NextTextEditor/useTabAsNavigation.js.map +1 -0
  207. package/dist/NextTextEditor/utils/config.d.ts +3 -0
  208. package/dist/NextTextEditor/utils/config.js +179 -0
  209. package/dist/NextTextEditor/utils/config.js.map +1 -0
  210. package/dist/NextTextEditor/utils/index.d.ts +2 -0
  211. package/dist/NextTextEditor/utils/index.js +3 -0
  212. package/dist/NextTextEditor/utils/index.js.map +1 -0
  213. package/dist/NextTextEditor/utils/locale.d.ts +3 -0
  214. package/dist/NextTextEditor/utils/locale.js +102 -0
  215. package/dist/NextTextEditor/utils/locale.js.map +1 -0
  216. package/dist/NextTextEditor/utils/plugins.d.ts +7 -0
  217. package/dist/NextTextEditor/utils/plugins.js +184 -0
  218. package/dist/NextTextEditor/utils/plugins.js.map +1 -0
  219. package/dist/NextTextEditorOutput/NextTextEditorOutput.d.ts +9 -0
  220. package/dist/NextTextEditorOutput/NextTextEditorOutput.js +29 -0
  221. package/dist/NextTextEditorOutput/NextTextEditorOutput.js.map +1 -0
  222. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.d.ts +2 -0
  223. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js +6 -0
  224. package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js.map +1 -0
  225. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.d.ts +9 -0
  226. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.js +2 -0
  227. package/dist/NextTextEditorOutput/NextTextEditorOutput.types.js.map +1 -0
  228. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.d.ts +2 -0
  229. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.js +59 -0
  230. package/dist/NextTextEditorOutput/NextTextEditorOutput.utils.js.map +1 -0
  231. package/dist/NextTextEditorOutput/index.d.ts +2 -0
  232. package/dist/NextTextEditorOutput/index.js +2 -0
  233. package/dist/NextTextEditorOutput/index.js.map +1 -0
  234. package/dist/Notation/Notation.js +1 -1
  235. package/dist/NumberInput/NumberInput.styles.js +7 -7
  236. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  237. package/dist/PageLayout/PageLayout.styles.js +16 -16
  238. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  239. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  240. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  241. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  242. package/dist/Pagination/Pagination.styles.js +5 -5
  243. package/dist/Panel/Panel.styles.js +13 -13
  244. package/dist/Panel/Panel.styles.js.map +1 -1
  245. package/dist/Pill/Pill.styles.js +3 -3
  246. package/dist/PillSelect/PillSelect.styles.js +4 -4
  247. package/dist/Popover/Popover.styles.js +2 -2
  248. package/dist/Portal/Portal.styles.js +1 -1
  249. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  250. package/dist/RadioButton/RadioButton.styles.js +3 -3
  251. package/dist/Required/Required.styles.js +3 -3
  252. package/dist/Search/Search.styles.js +5 -5
  253. package/dist/Section/Section.styles.js +7 -7
  254. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  255. package/dist/Select/Select.styles.js +7 -7
  256. package/dist/Semantic/Semantic.styles.js +9 -9
  257. package/dist/Slider/Slider.styles.js +5 -5
  258. package/dist/Spinner/Spinner.js +5 -7
  259. package/dist/Spinner/Spinner.js.map +1 -1
  260. package/dist/Spinner/Spinner.styles.js +7 -7
  261. package/dist/SplitViewCard/SplitViewCard.styles.js +10 -10
  262. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  263. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  264. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  265. package/dist/Switch/Switch.styles.js +4 -4
  266. package/dist/Table/Table.styles.js +28 -28
  267. package/dist/TableShelf/TableShelf.styles.js +5 -5
  268. package/dist/Tabs/Tabs.styles.js +15 -15
  269. package/dist/Tearsheet/Tearsheet.styles.js +7 -7
  270. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  271. package/dist/Tearsheet/storybook/PageLayoutDemo.d.ts +4 -0
  272. package/dist/Tearsheet/storybook/PageLayoutDemo.js +164 -0
  273. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -0
  274. package/dist/TextArea/TextArea.styles.js +1 -1
  275. package/dist/TextEditor/TextEditor.d.ts +2 -19
  276. package/dist/TextEditor/TextEditor.js +11 -169
  277. package/dist/TextEditor/TextEditor.js.map +1 -1
  278. package/dist/TextEditor/TextEditor.types.d.ts +19 -86
  279. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  280. package/dist/TextEditor/TextEditorDocs.types.d.ts +65 -0
  281. package/dist/TextEditor/TextEditorDocs.types.js +2 -0
  282. package/dist/TextEditor/TextEditorDocs.types.js.map +1 -0
  283. package/dist/TextEditor/TextEditorProvider.d.ts +4 -0
  284. package/dist/TextEditor/TextEditorProvider.js +17 -0
  285. package/dist/TextEditor/TextEditorProvider.js.map +1 -0
  286. package/dist/TextEditor/TextEditorProvider.types.d.ts +14 -0
  287. package/dist/TextEditor/TextEditorProvider.types.js +2 -0
  288. package/dist/TextEditor/TextEditorProvider.types.js.map +1 -0
  289. package/dist/TextEditor/index.d.ts +4 -2
  290. package/dist/TextEditor/index.js +2 -1
  291. package/dist/TextEditor/index.js.map +1 -1
  292. package/dist/TextEditorOutput/TextEditorOutput.d.ts +6 -8
  293. package/dist/TextEditorOutput/TextEditorOutput.js +17 -34
  294. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  295. package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +16 -13
  296. package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
  297. package/dist/TextEditorOutput/TextEditorOutputDocs.types.d.ts +21 -0
  298. package/dist/TextEditorOutput/TextEditorOutputDocs.types.js +2 -0
  299. package/dist/TextEditorOutput/TextEditorOutputDocs.types.js.map +1 -0
  300. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  301. package/dist/Thumbnail/mocks/images/thumb_104x104_1.png +0 -0
  302. package/dist/Thumbnail/mocks/images/thumb_104x104_2.png +0 -0
  303. package/dist/Thumbnail/mocks/images/thumb_104x104_3.png +0 -0
  304. package/dist/Thumbnail/mocks/images/thumb_104x104_4.png +0 -0
  305. package/dist/Thumbnail/mocks/images/thumb_40x40_1.png +0 -0
  306. package/dist/Thumbnail/mocks/images/thumb_40x40_2.png +0 -0
  307. package/dist/Thumbnail/mocks/images/thumb_40x40_3.png +0 -0
  308. package/dist/Thumbnail/mocks/images/thumb_40x40_4.png +0 -0
  309. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  310. package/dist/TieredSelect/TierSelectionTieredSelect.js +3 -1
  311. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  312. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  313. package/dist/TieredSelect/TieredSelect.types.d.ts +4 -0
  314. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  315. package/dist/Tile/Tile.styles.js +8 -8
  316. package/dist/Tile/mocks/dog.jpeg +0 -0
  317. package/dist/Tile/mocks/iframe.d.ts +5 -0
  318. package/dist/Tile/mocks/iframe.js +15 -0
  319. package/dist/Tile/mocks/iframe.js.map +1 -0
  320. package/dist/Tile/mocks/svg.d.ts +3 -0
  321. package/dist/Tile/mocks/svg.js +830 -0
  322. package/dist/Tile/mocks/svg.js.map +1 -0
  323. package/dist/Tile/mocks/video.mp4 +0 -0
  324. package/dist/Title/Title.styles.js +7 -7
  325. package/dist/Title/mocks/thumb_40x40_1.png +0 -0
  326. package/dist/Title/mocks/visual_placeholder_40x40.svg +9 -0
  327. package/dist/Toast/Toast.styles.js +3 -3
  328. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  329. package/dist/Token/Token.styles.js +3 -3
  330. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  331. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  332. package/dist/Tooltip/Tooltip.styles.js +2 -2
  333. package/dist/Tree/Tree.styles.js +9 -9
  334. package/dist/Tree/mocks/treeMockData.d.ts +8 -0
  335. package/dist/Tree/mocks/treeMockData.js +44 -0
  336. package/dist/Tree/mocks/treeMockData.js.map +1 -0
  337. package/dist/Typeahead/Typeahead.styles.js +3 -3
  338. package/dist/Typography/Typography.styles.js +1 -1
  339. package/dist/Typography/Typography.table.story.js +2 -2
  340. package/dist/_storyHelpers_/components/Deprecation.d.ts +3 -0
  341. package/dist/_storyHelpers_/components/Deprecation.js +10 -0
  342. package/dist/_storyHelpers_/components/Deprecation.js.map +1 -0
  343. package/dist/_storyHelpers_/components/Deprecation.styles.d.ts +4 -0
  344. package/dist/_storyHelpers_/components/Deprecation.styles.js +7 -0
  345. package/dist/_storyHelpers_/components/Deprecation.styles.js.map +1 -0
  346. package/dist/_storyHelpers_/components/Deprecation.types.d.ts +9 -0
  347. package/dist/_storyHelpers_/components/Deprecation.types.js +2 -0
  348. package/dist/_storyHelpers_/components/Deprecation.types.js.map +1 -0
  349. package/dist/_storyHelpers_/components/FullLayout.d.ts +6 -0
  350. package/dist/_storyHelpers_/components/FullLayout.js +15 -0
  351. package/dist/_storyHelpers_/components/FullLayout.js.map +1 -0
  352. package/dist/_storyHelpers_/components/StoryGrid.d.ts +7 -0
  353. package/dist/_storyHelpers_/components/StoryGrid.js +40 -0
  354. package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -0
  355. package/dist/_storyHelpers_/components/WithNavigationLayout.d.ts +2 -0
  356. package/dist/_storyHelpers_/components/WithNavigationLayout.js +47 -0
  357. package/dist/_storyHelpers_/components/WithNavigationLayout.js.map +1 -0
  358. package/dist/_storyHelpers_/constants.d.ts +35 -0
  359. package/dist/_storyHelpers_/constants.js +168 -0
  360. package/dist/_storyHelpers_/constants.js.map +1 -0
  361. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.d.ts +3 -0
  362. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.js +8 -0
  363. package/dist/_storyHelpers_/decorators/fullLayoutDecorator.js.map +1 -0
  364. package/dist/_storyHelpers_/effects/useWaitForElement.d.ts +1 -0
  365. package/dist/_storyHelpers_/effects/useWaitForElement.js +24 -0
  366. package/dist/_storyHelpers_/effects/useWaitForElement.js.map +1 -0
  367. package/dist/_storyHelpers_/mocks/dropzoneMockData.d.ts +13 -0
  368. package/dist/_storyHelpers_/mocks/dropzoneMockData.js +39 -0
  369. package/dist/_storyHelpers_/mocks/dropzoneMockData.js.map +1 -0
  370. package/dist/_storyHelpers_/mocks/pillSelectMockData.d.ts +6 -0
  371. package/dist/_storyHelpers_/mocks/pillSelectMockData.js +22 -0
  372. package/dist/_storyHelpers_/mocks/pillSelectMockData.js.map +1 -0
  373. package/dist/_storyHelpers_/mocks/selectMockData.d.ts +11 -0
  374. package/dist/_storyHelpers_/mocks/selectMockData.js +36 -0
  375. package/dist/_storyHelpers_/mocks/selectMockData.js.map +1 -0
  376. package/dist/_storyHelpers_/mocks/tableMockData.d.ts +4 -0
  377. package/dist/_storyHelpers_/mocks/tableMockData.js +38 -0
  378. package/dist/_storyHelpers_/mocks/tableMockData.js.map +1 -0
  379. package/dist/_storyHelpers_/mocks/tieredSelect.d.ts +77 -0
  380. package/dist/_storyHelpers_/mocks/tieredSelect.js +277 -0
  381. package/dist/_storyHelpers_/mocks/tieredSelect.js.map +1 -0
  382. package/dist/_styles/mixins.d.ts +4 -0
  383. package/dist/_styles/mixins.js +7 -0
  384. package/dist/_styles/mixins.js.map +1 -1
  385. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  386. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  387. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  388. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  389. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  390. package/dist/_typedoc/Box/Box.types.json +68 -68
  391. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  392. package/dist/_typedoc/Button/Button.types.json +13 -13
  393. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  394. package/dist/_typedoc/Card/Card.types.json +6 -6
  395. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  396. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  397. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  398. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  399. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  400. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  401. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  402. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  403. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  404. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  405. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  406. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  407. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  408. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  409. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  410. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  411. package/dist/_typedoc/Form/Form.types.json +929 -773
  412. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  413. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  414. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  415. package/dist/_typedoc/Input/Input.types.json +2 -2
  416. package/dist/_typedoc/Link/Link.types.json +1 -1
  417. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  418. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  419. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  420. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  421. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  422. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  423. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  424. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  425. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  426. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  427. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  428. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  429. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  430. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  431. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  432. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  433. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  434. package/dist/_typedoc/Required/Required.types.json +5 -5
  435. package/dist/_typedoc/Search/Search.types.json +18 -18
  436. package/dist/_typedoc/Section/Section.types.json +15 -15
  437. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  438. package/dist/_typedoc/Select/Select.types.json +60 -60
  439. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  440. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  441. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  442. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  443. package/dist/_typedoc/Table/Table.types.json +101 -101
  444. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  445. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  446. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  447. package/dist/_typedoc/TextEditor/TextEditor.types.json +1 -100
  448. package/dist/_typedoc/TextEditor/TextEditorDocs.types.json +98 -0
  449. package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +28 -0
  450. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +6 -42
  451. package/dist/_typedoc/TextEditorOutput/TextEditorOutputDocs.types.json +38 -0
  452. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  453. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  454. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  455. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  456. package/dist/_typedoc/Title/Title.types.json +1 -1
  457. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  458. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  459. package/dist/_typedoc/Token/Token.types.json +6 -6
  460. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  461. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  462. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  463. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  464. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  465. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  466. package/dist/_typedoc/_utils/types.json +3 -3
  467. package/dist/_typedoc/deprecations.json +1 -1
  468. package/dist/_utils/propsTypedoc.d.ts +3 -0
  469. package/dist/_utils/propsTypedoc.js +3 -0
  470. package/dist/_utils/propsTypedoc.js.map +1 -1
  471. package/jestConfig.js +52 -0
  472. package/package.json +26 -11
  473. package/.eslintignore +0 -4
  474. package/.eslintrc.cjs +0 -54
  475. package/__mocks__/@react-aria/utils.js +0 -10
  476. package/babel.config.js +0 -40
  477. package/dist/TextEditor/TextEditor.styles.js.map +0 -1
  478. package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +0 -1
  479. package/tsconfig.json +0 -24
  480. package/tsconfig.prod.json +0 -11
  481. package/tsconfig.test.json +0 -4
  482. /package/dist/{TextEditor/TextEditor.styles.d.ts → DeprecatedTextEditor/DeprecatedTextEditor.styles.d.ts} +0 -0
  483. /package/dist/{TextEditorOutput/TextEditorOutput.styles.d.ts → DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditor.types.js","names":[],"sources":["../../src/TextEditor/TextEditor.types.ts"],"sourcesContent":["import type { Editor, IAllProps } from '@tinymce/tinymce-react'\nimport type React from 'react'\nimport type { Locale } from '../_hooks/I18n'\n\ntype TextEditorFeatureToggle = {\n stickyToolbar?: boolean\n tabAsNavigation?: boolean\n}\n\n/**\n * Expect context to change the `init` config of the below `TextEditor`s.\n * **Changes after the editor has initialized are ignored.**\n * @link [TinyMCE React Init](https://www.tiny.cloud/docs/integrations/react/#init)\n * @link [TinyMCE React configure editor](https://www.tiny.cloud/docs/integrations/react/#configuringeditorsettings)\n */\nexport interface TextEditorProviderProps {\n children: React.ReactNode\n /**\n * - `stickyToolbar` - Have the editor toolbar stick to the top when content is longer than the page length.\n * - `tabAsNavigation` - Have `Tab` key exit the editor. Support `Alt`/`Opt` + `Tab` as triple space indent.\n */\n features?: TextEditorFeatureToggle\n}\n\nexport interface TextEditorProps\n extends Omit<React.ComponentProps<typeof Editor>, 'onChange' | 'onKeyUp'> {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * Config for when the editor is initialized. **Changes after the editor has initialized are ignored.**\n * @link [TinyMCE React Init](https://www.tiny.cloud/docs/integrations/react/#init)\n * @unsupported Use at your own risk. DST makes no guarantees about this API,\n * and is subject to removal at any point without warning or deprecation.\n * @since 10.19.0\n */\n init?: IAllProps['init']\n /**\n * @deprecated\n * `initialValue` has been deprecated and will be removed in a future version.\n * Please use the `value` prop instead\n *\n * The first value passed into `value` prop will be the `TextEditor` initial\n * value. Changing the value will update the text of the `TextEditor`.\n * The editor should be controlled via the combination of `value`\n * and `onChange` props.\n *\n * **Before**\n *\n * `<TextEditor initialValue=\"Hello World\" />`\n *\n * **After**\n *\n * `<TextEditor value=\"Hello World\" />`\n *\n * @deprecatedSince 10.20.0\n * @since 10.19.0\n */\n initialValue?: string\n\n /**\n * Locale which will be used used for localization. Can be passed directly or\n * set by wrapping components in I18n provider. Icelandic (is-IS) is not\n * actually supported by TinyMCE, so it is defaulted to english.\n * @since 10.19.0\n */\n locale?: Locale\n\n /**\n * onChange event handler for text editor area\n *\n * ```\n * (content: string) => void\n * ```\n * @since 10.19.0\n */\n onChange?: (content: string, isDirty?: boolean) => void\n\n /**\n *\n * Array of plugins to use with the editor in addition to the defaults.\n * Can be any of:\n *\n * ```\n * [{plugins.map((plugin) => `'${plugin}'`).join(', ')}]\n * ```\n * @since 10.19.0\n */\n plugins?: Array<string>\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TextEditor.types.js","names":[],"sources":["../../src/TextEditor/TextEditor.types.ts"],"sourcesContent":["import type { DeprecatedTextEditorProps } from '../DeprecatedTextEditor'\nimport type { NextTextEditorProps } from '../NextTextEditor'\n\ntype TinyMCEEditorProps = DeprecatedTextEditorProps & {\n /**\n * If you experience problems with the new editor implementation, you can use this to **temporarily** switch back to legacy version while you report the issue.\n * @deprecated This property will be removed in the future.\n */\n tinyMCE: true\n}\n\ntype CKEditorProps = NextTextEditorProps & {\n tinyMCE?: false\n}\n\nexport type TextEditorProps = Omit<\n TinyMCEEditorProps | CKEditorProps,\n | 'onFocus'\n | 'onBlur'\n | 'onInit'\n | 'onDirty'\n | 'onKeyDown'\n | 'onEditorChange'\n | 'onFocusOut'\n> & {\n onFocus?: (...args: any[]) => void\n onBlur?: (...args: any[]) => void\n onInit?: (...args: any[]) => void\n onDirty?: (...args: any[]) => void\n onKeyDown?: (event: KeyboardEvent) => void\n onEditorChange?: (value: string) => void\n onFocusOut?: (...args: any[]) => void\n}\n"],"mappings":""}
@@ -0,0 +1,65 @@
1
+ import type { EditorConfig } from 'ckeditor5';
2
+ import type { Locale } from '../_hooks/I18n';
3
+ export interface TextEditorPropsDoc {
4
+ /**
5
+ * The current value/content of the editor
6
+ *
7
+ * @since 10.19.0
8
+ */
9
+ value?: string;
10
+ /**
11
+ * Callback fired when the editor content changes
12
+ *
13
+ * @param value - The current content of the editor
14
+ * @param isDirty - Whether the content differs from the initial value
15
+ * @since 10.19.0
16
+ */
17
+ onChange?: (value: string, isDirty?: boolean) => void;
18
+ /**
19
+ * Indicates if the editor is in an error state
20
+ *
21
+ * @since 10.19.0
22
+ */
23
+ error?: boolean;
24
+ /**
25
+ * Whether the editor is disabled
26
+ *
27
+ * @since 10.19.0
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * Locale which will be used for localization. Can be passed directly or
32
+ * set by wrapping components in I18n provider.
33
+ *
34
+ * @since 10.19.0
35
+ */
36
+ locale?: Locale;
37
+ /**
38
+ * Configuration function for customizing the editor
39
+ *
40
+ * @param defaultConfig - The default CKEditor configuration
41
+ * @returns Customized configuration object
42
+ * @since 12.26.0
43
+ */
44
+ config?: (defaultConfig: EditorConfig) => EditorConfig;
45
+ /**
46
+ * Array of plugin names to add to the editor in addition to the defaults.
47
+ * This provides backward compatibility with the deprecated TinyMCE version of the editor.
48
+ * Supports plugin names like 'link', 'image', 'table', etc.
49
+ *
50
+ * @since 12.26.0
51
+ */
52
+ plugins?: string[];
53
+ /**
54
+ * Callback fired when the editor gains focus
55
+ *
56
+ * @since 10.19.0
57
+ */
58
+ onFocus?: (...args: any[]) => void;
59
+ /**
60
+ * Callback fired when the editor loses focus
61
+ *
62
+ * @since 10.19.0
63
+ */
64
+ onBlur?: (...args: any[]) => void;
65
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextEditorDocs.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEditorDocs.types.js","names":[],"sources":["../../src/TextEditor/TextEditorDocs.types.ts"],"sourcesContent":["import type { EditorConfig } from 'ckeditor5'\nimport type { Locale } from '../_hooks/I18n'\n\nexport interface TextEditorPropsDoc {\n /**\n * The current value/content of the editor\n *\n * @since 10.19.0\n */\n value?: string\n\n /**\n * Callback fired when the editor content changes\n *\n * @param value - The current content of the editor\n * @param isDirty - Whether the content differs from the initial value\n * @since 10.19.0\n */\n onChange?: (value: string, isDirty?: boolean) => void\n\n /**\n * Indicates if the editor is in an error state\n *\n * @since 10.19.0\n */\n error?: boolean\n\n /**\n * Whether the editor is disabled\n *\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Locale which will be used for localization. Can be passed directly or\n * set by wrapping components in I18n provider.\n *\n * @since 10.19.0\n */\n locale?: Locale\n\n /**\n * Configuration function for customizing the editor\n *\n * @param defaultConfig - The default CKEditor configuration\n * @returns Customized configuration object\n * @since 12.26.0\n */\n config?: (defaultConfig: EditorConfig) => EditorConfig\n\n /**\n * Array of plugin names to add to the editor in addition to the defaults.\n * This provides backward compatibility with the deprecated TinyMCE version of the editor.\n * Supports plugin names like 'link', 'image', 'table', etc.\n *\n * @since 12.26.0\n */\n plugins?: string[]\n\n /**\n * Callback fired when the editor gains focus\n *\n * @since 10.19.0\n */\n onFocus?: (...args: any[]) => void\n\n /**\n * Callback fired when the editor loses focus\n *\n * @since 10.19.0\n */\n onBlur?: (...args: any[]) => void\n}\n"],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TextEditorProviderProps } from './TextEditorProvider.types';
3
+ export declare const TextEditorContext: React.Context<Omit<TextEditorProviderProps, "children">>;
4
+ export declare function TextEditorProvider({ children, features, }: TextEditorProviderProps): React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export var TextEditorContext = /*#__PURE__*/React.createContext({
3
+ features: {
4
+ tabAsNavigation: undefined,
5
+ stickyToolbar: undefined
6
+ }
7
+ });
8
+ export function TextEditorProvider(_ref) {
9
+ var children = _ref.children,
10
+ features = _ref.features;
11
+ return /*#__PURE__*/React.createElement(TextEditorContext.Provider, {
12
+ value: {
13
+ features: features
14
+ }
15
+ }, children);
16
+ }
17
+ //# sourceMappingURL=TextEditorProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEditorProvider.js","names":["React","TextEditorContext","createContext","features","tabAsNavigation","undefined","stickyToolbar","TextEditorProvider","_ref","children","createElement","Provider","value"],"sources":["../../src/TextEditor/TextEditorProvider.tsx"],"sourcesContent":["import React from 'react'\nimport type { TextEditorProviderProps } from './TextEditorProvider.types'\n\nexport const TextEditorContext = React.createContext<\n Omit<TextEditorProviderProps, 'children'>\n>({\n features: {\n tabAsNavigation: undefined,\n stickyToolbar: undefined,\n },\n})\n\nexport function TextEditorProvider({\n children,\n features,\n}: TextEditorProviderProps) {\n return (\n <TextEditorContext.Provider value={{ features }}>\n {children}\n </TextEditorContext.Provider>\n )\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,OAAO,IAAMC,iBAAiB,gBAAGD,KAAK,CAACE,aAAa,CAElD;EACAC,QAAQ,EAAE;IACRC,eAAe,EAAEC,SAAS;IAC1BC,aAAa,EAAED;EACjB;AACF,CAAC,CAAC;AAEF,OAAO,SAASE,kBAAkBA,CAAAC,IAAA,EAGN;EAAA,IAF1BC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRN,QAAQ,GAAAK,IAAA,CAARL,QAAQ;EAER,oBACEH,KAAA,CAAAU,aAAA,CAACT,iBAAiB,CAACU,QAAQ;IAACC,KAAK,EAAE;MAAET,QAAQ,EAARA;IAAS;EAAE,GAC7CM,QACyB,CAAC;AAEjC"}
@@ -0,0 +1,14 @@
1
+ import type React from 'react';
2
+ declare type TextEditorFeatureToggle = {
3
+ stickyToolbar?: boolean;
4
+ tabAsNavigation?: boolean;
5
+ };
6
+ export interface TextEditorProviderProps {
7
+ children: React.ReactNode;
8
+ /**
9
+ * - `stickyToolbar` - Have the editor toolbar stick to the top when content is longer than the page length.
10
+ * - `tabAsNavigation` - Have `Tab` key exit the editor. Support `Alt`/`Opt` + `Tab` as triple space indent.
11
+ */
12
+ features?: TextEditorFeatureToggle;
13
+ }
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextEditorProvider.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEditorProvider.types.js","names":[],"sources":["../../src/TextEditor/TextEditorProvider.types.ts"],"sourcesContent":["import type React from 'react'\n\ntype TextEditorFeatureToggle = {\n stickyToolbar?: boolean\n tabAsNavigation?: boolean\n}\n\nexport interface TextEditorProviderProps {\n children: React.ReactNode\n /**\n * - `stickyToolbar` - Have the editor toolbar stick to the top when content is longer than the page length.\n * - `tabAsNavigation` - Have `Tab` key exit the editor. Support `Alt`/`Opt` + `Tab` as triple space indent.\n */\n features?: TextEditorFeatureToggle\n}\n"],"mappings":""}
@@ -1,2 +1,4 @@
1
- export { TextEditor, TextEditorProvider } from './TextEditor';
2
- export type { TextEditorProps, TextEditorProviderProps, } from './TextEditor.types';
1
+ export { TextEditor } from './TextEditor';
2
+ export type { TextEditorProps } from './TextEditor.types';
3
+ export { TextEditorProvider } from './TextEditorProvider';
4
+ export type { TextEditorProviderProps } from './TextEditorProvider.types';
@@ -1,2 +1,3 @@
1
- export { TextEditor, TextEditorProvider } from './TextEditor';
1
+ export { TextEditor } from './TextEditor';
2
+ export { TextEditorProvider } from './TextEditorProvider';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TextEditor","TextEditorProvider"],"sources":["../../src/TextEditor/index.ts"],"sourcesContent":["export { TextEditor, TextEditorProvider } from './TextEditor'\nexport type {\n TextEditorProps,\n TextEditorProviderProps,\n} from './TextEditor.types'\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,kBAAkB,QAAQ,cAAc"}
1
+ {"version":3,"file":"index.js","names":["TextEditor","TextEditorProvider"],"sources":["../../src/TextEditor/index.ts"],"sourcesContent":["export { TextEditor } from './TextEditor'\nexport type { TextEditorProps } from './TextEditor.types'\nexport { TextEditorProvider } from './TextEditorProvider'\nexport type { TextEditorProviderProps } from './TextEditorProvider.types'\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,kBAAkB,QAAQ,sBAAsB"}
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { TextEditorOutputProps } from './TextEditorOutput.types';
3
3
  /**
4
-
5
- We use TextEditorOutput to render formatted text.
6
-
7
- @since 10.24.0
8
-
9
- @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)
10
-
4
+ * Render formatted text from `TextEditor`
5
+ *
6
+ * @since 10.24.0
7
+ *
8
+ * @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)
11
9
  */
12
- export declare const TextEditorOutput: React.ForwardRefExoticComponent<TextEditorOutputProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const TextEditorOutput: React.ForwardRefExoticComponent<TextEditorOutputProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,44 +1,27 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["value", "init"];
1
+ var _excluded = ["tinyMCE"];
3
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
3
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
- import { Editor } from '@tinymce/tinymce-react';
12
5
  import React from 'react';
13
- import { generateExternalPlugins, tinyMCEConfig, tinyMCESource, tinyMCEVersion } from '../_utils/TinyMCE';
14
- import { StyledEditor } from './TextEditorOutput.styles';
6
+ import { DeprecatedTextEditorOutput } from '../DeprecatedTextEditorOutput';
7
+ import { NextTextEditorOutput } from '../NextTextEditorOutput';
15
8
  /**
16
-
17
- We use TextEditorOutput to render formatted text.
18
-
19
- @since 10.24.0
20
-
21
- @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)
22
-
9
+ * Render formatted text from `TextEditor`
10
+ *
11
+ * @since 10.24.0
12
+ *
13
+ * @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)
23
14
  */
24
- export var TextEditorOutput = /*#__PURE__*/React.forwardRef(function TextEditorOutput(_ref, ref) {
25
- var value = _ref.value,
26
- initOverrides = _ref.init,
27
- props = _objectWithoutProperties(_ref, _excluded);
28
- return /*#__PURE__*/React.createElement(StyledEditor, _extends({}, props, {
15
+ export var TextEditorOutput = /*#__PURE__*/React.forwardRef(function TextEditorOutput(props, ref) {
16
+ var tinyMCE = props.tinyMCE,
17
+ restProps = _objectWithoutProperties(props, _excluded);
18
+ if (tinyMCE) {
19
+ return /*#__PURE__*/React.createElement(DeprecatedTextEditorOutput, _extends({}, restProps, {
20
+ ref: ref
21
+ }));
22
+ }
23
+ return /*#__PURE__*/React.createElement(NextTextEditorOutput, _extends({}, restProps, {
29
24
  ref: ref
30
- }), /*#__PURE__*/React.createElement(Editor, {
31
- value: value,
32
- init: _objectSpread(_objectSpread({}, tinyMCEConfig), {}, {
33
- external_plugins: generateExternalPlugins(['autoresize']),
34
- toolbar: false,
35
- autoresize_overflow_padding: 0,
36
- min_height: 0,
37
- max_height: 400,
38
- content_style: "body { margin: 0; padding: 0; } p { margin: 0; }"
39
- }, initOverrides),
40
- tinymceScriptSrc: "".concat(tinyMCESource, "/").concat(tinyMCEVersion, "/tinymce.min.js"),
41
- disabled: true
42
25
  }));
43
26
  });
44
27
  TextEditorOutput.displayName = 'TextEditorOutput';
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditorOutput.js","names":["Editor","React","generateExternalPlugins","tinyMCEConfig","tinyMCESource","tinyMCEVersion","StyledEditor","TextEditorOutput","forwardRef","_ref","ref","value","initOverrides","init","props","_objectWithoutProperties","_excluded","createElement","_extends","_objectSpread","external_plugins","toolbar","autoresize_overflow_padding","min_height","max_height","content_style","tinymceScriptSrc","concat","disabled","displayName"],"sources":["../../src/TextEditorOutput/TextEditorOutput.tsx"],"sourcesContent":["import { Editor } from '@tinymce/tinymce-react'\nimport React from 'react'\nimport {\n generateExternalPlugins,\n tinyMCEConfig,\n tinyMCESource,\n tinyMCEVersion,\n} from '../_utils/TinyMCE'\nimport { StyledEditor } from './TextEditorOutput.styles'\nimport type { TextEditorOutputProps } from './TextEditorOutput.types'\n\n/**\n\n We use TextEditorOutput to render formatted text.\n\n @since 10.24.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)\n\n */\nexport const TextEditorOutput = React.forwardRef<\n HTMLDivElement,\n TextEditorOutputProps & React.HTMLAttributes<HTMLDivElement>\n>(function TextEditorOutput({ value, init: initOverrides, ...props }, ref) {\n return (\n <StyledEditor {...props} ref={ref}>\n <Editor\n value={value}\n init={{\n ...tinyMCEConfig,\n external_plugins: generateExternalPlugins(['autoresize']),\n toolbar: false,\n autoresize_overflow_padding: 0,\n min_height: 0,\n max_height: 400,\n content_style: `body { margin: 0; padding: 0; } p { margin: 0; }`,\n ...initOverrides,\n }}\n tinymceScriptSrc={`${tinyMCESource}/${tinyMCEVersion}/tinymce.min.js`}\n disabled\n />\n </StyledEditor>\n )\n})\n\nTextEditorOutput.displayName = 'TextEditorOutput'\n"],"mappings":";;;;;;;;;;AAAA,SAASA,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,uBAAuB,EACvBC,aAAa,EACbC,aAAa,EACbC,cAAc,QACT,mBAAmB;AAC1B,SAASC,YAAY,QAAQ,2BAA2B;AAGxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,gBAAgB,gBAAGN,KAAK,CAACO,UAAU,CAG9C,SAASD,gBAAgBA,CAAAE,IAAA,EAA2CC,GAAG,EAAE;EAAA,IAA7CC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAQC,aAAa,GAAAH,IAAA,CAAnBI,IAAI;IAAoBC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAChE,oBACEf,KAAA,CAAAgB,aAAA,CAACX,YAAY,EAAAY,QAAA,KAAKJ,KAAK;IAAEJ,GAAG,EAAEA;EAAI,iBAChCT,KAAA,CAAAgB,aAAA,CAACjB,MAAM;IACLW,KAAK,EAAEA,KAAM;IACbE,IAAI,EAAAM,aAAA,CAAAA,aAAA,KACChB,aAAa;MAChBiB,gBAAgB,EAAElB,uBAAuB,CAAC,CAAC,YAAY,CAAC,CAAC;MACzDmB,OAAO,EAAE,KAAK;MACdC,2BAA2B,EAAE,CAAC;MAC9BC,UAAU,EAAE,CAAC;MACbC,UAAU,EAAE,GAAG;MACfC,aAAa;IAAoD,GAC9Db,aAAa,CAChB;IACFc,gBAAgB,KAAAC,MAAA,CAAKvB,aAAa,OAAAuB,MAAA,CAAItB,cAAc,oBAAkB;IACtEuB,QAAQ;EAAA,CACT,CACW,CAAC;AAEnB,CAAC,CAAC;AAEFrB,gBAAgB,CAACsB,WAAW,GAAG,kBAAkB"}
1
+ {"version":3,"file":"TextEditorOutput.js","names":["React","DeprecatedTextEditorOutput","NextTextEditorOutput","TextEditorOutput","forwardRef","props","ref","tinyMCE","restProps","_objectWithoutProperties","_excluded","createElement","_extends","displayName"],"sources":["../../src/TextEditorOutput/TextEditorOutput.tsx"],"sourcesContent":["import React from 'react'\nimport { DeprecatedTextEditorOutput } from '../DeprecatedTextEditorOutput'\nimport { NextTextEditorOutput } from '../NextTextEditorOutput'\nimport type { TextEditorOutputProps } from './TextEditorOutput.types'\n\n/**\n * Render formatted text from `TextEditor`\n *\n * @since 10.24.0\n *\n * @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)\n */\nexport const TextEditorOutput = React.forwardRef<\n HTMLDivElement,\n TextEditorOutputProps\n>(function TextEditorOutput(props, ref) {\n const { tinyMCE, ...restProps } = props\n\n if (tinyMCE) {\n return <DeprecatedTextEditorOutput {...restProps} ref={ref} />\n }\n\n return <NextTextEditorOutput {...restProps} ref={ref} />\n})\n\nTextEditorOutput.displayName = 'TextEditorOutput'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,0BAA0B,QAAQ,+BAA+B;AAC1E,SAASC,oBAAoB,QAAQ,yBAAyB;AAG9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,gBAAgB,gBAAGH,KAAK,CAACI,UAAU,CAG9C,SAASD,gBAAgBA,CAACE,KAAK,EAAEC,GAAG,EAAE;EACtC,IAAQC,OAAO,GAAmBF,KAAK,CAA/BE,OAAO;IAAKC,SAAS,GAAAC,wBAAA,CAAKJ,KAAK,EAAAK,SAAA;EAEvC,IAAIH,OAAO,EAAE;IACX,oBAAOP,KAAA,CAAAW,aAAA,CAACV,0BAA0B,EAAAW,QAAA,KAAKJ,SAAS;MAAEF,GAAG,EAAEA;IAAI,EAAE,CAAC;EAChE;EAEA,oBAAON,KAAA,CAAAW,aAAA,CAACT,oBAAoB,EAAAU,QAAA,KAAKJ,SAAS;IAAEF,GAAG,EAAEA;EAAI,EAAE,CAAC;AAC1D,CAAC,CAAC;AAEFH,gBAAgB,CAACU,WAAW,GAAG,kBAAkB"}
@@ -1,16 +1,19 @@
1
- import type { IAllProps } from '@tinymce/tinymce-react';
2
- import type { Props } from '../_utils/types';
3
- export interface TextEditorOutputProps extends Omit<Props, 'children'> {
1
+ import type { DeprecatedTextEditorOutputProps } from '../DeprecatedTextEditorOutput';
2
+ import type { NextTextEditorOutputProps } from '../NextTextEditorOutput';
3
+ interface BaseTextEditorOutputProps {
4
+ value?: string;
4
5
  /**
5
- * formatted text
6
- * @since 10.24.0
7
- * */
8
- value?: IAllProps['value'];
9
- /**
10
- * Config for when the editor is initialized.
11
- * **Changes after the editor has initialized are ignored.**
12
- * @link [TinyMCE React Init](https://www.tiny.cloud/docs/integrations/react/#init)
13
- * @since 11.17.0
6
+ * If you experience problems with the new editor implementation, you can use this to **temporarily** switch back to legacy version while you report the issue.
7
+ * @deprecated This property will be removed in the future.
14
8
  */
15
- init?: IAllProps['init'];
9
+ tinyMCE?: boolean;
16
10
  }
11
+ declare type TinyMCEOutputProps = DeprecatedTextEditorOutputProps & {
12
+ tinyMCE: true;
13
+ };
14
+ declare type CKEditorOutputProps = NextTextEditorOutputProps & {
15
+ tinyMCE?: false;
16
+ };
17
+ export declare type TextEditorOutputProps = BaseTextEditorOutputProps & (TinyMCEOutputProps | CKEditorOutputProps);
18
+ export declare type TextEditorOutputPropsInternal = TinyMCEOutputProps | CKEditorOutputProps;
19
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditorOutput.types.js","names":[],"sources":["../../src/TextEditorOutput/TextEditorOutput.types.ts"],"sourcesContent":["import type { IAllProps } from '@tinymce/tinymce-react'\nimport type { Props } from '../_utils/types'\n\nexport interface TextEditorOutputProps extends Omit<Props, 'children'> {\n /**\n * formatted text\n * @since 10.24.0\n * */\n value?: IAllProps['value']\n /**\n * Config for when the editor is initialized.\n * **Changes after the editor has initialized are ignored.**\n * @link [TinyMCE React Init](https://www.tiny.cloud/docs/integrations/react/#init)\n * @since 11.17.0\n */\n init?: IAllProps['init']\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TextEditorOutput.types.js","names":[],"sources":["../../src/TextEditorOutput/TextEditorOutput.types.ts"],"sourcesContent":["import type { DeprecatedTextEditorOutputProps } from '../DeprecatedTextEditorOutput'\nimport type { NextTextEditorOutputProps } from '../NextTextEditorOutput'\n\n// Base interface for common properties\ninterface BaseTextEditorOutputProps {\n value?: string\n /**\n * If you experience problems with the new editor implementation, you can use this to **temporarily** switch back to legacy version while you report the issue.\n * @deprecated This property will be removed in the future.\n */\n tinyMCE?: boolean\n}\n\ntype TinyMCEOutputProps = DeprecatedTextEditorOutputProps & {\n tinyMCE: true\n}\n\ntype CKEditorOutputProps = NextTextEditorOutputProps & {\n tinyMCE?: false\n}\n\nexport type TextEditorOutputProps = BaseTextEditorOutputProps &\n (TinyMCEOutputProps | CKEditorOutputProps)\nexport type TextEditorOutputPropsInternal =\n | TinyMCEOutputProps\n | CKEditorOutputProps\n"],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type React from 'react';
2
+ export interface TextEditorOutputPropsDoc {
3
+ /**
4
+ * Formatted text from `TextEditor`
5
+ *
6
+ * @since 10.24.0
7
+ */
8
+ value?: string;
9
+ /**
10
+ * Additional classNames
11
+ *
12
+ * @since 10.24.0
13
+ */
14
+ className?: string;
15
+ /**
16
+ * Additional CSS styles
17
+ *
18
+ * @since 10.24.0
19
+ */
20
+ style?: React.CSSProperties;
21
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TextEditorOutputDocs.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextEditorOutputDocs.types.js","names":[],"sources":["../../src/TextEditorOutput/TextEditorOutputDocs.types.ts"],"sourcesContent":["import type React from 'react'\n\nexport interface TextEditorOutputPropsDoc {\n /**\n * Formatted text from `TextEditor`\n *\n * @since 10.24.0\n */\n value?: string\n\n /**\n * Additional classNames\n *\n * @since 10.24.0\n */\n className?: string\n\n /**\n * Additional CSS styles\n *\n * @since 10.24.0\n */\n style?: React.CSSProperties\n}\n"],"mappings":""}
@@ -27,35 +27,35 @@ var captionBase = /*#__PURE__*/css(["color:", ";font-size:12px;line-height:16px;
27
27
  });
28
28
  export var StyledMultilineCaption = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledMultilineCaption",
30
- componentId: "core-12_25_2__sc-195f70c-0"
30
+ componentId: "core-12_26_1__sc-195f70c-0"
31
31
  })(["", ";display:flex;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:", "px;"], captionBase, multilineCaptionMaxHeight);
32
32
  export var StyledCaptionText = /*#__PURE__*/styled.span.withConfig({
33
33
  displayName: "StyledCaptionText",
34
- componentId: "core-12_25_2__sc-195f70c-1"
34
+ componentId: "core-12_26_1__sc-195f70c-1"
35
35
  })(["width:100%;"]);
36
36
  export var StyledPlaceholderCaption = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledPlaceholderCaption",
38
- componentId: "core-12_25_2__sc-195f70c-2"
38
+ componentId: "core-12_26_1__sc-195f70c-2"
39
39
  })(["", ""], captionBase);
40
40
  export var StyledSingleLineCaption = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledSingleLineCaption",
42
- componentId: "core-12_25_2__sc-195f70c-3"
42
+ componentId: "core-12_26_1__sc-195f70c-3"
43
43
  })(["display:flex;", ""], captionBase);
44
44
  export var StyledSinglelineCaptionBody = /*#__PURE__*/styled.span.withConfig({
45
45
  displayName: "StyledSinglelineCaptionBody",
46
- componentId: "core-12_25_2__sc-195f70c-4"
46
+ componentId: "core-12_26_1__sc-195f70c-4"
47
47
  })(["", ""], getEllipsis);
48
48
  export var StyledSinglelineCaptionEnding = /*#__PURE__*/styled.span.withConfig({
49
49
  displayName: "StyledSinglelineCaptionEnding",
50
- componentId: "core-12_25_2__sc-195f70c-5"
50
+ componentId: "core-12_26_1__sc-195f70c-5"
51
51
  })(["max-width:50%;white-space:nowrap;flex-shrink:0;"]);
52
52
  export var StyledLabelText = /*#__PURE__*/styled(Typography).withConfig({
53
53
  displayName: "StyledLabelText",
54
- componentId: "core-12_25_2__sc-195f70c-6"
54
+ componentId: "core-12_26_1__sc-195f70c-6"
55
55
  })(["", ""], getEllipsis());
56
56
  export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig({
57
57
  displayName: "StyledThumbnailFigCaption",
58
- componentId: "core-12_25_2__sc-195f70c-7"
58
+ componentId: "core-12_26_1__sc-195f70c-7"
59
59
  })(["", " ", " color:", ";font-weight:", ";text-align:center;width:100%;position:absolute;bottom:0;right:0;left:0;opacity:0.85;height:", "px;padding:", "px ", "px;background-color:", ";"], getTypographyIntent('small'), getEllipsis(), function (_ref5) {
60
60
  var _ref5$$color = _ref5.$color,
61
61
  $color = _ref5$$color === void 0 ? 'gray15' : _ref5$$color;
@@ -63,7 +63,7 @@ export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig
63
63
  }, typographyWeights.bold, labelHeight, spacing.sm / 2, spacing.sm, colors.white);
64
64
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledLabel",
66
- componentId: "core-12_25_2__sc-195f70c-8"
66
+ componentId: "core-12_26_1__sc-195f70c-8"
67
67
  })(["display:flex;justify-content:center;position:absolute;bottom:0;right:0;left:0;opacity:0.85;height:", "px;padding:", "px ", "px;font-size:", "px;background-color:", ";"], labelHeight, spacing.sm / 2, spacing.sm, labelFontSize, colors.white);
68
68
  var thumbnailBase = /*#__PURE__*/css(["display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden;border:1px solid ", ";border-radius:", "px;margin:0;", " ", " &:focus{", ";}", " ", " ", ""], colors.gray85, borderRadius.md, function (_ref6) {
69
69
  var $clickable = _ref6.$clickable;
@@ -85,7 +85,7 @@ var thumbnailBase = /*#__PURE__*/css(["display:flex;justify-content:center;align
85
85
  });
86
86
  export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
87
87
  displayName: "StyledTickIcon",
88
- componentId: "core-12_25_2__sc-195f70c-9"
88
+ componentId: "core-12_26_1__sc-195f70c-9"
89
89
  })(["position:absolute;top:", "px;right:", "px;width:", "px;height:", "px;opacity:0;transform:scale(0.75);transition:transform 250ms ease-out,opacity 100ms ease-out;", " ", ""], spacing.sm, spacing.sm, tickSize, tickSize, function (_ref1) {
90
90
  var $selected = _ref1.$selected;
91
91
  return $selected && css(["opacity:1;transform:scale(1);"]);
@@ -95,28 +95,28 @@ export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
95
95
  });
96
96
  export var StyledFileIcon = /*#__PURE__*/styled(DocumentIcon).withConfig({
97
97
  displayName: "StyledFileIcon",
98
- componentId: "core-12_25_2__sc-195f70c-10"
98
+ componentId: "core-12_26_1__sc-195f70c-10"
99
99
  })(["width:36.5%;height:auto;"]);
100
100
  export var StyledImageThumbnailPreview = /*#__PURE__*/styled.div.withConfig({
101
101
  displayName: "StyledImageThumbnailPreview",
102
- componentId: "core-12_25_2__sc-195f70c-11"
102
+ componentId: "core-12_26_1__sc-195f70c-11"
103
103
  })(["width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;", ""], function (_ref11) {
104
104
  var $bgImage = _ref11.$bgImage;
105
105
  return css(["background-image:url(", ");"], $bgImage);
106
106
  });
107
107
  export var StyledImageThumbnailOverlay = /*#__PURE__*/styled.div.withConfig({
108
108
  displayName: "StyledImageThumbnailOverlay",
109
- componentId: "core-12_25_2__sc-195f70c-12"
109
+ componentId: "core-12_26_1__sc-195f70c-12"
110
110
  })(["display:none;position:absolute;top:0;bottom:0;left:0;right:0;"]);
111
111
  var blackOverlay = "\n background-color: ".concat(colors.black, ";\n opacity: 0.2;\n");
112
112
  var whiteOverlay = "\n background-color: ".concat(colors.white, ";\n opacity: 0.5;\n");
113
113
  export var StyledImageThumbnailImage = /*#__PURE__*/styled.img.withConfig({
114
114
  displayName: "StyledImageThumbnailImage",
115
- componentId: "core-12_25_2__sc-195f70c-13"
115
+ componentId: "core-12_26_1__sc-195f70c-13"
116
116
  })([""]);
117
117
  export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
118
118
  displayName: "StyledImageThumbnail",
119
- componentId: "core-12_25_2__sc-195f70c-14"
119
+ componentId: "core-12_26_1__sc-195f70c-14"
120
120
  })(["", ";flex-direction:column;", " ", " ", " ", " ", " ", ""], thumbnailBase, function (_ref12) {
121
121
  var $disabled = _ref12.$disabled;
122
122
  return $disabled && css(["&,&:hover{", "{display:block;", "}}", ",", ",", "{filter:saturate(0);}", "{filter:saturate(0);z-index:-1;}"], StyledImageThumbnailOverlay, whiteOverlay, StyledImageThumbnailPreview, StyledTickIcon, StyledImageThumbnailImage, StyledFileIcon);
@@ -145,7 +145,7 @@ export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
145
145
  });
146
146
  export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
147
147
  displayName: "StyledThumbnailWrapper",
148
- componentId: "core-12_25_2__sc-195f70c-15"
148
+ componentId: "core-12_26_1__sc-195f70c-15"
149
149
  })(["display:flex;", " ", ""], function (_ref18) {
150
150
  var $size = _ref18.$size;
151
151
  return $size === 'lg' ? "\n width: ".concat(thumbnailSizeLg, "px;\n ") : '';
@@ -156,7 +156,7 @@ export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
156
156
  });
157
157
  export var StyledPlaceholderThumbnail = /*#__PURE__*/styled.div.withConfig({
158
158
  displayName: "StyledPlaceholderThumbnail",
159
- componentId: "core-12_25_2__sc-195f70c-16"
159
+ componentId: "core-12_26_1__sc-195f70c-16"
160
160
  })(["", " ", " ", " ", " ", ""], thumbnailBase, function (_ref20) {
161
161
  var $clickable = _ref20.$clickable;
162
162
  return $clickable && css(["&:hover{background-color:", ";}"], colors.gray96);
@@ -7,31 +7,31 @@ import { getEllipsis } from '../_styles/mixins';
7
7
  import { spacing } from '../_styles/spacing';
8
8
  export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
9
9
  displayName: "StyledCheckbox",
10
- componentId: "core-12_25_2__sc-1inrbm9-0"
10
+ componentId: "core-12_26_1__sc-1inrbm9-0"
11
11
  })(["input{z-index:2;}"]);
12
12
  export var StyledGroupCell = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledGroupCell",
14
- componentId: "core-12_25_2__sc-1inrbm9-1"
14
+ componentId: "core-12_26_1__sc-1inrbm9-1"
15
15
  })(["display:flex;align-items:flex-end;padding-bottom:", "px;"], spacing.md);
16
16
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
17
  displayName: "StyledThumbnail",
18
- componentId: "core-12_25_2__sc-1inrbm9-2"
18
+ componentId: "core-12_26_1__sc-1inrbm9-2"
19
19
  })(["display:inline-flex;&:focus{outline:none;}"]);
20
20
  // VariableSizeGrid has provided width and height as inline style, so to make it flexible and support responsive !important was added
21
21
  export var StyledVariableSizeGrid = /*#__PURE__*/styled(VariableSizeGrid).withConfig({
22
22
  displayName: "StyledVariableSizeGrid",
23
- componentId: "core-12_25_2__sc-1inrbm9-3"
23
+ componentId: "core-12_26_1__sc-1inrbm9-3"
24
24
  })(["height:100% !important;& > div{width:100% !important;}"]);
25
25
  export var StyledGroupTitle = /*#__PURE__*/styled(Typography).withConfig({
26
26
  displayName: "StyledGroupTitle",
27
- componentId: "core-12_25_2__sc-1inrbm9-4"
27
+ componentId: "core-12_26_1__sc-1inrbm9-4"
28
28
  })(["", ""], getEllipsis);
29
29
  export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSpinnerWrapper",
31
- componentId: "core-12_25_2__sc-1inrbm9-5"
31
+ componentId: "core-12_26_1__sc-1inrbm9-5"
32
32
  })(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;"]);
33
33
  export var StyledThumbnailGrid = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledThumbnailGrid",
35
- componentId: "core-12_25_2__sc-1inrbm9-6"
35
+ componentId: "core-12_26_1__sc-1inrbm9-6"
36
36
  })(["display:flex;flex-wrap:wrap;outline:none;"]);
37
37
  //# sourceMappingURL=ThumbnailGrid.styles.js.map
@@ -2,7 +2,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2
2
  var _excluded = ["onClick"],
3
3
  _excluded2 = ["children", "emptyMessage"],
4
4
  _excluded3 = ["children", "currentTier", "footer", "loading", "loadingMore", "menuRef", "onNavigate", "onSearch", "onChange", "options", "value", "previousValue"],
5
- _excluded4 = ["className", "disabled", "error", "loading", "onKeyDown", "options", "value"];
5
+ _excluded4 = ["className", "disabled", "error", "loading", "onKeyDown", "aria-labelledby", "options", "value"];
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -398,6 +398,7 @@ export var TierSelectionTieredSelect = /*#__PURE__*/React.forwardRef(function Ti
398
398
  _ref5$loading = _ref5.loading,
399
399
  loading = _ref5$loading === void 0 ? false : _ref5$loading,
400
400
  onKeyDown = _ref5.onKeyDown,
401
+ ariaLabelledby = _ref5['aria-labelledby'],
401
402
  _ref5$options = _ref5.options,
402
403
  options = _ref5$options === void 0 ? empty : _ref5$options,
403
404
  _ref5$value = _ref5.value,
@@ -532,6 +533,7 @@ export var TierSelectionTieredSelect = /*#__PURE__*/React.forwardRef(function Ti
532
533
  placeholder: I18n.t('placeholder', {
533
534
  scope: i18nScope
534
535
  }),
536
+ "aria-labelledby": ariaLabelledby,
535
537
  onClear: internalOnClear,
536
538
  ref: tieredSelectButtonRef,
537
539
  tabIndex: tabIndex