@procore/core-react 12.42.0 → 12.43.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 +49 -1
- package/dist/AnchorNavigation/AnchorNavigation.js +11 -5
- package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -1
- package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +1 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +7 -3
- package/dist/AnchorNavigation/AnchorNavigation.styles.js.map +1 -1
- package/dist/AnchorNavigation/AnchorNavigation.types.d.ts +7 -1
- package/dist/AnchorNavigation/AnchorNavigation.types.js.map +1 -1
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.d.ts +74 -74
- 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 +1 -4
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +9 -9
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.js +1 -0
- package/dist/Checkbox/Checkbox.js.map +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.js +9 -0
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +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.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.d.ts +1 -1
- 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/FileToken/FileTokenInner.js +1 -3
- package/dist/FileToken/FileTokenInner.js.map +1 -1
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +13 -13
- package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- 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.styles.js +11 -11
- package/dist/Modal/Modal.js +8 -2
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.js +7 -5
- 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/a11yPresets.d.ts +6 -6
- package/dist/PageLayout/PageLayout.styles.d.ts +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.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 +3 -2
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.d.ts +74 -74
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.components.js +35 -22
- package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.d.ts +4 -2
- package/dist/SuperSelect/SuperSelect.styles.js +49 -42
- package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.types.d.ts +3 -4
- package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
- package/dist/SuperSelect/presets/filterPreset.js +7 -2
- package/dist/SuperSelect/presets/filterPreset.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
- package/dist/SuperSelect/useSuperSelect.js +115 -88
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +1 -1
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +15 -15
- 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.hooks.d.ts +58 -58
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.d.ts +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 +1 -1
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +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.js +7 -3
- package/dist/Typeahead/Typeahead.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/Typography/Typography.types.d.ts +1 -0
- package/dist/Typography/Typography.types.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +14 -0
- package/dist/_locales/en.json +7 -0
- package/dist/_locales/pseudo.json +7 -0
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +13 -3
- 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 +72 -72
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +17 -17
- 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 +39 -39
- 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 +16 -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 +832 -832
- 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 +84 -84
- 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 +54 -54
- 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 +27 -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 +69 -69
- 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 +102 -102
- package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
- 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 +3 -3
- 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 +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +90 -90
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +12 -11
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +2 -2
|
@@ -39,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
|
|
|
39
39
|
};
|
|
40
40
|
export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledBannerContainer",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_43_0__sc-149wm7c-0"
|
|
43
43
|
})(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
|
|
44
44
|
var $variant = _ref.$variant;
|
|
45
45
|
var _bannerVariantColors$ = bannerVariantColors[$variant],
|
|
@@ -52,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
52
52
|
});
|
|
53
53
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
|
54
54
|
displayName: "StyledContent",
|
|
55
|
-
componentId: "core-
|
|
55
|
+
componentId: "core-12_43_0__sc-149wm7c-1"
|
|
56
56
|
})(["align-self:center;margin:", "px ", "px ", "px 0;width:100%;"], spacing.sm, spacing.lg, spacing.sm);
|
|
57
57
|
export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
|
|
58
58
|
displayName: "StyledExpandableContentContainer",
|
|
59
|
-
componentId: "core-
|
|
59
|
+
componentId: "core-12_43_0__sc-149wm7c-2"
|
|
60
60
|
})(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
|
|
61
61
|
export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
62
62
|
displayName: "StyledExpandableContent",
|
|
63
|
-
componentId: "core-
|
|
63
|
+
componentId: "core-12_43_0__sc-149wm7c-3"
|
|
64
64
|
})(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
|
|
65
65
|
var $isOverflowingY = _ref3.$isOverflowingY;
|
|
66
66
|
return $isOverflowingY && focusable;
|
|
@@ -70,23 +70,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
|
70
70
|
});
|
|
71
71
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
72
72
|
displayName: "StyledTitle",
|
|
73
|
-
componentId: "core-
|
|
73
|
+
componentId: "core-12_43_0__sc-149wm7c-4"
|
|
74
74
|
})(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
|
|
75
75
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
76
76
|
displayName: "StyledBody",
|
|
77
|
-
componentId: "core-
|
|
77
|
+
componentId: "core-12_43_0__sc-149wm7c-5"
|
|
78
78
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
|
|
79
79
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
80
80
|
displayName: "StyledIconContainer",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_43_0__sc-149wm7c-6"
|
|
82
82
|
})(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
|
|
83
83
|
export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
|
|
84
84
|
displayName: "StyledActionsTrigger",
|
|
85
|
-
componentId: "core-
|
|
85
|
+
componentId: "core-12_43_0__sc-149wm7c-7"
|
|
86
86
|
})(["flex-shrink:0;& + ", ",& + ", "{margin-left:-", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
|
|
87
87
|
export var StyledAction = /*#__PURE__*/styled.div.withConfig({
|
|
88
88
|
displayName: "StyledAction",
|
|
89
|
-
componentId: "core-
|
|
89
|
+
componentId: "core-12_43_0__sc-149wm7c-8"
|
|
90
90
|
})(["margin:", "px 0 ", "px -", "px;& + ", ",& + ", ",& + ", "{margin-left:-", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, spacing.sm, spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
|
|
91
91
|
function getMiniBannerIconColor(_ref5) {
|
|
92
92
|
var variant = _ref5.variant;
|
|
@@ -94,6 +94,6 @@ function getMiniBannerIconColor(_ref5) {
|
|
|
94
94
|
}
|
|
95
95
|
export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
96
96
|
displayName: "StyledMiniBannerContainer",
|
|
97
|
-
componentId: "core-
|
|
97
|
+
componentId: "core-12_43_0__sc-149wm7c-9"
|
|
98
98
|
})(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
|
|
99
99
|
//# sourceMappingURL=Banner.styles.js.map
|
package/dist/Box/Box.styles.js
CHANGED
|
@@ -21,7 +21,7 @@ function sizeToPx(size) {
|
|
|
21
21
|
}
|
|
22
22
|
export var StyledBox = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledBox",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_43_0__sc-fgsy0p-0"
|
|
25
25
|
})(["", " ", ""], function (_ref) {
|
|
26
26
|
var as = _ref.as;
|
|
27
27
|
if (as === 'ol' || as === 'ul') {
|
|
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
|
|
|
4
4
|
import { spacing } from '../_styles/spacing';
|
|
5
5
|
export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
|
|
6
6
|
displayName: "StyledContainer",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-12_43_0__sc-1q6nqfz-0"
|
|
8
8
|
})(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
|
|
9
9
|
export var StyledList = /*#__PURE__*/styled.ol.withConfig({
|
|
10
10
|
displayName: "StyledList",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-12_43_0__sc-1q6nqfz-1"
|
|
12
12
|
})(["display:flex;margin:0;padding-left:0;"]);
|
|
13
13
|
export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
|
|
14
14
|
displayName: "StyledSeparator",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-12_43_0__sc-1q6nqfz-2"
|
|
16
16
|
})(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
|
|
17
17
|
export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
|
|
18
18
|
displayName: "StyledCrumb",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_43_0__sc-1q6nqfz-3"
|
|
20
20
|
})(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
|
|
21
21
|
var active = _ref.active;
|
|
22
22
|
return active ? 'default' : 'pointer';
|
|
@@ -93,11 +93,11 @@ function getColors(loading, variant) {
|
|
|
93
93
|
}
|
|
94
94
|
export var StyledContent = /*#__PURE__*/styled.span.withConfig({
|
|
95
95
|
displayName: "StyledContent",
|
|
96
|
-
componentId: "core-
|
|
96
|
+
componentId: "core-12_43_0__sc-c5bhwh-0"
|
|
97
97
|
})(["align-items:center;display:flex;overflow:hidden;"]);
|
|
98
98
|
export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
99
99
|
displayName: "StyledSpinner",
|
|
100
|
-
componentId: "core-
|
|
100
|
+
componentId: "core-12_43_0__sc-c5bhwh-1"
|
|
101
101
|
})(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
|
|
102
102
|
var size = _ref.size;
|
|
103
103
|
var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
|
|
@@ -105,14 +105,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
|
105
105
|
});
|
|
106
106
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
107
107
|
displayName: "StyledLabel",
|
|
108
|
-
componentId: "core-
|
|
108
|
+
componentId: "core-12_43_0__sc-c5bhwh-2"
|
|
109
109
|
})(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
|
|
110
110
|
export function getButtonStyles(block, disabled, loading, size, variant) {
|
|
111
111
|
return css(["", " ", " ", " ", " align-items:center;border-radius:", "px;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;flex-shrink:0;font-family:inherit;font-weight:", ";height:", "px;justify-content:center;margin:0;overflow:hidden;padding:0 ", "px;position:relative;pointer-events:", ";text-overflow:ellipsis;user-select:", ";vertical-align:middle;white-space:nowrap;width:", ";[data-icon-prop='true']{pointer-events:none;height:", "px;width:", "px;}", ""], getTypographyIntent(typographySizes[size]), focusable, variant === 'UNSAFE_helixNav' && css(["&.focus,&:focus{outline:none;box-shadow:0 0 0 2px ", ";}"], colors.blue70), getColors(loading, variant), borderRadius.md, typographyWeights.semibold, heights[size], paddingX[size], disabled || loading ? 'none' : 'inherit', disabled || loading ? 'none' : 'inherit', block && '100%', size === 'sm' ? 16 : 24, size === 'sm' ? 16 : 24, loading && css(["", "{pointer-events:none;visibility:hidden;}", "{display:block;}"], StyledContent, StyledSpinner));
|
|
112
112
|
}
|
|
113
113
|
export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
114
114
|
displayName: "StyledButton",
|
|
115
|
-
componentId: "core-
|
|
115
|
+
componentId: "core-12_43_0__sc-c5bhwh-3"
|
|
116
116
|
})(["", ""], function (_ref2) {
|
|
117
117
|
var $block = _ref2.$block,
|
|
118
118
|
disabled = _ref2.disabled,
|
|
@@ -123,7 +123,7 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
123
123
|
});
|
|
124
124
|
export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
|
|
125
125
|
displayName: "StyledLinkButton",
|
|
126
|
-
componentId: "core-
|
|
126
|
+
componentId: "core-12_43_0__sc-c5bhwh-4"
|
|
127
127
|
})(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
|
|
128
128
|
var $block = _ref3.$block,
|
|
129
129
|
$disabled = _ref3.$disabled,
|
|
@@ -41,10 +41,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
41
41
|
*/
|
|
42
42
|
variant?: ButtonVariant;
|
|
43
43
|
}
|
|
44
|
-
export declare type AsLinkProps =
|
|
45
|
-
'aria-label'?: string;
|
|
46
|
-
children: React.ReactNode;
|
|
47
|
-
};
|
|
44
|
+
export declare type AsLinkProps = React.ComponentProps<'a'>;
|
|
48
45
|
export interface LinkButtonProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, Pick<ButtonProps, 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'> {
|
|
49
46
|
/**
|
|
50
47
|
* Render a specific component for the link. This MUST return an anchor tag.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type React from 'react'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n | 'UNSAFE_helixNav'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * Sets the button to be 100% of the width of its parent\n * @since 10.19.0\n */\n block?: boolean\n /**\n * string icons have been deprecated, please pass a component from `@procore/core-icons`\n * The icon to display on the left side of the label\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * The icon to display on the right side of the label\n * @since 10.19.0\n * @deprecatedSince 12.18.0\n * @deprecated iconRight has been deprecated and will be removed in a future version\n */\n iconRight?: React.ReactNode\n /**\n * Shows the button spinner\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * The size of the button\n * @since 10.19.0\n */\n size?: ButtonSizes\n /**\n * The variant of the button.\n * @ deprecated variant \"tertiaryContrast\" has been deprecated since 12.18.0\n * and will be removed in a future version\n * @since 10.27.2\n */\n variant?: ButtonVariant\n}\n\nexport type AsLinkProps =
|
|
1
|
+
{"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type React from 'react'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n | 'UNSAFE_helixNav'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * Sets the button to be 100% of the width of its parent\n * @since 10.19.0\n */\n block?: boolean\n /**\n * string icons have been deprecated, please pass a component from `@procore/core-icons`\n * The icon to display on the left side of the label\n * @since 10.19.0\n */\n icon?: React.ReactNode\n /**\n * The icon to display on the right side of the label\n * @since 10.19.0\n * @deprecatedSince 12.18.0\n * @deprecated iconRight has been deprecated and will be removed in a future version\n */\n iconRight?: React.ReactNode\n /**\n * Shows the button spinner\n * @since 10.19.0\n */\n loading?: boolean\n /**\n * The size of the button\n * @since 10.19.0\n */\n size?: ButtonSizes\n /**\n * The variant of the button.\n * @ deprecated variant \"tertiaryContrast\" has been deprecated since 12.18.0\n * and will be removed in a future version\n * @since 10.27.2\n */\n variant?: ButtonVariant\n}\n\nexport type AsLinkProps = React.ComponentProps<'a'>\n\nexport interface LinkButtonProps\n extends React.AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<\n ButtonProps,\n 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'\n > {\n /**\n * Render a specific component for the link. This MUST return an anchor tag.\n * The component will receive props like onClick and className that\n * MUST be added to the element.\n *\n * This prop is useful when working with links connected to a router, and\n * a component 'outside of core-react' wants to render the `a` tag.\n *\n * @example\n * const RoutedLink = (p) => <a {...p} href=\"/test\" />\n * <LinkButton as={RoutedLink}>\n * @since 12.20.0\n */\n as?:\n | React.FunctionComponent<AsLinkProps>\n | React.ForwardRefExoticComponent<AsLinkProps>\n /**\n * Use role link when the link has destination. Use role button when it is used for POST.\n * @default 'button'\n */\n role?: 'link' | 'button'\n}\n"],"mappings":""}
|
package/dist/Button/index.d.ts
CHANGED
package/dist/Button/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Button","LinkButton","StyledButton"],"sources":["../../src/Button/index.ts"],"sourcesContent":["export { Button, LinkButton } from './Button'\nexport { StyledButton } from './Button.styles'\nexport type { ButtonProps, LinkButtonProps } from './Button.types'\n"],"mappings":"AAAA,SAASA,MAAM,EAAEC,UAAU,QAAQ,UAAU;AAC7C,SAASC,YAAY,QAAQ,iBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Button","LinkButton","StyledButton"],"sources":["../../src/Button/index.ts"],"sourcesContent":["export { Button, LinkButton } from './Button'\nexport { StyledButton } from './Button.styles'\nexport type { AsLinkProps, ButtonProps, LinkButtonProps } from './Button.types'\n"],"mappings":"AAAA,SAASA,MAAM,EAAEC,UAAU,QAAQ,UAAU;AAC7C,SAASC,YAAY,QAAQ,iBAAiB"}
|
|
@@ -8,37 +8,37 @@ var cellSize = 36; // TODO one-off size
|
|
|
8
8
|
|
|
9
9
|
export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledContainer",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-12_43_0__sc-1kkl86t-0"
|
|
12
12
|
})(["", ";display:inline-flex;flex-direction:column;padding:", "px ", "px ", "px;"], getTypographyIntent('small'), spacing.lg, spacing.md, spacing.md);
|
|
13
13
|
export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
|
|
14
14
|
displayName: "StyledPaginator",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-12_43_0__sc-1kkl86t-1"
|
|
16
16
|
})(["flex:0 0 auto;"]);
|
|
17
17
|
export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
|
|
18
18
|
displayName: "StyledSelect",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_43_0__sc-1kkl86t-2"
|
|
20
20
|
})(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
|
|
21
21
|
export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
|
|
22
22
|
displayName: "StyledNavigation",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_43_0__sc-1kkl86t-3"
|
|
24
24
|
})(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
|
|
25
25
|
export var StyledCell = /*#__PURE__*/styled.div.withConfig({
|
|
26
26
|
displayName: "StyledCell",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-12_43_0__sc-1kkl86t-4"
|
|
28
28
|
})(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
|
|
29
29
|
export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
30
30
|
displayName: "StyledDayHeaderCell",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_43_0__sc-1kkl86t-5"
|
|
32
32
|
})(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
|
|
33
33
|
export var StyledCellButton = /*#__PURE__*/styled.button.attrs({
|
|
34
34
|
type: 'button'
|
|
35
35
|
}).withConfig({
|
|
36
36
|
displayName: "StyledCellButton",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_43_0__sc-1kkl86t-6"
|
|
38
38
|
})(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;cursor:pointer;border:none;background:none;padding:0;font:inherit;"], cellSize, cellSize);
|
|
39
39
|
export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
|
|
40
40
|
displayName: "StyledDayCell",
|
|
41
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-12_43_0__sc-1kkl86t-7"
|
|
42
42
|
})(["", ""], function (_ref) {
|
|
43
43
|
var _ref$$disabled = _ref.$disabled,
|
|
44
44
|
$disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
|
|
@@ -61,6 +61,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
|
|
|
61
61
|
});
|
|
62
62
|
export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
|
|
63
63
|
displayName: "StyledWeekRow",
|
|
64
|
-
componentId: "core-
|
|
64
|
+
componentId: "core-12_43_0__sc-1kkl86t-8"
|
|
65
65
|
})(["display:inline-flex;padding-bottom:2px;user-select:none;&:last-child{padding-bottom:0;}", "{&:first-child{border-top-left-radius:", "px;border-bottom-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;border-bottom-right-radius:", "px;}}"], StyledCell, borderRadius.md, borderRadius.md, borderRadius.md, borderRadius.md);
|
|
66
66
|
//# sourceMappingURL=Calendar.styles.js.map
|
package/dist/Card/Card.styles.js
CHANGED
|
@@ -4,7 +4,7 @@ import { colors } from '../_styles/colors';
|
|
|
4
4
|
import { getShadow } from '../_styles/shadows';
|
|
5
5
|
export var StyledCardContainer = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
displayName: "StyledCardContainer",
|
|
7
|
-
componentId: "core-
|
|
7
|
+
componentId: "core-12_43_0__sc-2fii7b-0"
|
|
8
8
|
})(["background-color:", ";border-radius:", "px;transition:box-shadow 0.2s ease-in-out;", " ", ""], colors.white, borderRadius.md, function (_ref) {
|
|
9
9
|
var $level = _ref.$level,
|
|
10
10
|
$shadowStrength = _ref.$shadowStrength;
|
|
@@ -49,6 +49,7 @@ export var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_ref, ref)
|
|
|
49
49
|
className: className,
|
|
50
50
|
style: style
|
|
51
51
|
}, /*#__PURE__*/React.createElement(StyledCheckboxInput, _extends({}, props, fieldProps, {
|
|
52
|
+
"aria-invalid": error ? 'true' : 'false',
|
|
52
53
|
type: "checkbox",
|
|
53
54
|
checked: checked,
|
|
54
55
|
$error: error,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","names":["useLabel","React","Required","Tooltip","TooltipIconOnlyButton","StyledCheckboxContainer","StyledCheckboxInput","StyledCheckboxLabel","StyledCheckboxLabelWrapper","StyledFakeCheckboxInput","StyledFakeCheckboxLabel","Checkbox","forwardRef","_ref","ref","checked","children","className","_ref$error","error","_ref$indeterminate","indeterminate","style","requiredMark","tooltip","props","_objectWithoutProperties","_excluded","_useLabel","_objectSpread","label","fieldProps","labelProps","createElement","_extends","type","$error","$indeterminate","$hasLabel","Boolean","overlay","trackAriaExpanded","displayName","FakeCheckbox","_ref2","_ref2$checked","_ref2$disabled","disabled","_ref2$error","_ref2$indeterminate","_excluded2","$checked","$disabled"],"sources":["../../src/Checkbox/Checkbox.tsx"],"sourcesContent":["import { useLabel } from '@react-aria/label'\nimport React from 'react'\nimport { Required } from '../Required/Required'\nimport { Tooltip, TooltipIconOnlyButton } from '../Tooltip/Tooltip'\nimport {\n StyledCheckboxContainer,\n StyledCheckboxInput,\n StyledCheckboxLabel,\n StyledCheckboxLabelWrapper,\n StyledFakeCheckboxInput,\n StyledFakeCheckboxLabel,\n} from './Checkbox.styles'\nimport type { CheckboxProps } from './Checkbox.types'\n\n/**\n\n We use checkboxes to provide users with the ability to either select or\n deselect multiple values from a list of options (e.g. items on list pages),\n or to select or deselect a single option (e.g. settings on configure pages).\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-checkbox--demo)\n\n @see [Design Guidelines](https://design.procore.com/checkbox)\n\n */\nexport const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n function Checkbox(\n {\n checked,\n children,\n className,\n error = false,\n indeterminate = false,\n style,\n requiredMark,\n tooltip,\n ...props\n },\n ref\n ) {\n const { fieldProps, labelProps } = useLabel({\n ...props,\n // to always generate labelProps, so checkbox icon can be clickable for empty labels\n label: true,\n })\n return (\n <StyledCheckboxContainer className={className} style={style}>\n <StyledCheckboxInput\n {...props}\n {...fieldProps}\n type=\"checkbox\"\n checked={checked}\n $error={error}\n $indeterminate={indeterminate}\n ref={ref}\n />\n <StyledCheckboxLabelWrapper $hasLabel={Boolean(children)}>\n <StyledCheckboxLabel {...labelProps}>\n {children}\n {requiredMark && <Required />}\n </StyledCheckboxLabel>\n {tooltip && (\n <Tooltip overlay={tooltip} trackAriaExpanded>\n <TooltipIconOnlyButton />\n </Tooltip>\n )}\n </StyledCheckboxLabelWrapper>\n </StyledCheckboxContainer>\n )\n }\n)\n\nCheckbox.displayName = 'Checkbox'\n\n/**\n * This checkbox was created to be used as a non-interactive Checkbox component\n * for VoiceOver inside MenuImperative.CheckboxItem.\n *\n * @since 11.3.0\n */\n\nexport const FakeCheckbox = React.forwardRef<\n HTMLDivElement,\n Omit<CheckboxProps, 'requiredMark' | 'tooltip'>\n>(function FakeCheckbox(\n {\n checked = false,\n children,\n className,\n disabled = false,\n error = false,\n indeterminate = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <StyledCheckboxContainer className={className} style={style}>\n <StyledFakeCheckboxInput\n {...props}\n $checked={checked}\n $disabled={disabled}\n $error={error}\n $indeterminate={indeterminate}\n ref={ref}\n />\n <StyledFakeCheckboxLabel $checked={checked} $disabled={disabled}>\n {children}\n </StyledFakeCheckboxLabel>\n </StyledCheckboxContainer>\n )\n})\n\nFakeCheckbox.displayName = 'FakeCheckbox'\n"],"mappings":";;;;;;;;;;;AAAA,SAASA,QAAQ,QAAQ,mBAAmB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,S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1
|
+
{"version":3,"file":"Checkbox.js","names":["useLabel","React","Required","Tooltip","TooltipIconOnlyButton","StyledCheckboxContainer","StyledCheckboxInput","StyledCheckboxLabel","StyledCheckboxLabelWrapper","StyledFakeCheckboxInput","StyledFakeCheckboxLabel","Checkbox","forwardRef","_ref","ref","checked","children","className","_ref$error","error","_ref$indeterminate","indeterminate","style","requiredMark","tooltip","props","_objectWithoutProperties","_excluded","_useLabel","_objectSpread","label","fieldProps","labelProps","createElement","_extends","type","$error","$indeterminate","$hasLabel","Boolean","overlay","trackAriaExpanded","displayName","FakeCheckbox","_ref2","_ref2$checked","_ref2$disabled","disabled","_ref2$error","_ref2$indeterminate","_excluded2","$checked","$disabled"],"sources":["../../src/Checkbox/Checkbox.tsx"],"sourcesContent":["import { useLabel } from '@react-aria/label'\nimport React from 'react'\nimport { Required } from '../Required/Required'\nimport { Tooltip, TooltipIconOnlyButton } from '../Tooltip/Tooltip'\nimport {\n StyledCheckboxContainer,\n StyledCheckboxInput,\n StyledCheckboxLabel,\n StyledCheckboxLabelWrapper,\n StyledFakeCheckboxInput,\n StyledFakeCheckboxLabel,\n} from './Checkbox.styles'\nimport type { CheckboxProps } from './Checkbox.types'\n\n/**\n\n We use checkboxes to provide users with the ability to either select or\n deselect multiple values from a list of options (e.g. items on list pages),\n or to select or deselect a single option (e.g. settings on configure pages).\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-checkbox--demo)\n\n @see [Design Guidelines](https://design.procore.com/checkbox)\n\n */\nexport const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n function Checkbox(\n {\n checked,\n children,\n className,\n error = false,\n indeterminate = false,\n style,\n requiredMark,\n tooltip,\n ...props\n },\n ref\n ) {\n const { fieldProps, labelProps } = useLabel({\n ...props,\n // to always generate labelProps, so checkbox icon can be clickable for empty labels\n label: true,\n })\n return (\n <StyledCheckboxContainer className={className} style={style}>\n <StyledCheckboxInput\n {...props}\n {...fieldProps}\n aria-invalid={error ? 'true' : 'false'}\n type=\"checkbox\"\n checked={checked}\n $error={error}\n $indeterminate={indeterminate}\n ref={ref}\n />\n <StyledCheckboxLabelWrapper $hasLabel={Boolean(children)}>\n <StyledCheckboxLabel {...labelProps}>\n {children}\n {requiredMark && <Required />}\n </StyledCheckboxLabel>\n {tooltip && (\n <Tooltip overlay={tooltip} trackAriaExpanded>\n <TooltipIconOnlyButton />\n </Tooltip>\n )}\n </StyledCheckboxLabelWrapper>\n </StyledCheckboxContainer>\n )\n }\n)\n\nCheckbox.displayName = 'Checkbox'\n\n/**\n * This checkbox was created to be used as a non-interactive Checkbox component\n * for VoiceOver inside MenuImperative.CheckboxItem.\n *\n * @since 11.3.0\n */\n\nexport const FakeCheckbox = React.forwardRef<\n HTMLDivElement,\n Omit<CheckboxProps, 'requiredMark' | 'tooltip'>\n>(function FakeCheckbox(\n {\n checked = false,\n children,\n className,\n disabled = false,\n error = false,\n indeterminate = false,\n style,\n ...props\n },\n ref\n) {\n return (\n <StyledCheckboxContainer className={className} style={style}>\n <StyledFakeCheckboxInput\n {...props}\n $checked={checked}\n $disabled={disabled}\n $error={error}\n $indeterminate={indeterminate}\n ref={ref}\n />\n <StyledFakeCheckboxLabel $checked={checked} $disabled={disabled}>\n {children}\n </StyledFakeCheckboxLabel>\n </StyledCheckboxContainer>\n )\n})\n\nFakeCheckbox.displayName = 'FakeCheckbox'\n"],"mappings":";;;;;;;;;;;AAAA,SAASA,QAAQ,QAAQ,mBAAmB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,OAAO,EAAEC,qBAAqB,QAAQ,oBAAoB;AACnE,SACEC,uBAAuB,EACvBC,mBAAmB,EACnBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,uBAAuB,EACvBC,uBAAuB,QAClB,mBAAmB;AAG1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IA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AgC,aAAA,CAACxB,uBAAuB,EAAAyB,QAAA,KAClBT,KAAK;IACT0B,QAAQ,EAAEpC,OAAQ;IAClBqC,SAAS,EAAEL,QAAS;IACpBX,MAAM,EAAEjB,KAAM;IACdkB,cAAc,EAAEhB,aAAc;IAC9BP,GAAG,EAAEA;EAAI,EACV,CAAC,eACFb,KAAA,CAAAgC,aAAA,CAACvB,uBAAuB;IAACyC,QAAQ,EAAEpC,OAAQ;IAACqC,SAAS,EAAEL;EAAS,GAC7D/B,QACsB,CACF,CAAC;AAE9B,CAAC,CAAC;AAEF2B,YAAY,CAACD,WAAW,GAAG,cAAc"}
|
|
@@ -9,7 +9,7 @@ export var dataQa = {
|
|
|
9
9
|
export var checkboxSize = 20;
|
|
10
10
|
export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledCheckboxContainer",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_43_0__sc-u63tye-0"
|
|
13
13
|
})(["color:", ";display:block;position:relative;& + &{margin-top:", "px;}"], colors.gray15, spacing.md);
|
|
14
14
|
function StyledIndeterminate() {
|
|
15
15
|
return css(["background-color:", ";content:'';height:2px;left:5px;position:absolute;top:9px;width:10px;border:none;"], colors.white);
|
|
@@ -48,18 +48,18 @@ function StyledFakeIndeterminate() {
|
|
|
48
48
|
}
|
|
49
49
|
export var StyledCheckboxLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
50
50
|
displayName: "StyledCheckboxLabelWrapper",
|
|
51
|
-
componentId: "core-
|
|
51
|
+
componentId: "core-12_43_0__sc-u63tye-1"
|
|
52
52
|
})(["padding-left:", "px;min-height:", "px;position:relative;", ""], function (_ref) {
|
|
53
53
|
var $hasLabel = _ref.$hasLabel;
|
|
54
54
|
return $hasLabel ? checkboxSize + spacing.md : checkboxSize;
|
|
55
55
|
}, checkboxSize, getTypographyIntent('body'));
|
|
56
56
|
export var StyledCheckboxLabel = /*#__PURE__*/styled.label.withConfig({
|
|
57
57
|
displayName: "StyledCheckboxLabel",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-12_43_0__sc-u63tye-2"
|
|
59
59
|
})(["user-select:none;&:before{background-color:", ";border-radius:2px;border:2px solid ", ";content:'';display:inline-block;height:", "px;width:", "px;min-width:", "px;top:0;left:0;position:absolute;}"], colors.white, colors.gray70, checkboxSize, checkboxSize, checkboxSize);
|
|
60
60
|
export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
|
|
61
61
|
displayName: "StyledCheckboxInput",
|
|
62
|
-
componentId: "core-
|
|
62
|
+
componentId: "core-12_43_0__sc-u63tye-3"
|
|
63
63
|
})(["left:0;opacity:0;position:absolute;top:0;&:disabled:checked + ", " > ", ":before{background-color:", ";border-color:", ";}&:disabled + ", " > ", ":before{background-color:", ";border-color:", ";}", " &:checked + ", " > ", "{&:before{background-color:", ";border-color:", ";color:", ";}&:after{", "}}&:focus:not(:disabled),&[data-qa=", "]:not(:disabled){+ ", " > ", ":before{", "}}", ""], StyledCheckboxLabelWrapper, StyledCheckboxLabel, colors.blue85, colors.blue85, StyledCheckboxLabelWrapper, StyledCheckboxLabel, function (_ref2) {
|
|
64
64
|
var $indeterminate = _ref2.$indeterminate;
|
|
65
65
|
return $indeterminate ? colors.gray85 : colors.white;
|
|
@@ -83,7 +83,7 @@ export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
|
|
|
83
83
|
});
|
|
84
84
|
export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
|
|
85
85
|
displayName: "StyledFakeCheckboxLabel",
|
|
86
|
-
componentId: "core-
|
|
86
|
+
componentId: "core-12_43_0__sc-u63tye-4"
|
|
87
87
|
})(["", " display:block;min-height:", "px;padding-left:", "px;position:relative;user-select:none;cursor:pointer;", ""], getTypographyIntent('body'), checkboxSize, function (_ref7) {
|
|
88
88
|
var children = _ref7.children;
|
|
89
89
|
return children ? checkboxSize + spacing.md : checkboxSize;
|
|
@@ -99,7 +99,7 @@ export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
99
99
|
});
|
|
100
100
|
export var StyledFakeCheckboxInput = /*#__PURE__*/styled.div.withConfig({
|
|
101
101
|
displayName: "StyledFakeCheckboxInput",
|
|
102
|
-
componentId: "core-
|
|
102
|
+
componentId: "core-12_43_0__sc-u63tye-5"
|
|
103
103
|
})(["width:", "px;height:", "px;border-radius:2px;border:2px solid ", ";position:absolute;", " ", " ", " ", ""], checkboxSize, checkboxSize, colors.gray70, function (_ref9) {
|
|
104
104
|
var $checked = _ref9.$checked,
|
|
105
105
|
$disabled = _ref9.$disabled,
|
|
@@ -7,23 +7,23 @@ import { getLineClamp } from '../_styles/mixins';
|
|
|
7
7
|
import { spacing } from '../_styles/spacing';
|
|
8
8
|
export var ContactItemAvatarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "ContactItemAvatarWrapper",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_43_0__sc-1c4z9pn-0"
|
|
11
11
|
})(["display:inline-flex;align-self:flex-start;"]);
|
|
12
12
|
export var ContactItemAvatar = /*#__PURE__*/styled(Avatar).withConfig({
|
|
13
13
|
displayName: "ContactItemAvatar",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_43_0__sc-1c4z9pn-1"
|
|
15
15
|
})(["cursor:inherit;font-weight:", ";"], typographyWeights.bold);
|
|
16
16
|
export var ContactItemTextWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "ContactItemTextWrapper",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_43_0__sc-1c4z9pn-2"
|
|
19
19
|
})(["overflow:hidden;margin-left:", "px;"], spacing.sm);
|
|
20
20
|
export var ContactItemText = /*#__PURE__*/styled(Typography).withConfig({
|
|
21
21
|
displayName: "ContactItemText",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-12_43_0__sc-1c4z9pn-3"
|
|
23
23
|
})(["display:flex;", ""], getLineClamp());
|
|
24
24
|
export var ContactItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "ContactItemWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_43_0__sc-1c4z9pn-4"
|
|
27
27
|
})(["display:flex;flex-direction:row;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, function (_ref) {
|
|
28
28
|
var $disabled = _ref.$disabled,
|
|
29
29
|
$clickable = _ref.$clickable;
|
|
@@ -5,10 +5,10 @@ import { mediaIE11Hack } from '../_styles/media';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledContent = /*#__PURE__*/styled(Box).withConfig({
|
|
7
7
|
displayName: "StyledContent",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_43_0__sc-10y57gh-0"
|
|
9
9
|
})(["> * + *,> * + h1,> * + h2,> * + h3,> * + h4,> * + p,> * + ul,> * + ol{margin-top:", "px;}> ", " + *{margin-top:0;}> ", ",> ", " > ", ",> ", "{", "{min-height:0;margin-bottom:", "px;}&:last-child ", "{margin-bottom:0;}}"], spacing.lg, StyledFormRow, StyledFormRow, StyledForm, StyledFormRow, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
|
|
10
10
|
export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
|
|
11
11
|
displayName: "StyledActions",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_43_0__sc-10y57gh-1"
|
|
13
13
|
})(["display:flex;justify-content:flex-end;gap:", "px;@media ", "{& > * + *{margin-left:", "px;}}"], spacing.sm, mediaIE11Hack, spacing.sm);
|
|
14
14
|
//# sourceMappingURL=Content.styles.js.map
|
|
@@ -18,6 +18,7 @@ import { getDatePartsWithPlaceholders } from '@procore/globalization-toolkit';
|
|
|
18
18
|
import { isSameDay } from 'date-fns';
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import { Button } from '../Button/Button';
|
|
21
|
+
import { useOverlayTriggerContext } from '../OverlayTrigger/OverlayTrigger';
|
|
21
22
|
import { useDateTime } from '../_hooks/DateTime';
|
|
22
23
|
import { useI18nContext } from '../_hooks/I18n';
|
|
23
24
|
import { getMaxYear, maxMonth, minYear, normalizeNewDate } from '../_utils/CalendarHelpers';
|
|
@@ -317,12 +318,20 @@ var DateSegment = /*#__PURE__*/React.forwardRef(function DateSegment(_ref3, ref)
|
|
|
317
318
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
318
319
|
keyBuffer = _React$useState8[0],
|
|
319
320
|
setKeyBuffer = _React$useState8[1];
|
|
321
|
+
var _useOverlayTriggerCon = useOverlayTriggerContext(),
|
|
322
|
+
show = _useOverlayTriggerCon.show;
|
|
320
323
|
var contains = function contains(key, keys) {
|
|
321
324
|
return keys.indexOf(key) >= 0;
|
|
322
325
|
};
|
|
323
326
|
var onKeyDown = function onKeyDown(event) {
|
|
324
327
|
event.stopPropagation();
|
|
325
328
|
var key = event.key;
|
|
329
|
+
var isOpenKey = contains(key, ['Enter', ' ']);
|
|
330
|
+
if (isOpenKey) {
|
|
331
|
+
event.preventDefault();
|
|
332
|
+
event.stopPropagation();
|
|
333
|
+
show(event);
|
|
334
|
+
}
|
|
326
335
|
if (contains(key, ['Up', 'ArrowUp', 'Down', 'ArrowDown', 'Backspace'])) {
|
|
327
336
|
event.preventDefault();
|
|
328
337
|
}
|