@procore/core-react 12.17.1 → 12.17.3

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 (238) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/Avatar/Avatar.types.d.ts +1 -1
  4. package/dist/Avatar/Avatar.types.js.map +1 -1
  5. package/dist/AvatarStack/AvatarStack.js +7 -7
  6. package/dist/AvatarStack/AvatarStack.js.map +1 -1
  7. package/dist/AvatarStack/AvatarStack.styles.d.ts +4 -4
  8. package/dist/AvatarStack/AvatarStack.styles.js +10 -10
  9. package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
  10. package/dist/AvatarStack/AvatarStack.types.d.ts +2 -0
  11. package/dist/AvatarStack/AvatarStack.types.js.map +1 -1
  12. package/dist/Badge/Badge.styles.js +2 -2
  13. package/dist/Banner/Banner.styles.js +10 -10
  14. package/dist/Box/Box.styles.js +1 -1
  15. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  16. package/dist/Button/Button.styles.js +5 -5
  17. package/dist/Calendar/Calendar.styles.js +8 -8
  18. package/dist/Card/Card.js +8 -2
  19. package/dist/Card/Card.js.map +1 -1
  20. package/dist/Card/Card.styles.js +1 -1
  21. package/dist/Checkbox/Checkbox.js +0 -1
  22. package/dist/Checkbox/Checkbox.js.map +1 -1
  23. package/dist/Checkbox/Checkbox.styles.js +6 -6
  24. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  25. package/dist/ContactItem/ContactItem.styles.js +5 -5
  26. package/dist/Content/Content.styles.js +2 -2
  27. package/dist/DateInput/DateInput.styles.js +6 -6
  28. package/dist/DetailPage/DetailPage.styles.js +7 -7
  29. package/dist/Dropdown/Dropdown.styles.js +3 -3
  30. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  31. package/dist/Dropzone/Dropzone.hooks.js +4 -4
  32. package/dist/Dropzone/Dropzone.hooks.js.map +1 -1
  33. package/dist/Dropzone/Dropzone.js +44 -45
  34. package/dist/Dropzone/Dropzone.js.map +1 -1
  35. package/dist/Dropzone/Dropzone.styles.js +9 -9
  36. package/dist/Dropzone/Dropzone.utils.d.ts +2 -0
  37. package/dist/Dropzone/Dropzone.utils.js +3 -0
  38. package/dist/Dropzone/Dropzone.utils.js.map +1 -1
  39. package/dist/EmptyState/EmptyState.styles.js +6 -6
  40. package/dist/Field/Field.styles.js +3 -3
  41. package/dist/FileList/FileList.styles.js +4 -4
  42. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  43. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  44. package/dist/FileSelect/FileSelect.styles.js +2 -2
  45. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  46. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  47. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  48. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  49. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  50. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  51. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  52. package/dist/FileToken/FileToken.styles.js +4 -4
  53. package/dist/FilterToken/FilterToken.styles.js +2 -2
  54. package/dist/FlexList/FlexList.styles.js +1 -1
  55. package/dist/Form/Form.styles.js +14 -14
  56. package/dist/Form/StyledFormikForm.styles.js +2 -2
  57. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  58. package/dist/Grid/Grid.styles.js +2 -2
  59. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  60. package/dist/Input/Input.styles.js +1 -1
  61. package/dist/Link/Link.styles.js +1 -1
  62. package/dist/ListPage/ListPage.styles.js +8 -8
  63. package/dist/Loader/Loader.styles.js +2 -2
  64. package/dist/MenuImperative/MenuImperative.js +4 -1
  65. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  66. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  67. package/dist/Modal/Modal.styles.js +13 -13
  68. package/dist/MultiSelect/MultiSelect.js +7 -1
  69. package/dist/MultiSelect/MultiSelect.js.map +1 -1
  70. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  71. package/dist/NextMenu/NextMenu.styles.js +3 -3
  72. package/dist/Notation/Notation.js +1 -1
  73. package/dist/NumberInput/NumberInput.styles.js +7 -7
  74. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  75. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  76. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  77. package/dist/PageLayout/PageLayout.styles.js +16 -16
  78. package/dist/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  79. package/dist/PageTemplate/PageTemplate.styles.js +3 -3
  80. package/dist/Pagination/Pagination.styles.js +5 -5
  81. package/dist/Panel/Panel.styles.js +11 -11
  82. package/dist/Pill/Pill.styles.js +2 -2
  83. package/dist/PillSelect/PillSelect.styles.js +4 -4
  84. package/dist/Popover/Popover.js +4 -1
  85. package/dist/Popover/Popover.js.map +1 -1
  86. package/dist/Popover/Popover.styles.d.ts +2 -1
  87. package/dist/Popover/Popover.styles.js +5 -4
  88. package/dist/Popover/Popover.styles.js.map +1 -1
  89. package/dist/Popover/Popover.types.d.ts +6 -0
  90. package/dist/Popover/Popover.types.js.map +1 -1
  91. package/dist/Portal/Portal.styles.js +1 -1
  92. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  93. package/dist/RadioButton/RadioButton.styles.js +3 -3
  94. package/dist/Required/Required.styles.js +3 -3
  95. package/dist/Search/Search.styles.js +5 -5
  96. package/dist/Search/Search.types.d.ts +12 -2
  97. package/dist/Search/Search.types.js.map +1 -1
  98. package/dist/Section/Section.styles.js +7 -7
  99. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  100. package/dist/Select/Select.js +1 -1
  101. package/dist/Select/Select.js.map +1 -1
  102. package/dist/Select/Select.styles.js +7 -7
  103. package/dist/Semantic/Semantic.styles.js +9 -9
  104. package/dist/Slider/Slider.styles.js +5 -5
  105. package/dist/Spinner/Spinner.styles.js +7 -7
  106. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  107. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  108. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  109. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -0
  110. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  111. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  112. package/dist/SuperSelect/useSuperSelect.js +9 -5
  113. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  114. package/dist/Switch/Switch.styles.js +4 -4
  115. package/dist/Table/Table.styles.js +28 -28
  116. package/dist/TableShelf/TableShelf.styles.js +5 -5
  117. package/dist/Tabs/Tabs.styles.js +15 -15
  118. package/dist/Tearsheet/Tearsheet.js +4 -1
  119. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  120. package/dist/Tearsheet/Tearsheet.styles.d.ts +1 -0
  121. package/dist/Tearsheet/Tearsheet.styles.js +8 -7
  122. package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
  123. package/dist/Tearsheet/Tearsheet.types.d.ts +9 -0
  124. package/dist/Tearsheet/Tearsheet.types.js.map +1 -1
  125. package/dist/TextArea/TextArea.styles.js +1 -1
  126. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  127. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  128. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  129. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  130. package/dist/Tile/Tile.styles.js +8 -8
  131. package/dist/Title/Title.styles.js +7 -7
  132. package/dist/Toast/Toast.styles.js +3 -3
  133. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  134. package/dist/Token/Token.styles.js +3 -3
  135. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  136. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  137. package/dist/Tooltip/Tooltip.styles.js +2 -2
  138. package/dist/Tree/Tree.styles.js +9 -9
  139. package/dist/Typeahead/Typeahead.styles.js +3 -3
  140. package/dist/Typography/Typography.styles.js +1 -1
  141. package/dist/Typography/Typography.table.story.js +2 -2
  142. package/dist/_hooks/I18n.d.ts +80 -0
  143. package/dist/_locales/de-DE.json +15 -10
  144. package/dist/_locales/en-AU.json +19 -14
  145. package/dist/_locales/en-CA.json +17 -12
  146. package/dist/_locales/en-GB.json +17 -12
  147. package/dist/_locales/en.json +15 -10
  148. package/dist/_locales/es-ES.json +15 -10
  149. package/dist/_locales/es.json +15 -10
  150. package/dist/_locales/fr-CA.json +15 -10
  151. package/dist/_locales/fr-FR.json +15 -10
  152. package/dist/_locales/is-IS.json +15 -10
  153. package/dist/_locales/ja-JP.json +15 -10
  154. package/dist/_locales/pl-PL.json +15 -10
  155. package/dist/_locales/pseudo.json +15 -10
  156. package/dist/_locales/pt-BR.json +15 -10
  157. package/dist/_locales/th-TH.json +15 -10
  158. package/dist/_locales/zh-SG.json +15 -10
  159. package/dist/_typedoc/Avatar/Avatar.types.json +22 -22
  160. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +27 -25
  161. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  162. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  163. package/dist/_typedoc/Box/Box.types.json +68 -68
  164. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  165. package/dist/_typedoc/Button/Button.types.json +12 -12
  166. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  167. package/dist/_typedoc/Card/Card.types.json +6 -6
  168. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  169. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  170. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  171. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  172. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  173. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  174. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  175. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  176. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  177. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  178. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  179. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  180. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  181. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  182. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  183. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  184. package/dist/_typedoc/Form/Form.types.json +741 -741
  185. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  186. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  187. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  188. package/dist/_typedoc/Input/Input.types.json +2 -2
  189. package/dist/_typedoc/Link/Link.types.json +4 -4
  190. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  191. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  192. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  193. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  194. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  195. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  196. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  197. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  198. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  199. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  200. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  201. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  202. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  203. package/dist/_typedoc/Popover/Popover.types.json +27 -15
  204. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  205. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  206. package/dist/_typedoc/Required/Required.types.json +5 -5
  207. package/dist/_typedoc/Search/Search.types.json +35 -21
  208. package/dist/_typedoc/Section/Section.types.json +15 -15
  209. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  210. package/dist/_typedoc/Select/Select.types.json +60 -60
  211. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  212. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  213. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  214. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  215. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  216. package/dist/_typedoc/Table/Table.types.json +101 -101
  217. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  218. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +32 -18
  219. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  220. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  221. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  222. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  223. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  224. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  225. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  226. package/dist/_typedoc/Title/Title.types.json +1 -1
  227. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  228. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  229. package/dist/_typedoc/Token/Token.types.json +4 -4
  230. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  231. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  232. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  233. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  234. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  235. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  236. package/dist/_typedoc/_utils/types.json +3 -3
  237. package/dist/_typedoc/deprecations.json +1 -1
  238. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Dropzone.js","names":["Ban","Image","equals","omit","React","styled","Banner","Button","Tooltip","Typography","useI18nContext","useResizeObserver","useFocusWithin","StyledDropzoneCaption","StyledDropzoneContainer","StyledDropzoneFocusDetector","StyledDropzoneIcon","StyledDropzoneMessage","StyledDropzoneWrapper","StyledErrorBanner","StyledErrorBannerDetails","StyledUploadButton","dropErrors","fileRejectionReason","isZeroSize","extendedViewHeightBreakpoint","DropzoneErrorBannerBase","forwardRef","_ref","ref","error","onDismiss","qa","fileRejections","props","_objectWithoutProperties","_excluded","I18n","_React$useState","useState","_React$useState2","_slicedToArray","isExpanded","setExpanded","useEffect","title","body","message","type","reset","createElement","_extends","Content","Title","Body","Action","showErrorDetails","onClick","prev","t","Dismiss","hideError","ExpandableContent","expanded","MultipleErrors","_props$fileRejections","_messages","filesByErrorType","reduce","acc","rejection","errors","forEach","dropErrorType","dropErrorsByReason","code","push","file","_defineProperty","fileAmount","minFileSize","maxFileSize","fileType","oneFileAtATime","multipleErrors","messages","count","maxFiles","minSize","sizeInMegabytes","getSizeInMB","maxSize","map","errorType","files","length","key","weight","_ref2","name","DropzoneErrorBanner","withConfig","displayName","componentId","DropzoneContainer","_ref3","active","disabled","getRootProps","rootProps","children","DropzoneContent","_ref4","isIconVisible","contentMessage","DropzoneDefaultMessage","_ref5","open","multiple","errorMessage","Fragment","variant","Infinity","_dropErrorsByReason","Dropzone_","Dropzone","_ref6","forceIconVisibility","contentRenderer","tooltip","rootRef","inputRef","dragError","dropError","dispatchDropError","getInputProps","isDragActive","_ref6$rootProps","_ref6$inputProps","inputProps","className","_React$useState3","_React$useState4","setIsIconVisible","_useFocusWithin","isFocusWithin","containerProps","toggleIconVisibility","useCallback","entries","_ref7","target","height","offsetHeight","setResizeObserverTarget","current","useImperativeHandle","isDropzoneDisabled","Boolean","useMemo","validRootProps","validInputProps","direction","alignItems","trigger","overlay","memo"],"sources":["../../src/Dropzone/Dropzone.tsx"],"sourcesContent":["import { Ban, Image } from '@procore/core-icons/dist'\nimport { equals, omit } from 'ramda'\nimport React from 'react'\nimport styled from 'styled-components'\nimport { Banner } from '../Banner/Banner'\nimport { Button } from '../Button/Button'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typography } from '../Typography/Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { useFocusWithin } from '../_hooks/useFocusWithin'\nimport type { DivAttributes, Props } from '../_utils/types'\nimport {\n StyledDropzoneCaption,\n StyledDropzoneContainer,\n StyledDropzoneFocusDetector,\n StyledDropzoneIcon,\n StyledDropzoneMessage,\n StyledDropzoneWrapper,\n StyledErrorBanner,\n StyledErrorBannerDetails,\n StyledUploadButton,\n} from './Dropzone.styles'\nimport type {\n ContainerProps,\n ContentProps,\n DropErrorType,\n DropzoneContentProps,\n DropzoneErrorBannerProps,\n DropzoneInputProps,\n DropzoneProps,\n DropzoneRef,\n DropzoneRootProps,\n FileRejectionReason,\n MultipleErrorsProps,\n} from './Dropzone.types'\nimport { dropErrors, fileRejectionReason } from './Dropzone.types'\nimport { isZeroSize } from './Dropzone.utils'\n\nconst extendedViewHeightBreakpoint = 172\n\nconst DropzoneErrorBannerBase = React.forwardRef<\n HTMLDivElement,\n DropzoneErrorBannerProps & DivAttributes\n>(({ error, onDismiss, qa, fileRejections, ...props }, ref) => {\n const I18n = useI18nContext()\n const [isExpanded, setExpanded] = React.useState(false)\n\n React.useEffect(() => {\n setExpanded(false)\n }, [error.title, error.body, error.message])\n\n if (error.type === dropErrors.reset) {\n return null\n }\n\n return (\n <StyledErrorBanner {...props} ref={ref}>\n <Banner.Content>\n <Banner.Title>{error.title}</Banner.Title>\n <Banner.Body>{error.message}</Banner.Body>\n </Banner.Content>\n {error.body ? (\n <Banner.Action>\n <Button\n data-qa={qa?.showErrorDetails}\n onClick={() => setExpanded((prev) => !prev)}\n >\n {isExpanded\n ? I18n.t('core.dropzone.hideDetails')\n : I18n.t('core.dropzone.showDetails')}\n </Button>\n </Banner.Action>\n ) : null}\n <Banner.Dismiss onClick={onDismiss} data-qa={qa?.hideError} />\n {error.body ? (\n <Banner.ExpandableContent expanded={isExpanded}>\n {error.body}\n </Banner.ExpandableContent>\n ) : null}\n </StyledErrorBanner>\n )\n})\n\nexport function MultipleErrors(props: MultipleErrorsProps) {\n const I18n = useI18nContext()\n\n const filesByErrorType = props.fileRejections.reduce(\n (acc, rejection) => {\n rejection.errors.forEach((error) => {\n const dropErrorType = dropErrorsByReason[error.code]\n acc[dropErrorType].push(rejection.file)\n })\n\n return acc\n },\n {\n [dropErrors.fileAmount]: [],\n [dropErrors.minFileSize]: [],\n [dropErrors.maxFileSize]: [],\n [dropErrors.fileType]: [],\n [dropErrors.oneFileAtATime]: [],\n [dropErrors.reset]: [],\n [dropErrors.multipleErrors]: [],\n } as Record<DropErrorType, File[]>\n )\n\n const messages: Record<DropErrorType, string> = {\n [dropErrors.fileAmount]: I18n.t('core.dropzone.maxFileNumberErrorGroup', {\n count: props.maxFiles,\n }),\n [dropErrors.minFileSize]: isZeroSize(props.minSize)\n ? I18n.t('core.dropzone.zeroFileSizeErrorGroup')\n : I18n.t('core.dropzone.minFileSizeErrorGroup', {\n sizeInMegabytes: getSizeInMB(props.minSize as number),\n }),\n [dropErrors.maxFileSize]: I18n.t('core.dropzone.maxFileSizeErrorGroup', {\n sizeInMegabytes: getSizeInMB(props.maxSize as number),\n }),\n [dropErrors.fileType]: I18n.t('core.dropzone.wrongFileTypeErrorGroup'),\n [dropErrors.reset]: '',\n [dropErrors.multipleErrors]: '',\n [dropErrors.oneFileAtATime]: '',\n }\n\n return (\n <div>\n {[\n dropErrors.fileAmount,\n dropErrors.fileType,\n dropErrors.maxFileSize,\n dropErrors.minFileSize,\n ].map((errorType) => {\n const files = filesByErrorType[errorType]\n return files.length ? (\n <div key={errorType}>\n <Typography weight=\"bold\">{messages[errorType]}</Typography>\n <StyledErrorBannerDetails>\n {filesByErrorType[errorType].map(({ name }) => (\n <li key={name}>{name}</li>\n ))}\n </StyledErrorBannerDetails>\n </div>\n ) : null\n })}\n </div>\n )\n}\n\n// make error banner accessible as a styled-components selector\nexport const DropzoneErrorBanner = styled(DropzoneErrorBannerBase)``\n\nfunction DropzoneContainer({\n active,\n disabled,\n getRootProps,\n rootProps,\n children,\n}: ContainerProps & Props) {\n return (\n <StyledDropzoneContainer\n {...getRootProps(rootProps)}\n active={active}\n disabled={disabled}\n >\n {children}\n </StyledDropzoneContainer>\n )\n}\n\nfunction DropzoneContent({\n disabled,\n isIconVisible,\n contentMessage,\n}: ContentProps) {\n return (\n <StyledDropzoneMessage>\n {isIconVisible && (\n <StyledDropzoneIcon disabled={disabled}>\n {disabled ? <Ban /> : <Image />}\n </StyledDropzoneIcon>\n )}\n {contentMessage}\n </StyledDropzoneMessage>\n )\n}\n\nexport function DropzoneDefaultMessage({\n open,\n disabled,\n multiple,\n errorMessage,\n}: DropzoneContentProps & { multiple: boolean }) {\n const I18n = useI18nContext()\n\n return (\n <>\n <StyledUploadButton\n variant=\"secondary\"\n onClick={open}\n disabled={disabled}\n >\n {I18n.t('core.dropzone.uploadFiles', {\n count: multiple ? Infinity : 1,\n })}\n </StyledUploadButton>\n <StyledDropzoneCaption error={!!errorMessage}>\n {errorMessage || I18n.t('core.dropzone.dragAndDrop')}\n </StyledDropzoneCaption>\n </>\n )\n}\n\nconst dropErrorsByReason = {\n [fileRejectionReason.maxFiles]: dropErrors.fileAmount,\n [fileRejectionReason.maxFileSize]: dropErrors.maxFileSize,\n [fileRejectionReason.minFileSize]: dropErrors.minFileSize,\n [fileRejectionReason.fileType]: dropErrors.fileType,\n} as Record<FileRejectionReason, DropErrorType>\n\nconst getSizeInMB = (maxSize: number): number => maxSize / 10e5\n\nconst Dropzone_ = React.forwardRef<DropzoneRef, DropzoneProps>(\n function Dropzone(\n {\n isIconVisible: forceIconVisibility,\n contentRenderer,\n disabled,\n tooltip,\n rootRef,\n inputRef,\n dragError,\n dropError,\n dispatchDropError,\n getRootProps,\n getInputProps,\n isDragActive,\n multiple,\n fileRejections,\n open,\n rootProps = {} as DropzoneRootProps,\n inputProps = {} as DropzoneInputProps,\n className,\n qa,\n },\n ref\n ) {\n const [isIconVisible, setIsIconVisible] = React.useState(false)\n const { isFocusWithin, containerProps } = useFocusWithin()\n\n const toggleIconVisibility = React.useCallback(\n (entries: ResizeObserverEntry[]) => {\n const { offsetHeight: height } = entries[0].target as HTMLElement\n setIsIconVisible(height >= extendedViewHeightBreakpoint)\n },\n [setIsIconVisible]\n )\n\n const setResizeObserverTarget = useResizeObserver(toggleIconVisibility)\n\n React.useEffect(() => {\n setResizeObserverTarget(rootRef.current)\n }, [rootRef, setResizeObserverTarget])\n\n React.useImperativeHandle(ref, () => ({\n rootRef: rootRef as React.RefObject<HTMLElement>,\n inputRef: inputRef as React.RefObject<HTMLInputElement>,\n open,\n }))\n\n const isDropzoneDisabled = disabled || Boolean(dragError)\n\n const contentMessage = React.useMemo(\n () =>\n contentRenderer ? (\n contentRenderer({\n open,\n disabled: isDropzoneDisabled,\n errorMessage: dragError,\n })\n ) : (\n <DropzoneDefaultMessage\n open={open}\n disabled={isDropzoneDisabled}\n errorMessage={dragError}\n multiple={multiple}\n />\n ),\n [contentRenderer, open, isDropzoneDisabled, dragError, multiple]\n )\n\n const validRootProps = React.useMemo(\n () => omit(['disabled'], rootProps),\n [rootProps]\n )\n\n const validInputProps = React.useMemo(\n () => omit(['accept', 'multiple', 'type'], inputProps),\n [inputProps]\n )\n\n return (\n <StyledDropzoneWrapper\n direction=\"column\"\n alignItems=\"stretch\"\n className={className}\n >\n <Tooltip\n trigger={Boolean(tooltip) ? 'hover' : 'none'}\n overlay={tooltip || ''}\n >\n <StyledDropzoneFocusDetector {...containerProps}>\n <DropzoneContainer\n rootProps={validRootProps}\n active={isDragActive || isFocusWithin}\n disabled={isDropzoneDisabled}\n getRootProps={getRootProps}\n >\n <input type=\"file\" {...getInputProps(validInputProps)} />\n <DropzoneContent\n disabled={isDropzoneDisabled}\n isIconVisible={\n typeof forceIconVisibility === 'undefined'\n ? isIconVisible\n : forceIconVisibility\n }\n contentMessage={contentMessage}\n />\n </DropzoneContainer>\n </StyledDropzoneFocusDetector>\n </Tooltip>\n <DropzoneErrorBanner\n qa={qa}\n error={dropError}\n fileRejections={fileRejections}\n onDismiss={() => dispatchDropError(dropErrors.reset)}\n />\n </StyledDropzoneWrapper>\n )\n }\n)\n\nDropzoneContainer.displayName = 'DropzoneContainer'\n\nDropzoneContent.displayName = 'DropzoneContent'\n\nDropzone_.displayName = 'Dropzone'\n\n/**\n\n Dropzones allow users to quickly upload files from their computers, as well\n as optionally launch the file select component.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-dropzone--demo)\n\n @see [Design Guidelines](https://design.procore.com/dropzone)\n\n*/\nexport const Dropzone = React.memo(Dropzone_, equals)\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAASA,GAAG,EAAEC,KAAK,QAAQ,0BAA0B;AACrD,SAASC,MAAM,EAAEC,IAAI,QAAQ,OAAO;AACpC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,iBAAiB,QAAQ,0BAA0B;AAC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AA;MAAA,OAAMuG,iBAAiB,CAAChH,UAAU,CAAC2B,KAAK,CAAC;IAAA;EAAC,CACtD,CACoB,CAAC;AAE5B,CACF,CAAC;AAEDuD,iBAAiB,CAACF,WAAW,GAAG,mBAAmB;AAEnDS,eAAe,CAACT,WAAW,GAAG,iBAAiB;AAE/CsB,SAAS,CAACtB,WAAW,GAAG,UAAU;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMuB,QAAQ,gBAAGzH,KAAK,CAACkK,IAAI,CAAC1C,SAAS,EAAE1H,MAAM,CAAC"}
1
+ {"version":3,"file":"Dropzone.js","names":["Ban","Image","equals","omit","React","styled","Banner","Button","Tooltip","Typography","useI18nContext","useResizeObserver","useFocusWithin","StyledDropzoneCaption","StyledDropzoneContainer","StyledDropzoneFocusDetector","StyledDropzoneIcon","StyledDropzoneMessage","StyledDropzoneWrapper","StyledErrorBanner","StyledErrorBannerDetails","StyledUploadButton","dropErrors","fileRejectionReason","getFileDetail","isZeroSize","extendedViewHeightBreakpoint","DropzoneErrorBannerBase","forwardRef","_ref","ref","error","onDismiss","qa","fileRejections","props","_objectWithoutProperties","_excluded","I18n","_React$useState","useState","_React$useState2","_slicedToArray","isExpanded","setExpanded","useEffect","title","body","message","type","reset","createElement","_extends","Content","Title","Body","Action","showErrorDetails","onClick","prev","t","Dismiss","hideError","ExpandableContent","expanded","MultipleErrors","_props$fileRejections","_messages","filesByErrorType","reduce","acc","rejection","errors","forEach","dropErrorType","dropErrorsByReason","code","push","file","_defineProperty","fileAmount","minFileSize","maxFileSize","fileType","oneFileAtATime","multipleErrors","messages","count","maxFiles","minSize","sizeInMegabytes","getSizeInMB","maxSize","map","errorType","files","length","key","weight","name","DropzoneErrorBanner","withConfig","displayName","componentId","DropzoneContainer","_ref2","active","disabled","getRootProps","rootProps","children","DropzoneContent","_ref3","isIconVisible","contentMessage","DropzoneDefaultMessage","_ref4","open","multiple","errorMessage","Fragment","variant","Infinity","_dropErrorsByReason","Dropzone_","Dropzone","_ref5","forceIconVisibility","contentRenderer","tooltip","rootRef","inputRef","dragError","dropError","dispatchDropError","getInputProps","isDragActive","_ref5$rootProps","_ref5$inputProps","inputProps","className","_React$useState3","_React$useState4","setIsIconVisible","_useFocusWithin","isFocusWithin","containerProps","toggleIconVisibility","useCallback","entries","_ref6","target","height","offsetHeight","setResizeObserverTarget","current","useImperativeHandle","isDropzoneDisabled","Boolean","useMemo","validRootProps","validInputProps","direction","alignItems","trigger","overlay","memo"],"sources":["../../src/Dropzone/Dropzone.tsx"],"sourcesContent":["import { Ban, Image } from '@procore/core-icons/dist'\nimport { equals, omit } from 'ramda'\nimport React from 'react'\nimport styled from 'styled-components'\nimport { Banner } from '../Banner/Banner'\nimport { Button } from '../Button/Button'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typography } from '../Typography/Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { useFocusWithin } from '../_hooks/useFocusWithin'\nimport type { DivAttributes, Props } from '../_utils/types'\nimport {\n StyledDropzoneCaption,\n StyledDropzoneContainer,\n StyledDropzoneFocusDetector,\n StyledDropzoneIcon,\n StyledDropzoneMessage,\n StyledDropzoneWrapper,\n StyledErrorBanner,\n StyledErrorBannerDetails,\n StyledUploadButton,\n} from './Dropzone.styles'\nimport type {\n ContainerProps,\n ContentProps,\n DropErrorType,\n DropzoneContentProps,\n DropzoneErrorBannerProps,\n DropzoneInputProps,\n DropzoneProps,\n DropzoneRef,\n DropzoneRootProps,\n FileRejectionReason,\n MultipleErrorsProps,\n} from './Dropzone.types'\nimport { dropErrors, fileRejectionReason } from './Dropzone.types'\nimport { getFileDetail, isZeroSize } from './Dropzone.utils'\n\nconst extendedViewHeightBreakpoint = 172\n\nconst DropzoneErrorBannerBase = React.forwardRef<\n HTMLDivElement,\n DropzoneErrorBannerProps & DivAttributes\n>(({ error, onDismiss, qa, fileRejections, ...props }, ref) => {\n const I18n = useI18nContext()\n const [isExpanded, setExpanded] = React.useState(false)\n\n React.useEffect(() => {\n setExpanded(false)\n }, [error.title, error.body, error.message])\n\n if (error.type === dropErrors.reset) {\n return null\n }\n\n return (\n <StyledErrorBanner {...props} ref={ref}>\n <Banner.Content>\n <Banner.Title>{error.title}</Banner.Title>\n <Banner.Body>{error.message}</Banner.Body>\n </Banner.Content>\n {error.body ? (\n <Banner.Action>\n <Button\n data-qa={qa?.showErrorDetails}\n onClick={() => setExpanded((prev) => !prev)}\n >\n {isExpanded\n ? I18n.t('core.dropzone.hideDetails')\n : I18n.t('core.dropzone.showDetails')}\n </Button>\n </Banner.Action>\n ) : null}\n <Banner.Dismiss onClick={onDismiss} data-qa={qa?.hideError} />\n {error.body ? (\n <Banner.ExpandableContent expanded={isExpanded}>\n {error.body}\n </Banner.ExpandableContent>\n ) : null}\n </StyledErrorBanner>\n )\n})\n\nexport function MultipleErrors(props: MultipleErrorsProps) {\n const I18n = useI18nContext()\n\n const filesByErrorType = props.fileRejections.reduce(\n (acc, rejection) => {\n rejection.errors.forEach((error) => {\n const dropErrorType = dropErrorsByReason[error.code]\n acc[dropErrorType].push(rejection.file)\n })\n\n return acc\n },\n {\n [dropErrors.fileAmount]: [],\n [dropErrors.minFileSize]: [],\n [dropErrors.maxFileSize]: [],\n [dropErrors.fileType]: [],\n [dropErrors.oneFileAtATime]: [],\n [dropErrors.reset]: [],\n [dropErrors.multipleErrors]: [],\n } as Record<DropErrorType, File[]>\n )\n\n const messages: Record<DropErrorType, string> = {\n [dropErrors.fileAmount]: I18n.t('core.dropzone.maxFileNumberErrorGroup', {\n count: props.maxFiles,\n }),\n [dropErrors.minFileSize]: isZeroSize(props.minSize)\n ? I18n.t('core.dropzone.zeroFileSizeErrorGroup')\n : I18n.t('core.dropzone.minFileSizeErrorGroup', {\n sizeInMegabytes: getSizeInMB(props.minSize as number),\n }),\n [dropErrors.maxFileSize]: I18n.t('core.dropzone.maxFileSizeErrorGroup', {\n sizeInMegabytes: getSizeInMB(props.maxSize as number),\n }),\n [dropErrors.fileType]: I18n.t('core.dropzone.wrongFileTypeErrorGroup'),\n [dropErrors.reset]: '',\n [dropErrors.multipleErrors]: '',\n [dropErrors.oneFileAtATime]: '',\n }\n\n return (\n <div>\n {[\n dropErrors.fileAmount,\n dropErrors.fileType,\n dropErrors.maxFileSize,\n dropErrors.minFileSize,\n ].map((errorType) => {\n const files = filesByErrorType[errorType]\n return files.length ? (\n <div key={errorType}>\n <Typography weight=\"bold\">{messages[errorType]}</Typography>\n <StyledErrorBannerDetails>\n {filesByErrorType[errorType].map((file) => (\n <li key={file.name}>{getFileDetail(file)}</li>\n ))}\n </StyledErrorBannerDetails>\n </div>\n ) : null\n })}\n </div>\n )\n}\n\n// make error banner accessible as a styled-components selector\nexport const DropzoneErrorBanner = styled(DropzoneErrorBannerBase)``\n\nfunction DropzoneContainer({\n active,\n disabled,\n getRootProps,\n rootProps,\n children,\n}: ContainerProps & Props) {\n return (\n <StyledDropzoneContainer\n {...getRootProps(rootProps)}\n active={active}\n disabled={disabled}\n >\n {children}\n </StyledDropzoneContainer>\n )\n}\n\nfunction DropzoneContent({\n disabled,\n isIconVisible,\n contentMessage,\n}: ContentProps) {\n return (\n <StyledDropzoneMessage>\n {isIconVisible && (\n <StyledDropzoneIcon disabled={disabled}>\n {disabled ? <Ban /> : <Image />}\n </StyledDropzoneIcon>\n )}\n {contentMessage}\n </StyledDropzoneMessage>\n )\n}\n\nexport function DropzoneDefaultMessage({\n open,\n disabled,\n multiple,\n errorMessage,\n}: DropzoneContentProps & { multiple: boolean }) {\n const I18n = useI18nContext()\n\n return (\n <>\n <StyledUploadButton\n variant=\"secondary\"\n onClick={open}\n disabled={disabled}\n >\n {I18n.t('core.dropzone.uploadFiles', {\n count: multiple ? Infinity : 1,\n })}\n </StyledUploadButton>\n <StyledDropzoneCaption error={!!errorMessage}>\n {errorMessage || I18n.t('core.dropzone.dragAndDrop')}\n </StyledDropzoneCaption>\n </>\n )\n}\n\nconst dropErrorsByReason = {\n [fileRejectionReason.maxFiles]: dropErrors.fileAmount,\n [fileRejectionReason.maxFileSize]: dropErrors.maxFileSize,\n [fileRejectionReason.minFileSize]: dropErrors.minFileSize,\n [fileRejectionReason.fileType]: dropErrors.fileType,\n} as Record<FileRejectionReason, DropErrorType>\n\nconst getSizeInMB = (maxSize: number): number => maxSize / 10e5\n\nconst Dropzone_ = React.forwardRef<DropzoneRef, DropzoneProps>(\n function Dropzone(\n {\n isIconVisible: forceIconVisibility,\n contentRenderer,\n disabled,\n tooltip,\n rootRef,\n inputRef,\n dragError,\n dropError,\n dispatchDropError,\n getRootProps,\n getInputProps,\n isDragActive,\n multiple,\n fileRejections,\n open,\n rootProps = {} as DropzoneRootProps,\n inputProps = {} as DropzoneInputProps,\n className,\n qa,\n },\n ref\n ) {\n const [isIconVisible, setIsIconVisible] = React.useState(false)\n const { isFocusWithin, containerProps } = useFocusWithin()\n\n const toggleIconVisibility = React.useCallback(\n (entries: ResizeObserverEntry[]) => {\n const { offsetHeight: height } = entries[0].target as HTMLElement\n setIsIconVisible(height >= extendedViewHeightBreakpoint)\n },\n [setIsIconVisible]\n )\n\n const setResizeObserverTarget = useResizeObserver(toggleIconVisibility)\n\n React.useEffect(() => {\n setResizeObserverTarget(rootRef.current)\n }, [rootRef, setResizeObserverTarget])\n\n React.useImperativeHandle(ref, () => ({\n rootRef: rootRef as React.RefObject<HTMLElement>,\n inputRef: inputRef as React.RefObject<HTMLInputElement>,\n open,\n }))\n\n const isDropzoneDisabled = disabled || Boolean(dragError)\n\n const contentMessage = React.useMemo(\n () =>\n contentRenderer ? (\n contentRenderer({\n open,\n disabled: isDropzoneDisabled,\n errorMessage: dragError,\n })\n ) : (\n <DropzoneDefaultMessage\n open={open}\n disabled={isDropzoneDisabled}\n errorMessage={dragError}\n multiple={multiple}\n />\n ),\n [contentRenderer, open, isDropzoneDisabled, dragError, multiple]\n )\n\n const validRootProps = React.useMemo(\n () => omit(['disabled'], rootProps),\n [rootProps]\n )\n\n const validInputProps = React.useMemo(\n () => omit(['accept', 'multiple', 'type'], inputProps),\n [inputProps]\n )\n\n return (\n <StyledDropzoneWrapper\n direction=\"column\"\n alignItems=\"stretch\"\n className={className}\n >\n <Tooltip\n trigger={Boolean(tooltip) ? 'hover' : 'none'}\n overlay={tooltip || ''}\n >\n <StyledDropzoneFocusDetector {...containerProps}>\n <DropzoneContainer\n rootProps={validRootProps}\n active={isDragActive || isFocusWithin}\n disabled={isDropzoneDisabled}\n getRootProps={getRootProps}\n >\n <input type=\"file\" {...getInputProps(validInputProps)} />\n <DropzoneContent\n disabled={isDropzoneDisabled}\n isIconVisible={\n typeof forceIconVisibility === 'undefined'\n ? isIconVisible\n : forceIconVisibility\n }\n contentMessage={contentMessage}\n />\n </DropzoneContainer>\n </StyledDropzoneFocusDetector>\n </Tooltip>\n <DropzoneErrorBanner\n qa={qa}\n error={dropError}\n fileRejections={fileRejections}\n onDismiss={() => dispatchDropError(dropErrors.reset)}\n />\n </StyledDropzoneWrapper>\n )\n }\n)\n\nDropzoneContainer.displayName = 'DropzoneContainer'\n\nDropzoneContent.displayName = 'DropzoneContent'\n\nDropzone_.displayName = 'Dropzone'\n\n/**\n\n Dropzones allow users to quickly upload files from their computers, as well\n as optionally launch the file select component.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-dropzone--demo)\n\n @see [Design Guidelines](https://design.procore.com/dropzone)\n\n*/\nexport const Dropzone = React.memo(Dropzone_, equals)\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAASA,GAAG,EAAEC,KAAK,QAAQ,0BAA0B;AACrD,SAASC,MAAM,EAAEC,IAAI,QAAQ,OAAO;AACpC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5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mB;IAClBnE,EAAE,EAAEA,EAAG;IACPF,KAAK,EAAEsG,SAAU;IACjBnG,cAAc,EAAEA,cAAe;IAC/BF,SAAS,EAAE,SAAAA,UAAA;MAAA,OAAMsG,iBAAiB,CAAChH,UAAU,CAAC4B,KAAK,CAAC;IAAA;EAAC,CACtD,CACoB,CAAC;AAE5B,CACF,CAAC;AAEDsD,iBAAiB,CAACF,WAAW,GAAG,mBAAmB;AAEnDS,eAAe,CAACT,WAAW,GAAG,iBAAiB;AAE/CsB,SAAS,CAACtB,WAAW,GAAG,UAAU;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMuB,QAAQ,gBAAGzH,KAAK,CAACkK,IAAI,CAAC1C,SAAS,EAAE1H,MAAM,CAAC"}
@@ -9,15 +9,15 @@ import { colors } from '../_styles/colors';
9
9
  import { spacing } from '../_styles/spacing';
10
10
  export var StyledErrorBanner = /*#__PURE__*/styled(ErrorBannerBase).withConfig({
11
11
  displayName: "StyledErrorBanner",
12
- componentId: "core-12_17_1__sc-by95hy-0"
12
+ componentId: "core-12_17_3__sc-by95hy-0"
13
13
  })(["margin-top:", "px;flex-shrink:0;"], spacing.lg);
14
14
  export var StyledErrorBannerDetails = /*#__PURE__*/styled.ul.withConfig({
15
15
  displayName: "StyledErrorBannerDetails",
16
- componentId: "core-12_17_1__sc-by95hy-1"
16
+ componentId: "core-12_17_3__sc-by95hy-1"
17
17
  })(["margin:", "px;padding:0;list-style-position:inside;list-style-type:disc;"], spacing.xs);
18
18
  export var StyledDropzoneIcon = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledDropzoneIcon",
20
- componentId: "core-12_17_1__sc-by95hy-2"
20
+ componentId: "core-12_17_3__sc-by95hy-2"
21
21
  })(["display:flex;justify-content:center;align-items:center;height:64px;color:", ";margin-bottom:", "px;transition:all 250ms ease-out;", " svg{width:auto;height:100%;}"], colors.gray45, spacing.lg, function (_ref) {
22
22
  var disabled = _ref.disabled;
23
23
  return disabled && css(["height:72px;margin-bottom:", "px;"], spacing.sm);
@@ -26,7 +26,7 @@ var activeDropzone = /*#__PURE__*/css(["outline:none;border:2px dashed ", ";back
26
26
  var disabledDropzone = /*#__PURE__*/css(["color:", ";border:2px dashed ", ";background-color:", ";cursor:not-allowed;& ", "{color:", ";transform:none;}"], colors.gray70, colors.gray85, colors.gray98, StyledDropzoneIcon, colors.gray85);
27
27
  export var StyledDropzoneContainer = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledDropzoneContainer",
29
- componentId: "core-12_17_1__sc-by95hy-3"
29
+ componentId: "core-12_17_3__sc-by95hy-3"
30
30
  })(["", " display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:100%;min-height:92px;padding:", "px;color:", ";border:2px dashed ", ";background-color:", ";border-radius:", "px;text-align:center;letter-spacing:0.25px;transition:all 250ms ease-out;cursor:grab;", " ", " ", " ", ""], getTypographyIntent('body'), spacing.lg, colors.gray40, colors.gray70, colors.gray96, borderRadius.md, function (_ref2) {
31
31
  var disabled = _ref2.disabled;
32
32
  return !disabled && css(["&:hover{", "}"], activeDropzone);
@@ -43,25 +43,25 @@ export var StyledDropzoneContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  });
44
44
  export var StyledDropzoneMessage = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledDropzoneMessage",
46
- componentId: "core-12_17_1__sc-by95hy-4"
46
+ componentId: "core-12_17_3__sc-by95hy-4"
47
47
  })(["user-select:none;"]);
48
48
  export var StyledUploadButton = /*#__PURE__*/styled(Button).withConfig({
49
49
  displayName: "StyledUploadButton",
50
- componentId: "core-12_17_1__sc-by95hy-5"
50
+ componentId: "core-12_17_3__sc-by95hy-5"
51
51
  })(["display:block;margin-left:auto;margin-right:auto;margin-bottom:", "px;"], spacing.sm);
52
52
  export var StyledDropzoneCaption = /*#__PURE__*/styled.span.withConfig({
53
53
  displayName: "StyledDropzoneCaption",
54
- componentId: "core-12_17_1__sc-by95hy-6"
54
+ componentId: "core-12_17_3__sc-by95hy-6"
55
55
  })(["color:", ";"], function (_ref6) {
56
56
  var error = _ref6.error;
57
57
  return error && colors.gray15;
58
58
  });
59
59
  export var StyledDropzoneWrapper = /*#__PURE__*/styled(Flex).withConfig({
60
60
  displayName: "StyledDropzoneWrapper",
61
- componentId: "core-12_17_1__sc-by95hy-7"
61
+ componentId: "core-12_17_3__sc-by95hy-7"
62
62
  })(["height:100%;"]);
63
63
  export var StyledDropzoneFocusDetector = /*#__PURE__*/styled(Box).withConfig({
64
64
  displayName: "StyledDropzoneFocusDetector",
65
- componentId: "core-12_17_1__sc-by95hy-8"
65
+ componentId: "core-12_17_3__sc-by95hy-8"
66
66
  })(["height:100%;"]);
67
67
  //# sourceMappingURL=Dropzone.styles.js.map
@@ -1 +1,3 @@
1
+ import type { FileWithPath } from 'react-dropzone';
1
2
  export declare const isZeroSize: (minFileSize?: number) => boolean;
3
+ export declare const getFileDetail: (file: FileWithPath) => string;
@@ -1,4 +1,7 @@
1
1
  export var isZeroSize = function isZeroSize(minFileSize) {
2
2
  return typeof minFileSize === 'number' && minFileSize <= 1;
3
3
  };
4
+ export var getFileDetail = function getFileDetail(file) {
5
+ return file.path || file.name;
6
+ };
4
7
  //# sourceMappingURL=Dropzone.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropzone.utils.js","names":["isZeroSize","minFileSize"],"sources":["../../src/Dropzone/Dropzone.utils.ts"],"sourcesContent":["export const isZeroSize = (minFileSize?: number) => {\n return typeof minFileSize === 'number' && minFileSize <= 1\n}\n"],"mappings":"AAAA,OAAO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,WAAoB,EAAK;EAClD,OAAO,OAAOA,WAAW,KAAK,QAAQ,IAAIA,WAAW,IAAI,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"Dropzone.utils.js","names":["isZeroSize","minFileSize","getFileDetail","file","path","name"],"sources":["../../src/Dropzone/Dropzone.utils.ts"],"sourcesContent":["import type { FileWithPath } from 'react-dropzone'\n\nexport const isZeroSize = (minFileSize?: number) => {\n return typeof minFileSize === 'number' && minFileSize <= 1\n}\n\nexport const getFileDetail = (file: FileWithPath) => {\n return file.path || file.name\n}\n"],"mappings":"AAEA,OAAO,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,WAAoB,EAAK;EAClD,OAAO,OAAOA,WAAW,KAAK,QAAQ,IAAIA,WAAW,IAAI,CAAC;AAC5D,CAAC;AAED,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAAkB,EAAK;EACnD,OAAOA,IAAI,CAACC,IAAI,IAAID,IAAI,CAACE,IAAI;AAC/B,CAAC"}
@@ -6,27 +6,27 @@ var emptyStateWidth = 440;
6
6
  var emptyStateWidthCompact = 352;
7
7
  export var StyledSvg = /*#__PURE__*/styled.svg.withConfig({
8
8
  displayName: "StyledSvg",
9
- componentId: "core-12_17_1__sc-1xaoo8n-0"
9
+ componentId: "core-12_17_3__sc-1xaoo8n-0"
10
10
  })(["width:200px;height:200px;"]);
11
11
  export var StyledImage = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledImage",
13
- componentId: "core-12_17_1__sc-1xaoo8n-1"
13
+ componentId: "core-12_17_3__sc-1xaoo8n-1"
14
14
  })([""]);
15
15
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
16
16
  displayName: "StyledTitle",
17
- componentId: "core-12_17_1__sc-1xaoo8n-2"
17
+ componentId: "core-12_17_3__sc-1xaoo8n-2"
18
18
  })(["margin-top:", "px;text-align:center;color:", ";width:", "px;", ""], spacing.xl, colors.gray15, emptyStateWidth, getTypographyIntent('h2'));
19
19
  export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledDescription",
21
- componentId: "core-12_17_1__sc-1xaoo8n-3"
21
+ componentId: "core-12_17_3__sc-1xaoo8n-3"
22
22
  })(["margin-top:", "px;text-align:center;color:", ";width:", "px;", ""], spacing.lg, colors.gray45, emptyStateWidth, getTypographyIntent('body'));
23
23
  export var StyledActions = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledActions",
25
- componentId: "core-12_17_1__sc-1xaoo8n-4"
25
+ componentId: "core-12_17_3__sc-1xaoo8n-4"
26
26
  })(["margin-top:", "px;"], spacing.xl);
27
27
  export var StyledEmptyState = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledEmptyState",
29
- componentId: "core-12_17_1__sc-1xaoo8n-5"
29
+ componentId: "core-12_17_3__sc-1xaoo8n-5"
30
30
  })(["display:flex;justify-content:center;align-items:center;flex-direction:column;margin-top:", "px;margin-bottom:", "px;", "{> img{max-width:200px;}}", "}"], function (_ref) {
31
31
  var $compact = _ref.$compact;
32
32
  return $compact ? 0 : 96;
@@ -2,14 +2,14 @@ import styled from 'styled-components';
2
2
  import { getSmallIconBodyTextRules, StyledP } from '../Semantic/Semantic.styles';
3
3
  export var StyledField = /*#__PURE__*/styled.div.withConfig({
4
4
  displayName: "StyledField",
5
- componentId: "core-12_17_1__sc-1q3pe6s-0"
5
+ componentId: "core-12_17_3__sc-1q3pe6s-0"
6
6
  })(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
7
7
  export var StyledFieldHeader = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledFieldHeader",
9
- componentId: "core-12_17_1__sc-1q3pe6s-1"
9
+ componentId: "core-12_17_3__sc-1q3pe6s-1"
10
10
  })(["", " > ", "{", "}"], getSmallIconBodyTextRules, StyledP, getSmallIconBodyTextRules);
11
11
  export var StyledFieldFooter = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "StyledFieldFooter",
13
- componentId: "core-12_17_1__sc-1q3pe6s-2"
13
+ componentId: "core-12_17_3__sc-1q3pe6s-2"
14
14
  })(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
15
15
  //# sourceMappingURL=Field.styles.js.map
@@ -3,18 +3,18 @@ import { LinkButton } from '../Button/Button';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledFileListDownloadAll = /*#__PURE__*/styled(LinkButton).withConfig({
5
5
  displayName: "StyledFileListDownloadAll",
6
- componentId: "core-12_17_1__sc-7gltjc-0"
6
+ componentId: "core-12_17_3__sc-7gltjc-0"
7
7
  })(["margin-bottom:", "px;"], spacing.xs);
8
8
  export var StyledFileListItem = /*#__PURE__*/styled.li.withConfig({
9
9
  displayName: "StyledFileListItem",
10
- componentId: "core-12_17_1__sc-7gltjc-1"
10
+ componentId: "core-12_17_3__sc-7gltjc-1"
11
11
  })(["display:flex;align-items:center;margin-bottom:", "px;word-break:break-word;&:last-child{margin-bottom:0;}"], spacing.xs);
12
12
  export var StyledFileListItemTextInactive = /*#__PURE__*/styled.span.withConfig({
13
13
  displayName: "StyledFileListItemTextInactive",
14
- componentId: "core-12_17_1__sc-7gltjc-2"
14
+ componentId: "core-12_17_3__sc-7gltjc-2"
15
15
  })(["cursor:pointer;"]);
16
16
  export var StyledFileListItemDownloadIcon = /*#__PURE__*/styled(LinkButton).withConfig({
17
17
  displayName: "StyledFileListItemDownloadIcon",
18
- componentId: "core-12_17_1__sc-7gltjc-3"
18
+ componentId: "core-12_17_3__sc-7gltjc-3"
19
19
  })(["margin-left:", "px;align-self:flex-start;"], spacing.sm);
20
20
  //# sourceMappingURL=FileList.styles.js.map
@@ -12,40 +12,40 @@ var modalContainerMaxHeight = 996;
12
12
  var modalContainerMargin = 80;
13
13
  export var StyledModalOverlay = /*#__PURE__*/styled(Modal.Overlay).withConfig({
14
14
  displayName: "StyledModalOverlay",
15
- componentId: "core-12_17_1__sc-343gts-0"
15
+ componentId: "core-12_17_3__sc-343gts-0"
16
16
  })(["opacity:0;pointer-events:none;transition:opacity 0.3s linear;visibility:hidden;", ""], function (props) {
17
17
  return props.$open && "\n opacity: 1;\n pointer-events: all;\n visibility: visible;\n ";
18
18
  });
19
19
  export var StyledModalContainer = /*#__PURE__*/styled(Modal.Container).withConfig({
20
20
  displayName: "StyledModalContainer",
21
- componentId: "core-12_17_1__sc-343gts-1"
21
+ componentId: "core-12_17_3__sc-343gts-1"
22
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);
23
23
  export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
24
24
  displayName: "StyledModalBody",
25
- componentId: "core-12_17_1__sc-343gts-2"
25
+ componentId: "core-12_17_3__sc-343gts-2"
26
26
  })(["min-height:", "px;height:100%;margin:0;max-width:none;padding:0;border-bottom:1px solid ", ";"], modalBodyMinHeight, colors.gray85);
27
27
  export var StyledModalInnerBody = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledModalInnerBody",
29
- componentId: "core-12_17_1__sc-343gts-3"
29
+ componentId: "core-12_17_3__sc-343gts-3"
30
30
  })(["display:flex;flex-direction:row;height:100%;overflow:hidden;"]);
31
31
  export var StyledModalHeader = /*#__PURE__*/styled(Modal.Header).withConfig({
32
32
  displayName: "StyledModalHeader",
33
- componentId: "core-12_17_1__sc-343gts-4"
33
+ componentId: "core-12_17_3__sc-343gts-4"
34
34
  })(["border-bottom:1px solid ", ";"], colors.gray85);
35
35
  export var StyledModalContent = /*#__PURE__*/styled.div.withConfig({
36
36
  displayName: "StyledModalContent",
37
- componentId: "core-12_17_1__sc-343gts-5"
37
+ componentId: "core-12_17_3__sc-343gts-5"
38
38
  })(["display:flex;width:100%;height:100%;overflow-y:auto;outline:none;"]);
39
39
  export var StyledSource = /*#__PURE__*/styled.div.withConfig({
40
40
  displayName: "StyledSource",
41
- componentId: "core-12_17_1__sc-343gts-6"
41
+ componentId: "core-12_17_3__sc-343gts-6"
42
42
  })(["width:100%;height:100%;"]);
43
43
  export var StyledAttachButton = /*#__PURE__*/styled.div.withConfig({
44
44
  displayName: "StyledAttachButton",
45
- componentId: "core-12_17_1__sc-343gts-7"
45
+ componentId: "core-12_17_3__sc-343gts-7"
46
46
  })(["margin-left:", "px;"], spacing.md);
47
47
  export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
48
48
  displayName: "StyledFileTreeSpinner",
49
- componentId: "core-12_17_1__sc-343gts-8"
49
+ componentId: "core-12_17_3__sc-343gts-8"
50
50
  })(["display:flex;align-items:center;justify-content:center;height:100%;"]);
51
51
  //# sourceMappingURL=FileExplorer.styles.js.map
@@ -3,14 +3,14 @@ import { colors } from '../../_styles/colors';
3
3
  import { SourceItem } from '../SourceItem/SourceItem';
4
4
  export var StyledSidebar = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledSidebar",
6
- componentId: "core-12_17_1__sc-s03uiv-0"
6
+ componentId: "core-12_17_3__sc-s03uiv-0"
7
7
  })(["display:flex;flex-shrink:0;width:300px;border-right:1px solid ", ";"], colors.gray85);
8
8
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledNavigation",
10
- componentId: "core-12_17_1__sc-s03uiv-1"
10
+ componentId: "core-12_17_3__sc-s03uiv-1"
11
11
  })(["display:flex;flex-direction:column;width:100%;&:focus{outline:none;}"]);
12
12
  export var StyledSourceItem = /*#__PURE__*/styled(SourceItem).withConfig({
13
13
  displayName: "StyledSourceItem",
14
- componentId: "core-12_17_1__sc-s03uiv-2"
14
+ componentId: "core-12_17_3__sc-s03uiv-2"
15
15
  })(["width:100%;padding-left:10px;&:focus{padding-left:9px;}"]);
16
16
  //# sourceMappingURL=FileExplorerSidebar.styles.js.map
@@ -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_17_1__sc-1r3srjk-0"
6
+ componentId: "core-12_17_3__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_17_1__sc-1r3srjk-1"
10
+ componentId: "core-12_17_3__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_17_1__sc-ueh7d7-0"
8
+ componentId: "core-12_17_3__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_17_1__sc-ueh7d7-1"
15
+ componentId: "core-12_17_3__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_17_1__sc-ueh7d7-2"
22
+ componentId: "core-12_17_3__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_17_1__sc-u9tli5-0"
6
+ componentId: "core-12_17_3__sc-u9tli5-0"
7
7
  })(["display:flex;flex-wrap:wrap;"]);
8
8
  export var StyledFileToken = /*#__PURE__*/styled(FileToken).withConfig({
9
9
  displayName: "StyledFileToken",
10
- componentId: "core-12_17_1__sc-u9tli5-1"
10
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-0"
16
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-1"
26
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-2"
30
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-3"
34
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-4"
38
+ componentId: "core-12_17_3__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_17_1__sc-1sj6hvp-5"
42
+ componentId: "core-12_17_3__sc-1sj6hvp-5"
43
43
  })(["display:flex;flex-direction:column;", ""], function (_ref3) {
44
44
  var $isEmpty = _ref3.$isEmpty;
45
45
  return $isEmpty && 'height: 100%;';
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
15
15
  var sourceWidth = 568;
16
16
  export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "StyledLocalSource",
18
- componentId: "core-12_17_1__sc-psqe8z-0"
18
+ componentId: "core-12_17_3__sc-psqe8z-0"
19
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);
20
20
  export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
21
21
  displayName: "StyledDropzoneErrorBanner",
22
- componentId: "core-12_17_1__sc-psqe8z-1"
22
+ componentId: "core-12_17_3__sc-psqe8z-1"
23
23
  })(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
24
24
  export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
25
25
  displayName: "StyledDropzoneWrapper",
26
- componentId: "core-12_17_1__sc-psqe8z-2"
26
+ componentId: "core-12_17_3__sc-psqe8z-2"
27
27
  })(["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
28
  var isIconVisible = _ref.isIconVisible;
29
29
  return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
30
30
  }, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
31
31
  export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
32
32
  displayName: "StyledThumbnailList",
33
- componentId: "core-12_17_1__sc-psqe8z-3"
33
+ componentId: "core-12_17_3__sc-psqe8z-3"
34
34
  })(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
35
35
  //# sourceMappingURL=LocalSource.styles.js.map
@@ -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_17_1__sc-plcozv-0"
11
+ componentId: "core-12_17_3__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_17_1__sc-plcozv-1"
31
+ componentId: "core-12_17_3__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_17_1__sc-plcozv-2"
35
+ componentId: "core-12_17_3__sc-plcozv-2"
36
36
  })(["", ""], getEllipsis());
37
37
  //# sourceMappingURL=SourceItem.styles.js.map
@@ -7,23 +7,23 @@ import { colors } from '../../_styles/colors';
7
7
  import { spacing } from '../../_styles/spacing';
8
8
  export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledThumbnailListContainer",
10
- componentId: "core-12_17_1__sc-1fz4ynb-0"
10
+ componentId: "core-12_17_3__sc-1fz4ynb-0"
11
11
  })(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
12
12
  export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
13
13
  displayName: "StyledThumbnailList",
14
- componentId: "core-12_17_1__sc-1fz4ynb-1"
14
+ componentId: "core-12_17_3__sc-1fz4ynb-1"
15
15
  })(["outline:none;"]);
16
16
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
17
  displayName: "StyledThumbnail",
18
- componentId: "core-12_17_1__sc-1fz4ynb-2"
18
+ componentId: "core-12_17_3__sc-1fz4ynb-2"
19
19
  })(["flex-grow:1;justify-content:flex-start;"]);
20
20
  export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
21
21
  displayName: "StyledProgress",
22
- componentId: "core-12_17_1__sc-1fz4ynb-3"
22
+ componentId: "core-12_17_3__sc-1fz4ynb-3"
23
23
  })(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
24
24
  export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "StyledThumbnailListItem",
26
- componentId: "core-12_17_1__sc-1fz4ynb-4"
26
+ componentId: "core-12_17_3__sc-1fz4ynb-4"
27
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
28
  var error = _ref.error;
29
29
  return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
@@ -37,6 +37,6 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
37
37
  });
38
38
  export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
39
39
  displayName: "StyledDeleteIcon",
40
- componentId: "core-12_17_1__sc-1fz4ynb-5"
40
+ componentId: "core-12_17_3__sc-1fz4ynb-5"
41
41
  })([""]);
42
42
  //# sourceMappingURL=ThumbnailList.styles.js.map
@@ -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_17_1__sc-wwu3n8-0"
5
+ componentId: "core-12_17_3__sc-wwu3n8-0"
6
6
  })(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
7
7
  //# sourceMappingURL=TreeSource.styles.js.map
@@ -6,19 +6,19 @@ export var pulseAnimationDuration = 600;
6
6
  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);
7
7
  export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledFilenameShortcut",
9
- componentId: "core-12_17_1__sc-13jx4bx-0"
9
+ componentId: "core-12_17_3__sc-13jx4bx-0"
10
10
  })(["display:flex;"]);
11
11
  export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
12
12
  displayName: "StyledFilename",
13
- componentId: "core-12_17_1__sc-13jx4bx-1"
13
+ componentId: "core-12_17_3__sc-13jx4bx-1"
14
14
  })(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
15
15
  export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
16
16
  displayName: "StyledExtension",
17
- componentId: "core-12_17_1__sc-13jx4bx-2"
17
+ componentId: "core-12_17_3__sc-13jx4bx-2"
18
18
  })(["flex-shrink:0;"]);
19
19
  export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledFileToken",
21
- componentId: "core-12_17_1__sc-13jx4bx-3"
21
+ componentId: "core-12_17_3__sc-13jx4bx-3"
22
22
  })(["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;}", "{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) {
23
23
  var $progressComplete = _ref.$progressComplete;
24
24
  return $progressComplete && css(["background-color:", ";"], colors.blue45);
@@ -5,11 +5,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledLabel",
8
- componentId: "core-12_17_1__sc-1l1h29r-0"
8
+ componentId: "core-12_17_3__sc-1l1h29r-0"
9
9
  })(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
10
10
  export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledFilterToken",
12
- componentId: "core-12_17_1__sc-1l1h29r-1"
12
+ componentId: "core-12_17_3__sc-1l1h29r-1"
13
13
  })(["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) {
14
14
  var _ref$$focused = _ref.$focused,
15
15
  $focused = _ref$$focused === void 0 ? false : _ref$$focused;
@@ -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_17_1__sc-1quvv61-0"
6
+ componentId: "core-12_17_3__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')) {