@procore/core-react 12.25.0 → 12.25.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/CHANGELOG.md +23 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.d.ts +9 -10
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.d.ts +2 -2
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.d.ts +15 -15
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Box/Box.d.ts +1 -2
- package/dist/Box/Box.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -4
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Button/Button.types.d.ts +2 -3
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js.map +1 -1
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/Checkbox.types.d.ts +1 -2
- package/dist/Checkbox/Checkbox.types.js.map +1 -1
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.d.ts +2 -3
- package/dist/ContactItem/ContactItem.js.map +1 -1
- package/dist/ContactItem/ContactItem.styles.d.ts +5 -5
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.d.ts +4 -4
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DateInput/DateInput.types.d.ts +2 -2
- package/dist/DateInput/DateInput.types.js.map +1 -1
- package/dist/DetailPage/DetailPage.d.ts +1 -1
- package/dist/DetailPage/DetailPage.styles.d.ts +4 -4
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.d.ts +1 -1
- package/dist/Dropdown/Dropdown.styles.d.ts +2 -2
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.helpers.js +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +4 -4
- package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
- package/dist/Dropzone/Dropzone.d.ts +2 -3
- package/dist/Dropzone/Dropzone.js +1 -2
- package/dist/Dropzone/Dropzone.js.map +1 -1
- package/dist/Dropzone/Dropzone.styles.d.ts +6 -6
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.d.ts +6 -6
- package/dist/EmptyState/EmptyState.js.map +1 -1
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.d.ts +1 -2
- package/dist/FileList/FileList.js.map +1 -1
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerModal.d.ts +1 -2
- package/dist/FileSelect/FileExplorer/FileExplorerModal.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.d.ts +2 -2
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.d.ts +3 -4
- package/dist/FileSelect/FileSelect.js.map +1 -1
- package/dist/FileSelect/FileSelect.styles.d.ts +2 -2
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelect.types.d.ts +1 -2
- package/dist/FileSelect/FileSelect.types.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.d.ts +1 -2
- package/dist/FileSelect/FileTokenList/FileTokenList.js.map +1 -1
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.d.ts +2 -2
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.d.ts +1 -2
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.d.ts +6 -6
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.d.ts +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.d.ts +2 -2
- package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.js.map +1 -1
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +7 -7
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/ThumbnailList/ThumbnailList.types.d.ts +2 -2
- package/dist/FileSelect/ThumbnailList/ThumbnailList.types.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.d.ts +1 -2
- package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.d.ts +1 -2
- package/dist/FileToken/FileToken.js +17 -18
- package/dist/FileToken/FileToken.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +9 -9
- package/dist/FileToken/FileToken.styles.js.map +1 -1
- package/dist/FileToken/FileToken.types.d.ts +22 -0
- package/dist/FileToken/FileToken.types.js.map +1 -1
- package/dist/FileToken/FileTokenInner.d.ts +3 -0
- package/dist/FileToken/FileTokenInner.js +25 -0
- package/dist/FileToken/FileTokenInner.js.map +1 -0
- package/dist/FilterToken/FilterToken.d.ts +3 -4
- package/dist/FilterToken/FilterToken.js.map +1 -1
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/Flex/Flex.d.ts +1 -2
- package/dist/Flex/Flex.js.map +1 -1
- package/dist/FlexList/FlexList.d.ts +1 -2
- package/dist/FlexList/FlexList.js.map +1 -1
- package/dist/FlexList/FlexList.styles.d.ts +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.js +9 -0
- package/dist/GhostPlaceholder/GhostPlaceholder.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/Grid/Grid.types.d.ts +4 -4
- package/dist/Grid/Grid.types.js.map +1 -1
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.d.ts +1 -2
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Input/Input.types.d.ts +2 -2
- package/dist/Input/Input.types.js.map +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/Link/Link.types.d.ts +2 -2
- package/dist/Link/Link.types.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/Menu/Menu.d.ts +8 -9
- package/dist/Menu/Menu.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.d.ts +8 -9
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.d.ts +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/MenuImperative/MenuImperative.types.d.ts +2 -2
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/Modal/Modal.d.ts +7 -6
- package/dist/Modal/Modal.js +47 -11
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.d.ts +4 -4
- package/dist/Modal/Modal.styles.js +15 -14
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/Modal/Modal.types.d.ts +6 -4
- package/dist/Modal/Modal.types.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.d.ts +2 -2
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.types.d.ts +3 -3
- package/dist/NextTile/NextTile.types.js.map +1 -1
- package/dist/Notation/Notation.d.ts +1 -2
- package/dist/Notation/Notation.js +1 -1
- package/dist/Notation/Notation.js.map +1 -1
- package/dist/NumberInput/NumberInput.js +5 -2
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.d.ts +2 -2
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageLayout/PageLayout.types.d.ts +3 -3
- package/dist/PageLayout/PageLayout.types.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +4 -4
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +6 -4
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.d.ts +6 -6
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.d.ts +6 -7
- package/dist/Panel/Panel.js +22 -8
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.d.ts +5 -5
- package/dist/Panel/Panel.styles.js +16 -15
- package/dist/Panel/Panel.styles.js.map +1 -1
- package/dist/Panel/Panel.types.d.ts +14 -5
- package/dist/Panel/Panel.types.js.map +1 -1
- package/dist/Pill/Pill.js +15 -7
- package/dist/Pill/Pill.js.map +1 -1
- package/dist/Pill/Pill.styles.d.ts +3 -0
- package/dist/Pill/Pill.styles.js +7 -3
- package/dist/Pill/Pill.styles.js.map +1 -1
- package/dist/Pill/Pill.types.d.ts +1 -1
- package/dist/Pill/Pill.types.js.map +1 -1
- package/dist/PillSelect/PillSelect.js.map +1 -1
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.styles.js +4 -4
- package/dist/Popover/Popover.styles.js.map +1 -1
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/ProgressBar/ProgressBar.types.d.ts +2 -2
- package/dist/ProgressBar/ProgressBar.types.js.map +1 -1
- 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.js +6 -5
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.d.ts +5 -5
- package/dist/Section/Section.styles.js +9 -8
- package/dist/Section/Section.styles.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/SegmentedController/SegmentedController.types.d.ts +2 -2
- package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
- package/dist/Select/Select.styles.d.ts +2 -2
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.d.ts +1 -1
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Semantic/Semantic.types.d.ts +1 -2
- package/dist/Semantic/Semantic.types.js.map +1 -1
- package/dist/SettingsPage/SettingsPage.d.ts +1 -1
- package/dist/Slider/Slider.styles.d.ts +2 -2
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Slider/Slider.types.d.ts +2 -2
- package/dist/Slider/Slider.types.js.map +1 -1
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.d.ts +0 -1
- package/dist/SplitViewCard/SplitViewCard.js +29 -26
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.js +10 -9
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.types.d.ts +11 -0
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCardInternal.context.d.ts +2 -2
- package/dist/SplitViewCard/SplitViewCardInternal.context.js +4 -1
- package/dist/SplitViewCard/SplitViewCardInternal.context.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.components.d.ts +4 -3
- package/dist/SuperSelect/SuperSelect.components.js +5 -1
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.d.ts +2 -2
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.d.ts +6 -6
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/SuperSelect/SuperSelect.types.d.ts +3 -2
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
- package/dist/SuperSelect/useSuperSelect.js +28 -1
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.d.ts +1 -2
- package/dist/Switch/Switch.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Switch/Switch.types.d.ts +2 -2
- package/dist/Switch/Switch.types.js.map +1 -1
- package/dist/Table/Table.d.ts +34 -35
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.d.ts +6 -6
- package/dist/Table/Table.styles.js +28 -28
- package/dist/Table/Table.types.d.ts +1 -2
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js.map +1 -1
- package/dist/TableShelf/TableShelf.d.ts +12 -13
- package/dist/TableShelf/TableShelf.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.d.ts +4 -5
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.d.ts +2 -2
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.js +9 -6
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.d.ts +2 -2
- package/dist/Tearsheet/Tearsheet.styles.js +7 -6
- package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
- package/dist/TextArea/TextArea.d.ts +1 -2
- package/dist/TextArea/TextArea.js.map +1 -1
- package/dist/TextArea/TextArea.styles.js +4 -4
- package/dist/TextArea/TextArea.styles.js.map +1 -1
- package/dist/TextArea/TextArea.types.d.ts +2 -2
- package/dist/TextArea/TextArea.types.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.d.ts +1 -2
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/TextEditorOutput/index.d.ts +1 -0
- package/dist/TextEditorOutput/index.js.map +1 -1
- package/dist/TextInput/TextInput.d.ts +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +6 -7
- package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +2 -2
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/index.d.ts +1 -1
- package/dist/Thumbnail/index.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +1 -2
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +9 -9
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.d.ts +15 -15
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.d.ts +1 -1
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Tile/Tile.types.d.ts +4 -4
- package/dist/Tile/Tile.types.js.map +1 -1
- package/dist/Title/Title.d.ts +5 -6
- package/dist/Title/Title.js.map +1 -1
- package/dist/Title/Title.styles.d.ts +3 -3
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Title/Title.types.d.ts +2 -2
- package/dist/Title/Title.types.js.map +1 -1
- package/dist/Toast/Toast.d.ts +4 -5
- package/dist/Toast/Toast.js.map +1 -1
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/ToggleButton/ToggleButton.types.d.ts +1 -2
- package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
- package/dist/Token/Token.d.ts +5 -4
- package/dist/Token/Token.js +37 -10
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.d.ts +3 -7
- package/dist/Token/Token.styles.js +8 -8
- package/dist/Token/Token.styles.js.map +1 -1
- package/dist/Token/Token.types.d.ts +4 -0
- package/dist/Token/Token.types.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.d.ts +6 -7
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.d.ts +6 -6
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Tree/Tree.types.d.ts +2 -3
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.d.ts +1 -2
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/ClickOutside.js +8 -4
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_locales/de-DE.json +1 -1
- package/dist/_locales/en-AU.json +1 -1
- package/dist/_locales/en-CA.json +1 -1
- package/dist/_locales/en-GB.json +1 -1
- package/dist/_locales/en.json +1 -1
- package/dist/_locales/es-ES.json +1 -1
- package/dist/_locales/es.json +1 -1
- package/dist/_locales/fr-CA.json +1 -1
- package/dist/_locales/fr-FR.json +1 -1
- package/dist/_locales/is-IS.json +1 -1
- package/dist/_locales/it-IT.json +1 -1
- package/dist/_locales/ja-JP.json +1 -1
- package/dist/_locales/pl-PL.json +1 -1
- package/dist/_locales/pseudo.json +1 -1
- package/dist/_locales/pt-BR.json +1 -1
- package/dist/_locales/th-TH.json +1 -1
- package/dist/_locales/zh-SG.json +1 -1
- package/dist/_locales/zh-TW.json +1 -1
- package/dist/_styles/mixins.js +1 -1
- package/dist/_styles/mixins.js.map +1 -1
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +13 -13
- 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 -18
- 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 +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +739 -759
- 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 +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -31
- 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 +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +54 -54
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
- package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -56
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +51 -29
- package/dist/_typedoc/Pill/Pill.types.json +4 -4
- 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 +60 -60
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +34 -12
- package/dist/_typedoc/Switch/Switch.types.json +1 -32
- package/dist/_typedoc/Table/Table.types.json +101 -101
- 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 +9 -9
- 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 +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- 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 +30 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- 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/_utils/slotify.d.ts +1 -2
- package/dist/_utils/slotify.js.map +1 -1
- package/dist/_utils/types.d.ts +16 -18
- package/dist/_utils/types.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Panel/Panel.js
CHANGED
|
@@ -6,7 +6,7 @@ var _excluded = ["title", "children", "variant"],
|
|
|
6
6
|
_excluded6 = ["children"],
|
|
7
7
|
_excluded7 = ["children"],
|
|
8
8
|
_excluded8 = ["children"],
|
|
9
|
-
_excluded9 = ["children"];
|
|
9
|
+
_excluded9 = ["aria-labelledby", "children"];
|
|
10
10
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
11
|
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."); }
|
|
12
12
|
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; } }
|
|
@@ -17,6 +17,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
17
17
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
18
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
19
19
|
import { ChevronLeft, Clear, EllipsisVertical } from '@procore/core-icons/dist';
|
|
20
|
+
import { useId } from '@react-aria/utils';
|
|
20
21
|
import React from 'react';
|
|
21
22
|
import { Button } from '../Button';
|
|
22
23
|
import { Menu } from '../Menu';
|
|
@@ -31,6 +32,7 @@ import { mergeRefs } from '../_utils/mergeRefs';
|
|
|
31
32
|
import { partition } from '../_utils/partition';
|
|
32
33
|
import { StyledBody, StyledCloseButton, StyledFooter, StyledFooterActions, StyledFooterNotation, StyledHeader, StyledHeaderActions, StyledHeaderBackAction, StyledMoreMenu, StyledPanel, StyledTitle } from './Panel.styles';
|
|
33
34
|
var PanelContext = /*#__PURE__*/React.createContext({
|
|
35
|
+
ariaLabelledBy: undefined,
|
|
34
36
|
isScrolling: false,
|
|
35
37
|
setIsScrolling: function setIsScrolling() {}
|
|
36
38
|
});
|
|
@@ -127,12 +129,16 @@ var Title = /*#__PURE__*/React.forwardRef(function Title(_ref8, ref) {
|
|
|
127
129
|
var _useOverflowObserver = useOverflowObserver(),
|
|
128
130
|
isOverflowingX = _useOverflowObserver.isOverflowingX,
|
|
129
131
|
overflowRef = _useOverflowObserver.ref;
|
|
132
|
+
var _usePanelContext = usePanelContext(),
|
|
133
|
+
ariaLabelledBy = _usePanelContext.ariaLabelledBy;
|
|
134
|
+
var headingId = props.id || ariaLabelledBy;
|
|
130
135
|
return /*#__PURE__*/React.createElement(TitleTooltip, {
|
|
131
136
|
isVisible: isOverflowingX,
|
|
132
137
|
overlay: children
|
|
133
|
-
}, /*#__PURE__*/React.createElement(StyledTitle, _extends({
|
|
138
|
+
}, /*#__PURE__*/React.createElement(StyledTitle, _extends({
|
|
139
|
+
id: headingId
|
|
140
|
+
}, props, {
|
|
134
141
|
ref: mergeRefs(overflowRef, ref),
|
|
135
|
-
intent: "h2",
|
|
136
142
|
"data-qa": qa === null || qa === void 0 ? void 0 : qa.title
|
|
137
143
|
}), children));
|
|
138
144
|
});
|
|
@@ -160,8 +166,9 @@ var Header = /*#__PURE__*/React.forwardRef(function Header(_ref9, ref) {
|
|
|
160
166
|
var Body = /*#__PURE__*/React.forwardRef(function Body(_ref0, ref) {
|
|
161
167
|
var children = _ref0.children,
|
|
162
168
|
props = _objectWithoutProperties(_ref0, _excluded5);
|
|
163
|
-
var
|
|
164
|
-
|
|
169
|
+
var _usePanelContext2 = usePanelContext(),
|
|
170
|
+
ariaLabelledBy = _usePanelContext2.ariaLabelledBy,
|
|
171
|
+
setIsScrolling = _usePanelContext2.setIsScrolling;
|
|
165
172
|
var timer = React.useRef(null);
|
|
166
173
|
var handleScroll = React.useCallback(function () {
|
|
167
174
|
setIsScrolling(true);
|
|
@@ -176,6 +183,9 @@ var Body = /*#__PURE__*/React.forwardRef(function Body(_ref0, ref) {
|
|
|
176
183
|
value: 3
|
|
177
184
|
}, /*#__PURE__*/React.createElement(StyledBody, _extends({}, props, {
|
|
178
185
|
ref: ref,
|
|
186
|
+
tabIndex: 0,
|
|
187
|
+
role: "region",
|
|
188
|
+
"aria-labelledby": ariaLabelledBy,
|
|
179
189
|
onScroll: handleScroll
|
|
180
190
|
}), children)));
|
|
181
191
|
});
|
|
@@ -196,22 +206,26 @@ var FooterActions = /*#__PURE__*/React.forwardRef(function FooterActions(_ref10,
|
|
|
196
206
|
var Footer = /*#__PURE__*/React.forwardRef(function Footer(_ref11, ref) {
|
|
197
207
|
var children = _ref11.children,
|
|
198
208
|
props = _objectWithoutProperties(_ref11, _excluded8);
|
|
199
|
-
var
|
|
200
|
-
isScrolling =
|
|
209
|
+
var _usePanelContext3 = usePanelContext(),
|
|
210
|
+
isScrolling = _usePanelContext3.isScrolling;
|
|
201
211
|
return /*#__PURE__*/React.createElement(StyledFooter, _extends({}, props, {
|
|
202
212
|
ref: ref,
|
|
203
213
|
$hasShadow: isScrolling
|
|
204
214
|
}), children);
|
|
205
215
|
});
|
|
206
216
|
var Panel_ = /*#__PURE__*/React.forwardRef(function Panel(_ref12, ref) {
|
|
207
|
-
var
|
|
217
|
+
var ariaLabelledByProp = _ref12['aria-labelledby'],
|
|
218
|
+
children = _ref12.children,
|
|
208
219
|
props = _objectWithoutProperties(_ref12, _excluded9);
|
|
209
220
|
var _React$useState = React.useState(false),
|
|
210
221
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
211
222
|
isScrolling = _React$useState2[0],
|
|
212
223
|
setIsScrolling = _React$useState2[1];
|
|
224
|
+
var defaultLabelId = useId();
|
|
225
|
+
var ariaLabelledBy = ariaLabelledByProp !== null && ariaLabelledByProp !== void 0 ? ariaLabelledByProp : defaultLabelId;
|
|
213
226
|
return /*#__PURE__*/React.createElement(PanelContext.Provider, {
|
|
214
227
|
value: {
|
|
228
|
+
ariaLabelledBy: ariaLabelledBy,
|
|
215
229
|
isScrolling: isScrolling,
|
|
216
230
|
setIsScrolling: setIsScrolling
|
|
217
231
|
}
|
package/dist/Panel/Panel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","names":["ChevronLeft","Clear","EllipsisVertical","React","Button","Menu","OverlayTrigger","LevelContext","Section","SectionProvider","Tooltip","useI18nContext","useOverflowObserver","addSubcomponents","isReactElement","mergeRefs","partition","StyledBody","StyledCloseButton","StyledFooter","StyledFooterActions","StyledFooterNotation","StyledHeader","StyledHeaderActions","StyledHeaderBackAction","StyledMoreMenu","StyledPanel","StyledTitle","PanelContext","createContext","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","TitleTooltip","_ref7","isVisible","Content","role","Title","_ref8","_excluded3","_useOverflowObserver","isOverflowingX","overflowRef","intent","Header","_ref9","onClickBack","onClose","_excluded4","I18n","$active","undefined","Body","_ref0","_excluded5","_usePanelContext","timer","useRef","handleScroll","useCallback","current","clearTimeout","setTimeout","Provider","value","onScroll","FooterNotation","_ref1","_excluded6","FooterActions","_ref10","_excluded7","Footer","_ref11","_excluded8","_usePanelContext2","$hasShadow","Panel_","Panel","_ref12","_excluded9","_React$useState","useState","_React$useState2","displayName"],"sources":["../../src/Panel/Panel.tsx"],"sourcesContent":["import { ChevronLeft, Clear, EllipsisVertical } from '@procore/core-icons/dist'\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 { useOverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport { partition } from '../_utils/partition'\nimport type { DivAttributes } from '../_utils/types'\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 PanelTitleTooltipProps,\n} from './Panel.types'\n\nconst PanelContext = React.createContext<PanelContextShape>({\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<HTMLDivElement, DivAttributes>(\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={\n child.props.onClick as (e: React.MouseEvent) => void\n }\n >\n {child.props.title}\n </Menu.Item>\n )\n }\n })}\n </Menu.Options>\n </Menu>\n </StyledMoreMenu>\n )\n }\n)\n\nexport const MoreIcon: React.FC<\n DivAttributes & { 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 DivAttributes & { 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\nexport const TitleTooltip: React.FC<PanelTitleTooltipProps> = ({\n children,\n overlay,\n isVisible,\n}) => {\n if (!isVisible) {\n return children as React.ReactElement\n }\n\n return (\n <Tooltip\n trigger={['hover', 'focus']}\n overlay={<Tooltip.Content>{overlay}</Tooltip.Content>}\n placement=\"bottom\"\n role=\"tooltip\"\n >\n {children}\n </Tooltip>\n )\n}\n\nconst Title = React.forwardRef<\n HTMLSpanElement,\n TypographyProps & { qa?: Pick<PanelQaTags, 'title'>; id?: string }\n>(function Title({ children, qa, ...props }, ref) {\n const { isOverflowingX, ref: overflowRef } = useOverflowObserver()\n\n return (\n <TitleTooltip isVisible={isOverflowingX} overlay={children}>\n <StyledTitle\n {...props}\n ref={mergeRefs(overflowRef, ref)}\n intent=\"h2\"\n data-qa={qa?.title}\n >\n {children}\n </StyledTitle>\n </TitleTooltip>\n )\n})\n\nconst Header = React.forwardRef<HTMLDivElement, PanelHeaderProps>(\n function Header({ children, onClickBack, onClose, ...props }, ref) {\n const I18n = useI18nContext()\n return (\n <StyledHeader {...props} ref={ref}>\n <StyledHeaderBackAction $active={onClickBack !== undefined}>\n <Button\n aria-label={I18n.t('core.panel.goBack')}\n variant=\"tertiary\"\n onClick={onClickBack}\n icon={<ChevronLeft />}\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 { 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 {...props} ref={ref} onScroll={handleScroll}>\n {children}\n </StyledBody>\n </LevelContext.Provider>\n </SectionProvider>\n )\n})\n\nconst FooterNotation = React.forwardRef<HTMLDivElement, DivAttributes>(\n function FooterNotation({ children, ...props }, ref) {\n return (\n <StyledFooterNotation {...props} ref={ref}>\n {children}\n </StyledFooterNotation>\n )\n }\n)\n\nconst FooterActions = React.forwardRef<HTMLDivElement, DivAttributes>(\n function FooterActions({ children, ...props }, ref) {\n return (\n <StyledFooterActions {...props} ref={ref}>\n {children}\n </StyledFooterActions>\n )\n }\n)\n\nconst Footer = React.forwardRef<HTMLDivElement, DivAttributes>(function Footer(\n { children, ...props },\n ref\n) {\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 { children, ...props },\n ref\n) {\n const [isScrolling, setIsScrolling] = React.useState(false)\n\n return (\n <PanelContext.Provider\n value={{\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,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,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAE/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;AAWvB,IAAMC,YAAY,gBAAGzB,KAAK,CAAC0B,aAAa,CAAoB;EAC1DC,WA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B,CAAC,CAAC;AAEF0F,MAAM,CAACO,WAAW,GAAG,OAAO;AAC5BhC,IAAI,CAACgC,WAAW,GAAG,YAAY;AAC/BZ,MAAM,CAACY,WAAW,GAAG,cAAc;AACnCf,aAAa,CAACe,WAAW,GAAG,qBAAqB;AACjDlB,cAAc,CAACkB,WAAW,GAAG,sBAAsB;AACnDxC,MAAM,CAACwC,WAAW,GAAG,cAAc;AACnCtG,YAAY,CAACsG,WAAW,GAAG,oBAAoB;AAC/ClE,aAAa,CAACkE,WAAW,GAAG,qBAAqB;AACjD/C,KAAK,CAAC+C,WAAW,GAAG,aAAa;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMN,KAAK,GAAGtH,gBAAgB,CACnC;EACE4F,IAAI,EAAJA,IAAI;EACJoB,MAAM,EAANA,MAAM;EACNH,aAAa,EAAbA,aAAa;EACbH,cAAc,EAAdA,cAAc;EACdtB,MAAM,EAANA,MAAM;EACN9D,YAAY,EAAZA,YAAY;EACZoC,aAAa,EAAbA,aAAa;EACb/D,OAAO,EAAPA,OAAO;EACPkF,KAAK,EAALA;AACF,CAAC,EACDwC,MACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Panel.js","names":["ChevronLeft","Clear","EllipsisVertical","useId","React","Button","Menu","OverlayTrigger","LevelContext","Section","SectionProvider","Tooltip","useI18nContext","useOverflowObserver","addSubcomponents","isReactElement","mergeRefs","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","TitleTooltip","_ref7","isVisible","Content","role","Title","_ref8","_excluded3","_useOverflowObserver","isOverflowingX","overflowRef","_usePanelContext","headingId","id","Header","_ref9","onClickBack","onClose","_excluded4","I18n","$active","Body","_ref0","_excluded5","_usePanelContext2","timer","useRef","handleScroll","useCallback","current","clearTimeout","setTimeout","Provider","value","tabIndex","onScroll","FooterNotation","_ref1","_excluded6","FooterActions","_ref10","_excluded7","Footer","_ref11","_excluded8","_usePanelContext3","$hasShadow","Panel_","Panel","_ref12","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 { useOverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { isReactElement } from '../_utils/isReactElement'\nimport { mergeRefs } from '../_utils/mergeRefs'\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 PanelTitleTooltipProps,\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\nexport const TitleTooltip: React.FC<PanelTitleTooltipProps> = ({\n children,\n overlay,\n isVisible,\n}) => {\n if (!isVisible) {\n return children as React.ReactElement\n }\n\n return (\n <Tooltip\n trigger={['hover', 'focus']}\n overlay={<Tooltip.Content>{overlay}</Tooltip.Content>}\n placement=\"bottom\"\n role=\"tooltip\"\n >\n {children}\n </Tooltip>\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 { isOverflowingX, ref: overflowRef } = useOverflowObserver()\n const { ariaLabelledBy } = usePanelContext()\n const headingId = props.id || ariaLabelledBy\n\n return (\n <TitleTooltip isVisible={isOverflowingX} overlay={children}>\n <StyledTitle\n id={headingId}\n {...props}\n ref={mergeRefs(overflowRef, ref)}\n data-qa={qa?.title}\n >\n {children}\n </StyledTitle>\n </TitleTooltip>\n )\n})\n\nconst Header = React.forwardRef<HTMLDivElement, PanelHeaderProps>(\n function Header({ children, onClickBack, onClose, ...props }, ref) {\n const I18n = useI18nContext()\n return (\n <StyledHeader {...props} ref={ref}>\n <StyledHeaderBackAction $active={onClickBack !== undefined}>\n <Button\n aria-label={I18n.t('core.panel.goBack')}\n variant=\"tertiary\"\n onClick={onClickBack}\n icon={<ChevronLeft />}\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,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,UAAU,EACVC,iBAAiB,EACjBC,YAAY,EACZC,mBAAmB,EACnBC,oBAAoB,EACpBC,YAAY,EACZC,mBAAmB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EAAbA,aAAa;EACbH,cAAc,EAAdA,cAAc;EACdtB,MAAM,EAANA,MAAM;EACNhE,YAAY,EAAZA,YAAY;EACZoC,aAAa,EAAbA,aAAa;EACbjE,OAAO,EAAPA,OAAO;EACPoF,KAAK,EAALA;AACF,CAAC,EACD0C,MACF,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const StyledTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("
|
|
4
|
-
ref?: ((instance:
|
|
5
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("
|
|
3
|
+
export declare const StyledTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
|
|
5
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
6
|
export declare const StyledHeaderBackAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
7
|
$active: boolean;
|
|
8
8
|
}>> & string;
|
|
9
|
-
export declare const StyledMoreMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("
|
|
9
|
+
export declare const StyledMoreMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("
|
|
11
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../Card").CardProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
12
12
|
export declare const StyledHeaderActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
13
|
export declare const StyledCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
14
|
export declare const StyledBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { Card } from '../Card';
|
|
3
3
|
import { StyledSection, StyledSectionInner } from '../Section/Section.styles';
|
|
4
|
-
import {
|
|
4
|
+
import { H2 } from '../Semantic';
|
|
5
5
|
import { colors } from '../_styles/colors';
|
|
6
|
+
import { getFocus } from '../_styles/mixins';
|
|
6
7
|
import { spacing } from '../_styles/spacing';
|
|
7
8
|
var headerActionSize = 36;
|
|
8
9
|
var buttonShadowWidth = 2;
|
|
@@ -10,15 +11,15 @@ var gutter = /*#__PURE__*/css(["> * + *{margin-left:", "px;}"], spacing.sm);
|
|
|
10
11
|
var panel = /*#__PURE__*/css(["display:flex;align-items:center;padding:", "px;background:", ";"], spacing.lg, colors.white);
|
|
11
12
|
export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
|
|
12
13
|
displayName: "StyledHeader",
|
|
13
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_25_2__sc-lidix2-0"
|
|
14
15
|
})(["border-bottom:1px solid ", ";", ""], colors.gray85, panel);
|
|
15
|
-
export var StyledTitle = /*#__PURE__*/styled(
|
|
16
|
+
export var StyledTitle = /*#__PURE__*/styled(H2).withConfig({
|
|
16
17
|
displayName: "StyledTitle",
|
|
17
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_25_2__sc-lidix2-1"
|
|
18
19
|
})(["flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
|
|
19
20
|
export var StyledHeaderBackAction = /*#__PURE__*/styled.div.withConfig({
|
|
20
21
|
displayName: "StyledHeaderBackAction",
|
|
21
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-12_25_2__sc-lidix2-2"
|
|
22
23
|
})(["transition:all 300ms ease-out;flex-shrink:0;width:", "px;margin-right:", "px;opacity:", ";transform:translateX( ", "px );"], function (_ref) {
|
|
23
24
|
var $active = _ref.$active;
|
|
24
25
|
return $active ? headerActionSize : 0;
|
|
@@ -34,38 +35,38 @@ export var StyledHeaderBackAction = /*#__PURE__*/styled.div.withConfig({
|
|
|
34
35
|
});
|
|
35
36
|
export var StyledMoreMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
36
37
|
displayName: "StyledMoreMenu",
|
|
37
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_25_2__sc-lidix2-3"
|
|
38
39
|
})(["max-height:128px;"]);
|
|
39
40
|
export var StyledHeaderActions = /*#__PURE__*/styled.div.withConfig({
|
|
40
41
|
displayName: "StyledHeaderActions",
|
|
41
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_25_2__sc-lidix2-4"
|
|
42
43
|
})(["display:flex;margin-left:", "px;flex-shrink:0;", ""], spacing.lg, gutter);
|
|
43
44
|
export var StyledCloseButton = /*#__PURE__*/styled.div.withConfig({
|
|
44
45
|
displayName: "StyledCloseButton",
|
|
45
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_25_2__sc-lidix2-5"
|
|
46
47
|
})(["margin-left:", "px;"], spacing.sm);
|
|
47
48
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
48
49
|
displayName: "StyledBody",
|
|
49
|
-
componentId: "core-
|
|
50
|
-
})(["height:100%;background:", ";overflow-y:auto
|
|
50
|
+
componentId: "core-12_25_2__sc-lidix2-6"
|
|
51
|
+
})(["height:100%;background:", ";overflow-y:auto;&:focus-visible{", "}> ", "{padding-left:", "px;padding-right:", "px;", "{padding-left:0;padding-right:0;}&:first-child > ", "{padding-top:", "px;}}"], function (_ref5) {
|
|
51
52
|
var secondaryBgColor = _ref5.secondaryBgColor;
|
|
52
53
|
return secondaryBgColor ? colors.gray96 : colors.white;
|
|
53
|
-
}, StyledSection, spacing.lg, spacing.lg, StyledSection, StyledSectionInner, spacing.lg);
|
|
54
|
+
}, getFocus(), StyledSection, spacing.lg, spacing.lg, StyledSection, StyledSectionInner, spacing.lg);
|
|
54
55
|
export var StyledPanel = /*#__PURE__*/styled.aside.withConfig({
|
|
55
56
|
displayName: "StyledPanel",
|
|
56
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_25_2__sc-lidix2-7"
|
|
57
58
|
})(["display:flex;flex-direction:column;width:100%;height:100%;background:", ";overflow:hidden;"], colors.white);
|
|
58
59
|
export var StyledFooterNotation = /*#__PURE__*/styled.div.withConfig({
|
|
59
60
|
displayName: "StyledFooterNotation",
|
|
60
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-12_25_2__sc-lidix2-8"
|
|
61
62
|
})(["flex-grow:1;"]);
|
|
62
63
|
export var StyledFooterActions = /*#__PURE__*/styled.div.withConfig({
|
|
63
64
|
displayName: "StyledFooterActions",
|
|
64
|
-
componentId: "core-
|
|
65
|
+
componentId: "core-12_25_2__sc-lidix2-9"
|
|
65
66
|
})(["", ""], gutter);
|
|
66
67
|
export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
|
|
67
68
|
displayName: "StyledFooter",
|
|
68
|
-
componentId: "core-
|
|
69
|
+
componentId: "core-12_25_2__sc-lidix2-10"
|
|
69
70
|
})(["border-top:1px solid ", ";justify-content:flex-end;", " ", ""], colors.gray85, panel, function (_ref6) {
|
|
70
71
|
var $hasShadow = _ref6.$hasShadow;
|
|
71
72
|
return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;z-index:1;"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.styles.js","names":["styled","css","Card","StyledSection","StyledSectionInner","
|
|
1
|
+
{"version":3,"file":"Panel.styles.js","names":["styled","css","Card","StyledSection","StyledSectionInner","H2","colors","getFocus","spacing","headerActionSize","buttonShadowWidth","gutter","sm","panel","lg","white","StyledHeader","div","withConfig","displayName","componentId","gray85","StyledTitle","StyledHeaderBackAction","_ref","$active","_ref2","_ref3","_ref4","StyledMoreMenu","StyledHeaderActions","StyledCloseButton","StyledBody","_ref5","secondaryBgColor","gray96","StyledPanel","aside","StyledFooterNotation","StyledFooterActions","StyledFooter","_ref6","$hasShadow"],"sources":["../../src/Panel/Panel.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Card } from '../Card'\nimport { StyledSection, StyledSectionInner } from '../Section/Section.styles'\nimport { H2 } from '../Semantic'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nconst headerActionSize = 36\nconst buttonShadowWidth = 2\n\nconst gutter = css`\n > * + * {\n margin-left: ${spacing.sm}px;\n }\n`\n\nconst panel = css`\n display: flex;\n align-items: center;\n padding: ${spacing.lg}px;\n background: ${colors.white};\n`\n\nexport const StyledHeader = styled.div`\n border-bottom: 1px solid ${colors.gray85};\n\n ${panel}\n`\n\nexport const StyledTitle = styled(H2)`\n flex-grow: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n`\n\nexport const StyledHeaderBackAction = styled.div<{ $active: boolean }>`\n transition: all 300ms ease-out;\n flex-shrink: 0;\n\n width: ${({ $active }) => ($active ? headerActionSize : 0)}px;\n margin-right: ${({ $active }) => ($active ? spacing.lg : 0)}px;\n opacity: ${({ $active }) => ($active ? 1 : 0)};\n transform: translateX(\n ${({ $active }) =>\n $active ? 0 : -(spacing.lg + headerActionSize + buttonShadowWidth)}px\n );\n`\n\nexport const StyledMoreMenu = styled(Card)`\n max-height: 128px;\n`\n\nexport const StyledHeaderActions = styled.div`\n display: flex;\n margin-left: ${spacing.lg}px;\n flex-shrink: 0;\n\n ${gutter}\n`\n\nexport const StyledCloseButton = styled.div`\n margin-left: ${spacing.sm}px;\n`\n\nexport const StyledBody = styled.div<{ secondaryBgColor?: boolean }>`\n height: 100%;\n background: ${({ secondaryBgColor }) =>\n secondaryBgColor ? colors.gray96 : colors.white};\n overflow-y: auto;\n\n &:focus-visible {\n ${getFocus()}\n }\n\n > ${StyledSection} {\n padding-left: ${spacing.lg}px;\n padding-right: ${spacing.lg}px;\n\n ${StyledSection} {\n padding-left: 0;\n padding-right: 0;\n }\n\n &:first-child > ${StyledSectionInner} {\n padding-top: ${spacing.lg}px;\n }\n }\n`\n\nexport const StyledPanel = styled.aside`\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background: ${colors.white};\n overflow: hidden;\n`\n\nexport const StyledFooterNotation = styled.div`\n flex-grow: 1;\n`\n\nexport const StyledFooterActions = styled.div`\n ${gutter}\n`\n\nexport const StyledFooter = styled.div<{ $hasShadow: boolean }>`\n border-top: 1px solid ${colors.gray85};\n justify-content: flex-end;\n\n ${panel}\n\n ${({ $hasShadow }) =>\n $hasShadow &&\n css`\n box-shadow: 0 -4px 6px 0 #0000001a;\n z-index: 1;\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,IAAI,QAAQ,SAAS;A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EAAAC,WAAA;EAAAC,WAAA;AAAA,aACzCT,MAAM,CACT;AAED,OAAO,IAAM6B,YAAY,gBAAGxC,MAAM,CAACiB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qEACZd,MAAM,CAACe,MAAM,EAGnCR,KAAK,EAEL,UAAA4B,KAAA;EAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;EAAA,OACbA,UAAU,IACVzC,GAAG,kDAGF;AAAA,EACJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonProps } from '../Button/Button.types';
|
|
3
3
|
import type { SectionProps } from '../Section/Section.types';
|
|
4
|
-
import type { ButtonAttributes, DivAttributes } from '../_utils/types';
|
|
5
4
|
export interface PanelQaTags {
|
|
6
5
|
/**
|
|
7
6
|
* @since 10.19.0
|
|
@@ -12,9 +11,15 @@ export interface PanelQaTags {
|
|
|
12
11
|
*/
|
|
13
12
|
title?: string;
|
|
14
13
|
}
|
|
15
|
-
export interface PanelProps extends
|
|
14
|
+
export interface PanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
/**
|
|
16
|
+
* @a11y `role='region'` should be labelled. It uses the panel's title as a label by default.
|
|
17
|
+
* This is an optional prop to specify a custom label if needed.
|
|
18
|
+
* @since 12.24.0
|
|
19
|
+
*/
|
|
20
|
+
'aria-labelledby'?: string;
|
|
16
21
|
}
|
|
17
|
-
export interface PanelHeaderProps extends
|
|
22
|
+
export interface PanelHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
23
|
/**
|
|
19
24
|
* Controls visibility and behavior for the "chevron-left" icon on the left
|
|
20
25
|
* side of the title.
|
|
@@ -40,14 +45,14 @@ export interface PanelTitleTooltipProps {
|
|
|
40
45
|
*/
|
|
41
46
|
overlay: React.ReactNode;
|
|
42
47
|
}
|
|
43
|
-
export interface PanelHeaderActionProps extends
|
|
48
|
+
export interface PanelHeaderActionProps extends ButtonProps {
|
|
44
49
|
/**
|
|
45
50
|
* Tooltip/Overflow menu label text.
|
|
46
51
|
* @since 10.19.0
|
|
47
52
|
* */
|
|
48
53
|
title: string;
|
|
49
54
|
}
|
|
50
|
-
export interface PanelBodyProps extends
|
|
55
|
+
export interface PanelBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
51
56
|
/**
|
|
52
57
|
* Applies the gray secondary background color.
|
|
53
58
|
* @since 10.19.0
|
|
@@ -55,6 +60,10 @@ export interface PanelBodyProps extends DivAttributes {
|
|
|
55
60
|
secondaryBgColor?: boolean;
|
|
56
61
|
}
|
|
57
62
|
export interface PanelContextShape {
|
|
63
|
+
/**
|
|
64
|
+
* @since 12.24.0
|
|
65
|
+
*/
|
|
66
|
+
ariaLabelledBy?: string;
|
|
58
67
|
/**
|
|
59
68
|
* @since 12.11.2
|
|
60
69
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.types.js","names":[],"sources":["../../src/Panel/Panel.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { SectionProps } from '../Section/Section.types'\
|
|
1
|
+
{"version":3,"file":"Panel.types.js","names":[],"sources":["../../src/Panel/Panel.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { SectionProps } from '../Section/Section.types'\n\nexport interface PanelQaTags {\n /**\n * @since 10.19.0\n */\n moreIcon?: string\n /**\n * @since 10.19.0\n */\n title?: string\n}\n\nexport interface PanelProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * @a11y `role='region'` should be labelled. It uses the panel's title as a label by default.\n * This is an optional prop to specify a custom label if needed.\n * @since 12.24.0\n */\n 'aria-labelledby'?: string\n}\n\nexport interface PanelHeaderProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Controls visibility and behavior for the \"chevron-left\" icon on the left\n * side of the title.\n * @since 10.19.0\n */\n onClickBack?: () => void\n /**\n * @since 10.19.0\n */\n onClose?: () => void\n}\n\nexport interface PanelTitleTooltipProps {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n /**\n * @since 10.19.0\n */\n isVisible: boolean\n /**\n * @since 10.19.0\n */\n overlay: React.ReactNode\n}\nexport interface PanelHeaderActionProps extends ButtonProps {\n /**\n * Tooltip/Overflow menu label text.\n * @since 10.19.0\n * */\n title: string\n}\n\nexport interface PanelBodyProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Applies the gray secondary background color.\n * @since 10.19.0\n */\n secondaryBgColor?: boolean\n}\n\nexport interface PanelContextShape {\n /**\n * @since 12.24.0\n */\n ariaLabelledBy?: string\n /**\n * @since 12.11.2\n */\n isScrolling: boolean\n /**\n * @since 12.11.2\n * */\n setIsScrolling: (value: boolean) => void\n}\n\nexport interface PanelSectionProps extends SectionProps {}\n"],"mappings":""}
|
package/dist/Pill/Pill.js
CHANGED
|
@@ -4,8 +4,9 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
4
4
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { useId } from '@react-aria/utils';
|
|
7
8
|
import { useI18nContext } from '../_hooks/I18n';
|
|
8
|
-
import { StyledPill, StyledRemove } from './Pill.styles';
|
|
9
|
+
import { StyledPill, StyledRemove, StyledRemoveButton } from './Pill.styles';
|
|
9
10
|
var Remove = /*#__PURE__*/React.forwardRef(function TokenRemove(_ref, ref) {
|
|
10
11
|
var _ref$color = _ref.color,
|
|
11
12
|
color = _ref$color === void 0 ? 'gray' : _ref$color,
|
|
@@ -13,8 +14,7 @@ var Remove = /*#__PURE__*/React.forwardRef(function TokenRemove(_ref, ref) {
|
|
|
13
14
|
var i18n = useI18nContext();
|
|
14
15
|
return /*#__PURE__*/React.createElement(StyledRemove, _extends({
|
|
15
16
|
ref: ref,
|
|
16
|
-
|
|
17
|
-
"aria-label": i18n.t('core.token.remove'),
|
|
17
|
+
role: "img",
|
|
18
18
|
size: "sm",
|
|
19
19
|
$color: color
|
|
20
20
|
}, props));
|
|
@@ -37,14 +37,22 @@ export var Pill = /*#__PURE__*/React.forwardRef(function Pill(_ref2, ref) {
|
|
|
37
37
|
color = _ref2$color === void 0 ? 'gray' : _ref2$color,
|
|
38
38
|
onClear = _ref2.onClear,
|
|
39
39
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
40
|
+
var i18n = useI18nContext();
|
|
41
|
+
var contentId = useId();
|
|
40
42
|
return /*#__PURE__*/React.createElement(StyledPill, _extends({
|
|
41
43
|
$color: color
|
|
42
44
|
}, props, {
|
|
43
45
|
ref: ref
|
|
44
|
-
}), props.children
|
|
45
|
-
|
|
46
|
+
}), props.children && /*#__PURE__*/React.createElement("span", {
|
|
47
|
+
id: contentId
|
|
48
|
+
}, props.children), onClear && /*#__PURE__*/React.createElement(StyledRemoveButton, {
|
|
49
|
+
type: "button",
|
|
50
|
+
"aria-describedby": contentId,
|
|
51
|
+
"aria-label": i18n.t('core.token.remove'),
|
|
46
52
|
onClick: onClear,
|
|
47
|
-
|
|
48
|
-
}
|
|
53
|
+
$color: color
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Remove, {
|
|
55
|
+
color: color
|
|
56
|
+
})));
|
|
49
57
|
});
|
|
50
58
|
//# sourceMappingURL=Pill.js.map
|
package/dist/Pill/Pill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.js","names":["React","useI18nContext","StyledPill","StyledRemove","Remove","forwardRef","TokenRemove","_ref","ref","_ref$color","color","props","_objectWithoutProperties","_excluded","i18n","createElement","_extends","
|
|
1
|
+
{"version":3,"file":"Pill.js","names":["React","useId","useI18nContext","StyledPill","StyledRemove","StyledRemoveButton","Remove","forwardRef","TokenRemove","_ref","ref","_ref$color","color","props","_objectWithoutProperties","_excluded","i18n","createElement","_extends","role","size","$color","Pill","_ref2","_ref2$color","onClear","_excluded2","contentId","children","id","type","t","onClick"],"sources":["../../src/Pill/Pill.tsx"],"sourcesContent":["import React from 'react'\n\nimport { useId } from '@react-aria/utils'\nimport { useI18nContext } from '../_hooks/I18n'\nimport type { Props } from '../_utils/types'\nimport { StyledPill, StyledRemove, StyledRemoveButton } from './Pill.styles'\nimport type { PillColor, PillProps } from './Pill.types'\n\ntype SVGAttributesWithPillColor = Omit<\n React.SVGAttributes<SVGElement>,\n 'color'\n> & {\n color: PillColor\n}\n\nconst Remove = React.forwardRef<\n SVGSVGElement,\n SVGAttributesWithPillColor & Props\n>(function TokenRemove({ color = 'gray', ...props }, ref) {\n const i18n = useI18nContext()\n return (\n <StyledRemove ref={ref} role=\"img\" size=\"sm\" $color={color} {...props} />\n )\n})\n\n/**\n\n Pills are used to highlight important information in a list or form such as\n a status.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-pill--demo)\n\n @see [Design Guidelines](https://design.procore.com/pill)\n\n */\nexport const Pill = React.forwardRef<HTMLSpanElement, PillProps>(function Pill(\n { color = 'gray', onClear, ...props },\n ref\n) {\n const i18n = useI18nContext()\n const contentId = useId()\n return (\n <StyledPill $color={color} {...props} ref={ref}>\n {props.children && <span id={contentId}>{props.children}</span>}\n {onClear && (\n <StyledRemoveButton\n type=\"button\"\n aria-describedby={contentId}\n aria-label={i18n.t('core.token.remove')}\n onClick={onClear}\n $color={color}\n >\n <Remove color={color} />\n </StyledRemoveButton>\n )}\n </StyledPill>\n )\n})\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAE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I5B,KAAA,CAAAiB,aAAA;IAAMY,EAAE,EAAEF;EAAU,GAAEd,KAAK,CAACe,QAAe,CAAC,EAC9DH,OAAO,iBACNzB,KAAA,CAAAiB,aAAA,CAACZ,kBAAkB;IACjByB,IAAI,EAAC,QAAQ;IACb,oBAAkBH,SAAU;IAC5B,cAAYX,IAAI,CAACe,CAAC,CAAC,mBAAmB,CAAE;IACxCC,OAAO,EAAEP,OAAQ;IACjBJ,MAAM,EAAET;EAAM,gBAEdZ,KAAA,CAAAiB,aAAA,CAACX,MAAM;IAACM,KAAK,EAAEA;EAAM,CAAE,CACL,CAEZ,CAAC;AAEjB,CAAC,CAAC"}
|
|
@@ -12,3 +12,6 @@ export declare const StyledRemove: import("styled-components/dist/types").IStyle
|
|
|
12
12
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
13
13
|
size?: import("@procore/core-icons/dist/Icon").IconSize | undefined;
|
|
14
14
|
} & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
|
|
15
|
+
export declare const StyledRemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
16
|
+
$color: PillColor;
|
|
17
|
+
}>> & string;
|
package/dist/Pill/Pill.styles.js
CHANGED
|
@@ -6,15 +6,19 @@ 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_25_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-
|
|
17
|
-
})(["border-radius:100%;cursor:pointer;flex:0 0 auto;height:", "px;
|
|
16
|
+
componentId: "core-12_25_2__sc-99e1t5-1"
|
|
17
|
+
})(["border-radius:100%;cursor:pointer;flex:0 0 auto;height:", "px;width:", "px;vertical-align:top;"], pillButtonSize, pillButtonSize);
|
|
18
|
+
export var StyledRemoveButton = /*#__PURE__*/styled.button.withConfig({
|
|
19
|
+
displayName: "StyledRemoveButton",
|
|
20
|
+
componentId: "core-12_25_2__sc-99e1t5-2"
|
|
21
|
+
})(["border:0;padding:0;border-radius:100%;margin:0 -", "px 0 ", "px;color:inherit;", ""], pillButtonSize / 2 - spacing.xxs, spacing.xxs, function (_ref2) {
|
|
18
22
|
var $color = _ref2.$color;
|
|
19
23
|
return css(["&:hover{background:", ";color:", ";}"], PillColorPalets[$color].color, PillColorPalets[$color].backgroundColor);
|
|
20
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.styles.js","names":["Clear","styled","css","getTypographyIntent","spacing","PillColorPalets","pillButtonSize","StyledPill","span","withConfig","displayName","componentId","sm","xs","_ref","$color","backgroundColor","borderColor","color","StyledRemove","xxs","_ref2"],"sources":["../../src/Pill/Pill.styles.ts"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport styled, { css } from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { spacing } from '../_styles/spacing'\nimport { PillColorPalets } from './Pill.colorPalette'\nimport type { PillColor } from './Pill.types'\n\nconst pillButtonSize = 16\n\nexport const StyledPill = styled.span<{ $color: PillColor }>`\n ${getTypographyIntent('small')}\n display: inline-block;\n padding: 1px ${spacing.sm}px;\n border: 1px solid;\n border-radius: 10px;\n font-weight: 600;\n\n & + & {\n margin-left: ${spacing.xs}px;\n }\n\n ${({ $color }) => {\n return css`\n background-color: ${PillColorPalets[$color].backgroundColor};\n border-color: ${PillColorPalets[$color].borderColor};\n color: ${PillColorPalets[$color].color};\n `\n }}\n`\nexport const StyledRemove = styled(Clear)<{\n $color: PillColor\n}>`\n border-radius: 100%;\n cursor: pointer;\n flex: 0 0 auto;\n height: ${pillButtonSize}px;\n /* if pillButtonSize is 16 => 8px is the radios - 2px padding = 6px */\n margin: 0 -${pillButtonSize / 2 - spacing.xxs}px 0 ${spacing.xxs}px;\n
|
|
1
|
+
{"version":3,"file":"Pill.styles.js","names":["Clear","styled","css","getTypographyIntent","spacing","PillColorPalets","pillButtonSize","StyledPill","span","withConfig","displayName","componentId","sm","xs","_ref","$color","backgroundColor","borderColor","color","StyledRemove","StyledRemoveButton","button","xxs","_ref2"],"sources":["../../src/Pill/Pill.styles.ts"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport styled, { css } from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { spacing } from '../_styles/spacing'\nimport { PillColorPalets } from './Pill.colorPalette'\nimport type { PillColor } from './Pill.types'\n\nconst pillButtonSize = 16\n\nexport const StyledPill = styled.span<{ $color: PillColor }>`\n ${getTypographyIntent('small')}\n display: inline-block;\n padding: 1px ${spacing.sm}px;\n border: 1px solid;\n border-radius: 10px;\n font-weight: 600;\n\n & + & {\n margin-left: ${spacing.xs}px;\n }\n\n ${({ $color }) => {\n return css`\n background-color: ${PillColorPalets[$color].backgroundColor};\n border-color: ${PillColorPalets[$color].borderColor};\n color: ${PillColorPalets[$color].color};\n `\n }}\n`\nexport const StyledRemove = styled(Clear)<{\n $color: PillColor\n}>`\n border-radius: 100%;\n cursor: pointer;\n flex: 0 0 auto;\n height: ${pillButtonSize}px;\n width: ${pillButtonSize}px;\n vertical-align: top;\n`\n\nexport const StyledRemoveButton = styled.button<{ $color: PillColor }>`\n border: 0;\n padding: 0;\n border-radius: 100%;\n\n // /* if pillButtonSize is 16 => 8px is the radios - 2px padding = 6px */\n margin: 0 -${pillButtonSize / 2 - spacing.xxs}px 0 ${spacing.xxs}px;\n\n color: inherit;\n\n ${({ $color }) => {\n return css`\n &:hover {\n background: ${PillColorPalets[$color].color};\n color: ${PillColorPalets[$color].backgroundColor};\n }\n `\n }}\n`\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,eAAe,QAAQ,qBAAqB;AAGrD,IAAMC,cAAc,GAAG,EAAE;AAEzB,OAAO,IAAMC,UAAU,gBAAGN,MAAM,CAACO,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wIACjCR,mBAAmB,CAAC,OAAO,CAAC,EAEfC,OAAO,CAACQ,EAAE,EAMRR,OAAO,CAACS,EAAE,EAGzB,UAAAC,IAAA,EAAgB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EACT,OAAOb,GAAG,0DACYG,eAAe,CAACU,MAAM,CAAC,CAACC,eAAe,EAC3CX,eAAe,CAACU,MAAM,CAAC,CAACE,WAAW,EAC1CZ,eAAe,CAACU,MAAM,CAAC,CAACG,KAAK;AAE1C,CAAC,CACF;AACD,OAAO,IAAMC,YAAY,gBAAGlB,MAAM,CAACD,KAAK,CAAC,CAAAS,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uGAM7BL,cAAc,EACfA,cAAc,CAExB;AAED,OAAO,IAAMc,kBAAkB,gBAAGnB,MAAM,CAACoB,MAAM,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2FAMhCL,cAAc,GAAG,CAAC,GAAGF,OAAO,CAACkB,GAAG,EAAQlB,OAAO,CAACkB,GAAG,EAI9D,UAAAC,KAAA,EAAgB;EAAA,IAAbR,MAAM,GAAAQ,KAAA,CAANR,MAAM;EACT,OAAOb,GAAG,2CAEQG,eAAe,CAACU,MAAM,CAAC,CAACG,KAAK,EAClCb,eAAe,CAACU,MAAM,CAAC,CAACC,eAAe;AAGtD,CAAC,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.types.js","names":[],"sources":["../../src/Pill/Pill.types.ts"],"sourcesContent":["export type PillColor =\n | 'blue'\n | 'cyan'\n | 'gray'\n | 'green'\n | 'magenta'\n | 'red'\n | 'UNSAFE_orange'\n | 'yellow'\n\nexport interface PillProps extends React.ComponentPropsWithoutRef<'span'> {\n /**\n * Controls the border, background and color of the Pill\n * @defaultValue gray\n * @since 10.19.0\n */\n color?: PillColor\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * ```\n * (event) => {}\n * ```\n * @since 11.13.1\n */\n onClear?:
|
|
1
|
+
{"version":3,"file":"Pill.types.js","names":[],"sources":["../../src/Pill/Pill.types.ts"],"sourcesContent":["export type PillColor =\n | 'blue'\n | 'cyan'\n | 'gray'\n | 'green'\n | 'magenta'\n | 'red'\n | 'UNSAFE_orange'\n | 'yellow'\n\nexport interface PillProps extends React.ComponentPropsWithoutRef<'span'> {\n /**\n * Controls the border, background and color of the Pill\n * @defaultValue gray\n * @since 10.19.0\n */\n color?: PillColor\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * ```\n * (event) => {}\n * ```\n * @since 11.13.1\n */\n onClear?: React.MouseEventHandler<HTMLButtonElement>\n}\n"],"mappings":""}
|