@procore/core-react 12.7.0 → 12.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.d.ts +3 -1
- package/dist/Modal/Modal.js +26 -12
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.d.ts +9 -2
- package/dist/Modal/Modal.styles.js +82 -26
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/Modal/Modal.types.d.ts +24 -0
- package/dist/Modal/Modal.types.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +15 -15
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.context.d.ts +7 -0
- package/dist/SplitViewCard/SplitViewCard.context.js +35 -0
- package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -0
- package/dist/SplitViewCard/SplitViewCard.d.ts +43 -0
- package/dist/SplitViewCard/SplitViewCard.js +129 -0
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -0
- package/dist/SplitViewCard/SplitViewCard.styles.d.ts +10 -0
- package/dist/SplitViewCard/SplitViewCard.styles.js +39 -0
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -0
- package/dist/SplitViewCard/SplitViewCard.types.d.ts +25 -0
- package/dist/SplitViewCard/SplitViewCard.types.js +2 -0
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -0
- package/dist/SplitViewCard/index.d.ts +4 -0
- package/dist/SplitViewCard/index.js +4 -0
- package/dist/SplitViewCard/index.js.map +1 -0
- package/dist/SplitViewCard/useSplitViewCard.d.ts +5 -0
- package/dist/SplitViewCard/useSplitViewCard.js +14 -0
- package/dist/SplitViewCard/useSplitViewCard.js.map +1 -0
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.d.ts +9 -3
- package/dist/Tabs/Tabs.js +19 -10
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.d.ts +17 -17
- package/dist/Tabs/Tabs.styles.js +116 -33
- package/dist/Tabs/Tabs.styles.js.map +1 -1
- package/dist/Tabs/Tabs.types.d.ts +22 -0
- package/dist/Tabs/Tabs.types.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +5 -0
- package/dist/_locales/en.json +5 -0
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- 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 +12 -12
- 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 +9 -9
- 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 +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- 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 +726 -726
- 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 +4 -4
- 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 +101 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- 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 +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- 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 +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +57 -57
- 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/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +45 -19
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- 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 +30 -30
- 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 +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- 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/_typedoc/deprecations.json +1 -1
- package/package.json +1 -1
|
@@ -27,22 +27,22 @@ export function getSearchInputStyles() {
|
|
|
27
27
|
}
|
|
28
28
|
export var StyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
29
29
|
displayName: "StyledInput",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_8_0__sc-3j8khv-0"
|
|
31
31
|
})(["", ""], getSearchInputStyles);
|
|
32
32
|
var StyledButton = /*#__PURE__*/styled(Button).withConfig({
|
|
33
33
|
displayName: "StyledButton",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-12_8_0__sc-3j8khv-1"
|
|
35
35
|
})(["position:absolute;top:", "px;"], buttonTop);
|
|
36
36
|
export var StyledSearchButton = /*#__PURE__*/styled(StyledButton).withConfig({
|
|
37
37
|
displayName: "StyledSearchButton",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_8_0__sc-3j8khv-2"
|
|
39
39
|
})([""]);
|
|
40
40
|
export var StyledClearButton = /*#__PURE__*/styled(StyledButton).withConfig({
|
|
41
41
|
displayName: "StyledClearButton",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_8_0__sc-3j8khv-3"
|
|
43
43
|
})([""]);
|
|
44
44
|
export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
|
|
45
45
|
displayName: "StyledSearch",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_8_0__sc-3j8khv-4"
|
|
47
47
|
})(["position:relative;width:100%;", "{padding-right:", "px;}", "{right:", "px;}", "{right:", "px;}"], StyledInput, inputRight, StyledSearchButton, searchRight, StyledClearButton, clearRight);
|
|
48
48
|
//# sourceMappingURL=Search.styles.js.map
|
|
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledSectionInner = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledSectionInner",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_8_0__sc-1lxbrwv-0"
|
|
9
9
|
})([""]);
|
|
10
10
|
export var StyledSectionCollapseHeading = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledSectionCollapseHeading",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_8_0__sc-1lxbrwv-1"
|
|
13
13
|
})(["align-self:flex-start;margin-right:", "px;"], spacing.sm);
|
|
14
14
|
export var sectionClassnames = {
|
|
15
15
|
divide: 'section--divide',
|
|
@@ -20,11 +20,11 @@ export var sectionClassnames = {
|
|
|
20
20
|
};
|
|
21
21
|
export var StyledSection = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledSection",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_8_0__sc-1lxbrwv-2"
|
|
24
24
|
})(["padding-left:", "px;padding-right:", "px;padding-bottom:", "px;& > ", "{padding-top:", "px;}&.", "{& > ", "{border-top:1px solid ", ";}}&:first-child > ", "{border-top:0;}& &{padding-left:0;padding-right:0;&:first-child > ", "{border-top:1px solid ", ";}&:last-child{padding-bottom:0;}}", ":last-of-type{margin-bottom:", "px;}", " + &&&{padding-top:", "px;}"], spacing.lg, spacing.lg, spacing.lg, StyledSectionInner, spacing.lg, sectionClassnames.divide, StyledSectionInner, colors.gray85, StyledSectionInner, StyledSectionInner, colors.gray85, StyledFormRow, spacing.lg * -1, StyledFormRow, spacing.xs);
|
|
25
25
|
export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
|
|
26
26
|
displayName: "StyledSectionContentRegion",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-12_8_0__sc-1lxbrwv-3"
|
|
28
28
|
})(["padding-top:", "px;", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, function (_ref) {
|
|
29
29
|
var $closed = _ref.$closed;
|
|
30
30
|
return $closed && css(["padding-top:0;"]);
|
|
@@ -34,10 +34,10 @@ export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
|
|
|
34
34
|
}, StyledSection, StyledSection, spacing.xl, StyledSection, StyledSection);
|
|
35
35
|
export var StyledSectionHeader = /*#__PURE__*/styled.div.withConfig({
|
|
36
36
|
displayName: "StyledSectionHeader",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_8_0__sc-1lxbrwv-4"
|
|
38
38
|
})(["align-items:center;display:flex;min-height:36px;word-break:break-word;"]);
|
|
39
39
|
export var StyledTitle = /*#__PURE__*/styled(Title).withConfig({
|
|
40
40
|
displayName: "StyledTitle",
|
|
41
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-12_8_0__sc-1lxbrwv-5"
|
|
42
42
|
})(["width:100%;"]);
|
|
43
43
|
//# sourceMappingURL=Section.styles.js.map
|
|
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledContainer",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_8_0__sc-ocai3-0"
|
|
9
9
|
})(["align-items:center;display:", ";height:36px;justify-content:center;width:", ";"], function (_ref) {
|
|
10
10
|
var block = _ref.block;
|
|
11
11
|
return block ? 'flex' : 'inline-flex';
|
|
@@ -15,7 +15,7 @@ export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
15
15
|
});
|
|
16
16
|
export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
|
|
17
17
|
displayName: "StyledSegment",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_8_0__sc-ocai3-1"
|
|
19
19
|
})(["align-items:center;border-radius:0;border:1px solid ", ";cursor:pointer;display:flex;flex:1 1 auto;height:100%;justify-content:center;min-width:0;outline:0;padding:0 ", "px;position:relative;background-color:", ";color:", ";&:hover{background-color:", ";border-color:", ";color:", ";}", " ", ";"], colors.gray85, spacing.md, colors.white, colors.gray45, colors.gray94, colors.gray85, colors.gray45, function (_ref3) {
|
|
20
20
|
var _ref3$$focused = _ref3.$focused,
|
|
21
21
|
$focused = _ref3$$focused === void 0 ? false : _ref3$$focused;
|
|
@@ -37,10 +37,10 @@ export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
|
|
|
37
37
|
});
|
|
38
38
|
export var StyledSegmentDisabledInteractiveWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
39
39
|
displayName: "StyledSegmentDisabledInteractiveWrapper",
|
|
40
|
-
componentId: "core-
|
|
40
|
+
componentId: "core-12_8_0__sc-ocai3-2"
|
|
41
41
|
})(["display:flex;flex:1 1 auto;min-width:0;height:100%;margin-right:-1px;&:first-child ", "{border-bottom-left-radius:", "px;border-top-left-radius:", "px;}&:last-child ", "{border-bottom-right-radius:", "px;border-top-right-radius:", "px;}"], StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md);
|
|
42
42
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
43
43
|
displayName: "StyledLabel",
|
|
44
|
-
componentId: "core-
|
|
44
|
+
componentId: "core-12_8_0__sc-ocai3-3"
|
|
45
45
|
})(["", ";display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], getTypographyIntent('body'));
|
|
46
46
|
//# sourceMappingURL=SegmentedController.styles.js.map
|
|
@@ -16,34 +16,34 @@ export var tableSelectClassName = 'select--table';
|
|
|
16
16
|
var styledSelectButtonDefaultWidth = 248;
|
|
17
17
|
export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
18
18
|
displayName: "StyledSelectMenu",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_8_0__sc-mr8gwe-0"
|
|
20
20
|
})(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
|
|
21
21
|
export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledSelectButtonLabel",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_8_0__sc-mr8gwe-1"
|
|
24
24
|
})(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
|
|
25
25
|
var $hoverable = _ref.$hoverable;
|
|
26
26
|
return $hoverable ? 'initial' : 'none';
|
|
27
27
|
});
|
|
28
28
|
export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
|
|
29
29
|
displayName: "StyledSelectSpinner",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_8_0__sc-mr8gwe-2"
|
|
31
31
|
})(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
|
|
32
32
|
export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
|
|
33
33
|
displayName: "StyledSelectArrowContainer",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-12_8_0__sc-mr8gwe-3"
|
|
35
35
|
})(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
|
|
36
36
|
export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledSelectArrow",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_8_0__sc-mr8gwe-4"
|
|
39
39
|
})(["position:relative;", ""], arrowDown(4, 'gray45'));
|
|
40
40
|
export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
|
|
41
41
|
displayName: "StyledSelectClearIcon",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_8_0__sc-mr8gwe-5"
|
|
43
43
|
})([""]);
|
|
44
44
|
export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
|
|
45
45
|
displayName: "StyledSelectButton",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_8_0__sc-mr8gwe-6"
|
|
47
47
|
})(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&.focus,&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref2) {
|
|
48
48
|
var $block = _ref2.$block;
|
|
49
49
|
return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
|
|
@@ -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_8_0__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_8_0__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_8_0__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_8_0__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_8_0__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_8_0__sc-172j5qh-5"
|
|
44
44
|
})(["list-style-type:", ";"], function (props) {
|
|
45
45
|
return props.listStyleType || 'decimal';
|
|
46
46
|
});
|
|
@@ -52,7 +52,7 @@ function enforceLabelTypography(props) {
|
|
|
52
52
|
}
|
|
53
53
|
export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(enforceLabelTypography).withConfig({
|
|
54
54
|
displayName: "StyledLabel",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_8_0__sc-172j5qh-6"
|
|
56
56
|
})(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
|
|
57
57
|
var _ref$block = _ref.block,
|
|
58
58
|
block = _ref$block === void 0 ? false : _ref$block;
|
|
@@ -70,7 +70,7 @@ export function getUnstyledButton() {
|
|
|
70
70
|
*/
|
|
71
71
|
export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
72
72
|
displayName: "StyledUnstyledButton",
|
|
73
|
-
componentId: "core-
|
|
73
|
+
componentId: "core-12_8_0__sc-172j5qh-7"
|
|
74
74
|
})(["", ""], getUnstyledButton);
|
|
75
75
|
|
|
76
76
|
/**
|
|
@@ -78,6 +78,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
78
78
|
*/
|
|
79
79
|
export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
|
|
80
80
|
displayName: "StyledAnchor",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_8_0__sc-172j5qh-8"
|
|
82
82
|
})([""]);
|
|
83
83
|
//# sourceMappingURL=Semantic.styles.js.map
|
|
@@ -21,13 +21,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
|
|
|
21
21
|
var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
|
|
22
22
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledContainer",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_8_0__sc-12icguw-0"
|
|
25
25
|
})(["position:relative;", ";"], function (props) {
|
|
26
26
|
return props.showLabel && 'padding-bottom: 10px';
|
|
27
27
|
});
|
|
28
28
|
export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
|
|
29
29
|
displayName: "StyledSlider",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_8_0__sc-12icguw-1"
|
|
31
31
|
})(["-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) {
|
|
32
32
|
return props.isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
|
|
33
33
|
}, getTrackStyles, function (props) {
|
|
@@ -45,14 +45,14 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
|
|
|
45
45
|
}, colors.blue50, colors.black, colors.black, colors.gray70, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray70);
|
|
46
46
|
export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
47
47
|
displayName: "StyledIncrementOverlay",
|
|
48
|
-
componentId: "core-
|
|
48
|
+
componentId: "core-12_8_0__sc-12icguw-2"
|
|
49
49
|
})(["position:relative;width:0;&::before{content:'';height:", "px;width:2px;background-color:white;display:block;}z-index:2;"], TRACK_HEIGHT);
|
|
50
50
|
export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
|
|
51
51
|
displayName: "StyledIncrementContainer",
|
|
52
|
-
componentId: "core-
|
|
52
|
+
componentId: "core-12_8_0__sc-12icguw-3"
|
|
53
53
|
})(["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 "));
|
|
54
54
|
export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
|
|
55
55
|
displayName: "StyledLabel",
|
|
56
|
-
componentId: "core-
|
|
56
|
+
componentId: "core-12_8_0__sc-12icguw-4"
|
|
57
57
|
})(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
|
|
58
58
|
//# sourceMappingURL=Slider.styles.js.map
|
|
@@ -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_8_0__sc-1igww3-0"
|
|
14
14
|
})(["animation:", " ", "ms ease-in-out ", "ms infinite;stroke-linecap:round;"], dash, duration, function (p) {
|
|
15
15
|
var animationDelay = -(p.mountTime % duration);
|
|
16
16
|
return animationDelay;
|
|
@@ -43,16 +43,16 @@ function getStrokeColor(_ref2) {
|
|
|
43
43
|
}
|
|
44
44
|
export var StyledSpinnerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
45
45
|
displayName: "StyledSpinnerContainer",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_8_0__sc-1igww3-1"
|
|
47
47
|
})(["border-radius:100%;box-sizing:border-box;display:block;flex-shrink:0;position:relative;", " ", "{", "}"], getHeightWidthStroke, StyledCircle, getStrokeColor);
|
|
48
48
|
export var StyledSpinnerOverlayLabel = /*#__PURE__*/styled.span.withConfig({
|
|
49
49
|
displayName: "StyledSpinnerOverlayLabel",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_8_0__sc-1igww3-2"
|
|
51
51
|
})(["", " color:", ";display:block;min-height:20px;padding-top:", "px;text-align:center;text-transform:uppercase;transition:opacity ", ";"], getTypographyIntent('body'), colors.gray15, spacing.md, transition);
|
|
52
52
|
var rotate = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
|
|
53
53
|
export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
|
|
54
54
|
displayName: "StyledSpinnerSVG",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_8_0__sc-1igww3-3"
|
|
56
56
|
})(["animation:", " ", "ms linear ", "ms infinite;fill:none;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:2;"], rotate, duration - durationOffset, function (p) {
|
|
57
57
|
var animationDelay = -(p.mountTime % (duration - durationOffset));
|
|
58
58
|
return animationDelay;
|
|
@@ -60,15 +60,15 @@ export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
|
|
|
60
60
|
var startsWithNoInteraction = /*#__PURE__*/css(["opacity:0;pointer-events:none;transition:opacity ", ";"], transition);
|
|
61
61
|
export var StyledSpinnerOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
62
62
|
displayName: "StyledSpinnerOverlay",
|
|
63
|
-
componentId: "core-
|
|
63
|
+
componentId: "core-12_8_0__sc-1igww3-4"
|
|
64
64
|
})(["", " background-color:", ";bottom:0;left:0;position:absolute;right:0;top:0;z-index:", ";"], startsWithNoInteraction, colors.white, zOverlay);
|
|
65
65
|
export var StyledSpinnerContainerWithLabel = /*#__PURE__*/styled.div.withConfig({
|
|
66
66
|
displayName: "StyledSpinnerContainerWithLabel",
|
|
67
|
-
componentId: "core-
|
|
67
|
+
componentId: "core-12_8_0__sc-1igww3-5"
|
|
68
68
|
})(["", " 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);
|
|
69
69
|
export var StyledSpinnerOverlayContainer = /*#__PURE__*/styled.div.withConfig({
|
|
70
70
|
displayName: "StyledSpinnerOverlayContainer",
|
|
71
|
-
componentId: "core-
|
|
71
|
+
componentId: "core-12_8_0__sc-1igww3-6"
|
|
72
72
|
})(["min-height:150px;position:relative;", " ", ""], function (_ref3) {
|
|
73
73
|
var $loading = _ref3.$loading;
|
|
74
74
|
if ($loading) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props } from '../_utils/types';
|
|
3
|
+
import type { SplitViewCardContextAPI } from './SplitViewCard.types';
|
|
4
|
+
export declare const SplitViewCardContext: React.Context<SplitViewCardContextAPI>;
|
|
5
|
+
export declare const SplitViewCardContextProvider: ({ children, defaultValue, }: React.PropsWithChildren<Props & {
|
|
6
|
+
defaultValue?: boolean | undefined;
|
|
7
|
+
}>) => React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export var SplitViewCardContext = /*#__PURE__*/React.createContext({
|
|
9
|
+
open: false,
|
|
10
|
+
onOpen: function onOpen() {},
|
|
11
|
+
onClose: function onClose() {}
|
|
12
|
+
});
|
|
13
|
+
export var SplitViewCardContextProvider = function SplitViewCardContextProvider(_ref) {
|
|
14
|
+
var children = _ref.children,
|
|
15
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
16
|
+
defaultValue = _ref$defaultValue === void 0 ? false : _ref$defaultValue;
|
|
17
|
+
var _React$useState = React.useState(defaultValue),
|
|
18
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19
|
+
open = _React$useState2[0],
|
|
20
|
+
setOpen = _React$useState2[1];
|
|
21
|
+
var onOpen = function onOpen() {
|
|
22
|
+
return setOpen(true);
|
|
23
|
+
};
|
|
24
|
+
var onClose = function onClose() {
|
|
25
|
+
return setOpen(false);
|
|
26
|
+
};
|
|
27
|
+
return /*#__PURE__*/React.createElement(SplitViewCardContext.Provider, {
|
|
28
|
+
value: {
|
|
29
|
+
open: open,
|
|
30
|
+
onOpen: onOpen,
|
|
31
|
+
onClose: onClose
|
|
32
|
+
}
|
|
33
|
+
}, children);
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SplitViewCard.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewCard.context.js","names":["React","SplitViewCardContext","createContext","open","onOpen","onClose","SplitViewCardContextProvider","_ref","children","_ref$defaultValue","defaultValue","_React$useState","useState","_React$useState2","_slicedToArray","setOpen","createElement","Provider","value"],"sources":["../../src/SplitViewCard/SplitViewCard.context.tsx"],"sourcesContent":["import React from 'react'\nimport type { Props } from '../_utils/types'\nimport type { SplitViewCardContextAPI } from './SplitViewCard.types'\n\nexport const SplitViewCardContext =\n React.createContext<SplitViewCardContextAPI>({\n open: false,\n onOpen: () => {},\n onClose: () => {},\n })\n\nexport const SplitViewCardContextProvider = ({\n children,\n defaultValue = false,\n}: React.PropsWithChildren<Props & { defaultValue?: boolean }>) => {\n const [open, setOpen] = React.useState(defaultValue)\n\n const onOpen = () => setOpen(true)\n const onClose = () => setOpen(false)\n\n return (\n <SplitViewCardContext.Provider value={{ open, onOpen, onClose }}>\n {children}\n </SplitViewCardContext.Provider>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAIzB,OAAO,IAAMC,oBAAoB,gBAC/BD,KAAK,CAACE,aAAa,CAA0B;EAC3CC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE,SAAAA,OAAA,EAAM,CAAC,CAAC;EAChBC,OAAO,EAAE,SAAAA,QAAA,EAAM,CAAC;AAClB,CAAC,CAAC;AAEJ,OAAO,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAG0B;EAAA,IAFjEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,iBAAA,GAAAF,IAAA,CACRG,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,KAAK,GAAAA,iBAAA;EAEpB,IAAAE,eAAA,GAAwBX,KAAK,CAACY,QAAQ,CAACF,YAAY,CAAC;IAAAG,gBAAA,GAAAC,cAAA,CAAAH,eAAA;IAA7CR,IAAI,GAAAU,gBAAA;IAAEE,OAAO,GAAAF,gBAAA;EAEpB,IAAMT,MAAM,GAAG,SAATA,MAAMA,CAAA;IAAA,OAASW,OAAO,CAAC,IAAI,CAAC;EAAA;EAClC,IAAMV,OAAO,GAAG,SAAVA,OAAOA,CAAA;IAAA,OAASU,OAAO,CAAC,KAAK,CAAC;EAAA;EAEpC,oBACEf,KAAA,CAAAgB,aAAA,CAACf,oBAAoB,CAACgB,QAAQ;IAACC,KAAK,EAAE;MAAEf,IAAI,EAAJA,IAAI;MAAEC,MAAM,EAANA,MAAM;MAAEC,OAAO,EAAPA;IAAQ;EAAE,GAC7DG,QAC4B,CAAC;AAEpC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props } from '../_utils/types';
|
|
3
|
+
import type { SplitViewCardProps } from './SplitViewCard.types';
|
|
4
|
+
export declare const Main: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Aside: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Title: React.ForwardRefExoticComponent<SplitViewCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Header: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const Body: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const Footer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
/**
|
|
12
|
+
|
|
13
|
+
A split view card component is used to support a split view page layout.
|
|
14
|
+
|
|
15
|
+
- SplitViewCard
|
|
16
|
+
- SplitViewCard.Main
|
|
17
|
+
- SplitViewCard.Section
|
|
18
|
+
- Table or some other main content
|
|
19
|
+
- SplitViewCard.Aside
|
|
20
|
+
- SplitViewCard.Header
|
|
21
|
+
- SplitViewCard.Title
|
|
22
|
+
- SplitViewCard.Heading
|
|
23
|
+
- Title
|
|
24
|
+
- Tabs
|
|
25
|
+
- SplitViewCard.Body
|
|
26
|
+
- Content
|
|
27
|
+
- SplitViewCard.Footer
|
|
28
|
+
|
|
29
|
+
@since 12.4.2
|
|
30
|
+
|
|
31
|
+
@see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
export declare const SplitViewCard: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>> & {
|
|
35
|
+
Main: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
Section: React.ForwardRefExoticComponent<import("../Section").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
Aside: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
Heading: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
Title: React.ForwardRefExoticComponent<SplitViewCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
Header: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Body: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
Footer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var _excluded = ["children"],
|
|
2
|
+
_excluded2 = ["children"],
|
|
3
|
+
_excluded3 = ["children"],
|
|
4
|
+
_excluded4 = ["children"],
|
|
5
|
+
_excluded5 = ["children", "onClose"],
|
|
6
|
+
_excluded6 = ["children"],
|
|
7
|
+
_excluded7 = ["children"],
|
|
8
|
+
_excluded8 = ["children"];
|
|
9
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
+
import { Clear } from '@procore/core-icons';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { Button } from '../Button';
|
|
15
|
+
import { Section } from '../Section';
|
|
16
|
+
import { useI18nContext } from '../_hooks/I18n';
|
|
17
|
+
import { addSubcomponents } from '../_utils/addSubcomponents';
|
|
18
|
+
import { StyledSplitViewCardAside, StyledSplitViewCardBody, StyledSplitViewCardContainer, StyledSplitViewCardFooter, StyledSplitViewCardHeader, StyledSplitViewCardHeading, StyledSplitViewCardMain, StyledSplitViewCardTitle } from './SplitViewCard.styles';
|
|
19
|
+
import { useSplitViewCard } from './useSplitViewCard';
|
|
20
|
+
var SplitViewCard_ = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21
|
+
var children = _ref.children,
|
|
22
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardContainer, _extends({
|
|
24
|
+
ref: ref
|
|
25
|
+
}, props), children);
|
|
26
|
+
});
|
|
27
|
+
export var Main = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
28
|
+
var children = _ref2.children,
|
|
29
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
30
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardMain, _extends({
|
|
31
|
+
ref: ref
|
|
32
|
+
}, props), children);
|
|
33
|
+
});
|
|
34
|
+
export var Aside = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
35
|
+
var children = _ref3.children,
|
|
36
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
37
|
+
var _useSplitViewCard = useSplitViewCard(),
|
|
38
|
+
open = _useSplitViewCard.open;
|
|
39
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardAside, _extends({
|
|
40
|
+
$open: open,
|
|
41
|
+
ref: ref
|
|
42
|
+
}, props), children);
|
|
43
|
+
});
|
|
44
|
+
export var Heading = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
45
|
+
var children = _ref4.children,
|
|
46
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
47
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardHeading, _extends({
|
|
48
|
+
ref: ref
|
|
49
|
+
}, props), children);
|
|
50
|
+
});
|
|
51
|
+
export var Title = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
52
|
+
var children = _ref5.children,
|
|
53
|
+
onClose = _ref5.onClose,
|
|
54
|
+
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
55
|
+
var I18n = useI18nContext();
|
|
56
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardTitle, _extends({
|
|
57
|
+
ref: ref
|
|
58
|
+
}, props), children, /*#__PURE__*/React.createElement(Button, {
|
|
59
|
+
"aria-label": I18n.t('core.splitViewCard.a11y.close'),
|
|
60
|
+
icon: /*#__PURE__*/React.createElement(Clear, null),
|
|
61
|
+
variant: "tertiary",
|
|
62
|
+
onClick: onClose
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
export var Header = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
66
|
+
var children = _ref6.children,
|
|
67
|
+
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
68
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardHeader, _extends({
|
|
69
|
+
ref: ref
|
|
70
|
+
}, props), children);
|
|
71
|
+
});
|
|
72
|
+
export var Body = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
|
|
73
|
+
var children = _ref7.children,
|
|
74
|
+
props = _objectWithoutProperties(_ref7, _excluded7);
|
|
75
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardBody, _extends({
|
|
76
|
+
ref: ref
|
|
77
|
+
}, props), children);
|
|
78
|
+
});
|
|
79
|
+
export var Footer = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
80
|
+
var children = _ref8.children,
|
|
81
|
+
props = _objectWithoutProperties(_ref8, _excluded8);
|
|
82
|
+
return /*#__PURE__*/React.createElement(StyledSplitViewCardFooter, _extends({
|
|
83
|
+
ref: ref
|
|
84
|
+
}, props), children);
|
|
85
|
+
});
|
|
86
|
+
SplitViewCard_.displayName = 'SplitViewCard';
|
|
87
|
+
Main.displayName = 'SplitViewCard.Main';
|
|
88
|
+
Aside.displayName = 'SplitViewCard.Aside';
|
|
89
|
+
Heading.displayName = 'SplitViewCard.Heading';
|
|
90
|
+
Title.displayName = 'SplitViewCard.Title';
|
|
91
|
+
Header.displayName = 'SplitViewCard.Header';
|
|
92
|
+
Body.displayName = 'SplitViewCard.Body';
|
|
93
|
+
Footer.displayName = 'SplitViewCard.Footer';
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
|
|
97
|
+
A split view card component is used to support a split view page layout.
|
|
98
|
+
|
|
99
|
+
- SplitViewCard
|
|
100
|
+
- SplitViewCard.Main
|
|
101
|
+
- SplitViewCard.Section
|
|
102
|
+
- Table or some other main content
|
|
103
|
+
- SplitViewCard.Aside
|
|
104
|
+
- SplitViewCard.Header
|
|
105
|
+
- SplitViewCard.Title
|
|
106
|
+
- SplitViewCard.Heading
|
|
107
|
+
- Title
|
|
108
|
+
- Tabs
|
|
109
|
+
- SplitViewCard.Body
|
|
110
|
+
- Content
|
|
111
|
+
- SplitViewCard.Footer
|
|
112
|
+
|
|
113
|
+
@since 12.4.2
|
|
114
|
+
|
|
115
|
+
@see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)
|
|
116
|
+
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
export var SplitViewCard = addSubcomponents({
|
|
120
|
+
Main: Main,
|
|
121
|
+
Section: Section,
|
|
122
|
+
Aside: Aside,
|
|
123
|
+
Heading: Heading,
|
|
124
|
+
Title: Title,
|
|
125
|
+
Header: Header,
|
|
126
|
+
Body: Body,
|
|
127
|
+
Footer: Footer
|
|
128
|
+
}, SplitViewCard_);
|
|
129
|
+
//# sourceMappingURL=SplitViewCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewCard.js","names":["Clear","React","Button","Section","useI18nContext","addSubcomponents","StyledSplitViewCardAside","StyledSplitViewCardBody","StyledSplitViewCardContainer","StyledSplitViewCardFooter","StyledSplitViewCardHeader","StyledSplitViewCardHeading","StyledSplitViewCardMain","StyledSplitViewCardTitle","useSplitViewCard","SplitViewCard_","forwardRef","_ref","ref","children","props","_objectWithoutProperties","_excluded","createElement","_extends","Main","_ref2","_excluded2","Aside","_ref3","_excluded3","_useSplitViewCard","open","$open","Heading","_ref4","_excluded4","Title","_ref5","onClose","_excluded5","I18n","t","icon","variant","onClick","Header","_ref6","_excluded6","Body","_ref7","_excluded7","Footer","_ref8","_excluded8","displayName","SplitViewCard"],"sources":["../../src/SplitViewCard/SplitViewCard.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport React from 'react'\nimport { Button } from '../Button'\nimport { Section } from '../Section'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\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 { useSplitViewCard } from './useSplitViewCard'\n\nconst SplitViewCard_ = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardContainer ref={ref} {...props}>\n {children}\n </StyledSplitViewCardContainer>\n )\n)\n\nexport const Main = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardMain ref={ref} {...props}>\n {children}\n </StyledSplitViewCardMain>\n )\n)\n\nexport const Aside = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => {\n const { open } = useSplitViewCard()\n\n return (\n <StyledSplitViewCardAside $open={open} ref={ref} {...props}>\n {children}\n </StyledSplitViewCardAside>\n )\n }\n)\n\nexport const Heading = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardHeading ref={ref} {...props}>\n {children}\n </StyledSplitViewCardHeading>\n )\n)\n\nexport const Title = React.forwardRef<HTMLDivElement, SplitViewCardProps>(\n ({ children, onClose, ...props }, ref) => {\n const I18n = useI18nContext()\n\n return (\n <StyledSplitViewCardTitle ref={ref} {...props}>\n {children}\n <Button\n aria-label={I18n.t('core.splitViewCard.a11y.close')}\n icon={<Clear />}\n variant=\"tertiary\"\n onClick={onClose}\n />\n </StyledSplitViewCardTitle>\n )\n }\n)\n\nexport const Header = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardHeader ref={ref} {...props}>\n {children}\n </StyledSplitViewCardHeader>\n )\n)\n\nexport const Body = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardBody ref={ref} {...props}>\n {children}\n </StyledSplitViewCardBody>\n )\n)\n\nexport const Footer = React.forwardRef<HTMLDivElement, Props>(\n ({ children, ...props }, ref) => (\n <StyledSplitViewCardFooter ref={ref} {...props}>\n {children}\n </StyledSplitViewCardFooter>\n )\n)\n\nSplitViewCard_.displayName = 'SplitViewCard'\nMain.displayName = 'SplitViewCard.Main'\nAside.displayName = 'SplitViewCard.Aside'\nHeading.displayName = 'SplitViewCard.Heading'\nTitle.displayName = 'SplitViewCard.Title'\nHeader.displayName = 'SplitViewCard.Header'\nBody.displayName = 'SplitViewCard.Body'\nFooter.displayName = 'SplitViewCard.Footer'\n\n/**\n\n A split view card component is used to support a split view page layout.\n\n - SplitViewCard\n - SplitViewCard.Main\n - SplitViewCard.Section\n - Table or some other main content\n - SplitViewCard.Aside\n - SplitViewCard.Header\n - SplitViewCard.Title\n - SplitViewCard.Heading\n - Title\n - Tabs\n - SplitViewCard.Body\n - Content\n - SplitViewCard.Footer\n\n @since 12.4.2\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/demos-splitviewcard--demo)\n\n */\n\nexport const SplitViewCard = addSubcomponents(\n {\n Main,\n Section,\n Aside,\n Heading,\n Title,\n Header,\n Body,\n Footer,\n },\n SplitViewCard_\n)\n"],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const StyledSplitViewCardContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledSplitViewCardMain: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledSplitViewCardAside: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
+
$open: boolean;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const StyledSplitViewCardHeading: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const StyledSplitViewCardTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledSplitViewCardHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const StyledSplitViewCardBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const StyledSplitViewCardFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { colors } from '../_styles/colors';
|
|
3
|
+
import { spacing } from '../_styles/spacing';
|
|
4
|
+
export var StyledSplitViewCardContainer = /*#__PURE__*/styled.div.withConfig({
|
|
5
|
+
displayName: "StyledSplitViewCardContainer",
|
|
6
|
+
componentId: "core-12_8_0__sc-9hrkda-0"
|
|
7
|
+
})(["display:grid;grid-template-columns:1fr auto;border:1px solid ", ";box-shadow:0 0 ", "px 0 rgba(0,0,0,0.25);width:100%;"], colors.gray85, spacing.xs);
|
|
8
|
+
export var StyledSplitViewCardMain = /*#__PURE__*/styled.div.withConfig({
|
|
9
|
+
displayName: "StyledSplitViewCardMain",
|
|
10
|
+
componentId: "core-12_8_0__sc-9hrkda-1"
|
|
11
|
+
})(["background-color:", ";position:relative;width:100%;"], colors.white);
|
|
12
|
+
export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
|
|
13
|
+
displayName: "StyledSplitViewCardAside",
|
|
14
|
+
componentId: "core-12_8_0__sc-9hrkda-2"
|
|
15
|
+
})(["background-color:", ";border-left:1px solid ", ";display:flex;flex-direction:column;min-width:400px;transition:all ease 500ms;", ""], colors.white, colors.gray85, function (_ref) {
|
|
16
|
+
var $open = _ref.$open;
|
|
17
|
+
return !$open && css(["border:none;overflow:hidden !important;min-width:0;width:0 !important;"]);
|
|
18
|
+
});
|
|
19
|
+
export var StyledSplitViewCardHeading = /*#__PURE__*/styled.div.withConfig({
|
|
20
|
+
displayName: "StyledSplitViewCardHeading",
|
|
21
|
+
componentId: "core-12_8_0__sc-9hrkda-3"
|
|
22
|
+
})(["overflow:hidden;white-space:nowrap;width:100%;"]);
|
|
23
|
+
export var StyledSplitViewCardTitle = /*#__PURE__*/styled.div.withConfig({
|
|
24
|
+
displayName: "StyledSplitViewCardTitle",
|
|
25
|
+
componentId: "core-12_8_0__sc-9hrkda-4"
|
|
26
|
+
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:", "px;"], spacing.sm);
|
|
27
|
+
export var StyledSplitViewCardHeader = /*#__PURE__*/styled.div.withConfig({
|
|
28
|
+
displayName: "StyledSplitViewCardHeader",
|
|
29
|
+
componentId: "core-12_8_0__sc-9hrkda-5"
|
|
30
|
+
})(["border-bottom:1px solid ", ";display:flex;flex-direction:column;padding:", "px ", "px 0;"], colors.gray85, spacing.lg, spacing.lg);
|
|
31
|
+
export var StyledSplitViewCardBody = /*#__PURE__*/styled.div.withConfig({
|
|
32
|
+
displayName: "StyledSplitViewCardBody",
|
|
33
|
+
componentId: "core-12_8_0__sc-9hrkda-6"
|
|
34
|
+
})(["height:100%;margin:", "px;overflow-y:auto;"], spacing.lg);
|
|
35
|
+
export var StyledSplitViewCardFooter = /*#__PURE__*/styled.div.withConfig({
|
|
36
|
+
displayName: "StyledSplitViewCardFooter",
|
|
37
|
+
componentId: "core-12_8_0__sc-9hrkda-7"
|
|
38
|
+
})(["display:flex;align-items:center;justify-content:flex-end;padding:0 ", "px ", "px;"], spacing.lg, spacing.lg);
|
|
39
|
+
//# sourceMappingURL=SplitViewCard.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewCard.styles.js","names":["styled","css","colors","spacing","StyledSplitViewCardContainer","div","withConfig","displayName","componentId","gray85","xs","StyledSplitViewCardMain","white","StyledSplitViewCardAside","_ref","$open","StyledSplitViewCardHeading","StyledSplitViewCardTitle","sm","StyledSplitViewCardHeader","lg","StyledSplitViewCardBody","StyledSplitViewCardFooter"],"sources":["../../src/SplitViewCard/SplitViewCard.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledSplitViewCardContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr auto;\n border: 1px solid ${colors.gray85};\n box-shadow: 0 0 ${spacing.xs}px 0 rgba(0, 0, 0, 0.25);\n width: 100%;\n`\n\nexport const StyledSplitViewCardMain = styled.div`\n background-color: ${colors.white};\n position: relative;\n width: 100%;\n`\n\nexport const StyledSplitViewCardAside = styled.div<{ $open: boolean }>`\n background-color: ${colors.white};\n border-left: 1px solid ${colors.gray85};\n display: flex;\n flex-direction: column;\n min-width: 400px;\n transition: all ease 500ms;\n ${({ $open }) =>\n !$open &&\n css`\n border: none;\n overflow: hidden !important;\n min-width: 0;\n width: 0 !important;\n `}\n`\n\nexport const StyledSplitViewCardHeading = styled.div`\n overflow: hidden;\n white-space: nowrap;\n width: 100%;\n`\n\nexport const StyledSplitViewCardTitle = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: ${spacing.sm}px;\n`\n\nexport const StyledSplitViewCardHeader = styled.div`\n border-bottom: 1px solid ${colors.gray85};\n display: flex;\n flex-direction: column;\n padding: ${spacing.lg}px ${spacing.lg}px 0;\n`\n\nexport const StyledSplitViewCardBody = styled.div`\n height: 100%;\n margin: ${spacing.lg}px;\n overflow-y: auto;\n`\n\nexport const StyledSplitViewCardFooter = styled.div`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 0 ${spacing.lg}px ${spacing.lg}px;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,4BAA4B,gBAAGJ,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+HAGhCN,MAAM,CAACO,MAAM,EACfN,OAAO,CAACO,EAAE,CAE7B;AAED,OAAO,IAAMC,uBAAuB,gBAAGX,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4DAC3BN,MAAM,CAACU,KAAK,CAGjC;AAED,OAAO,IAAMC,wBAAwB,gBAAGb,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2IAC5BN,MAAM,CAACU,KAAK,EACPV,MAAM,CAACO,MAAM,EAKpC,UAAAK,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OACR,CAACA,KAAK,IACNd,GAAG,4EAKF;AAAA,EACJ;AAED,OAAO,IAAMe,0BAA0B,gBAAGhB,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sDAInD;AAED,OAAO,IAAMS,wBAAwB,gBAAGjB,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,4FAI/BL,OAAO,CAACe,EAAE,CAC5B;AAED,OAAO,IAAMC,yBAAyB,gBAAGnB,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iGACtBN,MAAM,CAACO,MAAM,EAG7BN,OAAO,CAACiB,EAAE,EAAMjB,OAAO,CAACiB,EAAE,CACtC;AAED,OAAO,IAAMC,uBAAuB,gBAAGrB,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mDAErCL,OAAO,CAACiB,EAAE,CAErB;AAED,OAAO,IAAME,yBAAyB,gBAAGtB,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0FAIpCL,OAAO,CAACiB,EAAE,EAAMjB,OAAO,CAACiB,EAAE,CACxC"}
|