@procore/core-react 12.13.0 → 12.15.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 (315) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  4. package/dist/Badge/Badge.styles.js +2 -2
  5. package/dist/Banner/Banner.js +3 -3
  6. package/dist/Banner/Banner.js.map +1 -1
  7. package/dist/Banner/Banner.styles.d.ts +3 -3
  8. package/dist/Banner/Banner.styles.js +16 -16
  9. package/dist/Banner/Banner.styles.js.map +1 -1
  10. package/dist/Box/Box.styles.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.js +5 -2
  12. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  13. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  14. package/dist/Button/Button.styles.js +5 -5
  15. package/dist/Calendar/Calendar.styles.js +8 -8
  16. package/dist/Card/Card.styles.js +1 -1
  17. package/dist/Checkbox/Checkbox.styles.js +6 -6
  18. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  19. package/dist/ContactItem/ContactItem.styles.js +5 -5
  20. package/dist/Content/Content.styles.js +2 -2
  21. package/dist/DateInput/DateInput.js +1 -1
  22. package/dist/DateInput/DateInput.js.map +1 -1
  23. package/dist/DateInput/DateInput.styles.d.ts +1 -1
  24. package/dist/DateInput/DateInput.styles.js +6 -6
  25. package/dist/DateInput/DateInput.styles.js.map +1 -1
  26. package/dist/DetailPage/DetailPage.styles.js +7 -7
  27. package/dist/DetailPageTemplate/DetailPageTemplate.d.ts +11 -0
  28. package/dist/DetailPageTemplate/DetailPageTemplate.js +38 -0
  29. package/dist/DetailPageTemplate/DetailPageTemplate.js.map +1 -0
  30. package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +13 -0
  31. package/dist/DetailPageTemplate/DetailPageTemplate.types.js +2 -0
  32. package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -0
  33. package/dist/Dropdown/Dropdown.styles.js +3 -3
  34. package/dist/Dropdown/Dropdown.types.d.ts +5 -11
  35. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  36. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  37. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +12 -14
  38. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  39. package/dist/Dropzone/Dropzone.js +3 -2
  40. package/dist/Dropzone/Dropzone.js.map +1 -1
  41. package/dist/Dropzone/Dropzone.styles.js +9 -9
  42. package/dist/Dropzone/Dropzone.types.d.ts +22 -20
  43. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  44. package/dist/EmptyState/EmptyState.js +1 -1
  45. package/dist/EmptyState/EmptyState.js.map +1 -1
  46. package/dist/EmptyState/EmptyState.styles.d.ts +1 -1
  47. package/dist/EmptyState/EmptyState.styles.js +14 -14
  48. package/dist/EmptyState/EmptyState.styles.js.map +1 -1
  49. package/dist/Field/Field.styles.js +3 -3
  50. package/dist/FileList/FileList.styles.js +4 -4
  51. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  52. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  53. package/dist/FileSelect/FileSelect.styles.js +2 -2
  54. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  55. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  56. package/dist/FileSelect/GridSource/GridSource.js +3 -3
  57. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  58. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +3 -3
  59. package/dist/FileSelect/GridSource/GridSource.styles.js +12 -12
  60. package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
  61. package/dist/FileSelect/GridSource/GridSource.types.d.ts +14 -23
  62. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  63. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  64. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +43 -47
  65. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  66. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  67. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  68. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  69. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +3 -1
  70. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  71. package/dist/FileToken/FileToken.styles.js +4 -4
  72. package/dist/FilterToken/FilterToken.styles.js +2 -2
  73. package/dist/FlexList/FlexList.styles.js +1 -1
  74. package/dist/Form/Form.js +14 -8
  75. package/dist/Form/Form.js.map +1 -1
  76. package/dist/Form/Form.styles.js +14 -14
  77. package/dist/Form/Form.types.d.ts +67 -69
  78. package/dist/Form/Form.types.js.map +1 -1
  79. package/dist/Form/StyledFormikForm.styles.js +2 -2
  80. package/dist/Form/index.d.ts +1 -1
  81. package/dist/Form/index.js.map +1 -1
  82. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  83. package/dist/Grid/Grid.styles.js +2 -2
  84. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  85. package/dist/Input/Input.styles.js +1 -1
  86. package/dist/Link/Link.styles.js +1 -1
  87. package/dist/ListPage/ListPage.styles.js +8 -8
  88. package/dist/Loader/Loader.styles.js +2 -2
  89. package/dist/MenuImperative/MenuImperative.js +8 -5
  90. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  91. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  92. package/dist/Modal/Modal.js +2 -2
  93. package/dist/Modal/Modal.js.map +1 -1
  94. package/dist/Modal/Modal.styles.d.ts +2 -2
  95. package/dist/Modal/Modal.styles.js +17 -17
  96. package/dist/Modal/Modal.styles.js.map +1 -1
  97. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  98. package/dist/MultiSelect/MultiSelect.types.d.ts +23 -16
  99. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  100. package/dist/NextMenu/NextMenu.styles.js +3 -3
  101. package/dist/Notation/Notation.js +1 -1
  102. package/dist/NumberInput/NumberInput.js +2 -2
  103. package/dist/NumberInput/NumberInput.js.map +1 -1
  104. package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
  105. package/dist/NumberInput/NumberInput.styles.js +11 -11
  106. package/dist/NumberInput/NumberInput.styles.js.map +1 -1
  107. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  108. package/dist/PageFooterTemplate/PageFooterTemplate.d.ts +3 -0
  109. package/dist/PageFooterTemplate/PageFooterTemplate.js +28 -0
  110. package/dist/PageFooterTemplate/PageFooterTemplate.js.map +1 -0
  111. package/dist/PageFooterTemplate/PageFooterTemplate.styles.d.ts +1 -0
  112. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +8 -0
  113. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -0
  114. package/dist/PageFooterTemplate/PageFooterTemplate.types.d.ts +6 -0
  115. package/dist/PageFooterTemplate/PageFooterTemplate.types.js +2 -0
  116. package/dist/PageFooterTemplate/PageFooterTemplate.types.js.map +1 -0
  117. package/dist/PageHeaderTemplate/PageHeaderTemplate.d.ts +3 -0
  118. package/dist/PageHeaderTemplate/PageHeaderTemplate.js +41 -0
  119. package/dist/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -0
  120. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +2 -0
  121. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +8 -0
  122. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js.map +1 -0
  123. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.d.ts +12 -0
  124. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js +2 -0
  125. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js.map +1 -0
  126. package/dist/PageLayout/PageLayout.styles.js +16 -16
  127. package/dist/PageTemplate/PageTemplate.d.ts +3 -0
  128. package/dist/PageTemplate/PageTemplate.js +18 -0
  129. package/dist/PageTemplate/PageTemplate.js.map +1 -0
  130. package/dist/PageTemplate/PageTemplate.types.d.ts +8 -0
  131. package/dist/PageTemplate/PageTemplate.types.js +2 -0
  132. package/dist/PageTemplate/PageTemplate.types.js.map +1 -0
  133. package/dist/Pagination/Pagination.styles.js +5 -5
  134. package/dist/Panel/Panel.styles.js +11 -11
  135. package/dist/Pill/Pill.styles.js +2 -2
  136. package/dist/Pill/Pill.types.d.ts +3 -1
  137. package/dist/Pill/Pill.types.js.map +1 -1
  138. package/dist/PillSelect/PillSelect.styles.js +4 -4
  139. package/dist/Popover/Popover.styles.js +2 -2
  140. package/dist/Portal/Portal.styles.js +1 -1
  141. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  142. package/dist/RadioButton/RadioButton.styles.js +3 -3
  143. package/dist/Required/Required.styles.js +3 -3
  144. package/dist/Required/Required.types.d.ts +1 -1
  145. package/dist/Required/Required.types.js.map +1 -1
  146. package/dist/Search/Search.styles.js +5 -5
  147. package/dist/Search/Search.types.d.ts +4 -2
  148. package/dist/Search/Search.types.js.map +1 -1
  149. package/dist/Section/Section.styles.js +7 -7
  150. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  151. package/dist/Select/Select.js +6 -3
  152. package/dist/Select/Select.js.map +1 -1
  153. package/dist/Select/Select.styles.js +7 -7
  154. package/dist/Select/Select.types.d.ts +9 -1
  155. package/dist/Select/Select.types.js.map +1 -1
  156. package/dist/Semantic/Semantic.d.ts +3 -7
  157. package/dist/Semantic/Semantic.js +14 -2
  158. package/dist/Semantic/Semantic.js.map +1 -1
  159. package/dist/Semantic/Semantic.styles.d.ts +3 -3
  160. package/dist/Semantic/Semantic.styles.js +11 -11
  161. package/dist/Semantic/Semantic.styles.js.map +1 -1
  162. package/dist/Semantic/Semantic.types.d.ts +5 -0
  163. package/dist/Semantic/Semantic.types.js.map +1 -1
  164. package/dist/SettingsPageTemplate/SettingsPageTemplate.d.ts +7 -0
  165. package/dist/SettingsPageTemplate/SettingsPageTemplate.js +34 -0
  166. package/dist/SettingsPageTemplate/SettingsPageTemplate.js.map +1 -0
  167. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.d.ts +9 -0
  168. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js +2 -0
  169. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js.map +1 -0
  170. package/dist/Slider/Slider.js +2 -2
  171. package/dist/Slider/Slider.js.map +1 -1
  172. package/dist/Slider/Slider.styles.d.ts +2 -2
  173. package/dist/Slider/Slider.styles.js +9 -9
  174. package/dist/Slider/Slider.styles.js.map +1 -1
  175. package/dist/Spinner/Spinner.js +2 -2
  176. package/dist/Spinner/Spinner.js.map +1 -1
  177. package/dist/Spinner/Spinner.styles.d.ts +1 -1
  178. package/dist/Spinner/Spinner.styles.js +9 -9
  179. package/dist/Spinner/Spinner.styles.js.map +1 -1
  180. package/dist/Spinner/Spinner.types.d.ts +2 -5
  181. package/dist/Spinner/Spinner.types.js.map +1 -1
  182. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  183. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  184. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  185. package/dist/Switch/Switch.styles.js +4 -4
  186. package/dist/Table/Table.styles.js +28 -28
  187. package/dist/TableShelf/TableShelf.styles.js +5 -5
  188. package/dist/Tabs/Tabs.styles.js +15 -15
  189. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  190. package/dist/TextArea/TextArea.styles.js +1 -1
  191. package/dist/TextEditor/TextEditor.types.d.ts +12 -9
  192. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  193. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  194. package/dist/Thumbnail/Thumbnail.js +25 -10
  195. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  196. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  197. package/dist/Thumbnail/Thumbnail.types.d.ts +2 -3
  198. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  199. package/dist/Thumbnail/ThumbnailCaption.js +2 -2
  200. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  201. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  202. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  203. package/dist/TieredSelect/TieredSelect.types.d.ts +64 -40
  204. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  205. package/dist/Tile/Tile.styles.js +8 -8
  206. package/dist/Tile/Tile.types.d.ts +1 -1
  207. package/dist/Tile/Tile.types.js.map +1 -1
  208. package/dist/Title/Title.styles.js +7 -7
  209. package/dist/Toast/Toast.styles.js +3 -3
  210. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  211. package/dist/ToggleButton/ToggleButton.types.d.ts +1 -1
  212. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  213. package/dist/Token/Token.styles.js +3 -3
  214. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  215. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  216. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +5 -0
  217. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js +44 -0
  218. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js.map +1 -0
  219. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.d.ts +7 -0
  220. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js +2 -0
  221. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js.map +1 -0
  222. package/dist/Tooltip/Tooltip.styles.js +2 -2
  223. package/dist/Tree/Tree.js +3 -3
  224. package/dist/Tree/Tree.js.map +1 -1
  225. package/dist/Tree/Tree.styles.d.ts +9 -3
  226. package/dist/Tree/Tree.styles.js +23 -15
  227. package/dist/Tree/Tree.styles.js.map +1 -1
  228. package/dist/Tree/Tree.types.d.ts +40 -19
  229. package/dist/Tree/Tree.types.js.map +1 -1
  230. package/dist/Typeahead/Typeahead.styles.js +3 -3
  231. package/dist/Typography/Typography.js +1 -1
  232. package/dist/Typography/Typography.js.map +1 -1
  233. package/dist/Typography/Typography.styles.d.ts +2 -1
  234. package/dist/Typography/Typography.styles.js +3 -3
  235. package/dist/Typography/Typography.styles.js.map +1 -1
  236. package/dist/Typography/Typography.table.story.js +2 -2
  237. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  238. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  239. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  240. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  241. package/dist/_typedoc/Box/Box.types.json +68 -68
  242. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  243. package/dist/_typedoc/Button/Button.types.json +12 -12
  244. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  245. package/dist/_typedoc/Card/Card.types.json +6 -6
  246. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  247. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  248. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  249. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  250. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  251. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  252. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +35 -35
  253. package/dist/_typedoc/Dropzone/Dropzone.types.json +53 -53
  254. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  255. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  256. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  257. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +42 -42
  258. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +30 -30
  259. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +27 -27
  260. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  261. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  262. package/dist/_typedoc/Form/Form.types.json +1088 -972
  263. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  264. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  265. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  266. package/dist/_typedoc/Input/Input.types.json +2 -2
  267. package/dist/_typedoc/Link/Link.types.json +4 -4
  268. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  269. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  270. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  271. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  272. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +36 -36
  273. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  274. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  275. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  276. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  277. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  278. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  279. package/dist/_typedoc/Pill/Pill.types.json +4 -4
  280. package/dist/_typedoc/PillSelect/PillSelect.types.json +58 -48
  281. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  282. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  283. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  284. package/dist/_typedoc/Required/Required.types.json +7 -7
  285. package/dist/_typedoc/Search/Search.types.json +22 -22
  286. package/dist/_typedoc/Section/Section.types.json +15 -15
  287. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  288. package/dist/_typedoc/Select/Select.types.json +78 -58
  289. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  290. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  291. package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
  292. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  293. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  294. package/dist/_typedoc/Table/Table.types.json +112 -102
  295. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  296. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  297. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  298. package/dist/_typedoc/TextEditor/TextEditor.types.json +13 -13
  299. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  300. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +23 -23
  301. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +56 -56
  302. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +44 -44
  303. package/dist/_typedoc/Tile/Tile.types.json +32 -32
  304. package/dist/_typedoc/Title/Title.types.json +1 -1
  305. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  306. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +6 -6
  307. package/dist/_typedoc/Token/Token.types.json +4 -4
  308. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  309. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  310. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  311. package/dist/_typedoc/Tree/Tree.types.json +110 -110
  312. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  313. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  314. package/dist/_typedoc/_utils/types.json +3 -3
  315. package/package.json +9 -9
@@ -28,35 +28,35 @@ var captionBase = /*#__PURE__*/css(["color:", ";font-size:12px;line-height:16px;
28
28
  });
29
29
  export var StyledMultilineCaption = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledMultilineCaption",
31
- componentId: "core-12_13_0__sc-195f70c-0"
31
+ componentId: "core-12_15_0__sc-195f70c-0"
32
32
  })(["", " 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);
33
33
  export var StyledCaptionText = /*#__PURE__*/styled.span.withConfig({
34
34
  displayName: "StyledCaptionText",
35
- componentId: "core-12_13_0__sc-195f70c-1"
35
+ componentId: "core-12_15_0__sc-195f70c-1"
36
36
  })(["width:100%;"]);
37
37
  export var StyledPlaceholderCaption = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledPlaceholderCaption",
39
- componentId: "core-12_13_0__sc-195f70c-2"
39
+ componentId: "core-12_15_0__sc-195f70c-2"
40
40
  })(["", ""], captionBase);
41
41
  export var StyledSingleLineCaption = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledSingleLineCaption",
43
- componentId: "core-12_13_0__sc-195f70c-3"
43
+ componentId: "core-12_15_0__sc-195f70c-3"
44
44
  })(["display:flex;", ""], captionBase);
45
45
  export var StyledSinglelineCaptionBody = /*#__PURE__*/styled.span.withConfig({
46
46
  displayName: "StyledSinglelineCaptionBody",
47
- componentId: "core-12_13_0__sc-195f70c-4"
47
+ componentId: "core-12_15_0__sc-195f70c-4"
48
48
  })(["", ""], getEllipsis);
49
49
  export var StyledSinglelineCaptionEnding = /*#__PURE__*/styled.span.withConfig({
50
50
  displayName: "StyledSinglelineCaptionEnding",
51
- componentId: "core-12_13_0__sc-195f70c-5"
51
+ componentId: "core-12_15_0__sc-195f70c-5"
52
52
  })(["max-width:50%;white-space:nowrap;flex-shrink:0;"]);
53
53
  export var StyledLabelText = /*#__PURE__*/styled(Typography).withConfig({
54
54
  displayName: "StyledLabelText",
55
- componentId: "core-12_13_0__sc-195f70c-6"
55
+ componentId: "core-12_15_0__sc-195f70c-6"
56
56
  })(["", ""], getEllipsis());
57
57
  export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig({
58
58
  displayName: "StyledThumbnailFigCaption",
59
- componentId: "core-12_13_0__sc-195f70c-7"
59
+ componentId: "core-12_15_0__sc-195f70c-7"
60
60
  })(["", " ", " 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) {
61
61
  var _ref5$$color = _ref5.$color,
62
62
  $color = _ref5$$color === void 0 ? 'gray15' : _ref5$$color;
@@ -64,7 +64,7 @@ export var StyledThumbnailFigCaption = /*#__PURE__*/styled.figcaption.withConfig
64
64
  }, typographyWeights.bold, labelHeight, spacing.sm / 2, spacing.sm, colors.white);
65
65
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
66
66
  displayName: "StyledLabel",
67
- componentId: "core-12_13_0__sc-195f70c-8"
67
+ componentId: "core-12_15_0__sc-195f70c-8"
68
68
  })(["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);
69
69
  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) {
70
70
  var clickable = _ref6.clickable;
@@ -86,7 +86,7 @@ var thumbnailBase = /*#__PURE__*/css(["display:flex;justify-content:center;align
86
86
  });
87
87
  export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
88
88
  displayName: "StyledTickIcon",
89
- componentId: "core-12_13_0__sc-195f70c-9"
89
+ componentId: "core-12_15_0__sc-195f70c-9"
90
90
  })(["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 (_ref11) {
91
91
  var selected = _ref11.selected;
92
92
  return selected ? "\n opacity: 1;\n transform: scale(1);\n " : '';
@@ -96,28 +96,28 @@ export var StyledTickIcon = /*#__PURE__*/styled.svg.withConfig({
96
96
  });
97
97
  export var StyledFileIcon = /*#__PURE__*/styled(DocumentIcon).withConfig({
98
98
  displayName: "StyledFileIcon",
99
- componentId: "core-12_13_0__sc-195f70c-10"
99
+ componentId: "core-12_15_0__sc-195f70c-10"
100
100
  })(["width:36.5%;height:auto;"]);
101
101
  export var StyledImageThumbnailPreview = /*#__PURE__*/styled.div.withConfig({
102
102
  displayName: "StyledImageThumbnailPreview",
103
- componentId: "core-12_13_0__sc-195f70c-11"
103
+ componentId: "core-12_15_0__sc-195f70c-11"
104
104
  })(["width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;", ""], function (_ref13) {
105
105
  var $bgImage = _ref13.$bgImage;
106
106
  return css(["background-image:url(", ");"], $bgImage);
107
107
  });
108
108
  export var StyledImageThumbnailOverlay = /*#__PURE__*/styled.div.withConfig({
109
109
  displayName: "StyledImageThumbnailOverlay",
110
- componentId: "core-12_13_0__sc-195f70c-12"
110
+ componentId: "core-12_15_0__sc-195f70c-12"
111
111
  })(["display:none;position:absolute;top:0;bottom:0;left:0;right:0;"]);
112
112
  var blackOverlay = "\n background-color: ".concat(colors.black, ";\n opacity: 0.2;\n");
113
113
  var whiteOverlay = "\n background-color: ".concat(colors.white, ";\n opacity: 0.5;\n");
114
114
  export var StyledImageThumbnailImage = /*#__PURE__*/styled.img.withConfig({
115
115
  displayName: "StyledImageThumbnailImage",
116
- componentId: "core-12_13_0__sc-195f70c-13"
116
+ componentId: "core-12_15_0__sc-195f70c-13"
117
117
  })([""]);
118
118
  export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
119
119
  displayName: "StyledImageThumbnail",
120
- componentId: "core-12_13_0__sc-195f70c-14"
120
+ componentId: "core-12_15_0__sc-195f70c-14"
121
121
  })(["", " flex-direction:column;", " ", " ", " ", " ", " ", ""], thumbnailBase, function (_ref14) {
122
122
  var disabled = _ref14.disabled;
123
123
  return disabled ? "\n &,\n &:hover {\n ".concat(StyledImageThumbnailOverlay, " {\n display: block;\n ").concat(whiteOverlay, "\n }\n }\n ").concat(StyledImageThumbnailPreview, ",\n ").concat(StyledTickIcon, ",\n ").concat(StyledImageThumbnailImage, " {\n filter: saturate(0);\n }\n ").concat(StyledFileIcon, " {\n filter: saturate(0);\n z-index: -1;\n }\n ") : '';
@@ -146,7 +146,7 @@ export var StyledImageThumbnail = /*#__PURE__*/styled.div.withConfig({
146
146
  });
147
147
  export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
148
148
  displayName: "StyledThumbnailWrapper",
149
- componentId: "core-12_13_0__sc-195f70c-15"
149
+ componentId: "core-12_15_0__sc-195f70c-15"
150
150
  })(["display:flex;", " ", ""], function (_ref20) {
151
151
  var size = _ref20.size;
152
152
  return size === 'lg' ? "\n width: ".concat(thumbnailSizeLg, "px;\n ") : '';
@@ -157,7 +157,7 @@ export var StyledThumbnailWrapper = /*#__PURE__*/styled.div.withConfig({
157
157
  });
158
158
  export var StyledPlaceholderThumbnail = /*#__PURE__*/styled.div.withConfig({
159
159
  displayName: "StyledPlaceholderThumbnail",
160
- componentId: "core-12_13_0__sc-195f70c-16"
160
+ componentId: "core-12_15_0__sc-195f70c-16"
161
161
  })(["", " ", " ", " ", " ", ""], thumbnailBase, function (_ref22) {
162
162
  var clickable = _ref22.clickable;
163
163
  return clickable ? "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n\n ") : '';
@@ -31,7 +31,7 @@ export interface BaseThumbnailProps extends Props {
31
31
  */
32
32
  alt?: string;
33
33
  /**
34
- * An image URL or a <Code>File</Code> to generate a preview for
34
+ * An image URL or a `File` to generate a preview for
35
35
  * @since 10.19.0
36
36
  */
37
37
  src?: File | string | null;
@@ -82,8 +82,7 @@ export interface BaseThumbnailProps extends Props {
82
82
  /**
83
83
  * Unless variant is provided, filename is used
84
84
  * to choose a placeholder icon based on extension.
85
- * E.g. for 'filename="panda.png"', image {' '}
86
- * variant will be used
85
+ * E.g. for 'filename="panda.png"', image variant will be used
87
86
  * @since 11.7.0
88
87
  * */
89
88
  filename?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Thumbnail.types.js","names":[],"sources":["../../src/Thumbnail/Thumbnail.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ReactNode } from 'react'\nimport type { Polymorphic } from '../_utils/polymorphic'\nimport type { AriaLabelled, Props } from '../_utils/types'\nimport type { ThumbnailDocumentIconVariant } from './ThumbnailDocumentIcon'\n\nexport type SizeVariant = 'sm' | 'lg'\n\nexport type LayoutVariant = 'row' | 'column'\n\nexport interface QaTags {\n /**\n * @since 10.19.0\n */\n caption?: string\n}\n\n/**\n * @since 11.6.0\n */\nexport type ThumbnailRoleType = 'checkbox' | 'figure'\n\nexport type ThumbnailRoles = ThumbnailRoleType | undefined\n\ninterface ThumbnailPolyMap\n extends Record<ThumbnailRoleType, React.ElementType> {\n figure: 'figure'\n checkbox: 'input'\n}\n\n/**\n * @since 11.6.0\n */\nexport type ThumbnailRef<Role extends ThumbnailRoles = undefined> =\n Role extends ThumbnailRoleType\n ? Polymorphic.Ref<ThumbnailPolyMap, Role>\n : React.ComponentPropsWithRef<'div'>['ref']\n\nexport interface BaseThumbnailProps extends Props {\n /**\n * Alt text for the Thumbnail image\n * @since 11.6.0\n */\n alt?: string\n\n /**\n * An image URL or a <Code>File</Code> to generate a preview for\n * @since 10.19.0\n */\n src?: File | string | null\n\n /**\n * Thumbnail size\n * @default 'lg'\n * @since 10.19.0\n */\n size?: SizeVariant\n\n /**\n * Use \"focused\" view\n * @default false\n * @since 10.19.0\n */\n focused?: boolean\n\n /**\n * Use \"selected\" view\n * @default false\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * Use \"disabled\" view\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n clickable?: boolean\n\n /**\n * Thumbnail caption\n * @default ''\n * @since 10.19.0\n */\n caption?: string\n\n /**\n * Show placeholder for caption if it is empty\n * @default false\n * @since 10.19.0\n */\n hasCaptionPlaceholder?: boolean\n\n /**\n * Unless variant is provided, filename is used\n * to choose a placeholder icon based on extension.\n * E.g. for 'filename=\"panda.png\"', image {' '}\n * variant will be used\n * @since 11.7.0\n * */\n filename?: string\n\n /**\n * @since 11.7.0\n */\n variant?: ThumbnailDocumentIconVariant\n\n /**\n * Thumbnail label\n * @default ''\n * @since 10.19.0\n */\n label?: string\n\n /**\n * @since 11.6.0\n */\n tabIndex?: number\n\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n\n /**\n * @since 11.6.0\n */\n onClick?: (e: React.MouseEvent) => void\n}\n\ntype DecorativeThumbnailProps<Role extends ThumbnailRoles = undefined> = {\n role?: Role\n} & BaseThumbnailProps\n\nexport type ThumbnailProps<Role extends ThumbnailRoles = undefined> =\n Role extends 'figure'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'figure',\n never,\n BaseThumbnailProps\n >\n : Role extends 'checkbox'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'checkbox',\n never,\n BaseThumbnailProps & {\n /** onChange from React Aria is fired before onClick */\n onChange?: (isSelected: boolean) => void\n }\n >\n : DecorativeThumbnailProps & { ref?: ThumbnailRef<undefined> }\n\nexport interface FilePreviewProps {\n /**\n * @since 10.19.0\n */\n file: File\n}\nexport interface BasePlaceholderProps extends Omit<BaseThumbnailProps, 'src'> {}\n\ntype DecorativePlaceholderProps<Role extends ThumbnailRoles = undefined> = {\n role?: Role\n} & BasePlaceholderProps\n\nexport type PlaceholderProps<Role extends ThumbnailRoles = undefined> =\n Role extends 'figure'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'figure',\n never,\n AriaLabelled<BasePlaceholderProps>\n >\n : Role extends 'checkbox'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'checkbox',\n never,\n AriaLabelled<BasePlaceholderProps> & {\n /** onChange from React Aria is fired before onClick */\n onChange?: (isSelected: boolean) => void\n }\n >\n : DecorativePlaceholderProps & { ref?: ThumbnailRef<undefined> }\n\nexport interface MultilineCaptionProps {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n layout: 'row' | 'column'\n /**\n * @since 10.19.0\n */\n qa: string\n}\n\nexport interface SinglelineCaptionProps {\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n layout: 'row' | 'column'\n /**\n * @since 10.19.0\n */\n qa: string\n}\n\nexport interface CaptionTooltipProps {\n /**\n * @since 10.19.0\n */\n overlay: string\n /**\n * @since 10.19.0\n */\n isVisible: boolean\n /**\n * @since 10.19.0\n */\n children: ReactNode\n}\n\nexport interface CaptionProps {\n /**\n * @since 10.19.0\n */\n layout: LayoutVariant\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n hasCaptionPlaceholder: boolean\n /**\n * @since 10.19.0\n */\n multiline: boolean\n /**\n * @since 10.19.0\n */\n qa?: string\n}\n\nexport interface LabelProps {\n /**\n * @since 11.6.0\n */\n id?: string\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n disabled: boolean\n}\n\nexport interface TickIconProps {\n /**\n * @since 10.19.0\n */\n size: SizeVariant\n /**\n * @since 10.19.0\n */\n selected: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Thumbnail.types.js","names":[],"sources":["../../src/Thumbnail/Thumbnail.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ReactNode } from 'react'\nimport type { Polymorphic } from '../_utils/polymorphic'\nimport type { AriaLabelled, Props } from '../_utils/types'\nimport type { ThumbnailDocumentIconVariant } from './ThumbnailDocumentIcon'\n\nexport type SizeVariant = 'sm' | 'lg'\n\nexport type LayoutVariant = 'row' | 'column'\n\nexport interface QaTags {\n /**\n * @since 10.19.0\n */\n caption?: string\n}\n\n/**\n * @since 11.6.0\n */\nexport type ThumbnailRoleType = 'checkbox' | 'figure'\n\nexport type ThumbnailRoles = ThumbnailRoleType | undefined\n\ninterface ThumbnailPolyMap\n extends Record<ThumbnailRoleType, React.ElementType> {\n figure: 'figure'\n checkbox: 'input'\n}\n\n/**\n * @since 11.6.0\n */\nexport type ThumbnailRef<Role extends ThumbnailRoles = undefined> =\n Role extends ThumbnailRoleType\n ? Polymorphic.Ref<ThumbnailPolyMap, Role>\n : React.ComponentPropsWithRef<'div'>['ref']\n\nexport interface BaseThumbnailProps extends Props {\n /**\n * Alt text for the Thumbnail image\n * @since 11.6.0\n */\n alt?: string\n\n /**\n * An image URL or a `File` to generate a preview for\n * @since 10.19.0\n */\n src?: File | string | null\n\n /**\n * Thumbnail size\n * @default 'lg'\n * @since 10.19.0\n */\n size?: SizeVariant\n\n /**\n * Use \"focused\" view\n * @default false\n * @since 10.19.0\n */\n focused?: boolean\n\n /**\n * Use \"selected\" view\n * @default false\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * Use \"disabled\" view\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n clickable?: boolean\n\n /**\n * Thumbnail caption\n * @default ''\n * @since 10.19.0\n */\n caption?: string\n\n /**\n * Show placeholder for caption if it is empty\n * @default false\n * @since 10.19.0\n */\n hasCaptionPlaceholder?: boolean\n\n /**\n * Unless variant is provided, filename is used\n * to choose a placeholder icon based on extension.\n * E.g. for 'filename=\"panda.png\"', image variant will be used\n * @since 11.7.0\n * */\n filename?: string\n\n /**\n * @since 11.7.0\n */\n variant?: ThumbnailDocumentIconVariant\n\n /**\n * Thumbnail label\n * @default ''\n * @since 10.19.0\n */\n label?: string\n\n /**\n * @since 11.6.0\n */\n tabIndex?: number\n\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n\n /**\n * @since 11.6.0\n */\n onClick?: (e: React.MouseEvent) => void\n}\n\ntype DecorativeThumbnailProps<Role extends ThumbnailRoles = undefined> = {\n role?: Role\n} & BaseThumbnailProps\n\nexport type ThumbnailProps<Role extends ThumbnailRoles = undefined> =\n Role extends 'figure'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'figure',\n never,\n BaseThumbnailProps\n >\n : Role extends 'checkbox'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'checkbox',\n never,\n BaseThumbnailProps & {\n /** onChange from React Aria is fired before onClick */\n onChange?: (isSelected: boolean) => void\n }\n >\n : DecorativeThumbnailProps & { ref?: ThumbnailRef<undefined> }\n\nexport interface FilePreviewProps {\n /**\n * @since 10.19.0\n */\n file: File\n}\nexport interface BasePlaceholderProps extends Omit<BaseThumbnailProps, 'src'> {}\n\ntype DecorativePlaceholderProps<Role extends ThumbnailRoles = undefined> = {\n role?: Role\n} & BasePlaceholderProps\n\nexport type PlaceholderProps<Role extends ThumbnailRoles = undefined> =\n Role extends 'figure'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'figure',\n never,\n AriaLabelled<BasePlaceholderProps>\n >\n : Role extends 'checkbox'\n ? Polymorphic.ComponentPropsWithRef<\n ThumbnailPolyMap,\n 'checkbox',\n never,\n AriaLabelled<BasePlaceholderProps> & {\n /** onChange from React Aria is fired before onClick */\n onChange?: (isSelected: boolean) => void\n }\n >\n : DecorativePlaceholderProps & { ref?: ThumbnailRef<undefined> }\n\nexport interface MultilineCaptionProps {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n layout: 'row' | 'column'\n /**\n * @since 10.19.0\n */\n qa: string\n}\n\nexport interface SinglelineCaptionProps {\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n layout: 'row' | 'column'\n /**\n * @since 10.19.0\n */\n qa: string\n}\n\nexport interface CaptionTooltipProps {\n /**\n * @since 10.19.0\n */\n overlay: string\n /**\n * @since 10.19.0\n */\n isVisible: boolean\n /**\n * @since 10.19.0\n */\n children: ReactNode\n}\n\nexport interface CaptionProps {\n /**\n * @since 10.19.0\n */\n layout: LayoutVariant\n /**\n * @since 10.19.0\n */\n caption: string\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n hasCaptionPlaceholder: boolean\n /**\n * @since 10.19.0\n */\n multiline: boolean\n /**\n * @since 10.19.0\n */\n qa?: string\n}\n\nexport interface LabelProps {\n /**\n * @since 11.6.0\n */\n id?: string\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n disabled: boolean\n}\n\nexport interface TickIconProps {\n /**\n * @since 10.19.0\n */\n size: SizeVariant\n /**\n * @since 10.19.0\n */\n selected: boolean\n}\n"],"mappings":""}
@@ -82,12 +82,12 @@ export function ThumbnailCaption(_ref4) {
82
82
  if (!caption) {
83
83
  var captionPlaceholder = hasCaptionPlaceholder && '- -';
84
84
  if (captionPlaceholder) {
85
- return /*#__PURE__*/React.createElement(StyledPlaceholderCaption, _extends({}, props, {
85
+ return /*#__PURE__*/React.createElement(StyledPlaceholderCaption, {
86
86
  disabled: disabled,
87
87
  error: error,
88
88
  layout: layout,
89
89
  "data-qa": qa
90
- }), /*#__PURE__*/React.createElement(StyledCaptionText, null, captionPlaceholder));
90
+ }, /*#__PURE__*/React.createElement(StyledCaptionText, null, captionPlaceholder));
91
91
  }
92
92
  return null;
93
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ThumbnailCaption.js","names":["React","Tooltip","useOverflowObserver","parseFilename","StyledCaptionText","StyledMultilineCaption","StyledPlaceholderCaption","StyledSingleLineCaption","StyledSinglelineCaptionBody","StyledSinglelineCaptionEnding","CaptionTooltip","_ref","children","overlay","isVisible","createElement","Content","placement","trigger","MultilineCaption","_ref2","disabled","caption","error","layout","qa","props","_objectWithoutProperties","_excluded","_useOverflowObserver","ref","isOverflowing","_extends","SinglelineCaption","_ref3","_excluded2","_useOverflowObserver2","_parseFilename","filename","extension","isFilename","concat","ThumbnailCaption","_ref4","_ref4$disabled","_ref4$error","hasCaptionPlaceholder","multiline","_ref4$qa","_excluded3","captionPlaceholder"],"sources":["../../src/Thumbnail/ThumbnailCaption.tsx"],"sourcesContent":["import React from 'react'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useOverflowObserver } from '../_hooks/OverflowObserver'\nimport { parseFilename } from '../_utils/filename'\nimport type { Props } from '../_utils/types'\nimport {\n StyledCaptionText,\n StyledMultilineCaption,\n StyledPlaceholderCaption,\n StyledSingleLineCaption,\n StyledSinglelineCaptionBody,\n StyledSinglelineCaptionEnding,\n} from './Thumbnail.styles'\nimport type {\n CaptionProps,\n CaptionTooltipProps,\n MultilineCaptionProps,\n SinglelineCaptionProps,\n} from './Thumbnail.types'\n\nfunction CaptionTooltip({ children, overlay, isVisible }: CaptionTooltipProps) {\n return (\n <Tooltip\n overlay={<Tooltip.Content>{overlay}</Tooltip.Content>}\n placement=\"bottom\"\n trigger={isVisible ? 'hover' : 'none'}\n >\n {children}\n </Tooltip>\n )\n}\n\nfunction MultilineCaption({\n disabled,\n caption,\n error,\n layout,\n qa,\n ...props\n}: MultilineCaptionProps & Props) {\n const { ref, isOverflowing } = useOverflowObserver()\n return (\n <CaptionTooltip overlay={caption} isVisible={isOverflowing}>\n {/* additional container is needed because Tooltip overrides the passed `ref` */}\n <span data-qa={qa}>\n <StyledMultilineCaption\n ref={ref}\n disabled={disabled}\n error={error}\n layout={layout}\n {...props}\n >\n <StyledCaptionText>{caption}</StyledCaptionText>\n </StyledMultilineCaption>\n </span>\n </CaptionTooltip>\n )\n}\n\nfunction SinglelineCaption({\n caption,\n error,\n disabled,\n layout,\n qa,\n ...props\n}: SinglelineCaptionProps & Props) {\n const { ref, isOverflowing } = useOverflowObserver()\n const { filename, extension, isFilename } = parseFilename(caption)\n\n return (\n <CaptionTooltip overlay={caption} isVisible={isOverflowing}>\n <StyledSingleLineCaption\n error={error}\n disabled={disabled}\n layout={layout}\n data-qa={qa}\n {...props}\n >\n <StyledSinglelineCaptionBody ref={ref}>\n {isFilename ? `${filename}.` : caption}\n </StyledSinglelineCaptionBody>\n {isFilename && (\n <StyledSinglelineCaptionEnding>\n {extension}\n </StyledSinglelineCaptionEnding>\n )}\n </StyledSingleLineCaption>\n </CaptionTooltip>\n )\n}\n\nexport function ThumbnailCaption({\n layout,\n disabled = false,\n error = false,\n caption,\n hasCaptionPlaceholder,\n multiline,\n qa = '',\n ...props\n}: CaptionProps) {\n if (!caption) {\n const captionPlaceholder = hasCaptionPlaceholder && '- -'\n\n if (captionPlaceholder) {\n return (\n <StyledPlaceholderCaption\n {...props}\n disabled={disabled}\n error={error}\n layout={layout}\n data-qa={qa}\n >\n <StyledCaptionText>{captionPlaceholder}</StyledCaptionText>\n </StyledPlaceholderCaption>\n )\n }\n\n return null\n }\n\n if (multiline) {\n return (\n <MultilineCaption\n disabled={disabled}\n caption={caption}\n error={error}\n layout={layout}\n qa={qa}\n {...props}\n />\n )\n }\n\n return (\n <SinglelineCaption\n caption={caption}\n disabled={disabled}\n error={error}\n layout={layout}\n qa={qa}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC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iB,EAAAD,QAAA;IAChBV,OAAO,EAAEA,OAAQ;IACjBD,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfC,EAAE,EAAEA;EAAG,GACHC,KAAK,CACV,CAAC;AAEN"}
1
+ {"version":3,"file":"ThumbnailCaption.js","names":["React","Tooltip","useOverflowObserver","parseFilename","StyledCaptionText","StyledMultilineCaption","StyledPlaceholderCaption","StyledSingleLineCaption","StyledSinglelineCaptionBody","StyledSinglelineCaptionEnding","CaptionTooltip","_ref","children","overlay","isVisible","createElement","Content","placement","trigger","MultilineCaption","_ref2","disabled","caption","error","layout","qa","props","_objectWithoutProperties","_excluded","_useOverflowObserver","ref","isOverflowing","_extends","SinglelineCaption","_ref3","_excluded2","_useOverflowObserver2","_parseFilename","filename","extension","isFilename","concat","ThumbnailCaption","_ref4","_ref4$disabled","_ref4$error","hasCaptionPlaceholder","multiline","_ref4$qa","_excluded3","captionPlaceholder"],"sources":["../../src/Thumbnail/ThumbnailCaption.tsx"],"sourcesContent":["import React from 'react'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useOverflowObserver } from '../_hooks/OverflowObserver'\nimport { parseFilename } from '../_utils/filename'\nimport type { Props } from '../_utils/types'\nimport {\n StyledCaptionText,\n StyledMultilineCaption,\n StyledPlaceholderCaption,\n StyledSingleLineCaption,\n StyledSinglelineCaptionBody,\n StyledSinglelineCaptionEnding,\n} from './Thumbnail.styles'\nimport type {\n CaptionProps,\n CaptionTooltipProps,\n MultilineCaptionProps,\n SinglelineCaptionProps,\n} from './Thumbnail.types'\n\nfunction CaptionTooltip({ children, overlay, isVisible }: CaptionTooltipProps) {\n return (\n <Tooltip\n overlay={<Tooltip.Content>{overlay}</Tooltip.Content>}\n placement=\"bottom\"\n trigger={isVisible ? 'hover' : 'none'}\n >\n {children}\n </Tooltip>\n )\n}\n\nfunction MultilineCaption({\n disabled,\n caption,\n error,\n layout,\n qa,\n ...props\n}: MultilineCaptionProps & Props) {\n const { ref, isOverflowing } = useOverflowObserver()\n return (\n <CaptionTooltip overlay={caption} isVisible={isOverflowing}>\n {/* additional container is needed because Tooltip overrides the passed `ref` */}\n <span data-qa={qa}>\n <StyledMultilineCaption\n ref={ref}\n disabled={disabled}\n error={error}\n layout={layout}\n {...props}\n >\n <StyledCaptionText>{caption}</StyledCaptionText>\n </StyledMultilineCaption>\n </span>\n </CaptionTooltip>\n )\n}\n\nfunction SinglelineCaption({\n caption,\n error,\n disabled,\n layout,\n qa,\n ...props\n}: SinglelineCaptionProps & Props) {\n const { ref, isOverflowing } = useOverflowObserver()\n const { filename, extension, isFilename } = parseFilename(caption)\n\n return (\n <CaptionTooltip overlay={caption} isVisible={isOverflowing}>\n <StyledSingleLineCaption\n error={error}\n disabled={disabled}\n layout={layout}\n data-qa={qa}\n {...props}\n >\n <StyledSinglelineCaptionBody ref={ref}>\n {isFilename ? `${filename}.` : caption}\n </StyledSinglelineCaptionBody>\n {isFilename && (\n <StyledSinglelineCaptionEnding>\n {extension}\n </StyledSinglelineCaptionEnding>\n )}\n </StyledSingleLineCaption>\n </CaptionTooltip>\n )\n}\n\nexport function ThumbnailCaption({\n layout,\n disabled = false,\n error = false,\n caption,\n hasCaptionPlaceholder,\n multiline,\n qa = '',\n ...props\n}: CaptionProps) {\n if (!caption) {\n const captionPlaceholder = hasCaptionPlaceholder && '- -'\n\n if (captionPlaceholder) {\n return (\n <StyledPlaceholderCaption\n disabled={disabled}\n error={error}\n layout={layout}\n data-qa={qa}\n >\n <StyledCaptionText>{captionPlaceholder}</StyledCaptionText>\n </StyledPlaceholderCaption>\n )\n }\n\n return null\n }\n\n if (multiline) {\n return (\n <MultilineCaption\n disabled={disabled}\n caption={caption}\n error={error}\n layout={layout}\n qa={qa}\n {...props}\n />\n )\n }\n\n return (\n <SinglelineCaption\n caption={caption}\n disabled={disabled}\n error={error}\n layout={layout}\n qa={qa}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;;AAAA,OA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AG,GACHC,KAAK,CACV,CAAC;EAEN;EAEA,oBACE1B,KAAA,CAAAe,aAAA,CAACkB,iBAAiB,EAAAD,QAAA;IAChBV,OAAO,EAAEA,OAAQ;IACjBD,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfC,EAAE,EAAEA;EAAG,GACHC,KAAK,CACV,CAAC;AAEN"}
@@ -7,31 +7,31 @@ import { getEllipsis } from '../_styles/mixins';
7
7
  import { spacing } from '../_styles/spacing';
8
8
  export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
9
9
  displayName: "StyledCheckbox",
10
- componentId: "core-12_13_0__sc-1inrbm9-0"
10
+ componentId: "core-12_15_0__sc-1inrbm9-0"
11
11
  })(["input{z-index:2;}"]);
12
12
  export var StyledGroupCell = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledGroupCell",
14
- componentId: "core-12_13_0__sc-1inrbm9-1"
14
+ componentId: "core-12_15_0__sc-1inrbm9-1"
15
15
  })(["display:flex;align-items:flex-end;padding-bottom:", "px;"], spacing.md);
16
16
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
17
  displayName: "StyledThumbnail",
18
- componentId: "core-12_13_0__sc-1inrbm9-2"
18
+ componentId: "core-12_15_0__sc-1inrbm9-2"
19
19
  })(["display:inline-flex;&:focus{outline:none;}"]);
20
20
  // VariableSizeGrid has provided width and height as inline style, so to make it flexible and support responsive !important was added
21
21
  export var StyledVariableSizeGrid = /*#__PURE__*/styled(VariableSizeGrid).withConfig({
22
22
  displayName: "StyledVariableSizeGrid",
23
- componentId: "core-12_13_0__sc-1inrbm9-3"
23
+ componentId: "core-12_15_0__sc-1inrbm9-3"
24
24
  })(["height:100% !important;& > div{width:100% !important;}"]);
25
25
  export var StyledGroupTitle = /*#__PURE__*/styled(Typography).withConfig({
26
26
  displayName: "StyledGroupTitle",
27
- componentId: "core-12_13_0__sc-1inrbm9-4"
27
+ componentId: "core-12_15_0__sc-1inrbm9-4"
28
28
  })(["", ""], getEllipsis);
29
29
  export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSpinnerWrapper",
31
- componentId: "core-12_13_0__sc-1inrbm9-5"
31
+ componentId: "core-12_15_0__sc-1inrbm9-5"
32
32
  })(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;"]);
33
33
  export var StyledThumbnailGrid = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledThumbnailGrid",
35
- componentId: "core-12_13_0__sc-1inrbm9-6"
35
+ componentId: "core-12_15_0__sc-1inrbm9-6"
36
36
  })(["display:flex;flex-wrap:wrap;outline:none;"]);
37
37
  //# sourceMappingURL=ThumbnailGrid.styles.js.map
@@ -9,19 +9,19 @@ import { colors } from '../_styles/colors';
9
9
  import { spacing } from '../_styles/spacing';
10
10
  export var StyledTieredSelect = /*#__PURE__*/styled(MenuImperative).withConfig({
11
11
  displayName: "StyledTieredSelect",
12
- componentId: "core-12_13_0__sc-e1ql06-0"
12
+ componentId: "core-12_15_0__sc-e1ql06-0"
13
13
  })(["align-items:stretch;max-height:40vh;"]);
14
14
  export var StyledTieredSelectIcon = /*#__PURE__*/styled(Flex).withConfig({
15
15
  displayName: "StyledTieredSelectIcon",
16
- componentId: "core-12_13_0__sc-e1ql06-1"
16
+ componentId: "core-12_15_0__sc-e1ql06-1"
17
17
  })(["height:24px;width:24px;"]);
18
18
  export var StyledTieredSelectArrowButton = /*#__PURE__*/styled(Button).withConfig({
19
19
  displayName: "StyledTieredSelectArrowButton",
20
- componentId: "core-12_13_0__sc-e1ql06-2"
20
+ componentId: "core-12_15_0__sc-e1ql06-2"
21
21
  })(["border:1px solid transparent;"]);
22
22
  export var StyledTieredSelectBreadcrumbs = /*#__PURE__*/styled(Breadcrumbs).withConfig({
23
23
  displayName: "StyledTieredSelectBreadcrumbs",
24
- componentId: "core-12_13_0__sc-e1ql06-3"
24
+ componentId: "core-12_15_0__sc-e1ql06-3"
25
25
  })(["background-color:", ";flex-wrap:wrap;margin-top:", "px;max-height:68px;overflow-y:auto;padding:", "px ", "px;", ""], colors.gray96, spacing.sm, spacing.xs, spacing.md, function (_ref) {
26
26
  var $nonInteractive = _ref.$nonInteractive;
27
27
  if ($nonInteractive) {
@@ -30,22 +30,22 @@ export var StyledTieredSelectBreadcrumbs = /*#__PURE__*/styled(Breadcrumbs).with
30
30
  });
31
31
  export var StyledTieredSelectHome = /*#__PURE__*/styled(Flex).withConfig({
32
32
  displayName: "StyledTieredSelectHome",
33
- componentId: "core-12_13_0__sc-e1ql06-4"
33
+ componentId: "core-12_15_0__sc-e1ql06-4"
34
34
  })(["height:20px;"]);
35
35
  export var StyledTieredSelectOption = /*#__PURE__*/styled(MenuImperative.Item).withConfig({
36
36
  displayName: "StyledTieredSelectOption",
37
- componentId: "core-12_13_0__sc-e1ql06-5"
37
+ componentId: "core-12_15_0__sc-e1ql06-5"
38
38
  })(["align-items:center;display:flex;justify-content:space-between;padding:2px ", "px;"], spacing.lg);
39
39
  export var StyledTieredSelectLoadingMore = /*#__PURE__*/styled(Flex).withConfig({
40
40
  displayName: "StyledTieredSelectLoadingMore",
41
- componentId: "core-12_13_0__sc-e1ql06-6"
41
+ componentId: "core-12_15_0__sc-e1ql06-6"
42
42
  })(["align-items:center;justify-content:center;padding:", "px ", "px 0px ", "px;"], spacing.xs, spacing.lg, spacing.lg);
43
43
  export var StyledTieredSelectOverlay = /*#__PURE__*/styled(Card).withConfig({
44
44
  displayName: "StyledTieredSelectOverlay",
45
- componentId: "core-12_13_0__sc-e1ql06-7"
45
+ componentId: "core-12_15_0__sc-e1ql06-7"
46
46
  })(["max-width:248px;min-width:inherit;"]);
47
47
  export var StyledTieredSelectSpinnerOverlay = /*#__PURE__*/styled(Spinner).withConfig({
48
48
  displayName: "StyledTieredSelectSpinnerOverlay",
49
- componentId: "core-12_13_0__sc-e1ql06-8"
49
+ componentId: "core-12_15_0__sc-e1ql06-8"
50
50
  })(["min-height:auto;"]);
51
51
  //# sourceMappingURL=TieredSelect.styles.js.map
@@ -77,43 +77,62 @@ export interface TieredSelectApi {
77
77
  */
78
78
  block?: boolean;
79
79
  /**
80
- * Callback for using a custom <Code>tier</Code> shape
81
- * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>
82
- * Defaults to <CodeBlock>{'(tier: any) => tier.GroupId'}</CodeBlock>
80
+ * Callback for using a custom `tier` shape
81
+ * ```
82
+ * (tier: any) => Id
83
+ * ```
84
+ * Defaults to
85
+ * ```
86
+ * (tier: any) => tier.GroupId
87
+ * ```
83
88
  * @since 10.19.0
84
89
  */
85
90
  getGroupId: (tier: any) => Id;
86
91
  /**
87
- * Callback for using a custom <Code>tier</Code> shape
88
- * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>
89
- * Defaults to <CodeBlock>{'(tier: any) => tier.Id'}</CodeBlock>
92
+ * Callback for using a custom `tier` shape
93
+ * ```
94
+ * (tier: any) => Id
95
+ * ```
96
+ * Defaults to
97
+ * ```
98
+ * (tier: any) => tier.Id
99
+ * ```
90
100
  * @since 10.19.0
91
101
  */
92
102
  getId: (tier: any) => Id;
93
103
  /**
94
- * Callback for using a custom <Code>tier</Code> shape
95
- * <CodeBlock>{'(tier: any) => string'}</CodeBlock>
96
- * Defaults to <CodeBlock>{'(tier: any) => tier.Label'}</CodeBlock>
104
+ * Callback for using a custom `tier` shape
105
+ * ```
106
+ * (tier: any) => string
107
+ * ```
108
+ * Defaults to
109
+ * ```
110
+ * (tier: any) => tier.Label
111
+ * ```
97
112
  * @since 10.19.0
98
113
  */
99
114
  getLabel: (tier: any) => string | undefined;
100
115
  /**
101
- * Callback for using a custom <Code>tier</Code> shape
102
- * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>
103
- * Defaults to <CodeBlock>{'(tier: any) => tier.NextGroupId'}</CodeBlock>
116
+ * Callback for using a custom `tier` shape
117
+ * ```
118
+ * (tier: any) => Id
119
+ * ```
120
+ * Defaults to
121
+ * ```
122
+ * (tier: any) => tier.NextGroupId
123
+ * ```
104
124
  * @since 10.19.0
105
125
  */
106
126
  getNextGroupId: (tier: any) => Id;
107
127
  /**
108
- * Predefined strings or a callback for using a custom <Code>value</Code>{' '}
109
- * string
110
- * <CodeBlock>{'(value: any[]) => string | undefined'}</CodeBlock>
111
- * Defaults to{' '}
112
- * <CodeBlock>
113
- * {
114
- * '(value: any[]) => value.map((tier) => getLabel!(tier)).join(" > ")'
115
- * }
116
- * </CodeBlock>
128
+ * Predefined strings or a callback for using a custom `value` string
129
+ * ```
130
+ * (value: any[]) => string | undefined
131
+ * ```
132
+ * Defaults to
133
+ * ```
134
+ * (value: any[]) => value.map((tier) => getLabel!(tier)).join(" > ")
135
+ * ```
117
136
  * @since 10.19.0
118
137
  */
119
138
  getValueString: GetValueStringFn;
@@ -133,27 +152,27 @@ export interface TieredSelectApi {
133
152
  isLeaf?: (tier: any) => boolean;
134
153
  /**
135
154
  * Used to display a loading indicator as the last item of the list. Can
136
- * be used with <Code>onScrollBottom</Code> or <Code>onSearch</Code>{' '}
137
- * (empty <Code>options</Code> during search async call) to indicate the
155
+ * be used with `onScrollBottom` or `onSearch`
156
+ * (empty `options` during search async call) to indicate the
138
157
  * loading of new items.
139
158
  * @since 10.19.0
140
159
  */
141
160
  loadingMore?: boolean;
142
161
  /**
143
- * <div>
144
- * Callback for selecting an item from the tiered select. Returns the{' '}
145
- * <Code>Selection</Code> object from the <Code>Menu</Code> api, along
146
- * with the updated <Code>value</Code>
147
- * </div>
148
- * <CodeBlock>
149
- * {'(Selection: { event, item, group }, value) =>'}
150
- * </CodeBlock>
162
+ * Callback for selecting an item from the tiered select. Returns the
163
+ * `Selection` object from the `Menu` api, along
164
+ * with the updated `value`
165
+ * ```
166
+ * (Selection: { event, item, group }, value) =>
167
+ * ```
151
168
  * @since 10.19.0
152
169
  */
153
170
  onChange: (selection: TierSelection) => void;
154
171
  /**
155
172
  * Callback for when the x icon is pressed.
156
- * <CodeBlock>{'(event) =>'}</CodeBlock>
173
+ * ```
174
+ * (event) =>
175
+ * ```
157
176
  * @since 10.19.0
158
177
  */
159
178
  onClear?: SelectProps['onClear'];
@@ -161,9 +180,9 @@ export interface TieredSelectApi {
161
180
  * Callback for when navigation occurs. Triggered by the left and right
162
181
  * arrow keys, or clicking a navigable item. Returns the id of the next
163
182
  * group that will be navigated to, and the updated path.
164
- * <CodeBlock>
165
- * {'(nextGroupId: string | number | undefined, path: any[]) => '}
166
- * </CodeBlock>
183
+ * ```
184
+ * (nextGroupId: string | number | undefined, path: any[]) =>
185
+ * ```
167
186
  * @since 10.19.0
168
187
  */
169
188
  onNavigate?: (nextGroupId: Id, value: any[]) => void;
@@ -171,22 +190,27 @@ export interface TieredSelectApi {
171
190
  * Pass this callback when a quick create experience is desired. Called
172
191
  * when the "create" button in quick create mode is clicked. Returns the
173
192
  * value of the quick create input.
174
- * <CodeBlock>{'(string) =>'}</CodeBlock>
193
+ * ```
194
+ * (string) =>
195
+ * ```
175
196
  * @since 10.19.0
176
197
  */
177
198
  onQuickCreate?: (name: string) => void;
178
199
  /**
179
200
  * Called when the selection menu is scrolled to the bottom. Can be
180
- * combined with <Code>loadingMore</Code>
181
- * for an async infinite scrolling menu.
182
- * <CodeBlock>{'(event) =>'}</CodeBlock>
201
+ * combined with `loadingMore` for an async infinite scrolling menu.
202
+ * ```
203
+ * (event) =>
204
+ * ```
183
205
  * @since 10.19.0
184
206
  */
185
207
  onScrollBottom?: SelectProps['onScrollBottom'];
186
208
  /**
187
209
  * Called when searching the TieredSelect. Behavior must be controlled by
188
210
  * implementor
189
- * <CodeBlock>{'(event) =>'}</CodeBlock>
211
+ * ```
212
+ * (event) =>
213
+ * ```
190
214
  * @since 10.19.0
191
215
  */
192
216
  onSearch?: SelectProps['onSearch'];
@@ -1 +1 @@
1
- {"version":3,"file":"TieredSelect.types.js","names":[],"sources":["../../src/TieredSelect/TieredSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport type { SelectProps } from '../Select/Select.types'\n\nexport type GetValueStringFn = (value: any[]) => string | undefined\n\nexport type GetValueString = 'full-path' | 'leaf-only' | GetValueStringFn\n\nexport type Div = React.ComponentPropsWithoutRef<'div'>\n\nexport type Id = number | string | null | undefined\n\n// all keys are optional since data shape can custom\nexport interface Tier {\n /**\n * @since 10.19.0\n */\n id?: Id\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 10.19.0\n */\n nextGroupId?: Id\n /**\n * @since 10.19.0\n */\n groupId?: Id\n}\n\nexport interface TierSelection extends Selection {\n /**\n * @since 10.19.0\n */\n value: any[]\n}\n\nexport interface InternalTieredSelectProps\n extends Omit<Div, 'onSelect' | 'onChange'> {\n /**\n * @since 10.19.0\n */\n block?: SelectProps['block']\n /**\n * @since 10.19.0\n */\n disabled?: SelectProps['disabled']\n /**\n * @since 10.19.0\n */\n error?: SelectProps['error']\n /**\n * @since 10.19.0\n */\n loading?: SelectProps['loading']\n /**\n * @since 10.19.0\n */\n options?: any[]\n /**\n * @since 10.19.0\n */\n value?: any[]\n}\n\nexport interface TieredSelectApi {\n /**\n * @since 10.19.0\n */\n afterHide: SelectProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow: SelectProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide: SelectProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow: SelectProps['beforeShow']\n /**\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * Callback for using a custom <Code>tier</Code> shape\n * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>\n * Defaults to <CodeBlock>{'(tier: any) => tier.GroupId'}</CodeBlock>\n * @since 10.19.0\n */\n getGroupId: (tier: any) => Id\n\n /**\n * Callback for using a custom <Code>tier</Code> shape\n * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>\n * Defaults to <CodeBlock>{'(tier: any) => tier.Id'}</CodeBlock>\n * @since 10.19.0\n */\n getId: (tier: any) => Id\n\n /**\n * Callback for using a custom <Code>tier</Code> shape\n * <CodeBlock>{'(tier: any) => string'}</CodeBlock>\n * Defaults to <CodeBlock>{'(tier: any) => tier.Label'}</CodeBlock>\n * @since 10.19.0\n */\n getLabel: (tier: any) => string | undefined\n\n /**\n * Callback for using a custom <Code>tier</Code> shape\n * <CodeBlock>{'(tier: any) => Id'}</CodeBlock>\n * Defaults to <CodeBlock>{'(tier: any) => tier.NextGroupId'}</CodeBlock>\n * @since 10.19.0\n */\n getNextGroupId: (tier: any) => Id\n\n /**\n * Predefined strings or a callback for using a custom <Code>value</Code>{' '}\n * string\n * <CodeBlock>{'(value: any[]) => string | undefined'}</CodeBlock>\n * Defaults to{' '}\n * <CodeBlock>\n * {\n * '(value: any[]) => value.map((tier) => getLabel!(tier)).join(\" > \")'\n * }\n * </CodeBlock>\n * @since 10.19.0\n */\n getValueString: GetValueStringFn\n\n /**\n * The i18n key to use for the tiered select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope: string\n /**\n * @since 10.19.0\n */\n isTierDisabled?: (tier: any) => boolean | string | undefined\n /**\n * @since 10.19.0\n */\n isLeaf?: (tier: any) => boolean\n\n /**\n * Used to display a loading indicator as the last item of the list. Can\n * be used with <Code>onScrollBottom</Code> or <Code>onSearch</Code>{' '}\n * (empty <Code>options</Code> during search async call) to indicate the\n * loading of new items.\n * @since 10.19.0\n */\n loadingMore?: boolean\n\n /**\n * <div>\n * Callback for selecting an item from the tiered select. Returns the{' '}\n * <Code>Selection</Code> object from the <Code>Menu</Code> api, along\n * with the updated <Code>value</Code>\n * </div>\n * <CodeBlock>\n * {'(Selection: { event, item, group }, value) =>'}\n * </CodeBlock>\n * @since 10.19.0\n */\n onChange: (selection: TierSelection) => void\n\n /**\n * Callback for when the x icon is pressed.\n * <CodeBlock>{'(event) =>'}</CodeBlock>\n * @since 10.19.0\n */\n onClear?: SelectProps['onClear']\n\n /**\n * Callback for when navigation occurs. Triggered by the left and right\n * arrow keys, or clicking a navigable item. Returns the id of the next\n * group that will be navigated to, and the updated path.\n * <CodeBlock>\n * {'(nextGroupId: string | number | undefined, path: any[]) => '}\n * </CodeBlock>\n * @since 10.19.0\n */\n onNavigate?: (nextGroupId: Id, value: any[]) => void\n\n /**\n * Pass this callback when a quick create experience is desired. Called\n * when the \"create\" button in quick create mode is clicked. Returns the\n * value of the quick create input.\n * <CodeBlock>{'(string) =>'}</CodeBlock>\n * @since 10.19.0\n */\n onQuickCreate?: (name: string) => void\n\n /**\n * Called when the selection menu is scrolled to the bottom. Can be\n * combined with <Code>loadingMore</Code>\n * for an async infinite scrolling menu.\n * <CodeBlock>{'(event) =>'}</CodeBlock>\n * @since 10.19.0\n */\n onScrollBottom?: SelectProps['onScrollBottom']\n\n /**\n * Called when searching the TieredSelect. Behavior must be controlled by\n * implementor\n * <CodeBlock>{'(event) =>'}</CodeBlock>\n * @since 10.19.0\n */\n onSearch?: SelectProps['onSearch']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n}\nexport interface TieredSelectProps\n extends Partial<Omit<TieredSelectApi, 'getValueString'>>,\n Omit<Div, 'onSelect' | 'onChange'> {\n /**\n * @since 10.19.0\n */\n block?: SelectProps['block']\n /**\n * @since 10.19.0\n */\n disabled?: SelectProps['disabled']\n /**\n * @since 10.19.0\n */\n error?: SelectProps['error']\n /**\n * Prop to define a custom footer for the tiered select. Accepts a `React.ReactNode`. Takes precedence over quick create footer.\n *\n * Example:\n * ```tsx\n * <TieredSelect\n * ...\n * footer={<div>Custom Footer</div>}\n * ...\n * />\n * ```\n *\n * @default undefined\n * @since 11.4.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n getValueString?: GetValueString\n /**\n * @since 10.19.0\n */\n loading?: SelectProps['loading']\n /**\n * Flat array of tier objects, this array is used as data for the component\n * @since 10.19.0\n */\n options?: any[]\n\n /**\n * If true, any tier is selectable. If false, only leaf nodes are selectable\n * @default true\n * @since 10.19.0\n */\n selectableTiers?: boolean\n\n /**\n * Flat array of tier objects that represents the selected value\n * @since 10.19.0\n */\n value?: any[]\n}\n\nexport interface TieredSelectMenuProps\n extends Omit<Div, 'onSelect' | 'onChange' | 'onDragEnd'>,\n Pick<TieredSelectProps, 'footer' | 'loading' | 'loadingMore' | 'options'> {\n /**\n * @since 10.19.0\n */\n currentTier: Id\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n /**\n * @since 10.19.0\n */\n onChange: (selection: TierSelection) => void\n /**\n * @since 10.19.0\n */\n onNavigate: (nextGroupId: Id, value: any[]) => void\n /**\n * @since 10.19.0\n */\n onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n previousValue: any[]\n /**\n * @since 10.19.0\n */\n value: any[]\n}\n\nexport interface ArrowButtonProps {\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.SyntheticEvent) => void\n}\n\nexport interface QuickCreateInputProps {\n /**\n * @since 10.19.0\n */\n autoFocus: boolean\n /**\n * @since 10.19.0\n */\n onSubmit: (name: string) => void\n /**\n * @since 10.19.0\n */\n placeholder: string\n}\n\nexport interface OptionsProps {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TieredSelect.types.js","names":[],"sources":["../../src/TieredSelect/TieredSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport type { SelectProps } from '../Select/Select.types'\n\nexport type GetValueStringFn = (value: any[]) => string | undefined\n\nexport type GetValueString = 'full-path' | 'leaf-only' | GetValueStringFn\n\nexport type Div = React.ComponentPropsWithoutRef<'div'>\n\nexport type Id = number | string | null | undefined\n\n// all keys are optional since data shape can custom\nexport interface Tier {\n /**\n * @since 10.19.0\n */\n id?: Id\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 10.19.0\n */\n nextGroupId?: Id\n /**\n * @since 10.19.0\n */\n groupId?: Id\n}\n\nexport interface TierSelection extends Selection {\n /**\n * @since 10.19.0\n */\n value: any[]\n}\n\nexport interface InternalTieredSelectProps\n extends Omit<Div, 'onSelect' | 'onChange'> {\n /**\n * @since 10.19.0\n */\n block?: SelectProps['block']\n /**\n * @since 10.19.0\n */\n disabled?: SelectProps['disabled']\n /**\n * @since 10.19.0\n */\n error?: SelectProps['error']\n /**\n * @since 10.19.0\n */\n loading?: SelectProps['loading']\n /**\n * @since 10.19.0\n */\n options?: any[]\n /**\n * @since 10.19.0\n */\n value?: any[]\n}\n\nexport interface TieredSelectApi {\n /**\n * @since 10.19.0\n */\n afterHide: SelectProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow: SelectProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide: SelectProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow: SelectProps['beforeShow']\n /**\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * Callback for using a custom `tier` shape\n * ```\n * (tier: any) => Id\n * ```\n * Defaults to\n * ```\n * (tier: any) => tier.GroupId\n * ```\n * @since 10.19.0\n */\n getGroupId: (tier: any) => Id\n\n /**\n * Callback for using a custom `tier` shape\n * ```\n * (tier: any) => Id\n * ```\n * Defaults to\n * ```\n * (tier: any) => tier.Id\n * ```\n * @since 10.19.0\n */\n getId: (tier: any) => Id\n\n /**\n * Callback for using a custom `tier` shape\n * ```\n * (tier: any) => string\n * ```\n * Defaults to\n * ```\n * (tier: any) => tier.Label\n * ```\n * @since 10.19.0\n */\n getLabel: (tier: any) => string | undefined\n\n /**\n * Callback for using a custom `tier` shape\n * ```\n * (tier: any) => Id\n * ```\n * Defaults to\n * ```\n * (tier: any) => tier.NextGroupId\n * ```\n * @since 10.19.0\n */\n getNextGroupId: (tier: any) => Id\n\n /**\n * Predefined strings or a callback for using a custom `value` string\n * ```\n * (value: any[]) => string | undefined\n * ```\n * Defaults to\n * ```\n * (value: any[]) => value.map((tier) => getLabel!(tier)).join(\" > \")\n * ```\n * @since 10.19.0\n */\n getValueString: GetValueStringFn\n\n /**\n * The i18n key to use for the tiered select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope: string\n /**\n * @since 10.19.0\n */\n isTierDisabled?: (tier: any) => boolean | string | undefined\n /**\n * @since 10.19.0\n */\n isLeaf?: (tier: any) => boolean\n\n /**\n * Used to display a loading indicator as the last item of the list. Can\n * be used with `onScrollBottom` or `onSearch`\n * (empty `options` during search async call) to indicate the\n * loading of new items.\n * @since 10.19.0\n */\n loadingMore?: boolean\n\n /**\n * Callback for selecting an item from the tiered select. Returns the\n * `Selection` object from the `Menu` api, along\n * with the updated `value`\n * ```\n * (Selection: { event, item, group }, value) =>\n * ```\n * @since 10.19.0\n */\n onChange: (selection: TierSelection) => void\n\n /**\n * Callback for when the x icon is pressed.\n * ```\n * (event) =>\n * ```\n * @since 10.19.0\n */\n onClear?: SelectProps['onClear']\n\n /**\n * Callback for when navigation occurs. Triggered by the left and right\n * arrow keys, or clicking a navigable item. Returns the id of the next\n * group that will be navigated to, and the updated path.\n * ```\n * (nextGroupId: string | number | undefined, path: any[]) =>\n * ```\n * @since 10.19.0\n */\n onNavigate?: (nextGroupId: Id, value: any[]) => void\n\n /**\n * Pass this callback when a quick create experience is desired. Called\n * when the \"create\" button in quick create mode is clicked. Returns the\n * value of the quick create input.\n * ```\n * (string) =>\n * ```\n * @since 10.19.0\n */\n onQuickCreate?: (name: string) => void\n\n /**\n * Called when the selection menu is scrolled to the bottom. Can be\n * combined with `loadingMore` for an async infinite scrolling menu.\n * ```\n * (event) =>\n * ```\n * @since 10.19.0\n */\n onScrollBottom?: SelectProps['onScrollBottom']\n\n /**\n * Called when searching the TieredSelect. Behavior must be controlled by\n * implementor\n * ```\n * (event) =>\n * ```\n * @since 10.19.0\n */\n onSearch?: SelectProps['onSearch']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n}\nexport interface TieredSelectProps\n extends Partial<Omit<TieredSelectApi, 'getValueString'>>,\n Omit<Div, 'onSelect' | 'onChange'> {\n /**\n * @since 10.19.0\n */\n block?: SelectProps['block']\n /**\n * @since 10.19.0\n */\n disabled?: SelectProps['disabled']\n /**\n * @since 10.19.0\n */\n error?: SelectProps['error']\n /**\n * Prop to define a custom footer for the tiered select. Accepts a `React.ReactNode`. Takes precedence over quick create footer.\n *\n * Example:\n * ```tsx\n * <TieredSelect\n * ...\n * footer={<div>Custom Footer</div>}\n * ...\n * />\n * ```\n *\n * @default undefined\n * @since 11.4.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n getValueString?: GetValueString\n /**\n * @since 10.19.0\n */\n loading?: SelectProps['loading']\n /**\n * Flat array of tier objects, this array is used as data for the component\n * @since 10.19.0\n */\n options?: any[]\n\n /**\n * If true, any tier is selectable. If false, only leaf nodes are selectable\n * @default true\n * @since 10.19.0\n */\n selectableTiers?: boolean\n\n /**\n * Flat array of tier objects that represents the selected value\n * @since 10.19.0\n */\n value?: any[]\n}\n\nexport interface TieredSelectMenuProps\n extends Omit<Div, 'onSelect' | 'onChange' | 'onDragEnd'>,\n Pick<TieredSelectProps, 'footer' | 'loading' | 'loadingMore' | 'options'> {\n /**\n * @since 10.19.0\n */\n currentTier: Id\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n /**\n * @since 10.19.0\n */\n onChange: (selection: TierSelection) => void\n /**\n * @since 10.19.0\n */\n onNavigate: (nextGroupId: Id, value: any[]) => void\n /**\n * @since 10.19.0\n */\n onSearch: (e: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n previousValue: any[]\n /**\n * @since 10.19.0\n */\n value: any[]\n}\n\nexport interface ArrowButtonProps {\n /**\n * @since 10.19.0\n */\n onClick?: (event: React.SyntheticEvent) => void\n}\n\nexport interface QuickCreateInputProps {\n /**\n * @since 10.19.0\n */\n autoFocus: boolean\n /**\n * @since 10.19.0\n */\n onSubmit: (name: string) => void\n /**\n * @since 10.19.0\n */\n placeholder: string\n}\n\nexport interface OptionsProps {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n}\n"],"mappings":""}
@@ -39,7 +39,7 @@ var getTileStyles = function getTileStyles(_ref) {
39
39
  };
40
40
  export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
41
41
  displayName: "StyledLinkTile",
42
- componentId: "core-12_13_0__sc-8q9p0n-0"
42
+ componentId: "core-12_15_0__sc-8q9p0n-0"
43
43
  })(["", " text-decoration:none;color:inherit;"], function (_ref2) {
44
44
  var $orientation = _ref2.$orientation;
45
45
  return getTileStyles({
@@ -49,7 +49,7 @@ export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
49
49
  });
50
50
  export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
51
51
  displayName: "StyledSelectableTile",
52
- componentId: "core-12_13_0__sc-8q9p0n-1"
52
+ componentId: "core-12_15_0__sc-8q9p0n-1"
53
53
  })(["", ""], function (_ref3) {
54
54
  var $orientation = _ref3.$orientation,
55
55
  $selected = _ref3.$selected,
@@ -65,7 +65,7 @@ export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
65
65
  });
66
66
  export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
67
67
  displayName: "StyledInteractableTile",
68
- componentId: "core-12_13_0__sc-8q9p0n-2"
68
+ componentId: "core-12_15_0__sc-8q9p0n-2"
69
69
  })(["", ""], function (_ref4) {
70
70
  var $orientation = _ref4.$orientation;
71
71
  return getTileStyles({
@@ -74,26 +74,26 @@ export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
74
74
  });
75
75
  export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledFooter",
77
- componentId: "core-12_13_0__sc-8q9p0n-3"
77
+ componentId: "core-12_15_0__sc-8q9p0n-3"
78
78
  })(["grid-area:footer;padding:", "px;> ", "{flex-wrap:wrap-reverse;}"], spacing.lg, StyledActions);
79
79
  export var StyledTileContent = /*#__PURE__*/styled(StyledContent).withConfig({
80
80
  displayName: "StyledTileContent",
81
- componentId: "core-12_13_0__sc-8q9p0n-4"
81
+ componentId: "core-12_15_0__sc-8q9p0n-4"
82
82
  })(["grid-column-start:hero-start;grid-column-end:body-end;padding:", "px;+ ", "{padding-top:0;}> ", ",> ", " > ", ",> ", "{grid-column-gap:", "px;}"], spacing.lg, StyledFooter, SFormRow, SForm, SFormRow, SFormRow, spacing.md);
83
83
  export var StyledHeroMedia = /*#__PURE__*/styled.figure.withConfig({
84
84
  displayName: "StyledHeroMedia",
85
- componentId: "core-12_13_0__sc-8q9p0n-5"
85
+ componentId: "core-12_15_0__sc-8q9p0n-5"
86
86
  })(["grid-area:hero;margin:0;position:relative;overflow:hidden;font-size:0;> *{font-size:initial;}+ ", "{grid-area:body;}> video{background-color:", ";}> img,> picture > img{object-fit:cover;}", ""], StyledTileContent, colors.black, function (_ref5) {
87
87
  var $orientation = _ref5.$orientation;
88
88
  return $orientation === 'landscape' && !isIE11() ? css(["border-top-left-radius:inherit;border-bottom-left-radius:inherit;> *,> picture > img{height:100%;width:100%;position:absolute;}@media ", "{> picture > img,> img{width:auto;left:50%;transform:translate(-50%,0);}}"], mediaIE11Hack) : css(["min-height:156px;max-height:567px;border-top-left-radius:inherit;border-top-right-radius:inherit;> *,> picture > img{min-height:inherit;max-height:inherit;height:auto;width:100%;}"]);
89
89
  });
90
90
  export var StyledHeroOverlay = /*#__PURE__*/styled.div.withConfig({
91
91
  displayName: "StyledHeroOverlay",
92
- componentId: "core-12_13_0__sc-8q9p0n-6"
92
+ componentId: "core-12_15_0__sc-8q9p0n-6"
93
93
  })(["position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;"]);
94
94
  export var StyledHeroText = /*#__PURE__*/styled.div.withConfig({
95
95
  displayName: "StyledHeroText",
96
- componentId: "core-12_13_0__sc-8q9p0n-7"
96
+ componentId: "core-12_15_0__sc-8q9p0n-7"
97
97
  })(["grid-area:hero;+ ", "{grid-area:body;}padding:", "px;border-radius:inherit;", ""], StyledTileContent, spacing.lg, function (_ref6) {
98
98
  var $orientation = _ref6.$orientation;
99
99
  return $orientation === 'landscape' ? css(["display:flex;flex-direction:column;justify-content:center;padding-right:0;"]) : css(["padding-bottom:0;"]);
@@ -33,7 +33,7 @@ export interface SelectableTileProps extends TileCommonProps, Omit<DivAttributes
33
33
  */
34
34
  variant?: 'selectable';
35
35
  /**
36
- * A function for controlling <Code>selected</Code> Tile prop.
36
+ * A function for controlling `selected` Tile prop.
37
37
  * @since 10.19.0
38
38
  */
39
39
  onClick?: () => {};
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.types.js","names":[],"sources":["../../src/Tile/Tile.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { AnchorAttributes, DivAttributes, Props } from '../_utils/types'\n\nexport interface HeroTextProps extends Props {}\nexport interface HeroMediaProps extends Props {\n overlay?: boolean\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nexport interface TileCommonProps extends Props {\n /**\n * @since 10.19.0\n */\n orientation: 'portrait' | 'landscape'\n}\n\nexport interface InteractableTileProps extends TileCommonProps, DivAttributes {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'interactive'\n}\n\nexport interface LinkTileProps extends TileCommonProps, AnchorAttributes {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'link'\n}\n\nexport interface SelectableTileProps\n extends TileCommonProps,\n Omit<DivAttributes, 'onClick'> {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'selectable'\n\n /**\n * A function for controlling <Code>selected</Code> Tile prop.\n * @since 10.19.0\n */\n onClick?: () => {}\n\n /**\n * Only with selectable variant.\n * @default false\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * Only with selectable variant.\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n}\n\nexport type TileProps =\n | SelectableTileProps\n | InteractableTileProps\n | LinkTileProps\n"],"mappings":""}
1
+ {"version":3,"file":"Tile.types.js","names":[],"sources":["../../src/Tile/Tile.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { AnchorAttributes, DivAttributes, Props } from '../_utils/types'\n\nexport interface HeroTextProps extends Props {}\nexport interface HeroMediaProps extends Props {\n overlay?: boolean\n onOverlayClick?: React.MouseEventHandler<HTMLDivElement>\n}\n\nexport interface TileCommonProps extends Props {\n /**\n * @since 10.19.0\n */\n orientation: 'portrait' | 'landscape'\n}\n\nexport interface InteractableTileProps extends TileCommonProps, DivAttributes {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'interactive'\n}\n\nexport interface LinkTileProps extends TileCommonProps, AnchorAttributes {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'link'\n}\n\nexport interface SelectableTileProps\n extends TileCommonProps,\n Omit<DivAttributes, 'onClick'> {\n /**\n * To change tile behaviour\n * @since 10.19.0\n */\n variant?: 'selectable'\n\n /**\n * A function for controlling `selected` Tile prop.\n * @since 10.19.0\n */\n onClick?: () => {}\n\n /**\n * Only with selectable variant.\n * @default false\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * Only with selectable variant.\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n}\n\nexport type TileProps =\n | SelectableTileProps\n | InteractableTileProps\n | LinkTileProps\n"],"mappings":""}