@procore/core-react 12.6.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.d.ts +2 -2
- 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.d.ts +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/ThumbnailList/index.d.ts +1 -1
- package/dist/FileSelect/ThumbnailList/index.js.map +1 -1
- 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.d.ts +1 -1
- 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 +10 -3
- 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/NextListPage/NextListPage.d.ts +24 -0
- package/dist/NextListPage/NextListPage.js +44 -0
- package/dist/NextListPage/NextListPage.js.map +1 -0
- package/dist/NextListPage/NextListPage.types.d.ts +3 -0
- package/dist/NextListPage/NextListPage.types.js +2 -0
- package/dist/NextListPage/NextListPage.types.js.map +1 -0
- package/dist/NextListPage/index.d.ts +2 -0
- package/dist/NextListPage/index.js +2 -0
- package/dist/NextListPage/index.js.map +1 -0
- 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.d.ts +2 -2
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.d.ts +1 -1
- 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.d.ts +1 -1
- 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/TextEditor/TextEditor.js +7 -1
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.js +1 -0
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/TieredSelect/index.d.ts +1 -1
- package/dist/TieredSelect/index.js.map +1 -1
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.d.ts +1 -1
- 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.d.ts +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/dist/_utils/TinyMCE.js +1 -1
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
|
@@ -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"],"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B,KAAK,CAACkB,WAAW,GAAG,qBAAqB;AACzCT,MAAM,CAACS,WAAW,GAAG,sBAAsB;AAC3CN,IAAI,CAACM,WAAW,GAAG,oBAAoB;AACvCH,MAAM,CAACG,WAAW,GAAG,sBAAsB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,IAAMC,aAAa,GAAGnD,gBAAgB,CAC3C;EACEoB,IAAI,EAAJA,IAAI;EACJtB,OAAO,EAAPA,OAAO;EACPyB,KAAK,EAALA,KAAK;EACLM,OAAO,EAAPA,OAAO;EACPG,KAAK,EAALA,KAAK;EACLS,MAAM,EAANA,MAAM;EACNG,IAAI,EAAJA,IAAI;EACJG,MAAM,EAANA;AACF,CAAC,EACDrC,cACF,CAAC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Props } from '../_utils/types';
|
|
2
|
+
export interface SplitViewCardContextAPI {
|
|
3
|
+
/**
|
|
4
|
+
* If aside card is opened or not
|
|
5
|
+
* @since 12.4.2
|
|
6
|
+
*/
|
|
7
|
+
open: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Open aside card
|
|
10
|
+
* @since 12.4.2
|
|
11
|
+
*/
|
|
12
|
+
onOpen: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Close aside card
|
|
15
|
+
* @since 12.4.2
|
|
16
|
+
*/
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface SplitViewCardProps extends Props {
|
|
20
|
+
/**
|
|
21
|
+
* Callback for closing aside card
|
|
22
|
+
* @since 12.4.2
|
|
23
|
+
*/
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitViewCard.types.js","names":[],"sources":["../../src/SplitViewCard/SplitViewCard.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport interface SplitViewCardContextAPI {\n /**\n * If aside card is opened or not\n * @since 12.4.2\n */\n open: boolean\n /**\n * Open aside card\n * @since 12.4.2\n */\n onOpen: () => void\n /**\n * Close aside card\n * @since 12.4.2\n */\n onClose: () => void\n}\n\nexport interface SplitViewCardProps extends Props {\n /**\n * Callback for closing aside card\n * @since 12.4.2\n */\n onClose: () => void\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SplitViewCard } from './SplitViewCard';
|
|
2
|
+
export { SplitViewCardContext, SplitViewCardContextProvider, } from './SplitViewCard.context';
|
|
3
|
+
export type { SplitViewCardContextAPI, SplitViewCardProps, } from './SplitViewCard.types';
|
|
4
|
+
export { useSplitViewCard } from './useSplitViewCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["SplitViewCard","SplitViewCardContext","SplitViewCardContextProvider","useSplitViewCard"],"sources":["../../src/SplitViewCard/index.ts"],"sourcesContent":["export { SplitViewCard } from './SplitViewCard'\nexport {\n SplitViewCardContext,\n SplitViewCardContextProvider,\n} from './SplitViewCard.context'\nexport type {\n SplitViewCardContextAPI,\n SplitViewCardProps,\n} from './SplitViewCard.types'\nexport { useSplitViewCard } from './useSplitViewCard'\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,iBAAiB;AAC/C,SACEC,oBAAoB,EACpBC,4BAA4B,QACvB,yBAAyB;AAKhC,SAASC,gBAAgB,QAAQ,oBAAoB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SplitViewCardContext } from './SplitViewCard.context';
|
|
3
|
+
export var useSplitViewCard = function useSplitViewCard() {
|
|
4
|
+
var _React$useContext = React.useContext(SplitViewCardContext),
|
|
5
|
+
open = _React$useContext.open,
|
|
6
|
+
onOpen = _React$useContext.onOpen,
|
|
7
|
+
onClose = _React$useContext.onClose;
|
|
8
|
+
return {
|
|
9
|
+
open: open,
|
|
10
|
+
onOpen: onOpen,
|
|
11
|
+
onClose: onClose
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useSplitViewCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSplitViewCard.js","names":["React","SplitViewCardContext","useSplitViewCard","_React$useContext","useContext","open","onOpen","onClose"],"sources":["../../src/SplitViewCard/useSplitViewCard.tsx"],"sourcesContent":["import React from 'react'\nimport { SplitViewCardContext } from './SplitViewCard.context'\n\nexport const useSplitViewCard = () => {\n const { open, onOpen, onClose } = React.useContext(SplitViewCardContext)\n\n return { open, onOpen, onClose }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,OAAO,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAS;EACpC,IAAAC,iBAAA,GAAkCH,KAAK,CAACI,UAAU,CAACH,oBAAoB,CAAC;IAAhEI,IAAI,GAAAF,iBAAA,CAAJE,IAAI;IAAEC,MAAM,GAAAH,iBAAA,CAANG,MAAM;IAAEC,OAAO,GAAAJ,iBAAA,CAAPI,OAAO;EAE7B,OAAO;IAAEF,IAAI,EAAJA,IAAI;IAAEC,MAAM,EAANA,MAAM;IAAEC,OAAO,EAAPA;EAAQ,CAAC;AAClC,CAAC"}
|
|
@@ -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_8_0__sc-y5qv7b-0"
|
|
7
7
|
})(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
|
|
8
8
|
//# sourceMappingURL=SuperSelect.presets.styles.js.map
|