@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
@@ -33,22 +33,22 @@ export function getSearchInputStyles() {
33
33
  }
34
34
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
35
35
  displayName: "StyledInput",
36
- componentId: "core-12_25_1__sc-3j8khv-0"
36
+ componentId: "core-12_26_0__sc-3j8khv-0"
37
37
  })(["", ""], getSearchInputStyles);
38
38
  var StyledButton = /*#__PURE__*/styled(Button).withConfig({
39
39
  displayName: "StyledButton",
40
- componentId: "core-12_25_1__sc-3j8khv-1"
40
+ componentId: "core-12_26_0__sc-3j8khv-1"
41
41
  })(["position:absolute;top:", "px;"], buttonTop);
42
42
  export var StyledSearchButton = /*#__PURE__*/styled(StyledButton).withConfig({
43
43
  displayName: "StyledSearchButton",
44
- componentId: "core-12_25_1__sc-3j8khv-2"
44
+ componentId: "core-12_26_0__sc-3j8khv-2"
45
45
  })([""]);
46
46
  export var StyledClearButton = /*#__PURE__*/styled(StyledButton).withConfig({
47
47
  displayName: "StyledClearButton",
48
- componentId: "core-12_25_1__sc-3j8khv-3"
48
+ componentId: "core-12_26_0__sc-3j8khv-3"
49
49
  })([""]);
50
50
  export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
51
51
  displayName: "StyledSearch",
52
- componentId: "core-12_25_1__sc-3j8khv-4"
52
+ componentId: "core-12_26_0__sc-3j8khv-4"
53
53
  })(["position:relative;width:100%;", "{padding-right:", "px;}", "{right:", "px;}", "{right:", "px;}"], StyledInput, inputRight, StyledSearchButton, searchRight, StyledClearButton, clearRight);
54
54
  //# sourceMappingURL=Search.styles.js.map
@@ -15,13 +15,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
15
15
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
16
  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; }
17
17
  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; }
18
- import { ChevronDown, ChevronRight } from '@procore/core-icons/dist';
18
+ import { ChevronDown, ChevronRight } from '@procore/core-icons';
19
19
  import cx from 'classnames';
20
20
  import React from 'react';
21
21
  import { ulid } from 'ulid';
22
- import { Button } from '../Button/Button';
22
+ import { Button } from '../Button';
23
23
  import { getHeadingComponent } from '../Semantic/Semantic';
24
- import { Title } from '../Title/Title';
24
+ import { Title } from '../Title';
25
25
  import { sectionClassnames, StyledSection, StyledSectionBanner, StyledSectionCollapseHeading, StyledSectionContentRegion, StyledSectionHeader, StyledSectionInner, StyledTitle } from './Section.styles';
26
26
  var isFunction = function isFunction(obj) {
27
27
  return typeof obj === 'function';
@@ -123,7 +123,7 @@ export var Section = /*#__PURE__*/React.forwardRef(function Section(_ref3, ref)
123
123
  onClick: toggleOpen,
124
124
  variant: "tertiary"
125
125
  })) : null, /*#__PURE__*/React.createElement(StyledTitle, null, /*#__PURE__*/React.createElement(Title.Text, null, heading && /*#__PURE__*/React.createElement(Heading, {
126
- "aria-hidden": expandId ? true : false,
126
+ "aria-hidden": !!expandId,
127
127
  id: headingTextId
128
128
  // Pass level since Heading component renders
129
129
  // under the incremented (level + 1) LevelProvider.
@@ -136,7 +136,8 @@ export var Section = /*#__PURE__*/React.forwardRef(function Section(_ref3, ref)
136
136
  "aria-hidden": !open,
137
137
  "aria-labelledby": heading ? headingTextId : undefined,
138
138
  id: contentRegionId,
139
- role: "region",
139
+ role: heading ? 'region' : undefined,
140
+ tabIndex: open ? 0 : -1,
140
141
  $closed: expandClosed,
141
142
  $noHeader: !hasHeader
142
143
  }, open ? children : null))));
@@ -1 +1 @@
1
- {"version":3,"file":"Section.js","names":["ChevronDown","ChevronRight","cx","React","ulid","Button","getHeadingComponent","Title","sectionClassnames","StyledSection","StyledSectionBanner","StyledSectionCollapseHeading","StyledSectionContentRegion","StyledSectionHeader","StyledSectionInner","StyledTitle","isFunction","obj","LevelContext","createContext","SectionContext","open","setSection","toggleSection","Heading","_ref","level_","level","props","_objectWithoutProperties","_excluded","useContext","H","createElement","SectionProvider","_ref2","children","_React$useState","useState","_React$useState2","_slicedToArray","setSectionsOpen","id","prev","_objectSpread","_defineProperty","Provider","value","Section","forwardRef","_ref3","ref","actions","banner","className","expandId","heading","_ref3$initialIsOpen","initialIsOpen","pills","subtext","assets","_excluded2","sections","toggleOpen","useCallback","useEffect","undefined","_React$useMemo","useMemo","contentRegionId","concat","headingTextId","expandClosed","divide","hasHeader","_extends","levelAnonymous","role","icon","onClick","variant","Text","Subtext","Pills","Actions","Assets","$closed","$noHeader","displayName"],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@procore/core-icons/dist'\nimport cx from 'classnames'\nimport React from 'react'\nimport { ulid } from 'ulid'\nimport { Button } from '../Button/Button'\nimport { getHeadingComponent } from '../Semantic/Semantic'\nimport type { HeadingProps } from '../Semantic/Semantic.types'\nimport { Title } from '../Title/Title'\nimport {\n sectionClassnames,\n StyledSection,\n StyledSectionBanner,\n StyledSectionCollapseHeading,\n StyledSectionContentRegion,\n StyledSectionHeader,\n StyledSectionInner,\n StyledTitle,\n} from './Section.styles'\nimport type {\n SectionContextAPI,\n SectionProps,\n SectionProviderProps,\n} from './Section.types'\n\nconst isFunction = (obj: unknown): boolean => typeof obj === 'function'\n\n// Header levels start at level 2\nexport const LevelContext = React.createContext(2)\n\nconst SectionContext = React.createContext<SectionContextAPI>({\n open: {},\n setSection: () => {},\n toggleSection: () => {},\n})\n\nexport function Heading({\n level: level_,\n ...props\n}: HeadingProps & { level?: number }) {\n const level = React.useContext(LevelContext)\n const H = getHeadingComponent(level_ || level)\n return <H {...props} />\n}\n\nexport const SectionProvider = ({ children }: SectionProviderProps) => {\n const [open, setSectionsOpen] = React.useState<{\n [key: string]: boolean\n }>({})\n\n const toggleSection: SectionContextAPI['toggleSection'] = (id) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: !prev[id],\n }))\n\n const setSection: SectionContextAPI['setSection'] = (id, open) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: open,\n }))\n\n return (\n <SectionContext.Provider\n value={{\n open,\n toggleSection,\n setSection,\n }}\n >\n {children}\n </SectionContext.Provider>\n )\n}\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development. See Panel.Section or DetailPage.Section\n */\nexport const Section = React.forwardRef<HTMLDivElement, SectionProps>(\n function Section(\n {\n actions,\n banner,\n children,\n className,\n expandId,\n heading,\n initialIsOpen = true,\n pills,\n subtext,\n assets,\n ...props\n },\n ref\n ) {\n const level = React.useContext(LevelContext)\n\n const sections = React.useContext(SectionContext)\n const toggleOpen = React.useCallback(() => {\n if (expandId) {\n sections.toggleSection(expandId)\n }\n }, [expandId])\n const open = expandId ? sections.open[expandId] : true\n\n React.useEffect(() => {\n if (expandId && open === undefined) {\n sections.setSection(expandId, initialIsOpen)\n }\n }, [])\n\n const { contentRegionId, headingTextId } = React.useMemo(() => {\n return {\n contentRegionId: `content-${ulid()}`,\n headingTextId: `heading-${ulid()}`,\n }\n }, [])\n\n const expandClosed = !open || !children\n const divide = level >= 3 || !heading\n const hasHeader = heading || actions\n\n return (\n <LevelContext.Provider value={level + 1}>\n <StyledSection\n ref={ref}\n className={cx(className, {\n [sectionClassnames.divide]: divide,\n [sectionClassnames.levelAnonymous]: !heading,\n [sectionClassnames.level(level)]: heading && level,\n })}\n {...props}\n >\n <StyledSectionInner>\n {banner && <StyledSectionBanner>{banner}</StyledSectionBanner>}\n\n {hasHeader ? (\n <StyledSectionHeader>\n {expandId ? (\n <StyledSectionCollapseHeading\n aria-labelledby={headingTextId}\n aria-level={level}\n role=\"heading\"\n >\n <Button\n aria-controls={contentRegionId}\n aria-expanded={open}\n aria-labelledby={headingTextId}\n icon={open ? <ChevronDown /> : <ChevronRight />}\n onClick={toggleOpen}\n variant=\"tertiary\"\n />\n </StyledSectionCollapseHeading>\n ) : null}\n <StyledTitle>\n <Title.Text>\n {heading && (\n <Heading\n aria-hidden={expandId ? true : false}\n id={headingTextId}\n // Pass level since Heading component renders\n // under the incremented (level + 1) LevelProvider.\n // Alternative, render Heading as a variable outside of return.\n level={level}\n >\n {heading}\n </Heading>\n )}\n </Title.Text>\n <Title.Subtext>{subtext}</Title.Subtext>\n <Title.Pills>{pills}</Title.Pills>\n <Title.Actions>\n {isFunction(actions)\n ? (actions as Function)({ open })\n : actions}\n </Title.Actions>\n <Title.Assets>{assets}</Title.Assets>\n </StyledTitle>\n </StyledSectionHeader>\n ) : null}\n <StyledSectionContentRegion\n aria-hidden={!open}\n aria-labelledby={heading ? headingTextId : undefined}\n id={contentRegionId}\n role=\"region\"\n $closed={expandClosed}\n $noHeader={!hasHeader}\n >\n {open ? children : null}\n </StyledSectionContentRegion>\n </StyledSectionInner>\n </StyledSection>\n </LevelContext.Provider>\n )\n }\n)\n\nSection.displayName = 'Section'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,0BAA0B;AACpE,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,MAAM;AAC3B,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,mBAAmB,QAAQ,sBAAsB;AAE1D,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SACEC,iBAAiB,EACjBC,aAAa,EACbC,mBAAmB,EACnBC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,mBAAmB,EACnBC,kBAAkB,EAClBC,WAAW,QAC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AAC1B,KAAK,CAAC6E,KAAK,QAAEzB,KAAmB,CAAC,eAClCxD,KAAA,CAAA8B,aAAA,CAAC1B,KAAK,CAAC8E,OAAO,QACXrE,UAAU,CAACoC,OAAO,CAAC,GACfA,OAAO,CAAc;IAAE/B,IAAI,EAAJA;EAAK,CAAC,CAAC,GAC/B+B,OACS,CAAC,eAChBjD,KAAA,CAAA8B,aAAA,CAAC1B,KAAK,CAAC+E,MAAM,QAAEzB,MAAqB,CACzB,CACM,CAAC,GACpB,IAAI,eACR1D,KAAA,CAAA8B,aAAA,CAACrB,0BAA0B;IACzB,eAAa,CAACS,IAAK;IACnB,mBAAiBmC,OAAO,GAAGgB,aAAa,GAAGL,SAAU;IACrDzB,EAAE,EAAE4B,eAAgB;IACpBQ,IAAI,EAAC,QAAQ;IACbS,OAAO,EAAEd,YAAa;IACtBe,SAAS,EAAE,CAACb;EAAU,GAErBtD,IAAI,GAAGe,QAAQ,GAAG,IACO,CACV,CACP,CACM,CAAC;AAE5B,CACF,CAAC;AAEDY,OAAO,CAACyC,WAAW,GAAG,SAAS"}
1
+ {"version":3,"file":"Section.js","names":["ChevronDown","ChevronRight","cx","React","ulid","Button","getHeadingComponent","Title","sectionClassnames","StyledSection","StyledSectionBanner","StyledSectionCollapseHeading","StyledSectionContentRegion","StyledSectionHeader","StyledSectionInner","StyledTitle","isFunction","obj","LevelContext","createContext","SectionContext","open","setSection","toggleSection","Heading","_ref","level_","level","props","_objectWithoutProperties","_excluded","useContext","H","createElement","SectionProvider","_ref2","children","_React$useState","useState","_React$useState2","_slicedToArray","setSectionsOpen","id","prev","_objectSpread","_defineProperty","Provider","value","Section","forwardRef","_ref3","ref","actions","banner","className","expandId","heading","_ref3$initialIsOpen","initialIsOpen","pills","subtext","assets","_excluded2","sections","toggleOpen","useCallback","useEffect","undefined","_React$useMemo","useMemo","contentRegionId","concat","headingTextId","expandClosed","divide","hasHeader","_extends","levelAnonymous","role","icon","onClick","variant","Text","Subtext","Pills","Actions","Assets","tabIndex","$closed","$noHeader","displayName"],"sources":["../../src/Section/Section.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@procore/core-icons'\nimport cx from 'classnames'\nimport React from 'react'\nimport { ulid } from 'ulid'\nimport { Button } from '../Button'\nimport { getHeadingComponent } from '../Semantic/Semantic'\nimport type { HeadingProps } from '../Semantic/Semantic.types'\nimport { Title } from '../Title'\nimport {\n sectionClassnames,\n StyledSection,\n StyledSectionBanner,\n StyledSectionCollapseHeading,\n StyledSectionContentRegion,\n StyledSectionHeader,\n StyledSectionInner,\n StyledTitle,\n} from './Section.styles'\nimport type {\n SectionContextAPI,\n SectionProps,\n SectionProviderProps,\n} from './Section.types'\n\nconst isFunction = (obj: unknown): boolean => typeof obj === 'function'\n\n// Header levels start at level 2\nexport const LevelContext = React.createContext(2)\n\nconst SectionContext = React.createContext<SectionContextAPI>({\n open: {},\n setSection: () => {},\n toggleSection: () => {},\n})\n\nexport function Heading({\n level: level_,\n ...props\n}: HeadingProps & { level?: number }) {\n const level = React.useContext(LevelContext)\n const H = getHeadingComponent(level_ || level)\n return <H {...props} />\n}\n\nexport const SectionProvider = ({ children }: SectionProviderProps) => {\n const [open, setSectionsOpen] = React.useState<{\n [key: string]: boolean\n }>({})\n\n const toggleSection: SectionContextAPI['toggleSection'] = (id) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: !prev[id],\n }))\n\n const setSection: SectionContextAPI['setSection'] = (id, open) =>\n setSectionsOpen((prev) => ({\n ...prev,\n [id]: open,\n }))\n\n return (\n <SectionContext.Provider\n value={{\n open,\n toggleSection,\n setSection,\n }}\n >\n {children}\n </SectionContext.Provider>\n )\n}\n/**\n * @deprecatedSince 11\n * @deprecated Intended for internal library development. See Panel.Section or DetailPage.Section\n */\nexport const Section = React.forwardRef<HTMLDivElement, SectionProps>(\n function Section(\n {\n actions,\n banner,\n children,\n className,\n expandId,\n heading,\n initialIsOpen = true,\n pills,\n subtext,\n assets,\n ...props\n },\n ref\n ) {\n const level = React.useContext(LevelContext)\n\n const sections = React.useContext(SectionContext)\n const toggleOpen = React.useCallback(() => {\n if (expandId) {\n sections.toggleSection(expandId)\n }\n }, [expandId])\n const open = expandId ? sections.open[expandId] : true\n\n React.useEffect(() => {\n if (expandId && open === undefined) {\n sections.setSection(expandId, initialIsOpen)\n }\n }, [])\n\n const { contentRegionId, headingTextId } = React.useMemo(() => {\n return {\n contentRegionId: `content-${ulid()}`,\n headingTextId: `heading-${ulid()}`,\n }\n }, [])\n\n const expandClosed = !open || !children\n const divide = level >= 3 || !heading\n const hasHeader = heading || actions\n\n return (\n <LevelContext.Provider value={level + 1}>\n <StyledSection\n ref={ref}\n className={cx(className, {\n [sectionClassnames.divide]: divide,\n [sectionClassnames.levelAnonymous]: !heading,\n [sectionClassnames.level(level)]: heading && level,\n })}\n {...props}\n >\n <StyledSectionInner>\n {banner && <StyledSectionBanner>{banner}</StyledSectionBanner>}\n\n {hasHeader ? (\n <StyledSectionHeader>\n {expandId ? (\n <StyledSectionCollapseHeading\n aria-labelledby={headingTextId}\n aria-level={level}\n role=\"heading\"\n >\n <Button\n aria-controls={contentRegionId}\n aria-expanded={open}\n aria-labelledby={headingTextId}\n icon={open ? <ChevronDown /> : <ChevronRight />}\n onClick={toggleOpen}\n variant=\"tertiary\"\n />\n </StyledSectionCollapseHeading>\n ) : null}\n <StyledTitle>\n <Title.Text>\n {heading && (\n <Heading\n aria-hidden={!!expandId}\n id={headingTextId}\n // Pass level since Heading component renders\n // under the incremented (level + 1) LevelProvider.\n // Alternative, render Heading as a variable outside of return.\n level={level}\n >\n {heading}\n </Heading>\n )}\n </Title.Text>\n <Title.Subtext>{subtext}</Title.Subtext>\n <Title.Pills>{pills}</Title.Pills>\n <Title.Actions>\n {isFunction(actions)\n ? (actions as Function)({ open })\n : actions}\n </Title.Actions>\n <Title.Assets>{assets}</Title.Assets>\n </StyledTitle>\n </StyledSectionHeader>\n ) : null}\n <StyledSectionContentRegion\n aria-hidden={!open}\n aria-labelledby={heading ? headingTextId : undefined}\n id={contentRegionId}\n role={heading ? 'region' : undefined}\n tabIndex={open ? 0 : -1}\n $closed={expandClosed}\n $noHeader={!hasHeader}\n >\n {open ? children : null}\n </StyledSectionContentRegion>\n </StyledSectionInner>\n </StyledSection>\n </LevelContext.Provider>\n )\n }\n)\n\nSection.displayName = 'Section'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,YAAY,QAAQ,qBAAqB;AAC/D,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,MAAM;AAC3B,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,mBAAmB,QAAQ,sBAAsB;AAE1D,SAASC,KAAK,QAAQ,UAAU;AAChC,SACEC,iBAAiB,EACjBC,aAAa,EACbC,mBAAmB,EACnBC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,mBAAmB,EACnBC,kBAAkB,EAClBC,WAAW,QACN,kBAAkB;AAOzB,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,GAAY;EAAA,OAAc,OAAOA,GAAG,KAAK,UAAU;AAAA;;AAEvE;AACA,OAAO,IAAMC,YAAY,gBAAGf,KAAK,CAACgB,aAAa,CAAC,CAAC,CAAC;AAElD,IAAMC,cAAc,gBAAGjB,KAAK,CAACgB,aAAa,CAAoB;EAC5DE,IAAI,EAAE,CAAC,CAAC;EACRC,UAAU,EAAE,SAAZA,UAAUA,CAAA,EAAQ,CAAC,CAAC;EACpBC,aAAa,EAAE,SAAfA,aAAaA,CAAA,EAAQ,CAAC;AACxB,CAAC,CAAC;AAEF,OAAO,SAASC,OAAOA,CAAAC,IAAA,EAGe;EAAA,IAF7BC,MAAM,GAAAD,IAAA,CAAbE,KAAK;IACFC,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA;EAER,IAAMH,KAAK,GAAGxB,KAAK,CAAC4B,UAAU,CAACb,YAAY,CAAC;EAC5C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ACd;EAAU,GAErBtD,IAAI,GAAGe,QAAQ,GAAG,IACO,CACV,CACP,CACM,CAAC;AAE5B,CACF,CAAC;AAEDY,OAAO,CAAC0C,WAAW,GAAG,SAAS"}
@@ -16,9 +16,9 @@ export declare const StyledSectionHeader: import("styled-components/dist/types")
16
16
  export declare const StyledTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").TitleProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
17
17
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
18
  }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").TitleProps & import("react").RefAttributes<HTMLDivElement>> & {
19
- Pills: import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("react").RefAttributes<HTMLDivElement>>;
20
- Text: import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("react").RefAttributes<HTMLDivElement>>;
21
- Subtext: import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("react").RefAttributes<HTMLDivElement>>;
22
- Actions: import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("react").RefAttributes<HTMLDivElement>>;
23
- Assets: import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("../Title/Title.types").TitleAssetsProps & import("react").RefAttributes<HTMLDivElement>>;
19
+ Pills: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
20
+ Text: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
21
+ Subtext: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
22
+ Actions: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
23
+ Assets: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../Title/Title.types").TitleAssetsProps & import("react").RefAttributes<HTMLDivElement>>;
24
24
  }, keyof import("react").Component<any, {}, any>>;
@@ -2,18 +2,19 @@ import styled, { css } from 'styled-components';
2
2
  import { StyledFormRow } from '../Form/Form.styles';
3
3
  import { Title } from '../Title/Title';
4
4
  import { colors } from '../_styles/colors';
5
+ import { getFocus } from '../_styles/mixins';
5
6
  import { spacing } from '../_styles/spacing';
6
7
  export var StyledSectionBanner = /*#__PURE__*/styled.div.withConfig({
7
8
  displayName: "StyledSectionBanner",
8
- componentId: "core-12_25_1__sc-1lxbrwv-0"
9
+ componentId: "core-12_26_0__sc-1lxbrwv-0"
9
10
  })(["margin-bottom:", "px;> * + *{margin-top:", "px;}"], spacing.sm, spacing.sm);
10
11
  export var StyledSectionInner = /*#__PURE__*/styled.div.withConfig({
11
12
  displayName: "StyledSectionInner",
12
- componentId: "core-12_25_1__sc-1lxbrwv-1"
13
+ componentId: "core-12_26_0__sc-1lxbrwv-1"
13
14
  })([""]);
14
15
  export var StyledSectionCollapseHeading = /*#__PURE__*/styled.div.withConfig({
15
16
  displayName: "StyledSectionCollapseHeading",
16
- componentId: "core-12_25_1__sc-1lxbrwv-2"
17
+ componentId: "core-12_26_0__sc-1lxbrwv-2"
17
18
  })(["align-self:flex-start;margin-right:", "px;"], spacing.sm);
18
19
  export var sectionClassnames = {
19
20
  divide: 'section--divide',
@@ -24,12 +25,12 @@ export var sectionClassnames = {
24
25
  };
25
26
  export var StyledSection = /*#__PURE__*/styled.div.withConfig({
26
27
  displayName: "StyledSection",
27
- componentId: "core-12_25_1__sc-1lxbrwv-3"
28
+ componentId: "core-12_26_0__sc-1lxbrwv-3"
28
29
  })(["padding-left:", "px;padding-right:", "px;padding-bottom:", "px;& > ", "{padding-top:", "px;}&.", "{& > ", "{border-top:1px solid ", ";}}&:first-child > ", "{border-top:0;}& &{padding-left:0;padding-right:0;&:first-child > ", "{border-top:1px solid ", ";}&:last-child{padding-bottom:0;}}", ":last-of-type{margin-bottom:", "px;}", " + &&&{padding-top:", "px;}"], spacing.lg, spacing.lg, spacing.lg, StyledSectionInner, spacing.lg, sectionClassnames.divide, StyledSectionInner, colors.gray85, StyledSectionInner, StyledSectionInner, colors.gray85, StyledFormRow, spacing.lg * -1, StyledFormRow, spacing.xs);
29
30
  export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
30
31
  displayName: "StyledSectionContentRegion",
31
- componentId: "core-12_25_1__sc-1lxbrwv-4"
32
- })(["padding-top:", "px;", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, function (_ref) {
32
+ componentId: "core-12_26_0__sc-1lxbrwv-4"
33
+ })(["padding-top:", "px;&:focus-visible{", "}", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, getFocus(), function (_ref) {
33
34
  var $closed = _ref.$closed;
34
35
  return $closed && css(["padding-top:0;"]);
35
36
  }, function (_ref2) {
@@ -38,10 +39,10 @@ export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
38
39
  }, StyledSection, StyledSection, spacing.xl, StyledSection, StyledSection);
39
40
  export var StyledSectionHeader = /*#__PURE__*/styled.div.withConfig({
40
41
  displayName: "StyledSectionHeader",
41
- componentId: "core-12_25_1__sc-1lxbrwv-5"
42
+ componentId: "core-12_26_0__sc-1lxbrwv-5"
42
43
  })(["align-items:center;display:flex;min-height:36px;word-break:break-word;"]);
43
44
  export var StyledTitle = /*#__PURE__*/styled(Title).withConfig({
44
45
  displayName: "StyledTitle",
45
- componentId: "core-12_25_1__sc-1lxbrwv-6"
46
+ componentId: "core-12_26_0__sc-1lxbrwv-6"
46
47
  })(["width:100%;"]);
47
48
  //# sourceMappingURL=Section.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section.styles.js","names":["styled","css","StyledFormRow","Title","colors","spacing","StyledSectionBanner","div","withConfig","displayName","componentId","sm","StyledSectionInner","StyledSectionCollapseHeading","sectionClassnames","divide","levelAnonymous","level","num","concat","StyledSection","lg","gray85","xs","StyledSectionContentRegion","_ref","$closed","_ref2","$noHeader","xl","StyledSectionHeader","StyledTitle"],"sources":["../../src/Section/Section.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { StyledFormRow } from '../Form/Form.styles'\nimport { Title } from '../Title/Title'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledSectionBanner = styled.div`\n margin-bottom: ${spacing.sm}px;\n\n > * + * {\n margin-top: ${spacing.sm}px;\n }\n`\n\nexport const StyledSectionInner = styled.div``\n\nexport const StyledSectionCollapseHeading = styled.div`\n align-self: flex-start;\n margin-right: ${spacing.sm}px;\n`\n\nexport const sectionClassnames = {\n divide: 'section--divide',\n levelAnonymous: 'section--level-anon',\n level: (num: number) => `section--level-${num}`,\n}\n\nexport const StyledSection = styled.div`\n padding-left: ${spacing.lg}px;\n padding-right: ${spacing.lg}px;\n padding-bottom: ${spacing.lg}px;\n\n & > ${StyledSectionInner} {\n padding-top: ${spacing.lg}px;\n }\n\n // horizontal divider\n &.${sectionClassnames.divide} {\n & > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n }\n\n // if leading, no horizontal divider\n &:first-child > ${StyledSectionInner} {\n border-top: 0;\n }\n\n & & {\n padding-left: 0;\n padding-right: 0;\n\n // if leading in nested, add the division back\n &:first-child > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow}:last-of-type {\n margin-bottom: ${spacing.lg * -1}px;\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow} + &&& {\n padding-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledSectionContentRegion = styled.div<{\n $closed: boolean\n $noHeader: boolean\n}>`\n padding-top: ${spacing.sm}px;\n\n ${({ $closed }) =>\n $closed &&\n css`\n padding-top: 0;\n `}\n\n ${({ $noHeader }) =>\n $noHeader &&\n css`\n padding-top: 0;\n `}\n\n // if a nested section isn't first\n // Section\n // P\n // Section <-- space above\n & > :not(${StyledSection}) + ${StyledSection} {\n padding-top: ${spacing.xl}px;\n }\n\n // nested sections, the last one doesn't need more trailing space\n ${StyledSection} ${StyledSection} &:last-of-type {\n padding-bottom: 0;\n }\n`\n\nexport const StyledSectionHeader = styled.div`\n align-items: center;\n display: flex;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n`\n\nexport const StyledTitle = styled(Title)`\n width: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,mBAAmB,gBAAGN,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAC1BL,OAAO,CAACM,EAAE,EAGXN,OAAO,CAACM,EAAE,CAE3B;AAED,OAAO,IAAMC,kBAAkB,gBAAGZ,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE9C,OAAO,IAAMG,4BAA4B,gBAAGb,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mDAEpCL,OAAO,CAACM,EAAE,CAC3B;AAED,OAAO,IAAMG,iBAAiB,GAAG;EAC/BC,MAAM,EAAE,iBAAiB;EACzBC,cAAc,EAAE,qBAAqB;EACrCC,KAAK,EAAE,SAAPA,KAAKA,CAAGC,GAAW;IAAA,yBAAAC,MAAA,CAAuBD,GAAG;EAAA;AAC/C,CAAC;AAED,OAAO,IAAME,aAAa,gBAAGpB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8WACrBL,OAAO,CAACgB,EAAE,EACThB,OAAO,CAACgB,EAAE,EACThB,OAAO,CAACgB,EAAE,EAEtBT,kBAAkB,EACPP,OAAO,CAACgB,EAAE,EAIvBP,iBAAiB,CAACC,MAAM,EACpBH,kBAAkB,EACER,MAAM,CAACkB,MAAM,EAKvBV,kBAAkB,EAShBA,kBAAkB,EACVR,MAAM,CAACkB,MAAM,EASvCpB,aAAa,EACIG,OAAO,CAACgB,EAAE,GAAG,CAAC,CAAC,EAIhCnB,aAAa,EACEG,OAAO,CAACkB,EAAE,CAE5B;AAED,OAAO,IAAMC,0BAA0B,gBAAGxB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2HAInCL,OAAO,CAACM,EAAE,EAEvB,UAAAc,IAAA;EAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EAAA,OACVA,OAAO,IACPzB,GAAG,oBAEF;AAAA,GAED,UAAA0B,KAAA;EAAA,IAAGC,SAAS,GAAAD,KAAA,CAATC,SAAS;EAAA,OACZA,SAAS,IACT3B,GAAG,oBAEF;AAAA,GAMQmB,aAAa,EAAOA,aAAa,EAC3Bf,OAAO,CAACwB,EAAE,EAIzBT,aAAa,EAAIA,aAAa,CAGjC;AAED,OAAO,IAAMU,mBAAmB,gBAAG9B,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8EAS5C;AAED,OAAO,IAAMqB,WAAW,gBAAG/B,MAAM,CAACG,KAAK,CAAC,CAAAK,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mBAEvC"}
1
+ {"version":3,"file":"Section.styles.js","names":["styled","css","StyledFormRow","Title","colors","getFocus","spacing","StyledSectionBanner","div","withConfig","displayName","componentId","sm","StyledSectionInner","StyledSectionCollapseHeading","sectionClassnames","divide","levelAnonymous","level","num","concat","StyledSection","lg","gray85","xs","StyledSectionContentRegion","_ref","$closed","_ref2","$noHeader","xl","StyledSectionHeader","StyledTitle"],"sources":["../../src/Section/Section.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { StyledFormRow } from '../Form/Form.styles'\nimport { Title } from '../Title/Title'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledSectionBanner = styled.div`\n margin-bottom: ${spacing.sm}px;\n\n > * + * {\n margin-top: ${spacing.sm}px;\n }\n`\n\nexport const StyledSectionInner = styled.div``\n\nexport const StyledSectionCollapseHeading = styled.div`\n align-self: flex-start;\n margin-right: ${spacing.sm}px;\n`\n\nexport const sectionClassnames = {\n divide: 'section--divide',\n levelAnonymous: 'section--level-anon',\n level: (num: number) => `section--level-${num}`,\n}\n\nexport const StyledSection = styled.div`\n padding-left: ${spacing.lg}px;\n padding-right: ${spacing.lg}px;\n padding-bottom: ${spacing.lg}px;\n\n & > ${StyledSectionInner} {\n padding-top: ${spacing.lg}px;\n }\n\n // horizontal divider\n &.${sectionClassnames.divide} {\n & > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n }\n\n // if leading, no horizontal divider\n &:first-child > ${StyledSectionInner} {\n border-top: 0;\n }\n\n & & {\n padding-left: 0;\n padding-right: 0;\n\n // if leading in nested, add the division back\n &:first-child > ${StyledSectionInner} {\n border-top: 1px solid ${colors.gray85};\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow}:last-of-type {\n margin-bottom: ${spacing.lg * -1}px;\n }\n\n // form rows have trailing space for error message\n ${StyledFormRow} + &&& {\n padding-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledSectionContentRegion = styled.div<{\n $closed: boolean\n $noHeader: boolean\n}>`\n padding-top: ${spacing.sm}px;\n\n &:focus-visible {\n ${getFocus()}\n }\n\n ${({ $closed }) =>\n $closed &&\n css`\n padding-top: 0;\n `}\n\n ${({ $noHeader }) =>\n $noHeader &&\n css`\n padding-top: 0;\n `}\n\n // if a nested section isn't first\n // Section\n // P\n // Section <-- space above\n & > :not(${StyledSection}) + ${StyledSection} {\n padding-top: ${spacing.xl}px;\n }\n\n // nested sections, the last one doesn't need more trailing space\n ${StyledSection} ${StyledSection} &:last-of-type {\n padding-bottom: 0;\n }\n`\n\nexport const StyledSectionHeader = styled.div`\n align-items: center;\n display: flex;\n // min-height on header for alignment:\n // - when heading line height is less than the collapse button height\n // - when heading line height is less than the button size it will shift\n // the heading text when the section is opened and buttons appear\n min-height: 36px;\n word-break: break-word;\n`\n\nexport const StyledTitle = styled(Title)`\n width: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,mBAAmB,gBAAGP,MAAM,CAACQ,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAC1BL,OAAO,CAACM,EAAE,EAGXN,OAAO,CAACM,EAAE,CAE3B;AAED,OAAO,IAAMC,kBAAkB,gBAAGb,MAAM,CAACQ,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE9C,OAAO,IAAMG,4BAA4B,gBAAGd,MAAM,CAACQ,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mDAEpCL,OAAO,CAACM,EAAE,CAC3B;AAED,OAAO,IAAMG,iBAAiB,GAAG;EAC/BC,MAAM,EAAE,iBAAiB;EACzBC,cAAc,EAAE,qBAAqB;EACrCC,KAAK,EAAE,SAAPA,KAAKA,CAAGC,GAAW;IAAA,yBAAAC,M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'../_styles/spacing';
6
6
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledContainer",
8
- componentId: "core-12_25_1__sc-ocai3-0"
8
+ componentId: "core-12_26_0__sc-ocai3-0"
9
9
  })(["align-items:center;display:", ";height:36px;justify-content:center;width:", ";"], function (_ref) {
10
10
  var $block = _ref.$block;
11
11
  return $block ? 'flex' : 'inline-flex';
@@ -15,7 +15,7 @@ export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
15
15
  });
16
16
  export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
17
17
  displayName: "StyledSegment",
18
- componentId: "core-12_25_1__sc-ocai3-1"
18
+ componentId: "core-12_26_0__sc-ocai3-1"
19
19
  })(["align-items:center;border-radius:0;border:1px solid ", ";cursor:pointer;display:flex;flex:1 1 auto;height:100%;justify-content:center;min-width:0;outline:0;padding:0 ", "px;position:relative;background-color:", ";color:", ";&:hover{background-color:", ";border-color:", ";color:", ";}", " ", ";"], colors.gray85, spacing.md, colors.white, colors.gray45, colors.gray94, colors.gray85, colors.gray45, function (_ref3) {
20
20
  var _ref3$$focused = _ref3.$focused,
21
21
  $focused = _ref3$$focused === void 0 ? false : _ref3$$focused;
@@ -37,10 +37,10 @@ export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
37
37
  });
38
38
  export var StyledSegmentDisabledInteractiveWrapper = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledSegmentDisabledInteractiveWrapper",
40
- componentId: "core-12_25_1__sc-ocai3-2"
40
+ componentId: "core-12_26_0__sc-ocai3-2"
41
41
  })(["display:flex;flex:1 1 auto;min-width:0;height:100%;margin-right:-1px;&:first-child ", "{border-bottom-left-radius:", "px;border-top-left-radius:", "px;}&:last-child ", "{border-bottom-right-radius:", "px;border-top-right-radius:", "px;}"], StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md);
42
42
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
43
43
  displayName: "StyledLabel",
44
- componentId: "core-12_25_1__sc-ocai3-3"
44
+ componentId: "core-12_26_0__sc-ocai3-3"
45
45
  })(["", ";display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], getTypographyIntent('body'));
46
46
  //# sourceMappingURL=SegmentedController.styles.js.map
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { DivAttributes, Placement, Props } from '../_utils/types';
2
+ import type { Placement, Props } from '../_utils/types';
3
3
  /**
4
4
  * @deprecated Please use the `active` and `disabled` props
5
5
  * @deprecatedSince 11
@@ -9,7 +9,7 @@ export declare const segmentedControllerSegmentVariant: {
9
9
  readonly disabled: "disabled";
10
10
  readonly none: "";
11
11
  };
12
- export interface SegmentedControllerProps extends Props, Omit<DivAttributes, 'onChange'> {
12
+ export interface SegmentedControllerProps extends Props, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
13
13
  /**
14
14
  * The segment is active
15
15
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedController.types.js","names":["segmentedControllerSegmentVariant","active","disabled","none"],"sources":["../../src/SegmentedController/SegmentedController.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { DivAttributes, Placement, Props } from '../_utils/types'\n\n/**\n * @deprecated Please use the `active` and `disabled` props\n * @deprecatedSince 11\n */\nexport const segmentedControllerSegmentVariant = {\n active: 'active',\n disabled: 'disabled',\n none: '',\n} as const\n\nexport interface SegmentedControllerProps\n extends Props,\n Omit<DivAttributes, 'onChange'> {\n /**\n * The segment is active\n * @since 10.19.0\n * @deprecated The property is not used anywhere\n * @deprecatedSince 12.18.0\n * */\n active?: number\n\n /**\n * The segment controller is block sized\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * Disables all segments in the controller\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * A callback to be called when the radio group value changes\n * @since 10.19.0\n */\n onChange?: (selected: number) => void\n\n /**\n * @deprecated Please use the `block` prop\n * @deprecatedSince 11\n * @since 10.19.0\n */\n variant?: 'block' | ''\n}\n\nexport interface SegmentedControllerSegmentProps extends Props {\n /**\n * The segment is active\n * @since 10.19.0\n * @deprecated Use `selected` instead\n * @deprecatedSince 12.18.0\n */\n active?: boolean\n\n /**\n * Is the segment disabled\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * To change the tooltip placement\n * @since 10.19.0\n */\n placement?: Placement\n\n /**\n * The segment is selected\n * @since 12.18.0\n * */\n selected?: boolean\n\n /**\n * The tooltip we want to display on hover\n * @since 10.19.0\n */\n tooltip?: React.ReactNode\n\n /**\n * A number to be used as radio input value\n * @internal\n * @since 11.3.0\n */\n internalIndex?: number\n}\n\nexport interface SegmentedControllerTooltipProps extends Props {\n /**\n * @since 10.19.0\n */\n overlay?: any\n /**\n * @since 10.19.0\n */\n placement: Placement\n}\n"],"mappings":"AAGA;AACA;AACA;AACA;AACA,OAAO,IAAMA,iCAAiC,GAAG;EAC/CC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,IAAI,EAAE;AACR,CAAU"}
1
+ {"version":3,"file":"SegmentedController.types.js","names":["segmentedControllerSegmentVariant","active","disabled","none"],"sources":["../../src/SegmentedController/SegmentedController.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { Placement, Props } from '../_utils/types'\n\n/**\n * @deprecated Please use the `active` and `disabled` props\n * @deprecatedSince 11\n */\nexport const segmentedControllerSegmentVariant = {\n active: 'active',\n disabled: 'disabled',\n none: '',\n} as const\n\nexport interface SegmentedControllerProps\n extends Props,\n Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {\n /**\n * The segment is active\n * @since 10.19.0\n * @deprecated The property is not used anywhere\n * @deprecatedSince 12.18.0\n * */\n active?: number\n\n /**\n * The segment controller is block sized\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * Disables all segments in the controller\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * A callback to be called when the radio group value changes\n * @since 10.19.0\n */\n onChange?: (selected: number) => void\n\n /**\n * @deprecated Please use the `block` prop\n * @deprecatedSince 11\n * @since 10.19.0\n */\n variant?: 'block' | ''\n}\n\nexport interface SegmentedControllerSegmentProps extends Props {\n /**\n * The segment is active\n * @since 10.19.0\n * @deprecated Use `selected` instead\n * @deprecatedSince 12.18.0\n */\n active?: boolean\n\n /**\n * Is the segment disabled\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * To change the tooltip placement\n * @since 10.19.0\n */\n placement?: Placement\n\n /**\n * The segment is selected\n * @since 12.18.0\n * */\n selected?: boolean\n\n /**\n * The tooltip we want to display on hover\n * @since 10.19.0\n */\n tooltip?: React.ReactNode\n\n /**\n * A number to be used as radio input value\n * @internal\n * @since 11.3.0\n */\n internalIndex?: number\n}\n\nexport interface SegmentedControllerTooltipProps extends Props {\n /**\n * @since 10.19.0\n */\n overlay?: any\n /**\n * @since 10.19.0\n */\n placement: Placement\n}\n"],"mappings":"AAGA;AACA;AACA;AACA;AACA,OAAO,IAAMA,iCAAiC,GAAG;EAC/CC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,IAAI,EAAE;AACR,CAAU"}
@@ -4,9 +4,9 @@ export declare const dataQa: {
4
4
  hovered: string;
5
5
  };
6
6
  export declare const tableSelectClassName = "select--table";
7
- export declare const StyledSelectMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").DivAttributes & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
7
+ export declare const StyledSelectMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").DivAttributes & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
9
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
10
10
  export declare const StyledSelectButtonLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
11
11
  $hoverable: boolean;
12
12
  }>> & string;
@@ -17,34 +17,34 @@ export var tableSelectClassName = 'select--table';
17
17
  var styledSelectButtonDefaultWidth = 248;
18
18
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
19
19
  displayName: "StyledSelectMenu",
20
- componentId: "core-12_25_1__sc-mr8gwe-0"
20
+ componentId: "core-12_26_0__sc-mr8gwe-0"
21
21
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
22
22
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledSelectButtonLabel",
24
- componentId: "core-12_25_1__sc-mr8gwe-1"
24
+ componentId: "core-12_26_0__sc-mr8gwe-1"
25
25
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
26
26
  var $hoverable = _ref.$hoverable;
27
27
  return $hoverable ? 'initial' : 'none';
28
28
  });
29
29
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSelectSpinner",
31
- componentId: "core-12_25_1__sc-mr8gwe-2"
31
+ componentId: "core-12_26_0__sc-mr8gwe-2"
32
32
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
33
33
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledSelectArrowContainer",
35
- componentId: "core-12_25_1__sc-mr8gwe-3"
35
+ componentId: "core-12_26_0__sc-mr8gwe-3"
36
36
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
37
37
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledSelectArrow",
39
- componentId: "core-12_25_1__sc-mr8gwe-4"
39
+ componentId: "core-12_26_0__sc-mr8gwe-4"
40
40
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
41
41
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
42
42
  displayName: "StyledSelectClearIcon",
43
- componentId: "core-12_25_1__sc-mr8gwe-5"
43
+ componentId: "core-12_26_0__sc-mr8gwe-5"
44
44
  })(["", "{pointer-events:none;}"], StyledContent);
45
45
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledSelectButton",
47
- componentId: "core-12_25_1__sc-mr8gwe-6"
47
+ componentId: "core-12_26_0__sc-mr8gwe-6"
48
48
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&.focus,&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref2) {
49
49
  var $block = _ref2.$block;
50
50
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -9,7 +9,7 @@ export declare const StyledH3: import("styled-components/dist/types").IStyledCom
9
9
  export declare function getSmallIconBodyTextRules(): import("styled-components").RuleSet<object>;
10
10
  export declare const StyledP: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
11
11
  export declare const StyledUL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, StyledListProps>> & string;
12
- export declare const StyledOL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof React.HTMLAttributes<HTMLOListElement | HTMLUListElement> | "$listStyleType"> & React.HTMLAttributes<HTMLOListElement | HTMLUListElement> & {
12
+ export declare const StyledOL: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof React.HTMLAttributes<HTMLUListElement | HTMLOListElement> | "$listStyleType"> & React.HTMLAttributes<HTMLUListElement | HTMLOListElement> & {
13
13
  $listStyleType?: string | undefined;
14
14
  }, "ref"> & {
15
15
  ref?: ((instance: HTMLUListElement | null) => void) | React.RefObject<HTMLUListElement> | null | undefined;
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledH1 = /*#__PURE__*/styled.h1.withConfig({
7
7
  displayName: "StyledH1",
8
- componentId: "core-12_25_1__sc-172j5qh-0"
8
+ componentId: "core-12_26_0__sc-172j5qh-0"
9
9
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h1'));
10
10
  export var StyledH2 = /*#__PURE__*/styled.h2.withConfig({
11
11
  displayName: "StyledH2",
12
- componentId: "core-12_25_1__sc-172j5qh-1"
12
+ componentId: "core-12_26_0__sc-172j5qh-1"
13
13
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h2'));
14
14
  export var StyledH3 = /*#__PURE__*/styled.h3.withConfig({
15
15
  displayName: "StyledH3",
16
- componentId: "core-12_25_1__sc-172j5qh-2"
16
+ componentId: "core-12_26_0__sc-172j5qh-2"
17
17
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h3'));
18
18
  var topMarginRules = function topMarginRules() {
19
19
  return css(["& + &,p + &,ol + &,ul + &{margin-top:", "px;}"], spacing.lg);
@@ -28,11 +28,11 @@ export function getSmallIconBodyTextRules() {
28
28
  }
29
29
  export var StyledP = /*#__PURE__*/styled.p.withConfig({
30
30
  displayName: "StyledP",
31
- componentId: "core-12_25_1__sc-172j5qh-3"
31
+ componentId: "core-12_26_0__sc-172j5qh-3"
32
32
  })(["color:", ";", " ", " ", ""], colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
33
33
  export var StyledUL = /*#__PURE__*/styled.ul.withConfig({
34
34
  displayName: "StyledUL",
35
- componentId: "core-12_25_1__sc-172j5qh-4"
35
+ componentId: "core-12_26_0__sc-172j5qh-4"
36
36
  })(["color:", ";margin:0;padding:0;", " ", " padding-left:", "px;list-style-type:", ";"], colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg, function (props) {
37
37
  return props.$listStyleType || 'disc';
38
38
  });
@@ -40,7 +40,7 @@ export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
40
40
  as: 'ol'
41
41
  }).withConfig({
42
42
  displayName: "StyledOL",
43
- componentId: "core-12_25_1__sc-172j5qh-5"
43
+ componentId: "core-12_26_0__sc-172j5qh-5"
44
44
  })(["list-style-type:", ";"], function (props) {
45
45
  return props.$listStyleType || 'decimal';
46
46
  });
@@ -51,7 +51,7 @@ export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(function (p
51
51
  };
52
52
  }).withConfig({
53
53
  displayName: "StyledLabel",
54
- componentId: "core-12_25_1__sc-172j5qh-6"
54
+ componentId: "core-12_26_0__sc-172j5qh-6"
55
55
  })(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
56
56
  var _ref$$block = _ref.$block,
57
57
  $block = _ref$$block === void 0 ? false : _ref$$block;
@@ -69,7 +69,7 @@ export function getUnstyledButton() {
69
69
  */
70
70
  export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
71
71
  displayName: "StyledUnstyledButton",
72
- componentId: "core-12_25_1__sc-172j5qh-7"
72
+ componentId: "core-12_26_0__sc-172j5qh-7"
73
73
  })(["", ""], getUnstyledButton);
74
74
 
75
75
  /**
@@ -77,6 +77,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
77
77
  */
78
78
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
79
79
  displayName: "StyledAnchor",
80
- componentId: "core-12_25_1__sc-172j5qh-8"
80
+ componentId: "core-12_26_0__sc-172j5qh-8"
81
81
  })([""]);
82
82
  //# sourceMappingURL=Semantic.styles.js.map
@@ -1,6 +1,5 @@
1
1
  import type React from 'react';
2
- import type { HeadingAttributes } from '../_utils/types';
3
- export interface HeadingProps extends HeadingAttributes {
2
+ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
4
3
  /**
5
4
  * Change the HTML tag.
6
5
  * @since 11.12.0
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.types.js","names":[],"sources":["../../src/Semantic/Semantic.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { HeadingAttributes } from '../_utils/types'\n\nexport interface HeadingProps extends HeadingAttributes {\n /**\n * Change the HTML tag.\n * @since 11.12.0\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}\n\nexport interface ListProps\n extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {\n /** @since 11.25.1 */\n listStyleType?: string\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Semantic.types.js","names":[],"sources":["../../src/Semantic/Semantic.types.ts"],"sourcesContent":["import type React from 'react'\n\nexport interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {\n /**\n * Change the HTML tag.\n * @since 11.12.0\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}\n\nexport interface ListProps\n extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {\n /** @since 11.25.1 */\n listStyleType?: string\n}\n"],"mappings":""}
@@ -9,6 +9,6 @@ export declare const StyledSlider: import("styled-components/dist/types").IStyle
9
9
  }>> & string;
10
10
  export declare const StyledIncrementOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
11
  export declare const StyledIncrementContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
- export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").SpanAttributes & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
12
+ export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
14
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").SpanAttributes & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
14
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
@@ -21,13 +21,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
21
21
  var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
22
22
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledContainer",
24
- componentId: "core-12_25_1__sc-12icguw-0"
24
+ componentId: "core-12_26_0__sc-12icguw-0"
25
25
  })(["position:relative;", ";"], function (props) {
26
26
  return props.$showLabel && 'padding-bottom: 10px';
27
27
  });
28
28
  export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
29
29
  displayName: "StyledSlider",
30
- componentId: "core-12_25_1__sc-12icguw-1"
30
+ componentId: "core-12_26_0__sc-12icguw-1"
31
31
  })(["-webkit-appearance:none;margin:0;padding-top:5px;padding-bottom:5px;width:100%;border:1px solid transparent;background-color:transparent;font-size:12px;&:focus{outline:none;", ";padding-top:5px;padding-bottom:5px;border-radius:2px;}&::-webkit-slider-runnable-track{", " ", "}&:disabled::-webkit-slider-runnable-track{cursor:not-allowed;", "}&::-webkit-slider-thumb{", " -webkit-appearance:none;margin-top:-5px;}&:disabled::-webkit-slider-thumb{", "}&::-moz-range-track{", " ", "}&:disabled::-moz-range-track{cursor:not-allowed;", "}&::-moz-range-thumb{", " height:12px;width:12px;}&:disabled::-moz-range-thumb{", "}&::-ms-track{", " height:", "px;color:transparent;", "}&:disabled::-ms-track{cursor:not-allowed;", "}&::-ms-fill-lower{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-fill-upper{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-thumb{", "}&:disabled::-ms-thumb{", "}&:focus::-ms-fill-lower{background:", ";}&:focus::-ms-fill-upper{background:", ";}"], function (props) {
32
32
  return props.$isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
33
33
  }, getTrackStyles, function (props) {
@@ -45,14 +45,14 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
45
45
  }, colors.blue50, colors.black, colors.black, colors.gray70, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray70);
46
46
  export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
47
47
  displayName: "StyledIncrementOverlay",
48
- componentId: "core-12_25_1__sc-12icguw-2"
48
+ componentId: "core-12_26_0__sc-12icguw-2"
49
49
  })(["position:relative;width:0;&::before{content:'';height:", "px;width:2px;background-color:white;display:block;}z-index:2;"], TRACK_HEIGHT);
50
50
  export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
51
51
  displayName: "StyledIncrementContainer",
52
- componentId: "core-12_25_1__sc-12icguw-3"
52
+ componentId: "core-12_26_0__sc-12icguw-3"
53
53
  })(["position:absolute;display:flex;justify-content:space-between;top:6px;", " left:5px;right:5px;> :first-child{visibility:hidden;}> :last-child{visibility:hidden;}"], applyStylesOnlyToFF("\n top: 12px;\n "));
54
54
  export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
55
55
  displayName: "StyledLabel",
56
- componentId: "core-12_25_1__sc-12icguw-4"
56
+ componentId: "core-12_26_0__sc-12icguw-4"
57
57
  })(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
58
58
  //# sourceMappingURL=Slider.styles.js.map
@@ -1,5 +1,5 @@
1
- import type { InputAttributes } from '../_utils/types';
2
- export interface SliderProps extends InputAttributes {
1
+ /// <reference types="react" />
2
+ export interface SliderProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  /**
4
4
  * Whether or not to put the slider into a disabled state.
5
5
  * @since 10.19.0
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.types.js","names":[],"sources":["../../src/Slider/Slider.types.ts"],"sourcesContent":["import type { InputAttributes } from '../_utils/types'\n\nexport interface SliderProps extends InputAttributes {\n /**\n * Whether or not to put the slider into a disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * The maximum value of the slider (right side)\n * @defaultValue 100\n * @since 10.19.0\n */\n max?: number\n /**\n * The minimum value of the slider (left side)\n * @defaultValue 0\n * @since 10.19.0\n */\n min?: number\n /**\n * Whether or not to show value labels below the slider increments.\n * @since 10.19.0\n */\n showLabel?: boolean\n /**\n * The distance between each stopping point on the Slider.\n * @defaultValue 1\n * @since 10.19.0\n */\n step?: number\n /**\n * The currently set value of the Slider.\n * Defaults to the middle between min and max.\n * @defaultValue (max < min) ? min : min + (max - min)/2;\n * @since 10.19.0\n */\n value?: number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Slider.types.js","names":[],"sources":["../../src/Slider/Slider.types.ts"],"sourcesContent":["export interface SliderProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n /**\n * Whether or not to put the slider into a disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * The maximum value of the slider (right side)\n * @defaultValue 100\n * @since 10.19.0\n */\n max?: number\n /**\n * The minimum value of the slider (left side)\n * @defaultValue 0\n * @since 10.19.0\n */\n min?: number\n /**\n * Whether or not to show value labels below the slider increments.\n * @since 10.19.0\n */\n showLabel?: boolean\n /**\n * The distance between each stopping point on the Slider.\n * @defaultValue 1\n * @since 10.19.0\n */\n step?: number\n /**\n * The currently set value of the Slider.\n * Defaults to the middle between min and max.\n * @defaultValue (max < min) ? min : min + (max - min)/2;\n * @since 10.19.0\n */\n value?: number\n}\n"],"mappings":""}
@@ -1,5 +1,4 @@
1
- var _excluded = ["className", "color", "loading", "mountTime", "size", "variant", "label"],
2
- _excluded2 = ["children", "className", "color", "label", "loading", "size", "variant", "centered"];
1
+ var _excluded = ["children", "className", "color", "label", "loading", "size", "variant", "centered"];
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
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; }
5
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; }
@@ -25,8 +24,7 @@ var Circle = /*#__PURE__*/React.forwardRef(function Circle(_ref, ref) {
25
24
  size = _ref$size === void 0 ? defaultSpinnerSize : _ref$size,
26
25
  _ref$variant = _ref.variant,
27
26
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
28
- label = _ref.label,
29
- props = _objectWithoutProperties(_ref, _excluded);
27
+ label = _ref.label;
30
28
  var i18n = useI18nContext();
31
29
  return /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
32
30
  className: className,
@@ -34,7 +32,7 @@ var Circle = /*#__PURE__*/React.forwardRef(function Circle(_ref, ref) {
34
32
  $size: size,
35
33
  $variant: variant,
36
34
  ref: ref
37
- }, /*#__PURE__*/React.createElement(StyledSpinnerSVG, _extends({
35
+ }, /*#__PURE__*/React.createElement(StyledSpinnerSVG, {
38
36
  viewBox: "0 0 48 48",
39
37
  xmlns: "http://www.w3.org/2000/svg",
40
38
  role: "img",
@@ -43,7 +41,7 @@ var Circle = /*#__PURE__*/React.forwardRef(function Circle(_ref, ref) {
43
41
  }),
44
42
  $animate: loading,
45
43
  $mountTime: mountTime
46
- }, props), /*#__PURE__*/React.createElement(StyledCircle, {
44
+ }, /*#__PURE__*/React.createElement(StyledCircle, {
47
45
  cx: "24",
48
46
  cy: "24",
49
47
  r: radiusMap[size],
@@ -78,7 +76,7 @@ export var Spinner = /*#__PURE__*/React.forwardRef(function Spinner(props, ref)
78
76
  variant = _props$variant === void 0 ? 'default' : _props$variant,
79
77
  _props$centered = props.centered,
80
78
  centered = _props$centered === void 0 ? false : _props$centered,
81
- rest = _objectWithoutProperties(props, _excluded2);
79
+ rest = _objectWithoutProperties(props, _excluded);
82
80
  var mountTime = React.useRef(Date.now());
83
81
  if (!children) {
84
82
  // We are preserving the current behavior of the Spinner component,