@procore/core-react 12.49.1 → 12.50.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.
- package/CHANGELOG.md +11 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +8 -8
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +9 -9
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.d.ts +2 -1
- package/dist/DetailPage/DetailPage.js +11 -10
- package/dist/DetailPage/DetailPage.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +9 -8
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/DetailPage/DetailPage.types.d.ts +5 -5
- package/dist/DetailPage/DetailPage.types.js.map +1 -1
- package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +7 -1
- package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +3 -3
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.d.ts +7 -0
- package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +6 -6
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +13 -13
- package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/Modal/Modal.styles.js +26 -33
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.styles.js +5 -5
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.js +8 -5
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +18 -17
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageLayout/PageLayout.types.d.ts +7 -0
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.types.d.ts +5 -0
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.types.js.map +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +14 -13
- package/dist/Panel/Panel.styles.js.map +1 -1
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.js +1 -0
- package/dist/Required/Required.js.map +1 -1
- package/dist/Required/Required.styles.js +5 -5
- package/dist/Required/Required.styles.js.map +1 -1
- package/dist/Required/Required.types.d.ts +2 -0
- package/dist/Required/Required.types.js.map +1 -1
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.js +4 -3
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Select/Select.types.d.ts +0 -1
- package/dist/Select/Select.types.js.map +1 -1
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +29 -29
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tablist.d.ts +11 -0
- package/dist/Tabs/Tablist.js +45 -0
- package/dist/Tabs/Tablist.js.map +1 -0
- package/dist/Tabs/Tablist.types.d.ts +58 -0
- package/dist/Tabs/Tablist.types.js +2 -0
- package/dist/Tabs/Tablist.types.js.map +1 -0
- package/dist/Tabs/Tabs.js +60 -8
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tabs/Tabs.types.d.ts +25 -10
- package/dist/Tabs/Tabs.types.js.map +1 -1
- package/dist/Tabs/index.d.ts +2 -0
- package/dist/Tabs/index.js +1 -0
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/Tearsheet/storybook/PageLayoutDemo.js +3 -1
- package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -1
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +14 -14
- package/dist/Thumbnail/Thumbnail.styles.js +21 -21
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +5 -5
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +3 -3
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.styles.js +10 -10
- package/dist/Typeahead/Typeahead.styles.js +4 -4
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_locales/en.json +1 -1
- package/dist/_locales/pseudo.json +1 -1
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +15 -15
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +14 -14
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +14 -14
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +770 -770
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +84 -84
- package/dist/_typedoc/Modal/Modal.types.json +48 -48
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
- package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +48 -38
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +8 -6
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +67 -72
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +105 -105
- package/dist/_typedoc/Tabs/Tablist.types.json +17 -0
- package/dist/_typedoc/Tabs/Tabs.types.json +46 -25
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
- package/dist/_typedoc/Tile/Tile.types.json +8 -8
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +88 -88
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/a11y-tips.json +1 -1
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/propsTypedoc.d.ts +1 -0
- package/dist/_utils/propsTypedoc.js +1 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPage.js","names":["useId","React","AnchorNavigationProvider","useAnchorNavigationContext","Grid","Page","PageBodyNavigation","Section","SectionProvider","H1","spacing","addSubcomponents","mergeRefs","gridConfig","StyledDetailPageBody","StyledDetailPageCard","StyledDetailPageFooter","StyledDetailPageFooterActions","StyledDetailPageFooterContent","StyledDetailPageFooterNotation","DetailPageViewContext","createContext","width","hasNavigation","DetailPage_","forwardRef","_ref","ref","_ref$width","_ref$hasNavigation","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","offset","xs","_extends","fillHeight","Heading","Body","_React$useContext","useContext","Row","Col","colWidth","colStart","Footer","_ref2","_excluded2","FooterNotation","FooterActions","Actions","Card","_ref3","navigationLabel","_excluded3","cardId","card","useRef","_useAnchorNavigationC","registerSection","unregisterSection","id","useEffect","_card$current","_card$current$querySe","label","current","querySelector","textContent","displayName","DetailPage","Main","Header","Breadcrumbs","Banner","Title","Tabs","Aside"],"sources":["../../src/DetailPage/DetailPage.tsx"],"sourcesContent":["import { useId } from '@react-aria/utils'\nimport React from 'react'\nimport {\n AnchorNavigationProvider,\n useAnchorNavigationContext,\n} from '../AnchorNavigation/AnchorNavigationProvider'\nimport { Grid } from '../Grid/Grid'\nimport { Page, PageBodyNavigation } from '../PageLayout/PageLayout'\nimport type {\n PageComponentProps,\n PageFooterProps,\n} from '../PageLayout/PageLayout.types'\nimport { Section, SectionProvider } from '../Section/Section'\nimport { H1 } from '../Semantic/Semantic'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport { gridConfig } from './DetailPage.constants'\nimport {\n StyledDetailPageBody,\n StyledDetailPageCard,\n StyledDetailPageFooter,\n StyledDetailPageFooterActions,\n StyledDetailPageFooterContent,\n StyledDetailPageFooterNotation,\n} from './DetailPage.styles'\nimport type {\n DetailPageCardProps,\n DetailPageProps,\n DetailPageWidth,\n} from './DetailPage.types'\n\nexport const DetailPageViewContext = React.createContext<{\n width: DetailPageWidth\n hasNavigation: boolean\n}>({\n width: 'md',\n hasNavigation: false,\n})\n\nconst DetailPage_ = React.forwardRef<HTMLDivElement, DetailPageProps>(\n function DetailPage_(\n { width = 'md', hasNavigation = false, children, ...props },\n ref\n ) {\n return (\n <DetailPageViewContext.Provider value={{ width, hasNavigation }}>\n <AnchorNavigationProvider offset={spacing.xs}>\n <Page fillHeight ref={ref} {...props} data-core-react=\"detail-page\">\n {children}\n </Page>\n </AnchorNavigationProvider>\n </DetailPageViewContext.Provider>\n )\n }\n)\n\nexport const Heading = React.forwardRef<HTMLDivElement, Props>(function Heading(\n props,\n ref\n) {\n return <H1 ref={ref} {...props} />\n})\n\nexport const Body = React.forwardRef<HTMLDivElement, PageComponentProps>(\n function Body(props, ref) {\n const { width, hasNavigation } = React.useContext(DetailPageViewContext)\n\n return (\n <Page.Body>\n {hasNavigation && <PageBodyNavigation />}\n <Grid.Row>\n <Grid.Col\n colWidth={gridConfig[width].width}\n colStart={gridConfig[width].offset}\n >\n <StyledDetailPageBody ref={ref} {...props} />\n </Grid.Col>\n </Grid.Row>\n </Page.Body>\n )\n }\n)\n\nexport const Footer = React.forwardRef<HTMLDivElement, PageFooterProps>(\n function Footer({ children, ...props }, ref) {\n return (\n <StyledDetailPageFooter ref={ref} {...props}>\n <StyledDetailPageFooterContent>\n {children}\n </StyledDetailPageFooterContent>\n </StyledDetailPageFooter>\n )\n }\n)\n\nexport const FooterNotation = React.forwardRef<HTMLDivElement, Props>(\n function FooterNotation(props, ref) {\n return <StyledDetailPageFooterNotation ref={ref} {...props} />\n }\n)\n\nexport const FooterActions = React.forwardRef<HTMLDivElement, Props>(\n function Actions(props, ref) {\n return <StyledDetailPageFooterActions ref={ref} {...props} />\n }\n)\n\nexport const Card = React.forwardRef<HTMLDivElement, DetailPageCardProps>(\n function Card({ navigationLabel, ...props }, ref) {\n const cardId = useId()\n const card = React.useRef<HTMLDivElement>(null)\n const { registerSection, unregisterSection } = useAnchorNavigationContext()\n const id = props.id || cardId\n\n React.useEffect(() => {\n // Use content of first H2 element as label if navigationLabel is not provided\n const label =\n navigationLabel || card.current?.querySelector('h2')?.textContent\n if (!card.current || !label) return\n\n registerSection(id, label, card.current)\n\n return () => unregisterSection(id)\n }, [id, navigationLabel]) // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <SectionProvider>\n <StyledDetailPageCard ref={mergeRefs(ref, card)} id={id} {...props} />\n </SectionProvider>\n )\n }\n)\n\nDetailPage_.displayName = 'DetailPage'\nHeading.displayName = 'DetailPage.Heading'\nBody.displayName = 'DetailPage.Body'\nFooter.displayName = 'DetailPage.Footer'\nCard.displayName = 'DetailPage.Card'\n\n/**\n\n A detail page is used when an object is selected from a list page. The layout\n can adhere to varying predefined widths depending on use case.\n\n - DetailPage\n - DetailPage.Main\n - DetailPage.Header\n - DetailPage.Breadcrumbs\n - Breadcrumbs\n - DetailPage.Banner\n - Banner\n - DetailPage.Title\n - Title or H1\n - DetailPage.Tabs\n - Tabs\n - DetailPage.Body\n - DetailPage.Title\n - DetailPage.Banner\n - DetailPage.Card\n - DetailPage.Banner\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Footer\n - DetailPage.FooterNotation\n - DetailPage.FooterActions\n - Button\n - DetailPage.Aside\n - Panel\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-detailpage--edit)\n\n @see [Design Guidelines](https://design.procore.com/detail)\n\n */\nexport const DetailPage = addSubcomponents(\n {\n Main: Page.Main,\n Header: Page.Header,\n Breadcrumbs: Page.Breadcrumbs,\n Card,\n Banner: Page.Banner,\n Title: Page.Title,\n Heading,\n Tabs: Page.Tabs,\n Footer,\n FooterActions,\n FooterNotation,\n Section,\n Body,\n Aside: Page.Aside,\n },\n DetailPage_\n)\n"],"mappings":";;;;;;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,wBAAwB,EACxBC,0BAA0B,QACrB,8CAA8C;AACrD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,kBAAkB,QAAQ,0BAA0B;AAKnE,SAASC,OAAO,EAAEC,eA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MAAM,EAAEvE,IAAI,CAACuE,MAAM;EACnBC,WAAW,EAAExE,IAAI,CAACwE,WAAW;EAC7BtB,IAAI,EAAJA,IAAI;EACJuB,MAAM,EAAEzE,IAAI,CAACyE,MAAM;EACnBC,KAAK,EAAE1E,IAAI,CAAC0E,KAAK;EACjBtC,OAAO,EAAPA,OAAO;EACPuC,IAAI,EAAE3E,IAAI,CAAC2E,IAAI;EACf/B,MAAM,EAANA,MAAM;EACNI,aAAa,EAAbA,aAAa;EACbD,cAAc,EAAdA,cAAc;EACd7C,OAAO,EAAPA,OAAO;EACPmC,IAAI,EAAJA,IAAI;EACJuC,KAAK,EAAE5E,IAAI,CAAC4E;AACd,CAAC,EACDzD,WACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"DetailPage.js","names":["useId","React","AnchorNavigationProvider","useAnchorNavigationContext","Grid","Page","PageBodyNavigation","Section","SectionProvider","H1","spacing","addSubcomponents","mergeRefs","gridConfig","StyledDetailPageBody","StyledDetailPageCard","StyledDetailPageFooter","StyledDetailPageFooterActions","StyledDetailPageFooterContent","StyledDetailPageFooterNotation","DetailPageViewContext","createContext","hasNavigation","width","DetailPage_","forwardRef","_ref","ref","children","_ref$hasNavigation","_ref$width","props","_objectWithoutProperties","_excluded","createElement","Provider","value","offset","xs","_extends","fillHeight","Heading","Body","_React$useContext","useContext","Row","Col","colWidth","colStart","Footer","_ref2","_excluded2","FooterNotation","FooterActions","Actions","Card","_ref3","navigationLabel","_excluded3","cardId","card","useRef","_useAnchorNavigationC","registerSection","unregisterSection","id","useEffect","_card$current","_card$current$querySe","label","current","querySelector","textContent","displayName","DetailPage","Main","Header","Breadcrumbs","Banner","Title","Tabs","Aside"],"sources":["../../src/DetailPage/DetailPage.tsx"],"sourcesContent":["import { useId } from '@react-aria/utils'\nimport React from 'react'\nimport {\n AnchorNavigationProvider,\n useAnchorNavigationContext,\n} from '../AnchorNavigation/AnchorNavigationProvider'\nimport { Grid } from '../Grid/Grid'\nimport { Page, PageBodyNavigation } from '../PageLayout/PageLayout'\nimport type {\n PageComponentProps,\n PageFooterProps,\n} from '../PageLayout/PageLayout.types'\nimport { Section, SectionProvider } from '../Section/Section'\nimport { H1 } from '../Semantic/Semantic'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport { gridConfig } from './DetailPage.constants'\nimport {\n StyledDetailPageBody,\n StyledDetailPageCard,\n StyledDetailPageFooter,\n StyledDetailPageFooterActions,\n StyledDetailPageFooterContent,\n StyledDetailPageFooterNotation,\n} from './DetailPage.styles'\nimport type {\n DetailPageCardProps,\n DetailPageProps,\n DetailPageWidth,\n} from './DetailPage.types'\n\nexport const DetailPageViewContext = React.createContext<{\n hasNavigation: boolean\n width: DetailPageWidth\n}>({\n hasNavigation: false,\n width: 'md',\n})\n\nconst DetailPage_ = React.forwardRef<HTMLDivElement, DetailPageProps>(\n function DetailPage_(\n { children, hasNavigation = false, width = 'md', ...props },\n ref\n ) {\n return (\n <DetailPageViewContext.Provider value={{ hasNavigation, width }}>\n <AnchorNavigationProvider offset={spacing.xs}>\n <Page fillHeight ref={ref} {...props} data-core-react=\"detail-page\">\n {children}\n </Page>\n </AnchorNavigationProvider>\n </DetailPageViewContext.Provider>\n )\n }\n)\n\nexport const Heading = React.forwardRef<HTMLDivElement, Props>(function Heading(\n props,\n ref\n) {\n return <H1 ref={ref} {...props} />\n})\n\nexport const Body = React.forwardRef<HTMLDivElement, PageComponentProps>(\n function Body(props, ref) {\n const { hasNavigation, width } = React.useContext(DetailPageViewContext)\n\n return (\n <Page.Body>\n {hasNavigation && <PageBodyNavigation />}\n\n <Grid.Row>\n <Grid.Col\n colWidth={gridConfig[width].width}\n colStart={gridConfig[width].offset}\n >\n <StyledDetailPageBody ref={ref} {...props} />\n </Grid.Col>\n </Grid.Row>\n </Page.Body>\n )\n }\n)\n\nexport const Footer = React.forwardRef<HTMLDivElement, PageFooterProps>(\n function Footer({ children, ...props }, ref) {\n return (\n <StyledDetailPageFooter ref={ref} {...props}>\n <StyledDetailPageFooterContent>\n {children}\n </StyledDetailPageFooterContent>\n </StyledDetailPageFooter>\n )\n }\n)\n\nexport const FooterNotation = React.forwardRef<HTMLDivElement, Props>(\n function FooterNotation(props, ref) {\n return <StyledDetailPageFooterNotation ref={ref} {...props} />\n }\n)\n\nexport const FooterActions = React.forwardRef<HTMLDivElement, Props>(\n function Actions(props, ref) {\n return <StyledDetailPageFooterActions ref={ref} {...props} />\n }\n)\n\nexport const Card = React.forwardRef<HTMLDivElement, DetailPageCardProps>(\n function Card({ navigationLabel, ...props }, ref) {\n const cardId = useId()\n const card = React.useRef<HTMLDivElement>(null)\n const { registerSection, unregisterSection } = useAnchorNavigationContext()\n const id = props.id || cardId\n\n React.useEffect(() => {\n // Use content of first H2 element as label if navigationLabel is not provided\n const label =\n navigationLabel || card.current?.querySelector('h2')?.textContent\n if (!card.current || !label) return\n\n registerSection(id, label, card.current)\n\n return () => unregisterSection(id)\n }, [id, navigationLabel]) // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <SectionProvider>\n <StyledDetailPageCard ref={mergeRefs(ref, card)} id={id} {...props} />\n </SectionProvider>\n )\n }\n)\n\nDetailPage_.displayName = 'DetailPage'\nHeading.displayName = 'DetailPage.Heading'\nBody.displayName = 'DetailPage.Body'\nFooter.displayName = 'DetailPage.Footer'\nCard.displayName = 'DetailPage.Card'\n\n/**\n\n A detail page is used when an object is selected from a list page. The layout\n can adhere to varying predefined widths depending on use case.\n\n - DetailPage\n - DetailPage.Main\n - DetailPage.Header\n - DetailPage.Breadcrumbs\n - Breadcrumbs\n - DetailPage.Banner\n - Banner\n - DetailPage.Title\n - Title or H1\n - DetailPage.Tabs\n - Tabs\n - DetailPage.Body\n - DetailPage.Title\n - DetailPage.Banner\n - Required\n - DetailPage.Card\n - DetailPage.Banner\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Section\n - DetailPage.Footer\n - DetailPage.FooterNotation\n - DetailPage.FooterActions\n - Button\n - DetailPage.Aside\n - Panel\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-detailpage--edit)\n\n @see [Design Guidelines](https://design.procore.com/detail)\n\n */\nexport const DetailPage = addSubcomponents(\n {\n Main: Page.Main,\n Header: Page.Header,\n Breadcrumbs: Page.Breadcrumbs,\n Card,\n Banner: Page.Banner,\n Title: Page.Title,\n Heading,\n Tabs: Page.Tabs,\n Footer,\n FooterActions,\n FooterNotation,\n Section,\n Body,\n Aside: Page.Aside,\n },\n DetailPage_\n)\n"],"mappings":";;;;;;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,wBAAwB,EACxBC,0BAA0B,QACrB,8CAA8C;AACrD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,EAAEC,kBAAkB,QAAQ,0BAA0B;AAKnE,SAASC,OAAO,EAAEC,eAAe,QAAQ,oBAAoB;AAC7D,SAASC,EAAE,QAAQ,sBAAsB;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,SAAS,QAAQ,qBAAqB;AAE/C,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SACEC,oBAAoB,EACpBC,oBAAoB,EACpBC,sBAAsB,EACtBC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,8BAA8B,QACzB,qBAAqB;AAO5B,OAAO,IAAMC,qBAAqB,gBAAGnB,KAAK,CAACoB,aAAa,CAGrD;EACDC,aAAa,EAAE,KAAK;EACpBC,KAAK,EAAE;AACT,CAAC,CAAC;AAEF,IAAMC,WAAW,gBAAGvB,KAAK,CAACwB,UAAU,CAClC,SAASD,WAAWA,CAAAE,IAAA,EAElBC,GAAG,EACH;EAAA,IAFEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,kBAAA,GAAA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AAwB,QAAA;IAACZ,GAAG,EAAEf,SAAS,CAACe,GAAG,EAAEiC,IAAI,CAAE;IAACK,EAAE,EAAEA;EAAG,GAAKlC,KAAK,CAAG,CACtD,CAAC;AAEtB,CACF,CAAC;AAEDP,WAAW,CAACiD,WAAW,GAAG,YAAY;AACtChC,OAAO,CAACgC,WAAW,GAAG,oBAAoB;AAC1C/B,IAAI,CAAC+B,WAAW,GAAG,iBAAiB;AACpCxB,MAAM,CAACwB,WAAW,GAAG,mBAAmB;AACxClB,IAAI,CAACkB,WAAW,GAAG,iBAAiB;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GAAG/D,gBAAgB,CACxC;EACEgE,IAAI,EAAEtE,IAAI,CAACsE,IAAI;EACfC,MAAM,EAAEvE,IAAI,CAACuE,MAAM;EACnBC,WAAW,EAAExE,IAAI,CAACwE,WAAW;EAC7BtB,IAAI,EAAJA,IAAI;EACJuB,MAAM,EAAEzE,IAAI,CAACyE,MAAM;EACnBC,KAAK,EAAE1E,IAAI,CAAC0E,KAAK;EACjBtC,OAAO,EAAPA,OAAO;EACPuC,IAAI,EAAE3E,IAAI,CAAC2E,IAAI;EACf/B,MAAM,EAANA,MAAM;EACNI,aAAa,EAAbA,aAAa;EACbD,cAAc,EAAdA,cAAc;EACd7C,OAAO,EAAPA,OAAO;EACPmC,IAAI,EAAJA,IAAI;EACJuC,KAAK,EAAE5E,IAAI,CAAC4E;AACd,CAAC,EACDzD,WACF,CAAC"}
|
|
@@ -3,37 +3,38 @@ import { Box } from '../Box/Box';
|
|
|
3
3
|
import { Card } from '../Card/Card';
|
|
4
4
|
import { Page } from '../PageLayout/PageLayout';
|
|
5
5
|
import { getActions, StyledPageBanner } from '../PageLayout/PageLayout.styles';
|
|
6
|
+
import { StyledRequiredContainer } from '../Required/Required.styles';
|
|
6
7
|
import { sectionClassnames, StyledSection, StyledSectionInner } from '../Section/Section.styles';
|
|
7
8
|
import { colors } from '../_styles/colors';
|
|
8
9
|
import { spacing } from '../_styles/spacing';
|
|
9
10
|
export var StyledDetailPage = /*#__PURE__*/styled.div.withConfig({
|
|
10
11
|
displayName: "StyledDetailPage",
|
|
11
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_50_0__sc-cytnlo-0"
|
|
12
13
|
})(["background-color:", ";height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;"], colors.gray96);
|
|
13
14
|
export var StyledDetailPageBody = /*#__PURE__*/styled.div.withConfig({
|
|
14
15
|
displayName: "StyledDetailPageBody",
|
|
15
|
-
componentId: "core-
|
|
16
|
-
})(["padding-bottom:", "px;"], spacing.xl);
|
|
16
|
+
componentId: "core-12_50_0__sc-cytnlo-1"
|
|
17
|
+
})(["padding-bottom:", "px;> ", "{margin-top:", "px;}"], spacing.xl, StyledRequiredContainer, spacing.lg);
|
|
17
18
|
export var StyledDetailPageFooterNotation = /*#__PURE__*/styled.div.withConfig({
|
|
18
19
|
displayName: "StyledDetailPageFooterNotation",
|
|
19
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_50_0__sc-cytnlo-2"
|
|
20
21
|
})(["flex-grow:1;z-index:1;"]);
|
|
21
22
|
export var StyledDetailPageFooter = /*#__PURE__*/styled(Page.Footer).withConfig({
|
|
22
23
|
displayName: "StyledDetailPageFooter",
|
|
23
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_50_0__sc-cytnlo-3"
|
|
24
25
|
})(["display:flex;padding:", "px 0;background-color:", ";justify-content:center;"], spacing.lg, colors.white);
|
|
25
26
|
export var StyledDetailPageFooterActions = /*#__PURE__*/styled(Box).withConfig({
|
|
26
27
|
displayName: "StyledDetailPageFooterActions",
|
|
27
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-12_50_0__sc-cytnlo-4"
|
|
28
29
|
})(["", ""], getActions());
|
|
29
30
|
var maxFooterContentWidth = 1920;
|
|
30
31
|
export var StyledDetailPageFooterContent = /*#__PURE__*/styled.div.withConfig({
|
|
31
32
|
displayName: "StyledDetailPageFooterContent",
|
|
32
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_50_0__sc-cytnlo-5"
|
|
33
34
|
})(["width:100%;align-items:center;display:flex;justify-content:flex-end;padding:0 ", "px;max-width:", "px;"], spacing.xl, maxFooterContentWidth);
|
|
34
35
|
var detailPageCardBorderRadius = 8;
|
|
35
36
|
export var StyledDetailPageCard = /*#__PURE__*/styled(Card).withConfig({
|
|
36
37
|
displayName: "StyledDetailPageCard",
|
|
37
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_50_0__sc-cytnlo-6"
|
|
38
39
|
})(["width:100%;border-radius:", "px;margin-top:", "px;margin-bottom:", "px;& + &{margin-top:", "px;}&:first-child{margin-top:0;}&:last-child{margin-bottom:", "px;}& > ", "{padding:", "px ", "px 0 ", "px;max-width:100%;&:empty{padding:0;}}& > ", " + ", " > ", "{border-top:0;}> .", ":first-child + .", ",> ", " + .", " + .", "{margin-top:", "px;}"], detailPageCardBorderRadius, spacing.lg, spacing.sm, spacing.sm, spacing.lg, StyledPageBanner, spacing.lg, spacing.lg, spacing.lg, StyledPageBanner, StyledSection, StyledSectionInner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), spacing.xxl * -1);
|
|
39
40
|
//# sourceMappingURL=DetailPage.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPage.styles.js","names":["styled","Box","Card","Page","getActions","StyledPageBanner","sectionClassnames","StyledSection","StyledSectionInner","colors","spacing","StyledDetailPage","div","withConfig","displayName","componentId","gray96","StyledDetailPageBody","xl","StyledDetailPageFooterNotation","StyledDetailPageFooter","Footer","
|
|
1
|
+
{"version":3,"file":"DetailPage.styles.js","names":["styled","Box","Card","Page","getActions","StyledPageBanner","StyledRequiredContainer","sectionClassnames","StyledSection","StyledSectionInner","colors","spacing","StyledDetailPage","div","withConfig","displayName","componentId","gray96","StyledDetailPageBody","xl","lg","StyledDetailPageFooterNotation","StyledDetailPageFooter","Footer","white","StyledDetailPageFooterActions","maxFooterContentWidth","StyledDetailPageFooterContent","detailPageCardBorderRadius","StyledDetailPageCard","sm","levelAnonymous","level","xxl"],"sources":["../../src/DetailPage/DetailPage.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Box } from '../Box/Box'\nimport { Card } from '../Card/Card'\nimport { Page } from '../PageLayout/PageLayout'\nimport { getActions, StyledPageBanner } from '../PageLayout/PageLayout.styles'\nimport { StyledRequiredContainer } from '../Required/Required.styles'\nimport {\n sectionClassnames,\n StyledSection,\n StyledSectionInner,\n} from '../Section/Section.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledDetailPage = styled.div`\n background-color: ${colors.gray96};\n height: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n`\n\nexport const StyledDetailPageBody = styled.div`\n padding-bottom: ${spacing.xl}px;\n\n > ${StyledRequiredContainer} {\n margin-top: ${spacing.lg}px;\n }\n`\n\nexport const StyledDetailPageFooterNotation = styled.div`\n flex-grow: 1;\n z-index: 1;\n`\n\nexport const StyledDetailPageFooter = styled(Page.Footer)`\n display: flex;\n padding: ${spacing.lg}px 0;\n background-color: ${colors.white};\n justify-content: center;\n`\n\nexport const StyledDetailPageFooterActions = styled(Box)`\n ${getActions()}\n`\n\nconst maxFooterContentWidth = 1920\n\nexport const StyledDetailPageFooterContent = styled.div`\n width: 100%;\n align-items: center;\n display: flex;\n justify-content: flex-end;\n padding: 0 ${spacing.xl}px;\n max-width: ${maxFooterContentWidth}px;\n`\n\nconst detailPageCardBorderRadius = 8\n\nexport const StyledDetailPageCard = styled(Card)`\n width: 100%;\n border-radius: ${detailPageCardBorderRadius}px;\n margin-top: ${spacing.lg}px;\n margin-bottom: ${spacing.sm}px;\n\n & + & {\n margin-top: ${spacing.sm}px;\n }\n\n &:first-child {\n margin-top: 0;\n }\n &:last-child {\n margin-bottom: ${spacing.lg}px;\n }\n\n & > ${StyledPageBanner} {\n padding: ${spacing.lg}px ${spacing.lg}px 0 ${spacing.lg}px;\n max-width: 100%;\n\n &:empty {\n padding: 0;\n }\n }\n\n & > ${StyledPageBanner} + ${StyledSection} > ${StyledSectionInner} {\n border-top: 0;\n }\n\n > .${sectionClassnames.levelAnonymous}:first-child\n + .${sectionClassnames.level(2)},\n > ${StyledPageBanner}\n + .${sectionClassnames.levelAnonymous}\n + .${sectionClassnames.level(2)} {\n margin-top: ${spacing.xxl * -1}px;\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,QAAQ,0BAA0B;AAC/C,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,iCAAiC;AAC9E,SAASC,uBAAuB,QAAQ,6BAA6B;AACrE,SACEC,iBAAiB,EACjBC,aAAa,EACbC,kBAAkB,QACb,2BAA2B;AAClC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,gBAAgB,gBAAGZ,MAAM,CAACa,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iJACpBN,MAAM,CAACO,MAAM,CAOlC;AAED,OAAO,IAAMC,oBAAoB,gBAAGlB,MAAM,CAACa,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yDAC1BL,OAAO,CAACQ,EAAE,EAExBb,uBAAuB,EACXK,OAAO,CAACS,EAAE,CAE3B;AAED,OAAO,IAAMC,8BAA8B,gBAAGrB,MAAM,CAACa,GAA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types';
|
|
|
3
3
|
import type { Props } from '../_utils/types';
|
|
4
4
|
export declare type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block';
|
|
5
5
|
export interface DetailPageProps extends Props {
|
|
6
|
-
/**
|
|
7
|
-
* @description Width of the content
|
|
8
|
-
* @since 10.19.0
|
|
9
|
-
*/
|
|
10
|
-
width?: DetailPageWidth;
|
|
11
6
|
/**
|
|
12
7
|
* @description If the page has anchor navigation
|
|
13
8
|
* @since TBD
|
|
14
9
|
*/
|
|
15
10
|
hasNavigation?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @description Width of the content
|
|
13
|
+
* @since 10.19.0
|
|
14
|
+
*/
|
|
15
|
+
width?: DetailPageWidth;
|
|
16
16
|
}
|
|
17
17
|
export interface DetailPageAsideProps extends PageAsideProps {
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPage.types.js","names":[],"sources":["../../src/DetailPage/DetailPage.types.ts"],"sourcesContent":["import type {\n PageAsideProps,\n PageComponentProps,\n PageHeaderProps,\n} from '../PageLayout/PageLayout.types'\nimport type { SectionProps } from '../Section/Section.types'\nimport type { Props } from '../_utils/types'\n\nexport type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block'\n\nexport interface DetailPageProps extends Props {\n /**\n * @description
|
|
1
|
+
{"version":3,"file":"DetailPage.types.js","names":[],"sources":["../../src/DetailPage/DetailPage.types.ts"],"sourcesContent":["import type {\n PageAsideProps,\n PageComponentProps,\n PageHeaderProps,\n} from '../PageLayout/PageLayout.types'\nimport type { SectionProps } from '../Section/Section.types'\nimport type { Props } from '../_utils/types'\n\nexport type DetailPageWidth = 'md' | 'lg' | 'xl' | 'block'\n\nexport interface DetailPageProps extends Props {\n /**\n * @description If the page has anchor navigation\n * @since TBD\n */\n hasNavigation?: boolean\n\n /**\n * @description Width of the content\n * @since 10.19.0\n */\n width?: DetailPageWidth\n}\nexport interface DetailPageAsideProps extends PageAsideProps {}\n\nexport interface DetailPageHeaderProps extends PageHeaderProps {}\n\nexport interface DetailPageSectionProps extends SectionProps {}\n\nexport interface DetailPageCardProps extends PageComponentProps {\n navigationLabel?: string\n}\n"],"mappings":""}
|
|
@@ -3,7 +3,13 @@ import type { PageHeaderTemplateProps } from '../PageTemplate/PageHeaderTemplate
|
|
|
3
3
|
import type { PageTemplateProps } from '../PageTemplate/PageTemplate';
|
|
4
4
|
import type { UsingProps } from '../_utils/types';
|
|
5
5
|
export declare type DetailPageHeaderTemplateProps = UsingProps<PageHeaderTemplateProps, 'breadcrumbs' | 'heading', 'actions' | 'banner' | 'pills' | 'subheading' | 'tabs' | 'toggleAction'>;
|
|
6
|
-
export declare type DetailPageFooterTemplateProps = UsingProps<PageFooterTemplateProps, 'actions',
|
|
6
|
+
export declare type DetailPageFooterTemplateProps = UsingProps<PageFooterTemplateProps, 'actions',
|
|
7
|
+
/**
|
|
8
|
+
* @a11y @deprecated required is deprecated as this is not the correct placement of this for accessibility
|
|
9
|
+
* and will be removed in a future version, only being notation
|
|
10
|
+
* @deprecatedSince 12.48.0
|
|
11
|
+
*/
|
|
12
|
+
'required' | 'notation'>;
|
|
7
13
|
export declare type DetailPageTemplateProps = Pick<PageTemplateProps, 'header' | 'footer' | 'pane' | 'children'> & {
|
|
8
14
|
/**
|
|
9
15
|
* @since 12.20.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPageTemplate.types.js","names":[],"sources":["../../src/DetailPageTemplate/DetailPageTemplate.types.ts"],"sourcesContent":["import type { PageFooterTemplateProps } from '../PageTemplate/PageFooterTemplate'\nimport type { PageHeaderTemplateProps } from '../PageTemplate/PageHeaderTemplate'\nimport type { PageTemplateProps } from '../PageTemplate/PageTemplate'\n\nimport type { UsingProps } from '../_utils/types'\n\nexport type DetailPageHeaderTemplateProps = UsingProps<\n PageHeaderTemplateProps,\n 'breadcrumbs' | 'heading',\n 'actions' | 'banner' | 'pills' | 'subheading' | 'tabs' | 'toggleAction'\n>\n\nexport type DetailPageFooterTemplateProps = UsingProps<\n PageFooterTemplateProps,\n 'actions',\n 'required' | 'notation'\n>\n\nexport type DetailPageTemplateProps = Pick<\n PageTemplateProps,\n 'header' | 'footer' | 'pane' | 'children'\n> & {\n /**\n * @since 12.20.0\n */\n headerProps?: DetailPageHeaderTemplateProps\n /**\n * @since 12.20.0\n */\n footerProps?: PageFooterTemplateProps\n /**\n * @since 12.20.0\n */\n hasNavigation?: boolean\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"DetailPageTemplate.types.js","names":[],"sources":["../../src/DetailPageTemplate/DetailPageTemplate.types.ts"],"sourcesContent":["import type { PageFooterTemplateProps } from '../PageTemplate/PageFooterTemplate'\nimport type { PageHeaderTemplateProps } from '../PageTemplate/PageHeaderTemplate'\nimport type { PageTemplateProps } from '../PageTemplate/PageTemplate'\n\nimport type { UsingProps } from '../_utils/types'\n\nexport type DetailPageHeaderTemplateProps = UsingProps<\n PageHeaderTemplateProps,\n 'breadcrumbs' | 'heading',\n 'actions' | 'banner' | 'pills' | 'subheading' | 'tabs' | 'toggleAction'\n>\n\nexport type DetailPageFooterTemplateProps = UsingProps<\n PageFooterTemplateProps,\n 'actions',\n /**\n * @a11y @deprecated required is deprecated as this is not the correct placement of this for accessibility\n * and will be removed in a future version, only being notation\n * @deprecatedSince 12.48.0\n */\n 'required' | 'notation'\n>\n\nexport type DetailPageTemplateProps = Pick<\n PageTemplateProps,\n 'header' | 'footer' | 'pane' | 'children'\n> & {\n /**\n * @since 12.20.0\n */\n headerProps?: DetailPageHeaderTemplateProps\n /**\n * @since 12.20.0\n */\n footerProps?: PageFooterTemplateProps\n /**\n * @since 12.20.0\n */\n hasNavigation?: boolean\n}\n"],"mappings":""}
|
|
@@ -5,15 +5,15 @@ import { Card } from '../Card/Card';
|
|
|
5
5
|
import { Spinner } from '../Spinner/Spinner';
|
|
6
6
|
export var StyledDropdownMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
7
7
|
displayName: "StyledDropdownMenu",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_50_0__sc-ufsy2q-0"
|
|
9
9
|
})(["display:flex;max-height:40vh;max-width:248px;min-width:inherit;"]);
|
|
10
10
|
export var StyledDropdownSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
11
11
|
displayName: "StyledDropdownSpinner",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_50_0__sc-ufsy2q-1"
|
|
13
13
|
})(["margin:0 6px;"]);
|
|
14
14
|
export var StyledDropdownButton = /*#__PURE__*/styled(Button).withConfig({
|
|
15
15
|
displayName: "StyledDropdownButton",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_50_0__sc-ufsy2q-2"
|
|
17
17
|
})(["pointer-events:", ";", ""], function (_ref) {
|
|
18
18
|
var disabled = _ref.disabled,
|
|
19
19
|
$loading = _ref.$loading;
|
|
@@ -6,18 +6,18 @@ import { getEllipsis } from '../_styles/mixins';
|
|
|
6
6
|
import { spacing } from '../_styles/spacing';
|
|
7
7
|
export var StyledDropdownFlyout = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledDropdownFlyout",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_50_0__sc-1i79jsg-0"
|
|
10
10
|
})(["display:flex;flex-wrap:wrap;flex-direction:column;width:100%;max-height:855px;padding:", "px 0;"], spacing.sm);
|
|
11
11
|
export var StyledDropdownFlyoutItem = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledDropdownFlyoutItem",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_50_0__sc-1i79jsg-1"
|
|
14
14
|
})(["display:flex;justify-content:space-between;cursor:pointer;width:100%;padding:", "px ", "px;color:", ";", " &[data-highlighted='true'],&:hover{background-color:", ";}"], spacing.xs, spacing.lg, colors.gray20, getTypographyIntent('body'), colors.gray96);
|
|
15
15
|
export var StyledDropdownFlyoutLabel = /*#__PURE__*/styled.span.withConfig({
|
|
16
16
|
displayName: "StyledDropdownFlyoutLabel",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_50_0__sc-1i79jsg-2"
|
|
18
18
|
})(["", ""], getEllipsis());
|
|
19
19
|
export var StyledDropdownFlyoutExpandIcon = /*#__PURE__*/styled.span.withConfig({
|
|
20
20
|
displayName: "StyledDropdownFlyoutExpandIcon",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-12_50_0__sc-1i79jsg-3"
|
|
22
22
|
})(["position:relative;display:inline-flex;align-self:center;flex-shrink:0;margin-left:", "px;white-space:nowrap;", ""], spacing.lg, arrowRight(4, 'black'));
|
|
23
23
|
//# sourceMappingURL=DropdownFlyout.styles.js.map
|
|
@@ -95,7 +95,7 @@ export function MultipleErrors(props) {
|
|
|
95
95
|
// make error banner accessible as a styled-components selector
|
|
96
96
|
export var DropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBannerBase).withConfig({
|
|
97
97
|
displayName: "DropzoneErrorBanner",
|
|
98
|
-
componentId: "core-
|
|
98
|
+
componentId: "core-12_50_0__sc-l4fojb-0"
|
|
99
99
|
})([""]);
|
|
100
100
|
function DropzoneContainer(_ref2) {
|
|
101
101
|
var active = _ref2.active,
|
|
@@ -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
|
+
componentId: "core-12_50_0__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-
|
|
16
|
+
componentId: "core-12_50_0__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-
|
|
20
|
+
componentId: "core-12_50_0__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-
|
|
29
|
+
componentId: "core-12_50_0__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-
|
|
46
|
+
componentId: "core-12_50_0__sc-by95hy-4"
|
|
47
47
|
})(["user-select:none;"]);
|
|
48
48
|
export var StyledUploadButton = /*#__PURE__*/styled(Button).withConfig({
|
|
49
49
|
displayName: "StyledUploadButton",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_50_0__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-
|
|
54
|
+
componentId: "core-12_50_0__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-
|
|
61
|
+
componentId: "core-12_50_0__sc-by95hy-7"
|
|
62
62
|
})(["height:100%;"]);
|
|
63
63
|
export var StyledDropzoneFocusDetector = /*#__PURE__*/styled(Box).withConfig({
|
|
64
64
|
displayName: "StyledDropzoneFocusDetector",
|
|
65
|
-
componentId: "core-
|
|
65
|
+
componentId: "core-12_50_0__sc-by95hy-8"
|
|
66
66
|
})(["height:100%;"]);
|
|
67
67
|
//# sourceMappingURL=Dropzone.styles.js.map
|
|
@@ -5,27 +5,27 @@ import { spacing } from '../_styles/spacing';
|
|
|
5
5
|
var emptyStateWidth = 312;
|
|
6
6
|
export var StyledSvg = /*#__PURE__*/styled.svg.withConfig({
|
|
7
7
|
displayName: "StyledSvg",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_50_0__sc-1xaoo8n-0"
|
|
9
9
|
})(["width:200px;height:200px;"]);
|
|
10
10
|
export var StyledImage = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledImage",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_50_0__sc-1xaoo8n-1"
|
|
13
13
|
})([""]);
|
|
14
14
|
export var StyledTitle = /*#__PURE__*/styled.p.withConfig({
|
|
15
15
|
displayName: "StyledTitle",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_50_0__sc-1xaoo8n-2"
|
|
17
17
|
})(["color:", ";max-width:", "px;width:100%;margin:0;", ""], colors.gray15, emptyStateWidth, getTypographyIntent('h2'));
|
|
18
18
|
export var StyledDescription = /*#__PURE__*/styled.p.withConfig({
|
|
19
19
|
displayName: "StyledDescription",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_50_0__sc-1xaoo8n-3"
|
|
21
21
|
})(["margin-top:", "px;margin-bottom:0;color:", ";max-width:", "px;width:100%;", ""], spacing.lg, colors.gray45, emptyStateWidth, getTypographyIntent('body'));
|
|
22
22
|
export var StyledActions = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledActions",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_50_0__sc-1xaoo8n-4"
|
|
25
25
|
})(["margin-top:", "px;"], spacing.xl);
|
|
26
26
|
export var StyledEmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
27
27
|
displayName: "StyledEmptyState",
|
|
28
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-12_50_0__sc-1xaoo8n-5"
|
|
29
29
|
})(["display:flex;justify-content:center;align-items:", ";gap:", "px;flex-direction:", ";margin-top:", "px;margin-bottom:", "px;", "{> img{max-width:200px;}}", " ", "}"], function (_ref) {
|
|
30
30
|
var $isHorizontal = _ref.$isHorizontal;
|
|
31
31
|
return $isHorizontal ? 'flex-start' : 'center';
|
|
@@ -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-
|
|
5
|
+
componentId: "core-12_50_0__sc-1q3pe6s-0"
|
|
6
6
|
})(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
|
|
7
7
|
export var StyledFieldHeader = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledFieldHeader",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_50_0__sc-1q3pe6s-1"
|
|
10
10
|
})(["", " > ", "{", "}"], getSmallIconBodyTextRules, StyledP, getSmallIconBodyTextRules);
|
|
11
11
|
export var StyledFieldFooter = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledFieldFooter",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_50_0__sc-1q3pe6s-2"
|
|
14
14
|
})(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
|
|
15
15
|
//# sourceMappingURL=Field.styles.js.map
|
|
@@ -3,14 +3,14 @@ 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-
|
|
6
|
+
componentId: "core-12_50_0__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-
|
|
10
|
+
componentId: "core-12_50_0__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 StyledFileListItemDownloadIcon = /*#__PURE__*/styled(LinkButton).withConfig({
|
|
13
13
|
displayName: "StyledFileListItemDownloadIcon",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_50_0__sc-7gltjc-2"
|
|
15
15
|
})(["margin-left:", "px;align-self:flex-start;"], spacing.sm);
|
|
16
16
|
//# 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-
|
|
15
|
+
componentId: "core-12_50_0__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-
|
|
21
|
+
componentId: "core-12_50_0__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-
|
|
25
|
+
componentId: "core-12_50_0__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-
|
|
29
|
+
componentId: "core-12_50_0__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-
|
|
33
|
+
componentId: "core-12_50_0__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-
|
|
37
|
+
componentId: "core-12_50_0__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-
|
|
41
|
+
componentId: "core-12_50_0__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-
|
|
45
|
+
componentId: "core-12_50_0__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-
|
|
49
|
+
componentId: "core-12_50_0__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-
|
|
6
|
+
componentId: "core-12_50_0__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-
|
|
10
|
+
componentId: "core-12_50_0__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-
|
|
14
|
+
componentId: "core-12_50_0__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-
|
|
6
|
+
componentId: "core-12_50_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-
|
|
10
|
+
componentId: "core-12_50_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-
|
|
8
|
+
componentId: "core-12_50_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-
|
|
15
|
+
componentId: "core-12_50_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-
|
|
22
|
+
componentId: "core-12_50_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-
|
|
6
|
+
componentId: "core-12_50_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-
|
|
10
|
+
componentId: "core-12_50_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-
|
|
16
|
+
componentId: "core-12_50_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-
|
|
26
|
+
componentId: "core-12_50_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-
|
|
30
|
+
componentId: "core-12_50_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-
|
|
34
|
+
componentId: "core-12_50_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-
|
|
38
|
+
componentId: "core-12_50_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-
|
|
42
|
+
componentId: "core-12_50_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%;';
|
|
@@ -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-
|
|
18
|
+
componentId: "core-12_50_0__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-
|
|
22
|
+
componentId: "core-12_50_0__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-
|
|
26
|
+
componentId: "core-12_50_0__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-
|
|
33
|
+
componentId: "core-12_50_0__sc-psqe8z-3"
|
|
34
34
|
})(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
|
|
35
35
|
//# sourceMappingURL=LocalSource.styles.js.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Props } from '../../_utils/types';
|
|
3
3
|
export interface SourceItemProps extends Props {
|
|
4
|
+
/**
|
|
5
|
+
* Label content displayed inside the source item. When the label overflows,
|
|
6
|
+
* it is shown in a tooltip. Guideline: keep label text under 200 characters
|
|
7
|
+
* to avoid tooltip truncation at small viewports or high zoom levels.
|
|
8
|
+
* @since 10.19.0
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
4
11
|
/**
|
|
5
12
|
* @since 10.19.0
|
|
6
13
|
*/
|