@procore/core-react 11.32.0 → 11.33.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.d.ts +4 -0
- package/dist/Box/Box.js +5 -0
- package/dist/Box/Box.js.map +1 -1
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +38 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +40 -2
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +14 -2
- package/dist/Breadcrumbs/Breadcrumbs.types.js +5 -0
- package/dist/Breadcrumbs/Breadcrumbs.types.js.map +1 -1
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.d.ts +81 -36
- package/dist/Calendar/Calendar.js +81 -45
- package/dist/Calendar/Calendar.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Calendar/Calendar.types.d.ts +11 -1
- package/dist/Calendar/Calendar.types.js.map +1 -1
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- 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.d.ts +1 -2
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +2 -1
- package/dist/Dropdown/Dropdown.types.js.map +1 -1
- package/dist/Dropdown/index.d.ts +1 -1
- package/dist/Dropdown/index.js.map +1 -1
- 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/Flex/Flex.d.ts +5 -0
- package/dist/Flex/Flex.js +5 -0
- package/dist/Flex/Flex.js.map +1 -1
- package/dist/FlexList/FlexList.d.ts +5 -0
- package/dist/FlexList/FlexList.js +6 -0
- package/dist/FlexList/FlexList.js.map +1 -1
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.d.ts +5 -0
- package/dist/Form/Form.js +5 -0
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +16 -16
- package/dist/Form/Form.types.d.ts +31 -9
- package/dist/Form/Form.types.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/Input/Input.types.d.ts +1 -0
- package/dist/Input/Input.types.js.map +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/ListPage/ListPage.types.d.ts +1 -0
- package/dist/ListPage/ListPage.types.js.map +1 -1
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.d.ts +1 -0
- package/dist/Notation/Notation.js +2 -1
- package/dist/Notation/Notation.js.map +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -17
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- 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/SegmentedController/SegmentedController.types.d.ts +2 -0
- package/dist/SegmentedController/SegmentedController.types.js +1 -0
- package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/Spinner/Spinner.types.d.ts +1 -0
- package/dist/Spinner/Spinner.types.js.map +1 -1
- 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.styles.js +8 -8
- package/dist/Tabs/Tabs.types.d.ts +3 -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/Typography/Typography.types.d.ts +10 -23
- package/dist/Typography/Typography.types.js.map +1 -1
- 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 +16 -14
- package/dist/_typedoc/Button/Button.types.json +12 -12
- package/dist/_typedoc/Calendar/Calendar.types.json +84 -82
- 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 +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +34 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +51 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.json +19 -0
- 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 +768 -755
- 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 +4 -3
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +15 -14
- 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 +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.json +9 -0
- package/dist/_typedoc/Notation/Notation.types.json +9 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
- 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 +20 -19
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +29 -21
- package/dist/_typedoc/Select/Select.types.json +57 -57
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +11 -10
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +101 -100
- package/dist/_typedoc/Tabs/Tabs.types.json +23 -20
- 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 +14 -14
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/propsTypedoc.d.ts +2 -0
- package/dist/_utils/propsTypedoc.js +2 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export var contentHeight = modalBodyWidth - modalBodyBorderTopWidth - toolbarHei
|
|
|
13
13
|
// TODO Update box-shadow to use getShadow instead
|
|
14
14
|
export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
|
|
15
15
|
displayName: "StyledToolbar",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-11_33_0__sc-1sj6hvp-0"
|
|
17
17
|
})(["display:flex;align-items:center;flex-direction:row;width:100%;min-height:", "px;padding:16px 24px;", " ", " & > * + *{margin-left:", "px;}"], toolbarHeight, function (_ref) {
|
|
18
18
|
var alignRight = _ref.alignRight;
|
|
19
19
|
return css(["justify-content:", ";"], alignRight ? 'flex-end' : 'space-between');
|
|
@@ -23,23 +23,23 @@ export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
|
|
|
23
23
|
}, spacing.sm);
|
|
24
24
|
export var StyledSearchWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "StyledSearchWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-11_33_0__sc-1sj6hvp-1"
|
|
27
27
|
})(["width:286px;flex-shrink:1;min-width:180px;"]);
|
|
28
28
|
export var StyledEmptyStateWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29
29
|
displayName: "StyledEmptyStateWrapper",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-11_33_0__sc-1sj6hvp-2"
|
|
31
31
|
})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]);
|
|
32
32
|
export var StyledEmptyState = /*#__PURE__*/styled(EmptyState).withConfig({
|
|
33
33
|
displayName: "StyledEmptyState",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-11_33_0__sc-1sj6hvp-3"
|
|
35
35
|
})(["margin-top:0;margin-bottom:0;img{width:160px;}"]);
|
|
36
36
|
export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledSpinnerWrapper",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-11_33_0__sc-1sj6hvp-4"
|
|
39
39
|
})(["height:", "px;width:100%;display:flex;align-items:center;justify-content:center;"], contentHeight);
|
|
40
40
|
export var StyledGrid = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledGrid",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-11_33_0__sc-1sj6hvp-5"
|
|
43
43
|
})(["display:flex;flex-direction:column;", ""], function (_ref3) {
|
|
44
44
|
var isEmpty = _ref3.isEmpty;
|
|
45
45
|
return isEmpty && 'height: 100%;';
|
|
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
|
|
|
15
15
|
var sourceWidth = 568;
|
|
16
16
|
export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledLocalSource",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_33_0__sc-psqe8z-0"
|
|
19
19
|
})(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
|
|
20
20
|
export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
|
|
21
21
|
displayName: "StyledDropzoneErrorBanner",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_33_0__sc-psqe8z-1"
|
|
23
23
|
})(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
|
|
24
24
|
export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
|
|
25
25
|
displayName: "StyledDropzoneWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-11_33_0__sc-psqe8z-2"
|
|
27
27
|
})(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
|
|
28
28
|
var isIconVisible = _ref.isIconVisible;
|
|
29
29
|
return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
|
|
30
30
|
}, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
|
|
31
31
|
export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
|
|
32
32
|
displayName: "StyledThumbnailList",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-11_33_0__sc-psqe8z-3"
|
|
34
34
|
})(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
|
|
35
35
|
//# sourceMappingURL=LocalSource.styles.js.map
|
|
@@ -8,7 +8,7 @@ var sourceItemPadding = spacing.xl;
|
|
|
8
8
|
var focused = /*#__PURE__*/css(["", " padding:0 ", "px 0 ", "px;"], getFocus(), sourceItemPadding - 1, sourceItemPadding - 1);
|
|
9
9
|
export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledSourceItem",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-11_33_0__sc-plcozv-0"
|
|
12
12
|
})(["position:relative;display:flex;align-items:center;padding:0 ", "px 0 ", "px;color:", ";", " cursor:pointer;height:", "px;&:before{content:'';position:absolute;top:0;left:0;display:block;width:4px;height:100%;background-color:", ";transform:scaleX(0);transform-origin:center left;transition:transform 200ms ease-out;z-index:1;}", " ", " ", " ", " ", " &:focus{", "}"], sourceItemPadding, sourceItemPadding, colors.gray45, getTypographyIntent('body'), sourceItemHeight, colors.blue45, function (_ref) {
|
|
13
13
|
var selected = _ref.selected;
|
|
14
14
|
return selected && "\n font-weight: 700;\n background-color: ".concat(colors.blue96, ";\n color: ").concat(colors.blue45, ";\n\n ").concat(StyledIcon, " {\n color: ").concat(colors.blue50, ";\n }\n\n &:before {\n transform: scaleX(1);\n }\n ");
|
|
@@ -28,10 +28,10 @@ export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
28
28
|
}, focused);
|
|
29
29
|
export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledIcon",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-11_33_0__sc-plcozv-1"
|
|
32
32
|
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;"]);
|
|
33
33
|
export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledLabel",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-11_33_0__sc-plcozv-2"
|
|
36
36
|
})(["", ""], getEllipsis());
|
|
37
37
|
//# sourceMappingURL=SourceItem.styles.js.map
|
|
@@ -7,23 +7,23 @@ import { colors } from '../../_styles/colors';
|
|
|
7
7
|
import { spacing } from '../../_styles/spacing';
|
|
8
8
|
export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledThumbnailListContainer",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_33_0__sc-1fz4ynb-0"
|
|
11
11
|
})(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
|
|
12
12
|
export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
|
|
13
13
|
displayName: "StyledThumbnailList",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_33_0__sc-1fz4ynb-1"
|
|
15
15
|
})(["outline:none;"]);
|
|
16
16
|
export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
|
|
17
17
|
displayName: "StyledThumbnail",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_33_0__sc-1fz4ynb-2"
|
|
19
19
|
})(["flex-grow:1;justify-content:flex-start;"]);
|
|
20
20
|
export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "StyledProgress",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_33_0__sc-1fz4ynb-3"
|
|
23
23
|
})(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
|
|
24
24
|
export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "StyledThumbnailListItem",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-11_33_0__sc-1fz4ynb-4"
|
|
27
27
|
})(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), function (_ref) {
|
|
28
28
|
var error = _ref.error;
|
|
29
29
|
return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
|
|
@@ -37,6 +37,6 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
37
37
|
});
|
|
38
38
|
export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
|
|
39
39
|
displayName: "StyledDeleteIcon",
|
|
40
|
-
componentId: "core-
|
|
40
|
+
componentId: "core-11_33_0__sc-1fz4ynb-5"
|
|
41
41
|
})([""]);
|
|
42
42
|
//# sourceMappingURL=ThumbnailList.styles.js.map
|
|
@@ -2,6 +2,6 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { modalBodyHeight } from '../FileExplorer/FileExplorer.styles';
|
|
3
3
|
export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
displayName: "StyledFileTreeSpinner",
|
|
5
|
-
componentId: "core-
|
|
5
|
+
componentId: "core-11_33_0__sc-wwu3n8-0"
|
|
6
6
|
})(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
|
|
7
7
|
//# sourceMappingURL=TreeSource.styles.js.map
|
|
@@ -6,19 +6,19 @@ export var pulseAnimationDuration = 600;
|
|
|
6
6
|
var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
|
|
7
7
|
export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledFilenameShortcut",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-11_33_0__sc-13jx4bx-0"
|
|
10
10
|
})(["display:flex;"]);
|
|
11
11
|
export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
|
|
12
12
|
displayName: "StyledFilename",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-11_33_0__sc-13jx4bx-1"
|
|
14
14
|
})(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
|
|
15
15
|
export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
|
|
16
16
|
displayName: "StyledExtension",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-11_33_0__sc-13jx4bx-2"
|
|
18
18
|
})(["flex-shrink:0;"]);
|
|
19
19
|
export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledFileToken",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_33_0__sc-13jx4bx-3"
|
|
22
22
|
})(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
|
|
23
23
|
var $progressComplete = _ref.$progressComplete;
|
|
24
24
|
return $progressComplete && css(["background-color:", ";"], colors.blue45);
|
|
@@ -5,11 +5,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
7
7
|
displayName: "StyledLabel",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_33_0__sc-1l1h29r-0"
|
|
9
9
|
})(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
|
|
10
10
|
export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledFilterToken",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_33_0__sc-1l1h29r-1"
|
|
13
13
|
})(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
|
|
14
14
|
var _ref$$focused = _ref.$focused,
|
|
15
15
|
$focused = _ref$$focused === void 0 ? false : _ref$$focused;
|
package/dist/Flex/Flex.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DivAttributes } from '../_utils/types';
|
|
3
3
|
import type { FlexProps } from './Flex.types';
|
|
4
|
+
/**
|
|
5
|
+
* `Flex` is a wrapper around `Box` defaulting to display flex CSS
|
|
6
|
+
* and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).
|
|
7
|
+
* `Box` can mimic anything `Flex` can.
|
|
8
|
+
*/
|
|
4
9
|
export declare const Flex: React.ForwardRefExoticComponent<DivAttributes & FlexProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/Flex/Flex.js
CHANGED
|
@@ -4,6 +4,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
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; }
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { Box } from '../Box/Box';
|
|
7
|
+
/**
|
|
8
|
+
* `Flex` is a wrapper around `Box` defaulting to display flex CSS
|
|
9
|
+
* and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).
|
|
10
|
+
* `Box` can mimic anything `Flex` can.
|
|
11
|
+
*/
|
|
7
12
|
export var Flex = /*#__PURE__*/React.forwardRef(function Flex(_ref, ref) {
|
|
8
13
|
var _ref$alignItems = _ref.alignItems,
|
|
9
14
|
alignItems = _ref$alignItems === void 0 ? 'flex-start' : _ref$alignItems,
|
package/dist/Flex/Flex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.js","names":["React","Box","Flex","forwardRef","_ref","ref","_ref$alignItems","alignItems","basis","_ref$direction","direction","gap","grow","flex","_ref$inline","inline","_ref$justifyContent","justifyContent","shrink","wrap","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","displayName"],"sources":["../../src/Flex/Flex.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Box } from '../Box/Box'\nimport type { DivAttributes } from '../_utils/types'\nimport type { FlexProps } from './Flex.types'\n\nexport const Flex = React.forwardRef<HTMLDivElement, DivAttributes & FlexProps>(\n function Flex(\n {\n alignItems = 'flex-start',\n basis,\n direction = 'row',\n gap,\n grow,\n flex,\n inline = false,\n justifyContent = 'flex-start',\n shrink,\n wrap,\n ...props\n },\n ref\n ) {\n return (\n <Box\n {...props}\n ref={ref}\n display={inline ? 'inline-flex' : 'flex'}\n alignItems={alignItems}\n justifyContent={justifyContent}\n flexBasis={basis}\n flexDirection={direction}\n flexGrow={grow}\n flexShrink={shrink}\n flexWrap={wrap}\n flex={flex}\n gap={gap}\n />\n )\n }\n)\n\nFlex.displayName = 'Flex'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,YAAY;AAIhC,OAAO,IAAMC,IAAI,gBAAGF,KAAK,CAACG,UAAU,CAClC,SAASD,IAAIA,CAAAE,IAAA,EAcXC,GAAG,EACH;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAbEG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,YAAY,GAAAA,eAAA;IACzBE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,cAAA,GAAAL,IAAA,CACLM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IACjBE,GAAG,GAAAP,IAAA,CAAHO,GAAG;IACHC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;IACJC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IAAAC,WAAA,GAAAV,IAAA,CACJW,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;IAAAE,mBAAA,GAAAZ,IAAA,CACda,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAG,YAAY,GAAAA,mBAAA;IAC7BE,MAAM,GAAAd,IAAA,CAANc,MAAM;IACNC,IAAI,GAAAf,IAAA,CAAJe,IAAI;IACDC,KAAK,GAAAC,wBAAA,CAAAjB,IAAA,EAAAkB,SAAA;EAIV,oBACEtB,KAAA,CAAAuB,aAAA,CAACtB,GAAG,EAAAuB,QAAA,KACEJ,KAAK;IACTf,GAAG,EAAEA,GAAI;IACToB,OAAO,EAAEV,MAAM,GAAG,aAAa,GAAG,MAAO;IACzCR,UAAU,EAAEA,UAAW;IACvBU,cAAc,EAAEA,cAAe;IAC/BS,SAAS,EAAElB,KAAM;IACjBmB,aAAa,EAAEjB,SAAU;IACzBkB,QAAQ,EAAEhB,IAAK;IACfiB,UAAU,EAAEX,MAAO;IACnBY,QAAQ,EAAEX,IAAK;IACfN,IAAI,EAAEA,IAAK;IACXF,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDT,IAAI,CAAC6B,WAAW,GAAG,MAAM"}
|
|
1
|
+
{"version":3,"file":"Flex.js","names":["React","Box","Flex","forwardRef","_ref","ref","_ref$alignItems","alignItems","basis","_ref$direction","direction","gap","grow","flex","_ref$inline","inline","_ref$justifyContent","justifyContent","shrink","wrap","props","_objectWithoutProperties","_excluded","createElement","_extends","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","displayName"],"sources":["../../src/Flex/Flex.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Box } from '../Box/Box'\nimport type { DivAttributes } from '../_utils/types'\nimport type { FlexProps } from './Flex.types'\n\n/**\n * `Flex` is a wrapper around `Box` defaulting to display flex CSS\n * and providing shorter prop names (e.g. `shrink` instead of `flexShrink`).\n * `Box` can mimic anything `Flex` can.\n */\nexport const Flex = React.forwardRef<HTMLDivElement, DivAttributes & FlexProps>(\n function Flex(\n {\n alignItems = 'flex-start',\n basis,\n direction = 'row',\n gap,\n grow,\n flex,\n inline = false,\n justifyContent = 'flex-start',\n shrink,\n wrap,\n ...props\n },\n ref\n ) {\n return (\n <Box\n {...props}\n ref={ref}\n display={inline ? 'inline-flex' : 'flex'}\n alignItems={alignItems}\n justifyContent={justifyContent}\n flexBasis={basis}\n flexDirection={direction}\n flexGrow={grow}\n flexShrink={shrink}\n flexWrap={wrap}\n flex={flex}\n gap={gap}\n />\n )\n }\n)\n\nFlex.displayName = 'Flex'\n"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,YAAY;AAIhC;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,IAAI,gBAAGF,KAAK,CAACG,UAAU,CAClC,SAASD,IAAIA,CAAAE,IAAA,EAcXC,GAAG,EACH;EAAA,IAAAC,eAAA,GAAAF,IAAA,CAbEG,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,YAAY,GAAAA,eAAA;IACzBE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,cAAA,GAAAL,IAAA,CACLM,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IACjBE,GAAG,GAAAP,IAAA,CAAHO,GAAG;IACHC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;IACJC,IAAI,GAAAT,IAAA,CAAJS,IAAI;IAAAC,WAAA,GAAAV,IAAA,CACJW,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,KAAK,GAAAA,WAAA;IAAAE,mBAAA,GAAAZ,IAAA,CACda,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAG,YAAY,GAAAA,mBAAA;IAC7BE,MAAM,GAAAd,IAAA,CAANc,MAAM;IACNC,IAAI,GAAAf,IAAA,CAAJe,IAAI;IACDC,KAAK,GAAAC,wBAAA,CAAAjB,IAAA,EAAAkB,SAAA;EAIV,oBACEtB,KAAA,CAAAuB,aAAA,CAACtB,GAAG,EAAAuB,QAAA,KACEJ,KAAK;IACTf,GAAG,EAAEA,GAAI;IACToB,OAAO,EAAEV,MAAM,GAAG,aAAa,GAAG,MAAO;IACzCR,UAAU,EAAEA,UAAW;IACvBU,cAAc,EAAEA,cAAe;IAC/BS,SAAS,EAAElB,KAAM;IACjBmB,aAAa,EAAEjB,SAAU;IACzBkB,QAAQ,EAAEhB,IAAK;IACfiB,UAAU,EAAEX,MAAO;IACnBY,QAAQ,EAAEX,IAAK;IACfN,IAAI,EAAEA,IAAK;IACXF,GAAG,EAAEA;EAAI,EACV,CAAC;AAEN,CACF,CAAC;AAEDT,IAAI,CAAC6B,WAAW,GAAG,MAAM"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DivAttributes } from '../_utils/types';
|
|
3
3
|
import type { FlexListProps } from './FlexList.types';
|
|
4
|
+
/**
|
|
5
|
+
* `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**
|
|
6
|
+
* having a margin (leading and trailing space removed). This isolates the
|
|
7
|
+
* children React components from the `display: flex` on direct children in CSS.
|
|
8
|
+
*/
|
|
4
9
|
export declare const FlexList: React.ForwardRefExoticComponent<DivAttributes & FlexListProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -31,6 +31,12 @@ function getMargin(direction, space) {
|
|
|
31
31
|
}
|
|
32
32
|
return {};
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**
|
|
37
|
+
* having a margin (leading and trailing space removed). This isolates the
|
|
38
|
+
* children React components from the `display: flex` on direct children in CSS.
|
|
39
|
+
*/
|
|
34
40
|
export var FlexList = /*#__PURE__*/React.forwardRef(function FlexList(_ref, ref) {
|
|
35
41
|
var boxProps = _ref.boxProps,
|
|
36
42
|
children = _ref.children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlexList.js","names":["React","Box","StyledFlex","getSingleSize","size","arguments","length","undefined","split","getItemMargin","direction","includes","concat","getMargin","space","margin","marginRight","marginBottom","FlexList","forwardRef","_ref","ref","boxProps","children","_ref$direction","_ref$size","props","_objectWithoutProperties","_excluded","singleSize","useMemo","createElement","_extends","$direction","Children","toArray","filter","child","map","i","key","displayName"],"sources":["../../src/FlexList/FlexList.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport type { FlexDirection, MarginSize } from '../Box/Box.types'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledFlex } from './FlexList.styles'\nimport type { FlexListProps } from './FlexList.types'\n\nfunction getSingleSize(size: string = ''): MarginSize {\n return size.split(' ')[0] as MarginSize\n}\n\nfunction getItemMargin(direction: FlexDirection, size: MarginSize): string {\n return direction.includes('row') ? `0 ${size}` : `${size} 0`\n}\n\nfunction getMargin(\n direction: FlexDirection,\n space?: MarginSize,\n size: MarginSize = 'md'\n) {\n if (space === undefined) {\n return { margin: getItemMargin(direction, size) }\n }\n\n if (space && direction.includes('row')) {\n return { marginRight: space }\n }\n\n if (space && direction.includes('column')) {\n return { marginBottom: space }\n }\n\n return {}\n}\n\nexport const FlexList = React.forwardRef<\n HTMLDivElement,\n DivAttributes & FlexListProps\n>(function FlexList(\n { boxProps, children, direction = 'row', size = 'md', space, ...props },\n ref\n) {\n const singleSize = React.useMemo(() => getSingleSize(size), [size])\n\n const margin = React.useMemo(\n () => getMargin(direction, space, singleSize),\n [direction, space, singleSize]\n )\n\n return (\n <StyledFlex\n {...props}\n ref={ref}\n direction={direction}\n $direction={direction}\n >\n {React.Children.toArray(children)\n .filter((child) => child)\n .map(\n (child: any, i) =>\n child && (\n <Box {...boxProps} {...margin} key={child.key || i}>\n {child}\n </Box>\n )\n )}\n </StyledFlex>\n )\n})\n\nFlexList.displayName = 'FlexList'\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAGhC,SAASC,UAAU,QAAQ,mBAAmB;AAG9C,SAASC,aAAaA,CAAA,EAAgC;EAAA,IAA/BC,IAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACtC,OAAOD,IAAI,CAACI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3B;AAEA,SAASC,aAAaA,CAACC,SAAwB,EAAEN,IAAgB,EAAU;EACzE,OAAOM,SAAS,CAACC,QAAQ,CAAC,KAAK,CAAC,QAAAC,MAAA,CAAQR,IAAI,OAAAQ,MAAA,CAAQR,IAAI,OAAI;AAC9D;AAEA,SAASS,SAASA,CAChBH,SAAwB,EACxBI,KAAkB,EAElB;EAAA,IADAV,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAEvB,IAAIS,KAAK,KAAKP,SAAS,EAAE;IACvB,OAAO;MAAEQ,MAAM,EAAEN,aAAa,CAACC,SAAS,EAAEN,IAAI;IAAE,CAAC;EACnD;EAEA,IAAIU,KAAK,IAAIJ,SAAS,CAACC,QAAQ,CAAC,KAAK,CAAC,EAAE;IACtC,OAAO;MAAEK,WAAW,EAAEF;IAAM,CAAC;EAC/B;EAEA,IAAIA,KAAK,IAAIJ,SAAS,CAACC,QAAQ,CAAC,QAAQ,CAAC,EAAE;IACzC,OAAO;MAAEM,YAAY,EAAEH;IAAM,CAAC;EAChC;EAEA,OAAO,CAAC,CAAC;AACX;
|
|
1
|
+
{"version":3,"file":"FlexList.js","names":["React","Box","StyledFlex","getSingleSize","size","arguments","length","undefined","split","getItemMargin","direction","includes","concat","getMargin","space","margin","marginRight","marginBottom","FlexList","forwardRef","_ref","ref","boxProps","children","_ref$direction","_ref$size","props","_objectWithoutProperties","_excluded","singleSize","useMemo","createElement","_extends","$direction","Children","toArray","filter","child","map","i","key","displayName"],"sources":["../../src/FlexList/FlexList.tsx"],"sourcesContent":["import React from 'react'\nimport { Box } from '../Box/Box'\nimport type { FlexDirection, MarginSize } from '../Box/Box.types'\nimport type { DivAttributes } from '../_utils/types'\nimport { StyledFlex } from './FlexList.styles'\nimport type { FlexListProps } from './FlexList.types'\n\nfunction getSingleSize(size: string = ''): MarginSize {\n return size.split(' ')[0] as MarginSize\n}\n\nfunction getItemMargin(direction: FlexDirection, size: MarginSize): string {\n return direction.includes('row') ? `0 ${size}` : `${size} 0`\n}\n\nfunction getMargin(\n direction: FlexDirection,\n space?: MarginSize,\n size: MarginSize = 'md'\n) {\n if (space === undefined) {\n return { margin: getItemMargin(direction, size) }\n }\n\n if (space && direction.includes('row')) {\n return { marginRight: space }\n }\n\n if (space && direction.includes('column')) {\n return { marginBottom: space }\n }\n\n return {}\n}\n\n/**\n * `FlexList` combines `Flex` and `Box`, **each child element is wrapped in a `Box`**\n * having a margin (leading and trailing space removed). This isolates the\n * children React components from the `display: flex` on direct children in CSS.\n */\nexport const FlexList = React.forwardRef<\n HTMLDivElement,\n DivAttributes & FlexListProps\n>(function FlexList(\n { boxProps, children, direction = 'row', size = 'md', space, ...props },\n ref\n) {\n const singleSize = React.useMemo(() => getSingleSize(size), [size])\n\n const margin = React.useMemo(\n () => getMargin(direction, space, singleSize),\n [direction, space, singleSize]\n )\n\n return (\n <StyledFlex\n {...props}\n ref={ref}\n direction={direction}\n $direction={direction}\n >\n {React.Children.toArray(children)\n .filter((child) => child)\n .map(\n (child: any, i) =>\n child && (\n <Box {...boxProps} {...margin} key={child.key || i}>\n {child}\n </Box>\n )\n )}\n </StyledFlex>\n )\n})\n\nFlexList.displayName = 'FlexList'\n"],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
|
|
|
3
3
|
import { Flex } from '../Flex/Flex';
|
|
4
4
|
export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
|
|
5
5
|
displayName: "StyledFlex",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_33_0__sc-1quvv61-0"
|
|
7
7
|
})(["> ", "{", "}"], StyledBox, function (_ref) {
|
|
8
8
|
var $direction = _ref.$direction;
|
|
9
9
|
if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {
|
package/dist/Form/Form.d.ts
CHANGED
|
@@ -95,6 +95,11 @@ export declare const Form: typeof Form_ & {
|
|
|
95
95
|
[key: string]: unknown;
|
|
96
96
|
}, FormFieldValueComponentProps<any> & InputProps>) => React.JSX.Element | null;
|
|
97
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* `Form.Form` is a small wrapper around an HTML `<form>` element that automatically hooks into Formik's `handleSubmit` and `handleReset`.
|
|
100
|
+
* When the `view` is `read`, it renders a `div` tag instead.
|
|
101
|
+
* @see https://formik.org/docs/api/form
|
|
102
|
+
*/
|
|
98
103
|
Form: typeof FormForm;
|
|
99
104
|
GroupSelect: (({ children, ...props }: FormGroupSelectProps<FieldGroupSelectValueType>) => React.JSX.Element) & {
|
|
100
105
|
Create: (props: ViewFieldProps<FieldGroupSelectValueType, FormGroupSelectProps<FieldGroupSelectValueType>, FieldGroupSelectComponentProps<FieldGroupSelectValueType>>) => React.JSX.Element | null;
|
package/dist/Form/Form.js
CHANGED
|
@@ -1522,6 +1522,11 @@ export var Form = addSubcomponents({
|
|
|
1522
1522
|
DateSelect: FieldDateSelect,
|
|
1523
1523
|
ErrorBanner: FormErrorBanner,
|
|
1524
1524
|
Field: FieldAny,
|
|
1525
|
+
/**
|
|
1526
|
+
* `Form.Form` is a small wrapper around an HTML `<form>` element that automatically hooks into Formik's `handleSubmit` and `handleReset`.
|
|
1527
|
+
* When the `view` is `read`, it renders a `div` tag instead.
|
|
1528
|
+
* @see https://formik.org/docs/api/form
|
|
1529
|
+
*/
|
|
1525
1530
|
Form: FormForm,
|
|
1526
1531
|
GroupSelect: FieldGroupSelect,
|
|
1527
1532
|
MultiSelect: FieldMultiSelect,
|