@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
|
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledH1 = /*#__PURE__*/styled.h1.withConfig({
|
|
7
7
|
displayName: "StyledH1",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_53_2__sc-172j5qh-0"
|
|
9
9
|
})(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h1'));
|
|
10
10
|
export var StyledH2 = /*#__PURE__*/styled.h2.withConfig({
|
|
11
11
|
displayName: "StyledH2",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_53_2__sc-172j5qh-1"
|
|
13
13
|
})(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h2'));
|
|
14
14
|
export var StyledH3 = /*#__PURE__*/styled.h3.withConfig({
|
|
15
15
|
displayName: "StyledH3",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_53_2__sc-172j5qh-2"
|
|
17
17
|
})(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h3'));
|
|
18
18
|
var topMarginRules = function topMarginRules() {
|
|
19
19
|
return css(["& + &,p + &,ol + &,ul + &{margin-top:", "px;}"], spacing.lg);
|
|
@@ -28,11 +28,11 @@ export function getSmallIconBodyTextRules() {
|
|
|
28
28
|
}
|
|
29
29
|
export var StyledP = /*#__PURE__*/styled.p.withConfig({
|
|
30
30
|
displayName: "StyledP",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_53_2__sc-172j5qh-3"
|
|
32
32
|
})(["color:", ";", " ", " ", ""], colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
|
|
33
33
|
export var StyledUL = /*#__PURE__*/styled.ul.withConfig({
|
|
34
34
|
displayName: "StyledUL",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_53_2__sc-172j5qh-4"
|
|
36
36
|
})(["color:", ";margin:0;padding:0;", " ", " padding-left:", "px;list-style-type:", ";"], colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg, function (props) {
|
|
37
37
|
return props.$listStyleType || 'disc';
|
|
38
38
|
});
|
|
@@ -40,7 +40,7 @@ export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
|
|
|
40
40
|
as: 'ol'
|
|
41
41
|
}).withConfig({
|
|
42
42
|
displayName: "StyledOL",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-12_53_2__sc-172j5qh-5"
|
|
44
44
|
})(["list-style-type:", ";"], function (props) {
|
|
45
45
|
return props.$listStyleType || 'decimal';
|
|
46
46
|
});
|
|
@@ -51,7 +51,7 @@ export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(function (p
|
|
|
51
51
|
};
|
|
52
52
|
}).withConfig({
|
|
53
53
|
displayName: "StyledLabel",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-12_53_2__sc-172j5qh-6"
|
|
55
55
|
})(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
|
|
56
56
|
var _ref$$block = _ref.$block,
|
|
57
57
|
$block = _ref$$block === void 0 ? false : _ref$$block;
|
|
@@ -69,7 +69,7 @@ export function getUnstyledButton() {
|
|
|
69
69
|
*/
|
|
70
70
|
export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
71
71
|
displayName: "StyledUnstyledButton",
|
|
72
|
-
componentId: "core-
|
|
72
|
+
componentId: "core-12_53_2__sc-172j5qh-7"
|
|
73
73
|
})(["", ""], getUnstyledButton);
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -77,6 +77,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
77
77
|
*/
|
|
78
78
|
export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
|
|
79
79
|
displayName: "StyledAnchor",
|
|
80
|
-
componentId: "core-
|
|
80
|
+
componentId: "core-12_53_2__sc-172j5qh-8"
|
|
81
81
|
})([""]);
|
|
82
82
|
//# sourceMappingURL=Semantic.styles.js.map
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
1
|
+
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}, {
|
|
2
4
|
$showLabel?: boolean;
|
|
3
5
|
}>> & string;
|
|
4
|
-
export declare const StyledSlider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
6
|
+
export declare const StyledSlider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}, {
|
|
5
9
|
$percent: number;
|
|
6
10
|
ref: any;
|
|
7
11
|
$isDragging: boolean;
|
|
8
12
|
}>> & string;
|
|
9
|
-
export declare const StyledIncrementOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
13
|
+
export declare const StyledIncrementOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
14
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
15
|
+
}, {
|
|
10
16
|
$filled: boolean;
|
|
11
17
|
$isCurrentValue: boolean;
|
|
12
18
|
$isDisabled: boolean;
|
|
13
19
|
}>> & string;
|
|
14
|
-
export declare const StyledIncrementContainer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
15
|
-
|
|
20
|
+
export declare const StyledIncrementContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
21
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
16
24
|
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;
|
|
17
|
-
},
|
|
25
|
+
}, "style"> & {
|
|
26
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
27
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("..").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -22,13 +22,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
|
|
|
22
22
|
var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
|
|
23
23
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledContainer",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_53_2__sc-12icguw-0"
|
|
26
26
|
})(["position:relative;", ";"], function (props) {
|
|
27
27
|
return props.$showLabel && 'padding-bottom: 10px';
|
|
28
28
|
});
|
|
29
29
|
export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
|
|
30
30
|
displayName: "StyledSlider",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_53_2__sc-12icguw-1"
|
|
32
32
|
})(["-webkit-appearance:none;margin:0;padding-top:5px;padding-bottom:5px;width:100%;border:1px solid transparent;background-color:transparent;font-size:12px;&:focus{outline:none;", ";padding-top:5px;padding-bottom:5px;border-radius:2px;}&::-webkit-slider-runnable-track{", " ", "}&:disabled::-webkit-slider-runnable-track{cursor:not-allowed;", "}&::-webkit-slider-thumb{", " -webkit-appearance:none;margin-top:-5px;}&:disabled::-webkit-slider-thumb{", "}&::-moz-range-track{", " ", "}&:disabled::-moz-range-track{cursor:not-allowed;", "}&::-moz-range-thumb{", " height:12px;width:12px;}&:disabled::-moz-range-thumb{", "}&::-ms-track{", " height:", "px;color:transparent;", "}&:disabled::-ms-track{cursor:not-allowed;", "}&::-ms-fill-lower{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-fill-upper{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-thumb{", "}&:disabled::-ms-thumb{", "}&:focus::-ms-fill-lower{background:", ";}&:focus::-ms-fill-upper{background:", ";}"], function (props) {
|
|
33
33
|
return props.$isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
|
|
34
34
|
}, getTrackStyles, function (props) {
|
|
@@ -46,7 +46,7 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
|
|
|
46
46
|
}, colors.blue50, colors.black, colors.black, colors.gray85, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray85);
|
|
47
47
|
export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
48
48
|
displayName: "StyledIncrementOverlay",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-12_53_2__sc-12icguw-2"
|
|
50
50
|
})(["position:relative;width:0;&::before{content:'';height:", "px;width:4px;transform:translateX(-50%);background-color:white;pointer-events:none;", ";display:block;visibility:", ";}z-index:2;"], TRACK_HEIGHT, function (props) {
|
|
51
51
|
return props.$isDisabled ? "border-left: 1px solid ".concat(props.$filled ? colors.blue85 : colors.gray85, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue85 : colors.gray85, ";") : "border-left: 1px solid ".concat(props.$filled ? colors.blue50 : colors.gray50, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue50 : colors.gray50, ";");
|
|
52
52
|
}, function (props) {
|
|
@@ -54,10 +54,10 @@ export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
|
54
54
|
});
|
|
55
55
|
export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
|
|
56
56
|
displayName: "StyledIncrementContainer",
|
|
57
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_53_2__sc-12icguw-3"
|
|
58
58
|
})(["position:absolute;display:flex;justify-content:space-between;top:6px;", " left:5px;right:5px;> :first-child{visibility:hidden;}> :last-child{visibility:hidden;}"], applyStylesOnlyToFF("\n top: 12px;\n "));
|
|
59
59
|
export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
|
|
60
60
|
displayName: "StyledLabel",
|
|
61
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-12_53_2__sc-12icguw-4"
|
|
62
62
|
})(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
|
|
63
63
|
//# sourceMappingURL=Slider.styles.js.map
|
|
@@ -4,19 +4,33 @@ type SyncAnimationProps = {
|
|
|
4
4
|
$animate: boolean;
|
|
5
5
|
$mountTime: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const StyledCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
7
|
+
export declare const StyledCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").SVGProps<SVGCircleElement>, "style"> & {
|
|
8
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
9
|
+
}, SyncAnimationProps>> & string;
|
|
8
10
|
export declare const spinnerDimensions: Record<SpinnerSize, number>;
|
|
9
11
|
interface StyledSpinnerContainerProps {
|
|
10
12
|
$color?: Color;
|
|
11
13
|
$size: SpinnerSize;
|
|
12
14
|
$variant: SpinnerVariant;
|
|
13
15
|
}
|
|
14
|
-
export declare const StyledSpinnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
export declare const StyledSpinnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
17
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
18
|
+
}, StyledSpinnerContainerProps>> & string;
|
|
19
|
+
export declare const StyledSpinnerOverlayLabel: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
21
|
+
}> & string;
|
|
22
|
+
export declare const StyledSpinnerSVG: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").SVGProps<SVGSVGElement>, "style"> & {
|
|
23
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
24
|
+
}, SyncAnimationProps>> & string;
|
|
25
|
+
export declare const StyledSpinnerOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
26
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
27
|
+
}> & string;
|
|
28
|
+
export declare const StyledSpinnerContainerWithLabel: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
29
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
30
|
+
}> & string;
|
|
31
|
+
export declare const StyledSpinnerOverlayContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
32
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
33
|
+
}, {
|
|
20
34
|
$loading: boolean;
|
|
21
35
|
$centered: boolean;
|
|
22
36
|
}>> & string;
|
|
@@ -10,7 +10,7 @@ var zOverlay = 2;
|
|
|
10
10
|
var dash = /*#__PURE__*/keyframes(["0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}"]);
|
|
11
11
|
export var StyledCircle = /*#__PURE__*/styled.circle.withConfig({
|
|
12
12
|
displayName: "StyledCircle",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_53_2__sc-1igww3-0"
|
|
14
14
|
})(["", " stroke-linecap:round;"], function (p) {
|
|
15
15
|
if (p.$animate) {
|
|
16
16
|
var animationDelay = -(p.$mountTime % duration);
|
|
@@ -51,16 +51,16 @@ function getStrokeColor(_ref2) {
|
|
|
51
51
|
}
|
|
52
52
|
export var StyledSpinnerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
53
53
|
displayName: "StyledSpinnerContainer",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-12_53_2__sc-1igww3-1"
|
|
55
55
|
})(["border-radius:100%;box-sizing:border-box;display:block;flex-shrink:0;position:relative;", " ", "{", "}"], getHeightWidthStroke, StyledCircle, getStrokeColor);
|
|
56
56
|
export var StyledSpinnerOverlayLabel = /*#__PURE__*/styled.span.withConfig({
|
|
57
57
|
displayName: "StyledSpinnerOverlayLabel",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-12_53_2__sc-1igww3-2"
|
|
59
59
|
})(["", " color:", ";display:block;min-height:20px;padding-top:", "px;text-align:center;transition:opacity ", ";"], getTypographyIntent('body'), colors.gray15, spacing.md, transition);
|
|
60
60
|
var rotate = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
|
|
61
61
|
export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
|
|
62
62
|
displayName: "StyledSpinnerSVG",
|
|
63
|
-
componentId: "core-
|
|
63
|
+
componentId: "core-12_53_2__sc-1igww3-3"
|
|
64
64
|
})(["", " fill:none;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:2;"], function (p) {
|
|
65
65
|
if (p.$animate) {
|
|
66
66
|
var animationDelay = -(p.$mountTime % (duration - durationOffset));
|
|
@@ -70,15 +70,15 @@ export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
|
|
|
70
70
|
var startsWithNoInteraction = /*#__PURE__*/css(["opacity:0;pointer-events:none;transition:opacity ", ";"], transition);
|
|
71
71
|
export var StyledSpinnerOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
72
72
|
displayName: "StyledSpinnerOverlay",
|
|
73
|
-
componentId: "core-
|
|
73
|
+
componentId: "core-12_53_2__sc-1igww3-4"
|
|
74
74
|
})(["", ";background-color:", ";bottom:0;left:0;position:absolute;right:0;top:0;z-index:", ";"], startsWithNoInteraction, colors.white, zOverlay);
|
|
75
75
|
export var StyledSpinnerContainerWithLabel = /*#__PURE__*/styled.div.withConfig({
|
|
76
76
|
displayName: "StyledSpinnerContainerWithLabel",
|
|
77
|
-
componentId: "core-
|
|
77
|
+
componentId: "core-12_53_2__sc-1igww3-5"
|
|
78
78
|
})(["", ";align-items:center;display:flex;flex-direction:column;height:100%;max-height:400px;justify-content:center;position:absolute;top:0;width:100%;z-index:", ";"], startsWithNoInteraction, zContainer);
|
|
79
79
|
export var StyledSpinnerOverlayContainer = /*#__PURE__*/styled.div.withConfig({
|
|
80
80
|
displayName: "StyledSpinnerOverlayContainer",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_53_2__sc-1igww3-6"
|
|
82
82
|
})(["min-height:150px;position:relative;", " ", ""], function (_ref3) {
|
|
83
83
|
var $loading = _ref3.$loading;
|
|
84
84
|
if ($loading) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitViewCard.js","names":["Clear","useId","React","Button","StyledActions","Section","useI18nContext","useResizeObserver","addSubcomponents","mergeRefs","SplitViewCardContextProvider","useSplitViewCard","StyledSplitViewCardAside","StyledSplitViewCardBody","StyledSplitViewCardContainer","StyledSplitViewCardFooter","StyledSplitViewCardHeader","StyledSplitViewCardHeading","StyledSplitViewCardMain","StyledSplitViewCardTitle","SplitViewCardInternalContextProvider","useSplitViewCardInternal","SplitViewCard_","forwardRef","_ref","ref","ariaLabelledBy","children","_ref$isClosable","isClosable","isInitiallyOpen","onClose","props","_objectWithoutProperties","_excluded","defaultLabelId","createElement","_extends","Main","_ref2","_excluded2","_useSplitViewCard","isExpanded","mainSectionRef","$open","tabIndex","Panel","_ref3","_excluded3","_useSplitViewCard2","isMounted","onPanelClosed","_React$useState","useState","_React$useState2","_slicedToArray","hasShadow","setHasShadow","mainRef","useRef","handleResize","useCallback","entries","element","target","clientWidth","setResize","useEffect","current","onTransitionEnd","e","currentTarget","$hasShadow","PanelTitle","_ref4","_excluded4","I18n","_useSplitViewCardInte","_useSplitViewCard3","hide","id","t","icon","variant","onClick","PanelHeader","_ref5","_excluded5","PanelBody","_ref6","_excluded6","_useSplitViewCardInte2","setIsScrolling","timer","handleScroll","clearTimeout","setTimeout","onScroll","role","PanelFooter","_ref7","_excluded7","_useSplitViewCardInte3","isScrolling","Actions","_ref8","_excluded8","displayName","SplitViewCard"],"sources":["../../src/SplitViewCard/SplitViewCard.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { StyledActions } from '../Content/Content.styles'\nimport { Section } from '../Section'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport {\n SplitViewCardContextProvider,\n useSplitViewCard,\n} from './SplitViewCard.context'\nimport {\n StyledSplitViewCardAside,\n StyledSplitViewCardBody,\n StyledSplitViewCardContainer,\n StyledSplitViewCardFooter,\n StyledSplitViewCardHeader,\n StyledSplitViewCardHeading,\n StyledSplitViewCardMain,\n StyledSplitViewCardTitle,\n} from './SplitViewCard.styles'\nimport type { SplitViewCardProps } from './SplitViewCard.types'\nimport {\n SplitViewCardInternalContextProvider,\n useSplitViewCardInternal,\n} from './SplitViewCardInternal.context'\n\nconst SplitViewCard_ = React.forwardRef<HTMLDivElement, SplitViewCardProps>(\n (\n {\n 'aria-labelledby': ariaLabelledBy,\n children,\n isClosable = true,\n isInitiallyOpen,\n onClose,\n ...props\n },\n ref\n ) => {\n const defaultLabelId = useId()\n\n return (\n <SplitViewCardContextProvider isInitiallyOpen={isInitiallyOpen}>\n <SplitViewCardInternalContextProvider\n ariaLabelledBy={ariaLabelledBy ?? defaultLabelId}\n isClosable={isClosable}\n >\n <StyledSplitViewCardContainer ref={ref} {...props}>\n {children}\n </StyledSplitViewCardContainer>\n </SplitViewCardInternalContextProvider>\n </SplitViewCardContextProvider>\n )\n }\n)\n\nexport const Main = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isExpanded, mainSectionRef } = useSplitViewCard()\n\n return (\n <StyledSplitViewCardMain\n $open={isExpanded}\n ref={mergeRefs(ref, mainSectionRef)}\n tabIndex={-1}\n {...props}\n >\n {children}\n </StyledSplitViewCardMain>\n )\n }\n)\n\nexport const Panel = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isExpanded, isMounted, onPanelClosed } = useSplitViewCard()\n const [hasShadow, setHasShadow] = React.useState(false)\n\n const mainRef = React.useRef<HTMLDivElement>(null)\n\n const handleResize = React.useCallback((entries: ResizeObserverEntry[]) => {\n const element = entries[0]\n\n if (element && element.target.clientWidth <= 400) {\n setHasShadow(true)\n return\n }\n\n setHasShadow(false)\n }, [])\n\n const setResize = useResizeObserver(handleResize)\n\n React.useEffect(() => {\n setResize(mainRef.current)\n }, [setResize])\n\n const onTransitionEnd = React.useCallback(\n (e: React.TransitionEvent<HTMLDivElement>) => {\n if (e.target !== e.currentTarget) return\n onPanelClosed()\n },\n [onPanelClosed]\n )\n\n if (!isMounted) return null\n\n return (\n <StyledSplitViewCardAside\n onTransitionEnd={onTransitionEnd}\n $open={isExpanded}\n $hasShadow={hasShadow}\n ref={mergeRefs(ref, mainRef)}\n {...props}\n >\n {children}\n </StyledSplitViewCardAside>\n )\n }\n)\n\nexport const PanelTitle = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const I18n = useI18nContext()\n const { ariaLabelledBy, isClosable } = useSplitViewCardInternal()\n const { hide } = useSplitViewCard()\n\n return (\n <StyledSplitViewCardTitle ref={ref} {...props}>\n <StyledSplitViewCardHeading id={ariaLabelledBy}>\n {children}\n </StyledSplitViewCardHeading>\n {isClosable && (\n <Button\n aria-label={I18n.t('core.splitViewCard.a11y.close')}\n icon={<Clear />}\n variant=\"tertiary\"\n onClick={hide}\n />\n )}\n </StyledSplitViewCardTitle>\n )\n }\n)\n\nexport const PanelHeader = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardHeader ref={ref} {...props}>\n {children}\n </StyledSplitViewCardHeader>\n )\n)\n\nexport const PanelBody = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { ariaLabelledBy, setIsScrolling } = useSplitViewCardInternal()\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 <StyledSplitViewCardBody\n ref={ref}\n {...props}\n onScroll={handleScroll}\n tabIndex={0}\n role=\"region\"\n aria-labelledby={ariaLabelledBy}\n >\n {children}\n </StyledSplitViewCardBody>\n )\n }\n)\n\nexport const PanelFooter = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isScrolling } = useSplitViewCardInternal()\n\n return (\n <StyledSplitViewCardFooter $hasShadow={isScrolling} ref={ref} {...props}>\n {children}\n </StyledSplitViewCardFooter>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLDivElement, Props>(function Actions(\n { children, ...props },\n ref\n) {\n return (\n <StyledActions ref={ref} {...props}>\n {children}\n </StyledActions>\n )\n})\n\nSplitViewCard_.displayName = 'SplitViewCard'\nMain.displayName = 'SplitViewCard.Main'\nPanel.displayName = 'SplitViewCard.Panel'\nPanelTitle.displayName = 'SplitViewCard.PanelTitle'\nPanelHeader.displayName = 'SplitViewCard.PanelHeader'\nPanelBody.displayName = 'SplitViewCard.PanelBody'\nPanelFooter.displayName = 'SplitViewCard.PanelFooter'\nActions.displayName = 'SplitViewCard.Actions'\n\n/**\n\n A SplitViewCard component is used to display additional details\n of an item from a collection inside a panel of a card.\n\n - SplitViewCard\n - SplitViewCard.Main\n - SplitViewCard.Section\n - Table or some other main content\n - SplitViewCard.Panel\n - SplitViewCard.PanelHeader\n - SplitViewCard.PanelTitle\n - text\n - Tabs\n - SplitViewCard.PanelBody\n - Content\n - SplitViewCard.PanelFooter\n - SplitViewCard.Actions\n\n @since 12.9.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)\n\n */\n\nexport const SplitViewCard = addSubcomponents(\n {\n Actions,\n Main,\n Section,\n Panel,\n PanelTitle,\n PanelHeader,\n PanelBody,\n PanelFooter,\n },\n SplitViewCard_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,SAAS,QAAQ,qBAAqB;AAE/C,SACEC,4BAA4B,EAC5BC,gBAAgB,QACX,yBAAyB;AAChC,SACEC,wBAAwB,EACxBC,uBAAuB,EACvBC,4BAA4B,EAC5BC,yBAAyB,EACzBC,yBAAyB,EACzBC,0BAA0B,EAC1BC,uBAAuB,EACvBC,wBAAwB,QACnB,wBAAwB;AAE/B,SACEC,oCAAoC,EACpCC,wBAAwB,QACnB,iCAAiC;AAExC,IAAMC,cAAc,gBAAGpB,KAAK,CAACqB,UAAU,CACrC,UAAAC,IAAA,EASEC,GAAG,EACA;EAAA,IARkBC,cAAc,GAAAF,IAAA,CAAjC,iBAAiB;IACjBG,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAAC,eAAA,GAAAJ,IAAA,CACRK,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,IAAI,GAAAA,eAAA;IACjBE,eAAe,GAAAN,IAAA,CAAfM,eAAe;IACfC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACJC,KAAK,GAAAC,wBAAA,CAAAT,IAAA,EAAAU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A,OAAO,IAAMC,aAAa,GAAGpG,gBAAgB,CAC3C;EACEgG,OAAO,EAAPA,OAAO;EACPlE,IAAI,EAAJA,IAAI;EACJjC,OAAO,EAAPA,OAAO;EACPyC,KAAK,EAALA,KAAK;EACL2B,UAAU,EAAVA,UAAU;EACVY,WAAW,EAAXA,WAAW;EACXG,SAAS,EAATA,SAAS;EACTW,WAAW,EAAXA;AACF,CAAC,EACD7E,cACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"SplitViewCard.js","names":["Clear","useId","React","Button","StyledActions","Section","useI18nContext","useResizeObserver","addSubcomponents","mergeRefs","SplitViewCardContextProvider","useSplitViewCard","StyledSplitViewCardAside","StyledSplitViewCardBody","StyledSplitViewCardContainer","StyledSplitViewCardFooter","StyledSplitViewCardHeader","StyledSplitViewCardHeading","StyledSplitViewCardMain","StyledSplitViewCardTitle","SplitViewCardInternalContextProvider","useSplitViewCardInternal","SplitViewCard_","forwardRef","_ref","ref","ariaLabelledBy","children","_ref$isClosable","isClosable","isInitiallyOpen","onClose","props","_objectWithoutProperties","_excluded","defaultLabelId","createElement","_extends","Main","_ref2","_excluded2","_useSplitViewCard","isExpanded","mainSectionRef","$open","tabIndex","Panel","_ref3","_excluded3","_useSplitViewCard2","isMounted","onPanelClosed","_React$useState","useState","_React$useState2","_slicedToArray","hasShadow","setHasShadow","mainRef","useRef","handleResize","useCallback","entries","element","target","clientWidth","setResize","useEffect","current","onTransitionEnd","e","currentTarget","$hasShadow","PanelTitle","_ref4","_excluded4","I18n","_useSplitViewCardInte","_useSplitViewCard3","hide","id","t","icon","variant","onClick","PanelHeader","_ref5","_excluded5","PanelBody","_ref6","_excluded6","_useSplitViewCardInte2","setIsScrolling","timer","handleScroll","clearTimeout","setTimeout","onScroll","role","PanelFooter","_ref7","_excluded7","_useSplitViewCardInte3","isScrolling","Actions","_ref8","_excluded8","displayName","SplitViewCard"],"sources":["../../src/SplitViewCard/SplitViewCard.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { StyledActions } from '../Content/Content.styles'\nimport { Section } from '../Section'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResizeObserver } from '../_hooks/ResizeObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport type { Props } from '../_utils/types'\nimport {\n SplitViewCardContextProvider,\n useSplitViewCard,\n} from './SplitViewCard.context'\nimport {\n StyledSplitViewCardAside,\n StyledSplitViewCardBody,\n StyledSplitViewCardContainer,\n StyledSplitViewCardFooter,\n StyledSplitViewCardHeader,\n StyledSplitViewCardHeading,\n StyledSplitViewCardMain,\n StyledSplitViewCardTitle,\n} from './SplitViewCard.styles'\nimport type { SplitViewCardProps } from './SplitViewCard.types'\nimport {\n SplitViewCardInternalContextProvider,\n useSplitViewCardInternal,\n} from './SplitViewCardInternal.context'\n\nconst SplitViewCard_ = React.forwardRef<HTMLDivElement, SplitViewCardProps>(\n (\n {\n 'aria-labelledby': ariaLabelledBy,\n children,\n isClosable = true,\n isInitiallyOpen,\n onClose,\n ...props\n },\n ref\n ) => {\n const defaultLabelId = useId()\n\n return (\n <SplitViewCardContextProvider isInitiallyOpen={isInitiallyOpen}>\n <SplitViewCardInternalContextProvider\n ariaLabelledBy={ariaLabelledBy ?? defaultLabelId}\n isClosable={isClosable}\n >\n <StyledSplitViewCardContainer ref={ref} {...props}>\n {children}\n </StyledSplitViewCardContainer>\n </SplitViewCardInternalContextProvider>\n </SplitViewCardContextProvider>\n )\n }\n)\n\nexport const Main = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isExpanded, mainSectionRef } = useSplitViewCard()\n\n return (\n <StyledSplitViewCardMain\n $open={isExpanded}\n ref={mergeRefs(ref, mainSectionRef)}\n tabIndex={-1}\n {...props}\n >\n {children}\n </StyledSplitViewCardMain>\n )\n }\n)\n\nexport const Panel = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isExpanded, isMounted, onPanelClosed } = useSplitViewCard()\n const [hasShadow, setHasShadow] = React.useState(false)\n\n const mainRef = React.useRef<HTMLDivElement>(null)\n\n const handleResize = React.useCallback((entries: ResizeObserverEntry[]) => {\n const element = entries[0]\n\n if (element && element.target.clientWidth <= 400) {\n setHasShadow(true)\n return\n }\n\n setHasShadow(false)\n }, [])\n\n const setResize = useResizeObserver(handleResize)\n\n React.useEffect(() => {\n setResize(mainRef.current)\n }, [setResize])\n\n const onTransitionEnd = React.useCallback(\n (e: React.TransitionEvent<HTMLDivElement>) => {\n if (e.target !== e.currentTarget) return\n onPanelClosed()\n },\n [onPanelClosed]\n )\n\n if (!isMounted) return null\n\n return (\n <StyledSplitViewCardAside\n onTransitionEnd={onTransitionEnd}\n $open={isExpanded}\n $hasShadow={hasShadow}\n ref={mergeRefs(ref, mainRef)}\n {...props}\n >\n {children}\n </StyledSplitViewCardAside>\n )\n }\n)\n\nexport const PanelTitle = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const I18n = useI18nContext()\n const { ariaLabelledBy, isClosable } = useSplitViewCardInternal()\n const { hide } = useSplitViewCard()\n\n return (\n <StyledSplitViewCardTitle ref={ref} {...props}>\n <StyledSplitViewCardHeading id={ariaLabelledBy}>\n {children}\n </StyledSplitViewCardHeading>\n {isClosable && (\n <Button\n aria-label={I18n.t('core.splitViewCard.a11y.close')}\n icon={<Clear />}\n variant=\"tertiary\"\n onClick={hide}\n />\n )}\n </StyledSplitViewCardTitle>\n )\n }\n)\n\nexport const PanelHeader = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardHeader ref={ref} {...props}>\n {children}\n </StyledSplitViewCardHeader>\n )\n)\n\nexport const PanelBody = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { ariaLabelledBy, setIsScrolling } = useSplitViewCardInternal()\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 <StyledSplitViewCardBody\n ref={ref}\n {...props}\n onScroll={handleScroll}\n tabIndex={0}\n role=\"region\"\n aria-labelledby={ariaLabelledBy}\n >\n {children}\n </StyledSplitViewCardBody>\n )\n }\n)\n\nexport const PanelFooter = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { isScrolling } = useSplitViewCardInternal()\n\n return (\n <StyledSplitViewCardFooter $hasShadow={isScrolling} ref={ref} {...props}>\n {children}\n </StyledSplitViewCardFooter>\n )\n }\n)\n\nconst Actions = React.forwardRef<HTMLDivElement, Props>(function Actions(\n { children, ...props },\n ref\n) {\n return (\n <StyledActions ref={ref} {...props}>\n {children}\n </StyledActions>\n )\n})\n\nSplitViewCard_.displayName = 'SplitViewCard'\nMain.displayName = 'SplitViewCard.Main'\nPanel.displayName = 'SplitViewCard.Panel'\nPanelTitle.displayName = 'SplitViewCard.PanelTitle'\nPanelHeader.displayName = 'SplitViewCard.PanelHeader'\nPanelBody.displayName = 'SplitViewCard.PanelBody'\nPanelFooter.displayName = 'SplitViewCard.PanelFooter'\nActions.displayName = 'SplitViewCard.Actions'\n\n/**\n\n A SplitViewCard component is used to display additional details\n of an item from a collection inside a panel of a card.\n\n - SplitViewCard\n - SplitViewCard.Main\n - SplitViewCard.Section\n - Table or some other main content\n - SplitViewCard.Panel\n - SplitViewCard.PanelHeader\n - SplitViewCard.PanelTitle\n - text\n - Tabs\n - SplitViewCard.PanelBody\n - Content\n - SplitViewCard.PanelFooter\n - SplitViewCard.Actions\n\n @since 12.9.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)\n\n */\n\nexport const SplitViewCard = addSubcomponents(\n {\n Actions,\n Main,\n Section,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L2B,UAAU,EAAVA,UAAU;EACVY,WAAW,EAAXA,WAAW;EACXG,SAAS,EAATA,SAAS;EACTW,WAAW,EAAXA;AACF,CAAC,EACD7E,cACF,CAAC","ignoreList":[]}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
export declare const StyledSplitViewCardContainer: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
-
|
|
1
|
+
export declare const StyledSplitViewCardContainer: 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 StyledSplitViewCardMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}, {
|
|
3
7
|
$open: boolean;
|
|
4
8
|
}>> & string;
|
|
5
|
-
export declare const StyledSplitViewCardAside: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
9
|
+
export declare const StyledSplitViewCardAside: 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
|
$open: boolean;
|
|
7
13
|
$hasShadow: boolean;
|
|
8
14
|
}>> & string;
|
|
9
|
-
export declare const StyledSplitViewCardHeading: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
15
|
+
export declare const StyledSplitViewCardHeading: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
10
16
|
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;
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
17
|
+
}, "style"> & {
|
|
18
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
19
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("../Semantic/Semantic.types").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>, keyof import("react").Component<any, {}, any>>;
|
|
20
|
+
export declare const StyledSplitViewCardTitle: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
21
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const StyledSplitViewCardHeader: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
24
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
25
|
+
}> & string;
|
|
26
|
+
export declare const StyledSplitViewCardBody: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
27
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
28
|
+
}> & string;
|
|
29
|
+
export declare const StyledSplitViewCardFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
30
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
31
|
+
}, {
|
|
16
32
|
$hasShadow?: boolean;
|
|
17
33
|
}>> & string;
|
|
@@ -11,18 +11,18 @@ var MIN_CARD_HEIGHT = 364;
|
|
|
11
11
|
var CARD_TRANSITION = 'all ease 500ms';
|
|
12
12
|
export var StyledSplitViewCardContainer = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledSplitViewCardContainer",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_53_2__sc-9hrkda-0"
|
|
15
15
|
})(["display:grid;grid-template-columns:1fr auto;border-radius:", "px;box-shadow:0 0 4px 0 rgba(0,0,0,0.25);min-height:", "px;position:relative;width:100%;@media (min-width:", "){overflow:hidden;}@media (max-width:", "){box-shadow:none;display:flex;flex-direction:column;width:100%;}"], spacing.sm, MIN_CARD_HEIGHT, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
|
|
16
16
|
export var StyledSplitViewCardMain = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledSplitViewCardMain",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_53_2__sc-9hrkda-1"
|
|
19
19
|
})(["background-color:", ";border-top-left-radius:", "px;border-bottom-left-radius:", "px;position:relative;width:60%;transition:", ";@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border-radius:", "px;margin-bottom:", "px;width:100%;}", ""], colors.white, spacing.sm, spacing.sm, CARD_TRANSITION, breakpointMinWidthValues.tabletMd, spacing.sm, spacing.sm, function (_ref) {
|
|
20
20
|
var $open = _ref.$open;
|
|
21
21
|
return !$open && css(["border-radius:", "px;width:100%;"], spacing.sm);
|
|
22
22
|
});
|
|
23
23
|
export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledSplitViewCardAside",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_53_2__sc-9hrkda-2"
|
|
26
26
|
})(["background-color:", ";border-left:1px solid ", ";border-top-right-radius:", "px;border-bottom-right-radius:", "px;display:flex;flex-direction:column;height:100%;width:40%;min-height:", "px;min-width:400px;transition:", ";z-index:2;position:absolute;top:0;right:0;@media screen and (max-width:", "px){min-width:unset;}@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border:none;border-radius:", "px;position:relative;width:100%;}", " ", ""], colors.white, colors.gray85, spacing.sm, spacing.sm, MIN_CARD_HEIGHT, CARD_TRANSITION, breakpointRawMinWidthValues.tabletSm, breakpointMinWidthValues.tabletMd, spacing.sm, function (_ref2) {
|
|
27
27
|
var $open = _ref2.$open;
|
|
28
28
|
return !$open && css(["border:none;border-radius:", "px;@media (min-width:", "){transform:translateX(100%);}@media (max-width:", "){display:none;}"], spacing.sm, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
|
|
@@ -32,23 +32,23 @@ export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
|
|
|
32
32
|
});
|
|
33
33
|
export var StyledSplitViewCardHeading = /*#__PURE__*/styled(H2).withConfig({
|
|
34
34
|
displayName: "StyledSplitViewCardHeading",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_53_2__sc-9hrkda-3"
|
|
36
36
|
})(["width:100%;"]);
|
|
37
37
|
export var StyledSplitViewCardTitle = /*#__PURE__*/styled.div.withConfig({
|
|
38
38
|
displayName: "StyledSplitViewCardTitle",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-12_53_2__sc-9hrkda-4"
|
|
40
40
|
})(["display:flex;justify-content:space-between;margin-bottom:", "px;min-height:36px;"], spacing.sm);
|
|
41
41
|
export var StyledSplitViewCardHeader = /*#__PURE__*/styled.div.withConfig({
|
|
42
42
|
displayName: "StyledSplitViewCardHeader",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-12_53_2__sc-9hrkda-5"
|
|
44
44
|
})(["border-bottom:1px solid ", ";display:flex;flex-direction:column;padding:", "px ", "px 0;"], colors.gray85, spacing.lg, spacing.lg);
|
|
45
45
|
export var StyledSplitViewCardBody = /*#__PURE__*/styled.div.withConfig({
|
|
46
46
|
displayName: "StyledSplitViewCardBody",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-12_53_2__sc-9hrkda-6"
|
|
48
48
|
})(["display:flex;flex-direction:column;flex:1;padding:", "px ", "px 0;overflow-y:auto;&:focus-visible{", "}"], spacing.lg, spacing.lg, getFocusInset());
|
|
49
49
|
export var StyledSplitViewCardFooter = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledSplitViewCardFooter",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-12_53_2__sc-9hrkda-7"
|
|
52
52
|
})(["display:flex;align-items:center;justify-content:flex-end;padding:", "px;", ""], spacing.lg, function (_ref4) {
|
|
53
53
|
var $hasShadow = _ref4.$hasShadow;
|
|
54
54
|
return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;"]);
|
|
@@ -53,7 +53,8 @@ function SelectComponent(props, ref) {
|
|
|
53
53
|
React.createElement(FocusScope, null, /*#__PURE__*/React.createElement(FloatingFocusManager, {
|
|
54
54
|
context: ctx.refs.floating.context,
|
|
55
55
|
order: config.search ? ['content', 'reference'] : ['reference', 'content'],
|
|
56
|
-
initialFocus: config.multiple ? undefined : 0
|
|
56
|
+
initialFocus: config.multiple ? undefined : 0,
|
|
57
|
+
modal: false
|
|
57
58
|
}, /*#__PURE__*/React.createElement(ctx.components.Overlay, _extends({
|
|
58
59
|
ref: ctx.refs.floating.refs.setFloating
|
|
59
60
|
}, ctx.props.overlay()), /*#__PURE__*/React.createElement(ctx.components.StatusMessage, ctx.props.statusMessage()), (config.search === true || config.search === undefined && !config.multiple) && /*#__PURE__*/React.createElement(ctx.components.SearchContainer, ctx.props.searchContainer(), /*#__PURE__*/React.createElement(ctx.components.Search, ctx.props.search())), config.header && /*#__PURE__*/React.createElement(ctx.components.Header, ctx.props.header(), config.header), config.selectAllEnabled && config.multiple && /*#__PURE__*/React.createElement(ctx.components.SelectAll, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperSelect.js","names":["DragDropContext","Droppable","FloatingFocusManager","FloatingPortal","FocusScope","React","Virtuoso","presets","DraggableOptionContent","OptionContent","SuperSelectContext","useSuperSelect","InternalDragDropContext","createContext","isDraggingOver","InternalDragDropProvider","_ref","children","value","useMemo","createElement","Provider","SelectComponent","props","ref","search","undefined","preset","config","_objectSpread","ctx","useImperativeHandle","useEffect","onChange","console","warn","components","Trigger","_extends","refs","floating","setReference","trigger","state","open","context","order","initialFocus","multiple","Overlay","setFloating","overlay","StatusMessage","statusMessage","SearchContainer","searchContainer","Search","header","Header","selectAllEnabled","SelectAll","option","selectAllOption","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","source","index","Item","isDragging","draggableProps","DragHandle","OptionLabel","virtuoso","scrollerRef","el","innerRef","itemContent","i","data","id","listId","role","style","height","padding","EmptyMessage","emptyMessage","footer","Footer","SuperSelect","forwardRef"],"sources":["../../src/SuperSelect/SuperSelect.tsx"],"sourcesContent":["import type {\n DraggableProvided,\n DraggableRubric,\n DraggableStateSnapshot,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport {\n DragDropContext,\n Droppable,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport { FocusScope } from '@react-aria/focus'\nimport React from 'react'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport type {\n SuperSelectApi,\n SuperSelectConfig,\n SuperSelectProps,\n} from './SuperSelect.types'\nimport { SuperSelectContext, useSuperSelect } from './useSuperSelect'\n\nexport const InternalDragDropContext = React.createContext({\n isDraggingOver: false,\n})\n\nconst InternalDragDropProvider = ({\n isDraggingOver,\n children,\n}: {\n isDraggingOver: boolean\n children: React.ReactNode\n}) => {\n const value = React.useMemo(() => {\n return {\n isDraggingOver,\n }\n }, [isDraggingOver])\n\n return (\n <InternalDragDropContext.Provider value={value}>\n {children}\n </InternalDragDropContext.Provider>\n )\n}\n\nfunction SelectComponent(\n props: SuperSelectProps,\n ref: React.ForwardedRef<SuperSelectApi>\n) {\n const search = props.search === undefined || props.search === true\n\n const preset = props.preset || ''\n\n const config: SuperSelectConfig = {\n ...presets[preset],\n ...props,\n search,\n }\n\n const ctx = useSuperSelect(config)\n\n React.useImperativeHandle(ref, () => ctx)\n\n React.useEffect(() => {\n if (props.value && props.onChange === undefined) {\n console.warn(\n 'Must provide both a `value` and `onChange` prop for a controlled Select'\n )\n }\n }, [])\n\n return (\n <SuperSelectContext.Provider value={ctx}>\n <ctx.components.Trigger\n ref={ctx.refs.floating.refs.setReference}\n {...ctx.props.trigger()}\n />\n <FloatingPortal>\n {ctx.state.open && (\n // FocusScope is needed to allow move focus from Modal and Tearsheet\n <FocusScope>\n <FloatingFocusManager\n context={ctx.refs.floating.context}\n order={\n config.search\n ? ['content', 'reference']\n : ['reference', 'content']\n }\n initialFocus={config.multiple ? undefined : 0}\n >\n <ctx.components.Overlay\n ref={ctx.refs.floating.refs.setFloating}\n {...ctx.props.overlay()}\n >\n <ctx.components.StatusMessage {...ctx.props.statusMessage()} />\n {(config.search === true ||\n (config.search === undefined && !config.multiple)) && (\n <ctx.components.SearchContainer\n {...ctx.props.searchContainer()}\n >\n <ctx.components.Search {...ctx.props.search()} />\n </ctx.components.SearchContainer>\n )}\n {config.header && (\n <ctx.components.Header {...ctx.props.header()}>\n {config.header}\n </ctx.components.Header>\n )}\n {config.selectAllEnabled && config.multiple && (\n <ctx.components.SelectAll data-index={0}>\n <OptionContent option={ctx.state.selectAllOption} />\n </ctx.components.SelectAll>\n )}\n {ctx.state.options.length > 0 ? (\n <ctx.components.Options>\n {config.draggable ? (\n <DragDropContext onDragEnd={ctx.state.onDragEnd}>\n <Droppable\n droppableId=\"droppable\"\n mode=\"virtual\"\n renderClone={(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot,\n dragged: DraggableRubric\n ) => {\n const option =\n ctx.state.options[dragged.source.index]\n\n return (\n <ctx.components.Item\n isDragging\n data-index={dragged.source.index}\n {...provided.draggableProps}\n >\n <ctx.components.DragHandle />\n <ctx.components.OptionLabel option={option} />\n </ctx.components.Item>\n )\n }}\n >\n {(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot\n ) => {\n return (\n <InternalDragDropProvider\n isDraggingOver={snapshot.isDraggingOver}\n >\n <Virtuoso\n {...ctx.props.virtuoso()}\n scrollerRef={(el) =>\n provided.innerRef(el as HTMLElement)\n }\n itemContent={(i, data) => (\n <DraggableOptionContent\n index={i}\n option={data}\n />\n )}\n />\n </InternalDragDropProvider>\n )\n }}\n </Droppable>\n </DragDropContext>\n ) : (\n <Virtuoso\n {...ctx.props.virtuoso()}\n ref={ctx.refs.virtuoso}\n itemContent={(i, option) => (\n <OptionContent option={option} />\n )}\n />\n )}\n </ctx.components.Options>\n ) : (\n <ctx.components.Options\n id={ctx.state.listId}\n role=\"listbox\"\n aria-label={props['aria-label']}\n aria-labelledby={props['aria-labelledby']}\n style={{ height: 'auto', padding: '0' }}\n >\n <ctx.components.EmptyMessage\n {...ctx.props.emptyMessage()}\n />\n </ctx.components.Options>\n )}\n {config.footer && (\n <ctx.components.Footer {...ctx.props.footer()}>\n {config.footer}\n </ctx.components.Footer>\n )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n </FocusScope>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nex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AAA,CAAAe,aAAA,CAACd,QAAQ,EAAAgC,QAAA,KACHR,GAAG,CAACP,KAAK,CAAC0D,QAAQ,CAAC,CAAC;IACxBzD,GAAG,EAAEM,GAAG,CAACS,IAAI,CAAC0C,QAAS;IACvBI,WAAW,EAAE,SAAbA,WAAWA,CAAGC,CAAC,EAAEzB,MAAM;MAAA,oBACrBxD,KAAA,CAAAe,aAAA,CAACX,aAAa;QAACoD,MAAM,EAAEA;MAAO,CAAE,CAAC;IAAA;EACjC,EACH,CAEmB,CAAC,gBAEzBxD,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC6B,OAAO;IACrBuB,EAAE,EAAE1D,GAAG,CAACa,KAAK,CAAC8C,MAAO;IACrBC,IAAI,EAAC,SAAS;IACd,cAAYnE,KAAK,CAAC,YAAY,CAAE;IAChC,mBAAiBA,KAAK,CAAC,iBAAiB,CAAE;IAC1CoE,KAAK,EAAE;MAAEC,MAAM,EAAE,MAAM;MAAEC,OAAO,EAAE;IAAI;EAAE,gBAExCxF,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC0D,YAAY,EACtBhE,GAAG,CAACP,KAAK,CAACwE,YAAY,CAAC,CAC5B,CACqB,CACzB,EACAnE,MAAM,CAACoE,MAAM,iBACZ3F,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC6D,MAAM,EAAKnE,GAAG,CAACP,KAAK,CAACyE,MAAM,CAAC,CAAC,EAC1CpE,MAAM,CAACoE,MACa,CAEH,CACJ,CACZ,CAEA,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAG7F,KAAK,CAAC8F,UAAU,CACzC7E,eACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"SuperSelect.js","names":["DragDropContext","Droppable","FloatingFocusManager","FloatingPortal","FocusScope","React","Virtuoso","presets","DraggableOptionContent","OptionContent","SuperSelectContext","useSuperSelect","InternalDragDropContext","createContext","isDraggingOver","InternalDragDropProvider","_ref","children","value","useMemo","createElement","Provider","SelectComponent","props","ref","search","undefined","preset","config","_objectSpread","ctx","useImperativeHandle","useEffect","onChange","console","warn","components","Trigger","_extends","refs","floating","setReference","trigger","state","open","context","order","initialFocus","multiple","modal","Overlay","setFloating","overlay","StatusMessage","statusMessage","SearchContainer","searchContainer","Search","header","Header","selectAllEnabled","SelectAll","option","selectAllOption","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","source","index","Item","isDragging","draggableProps","DragHandle","OptionLabel","virtuoso","scrollerRef","el","innerRef","itemContent","i","data","id","listId","role","style","height","padding","EmptyMessage","emptyMessage","footer","Footer","SuperSelect","forwardRef"],"sources":["../../src/SuperSelect/SuperSelect.tsx"],"sourcesContent":["import type {\n DraggableProvided,\n DraggableRubric,\n DraggableStateSnapshot,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport {\n DragDropContext,\n Droppable,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport { FocusScope } from '@react-aria/focus'\nimport React from 'react'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport type {\n SuperSelectApi,\n SuperSelectConfig,\n SuperSelectProps,\n} from './SuperSelect.types'\nimport { SuperSelectContext, useSuperSelect } from './useSuperSelect'\n\nexport const InternalDragDropContext = React.createContext({\n isDraggingOver: false,\n})\n\nconst InternalDragDropProvider = ({\n isDraggingOver,\n children,\n}: {\n isDraggingOver: boolean\n children: React.ReactNode\n}) => {\n const value = React.useMemo(() => {\n return {\n isDraggingOver,\n }\n }, [isDraggingOver])\n\n return (\n <InternalDragDropContext.Provider value={value}>\n {children}\n </InternalDragDropContext.Provider>\n )\n}\n\nfunction SelectComponent(\n props: SuperSelectProps,\n ref: React.ForwardedRef<SuperSelectApi>\n) {\n const search = props.search === undefined || props.search === true\n\n const preset = props.preset || ''\n\n const config: SuperSelectConfig = {\n ...presets[preset],\n ...props,\n search,\n }\n\n const ctx = useSuperSelect(config)\n\n React.useImperativeHandle(ref, () => ctx)\n\n React.useEffect(() => {\n if (props.value && props.onChange === undefined) {\n console.warn(\n 'Must provide both a `value` and `onChange` prop for a controlled Select'\n )\n }\n }, [])\n\n return (\n <SuperSelectContext.Provider value={ctx}>\n <ctx.components.Trigger\n ref={ctx.refs.floating.refs.setReference}\n {...ctx.props.trigger()}\n />\n <FloatingPortal>\n {ctx.state.open && (\n // FocusScope is needed to allow move focus from Modal and Tearsheet\n <FocusScope>\n <FloatingFocusManager\n context={ctx.refs.floating.context}\n order={\n config.search\n ? ['content', 'reference']\n : ['reference', 'content']\n }\n initialFocus={config.multiple ? undefined : 0}\n modal={false}\n >\n <ctx.components.Overlay\n ref={ctx.refs.floating.refs.setFloating}\n {...ctx.props.overlay()}\n >\n <ctx.components.StatusMessage {...ctx.props.statusMessage()} />\n {(config.search === true ||\n (config.search === undefined && !config.multiple)) && (\n <ctx.components.SearchContainer\n {...ctx.props.searchContainer()}\n >\n <ctx.components.Search {...ctx.props.search()} />\n </ctx.components.SearchContainer>\n )}\n {config.header && (\n <ctx.components.Header {...ctx.props.header()}>\n {config.header}\n </ctx.components.Header>\n )}\n {config.selectAllEnabled && config.multiple && (\n <ctx.components.SelectAll data-index={0}>\n <OptionContent option={ctx.state.selectAllOption} />\n </ctx.components.SelectAll>\n )}\n {ctx.state.options.length > 0 ? (\n <ctx.components.Options>\n {config.draggable ? (\n <DragDropContext onDragEnd={ctx.state.onDragEnd}>\n <Droppable\n droppableId=\"droppable\"\n mode=\"virtual\"\n renderClone={(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot,\n dragged: DraggableRubric\n ) => {\n const option =\n ctx.state.options[dragged.source.index]\n\n return (\n <ctx.components.Item\n isDragging\n data-index={dragged.source.index}\n {...provided.draggableProps}\n >\n <ctx.components.DragHandle />\n <ctx.components.OptionLabel option={option} />\n </ctx.components.Item>\n )\n }}\n >\n {(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot\n ) => {\n return (\n <InternalDragDropProvider\n isDraggingOver={snapshot.isDraggingOver}\n >\n <Virtuoso\n {...ctx.props.virtuoso()}\n scrollerRef={(el) =>\n provided.innerRef(el as HTMLElement)\n }\n itemContent={(i, data) => (\n <DraggableOptionContent\n index={i}\n option={data}\n />\n )}\n />\n </InternalDragDropProvider>\n )\n }}\n </Droppable>\n </DragDropContext>\n ) : (\n <Virtuoso\n {...ctx.props.virtuoso()}\n ref={ctx.refs.virtuoso}\n itemContent={(i, option) => (\n <OptionContent option={option} />\n )}\n />\n )}\n </ctx.components.Options>\n ) : (\n <ctx.components.Options\n id={ctx.state.listId}\n role=\"listbox\"\n aria-label={props['aria-label']}\n aria-labelledby={props['aria-labelledby']}\n style={{ height: 'auto', padding: '0' }}\n >\n <ctx.components.EmptyMessage\n {...ctx.props.emptyMessage()}\n />\n </ctx.components.Options>\n )}\n {config.footer && (\n <ctx.components.Footer {...ctx.props.footer()}>\n {config.footer}\n </ctx.components.Footer>\n )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n </FocusScope>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nexport const SuperSelect = React.forwardRef<SuperSelectApi, SuperSelectProps>(\n SelectComponent\n)\n"],"mappings":";;;;;;;AAKA,SACEA,eAAe,EACfC,SAAS,QACJ,iEAAiE;AACxE,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,oBAAoB;AACzE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,sBAAsB,EAAEC,aAAa,QAAQ,0BAA0B;AAMhF,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,kBAAkB;AAErE,OAAO,IAAMC,uBAAuB,gBAAGP,KAA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AAE3D,GAAG,CAACa,KAAK,CAAC+C,MAAO;IACrBC,IAAI,EAAC,SAAS;IACd,cAAYpE,KAAK,CAAC,YAAY,CAAE;IAChC,mBAAiBA,KAAK,CAAC,iBAAiB,CAAE;IAC1CqE,KAAK,EAAE;MAAEC,MAAM,EAAE,MAAM;MAAEC,OAAO,EAAE;IAAI;EAAE,gBAExCzF,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC2D,YAAY,EACtBjE,GAAG,CAACP,KAAK,CAACyE,YAAY,CAAC,CAC5B,CACqB,CACzB,EACApE,MAAM,CAACqE,MAAM,iBACZ5F,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC8D,MAAM,EAAKpE,GAAG,CAACP,KAAK,CAAC0E,MAAM,CAAC,CAAC,EAC1CrE,MAAM,CAACqE,MACa,CAEH,CACJ,CACZ,CAEA,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAG9F,KAAK,CAAC+F,UAAU,CACzC9E,eACF,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const StyledFilterPresetPopoverContent: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
1
|
+
export declare const StyledFilterPresetPopoverContent: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("../Popover").PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
2
|
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;
|
|
3
|
-
},
|
|
3
|
+
}, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
5
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../Popover").PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -3,6 +3,6 @@ import { Popover } from '../Popover';
|
|
|
3
3
|
import { spacing } from '../_styles/spacing';
|
|
4
4
|
export var StyledFilterPresetPopoverContent = /*#__PURE__*/styled(Popover.Content).withConfig({
|
|
5
5
|
displayName: "StyledFilterPresetPopoverContent",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_53_2__sc-y5qv7b-0"
|
|
7
7
|
})(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
|
|
8
8
|
//# sourceMappingURL=SuperSelect.presets.styles.js.map
|