@procore/core-react 12.53.1 → 12.53.2
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/.jest/setupTests.js +1 -2
- package/CHANGELOG.md +10 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +12 -4
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.d.ts +15 -5
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.d.ts +113 -29
- package/dist/AvatarStack/AvatarStack.styles.js +8 -8
- package/dist/Badge/Badge.styles.d.ts +6 -2
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.d.ts +12 -4
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.d.ts +32 -12
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.d.ts +3 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.d.ts +12 -4
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.d.ts +16 -6
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.d.ts +48 -14
- package/dist/Calendar/Calendar.styles.js +9 -9
- package/dist/Card/Card.styles.d.ts +3 -1
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.d.ts +18 -6
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.d.ts +1689 -9
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.d.ts +8 -4
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.d.ts +25 -10
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.d.ts +24 -10
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.d.ts +11 -5
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.d.ts +12 -4
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.d.ts +4 -2
- package/dist/Dropzone/Dropzone.js +4 -2
- package/dist/Dropzone/Dropzone.js.map +1 -1
- package/dist/Dropzone/Dropzone.styles.d.ts +31 -13
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.d.ts +18 -6
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.d.ts +9 -3
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.d.ts +11 -5
- package/dist/FileList/FileList.styles.js +3 -3
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.d.ts +37 -12
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.d.ts +10 -4
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.d.ts +7 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.d.ts +7 -3
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.d.ts +7 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.d.ts +19 -7
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.js +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.d.ts +20 -7
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.d.ts +9 -3
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +29 -11
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.d.ts +3 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.d.ts +18 -6
- package/dist/FileToken/FileToken.styles.js +6 -6
- package/dist/FilterToken/FilterToken.styles.d.ts +15 -5
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.d.ts +3 -1
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.d.ts +59 -532
- package/dist/Form/Form.styles.js +13 -13
- package/dist/Form/StyledFormikForm.styles.d.ts +7 -3
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.d.ts +13 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.d.ts +6 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.d.ts +1 -1
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.d.ts +3 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.d.ts +3 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.d.ts +24 -8
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.d.ts +6 -2
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.d.ts +34 -12
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/MenuImperative/MenuImperative.types.d.ts +1 -1
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/Modal/Modal.d.ts +12 -4
- package/dist/Modal/Modal.styles.d.ts +41 -15
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.d.ts +41 -12
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/NextMenu/NextMenu.styles.d.ts +9 -3
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.styles.d.ts +9 -5
- package/dist/NextTile/NextTile.styles.js +5 -5
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.d.ts +34 -8
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.d.ts +3 -1
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.d.ts +93 -20
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.d.ts +3 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +11 -5
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +20 -8
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.d.ts +10 -4
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.d.ts +19 -9
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.d.ts +35 -13
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.d.ts +9 -3
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.d.ts +13 -5
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.d.ts +6 -2
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.d.ts +3 -1
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.d.ts +6 -2
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.d.ts +9 -3
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.d.ts +9 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.d.ts +28 -6
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.d.ts +22 -8
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.d.ts +12 -4
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.d.ts +26 -10
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.d.ts +46 -352
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.d.ts +16 -6
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.d.ts +21 -7
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.d.ts +25 -9
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.js +2 -1
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.d.ts +4 -2
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.d.ts +127 -47
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/SuperSelect/useSuperSelect.js +1 -2
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.d.ts +12 -4
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.d.ts +90 -34
- package/dist/Table/Table.styles.js +29 -29
- package/dist/TableShelf/TableShelf.styles.d.ts +15 -5
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.d.ts +121 -21
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tearsheet/Tearsheet.styles.d.ts +15 -5
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.d.ts +3 -1
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.d.ts +3 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +20 -20
- package/dist/Thumbnail/Thumbnail.js +40 -38
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +62 -22
- package/dist/Thumbnail/Thumbnail.styles.js +21 -21
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +33 -13
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredDropdown/TieredDropdown.js +6 -0
- package/dist/TieredDropdown/TieredDropdown.js.map +1 -1
- package/dist/TieredSelect/LeafSelectionTieredSelect.js +4 -0
- package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TierSelectionTieredSelect.js +25 -13
- package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.styles.d.ts +54 -17
- package/dist/TieredSelect/TieredSelect.styles.js +18 -12
- package/dist/TieredSelect/TieredSelect.styles.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.types.d.ts +6 -0
- package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
- package/dist/TieredSelect/TieredSelectMenu.js +10 -5
- package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
- package/dist/Tile/Tile.styles.d.ts +32 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.d.ts +30 -9
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.d.ts +10 -4
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.d.ts +3 -1
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.d.ts +16 -6
- package/dist/Token/Token.styles.js +5 -5
- package/dist/ToolHeader/ToolHeader.d.ts +14 -6
- package/dist/ToolHeader/ToolHeader.styles.d.ts +19 -7
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +10 -4
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.d.ts +1 -1
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js.map +1 -1
- package/dist/Tooltip/Tooltip.styles.d.ts +9 -3
- package/dist/Tooltip/Tooltip.styles.js +3 -3
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.styles.d.ts +52 -13
- package/dist/Tree/Tree.styles.js +10 -10
- package/dist/Typeahead/Typeahead.styles.d.ts +12 -4
- package/dist/Typeahead/Typeahead.styles.js +4 -4
- package/dist/Typography/Typography.styles.d.ts +4 -2
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.styles.js.map +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +90 -0
- package/dist/_locales/de-DE.json +9 -4
- package/dist/_locales/en-AU.json +5 -0
- package/dist/_locales/en-CA.json +5 -0
- package/dist/_locales/en-GB.json +5 -0
- package/dist/_locales/es-ES.json +6 -1
- package/dist/_locales/es.json +5 -0
- package/dist/_locales/fr-CA.json +5 -0
- package/dist/_locales/fr-FR.json +5 -0
- package/dist/_locales/is-IS.json +5 -0
- package/dist/_locales/it-IT.json +5 -0
- package/dist/_locales/ja-JP.json +5 -0
- package/dist/_locales/nb-NO.json +5 -0
- package/dist/_locales/pl-PL.json +5 -0
- package/dist/_locales/pt-BR.json +5 -0
- package/dist/_locales/pt-PT.json +5 -0
- package/dist/_locales/th-TH.json +5 -0
- package/dist/_locales/zh-SG.json +5 -0
- package/dist/_locales/zh-TW.json +5 -0
- package/dist/_storyHelpers_/components/Deprecation.styles.d.ts +4 -2
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_styles/mixins.d.ts +2 -2
- 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 +17 -17
- 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 +14 -14
- 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 +845 -845
- 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 +79 -79
- 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 +133 -86
- 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 +58 -58
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +40 -40
- 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 +105 -105
- 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 +10 -11
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
export declare const mobileBreakpoint = 440;
|
|
2
|
-
export declare const StyledPageAside: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
+
export declare const StyledPageAside: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("../../PageLayout").PageAsideProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3
3
|
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;
|
|
4
|
-
},
|
|
5
|
-
|
|
4
|
+
}, "style"> & {
|
|
5
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("../../PageLayout").PageAsideProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
7
|
+
export declare const StyledModal: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("../../Modal").ModalProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
8
|
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;
|
|
7
|
-
},
|
|
9
|
+
}, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("../../Modal").ModalProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
8
12
|
Body: import("react").ForwardRefExoticComponent<import("../../Modal/Modal.types").ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
Container: import("react").ForwardRefExoticComponent<import("../../Modal/Modal.types").ModalContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
14
|
+
Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
16
|
+
}, {
|
|
11
17
|
$compact?: boolean;
|
|
12
18
|
}>> & string;
|
|
13
|
-
Footer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
19
|
+
Footer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
21
|
+
}> & string;
|
|
14
22
|
FooterButtons: import("react").ForwardRefExoticComponent<import("../../Modal/Modal.types").ModalCloseableHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
23
|
FooterNotation: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("../..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
24
|
FooterSummary: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -18,8 +26,12 @@ export declare const StyledModal: import("styled-components/dist/types").IStyled
|
|
|
18
26
|
Heading: (props: React.PropsWithChildren<import("../../Semantic/Semantic.types").HeadingProps & {
|
|
19
27
|
level?: number;
|
|
20
28
|
}>) => import("react").JSX.Element;
|
|
21
|
-
Overlay: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
22
|
-
|
|
29
|
+
Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
30
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
31
|
+
}> & string;
|
|
32
|
+
Scrim: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
33
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
34
|
+
}> & string;
|
|
23
35
|
State: (props: import("../..").RenderProps) => import("react").JSX.Element;
|
|
24
36
|
Section: import("react").ForwardRefExoticComponent<import("../..").SectionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
37
|
}, keyof import("react").Component<any, {}, any>>;
|
|
@@ -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_53_2__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_53_2__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
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare const mobileBreakpoint = 440;
|
|
2
|
-
export declare const StyledPageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const StyledPageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}> & string;
|
|
5
|
+
export declare const StyledPageBodyWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
6
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
7
|
+
}> & string;
|
|
8
|
+
export declare const StyledPageBody: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("../../PageLayout/PageLayout.types").PageBodyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
5
9
|
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
|
-
},
|
|
10
|
+
}, "style"> & {
|
|
11
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
12
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("../../PageLayout/PageLayout.types").PageBodyProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -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_53_2__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_53_2__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_53_2__sc-uuo7st-2"
|
|
17
17
|
})(["padding-bottom:", "px;@media ", "{padding:", "px;}"], spacing.lg, mediaBreakpointsDown.desktopMd, spacing.md);
|
|
18
18
|
//# sourceMappingURL=PageTemplate.styles.js.map
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
-
|
|
1
|
+
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const StyledPageCount: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
3
5
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
+
}, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const StyledCurrentPage: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
6
10
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
7
|
-
},
|
|
8
|
-
|
|
11
|
+
}, "style"> & {
|
|
12
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
13
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
|
+
export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("..").ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
9
15
|
ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
|
|
10
|
-
},
|
|
11
|
-
|
|
16
|
+
}, "style"> & {
|
|
17
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
18
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("..").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
19
|
+
export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
20
|
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;
|
|
13
|
-
},
|
|
21
|
+
}, "style"> & {
|
|
22
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
23
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("..").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -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_53_2__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_53_2__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_53_2__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_53_2__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_53_2__sc-fy34i1-4"
|
|
25
25
|
})(["min-height:80px;max-height:300px;max-width:248px;"]);
|
|
26
26
|
//# sourceMappingURL=Pagination.styles.js.map
|
package/dist/Panel/Panel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","names":["ChevronLeft","Clear","EllipsisVertical","useId","React","Button","Menu","OverlayTrigger","LevelContext","Section","SectionProvider","Tooltip","useI18nContext","addSubcomponents","isReactElement","partition","StyledBody","StyledCloseButton","StyledFooter","StyledFooterActions","StyledFooterNotation","StyledHeader","StyledHeaderActions","StyledHeaderBackAction","StyledMoreMenu","StyledPanel","StyledTitle","PanelContext","createContext","ariaLabelledBy","undefined","isScrolling","setIsScrolling","usePanelContext","useContext","maxVisibleIcons","HeaderAction","forwardRef","_ref","ref","title","children","_ref$variant","variant","props","_objectWithoutProperties","_excluded","createElement","overlay","trigger","_extends","MoreMenu","_ref2","node","focus","Options","Children","map","child","Item","item","key","onClick","MoreIcon","_ref3","qa","i18n","placement","trackAriaExpanded","t","moreIcon","icon","HeaderActions","_ref4","_excluded2","iconsAmount","count","_ref5","_","index","toArray","_ref6","_slicedToArray","visibleIcons","hiddenIcons","length","Title","_ref7","_excluded3","_usePanelContext","headingId","id","Header","_ref8","onClickBack","onClose","_excluded4","I18n","isBackButtonActive","$active","tabIndex","disabled","Body","_ref9","_excluded5","_usePanelContext2","timer","useRef","handleScroll","useCallback","current","clearTimeout","setTimeout","Provider","value","role","onScroll","FooterNotation","_ref0","_excluded6","FooterActions","_ref1","_excluded7","Footer","_ref10","_excluded8","_usePanelContext3","$hasShadow","Panel_","Panel","_ref11","ariaLabelledByProp","_excluded9","_React$useState","useState","_React$useState2","defaultLabelId","displayName"],"sources":["../../src/Panel/Panel.tsx"],"sourcesContent":["import { ChevronLeft, Clear, EllipsisVertical } from '@procore/core-icons/dist'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { Menu } from '../Menu'\nimport { OverlayTrigger } from '../OverlayTrigger'\nimport { LevelContext, Section, SectionProvider } from '../Section'\nimport { Tooltip } from '../Tooltip'\nimport type { TypographyProps } from '../Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport { partition } from '../_utils/partition'\nimport {\n StyledBody,\n StyledCloseButton,\n StyledFooter,\n StyledFooterActions,\n StyledFooterNotation,\n StyledHeader,\n StyledHeaderActions,\n StyledHeaderBackAction,\n StyledMoreMenu,\n StyledPanel,\n StyledTitle,\n} from './Panel.styles'\nimport type {\n PanelBodyProps,\n PanelContextShape,\n PanelHeaderActionProps,\n PanelHeaderProps,\n PanelProps,\n PanelQaTags,\n} from './Panel.types'\n\nconst PanelContext = React.createContext<PanelContextShape>({\n ariaLabelledBy: undefined,\n isScrolling: false,\n setIsScrolling: () => {},\n})\n\nconst usePanelContext = () => React.useContext(PanelContext)\n\nconst maxVisibleIcons = 3\n\nconst HeaderAction = React.forwardRef<HTMLSpanElement, PanelHeaderActionProps>(\n function HeaderAction(\n { title, children, variant = 'tertiary', ...props },\n ref\n ) {\n return (\n <Tooltip overlay={title} trigger={['hover', 'focus']} ref={ref}>\n <Button aria-label={title} {...props} variant={variant}>\n {children}\n </Button>\n </Tooltip>\n )\n }\n)\n\nconst MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function MoreMenu({ children }, ref) {\n return (\n <StyledMoreMenu ref={ref}>\n <Menu ref={(node) => node?.focus()}>\n <Menu.Options>\n {React.Children.map(children, (child) => {\n if (isReactElement<PanelHeaderActionProps>(child)) {\n return (\n <Menu.Item\n item={null}\n key={child.props.title}\n onClick={child.props.onClick as (e: React.MouseEvent) => void}\n >\n {child.props.title}\n </Menu.Item>\n )\n }\n })}\n </Menu.Options>\n </Menu>\n </StyledMoreMenu>\n )\n})\n\nexport const MoreIcon: React.FC<\n React.HTMLAttributes<HTMLDivElement> & { qa?: Pick<PanelQaTags, 'moreIcon'> }\n> = ({ children, qa }) => {\n const i18n = useI18nContext()\n\n return (\n <OverlayTrigger\n overlay={<MoreMenu>{children}</MoreMenu>}\n placement=\"bottom-right\"\n trackAriaExpanded\n trigger=\"click\"\n >\n <Button\n aria-haspopup=\"menu\"\n aria-label={i18n.t('core.dropdown.moreOptions')}\n data-qa={qa?.moreIcon}\n icon={<EllipsisVertical />}\n variant=\"tertiary\"\n />\n </OverlayTrigger>\n )\n}\n\nconst HeaderActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & { qa?: Pick<PanelQaTags, 'moreIcon'> }\n>(function HeaderActions({ children, qa, ...props }, ref) {\n const iconsAmount = React.Children.count(children)\n\n const [visibleIcons, hiddenIcons] =\n iconsAmount > maxVisibleIcons\n ? partition(\n (_, index) => index > iconsAmount - maxVisibleIcons,\n React.Children.toArray(children)\n )\n : [children, []]\n\n return (\n <StyledHeaderActions {...props} ref={ref}>\n {visibleIcons}\n {hiddenIcons.length > 0 && <MoreIcon qa={qa}>{hiddenIcons}</MoreIcon>}\n </StyledHeaderActions>\n )\n})\n\nconst Title = React.forwardRef<\n HTMLHeadingElement,\n TypographyProps & { qa?: Pick<PanelQaTags, 'title'>; id?: string }\n>(function Title({ children, qa, ...props }, ref) {\n const { ariaLabelledBy } = usePanelContext()\n const headingId = props.id || ariaLabelledBy\n\n return (\n <StyledTitle id={headingId} {...props} ref={ref} data-qa={qa?.title}>\n {children}\n </StyledTitle>\n )\n})\n\nconst Header = React.forwardRef<HTMLDivElement, PanelHeaderProps>(\n function Header({ children, onClickBack, onClose, ...props }, ref) {\n const I18n = useI18nContext()\n\n const isBackButtonActive = onClickBack !== undefined\n\n return (\n <StyledHeader {...props} ref={ref}>\n <StyledHeaderBackAction $active={isBackButtonActive}>\n <Button\n aria-label={I18n.t('core.panel.goBack')}\n variant=\"tertiary\"\n onClick={onClickBack}\n icon={<ChevronLeft />}\n aria-hidden={!isBackButtonActive}\n tabIndex={isBackButtonActive ? 0 : -1}\n disabled={!isBackButtonActive}\n />\n </StyledHeaderBackAction>\n {children}\n {typeof onClose === 'function' && (\n <StyledCloseButton>\n <HeaderAction\n title={I18n.t('core.panel.close')}\n icon={<Clear />}\n onClick={onClose}\n />\n </StyledCloseButton>\n )}\n </StyledHeader>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, PanelBodyProps>(function Body(\n { children, ...props },\n ref\n) {\n const { ariaLabelledBy, setIsScrolling } = usePanelContext()\n\n const timer = React.useRef<NodeJS.Timer | null>(null)\n\n const handleScroll = React.useCallback(() => {\n setIsScrolling(true)\n\n if (timer.current) {\n clearTimeout(timer.current)\n }\n\n timer.current = setTimeout(() => {\n setIsScrolling(false)\n }, 100)\n }, [setIsScrolling])\n\n return (\n <SectionProvider>\n <LevelContext.Provider value={3}>\n <StyledBody\n {...props}\n ref={ref}\n tabIndex={0}\n role=\"region\"\n aria-labelledby={ariaLabelledBy}\n onScroll={handleScroll}\n >\n {children}\n </StyledBody>\n </LevelContext.Provider>\n </SectionProvider>\n )\n})\n\nconst FooterNotation = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function FooterNotation({ children, ...props }, ref) {\n return (\n <StyledFooterNotation {...props} ref={ref}>\n {children}\n </StyledFooterNotation>\n )\n})\n\nconst FooterActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function FooterActions({ children, ...props }, ref) {\n return (\n <StyledFooterActions {...props} ref={ref}>\n {children}\n </StyledFooterActions>\n )\n})\n\nconst Footer = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Footer({ children, ...props }, ref) {\n const { isScrolling } = usePanelContext()\n\n return (\n <StyledFooter {...props} ref={ref} $hasShadow={isScrolling}>\n {children}\n </StyledFooter>\n )\n})\n\nconst Panel_ = React.forwardRef<HTMLDivElement, PanelProps>(function Panel(\n { 'aria-labelledby': ariaLabelledByProp, children, ...props },\n ref\n) {\n const [isScrolling, setIsScrolling] = React.useState(false)\n const defaultLabelId = useId()\n const ariaLabelledBy = ariaLabelledByProp ?? defaultLabelId\n\n return (\n <PanelContext.Provider\n value={{\n ariaLabelledBy,\n isScrolling,\n setIsScrolling,\n }}\n >\n <StyledPanel {...props} ref={ref}>\n {children}\n </StyledPanel>\n </PanelContext.Provider>\n )\n})\n\nPanel_.displayName = 'Panel'\nBody.displayName = 'Panel.Body'\nFooter.displayName = 'Panel.Footer'\nFooterActions.displayName = 'Panel.FooterActions'\nFooterNotation.displayName = 'Panel.FooterNotation'\nHeader.displayName = 'Panel.Header'\nHeaderAction.displayName = 'Panel.HeaderAction'\nHeaderActions.displayName = 'Panel.HeaderActions'\nTitle.displayName = 'Panel.Title'\n\n/**\n\n Panels help users complete tasks or view additional information alongside the\n main content of a page.\n\n Panels are often initiated by clicking on an item somewhere on the main page,\n and they often contain additional information or options specific to that item.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-panel--demo)\n\n @see [Design Guidelines](https://design.procore.com/panel)\n\n */\nexport const Panel = addSubcomponents(\n {\n Body,\n Footer,\n FooterActions,\n FooterNotation,\n Header,\n HeaderAction,\n HeaderActions,\n Section,\n Title,\n },\n Panel_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,SAASA,WAAW,EAAEC,KAAK,EAAEC,gBAAgB,QAAQ,0BAA0B;AAC/E,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,YAAY,EAAEC,OAAO,EAAEC,eAAe,QAAQ,YAAY;AACnE,SAASC,OAAO,QAAQ,YAAY;AAEpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,UAAU,EACVC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,oBAAoB,EACpBC,YAAY,EACZC,mBAAmB,EACnBC,sBAAsB,EACtBC,cAAc,EACdC,WAAW,EACXC,WAAW,QACN,gBAAgB;AAUvB,IAAMC,YAAY,gBAAGvB,KAAK,CAACwB,aAAa,CAAoB;EAC1DC,cAAc,EAAEC,SAAS;EACzBC,WAAW,EAAE,KAAK;EAClBC,cAAc,EAAE,SAAhBA,cAAcA,CAAA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,WAAW,GAAG,sBAAsB;AACnD7C,MAAM,CAAC6C,WAAW,GAAG,cAAc;AACnCrG,YAAY,CAACqG,WAAW,GAAG,oBAAoB;AAC/CjE,aAAa,CAACiE,WAAW,GAAG,qBAAqB;AACjDnD,KAAK,CAACmD,WAAW,GAAG,aAAa;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMR,KAAK,GAAGpH,gBAAgB,CACnC;EACEyF,IAAI,EAAJA,IAAI;EACJqB,MAAM,EAANA,MAAM;EACNH,aAAa,EAAbA,aAAa;EACbH,cAAc,EAAdA,cAAc;EACdzB,MAAM,EAANA,MAAM;EACNxD,YAAY,EAAZA,YAAY;EACZoC,aAAa,EAAbA,aAAa;EACb/D,OAAO,EAAPA,OAAO;EACP6E,KAAK,EAALA;AACF,CAAC,EACD0C,MACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Panel.js","names":["ChevronLeft","Clear","EllipsisVertical","useId","React","Button","Menu","OverlayTrigger","LevelContext","Section","SectionProvider","Tooltip","useI18nContext","addSubcomponents","isReactElement","partition","StyledBody","StyledCloseButton","StyledFooter","StyledFooterActions","StyledFooterNotation","StyledHeader","StyledHeaderActions","StyledHeaderBackAction","StyledMoreMenu","StyledPanel","StyledTitle","PanelContext","createContext","ariaLabelledBy","undefined","isScrolling","setIsScrolling","usePanelContext","useContext","maxVisibleIcons","HeaderAction","forwardRef","_ref","ref","title","children","_ref$variant","variant","props","_objectWithoutProperties","_excluded","createElement","overlay","trigger","_extends","MoreMenu","_ref2","node","focus","Options","Children","map","child","Item","item","key","onClick","MoreIcon","_ref3","qa","i18n","placement","trackAriaExpanded","t","moreIcon","icon","HeaderActions","_ref4","_excluded2","iconsAmount","count","_ref5","_","index","toArray","_ref6","_slicedToArray","visibleIcons","hiddenIcons","length","Title","_ref7","_excluded3","_usePanelContext","headingId","id","Header","_ref8","onClickBack","onClose","_excluded4","I18n","isBackButtonActive","$active","tabIndex","disabled","Body","_ref9","_excluded5","_usePanelContext2","timer","useRef","handleScroll","useCallback","current","clearTimeout","setTimeout","Provider","value","role","onScroll","FooterNotation","_ref0","_excluded6","FooterActions","_ref1","_excluded7","Footer","_ref10","_excluded8","_usePanelContext3","$hasShadow","Panel_","Panel","_ref11","ariaLabelledByProp","_excluded9","_React$useState","useState","_React$useState2","defaultLabelId","displayName"],"sources":["../../src/Panel/Panel.tsx"],"sourcesContent":["import { ChevronLeft, Clear, EllipsisVertical } from '@procore/core-icons/dist'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { Menu } from '../Menu'\nimport { OverlayTrigger } from '../OverlayTrigger'\nimport { LevelContext, Section, SectionProvider } from '../Section'\nimport { Tooltip } from '../Tooltip'\nimport type { TypographyProps } from '../Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport { partition } from '../_utils/partition'\nimport {\n StyledBody,\n StyledCloseButton,\n StyledFooter,\n StyledFooterActions,\n StyledFooterNotation,\n StyledHeader,\n StyledHeaderActions,\n StyledHeaderBackAction,\n StyledMoreMenu,\n StyledPanel,\n StyledTitle,\n} from './Panel.styles'\nimport type {\n PanelBodyProps,\n PanelContextShape,\n PanelHeaderActionProps,\n PanelHeaderProps,\n PanelProps,\n PanelQaTags,\n} from './Panel.types'\n\nconst PanelContext = React.createContext<PanelContextShape>({\n ariaLabelledBy: undefined,\n isScrolling: false,\n setIsScrolling: () => {},\n})\n\nconst usePanelContext = () => React.useContext(PanelContext)\n\nconst maxVisibleIcons = 3\n\nconst HeaderAction = React.forwardRef<HTMLSpanElement, PanelHeaderActionProps>(\n function HeaderAction(\n { title, children, variant = 'tertiary', ...props },\n ref\n ) {\n return (\n <Tooltip overlay={title} trigger={['hover', 'focus']} ref={ref}>\n <Button aria-label={title} {...props} variant={variant}>\n {children}\n </Button>\n </Tooltip>\n )\n }\n)\n\nconst MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function MoreMenu({ children }, ref) {\n return (\n <StyledMoreMenu ref={ref}>\n <Menu ref={(node) => node?.focus()}>\n <Menu.Options>\n {React.Children.map(children, (child) => {\n if (isReactElement<PanelHeaderActionProps>(child)) {\n return (\n <Menu.Item\n item={null}\n key={child.props.title}\n onClick={child.props.onClick as (e: React.MouseEvent) => void}\n >\n {child.props.title}\n </Menu.Item>\n )\n }\n })}\n </Menu.Options>\n </Menu>\n </StyledMoreMenu>\n )\n})\n\nexport const MoreIcon: React.FC<\n React.HTMLAttributes<HTMLDivElement> & { qa?: Pick<PanelQaTags, 'moreIcon'> }\n> = ({ children, qa }) => {\n const i18n = useI18nContext()\n\n return (\n <OverlayTrigger\n overlay={<MoreMenu>{children}</MoreMenu>}\n placement=\"bottom-right\"\n trackAriaExpanded\n trigger=\"click\"\n >\n <Button\n aria-haspopup=\"menu\"\n aria-label={i18n.t('core.dropdown.moreOptions')}\n data-qa={qa?.moreIcon}\n icon={<EllipsisVertical />}\n variant=\"tertiary\"\n />\n </OverlayTrigger>\n )\n}\n\nconst HeaderActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & { qa?: Pick<PanelQaTags, 'moreIcon'> }\n>(function HeaderActions({ children, qa, ...props }, ref) {\n const iconsAmount = React.Children.count(children)\n\n const [visibleIcons, hiddenIcons] =\n iconsAmount > maxVisibleIcons\n ? partition(\n (_, index) => index > iconsAmount - maxVisibleIcons,\n React.Children.toArray(children)\n )\n : [children, []]\n\n return (\n <StyledHeaderActions {...props} ref={ref}>\n {visibleIcons}\n {hiddenIcons.length > 0 && <MoreIcon qa={qa}>{hiddenIcons}</MoreIcon>}\n </StyledHeaderActions>\n )\n})\n\nconst Title = React.forwardRef<\n HTMLHeadingElement,\n TypographyProps & { qa?: Pick<PanelQaTags, 'title'>; id?: string }\n>(function Title({ children, qa, ...props }, ref) {\n const { ariaLabelledBy } = usePanelContext()\n const headingId = props.id || ariaLabelledBy\n\n return (\n <StyledTitle id={headingId} {...props} ref={ref} data-qa={qa?.title}>\n {children}\n </StyledTitle>\n )\n})\n\nconst Header = React.forwardRef<HTMLDivElement, PanelHeaderProps>(\n function Header({ children, onClickBack, onClose, ...props }, ref) {\n const I18n = useI18nContext()\n\n const isBackButtonActive = onClickBack !== undefined\n\n return (\n <StyledHeader {...props} ref={ref}>\n <StyledHeaderBackAction $active={isBackButtonActive}>\n <Button\n aria-label={I18n.t('core.panel.goBack')}\n variant=\"tertiary\"\n onClick={onClickBack}\n icon={<ChevronLeft />}\n aria-hidden={!isBackButtonActive}\n tabIndex={isBackButtonActive ? 0 : -1}\n disabled={!isBackButtonActive}\n />\n </StyledHeaderBackAction>\n {children}\n {typeof onClose === 'function' && (\n <StyledCloseButton>\n <HeaderAction\n title={I18n.t('core.panel.close')}\n icon={<Clear />}\n onClick={onClose}\n />\n </StyledCloseButton>\n )}\n </StyledHeader>\n )\n }\n)\n\nconst Body = React.forwardRef<HTMLDivElement, PanelBodyProps>(function Body(\n { children, ...props },\n ref\n) {\n const { ariaLabelledBy, setIsScrolling } = usePanelContext()\n\n const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null)\n\n const handleScroll = React.useCallback(() => {\n setIsScrolling(true)\n\n if (timer.current) {\n clearTimeout(timer.current)\n }\n\n timer.current = setTimeout(() => {\n setIsScrolling(false)\n }, 100)\n }, [setIsScrolling])\n\n return (\n <SectionProvider>\n <LevelContext.Provider value={3}>\n <StyledBody\n {...props}\n ref={ref}\n tabIndex={0}\n role=\"region\"\n aria-labelledby={ariaLabelledBy}\n onScroll={handleScroll}\n >\n {children}\n </StyledBody>\n </LevelContext.Provider>\n </SectionProvider>\n )\n})\n\nconst FooterNotation = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function FooterNotation({ children, ...props }, ref) {\n return (\n <StyledFooterNotation {...props} ref={ref}>\n {children}\n </StyledFooterNotation>\n )\n})\n\nconst FooterActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function FooterActions({ children, ...props }, ref) {\n return (\n <StyledFooterActions {...props} ref={ref}>\n {children}\n </StyledFooterActions>\n )\n})\n\nconst Footer = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(function Footer({ children, ...props }, ref) {\n const { isScrolling } = usePanelContext()\n\n return (\n <StyledFooter {...props} ref={ref} $hasShadow={isScrolling}>\n {children}\n </StyledFooter>\n )\n})\n\nconst Panel_ = React.forwardRef<HTMLDivElement, PanelProps>(function Panel(\n { 'aria-labelledby': ariaLabelledByProp, children, ...props },\n ref\n) {\n const [isScrolling, setIsScrolling] = React.useState(false)\n const defaultLabelId = useId()\n const ariaLabelledBy = ariaLabelledByProp ?? defaultLabelId\n\n return (\n <PanelContext.Provider\n value={{\n ariaLabelledBy,\n isScrolling,\n setIsScrolling,\n }}\n >\n <StyledPanel {...props} ref={ref}>\n {children}\n </StyledPanel>\n </PanelContext.Provider>\n )\n})\n\nPanel_.displayName = 'Panel'\nBody.displayName = 'Panel.Body'\nFooter.displayName = 'Panel.Footer'\nFooterActions.displayName = 'Panel.FooterActions'\nFooterNotation.displayName = 'Panel.FooterNotation'\nHeader.displayName = 'Panel.Header'\nHeaderAction.displayName = 'Panel.HeaderAction'\nHeaderActions.displayName = 'Panel.HeaderActions'\nTitle.displayName = 'Panel.Title'\n\n/**\n\n Panels help users complete tasks or view additional information alongside the\n main content of a page.\n\n Panels are often initiated by clicking on an item somewhere on the main page,\n and they often contain additional information or options specific to that item.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-panel--demo)\n\n @see [Design Guidelines](https://design.procore.com/panel)\n\n */\nexport const Panel = addSubcomponents(\n {\n Body,\n Footer,\n FooterActions,\n FooterNotation,\n Header,\n HeaderAction,\n HeaderActions,\n Section,\n Title,\n },\n Panel_\n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AAM,EAANA,MAAM;EACNxD,YAAY,EAAZA,YAAY;EACZoC,aAAa,EAAbA,aAAa;EACb/D,OAAO,EAAPA,OAAO;EACP6E,KAAK,EAALA;AACF,CAAC,EACD0C,MACF,CAAC","ignoreList":[]}
|
|
@@ -1,21 +1,43 @@
|
|
|
1
|
-
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
-
|
|
1
|
+
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const StyledTitle: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
3
5
|
ref?: ((instance: HTMLHeadingElement | 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<HTMLHeadingElement> | null | undefined;
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
+
}, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const StyledHeaderBackAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}, {
|
|
6
12
|
$active: boolean;
|
|
7
13
|
}>> & string;
|
|
8
|
-
export declare const StyledMoreMenu: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
14
|
+
export declare const StyledMoreMenu: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
15
|
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;
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
16
|
+
}, "style"> & {
|
|
17
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
18
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
19
|
+
export declare const StyledHeaderActions: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
21
|
+
}> & string;
|
|
22
|
+
export declare const StyledCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
23
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
24
|
+
}> & string;
|
|
25
|
+
export declare const StyledBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
26
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
27
|
+
}, {
|
|
14
28
|
secondaryBgColor?: boolean;
|
|
15
29
|
}>> & string;
|
|
16
|
-
export declare const StyledPanel: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
30
|
+
export declare const StyledPanel: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
31
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
32
|
+
}> & string;
|
|
33
|
+
export declare const StyledFooterNotation: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
34
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
35
|
+
}> & string;
|
|
36
|
+
export declare const StyledFooterActions: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
37
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
38
|
+
}> & string;
|
|
39
|
+
export declare const StyledFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
40
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
41
|
+
}, {
|
|
20
42
|
$hasShadow: boolean;
|
|
21
43
|
}>> & string;
|
|
@@ -12,15 +12,15 @@ var gutter = /*#__PURE__*/css(["> * + *{margin-left:", "px;}"], spacing.sm);
|
|
|
12
12
|
var panel = /*#__PURE__*/css(["display:flex;padding:", "px;background:", ";"], spacing.lg, colors.white);
|
|
13
13
|
export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
|
|
14
14
|
displayName: "StyledHeader",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-12_53_2__sc-lidix2-0"
|
|
16
16
|
})(["border-bottom:1px solid ", ";", ""], colors.gray85, panel);
|
|
17
17
|
export var StyledTitle = /*#__PURE__*/styled(H2).withConfig({
|
|
18
18
|
displayName: "StyledTitle",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_53_2__sc-lidix2-1"
|
|
20
20
|
})(["flex-grow:1;"]);
|
|
21
21
|
export var StyledHeaderBackAction = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledHeaderBackAction",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_53_2__sc-lidix2-2"
|
|
24
24
|
})(["transition:all 300ms ease-out;flex-shrink:0;width:", "px;margin-right:", "px;opacity:", ";transform:translateX( ", "px );"], function (_ref) {
|
|
25
25
|
var $active = _ref.$active;
|
|
26
26
|
return $active ? headerActionSize : 0;
|
|
@@ -36,38 +36,38 @@ export var StyledHeaderBackAction = /*#__PURE__*/styled.div.withConfig({
|
|
|
36
36
|
});
|
|
37
37
|
export var StyledMoreMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
38
38
|
displayName: "StyledMoreMenu",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-12_53_2__sc-lidix2-3"
|
|
40
40
|
})(["max-height:128px;"]);
|
|
41
41
|
export var StyledHeaderActions = /*#__PURE__*/styled.div.withConfig({
|
|
42
42
|
displayName: "StyledHeaderActions",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-12_53_2__sc-lidix2-4"
|
|
44
44
|
})(["display:flex;margin-left:", "px;flex-shrink:0;", ""], spacing.lg, gutter);
|
|
45
45
|
export var StyledCloseButton = /*#__PURE__*/styled.div.withConfig({
|
|
46
46
|
displayName: "StyledCloseButton",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-12_53_2__sc-lidix2-5"
|
|
48
48
|
})(["margin-left:", "px;"], spacing.sm);
|
|
49
49
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledBody",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-12_53_2__sc-lidix2-6"
|
|
52
52
|
})(["height:100%;background:", ";overflow-y:auto;> ", "{margin:", "px;}&:focus-visible{", "}> ", "{padding-left:", "px;padding-right:", "px;", "{padding-left:0;padding-right:0;}&:first-child > ", "{padding-top:", "px;}}"], function (_ref5) {
|
|
53
53
|
var secondaryBgColor = _ref5.secondaryBgColor;
|
|
54
54
|
return secondaryBgColor ? colors.gray96 : colors.white;
|
|
55
55
|
}, StyledRequiredContainer, spacing.lg, getFocusInset(), StyledSection, spacing.lg, spacing.lg, StyledSection, StyledSectionInner, spacing.lg);
|
|
56
56
|
export var StyledPanel = /*#__PURE__*/styled.aside.withConfig({
|
|
57
57
|
displayName: "StyledPanel",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-12_53_2__sc-lidix2-7"
|
|
59
59
|
})(["display:flex;flex-direction:column;width:100%;height:100%;background:", ";overflow:hidden;"], colors.white);
|
|
60
60
|
export var StyledFooterNotation = /*#__PURE__*/styled.div.withConfig({
|
|
61
61
|
displayName: "StyledFooterNotation",
|
|
62
|
-
componentId: "core-
|
|
62
|
+
componentId: "core-12_53_2__sc-lidix2-8"
|
|
63
63
|
})(["flex-grow:1;"]);
|
|
64
64
|
export var StyledFooterActions = /*#__PURE__*/styled.div.withConfig({
|
|
65
65
|
displayName: "StyledFooterActions",
|
|
66
|
-
componentId: "core-
|
|
66
|
+
componentId: "core-12_53_2__sc-lidix2-9"
|
|
67
67
|
})(["", ""], gutter);
|
|
68
68
|
export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
|
|
69
69
|
displayName: "StyledFooter",
|
|
70
|
-
componentId: "core-
|
|
70
|
+
componentId: "core-12_53_2__sc-lidix2-10"
|
|
71
71
|
})(["border-top:1px solid ", ";justify-content:flex-end;", " ", ""], colors.gray85, panel, function (_ref6) {
|
|
72
72
|
var $hasShadow = _ref6.$hasShadow;
|
|
73
73
|
return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;z-index:1;"]);
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { PillColor } from './Pill.types';
|
|
2
|
-
export declare const StyledPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
2
|
+
export declare const StyledPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
3
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
|
+
}, {
|
|
3
5
|
$color: PillColor;
|
|
4
6
|
}>> & string;
|
|
5
|
-
export declare const StyledRemove: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
7
|
+
export declare const StyledRemove: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<Omit<{
|
|
6
8
|
size?: import("@procore/core-icons/dist/Icon").IconSize;
|
|
7
9
|
} & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
8
10
|
ref?: ((instance: SVGSVGElement | 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<SVGSVGElement> | null | undefined;
|
|
11
|
+
}, "style"> & {
|
|
12
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
9
13
|
}, {
|
|
10
14
|
$color: PillColor;
|
|
11
15
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
12
16
|
size?: import("@procore/core-icons/dist/Icon").IconSize;
|
|
13
17
|
} & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
|
-
export declare const StyledRemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
18
|
+
export declare const StyledRemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
19
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
20
|
+
}, {
|
|
15
21
|
$color: PillColor;
|
|
16
22
|
}>> & string;
|
package/dist/Pill/Pill.styles.js
CHANGED
|
@@ -6,18 +6,18 @@ import { PillColorPalets } from './Pill.colorPalette';
|
|
|
6
6
|
var pillButtonSize = 16;
|
|
7
7
|
export var StyledPill = /*#__PURE__*/styled.span.withConfig({
|
|
8
8
|
displayName: "StyledPill",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_53_2__sc-99e1t5-0"
|
|
10
10
|
})(["", " display:inline-block;padding:1px ", "px;border:1px solid;border-radius:10px;font-weight:600;& + &{margin-left:", "px;}", ""], getTypographyIntent('small'), spacing.sm, spacing.xs, function (_ref) {
|
|
11
11
|
var $color = _ref.$color;
|
|
12
12
|
return css(["background-color:", ";border-color:", ";color:", ";"], PillColorPalets[$color].backgroundColor, PillColorPalets[$color].borderColor, PillColorPalets[$color].color);
|
|
13
13
|
});
|
|
14
14
|
export var StyledRemove = /*#__PURE__*/styled(Clear).withConfig({
|
|
15
15
|
displayName: "StyledRemove",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_53_2__sc-99e1t5-1"
|
|
17
17
|
})(["border-radius:100%;cursor:pointer;flex:0 0 auto;height:", "px;width:", "px;vertical-align:top;"], pillButtonSize, pillButtonSize);
|
|
18
18
|
export var StyledRemoveButton = /*#__PURE__*/styled.button.withConfig({
|
|
19
19
|
displayName: "StyledRemoveButton",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_53_2__sc-99e1t5-2"
|
|
21
21
|
})(["border:0;padding:0;border-radius:100%;margin:0 -", "px 0 ", "px;color:inherit;", ""], pillButtonSize / 2 - spacing.xxs, spacing.xxs, function (_ref2) {
|
|
22
22
|
var $color = _ref2.$color;
|
|
23
23
|
return css(["&:hover{background:", ";color:", ";}"], PillColorPalets[$color].color, PillColorPalets[$color].backgroundColor);
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
export declare const PillSelectOptionWrapper: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const PillSelectOptionWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const PillSelectCheckedContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}> & string;
|
|
7
|
+
export declare const PillSelectLabel: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("..").PillProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
4
8
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
5
|
-
},
|
|
6
|
-
|
|
9
|
+
}, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("..").PillProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
|
|
12
|
+
export declare const PillSelectLabelWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
14
|
+
}, {
|
|
7
15
|
disabled?: boolean;
|
|
8
16
|
}>> & string;
|
|
@@ -6,19 +6,19 @@ import { spacing } from '../_styles/spacing';
|
|
|
6
6
|
var checkedIconPlaceholderWidth = 32;
|
|
7
7
|
export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "PillSelectOptionWrapper",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_53_2__sc-1ai2ze0-0"
|
|
10
10
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
11
11
|
export var PillSelectCheckedContainer = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "PillSelectCheckedContainer",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_53_2__sc-1ai2ze0-1"
|
|
14
14
|
})(["align-items:center;color:", ";display:inline-flex;padding-left:", "px;width:", "px;"], colors.blue50, spacing.sm, checkedIconPlaceholderWidth);
|
|
15
15
|
export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
|
|
16
16
|
displayName: "PillSelectLabel",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_53_2__sc-1ai2ze0-2"
|
|
18
18
|
})(["", ""], getEllipsis);
|
|
19
19
|
export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "PillSelectLabelWrapper",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-12_53_2__sc-1ai2ze0-3"
|
|
22
22
|
})(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
|
|
23
23
|
var disabled = _ref.disabled;
|
|
24
24
|
return disabled && css(["pointer-events:none;"]);
|
|
@@ -5,6 +5,10 @@ interface StyledPopoverProps {
|
|
|
5
5
|
$fluid: boolean;
|
|
6
6
|
$placement: Placement;
|
|
7
7
|
}
|
|
8
|
-
export declare const StyledPopoverContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
9
|
-
|
|
8
|
+
export declare const StyledPopoverContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
9
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
10
|
+
}, StyledPopoverProps>> & string;
|
|
11
|
+
export declare const StyledPopover: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
12
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
13
|
+
}> & string;
|
|
10
14
|
export {};
|
|
@@ -5,7 +5,7 @@ import { getShadow } from '../_styles/shadows';
|
|
|
5
5
|
export var popoverArrowSize = 6;
|
|
6
6
|
export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
|
|
7
7
|
displayName: "StyledPopoverContent",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_53_2__sc-1cd0ihn-0"
|
|
9
9
|
})(["background-color:", ";border-radius:inherit;color:", ";display:inline-block;max-width:250px;position:relative;", ""], colors.white, colors.gray15, function (_ref) {
|
|
10
10
|
var $block = _ref.$block,
|
|
11
11
|
$fluid = _ref.$fluid;
|
|
@@ -15,6 +15,6 @@ export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
|
|
|
15
15
|
});
|
|
16
16
|
export var StyledPopover = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledPopover",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_53_2__sc-1cd0ihn-1"
|
|
19
19
|
})(["display:inline-block;border-radius:", "px;", " & + [data-overlay-arrow]{background:", ";}"], borderRadius.md, getShadow(3), colors.white);
|
|
20
20
|
//# sourceMappingURL=Popover.styles.js.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const StyledPortal: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
1
|
+
export declare const StyledPortal: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var StyledPortal = /*#__PURE__*/styled.div.withConfig({
|
|
3
3
|
displayName: "StyledPortal",
|
|
4
|
-
componentId: "core-
|
|
4
|
+
componentId: "core-12_53_2__sc-15o1h2-0"
|
|
5
5
|
})(["left:0;pointer-events:none;position:fixed;top:0;> *{pointer-events:all;}"]);
|
|
6
6
|
//# sourceMappingURL=Portal.styles.js.map
|