@procore/core-react 12.53.4 → 12.54.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 (286) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.js +2 -0
  5. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  6. package/dist/AvatarStack/AvatarStack.styles.js +8 -8
  7. package/dist/Badge/Badge.styles.js +2 -2
  8. package/dist/BadgePill/BadgePill.styles.js +4 -4
  9. package/dist/Banner/Banner.d.ts +1 -0
  10. package/dist/Banner/Banner.js +31 -14
  11. package/dist/Banner/Banner.js.map +1 -1
  12. package/dist/Banner/Banner.styles.d.ts +10 -0
  13. package/dist/Banner/Banner.styles.js +29 -12
  14. package/dist/Banner/Banner.styles.js.map +1 -1
  15. package/dist/Banner/Banner.types.d.ts +1 -1
  16. package/dist/Banner/Banner.types.js.map +1 -1
  17. package/dist/Banner/index.d.ts +1 -1
  18. package/dist/Banner/index.js +1 -1
  19. package/dist/Banner/index.js.map +1 -1
  20. package/dist/Box/Box.styles.js +1 -1
  21. package/dist/Breadcrumbs/Breadcrumbs.styles.js +7 -6
  22. package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  23. package/dist/Button/Button.styles.js +5 -5
  24. package/dist/Calendar/Calendar.styles.js +10 -10
  25. package/dist/Card/Card.styles.js +1 -1
  26. package/dist/Checkbox/Checkbox.styles.js +6 -6
  27. package/dist/ContactItem/ContactItem.styles.js +5 -5
  28. package/dist/Content/Content.styles.js +2 -2
  29. package/dist/DateInput/DateInput.styles.js +6 -6
  30. package/dist/DetailPage/DetailPage.styles.js +11 -9
  31. package/dist/DetailPage/DetailPage.styles.js.map +1 -1
  32. package/dist/Dropdown/Dropdown.styles.js +3 -3
  33. package/dist/DropdownFlyout/DropdownFlyout.js +8 -0
  34. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  35. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  36. package/dist/Dropzone/Dropzone.js +1 -1
  37. package/dist/Dropzone/Dropzone.styles.js +9 -9
  38. package/dist/EmptyState/EmptyState.styles.js +6 -6
  39. package/dist/Field/Field.styles.js +3 -3
  40. package/dist/FileList/FileList.styles.js +3 -3
  41. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +17 -14
  42. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
  43. package/dist/FileSelect/FileExplorer/FileExplorerModal.js +4 -2
  44. package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
  45. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +5 -4
  46. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
  47. package/dist/FileSelect/FileSelect.styles.js +2 -2
  48. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  49. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  50. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  51. package/dist/FileSelect/LocalSource/LocalSource.styles.js +6 -5
  52. package/dist/FileSelect/LocalSource/LocalSource.styles.js.map +1 -1
  53. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  54. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +13 -11
  55. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js.map +1 -1
  56. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  57. package/dist/FileToken/FileToken.styles.js +6 -6
  58. package/dist/FilterToken/FilterToken.styles.js +5 -5
  59. package/dist/FlexList/FlexList.styles.js +1 -1
  60. package/dist/Form/Form.styles.js +13 -13
  61. package/dist/Form/StyledFormikForm.styles.js +2 -2
  62. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  63. package/dist/Grid/Grid.styles.js +2 -2
  64. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  65. package/dist/Input/Input.styles.js +1 -1
  66. package/dist/Link/Link.styles.js +1 -1
  67. package/dist/ListPage/ListPage.styles.js +12 -11
  68. package/dist/ListPage/ListPage.styles.js.map +1 -1
  69. package/dist/Loader/Loader.styles.js +2 -2
  70. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  71. package/dist/Modal/Modal.js +0 -2
  72. package/dist/Modal/Modal.js.map +1 -1
  73. package/dist/Modal/Modal.styles.js +44 -32
  74. package/dist/Modal/Modal.styles.js.map +1 -1
  75. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  76. package/dist/NextMenu/NextMenu.styles.js +3 -3
  77. package/dist/NextTile/NextTile.styles.js +5 -5
  78. package/dist/Notation/Notation.js +1 -1
  79. package/dist/NumberInput/NumberInput.styles.js +7 -7
  80. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  81. package/dist/OverlayTrigger/OverlayTrigger.js +12 -3
  82. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  83. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +14 -0
  84. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  85. package/dist/OverlayTrigger/a11yPresets.d.ts +19 -3
  86. package/dist/OverlayTrigger/a11yPresets.js +16 -6
  87. package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
  88. package/dist/PageLayout/PageLayout.js +15 -4
  89. package/dist/PageLayout/PageLayout.js.map +1 -1
  90. package/dist/PageLayout/PageLayout.styles.js +35 -34
  91. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  92. package/dist/PageLayout/PageLayout.types.d.ts +1 -0
  93. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  94. package/dist/PageLayout/PageLayout.utils.d.ts +11 -0
  95. package/dist/PageLayout/PageLayout.utils.js +45 -0
  96. package/dist/PageLayout/PageLayout.utils.js.map +1 -1
  97. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js +2 -2
  98. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js.map +1 -1
  99. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +5 -0
  100. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +9 -2
  101. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -1
  102. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  103. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  104. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  105. package/dist/Pagination/Pagination.styles.js +5 -5
  106. package/dist/Panel/Panel.styles.js +17 -16
  107. package/dist/Panel/Panel.styles.js.map +1 -1
  108. package/dist/Pill/Pill.styles.js +3 -3
  109. package/dist/PillSelect/PillSelect.styles.js +5 -5
  110. package/dist/Popover/Popover.js +6 -1
  111. package/dist/Popover/Popover.js.map +1 -1
  112. package/dist/Popover/Popover.styles.js +2 -2
  113. package/dist/Portal/Portal.styles.js +1 -1
  114. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  115. package/dist/RadioButton/RadioButton.styles.js +3 -3
  116. package/dist/Required/Required.styles.js +3 -3
  117. package/dist/Search/Search.styles.js +5 -5
  118. package/dist/Section/Section.styles.js +7 -7
  119. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  120. package/dist/Select/Select.js +5 -2
  121. package/dist/Select/Select.js.map +1 -1
  122. package/dist/Select/Select.styles.js +8 -8
  123. package/dist/Semantic/Semantic.styles.js +9 -9
  124. package/dist/Slider/Slider.styles.js +5 -5
  125. package/dist/Spinner/Spinner.styles.js +7 -7
  126. package/dist/SplitViewCard/SplitViewCard.styles.js +15 -13
  127. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  128. package/dist/SuperSelect/SuperSelect.js +8 -0
  129. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  130. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  131. package/dist/SuperSelect/SuperSelect.styles.js +40 -40
  132. package/dist/SuperSelect/useSuperSelect.js +20 -4
  133. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  134. package/dist/Switch/Switch.styles.js +4 -4
  135. package/dist/Table/Table.js +63 -2
  136. package/dist/Table/Table.js.map +1 -1
  137. package/dist/Table/Table.styles.js +31 -30
  138. package/dist/Table/Table.styles.js.map +1 -1
  139. package/dist/TableShelf/TableShelf.styles.js +5 -5
  140. package/dist/Tabs/Tabs.js +11 -3
  141. package/dist/Tabs/Tabs.js.map +1 -1
  142. package/dist/Tabs/Tabs.styles.js +16 -16
  143. package/dist/Tearsheet/Tearsheet.js +4 -3
  144. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  145. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  146. package/dist/TextArea/TextArea.styles.js +1 -1
  147. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  148. package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -0
  149. package/dist/Thumbnail/Thumbnail.styles.js +22 -22
  150. package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
  151. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  152. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  153. package/dist/Tile/Tile.styles.js +8 -8
  154. package/dist/Title/Title.styles.js +11 -9
  155. package/dist/Title/Title.styles.js.map +1 -1
  156. package/dist/Toast/Toast.styles.js +3 -3
  157. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  158. package/dist/Token/Token.styles.js +5 -5
  159. package/dist/ToolHeader/ToolHeader.styles.js +15 -10
  160. package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
  161. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  162. package/dist/Tooltip/Tooltip.js +7 -1
  163. package/dist/Tooltip/Tooltip.js.map +1 -1
  164. package/dist/Tooltip/Tooltip.styles.js +3 -3
  165. package/dist/Tree/Tree.js +1 -1
  166. package/dist/Tree/Tree.styles.js +10 -10
  167. package/dist/Typeahead/Typeahead.styles.js +4 -4
  168. package/dist/Typography/Typography.styles.js +1 -1
  169. package/dist/Typography/Typography.table.story.js +2 -2
  170. package/dist/_hooks/I18n.d.ts +33 -13
  171. package/dist/_hooks/I18n.js +2 -0
  172. package/dist/_hooks/I18n.js.map +1 -1
  173. package/dist/_locales/de-DE.json +1 -0
  174. package/dist/_locales/en-AU.json +1 -0
  175. package/dist/_locales/en-CA.json +1 -0
  176. package/dist/_locales/en-GB.json +1 -0
  177. package/dist/_locales/en.json +3 -1
  178. package/dist/_locales/es-ES.json +1 -0
  179. package/dist/_locales/es.json +1 -0
  180. package/dist/_locales/fr-CA.json +1 -0
  181. package/dist/_locales/fr-FR.json +1 -0
  182. package/dist/_locales/is-IS.json +1 -0
  183. package/dist/_locales/it-IT.json +1 -0
  184. package/dist/_locales/ja-JP.json +1 -0
  185. package/dist/_locales/nb-NO.json +2 -1
  186. package/dist/_locales/pl-PL.json +1 -0
  187. package/dist/_locales/pseudo.json +3 -1
  188. package/dist/_locales/pt-BR.json +1 -0
  189. package/dist/_locales/pt-PT.json +3 -2
  190. package/dist/_locales/th-TH.json +1 -0
  191. package/dist/_locales/zh-SG.json +1 -0
  192. package/dist/_locales/zh-TW.json +2 -1
  193. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  194. package/dist/_storyHelpers_/components/StoryGrid.js +5 -4
  195. package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -1
  196. package/dist/_storyHelpers_/highZoom.d.ts +68 -0
  197. package/dist/_storyHelpers_/highZoom.js +72 -0
  198. package/dist/_storyHelpers_/highZoom.js.map +1 -0
  199. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +7 -7
  200. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  201. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  202. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  203. package/dist/_typedoc/Banner/Banner.types.json +18 -18
  204. package/dist/_typedoc/Box/Box.types.json +68 -68
  205. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
  206. package/dist/_typedoc/Button/Button.types.json +14 -14
  207. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  208. package/dist/_typedoc/Card/Card.types.json +6 -6
  209. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  210. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  211. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  212. package/dist/_typedoc/DateSelect/DateSelect.types.json +17 -17
  213. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  214. package/dist/_typedoc/DetailPageTemplate/DetailPageTemplate.types.json +3 -3
  215. package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
  216. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +37 -37
  217. package/dist/_typedoc/Dropzone/Dropzone.types.json +50 -50
  218. package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
  219. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  220. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  221. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  222. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  223. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +17 -17
  224. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  225. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  226. package/dist/_typedoc/Form/Form.types.json +783 -783
  227. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  228. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  229. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +81 -81
  230. package/dist/_typedoc/Input/Input.types.json +2 -2
  231. package/dist/_typedoc/Link/Link.types.json +1 -1
  232. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  233. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  234. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +90 -90
  235. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  236. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +34 -34
  237. package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
  238. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  239. package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
  240. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +44 -33
  241. package/dist/_typedoc/PageLayout/PageLayout.types.json +42 -42
  242. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  243. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  244. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  245. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  246. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  247. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  248. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  249. package/dist/_typedoc/Required/Required.types.json +5 -5
  250. package/dist/_typedoc/Search/Search.types.json +18 -18
  251. package/dist/_typedoc/Section/Section.types.json +15 -15
  252. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  253. package/dist/_typedoc/Select/Select.types.json +67 -67
  254. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  255. package/dist/_typedoc/SettingsPageTemplate/SettingsPageTemplate.types.json +3 -3
  256. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  257. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  258. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  259. package/dist/_typedoc/Table/Table.types.json +108 -108
  260. package/dist/_typedoc/Tabs/Tablist.types.json +10 -10
  261. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  262. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  263. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  264. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  265. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  266. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  267. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  268. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  269. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  270. package/dist/_typedoc/Title/Title.types.json +1 -1
  271. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  272. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  273. package/dist/_typedoc/Token/Token.types.json +7 -7
  274. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  275. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  276. package/dist/_typedoc/ToolLandingPageTemplate/ToolLandingPageTemplate.types.json +2 -2
  277. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  278. package/dist/_typedoc/Tree/Tree.types.json +132 -132
  279. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  280. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  281. package/dist/_typedoc/_utils/types.json +3 -3
  282. package/dist/_typedoc/a11y-tips.json +1 -1
  283. package/package.json +2 -2
  284. package/dist/_hooks/ScrollLock.d.ts +0 -1
  285. package/dist/_hooks/ScrollLock.js +0 -31
  286. package/dist/_hooks/ScrollLock.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { Modal } from '../../Modal/Modal';
3
+ import { mediaBreakpointsDown, mediaHeightDown, mediaWidthDown } from '../../PageLayout/PageLayout.utils';
3
4
  import { colors } from '../../_styles/colors';
4
5
  import { spacing } from '../../_styles/spacing';
5
6
  export var modalBodyHeight = 460;
@@ -10,42 +11,44 @@ var modalContainerMinHeight = 637;
10
11
  var modalContainerMaxWidth = 1682;
11
12
  var modalContainerMaxHeight = 996;
12
13
  var modalContainerMargin = 80;
14
+ // Space around the dialog when it shrinks
15
+ var viewportGutter = spacing.lg;
13
16
  export var StyledModalOverlay = /*#__PURE__*/styled(Modal.Overlay).withConfig({
14
17
  displayName: "StyledModalOverlay",
15
- componentId: "core-12_53_4__sc-343gts-0"
18
+ componentId: "core-12_54_0__sc-343gts-0"
16
19
  })(["opacity:0;pointer-events:none;transition:opacity 0.3s linear;visibility:hidden;", ""], function (props) {
17
20
  return props.$open && "\n opacity: 1;\n pointer-events: all;\n visibility: visible;\n ";
18
21
  });
19
22
  export var StyledModalContainer = /*#__PURE__*/styled(Modal.Container).withConfig({
20
23
  displayName: "StyledModalContainer",
21
- componentId: "core-12_53_4__sc-343gts-1"
22
- })(["width:calc(100% - ", "px);height:calc(100% - ", "px);top:calc(50vh - ", "px);left:calc(50vw - ", "px);margin:", "px;min-width:", "px;min-height:", "px;max-width:", "px;max-height:", "px;"], modalContainerMargin * 2, modalContainerMargin * 2, modalContainerMargin, modalContainerMargin, modalContainerMargin, modalContainerMinWidth, modalContainerMinHeight, modalContainerMaxWidth, modalContainerMaxHeight);
24
+ componentId: "core-12_54_0__sc-343gts-1"
25
+ })(["width:calc(100% - ", "px);height:calc(100% - ", "px);top:calc(50vh - ", "px);left:calc(50vw - ", "px);margin:", "px;min-width:min( ", "px,calc(100vw - ", "px) );min-height:min( ", "px,calc(100vh - ", "px) );max-width:", "px;max-height:", "px;@media ", "{", "{overflow:visible;}}@media ", "{top:0;left:0;transform:none;margin:0;width:100vw;height:100vh;min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0;}"], modalContainerMargin * 2, modalContainerMargin * 2, modalContainerMargin, modalContainerMargin, modalContainerMargin, modalContainerMinWidth, viewportGutter * 2, modalContainerMinHeight, viewportGutter * 2, modalContainerMaxWidth, modalContainerMaxHeight, mediaHeightDown["short"], Modal.Content, mediaWidthDown.mobileSm);
23
26
  export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
24
27
  displayName: "StyledModalBody",
25
- componentId: "core-12_53_4__sc-343gts-2"
26
- })(["min-height:", "px;height:100%;margin:0;max-width:none;padding:0;border-bottom:1px solid ", ";"], modalBodyMinHeight, colors.gray85);
28
+ componentId: "core-12_54_0__sc-343gts-2"
29
+ })(["min-height:", "px;height:100%;margin:0;max-width:none;padding:0;border-bottom:1px solid ", ";@media (max-height:", "px){min-height:0;}@media ", "{height:auto;}"], modalBodyMinHeight, colors.gray85, modalContainerMinHeight + viewportGutter * 2 - 0.02, mediaHeightDown["short"]);
27
30
  export var StyledModalInnerBody = /*#__PURE__*/styled.div.withConfig({
28
31
  displayName: "StyledModalInnerBody",
29
- componentId: "core-12_53_4__sc-343gts-3"
30
- })(["display:flex;flex-direction:row;height:100%;overflow:hidden;"]);
32
+ componentId: "core-12_54_0__sc-343gts-3"
33
+ })(["display:flex;flex-direction:row;height:100%;overflow:hidden;@media ", "{flex-direction:column;}@media ", "{height:auto;overflow:visible;}"], mediaBreakpointsDown.tabletMd, mediaHeightDown["short"]);
31
34
  export var StyledModalHeader = /*#__PURE__*/styled(Modal.Header).withConfig({
32
35
  displayName: "StyledModalHeader",
33
- componentId: "core-12_53_4__sc-343gts-4"
36
+ componentId: "core-12_54_0__sc-343gts-4"
34
37
  })(["border-bottom:1px solid ", ";"], colors.gray85);
35
38
  export var StyledModalContent = /*#__PURE__*/styled.div.withConfig({
36
39
  displayName: "StyledModalContent",
37
- componentId: "core-12_53_4__sc-343gts-5"
38
- })(["display:flex;width:100%;height:100%;overflow-y:auto;outline:none;"]);
40
+ componentId: "core-12_54_0__sc-343gts-5"
41
+ })(["display:flex;width:100%;height:100%;overflow-y:auto;outline:none;@media ", "{height:auto;overflow-y:visible;}"], mediaHeightDown["short"]);
39
42
  export var StyledSource = /*#__PURE__*/styled.div.withConfig({
40
43
  displayName: "StyledSource",
41
- componentId: "core-12_53_4__sc-343gts-6"
42
- })(["width:100%;height:100%;"]);
44
+ componentId: "core-12_54_0__sc-343gts-6"
45
+ })(["width:100%;height:100%;@media ", "{height:auto;}"], mediaHeightDown["short"]);
43
46
  export var StyledAttachButton = /*#__PURE__*/styled.div.withConfig({
44
47
  displayName: "StyledAttachButton",
45
- componentId: "core-12_53_4__sc-343gts-7"
48
+ componentId: "core-12_54_0__sc-343gts-7"
46
49
  })(["margin-left:", "px;"], spacing.md);
47
50
  export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
48
51
  displayName: "StyledFileTreeSpinner",
49
- componentId: "core-12_53_4__sc-343gts-8"
52
+ componentId: "core-12_54_0__sc-343gts-8"
50
53
  })(["display:flex;align-items:center;justify-content:center;height:100%;"]);
51
54
  //# sourceMappingURL=FileExplorer.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorer.styles.js","names":["styled","Modal","colors","spacing","modalBodyHeight","modalBodyMinHeight","sourcePadding","md","modalContainerMinWidth","modalContainerMinHeight","modalContainerMaxWidth","modalContainerMaxHeight","modalContainerMargin","StyledModalOverlay","Overlay","withConfig","displayName","componentId","props","$open","StyledModalContainer","Container","StyledModalBody","Body","gray85","StyledModalInnerBody","div","StyledModalHeader","Header","StyledModalContent","StyledSource","StyledAttachButton","StyledFileTreeSpinner"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorer.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Modal } from '../../Modal/Modal'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const modalBodyHeight = 460\nconst modalBodyMinHeight = 460\nconst sourcePadding = spacing.md * 2\nconst modalContainerMinWidth = 968\nconst modalContainerMinHeight = 637\nconst modalContainerMaxWidth = 1682\nconst modalContainerMaxHeight = 996\nconst modalContainerMargin = 80\n\nexport const StyledModalOverlay = styled(Modal.Overlay)<{ $open: boolean }>`\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s linear;\n visibility: hidden;\n\n ${(props) =>\n props.$open &&\n `\n opacity: 1;\n pointer-events: all;\n visibility: visible;\n `}\n`\n\nexport const StyledModalContainer = styled(Modal.Container)`\n width: calc(100% - ${modalContainerMargin * 2}px);\n height: calc(100% - ${modalContainerMargin * 2}px);\n top: calc(50vh - ${modalContainerMargin}px);\n left: calc(50vw - ${modalContainerMargin}px);\n margin: ${modalContainerMargin}px;\n min-width: ${modalContainerMinWidth}px;\n min-height: ${modalContainerMinHeight}px;\n max-width: ${modalContainerMaxWidth}px;\n max-height: ${modalContainerMaxHeight}px;\n`\n\nexport const StyledModalBody = styled(Modal.Body)`\n min-height: ${modalBodyMinHeight}px;\n height: 100%;\n margin: 0;\n max-width: none;\n padding: 0;\n border-bottom: 1px solid ${colors.gray85};\n`\n\nexport const StyledModalInnerBody = styled.div`\n display: flex;\n flex-direction: row;\n height: 100%;\n overflow: hidden;\n`\n\nexport const StyledModalHeader = styled(Modal.Header)`\n border-bottom: 1px solid ${colors.gray85};\n`\n\nexport const StyledModalContent = styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n outline: none;\n`\n\nexport const StyledSource = styled.div`\n width: 100%;\n height: 100%;\n`\n\nexport const StyledAttachButton = styled.div`\n margin-left: ${spacing.md}px;\n`\n\nexport const StyledFileTreeSpinner = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,eAAe,GAAG,GAAG;AAClC,IAAMC,kBAAkB,GAAG,GAAG;AAC9B,IAAMC,aAAa,GAAGH,OAAO,CAACI,EAAE,GAAG,CAAC;AACpC,IAAMC,sBAAsB,GAAG,GAAG;AAClC,IAAMC,uBAAuB,GAAG,GAAG;AACnC,IAAMC,sBAAsB,GAAG,IAAI;AACnC,IAAMC,uBAAuB,GAAG,GAAG;AACnC,IAAMC,oBAAoB,GAAG,EAAE;AAE/B,OAAO,IAAMC,kBAAkB,gBAAGb,MAAM,CAACC,KAAK,CAACa,OAAO,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4FAMnD,UAACC,KAAK;EAAA,OACNA,KAAK,CAACC,KAAK,yEAKZ;AAAA,EACF;AAED,OAAO,IAAMC,oBAAoB,gBAAGpB,MAAM,CAACC,KAAK,CAACoB,SAAS,CAAC,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mMACpCL,oBAAoB,GAAG,CAAC,EACvBA,oBAAoB,GAAG,CAAC,EAC3BA,oBAAoB,EACnBA,oBAAoB,EAC9BA,oBAAoB,EACjBJ,sBAAsB,EACrBC,uBAAuB,EACxBC,sBAAsB,EACrBC,uBAAuB,CACtC;AAED,OAAO,IAAMW,eAAe,gBAAGtB,MAAM,CAACC,KAAK,CAACsB,IAAI,CAAC,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sGACjCZ,kBAAkB,EAKLH,MAAM,CAACsB,MAAM,CACzC;AAED,OAAO,IAAMC,oBAAoB,gBAAGzB,MAAM,CAAC0B,GAAG,CAAAX,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oEAK7C;AAED,OAAO,IAAMU,iBAAiB,gBAAG3B,MAAM,CAACC,KAAK,CAAC2B,MAAM,CAAC,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sCACxBf,MAAM,CAACsB,MAAM,CACzC;AAED,OAAO,IAAMK,kBAAkB,gBAAG7B,MAAM,CAAC0B,GAAG,CAAAX,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yEAM3C;AAED,OAAO,IAAMa,YAAY,gBAAG9B,MAAM,CAAC0B,GAAG,CAAAX,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+BAGrC;AAED,OAAO,IAAMc,kBAAkB,gBAAG/B,MAAM,CAAC0B,GAAG,CAAAX,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4BAC3Bd,OAAO,CAACI,EAAE,CAC1B;AAED,OAAO,IAAMyB,qBAAqB,gBAAGhC,MAAM,CAAC0B,GAAG,CAAAX,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2EAK9C","ignoreList":[]}
1
+ {"version":3,"file":"FileExplorer.styles.js","names":["styled","Modal","mediaBreakpointsDown","mediaHeightDown","mediaWidthDown","colors","spacing","modalBodyHeight","modalBodyMinHeight","sourcePadding","md","modalContainerMinWidth","modalContainerMinHeight","modalContainerMaxWidth","modalContainerMaxHeight","modalContainerMargin","viewportGutter","lg","StyledModalOverlay","Overlay","withConfig","displayName","componentId","props","$open","StyledModalContainer","Container","Content","mobileSm","StyledModalBody","Body","gray85","StyledModalInnerBody","div","tabletMd","StyledModalHeader","Header","StyledModalContent","StyledSource","StyledAttachButton","StyledFileTreeSpinner"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorer.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Modal } from '../../Modal/Modal'\nimport {\n mediaBreakpointsDown,\n mediaHeightDown,\n mediaWidthDown,\n} from '../../PageLayout/PageLayout.utils'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const modalBodyHeight = 460\nconst modalBodyMinHeight = 460\nconst sourcePadding = spacing.md * 2\nconst modalContainerMinWidth = 968\nconst modalContainerMinHeight = 637\nconst modalContainerMaxWidth = 1682\nconst modalContainerMaxHeight = 996\nconst modalContainerMargin = 80\n// Space around the dialog when it shrinks\nconst viewportGutter = spacing.lg\n\nexport const StyledModalOverlay = styled(Modal.Overlay)<{ $open: boolean }>`\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s linear;\n visibility: hidden;\n\n ${(props) =>\n props.$open &&\n `\n opacity: 1;\n pointer-events: all;\n visibility: visible;\n `}\n`\n\nexport const StyledModalContainer = styled(Modal.Container)`\n width: calc(100% - ${modalContainerMargin * 2}px);\n height: calc(100% - ${modalContainerMargin * 2}px);\n top: calc(50vh - ${modalContainerMargin}px);\n left: calc(50vw - ${modalContainerMargin}px);\n margin: ${modalContainerMargin}px;\n min-width: min(\n ${modalContainerMinWidth}px,\n calc(100vw - ${viewportGutter * 2}px)\n );\n min-height: min(\n ${modalContainerMinHeight}px,\n calc(100vh - ${viewportGutter * 2}px)\n );\n max-width: ${modalContainerMaxWidth}px;\n max-height: ${modalContainerMaxHeight}px;\n\n // High zoom: the dialog scrolls as a whole\n @media ${mediaHeightDown.short} {\n ${Modal.Content} {\n overflow: visible;\n }\n }\n\n // 400% zoom: full screen\n @media ${mediaWidthDown.mobileSm} {\n top: 0;\n left: 0;\n transform: none;\n margin: 0;\n width: 100vw;\n height: 100vh;\n min-width: 0;\n min-height: 0;\n max-width: none;\n max-height: none;\n border-radius: 0;\n }\n`\n\nexport const StyledModalBody = styled(Modal.Body)`\n min-height: ${modalBodyMinHeight}px;\n height: 100%;\n margin: 0;\n max-width: none;\n padding: 0;\n border-bottom: 1px solid ${colors.gray85};\n\n // Keep header and footer inside the shrunken dialog\n @media (max-height: ${modalContainerMinHeight +\n viewportGutter * 2 -\n 0.02}px) {\n min-height: 0;\n }\n\n // High zoom: one scroll area\n @media ${mediaHeightDown.short} {\n height: auto;\n }\n`\n\nexport const StyledModalInnerBody = styled.div`\n display: flex;\n flex-direction: row;\n height: 100%;\n overflow: hidden;\n\n // High zoom: sources above the files\n @media ${mediaBreakpointsDown.tabletMd} {\n flex-direction: column;\n }\n\n @media ${mediaHeightDown.short} {\n height: auto;\n overflow: visible;\n }\n`\n\nexport const StyledModalHeader = styled(Modal.Header)`\n border-bottom: 1px solid ${colors.gray85};\n`\n\nexport const StyledModalContent = styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n outline: none;\n\n @media ${mediaHeightDown.short} {\n height: auto;\n overflow-y: visible;\n }\n`\n\nexport const StyledSource = styled.div`\n width: 100%;\n height: 100%;\n\n @media ${mediaHeightDown.short} {\n height: auto;\n }\n`\n\nexport const StyledAttachButton = styled.div`\n margin-left: ${spacing.md}px;\n`\n\nexport const StyledFileTreeSpinner = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SACEC,oBAAoB,EACpBC,eAAe,EACfC,cAAc,QACT,mCAAmC;AAC1C,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,eAAe,GAAG,GAAG;AAClC,IAAMC,kBAAkB,GAAG,GAAG;AAC9B,IAAMC,aAAa,GAAGH,OAAO,CAACI,EAAE,GAAG,CAAC;AACpC,IAAMC,sBAAsB,GAAG,GAAG;AAClC,IAAMC,uBAAuB,GAAG,GAAG;AACnC,IAAMC,sBAAsB,GAAG,IAAI;AACnC,IAAMC,uBAAuB,GAAG,GAAG;AACnC,IAAMC,oBAAoB,GAAG,EAAE;AAC/B;AACA,IAAMC,cAAc,GAAGV,OAAO,CAACW,EAAE;AAEjC,OAAO,IAAMC,kBAAkB,gBAAGlB,MAAM,CAACC,KAAK,CAACkB,OAAO,CAAC,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4FAMnD,UAACC,KAAK;EAAA,OACNA,KAAK,CAACC,KAAK,yEAKZ;AAAA,EACF;AAED,OAAO,IAAMC,oBAAoB,gBAAGzB,MAAM,CAACC,KAAK,CAACyB,SAAS,CAAC,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kbACpCP,oBAAoB,GAAG,CAAC,EACvBA,oBAAoB,GAAG,CAAC,EAC3BA,oBAAoB,EACnBA,oBAAoB,EAC9BA,oBAAoB,EAE1BJ,sBAAsB,EACTK,cAAc,GAAG,CAAC,EAG/BJ,uBAAuB,EACVI,cAAc,GAAG,CAAC,EAEtBH,sBAAsB,EACrBC,uBAAuB,EAG5BX,eAAe,SAAM,EAC1BF,KAAK,CAAC0B,OAAO,EAMRvB,cAAc,CAACwB,QAAQ,CAajC;AAED,OAAO,IAAMC,eAAe,gBAAG7B,MAAM,CAACC,KAAK,CAAC6B,IAAI,CAAC,CAAAV,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wKACjCd,kBAAkB,EAKLH,MAAM,CAAC0B,MAAM,EAGlBnB,uBAAuB,GAC3CI,cAAc,GAAG,CAAC,GAClB,IAAI,EAKGb,eAAe,SAAM,CAG/B;AAED,OAAO,IAAM6B,oBAAoB,gBAAGhC,MAAM,CAACiC,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kJAOnCpB,oBAAoB,CAACgC,QAAQ,EAI7B/B,eAAe,SAAM,CAI/B;AAED,OAAO,IAAMgC,iBAAiB,gBAAGnC,MAAM,CAACC,KAAK,CAACmC,MAAM,CAAC,CAAAhB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sCACxBjB,MAAM,CAAC0B,MAAM,CACzC;AAED,OAAO,IAAMM,kBAAkB,gBAAGrC,MAAM,CAACiC,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sHAOjCnB,eAAe,SAAM,CAI/B;AAED,OAAO,IAAMmC,YAAY,gBAAGtC,MAAM,CAACiC,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAI3BnB,eAAe,SAAM,CAG/B;AAED,OAAO,IAAMoC,kBAAkB,gBAAGvC,MAAM,CAACiC,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4BAC3BhB,OAAO,CAACI,EAAE,CAC1B;AAED,OAAO,IAAM8B,qBAAqB,gBAAGxC,MAAM,CAACiC,GAAG,CAAAb,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2EAK9C","ignoreList":[]}
@@ -2,10 +2,10 @@ var _excluded = ["children", "onClickOverlay", "open", "placement"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
4
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
+ import { usePreventScroll } from '@react-aria/overlays';
5
6
  import React from 'react';
6
7
  import { Modal } from '../../Modal/Modal';
7
8
  import { Portal } from '../../Portal/Portal';
8
- import { useScrollLock } from '../../_hooks/ScrollLock';
9
9
  import { StyledModalContainer, StyledModalOverlay } from './FileExplorer.styles';
10
10
  function noop() {}
11
11
  export var FileExplorerModal = /*#__PURE__*/React.forwardRef(function FileExplorerModal(_ref, ref) {
@@ -17,7 +17,9 @@ export var FileExplorerModal = /*#__PURE__*/React.forwardRef(function FileExplor
17
17
  _ref$placement = _ref.placement,
18
18
  placement = _ref$placement === void 0 ? 'center' : _ref$placement,
19
19
  props = _objectWithoutProperties(_ref, _excluded);
20
- useScrollLock(open);
20
+ usePreventScroll({
21
+ isDisabled: !open
22
+ });
21
23
  return /*#__PURE__*/React.createElement(Portal, {
22
24
  container: props.container
23
25
  }, /*#__PURE__*/React.createElement(StyledModalOverlay, {
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerModal.js","names":["React","Modal","Portal","useScrollLock","StyledModalContainer","StyledModalOverlay","noop","FileExplorerModal","forwardRef","_ref","ref","children","_ref$onClickOverlay","onClickOverlay","_ref$open","open","_ref$placement","placement","props","_objectWithoutProperties","_excluded","createElement","container","$open","Scrim","onClick","_extends","Content","$compact"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorerModal.tsx"],"sourcesContent":["import React from 'react'\nimport { Modal } from '../../Modal/Modal'\nimport type { ModalProps } from '../../Modal/Modal.types'\nimport { Portal } from '../../Portal/Portal'\nimport type { PortalProps } from '../../Portal/Portal.types'\nimport { useScrollLock } from '../../_hooks/ScrollLock'\nimport { StyledModalContainer, StyledModalOverlay } from './FileExplorer.styles'\n\nfunction noop() {}\n\nexport const FileExplorerModal = React.forwardRef<\n HTMLDivElement,\n ModalProps & React.HTMLAttributes<HTMLDivElement> & PortalProps\n>(function FileExplorerModal(\n {\n children,\n onClickOverlay = noop,\n open = false,\n placement = 'center',\n ...props\n },\n ref\n) {\n useScrollLock(open)\n\n return (\n <Portal container={props.container}>\n <StyledModalOverlay $open={open} ref={ref}>\n <Modal.Scrim onClick={onClickOverlay} />\n\n <StyledModalContainer {...props} placement={placement}>\n <Modal.Content $compact>{children}</Modal.Content>\n </StyledModalContainer>\n </StyledModalOverlay>\n </Portal>\n )\n})\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,mBAAmB;AAEzC,SAASC,MAAM,QAAQ,qBAAqB;AAE5C,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,oBAAoB,EAAEC,kBAAkB,QAAQ,uBAAuB;AAEhF,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,OAAO,IAAMC,iBAAiB,gBAAGP,KAAK,CAACQ,UAAU,CAG/C,SAASD,iBAAiBA,CAAAE,IAAA,EAQ1BC,GAAG,EACH;EAAA,IAPEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,mBAAA,GAAAH,IAAA,CACRI,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAGN,IAAI,GAAAM,mBAAA;IAAAE,SAAA,GAAAL,IAAA,CACrBM,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,KAAK,GAAAA,SAAA;IAAAE,cAAA,GAAAP,IAAA,CACZQ,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,QAAQ,GAAAA,cAAA;IACjBE,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA;EAIVjB,aAAa,CAACY,IAAI,CAAC;EAEnB,oBACEf,KAAA,CAAAqB,aAAA,CAACnB,MAAM;IAACoB,SAAS,EAAEJ,KAAK,CAACI;EAAU,gBACjCtB,KAAA,CAAAqB,aAAA,CAAChB,kBAAkB;IAACkB,KAAK,EAAER,IAAK;IAACL,GAAG,EAAEA;EAAI,gBACxCV,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACuB,KAAK;IAACC,OAAO,EAAEZ;EAAe,CAAE,CAAC,eAExCb,KAAA,CAAAqB,aAAA,CAACjB,oBAAoB,EAAAsB,QAAA,KAAKR,KAAK;IAAED,SAAS,EAAEA;EAAU,iBACpDjB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAAC0B,OAAO;IAACC,QAAQ;EAAA,GAAEjB,QAAwB,CAC7B,CACJ,CACd,CAAC;AAEb,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FileExplorerModal.js","names":["usePreventScroll","React","Modal","Portal","StyledModalContainer","StyledModalOverlay","noop","FileExplorerModal","forwardRef","_ref","ref","children","_ref$onClickOverlay","onClickOverlay","_ref$open","open","_ref$placement","placement","props","_objectWithoutProperties","_excluded","isDisabled","createElement","container","$open","Scrim","onClick","_extends","Content","$compact"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorerModal.tsx"],"sourcesContent":["import { usePreventScroll } from '@react-aria/overlays'\nimport React from 'react'\nimport { Modal } from '../../Modal/Modal'\nimport type { ModalProps } from '../../Modal/Modal.types'\nimport { Portal } from '../../Portal/Portal'\nimport type { PortalProps } from '../../Portal/Portal.types'\nimport { StyledModalContainer, StyledModalOverlay } from './FileExplorer.styles'\n\nfunction noop() {}\n\nexport const FileExplorerModal = React.forwardRef<\n HTMLDivElement,\n ModalProps & React.HTMLAttributes<HTMLDivElement> & PortalProps\n>(function FileExplorerModal(\n {\n children,\n onClickOverlay = noop,\n open = false,\n placement = 'center',\n ...props\n },\n ref\n) {\n usePreventScroll({ isDisabled: !open })\n\n return (\n <Portal container={props.container}>\n <StyledModalOverlay $open={open} ref={ref}>\n <Modal.Scrim onClick={onClickOverlay} />\n\n <StyledModalContainer {...props} placement={placement}>\n <Modal.Content $compact>{children}</Modal.Content>\n </StyledModalContainer>\n </StyledModalOverlay>\n </Portal>\n )\n})\n"],"mappings":";;;;AAAA,SAASA,gBAAgB,QAAQ,sBAAsB;AACvD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,mBAAmB;AAEzC,SAASC,MAAM,QAAQ,qBAAqB;AAE5C,SAASC,oBAAoB,EAAEC,kBAAkB,QAAQ,uBAAuB;AAEhF,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,OAAO,IAAMC,iBAAiB,gBAAGN,KAAK,CAACO,UAAU,CAG/C,SAASD,iBAAiBA,CAAAE,IAAA,EAQ1BC,GAAG,EACH;EAAA,IAPEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,mBAAA,GAAAH,IAAA,CACRI,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAGN,IAAI,GAAAM,mBAAA;IAAAE,SAAA,GAAAL,IAAA,CACrBM,IAAI;IAAJA,IAAI,GAAAD,SAAA,cAAG,KAAK,GAAAA,SAAA;IAAAE,cAAA,GAAAP,IAAA,CACZQ,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,QAAQ,GAAAA,cAAA;IACjBE,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA;EAIVpB,gBAAgB,CAAC;IAAEqB,UAAU,EAAE,CAACN;EAAK,CAAC,CAAC;EAEvC,oBACEd,KAAA,CAAAqB,aAAA,CAACnB,MAAM;IAACoB,SAAS,EAAEL,KAAK,CAACK;EAAU,gBACjCtB,KAAA,CAAAqB,aAAA,CAACjB,kBAAkB;IAACmB,KAAK,EAAET,IAAK;IAACL,GAAG,EAAEA;EAAI,gBACxCT,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAACuB,KAAK;IAACC,OAAO,EAAEb;EAAe,CAAE,CAAC,eAExCZ,KAAA,CAAAqB,aAAA,CAAClB,oBAAoB,EAAAuB,QAAA,KAAKT,KAAK;IAAED,SAAS,EAAEA;EAAU,iBACpDhB,KAAA,CAAAqB,aAAA,CAACpB,KAAK,CAAC0B,OAAO;IAACC,QAAQ;EAAA,GAAElB,QAAwB,CAC7B,CACJ,CACd,CAAC;AAEb,CAAC,CAAC","ignoreList":[]}
@@ -1,16 +1,17 @@
1
1
  import styled from 'styled-components';
2
+ import { mediaBreakpointsDown } from '../../PageLayout/PageLayout.utils';
2
3
  import { colors } from '../../_styles/colors';
3
4
  import { SourceItem } from '../SourceItem/SourceItem';
4
5
  export var StyledSidebar = /*#__PURE__*/styled.div.withConfig({
5
6
  displayName: "StyledSidebar",
6
- componentId: "core-12_53_4__sc-s03uiv-0"
7
- })(["display:flex;flex-shrink:0;width:300px;border-right:1px solid ", ";"], colors.gray85);
7
+ componentId: "core-12_54_0__sc-s03uiv-0"
8
+ })(["display:flex;flex-shrink:0;width:300px;border-right:1px solid ", ";@media ", "{width:100%;border-right:0;border-bottom:1px solid ", ";}"], colors.gray85, mediaBreakpointsDown.tabletMd, colors.gray85);
8
9
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
9
10
  displayName: "StyledNavigation",
10
- componentId: "core-12_53_4__sc-s03uiv-1"
11
+ componentId: "core-12_54_0__sc-s03uiv-1"
11
12
  })(["display:flex;flex-direction:column;width:100%;&:focus{outline:none;}"]);
12
13
  export var StyledSourceItem = /*#__PURE__*/styled(SourceItem).withConfig({
13
14
  displayName: "StyledSourceItem",
14
- componentId: "core-12_53_4__sc-s03uiv-2"
15
+ componentId: "core-12_54_0__sc-s03uiv-2"
15
16
  })(["width:100%;padding-left:10px;&:focus{padding-left:9px;}"]);
16
17
  //# sourceMappingURL=FileExplorerSidebar.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerSidebar.styles.js","names":["styled","colors","SourceItem","StyledSidebar","div","withConfig","displayName","componentId","gray85","StyledNavigation","StyledSourceItem"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorerSidebar.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { colors } from '../../_styles/colors'\nimport { SourceItem } from '../SourceItem/SourceItem'\n\nexport const StyledSidebar = styled.div`\n display: flex;\n flex-shrink: 0;\n width: 300px;\n border-right: 1px solid ${colors.gray85};\n`\n\nexport const StyledNavigation = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n\n &:focus {\n outline: none;\n }\n`\n\nexport const StyledSourceItem = styled(SourceItem)`\n width: 100%;\n padding-left: 10px;\n\n &:focus {\n padding-left: 9px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,UAAU,QAAQ,0BAA0B;AAErD,OAAO,IAAMC,aAAa,gBAAGH,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAIXN,MAAM,CAACO,MAAM,CACxC;AAED,OAAO,IAAMC,gBAAgB,gBAAGT,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAQzC;AAED,OAAO,IAAMG,gBAAgB,gBAAGV,MAAM,CAACE,UAAU,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+DAOjD","ignoreList":[]}
1
+ {"version":3,"file":"FileExplorerSidebar.styles.js","names":["styled","mediaBreakpointsDown","colors","SourceItem","StyledSidebar","div","withConfig","displayName","componentId","gray85","tabletMd","StyledNavigation","StyledSourceItem"],"sources":["../../../src/FileSelect/FileExplorer/FileExplorerSidebar.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { mediaBreakpointsDown } from '../../PageLayout/PageLayout.utils'\nimport { colors } from '../../_styles/colors'\nimport { SourceItem } from '../SourceItem/SourceItem'\n\nexport const StyledSidebar = styled.div`\n display: flex;\n flex-shrink: 0;\n width: 300px;\n border-right: 1px solid ${colors.gray85};\n\n @media ${mediaBreakpointsDown.tabletMd} {\n width: 100%;\n border-right: 0;\n border-bottom: 1px solid ${colors.gray85};\n }\n`\n\nexport const StyledNavigation = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n\n &:focus {\n outline: none;\n }\n`\n\nexport const StyledSourceItem = styled(SourceItem)`\n width: 100%;\n padding-left: 10px;\n\n &:focus {\n padding-left: 9px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,oBAAoB,QAAQ,mCAAmC;AACxE,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,UAAU,QAAQ,0BAA0B;AAErD,OAAO,IAAMC,aAAa,gBAAGJ,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gJAIXN,MAAM,CAACO,MAAM,EAE9BR,oBAAoB,CAACS,QAAQ,EAGTR,MAAM,CAACO,MAAM,CAE3C;AAED,OAAO,IAAME,gBAAgB,gBAAGX,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAQzC;AAED,OAAO,IAAMI,gBAAgB,gBAAGZ,MAAM,CAACG,UAAU,CAAC,CAAAG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+DAOjD","ignoreList":[]}
@@ -3,10 +3,10 @@ import { spacing } from '../_styles/spacing';
3
3
  import { FileTokenList } from './FileTokenList';
4
4
  export var StyledFileTokenList = /*#__PURE__*/styled(FileTokenList).withConfig({
5
5
  displayName: "StyledFileTokenList",
6
- componentId: "core-12_53_4__sc-1r3srjk-0"
6
+ componentId: "core-12_54_0__sc-1r3srjk-0"
7
7
  })(["margin-top:", "px;"], spacing.md);
8
8
  export var StyledFileSelect = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledFileSelect",
10
- componentId: "core-12_53_4__sc-1r3srjk-1"
10
+ componentId: "core-12_54_0__sc-1r3srjk-1"
11
11
  })(["display:flex;flex-direction:column;"]);
12
12
  //# sourceMappingURL=FileSelect.styles.js.map
@@ -5,20 +5,20 @@ import { spacing } from '../../_styles/spacing';
5
5
  export var dropzoneContainerAttr = 'data-dropzone-container';
6
6
  export var StyledDropzone = /*#__PURE__*/styled(Dropzone).withConfig({
7
7
  displayName: "StyledDropzone",
8
- componentId: "core-12_53_4__sc-ueh7d7-0"
8
+ componentId: "core-12_54_0__sc-ueh7d7-0"
9
9
  })(["", ""], function (_ref) {
10
10
  var hidden = _ref.hidden;
11
11
  return hidden && "\n [".concat(dropzoneContainerAttr, "] {\n align-self: flex-start;\n margin-bottom: ").concat(spacing.xs, "px;\n\n &,\n &:hover {\n width: auto;\n min-height: auto;\n border: none;\n padding: 0;\n background: transparent;\n cursor: default;\n }\n }\n \n ");
12
12
  });
13
13
  export var StyledDropzoneMessage = /*#__PURE__*/styled.span.withConfig({
14
14
  displayName: "StyledDropzoneMessage",
15
- componentId: "core-12_53_4__sc-ueh7d7-1"
15
+ componentId: "core-12_54_0__sc-ueh7d7-1"
16
16
  })(["", ""], function (_ref2) {
17
17
  var error = _ref2.error;
18
18
  return error && "\n color: ".concat(colors.gray15, ";\n ");
19
19
  });
20
20
  export var StyledUploadButtonWrapper = /*#__PURE__*/styled.div.withConfig({
21
21
  displayName: "StyledUploadButtonWrapper",
22
- componentId: "core-12_53_4__sc-ueh7d7-2"
22
+ componentId: "core-12_54_0__sc-ueh7d7-2"
23
23
  })(["display:block;margin-left:auto;margin-right:auto;margin-bottom:", "px;"], spacing.sm);
24
24
  //# sourceMappingURL=FileSelectDropzone.styles.js.map
@@ -3,10 +3,10 @@ import { FileToken } from '../../FileToken/FileToken';
3
3
  import { spacing } from '../../_styles/spacing';
4
4
  export var StyledTokenList = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledTokenList",
6
- componentId: "core-12_53_4__sc-u9tli5-0"
6
+ componentId: "core-12_54_0__sc-u9tli5-0"
7
7
  })(["display:flex;flex-wrap:wrap;align-items:flex-start;"]);
8
8
  export var StyledFileToken = /*#__PURE__*/styled(FileToken).withConfig({
9
9
  displayName: "StyledFileToken",
10
- componentId: "core-12_53_4__sc-u9tli5-1"
10
+ componentId: "core-12_54_0__sc-u9tli5-1"
11
11
  })(["margin-bottom:", "px;margin-right:", "px;"], spacing.sm, spacing.sm);
12
12
  //# sourceMappingURL=FileTokenList.styles.js.map
@@ -13,7 +13,7 @@ export var contentHeight = modalBodyWidth - modalBodyBorderTopWidth - toolbarHei
13
13
  // TODO Update box-shadow to use getShadow instead
14
14
  export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
15
15
  displayName: "StyledToolbar",
16
- componentId: "core-12_53_4__sc-1sj6hvp-0"
16
+ componentId: "core-12_54_0__sc-1sj6hvp-0"
17
17
  })(["display:flex;align-items:center;flex-direction:row;width:100%;min-height:", "px;padding:16px 24px;", " ", " & > * + *{margin-left:", "px;}"], toolbarHeight, function (_ref) {
18
18
  var $alignRight = _ref.$alignRight;
19
19
  return css(["justify-content:", ";"], $alignRight ? 'flex-end' : 'space-between');
@@ -23,23 +23,23 @@ export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
23
23
  }, spacing.sm);
24
24
  export var StyledSearchWrapper = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "StyledSearchWrapper",
26
- componentId: "core-12_53_4__sc-1sj6hvp-1"
26
+ componentId: "core-12_54_0__sc-1sj6hvp-1"
27
27
  })(["width:286px;flex-shrink:1;min-width:180px;"]);
28
28
  export var StyledEmptyStateWrapper = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledEmptyStateWrapper",
30
- componentId: "core-12_53_4__sc-1sj6hvp-2"
30
+ componentId: "core-12_54_0__sc-1sj6hvp-2"
31
31
  })(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]);
32
32
  export var StyledEmptyState = /*#__PURE__*/styled(EmptyState).withConfig({
33
33
  displayName: "StyledEmptyState",
34
- componentId: "core-12_53_4__sc-1sj6hvp-3"
34
+ componentId: "core-12_54_0__sc-1sj6hvp-3"
35
35
  })(["margin-top:0;margin-bottom:0;img{width:160px;}"]);
36
36
  export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSpinnerWrapper",
38
- componentId: "core-12_53_4__sc-1sj6hvp-4"
38
+ componentId: "core-12_54_0__sc-1sj6hvp-4"
39
39
  })(["height:", "px;width:100%;display:flex;align-items:center;justify-content:center;"], contentHeight);
40
40
  export var StyledGrid = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledGrid",
42
- componentId: "core-12_53_4__sc-1sj6hvp-5"
42
+ componentId: "core-12_54_0__sc-1sj6hvp-5"
43
43
  })(["display:flex;flex-direction:column;", ""], function (_ref3) {
44
44
  var $isEmpty = _ref3.$isEmpty;
45
45
  return $isEmpty && 'height: 100%;';
@@ -1,5 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { Dropzone, DropzoneErrorBanner } from '../../Dropzone/Dropzone';
3
+ import { mediaBreakpointsDown } from '../../PageLayout/PageLayout.utils';
3
4
  import { colors } from '../../_styles/colors';
4
5
  import { mediaIE11Hack } from '../../_styles/media';
5
6
  import { spacing } from '../../_styles/spacing';
@@ -15,21 +16,21 @@ var dropzoneHeightWithIcon = 176;
15
16
  var sourceWidth = 568;
16
17
  export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
17
18
  displayName: "StyledLocalSource",
18
- componentId: "core-12_53_4__sc-psqe8z-0"
19
- })(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
19
+ componentId: "core-12_54_0__sc-psqe8z-0"
20
+ })(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;@media ", "{padding-right:", "px;}"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl, mediaBreakpointsDown.tabletMd, spacing.xl);
20
21
  export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
21
22
  displayName: "StyledDropzoneErrorBanner",
22
- componentId: "core-12_53_4__sc-psqe8z-1"
23
+ componentId: "core-12_54_0__sc-psqe8z-1"
23
24
  })(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
24
25
  export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
25
26
  displayName: "StyledDropzoneWrapper",
26
- componentId: "core-12_53_4__sc-psqe8z-2"
27
+ componentId: "core-12_54_0__sc-psqe8z-2"
27
28
  })(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
28
29
  var isIconVisible = _ref.isIconVisible;
29
30
  return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
30
31
  }, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
31
32
  export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
32
33
  displayName: "StyledThumbnailList",
33
- componentId: "core-12_53_4__sc-psqe8z-3"
34
+ componentId: "core-12_54_0__sc-psqe8z-3"
34
35
  })(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
35
36
  //# sourceMappingURL=LocalSource.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocalSource.styles.js","names":["styled","Dropzone","DropzoneErrorBanner","colors","mediaIE11Hack","spacing","ThumbnailList","uploaderHeight","dropzoneHeight","errorBannerMarginTop","lg","errorBannerMarginBottom","listMarginTop","sm","listBorderWidth","contentHeight","xl","dropzoneHeightWithIcon","sourceWidth","StyledLocalSource","div","withConfig","displayName","componentId","StyledDropzoneErrorBanner","StyledDropzoneWrapper","_ref","isIconVisible","StyledThumbnailList","gray85"],"sources":["../../../src/FileSelect/LocalSource/LocalSource.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Dropzone, DropzoneErrorBanner } from '../../Dropzone/Dropzone'\nimport { colors } from '../../_styles/colors'\nimport { mediaIE11Hack } from '../../_styles/media'\nimport { spacing } from '../../_styles/spacing'\nimport { ThumbnailList } from '../ThumbnailList/ThumbnailList'\n\nexport const uploaderHeight = 411\nexport const dropzoneHeight = 96\nexport const errorBannerMarginTop = spacing.lg\nexport const errorBannerMarginBottom = 3\nexport const listMarginTop = spacing.sm\nexport const listBorderWidth = 1\n\nconst contentHeight = uploaderHeight + 2 * spacing.xl\nconst dropzoneHeightWithIcon = 176\nconst sourceWidth = 568\n\nexport const StyledLocalSource = styled.div`\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n align-items: stretch;\n height: ${contentHeight}px;\n max-height: ${contentHeight}px;\n padding: ${spacing.xl}px ${spacing.xl + spacing.lg}px ${spacing.xl}px\n ${spacing.xl}px;\n overflow-y: hidden;\n`\n\nexport const StyledDropzoneErrorBanner = styled(DropzoneErrorBanner)`\n // Preserve element's shadows\n margin-top: ${errorBannerMarginTop}px;\n margin-bottom: ${errorBannerMarginBottom}px;\n margin-right: 2px;\n`\n\nexport const StyledDropzoneWrapper = styled(Dropzone)`\n display: flex;\n height: auto;\n min-height: ${({ isIconVisible }) =>\n isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight}px;\n\n > div:first-child {\n display: flex;\n height: auto;\n }\n\n // hide the default error banner\n > ${DropzoneErrorBanner} {\n display: none;\n }\n\n @media ${mediaIE11Hack} {\n width: ${sourceWidth}px;\n\n > div:first-child {\n height: 100%;\n }\n }\n`\n\nexport const StyledThumbnailList = styled(ThumbnailList)`\n margin-top: ${listMarginTop}px;\n border: ${listBorderWidth}px solid ${colors.gray85};\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,QAAQ,EAAEC,mBAAmB,QAAQ,yBAAyB;AACvE,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,aAAa,QAAQ,gCAAgC;AAE9D,OAAO,IAAMC,cAAc,GAAG,GAAG;AACjC,OAAO,IAAMC,cAAc,GAAG,EAAE;AAChC,OAAO,IAAMC,oBAAoB,GAAGJ,OAAO,CAACK,EAAE;AAC9C,OAAO,IAAMC,uBAAuB,GAAG,CAAC;AACxC,OAAO,IAAMC,aAAa,GAAGP,OAAO,CAACQ,EAAE;AACvC,OAAO,IAAMC,eAAe,GAAG,CAAC;AAEhC,IAAMC,aAAa,GAAGR,cAAc,GAAG,CAAC,GAAGF,OAAO,CAACW,EAAE;AACrD,IAAMC,sBAAsB,GAAG,GAAG;AAClC,IAAMC,WAAW,GAAG,GAAG;AAEvB,OAAO,IAAMC,iBAAiB,gBAAGnB,MAAM,CAACoB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kKAK/BR,aAAa,EACTA,aAAa,EAChBV,OAAO,CAACW,EAAE,EAAMX,OAAO,CAACW,EAAE,GAAGX,OAAO,CAACK,EAAE,EAAML,OAAO,CAACW,EAAE,EAC9DX,OAAO,CAACW,EAAE,CAEf;AAED,OAAO,IAAMQ,yBAAyB,gBAAGxB,MAAM,CAACE,mBAAmB,CAAC,CAAAmB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iEAEpDd,oBAAoB,EACjBE,uBAAuB,CAEzC;AAED,OAAO,IAAMc,qBAAqB,gBAAGzB,MAAM,CAACC,QAAQ,CAAC,CAAAoB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8KAGrC,UAAAG,IAAA;EAAA,IAAGC,aAAa,GAAAD,IAAA,CAAbC,aAAa;EAAA,OAC5BA,aAAa,GAAGV,sBAAsB,GAAGT,cAAc;AAAA,GAQrDN,mBAAmB,EAIdE,aAAa,EACXc,WAAW,CAMvB;AAED,OAAO,IAAMU,mBAAmB,gBAAG5B,MAAM,CAACM,aAAa,CAAC,CAAAe,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oDACxCX,aAAa,EACjBE,eAAe,EAAYX,MAAM,CAAC0B,MAAM,CACnD","ignoreList":[]}
1
+ {"version":3,"file":"LocalSource.styles.js","names":["styled","Dropzone","DropzoneErrorBanner","mediaBreakpointsDown","colors","mediaIE11Hack","spacing","ThumbnailList","uploaderHeight","dropzoneHeight","errorBannerMarginTop","lg","errorBannerMarginBottom","listMarginTop","sm","listBorderWidth","contentHeight","xl","dropzoneHeightWithIcon","sourceWidth","StyledLocalSource","div","withConfig","displayName","componentId","tabletMd","StyledDropzoneErrorBanner","StyledDropzoneWrapper","_ref","isIconVisible","StyledThumbnailList","gray85"],"sources":["../../../src/FileSelect/LocalSource/LocalSource.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Dropzone, DropzoneErrorBanner } from '../../Dropzone/Dropzone'\nimport { mediaBreakpointsDown } from '../../PageLayout/PageLayout.utils'\nimport { colors } from '../../_styles/colors'\nimport { mediaIE11Hack } from '../../_styles/media'\nimport { spacing } from '../../_styles/spacing'\nimport { ThumbnailList } from '../ThumbnailList/ThumbnailList'\n\nexport const uploaderHeight = 411\nexport const dropzoneHeight = 96\nexport const errorBannerMarginTop = spacing.lg\nexport const errorBannerMarginBottom = 3\nexport const listMarginTop = spacing.sm\nexport const listBorderWidth = 1\n\nconst contentHeight = uploaderHeight + 2 * spacing.xl\nconst dropzoneHeightWithIcon = 176\nconst sourceWidth = 568\n\nexport const StyledLocalSource = styled.div`\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n align-items: stretch;\n height: ${contentHeight}px;\n max-height: ${contentHeight}px;\n padding: ${spacing.xl}px ${spacing.xl + spacing.lg}px ${spacing.xl}px\n ${spacing.xl}px;\n overflow-y: hidden;\n\n /* High zoom: even side padding */\n @media ${mediaBreakpointsDown.tabletMd} {\n padding-right: ${spacing.xl}px;\n }\n`\n\nexport const StyledDropzoneErrorBanner = styled(DropzoneErrorBanner)`\n // Preserve element's shadows\n margin-top: ${errorBannerMarginTop}px;\n margin-bottom: ${errorBannerMarginBottom}px;\n margin-right: 2px;\n`\n\nexport const StyledDropzoneWrapper = styled(Dropzone)`\n display: flex;\n height: auto;\n min-height: ${({ isIconVisible }) =>\n isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight}px;\n\n > div:first-child {\n display: flex;\n height: auto;\n }\n\n // hide the default error banner\n > ${DropzoneErrorBanner} {\n display: none;\n }\n\n @media ${mediaIE11Hack} {\n width: ${sourceWidth}px;\n\n > div:first-child {\n height: 100%;\n }\n }\n`\n\nexport const StyledThumbnailList = styled(ThumbnailList)`\n margin-top: ${listMarginTop}px;\n border: ${listBorderWidth}px solid ${colors.gray85};\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,QAAQ,EAAEC,mBAAmB,QAAQ,yBAAyB;AACvE,SAASC,oBAAoB,QAAQ,mCAAmC;AACxE,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,qBAAqB;AACnD,SAASC,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,aAAa,QAAQ,gCAAgC;AAE9D,OAAO,IAAMC,cAAc,GAAG,GAAG;AACjC,OAAO,IAAMC,cAAc,GAAG,EAAE;AAChC,OAAO,IAAMC,oBAAoB,GAAGJ,OAAO,CAACK,EAAE;AAC9C,OAAO,IAAMC,uBAAuB,GAAG,CAAC;AACxC,OAAO,IAAMC,aAAa,GAAGP,OAAO,CAACQ,EAAE;AACvC,OAAO,IAAMC,eAAe,GAAG,CAAC;AAEhC,IAAMC,aAAa,GAAGR,cAAc,GAAG,CAAC,GAAGF,OAAO,CAACW,EAAE;AACrD,IAAMC,sBAAsB,GAAG,GAAG;AAClC,IAAMC,WAAW,GAAG,GAAG;AAEvB,OAAO,IAAMC,iBAAiB,gBAAGpB,MAAM,CAACqB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oMAK/BR,aAAa,EACTA,aAAa,EAChBV,OAAO,CAACW,EAAE,EAAMX,OAAO,CAACW,EAAE,GAAGX,OAAO,CAACK,EAAE,EAAML,OAAO,CAACW,EAAE,EAC9DX,OAAO,CAACW,EAAE,EAILd,oBAAoB,CAACsB,QAAQ,EACnBnB,OAAO,CAACW,EAAE,CAE9B;AAED,OAAO,IAAMS,yBAAyB,gBAAG1B,MAAM,CAACE,mBAAmB,CAAC,CAAAoB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iEAEpDd,oBAAoB,EACjBE,uBAAuB,CAEzC;AAED,OAAO,IAAMe,qBAAqB,gBAAG3B,MAAM,CAACC,QAAQ,CAAC,CAAAqB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8KAGrC,UAAAI,IAAA;EAAA,IAAGC,aAAa,GAAAD,IAAA,CAAbC,aAAa;EAAA,OAC5BA,aAAa,GAAGX,sBAAsB,GAAGT,cAAc;AAAA,GAQrDP,mBAAmB,EAIdG,aAAa,EACXc,WAAW,CAMvB;AAED,OAAO,IAAMW,mBAAmB,gBAAG9B,MAAM,CAACO,aAAa,CAAC,CAAAe,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oDACxCX,aAAa,EACjBE,eAAe,EAAYX,MAAM,CAAC2B,MAAM,CACnD","ignoreList":[]}
@@ -8,7 +8,7 @@ var sourceItemPadding = spacing.xl;
8
8
  var focused = /*#__PURE__*/css(["", " padding:0 ", "px 0 ", "px;"], getFocus(), sourceItemPadding - 1, sourceItemPadding - 1);
9
9
  export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledSourceItem",
11
- componentId: "core-12_53_4__sc-plcozv-0"
11
+ componentId: "core-12_54_0__sc-plcozv-0"
12
12
  })(["position:relative;display:flex;align-items:center;padding:0 ", "px 0 ", "px;color:", ";", " cursor:pointer;height:", "px;&:before{content:'';position:absolute;top:0;left:0;display:block;width:4px;height:100%;background-color:", ";transform:scaleX(0);transform-origin:center left;transition:transform 200ms ease-out;z-index:1;}", " ", " ", " ", " ", " &:focus{", "}"], sourceItemPadding, sourceItemPadding, colors.gray45, getTypographyIntent('body'), sourceItemHeight, colors.blue45, function (_ref) {
13
13
  var selected = _ref.selected;
14
14
  return selected && "\n font-weight: 700;\n background-color: ".concat(colors.blue96, ";\n color: ").concat(colors.blue45, ";\n\n ").concat(StyledIcon, " {\n color: ").concat(colors.blue50, ";\n }\n\n &:before {\n transform: scaleX(1);\n }\n ");
@@ -28,10 +28,10 @@ export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
28
28
  }, focused);
29
29
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledIcon",
31
- componentId: "core-12_53_4__sc-plcozv-1"
31
+ componentId: "core-12_54_0__sc-plcozv-1"
32
32
  })(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;"]);
33
33
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledLabel",
35
- componentId: "core-12_53_4__sc-plcozv-2"
35
+ componentId: "core-12_54_0__sc-plcozv-2"
36
36
  })(["", ""], getEllipsis());
37
37
  //# sourceMappingURL=SourceItem.styles.js.map
@@ -1,30 +1,32 @@
1
1
  import { FixedSizeList as List } from 'react-window';
2
2
  import styled from 'styled-components';
3
3
  import { Button } from '../../Button/Button';
4
+ import { mediaWidthDown } from '../../PageLayout/PageLayout.utils';
4
5
  import { Thumbnail } from '../../Thumbnail/Thumbnail';
6
+ import { StyledImageThumbnail, StyledMultilineCaption, StyledPlaceholderCaption, StyledPlaceholderThumbnail, StyledSingleLineCaption, StyledThumbnailCaptionStack, thumbnailSizeSm } from '../../Thumbnail/Thumbnail.styles';
5
7
  import { getTypographyIntent } from '../../Typography/Typography.styles';
6
8
  import { colors } from '../../_styles/colors';
7
9
  import { spacing } from '../../_styles/spacing';
8
10
  export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
9
11
  displayName: "StyledThumbnailListContainer",
10
- componentId: "core-12_53_4__sc-1fz4ynb-0"
12
+ componentId: "core-12_54_0__sc-1fz4ynb-0"
11
13
  })(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
12
14
  export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
13
15
  displayName: "StyledThumbnailList",
14
- componentId: "core-12_53_4__sc-1fz4ynb-1"
16
+ componentId: "core-12_54_0__sc-1fz4ynb-1"
15
17
  })(["outline:none;"]);
16
18
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
19
  displayName: "StyledThumbnail",
18
- componentId: "core-12_53_4__sc-1fz4ynb-2"
19
- })(["flex-grow:1;justify-content:flex-start;"]);
20
+ componentId: "core-12_54_0__sc-1fz4ynb-2"
21
+ })(["flex-grow:1;justify-content:flex-start;@media ", "{align-items:flex-start;grid-column:1 / -1;grid-row:1;min-width:0;", ",", "{flex-shrink:0;}", ",", ",", ",", "{flex:1 1 auto;min-width:0;width:auto;}}"], mediaWidthDown.mobileSm, StyledImageThumbnail, StyledPlaceholderThumbnail, StyledSingleLineCaption, StyledMultilineCaption, StyledPlaceholderCaption, StyledThumbnailCaptionStack);
20
22
  export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
21
23
  displayName: "StyledProgress",
22
- componentId: "core-12_53_4__sc-1fz4ynb-3"
23
- })(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
24
+ componentId: "core-12_54_0__sc-1fz4ynb-3"
25
+ })(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;@media ", "{align-content:center;align-self:end;display:grid;grid-column:2;grid-row:1;height:24px;margin:0;padding:0;width:auto;}"], spacing.lg, spacing.xl, mediaWidthDown.mobileSm);
24
26
  export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
25
27
  displayName: "StyledThumbnailListItem",
26
- componentId: "core-12_53_4__sc-1fz4ynb-4"
27
- })(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), function (_ref) {
28
+ componentId: "core-12_54_0__sc-1fz4ynb-4"
29
+ })(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " @media ", "{column-gap:", "px;display:grid;grid-template-columns:", "px minmax(0,1fr) auto;}", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), mediaWidthDown.mobileSm, spacing.sm, thumbnailSizeSm, function (_ref) {
28
30
  var error = _ref.error;
29
31
  return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
30
32
  }, function (_ref2) {
@@ -33,10 +35,10 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
33
35
  return focused && !error && "\n background-color: ".concat(colors.gray96, ";\n ");
34
36
  }, function (_ref3) {
35
37
  var error = _ref3.error;
36
- return error && "\n background-color: ".concat(colors.red98, ";\n\n ").concat(StyledProgress, " {\n color: ").concat(colors.red50, ";\n }\n ");
38
+ return error && "\n background-color: ".concat(colors.red98, ";\n\n ").concat(StyledProgress, " {\n color: ").concat(colors.red50, ";\n }\n\n // 400% zoom: the error is already under the name\n @media ").concat(mediaWidthDown.mobileSm, " {\n ").concat(StyledProgress, " {\n display: none;\n }\n }\n ");
37
39
  });
38
40
  export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
39
41
  displayName: "StyledDeleteIcon",
40
- componentId: "core-12_53_4__sc-1fz4ynb-5"
41
- })([""]);
42
+ componentId: "core-12_54_0__sc-1fz4ynb-5"
43
+ })(["@media ", "{align-self:end;grid-column:3;grid-row:1;}"], mediaWidthDown.mobileSm);
42
44
  //# sourceMappingURL=ThumbnailList.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThumbnailList.styles.js","names":["FixedSizeList","List","styled","Button","Thumbnail","getTypographyIntent","colors","spacing","StyledThumbnailListContainer","div","withConfig","displayName","componentId","StyledThumbnailList","StyledThumbnail","StyledProgress","lg","xl","StyledThumbnailListItem","sm","_ref","error","concat","gray96","_ref2","focused","_ref3","red98","red50","StyledDeleteIcon"],"sources":["../../../src/FileSelect/ThumbnailList/ThumbnailList.styles.ts"],"sourcesContent":["import { FixedSizeList as List } from 'react-window'\nimport styled from 'styled-components'\nimport { Button } from '../../Button/Button'\nimport { Thumbnail } from '../../Thumbnail/Thumbnail'\nimport { getTypographyIntent } from '../../Typography/Typography.styles'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const StyledThumbnailListContainer = styled.div`\n display: flex;\n flex-direction: column;\n align-items: stretch;\n outline: none;\n`\n\nexport const StyledThumbnailList = styled(List)`\n outline: none;\n`\n\nexport const StyledThumbnail = styled(Thumbnail)`\n flex-grow: 1;\n justify-content: flex-start;\n`\n\nexport const StyledProgress = styled.div`\n width: 146px;\n padding: 0 ${spacing.lg}px 0 ${spacing.xl}px;\n margin-left: auto;\n`\n\nexport const StyledThumbnailListItem = styled.div<{\n focused: boolean\n error: boolean\n}>`\n display: flex;\n flex-grow: 1;\n align-items: center;\n padding: ${spacing.sm}px ${spacing.lg}px ${spacing.sm}px ${spacing.sm}px;\n ${getTypographyIntent('body')}\n\n ${({ error }) =>\n !error &&\n `\n &:hover {\n background-color: ${colors.gray96};\n }\n `}\n\n ${({ focused, error }) =>\n focused &&\n !error &&\n `\n background-color: ${colors.gray96};\n `}\n\n ${({ error }) =>\n error &&\n `\n background-color: ${colors.red98};\n\n ${StyledProgress} {\n color: ${colors.red50};\n }\n `}\n`\n\nexport const StyledDeleteIcon = styled(Button)``\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,IAAI,QAAQ,cAAc;AACpD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,4BAA4B,gBAAGN,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAKrD;AAED,OAAO,IAAMC,mBAAmB,gBAAGX,MAAM,CAACD,IAAI,CAAC,CAAAS,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qBAE9C;AAED,OAAO,IAAME,eAAe,gBAAGZ,MAAM,CAACE,SAAS,CAAC,CAAAM,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+CAG/C;AAED,OAAO,IAAMG,cAAc,gBAAGb,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gEAEzBL,OAAO,CAACS,EAAE,EAAQT,OAAO,CAACU,EAAE,CAE1C;AAED,OAAO,IAAMC,uBAAuB,gBAAGhB,MAAM,CAACO,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4GAOpCL,OAAO,CAACY,EAAE,EAAMZ,OAAO,CAACS,EAAE,EAAMT,OAAO,CAACY,EAAE,EAAMZ,OAAO,CAACY,EAAE,EACnEd,mBAAmB,CAAC,MAAM,CAAC,EAE3B,UAAAe,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OACR,CAACA,KAAK,oDAAAC,MAAA,CAGkBhB,MAAM,CAACiB,MAAM,qBAEpC;AAAA,GAED,UAAAC,KAAA;EAAA,IAAGC,OAAO,GAAAD,KAAA,CAAPC,OAAO;IAAEJ,KAAK,GAAAG,KAAA,CAALH,KAAK;EAAA,OACjBI,OAAO,IACP,CAACJ,KAAK,iCAAAC,MAAA,CAEgBhB,MAAM,CAACiB,MAAM,YAClC;AAAA,GAED,UAAAG,KAAA;EAAA,IAAGL,KAAK,GAAAK,KAAA,CAALL,KAAK;EAAA,OACRA,KAAK,iCAAAC,MAAA,CAEiBhB,MAAM,CAACqB,KAAK,iBAAAL,MAAA,CAE9BP,cAAc,yBAAAO,MAAA,CACLhB,MAAM,CAACsB,KAAK,qBAExB;AAAA,EACJ;AAED,OAAO,IAAMC,gBAAgB,gBAAG3B,MAAM,CAACC,MAAM,CAAC,CAAAO,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE","ignoreList":[]}
1
+ {"version":3,"file":"ThumbnailList.styles.js","names":["FixedSizeList","List","styled","Button","mediaWidthDown","Thumbnail","StyledImageThumbnail","StyledMultilineCaption","StyledPlaceholderCaption","StyledPlaceholderThumbnail","StyledSingleLineCaption","StyledThumbnailCaptionStack","thumbnailSizeSm","getTypographyIntent","colors","spacing","StyledThumbnailListContainer","div","withConfig","displayName","componentId","StyledThumbnailList","StyledThumbnail","mobileSm","StyledProgress","lg","xl","StyledThumbnailListItem","sm","_ref","error","concat","gray96","_ref2","focused","_ref3","red98","red50","StyledDeleteIcon"],"sources":["../../../src/FileSelect/ThumbnailList/ThumbnailList.styles.ts"],"sourcesContent":["import { FixedSizeList as List } from 'react-window'\nimport styled from 'styled-components'\nimport { Button } from '../../Button/Button'\nimport { mediaWidthDown } from '../../PageLayout/PageLayout.utils'\nimport { Thumbnail } from '../../Thumbnail/Thumbnail'\nimport {\n StyledImageThumbnail,\n StyledMultilineCaption,\n StyledPlaceholderCaption,\n StyledPlaceholderThumbnail,\n StyledSingleLineCaption,\n StyledThumbnailCaptionStack,\n thumbnailSizeSm,\n} from '../../Thumbnail/Thumbnail.styles'\nimport { getTypographyIntent } from '../../Typography/Typography.styles'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const StyledThumbnailListContainer = styled.div`\n display: flex;\n flex-direction: column;\n align-items: stretch;\n outline: none;\n`\n\nexport const StyledThumbnailList = styled(List)`\n outline: none;\n`\n\nexport const StyledThumbnail = styled(Thumbnail)`\n flex-grow: 1;\n justify-content: flex-start;\n\n // 400% zoom: the whole row, name on its first line\n @media ${mediaWidthDown.mobileSm} {\n align-items: flex-start;\n grid-column: 1 / -1;\n grid-row: 1;\n min-width: 0;\n\n ${StyledImageThumbnail}, ${StyledPlaceholderThumbnail} {\n flex-shrink: 0;\n }\n\n ${StyledSingleLineCaption},\n ${StyledMultilineCaption},\n ${StyledPlaceholderCaption},\n ${StyledThumbnailCaptionStack} {\n flex: 1 1 auto;\n min-width: 0;\n width: auto;\n }\n }\n`\n\nexport const StyledProgress = styled.div`\n width: 146px;\n padding: 0 ${spacing.lg}px 0 ${spacing.xl}px;\n margin-left: auto;\n\n // 400% zoom: second line, under the name\n @media ${mediaWidthDown.mobileSm} {\n align-content: center;\n align-self: end;\n display: grid;\n grid-column: 2;\n grid-row: 1;\n height: 24px;\n margin: 0;\n padding: 0;\n width: auto;\n }\n`\n\nexport const StyledThumbnailListItem = styled.div<{\n focused: boolean\n error: boolean\n}>`\n display: flex;\n flex-grow: 1;\n align-items: center;\n padding: ${spacing.sm}px ${spacing.lg}px ${spacing.sm}px ${spacing.sm}px;\n ${getTypographyIntent('body')}\n\n // 400% zoom: name on the first line, progress and remove below it\n @media ${mediaWidthDown.mobileSm} {\n column-gap: ${spacing.sm}px;\n display: grid;\n grid-template-columns: ${thumbnailSizeSm}px minmax(0, 1fr) auto;\n }\n\n ${({ error }) =>\n !error &&\n `\n &:hover {\n background-color: ${colors.gray96};\n }\n `}\n\n ${({ focused, error }) =>\n focused &&\n !error &&\n `\n background-color: ${colors.gray96};\n `}\n\n ${({ error }) =>\n error &&\n `\n background-color: ${colors.red98};\n\n ${StyledProgress} {\n color: ${colors.red50};\n }\n\n // 400% zoom: the error is already under the name\n @media ${mediaWidthDown.mobileSm} {\n ${StyledProgress} {\n display: none;\n }\n }\n `}\n`\n\nexport const StyledDeleteIcon = styled(Button)`\n @media ${mediaWidthDown.mobileSm} {\n align-self: end;\n grid-column: 3;\n grid-row: 1;\n }\n`\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,IAAI,QAAQ,cAAc;AACpD,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,cAAc,QAAQ,mCAAmC;AAClE,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,oBAAoB,EACpBC,sBAAsB,EACtBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,uBAAuB,EACvBC,2BAA2B,EAC3BC,eAAe,QACV,kCAAkC;AACzC,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,4BAA4B,gBAAGd,MAAM,CAACe,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4EAKrD;AAED,OAAO,IAAMC,mBAAmB,gBAAGnB,MAAM,CAACD,IAAI,CAAC,CAAAiB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qBAE9C;AAED,OAAO,IAAME,eAAe,gBAAGpB,MAAM,CAACG,SAAS,CAAC,CAAAa,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iNAKrChB,cAAc,CAACmB,QAAQ,EAM5BjB,oBAAoB,EAAKG,0BAA0B,EAInDC,uBAAuB,EACvBH,sBAAsB,EACtBC,wBAAwB,EACxBG,2BAA2B,CAMhC;AAED,OAAO,IAAMa,cAAc,gBAAGtB,MAAM,CAACe,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iMAEzBL,OAAO,CAACU,EAAE,EAAQV,OAAO,CAACW,EAAE,EAIhCtB,cAAc,CAACmB,QAAQ,CAWjC;AAED,OAAO,IAAMI,uBAAuB,gBAAGzB,MAAM,CAACe,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wMAOpCL,OAAO,CAACa,EAAE,EAAMb,OAAO,CAACU,EAAE,EAAMV,OAAO,CAACa,EAAE,EAAMb,OAAO,CAACa,EAAE,EACnEf,mBAAmB,CAAC,MAAM,CAAC,EAGpBT,cAAc,CAACmB,QAAQ,EAChBR,OAAO,CAACa,EAAE,EAEChB,eAAe,EAGxC,UAAAiB,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OACR,CAACA,KAAK,oDAAAC,MAAA,CAGkBjB,MAAM,CAACkB,MAAM,qBAEpC;AAAA,GAED,UAAAC,KAAA;EAAA,IAAGC,OAAO,GAAAD,KAAA,CAAPC,OAAO;IAAEJ,KAAK,GAAAG,KAAA,CAALH,KAAK;EAAA,OACjBI,OAAO,IACP,CAACJ,KAAK,iCAAAC,MAAA,CAEgBjB,MAAM,CAACkB,MAAM,YAClC;AAAA,GAED,UAAAG,KAAA;EAAA,IAAGL,KAAK,GAAAK,KAAA,CAALL,KAAK;EAAA,OACRA,KAAK,iCAAAC,MAAA,CAEiBjB,MAAM,CAACsB,KAAK,iBAAAL,MAAA,CAE9BP,cAAc,yBAAAO,MAAA,CACLjB,MAAM,CAACuB,KAAK,0FAAAN,MAAA,CAId3B,cAAc,CAACmB,QAAQ,kBAAAQ,MAAA,CAC5BP,cAAc,2DAInB;AAAA,EACJ;AAED,OAAO,IAAMc,gBAAgB,gBAAGpC,MAAM,CAACC,MAAM,CAAC,CAAAe,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8DACnChB,cAAc,CAACmB,QAAQ,CAKjC","ignoreList":[]}
@@ -2,6 +2,6 @@ import styled from 'styled-components';
2
2
  import { modalBodyHeight } from '../FileExplorer/FileExplorer.styles';
3
3
  export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
4
4
  displayName: "StyledFileTreeSpinner",
5
- componentId: "core-12_53_4__sc-wwu3n8-0"
5
+ componentId: "core-12_54_0__sc-wwu3n8-0"
6
6
  })(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
7
7
  //# sourceMappingURL=TreeSource.styles.js.map
@@ -8,19 +8,19 @@ export var pulseAnimationDuration = 600;
8
8
  var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
9
9
  export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledFilenameShortcut",
11
- componentId: "core-12_53_4__sc-13jx4bx-0"
11
+ componentId: "core-12_54_0__sc-13jx4bx-0"
12
12
  })(["display:flex;"]);
13
13
  export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
14
14
  displayName: "StyledFilename",
15
- componentId: "core-12_53_4__sc-13jx4bx-1"
15
+ componentId: "core-12_54_0__sc-13jx4bx-1"
16
16
  })(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
17
17
  export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
18
18
  displayName: "StyledExtension",
19
- componentId: "core-12_53_4__sc-13jx4bx-2"
19
+ componentId: "core-12_54_0__sc-13jx4bx-2"
20
20
  })(["flex-shrink:0;"]);
21
21
  export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledFileToken",
23
- componentId: "core-12_53_4__sc-13jx4bx-3"
23
+ componentId: "core-12_54_0__sc-13jx4bx-3"
24
24
  })(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;", "{color:", ";}}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
25
25
  var $progressComplete = _ref.$progressComplete;
26
26
  return $progressComplete && css(["background-color:", ";"], colors.blue45);
@@ -37,10 +37,10 @@ export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
37
37
  });
38
38
  export var StyledErrorMessage = /*#__PURE__*/styled.span.withConfig({
39
39
  displayName: "StyledErrorMessage",
40
- componentId: "core-12_53_4__sc-13jx4bx-4"
40
+ componentId: "core-12_54_0__sc-13jx4bx-4"
41
41
  })(["display:block;color:", ";margin-top:", "px;word-break:break-word;", ""], colors.red50, spacing.xs, getTypographyIntent('small'));
42
42
  export var StyledFileTokenErrorContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledFileTokenErrorContainer",
44
- componentId: "core-12_53_4__sc-13jx4bx-5"
44
+ componentId: "core-12_54_0__sc-13jx4bx-5"
45
45
  })(["max-width:100%;outline:none;&:focus,&.focus{> ", "{box-shadow:0 0 0 2px ", ";outline:none;}}"], StyledFileToken, colors.blue40);
46
46
  //# sourceMappingURL=FileToken.styles.js.map
@@ -6,11 +6,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
6
6
  import { spacing } from '../_styles/spacing';
7
7
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
8
8
  displayName: "StyledLabel",
9
- componentId: "core-12_53_4__sc-1l1h29r-0"
9
+ componentId: "core-12_54_0__sc-1l1h29r-0"
10
10
  })(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
11
11
  export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledFilterToken",
13
- componentId: "core-12_53_4__sc-1l1h29r-1"
13
+ componentId: "core-12_54_0__sc-1l1h29r-1"
14
14
  })(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
15
15
  var _ref$$focused = _ref.$focused,
16
16
  $focused = _ref$$focused === void 0 ? false : _ref$$focused;
@@ -18,17 +18,17 @@ export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
18
18
  });
19
19
  export var StyledFilterRemoveButton = /*#__PURE__*/styled.button.withConfig({
20
20
  displayName: "StyledFilterRemoveButton",
21
- componentId: "core-12_53_4__sc-1l1h29r-2"
21
+ componentId: "core-12_54_0__sc-1l1h29r-2"
22
22
  })(["", " ", ";background:transparent;color:", ";&:active,&:focus,&:hover{background:", ";color:", ";}&:disabled{pointer-events:none;user-select:none;}&:disabled,&[aria-disabled='true']{background:transparent;color:", ";}height:24px;margin:0 0 0 6px;padding:0 ", "px;[data-icon-prop='true']{pointer-events:none;height:16px;width:16px;}"], function (_ref2) {
23
23
  var $disabled = _ref2.$disabled;
24
24
  return getButtonStyles(false, $disabled, false, 'sm', 'tertiary');
25
25
  }, getTypographyIntent('small'), colors.blue45, colors.white, colors.blue45, colors.blue45, spacing.xs);
26
26
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
27
27
  displayName: "StyledContent",
28
- componentId: "core-12_53_4__sc-1l1h29r-3"
28
+ componentId: "core-12_54_0__sc-1l1h29r-3"
29
29
  })(["align-items:center;display:flex;overflow:hidden;"]);
30
30
  export var StyledContentLabel = /*#__PURE__*/styled.span.withConfig({
31
31
  displayName: "StyledContentLabel",
32
- componentId: "core-12_53_4__sc-1l1h29r-4"
32
+ componentId: "core-12_54_0__sc-1l1h29r-4"
33
33
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
34
34
  //# sourceMappingURL=FilterToken.styles.js.map
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
3
3
  import { Flex } from '../Flex/Flex';
4
4
  export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
5
5
  displayName: "StyledFlex",
6
- componentId: "core-12_53_4__sc-1quvv61-0"
6
+ componentId: "core-12_54_0__sc-1quvv61-0"
7
7
  })(["> ", "{", "}"], StyledBox, function (_ref) {
8
8
  var $direction = _ref.$direction;
9
9
  if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {