@procore/core-react 12.53.4 → 12.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.js +2 -0
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- 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.d.ts +1 -0
- package/dist/Banner/Banner.js +31 -14
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +10 -0
- package/dist/Banner/Banner.styles.js +29 -12
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.d.ts +1 -1
- package/dist/Banner/Banner.types.js.map +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +7 -6
- package/dist/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +10 -10
- 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.styles.js +11 -9
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.js +8 -0
- package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
- 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 +17 -14
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js +4 -2
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +5 -4
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
- 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 +6 -5
- package/dist/FileSelect/LocalSource/LocalSource.styles.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +13 -11
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js.map +1 -1
- 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.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 +12 -11
- package/dist/ListPage/ListPage.styles.js.map +1 -1
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/Modal/Modal.js +0 -2
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +44 -32
- package/dist/Modal/Modal.styles.js.map +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/OverlayTrigger/OverlayTrigger.js +12 -3
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +14 -0
- package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
- package/dist/OverlayTrigger/a11yPresets.d.ts +19 -3
- package/dist/OverlayTrigger/a11yPresets.js +16 -6
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/PageLayout/PageLayout.js +15 -4
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +35 -34
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageLayout/PageLayout.types.d.ts +1 -0
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/PageLayout/PageLayout.utils.d.ts +11 -0
- package/dist/PageLayout/PageLayout.utils.js +45 -0
- package/dist/PageLayout/PageLayout.utils.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js +2 -2
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +5 -0
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +9 -2
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.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 +17 -16
- package/dist/Panel/Panel.styles.js.map +1 -1
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +5 -5
- package/dist/Popover/Popover.js +6 -1
- package/dist/Popover/Popover.js.map +1 -1
- 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.styles.js +3 -3
- 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 +5 -2
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +8 -8
- 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 +15 -13
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.js +8 -0
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/SuperSelect/useSuperSelect.js +20 -4
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.js +63 -2
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +31 -30
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +11 -3
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tearsheet/Tearsheet.js +4 -3
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -0
- package/dist/Thumbnail/Thumbnail.styles.js +22 -22
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- 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 +11 -9
- package/dist/Title/Title.styles.js.map +1 -1
- 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 +15 -10
- package/dist/ToolHeader/ToolHeader.styles.js.map +1 -1
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.js +7 -1
- package/dist/Tooltip/Tooltip.js.map +1 -1
- 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/_hooks/I18n.d.ts +33 -13
- package/dist/_hooks/I18n.js +2 -0
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_locales/de-DE.json +1 -0
- package/dist/_locales/en-AU.json +1 -0
- package/dist/_locales/en-CA.json +1 -0
- package/dist/_locales/en-GB.json +1 -0
- package/dist/_locales/en.json +3 -1
- package/dist/_locales/es-ES.json +1 -0
- package/dist/_locales/es.json +1 -0
- package/dist/_locales/fr-CA.json +1 -0
- package/dist/_locales/fr-FR.json +1 -0
- package/dist/_locales/is-IS.json +1 -0
- package/dist/_locales/it-IT.json +1 -0
- package/dist/_locales/ja-JP.json +1 -0
- package/dist/_locales/nb-NO.json +2 -1
- package/dist/_locales/pl-PL.json +1 -0
- package/dist/_locales/pseudo.json +3 -1
- package/dist/_locales/pt-BR.json +1 -0
- package/dist/_locales/pt-PT.json +3 -2
- package/dist/_locales/th-TH.json +1 -0
- package/dist/_locales/zh-SG.json +1 -0
- package/dist/_locales/zh-TW.json +2 -1
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +5 -4
- package/dist/_storyHelpers_/components/StoryGrid.js.map +1 -1
- package/dist/_storyHelpers_/highZoom.d.ts +68 -0
- package/dist/_storyHelpers_/highZoom.js +72 -0
- package/dist/_storyHelpers_/highZoom.js.map +1 -0
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +7 -7
- 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 +18 -18
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +12 -12
- 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 +17 -17
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/DetailPageTemplate/DetailPageTemplate.types.json +3 -3
- package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +37 -37
- package/dist/_typedoc/Dropzone/Dropzone.types.json +50 -50
- 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 +17 -17
- 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 +783 -783
- 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 +81 -81
- 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 +90 -90
- package/dist/_typedoc/Modal/Modal.types.json +48 -48
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +34 -34
- 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 +44 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +42 -42
- 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 +5 -5
- 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 -67
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/SettingsPageTemplate/SettingsPageTemplate.types.json +3 -3
- 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 +108 -108
- package/dist/_typedoc/Tabs/Tablist.types.json +10 -10
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- 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/ToolLandingPageTemplate/ToolLandingPageTemplate.types.json +2 -2
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +132 -132
- 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/package.json +2 -2
- package/dist/_hooks/ScrollLock.d.ts +0 -1
- package/dist/_hooks/ScrollLock.js +0 -31
- package/dist/_hooks/ScrollLock.js.map +0 -1
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
2
|
import { StyledAnchorNavigation } from '../AnchorNavigation/AnchorNavigation.styles';
|
|
3
|
+
import { StyledPanel, StyledBody as StyledPanelBody } from '../Panel/Panel.styles';
|
|
3
4
|
import { StyledRequiredContainer } from '../Required/Required.styles';
|
|
4
5
|
import { minScrimSize } from '../Tearsheet/Tearsheet.styles';
|
|
5
6
|
import { colors } from '../_styles/colors';
|
|
6
7
|
import { getShadow } from '../_styles/shadows';
|
|
7
8
|
import { spacing } from '../_styles/spacing';
|
|
8
9
|
import { isIE11 } from '../_utils/isIE11';
|
|
9
|
-
import { mediaBreakpointsDown } from './PageLayout.utils';
|
|
10
|
+
import { mediaBreakpointsDown, mediaHeightDown } from './PageLayout.utils';
|
|
10
11
|
var headerVerticalSpacing = spacing.sm;
|
|
11
12
|
var outerPageSpacing = spacing.lg;
|
|
12
13
|
var outerPageSpacingSmaller = spacing.md;
|
|
13
14
|
export var StyledPageHeader = /*#__PURE__*/styled.div.withConfig({
|
|
14
15
|
displayName: "StyledPageHeader",
|
|
15
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_54_0__sc-1cvdbsv-0"
|
|
16
17
|
})(["padding-top:", "px;padding-right:", "px;padding-left:", "px;@media ", "{padding-right:", "px;padding-left:", "px;}", ""], headerVerticalSpacing, outerPageSpacing, outerPageSpacing, mediaBreakpointsDown.tabletMd, outerPageSpacingSmaller, outerPageSpacingSmaller, function (_ref) {
|
|
17
18
|
var $transparent = _ref.$transparent;
|
|
18
19
|
return !$transparent && css(["", " background-color:", ";"], getShadow(1.5), colors.white);
|
|
19
20
|
});
|
|
20
21
|
export var StyledPageHeaderItem = /*#__PURE__*/styled.div.withConfig({
|
|
21
22
|
displayName: "StyledPageHeaderItem",
|
|
22
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_54_0__sc-1cvdbsv-1"
|
|
23
24
|
})(["margin-top:", "px;&:first-child{margin-top:0;}"], headerVerticalSpacing);
|
|
24
25
|
export var StyledPageTitle = /*#__PURE__*/styled(StyledPageHeaderItem).withConfig({
|
|
25
26
|
displayName: "StyledPageTitle",
|
|
26
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-12_54_0__sc-1cvdbsv-2"
|
|
27
28
|
})(["&:last-child{padding-bottom:", "px;}"], headerVerticalSpacing);
|
|
28
29
|
export var StyledPageBreadcrumbs = /*#__PURE__*/styled(StyledPageHeaderItem).attrs({
|
|
29
30
|
as: 'nav'
|
|
30
31
|
}).withConfig({
|
|
31
32
|
displayName: "StyledPageBreadcrumbs",
|
|
32
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_54_0__sc-1cvdbsv-3"
|
|
33
34
|
})([""]);
|
|
34
35
|
export var StyledPageBanner = /*#__PURE__*/styled(StyledPageHeaderItem).withConfig({
|
|
35
36
|
displayName: "StyledPageBanner",
|
|
36
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_54_0__sc-1cvdbsv-4"
|
|
37
38
|
})([""]);
|
|
38
39
|
export var getActions = function getActions() {
|
|
39
40
|
return css(["flex-shrink:0;padding-left:", "px;> button,> a{&:first-child{margin-left:0;}margin-left:", "px;}"], spacing.xl, spacing.sm);
|
|
40
41
|
};
|
|
41
42
|
export var StyledPageActions = /*#__PURE__*/styled.div.withConfig({
|
|
42
43
|
displayName: "StyledPageActions",
|
|
43
|
-
componentId: "core-
|
|
44
|
+
componentId: "core-12_54_0__sc-1cvdbsv-5"
|
|
44
45
|
})(["", ""], getActions());
|
|
45
46
|
export var StyledPageTabs = /*#__PURE__*/styled(StyledPageHeaderItem).withConfig({
|
|
46
47
|
displayName: "StyledPageTabs",
|
|
47
|
-
componentId: "core-
|
|
48
|
+
componentId: "core-12_54_0__sc-1cvdbsv-6"
|
|
48
49
|
})([""]);
|
|
49
50
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
50
51
|
displayName: "StyledBody",
|
|
51
|
-
componentId: "core-
|
|
52
|
+
componentId: "core-12_54_0__sc-1cvdbsv-7"
|
|
52
53
|
})(["flex-grow:1;padding-top:", "px;padding-left:", "px;padding-right:", "px;@media ", "{padding-top:", "px;padding-left:", "px;padding-right:", "px;}> ", "{margin-bottom:16px;}"], outerPageSpacing, outerPageSpacing, outerPageSpacing, mediaBreakpointsDown.tabletMd, outerPageSpacingSmaller, outerPageSpacingSmaller, outerPageSpacingSmaller, StyledRequiredContainer);
|
|
53
54
|
var navigationWidth = 200;
|
|
54
55
|
export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
|
|
55
56
|
displayName: "StyledNavigation",
|
|
56
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_54_0__sc-1cvdbsv-8"
|
|
57
58
|
})(["float:left;max-height:100vh;min-width:", "px;overflow-y:auto;position:sticky;top:0;width:", "px;", "{padding:20px ", "px 0 0;}@media screen and (max-width:1024px){display:none;}"], navigationWidth, navigationWidth, StyledAnchorNavigation, spacing.sm);
|
|
58
59
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
|
59
60
|
displayName: "StyledContent",
|
|
60
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-12_54_0__sc-1cvdbsv-9"
|
|
61
62
|
})([""]);
|
|
62
63
|
var panelWidth = 400;
|
|
63
64
|
var zIndexes = {
|
|
64
|
-
|
|
65
|
-
panelNarrowScreen: 1,
|
|
65
|
+
panel: 3,
|
|
66
66
|
footer: 2
|
|
67
67
|
};
|
|
68
68
|
export var animationDuration = {
|
|
@@ -70,17 +70,17 @@ export var animationDuration = {
|
|
|
70
70
|
};
|
|
71
71
|
export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
|
|
72
72
|
displayName: "StyledFooter",
|
|
73
|
-
componentId: "core-
|
|
74
|
-
})(["background-color:", ";", " position:sticky;bottom:0;z-index:", ";", ""], colors.white, function (_ref2) {
|
|
73
|
+
componentId: "core-12_54_0__sc-1cvdbsv-10"
|
|
74
|
+
})(["background-color:", ";", " position:sticky;bottom:0;z-index:", ";", " @media ", "{position:static;box-shadow:none;}"], colors.white, function (_ref2) {
|
|
75
75
|
var $hasShadow = _ref2.$hasShadow;
|
|
76
76
|
return $hasShadow && getShadow(2, 'top');
|
|
77
77
|
}, zIndexes.footer, function (_ref3) {
|
|
78
78
|
var $isAsideOpen = _ref3.$isAsideOpen;
|
|
79
79
|
return $isAsideOpen && css(["@media ", "{z-index:", ";}"], mediaBreakpointsDown.tabletMd, zIndexes.footer);
|
|
80
|
-
});
|
|
80
|
+
}, mediaHeightDown["short"]);
|
|
81
81
|
export var StyledAside = /*#__PURE__*/styled.div.withConfig({
|
|
82
82
|
displayName: "StyledAside",
|
|
83
|
-
componentId: "core-
|
|
83
|
+
componentId: "core-12_54_0__sc-1cvdbsv-11"
|
|
84
84
|
})(["", " @media ", "{position:absolute;right:0;}"], function (_ref4) {
|
|
85
85
|
var $closed = _ref4.$closed,
|
|
86
86
|
$open = _ref4.$open;
|
|
@@ -100,26 +100,27 @@ var getPanelAnimation = function getPanelAnimation() {
|
|
|
100
100
|
};
|
|
101
101
|
export var StyledAsidePanel = /*#__PURE__*/styled.div.withConfig({
|
|
102
102
|
displayName: "StyledAsidePanel",
|
|
103
|
-
componentId: "core-
|
|
104
|
-
})(["", " @media ", "{", "}", " ", " border-left:1px solid ", ";width:", "px;position:fixed;background-color:", ";overflow:auto;z-index:", ";", " ", ""], function (_ref7) {
|
|
105
|
-
var $
|
|
106
|
-
return css(["@media ", "{", " border-left:0;z-index:", ";right:", "px;}"], mediaBreakpointsDown.tabletMd, getShadow(2), zIndexes.panelNarrowScreen, $rightOffset);
|
|
107
|
-
}, mediaBreakpointsDown.tabletMd, getPanelAnimation(), function (_ref8) {
|
|
108
|
-
var $altAnimation = _ref8.$altAnimation;
|
|
103
|
+
componentId: "core-12_54_0__sc-1cvdbsv-12"
|
|
104
|
+
})(["@media ", "{", " border-left:0;}@media ", "{", "}", " ", " border-left:1px solid ", ";width:", "px;position:fixed;background-color:", ";overflow:auto;z-index:", ";", " ", " ", " @media ", "{> ", "{height:auto;min-height:100%;overflow:visible;> ", "{flex:1 0 auto;height:auto;overflow:visible;}}}"], mediaBreakpointsDown.tabletMd, getShadow(2), mediaBreakpointsDown.tabletMd, getPanelAnimation(), function (_ref7) {
|
|
105
|
+
var $altAnimation = _ref7.$altAnimation;
|
|
109
106
|
return $altAnimation && getPanelAnimation();
|
|
110
|
-
}, function (
|
|
111
|
-
var $closed =
|
|
107
|
+
}, function (_ref8) {
|
|
108
|
+
var $closed = _ref8.$closed;
|
|
112
109
|
return $closed && css(["display:none;"]);
|
|
113
|
-
}, colors.gray85, panelWidth, colors.gray96, zIndexes.
|
|
114
|
-
var $minusHeight =
|
|
110
|
+
}, colors.gray85, panelWidth, colors.gray96, zIndexes.panel, function (_ref9) {
|
|
111
|
+
var $minusHeight = _ref9.$minusHeight;
|
|
115
112
|
return css(["height:calc(100dvh - ", "px);"], $minusHeight);
|
|
116
|
-
}, function (
|
|
117
|
-
var $offsetTop =
|
|
113
|
+
}, function (_ref0) {
|
|
114
|
+
var $offsetTop = _ref0.$offsetTop;
|
|
118
115
|
return $offsetTop !== null && css(["top:", "px;"], $offsetTop);
|
|
119
|
-
})
|
|
116
|
+
}, function (_ref1) {
|
|
117
|
+
var $offsetTop = _ref1.$offsetTop,
|
|
118
|
+
$rightOffset = _ref1.$rightOffset;
|
|
119
|
+
return css(["@media ", "{left:0;right:", "px;width:auto;height:calc(100dvh - ", "px);}"], mediaBreakpointsDown.tabletMd, $rightOffset, $offsetTop !== null && $offsetTop !== void 0 ? $offsetTop : 0);
|
|
120
|
+
}, mediaHeightDown["short"], StyledPanel, StyledPanelBody);
|
|
120
121
|
export var StyledPageMain = /*#__PURE__*/styled.div.withConfig({
|
|
121
122
|
displayName: "StyledPageMain",
|
|
122
|
-
componentId: "core-
|
|
123
|
+
componentId: "core-12_54_0__sc-1cvdbsv-13"
|
|
123
124
|
})(["position:relative;max-width:100%;background-color:", ";", " ", " ", " ", ""], colors.gray96, function () {
|
|
124
125
|
return isIE11() && css(["flex:1 0 0%;"]);
|
|
125
126
|
}, function (p) {
|
|
@@ -138,15 +139,15 @@ export var StyledPageMain = /*#__PURE__*/styled.div.withConfig({
|
|
|
138
139
|
});
|
|
139
140
|
export var StyledPageContainer = /*#__PURE__*/styled.div.withConfig({
|
|
140
141
|
displayName: "StyledPageContainer",
|
|
141
|
-
componentId: "core-
|
|
142
|
-
})(["display:grid;grid-template-columns:1fr auto;height:", ";", ""], function (p) {
|
|
142
|
+
componentId: "core-12_54_0__sc-1cvdbsv-14"
|
|
143
|
+
})(["display:grid;grid-template-columns:1fr auto;@media ", "{grid-template-columns:minmax(0,1fr) auto;> *{min-width:0;}}height:", ";", ""], mediaBreakpointsDown.tabletMd, function (p) {
|
|
143
144
|
return p.$fillHeight ? '100%' : '';
|
|
144
145
|
}, function () {
|
|
145
146
|
return isIE11() && css(["display:flex;flex-wrap:wrap;"]);
|
|
146
147
|
});
|
|
147
148
|
export var StyledAsideFluidContainer = /*#__PURE__*/styled.div.withConfig({
|
|
148
149
|
displayName: "StyledAsideFluidContainer",
|
|
149
|
-
componentId: "core-
|
|
150
|
+
componentId: "core-12_54_0__sc-1cvdbsv-15"
|
|
150
151
|
})(["", ""], function (_ref11) {
|
|
151
152
|
var $closed = _ref11.$closed,
|
|
152
153
|
$open = _ref11.$open;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.styles.js","names":["styled","css","keyframes","StyledAnchorNavigation","StyledRequiredContainer","minScrimSize","colors","getShadow","spacing","isIE11","mediaBreakpointsDown","headerVerticalSpacing","sm","outerPageSpacing","lg","outerPageSpacingSmaller","md","StyledPageHeader","div","withConfig","displayName","componentId","tabletMd","_ref","$transparent","white","StyledPageHeaderItem","StyledPageTitle","StyledPageBreadcrumbs","attrs","as","StyledPageBanner","getActions","xl","StyledPageActions","StyledPageTabs","StyledBody","navigationWidth","StyledNavigation","StyledContent","panelWidth","zIndexes","panelWideScreen","panelNarrowScreen","footer","animationDuration","panel","StyledFooter","_ref2","$hasShadow","_ref3","$isAsideOpen","StyledAside","_ref4","$closed","$open","slideDistance","slideIn","slideOut","getPanelAnimation","_ref5","$opening","_ref6","$closing","StyledAsidePanel","_ref7","$rightOffset","_ref8","$altAnimation","_ref9","gray85","gray96","_ref0","$minusHeight","_ref1","$offsetTop","StyledPageMain","p","$fillHeight","$flex","_ref10","$tearsheetPlacement","includes","StyledPageContainer","StyledAsideFluidContainer","_ref11"],"sources":["../../src/PageLayout/PageLayout.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledAnchorNavigation } from '../AnchorNavigation/AnchorNavigation.styles'\nimport { StyledRequiredContainer } from '../Required/Required.styles'\nimport { minScrimSize } from '../Tearsheet/Tearsheet.styles'\nimport type { Placement } from '../Tearsheet/Tearsheet.types'\nimport { colors } from '../_styles/colors'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport { isIE11 } from '../_utils/isIE11'\nimport { mediaBreakpointsDown } from './PageLayout.utils'\n\nconst headerVerticalSpacing = spacing.sm\nconst outerPageSpacing = spacing.lg\nconst outerPageSpacingSmaller = spacing.md\n\nexport const StyledPageHeader = styled.div<{ $transparent?: boolean }>`\n padding-top: ${headerVerticalSpacing}px;\n padding-right: ${outerPageSpacing}px;\n padding-left: ${outerPageSpacing}px;\n\n @media ${mediaBreakpointsDown.tabletMd} {\n padding-right: ${outerPageSpacingSmaller}px;\n padding-left: ${outerPageSpacingSmaller}px;\n }\n\n ${({ $transparent }) =>\n !$transparent &&\n css`\n ${getShadow(1.5)}\n background-color: ${colors.white};\n `}\n`\n\nexport const StyledPageHeaderItem = styled.div`\n margin-top: ${headerVerticalSpacing}px;\n\n &:first-child {\n margin-top: 0;\n }\n`\n\nexport const StyledPageTitle = styled(StyledPageHeaderItem)`\n &:last-child {\n padding-bottom: ${headerVerticalSpacing}px;\n }\n`\n\nexport const StyledPageBreadcrumbs = styled(StyledPageHeaderItem).attrs({\n as: 'nav',\n})``\n\nexport const StyledPageBanner = styled(StyledPageHeaderItem)``\n\nexport const getActions = () => css`\n flex-shrink: 0;\n padding-left: ${spacing.xl}px;\n\n > button,\n > a {\n &:first-child {\n margin-left: 0;\n }\n\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledPageActions = styled.div`\n ${getActions()}\n`\n\nexport const StyledPageTabs = styled(StyledPageHeaderItem)``\n\nexport const StyledBody = styled.div`\n flex-grow: 1;\n padding-top: ${outerPageSpacing}px;\n padding-left: ${outerPageSpacing}px;\n padding-right: ${outerPageSpacing}px;\n\n @media ${mediaBreakpointsDown.tabletMd} {\n padding-top: ${outerPageSpacingSmaller}px;\n padding-left: ${outerPageSpacingSmaller}px;\n padding-right: ${outerPageSpacingSmaller}px;\n }\n\n > ${StyledRequiredContainer} {\n margin-bottom: 16px;\n }\n`\n\nconst navigationWidth = 200\n\nexport const StyledNavigation = styled.div`\n float: left;\n max-height: 100vh;\n min-width: ${navigationWidth}px;\n overflow-y: auto;\n position: sticky;\n top: 0;\n width: ${navigationWidth}px;\n\n ${StyledAnchorNavigation} {\n padding: 20px ${spacing.sm}px 0 0;\n }\n\n @media screen and (max-width: 1024px) {\n display: none;\n }\n`\n\nexport const StyledContent = styled.div``\n\nconst panelWidth = 400\nconst zIndexes = {\n panelWideScreen: 3,\n panelNarrowScreen: 1,\n footer: 2,\n}\n\nexport const animationDuration = {\n panel: 600,\n}\n\nexport const StyledFooter = styled.div<{\n $isAsideOpen: boolean\n $hasShadow: boolean\n}>`\n background-color: ${colors.white};\n\n ${({ $hasShadow }) => $hasShadow && getShadow(2, 'top')}\n\n position: sticky;\n bottom: 0;\n z-index: ${zIndexes.footer};\n\n ${({ $isAsideOpen }) =>\n $isAsideOpen &&\n css`\n @media ${mediaBreakpointsDown.tabletMd} {\n z-index: ${zIndexes.footer};\n }\n `}\n`\n\nexport const StyledAside = styled.div<{ $open: boolean; $closed: boolean }>`\n ${({ $closed, $open }) =>\n isIE11() &&\n css`\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 0;\n\n transition: flex-basis ${animationDuration.panel}ms;\n\n ${$closed &&\n css`\n flex-basis: 0;\n `}\n\n ${$open &&\n css`\n flex-basis: ${panelWidth}px;\n `}\n `}\n\n // remove aside block from the main flow on smaller screens, enabling overlay-like positioning\n @media ${mediaBreakpointsDown.tabletMd} {\n position: absolute;\n right: 0;\n }\n`\n\nconst slideDistance = '100%'\n\nconst slideIn = keyframes`\n from {\n transform: translateX(${slideDistance});\n }\n to {\n transform: translateX(0);\n }\n`\n\nconst slideOut = keyframes`\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(${slideDistance});\n }\n`\n\nconst getPanelAnimation = () => css<{ $opening: boolean; $closing: boolean }>`\n ${({ $opening }) =>\n $opening &&\n css`\n animation: ${slideIn} ease-out ${animationDuration.panel}ms;\n `}\n\n ${({ $closing }) =>\n $closing &&\n css`\n animation: ${slideOut} ease-out ${animationDuration.panel}ms;\n `}\n`\n\nexport const StyledAsidePanel = styled.div<{\n $offsetTop: number | null\n $minusHeight: number\n $closing: boolean\n $closed: boolean\n $opening: boolean\n $rightOffset: number\n $altAnimation: boolean\n}>`\n // position panel behind the page sticky footer on smaller screens\n ${({ $rightOffset }) => css`\n @media ${mediaBreakpointsDown.tabletMd} {\n ${getShadow(2)}\n border-left: 0;\n z-index: ${zIndexes.panelNarrowScreen};\n right: ${$rightOffset}px;\n }\n `}\n\n /*\n * On smaller screens, the panel is positioned absolutely,\n * so the animation needs to happen here\n */\n @media ${mediaBreakpointsDown.tabletMd} {\n ${getPanelAnimation()}\n }\n\n ${({ $altAnimation }) => $altAnimation && getPanelAnimation()}\n\n ${({ $closed }) =>\n $closed &&\n css`\n display: none;\n `}\n\n border-left: 1px solid ${colors.gray85};\n width: ${panelWidth}px;\n position: fixed;\n background-color: ${colors.gray96};\n\n overflow: auto;\n z-index: ${zIndexes.panelWideScreen};\n ${({ $minusHeight }) =>\n css`\n height: calc(100dvh - ${$minusHeight}px);\n `}\n\n ${({ $offsetTop }) =>\n $offsetTop !== null &&\n css`\n top: ${$offsetTop}px;\n `}\n`\n\nexport const StyledPageMain = styled.div<{\n $flex?: boolean\n $fillHeight?: boolean\n $tearsheetPlacement: Placement | null\n}>`\n position: relative;\n max-width: 100%;\n background-color: ${colors.gray96};\n\n ${() =>\n isIE11() &&\n css`\n flex: 1 0 0%;\n `}\n\n ${(p) => (p.$fillHeight ? `height: 100%;` : '')}\n ${(p) => (p.$flex ? `display: flex; flex-direction: column;` : '')}\n\n ${({ $tearsheetPlacement }) => {\n if (!$tearsheetPlacement) {\n return ''\n }\n\n if (['top', 'bottom'].includes($tearsheetPlacement)) {\n return css`\n min-height: calc(100vh - ${minScrimSize}px);\n `\n }\n\n return css`\n min-height: 100vh;\n `\n }}\n`\n\nexport const StyledPageContainer = styled.div<{\n $fillHeight?: boolean\n}>`\n display: grid;\n grid-template-columns: 1fr auto;\n\n height: ${(p) => (p.$fillHeight ? '100%' : '')};\n ${() =>\n isIE11() &&\n css`\n display: flex;\n flex-wrap: wrap;\n `}\n`\n\nexport const StyledAsideFluidContainer = styled.div<{\n $open: boolean\n $closed: boolean\n}>`\n ${({ $closed, $open }) =>\n !isIE11() &&\n css`\n transition: width ${animationDuration.panel}ms;\n\n ${$closed &&\n css`\n width: 0;\n `}\n\n ${$open &&\n css`\n width: ${panelWidth}px;\n `}\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,sBAAsB,QAAQ,6CA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ACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PageLayout.styles.js","names":["styled","css","keyframes","StyledAnchorNavigation","StyledPanel","StyledBody","StyledPanelBody","StyledRequiredContainer","minScrimSize","colors","getShadow","spacing","isIE11","mediaBreakpointsDown","mediaHeightDown","headerVerticalSpacing","sm","outerPageSpacing","lg","outerPageSpacingSmaller","md","StyledPageHeader","div","withConfig","displayName","componentId","tabletMd","_ref","$transparent","white","StyledPageHeaderItem","StyledPageTitle","StyledPageBreadcrumbs","attrs","as","StyledPageBanner","getActions","xl","StyledPageActions","StyledPageTabs","navigationWidth","StyledNavigation","StyledContent","panelWidth","zIndexes","panel","footer","animationDuration","StyledFooter","_ref2","$hasShadow","_ref3","$isAsideOpen","StyledAside","_ref4","$closed","$open","slideDistance","slideIn","slideOut","getPanelAnimation","_ref5","$opening","_ref6","$closing","StyledAsidePanel","_ref7","$altAnimation","_ref8","gray85","gray96","_ref9","$minusHeight","_ref0","$offsetTop","_ref1","$rightOffset","StyledPageMain","p","$fillHeight","$flex","_ref10","$tearsheetPlacement","includes","StyledPageContainer","StyledAsideFluidContainer","_ref11"],"sources":["../../src/PageLayout/PageLayout.styles.ts"],"sourcesContent":["import styled, { css, keyframes } from 'styled-components'\nimport { StyledAnchorNavigation } from '../AnchorNavigation/AnchorNavigation.styles'\nimport {\n StyledPanel,\n StyledBody as StyledPanelBody,\n} from '../Panel/Panel.styles'\nimport { StyledRequiredContainer } from '../Required/Required.styles'\nimport { minScrimSize } from '../Tearsheet/Tearsheet.styles'\nimport type { Placement } from '../Tearsheet/Tearsheet.types'\nimport { colors } from '../_styles/colors'\nimport { getShadow } from '../_styles/shadows'\nimport { spacing } from '../_styles/spacing'\nimport { isIE11 } from '../_utils/isIE11'\nimport { mediaBreakpointsDown, mediaHeightDown } from './PageLayout.utils'\n\nconst headerVerticalSpacing = spacing.sm\nconst outerPageSpacing = spacing.lg\nconst outerPageSpacingSmaller = spacing.md\n\nexport const StyledPageHeader = styled.div<{ $transparent?: boolean }>`\n padding-top: ${headerVerticalSpacing}px;\n padding-right: ${outerPageSpacing}px;\n padding-left: ${outerPageSpacing}px;\n\n @media ${mediaBreakpointsDown.tabletMd} {\n padding-right: ${outerPageSpacingSmaller}px;\n padding-left: ${outerPageSpacingSmaller}px;\n }\n\n ${({ $transparent }) =>\n !$transparent &&\n css`\n ${getShadow(1.5)}\n background-color: ${colors.white};\n `}\n`\n\nexport const StyledPageHeaderItem = styled.div`\n margin-top: ${headerVerticalSpacing}px;\n\n &:first-child {\n margin-top: 0;\n }\n`\n\nexport const StyledPageTitle = styled(StyledPageHeaderItem)`\n &:last-child {\n padding-bottom: ${headerVerticalSpacing}px;\n }\n`\n\nexport const StyledPageBreadcrumbs = styled(StyledPageHeaderItem).attrs({\n as: 'nav',\n})``\n\nexport const StyledPageBanner = styled(StyledPageHeaderItem)``\n\nexport const getActions = () => css`\n flex-shrink: 0;\n padding-left: ${spacing.xl}px;\n\n > button,\n > a {\n &:first-child {\n margin-left: 0;\n }\n\n margin-left: ${spacing.sm}px;\n }\n`\n\nexport const StyledPageActions = styled.div`\n ${getActions()}\n`\n\nexport const StyledPageTabs = styled(StyledPageHeaderItem)``\n\nexport const StyledBody = styled.div`\n flex-grow: 1;\n padding-top: ${outerPageSpacing}px;\n padding-left: ${outerPageSpacing}px;\n padding-right: ${outerPageSpacing}px;\n\n @media ${mediaBreakpointsDown.tabletMd} {\n padding-top: ${outerPageSpacingSmaller}px;\n padding-left: ${outerPageSpacingSmaller}px;\n padding-right: ${outerPageSpacingSmaller}px;\n }\n\n > ${StyledRequiredContainer} {\n margin-bottom: 16px;\n }\n`\n\nconst navigationWidth = 200\n\nexport const StyledNavigation = styled.div`\n float: left;\n max-height: 100vh;\n min-width: ${navigationWidth}px;\n overflow-y: auto;\n position: sticky;\n top: 0;\n width: ${navigationWidth}px;\n\n ${StyledAnchorNavigation} {\n padding: 20px ${spacing.sm}px 0 0;\n }\n\n @media screen and (max-width: 1024px) {\n display: none;\n }\n`\n\nexport const StyledContent = styled.div``\n\nconst panelWidth = 400\nconst zIndexes = {\n panel: 3,\n footer: 2,\n}\n\nexport const animationDuration = {\n panel: 600,\n}\n\nexport const StyledFooter = styled.div<{\n $isAsideOpen: boolean\n $hasShadow: boolean\n}>`\n background-color: ${colors.white};\n\n ${({ $hasShadow }) => $hasShadow && getShadow(2, 'top')}\n\n position: sticky;\n bottom: 0;\n z-index: ${zIndexes.footer};\n\n ${({ $isAsideOpen }) =>\n $isAsideOpen &&\n css`\n @media ${mediaBreakpointsDown.tabletMd} {\n z-index: ${zIndexes.footer};\n }\n `}\n\n @media ${mediaHeightDown.short} {\n position: static;\n box-shadow: none;\n }\n`\n\nexport const StyledAside = styled.div<{ $open: boolean; $closed: boolean }>`\n ${({ $closed, $open }) =>\n isIE11() &&\n css`\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 0;\n\n transition: flex-basis ${animationDuration.panel}ms;\n\n ${$closed &&\n css`\n flex-basis: 0;\n `}\n\n ${$open &&\n css`\n flex-basis: ${panelWidth}px;\n `}\n `}\n\n // remove aside block from the main flow on smaller screens, enabling overlay-like positioning\n @media ${mediaBreakpointsDown.tabletMd} {\n position: absolute;\n right: 0;\n }\n`\n\nconst slideDistance = '100%'\n\nconst slideIn = keyframes`\n from {\n transform: translateX(${slideDistance});\n }\n to {\n transform: translateX(0);\n }\n`\n\nconst slideOut = keyframes`\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(${slideDistance});\n }\n`\n\nconst getPanelAnimation = () => css<{ $opening: boolean; $closing: boolean }>`\n ${({ $opening }) =>\n $opening &&\n css`\n animation: ${slideIn} ease-out ${animationDuration.panel}ms;\n `}\n\n ${({ $closing }) =>\n $closing &&\n css`\n animation: ${slideOut} ease-out ${animationDuration.panel}ms;\n `}\n`\n\nexport const StyledAsidePanel = styled.div<{\n $offsetTop: number | null\n $minusHeight: number\n $closing: boolean\n $closed: boolean\n $opening: boolean\n $rightOffset: number\n $altAnimation: boolean\n}>`\n @media ${mediaBreakpointsDown.tabletMd} {\n ${getShadow(2)}\n border-left: 0;\n }\n\n /*\n * On smaller screens, the panel is positioned absolutely,\n * so the animation needs to happen here\n */\n @media ${mediaBreakpointsDown.tabletMd} {\n ${getPanelAnimation()}\n }\n\n ${({ $altAnimation }) => $altAnimation && getPanelAnimation()}\n\n ${({ $closed }) =>\n $closed &&\n css`\n display: none;\n `}\n\n border-left: 1px solid ${colors.gray85};\n width: ${panelWidth}px;\n position: fixed;\n background-color: ${colors.gray96};\n\n overflow: auto;\n z-index: ${zIndexes.panel};\n ${({ $minusHeight }) =>\n css`\n height: calc(100dvh - ${$minusHeight}px);\n `}\n\n ${({ $offsetTop }) =>\n $offsetTop !== null &&\n css`\n top: ${$offsetTop}px;\n `}\n\n // High zoom: full-width sheet\n ${({ $offsetTop, $rightOffset }) => css`\n @media ${mediaBreakpointsDown.tabletMd} {\n left: 0;\n right: ${$rightOffset}px;\n width: auto;\n height: calc(100dvh - ${$offsetTop ?? 0}px);\n }\n `}\n\n // High zoom: the panel scrolls as a whole\n @media ${mediaHeightDown.short} {\n > ${StyledPanel} {\n height: auto;\n min-height: 100%;\n overflow: visible;\n\n > ${StyledPanelBody} {\n flex: 1 0 auto;\n height: auto;\n overflow: visible;\n }\n }\n }\n`\n\nexport const StyledPageMain = styled.div<{\n $flex?: boolean\n $fillHeight?: boolean\n $tearsheetPlacement: Placement | null\n}>`\n position: relative;\n max-width: 100%;\n background-color: ${colors.gray96};\n\n ${() =>\n isIE11() &&\n css`\n flex: 1 0 0%;\n `}\n\n ${(p) => (p.$fillHeight ? `height: 100%;` : '')}\n ${(p) => (p.$flex ? `display: flex; flex-direction: column;` : '')}\n\n ${({ $tearsheetPlacement }) => {\n if (!$tearsheetPlacement) {\n return ''\n }\n\n if (['top', 'bottom'].includes($tearsheetPlacement)) {\n return css`\n min-height: calc(100vh - ${minScrimSize}px);\n `\n }\n\n return css`\n min-height: 100vh;\n `\n }}\n`\n\nexport const StyledPageContainer = styled.div<{\n $fillHeight?: boolean\n}>`\n display: grid;\n grid-template-columns: 1fr auto;\n\n // High zoom: content must not widen the page\n @media ${mediaBreakpointsDown.tabletMd} {\n grid-template-columns: minmax(0, 1fr) auto;\n\n > * {\n min-width: 0;\n }\n }\n\n height: ${(p) => (p.$fillHeight ? '100%' : '')};\n ${() =>\n isIE11() &&\n css`\n display: flex;\n flex-wrap: wrap;\n `}\n`\n\nexport const StyledAsideFluidContainer = styled.div<{\n $open: boolean\n $closed: boolean\n}>`\n ${({ $closed, $open }) =>\n !isIE11() &&\n css`\n transition: width ${animationDuration.panel}ms;\n\n ${$closed &&\n css`\n width: 0;\n `}\n\n ${$open &&\n css`\n width: ${panelWidth}px;\n `}\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,EAAEC,SAAS,QAAQ,mBAAmB;AAC1D,SAASC,sBAAsB,QAAQ,6CAA6C;AACpF,SACEC,WAAW,EACXC,UAAU,IAAIC,eAAe,QACxB,uBAAuB;AAC9B,SAASC,uBAAuB,QAAQ,6BAA6B;AACrE,SAASC,YAAY,QAAQ,+BAA+B;AAE5D,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,oBAAoB,EAAEC,eAAe,QAAQ,oBAAoB;AAE1E,IAAMC,qBAAqB,GAAGJ,OAAO,CAACK,EAAE;AACxC,IAAMC,gBAAgB,GAAGN,OAAO,CAACO,EAAE;AACnC,IAAMC,uBAAuB,GAAGR,OAAO,CAACS,EAAE;AAE1C,OAAO,IAAMC,gBAAgB,gBAAGrB,MAAM,CAACsB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+HACzBV,qBAAqB,EACnBE,gBAAgB,EACjBA,gBAAgB,EAEvBJ,oBAAoB,CAACa,QAAQ,EACnBP,uBAAuB,EACxBA,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Q,CAAC,CAACC,QAAQ,CAACD,mBAAmB,CAAC,EAAE;IACnD,OAAOjF,GAAG,uCACmBO,YAAY;EAE3C;EAEA,OAAOP,GAAG;AAGZ,CAAC,CACF;AAED,OAAO,IAAMmF,mBAAmB,gBAAGpF,MAAM,CAACsB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4IAOlCZ,oBAAoB,CAACa,QAAQ,EAQ5B,UAACoD,CAAC;EAAA,OAAMA,CAAC,CAACC,WAAW,GAAG,MAAM,GAAG,EAAE;AAAA,CAAC,EAC5C;EAAA,OACAnE,MAAM,CAAC,CAAC,IACRX,GAAG,kCAGF;AAAA,EACJ;AAED,OAAO,IAAMoF,yBAAyB,gBAAGrF,MAAM,CAACsB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAI/C,UAAA6D,MAAA;EAAA,IAAG/B,OAAO,GAAA+B,MAAA,CAAP/B,OAAO;IAAEC,KAAK,GAAA8B,MAAA,CAAL9B,KAAK;EAAA,OACjB,CAAC5C,MAAM,CAAC,CAAC,IACTX,GAAG,wCACmB8C,iBAAiB,CAACF,KAAK,EAEzCU,OAAO,IACTtD,GAAG,cAEF,EAECuD,KAAK,IACPvD,GAAG,oBACQ0C,UAAU,CACpB,CACF;AAAA,EACJ","ignoreList":[]}
|
|
@@ -57,6 +57,7 @@ export interface PageAsideProps extends PageComponentProps {
|
|
|
57
57
|
restoreFocusOnClose?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* When true, contains keyboard focus inside the aside while it is open, so focus cannot move to the rest of the page (a focus trap). Backed by the `FocusScope` `contain` behavior.
|
|
60
|
+
* On small screens (up to the `tabletMd` breakpoint), where the aside overlays the page as a sheet, focus is always contained and restored on close, and moves into the aside when it opens, regardless of these props.
|
|
60
61
|
* @a11y Use for modal-like asides so focus stays inside the panel even when the focused element is removed (e.g. selecting a filter with no results).
|
|
61
62
|
* @since 12.51.0
|
|
62
63
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.types.js","names":[],"sources":["../../src/PageLayout/PageLayout.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { AnchorNavigationSection } from '../AnchorNavigation/AnchorNavigation.types'\nimport type { Props } from '../_utils/types'\n\ninterface CustomizableStyledComponent {\n as?: string | React.ComponentType<any>\n}\n\nexport interface PageComponentProps\n extends CustomizableStyledComponent,\n Props,\n React.HTMLAttributes<HTMLDivElement> {}\n\nexport interface PageProps extends PageComponentProps {\n /**\n * Opt-in: makes Page fill its parent height and propagates that layout behavior\n * to Page.Main and Page.Aside to improve sticky footer/page height behavior.\n *\n * @since 12.45.0\n */\n fillHeight?: boolean\n}\n\nexport interface PageBodyProps extends PageComponentProps {}\n\nexport interface PageBodyNavigationProps\n extends Omit<React.HtmlHTMLAttributes<HTMLUListElement>, 'onSelect'> {\n sections?: AnchorNavigationSection[]\n selected?: string\n onSelect?: (id: string) => void\n minSections?: number\n}\n\nexport interface PageBodyProps extends PageComponentProps {\n /**\n * @description If the content of the Page has required fields\n * @since 12.48.0\n */\n required?: boolean\n}\n\nexport interface PageHeaderProps extends PageComponentProps {\n /**\n * @description If the header should have no background.\n * @since 10.19.0\n */\n transparent?: boolean\n}\n\nexport interface PageAsideProps extends PageComponentProps {\n /**\n * If the aside block should be open\n * @since 10.19.0\n */\n open?: boolean\n /**\n * When true, moves keyboard focus to the aside container when it opens (on a closed -> open transition).\n * @a11y Moves focus into the aside as it appears, so keyboard and screen reader users are not left behind on the trigger.\n * @since 12.36.1\n */\n focusOnOpen?: boolean\n /**\n * When true, restores focus back to the element that was focused before the aside opened (on an open -> closed transition).\n * @a11y Returns keyboard focus to the triggering control when the aside closes, so users are not dropped at the top of the page.\n * @since 12.36.1\n */\n restoreFocusOnClose?: boolean\n /**\n * When true, contains keyboard focus inside the aside while it is open, so focus cannot move to the rest of the page (a focus trap). Backed by the `FocusScope` `contain` behavior.\n * @a11y Use for modal-like asides so focus stays inside the panel even when the focused element is removed (e.g. selecting a filter with no results).\n * @since 12.51.0\n */\n containFocus?: boolean\n}\n\nexport interface PageMainProps extends PageComponentProps {\n /**\n * Sets display flex column on the element and makes the body grow.\n *\n * Helps with small content and pushing the footer to the bottom of the screen.\n *\n * @since 12.45.0\n */\n flex?: boolean\n}\n\nexport interface PageFooterProps extends PageComponentProps {}\n\nexport type PageAsideAnimationStatus = 'open' | 'closed' | 'opening' | 'closing'\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PageLayout.types.js","names":[],"sources":["../../src/PageLayout/PageLayout.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { AnchorNavigationSection } from '../AnchorNavigation/AnchorNavigation.types'\nimport type { Props } from '../_utils/types'\n\ninterface CustomizableStyledComponent {\n as?: string | React.ComponentType<any>\n}\n\nexport interface PageComponentProps\n extends CustomizableStyledComponent,\n Props,\n React.HTMLAttributes<HTMLDivElement> {}\n\nexport interface PageProps extends PageComponentProps {\n /**\n * Opt-in: makes Page fill its parent height and propagates that layout behavior\n * to Page.Main and Page.Aside to improve sticky footer/page height behavior.\n *\n * @since 12.45.0\n */\n fillHeight?: boolean\n}\n\nexport interface PageBodyProps extends PageComponentProps {}\n\nexport interface PageBodyNavigationProps\n extends Omit<React.HtmlHTMLAttributes<HTMLUListElement>, 'onSelect'> {\n sections?: AnchorNavigationSection[]\n selected?: string\n onSelect?: (id: string) => void\n minSections?: number\n}\n\nexport interface PageBodyProps extends PageComponentProps {\n /**\n * @description If the content of the Page has required fields\n * @since 12.48.0\n */\n required?: boolean\n}\n\nexport interface PageHeaderProps extends PageComponentProps {\n /**\n * @description If the header should have no background.\n * @since 10.19.0\n */\n transparent?: boolean\n}\n\nexport interface PageAsideProps extends PageComponentProps {\n /**\n * If the aside block should be open\n * @since 10.19.0\n */\n open?: boolean\n /**\n * When true, moves keyboard focus to the aside container when it opens (on a closed -> open transition).\n * @a11y Moves focus into the aside as it appears, so keyboard and screen reader users are not left behind on the trigger.\n * @since 12.36.1\n */\n focusOnOpen?: boolean\n /**\n * When true, restores focus back to the element that was focused before the aside opened (on an open -> closed transition).\n * @a11y Returns keyboard focus to the triggering control when the aside closes, so users are not dropped at the top of the page.\n * @since 12.36.1\n */\n restoreFocusOnClose?: boolean\n /**\n * When true, contains keyboard focus inside the aside while it is open, so focus cannot move to the rest of the page (a focus trap). Backed by the `FocusScope` `contain` behavior.\n * On small screens (up to the `tabletMd` breakpoint), where the aside overlays the page as a sheet, focus is always contained and restored on close, and moves into the aside when it opens, regardless of these props.\n * @a11y Use for modal-like asides so focus stays inside the panel even when the focused element is removed (e.g. selecting a filter with no results).\n * @since 12.51.0\n */\n containFocus?: boolean\n}\n\nexport interface PageMainProps extends PageComponentProps {\n /**\n * Sets display flex column on the element and makes the body grow.\n *\n * Helps with small content and pushing the footer to the bottom of the screen.\n *\n * @since 12.45.0\n */\n flex?: boolean\n}\n\nexport interface PageFooterProps extends PageComponentProps {}\n\nexport type PageAsideAnimationStatus = 'open' | 'closed' | 'opening' | 'closing'\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
export declare const mediaBreakpointsDown: {
|
|
2
|
+
tabletSm: string;
|
|
2
3
|
tabletMd: string;
|
|
3
4
|
tabletLg: string;
|
|
4
5
|
desktopMd: string;
|
|
5
6
|
};
|
|
7
|
+
/** Short viewports (high zoom): no room for sticky elements */
|
|
8
|
+
export declare const mediaHeightDown: {
|
|
9
|
+
short: string;
|
|
10
|
+
};
|
|
11
|
+
/** Very narrow viewports (400% zoom, small phones) */
|
|
12
|
+
export declare const mediaWidthDown: {
|
|
13
|
+
mobileSm: string;
|
|
14
|
+
};
|
|
6
15
|
export declare const getIsUsingSmallScreen: () => boolean;
|
|
16
|
+
/** Reactive getIsUsingSmallScreen */
|
|
17
|
+
export declare function useIsUsingSmallScreen(): boolean;
|
|
7
18
|
export declare const wait: (ms: number) => Promise<void>;
|
|
8
19
|
export declare function getBottomOffsetForFooterUseCase(footerEl: HTMLDivElement, globalBottomOffset: number): number | null;
|
|
9
20
|
export declare function getGlobalBottomOffset(containerEl: HTMLDivElement): number;
|
|
@@ -1,16 +1,61 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import React from 'react';
|
|
1
8
|
import { breakpointRawMinWidthValues } from '../Grid/Grid.constants';
|
|
2
9
|
var adjustMaxWidth = function adjustMaxWidth(breakpointMinWidth) {
|
|
3
10
|
return breakpointMinWidth - 0.02;
|
|
4
11
|
};
|
|
5
12
|
export var mediaBreakpointsDown = {
|
|
13
|
+
tabletSm: "(max-width: ".concat(adjustMaxWidth(breakpointRawMinWidthValues.tabletSm), "px)"),
|
|
6
14
|
tabletMd: "(max-width: ".concat(adjustMaxWidth(breakpointRawMinWidthValues.tabletMd), "px)"),
|
|
7
15
|
tabletLg: "(max-width: ".concat(adjustMaxWidth(breakpointRawMinWidthValues.tabletLg), "px)"),
|
|
8
16
|
desktopMd: "(max-width: ".concat(adjustMaxWidth(breakpointRawMinWidthValues.desktopMd), "px)")
|
|
9
17
|
};
|
|
18
|
+
|
|
19
|
+
/** Short viewports (high zoom): no room for sticky elements */
|
|
20
|
+
export var mediaHeightDown = {
|
|
21
|
+
"short": '(max-height: 479.98px)'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** Very narrow viewports (400% zoom, small phones) */
|
|
25
|
+
export var mediaWidthDown = {
|
|
26
|
+
mobileSm: '(max-width: 439.98px)'
|
|
27
|
+
};
|
|
10
28
|
export var getIsUsingSmallScreen = function getIsUsingSmallScreen() {
|
|
11
29
|
var _globalThis$matchMedi;
|
|
12
30
|
return (_globalThis$matchMedi = globalThis.matchMedia) === null || _globalThis$matchMedi === void 0 ? void 0 : _globalThis$matchMedi.call(globalThis, mediaBreakpointsDown.tabletMd).matches;
|
|
13
31
|
};
|
|
32
|
+
|
|
33
|
+
/** Reactive getIsUsingSmallScreen */
|
|
34
|
+
export function useIsUsingSmallScreen() {
|
|
35
|
+
var _React$useState = React.useState(function () {
|
|
36
|
+
var _getIsUsingSmallScree;
|
|
37
|
+
return (_getIsUsingSmallScree = getIsUsingSmallScreen()) !== null && _getIsUsingSmallScree !== void 0 ? _getIsUsingSmallScree : false;
|
|
38
|
+
}),
|
|
39
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40
|
+
isSmallScreen = _React$useState2[0],
|
|
41
|
+
setIsSmallScreen = _React$useState2[1];
|
|
42
|
+
React.useEffect(function () {
|
|
43
|
+
var _globalThis$matchMedi2;
|
|
44
|
+
var mediaQuery = (_globalThis$matchMedi2 = globalThis.matchMedia) === null || _globalThis$matchMedi2 === void 0 ? void 0 : _globalThis$matchMedi2.call(globalThis, mediaBreakpointsDown.tabletMd);
|
|
45
|
+
if (!mediaQuery) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
var update = function update() {
|
|
49
|
+
return setIsSmallScreen(mediaQuery.matches);
|
|
50
|
+
};
|
|
51
|
+
update();
|
|
52
|
+
mediaQuery.addEventListener('change', update);
|
|
53
|
+
return function () {
|
|
54
|
+
return mediaQuery.removeEventListener('change', update);
|
|
55
|
+
};
|
|
56
|
+
}, []);
|
|
57
|
+
return isSmallScreen;
|
|
58
|
+
}
|
|
14
59
|
export var wait = function wait(ms) {
|
|
15
60
|
return new Promise(function (resolve) {
|
|
16
61
|
return setTimeout(resolve, ms);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.utils.js","names":["breakpointRawMinWidthValues","adjustMaxWidth","breakpointMinWidth","mediaBreakpointsDown","
|
|
1
|
+
{"version":3,"file":"PageLayout.utils.js","names":["React","breakpointRawMinWidthValues","adjustMaxWidth","breakpointMinWidth","mediaBreakpointsDown","tabletSm","concat","tabletMd","tabletLg","desktopMd","mediaHeightDown","mediaWidthDown","mobileSm","getIsUsingSmallScreen","_globalThis$matchMedi","globalThis","matchMedia","call","matches","useIsUsingSmallScreen","_React$useState","useState","_getIsUsingSmallScree","_React$useState2","_slicedToArray","isSmallScreen","setIsSmallScreen","useEffect","_globalThis$matchMedi2","mediaQuery","update","addEventListener","removeEventListener","wait","ms","Promise","resolve","setTimeout","getBottomOffsetForFooterUseCase","footerEl","globalBottomOffset","_footerRect$y","viewportHeight","innerHeight","footerRect","getBoundingClientRect","footerTop","y","top","footerHeight","height","isPageFooterSticky","dataset","sticky","bottom","getGlobalBottomOffset","containerEl","lowerBoundary","lowerBoundaryTopOffset","document","documentElement","clientHeight","Math","max","getGlobalTopOffset","_upperBoundary$y","upperBoundary","upperBoundaryTopOffset","getRightOffset","containerRight","right","viewportWidth","clientWidth","getIsIntersectingVertically","upperEl","lowerEl"],"sources":["../../src/PageLayout/PageLayout.utils.ts"],"sourcesContent":["import React from 'react'\nimport { breakpointRawMinWidthValues } from '../Grid/Grid.constants'\n\nconst adjustMaxWidth = (breakpointMinWidth: number) => breakpointMinWidth - 0.02\n\nexport const mediaBreakpointsDown = {\n tabletSm: `(max-width: ${adjustMaxWidth(\n breakpointRawMinWidthValues.tabletSm\n )}px)`,\n tabletMd: `(max-width: ${adjustMaxWidth(\n breakpointRawMinWidthValues.tabletMd\n )}px)`,\n tabletLg: `(max-width: ${adjustMaxWidth(\n breakpointRawMinWidthValues.tabletLg\n )}px)`,\n desktopMd: `(max-width: ${adjustMaxWidth(\n breakpointRawMinWidthValues.desktopMd\n )}px)`,\n}\n\n/** Short viewports (high zoom): no room for sticky elements */\nexport const mediaHeightDown = {\n short: '(max-height: 479.98px)',\n}\n\n/** Very narrow viewports (400% zoom, small phones) */\nexport const mediaWidthDown = {\n mobileSm: '(max-width: 439.98px)',\n}\n\nexport const getIsUsingSmallScreen = () =>\n globalThis.matchMedia?.(mediaBreakpointsDown.tabletMd).matches\n\n/** Reactive getIsUsingSmallScreen */\nexport function useIsUsingSmallScreen() {\n const [isSmallScreen, setIsSmallScreen] = React.useState(\n () => getIsUsingSmallScreen() ?? false\n )\n\n React.useEffect(() => {\n const mediaQuery = globalThis.matchMedia?.(mediaBreakpointsDown.tabletMd)\n if (!mediaQuery) {\n return\n }\n\n const update = () => setIsSmallScreen(mediaQuery.matches)\n update()\n mediaQuery.addEventListener('change', update)\n\n return () => mediaQuery.removeEventListener('change', update)\n }, [])\n\n return isSmallScreen\n}\n\nexport const wait = (ms: number) =>\n new Promise<void>((resolve) => setTimeout(resolve, ms))\n\nexport function getBottomOffsetForFooterUseCase(\n footerEl: HTMLDivElement,\n globalBottomOffset: number\n) {\n const viewportHeight = globalThis.innerHeight\n const footerRect = footerEl.getBoundingClientRect()\n const footerTop = footerRect.y ?? footerRect.top\n const footerHeight = footerRect.height\n const isSmallScreen = getIsUsingSmallScreen()\n const isPageFooterSticky = footerEl.dataset.sticky === 'sticky'\n\n if (isSmallScreen) {\n if (isPageFooterSticky) {\n return globalBottomOffset + viewportHeight - footerTop\n }\n\n return globalBottomOffset + footerHeight\n }\n\n if (isPageFooterSticky) {\n // align with the sticky footer in the rest of use cases\n return viewportHeight - footerRect.bottom\n }\n\n return null\n}\n\nexport function getGlobalBottomOffset(containerEl: HTMLDivElement) {\n const lowerBoundary = containerEl.getBoundingClientRect()\n const lowerBoundaryTopOffset = lowerBoundary.bottom\n const viewportHeight = document.documentElement.clientHeight\n return Math.max(viewportHeight - lowerBoundaryTopOffset, 0)\n}\n\nexport function getGlobalTopOffset(containerEl: HTMLDivElement) {\n const upperBoundary = containerEl.getBoundingClientRect()\n const upperBoundaryTopOffset = upperBoundary.y ?? upperBoundary.top\n return Math.max(upperBoundaryTopOffset, 0)\n}\n\nexport function getRightOffset(containerEl: HTMLDivElement) {\n const containerRight = containerEl.getBoundingClientRect().right\n const viewportWidth = document.documentElement.clientWidth\n\n return viewportWidth - containerRight\n}\n\nexport function getIsIntersectingVertically(\n upperEl: HTMLElement,\n lowerEl: HTMLElement\n) {\n return (\n upperEl.getBoundingClientRect().bottom > lowerEl.getBoundingClientRect().top\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,2BAA2B,QAAQ,wBAAwB;AAEpE,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,kBAA0B;EAAA,OAAKA,kBAAkB,GAAG,IAAI;AAAA;AAEhF,OAAO,IAAMC,oBAAoB,GAAG;EAClCC,QAAQ,iBAAAC,MAAA,CAAiBJ,cAAc,CACrCD,2BAA2B,CAACI,QAC9B,CAAC,QAAK;EACNE,QAAQ,iBAAAD,MAAA,CAAiBJ,cAAc,CACrCD,2BAA2B,CAACM,QAC9B,CAAC,QAAK;EACNC,QAAQ,iBAAAF,MAAA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a,CAACH,MAAM;EACnD,IAAMZ,cAAc,GAAGiB,QAAQ,CAACC,eAAe,CAACC,YAAY;EAC5D,OAAOC,IAAI,CAACC,GAAG,CAACrB,cAAc,GAAGgB,sBAAsB,EAAE,CAAC,CAAC;AAC7D;AAEA,OAAO,SAASM,kBAAkBA,CAACR,WAA2B,EAAE;EAAA,IAAAS,gBAAA;EAC9D,IAAMC,aAAa,GAAGV,WAAW,CAACX,qBAAqB,CAAC,CAAC;EACzD,IAAMsB,sBAAsB,IAAAF,gBAAA,GAAGC,aAAa,CAACnB,CAAC,cAAAkB,gBAAA,cAAAA,gBAAA,GAAIC,aAAa,CAAClB,GAAG;EACnE,OAAOc,IAAI,CAACC,GAAG,CAACI,sBAAsB,EAAE,CAAC,CAAC;AAC5C;AAEA,OAAO,SAASC,cAAcA,CAACZ,WAA2B,EAAE;EAC1D,IAAMa,cAAc,GAAGb,WAAW,CAACX,qBAAqB,CAAC,CAAC,CAACyB,KAAK;EAChE,IAAMC,aAAa,GAAGZ,QAAQ,CAACC,eAAe,CAACY,WAAW;EAE1D,OAAOD,aAAa,GAAGF,cAAc;AACvC;AAEA,OAAO,SAASI,2BAA2BA,CACzCC,OAAoB,EACpBC,OAAoB,EACpB;EACA,OACED,OAAO,CAAC7B,qBAAqB,CAAC,CAAC,CAACS,MAAM,GAAGqB,OAAO,CAAC9B,qBAAqB,CAAC,CAAC,CAACG,GAAG;AAEhF","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { Box } from '../../Box';
|
|
7
7
|
import { Required } from '../../Required';
|
|
8
8
|
import { Typography } from '../../Typography';
|
|
9
|
-
import { StyledPageFooter } from './PageFooterTemplate.styles';
|
|
9
|
+
import { StyledPageFooter, StyledPageFooterActions } from './PageFooterTemplate.styles';
|
|
10
10
|
export var PageFooterTemplate = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11
11
|
var actions = _ref.actions,
|
|
12
12
|
notation = _ref.notation,
|
|
@@ -24,7 +24,7 @@ export var PageFooterTemplate = /*#__PURE__*/React.forwardRef(function (_ref, re
|
|
|
24
24
|
}, typeof required === 'string' ? required : null), notation && /*#__PURE__*/React.createElement(Typography, {
|
|
25
25
|
color: "gray15",
|
|
26
26
|
intent: "small"
|
|
27
|
-
}, notation)), /*#__PURE__*/React.createElement(
|
|
27
|
+
}, notation)), /*#__PURE__*/React.createElement(StyledPageFooterActions, {
|
|
28
28
|
display: "flex",
|
|
29
29
|
gap: "sm"
|
|
30
30
|
}, actions));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageFooterTemplate.js","names":["React","Box","Required","Typography","StyledPageFooter","PageFooterTemplate","forwardRef","_ref","ref","actions","notation","required","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexDirection","gap","showLabel","color","intent"],"sources":["../../../src/PageTemplate/PageFooterTemplate/PageFooterTemplate.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../../Box'\nimport { Required } from '../../Required'\nimport { Typography } from '../../Typography'\nimport {
|
|
1
|
+
{"version":3,"file":"PageFooterTemplate.js","names":["React","Box","Required","Typography","StyledPageFooter","StyledPageFooterActions","PageFooterTemplate","forwardRef","_ref","ref","actions","notation","required","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexDirection","gap","showLabel","color","intent"],"sources":["../../../src/PageTemplate/PageFooterTemplate/PageFooterTemplate.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../../Box'\nimport { Required } from '../../Required'\nimport { Typography } from '../../Typography'\nimport {\n StyledPageFooter,\n StyledPageFooterActions,\n} from './PageFooterTemplate.styles'\nimport type { PageFooterTemplateProps } from './PageFooterTemplate.types'\n\nexport const PageFooterTemplate = React.forwardRef<\n HTMLElement,\n PageFooterTemplateProps\n>(({ actions, notation, required, ...props }, ref) => (\n <StyledPageFooter ref={ref} data-core-react=\"page-footer-template\" {...props}>\n <Box display=\"flex\" flexDirection=\"column\" gap=\"xs\">\n {required && (\n <Required showLabel>\n {typeof required === 'string' ? required : null}\n </Required>\n )}\n\n {notation && (\n <Typography color=\"gray15\" intent=\"small\">\n {notation}\n </Typography>\n )}\n </Box>\n\n <StyledPageFooterActions display=\"flex\" gap=\"sm\">\n {actions}\n </StyledPageFooterActions>\n </StyledPageFooter>\n))\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,WAAW;AAC/B,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SACEC,gBAAgB,EAChBC,uBAAuB,QAClB,6BAA6B;AAGpC,OAAO,IAAMC,kBAAkB,gBAAGN,KAAK,CAACO,UAAU,CAGhD,UAAAC,IAAA,EAA4CC,GAAG;EAAA,IAA5CC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAAA,oBACxCf,KAAA,CAAAgB,aAAA,CAACZ,gBAAgB,EAAAa,QAAA;IAACR,GAAG,EAAEA,GAAI;IAAC,mBAAgB;EAAsB,GAAKI,KAAK,gBAC1Eb,KAAA,CAAAgB,aAAA,CAACf,GAAG;IAACiB,OAAO,EAAC,MAAM;IAACC,aAAa,EAAC,QAAQ;IAACC,GAAG,EAAC;EAAI,GAChDR,QAAQ,iBACPZ,KAAA,CAAAgB,aAAA,CAACd,QAAQ;IAACmB,SAAS;EAAA,GAChB,OAAOT,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAG,IACnC,CACX,EAEAD,QAAQ,iBACPX,KAAA,CAAAgB,aAAA,CAACb,UAAU;IAACmB,KAAK,EAAC,QAAQ;IAACC,MAAM,EAAC;EAAO,GACtCZ,QACS,CAEX,CAAC,eAENX,KAAA,CAAAgB,aAAA,CAACX,uBAAuB;IAACa,OAAO,EAAC,MAAM;IAACE,GAAG,EAAC;EAAI,GAC7CV,OACsB,CACT,CAAC;AAAA,CACpB,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare const StyledPageFooter: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
2
2
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
3
|
}> & string;
|
|
4
|
+
export declare const StyledPageFooterActions: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("../../Box").BoxProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../../Box").BoxProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { Box } from '../../Box';
|
|
3
|
+
import { StyledButton, StyledLinkButton } from '../../Button/Button.styles';
|
|
4
|
+
import { mediaBreakpointsDown, mediaHeightDown, mediaWidthDown } from '../../PageLayout/PageLayout.utils';
|
|
2
5
|
import { colors } from '../../_styles/colors';
|
|
3
6
|
import { spacing } from '../../_styles/spacing';
|
|
4
7
|
export var StyledPageFooter = /*#__PURE__*/styled.footer.withConfig({
|
|
5
8
|
displayName: "StyledPageFooter",
|
|
6
|
-
componentId: "core-
|
|
7
|
-
})(["display:flex;align-items:center;justify-content:space-between;background-color:", ";padding:", "px;width:100%;box-shadow:0 -2px 6px 0 rgba(0,0,0,0.1);position:sticky;bottom:0;"], colors.white, spacing.lg);
|
|
9
|
+
componentId: "core-12_54_0__sc-1f0zfyf-0"
|
|
10
|
+
})(["display:flex;align-items:center;justify-content:space-between;background-color:", ";padding:", "px;width:100%;box-shadow:0 -2px 6px 0 rgba(0,0,0,0.1);position:sticky;bottom:0;@media ", "{flex-wrap:wrap;gap:", "px;}@media ", "{position:static;}"], colors.white, spacing.lg, mediaBreakpointsDown.tabletMd, spacing.sm, mediaHeightDown["short"]);
|
|
11
|
+
export var StyledPageFooterActions = /*#__PURE__*/styled(Box).withConfig({
|
|
12
|
+
displayName: "StyledPageFooterActions",
|
|
13
|
+
componentId: "core-12_54_0__sc-1f0zfyf-1"
|
|
14
|
+
})(["@media ", "{align-items:stretch;flex:1 1 100%;flex-direction:column;", ",", "{width:100%;}}"], mediaWidthDown.mobileSm, StyledButton, StyledLinkButton);
|
|
8
15
|
//# sourceMappingURL=PageFooterTemplate.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageFooterTemplate.styles.js","names":["styled","colors","spacing","StyledPageFooter","footer","withConfig","displayName","componentId","white","lg"],"sources":["../../../src/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const StyledPageFooter = styled.footer`\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: ${colors.white};\n padding: ${spacing.lg}px;\n width: 100%;\n box-shadow: 0 -2px 6px 0 rgba(0, 0, 0, 0.1);\n position: sticky;\n bottom: 0;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PageFooterTemplate.styles.js","names":["styled","Box","StyledButton","StyledLinkButton","mediaBreakpointsDown","mediaHeightDown","mediaWidthDown","colors","spacing","StyledPageFooter","footer","withConfig","displayName","componentId","white","lg","tabletMd","sm","StyledPageFooterActions","mobileSm"],"sources":["../../../src/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { Box } from '../../Box'\nimport { StyledButton, StyledLinkButton } from '../../Button/Button.styles'\nimport {\n mediaBreakpointsDown,\n mediaHeightDown,\n mediaWidthDown,\n} from '../../PageLayout/PageLayout.utils'\nimport { colors } from '../../_styles/colors'\nimport { spacing } from '../../_styles/spacing'\n\nexport const StyledPageFooter = styled.footer`\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: ${colors.white};\n padding: ${spacing.lg}px;\n width: 100%;\n box-shadow: 0 -2px 6px 0 rgba(0, 0, 0, 0.1);\n position: sticky;\n bottom: 0;\n\n @media ${mediaBreakpointsDown.tabletMd} {\n flex-wrap: wrap;\n gap: ${spacing.sm}px;\n }\n\n @media ${mediaHeightDown.short} {\n position: static;\n }\n`\n\nexport const StyledPageFooterActions = styled(Box)`\n /* 400% zoom: one full-width button per row */\n @media ${mediaWidthDown.mobileSm} {\n align-items: stretch;\n flex: 1 1 100%;\n flex-direction: column;\n\n ${StyledButton}, ${StyledLinkButton} {\n width: 100%;\n }\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,GAAG,QAAQ,WAAW;AAC/B,SAASC,YAAY,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC3E,SACEC,oBAAoB,EACpBC,eAAe,EACfC,cAAc,QACT,mCAAmC;AAC1C,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,OAAO,QAAQ,uBAAuB;AAE/C,OAAO,IAAMC,gBAAgB,gBAAGT,MAAM,CAACU,MAAM,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4PAIvBN,MAAM,CAACO,KAAK,EACrBN,OAAO,CAACO,EAAE,EAMZX,oBAAoB,CAACY,QAAQ,EAE7BR,OAAO,CAACS,EAAE,EAGVZ,eAAe,SAAM,CAG/B;AAED,OAAO,IAAMa,uBAAuB,gBAAGlB,MAAM,CAACC,GAAG,CAAC,CAAAU,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oGAEvCP,cAAc,CAACa,QAAQ,EAK5BjB,YAAY,EAAKC,gBAAgB,CAItC","ignoreList":[]}
|
|
@@ -5,16 +5,16 @@ import { colors } from '../../_styles/colors';
|
|
|
5
5
|
import { spacing } from '../../_styles/spacing';
|
|
6
6
|
export var StyledPageHeader = /*#__PURE__*/styled(Page.Header).withConfig({
|
|
7
7
|
displayName: "StyledPageHeader",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_54_0__sc-1d5kop0-0"
|
|
9
9
|
})(["border-bottom:1px solid ", ";padding-top:", "px;", ""], colors.gray85, spacing.lg, function (p) {
|
|
10
10
|
return p.$hasPaddingBottom && "padding-bottom: ".concat(spacing.lg, "px;");
|
|
11
11
|
});
|
|
12
12
|
export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
|
|
13
13
|
displayName: "StyledActions",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_54_0__sc-1d5kop0-1"
|
|
15
15
|
})(["width:fit-content;"]);
|
|
16
16
|
export var StyledToggleActionBox = /*#__PURE__*/styled(Box).withConfig({
|
|
17
17
|
displayName: "StyledToggleActionBox",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_54_0__sc-1d5kop0-2"
|
|
19
19
|
})(["bottom:", "px;position:relative;padding-left:48px;"], spacing.lg);
|
|
20
20
|
//# sourceMappingURL=PageHeaderTemplate.styles.js.map
|
|
@@ -10,10 +10,10 @@ var panelWidthSmall = 360;
|
|
|
10
10
|
export var mobileBreakpoint = 440;
|
|
11
11
|
export var StyledPageAside = /*#__PURE__*/styled(Page.Aside).withConfig({
|
|
12
12
|
displayName: "StyledPageAside",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_54_0__sc-1p7nu53-0"
|
|
14
14
|
})(["position:sticky;top:0;right:0;max-height:100vh;width:100%;height:100%;@media ", "{position:sticky;max-width:", "px;flex-basis:", "px;}", "{@media ", "{max-width:", "px;}}", "{position:sticky;top:0;right:0;box-shadow:none;animation:none;padding-bottom:68px;@media ", "{width:", "px;}@media (max-width:", "px){padding-bottom:0;}}", "{position:fixed;bottom:0;display:flex;width:100%;max-width:400px;@media ", "{max-width:", "px;}}"], mediaBreakpointsDown.tabletLg, panelWidthSmall, panelWidthSmall, StyledAsideFluidContainer, mediaBreakpointsDown.tabletLg, panelWidthSmall, StyledAsidePanel, mediaBreakpointsDown.tabletLg, panelWidthSmall, mobileBreakpoint, StyledPanelFooter, mediaBreakpointsDown.tabletLg, panelWidthSmall);
|
|
15
15
|
export var StyledModal = /*#__PURE__*/styled(Modal).withConfig({
|
|
16
16
|
displayName: "StyledModal",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_54_0__sc-1p7nu53-1"
|
|
18
18
|
})(["top:", "px;bottom:", "px;max-width:416px;transform:none;", "{max-height:100vh;}@media (max-width:", "px){top:0;bottom:0;left:0;right:0;max-width:100%;}"], spacing.md, spacing.md, StyledModalContent, mobileBreakpoint);
|
|
19
19
|
//# sourceMappingURL=PagePaneTemplate.styles.js.map
|
|
@@ -5,14 +5,14 @@ import { spacing } from '../../_styles/spacing';
|
|
|
5
5
|
export var mobileBreakpoint = 440;
|
|
6
6
|
export var StyledPageWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledPageWrapper",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_54_0__sc-uuo7st-0"
|
|
9
9
|
})(["display:flex;flex-direction:column;"]);
|
|
10
10
|
export var StyledPageBodyWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledPageBodyWrapper",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_54_0__sc-uuo7st-1"
|
|
13
13
|
})(["display:grid;grid-template-columns:1fr auto;"]);
|
|
14
14
|
export var StyledPageBody = /*#__PURE__*/styled(Page.Body).withConfig({
|
|
15
15
|
displayName: "StyledPageBody",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_54_0__sc-uuo7st-2"
|
|
17
17
|
})(["padding-bottom:", "px;@media ", "{padding:", "px;}"], spacing.lg, mediaBreakpointsDown.desktopMd, spacing.md);
|
|
18
18
|
//# sourceMappingURL=PageTemplate.styles.js.map
|
|
@@ -5,22 +5,22 @@ import { Typography } from '../Typography/Typography';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledContainer",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_54_0__sc-fy34i1-0"
|
|
9
9
|
})(["display:flex;align-items:center;"]);
|
|
10
10
|
export var StyledPageCount = /*#__PURE__*/styled(Typography).withConfig({
|
|
11
11
|
displayName: "StyledPageCount",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_54_0__sc-fy34i1-1"
|
|
13
13
|
})(["margin-right:", "px;"], spacing.xl);
|
|
14
14
|
export var StyledCurrentPage = /*#__PURE__*/styled(Typography).withConfig({
|
|
15
15
|
displayName: "StyledCurrentPage",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_54_0__sc-fy34i1-2"
|
|
17
17
|
})(["margin-right:", "px;"], spacing.sm);
|
|
18
18
|
export var StyledButton = /*#__PURE__*/styled(Button).withConfig({
|
|
19
19
|
displayName: "StyledButton",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_54_0__sc-fy34i1-3"
|
|
21
21
|
})(["margin-left:", "px;"], spacing.sm);
|
|
22
22
|
export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
|
|
23
23
|
displayName: "StyledOverlay",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_54_0__sc-fy34i1-4"
|
|
25
25
|
})(["min-height:80px;max-height:300px;max-width:248px;"]);
|
|
26
26
|
//# sourceMappingURL=Pagination.styles.js.map
|