@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
package/dist/Form/Form.styles.js
CHANGED
|
@@ -26,7 +26,7 @@ function applyStylesOnlyToIE11(styles) {
|
|
|
26
26
|
}
|
|
27
27
|
export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledFormFieldMain",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-11_33_0__sc-ncj3pf-0"
|
|
30
30
|
})(["-ms-grid-row:2;grid-row:2;", " ", " ", ""], function (_ref) {
|
|
31
31
|
var $colStart = _ref.$colStart,
|
|
32
32
|
$colEnd = _ref.$colEnd,
|
|
@@ -38,15 +38,15 @@ export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
|
|
|
38
38
|
}, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n ")));
|
|
39
39
|
export var StyledLabel = /*#__PURE__*/styled(Label).withConfig({
|
|
40
40
|
displayName: "StyledLabel",
|
|
41
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-11_33_0__sc-ncj3pf-1"
|
|
42
42
|
})(["word-wrap:break-word;word-break:break-word;"]);
|
|
43
43
|
export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
|
|
44
44
|
displayName: "StyledDescription",
|
|
45
|
-
componentId: "core-
|
|
45
|
+
componentId: "core-11_33_0__sc-ncj3pf-2"
|
|
46
46
|
})(["", " color:", ";word-wrap:break-word;word-break:break-word;"], getTypographyIntent('body'), colors.gray45);
|
|
47
47
|
export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescription).withConfig({
|
|
48
48
|
displayName: "StyledCheckboxInlineDescription",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-11_33_0__sc-ncj3pf-3"
|
|
50
50
|
})(["margin-top:", "px;", ""], spacing.xs, function (_ref3) {
|
|
51
51
|
var $read = _ref3.$read;
|
|
52
52
|
if (!$read) {
|
|
@@ -55,7 +55,7 @@ export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescripti
|
|
|
55
55
|
});
|
|
56
56
|
export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withConfig({
|
|
57
57
|
displayName: "StyledFormFieldHeader",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-11_33_0__sc-ncj3pf-4"
|
|
59
59
|
})(["-ms-grid-row:1;grid-row:1;align-self:end;margin-bottom:", "px;", " ", " * + ", "{margin-top:", "px;}"], spacing.xs, function (_ref4) {
|
|
60
60
|
var $colStart = _ref4.$colStart,
|
|
61
61
|
$colEnd = _ref4.$colEnd,
|
|
@@ -64,7 +64,7 @@ export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withCo
|
|
|
64
64
|
}, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:first-child {\n padding-left: 0;\n }\n\n ").concat(StyledFormFieldMain, " {\n padding-left: ").concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n }\n ")), StyledDescription, spacing.xs);
|
|
65
65
|
export var StyledFormFieldRequiredMark = /*#__PURE__*/styled(Required).withConfig({
|
|
66
66
|
displayName: "StyledFormFieldRequiredMark",
|
|
67
|
-
componentId: "core-
|
|
67
|
+
componentId: "core-11_33_0__sc-ncj3pf-5"
|
|
68
68
|
})(["padding-left:", "px;vertical-align:top;"], spacing.xs);
|
|
69
69
|
export var dataQaFieldTooltipIcon = 'form-field-tooltip-icon';
|
|
70
70
|
export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function () {
|
|
@@ -73,19 +73,19 @@ export var StyledFormFieldTooltipIcon = /*#__PURE__*/styled(Help).attrs(function
|
|
|
73
73
|
};
|
|
74
74
|
}).withConfig({
|
|
75
75
|
displayName: "StyledFormFieldTooltipIcon",
|
|
76
|
-
componentId: "core-
|
|
76
|
+
componentId: "core-11_33_0__sc-ncj3pf-6"
|
|
77
77
|
})(["margin-left:", "px;color:", ";vertical-align:middle;&:focus-visible{border-radius:50%;", " outline-offset:0;}"], spacing.sm, colors.gray45, getGapOutlineFocus);
|
|
78
78
|
export var StyledFormFieldErrorIcon = /*#__PURE__*/styled(Error).withConfig({
|
|
79
79
|
displayName: "StyledFormFieldErrorIcon",
|
|
80
|
-
componentId: "core-
|
|
80
|
+
componentId: "core-11_33_0__sc-ncj3pf-7"
|
|
81
81
|
})(["vertical-align:sub;"]);
|
|
82
82
|
export var StyledFormFieldBanner = /*#__PURE__*/styled.div.withConfig({
|
|
83
83
|
displayName: "StyledFormFieldBanner",
|
|
84
|
-
componentId: "core-
|
|
84
|
+
componentId: "core-11_33_0__sc-ncj3pf-8"
|
|
85
85
|
})(["display:flex;align-items:flex-start;min-height:22px;margin-top:", "px;margin-bottom:2px;word-break:break-word;word-wrap:break-word;color:", ";", ""], spacing.xs, colors.red50, getTypographyIntent('body'));
|
|
86
86
|
export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
|
|
87
87
|
displayName: "StyledTraditionalFormColumn",
|
|
88
|
-
componentId: "core-
|
|
88
|
+
componentId: "core-11_33_0__sc-ncj3pf-9"
|
|
89
89
|
})(["padding:", ";align-self:center;height:100%;&:nth-child(1){-ms-grid-column:1;}&:nth-child(2){-ms-grid-column:2;}&:nth-child(3){-ms-grid-column:3;}&:nth-child(4){-ms-grid-column:4;}", " ", ""], traditionalPadding, function (_ref5) {
|
|
90
90
|
var _ref5$$fullWidth = _ref5.$fullWidth,
|
|
91
91
|
$fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
|
|
@@ -97,22 +97,22 @@ export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
|
|
|
97
97
|
});
|
|
98
98
|
export var StyledTraditionalFormLabel = /*#__PURE__*/styled(Typography).withConfig({
|
|
99
99
|
displayName: "StyledTraditionalFormLabel",
|
|
100
|
-
componentId: "core-
|
|
100
|
+
componentId: "core-11_33_0__sc-ncj3pf-10"
|
|
101
101
|
})(["display:inline-block;word-break:break-word;word-wrap:break-word;", ""], function (_ref7) {
|
|
102
102
|
var $view = _ref7.$view;
|
|
103
103
|
return ['create', 'update'].includes($view) && css(["padding-top:", "px;"], spacing.sm);
|
|
104
104
|
});
|
|
105
105
|
export var StyledFormOutputTextArea = /*#__PURE__*/styled.span.withConfig({
|
|
106
106
|
displayName: "StyledFormOutputTextArea",
|
|
107
|
-
componentId: "core-
|
|
107
|
+
componentId: "core-11_33_0__sc-ncj3pf-11"
|
|
108
108
|
})(["white-space:pre-wrap;"]);
|
|
109
109
|
export var StyledFormOutputFiledset = /*#__PURE__*/styled.fieldset.withConfig({
|
|
110
110
|
displayName: "StyledFormOutputFiledset",
|
|
111
|
-
componentId: "core-
|
|
111
|
+
componentId: "core-11_33_0__sc-ncj3pf-12"
|
|
112
112
|
})(["border:none;padding:0;margin-top:", "px;"], spacing.xs);
|
|
113
113
|
export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
|
|
114
114
|
displayName: "StyledFormRow",
|
|
115
|
-
componentId: "core-
|
|
115
|
+
componentId: "core-11_33_0__sc-ncj3pf-13"
|
|
116
116
|
})(["", ""], function (_ref8) {
|
|
117
117
|
var _ref8$$traditional = _ref8.$traditional,
|
|
118
118
|
$traditional = _ref8$$traditional === void 0 ? false : _ref8$$traditional,
|
|
@@ -123,10 +123,10 @@ export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
123
123
|
var formWrapper = /*#__PURE__*/css(["display:inherit;flex-direction:inherit;height:inherit;max-height:inherit;"]);
|
|
124
124
|
export var StyledFormikForm = /*#__PURE__*/styled(FormikForm).withConfig({
|
|
125
125
|
displayName: "StyledFormikForm",
|
|
126
|
-
componentId: "core-
|
|
126
|
+
componentId: "core-11_33_0__sc-ncj3pf-14"
|
|
127
127
|
})(["", ""], formWrapper);
|
|
128
128
|
export var StyledForm = /*#__PURE__*/styled.div.withConfig({
|
|
129
129
|
displayName: "StyledForm",
|
|
130
|
-
componentId: "core-
|
|
130
|
+
componentId: "core-11_33_0__sc-ncj3pf-15"
|
|
131
131
|
})(["", ""], formWrapper);
|
|
132
132
|
//# sourceMappingURL=Form.styles.js.map
|
|
@@ -142,6 +142,8 @@ export interface FormProps<Values> extends Partial<FormikConfig<Values>> {
|
|
|
142
142
|
* form values are visually different from the initial values. Uses
|
|
143
143
|
* `window.onbeforeunload` and `window.confirm` for dialogs(Modal, Tearsheet).
|
|
144
144
|
* **Requires `onSubmit` to return a promise to remove onbeforeunload.**
|
|
145
|
+
* @a11y To prevent accidental data loss, it is recommended to enable.
|
|
146
|
+
* @default false
|
|
145
147
|
*/
|
|
146
148
|
enableConfirmNavigation?: boolean;
|
|
147
149
|
/**
|
|
@@ -149,6 +151,33 @@ export interface FormProps<Values> extends Partial<FormikConfig<Values>> {
|
|
|
149
151
|
* @default false
|
|
150
152
|
*/
|
|
151
153
|
disabled?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Submit the form. A promise is required to notify `Form` to make state changes like toggling `isSubmitting` and resetting `enableConfirmNavigation` (removing `window.onbeforeunload`) in the component.
|
|
156
|
+
|
|
157
|
+
- Recommended: `onSubmit` returns a promise, it will wait for `onSuccess`.
|
|
158
|
+
- Ok: `onSubmit` function is `async` and it returns undefined, it will always be considered a success.
|
|
159
|
+
- Caution: `onSubmit` function is synchronous and it returns undefined, it will never reset certain states.
|
|
160
|
+
|
|
161
|
+
A `button type='submit'` inside the `Form.Form` component (`form` tag) will trigger submission. If any validations fail, the submission will not continue.
|
|
162
|
+
|
|
163
|
+
@example
|
|
164
|
+
function(values, actions) {
|
|
165
|
+
return new Promise(
|
|
166
|
+
async function(onSuccess, onError) {
|
|
167
|
+
const success = await _network(values)
|
|
168
|
+
|
|
169
|
+
if (success) {
|
|
170
|
+
return onSuccess('Successful Server Response')
|
|
171
|
+
} else {
|
|
172
|
+
actions.setFieldError('text', 'Example Error Message')
|
|
173
|
+
return onError('Failed Server Response')
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
*/
|
|
180
|
+
onSubmit?: FormikConfig<Values>['onSubmit'];
|
|
152
181
|
/**
|
|
153
182
|
* Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.
|
|
154
183
|
*
|
|
@@ -279,16 +308,9 @@ export interface FormFieldProps<Value> extends Omit<BaseFieldProps<Value, FormFi
|
|
|
279
308
|
}
|
|
280
309
|
export declare type OptionList<OptionShape = any> = {
|
|
281
310
|
/**
|
|
282
|
-
*
|
|
283
|
-
* The id of an option{' '}
|
|
284
|
-
* <Code>{'(option: OptionItem) => string | number'}</Code>
|
|
285
|
-
* </div>
|
|
286
|
-
* <br />
|
|
287
|
-
* <div>
|
|
288
|
-
* Default:
|
|
289
|
-
* <Code>{'(option: OptionItem) => option.id'}</Code>
|
|
290
|
-
* </div>
|
|
311
|
+
* The id of an option
|
|
291
312
|
* @since 10.19.0
|
|
313
|
+
* @default (option: OptionItem) => option.id
|
|
292
314
|
*/
|
|
293
315
|
getId: (option: OptionShape) => string | number;
|
|
294
316
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.types.js","names":[],"sources":["../../src/Form/Form.types.ts"],"sourcesContent":["import type {\n FieldHelperProps,\n FieldInputProps,\n FieldMetaProps as FormikFieldMetaProps,\n FieldValidator,\n FormikConfig,\n} from 'formik'\nimport type React from 'react'\nimport type { CheckboxProps } from '../Checkbox/Checkbox.types'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { GroupSelectProps } from '../GroupSelect/GroupSelect.types'\nimport type { InputProps } from '../Input/Input.types'\nimport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nimport type {\n CurrencyInputProps,\n InputValue as BaseNumberInputValueType,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type { SelectButtonProps, SelectProps } from '../Select/Select.types'\nimport type { TextAreaProps } from '../TextArea/TextArea.types'\nimport type { TextEditorProps } from '../TextEditor'\nimport type { TieredSelectProps } from '../TieredSelect/TieredSelect.types'\nimport type { TooltipProps } from '../Tooltip/Tooltip.types'\nimport type { Props } from '../_utils/types'\n\nexport type ValueInArray<V> = V[keyof V]\nexport type View = 'create' | 'read' | 'update'\nexport type Layout = 'wxp' | 'traditional'\n\nexport interface FormContextAPI {\n /**\n * @since 10.19.0\n */\n different: boolean\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n enableReinitialize?: boolean\n /**\n * @since 10.19.0\n */\n setFieldDifferent: (key: string, different: boolean) => void\n\n /**\n * A <a href=\"https://github.com/jquense/yup\">Yup</a> object schema to\n * validate all values.\n * <CodeBlock>\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * </CodeBlock>\n * This is a great way to get error messages into the component. In\n * addition, if using Yup for required, those fields will automatically\n * get the required asterisk and highlight error.\n * @since 10.19.0\n */\n validationSchema?: FormikConfig<unknown>['validationSchema']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the\n * modern label-above layout.\n * @since 10.19.0\n */\n variant: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n * @since 10.19.0\n */\n view: View\n}\n\ninterface FieldMetaProps<Value>\n extends Omit<FormikFieldMetaProps<Value>, 'error'> {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n required: boolean\n /**\n * @since 10.19.0\n */\n view: View\n}\n\nexport interface FieldConfig {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n getId?: (item: any) => string | number\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n required?: boolean\n /**\n * @since 10.19.0\n */\n validate?: FieldValidator\n /**\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface FormFieldAPI<Value> {\n /**\n * @since 10.19.0\n */\n input: FieldInputProps<Value>\n /**\n * @since 10.19.0\n */\n helpers: {\n setValue: (\n value: Value,\n shouldValidate?: boolean,\n shouldMarkDifferent?: boolean\n ) => void\n setTouched: FieldHelperProps<Value>['setTouched']\n setError: FieldHelperProps<Value>['setError']\n }\n\n /**\n * @since 10.19.0\n */\n messages: {\n error?: string\n }\n /**\n * @since 10.19.0\n */\n meta: FieldMetaProps<Value>\n}\n\nexport interface FormProps<Values> extends Partial<FormikConfig<Values>> {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n\n /**\n * Enable a browser confirmation about losing of unsaved data when the\n * form values are visually different from the initial values. Uses\n * `window.onbeforeunload` and `window.confirm` for dialogs(Modal, Tearsheet).\n * **Requires `onSubmit` to return a promise to remove onbeforeunload.**\n */\n enableConfirmNavigation?: boolean\n\n /**\n * Disable all fields at once.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.\n *\n */\n variant?: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n */\n view?: View\n}\n\nexport type FormFieldValueComponentProps<Value = any> = {\n field: FormFieldAPI<Value>\n}\n\nexport type ComponentWithFieldProp<\n Value,\n Props extends FormFieldValueComponentProps<Value>\n> =\n | React.FunctionComponent<Props>\n | React.ForwardRefExoticComponent<Props>\n | ((p: Props) => React.ReactNode)\n\nexport interface BaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> {\n /**\n * Customize the input component, either a single component for all views\n * or an object with the keys of the views to render on that particular\n * view. This input component will receive the <Code>field</Code> prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the{' '}\n * <a href=\"#typescript-and-as-prop-components\">props per view</a>.\n * <br />\n * <br />\n * One of:\n * <br />\n * <Code>ReactComponent</Code>or\n * <Code>\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * </Code>\n * @since 10.19.0\n */\n as?:\n | ComponentWithFieldProp<Value, ComponentProps>\n | { [V in View]: ComponentWithFieldProp<Value, ComponentProps> }\n\n /**\n * A subcomponent to render on a particular view.\n * <br />\n * <br />\n * One or all of:\n * <br />\n * <Code>Form.X.Create, Form.X.Read, Form.X.Update</Code>\n * @since 10.19.0\n */\n children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode\n\n /**\n * Starting location of column. For traditional variant, this does not exist\n * and is not necessary.\n * @since 10.19.0\n * */\n colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\n /**\n * Width of column. For traditional variant, will be either 6 or 12.\n * @default 6\n * @since 10.19.0\n */\n colWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n /**\n * @since 10.19.0\n */\n ['data-qa']?: string\n\n /**\n * Specify disabled. Field disabled replaces the overall Form disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 11.25.0\n */\n description?: React.ReactNode\n /**\n * Key path in store. Accepts <Code>bracket[notation]</Code> or{' '}\n * <Code>dot.notation</Code>.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup <Code>required</Code>\n * <CodeBlock>\n * {`<Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n required?: boolean\n\n /**\n * @since 10.19.0\n */\n tooltip?: TooltipProps['overlay']\n\n /**\n * The validate function from Formik for single field validation.\n * <CodeBlock>\n * {`(value: Value = any) => undefined | string | Promise<Value>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n validate?: FieldValidator\n\n /**\n * Determines show or edit state of field.\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface TraditionalBaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> extends Omit<BaseFieldProps<Value, ComponentProps>, 'colWidth' | 'colStart'> {\n /**\n * @since 10.19.0\n */\n colWidth?: 6 | 12\n}\n\nexport interface FormFieldProps<Value>\n extends Omit<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>,\n 'children'\n > {\n /**\n * @since 10.19.0\n */\n children?:\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >[]\n}\n\nexport type OptionList<OptionShape = any> = {\n /**\n * <div>\n * The id of an option{' '}\n * <Code>{'(option: OptionItem) => string | number'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(option: OptionItem) => option.id'}</Code>\n * </div>\n * @since 10.19.0\n */\n getId: (option: OptionShape) => string | number\n\n /**\n * <div>\n * The display label of an option\n * <Code>{'(option: OptionItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(option: OptionItem) => option.label || option.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n getLabel: (option: OptionShape) => string\n\n /**\n * @since 10.19.0\n */\n options?: OptionShape[]\n}\n\nexport interface FormErrorBannerProps {\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n item: string\n}\n\n// MAKE\n\nexport type ViewFieldProps<\n Value,\n FieldTypeProps extends FormFieldProps<Value>,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> = Partial<Omit<FieldTypeProps, 'children'>> & {\n /**\n * @since 10.19.0\n */\n children?: BaseFieldProps<Value, ComponentProps>['children']\n}\n\n// TEXT\n\nexport type FieldTextValueType = string\n\nexport interface FieldTextComponentProps<Value = FieldTextValueType>\n extends FormFieldValueComponentProps<Value>,\n InputProps {}\nexport interface FormTextProps<Value = FieldTextValueType>\n extends FormFieldProps<Value>,\n Omit<InputProps, 'name' | 'children' | 'error'> {}\n\n// NUMBER\n\nexport type FieldNumberValueType = BaseNumberInputValueType\n\nexport interface FieldNumberComponentProps<Value = FieldNumberValueType>\n extends FormFieldValueComponentProps<Value>,\n NumberInputProps {}\n\nexport interface FormNumberProps<Value = FieldNumberValueType>\n extends FormFieldProps<Value>,\n Omit<NumberInputProps, 'name' | 'children' | 'error'> {}\n\n// CURRENCY\n\nexport type FieldCurrencyValueType = BaseNumberInputValueType\n\nexport interface FieldCurrencyComponentProps<Value = FieldCurrencyValueType>\n extends FormFieldValueComponentProps<Value>,\n CurrencyInputProps {}\n\nexport interface FormCurrencyProps<Value = FieldCurrencyValueType>\n extends FormFieldProps<Value>,\n Omit<CurrencyInputProps, 'name' | 'children' | 'error'> {}\n\n// DATE\nexport type FieldDateValueType = null | string | Date\n\nexport interface FieldDateComponentProps<Value = FieldDateValueType>\n extends FormFieldValueComponentProps<Value>,\n DateSelectProps {}\n\nexport interface FormDateProps<Value = FieldDateValueType>\n extends FormFieldProps<Value>,\n Omit<DateSelectProps, 'error'> {}\n\n// CHECKBOX\n\nexport type FieldCheckboxValueType = boolean\n\nexport interface FieldCheckboxComponentProps<Value = FieldCheckboxValueType>\n extends FormFieldValueComponentProps<Value>,\n CheckboxProps {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 11.25.0\n */\n tooltip?: TooltipProps['overlay']\n /**\n * @since 11.25.0\n */\n hasRequiredMark?: boolean\n}\n\nexport interface FormCheckboxProps<Value = FieldCheckboxValueType>\n extends FormFieldProps<Value>,\n Omit<CheckboxProps, 'name' | 'error' | 'children'> {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * Below checkbox description\n * @since 11.25.0\n */\n inlineDescription?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n}\n\n// TEXTAREA\n\nexport type FieldTextAreaValueType = string\n\nexport interface FieldTextAreaComponentProps<Value = FieldTextAreaValueType>\n extends FormFieldValueComponentProps<Value>,\n TextAreaProps {}\nexport interface FormTextAreaProps<Value = FieldTextAreaValueType>\n extends FormFieldProps<Value>,\n Omit<TextAreaProps, 'name' | 'error' | 'children'> {}\n\n// RICHTEXT\n\nexport type FieldRichTextValueType = string\n\nexport interface FieldRichTextComponentProps<Value = FieldRichTextValueType>\n extends FormFieldValueComponentProps<Value>,\n TextEditorProps {}\n\nexport interface FormRichTextProps<Value = FieldRichTextValueType>\n extends Omit<FormFieldProps<Value>, 'error'>,\n TextEditorProps {}\n\n// RADIO BUTTONS\n\nexport type FieldRadioButtonsValueType = any\n\nexport interface FieldRadioButtonsComponentProps<\n Value = FieldRadioButtonsValueType\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n}\n\nexport interface FormRadioButtonsProps<Value = FieldRadioButtonsValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'>,\n Pick<FieldRadioButtonsComponentProps, 'isDisabledOption'> {}\n\n// CHECKBOXES\n\nexport type FieldCheckboxesValueType = any[]\n\nexport interface FieldCheckboxesComponentProps<Value = FieldCheckboxesValueType>\n extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n /**\n * @since 10.19.0\n */\n isIndeterminateOption?: (option: Value) => boolean\n}\n\nexport interface FormCheckboxesProps<Value = FieldCheckboxesValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'>,\n Pick<\n FieldCheckboxesComponentProps,\n 'isDisabledOption' | 'isIndeterminateOption'\n > {}\n\n// SELECT\n\nexport type FieldSelectValueType = any\nexport type FieldSelectOptionItem = FieldSelectValueType\nexport type FieldSelectGroupItem = any\nexport type FieldSelectGroupHeader = FieldSelectGroupItem & {\n isGroupHeader: boolean\n}\n\nexport interface GroupedOptionsConfig<OptionItem, GroupItem>\n extends OptionList<OptionItem> {\n /**\n * @since 10.19.0\n */\n comparator?: (query: string, value: string) => boolean\n /**\n * @since 10.19.0\n */\n getGroup: (option: OptionItem) => number | string\n /**\n * <div>\n * The id of group{' '}\n * <Code>{'(group: GroupItem) => string | number'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group) => group.id'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetId: (group: GroupItem) => number | string\n /**\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n /**\n * @since 10.19.0\n */\n value?: OptionItem\n}\n\nexport interface FieldSelectComponentProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<OptionItem>>,\n Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {\n /**\n * Callback for each entry in <Code>options</Code> to define relation to\n * group in <Code>optgroups</Code>\n * <Code>{'(option: OptionItem) => string | number'}</Code>\n * @since 10.19.0\n * */\n getGroup?: (option: OptionItem) => number | string\n /**\n * @since 10.19.0\n */\n groupGetId?: (group: GroupItem) => number | string\n\n /**\n * <div>\n * The display label of a group\n * <Code>{'(group: GroupItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group: GroupItem) => group.label || group.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in <Code>optgroups</Code>\n * <Code>{'(group: GroupItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n groupHeaderRenderer?: (group: GroupItem) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From{' '}\n * <Code>{'Select.Option suggested'}</Code>.\n * <Code>{'(option: OptionItem) => boolean'}</Code>\n * @since 10.19.0\n */\n isSuggestedOption?: (option: OptionItem) => boolean\n\n /**\n * Array of available option groups\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n\n /**\n * Callback for rendering each <Code>option</Code>\n * <Code>{'(option: OptionItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n optionRenderer?: (option: OptionItem) => React.ReactNode\n /**\n * @since 10.19.0\n */\n onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void\n\n /**\n * Callback for when cleared. Default enabled, has clear icon.\n * @since 10.19.0\n */\n onClear?: false | SelectButtonProps['onClear']\n\n /**\n * Callback for when searching. Default enabled, has seach bar in menu.\n * @since 10.19.0\n */\n onSearch?: false | SelectProps['onSearch']\n\n /**\n * <div>Customize how search works</div>\n * <Code>{'(query: string, value: string) => boolean'}</Code>\n * @since 10.19.0\n */\n searchComparator?: (query: string, value: string) => boolean\n}\nexport interface FormSelectProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldProps<Value>,\n Partial<OptionList<OptionItem>>,\n Pick<\n FieldSelectComponentProps<Value, OptionItem, GroupItem>,\n | 'getGroup'\n | 'groupGetId'\n | 'groupGetLabel'\n | 'groupHeaderRenderer'\n | 'isSuggestedOption'\n | 'onBlur'\n | 'onClear'\n | 'optgroups'\n | 'onSearch'\n | 'optionRenderer'\n | 'searchComparator'\n >,\n Omit<\n SelectProps,\n 'onClear' | 'onSearch' | 'error' | 'children' | 'label'\n > {}\n\n// PILL SELECT\n\nexport type FieldPillSelectValueType = any\n\ninterface PillSelectCommon\n extends Omit<PillSelectProps, 'children' | 'onClear' | 'error' | 'value'> {\n /**\n * @since 10.19.0\n */\n onClear?: false | PillSelectProps['onClear']\n}\n\nexport interface FieldPillSelectComponentProps<Value = FieldPillSelectValueType>\n extends FormFieldValueComponentProps<Value>,\n PillSelectCommon {}\n\nexport interface FormPillSelectProps<Value = FieldPillSelectValueType>\n extends FormFieldProps<Value>,\n PillSelectCommon {}\n\n// MULTISELECT\n\nexport type FieldMultiSelectValueType = any[]\n\ninterface MultiSelectCommon<Value>\n extends Partial<OptionList<ValueInArray<Value>>>,\n Omit<MultiSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldMultiSelectComponentProps<\n Value = FieldMultiSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n MultiSelectCommon<Value> {}\n\nexport interface FormMultiSelectProps<Value = FieldMultiSelectValueType>\n extends FormFieldProps<Value>,\n MultiSelectCommon<Value> {}\n\n// GROUP SELECT\n\nexport type FieldGroupSelectValueType = any[]\n\ninterface GroupSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<GroupSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldGroupSelectComponentProps<\n Value = FieldGroupSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n GroupSelectCommon<Value> {}\n\nexport interface FormGroupSelectProps<Value = FieldGroupSelectValueType>\n extends FormFieldProps<Value>,\n GroupSelectCommon<Value> {}\n\n// TIERED SELECT\n\nexport type FieldTieredSelectValueType = any[]\n\ninterface TieredSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<\n TieredSelectProps,\n 'options' | 'getLabel' | 'getId' | 'error' | 'children'\n > {}\n\nexport interface FieldTieredSelectComponentProps<\n Value = FieldTieredSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n TieredSelectCommon<Value> {}\n\nexport interface FormTieredSelectProps<Value = FieldTieredSelectValueType>\n extends FormFieldProps<Value>,\n TieredSelectCommon<Value> {}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Form.types.js","names":[],"sources":["../../src/Form/Form.types.ts"],"sourcesContent":["import type {\n FieldHelperProps,\n FieldInputProps,\n FieldMetaProps as FormikFieldMetaProps,\n FieldValidator,\n FormikConfig,\n} from 'formik'\nimport type React from 'react'\nimport type { CheckboxProps } from '../Checkbox/Checkbox.types'\nimport type { DateSelectProps } from '../DateSelect'\nimport type { GroupSelectProps } from '../GroupSelect/GroupSelect.types'\nimport type { InputProps } from '../Input/Input.types'\nimport type { MultiSelectProps } from '../MultiSelect/MultiSelect.types'\nimport type {\n CurrencyInputProps,\n InputValue as BaseNumberInputValueType,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type { SelectButtonProps, SelectProps } from '../Select/Select.types'\nimport type { TextAreaProps } from '../TextArea/TextArea.types'\nimport type { TextEditorProps } from '../TextEditor'\nimport type { TieredSelectProps } from '../TieredSelect/TieredSelect.types'\nimport type { TooltipProps } from '../Tooltip/Tooltip.types'\nimport type { Props } from '../_utils/types'\n\nexport type ValueInArray<V> = V[keyof V]\nexport type View = 'create' | 'read' | 'update'\nexport type Layout = 'wxp' | 'traditional'\n\nexport interface FormContextAPI {\n /**\n * @since 10.19.0\n */\n different: boolean\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n enableReinitialize?: boolean\n /**\n * @since 10.19.0\n */\n setFieldDifferent: (key: string, different: boolean) => void\n\n /**\n * A <a href=\"https://github.com/jquense/yup\">Yup</a> object schema to\n * validate all values.\n * <CodeBlock>\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * </CodeBlock>\n * This is a great way to get error messages into the component. In\n * addition, if using Yup for required, those fields will automatically\n * get the required asterisk and highlight error.\n * @since 10.19.0\n */\n validationSchema?: FormikConfig<unknown>['validationSchema']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the\n * modern label-above layout.\n * @since 10.19.0\n */\n variant: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n * @since 10.19.0\n */\n view: View\n}\n\ninterface FieldMetaProps<Value>\n extends Omit<FormikFieldMetaProps<Value>, 'error'> {\n /**\n * @since 10.19.0\n */\n disabled: boolean\n /**\n * @since 10.19.0\n */\n error: boolean\n /**\n * @since 10.19.0\n */\n required: boolean\n /**\n * @since 10.19.0\n */\n view: View\n}\n\nexport interface FieldConfig {\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n getId?: (item: any) => string | number\n /**\n * @since 10.19.0\n */\n name: string\n /**\n * @since 10.19.0\n */\n required?: boolean\n /**\n * @since 10.19.0\n */\n validate?: FieldValidator\n /**\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface FormFieldAPI<Value> {\n /**\n * @since 10.19.0\n */\n input: FieldInputProps<Value>\n /**\n * @since 10.19.0\n */\n helpers: {\n setValue: (\n value: Value,\n shouldValidate?: boolean,\n shouldMarkDifferent?: boolean\n ) => void\n setTouched: FieldHelperProps<Value>['setTouched']\n setError: FieldHelperProps<Value>['setError']\n }\n\n /**\n * @since 10.19.0\n */\n messages: {\n error?: string\n }\n /**\n * @since 10.19.0\n */\n meta: FieldMetaProps<Value>\n}\n\nexport interface FormProps<Values> extends Partial<FormikConfig<Values>> {\n /**\n * @since 10.19.0\n */\n children: React.ReactNode\n\n /**\n * Enable a browser confirmation about losing of unsaved data when the\n * form values are visually different from the initial values. Uses\n * `window.onbeforeunload` and `window.confirm` for dialogs(Modal, Tearsheet).\n * **Requires `onSubmit` to return a promise to remove onbeforeunload.**\n * @a11y To prevent accidental data loss, it is recommended to enable.\n * @default false\n */\n enableConfirmNavigation?: boolean\n\n /**\n * Disable all fields at once.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Submit the form. A promise is required to notify `Form` to make state changes like toggling `isSubmitting` and resetting `enableConfirmNavigation` (removing `window.onbeforeunload`) in the component.\n\n - Recommended: `onSubmit` returns a promise, it will wait for `onSuccess`.\n - Ok: `onSubmit` function is `async` and it returns undefined, it will always be considered a success.\n - Caution: `onSubmit` function is synchronous and it returns undefined, it will never reset certain states.\n\n A `button type='submit'` inside the `Form.Form` component (`form` tag) will trigger submission. If any validations fail, the submission will not continue.\n\n @example\n function(values, actions) {\n return new Promise(\n async function(onSuccess, onError) {\n const success = await _network(values)\n\n if (success) {\n return onSuccess('Successful Server Response')\n } else {\n actions.setFieldError('text', 'Example Error Message')\n return onError('Failed Server Response')\n }\n }\n )\n }\n\n */\n // TODO breaking change found v11 24-5-13\n // Our Partial<> usage above allows optional onSubmit,\n // even though Formik requires onSubmit. Keep ? for backwards compat.\n onSubmit?: FormikConfig<Values>['onSubmit']\n\n /**\n * Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.\n *\n */\n variant?: Layout\n\n /**\n * Determines show or edit state of form.\n * @default 'create'\n */\n view?: View\n}\n\nexport type FormFieldValueComponentProps<Value = any> = {\n field: FormFieldAPI<Value>\n}\n\nexport type ComponentWithFieldProp<\n Value,\n Props extends FormFieldValueComponentProps<Value>\n> =\n | React.FunctionComponent<Props>\n | React.ForwardRefExoticComponent<Props>\n | ((p: Props) => React.ReactNode)\n\nexport interface BaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> {\n /**\n * Customize the input component, either a single component for all views\n * or an object with the keys of the views to render on that particular\n * view. This input component will receive the <Code>field</Code> prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the{' '}\n * <a href=\"#typescript-and-as-prop-components\">props per view</a>.\n * <br />\n * <br />\n * One of:\n * <br />\n * <Code>ReactComponent</Code>or\n * <Code>\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * </Code>\n * @since 10.19.0\n */\n as?:\n | ComponentWithFieldProp<Value, ComponentProps>\n | { [V in View]: ComponentWithFieldProp<Value, ComponentProps> }\n\n /**\n * A subcomponent to render on a particular view.\n * <br />\n * <br />\n * One or all of:\n * <br />\n * <Code>Form.X.Create, Form.X.Read, Form.X.Update</Code>\n * @since 10.19.0\n */\n children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode\n\n /**\n * Starting location of column. For traditional variant, this does not exist\n * and is not necessary.\n * @since 10.19.0\n * */\n colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\n /**\n * Width of column. For traditional variant, will be either 6 or 12.\n * @default 6\n * @since 10.19.0\n */\n colWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n /**\n * @since 10.19.0\n */\n ['data-qa']?: string\n\n /**\n * Specify disabled. Field disabled replaces the overall Form disabled state.\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean | string\n /**\n * @since 10.19.0\n */\n label?: string\n /**\n * @since 11.25.0\n */\n description?: React.ReactNode\n /**\n * Key path in store. Accepts <Code>bracket[notation]</Code> or{' '}\n * <Code>dot.notation</Code>.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup <Code>required</Code>\n * <CodeBlock>\n * {`<Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n required?: boolean\n\n /**\n * @since 10.19.0\n */\n tooltip?: TooltipProps['overlay']\n\n /**\n * The validate function from Formik for single field validation.\n * <CodeBlock>\n * {`(value: Value = any) => undefined | string | Promise<Value>`}\n * </CodeBlock>\n * @since 10.19.0\n */\n validate?: FieldValidator\n\n /**\n * Determines show or edit state of field.\n * @since 10.19.0\n */\n view?: View\n}\n\nexport interface TraditionalBaseFieldProps<\n Value,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> extends Omit<BaseFieldProps<Value, ComponentProps>, 'colWidth' | 'colStart'> {\n /**\n * @since 10.19.0\n */\n colWidth?: 6 | 12\n}\n\nexport interface FormFieldProps<Value>\n extends Omit<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>,\n 'children'\n > {\n /**\n * @since 10.19.0\n */\n children?:\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >\n | React.ReactElement<\n BaseFieldProps<Value, FormFieldValueComponentProps<Value>>\n >[]\n}\n\nexport type OptionList<OptionShape = any> = {\n /**\n * The id of an option\n * @since 10.19.0\n * @default (option: OptionItem) => option.id\n */\n getId: (option: OptionShape) => string | number\n\n /**\n * <div>\n * The display label of an option\n * <Code>{'(option: OptionItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(option: OptionItem) => option.label || option.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n getLabel: (option: OptionShape) => string\n\n /**\n * @since 10.19.0\n */\n options?: OptionShape[]\n}\n\nexport interface FormErrorBannerProps {\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n item: string\n}\n\n// MAKE\n\nexport type ViewFieldProps<\n Value,\n FieldTypeProps extends FormFieldProps<Value>,\n ComponentProps extends FormFieldValueComponentProps<Value>\n> = Partial<Omit<FieldTypeProps, 'children'>> & {\n /**\n * @since 10.19.0\n */\n children?: BaseFieldProps<Value, ComponentProps>['children']\n}\n\n// TEXT\n\nexport type FieldTextValueType = string\n\nexport interface FieldTextComponentProps<Value = FieldTextValueType>\n extends FormFieldValueComponentProps<Value>,\n InputProps {}\nexport interface FormTextProps<Value = FieldTextValueType>\n extends FormFieldProps<Value>,\n Omit<InputProps, 'name' | 'children' | 'error'> {}\n\n// NUMBER\n\nexport type FieldNumberValueType = BaseNumberInputValueType\n\nexport interface FieldNumberComponentProps<Value = FieldNumberValueType>\n extends FormFieldValueComponentProps<Value>,\n NumberInputProps {}\n\nexport interface FormNumberProps<Value = FieldNumberValueType>\n extends FormFieldProps<Value>,\n Omit<NumberInputProps, 'name' | 'children' | 'error'> {}\n\n// CURRENCY\n\nexport type FieldCurrencyValueType = BaseNumberInputValueType\n\nexport interface FieldCurrencyComponentProps<Value = FieldCurrencyValueType>\n extends FormFieldValueComponentProps<Value>,\n CurrencyInputProps {}\n\nexport interface FormCurrencyProps<Value = FieldCurrencyValueType>\n extends FormFieldProps<Value>,\n Omit<CurrencyInputProps, 'name' | 'children' | 'error'> {}\n\n// DATE\nexport type FieldDateValueType = null | string | Date\n\nexport interface FieldDateComponentProps<Value = FieldDateValueType>\n extends FormFieldValueComponentProps<Value>,\n DateSelectProps {}\n\nexport interface FormDateProps<Value = FieldDateValueType>\n extends FormFieldProps<Value>,\n Omit<DateSelectProps, 'error'> {}\n\n// CHECKBOX\n\nexport type FieldCheckboxValueType = boolean\n\nexport interface FieldCheckboxComponentProps<Value = FieldCheckboxValueType>\n extends FormFieldValueComponentProps<Value>,\n CheckboxProps {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 11.25.0\n */\n tooltip?: TooltipProps['overlay']\n /**\n * @since 11.25.0\n */\n hasRequiredMark?: boolean\n}\n\nexport interface FormCheckboxProps<Value = FieldCheckboxValueType>\n extends FormFieldProps<Value>,\n Omit<CheckboxProps, 'name' | 'error' | 'children'> {\n /**\n * Next to checkbox label\n * @since 11.25.0\n */\n inlineLabel?: string\n /**\n * Below checkbox description\n * @since 11.25.0\n */\n inlineDescription?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n}\n\n// TEXTAREA\n\nexport type FieldTextAreaValueType = string\n\nexport interface FieldTextAreaComponentProps<Value = FieldTextAreaValueType>\n extends FormFieldValueComponentProps<Value>,\n TextAreaProps {}\nexport interface FormTextAreaProps<Value = FieldTextAreaValueType>\n extends FormFieldProps<Value>,\n Omit<TextAreaProps, 'name' | 'error' | 'children'> {}\n\n// RICHTEXT\n\nexport type FieldRichTextValueType = string\n\nexport interface FieldRichTextComponentProps<Value = FieldRichTextValueType>\n extends FormFieldValueComponentProps<Value>,\n TextEditorProps {}\n\nexport interface FormRichTextProps<Value = FieldRichTextValueType>\n extends Omit<FormFieldProps<Value>, 'error'>,\n TextEditorProps {}\n\n// RADIO BUTTONS\n\nexport type FieldRadioButtonsValueType = any\n\nexport interface FieldRadioButtonsComponentProps<\n Value = FieldRadioButtonsValueType\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n}\n\nexport interface FormRadioButtonsProps<Value = FieldRadioButtonsValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<Value>>,\n Pick<Props, 'className' | 'style'>,\n Pick<FieldRadioButtonsComponentProps, 'isDisabledOption'> {}\n\n// CHECKBOXES\n\nexport type FieldCheckboxesValueType = any[]\n\nexport interface FieldCheckboxesComponentProps<Value = FieldCheckboxesValueType>\n extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'> {\n /**\n * @since 10.19.0\n */\n isDisabledOption?: (option: Value) => boolean\n /**\n * @since 10.19.0\n */\n isIndeterminateOption?: (option: Value) => boolean\n}\n\nexport interface FormCheckboxesProps<Value = FieldCheckboxesValueType>\n extends FormFieldProps<Value>,\n Partial<OptionList<ValueInArray<Value>>>,\n Pick<Props, 'className' | 'style'>,\n Pick<\n FieldCheckboxesComponentProps,\n 'isDisabledOption' | 'isIndeterminateOption'\n > {}\n\n// SELECT\n\nexport type FieldSelectValueType = any\nexport type FieldSelectOptionItem = FieldSelectValueType\nexport type FieldSelectGroupItem = any\nexport type FieldSelectGroupHeader = FieldSelectGroupItem & {\n isGroupHeader: boolean\n}\n\nexport interface GroupedOptionsConfig<OptionItem, GroupItem>\n extends OptionList<OptionItem> {\n /**\n * @since 10.19.0\n */\n comparator?: (query: string, value: string) => boolean\n /**\n * @since 10.19.0\n */\n getGroup: (option: OptionItem) => number | string\n /**\n * <div>\n * The id of group{' '}\n * <Code>{'(group: GroupItem) => string | number'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group) => group.id'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetId: (group: GroupItem) => number | string\n /**\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n /**\n * @since 10.19.0\n */\n value?: OptionItem\n}\n\nexport interface FieldSelectComponentProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldValueComponentProps<Value>,\n Partial<OptionList<OptionItem>>,\n Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {\n /**\n * Callback for each entry in <Code>options</Code> to define relation to\n * group in <Code>optgroups</Code>\n * <Code>{'(option: OptionItem) => string | number'}</Code>\n * @since 10.19.0\n * */\n getGroup?: (option: OptionItem) => number | string\n /**\n * @since 10.19.0\n */\n groupGetId?: (group: GroupItem) => number | string\n\n /**\n * <div>\n * The display label of a group\n * <Code>{'(group: GroupItem) => string'}</Code>\n * </div>\n * <br />\n * <div>\n * Default:\n * <Code>{'(group: GroupItem) => group.label || group.name'}</Code>\n * </div>\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in <Code>optgroups</Code>\n * <Code>{'(group: GroupItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n groupHeaderRenderer?: (group: GroupItem) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From{' '}\n * <Code>{'Select.Option suggested'}</Code>.\n * <Code>{'(option: OptionItem) => boolean'}</Code>\n * @since 10.19.0\n */\n isSuggestedOption?: (option: OptionItem) => boolean\n\n /**\n * Array of available option groups\n * @since 10.19.0\n */\n optgroups?: GroupItem[]\n\n /**\n * Callback for rendering each <Code>option</Code>\n * <Code>{'(option: OptionItem) => React.ReactNode'}</Code>\n * @since 10.19.0\n */\n optionRenderer?: (option: OptionItem) => React.ReactNode\n /**\n * @since 10.19.0\n */\n onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void\n\n /**\n * Callback for when cleared. Default enabled, has clear icon.\n * @since 10.19.0\n */\n onClear?: false | SelectButtonProps['onClear']\n\n /**\n * Callback for when searching. Default enabled, has seach bar in menu.\n * @since 10.19.0\n */\n onSearch?: false | SelectProps['onSearch']\n\n /**\n * <div>Customize how search works</div>\n * <Code>{'(query: string, value: string) => boolean'}</Code>\n * @since 10.19.0\n */\n searchComparator?: (query: string, value: string) => boolean\n}\nexport interface FormSelectProps<\n Value = FieldSelectValueType,\n OptionItem = FieldSelectOptionItem,\n GroupItem = FieldSelectGroupItem\n> extends FormFieldProps<Value>,\n Partial<OptionList<OptionItem>>,\n Pick<\n FieldSelectComponentProps<Value, OptionItem, GroupItem>,\n | 'getGroup'\n | 'groupGetId'\n | 'groupGetLabel'\n | 'groupHeaderRenderer'\n | 'isSuggestedOption'\n | 'onBlur'\n | 'onClear'\n | 'optgroups'\n | 'onSearch'\n | 'optionRenderer'\n | 'searchComparator'\n >,\n Omit<\n SelectProps,\n 'onClear' | 'onSearch' | 'error' | 'children' | 'label'\n > {}\n\n// PILL SELECT\n\nexport type FieldPillSelectValueType = any\n\ninterface PillSelectCommon\n extends Omit<PillSelectProps, 'children' | 'onClear' | 'error' | 'value'> {\n /**\n * @since 10.19.0\n */\n onClear?: false | PillSelectProps['onClear']\n}\n\nexport interface FieldPillSelectComponentProps<Value = FieldPillSelectValueType>\n extends FormFieldValueComponentProps<Value>,\n PillSelectCommon {}\n\nexport interface FormPillSelectProps<Value = FieldPillSelectValueType>\n extends FormFieldProps<Value>,\n PillSelectCommon {}\n\n// MULTISELECT\n\nexport type FieldMultiSelectValueType = any[]\n\ninterface MultiSelectCommon<Value>\n extends Partial<OptionList<ValueInArray<Value>>>,\n Omit<MultiSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldMultiSelectComponentProps<\n Value = FieldMultiSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n MultiSelectCommon<Value> {}\n\nexport interface FormMultiSelectProps<Value = FieldMultiSelectValueType>\n extends FormFieldProps<Value>,\n MultiSelectCommon<Value> {}\n\n// GROUP SELECT\n\nexport type FieldGroupSelectValueType = any[]\n\ninterface GroupSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<GroupSelectProps, 'options' | 'getLabel' | 'getId' | 'error'> {}\n\nexport interface FieldGroupSelectComponentProps<\n Value = FieldGroupSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n GroupSelectCommon<Value> {}\n\nexport interface FormGroupSelectProps<Value = FieldGroupSelectValueType>\n extends FormFieldProps<Value>,\n GroupSelectCommon<Value> {}\n\n// TIERED SELECT\n\nexport type FieldTieredSelectValueType = any[]\n\ninterface TieredSelectCommon<Value>\n extends Partial<OptionList<Value[keyof Value]>>,\n Omit<\n TieredSelectProps,\n 'options' | 'getLabel' | 'getId' | 'error' | 'children'\n > {}\n\nexport interface FieldTieredSelectComponentProps<\n Value = FieldTieredSelectValueType\n> extends FormFieldValueComponentProps<Value>,\n TieredSelectCommon<Value> {}\n\nexport interface FormTieredSelectProps<Value = FieldTieredSelectValueType>\n extends FormFieldProps<Value>,\n TieredSelectCommon<Value> {}\n"],"mappings":""}
|
package/dist/Grid/Grid.styles.js
CHANGED
|
@@ -75,7 +75,7 @@ var getRowGutterVertical = function getRowGutterVertical(gutterY, breakpoint) {
|
|
|
75
75
|
};
|
|
76
76
|
export var StyledGridRow = /*#__PURE__*/styled.div.withConfig({
|
|
77
77
|
displayName: "StyledGridRow",
|
|
78
|
-
componentId: "core-
|
|
78
|
+
componentId: "core-11_33_0__sc-8pinsp-0"
|
|
79
79
|
})(["", " display:flex;flex-wrap:wrap;"], function (_ref) {
|
|
80
80
|
var $gutterX = _ref.$gutterX,
|
|
81
81
|
$gutterY = _ref.$gutterY;
|
|
@@ -87,7 +87,7 @@ export var StyledGridRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
87
87
|
});
|
|
88
88
|
export var StyledGridCol = /*#__PURE__*/styled.div.withConfig({
|
|
89
89
|
displayName: "StyledGridCol",
|
|
90
|
-
componentId: "core-
|
|
90
|
+
componentId: "core-11_33_0__sc-8pinsp-1"
|
|
91
91
|
})(["flex-shrink:0;width:100%;max-width:100%;", ""], function (_ref2) {
|
|
92
92
|
var $span = _ref2.$span,
|
|
93
93
|
$offset = _ref2.$offset,
|
|
@@ -3,7 +3,7 @@ import { MultiSelect } from '../MultiSelect/MultiSelect';
|
|
|
3
3
|
import { colors } from '../_styles/colors';
|
|
4
4
|
export var StyledGroupSelectOption = /*#__PURE__*/styled(MultiSelect.Option).withConfig({
|
|
5
5
|
displayName: "StyledGroupSelectOption",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_33_0__sc-u5gu8j-0"
|
|
7
7
|
})(["", ""], function (_ref) {
|
|
8
8
|
var disabled = _ref.disabled;
|
|
9
9
|
return disabled && css(["color:", ";cursor:not-allowed;a,a:hover{color:", ";text-decoration:none;}"], colors.gray70, colors.gray70);
|
|
@@ -16,6 +16,6 @@ export function getInputStyles(_ref) {
|
|
|
16
16
|
}
|
|
17
17
|
export var StyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
18
18
|
displayName: "StyledInput",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-11_33_0__sc-12sjkxg-0"
|
|
20
20
|
})(["", " padding:0 ", "px;&::-ms-clear{display:none;}&[type='number']{-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}}"], getInputStyles, spacing.md);
|
|
21
21
|
//# sourceMappingURL=Input.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.js","names":[],"sources":["../../src/Input/Input.types.ts"],"sourcesContent":["import type { InputAttributes } from '../_utils/types'\n\nexport interface InputProps extends InputAttributes {\n /**\n * Controls the error state of the `Input`, changing the\n * background color and border colors to red\n * @since 10.19.0\n */\n error?: boolean\n\n /**\n * @deprecated Use the `error` prop instead\n * @since 10.19.0\n */\n variant?: 'error' | ''\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.types.js","names":[],"sources":["../../src/Input/Input.types.ts"],"sourcesContent":["import type { InputAttributes } from '../_utils/types'\n\nexport interface InputProps extends InputAttributes {\n /**\n * Controls the error state of the `Input`, changing the\n * background color and border colors to red\n * @since 10.19.0\n */\n error?: boolean\n\n /**\n * @deprecated Use the `error` prop instead\n * @deprecatedSince 11\n * @since 10.19.0\n */\n variant?: 'error' | ''\n}\n"],"mappings":""}
|
package/dist/Link/Link.styles.js
CHANGED
|
@@ -17,6 +17,6 @@ function getLinkColors(_ref) {
|
|
|
17
17
|
}
|
|
18
18
|
export var StyledLink = /*#__PURE__*/styled.a.withConfig({
|
|
19
19
|
displayName: "StyledLink",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-11_33_0__sc-jfowrl-0"
|
|
21
21
|
})(["text-decoration:underline;&:hover{cursor:pointer;text-decoration:underline;}", " &.focus,&:focus{", ";}", ""], focusable, getBorderRadius('md'), getLinkColors);
|
|
22
22
|
//# sourceMappingURL=Link.styles.js.map
|
|
@@ -3,19 +3,19 @@ import { colors } from '../_styles/colors';
|
|
|
3
3
|
import { spacing } from '../_styles/spacing';
|
|
4
4
|
export var StyledListPageMain = /*#__PURE__*/styled.div.withConfig({
|
|
5
5
|
displayName: "StyledListPageMain",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_33_0__sc-1eq7fzi-0"
|
|
7
7
|
})(["display:flex;flex:1 0 auto;flex-direction:column;min-width:0;padding:", "px ", "px;width:100%;"], spacing.lg, spacing.xl);
|
|
8
8
|
export var StyledListPageBanner = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledListPageBanner",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_33_0__sc-1eq7fzi-1"
|
|
11
11
|
})(["flex:0 0 auto;"]);
|
|
12
12
|
export var StyledListPageToolHeader = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledListPageToolHeader",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_33_0__sc-1eq7fzi-2"
|
|
15
15
|
})(["flex:0 0 auto;padding-bottom:", "px;"], spacing.lg);
|
|
16
16
|
export var StyledListPageControl = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledListPageControl",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_33_0__sc-1eq7fzi-3"
|
|
19
19
|
})(["flex:", ";", " ", ""], function (_ref) {
|
|
20
20
|
var $block = _ref.$block;
|
|
21
21
|
return $block ? '1 0 auto' : '0 0 auto';
|
|
@@ -32,18 +32,18 @@ export var StyledListPageControl = /*#__PURE__*/styled.div.withConfig({
|
|
|
32
32
|
});
|
|
33
33
|
export var StyledListPageContentControls = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledListPageContentControls",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-11_33_0__sc-1eq7fzi-4"
|
|
36
36
|
})(["align-items:center;display:flex;flex:0 0 auto;justify-content:space-between;padding:", "px 0;", " + ", "{margin-left:", "px;}"], spacing.md, StyledListPageControl, StyledListPageControl, spacing.lg);
|
|
37
37
|
export var StyledListPageBody = /*#__PURE__*/styled.div.withConfig({
|
|
38
38
|
displayName: "StyledListPageBody",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-11_33_0__sc-1eq7fzi-5"
|
|
40
40
|
})(["display:flex;flex:1 0 auto;padding-top:", "px;"], spacing.md);
|
|
41
41
|
export var StyledListPageBodyContent = /*#__PURE__*/styled.div.withConfig({
|
|
42
42
|
displayName: "StyledListPageBodyContent",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-11_33_0__sc-1eq7fzi-6"
|
|
44
44
|
})(["flex:1 1 auto;"]);
|
|
45
45
|
export var StyledListPage = /*#__PURE__*/styled.div.withConfig({
|
|
46
46
|
displayName: "StyledListPage",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-11_33_0__sc-1eq7fzi-7"
|
|
48
48
|
})(["display:flex;flex-direction:row;height:100%;width:100%;", " + ", "{padding-top:", "px;}", " + ", "{border-top-color:", ";border-top-style:solid;border-top-width:1px;}", " + ", ",", " + ", "{border-top-color:", ";border-top-style:solid;border-top-width:1px;}", " + ", "{padding-top:0;}"], StyledListPageBanner, StyledListPageToolHeader, spacing.lg, StyledListPageContentControls, StyledListPageContentControls, colors.gray85, StyledListPageToolHeader, StyledListPageContentControls, StyledListPageToolHeader, StyledListPageBody, colors.gray85, StyledListPageContentControls, StyledListPageBody);
|
|
49
49
|
//# sourceMappingURL=ListPage.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPage.types.js","names":[],"sources":["../../src/ListPage/ListPage.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport type ControlVariant = 'align-right' | 'block' | 'search'\n\nexport interface DivProps extends Props {}\n\nexport interface ListPageProps extends Props {}\n\nexport interface ListPageControlProps extends Props {\n /**\n * Controls whether the contents will align to the right\n * @since 10.19.0\n */\n alignRight?: boolean\n /**\n * Controls whether the contents will attmpt to span the full width\n * @since 10.19.0\n */\n block?: boolean\n /**\n * Sets width to a specific size for Search to fit\n * @since 10.19.0\n */\n search?: boolean\n /**\n * @deprecated please use the equivalent boolean prop instead\n * @since 10.19.0\n */\n variant?: ControlVariant\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ListPage.types.js","names":[],"sources":["../../src/ListPage/ListPage.types.ts"],"sourcesContent":["import type { Props } from '../_utils/types'\n\nexport type ControlVariant = 'align-right' | 'block' | 'search'\n\nexport interface DivProps extends Props {}\n\nexport interface ListPageProps extends Props {}\n\nexport interface ListPageControlProps extends Props {\n /**\n * Controls whether the contents will align to the right\n * @since 10.19.0\n */\n alignRight?: boolean\n /**\n * Controls whether the contents will attmpt to span the full width\n * @since 10.19.0\n */\n block?: boolean\n /**\n * Sets width to a specific size for Search to fit\n * @since 10.19.0\n */\n search?: boolean\n /**\n * @deprecated please use the equivalent boolean prop instead\n * @deprecatedSince 11\n * @since 10.19.0\n */\n variant?: ControlVariant\n}\n"],"mappings":""}
|
|
@@ -7,11 +7,11 @@ export var loaderTransitionDuration = 250;
|
|
|
7
7
|
var movingStripes = /*#__PURE__*/keyframes(["from{background-position:", "px 0;}100%{background-position:0 ", "px;}"], backgroundSize, backgroundSize);
|
|
8
8
|
export var StyledLoader = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledLoader",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_33_0__sc-wgvjj9-0"
|
|
11
11
|
})(["display:block;height:100%;left:0;min-width:12px;position:absolute;transition:width ", "ms ease-out;top:0;"], loaderTransitionDuration);
|
|
12
12
|
export var StyledGradient = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledGradient",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_33_0__sc-wgvjj9-1"
|
|
15
15
|
})(["height:100%;", ""], function (_ref) {
|
|
16
16
|
var $animated = _ref.$animated;
|
|
17
17
|
return $animated ? css(["animation:", " 0.5s linear infinite;background-image:linear-gradient( 45deg,", " 26%,", " 25%,", " 51%,", " 50%,", " 76%,", " 75%,", " );background-size:", "px ", "px;"], movingStripes, color1, color2, color2, color1, color1, color2, color2, backgroundSize, backgroundSize) : css(["background-color:", ";"], colors.blue50);
|
|
@@ -11,15 +11,15 @@ var optionMinHeight = 32;
|
|
|
11
11
|
// Do not merge with StyledMenu, needed for max-height working in IE
|
|
12
12
|
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledWrapper",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_33_0__sc-z984sz-0"
|
|
15
15
|
})(["border-radius:inherit;display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
|
|
16
16
|
export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledMenu",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_33_0__sc-z984sz-1"
|
|
19
19
|
})(["border-radius:inherit;display:flex;flex-direction:column;outline:0;width:100%;"]);
|
|
20
20
|
export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "StyledOptions",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_33_0__sc-z984sz-2"
|
|
23
23
|
})(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;&:focus-visible{", " margin:-1px;}"], optionMinHeight, function (_ref) {
|
|
24
24
|
var _ref$$scrollable = _ref.$scrollable,
|
|
25
25
|
$scrollable = _ref$$scrollable === void 0 ? true : _ref$$scrollable;
|
|
@@ -27,26 +27,26 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
|
|
|
27
27
|
}, spacing.sm, getFocus());
|
|
28
28
|
export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
|
|
29
29
|
displayName: "StyledGrip",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-11_33_0__sc-z984sz-3"
|
|
31
31
|
})(["padding:0 2px;height:24px;visibility:hidden;"]);
|
|
32
32
|
export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
|
|
33
33
|
displayName: "StyledHeader",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-11_33_0__sc-z984sz-4"
|
|
35
35
|
})([""]);
|
|
36
36
|
export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledSearch",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-11_33_0__sc-z984sz-5"
|
|
39
39
|
})(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
|
|
40
40
|
export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledGroup",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-11_33_0__sc-z984sz-6"
|
|
43
43
|
})(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}"], getTypographyIntent('body'), colors.gray15, function (_ref2) {
|
|
44
44
|
var $clickable = _ref2.$clickable;
|
|
45
45
|
return $clickable ? 'pointer' : 'default';
|
|
46
46
|
}, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs);
|
|
47
47
|
export var StyledItem = /*#__PURE__*/styled.div.withConfig({
|
|
48
48
|
displayName: "StyledItem",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-11_33_0__sc-z984sz-7"
|
|
50
50
|
})(["", ";", " cursor:pointer;list-style-type:none;padding:", "px ", "px;a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref3) {
|
|
51
51
|
var as = _ref3.as;
|
|
52
52
|
return as === 'a' && css(["display:block;text-decoration:none;"]);
|
|
@@ -75,10 +75,10 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
75
75
|
});
|
|
76
76
|
export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
|
|
77
77
|
displayName: "StyledDroppable",
|
|
78
|
-
componentId: "core-
|
|
78
|
+
componentId: "core-11_33_0__sc-z984sz-8"
|
|
79
79
|
})(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
|
|
80
80
|
export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
|
|
81
81
|
displayName: "StyledFooter",
|
|
82
|
-
componentId: "core-
|
|
82
|
+
componentId: "core-11_33_0__sc-z984sz-9"
|
|
83
83
|
})(["border-top:1px solid ", ";border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;"], colors.gray85);
|
|
84
84
|
//# sourceMappingURL=MenuImperative.styles.js.map
|
|
@@ -18,15 +18,15 @@ export var modalPixelWidths = {
|
|
|
18
18
|
};
|
|
19
19
|
export var StyledModal = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledModal",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_33_0__sc-1ijdug2-0"
|
|
22
22
|
})(["display:flex;height:100vh;position:absolute;opacity:0;transition:0.3s opacity ease;width:100vw;z-index:0;&.", "{opacity:1;}&.", "{opacity:0;}"], fadeInClassName, fadeOutClassName);
|
|
23
23
|
export var StyledModalButtons = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledModalButtons",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-11_33_0__sc-1ijdug2-1"
|
|
26
26
|
})(["display:flex;flex:0 0 auto;margin-left:", "px;> * + *{margin-left:", "px;}"], spacing.lg, spacing.sm);
|
|
27
27
|
export var StyledModalContainer = /*#__PURE__*/styled(Card).withConfig({
|
|
28
28
|
displayName: "StyledModalContainer",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-11_33_0__sc-1ijdug2-2"
|
|
30
30
|
})(["display:flex;flex-direction:row;position:absolute;z-index:2;", " ", ""], function (_ref) {
|
|
31
31
|
var $placement = _ref.$placement;
|
|
32
32
|
if ($placement === 'top') {
|
|
@@ -44,11 +44,11 @@ export var StyledModalContainer = /*#__PURE__*/styled(Card).withConfig({
|
|
|
44
44
|
});
|
|
45
45
|
export var StyledModalFooter = /*#__PURE__*/styled.div.withConfig({
|
|
46
46
|
displayName: "StyledModalFooter",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-11_33_0__sc-1ijdug2-3"
|
|
48
48
|
})(["align-items:center;display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;padding:", "px ", "px ", "px;"], spacing.xl, spacing.xxl, spacing.xxl);
|
|
49
49
|
export var StyledModalBody = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledModalBody",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-11_33_0__sc-1ijdug2-4"
|
|
52
52
|
})(["", " box-sizing:border-box;color:", ";display:flex;flex-direction:column;max-width:", ";overflow:auto;", " > ", "{padding-left:0;padding-right:0;&:first-child > ", "{padding-top:0;}}", ""], getTypographyIntent('body'), colors.gray15, modalMaxWidth, function (_ref3) {
|
|
53
53
|
var noSideSpacing = _ref3.noSideSpacing;
|
|
54
54
|
return css(["padding:", "px ", "px;"], spacing.xl, noSideSpacing ? 0 : spacing.xxl);
|
|
@@ -58,37 +58,37 @@ export var StyledModalBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
58
58
|
});
|
|
59
59
|
export var StyledModalContent = /*#__PURE__*/styled.div.withConfig({
|
|
60
60
|
displayName: "StyledModalContent",
|
|
61
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-11_33_0__sc-1ijdug2-5"
|
|
62
62
|
})(["display:flex;flex-direction:column;max-height:90vh;overflow:hidden;width:100%;"]);
|
|
63
63
|
export var StyledModalFooterNotation = /*#__PURE__*/styled(Typography).withConfig({
|
|
64
64
|
displayName: "StyledModalFooterNotation",
|
|
65
|
-
componentId: "core-
|
|
65
|
+
componentId: "core-11_33_0__sc-1ijdug2-6"
|
|
66
66
|
})(["flex-grow:1;"]);
|
|
67
67
|
export var StyledModalHeader = /*#__PURE__*/styled.div.withConfig({
|
|
68
68
|
displayName: "StyledModalHeader",
|
|
69
|
-
componentId: "core-
|
|
69
|
+
componentId: "core-11_33_0__sc-1ijdug2-7"
|
|
70
70
|
})(["align-items:flex-start;color:", ";display:flex;flex:0 0 auto;padding:", "px ", "px;position:relative;", ""], colors.gray10, spacing.xl, spacing.xxl, function (_ref5) {
|
|
71
71
|
var $isBodyScrolled = _ref5.$isBodyScrolled;
|
|
72
72
|
return css(["border-bottom:1px solid ", ";"], $isBodyScrolled ? colors.gray85 : 'transparent');
|
|
73
73
|
});
|
|
74
74
|
export var StyledModalHeading = /*#__PURE__*/styled.div.withConfig({
|
|
75
75
|
displayName: "StyledModalHeading",
|
|
76
|
-
componentId: "core-
|
|
76
|
+
componentId: "core-11_33_0__sc-1ijdug2-8"
|
|
77
77
|
})(["", " align-items:center;display:flex;flex:1 1 auto;min-height:36px;padding-right:", "px;"], getTypographyIntent('h2'), spacing.lg);
|
|
78
78
|
export var StyledModalCancel = /*#__PURE__*/styled.div.withConfig({
|
|
79
79
|
displayName: "StyledModalCancel",
|
|
80
|
-
componentId: "core-
|
|
80
|
+
componentId: "core-11_33_0__sc-1ijdug2-9"
|
|
81
81
|
})(["flex:0 0 auto;"]);
|
|
82
82
|
export var StyledModalScrim = /*#__PURE__*/styled.div.withConfig({
|
|
83
83
|
displayName: "StyledModalScrim",
|
|
84
|
-
componentId: "core-
|
|
84
|
+
componentId: "core-11_33_0__sc-1ijdug2-10"
|
|
85
85
|
})(["background:hsla(200,8%,10%,0.6);height:100vh;left:0;position:absolute;top:0;width:100vw;z-index:1;"]);
|
|
86
86
|
export var StyledModalWarningIcon = /*#__PURE__*/styled(Warning).withConfig({
|
|
87
87
|
displayName: "StyledModalWarningIcon",
|
|
88
|
-
componentId: "core-
|
|
88
|
+
componentId: "core-11_33_0__sc-1ijdug2-11"
|
|
89
89
|
})(["color:", ";margin-right:", "px;"], colors.yellow40, spacing.sm);
|
|
90
90
|
export var StyledModalFooterSummary = /*#__PURE__*/styled.div.withConfig({
|
|
91
91
|
displayName: "StyledModalFooterSummary",
|
|
92
|
-
componentId: "core-
|
|
92
|
+
componentId: "core-11_33_0__sc-1ijdug2-12"
|
|
93
93
|
})(["", " border-top:1px solid ", ";border-bottom:1px solid ", ";padding:", "px ", "px;color:", ";font-style:italic;background-color:", ";margin:-", "px -", "px ", "px -", "px;flex:1 1 100%;"], getTypographyIntent('small'), colors.gray85, colors.gray85, spacing.md, spacing.xxl, colors.gray15, colors.gray98, spacing.xl, spacing.xxl, spacing.xl, spacing.xxl);
|
|
94
94
|
//# sourceMappingURL=Modal.styles.js.map
|