@procore/core-react 12.44.0 → 12.46.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/CHANGELOG.md +34 -0
- package/dist/AnchorNavigation/AnchorNavigation.js +12 -8
- package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -1
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +5 -5
- package/dist/AnchorNavigation/AnchorNavigation.styles.js.map +1 -1
- package/dist/AnchorNavigation/AnchorNavigation.types.d.ts +1 -0
- package/dist/AnchorNavigation/AnchorNavigation.types.js.map +1 -1
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.js +3 -1
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Button/Button.types.d.ts +5 -0
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +9 -9
- 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.js +5 -2
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/Dropdown/Dropdown.types.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.d.ts +3 -5
- package/dist/EmptyState/EmptyState.js.map +1 -1
- package/dist/EmptyState/EmptyState.styles.d.ts +2 -2
- package/dist/EmptyState/EmptyState.styles.js +10 -10
- package/dist/EmptyState/EmptyState.styles.js.map +1 -1
- package/dist/EmptyState/EmptyState.types.d.ts +11 -0
- package/dist/EmptyState/EmptyState.types.js.map +1 -1
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +3 -3
- 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.js +1 -0
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.d.ts +2 -4
- 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 +6 -6
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.js +11 -4
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.d.ts +518 -8
- package/dist/Form/Form.styles.js +15 -15
- package/dist/Form/Form.styles.js.map +1 -1
- package/dist/Form/Form.types.d.ts +2 -3
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Form/stories/util.js +3 -14
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.js +6 -4
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +13 -13
- package/dist/MenuImperative/MenuImperative.styles.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.types.d.ts +2 -4
- package/dist/MenuImperative/MenuImperative.types.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.js +0 -2
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +6 -0
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.js +0 -1
- package/dist/PillSelect/PillSelect.js.map +1 -1
- 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 +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.js +2 -1
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.js +4 -1
- package/dist/Slider/Slider.js.map +1 -1
- package/dist/Slider/Slider.styles.d.ts +5 -1
- package/dist/Slider/Slider.styles.js +16 -11
- package/dist/Slider/Slider.styles.js.map +1 -1
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +39 -39
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/OverdueContext.d.ts +4 -0
- package/dist/Table/OverdueContext.js +10 -0
- package/dist/Table/OverdueContext.js.map +1 -0
- package/dist/Table/OverdueContext.types.d.ts +6 -0
- package/dist/Table/OverdueContext.types.js +2 -0
- package/dist/Table/OverdueContext.types.js.map +1 -0
- package/dist/Table/Table.js +76 -23
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.d.ts +19 -9
- package/dist/Table/Table.styles.js +67 -56
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/Table/Table.types.d.ts +7 -0
- package/dist/Table/Table.types.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +41 -28
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.d.ts +6 -0
- package/dist/Tabs/Tabs.styles.js +29 -20
- package/dist/Tabs/Tabs.styles.js.map +1 -1
- package/dist/Tabs/Tabs.types.d.ts +8 -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.js +4 -0
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/Thumbnail.types.d.ts +12 -0
- package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
- package/dist/Thumbnail/ThumbnailCaption.d.ts +1 -1
- package/dist/Thumbnail/ThumbnailCaption.js +15 -7
- package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.d.ts +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.js +14 -4
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +34 -6
- package/dist/ThumbnailGrid/ThumbnailGrid.types.js.map +1 -1
- 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.js +20 -4
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.d.ts +2 -0
- package/dist/Token/Token.styles.js +14 -5
- package/dist/Token/Token.styles.js.map +1 -1
- package/dist/Token/Token.types.d.ts +3 -1
- package/dist/Token/Token.types.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.js +23 -18
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Tooltip/Tooltip.styles.js +3 -3
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.styles.js +10 -10
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +782 -30
- package/dist/_locales/de-DE.json +22 -2
- package/dist/_locales/en-AU.json +22 -2
- package/dist/_locales/en-CA.json +22 -2
- package/dist/_locales/en-GB.json +22 -2
- package/dist/_locales/en.json +4 -1
- package/dist/_locales/es-ES.json +23 -3
- package/dist/_locales/es.json +22 -2
- package/dist/_locales/fr-CA.json +23 -3
- package/dist/_locales/fr-FR.json +28 -8
- package/dist/_locales/is-IS.json +22 -2
- package/dist/_locales/it-IT.json +23 -3
- package/dist/_locales/ja-JP.json +23 -3
- package/dist/_locales/nb-NO.json +412 -1
- package/dist/_locales/pl-PL.json +22 -2
- package/dist/_locales/pseudo.json +4 -1
- package/dist/_locales/pt-BR.json +22 -2
- package/dist/_locales/pt-PT.json +27 -7
- package/dist/_locales/th-TH.json +22 -2
- package/dist/_locales/zh-SG.json +22 -2
- package/dist/_locales/zh-TW.json +25 -5
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +15 -15
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +24 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +50 -38
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +39 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +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 +824 -824
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +90 -88
- package/dist/_typedoc/Modal/Modal.types.json +48 -48
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
- package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +38 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +67 -67
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +122 -102
- package/dist/_typedoc/Tabs/Tabs.types.json +23 -22
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
- package/dist/_typedoc/Tile/Tile.types.json +8 -8
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +11 -11
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +88 -88
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/package.json +1 -1
package/dist/Form/Form.styles.js
CHANGED
|
@@ -3,7 +3,7 @@ import styled, { css } from 'styled-components';
|
|
|
3
3
|
import { checkboxSize } from '../Checkbox/Checkbox.styles';
|
|
4
4
|
import { StyledFieldHeader } from '../Field';
|
|
5
5
|
import { Required } from '../Required';
|
|
6
|
-
import {
|
|
6
|
+
import { StyledLabel as StyledLabelBase } from '../Semantic/Semantic.styles';
|
|
7
7
|
import { getTypographyIntent } from '../Typography';
|
|
8
8
|
import { colors } from '../_styles/colors';
|
|
9
9
|
import { spacing } from '../_styles/spacing';
|
|
@@ -23,7 +23,7 @@ function applyStylesOnlyToIE11(styles) {
|
|
|
23
23
|
}
|
|
24
24
|
export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "StyledFormFieldMain",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_46_0__sc-ncj3pf-0"
|
|
27
27
|
})(["-ms-grid-row:2;grid-row:2;", " ", " ", ""], function (_ref) {
|
|
28
28
|
var $colStart = _ref.$colStart,
|
|
29
29
|
$colEnd = _ref.$colEnd,
|
|
@@ -33,17 +33,17 @@ export var StyledFormFieldMain = /*#__PURE__*/styled.div.withConfig({
|
|
|
33
33
|
var $read = _ref2.$read;
|
|
34
34
|
return $read && css(["word-wrap:break-word;color:", ";", ";"], colors.gray15, getTypographyIntent('body'));
|
|
35
35
|
}, applyStylesOnlyToIE11("\n padding-left: ".concat(columnGutter, ";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n ")));
|
|
36
|
-
export var StyledLabel = /*#__PURE__*/styled(
|
|
36
|
+
export var StyledLabel = /*#__PURE__*/styled(StyledLabelBase).withConfig({
|
|
37
37
|
displayName: "StyledLabel",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_46_0__sc-ncj3pf-1"
|
|
39
39
|
})(["word-wrap:break-word;word-break:break-word;"]);
|
|
40
40
|
export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledDescription",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_46_0__sc-ncj3pf-2"
|
|
43
43
|
})(["", " color:", ";word-wrap:break-word;word-break:break-word;"], getTypographyIntent('body'), colors.gray45);
|
|
44
44
|
export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescription).withConfig({
|
|
45
45
|
displayName: "StyledCheckboxInlineDescription",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_46_0__sc-ncj3pf-3"
|
|
47
47
|
})(["margin-top:", "px;", ""], spacing.xs, function (_ref3) {
|
|
48
48
|
var $read = _ref3.$read;
|
|
49
49
|
if (!$read) {
|
|
@@ -52,7 +52,7 @@ export var StyledCheckboxInlineDescription = /*#__PURE__*/styled(StyledDescripti
|
|
|
52
52
|
});
|
|
53
53
|
export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withConfig({
|
|
54
54
|
displayName: "StyledFormFieldHeader",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_46_0__sc-ncj3pf-4"
|
|
56
56
|
})(["-ms-grid-row:1;grid-row:1;align-self:end;margin-bottom:", "px;", " ", " * + ", "{margin-top:", "px;}"], spacing.xs, function (_ref4) {
|
|
57
57
|
var $colStart = _ref4.$colStart,
|
|
58
58
|
$colEnd = _ref4.$colEnd,
|
|
@@ -61,20 +61,20 @@ export var StyledFormFieldHeader = /*#__PURE__*/styled(StyledFieldHeader).withCo
|
|
|
61
61
|
}, 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);
|
|
62
62
|
export var StyledFormFieldRequiredMark = /*#__PURE__*/styled(Required).withConfig({
|
|
63
63
|
displayName: "StyledFormFieldRequiredMark",
|
|
64
|
-
componentId: "core-
|
|
64
|
+
componentId: "core-12_46_0__sc-ncj3pf-5"
|
|
65
65
|
})(["padding-left:", "px;vertical-align:top;"], spacing.xs);
|
|
66
66
|
export var StyledFormFieldErrorIcon = /*#__PURE__*/styled(Error).withConfig({
|
|
67
67
|
displayName: "StyledFormFieldErrorIcon",
|
|
68
|
-
componentId: "core-
|
|
68
|
+
componentId: "core-12_46_0__sc-ncj3pf-6"
|
|
69
69
|
})(["vertical-align:sub;"]);
|
|
70
70
|
export var StyledFormFieldBanner = /*#__PURE__*/styled.div.withConfig({
|
|
71
71
|
displayName: "StyledFormFieldBanner",
|
|
72
|
-
componentId: "core-
|
|
72
|
+
componentId: "core-12_46_0__sc-ncj3pf-7"
|
|
73
73
|
})(["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'));
|
|
74
74
|
/** @deprecated The traditional field layout is deprecated */
|
|
75
75
|
export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
|
|
76
76
|
displayName: "StyledTraditionalFormColumn",
|
|
77
|
-
componentId: "core-
|
|
77
|
+
componentId: "core-12_46_0__sc-ncj3pf-8"
|
|
78
78
|
})(["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) {
|
|
79
79
|
var _ref5$$fullWidth = _ref5.$fullWidth,
|
|
80
80
|
$fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
|
|
@@ -86,15 +86,15 @@ export var StyledTraditionalFormColumn = /*#__PURE__*/styled.div.withConfig({
|
|
|
86
86
|
});
|
|
87
87
|
export var StyledFormOutputTextArea = /*#__PURE__*/styled.span.withConfig({
|
|
88
88
|
displayName: "StyledFormOutputTextArea",
|
|
89
|
-
componentId: "core-
|
|
89
|
+
componentId: "core-12_46_0__sc-ncj3pf-9"
|
|
90
90
|
})(["white-space:pre-wrap;"]);
|
|
91
91
|
export var StyledFormOutputFiledset = /*#__PURE__*/styled.fieldset.withConfig({
|
|
92
92
|
displayName: "StyledFormOutputFiledset",
|
|
93
|
-
componentId: "core-
|
|
93
|
+
componentId: "core-12_46_0__sc-ncj3pf-10"
|
|
94
94
|
})(["border:none;padding:0;margin-top:", "px;"], spacing.xs);
|
|
95
95
|
export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
|
|
96
96
|
displayName: "StyledFormRow",
|
|
97
|
-
componentId: "core-
|
|
97
|
+
componentId: "core-12_46_0__sc-ncj3pf-11"
|
|
98
98
|
})(["", ""], function (_ref7) {
|
|
99
99
|
var _ref7$$traditional = _ref7.$traditional,
|
|
100
100
|
$traditional = _ref7$$traditional === void 0 ? false : _ref7$$traditional,
|
|
@@ -105,6 +105,6 @@ export var StyledFormRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
105
105
|
export var formWrapper = /*#__PURE__*/css(["display:inherit;flex-direction:inherit;height:inherit;max-height:inherit;"]);
|
|
106
106
|
export var StyledForm = /*#__PURE__*/styled.div.withConfig({
|
|
107
107
|
displayName: "StyledForm",
|
|
108
|
-
componentId: "core-
|
|
108
|
+
componentId: "core-12_46_0__sc-ncj3pf-12"
|
|
109
109
|
})(["", ""], formWrapper);
|
|
110
110
|
//# sourceMappingURL=Form.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.styles.js","names":["Error","styled","css","checkboxSize","StyledFieldHeader","Required","Label","getTypographyIntent","colors","spacing","columnGutter","defaultLineHeight","textEditorOutputListPadding","traditionalBorder","traditionalBgGray","traditionalPadding","traditionalFontSize","traditionalLineHeight","getGridColumns","colStart","colEnd","colIeSpan","applyStylesOnlyToIE11","styles","StyledFormFieldMain","div","withConfig","displayName","componentId","_ref","$colStart","$colEnd","$colIeSpan","_ref2","$read","gray15","concat","StyledLabel","StyledDescription","gray45","StyledCheckboxInlineDescription","xs","_ref3","md","StyledFormFieldHeader","_ref4","StyledFormFieldRequiredMark","StyledFormFieldErrorIcon","StyledFormFieldBanner","red50","StyledTraditionalFormColumn","_ref5","_ref5$$fullWidth","$fullWidth","_ref6","_ref6$$output","$output","StyledFormOutputTextArea","span","StyledFormOutputFiledset","fieldset","StyledFormRow","_ref7","_ref7$$traditional","$traditional","_ref7$$read","white","formWrapper","StyledForm"],"sources":["../../src/Form/Form.styles.tsx"],"sourcesContent":["import { Error } from '@procore/core-icons/dist'\nimport styled, { css } from 'styled-components'\nimport { checkboxSize } from '../Checkbox/Checkbox.styles'\nimport { StyledFieldHeader } from '../Field'\nimport { Required } from '../Required'\nimport { Label } from '../Semantic'\nimport { getTypographyIntent } from '../Typography'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nconst columnGutter = '24px'\nconst defaultLineHeight = '20px'\nconst textEditorOutputListPadding = '10px 0 10px 40px'\n\nconst traditionalBorder = 'rgb(216, 216, 216)'\nconst traditionalBgGray = 'rgb(242, 242, 242)'\nconst traditionalPadding = '10px'\nconst traditionalFontSize = '13px'\nconst traditionalLineHeight = '20px'\n\nfunction getGridColumns(colStart: number, colEnd: number, colIeSpan: number) {\n return css`\n -ms-grid-column: ${colStart};\n grid-column-start: ${colStart};\n grid-column-end: ${colEnd};\n -ms-grid-column-span: ${colIeSpan};\n `\n}\n\nfunction applyStylesOnlyToIE11(styles: string) {\n return css`\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n ${styles}\n }\n `\n}\n\nexport const StyledFormFieldMain = styled.div<{\n $read: boolean\n $colStart: number\n $colEnd: number\n $colIeSpan: number\n}>`\n -ms-grid-row: 2;\n grid-row: 2;\n\n ${({ $colStart, $colEnd, $colIeSpan }) =>\n getGridColumns($colStart, $colEnd, $colIeSpan)}\n\n ${({ $read }) =>\n $read &&\n css`\n word-wrap: break-word;\n color: ${colors.gray15};\n ${getTypographyIntent('body')};\n `}\n\n // IE11 support grid-column-gap\n // bug: if a field's first column isn't at 1,\n // the field will fill the padding and be wider\n ${applyStylesOnlyToIE11(`\n padding-left: ${columnGutter};\n\n &:nth-child(2) {\n padding-left: 0;\n }\n `)}\n`\n\nexport const StyledLabel = styled(Label)`\n word-wrap: break-word;\n word-break: break-word;\n`\n\nexport const StyledDescription = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray45};\n word-wrap: break-word;\n word-break: break-word;\n`\n\nexport const StyledCheckboxInlineDescription = styled(StyledDescription)<{\n $read: boolean\n}>`\n margin-top: ${spacing.xs}px;\n ${({ $read }) => {\n if (!$read) {\n return css`\n padding-left: ${checkboxSize + spacing.md}px;\n `\n }\n }}\n`\n\nexport const StyledFormFieldHeader = styled(StyledFieldHeader)<{\n $colStart: number\n $colEnd: number\n $colIeSpan: number\n}>`\n -ms-grid-row: 1;\n grid-row: 1;\n align-self: end;\n margin-bottom: ${spacing.xs}px;\n\n ${({ $colStart, $colEnd, $colIeSpan }) =>\n getGridColumns($colStart, $colEnd, $colIeSpan)}\n\n // IE11 support grid-column-gap\n // bug: if a field's first column isn't at 1,\n // the field will fill the padding and be wider\n ${applyStylesOnlyToIE11(`\n padding-left: ${columnGutter};\n\n &:first-child {\n padding-left: 0;\n }\n\n ${StyledFormFieldMain} {\n padding-left: ${columnGutter};\n\n &:nth-child(2) {\n padding-left: 0;\n }\n }\n `)}\n\n * + ${StyledDescription} {\n margin-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledFormFieldRequiredMark = styled(Required)`\n padding-left: ${spacing.xs}px;\n vertical-align: top;\n`\n\nexport const StyledFormFieldErrorIcon = styled(Error)`\n vertical-align: sub;\n`\n\nexport const StyledFormFieldBanner = styled.div`\n display: flex;\n align-items: flex-start;\n min-height: 22px;\n margin-top: ${spacing.xs}px;\n margin-bottom: 2px;\n word-break: break-word;\n word-wrap: break-word;\n color: ${colors.red50};\n\n ${getTypographyIntent('body')}\n`\n/** @deprecated The traditional field layout is deprecated */\nexport const StyledTraditionalFormColumn = styled.div<{\n $fullWidth?: boolean\n $output?: boolean\n}>`\n padding: ${traditionalPadding};\n align-self: center;\n height: 100%;\n\n &:nth-child(1) {\n -ms-grid-column: 1;\n }\n &:nth-child(2) {\n -ms-grid-column: 2;\n }\n &:nth-child(3) {\n -ms-grid-column: 3;\n }\n &:nth-child(4) {\n -ms-grid-column: 4;\n }\n\n ${({ $fullWidth = false }) =>\n $fullWidth &&\n css`\n grid-column: 2 / 5;\n -ms-grid-column-span: 3;\n `}\n\n ${({ $output = false }) =>\n $output &&\n css`\n font-weight: bold;\n font-size: ${traditionalFontSize};\n line-height: ${traditionalLineHeight};\n word-wrap: break-word;\n `}\n`\n\nexport const StyledFormOutputTextArea = styled.span`\n white-space: pre-wrap;\n`\n\nexport const StyledFormOutputFiledset = styled.fieldset`\n border: none;\n padding: 0;\n margin-top: ${spacing.xs}px;\n`\nexport const StyledFormRow = styled.div<{\n /** @deprecated The traditional field layout is deprecated */\n $traditional?: boolean\n $read?: boolean\n}>`\n ${({ $traditional = false, $read = false }) =>\n $traditional\n ? css`\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: 20% 30% 20% 30%;\n grid-template-columns: 20% 30% 20% 30%;\n -ms-grid-rows: auto;\n grid-template-rows: auto;\n border-top: 1px solid ${traditionalBorder};\n background-color: ${colors.white};\n\n &:last-of-type {\n border-bottom: 1px solid ${traditionalBorder};\n }\n\n ${$read &&\n `\n &:nth-child(2n + 1) {\n background-color: ${traditionalBgGray};\n }\n \n & > ${StyledTraditionalFormColumn}:nth-child(2) {\n border-right: 1px solid ${traditionalBorder};\n \n &:last-child {\n border-right: none;\n }\n }\n `}\n `\n : css`\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr);\n grid-template-columns: repeat(12, minmax(0, 1fr));\n -ms-grid-rows: minmax(${defaultLineHeight}, max-content)\n minmax(${defaultLineHeight}, max-content);\n grid-template-rows: minmax(${defaultLineHeight}, auto) minmax(\n ${defaultLineHeight},\n auto\n );\n justify-content: space-between;\n grid-column-gap: ${columnGutter};\n `}\n`\n\nexport const formWrapper = css`\n display: inherit;\n flex-direction: inherit;\n height: inherit;\n max-height: inherit;\n`\n\nexport const StyledForm = styled.div`\n ${formWrapper}\n`\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,IAAMC,YAAY,GAAG,MAAM;AAC3B,IAAMC,iBAAiB,GAAG,MAAM;AAChC,IAAMC,2BAA2B,GAAG,kBAAkB;AAEtD,IAAMC,iBAAiB,GAAG,oBAAoB;AAC9C,IAAMC,iBAAiB,GAAG,oBAAoB;AAC9C,IAAMC,kBAAkB,GAAG,MAAM;AACjC,IAAMC,mBAAmB,GAAG,MAAM;AAClC,IAAMC,qBAAqB,GAAG,MAAM;AAEpC,SAASC,cAAcA,CAACC,QAAgB,EAAEC,MAAc,EAAEC,SAAiB,EAAE;EAC3E,OAAOnB,GAAG,kGACWiB,QAAQ,EACNA,QAAQ,EACVC,MAAM,EACDC,SAAS;AAErC;AAEA,SA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AM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAChCuC,WAAW,CACd"}
|
|
1
|
+
{"version":3,"file":"Form.styles.js","names":["Error","styled","css","checkboxSize","StyledFieldHeader","Required","StyledLabel","StyledLabelBase","getTypographyIntent","colors","spacing","columnGutter","defaultLineHeight","textEditorOutputListPadding","traditionalBorder","traditionalBgGray","traditionalPadding","traditionalFontSize","traditionalLineHeight","getGridColumns","colStart","colEnd","colIeSpan","applyStylesOnlyToIE11","styles","StyledFormFieldMain","div","withConfig","displayName","componentId","_ref","$colStart","$colEnd","$colIeSpan","_ref2","$read","gray15","concat","StyledDescription","gray45","StyledCheckboxInlineDescription","xs","_ref3","md","StyledFormFieldHeader","_ref4","StyledFormFieldRequiredMark","StyledFormFieldErrorIcon","StyledFormFieldBanner","red50","StyledTraditionalFormColumn","_ref5","_ref5$$fullWidth","$fullWidth","_ref6","_ref6$$output","$output","StyledFormOutputTextArea","span","StyledFormOutputFiledset","fieldset","StyledFormRow","_ref7","_ref7$$traditional","$traditional","_ref7$$read","white","formWrapper","StyledForm"],"sources":["../../src/Form/Form.styles.tsx"],"sourcesContent":["import { Error } from '@procore/core-icons/dist'\nimport styled, { css } from 'styled-components'\nimport { checkboxSize } from '../Checkbox/Checkbox.styles'\nimport { StyledFieldHeader } from '../Field'\nimport { Required } from '../Required'\nimport { StyledLabel as StyledLabelBase } from '../Semantic/Semantic.styles'\nimport { getTypographyIntent } from '../Typography'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nconst columnGutter = '24px'\nconst defaultLineHeight = '20px'\nconst textEditorOutputListPadding = '10px 0 10px 40px'\n\nconst traditionalBorder = 'rgb(216, 216, 216)'\nconst traditionalBgGray = 'rgb(242, 242, 242)'\nconst traditionalPadding = '10px'\nconst traditionalFontSize = '13px'\nconst traditionalLineHeight = '20px'\n\nfunction getGridColumns(colStart: number, colEnd: number, colIeSpan: number) {\n return css`\n -ms-grid-column: ${colStart};\n grid-column-start: ${colStart};\n grid-column-end: ${colEnd};\n -ms-grid-column-span: ${colIeSpan};\n `\n}\n\nfunction applyStylesOnlyToIE11(styles: string) {\n return css`\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n ${styles}\n }\n `\n}\n\nexport const StyledFormFieldMain = styled.div<{\n $read: boolean\n $colStart: number\n $colEnd: number\n $colIeSpan: number\n}>`\n -ms-grid-row: 2;\n grid-row: 2;\n\n ${({ $colStart, $colEnd, $colIeSpan }) =>\n getGridColumns($colStart, $colEnd, $colIeSpan)}\n\n ${({ $read }) =>\n $read &&\n css`\n word-wrap: break-word;\n color: ${colors.gray15};\n ${getTypographyIntent('body')};\n `}\n\n // IE11 support grid-column-gap\n // bug: if a field's first column isn't at 1,\n // the field will fill the padding and be wider\n ${applyStylesOnlyToIE11(`\n padding-left: ${columnGutter};\n\n &:nth-child(2) {\n padding-left: 0;\n }\n `)}\n`\n\nexport const StyledLabel = styled(StyledLabelBase)`\n word-wrap: break-word;\n word-break: break-word;\n`\n\nexport const StyledDescription = styled.div`\n ${getTypographyIntent('body')}\n color: ${colors.gray45};\n word-wrap: break-word;\n word-break: break-word;\n`\n\nexport const StyledCheckboxInlineDescription = styled(StyledDescription)<{\n $read: boolean\n}>`\n margin-top: ${spacing.xs}px;\n ${({ $read }) => {\n if (!$read) {\n return css`\n padding-left: ${checkboxSize + spacing.md}px;\n `\n }\n }}\n`\n\nexport const StyledFormFieldHeader = styled(StyledFieldHeader)<{\n $colStart: number\n $colEnd: number\n $colIeSpan: number\n}>`\n -ms-grid-row: 1;\n grid-row: 1;\n align-self: end;\n margin-bottom: ${spacing.xs}px;\n\n ${({ $colStart, $colEnd, $colIeSpan }) =>\n getGridColumns($colStart, $colEnd, $colIeSpan)}\n\n // IE11 support grid-column-gap\n // bug: if a field's first column isn't at 1,\n // the field will fill the padding and be wider\n ${applyStylesOnlyToIE11(`\n padding-left: ${columnGutter};\n\n &:first-child {\n padding-left: 0;\n }\n\n ${StyledFormFieldMain} {\n padding-left: ${columnGutter};\n\n &:nth-child(2) {\n padding-left: 0;\n }\n }\n `)}\n\n * + ${StyledDescription} {\n margin-top: ${spacing.xs}px;\n }\n`\n\nexport const StyledFormFieldRequiredMark = styled(Required)`\n padding-left: ${spacing.xs}px;\n vertical-align: top;\n`\n\nexport const StyledFormFieldErrorIcon = styled(Error)`\n vertical-align: sub;\n`\n\nexport const StyledFormFieldBanner = styled.div`\n display: flex;\n align-items: flex-start;\n min-height: 22px;\n margin-top: ${spacing.xs}px;\n margin-bottom: 2px;\n word-break: break-word;\n word-wrap: break-word;\n color: ${colors.red50};\n\n ${getTypographyIntent('body')}\n`\n/** @deprecated The traditional field layout is deprecated */\nexport const StyledTraditionalFormColumn = styled.div<{\n $fullWidth?: boolean\n $output?: boolean\n}>`\n padding: ${traditionalPadding};\n align-self: center;\n height: 100%;\n\n &:nth-child(1) {\n -ms-grid-column: 1;\n }\n &:nth-child(2) {\n -ms-grid-column: 2;\n }\n &:nth-child(3) {\n -ms-grid-column: 3;\n }\n &:nth-child(4) {\n -ms-grid-column: 4;\n }\n\n ${({ $fullWidth = false }) =>\n $fullWidth &&\n css`\n grid-column: 2 / 5;\n -ms-grid-column-span: 3;\n `}\n\n ${({ $output = false }) =>\n $output &&\n css`\n font-weight: bold;\n font-size: ${traditionalFontSize};\n line-height: ${traditionalLineHeight};\n word-wrap: break-word;\n `}\n`\n\nexport const StyledFormOutputTextArea = styled.span`\n white-space: pre-wrap;\n`\n\nexport const StyledFormOutputFiledset = styled.fieldset`\n border: none;\n padding: 0;\n margin-top: ${spacing.xs}px;\n`\nexport const StyledFormRow = styled.div<{\n /** @deprecated The traditional field layout is deprecated */\n $traditional?: boolean\n $read?: boolean\n}>`\n ${({ $traditional = false, $read = false }) =>\n $traditional\n ? css`\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: 20% 30% 20% 30%;\n grid-template-columns: 20% 30% 20% 30%;\n -ms-grid-rows: auto;\n grid-template-rows: auto;\n border-top: 1px solid ${traditionalBorder};\n background-color: ${colors.white};\n\n &:last-of-type {\n border-bottom: 1px solid ${traditionalBorder};\n }\n\n ${$read &&\n `\n &:nth-child(2n + 1) {\n background-color: ${traditionalBgGray};\n }\n \n & > ${StyledTraditionalFormColumn}:nth-child(2) {\n border-right: 1px solid ${traditionalBorder};\n \n &:last-child {\n border-right: none;\n }\n }\n `}\n `\n : css`\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)\n minmax(0, 1fr);\n grid-template-columns: repeat(12, minmax(0, 1fr));\n -ms-grid-rows: minmax(${defaultLineHeight}, max-content)\n minmax(${defaultLineHeight}, max-content);\n grid-template-rows: minmax(${defaultLineHeight}, auto) minmax(\n ${defaultLineHeight},\n auto\n );\n justify-content: space-between;\n grid-column-gap: ${columnGutter};\n `}\n`\n\nexport const formWrapper = css`\n display: inherit;\n flex-direction: inherit;\n height: inherit;\n max-height: inherit;\n`\n\nexport const StyledForm = styled.div`\n ${formWrapper}\n`\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,WAAW,IAAIC,eAAe,QAAQ,6BAA6B;AAC5E,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,IAAMC,YAAY,GAAG,MAAM;AAC3B,IAAMC,iBAAiB,GAAG,MAAM;AAChC,IAAMC,2BAA2B,GAAG,kBAAkB;AAEtD,IAAMC,iBAAiB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AG5CqB,KAAK,4EAAAE,MAAA,CAGiBtB,iBAAiB,sDAAAsB,MAAA,CAGjCa,2BAA2B,6DAAAb,MAAA,CACLvB,iBAAiB,6HAM9C,IAEHZ,GAAG,ybAQuBU,iBAAiB,EAC9BA,iBAAiB,EACCA,iBAAiB,EACxCA,iBAAiB,EAIJD,YAAY,CAChC;AAAA,EACR;AAED,OAAO,IAAMwD,WAAW,gBAAGjE,GAAG,+EAK7B;AAED,OAAO,IAAMkE,UAAU,gBAAGnE,MAAM,CAACyB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAChCsC,WAAW,CACd"}
|
|
@@ -252,13 +252,12 @@ export interface BaseFieldProps<Value, ComponentProps extends FormFieldValueComp
|
|
|
252
252
|
*/
|
|
253
253
|
children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode;
|
|
254
254
|
/**
|
|
255
|
-
* Starting location of column.
|
|
256
|
-
* and is not necessary.
|
|
255
|
+
* Starting location of column.
|
|
257
256
|
* @since 10.19.0
|
|
258
257
|
* */
|
|
259
258
|
colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
260
259
|
/**
|
|
261
|
-
* Width of column.
|
|
260
|
+
* Width of column.
|
|
262
261
|
* @default 6
|
|
263
262
|
* @since 10.19.0
|
|
264
263
|
*/
|
|
@@ -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 Locale,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type {\n SelectButtonProps,\n SelectOptionProps,\n SelectProps,\n} 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 [Yup](https://github.com/jquense/yup) object schema to\n * validate all values.\n * ```\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * ```\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 * @deprecated The `traditional` field layout variant is deprecated and `variant` property will be removed\n * in a future version. Use the default field layout (`wxp`) instead.\n *\n * Note that in the default field layout, you need to explicitly specify the `colStart` property:\n *\n * BEFORE\n *\n * ```\n * <Form.Row>\n * <Form.Text />\n * <Form.Number />\n * </Form.Row>\n * ```\n *\n * AFTER\n *\n * ```\n * <Form.Row>\n * <Form.Text colStart={1} />\n * <Form.Number colStart={7} />\n * </Form.Row>\n * ```\n *\n * We plan to remove this limitation in a future release.\n *\n * @deprecatedSince 12.18.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 | (() => 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 * @deprecated The `traditional` field layout variant is deprecated and `variant` property will be removed\n * in a future version. Use the default field layout (`wxp`) instead.\n * @deprecatedSince 12.18.0\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 `field` prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the [props per view](#typescript-ans-as-prop-components)\n *\n * One of:\n *\n * `ReactComponent` or\n * `\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * `\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 *\n * One or all of:\n *\n * `Form.X.Create, Form.X.Read, Form.X.Update`\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 `bracket[notation]` or `dot.notation`.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup `required`\n * ```\n * <Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}\n * >\n * ```\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 * ```\n * (value: Value = any) => undefined | string | Promise<Value>\n * ```\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\n/** @deprecated The traditional field layout is deprecated */\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 * The display label of an option\n *\n * `(option: OptionItem) => string`\n *\n * Default:\n *\n * `(option: OptionItem) => option.label || option.name`\n *\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 /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n */\n locale?: Locale\n}\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 /** Future facing prop for decoupling the editor from the form. Will be required in v13. */\n textEditorComponent?: React.ComponentType<any>\n}\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 * @since 12.39.0\n */\n options: FieldSelectOptionItem[]\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 * The id of group `(group: GroupItem) => string | number`\n *\n * Default:\n *\n * `(group) => group.id`\n *\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 SelectOptionRendererProps extends SelectOptionProps {\n /**\n * @since 12.13.0\n */\n getId: OptionList<FieldSelectOptionItem>['getId']\n\n /**\n * @since 12.13.0\n */\n getLabel: OptionList<FieldSelectOptionItem>['getLabel']\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 `options` to define relation to\n * group in `optgroups`\n * `(option: OptionItem) => string | number`\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 * The display label of a group\n * `(group: GroupItem) => string`\n *\n * Default:\n * `(group: GroupItem) => group.label || group.name`\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in `optgroups`\n * `(group: GroupItem) => React.ReactNode`\n * @since 10.19.0\n * @deprecated The `groupHeaderRenderer` prop is deprecated and will be removed in a future version. Use `groupRenderer` instead to customize the entire group rendering, including the header.\n * @deprecatedSince 12.39.0\n */\n groupHeaderRenderer?: (\n group: GroupItem,\n params: {\n getId: OptionList<GroupItem>['getId']\n getLabel: OptionList<GroupItem>['getLabel']\n children?: React.ReactNode\n }\n ) => React.ReactNode\n\n /**\n * Callback for rendering group wrapper for each entry in `optgroups`\n * `(group: GroupItem) => React.ReactNode`\n * @since 12.39.0\n */\n groupRenderer?: (\n group: GroupItem,\n params: {\n getId: OptionList<GroupItem>['getId']\n getLabel: OptionList<GroupItem>['getLabel']\n children?: React.ReactNode\n }\n ) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From `Select.Option suggested`.\n * `(option: OptionItem) => boolean`\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 `option`\n * `(option: OptionItem) => React.ReactNode`\n * @since 10.19.0\n */\n optionRenderer?: (\n option: OptionItem,\n props?: SelectOptionRendererProps\n ) => 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 * Customize how search works\n * `(query: string, value: string) => boolean`\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 | 'groupRenderer'\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 Locale,\n NumberInputProps,\n} from '../NumberInput/NumberInput.types'\nimport type { PillSelectProps } from '../PillSelect/PillSelect.types'\nimport type {\n SelectButtonProps,\n SelectOptionProps,\n SelectProps,\n} 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 [Yup](https://github.com/jquense/yup) object schema to\n * validate all values.\n * ```\n * {`Yup.object().shape({\n * input_name: Yup.mixed().required()\n * })`}\n * ```\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 * @deprecated The `traditional` field layout variant is deprecated and `variant` property will be removed\n * in a future version. Use the default field layout (`wxp`) instead.\n *\n * Note that in the default field layout, you need to explicitly specify the `colStart` property:\n *\n * BEFORE\n *\n * ```\n * <Form.Row>\n * <Form.Text />\n * <Form.Number />\n * </Form.Row>\n * ```\n *\n * AFTER\n *\n * ```\n * <Form.Row>\n * <Form.Text colStart={1} />\n * <Form.Number colStart={7} />\n * </Form.Row>\n * ```\n *\n * We plan to remove this limitation in a future release.\n *\n * @deprecatedSince 12.18.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 | (() => 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 * @deprecated The `traditional` field layout variant is deprecated and `variant` property will be removed\n * in a future version. Use the default field layout (`wxp`) instead.\n * @deprecatedSince 12.18.0\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 `field` prop.\n * If using TypeScript, these components will need to extend a specific\n * type from Core React, read more about the [props per view](#typescript-ans-as-prop-components)\n *\n * One of:\n *\n * `ReactComponent` or\n * `\n * {\n * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'\n * }\n * `\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 *\n * One or all of:\n *\n * `Form.X.Create, Form.X.Read, Form.X.Update`\n * @since 10.19.0\n */\n children?: ((field: FormFieldAPI<Value>) => React.ReactNode) | React.ReactNode\n\n /**\n * Starting location of column.\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.\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 `bracket[notation]` or `dot.notation`.\n * @since 10.19.0\n */\n name: string\n\n /**\n * The required asterisk if not using Yup `required`\n * ```\n * <Form\n * validationSchema={Yup.object().shape({\n * input_name: Yup.mixed().required(),\n * })}\n * >\n * ```\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 * ```\n * (value: Value = any) => undefined | string | Promise<Value>\n * ```\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\n/** @deprecated The traditional field layout is deprecated */\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 * The display label of an option\n *\n * `(option: OptionItem) => string`\n *\n * Default:\n *\n * `(option: OptionItem) => option.label || option.name`\n *\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 /**\n * A string with a BCP 47 language tag or an array of such strings which specifies number formatting.\n * @defaultValue en-US\n * @since 10.19.0\n */\n locale?: Locale\n}\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 /** Future facing prop for decoupling the editor from the form. Will be required in v13. */\n textEditorComponent?: React.ComponentType<any>\n}\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 * @since 12.39.0\n */\n options: FieldSelectOptionItem[]\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 * The id of group `(group: GroupItem) => string | number`\n *\n * Default:\n *\n * `(group) => group.id`\n *\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 SelectOptionRendererProps extends SelectOptionProps {\n /**\n * @since 12.13.0\n */\n getId: OptionList<FieldSelectOptionItem>['getId']\n\n /**\n * @since 12.13.0\n */\n getLabel: OptionList<FieldSelectOptionItem>['getLabel']\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 `options` to define relation to\n * group in `optgroups`\n * `(option: OptionItem) => string | number`\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 * The display label of a group\n * `(group: GroupItem) => string`\n *\n * Default:\n * `(group: GroupItem) => group.label || group.name`\n * @since 10.19.0\n */\n groupGetLabel?: (group: GroupItem) => string\n\n /**\n * Callback for rendering header for each entry in `optgroups`\n * `(group: GroupItem) => React.ReactNode`\n * @since 10.19.0\n * @deprecated The `groupHeaderRenderer` prop is deprecated and will be removed in a future version. Use `groupRenderer` instead to customize the entire group rendering, including the header.\n * @deprecatedSince 12.39.0\n */\n groupHeaderRenderer?: (\n group: GroupItem,\n params: {\n getId: OptionList<GroupItem>['getId']\n getLabel: OptionList<GroupItem>['getLabel']\n children?: React.ReactNode\n }\n ) => React.ReactNode\n\n /**\n * Callback for rendering group wrapper for each entry in `optgroups`\n * `(group: GroupItem) => React.ReactNode`\n * @since 12.39.0\n */\n groupRenderer?: (\n group: GroupItem,\n params: {\n getId: OptionList<GroupItem>['getId']\n getLabel: OptionList<GroupItem>['getLabel']\n children?: React.ReactNode\n }\n ) => React.ReactNode\n\n /**\n * If nothing is selected, suggest this option. From `Select.Option suggested`.\n * `(option: OptionItem) => boolean`\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 `option`\n * `(option: OptionItem) => React.ReactNode`\n * @since 10.19.0\n */\n optionRenderer?: (\n option: OptionItem,\n props?: SelectOptionRendererProps\n ) => 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 * Customize how search works\n * `(query: string, value: string) => boolean`\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 | 'groupRenderer'\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":""}
|
|
@@ -5,13 +5,13 @@ import { spacing } from '../_styles/spacing';
|
|
|
5
5
|
import { formWrapper } from './Form.styles';
|
|
6
6
|
export var StyledFormikForm = /*#__PURE__*/styled(FormikForm).withConfig({
|
|
7
7
|
displayName: "StyledFormikForm",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_46_0__sc-1ks7m0l-0"
|
|
9
9
|
})(["", ""], formWrapper);
|
|
10
10
|
|
|
11
11
|
/** @deprecated The traditional field layout is deprecated */
|
|
12
12
|
export var StyledTraditionalFormLabel = /*#__PURE__*/styled(Typography).withConfig({
|
|
13
13
|
displayName: "StyledTraditionalFormLabel",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_46_0__sc-1ks7m0l-1"
|
|
15
15
|
})(["display:inline-block;word-break:break-word;word-wrap:break-word;", ""], function (_ref) {
|
|
16
16
|
var $view = _ref.$view;
|
|
17
17
|
return ['create', 'update'].includes($view) && css(["padding-top:", "px;"], spacing.sm);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["component", "debug", "initialValue", "view", "
|
|
2
|
+
var _excluded = ["component", "debug", "initialValue", "view", "useLabelAsInlineLabel", "useDescriptionAsInlineDescription"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -47,15 +47,14 @@ var SingleForm = function SingleForm(_ref) {
|
|
|
47
47
|
debug = _ref.debug,
|
|
48
48
|
initialValue = _ref.initialValue,
|
|
49
49
|
view = _ref.view,
|
|
50
|
-
variant = _ref.variant,
|
|
51
50
|
useLabelAsInlineLabel = _ref.useLabelAsInlineLabel,
|
|
52
51
|
useDescriptionAsInlineDescription = _ref.useDescriptionAsInlineDescription,
|
|
53
52
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
54
53
|
// removes colStart from DOM for traditional variant
|
|
55
|
-
var columnOne =
|
|
54
|
+
var columnOne = {
|
|
56
55
|
colStart: 1
|
|
57
56
|
};
|
|
58
|
-
var columnTwo =
|
|
57
|
+
var columnTwo = {
|
|
59
58
|
colStart: 7
|
|
60
59
|
};
|
|
61
60
|
return /*#__PURE__*/React.createElement(Form, {
|
|
@@ -63,7 +62,6 @@ var SingleForm = function SingleForm(_ref) {
|
|
|
63
62
|
initialValues: {
|
|
64
63
|
value: initialValue
|
|
65
64
|
},
|
|
66
|
-
variant: variant,
|
|
67
65
|
view: view,
|
|
68
66
|
onSubmit: function onSubmit(values) {
|
|
69
67
|
return alert(JSON.stringify(values, null, 2));
|
|
@@ -214,15 +212,6 @@ export function BaseCRU(props) {
|
|
|
214
212
|
view: "read"
|
|
215
213
|
}, props)), /*#__PURE__*/React.createElement("h2", null, "Update"), /*#__PURE__*/React.createElement(SingleForm, _extends({
|
|
216
214
|
view: "update"
|
|
217
|
-
}, props)), /*#__PURE__*/React.createElement("h1", null, "Traditional"), /*#__PURE__*/React.createElement("h2", null, "Create"), /*#__PURE__*/React.createElement(SingleForm, _extends({
|
|
218
|
-
view: "create",
|
|
219
|
-
variant: "traditional"
|
|
220
|
-
}, props)), /*#__PURE__*/React.createElement("h2", null, "Read"), /*#__PURE__*/React.createElement(SingleForm, _extends({
|
|
221
|
-
view: "read",
|
|
222
|
-
variant: "traditional"
|
|
223
|
-
}, props)), /*#__PURE__*/React.createElement("h2", null, "Update"), /*#__PURE__*/React.createElement(SingleForm, _extends({
|
|
224
|
-
view: "update",
|
|
225
|
-
variant: "traditional"
|
|
226
215
|
}, props)));
|
|
227
216
|
}
|
|
228
217
|
export var formGroupSelectOptions = [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","names":["pick","React","Box","Button","Form","useFormContext","stylesFormDebugger","backgroundColor","color","fontSize","FormDebugger","props","arguments","length","undefined","fields","record","Object","keys","createElement","flex","padding","margin","style","whiteSpace","JSON","stringify","SingleForm","_ref","_ref$component","component","FieldComponent","Field","debug","initialValue","view","variant","useLabelAsInlineLabel","useDescriptionAsInlineDescription","_objectWithoutProperties","_excluded","columnOne","colStart","columnTwo","enableReinitialize","initialValues","value","onSubmit","values","alert","Row","_extends","name","inlineLabel","label","inlineDescription","description","disabled","error","DemoForm","_ref2","_ref2$view","_ref2$enableConfirmNa","enableConfirmNavigation","Promise","resolve","Text","Number","required","tooltip","Select","options","formSelectOptions","MultiSelect","getGroup","option","groupAssociation","groupGetId","group","uuid","groupGetLabel","displayName","optgroups","formSelectGroupOptions","PillSelect","formPillSelectOptions","TieredSelect","formTieredSelectOptions","GroupSelect","formGroupSelectOptions","groups","formGroupSelectGroups","textAlign","marginTop","marginBottom","type","BaseCRU","Fragment","id","map","_objectSpread","groupOpt","find","groupId","nextGroupId","formInitialValues","text","number","checkbox","checkboxes","currency","date","Date","textarea","select","multiselect","pillselect","groupselect","tieredselect","radiobuttons","richtext"],"sources":["../../../src/Form/stories/util.tsx"],"sourcesContent":["import { pick } from 'ramda'\nimport React from 'react'\nimport { Box, Button, Form, useFormContext } from '../../index'\nimport type { PillColor } from '../../Pill'\n\nconst stylesFormDebugger = {\n backgroundColor: '#444',\n color: '#f1f1f1',\n fontSize: '0.8rem',\n}\n\nexport function FormDebugger(props: any = {}) {\n const fields = useFormContext()\n\n let record = {}\n if (!Object.keys(props).length) {\n record = fields\n } else {\n record = pick(Object.keys(props), fields)\n }\n\n return (\n <Box flex=\"1\" padding=\"md\" margin=\"lg none\" style={stylesFormDebugger}>\n <pre style={{ whiteSpace: 'break-spaces' }}>\n {JSON.stringify(record, null, 2)}\n </pre>\n </Box>\n )\n}\n\ninterface SingleFormProps {\n component?: any\n debug?: boolean\n initialValue?: any\n variant?: React.ComponentProps<typeof Form>['variant']\n view?: React.ComponentProps<typeof Form>['view']\n useLabelAsInlineLabel?: boolean\n useDescriptionAsInlineDescription?: boolean\n}\n\n/**\n * Takes a Form Field component, e.g. Form.Select, and creates\n * a full Form of one view and variant. Empty value examples,\n * examples with values, various text or state formats.\n */\nconst SingleForm = ({\n component: FieldComponent = Form.Field,\n debug,\n initialValue,\n view,\n variant,\n useLabelAsInlineLabel,\n useDescriptionAsInlineDescription,\n ...props\n}: SingleFormProps) => {\n // removes colStart from DOM for traditional variant\n const columnOne = variant === 'traditional' ? {} : { colStart: 1 }\n const columnTwo = variant === 'traditional' ? {} : { colStart: 7 }\n return (\n <Form\n enableReinitialize\n initialValues={{\n value: initialValue,\n }}\n variant={variant}\n view={view}\n onSubmit={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <Form.Form>\n {debug && <FormDebugger />}\n <Form.Row>\n <FieldComponent\n name=\"empty\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Empty Text',\n }\n : {\n label: 'Empty Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Empty Description',\n }\n : {\n description: 'Empty Description',\n })}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"value\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Initial Value Text',\n }\n : {\n label: 'Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Initial Value Description',\n }\n : {\n description: 'Initial Value Description',\n })}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"disabled-empty\"\n disabled\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Disabled Empty Text',\n }\n : {\n label: 'Disabled Empty Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Disabled Empty Description',\n }\n : {\n description: 'Disabled Empty Description',\n })}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"disabled-value\"\n disabled\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Disabled Initial Value Text',\n }\n : {\n label: 'Disabled Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Disabled Initial Description',\n }\n : {\n description: 'Disabled Initial Description',\n })}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"error-value\"\n error=\"Some error message that should be read red\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Error Message Initial Value Text',\n }\n : {\n label: 'Error Message Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Error Message Initial Description',\n }\n : {\n description: 'Error Message Initial Description',\n })}\n {...columnOne}\n {...props}\n />\n </Form.Row>\n </Form.Form>\n </Form>\n )\n}\n\ninterface DemoFormProps {\n view?: React.ComponentProps<typeof Form>['view']\n enableConfirmNavigation?: React.ComponentProps<\n typeof Form\n >['enableConfirmNavigation']\n}\nexport const DemoForm = ({\n view = 'create',\n enableConfirmNavigation = true,\n}: DemoFormProps) => {\n return (\n <Form\n view={view}\n onSubmit={(...args) => {\n alert(JSON.stringify(args[0], null, 2))\n\n // Necessary to return success to notify the client the data\n // is saved on the server and this `form` is pristine once again.\n return Promise.resolve()\n }}\n enableConfirmNavigation={enableConfirmNavigation}\n >\n <Form.Form>\n <Form.Row>\n <Form.Text name=\"text\" label=\"Text\" colStart={1} />\n <Form.Number\n name=\"number\"\n label=\"Number\"\n required\n tooltip=\"An example tooltip for any field, this value goes directly to the Tooltip overlay prop\"\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.Select\n name=\"select\"\n label=\"Select\"\n options={formSelectOptions}\n colStart={1}\n />\n <Form.MultiSelect\n name=\"multiselect\"\n label=\"MultiSelect\"\n options={formSelectOptions}\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.Select\n name=\"select\"\n label=\"Select with Groups\"\n getGroup={(option) => option.groupAssociation}\n groupGetId={(group) => group.uuid}\n groupGetLabel={(group) => group.displayName}\n options={formSelectOptions}\n optgroups={formSelectGroupOptions}\n />\n <Form.PillSelect\n name=\"pillselect\"\n label=\"Status\"\n options={formPillSelectOptions}\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.TieredSelect\n name=\"tieredselect\"\n label=\"Tiered Select\"\n options={formTieredSelectOptions}\n colStart={1}\n />\n <Form.GroupSelect\n name=\"groupselect\"\n label=\"Group Select for Distribution\"\n options={formGroupSelectOptions}\n groups={formGroupSelectGroups}\n colStart={7}\n />\n </Form.Row>\n <Box textAlign=\"center\" marginTop=\"sm\" marginBottom=\"xl\">\n <Button variant=\"secondary\" type=\"reset\">\n Reset\n </Button>{' '}\n <Button type=\"submit\">Save</Button>\n </Box>\n </Form.Form>\n </Form>\n )\n}\n\n/** All variations for a field. views, with values, no values, text variations, etc.\n * @example\n * <BaseCRU\n component={Form.Number}\n initialValue={100}\n />\n */\nexport function BaseCRU<Element extends React.JSXElementConstructor<any>>(\n props: Omit<SingleFormProps, 'component'> & { component: Element } & Omit<\n React.ComponentProps<Element>,\n 'name'\n >\n) {\n return (\n <>\n <h1>Standard</h1>\n <h2>Create</h2>\n <SingleForm view=\"create\" {...props} />\n <h2>Read</h2>\n <SingleForm view=\"read\" {...props} />\n <h2>Update</h2>\n <SingleForm view=\"update\" {...props} />\n <h1>Traditional</h1>\n <h2>Create</h2>\n <SingleForm view=\"create\" variant=\"traditional\" {...props} />\n <h2>Read</h2>\n <SingleForm view=\"read\" variant=\"traditional\" {...props} />\n <h2>Update</h2>\n <SingleForm view=\"update\" variant=\"traditional\" {...props} />\n </>\n )\n}\n\nexport const formGroupSelectOptions = [\n { id: 5139977, label: 'Cat' },\n { id: 1279548, label: 'Cow' },\n { id: 1690, label: 'Duck' },\n { id: 3116635, label: 'Crocodile' },\n { id: 1037291, label: 'Dog' },\n { id: 1987946, label: 'Elephant' },\n { id: 1665038, label: 'Fox' },\n { id: 10338, label: 'Frog' },\n { id: 4177019, label: 'Giraffe' },\n { id: 5136274, label: 'Lion' },\n { id: 1819065, label: 'Owl' },\n { id: 3733119, label: 'Parrot' },\n { id: 2142072, label: 'Pig' },\n { id: 1360365, label: 'Wolf' },\n]\n\nexport const formGroupSelectGroups = [\n {\n id: 180604,\n label: 'Group #1',\n options: [5139977, 1037291, 1279548, 5136274],\n },\n { id: 183915, label: 'Group #2', options: [1037291, 1279548] },\n { id: 187138, label: 'Group #3', options: [1665038, 10338] },\n { id: 127496, label: 'Group #4', options: [3116635, 1819065] },\n { id: 126261, label: 'Group #5', options: [1690] },\n].map((group) => ({\n ...group,\n options: group.options.map((groupOpt) =>\n formGroupSelectOptions.find((option) => option.id === groupOpt)\n ),\n}))\n\nexport const formTieredSelectOptions = [\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n },\n {\n id: 3,\n groupId: null,\n nextGroupId: 30,\n label: 'Sports R Us',\n },\n {\n id: 4,\n groupId: null,\n nextGroupId: 30,\n label: 'Sail It Again Ports',\n },\n {\n id: 5,\n groupId: null,\n nextGroupId: 30,\n label: 'Dublix',\n },\n {\n id: 6,\n groupId: null,\n nextGroupId: 30,\n label: 'The Hardees Boys',\n },\n {\n id: 7,\n groupId: null,\n nextGroupId: 30,\n label: 'Carls Senior',\n },\n {\n id: 8,\n groupId: null,\n nextGroupId: 30,\n label: 'Tar J',\n },\n {\n id: 9,\n groupId: null,\n nextGroupId: 30,\n label: 'Innovation Station',\n },\n {\n id: 10,\n groupId: null,\n nextGroupId: 30,\n label: 'Innovation Nation',\n },\n {\n id: 11,\n groupId: null,\n nextGroupId: 30,\n label: 'Global Studios',\n },\n {\n id: 12,\n groupId: null,\n nextGroupId: 30,\n label: \"Ralphie's\",\n },\n {\n id: 13,\n groupId: null,\n nextGroupId: 30,\n label: 'Humble State University',\n },\n {\n id: 14,\n groupId: null,\n nextGroupId: 30,\n label: 'Test Driven Devolvement',\n },\n {\n id: 15,\n groupId: null,\n nextGroupId: 30,\n label: 'The Drilling Company',\n },\n {\n id: 16,\n groupId: null,\n nextGroupId: 30,\n label:\n 'Wrapping text that is very long and will definitely wrap onto two or more lines',\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 18,\n groupId: 10,\n nextGroupId: 101,\n label: 'Gala',\n },\n {\n id: 21,\n groupId: 30,\n nextGroupId: 300,\n label: 'Project Basketball',\n },\n {\n id: 22,\n groupId: 30,\n nextGroupId: 301,\n label: 'Table Tennis',\n },\n {\n id: 23,\n groupId: 30,\n label: 'Table Ten',\n },\n {\n id: 24,\n groupId: 100,\n label: 'Michigan',\n },\n {\n id: 25,\n groupId: 101,\n label: 'Washington',\n },\n {\n id: 26,\n groupId: 200,\n label: 'Georgia',\n },\n {\n id: 27,\n groupId: 201,\n label: 'California',\n },\n {\n id: 28,\n groupId: 300,\n label: 'Toronto',\n },\n {\n id: 29,\n groupId: 301,\n nextGroupId: 302,\n label: 'Court Complex Uno',\n },\n {\n id: 30,\n groupId: 302,\n nextGroupId: 303,\n label: 'Wrap',\n },\n {\n id: 31,\n groupId: 303,\n nextGroupId: 304,\n label: 'Wrap',\n },\n {\n id: 32,\n groupId: 304,\n nextGroupId: 305,\n label: 'Wrap',\n },\n {\n id: 33,\n groupId: 305,\n nextGroupId: 306,\n label: 'Wrap',\n },\n {\n id: 34,\n groupId: 306,\n nextGroupId: 307,\n label: 'Wrap',\n },\n {\n id: 35,\n groupId: 307,\n label: 'Wrap',\n },\n]\n\nexport const formSelectOptions = [\n { id: 1, label: 'Option Example Uno', groupAssociation: 1 },\n { id: 2, label: 'Item Deux 2', groupAssociation: 2 },\n { id: 3, label: 'Three Three Three', groupAssociation: 1 },\n {\n id: 4,\n label: 'Next Item In List Is Design System Design System',\n groupAssociation: 2,\n },\n { id: 5, label: '5 Entries', groupAssociation: 2 },\n {\n id: 6,\n label:\n 'Another Option With A Longer Amount of Important Information To Read',\n groupAssociation: 3,\n },\n]\n\nexport const formSelectGroupOptions = [\n { uuid: 1, displayName: 'Group 1' },\n {\n uuid: 2,\n displayName: 'Group Having a Longer Group Label, Group Two Is That Group',\n },\n { uuid: 3, displayName: 'Group 3' },\n]\n\nexport const formPillSelectOptions: {\n id: string\n label: string\n color: PillColor\n}[] = [\n { id: '1', label: 'Questionable', color: 'yellow' },\n { id: '2', label: 'False', color: 'red' },\n { id: '3', label: 'The Sky Is Blue', color: 'blue' },\n { id: '4', label: 'Pending Resolution', color: 'gray' },\n {\n id: '5',\n label: 'A very long STATUS that has to wrap cause it is so long',\n color: 'green',\n },\n]\n\nexport const formInitialValues = {\n text: 'Hello String',\n number: 123456.789,\n checkbox: true,\n checkboxes: [formSelectOptions[1], formSelectOptions[2]],\n currency: 1200300.55,\n date: new Date(2020, 9, 31, 14, 30, 42), // Halloween, a Saturday at 2:30 PM\n textarea: 'Hello\\nWorld !!\\n\\n Hello World',\n select: formSelectOptions[1],\n multiselect: [\n formSelectOptions[1],\n formSelectOptions[3],\n formSelectOptions[0],\n ],\n pillselect: formPillSelectOptions[0],\n groupselect: [formGroupSelectOptions[0], formGroupSelectOptions[2]],\n tieredselect: [\n {\n id: 4,\n groupId: null,\n nextGroupId: 30,\n label: 'Sail It Again Ports',\n },\n {\n id: 22,\n groupId: 30,\n nextGroupId: 301,\n label: 'Table Tennis',\n },\n {\n id: 29,\n groupId: 301,\n nextGroupId: 302,\n label: 'Court Complex Uno',\n },\n ],\n radiobuttons: formSelectOptions[5],\n richtext:\n '<p><span style=\"font-size: 18pt; background-color: #00ff00;\">Rich Text Is <strong>Bold</strong></span></p> ',\n}\n"],"mappings":";;;;;;;;;;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAEC,cAAc,QAAQ,aAAa;AAG/D,IAAMC,kBAAkB,GAAG;EACzBC,eAAe,EAAE,MAAM;EACvBC,KAAK,EAAE,SAAS;EAChBC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,SAASC,YAAYA,CAAA,EAAkB;EAAA,IAAjBC,KAAU,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC1C,IAAMG,MAAM,GAAGV,cAAc,CAAC,CAAC;EAE/B,IAAIW,MAAM,GAAG,CAAC,CAAC;EACf,IAAI,CAACC,MAAM,CAACC,IAAI,CAACP,KAAK,CAAC,CAACE,MAAM,EAAE;IAC9BG,MAAM,GAAGD,MAAM;EACjB,CAAC,MAAM;IACLC,MAAM,GAAGhB,IAAI,CAACiB,MAAM,CAACC,IAAI,CAACP,KAAK,CAAC,EAAEI,MAAM,CAAC;EAC3C;EAEA,oBACEd,KAAA,CAAAkB,aAAA,CAACjB,GAAG;IAACkB,IAAI,EAAC,GAAG;IAACC,OAAO,EAAC,IAAI;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,EAAE,GAAG;IACZC,WAAW,EAAE,GAAG;IAChBlD,KAAK,EAAE;EACT,CAAC,CACF;EACDiE,YAAY,EAAE/C,iBAAiB,CAAC,CAAC,CAAC;EAClCgD,QAAQ,EACN;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"util.js","names":["pick","React","Box","Button","Form","useFormContext","stylesFormDebugger","backgroundColor","color","fontSize","FormDebugger","props","arguments","length","undefined","fields","record","Object","keys","createElement","flex","padding","margin","style","whiteSpace","JSON","stringify","SingleForm","_ref","_ref$component","component","FieldComponent","Field","debug","initialValue","view","useLabelAsInlineLabel","useDescriptionAsInlineDescription","_objectWithoutProperties","_excluded","columnOne","colStart","columnTwo","enableReinitialize","initialValues","value","onSubmit","values","alert","Row","_extends","name","inlineLabel","label","inlineDescription","description","disabled","error","DemoForm","_ref2","_ref2$view","_ref2$enableConfirmNa","enableConfirmNavigation","Promise","resolve","Text","Number","required","tooltip","Select","options","formSelectOptions","MultiSelect","getGroup","option","groupAssociation","groupGetId","group","uuid","groupGetLabel","displayName","optgroups","formSelectGroupOptions","PillSelect","formPillSelectOptions","TieredSelect","formTieredSelectOptions","GroupSelect","formGroupSelectOptions","groups","formGroupSelectGroups","textAlign","marginTop","marginBottom","variant","type","BaseCRU","Fragment","id","map","_objectSpread","groupOpt","find","groupId","nextGroupId","formInitialValues","text","number","checkbox","checkboxes","currency","date","Date","textarea","select","multiselect","pillselect","groupselect","tieredselect","radiobuttons","richtext"],"sources":["../../../src/Form/stories/util.tsx"],"sourcesContent":["import { pick } from 'ramda'\nimport React from 'react'\nimport { Box, Button, Form, useFormContext } from '../../index'\nimport type { PillColor } from '../../Pill'\n\nconst stylesFormDebugger = {\n backgroundColor: '#444',\n color: '#f1f1f1',\n fontSize: '0.8rem',\n}\n\nexport function FormDebugger(props: any = {}) {\n const fields = useFormContext()\n\n let record = {}\n if (!Object.keys(props).length) {\n record = fields\n } else {\n record = pick(Object.keys(props), fields)\n }\n\n return (\n <Box flex=\"1\" padding=\"md\" margin=\"lg none\" style={stylesFormDebugger}>\n <pre style={{ whiteSpace: 'break-spaces' }}>\n {JSON.stringify(record, null, 2)}\n </pre>\n </Box>\n )\n}\n\ninterface SingleFormProps {\n component?: any\n debug?: boolean\n initialValue?: any\n variant?: React.ComponentProps<typeof Form>['variant']\n view?: React.ComponentProps<typeof Form>['view']\n useLabelAsInlineLabel?: boolean\n useDescriptionAsInlineDescription?: boolean\n}\n\n/**\n * Takes a Form Field component, e.g. Form.Select, and creates\n * a full Form of one view and variant. Empty value examples,\n * examples with values, various text or state formats.\n */\nconst SingleForm = ({\n component: FieldComponent = Form.Field,\n debug,\n initialValue,\n view,\n useLabelAsInlineLabel,\n useDescriptionAsInlineDescription,\n ...props\n}: SingleFormProps) => {\n // removes colStart from DOM for traditional variant\n const columnOne = { colStart: 1 }\n const columnTwo = { colStart: 7 }\n return (\n <Form\n enableReinitialize\n initialValues={{\n value: initialValue,\n }}\n view={view}\n onSubmit={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <Form.Form>\n {debug && <FormDebugger />}\n <Form.Row>\n <FieldComponent\n name=\"empty\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Empty Text',\n }\n : {\n label: 'Empty Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Empty Description',\n }\n : {\n description: 'Empty Description',\n })}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"value\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Initial Value Text',\n }\n : {\n label: 'Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Initial Value Description',\n }\n : {\n description: 'Initial Value Description',\n })}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"disabled-empty\"\n disabled\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Disabled Empty Text',\n }\n : {\n label: 'Disabled Empty Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Disabled Empty Description',\n }\n : {\n description: 'Disabled Empty Description',\n })}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"disabled-value\"\n disabled\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Disabled Initial Value Text',\n }\n : {\n label: 'Disabled Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Disabled Initial Description',\n }\n : {\n description: 'Disabled Initial Description',\n })}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"error-value\"\n error=\"Some error message that should be read red\"\n {...(useLabelAsInlineLabel\n ? {\n inlineLabel: 'Error Message Initial Value Text',\n }\n : {\n label: 'Error Message Initial Value Text',\n })}\n {...(useDescriptionAsInlineDescription\n ? {\n inlineDescription: 'Error Message Initial Description',\n }\n : {\n description: 'Error Message Initial Description',\n })}\n {...columnOne}\n {...props}\n />\n </Form.Row>\n </Form.Form>\n </Form>\n )\n}\n\ninterface DemoFormProps {\n view?: React.ComponentProps<typeof Form>['view']\n enableConfirmNavigation?: React.ComponentProps<\n typeof Form\n >['enableConfirmNavigation']\n}\nexport const DemoForm = ({\n view = 'create',\n enableConfirmNavigation = true,\n}: DemoFormProps) => {\n return (\n <Form\n view={view}\n onSubmit={(...args) => {\n alert(JSON.stringify(args[0], null, 2))\n\n // Necessary to return success to notify the client the data\n // is saved on the server and this `form` is pristine once again.\n return Promise.resolve()\n }}\n enableConfirmNavigation={enableConfirmNavigation}\n >\n <Form.Form>\n <Form.Row>\n <Form.Text name=\"text\" label=\"Text\" colStart={1} />\n <Form.Number\n name=\"number\"\n label=\"Number\"\n required\n tooltip=\"An example tooltip for any field, this value goes directly to the Tooltip overlay prop\"\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.Select\n name=\"select\"\n label=\"Select\"\n options={formSelectOptions}\n colStart={1}\n />\n <Form.MultiSelect\n name=\"multiselect\"\n label=\"MultiSelect\"\n options={formSelectOptions}\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.Select\n name=\"select\"\n label=\"Select with Groups\"\n getGroup={(option) => option.groupAssociation}\n groupGetId={(group) => group.uuid}\n groupGetLabel={(group) => group.displayName}\n options={formSelectOptions}\n optgroups={formSelectGroupOptions}\n />\n <Form.PillSelect\n name=\"pillselect\"\n label=\"Status\"\n options={formPillSelectOptions}\n colStart={7}\n />\n </Form.Row>\n <Form.Row>\n <Form.TieredSelect\n name=\"tieredselect\"\n label=\"Tiered Select\"\n options={formTieredSelectOptions}\n colStart={1}\n />\n <Form.GroupSelect\n name=\"groupselect\"\n label=\"Group Select for Distribution\"\n options={formGroupSelectOptions}\n groups={formGroupSelectGroups}\n colStart={7}\n />\n </Form.Row>\n <Box textAlign=\"center\" marginTop=\"sm\" marginBottom=\"xl\">\n <Button variant=\"secondary\" type=\"reset\">\n Reset\n </Button>{' '}\n <Button type=\"submit\">Save</Button>\n </Box>\n </Form.Form>\n </Form>\n )\n}\n\n/** All variations for a field. views, with values, no values, text variations, etc.\n * @example\n * <BaseCRU\n component={Form.Number}\n initialValue={100}\n />\n */\nexport function BaseCRU<Element extends React.JSXElementConstructor<any>>(\n props: Omit<SingleFormProps, 'component'> & { component: Element } & Omit<\n React.ComponentProps<Element>,\n 'name'\n >\n) {\n return (\n <>\n <h1>Standard</h1>\n <h2>Create</h2>\n <SingleForm view=\"create\" {...props} />\n <h2>Read</h2>\n <SingleForm view=\"read\" {...props} />\n <h2>Update</h2>\n <SingleForm view=\"update\" {...props} />\n </>\n )\n}\n\nexport const formGroupSelectOptions = [\n { id: 5139977, label: 'Cat' },\n { id: 1279548, label: 'Cow' },\n { id: 1690, label: 'Duck' },\n { id: 3116635, label: 'Crocodile' },\n { id: 1037291, label: 'Dog' },\n { id: 1987946, label: 'Elephant' },\n { id: 1665038, label: 'Fox' },\n { id: 10338, label: 'Frog' },\n { id: 4177019, label: 'Giraffe' },\n { id: 5136274, label: 'Lion' },\n { id: 1819065, label: 'Owl' },\n { id: 3733119, label: 'Parrot' },\n { id: 2142072, label: 'Pig' },\n { id: 1360365, label: 'Wolf' },\n]\n\nexport const formGroupSelectGroups = [\n {\n id: 180604,\n label: 'Group #1',\n options: [5139977, 1037291, 1279548, 5136274],\n },\n { id: 183915, label: 'Group #2', options: [1037291, 1279548] },\n { id: 187138, label: 'Group #3', options: [1665038, 10338] },\n { id: 127496, label: 'Group #4', options: [3116635, 1819065] },\n { id: 126261, label: 'Group #5', options: [1690] },\n].map((group) => ({\n ...group,\n options: group.options.map((groupOpt) =>\n formGroupSelectOptions.find((option) => option.id === groupOpt)\n ),\n}))\n\nexport const formTieredSelectOptions = [\n {\n id: 1,\n groupId: null,\n nextGroupId: 10,\n label: 'Apple Farm',\n },\n {\n id: 3,\n groupId: null,\n nextGroupId: 30,\n label: 'Sports R Us',\n },\n {\n id: 4,\n groupId: null,\n nextGroupId: 30,\n label: 'Sail It Again Ports',\n },\n {\n id: 5,\n groupId: null,\n nextGroupId: 30,\n label: 'Dublix',\n },\n {\n id: 6,\n groupId: null,\n nextGroupId: 30,\n label: 'The Hardees Boys',\n },\n {\n id: 7,\n groupId: null,\n nextGroupId: 30,\n label: 'Carls Senior',\n },\n {\n id: 8,\n groupId: null,\n nextGroupId: 30,\n label: 'Tar J',\n },\n {\n id: 9,\n groupId: null,\n nextGroupId: 30,\n label: 'Innovation Station',\n },\n {\n id: 10,\n groupId: null,\n nextGroupId: 30,\n label: 'Innovation Nation',\n },\n {\n id: 11,\n groupId: null,\n nextGroupId: 30,\n label: 'Global Studios',\n },\n {\n id: 12,\n groupId: null,\n nextGroupId: 30,\n label: \"Ralphie's\",\n },\n {\n id: 13,\n groupId: null,\n nextGroupId: 30,\n label: 'Humble State University',\n },\n {\n id: 14,\n groupId: null,\n nextGroupId: 30,\n label: 'Test Driven Devolvement',\n },\n {\n id: 15,\n groupId: null,\n nextGroupId: 30,\n label: 'The Drilling Company',\n },\n {\n id: 16,\n groupId: null,\n nextGroupId: 30,\n label:\n 'Wrapping text that is very long and will definitely wrap onto two or more lines',\n },\n {\n id: 17,\n groupId: 10,\n nextGroupId: 100,\n label: 'Granny Smith',\n },\n {\n id: 18,\n groupId: 10,\n nextGroupId: 101,\n label: 'Gala',\n },\n {\n id: 21,\n groupId: 30,\n nextGroupId: 300,\n label: 'Project Basketball',\n },\n {\n id: 22,\n groupId: 30,\n nextGroupId: 301,\n label: 'Table Tennis',\n },\n {\n id: 23,\n groupId: 30,\n label: 'Table Ten',\n },\n {\n id: 24,\n groupId: 100,\n label: 'Michigan',\n },\n {\n id: 25,\n groupId: 101,\n label: 'Washington',\n },\n {\n id: 26,\n groupId: 200,\n label: 'Georgia',\n },\n {\n id: 27,\n groupId: 201,\n label: 'California',\n },\n {\n id: 28,\n groupId: 300,\n label: 'Toronto',\n },\n {\n id: 29,\n groupId: 301,\n nextGroupId: 302,\n label: 'Court Complex Uno',\n },\n {\n id: 30,\n groupId: 302,\n nextGroupId: 303,\n label: 'Wrap',\n },\n {\n id: 31,\n groupId: 303,\n nextGroupId: 304,\n label: 'Wrap',\n },\n {\n id: 32,\n groupId: 304,\n nextGroupId: 305,\n label: 'Wrap',\n },\n {\n id: 33,\n groupId: 305,\n nextGroupId: 306,\n label: 'Wrap',\n },\n {\n id: 34,\n groupId: 306,\n nextGroupId: 307,\n label: 'Wrap',\n },\n {\n id: 35,\n groupId: 307,\n label: 'Wrap',\n },\n]\n\nexport const formSelectOptions = [\n { id: 1, label: 'Option Example Uno', groupAssociation: 1 },\n { id: 2, label: 'Item Deux 2', groupAssociation: 2 },\n { id: 3, label: 'Three Three Three', groupAssociation: 1 },\n {\n id: 4,\n label: 'Next Item In List Is Design System Design System',\n groupAssociation: 2,\n },\n { id: 5, label: '5 Entries', groupAssociation: 2 },\n {\n id: 6,\n label:\n 'Another Option With A Longer Amount of Important Information To Read',\n groupAssociation: 3,\n },\n]\n\nexport const formSelectGroupOptions = [\n { uuid: 1, displayName: 'Group 1' },\n {\n uuid: 2,\n displayName: 'Group Having a Longer Group Label, Group Two Is That Group',\n },\n { uuid: 3, displayName: 'Group 3' },\n]\n\nexport const formPillSelectOptions: {\n id: string\n label: string\n color: PillColor\n}[] = [\n { id: '1', label: 'Questionable', color: 'yellow' },\n { id: '2', label: 'False', color: 'red' },\n { id: '3', label: 'The Sky Is Blue', color: 'blue' },\n { id: '4', label: 'Pending Resolution', color: 'gray' },\n {\n id: '5',\n label: 'A very long STATUS that has to wrap cause it is so long',\n color: 'green',\n },\n]\n\nexport const formInitialValues = {\n text: 'Hello String',\n number: 123456.789,\n checkbox: true,\n checkboxes: [formSelectOptions[1], formSelectOptions[2]],\n currency: 1200300.55,\n date: new Date(2020, 9, 31, 14, 30, 42), // Halloween, a Saturday at 2:30 PM\n textarea: 'Hello\\nWorld !!\\n\\n Hello World',\n select: formSelectOptions[1],\n multiselect: [\n formSelectOptions[1],\n formSelectOptions[3],\n formSelectOptions[0],\n ],\n pillselect: formPillSelectOptions[0],\n groupselect: [formGroupSelectOptions[0], formGroupSelectOptions[2]],\n tieredselect: [\n {\n id: 4,\n groupId: null,\n nextGroupId: 30,\n label: 'Sail It Again Ports',\n },\n {\n id: 22,\n groupId: 30,\n nextGroupId: 301,\n label: 'Table Tennis',\n },\n {\n id: 29,\n groupId: 301,\n nextGroupId: 302,\n label: 'Court Complex Uno',\n },\n ],\n radiobuttons: formSelectOptions[5],\n richtext:\n '<p><span style=\"font-size: 18pt; background-color: #00ff00;\">Rich Text Is <strong>Bold</strong></span></p> ',\n}\n"],"mappings":";;;;;;;;;;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,MAAM,EAAEC,IAAI,EAAEC,cAAc,QAAQ,aAAa;AAG/D,IAAMC,kBAAkB,GAAG;EACzBC,eAAe,EAAE,MAAM;EACvBC,KAAK,EAAE,SAAS;EAChBC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,SAASC,YAAYA,CAAA,EAAkB;E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merAnimation = /*#__PURE__*/keyframes(["0%{background-position:-1000px 500px;}100%{background-position:1000px 500px;}"]);
|
|
4
4
|
export var PlaceholderItem = /*#__PURE__*/styled.div.withConfig({
|
|
5
5
|
displayName: "PlaceholderItem",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_46_0__sc-1nja302-0"
|
|
7
7
|
})(["width:100%;min-height:24px;padding:10px 0;animation:", " 3s ease-out infinite;background:radial-gradient( ellipse at center,", " 0%,", " 50% );background-size:2000px 2000px;border-radius:", "px;"], shimmerAnimation, function (props) {
|
|
8
8
|
return props.$startGradientColor;
|
|
9
9
|
}, function (props) {
|
|
@@ -11,7 +11,7 @@ export var PlaceholderItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
11
11
|
}, spacing.sm);
|
|
12
12
|
export var RoundPlaceholderItem = /*#__PURE__*/styled(PlaceholderItem).withConfig({
|
|
13
13
|
displayName: "RoundPlaceholderItem",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_46_0__sc-1nja302-1"
|
|
15
15
|
})(["width:", ";height:", ";border-radius:50%;"], function (props) {
|
|
16
16
|
return props.$small ? '24px' : '40px';
|
|
17
17
|
}, function (props) {
|
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-12_46_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-12_46_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-12_46_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-12_46_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
|
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-12_46_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
|