@procore/core-react 12.25.1 → 12.25.2

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 (427) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.d.ts +9 -10
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.js +5 -5
  6. package/dist/AvatarStack/AvatarStack.styles.d.ts +2 -2
  7. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  8. package/dist/Badge/Badge.styles.js +2 -2
  9. package/dist/BadgePill/BadgePill.styles.js +4 -4
  10. package/dist/Banner/Banner.d.ts +15 -15
  11. package/dist/Banner/Banner.js.map +1 -1
  12. package/dist/Banner/Banner.styles.d.ts +4 -4
  13. package/dist/Banner/Banner.styles.js +10 -10
  14. package/dist/Box/Box.d.ts +1 -2
  15. package/dist/Box/Box.js.map +1 -1
  16. package/dist/Box/Box.styles.js +1 -1
  17. package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -4
  18. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  19. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  20. package/dist/Button/Button.styles.js +5 -5
  21. package/dist/Button/Button.types.d.ts +2 -3
  22. package/dist/Button/Button.types.js.map +1 -1
  23. package/dist/Calendar/Calendar.styles.js +8 -8
  24. package/dist/Card/Card.d.ts +1 -2
  25. package/dist/Card/Card.js.map +1 -1
  26. package/dist/Card/Card.styles.js +1 -1
  27. package/dist/Checkbox/Checkbox.styles.js +6 -6
  28. package/dist/Checkbox/Checkbox.types.d.ts +1 -2
  29. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  30. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  31. package/dist/ContactItem/ContactItem.d.ts +2 -3
  32. package/dist/ContactItem/ContactItem.js.map +1 -1
  33. package/dist/ContactItem/ContactItem.styles.d.ts +5 -5
  34. package/dist/ContactItem/ContactItem.styles.js +5 -5
  35. package/dist/Content/Content.styles.d.ts +4 -4
  36. package/dist/Content/Content.styles.js +2 -2
  37. package/dist/DateInput/DateInput.js.map +1 -1
  38. package/dist/DateInput/DateInput.styles.js +6 -6
  39. package/dist/DateInput/DateInput.types.d.ts +2 -2
  40. package/dist/DateInput/DateInput.types.js.map +1 -1
  41. package/dist/DetailPage/DetailPage.styles.d.ts +4 -4
  42. package/dist/DetailPage/DetailPage.styles.js +7 -7
  43. package/dist/Dropdown/Dropdown.d.ts +1 -1
  44. package/dist/Dropdown/Dropdown.styles.d.ts +2 -2
  45. package/dist/Dropdown/Dropdown.styles.js +3 -3
  46. package/dist/DropdownFlyout/DropdownFlyout.helpers.js +1 -1
  47. package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  48. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  49. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
  50. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  51. package/dist/Dropzone/Dropzone.d.ts +2 -3
  52. package/dist/Dropzone/Dropzone.js +1 -2
  53. package/dist/Dropzone/Dropzone.js.map +1 -1
  54. package/dist/Dropzone/Dropzone.styles.d.ts +6 -6
  55. package/dist/Dropzone/Dropzone.styles.js +9 -9
  56. package/dist/EmptyState/EmptyState.d.ts +6 -6
  57. package/dist/EmptyState/EmptyState.js.map +1 -1
  58. package/dist/EmptyState/EmptyState.styles.js +6 -6
  59. package/dist/Field/Field.styles.js +3 -3
  60. package/dist/FileList/FileList.d.ts +1 -2
  61. package/dist/FileList/FileList.js.map +1 -1
  62. package/dist/FileList/FileList.styles.js +4 -4
  63. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  64. package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +1 -2
  65. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  66. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.d.ts +2 -2
  67. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  68. package/dist/FileSelect/FileSelect.d.ts +3 -4
  69. package/dist/FileSelect/FileSelect.js.map +1 -1
  70. package/dist/FileSelect/FileSelect.styles.d.ts +2 -2
  71. package/dist/FileSelect/FileSelect.styles.js +2 -2
  72. package/dist/FileSelect/FileSelect.types.d.ts +1 -2
  73. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  74. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  75. package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +1 -2
  76. package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
  77. package/dist/FileSelect/FileTokenList/FileTokenList.styles.d.ts +2 -2
  78. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  79. package/dist/FileSelect/GridSource/GridSource.d.ts +1 -2
  80. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  81. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +6 -6
  82. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  83. package/dist/FileSelect/LocalSource/LocalSource.styles.d.ts +1 -1
  84. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  85. package/dist/FileSelect/SourceItem/SourceItem.d.ts +2 -2
  86. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  87. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  88. package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
  89. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  90. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +2 -2
  91. package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
  92. package/dist/FileSelect/TreeSource/TreeSource.d.ts +1 -2
  93. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  94. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  95. package/dist/FileToken/FileToken.d.ts +1 -2
  96. package/dist/FileToken/FileToken.js +17 -18
  97. package/dist/FileToken/FileToken.js.map +1 -1
  98. package/dist/FileToken/FileToken.styles.js +9 -9
  99. package/dist/FileToken/FileToken.styles.js.map +1 -1
  100. package/dist/FileToken/FileToken.types.d.ts +22 -0
  101. package/dist/FileToken/FileToken.types.js.map +1 -1
  102. package/dist/FileToken/FileTokenInner.d.ts +3 -0
  103. package/dist/FileToken/FileTokenInner.js +25 -0
  104. package/dist/FileToken/FileTokenInner.js.map +1 -0
  105. package/dist/FilterToken/FilterToken.d.ts +3 -4
  106. package/dist/FilterToken/FilterToken.js.map +1 -1
  107. package/dist/FilterToken/FilterToken.styles.js +5 -5
  108. package/dist/Flex/Flex.d.ts +1 -2
  109. package/dist/Flex/Flex.js.map +1 -1
  110. package/dist/FlexList/FlexList.d.ts +1 -2
  111. package/dist/FlexList/FlexList.js.map +1 -1
  112. package/dist/FlexList/FlexList.styles.d.ts +2 -2
  113. package/dist/FlexList/FlexList.styles.js +1 -1
  114. package/dist/Form/Form.d.ts +2 -2
  115. package/dist/Form/Form.js.map +1 -1
  116. package/dist/Form/Form.styles.js +14 -14
  117. package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
  118. package/dist/Form/StyledFormikForm.styles.js +2 -2
  119. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  120. package/dist/Grid/Grid.styles.js +2 -2
  121. package/dist/Grid/Grid.types.d.ts +4 -4
  122. package/dist/Grid/Grid.types.js.map +1 -1
  123. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  124. package/dist/Input/Input.d.ts +1 -2
  125. package/dist/Input/Input.js.map +1 -1
  126. package/dist/Input/Input.styles.js +1 -1
  127. package/dist/Input/Input.types.d.ts +2 -2
  128. package/dist/Input/Input.types.js.map +1 -1
  129. package/dist/Link/Link.styles.js +1 -1
  130. package/dist/Link/Link.types.d.ts +2 -2
  131. package/dist/Link/Link.types.js.map +1 -1
  132. package/dist/ListPage/ListPage.styles.js +8 -8
  133. package/dist/Loader/Loader.styles.js +2 -2
  134. package/dist/Menu/Menu.d.ts +8 -9
  135. package/dist/Menu/Menu.js.map +1 -1
  136. package/dist/MenuImperative/MenuImperative.d.ts +8 -9
  137. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  138. package/dist/MenuImperative/MenuImperative.styles.d.ts +2 -2
  139. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  140. package/dist/MenuImperative/MenuImperative.types.d.ts +2 -2
  141. package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
  142. package/dist/Modal/Modal.d.ts +6 -5
  143. package/dist/Modal/Modal.js +47 -11
  144. package/dist/Modal/Modal.js.map +1 -1
  145. package/dist/Modal/Modal.styles.d.ts +4 -4
  146. package/dist/Modal/Modal.styles.js +15 -14
  147. package/dist/Modal/Modal.styles.js.map +1 -1
  148. package/dist/Modal/Modal.types.d.ts +6 -4
  149. package/dist/Modal/Modal.types.js.map +1 -1
  150. package/dist/MultiSelect/MultiSelect.styles.d.ts +2 -2
  151. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  152. package/dist/NextMenu/NextMenu.styles.js +3 -3
  153. package/dist/NextTile/NextTile.types.d.ts +3 -3
  154. package/dist/NextTile/NextTile.types.js.map +1 -1
  155. package/dist/Notation/Notation.d.ts +1 -2
  156. package/dist/Notation/Notation.js +1 -1
  157. package/dist/Notation/Notation.js.map +1 -1
  158. package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
  159. package/dist/NumberInput/NumberInput.styles.js +7 -7
  160. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  161. package/dist/PageLayout/PageLayout.d.ts +2 -2
  162. package/dist/PageLayout/PageLayout.js.map +1 -1
  163. package/dist/PageLayout/PageLayout.styles.js +16 -16
  164. package/dist/PageLayout/PageLayout.types.d.ts +3 -3
  165. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  166. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  167. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +4 -4
  168. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  169. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +5 -3
  170. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  171. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  172. package/dist/Pagination/Pagination.styles.d.ts +6 -6
  173. package/dist/Pagination/Pagination.styles.js +5 -5
  174. package/dist/Panel/Panel.d.ts +6 -7
  175. package/dist/Panel/Panel.js +22 -8
  176. package/dist/Panel/Panel.js.map +1 -1
  177. package/dist/Panel/Panel.styles.d.ts +5 -5
  178. package/dist/Panel/Panel.styles.js +16 -15
  179. package/dist/Panel/Panel.styles.js.map +1 -1
  180. package/dist/Panel/Panel.types.d.ts +14 -5
  181. package/dist/Panel/Panel.types.js.map +1 -1
  182. package/dist/Pill/Pill.js +15 -7
  183. package/dist/Pill/Pill.js.map +1 -1
  184. package/dist/Pill/Pill.styles.d.ts +3 -0
  185. package/dist/Pill/Pill.styles.js +7 -3
  186. package/dist/Pill/Pill.styles.js.map +1 -1
  187. package/dist/Pill/Pill.types.d.ts +1 -1
  188. package/dist/Pill/Pill.types.js.map +1 -1
  189. package/dist/PillSelect/PillSelect.js.map +1 -1
  190. package/dist/PillSelect/PillSelect.styles.js +4 -4
  191. package/dist/Popover/Popover.d.ts +1 -2
  192. package/dist/Popover/Popover.js.map +1 -1
  193. package/dist/Popover/Popover.styles.js +4 -4
  194. package/dist/Popover/Popover.styles.js.map +1 -1
  195. package/dist/Portal/Portal.styles.js +1 -1
  196. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  197. package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
  198. package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
  199. package/dist/RadioButton/RadioButton.styles.js +3 -3
  200. package/dist/Required/Required.styles.js +3 -3
  201. package/dist/Search/Search.styles.js +5 -5
  202. package/dist/Section/Section.js +6 -5
  203. package/dist/Section/Section.js.map +1 -1
  204. package/dist/Section/Section.styles.d.ts +5 -5
  205. package/dist/Section/Section.styles.js +9 -8
  206. package/dist/Section/Section.styles.js.map +1 -1
  207. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  208. package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
  209. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  210. package/dist/Select/Select.styles.d.ts +2 -2
  211. package/dist/Select/Select.styles.js +7 -7
  212. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  213. package/dist/Semantic/Semantic.styles.js +9 -9
  214. package/dist/Semantic/Semantic.types.d.ts +1 -2
  215. package/dist/Semantic/Semantic.types.js.map +1 -1
  216. package/dist/Slider/Slider.styles.d.ts +2 -2
  217. package/dist/Slider/Slider.styles.js +5 -5
  218. package/dist/Slider/Slider.types.d.ts +2 -2
  219. package/dist/Slider/Slider.types.js.map +1 -1
  220. package/dist/Spinner/Spinner.styles.js +7 -7
  221. package/dist/SplitViewCard/SplitViewCard.d.ts +0 -1
  222. package/dist/SplitViewCard/SplitViewCard.js +29 -26
  223. package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
  224. package/dist/SplitViewCard/SplitViewCard.styles.js +10 -9
  225. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  226. package/dist/SplitViewCard/SplitViewCard.types.d.ts +11 -0
  227. package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
  228. package/dist/SplitViewCard/SplitViewCardInternal.context.d.ts +2 -2
  229. package/dist/SplitViewCard/SplitViewCardInternal.context.js +4 -1
  230. package/dist/SplitViewCard/SplitViewCardInternal.context.js.map +1 -1
  231. package/dist/SuperSelect/SuperSelect.components.d.ts +1 -2
  232. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  233. package/dist/SuperSelect/SuperSelect.presets.styles.d.ts +2 -2
  234. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  235. package/dist/SuperSelect/SuperSelect.styles.d.ts +6 -6
  236. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  237. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -2
  238. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  239. package/dist/Switch/Switch.d.ts +1 -2
  240. package/dist/Switch/Switch.js.map +1 -1
  241. package/dist/Switch/Switch.styles.js +4 -4
  242. package/dist/Switch/Switch.types.d.ts +2 -2
  243. package/dist/Switch/Switch.types.js.map +1 -1
  244. package/dist/Table/Table.d.ts +34 -35
  245. package/dist/Table/Table.js.map +1 -1
  246. package/dist/Table/Table.styles.d.ts +6 -6
  247. package/dist/Table/Table.styles.js +28 -28
  248. package/dist/Table/Table.types.d.ts +1 -2
  249. package/dist/Table/Table.types.js.map +1 -1
  250. package/dist/TableShelf/TableShelf.d.ts +12 -13
  251. package/dist/TableShelf/TableShelf.js.map +1 -1
  252. package/dist/TableShelf/TableShelf.styles.js +5 -5
  253. package/dist/Tabs/Tabs.d.ts +4 -5
  254. package/dist/Tabs/Tabs.js.map +1 -1
  255. package/dist/Tabs/Tabs.styles.d.ts +2 -2
  256. package/dist/Tabs/Tabs.styles.js +15 -15
  257. package/dist/Tearsheet/Tearsheet.js +9 -6
  258. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  259. package/dist/Tearsheet/Tearsheet.styles.d.ts +2 -2
  260. package/dist/Tearsheet/Tearsheet.styles.js +7 -6
  261. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  262. package/dist/TextArea/TextArea.d.ts +1 -2
  263. package/dist/TextArea/TextArea.js.map +1 -1
  264. package/dist/TextArea/TextArea.styles.js +1 -1
  265. package/dist/TextArea/TextArea.types.d.ts +2 -2
  266. package/dist/TextArea/TextArea.types.js.map +1 -1
  267. package/dist/TextEditorOutput/TextEditorOutput.d.ts +1 -2
  268. package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
  269. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  270. package/dist/TextInput/TextInput.d.ts +1 -1
  271. package/dist/Thumbnail/Thumbnail.hooks.d.ts +6 -7
  272. package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
  273. package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
  274. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  275. package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +1 -2
  276. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  277. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +2 -2
  278. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  279. package/dist/TieredSelect/TieredSelect.styles.d.ts +15 -15
  280. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  281. package/dist/Tile/Tile.styles.d.ts +1 -1
  282. package/dist/Tile/Tile.styles.js +8 -8
  283. package/dist/Tile/Tile.types.d.ts +4 -4
  284. package/dist/Tile/Tile.types.js.map +1 -1
  285. package/dist/Title/Title.d.ts +5 -6
  286. package/dist/Title/Title.js.map +1 -1
  287. package/dist/Title/Title.styles.d.ts +3 -3
  288. package/dist/Title/Title.styles.js +7 -7
  289. package/dist/Title/Title.types.d.ts +2 -2
  290. package/dist/Title/Title.types.js.map +1 -1
  291. package/dist/Toast/Toast.d.ts +4 -5
  292. package/dist/Toast/Toast.js.map +1 -1
  293. package/dist/Toast/Toast.styles.js +3 -3
  294. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  295. package/dist/ToggleButton/ToggleButton.types.d.ts +1 -2
  296. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  297. package/dist/Token/Token.d.ts +5 -4
  298. package/dist/Token/Token.js +37 -10
  299. package/dist/Token/Token.js.map +1 -1
  300. package/dist/Token/Token.styles.d.ts +3 -7
  301. package/dist/Token/Token.styles.js +7 -7
  302. package/dist/Token/Token.styles.js.map +1 -1
  303. package/dist/Token/Token.types.d.ts +4 -0
  304. package/dist/Token/Token.types.js.map +1 -1
  305. package/dist/ToolHeader/ToolHeader.d.ts +6 -7
  306. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  307. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  308. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  309. package/dist/Tooltip/Tooltip.styles.js +2 -2
  310. package/dist/Tree/Tree.styles.d.ts +6 -6
  311. package/dist/Tree/Tree.styles.js +9 -9
  312. package/dist/Tree/Tree.types.d.ts +2 -3
  313. package/dist/Tree/Tree.types.js.map +1 -1
  314. package/dist/Typeahead/Typeahead.styles.js +3 -3
  315. package/dist/Typography/Typography.d.ts +1 -2
  316. package/dist/Typography/Typography.js.map +1 -1
  317. package/dist/Typography/Typography.styles.js +1 -1
  318. package/dist/Typography/Typography.table.story.js +2 -2
  319. package/dist/_hooks/ClickOutside.js +8 -4
  320. package/dist/_hooks/ClickOutside.js.map +1 -1
  321. package/dist/_locales/de-DE.json +1 -1
  322. package/dist/_locales/en-AU.json +1 -1
  323. package/dist/_locales/en-CA.json +1 -1
  324. package/dist/_locales/en-GB.json +1 -1
  325. package/dist/_locales/en.json +1 -1
  326. package/dist/_locales/es-ES.json +1 -1
  327. package/dist/_locales/es.json +1 -1
  328. package/dist/_locales/fr-CA.json +1 -1
  329. package/dist/_locales/fr-FR.json +1 -1
  330. package/dist/_locales/is-IS.json +1 -1
  331. package/dist/_locales/it-IT.json +1 -1
  332. package/dist/_locales/ja-JP.json +1 -1
  333. package/dist/_locales/pl-PL.json +1 -1
  334. package/dist/_locales/pseudo.json +1 -1
  335. package/dist/_locales/pt-BR.json +1 -1
  336. package/dist/_locales/th-TH.json +1 -1
  337. package/dist/_locales/zh-SG.json +1 -1
  338. package/dist/_locales/zh-TW.json +1 -1
  339. package/dist/_styles/mixins.js +1 -1
  340. package/dist/_styles/mixins.js.map +1 -1
  341. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  342. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  343. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  344. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  345. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  346. package/dist/_typedoc/Box/Box.types.json +68 -68
  347. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  348. package/dist/_typedoc/Button/Button.types.json +13 -13
  349. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  350. package/dist/_typedoc/Card/Card.types.json +6 -6
  351. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -18
  352. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  353. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  354. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  355. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  356. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  357. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  358. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  359. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  360. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  361. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  362. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  363. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  364. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  365. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  366. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  367. package/dist/_typedoc/Form/Form.types.json +739 -759
  368. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  369. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  370. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  371. package/dist/_typedoc/Input/Input.types.json +2 -2
  372. package/dist/_typedoc/Link/Link.types.json +1 -31
  373. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  374. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  375. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  376. package/dist/_typedoc/Modal/Modal.types.json +54 -54
  377. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  378. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  379. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  380. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  381. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  382. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -56
  383. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  384. package/dist/_typedoc/Panel/Panel.types.json +51 -29
  385. package/dist/_typedoc/Pill/Pill.types.json +4 -4
  386. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  387. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  388. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  389. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  390. package/dist/_typedoc/Required/Required.types.json +5 -5
  391. package/dist/_typedoc/Search/Search.types.json +18 -18
  392. package/dist/_typedoc/Section/Section.types.json +15 -15
  393. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  394. package/dist/_typedoc/Select/Select.types.json +60 -60
  395. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  396. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  397. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  398. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +34 -12
  399. package/dist/_typedoc/Switch/Switch.types.json +1 -32
  400. package/dist/_typedoc/Table/Table.types.json +101 -101
  401. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  402. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  403. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  404. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  405. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  406. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  407. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  408. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  409. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  410. package/dist/_typedoc/Title/Title.types.json +1 -1
  411. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  412. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  413. package/dist/_typedoc/Token/Token.types.json +30 -4
  414. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  415. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  416. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  417. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  418. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  419. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  420. package/dist/_typedoc/_utils/types.json +3 -3
  421. package/dist/_utils/slotify.d.ts +1 -2
  422. package/dist/_utils/slotify.js.map +1 -1
  423. package/dist/_utils/types.d.ts +11 -48
  424. package/dist/_utils/types.js.map +1 -1
  425. package/dist/index.d.ts +1 -1
  426. package/dist/index.js.map +1 -1
  427. package/package.json +1 -1
@@ -2,6 +2,7 @@ import styled, { css, keyframes } from 'styled-components';
2
2
  import { Card } from '../Card';
3
3
  import { StyledPageContainer } from '../PageLayout/PageLayout.styles';
4
4
  import { colors } from '../_styles/colors';
5
+ import { getFocus } from '../_styles/mixins';
5
6
  import { getShadow } from '../_styles/shadows';
6
7
  import { spacing } from '../_styles/spacing';
7
8
  import { isIE11 } from '../_utils/isIE11';
@@ -47,7 +48,7 @@ var getSlideOutAnimation = function getSlideOutAnimation($placement) {
47
48
  };
48
49
  export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
49
50
  displayName: "StyledTearsheetContent",
50
- componentId: "core-12_25_1__sc-ljrxoq-0"
51
+ componentId: "core-12_25_2__sc-ljrxoq-0"
51
52
  })(["display:flex;z-index:2;width:100%;", " ", " ", " ", ""], function (_ref) {
52
53
  var $open = _ref.$open,
53
54
  $placement = _ref.$placement;
@@ -67,8 +68,8 @@ export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
67
68
  export var minScrimSize = spacing.xxl * 3;
68
69
  export var StyledTearsheetBody = /*#__PURE__*/styled.div.withConfig({
69
70
  displayName: "StyledTearsheetBody",
70
- componentId: "core-12_25_1__sc-ljrxoq-1"
71
- })(["display:flex;overflow-y:auto;flex-direction:column;background-color:", ";", " ", "}"], colors.white, function (_ref5) {
71
+ componentId: "core-12_25_2__sc-ljrxoq-1"
72
+ })(["display:flex;overflow-y:auto;flex-direction:column;background-color:", ";&:focus-visible{", "}", " ", "}"], colors.white, getFocus(), function (_ref5) {
72
73
  var $block = _ref5.$block,
73
74
  $placement = _ref5.$placement,
74
75
  $stretch = _ref5.$stretch;
@@ -88,7 +89,7 @@ var zoomIn = /*#__PURE__*/keyframes(["from{transform:scale(0);}to{transform:scal
88
89
  var zoomOut = /*#__PURE__*/keyframes(["from{transform:scale(1);}to{transform:scale(0);}"]);
89
90
  export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
90
91
  displayName: "StyledScrimContainer",
91
- componentId: "core-12_25_1__sc-ljrxoq-2"
92
+ componentId: "core-12_25_2__sc-ljrxoq-2"
92
93
  })(["", ""], function (_ref7) {
93
94
  var $placement = _ref7.$placement;
94
95
  var minSizeProp = ['top', 'bottom'].includes($placement) ? 'min-height' : 'min-width';
@@ -96,7 +97,7 @@ export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
96
97
  });
97
98
  export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
98
99
  displayName: "StyledButtonContainer",
99
- componentId: "core-12_25_1__sc-ljrxoq-3"
100
+ componentId: "core-12_25_2__sc-ljrxoq-3"
100
101
  })(["", ""], function (_ref8) {
101
102
  var $placement = _ref8.$placement;
102
103
  switch ($placement) {
@@ -111,7 +112,7 @@ export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
111
112
  });
112
113
  export var StyledButtonCard = /*#__PURE__*/styled(Card).withConfig({
113
114
  displayName: "StyledButtonCard",
114
- componentId: "core-12_25_1__sc-ljrxoq-4"
115
+ componentId: "core-12_25_2__sc-ljrxoq-4"
115
116
  })(["display:inline-flex;margin:", "px;", " ", " ", ""], spacing.xl, function (_ref9) {
116
117
  var $open = _ref9.$open;
117
118
  return $open ? css(["transform:scale(1);"]) : css(["transform:scale(0);"]);
@@ -1 +1 @@
1
- {"version":3,"file":"Tearsheet.styles.js","names":["styled","css","keyframes","Card","StyledPageContainer","colors","getShadow","spacing","isIE11","animationSpeed","disabled","tearsheet","scrim","closeButton","slideDistance","positioningProps","right","open","closed","concat","placement","shadow","top","bottom","left","getSlideInAnimation","$placement","getSlideOutAnimation","StyledTearsheetContent","div","withConfig","displayName","componentId","_ref","$open","_ref2","_ref3","$opening","_ref4","$closing","minScrimSize","xxl","StyledTearsheetBody","white","_ref5","$block","$stretch","size","includes","_ref6","zoomIn","zoomOut","StyledScrimContainer","_ref7","minSizeProp","StyledButtonContainer","_ref8","StyledButtonCard","xl","_ref9","_ref0","_ref1"],"sources":["../../src/Tearsheet/Tearsheet.styles.ts"],"sourcesContent":["import type { RuleSet } from 'styled-components'\nimport styled, { css, keyframes } from 'styled-components'\nimport { Card } from '../Card'\nimport { StyledPageContainer } from '../PageLayout/PageLayout.styles'\nimport { colors } from '../_styles/colors'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport { isIE11 } from '../_utils/isIE11'\nimport type { Placement } from './Tearsheet.types'\n\nexport const animationSpeed = {\n disabled: 0,\n tearsheet: 800,\n scrim: 300,\n closeButton: 150,\n}\n\nconst slideDistance = '100%'\n\nconst positioningProps: Record<\n Placement,\n Record<'open' | 'closed' | 'placement' | 'shadow', string | RuleSet<object>>\n> = {\n right: {\n open: `translateX(0);`,\n closed: `translateX(${slideDistance});`,\n placement: css`\n flex-direction: row;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'left'),\n },\n // @ts-ignore\n top: {\n open: `translateY(0);`,\n closed: `translateY(-${slideDistance});`,\n placement: css`\n flex-direction: column-reverse;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'bottom'),\n },\n bottom: {\n open: `translateY(0);`,\n closed: `translateY(${slideDistance});`,\n placement: css`\n flex-direction: column;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'top'),\n },\n left: {\n open: `translateX(0);`,\n closed: `translateX(-${slideDistance});`,\n placement: css`\n flex-direction: row-reverse;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'right'),\n },\n}\n\nconst getSlideInAnimation = ($placement: Placement) => keyframes`\n from {\n transform: ${positioningProps[$placement].closed};\n }\n to {\n transform: ${positioningProps[$placement].open};\n }\n`\n\nconst getSlideOutAnimation = ($placement: Placement) => keyframes`\n from {\n transform: ${positioningProps[$placement].open};\n }\n to {\n transform: ${positioningProps[$placement].closed};\n }\n`\n\nexport const StyledTearsheetContent = styled.div<{\n $placement: Placement\n $open: boolean\n $opening?: boolean\n $closing?: boolean\n}>`\n display: flex;\n z-index: 2;\n width: 100%;\n\n ${({ $open, $placement }) =>\n $open\n ? css`\n transform: ${positioningProps[$placement].open};\n `\n : css`\n transform: ${positioningProps[$placement].closed};\n `}\n\n ${({ $placement }) => positioningProps[$placement].placement}\n\n ${({ $opening, $placement }) =>\n $opening &&\n css`\n animation: ${getSlideInAnimation($placement)}\n ${animationSpeed.tearsheet}ms ease-out;\n transform: ${positioningProps[$placement].open};\n pointer-events: none;\n `}\n\n ${({ $closing, $placement }) =>\n $closing &&\n css`\n animation: ${getSlideOutAnimation($placement)}\n ${animationSpeed.tearsheet}ms ease-out;\n transform: ${positioningProps[$placement].closed};\n pointer-events: none;\n `}\n`\n\nexport const minScrimSize = spacing.xxl * 3\n\nexport const StyledTearsheetBody = styled.div<{\n $block: boolean\n $placement: Placement\n $stretch: boolean\n}>`\n display: flex;\n overflow-y: auto;\n flex-direction: column;\n background-color: ${colors.white};\n\n ${({ $block, $placement, $stretch }) => {\n const size = ['top', 'bottom'].includes($placement) ? '100vh' : '100vw'\n\n return (\n ($stretch || $block) &&\n css`\n flex: 0 0 calc(${size} - ${minScrimSize}px);\n `\n )\n }}\n\n ${({ $placement }) => {\n if (!isIE11()) {\n return ''\n }\n\n if (['top', 'bottom'].includes($placement)) {\n return css`\n ${StyledPageContainer} {\n width: 100vw;\n }\n `\n }\n\n return css`\n ${StyledPageContainer} {\n width: 95vw;\n }\n `\n }}}\n`\n\nconst zoomIn = keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n`\n\nconst zoomOut = keyframes`\n from {\n transform: scale(1);\n }\n to {\n transform: scale(0);\n }\n`\n\nexport const StyledScrimContainer = styled.div<{ $placement: Placement }>`\n ${({ $placement }) => {\n const minSizeProp = ['top', 'bottom'].includes($placement)\n ? 'min-height'\n : 'min-width'\n\n return css`\n ${minSizeProp}: ${minScrimSize}px;\n flex-grow: 1;\n `\n }}\n`\n\nexport const StyledButtonContainer = styled.div<{ $placement: Placement }>`\n ${({ $placement }) => {\n switch ($placement) {\n case 'bottom':\n return css`\n display: flex;\n justify-content: flex-end;\n flex-direction: column;\n height: 100%;\n `\n case 'right':\n return css`\n display: flex;\n justify-content: flex-end;\n `\n case 'left':\n default:\n return\n }\n }}\n`\n\nexport const StyledButtonCard = styled(Card)<{\n $open: boolean\n $opening?: boolean\n $closing?: boolean\n}>`\n display: inline-flex;\n margin: ${spacing.xl}px;\n\n ${({ $open }) =>\n $open\n ? css`\n transform: scale(1);\n `\n : css`\n transform: scale(0);\n `}\n\n ${({ $opening }) =>\n $opening &&\n css`\n animation: ${zoomIn} ${animationSpeed.closeButton}ms;\n transform: scale(1);\n `}\n\n ${({ $closing }) =>\n $closing &&\n css`\n animation: ${zoomOut} ${animationSpeed.closeButton}ms;\n transform: scale(0);\n `}\n`\n"],"mappings":"AACA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,MAAM,QAAQ,kBAAkB;AAGzC,OAAO,IAAMC,cAAc,GAAG;EAC5BC,QAAQ,EAAE,CAAC;EACXC,SAAS,EAAE,GAAG;EACdC,KAAK,EAAE,GAAG;EACVC,WAAW,EAAE;AACf,CAAC;AAED,IAAMC,aAAa,GAAG,MAAM;AAE5B,IAAMC,gBAGL,GAAG;EACFC,KAAK,EAAE;IACLC,IAAI,kBAAkB;IACtBC,MAAM,gBAAAC,MAAA,CAAgBL,aAAa,OAAI;IACvCM,SAAS,EAAEnB,GAAG,kDAGb;IACDoB,MAAM,EAAEf,SAAS,CAAC,CAAC,EAAE,MAAM;EAC7B,CAAC;EACD;EACAgB,GAAG,EAAE;IACHL,IAAI,kBAAkB;IACtBC,MAAM,iBAAAC,MAAA,CAAiBL,aAAa,OAAI;IACxCM,SAAS,EAAEnB,GAAG,6DAGb;IACDoB,MAAM,EAAEf,SAAS,CAAC,CAAC,EAAE,QAAQ;EAC/B,CAAC;EACDiB,MAAM,EAAE;IACNN,IAAI,kBAAkB;IACtBC,MAAM,gBAAAC,MAAA,CAAgBL,aAAa,OAAI;IACvCM,SAAS,EAAEnB,GAAG,qDAGb;IACDoB,MAAM,EAAEf,SAAS,CAAC,CAAC,EAAE,KAAK;EAC5B,CAAC;EACDkB,IAAI,EAAE;IACJP,IAAI,kBAAkB;IACtBC,MAAM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A,QAAQ,IACRtC,GAAG,gDACYkD,OAAO,EAAI1C,cAAc,CAACI,WAAW,CAEnD;AAAA,EACJ"}
1
+ {"version":3,"file":"Tearsheet.styles.js","names":["styled","css","keyframes","Card","StyledPageContainer","colors","getFocus","getShadow","spacing","isIE11","animationSpeed","disabled","tearsheet","scrim","closeButton","slideDistance","positioningProps","right","open","closed","concat","placement","shadow","top","bottom","left","getSlideInAnimation","$placement","getSlideOutAnimation","StyledTearsheetContent","div","withConfig","displayName","componentId","_ref","$open","_ref2","_ref3","$opening","_ref4","$closing","minScrimSize","xxl","StyledTearsheetBody","white","_ref5","$block","$stretch","size","includes","_ref6","zoomIn","zoomOut","StyledScrimContainer","_ref7","minSizeProp","StyledButtonContainer","_ref8","StyledButtonCard","xl","_ref9","_ref0","_ref1"],"sources":["../../src/Tearsheet/Tearsheet.styles.ts"],"sourcesContent":["import type { RuleSet } from 'styled-components'\nimport styled, { css, keyframes } from 'styled-components'\nimport { Card } from '../Card'\nimport { StyledPageContainer } from '../PageLayout/PageLayout.styles'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport { isIE11 } from '../_utils/isIE11'\nimport type { Placement } from './Tearsheet.types'\n\nexport const animationSpeed = {\n disabled: 0,\n tearsheet: 800,\n scrim: 300,\n closeButton: 150,\n}\n\nconst slideDistance = '100%'\n\nconst positioningProps: Record<\n Placement,\n Record<'open' | 'closed' | 'placement' | 'shadow', string | RuleSet<object>>\n> = {\n right: {\n open: `translateX(0);`,\n closed: `translateX(${slideDistance});`,\n placement: css`\n flex-direction: row;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'left'),\n },\n // @ts-ignore\n top: {\n open: `translateY(0);`,\n closed: `translateY(-${slideDistance});`,\n placement: css`\n flex-direction: column-reverse;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'bottom'),\n },\n bottom: {\n open: `translateY(0);`,\n closed: `translateY(${slideDistance});`,\n placement: css`\n flex-direction: column;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'top'),\n },\n left: {\n open: `translateX(0);`,\n closed: `translateX(-${slideDistance});`,\n placement: css`\n flex-direction: row-reverse;\n justify-content: flex-end;\n `,\n shadow: getShadow(4, 'right'),\n },\n}\n\nconst getSlideInAnimation = ($placement: Placement) => keyframes`\n from {\n transform: ${positioningProps[$placement].closed};\n }\n to {\n transform: ${positioningProps[$placement].open};\n }\n`\n\nconst getSlideOutAnimation = ($placement: Placement) => keyframes`\n from {\n transform: ${positioningProps[$placement].open};\n }\n to {\n transform: ${positioningProps[$placement].closed};\n }\n`\n\nexport const StyledTearsheetContent = styled.div<{\n $placement: Placement\n $open: boolean\n $opening?: boolean\n $closing?: boolean\n}>`\n display: flex;\n z-index: 2;\n width: 100%;\n\n ${({ $open, $placement }) =>\n $open\n ? css`\n transform: ${positioningProps[$placement].open};\n `\n : css`\n transform: ${positioningProps[$placement].closed};\n `}\n\n ${({ $placement }) => positioningProps[$placement].placement}\n\n ${({ $opening, $placement }) =>\n $opening &&\n css`\n animation: ${getSlideInAnimation($placement)}\n ${animationSpeed.tearsheet}ms ease-out;\n transform: ${positioningProps[$placement].open};\n pointer-events: none;\n `}\n\n ${({ $closing, $placement }) =>\n $closing &&\n css`\n animation: ${getSlideOutAnimation($placement)}\n ${animationSpeed.tearsheet}ms ease-out;\n transform: ${positioningProps[$placement].closed};\n pointer-events: none;\n `}\n`\n\nexport const minScrimSize = spacing.xxl * 3\n\nexport const StyledTearsheetBody = styled.div<{\n $block: boolean\n $placement: Placement\n $stretch: boolean\n}>`\n display: flex;\n overflow-y: auto;\n flex-direction: column;\n background-color: ${colors.white};\n\n &:focus-visible {\n ${getFocus()}\n }\n\n ${({ $block, $placement, $stretch }) => {\n const size = ['top', 'bottom'].includes($placement) ? '100vh' : '100vw'\n\n return (\n ($stretch || $block) &&\n css`\n flex: 0 0 calc(${size} - ${minScrimSize}px);\n `\n )\n }}\n\n ${({ $placement }) => {\n if (!isIE11()) {\n return ''\n }\n\n if (['top', 'bottom'].includes($placement)) {\n return css`\n ${StyledPageContainer} {\n width: 100vw;\n }\n `\n }\n\n return css`\n ${StyledPageContainer} {\n width: 95vw;\n }\n `\n }}}\n`\n\nconst zoomIn = keyframes`\n from {\n transform: scale(0);\n }\n to {\n transform: scale(1);\n }\n`\n\nconst zoomOut = keyframes`\n from {\n transform: scale(1);\n }\n to {\n transform: scale(0);\n }\n`\n\nexport const StyledScrimContainer = styled.div<{ $placement: Placement }>`\n ${({ $placement }) => {\n const minSizeProp = ['top', 'bottom'].includes($placement)\n ? 'min-height'\n : 'min-width'\n\n return css`\n ${minSizeProp}: ${minScrimSize}px;\n flex-grow: 1;\n `\n }}\n`\n\nexport const StyledButtonContainer = styled.div<{ $placement: Placement }>`\n ${({ $placement }) => {\n switch ($placement) {\n case 'bottom':\n return css`\n display: flex;\n justify-content: flex-end;\n flex-direction: column;\n height: 100%;\n `\n case 'right':\n return css`\n display: flex;\n justify-content: flex-end;\n `\n case 'left':\n default:\n return\n }\n }}\n`\n\nexport const StyledButtonCard = styled(Card)<{\n $open: boolean\n $opening?: boolean\n $closing?: boolean\n}>`\n display: inline-flex;\n margin: ${spacing.xl}px;\n\n ${({ $open }) =>\n $open\n ? css`\n transform: scale(1);\n `\n : css`\n transform: scale(0);\n `}\n\n ${({ $opening }) =>\n $opening &&\n css`\n animation: ${zoomIn} ${animationSpeed.closeButton}ms;\n transform: scale(1);\n `}\n\n ${({ $closing }) =>\n $closing &&\n css`\n animation: ${zoomOut} ${animationSpeed.closeButton}ms;\n transform: scale(0);\n `}\n`\n"],"mappings":"AACA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,S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,CAACtB,UAAU,CAAC,GACtD,YAAY,GACZ,WAAW;EAEf,OAAO1B,GAAG,+BACNsD,WAAW,EAAKd,YAAY;AAGlC,CAAC,CACF;AAED,OAAO,IAAMe,qBAAqB,gBAAGxD,MAAM,CAAC8B,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAC3C,UAAAwB,KAAA,EAAoB;EAAA,IAAjB9B,UAAU,GAAA8B,KAAA,CAAV9B,UAAU;EACb,QAAQA,UAAU;IAChB,KAAK,QAAQ;MACX,OAAO1B,GAAG;IAMZ,KAAK,OAAO;MACV,OAAOA,GAAG;IAIZ,KAAK,MAAM;IACX;MACE;EACJ;AACF,CAAC,CACF;AAED,OAAO,IAAMyD,gBAAgB,gBAAG1D,MAAM,CAACG,IAAI,CAAC,CAAA4B,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAMhCzB,OAAO,CAACmD,EAAE,EAElB,UAAAC,KAAA;EAAA,IAAGzB,KAAK,GAAAyB,KAAA,CAALzB,KAAK;EAAA,OACRA,KAAK,GACDlC,GAAG,4BAGHA,GAAG,yBAEF;AAAA,GAEL,UAAA4D,KAAA;EAAA,IAAGvB,QAAQ,GAAAuB,KAAA,CAARvB,QAAQ;EAAA,OACXA,QAAQ,IACRrC,GAAG,gDACYkD,MAAM,EAAIzC,cAAc,CAACI,WAAW,CAElD;AAAA,GAED,UAAAgD,KAAA;EAAA,IAAGtB,QAAQ,GAAAsB,KAAA,CAARtB,QAAQ;EAAA,OACXA,QAAQ,IACRvC,GAAG,gDACYmD,OAAO,EAAI1C,cAAc,CAACI,WAAW,CAEnD;AAAA,EACJ"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { TextAreaAttributes } from '../_utils/types';
3
2
  import type { TextAreaProps } from './TextArea.types';
4
3
  /**
5
4
 
@@ -15,4 +14,4 @@ import type { TextAreaProps } from './TextArea.types';
15
14
  @see [Design Guidelines](https://design.procore.com/text-area)
16
15
 
17
16
  */
18
- export declare const TextArea: React.ForwardRefExoticComponent<TextAreaAttributes & TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
17
+ export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","names":["React","StyledTextArea","TextArea","forwardRef","_ref","ref","_ref$resize","resize","error","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$resize","$error","$variant","displayName"],"sources":["../../src/TextArea/TextArea.tsx"],"sourcesContent":["import React from 'react'\nimport type { TextAreaAttributes } from '../_utils/types'\nimport { StyledTextArea } from './TextArea.styles'\nimport type { TextAreaProps } from './TextArea.types'\n\n/**\n\n Text areas give our users space to input unformatted text. All text areas are\n manually expandable by dragging the bottom right corner to the desired size.\n\n If users need to add formatted text, see Text Editor.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-textarea--demo)\n\n @see [Design Guidelines](https://design.procore.com/text-area)\n\n */\nexport const TextArea = React.forwardRef<\n HTMLTextAreaElement,\n TextAreaAttributes & TextAreaProps\n>(function TextArea({ resize = 'both', error, variant, ...props }, ref) {\n return (\n <StyledTextArea\n $resize={resize}\n $error={error}\n $variant={variant}\n {...props}\n ref={ref}\n />\n )\n})\n\nTextArea.displayName = 'TextArea'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,mBAAmB;AAGlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGF,KAAK,CAACG,UAAU,CAGtC,SAASD,QAAQA,CAAAE,IAAA,EAAgDC,GAAG,EAAE;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,MAAM,GAAAA,WAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAKC,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAC7D,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,cAAc,EAAAa,QAAA;IACbC,OAAO,EAAER,MAAO;IAChBS,MAAM,EAAER,KAAM;IACdS,QAAQ,EAAER;EAAQ,GACdC,KAAK;IACTL,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CAAC,CAAC;AAEFH,QAAQ,CAACgB,WAAW,GAAG,UAAU"}
1
+ {"version":3,"file":"TextArea.js","names":["React","StyledTextArea","TextArea","forwardRef","_ref","ref","_ref$resize","resize","error","variant","props","_objectWithoutProperties","_excluded","createElement","_extends","$resize","$error","$variant","displayName"],"sources":["../../src/TextArea/TextArea.tsx"],"sourcesContent":["import React from 'react'\nimport { StyledTextArea } from './TextArea.styles'\nimport type { TextAreaProps } from './TextArea.types'\n\n/**\n\n Text areas give our users space to input unformatted text. All text areas are\n manually expandable by dragging the bottom right corner to the desired size.\n\n If users need to add formatted text, see Text Editor.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-textarea--demo)\n\n @see [Design Guidelines](https://design.procore.com/text-area)\n\n */\nexport const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea({ resize = 'both', error, variant, ...props }, ref) {\n return (\n <StyledTextArea\n $resize={resize}\n $error={error}\n $variant={variant}\n {...props}\n ref={ref}\n />\n )\n }\n)\n\nTextArea.displayName = 'TextArea'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,mBAAmB;AAGlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGF,KAAK,CAACG,UAAU,CACtC,SAASD,QAAQA,CAAAE,IAAA,EAAgDC,GAAG,EAAE;EAAA,IAAAC,WAAA,GAAAF,IAAA,CAAlDG,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,MAAM,GAAAA,WAAA;IAAEE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAKC,KAAK,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;EAC3D,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,cAAc,EAAAa,QAAA;IACbC,OAAO,EAAER,MAAO;IAChBS,MAAM,EAAER,KAAM;IACdS,QAAQ,EAAER;EAAQ,GACdC,KAAK;IACTL,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDH,QAAQ,CAACgB,WAAW,GAAG,UAAU"}
@@ -3,7 +3,7 @@ import { getInputStyles } from '../Input/Input.styles';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledTextArea = /*#__PURE__*/styled.textarea.withConfig({
5
5
  displayName: "StyledTextArea",
6
- componentId: "core-12_25_1__sc-u5mow1-0"
6
+ componentId: "core-12_25_2__sc-u5mow1-0"
7
7
  })(["", ";height:auto;min-height:64px;padding:", "px ", "px;resize:", ";"], getInputStyles, spacing.sm, spacing.md, function (_ref) {
8
8
  var _ref$$resize = _ref.$resize,
9
9
  $resize = _ref$$resize === void 0 ? 'both' : _ref$$resize;
@@ -1,5 +1,5 @@
1
- import type { TextAreaAttributes } from '../_utils/types';
2
- export interface TextAreaProps extends TextAreaAttributes {
1
+ /// <reference types="react" />
2
+ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
3
  /**
4
4
  * Controls the error state of the `TextArea`, changing the
5
5
  * background color and border colors to red
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.js","names":[],"sources":["../../src/TextArea/TextArea.types.ts"],"sourcesContent":["import type { TextAreaAttributes } from '../_utils/types'\n\nexport interface TextAreaProps extends TextAreaAttributes {\n /**\n * Controls the error state of the `TextArea`, changing the\n * background color and border colors to red\n * @since 10.19.0\n */\n error?: boolean\n\n /**\n * Controls the resize rules for the `TextArea`\n * @since 10.19.0\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/resize\n */\n resize?: 'both' | 'horizontal' | 'none' | 'vertical'\n\n /**\n * @deprecated\n * The `variant` prop has been deprecated and will be removed in a future version.\n * Please use the `error` boolean prop instead.\n *\n * **Before**\n *\n * `<TextArea variant=\"error\" />`\n *\n * **After**\n *\n * `<TextArea error />`\n *\n * @deprecatedSince 10.20.0\n * @since 10.19.0\n */\n variant?: 'error' | ''\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TextArea.types.js","names":[],"sources":["../../src/TextArea/TextArea.types.ts"],"sourcesContent":["export interface TextAreaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {\n /**\n * Controls the error state of the `TextArea`, changing the\n * background color and border colors to red\n * @since 10.19.0\n */\n error?: boolean\n\n /**\n * Controls the resize rules for the `TextArea`\n * @since 10.19.0\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/resize\n */\n resize?: 'both' | 'horizontal' | 'none' | 'vertical'\n\n /**\n * @deprecated\n * The `variant` prop has been deprecated and will be removed in a future version.\n * Please use the `error` boolean prop instead.\n *\n * **Before**\n *\n * `<TextArea variant=\"error\" />`\n *\n * **After**\n *\n * `<TextArea error />`\n *\n * @deprecatedSince 10.20.0\n * @since 10.19.0\n */\n variant?: 'error' | ''\n}\n"],"mappings":""}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { DivAttributes } from '../_utils/types';
3
2
  import type { TextEditorOutputProps } from './TextEditorOutput.types';
4
3
  /**
5
4
 
@@ -10,4 +9,4 @@ import type { TextEditorOutputProps } from './TextEditorOutput.types';
10
9
  @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)
11
10
 
12
11
  */
13
- export declare const TextEditorOutput: React.ForwardRefExoticComponent<TextEditorOutputProps & DivAttributes & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const TextEditorOutput: React.ForwardRefExoticComponent<TextEditorOutputProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditorOutput.js","names":["Editor","React","generateExternalPlugins","tinyMCEConfig","tinyMCESource","tinyMCEVersion","StyledEditor","TextEditorOutput","forwardRef","_ref","ref","value","initOverrides","init","props","_objectWithoutProperties","_excluded","createElement","_extends","_objectSpread","external_plugins","toolbar","autoresize_overflow_padding","min_height","max_height","content_style","tinymceScriptSrc","concat","disabled","displayName"],"sources":["../../src/TextEditorOutput/TextEditorOutput.tsx"],"sourcesContent":["import { Editor } from '@tinymce/tinymce-react'\nimport React from 'react'\nimport {\n generateExternalPlugins,\n tinyMCEConfig,\n tinyMCESource,\n tinyMCEVersion,\n} from '../_utils/TinyMCE'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledEditor } from './TextEditorOutput.styles'\nimport type { TextEditorOutputProps } from './TextEditorOutput.types'\n\n/**\n\n We use TextEditorOutput to render formatted text.\n\n @since 10.24.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)\n\n */\nexport const TextEditorOutput = React.forwardRef<\n HTMLDivElement,\n TextEditorOutputProps & DivAttributes\n>(function TextEditorOutput({ value, init: initOverrides, ...props }, ref) {\n return (\n <StyledEditor {...props} ref={ref}>\n <Editor\n value={value}\n init={{\n ...tinyMCEConfig,\n external_plugins: generateExternalPlugins(['autoresize']),\n toolbar: false,\n autoresize_overflow_padding: 0,\n min_height: 0,\n max_height: 400,\n content_style: `body { margin: 0; padding: 0; } p { margin: 0; }`,\n ...initOverrides,\n }}\n tinymceScriptSrc={`${tinyMCESource}/${tinyMCEVersion}/tinymce.min.js`}\n disabled\n />\n </StyledEditor>\n )\n})\n\nTextEditorOutput.displayName = 'TextEditorOutput'\n"],"mappings":";;;;;;;;;;AAAA,SAASA,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,uBAAuB,EACvBC,aAAa,EACbC,aAAa,EACbC,cAAc,QACT,mBAAmB;AAE1B,SAASC,YAAY,QAAQ,2BAA2B;AAGxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,gBAAgB,gBAAGN,KAAK,CAACO,UAAU,CAG9C,SAASD,gBAAgBA,CAAAE,IAAA,EAA2CC,GAAG,EAAE;EAAA,IAA7CC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAQC,aAAa,GAAAH,IAAA,CAAnBI,IAAI;IAAoBC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAChE,oBACEf,KAAA,CAAAgB,aAAA,CAACX,YAAY,EAAAY,QAAA,KAAKJ,KAAK;IAAEJ,GAAG,EAAEA;EAAI,iBAChCT,KAAA,CAAAgB,aAAA,CAACjB,MAAM;IACLW,KAAK,EAAEA,KAAM;IACbE,IAAI,EAAAM,aAAA,CAAAA,aAAA,KACChB,aAAa;MAChBiB,gBAAgB,EAAElB,uBAAuB,CAAC,CAAC,YAAY,CAAC,CAAC;MACzDmB,OAAO,EAAE,KAAK;MACdC,2BAA2B,EAAE,CAAC;MAC9BC,UAAU,EAAE,CAAC;MACbC,UAAU,EAAE,GAAG;MACfC,aAAa;IAAoD,GAC9Db,aAAa,CAChB;IACFc,gBAAgB,KAAAC,MAAA,CAAKvB,aAAa,OAAAuB,MAAA,CAAItB,cAAc,oBAAkB;IACtEuB,QAAQ;EAAA,CACT,CACW,CAAC;AAEnB,CAAC,CAAC;AAEFrB,gBAAgB,CAACsB,WAAW,GAAG,kBAAkB"}
1
+ {"version":3,"file":"TextEditorOutput.js","names":["Editor","React","generateExternalPlugins","tinyMCEConfig","tinyMCESource","tinyMCEVersion","StyledEditor","TextEditorOutput","forwardRef","_ref","ref","value","initOverrides","init","props","_objectWithoutProperties","_excluded","createElement","_extends","_objectSpread","external_plugins","toolbar","autoresize_overflow_padding","min_height","max_height","content_style","tinymceScriptSrc","concat","disabled","displayName"],"sources":["../../src/TextEditorOutput/TextEditorOutput.tsx"],"sourcesContent":["import { Editor } from '@tinymce/tinymce-react'\nimport React from 'react'\nimport {\n generateExternalPlugins,\n tinyMCEConfig,\n tinyMCESource,\n tinyMCEVersion,\n} from '../_utils/TinyMCE'\nimport { StyledEditor } from './TextEditorOutput.styles'\nimport type { TextEditorOutputProps } from './TextEditorOutput.types'\n\n/**\n\n We use TextEditorOutput to render formatted text.\n\n @since 10.24.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-texteditoroutput--demo)\n\n */\nexport const TextEditorOutput = React.forwardRef<\n HTMLDivElement,\n TextEditorOutputProps & React.HTMLAttributes<HTMLDivElement>\n>(function TextEditorOutput({ value, init: initOverrides, ...props }, ref) {\n return (\n <StyledEditor {...props} ref={ref}>\n <Editor\n value={value}\n init={{\n ...tinyMCEConfig,\n external_plugins: generateExternalPlugins(['autoresize']),\n toolbar: false,\n autoresize_overflow_padding: 0,\n min_height: 0,\n max_height: 400,\n content_style: `body { margin: 0; padding: 0; } p { margin: 0; }`,\n ...initOverrides,\n }}\n tinymceScriptSrc={`${tinyMCESource}/${tinyMCEVersion}/tinymce.min.js`}\n disabled\n />\n </StyledEditor>\n )\n})\n\nTextEditorOutput.displayName = 'TextEditorOutput'\n"],"mappings":";;;;;;;;;;AAAA,SAASA,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,uBAAuB,EACvBC,aAAa,EACbC,aAAa,EACbC,cAAc,QACT,mBAAmB;AAC1B,SAASC,YAAY,QAAQ,2BAA2B;AAGxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,gBAAgB,gBAAGN,KAAK,CAACO,UAAU,CAG9C,SAASD,gBAAgBA,CAAAE,IAAA,EAA2CC,GAAG,EAAE;EAAA,IAA7CC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAQC,aAAa,GAAAH,IAAA,CAAnBI,IAAI;IAAoBC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAChE,oBACEf,KAAA,CAAAgB,aAAA,CAACX,YAAY,EAAAY,QAAA,KAAKJ,KAAK;IAAEJ,GAAG,EAAEA;EAAI,iBAChCT,KAAA,CAAAgB,aAAA,CAACjB,MAAM;IACLW,KAAK,EAAEA,KAAM;IACbE,IAAI,EAAAM,aAAA,CAAAA,aAAA,KACChB,aAAa;MAChBiB,gBAAgB,EAAElB,uBAAuB,CAAC,CAAC,YAAY,CAAC,CAAC;MACzDmB,OAAO,EAAE,KAAK;MACdC,2BAA2B,EAAE,CAAC;MAC9BC,UAAU,EAAE,CAAC;MACbC,UAAU,EAAE,GAAG;MACfC,aAAa;IAAoD,GAC9Db,aAAa,CAChB;IACFc,gBAAgB,KAAAC,MAAA,CAAKvB,aAAa,OAAAuB,MAAA,CAAItB,cAAc,oBAAkB;IACtEuB,QAAQ;EAAA,CACT,CACW,CAAC;AAEnB,CAAC,CAAC;AAEFrB,gBAAgB,CAACsB,WAAW,GAAG,kBAAkB"}
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledEditor = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledEditor",
4
- componentId: "core-12_25_1__sc-1lje1b0-0"
4
+ componentId: "core-12_25_2__sc-1lje1b0-0"
5
5
  })(["> .tox-tinymce{border:none;}"]);
6
6
  //# sourceMappingURL=TextEditorOutput.styles.js.map
@@ -8,4 +8,4 @@
8
8
  @see [Design Guidelines](https://design.procore.com/text-input)
9
9
 
10
10
  */
11
- export declare const TextInput: import("react").ForwardRefExoticComponent<import("../_utils/types").InputAttributes & import("../Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
11
+ export declare const TextInput: import("react").ForwardRefExoticComponent<import("../Input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,4 @@
1
1
  import type React from 'react';
2
- import type { DivAttributes } from '../_utils/types';
3
2
  import type { LayoutVariant, ThumbnailProps } from './Thumbnail.types';
4
3
  export declare const useThumbnail: ({ selected, disabled, clickable, focused, hasCaptionPlaceholder, src, filename: filename_, size, label, name, caption, onChange, value, ...props }: ThumbnailProps<'checkbox'> | ThumbnailProps<'figure'> | ThumbnailProps<undefined>) => {
5
4
  label: string;
@@ -24,7 +23,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
24
23
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
25
24
  * > This is likely not portable. A type annotation is necessary.
26
25
  */
27
- focusProps: DivAttributes;
26
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
28
27
  isFocusVisible: boolean;
29
28
  toggleState: import("react-stately").ToggleState;
30
29
  as: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
@@ -322,7 +321,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
322
321
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
323
322
  * > This is likely not portable. A type annotation is necessary.
324
323
  */
325
- focusProps: DivAttributes;
324
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
326
325
  isFocusVisible: boolean;
327
326
  toggleState: import("react-stately").ToggleState;
328
327
  as: string;
@@ -620,7 +619,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
620
619
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
621
620
  * > This is likely not portable. A type annotation is necessary.
622
621
  */
623
- focusProps: DivAttributes;
622
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
624
623
  isFocusVisible: boolean;
625
624
  toggleState: import("react-stately").ToggleState;
626
625
  as: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
@@ -942,7 +941,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
942
941
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
943
942
  * > This is likely not portable. A type annotation is necessary.
944
943
  */
945
- focusProps: DivAttributes;
944
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
946
945
  isFocusVisible: boolean;
947
946
  toggleState: import("react-stately").ToggleState;
948
947
  as: string;
@@ -1264,7 +1263,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
1264
1263
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
1265
1264
  * > This is likely not portable. A type annotation is necessary.
1266
1265
  */
1267
- focusProps: DivAttributes;
1266
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
1268
1267
  isFocusVisible: boolean;
1269
1268
  toggleState: import("react-stately").ToggleState;
1270
1269
  as: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
@@ -1302,7 +1301,7 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
1302
1301
  * > reference to '@react-aria/focus/node_modules/@react-types/shared'.
1303
1302
  * > This is likely not portable. A type annotation is necessary.
1304
1303
  */
1305
- focusProps: DivAttributes;
1304
+ focusProps: React.HTMLAttributes<HTMLDivElement>;
1306
1305
  isFocusVisible: boolean;
1307
1306
  toggleState: import("react-stately").ToggleState;
1308
1307
  as: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Thumbnail.hooks.js","names":["useCheckbox","useFocusRing","useRef","useToggleState","getIsFilePreviewableAsImage","defaultSize","useThumbnail","_ref","selected","_ref$disabled","disabled","_ref$clickable","clickable","_ref$focused","focused","_ref$hasCaptionPlaceh","hasCaptionPlaceholder","src","filename_","filename","_ref$size","size","_ref$label","label","name","_ref$caption","caption","onChange","value","props","_objectWithoutProperties","_excluded","a11yProps","role","as","inputRef","toggleState","defaultSelected","layout","isFile","File","isImageURL","canPreviewFileAsImage","isFileOrNonPreviewableImage","shouldUsePlaceholder","ariaLabel","concat","_useCheckbox","isSelected","inputProps","_useFocusRing","isFocusVisible","focusProps","_objectSpread","alt"],"sources":["../../src/Thumbnail/Thumbnail.hooks.tsx"],"sourcesContent":["import { useCheckbox } from '@react-aria/checkbox'\nimport { useFocusRing } from '@react-aria/focus'\nimport type React from 'react'\nimport { useRef } from 'react'\nimport { useToggleState } from 'react-stately'\nimport type { DivAttributes } from '../_utils/types'\nimport type { LayoutVariant, ThumbnailProps } from './Thumbnail.types'\nimport { getIsFilePreviewableAsImage } from './Thumbnail.utils'\n\nconst defaultSize = 'lg'\n\nexport const useThumbnail = ({\n selected,\n disabled = false,\n clickable = true,\n focused = false,\n hasCaptionPlaceholder = false,\n src,\n filename: filename_,\n size = defaultSize,\n label = '',\n // @ts-ignore Checkbox only\n name,\n caption = '',\n // @ts-ignore Checkbox only\n onChange,\n // @ts-ignore Checkbox only\n value,\n ...props\n}:\n | ThumbnailProps<'checkbox'>\n | ThumbnailProps<'figure'>\n | ThumbnailProps<undefined>) => {\n const a11yProps =\n props.role === 'figure'\n ? { as: 'figure' as React.ElementType }\n : { as: 'div' }\n const inputRef = useRef<HTMLInputElement>(null)\n const toggleState = useToggleState({\n defaultSelected: selected,\n onChange,\n })\n const layout: LayoutVariant = size === 'sm' ? 'row' : 'column'\n const isFile = src instanceof File\n const isImageURL = typeof src === 'string'\n const canPreviewFileAsImage = getIsFilePreviewableAsImage(src)\n const isFileOrNonPreviewableImage = isFile && !canPreviewFileAsImage\n const shouldUsePlaceholder = isFileOrNonPreviewableImage || !src\n const filename =\n filename_ ?? (isFileOrNonPreviewableImage ? (src as File).name : caption)\n const ariaLabel = label && caption ? `${label} ${caption}` : caption || label\n const { inputProps } = useCheckbox(\n { isSelected: selected, 'aria-label': ariaLabel, name, onChange, value },\n toggleState,\n inputRef\n )\n const { isFocusVisible, focusProps } = useFocusRing()\n\n return {\n alt: props.alt || props.alt === '' ? props.alt : caption || label,\n ...props,\n ...a11yProps,\n label,\n caption,\n selected: toggleState.isSelected,\n disabled,\n clickable,\n focused,\n isImageURL,\n hasCaptionPlaceholder,\n shouldUsePlaceholder,\n src,\n filename,\n size,\n layout,\n inputRef,\n inputProps,\n /**\n * Appeared 23-1-18 https://github.com/procore/core/pull/12250\n * Possible issue with types from React Aria during dependency update\n * > The inferred type of 'useThumbnail' cannot be named without a\n * > reference to '@react-aria/focus/node_modules/@react-types/shared'.\n * > This is likely not portable. A type annotation is necessary.\n */\n focusProps: focusProps as DivAttributes,\n isFocusVisible,\n toggleState,\n }\n}\n"],"mappings":";;;;;;;;;AAAA,SAASA,WAAW,QAAQ,sBAAsB;AAClD,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,SAASC,MAAM,QAAQ,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAG9C,SAASC,2BAA2B,QAAQ,mBAAmB;AAE/D,IAAMC,WAAW,GAAG,IAAI;AAExB,OAAO,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAqBS;EAAA,IApBhCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,aAAA,GAAAF,IAAA,CACRG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,cAAA,GAAAJ,IAAA,CAChBK,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,IAAI,GAAAA,cAAA;IAAAE,YAAA,GAAAN,IAAA,CAChBO,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IAAAE,qBAAA,GAAAR,IAAA,CACfS,qBAAqB;IAArBA,qBAAqB,GAAAD,qBAAA,cAAG,KAAK,GAAAA,qBAAA;IAC7BE,GAAG,GAAAV,IAAA,CAAHU,GAAG;IACOC,SAAS,GAAAX,IAAA,CAAnBY,QAAQ;IAAAC,SAAA,GAAAb,IAAA,CACRc,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAGf,WAAW,GAAAe,SAAA;IAAAE,UAAA,GAAAf,IAAA,CAClBgB,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,EAAE,GAAAA,UAAA;IAEVE,IAAI,GAAAjB,IAAA,CAAJiB,IAAI;IAAAC,YAAA,GAAAlB,IAAA,CACJmB,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,EAAE,GAAAA,YAAA;IAEZE,QAAQ,GAAApB,I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AU,GAAAF,YAAA,CAAVE,UAAU;EAKlB,IAAAC,aAAA,GAAuCjD,YAAY,CAAC,CAAC;IAA7CkD,cAAc,GAAAD,aAAA,CAAdC,cAAc;IAAEC,UAAU,GAAAF,aAAA,CAAVE,UAAU;EAElC,OAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA;IACEC,GAAG,EAAEzB,KAAK,CAACyB,GAAG,IAAIzB,KAAK,CAACyB,GAAG,KAAK,EAAE,GAAGzB,KAAK,CAACyB,GAAG,GAAG5B,OAAO,IAAIH;EAAK,GAC9DM,KAAK,GACLG,SAAS;IACZT,KAAK,EAALA,KAAK;IACLG,OAAO,EAAPA,OAAO;IACPlB,QAAQ,EAAE4B,WAAW,CAACY,UAAU;IAChCtC,QAAQ,EAARA,QAAQ;IACRE,SAAS,EAATA,SAAS;IACTE,OAAO,EAAPA,OAAO;IACP2B,UAAU,EAAVA,UAAU;IACVzB,qBAAqB,EAArBA,qBAAqB;IACrB4B,oBAAoB,EAApBA,oBAAoB;IACpB3B,GAAG,EAAHA,GAAG;IACHE,QAAQ,EAARA,QAAQ;IACRE,IAAI,EAAJA,IAAI;IACJiB,MAAM,EAANA,MAAM;IACNH,QAAQ,EAARA,QAAQ;IACRc,UAAU,EAAVA,UAAU;IACV;AACJ;AACA;AACA;AACA;AACA;AACA;IACIG,UAAU,EAAEA,UAA2B;IACvCD,cAAc,EAAdA,cAAc;IACdf,WAAW,EAAXA;EAAW;AAEf,CAAC"}
1
+ {"version":3,"file":"Thumbnail.hooks.js","names":["useCheckbox","useFocusRing","useRef","useToggleState","getIsFilePreviewableAsImage","defaultSize","useThumbnail","_ref","selected","_ref$disabled","disabled","_ref$clickable","clickable","_ref$focused","focused","_ref$hasCaptionPlaceh","hasCaptionPlaceholder","src","filename_","filename","_ref$size","size","_ref$label","label","name","_ref$caption","caption","onChange","value","props","_objectWithoutProperties","_excluded","a11yProps","role","as","inputRef","toggleState","defaultSelected","layout","isFile","File","isImageURL","canPreviewFileAsImage","isFileOrNonPreviewableImage","shouldUsePlaceholder","ariaLabel","concat","_useCheckbox","isSelected","inputProps","_useFocusRing","isFocusVisible","focusProps","_objectSpread","alt"],"sources":["../../src/Thumbnail/Thumbnail.hooks.tsx"],"sourcesContent":["import { useCheckbox } from '@react-aria/checkbox'\nimport { useFocusRing } from '@react-aria/focus'\nimport type React from 'react'\nimport { useRef } from 'react'\nimport { useToggleState } from 'react-stately'\nimport type { LayoutVariant, ThumbnailProps } from './Thumbnail.types'\nimport { getIsFilePreviewableAsImage } from './Thumbnail.utils'\n\nconst defaultSize = 'lg'\n\nexport const useThumbnail = ({\n selected,\n disabled = false,\n clickable = true,\n focused = false,\n hasCaptionPlaceholder = false,\n src,\n filename: filename_,\n size = defaultSize,\n label = '',\n // @ts-ignore Checkbox only\n name,\n caption = '',\n // @ts-ignore Checkbox only\n onChange,\n // @ts-ignore Checkbox only\n value,\n ...props\n}:\n | ThumbnailProps<'checkbox'>\n | ThumbnailProps<'figure'>\n | ThumbnailProps<undefined>) => {\n const a11yProps =\n props.role === 'figure'\n ? { as: 'figure' as React.ElementType }\n : { as: 'div' }\n const inputRef = useRef<HTMLInputElement>(null)\n const toggleState = useToggleState({\n defaultSelected: selected,\n onChange,\n })\n const layout: LayoutVariant = size === 'sm' ? 'row' : 'column'\n const isFile = src instanceof File\n const isImageURL = typeof src === 'string'\n const canPreviewFileAsImage = getIsFilePreviewableAsImage(src)\n const isFileOrNonPreviewableImage = isFile && !canPreviewFileAsImage\n const shouldUsePlaceholder = isFileOrNonPreviewableImage || !src\n const filename =\n filename_ ?? (isFileOrNonPreviewableImage ? (src as File).name : caption)\n const ariaLabel = label && caption ? `${label} ${caption}` : caption || label\n const { inputProps } = useCheckbox(\n { isSelected: selected, 'aria-label': ariaLabel, name, onChange, value },\n toggleState,\n inputRef\n )\n const { isFocusVisible, focusProps } = useFocusRing()\n\n return {\n alt: props.alt || props.alt === '' ? props.alt : caption || label,\n ...props,\n ...a11yProps,\n label,\n caption,\n selected: toggleState.isSelected,\n disabled,\n clickable,\n focused,\n isImageURL,\n hasCaptionPlaceholder,\n shouldUsePlaceholder,\n src,\n filename,\n size,\n layout,\n inputRef,\n inputProps,\n /**\n * Appeared 23-1-18 https://github.com/procore/core/pull/12250\n * Possible issue with types from React Aria during dependency update\n * > The inferred type of 'useThumbnail' cannot be named without a\n * > reference to '@react-aria/focus/node_modules/@react-types/shared'.\n * > This is likely not portable. A type annotation is necessary.\n */\n focusProps: focusProps as React.HTMLAttributes<HTMLDivElement>,\n isFocusVisible,\n toggleState,\n }\n}\n"],"mappings":";;;;;;;;;AAAA,SAASA,WAAW,QAAQ,sBAAsB;AAClD,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,SAASC,MAAM,QAAQ,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAE9C,SAASC,2BAA2B,QAAQ,mBAAmB;AAE/D,IAAMC,WAAW,GAAG,IAAI;AAExB,OAAO,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAqBS;EAAA,IApBhCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,aAAA,GAAAF,IAAA,CACRG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,cAAA,GAAAJ,IAAA,CAChBK,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,IAAI,GAAAA,cAAA;IAAAE,YAAA,GAAAN,IAAA,CAChBO,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IAAAE,qBAAA,GAAAR,IAAA,CACfS,qBAAqB;IAArBA,qBAAqB,GAAAD,qBAAA,cAAG,KAAK,GAAAA,qBAAA;IAC7BE,GAAG,GAAAV,IAAA,CAAHU,GAAG;IACOC,SAAS,GAAAX,IAAA,CAAnBY,QAAQ;IAAAC,SAAA,GAAAb,IAAA,CACRc,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAGf,WAAW,GAAAe,SAAA;IAA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,OAAO,IAAIH,KAAK;EAC7E,IAAAwB,YAAA,GAAuB/C,WAAW,CAChC;MAAEgD,UAAU,EAAExC,QAAQ;MAAE,YAAY,EAAEqC,SAAS;MAAErB,IAAI,EAAJA,IAAI;MAAEG,QAAQ,EAARA,QAAQ;MAAEC,KAAK,EAALA;IAAM,CAAC,EACxEQ,WAAW,EACXD,QACF,CAAC;IAJOc,UAAU,GAAAF,YAAA,CAAVE,UAAU;EAKlB,IAAAC,aAAA,GAAuCjD,YAAY,CAAC,CAAC;IAA7CkD,cAAc,GAAAD,aAAA,CAAdC,cAAc;IAAEC,UAAU,GAAAF,aAAA,CAAVE,UAAU;EAElC,OAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA;IACEC,GAAG,EAAEzB,KAAK,CAACyB,GAAG,IAAIzB,KAAK,CAACyB,GAAG,KAAK,EAAE,GAAGzB,KAAK,CAACyB,GAAG,GAAG5B,OAAO,IAAIH;EAAK,GAC9DM,KAAK,GACLG,SAAS;IACZT,KAAK,EAALA,KAAK;IACLG,OAAO,EAAPA,OAAO;IACPlB,QAAQ,EAAE4B,WAAW,CAACY,UAAU;IAChCtC,QAAQ,EAARA,QAAQ;IACRE,SAAS,EAATA,SAAS;IACTE,OAAO,EAAPA,OAAO;IACP2B,UAAU,EAAVA,UAAU;IACVzB,qBAAqB,EAArBA,qBAAqB;IACrB4B,oBAAoB,EAApBA,oBAAoB;IACpB3B,GAAG,EAAHA,GAAG;IACHE,QAAQ,EAARA,QAAQ;IACRE,IAAI,EAAJA,IAAI;IACJiB,MAAM,EAANA,MAAM;IACNH,QAAQ,EAARA,QAAQ;IACRc,UAAU,EAAVA,UAAU;IACV;AACJ;AACA;AACA;AACA;AACA;AACA;IACIG,UAAU,EAAEA,UAAkD;IAC9DD,cAAc,EAAdA,cAAc;IACdf,WAAW,EAAXA;EAAW;AAEf,CAAC"}
@@ -24,9 +24,9 @@ export declare const StyledPlaceholderCaption: import("styled-components/dist/ty
24
24
  export declare const StyledSingleLineCaption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CaptionProps>> & string;
25
25
  export declare const StyledSinglelineCaptionBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
26
26
  export declare const StyledSinglelineCaptionEnding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
27
- export declare const StyledLabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("..").SpanAttributes & TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
27
+ export declare const StyledLabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
28
28
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
29
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").SpanAttributes & TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
29
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
30
30
  export declare const StyledThumbnailFigCaption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {
31
31
  $color?: TypographyProps['color'];
32
32
  }>> & string;
@@ -27,35 +27,35 @@ var captionBase = /*#__PURE__*/css(["color:", ";font-size:12px;line-height:16px;
27
27
  });
28
28
  export var StyledMultilineCaption = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledMultilineCaption",
30
- componentId: "core-12_25_1__sc-195f70c-0"
30
+ componentId: "core-12_25_2__sc-195f70c-0"
31
31
  })(["", ";display:flex;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:", "px;"], captionBase, multilineCaptionMaxHeight);
32
32
  export var StyledCaptionText = /*#__PURE__*/styled.span.withConfig({
33
33
  displayName: "StyledCaptionText",
34
- componentId: "core-12_25_1__sc-195f70c-1"
34
+ componentId: "core-12_25_2__sc-195f70c-1"
35
35
  })(["width:100%;"]);
36
36
  export var StyledPlaceholderCaption = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledPlaceholderCaption",
38
- componentId: "core-12_25_1__sc-195f70c-2"
38
+ componentId: "core-12_25_2__sc-195f70c-2"
39
39
  })(["", ""], captionBase);
40
40
  export var StyledSingleLineCaption = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledSingleLineCaption",
42
- componentId: "core-12_25_1__sc-195f70c-3"
42
+ componentId: "core-12_25_2__sc-195f70c-3"
43
43
  })(["display:flex;", ""], captionBase);
44
44
  export var StyledSinglelineCaptionBody = /*#__PURE__*/styled.span.withConfig({
45
45
  displayName: "StyledSinglelineCaptionBody",
46
- componentId: "core-12_25_1__sc-195f70c-4"
46
+ componentId: "core-12_25_2__sc-195f70c-4"
47
47
  })(["", ""], getEllipsis);
48
48
  export var StyledSinglelineCaptionEnding = /*#__PURE__*/styled.span.withConfig({
49
49
  displayName: "StyledSinglelineCaptionEnding",
50
- componentId: "core-12_25_1__sc-195f70c-5"
50
+ componentId: "core-12_25_2__sc-195f70c-5"
51
51
  })(["max-width:50%;white-space:nowrap;flex-shrink:0;"]);
52
52
  export var StyledLabelText = /*#__PURE__*/styled(Typography).withConfig({
53
53
  displayName: "StyledLabelText",
54
- componentId: "core-12_25_1__sc-195f70c-6"
54
+ componentId: "core-12_25_2__sc-195f70c-6"
55
55
  })(["", ""], getEllipsis());
56
56
  export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig({
57
57
  displayName: "StyledThumbnailFigCaption",
58
- componentId: "core-12_25_1__sc-195f70c-7"
58
+ componentId: "core-12_25_2__sc-195f70c-7"
59
59
  })(["", " ", " color:", ";font-weight:", ";text-align:center;width:100%;position:absolute;bottom:0;right:0;left:0;opacity:0.85;height:", "px;padding:", "px ", "px;background-color:", ";"], getTypographyIntent('small'), getEllipsis(), function (_ref5) {
60
60
  var _ref5$$color = _ref5.$color,
61
61
  $color = _ref5$$color === void 0 ? 'gray15' : _ref5$$color;
@@ -63,7 +63,7 @@ export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig
63
63
  }, typographyWeights.bold, labelHeight, spacing.sm / 2, spacing.sm, colors.white);
64
64
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledLabel",
66
- componentId: "core-12_25_1__sc-195f70c-8"
66
+ componentId: "core-12_25_2__sc-195f70c-8"
67
67
  })(["display:flex;justify-content:center;position:absolute;bottom:0;right:0;left:0;opacity:0.85;height:", "px;padding:", "px ", "px;font-size:", "px;background-color:", ";"], labelHeight, spacing.sm / 2, spacing.sm, labelFontSize, colors.white);
68
68
  var thumbnailBase = /*#__PURE__*/css(["display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden;border:1px solid ", ";border-radius:", "px;margin:0;", " ", " &:focus{", ";}", " ", " ", ""], colors.gray85, borderRadius.md, function (_ref6) {
69
69
  var $clickable = _ref6.$clickable;
@@ -85,7 +85,7 @@ var thumbnailBase = /*#__PURE__*/css(["display:flex;justify-content:center;align
85
85
  });
86
86
  export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
87
87
  displayName: "StyledTickIcon",
88
- componentId: "core-12_25_1__sc-195f70c-9"
88
+ componentId: "core-12_25_2__sc-195f70c-9"
89
89
  })(["position:absolute;top:", "px;right:", "px;width:", "px;height:", "px;opacity:0;transform:scale(0.75);transition:transform 250ms ease-out,opacity 100ms ease-out;", " ", ""], spacing.sm, spacing.sm, tickSize, tickSize, function (_ref1) {
90
90
  var $selected = _ref1.$selected;
91
91
  return $selected && css(["opacity:1;transform:scale(1);"]);
@@ -95,28 +95,28 @@ export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
95
95
  });
96
96
  export var StyledFileIcon = /*#__PURE__*/styled(DocumentIcon).withConfig({
97
97
  displayName: "StyledFileIcon",
98
- componentId: "core-12_25_1__sc-195f70c-10"
98
+ componentId: "core-12_25_2__sc-195f70c-10"
99
99
  })(["width:36.5%;height:auto;"]);
100
100
  export var StyledImageThumbnailPreview = /*#__PURE__*/styled.div.withConfig({
101
101
  displayName: "StyledImageThumbnailPreview",
102
- componentId: "core-12_25_1__sc-195f70c-11"
102
+ componentId: "core-12_25_2__sc-195f70c-11"
103
103
  })(["width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;", ""], function (_ref11) {
104
104
  var $bgImage = _ref11.$bgImage;
105
105
  return css(["background-image:url(", ");"], $bgImage);
106
106
  });
107
107
  export var StyledImageThumbnailOverlay = /*#__PURE__*/styled.div.withConfig({
108
108
  displayName: "StyledImageThumbnailOverlay",
109
- componentId: "core-12_25_1__sc-195f70c-12"
109
+ componentId: "core-12_25_2__sc-195f70c-12"
110
110
  })(["display:none;position:absolute;top:0;bottom:0;left:0;right:0;"]);
111
111
  var blackOverlay = "\n background-color: ".concat(colors.black, ";\n opacity: 0.2;\n");
112
112
  var whiteOverlay = "\n background-color: ".concat(colors.white, ";\n opacity: 0.5;\n");
113
113
  export var StyledImageThumbnailImage = /*#__PURE__*/styled.img.withConfig({
114
114
  displayName: "StyledImageThumbnailImage",
115
- componentId: "core-12_25_1__sc-195f70c-13"
115
+ componentId: "core-12_25_2__sc-195f70c-13"
116
116
  })([""]);
117
117
  export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
118
118
  displayName: "StyledImageThumbnail",
119
- componentId: "core-12_25_1__sc-195f70c-14"
119
+ componentId: "core-12_25_2__sc-195f70c-14"
120
120
  })(["", ";flex-direction:column;", " ", " ", " ", " ", " ", ""], thumbnailBase, function (_ref12) {
121
121
  var $disabled = _ref12.$disabled;
122
122
  return $disabled && css(["&,&:hover{", "{display:block;", "}}", ",", ",", "{filter:saturate(0);}", "{filter:saturate(0);z-index:-1;}"], StyledImageThumbnailOverlay, whiteOverlay, StyledImageThumbnailPreview, StyledTickIcon, StyledImageThumbnailImage, StyledFileIcon);
@@ -145,7 +145,7 @@ export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
145
145
  });
146
146
  export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
147
147
  displayName: "StyledThumbnailWrapper",
148
- componentId: "core-12_25_1__sc-195f70c-15"
148
+ componentId: "core-12_25_2__sc-195f70c-15"
149
149
  })(["display:flex;", " ", ""], function (_ref18) {
150
150
  var $size = _ref18.$size;
151
151
  return $size === 'lg' ? "\n width: ".concat(thumbnailSizeLg, "px;\n ") : '';
@@ -156,7 +156,7 @@ export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
156
156
  });
157
157
  export var StyledPlaceholderThumbnail = /*#__PURE__*/styled.div.withConfig({
158
158
  displayName: "StyledPlaceholderThumbnail",
159
- componentId: "core-12_25_1__sc-195f70c-16"
159
+ componentId: "core-12_25_2__sc-195f70c-16"
160
160
  })(["", " ", " ", " ", " ", ""], thumbnailBase, function (_ref20) {
161
161
  var $clickable = _ref20.$clickable;
162
162
  return $clickable && css(["&:hover{background-color:", ";}"], colors.gray96);
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
- import type { DivAttributes } from '../_utils/types';
3
2
  import type { ThumbnailGridItem, ThumbnailGridProps } from './ThumbnailGrid.types';
4
- export declare const ThumbnailGrid: React.ForwardRefExoticComponent<Omit<DivAttributes, "onSelect"> & ThumbnailGridProps<ThumbnailGridItem> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const ThumbnailGrid: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> & ThumbnailGridProps<ThumbnailGridItem> & React.RefAttributes<HTMLDivElement>>;