@procore/core-react 11.26.2 → 11.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.js +2 -2
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.js +6 -6
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.d.ts +5 -0
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelect.types.d.ts +1 -1
- package/dist/FileSelect/FileSelect.types.js.map +1 -1
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.js +27 -12
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +16 -16
- 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 +13 -13
- package/dist/MenuImperative/MenuImperative.styles.js.map +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +13 -13
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +2 -2
- package/dist/_locales/en.json +2 -2
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +21 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +28 -28
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +726 -726
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +57 -57
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +97 -97
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +1 -1
|
@@ -24,26 +24,26 @@ var iconSize = {
|
|
|
24
24
|
};
|
|
25
25
|
export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
26
26
|
displayName: "StyledAvatarOverlay",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-11_28_0__sc-7q2ydl-0"
|
|
28
28
|
})(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
|
|
29
29
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledIconContainer",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-11_28_0__sc-7q2ydl-1"
|
|
32
32
|
})(["display:inline-flex;"]);
|
|
33
33
|
export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledLabelContainer",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-11_28_0__sc-7q2ydl-2"
|
|
36
36
|
})(["text-transform:uppercase;"]);
|
|
37
37
|
export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
|
|
38
38
|
displayName: "StyledPortraitContainer",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-11_28_0__sc-7q2ydl-3"
|
|
40
40
|
})(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
|
|
41
41
|
var $imageUrl = _ref.$imageUrl;
|
|
42
42
|
return css(["background-image:url(", ");"], $imageUrl);
|
|
43
43
|
});
|
|
44
44
|
export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
45
45
|
displayName: "StyledAvatarContainer",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-11_28_0__sc-7q2ydl-4"
|
|
47
47
|
})(["display:inline-flex;justify-content:center;align-items:center;border-radius:100%;overflow:hidden;position:relative;cursor:default;color:", ";background-color:", ";text-decoration:none;a:has(> &){text-decoration:none;}&:focus{", "}a:focus:has(> &){", " border-radius:100%;}", " ", ";"], colors.white, colors.gray30, getGapOutlineFocus, getGapOutlineFocus, function (_ref2) {
|
|
48
48
|
var _ref2$$size = _ref2.$size,
|
|
49
49
|
$size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
|
|
@@ -7,32 +7,32 @@ import { spacing } from '../_styles/spacing';
|
|
|
7
7
|
var maxModalWidth = 528;
|
|
8
8
|
var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
|
|
9
9
|
displayName: "StyledBaseAvatar",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_28_0__sc-ft72hu-0"
|
|
11
11
|
})(["border-color:", ";border-style:solid;border-width:1px;&:hover{z-index:1;}&[role='img']:focus{outline:none;}"], colors.white);
|
|
12
12
|
export var StyledAvatar = /*#__PURE__*/styled(StyledBaseAvatar).withConfig({
|
|
13
13
|
displayName: "StyledAvatar",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_28_0__sc-ft72hu-1"
|
|
15
15
|
})(["background-color:", ";"], function (props) {
|
|
16
16
|
return colors[props.$color];
|
|
17
17
|
});
|
|
18
18
|
export var StyledContactItems = /*#__PURE__*/styled.div.withConfig({
|
|
19
19
|
displayName: "StyledContactItems",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-11_28_0__sc-ft72hu-2"
|
|
21
21
|
})(["padding-top:", "px;padding-bottom:", "px;padding-left:", "px;"], spacing.sm, spacing.sm, spacing.xs);
|
|
22
22
|
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledWrapper",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-11_28_0__sc-ft72hu-3"
|
|
25
25
|
})(["display:flex;", " + ", "{margin-left:-", "px;}"], StyledAvatar, StyledAvatar, spacing.sm);
|
|
26
26
|
export var StyledViewAllWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
27
27
|
displayName: "StyledViewAllWrapper",
|
|
28
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-11_28_0__sc-ft72hu-4"
|
|
29
29
|
})(["display:flex;margin-left:", "px;margin-bottom:", "px;"], spacing.md, spacing.lg);
|
|
30
30
|
export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
|
|
31
31
|
displayName: "StyledModalBody",
|
|
32
|
-
componentId: "core-
|
|
32
|
+
componentId: "core-11_28_0__sc-ft72hu-5"
|
|
33
33
|
})(["max-width:", "px;"], maxModalWidth);
|
|
34
34
|
export var StyledContactItem = /*#__PURE__*/styled(ContactItem).withConfig({
|
|
35
35
|
displayName: "StyledContactItem",
|
|
36
|
-
componentId: "core-
|
|
36
|
+
componentId: "core-11_28_0__sc-ft72hu-6"
|
|
37
37
|
})(["flex-shrink:0;"]);
|
|
38
38
|
//# sourceMappingURL=AvatarStack.styles.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var StyledBadge = /*#__PURE__*/styled.div.withConfig({
|
|
3
3
|
displayName: "StyledBadge",
|
|
4
|
-
componentId: "core-
|
|
4
|
+
componentId: "core-11_28_0__sc-rpertu-0"
|
|
5
5
|
})(["display:inline-block;position:relative;"]);
|
|
6
6
|
export var StyledBadgeLabel = /*#__PURE__*/styled.span.withConfig({
|
|
7
7
|
displayName: "StyledBadgeLabel",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_28_0__sc-rpertu-1"
|
|
9
9
|
})(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
|
|
10
10
|
//# sourceMappingURL=Badge.styles.js.map
|
|
@@ -49,7 +49,7 @@ var expandContent = function expandContent(maxHeight) {
|
|
|
49
49
|
};
|
|
50
50
|
export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
51
51
|
displayName: "StyledBannerContainer",
|
|
52
|
-
componentId: "core-
|
|
52
|
+
componentId: "core-11_28_0__sc-149wm7c-0"
|
|
53
53
|
})(["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) {
|
|
54
54
|
var variant = _ref.variant;
|
|
55
55
|
var _bannerVariantColors$ = bannerVariantColors[variant],
|
|
@@ -62,15 +62,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
62
62
|
});
|
|
63
63
|
export var StyledContent = /*#__PURE__*/styled.div.withConfig({
|
|
64
64
|
displayName: "StyledContent",
|
|
65
|
-
componentId: "core-
|
|
65
|
+
componentId: "core-11_28_0__sc-149wm7c-1"
|
|
66
66
|
})(["align-self:center;margin:", "px ", "px;width:100%;"], spacing.sm, spacing.lg);
|
|
67
67
|
export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
|
|
68
68
|
displayName: "StyledExpandableContentContainer",
|
|
69
|
-
componentId: "core-
|
|
69
|
+
componentId: "core-11_28_0__sc-149wm7c-2"
|
|
70
70
|
})(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
|
|
71
71
|
export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
72
72
|
displayName: "StyledExpandableContent",
|
|
73
|
-
componentId: "core-
|
|
73
|
+
componentId: "core-11_28_0__sc-149wm7c-3"
|
|
74
74
|
})(["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) {
|
|
75
75
|
var isOverflowingY = _ref3.isOverflowingY;
|
|
76
76
|
return isOverflowingY && focusable;
|
|
@@ -80,23 +80,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
|
|
|
80
80
|
});
|
|
81
81
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
82
82
|
displayName: "StyledTitle",
|
|
83
|
-
componentId: "core-
|
|
83
|
+
componentId: "core-11_28_0__sc-149wm7c-4"
|
|
84
84
|
})(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
|
|
85
85
|
export var StyledBody = /*#__PURE__*/styled.div.withConfig({
|
|
86
86
|
displayName: "StyledBody",
|
|
87
|
-
componentId: "core-
|
|
87
|
+
componentId: "core-11_28_0__sc-149wm7c-5"
|
|
88
88
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
|
|
89
89
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
90
90
|
displayName: "StyledIconContainer",
|
|
91
|
-
componentId: "core-
|
|
91
|
+
componentId: "core-11_28_0__sc-149wm7c-6"
|
|
92
92
|
})(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
|
|
93
93
|
export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
|
|
94
94
|
displayName: "StyledActionsTrigger",
|
|
95
|
-
componentId: "core-
|
|
95
|
+
componentId: "core-11_28_0__sc-149wm7c-7"
|
|
96
96
|
})(["flex-shrink:0;& + ", "{margin-left:", "px;}"], StyledButton, spacing.sm);
|
|
97
97
|
export var StyledAction = /*#__PURE__*/styled.div.withConfig({
|
|
98
98
|
displayName: "StyledAction",
|
|
99
|
-
componentId: "core-
|
|
99
|
+
componentId: "core-11_28_0__sc-149wm7c-8"
|
|
100
100
|
})(["margin:", "px 0;& + ", ",& + ", "{margin-left:", "px;}", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, StyledButton, StyledActionsTrigger, spacing.sm, StyledButton, colors.gray15, colors.gray85, colors.gray15);
|
|
101
101
|
function getMiniBannerIconColor(_ref5) {
|
|
102
102
|
var variant = _ref5.variant;
|
|
@@ -104,6 +104,6 @@ function getMiniBannerIconColor(_ref5) {
|
|
|
104
104
|
}
|
|
105
105
|
export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
106
106
|
displayName: "StyledMiniBannerContainer",
|
|
107
|
-
componentId: "core-
|
|
107
|
+
componentId: "core-11_28_0__sc-149wm7c-9"
|
|
108
108
|
})(["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);
|
|
109
109
|
//# 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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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';
|
package/dist/Button/Button.js
CHANGED
|
@@ -104,9 +104,9 @@ export var LinkButton = /*#__PURE__*/React.forwardRef(function LinkButton(_ref3,
|
|
|
104
104
|
var disabled = disabled_ || !href_;
|
|
105
105
|
var href = disabled ? undefined : href_;
|
|
106
106
|
return /*#__PURE__*/React.createElement(StyledLinkButton, _extends({
|
|
107
|
-
"data-a11y-skip": variant === 'primary' ? 'color-contrast' : undefined
|
|
107
|
+
"data-a11y-skip": variant === 'primary' ? 'color-contrast' : undefined,
|
|
108
|
+
role: "button"
|
|
108
109
|
}, props, {
|
|
109
|
-
role: "button",
|
|
110
110
|
"aria-disabled": disabled,
|
|
111
111
|
href: href,
|
|
112
112
|
$disabled: disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n StyledButton,\n StyledContent,\n StyledLabel,\n StyledLinkButton,\n StyledSpinner,\n} from './Button.styles'\nimport type { ButtonProps, LinkButtonProps } from './Button.types'\n\nconst ButtonContent: FunctionComponent<\n PropsWithChildren<\n Pick<ButtonProps, 'icon' | 'iconRight' | 'size' | 'variant'>\n >\n> = ({ children, icon, iconRight, size, variant }) => {\n return (\n <>\n <StyledContent>\n {React.isValidElement<{ ['data-icon-prop']: string }>(icon)\n ? React.cloneElement(icon, { ['data-icon-prop']: 'true' })\n : null}\n {React.Children.map(children, (child) => {\n return <StyledLabel>{child}</StyledLabel>\n })}\n {React.isValidElement<{ ['data-icon-prop']: string }>(iconRight)\n ? React.cloneElement(iconRight, { ['data-icon-prop']: 'true' })\n : null}\n </StyledContent>\n <StyledSpinner\n size={size === 'lg' ? 'md' : 'sm'}\n color={variant === 'primary' ? 'white' : 'gray15'}\n />\n </>\n )\n}\n\n/**\n\n We use buttons to link to other pages or to trigger an action.\n Buttons clearly define what happens when a user clicks it.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-button--demo)\n\n @see [Design Guidelines](https://design.procore.com/button)\n\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function Button(\n {\n block = false,\n children,\n disabled = false,\n icon,\n iconRight,\n loading = false,\n size = 'md',\n type = 'button',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n return (\n <StyledButton\n aria-busy={loading || undefined}\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n tabIndex={0}\n {...props}\n $block={block}\n disabled={disabled || loading}\n $loading={loading}\n $size={size}\n $variant={variant}\n type={type}\n ref={ref}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledButton>\n )\n }\n)\n\nexport const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(\n function LinkButton(\n {\n block = false,\n children,\n disabled: disabled_,\n href: href_,\n icon,\n iconRight,\n size = 'md',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n const innerRef = React.useRef<HTMLAnchorElement>(null)\n\n const mimicButtonRole = (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n const { key } = e\n\n if (['Enter', 'Spacebar', ' '].indexOf(key) >= 0) {\n // Prevents the page to scroll when \"space\" is pressed\n e.preventDefault()\n innerRef.current?.click()\n }\n }\n\n useEventListener({\n event: 'keydown',\n handler: mimicButtonRole,\n scope: innerRef,\n })\n\n const disabled = disabled_ || !href_\n const href = disabled ? undefined : href_\n\n return (\n <StyledLinkButton\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n
|
|
1
|
+
{"version":3,"file":"Button.js","names":["React","useEventListener","mergeRefs","StyledButton","StyledContent","StyledLabel","StyledLinkButton","StyledSpinner","ButtonContent","_ref","children","icon","iconRight","size","variant","createElement","Fragment","isValidElement","cloneElement","_defineProperty","Children","map","child","color","Button","forwardRef","_ref2","ref","_ref2$block","block","_ref2$disabled","disabled","_ref2$loading","loading","_ref2$size","_ref2$type","type","_ref2$variant","props","_objectWithoutProperties","_excluded","_extends","undefined","tabIndex","$block","$loading","$size","$variant","LinkButton","_ref3","_ref3$block","disabled_","href_","href","_ref3$size","_ref3$variant","_excluded2","innerRef","useRef","mimicButtonRole","e","key","indexOf","_innerRef$current","preventDefault","current","click","event","handler","scope","role","$disabled"],"sources":["../../src/Button/Button.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useEventListener } from '../_hooks/EventListener'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n StyledButton,\n StyledContent,\n StyledLabel,\n StyledLinkButton,\n StyledSpinner,\n} from './Button.styles'\nimport type { ButtonProps, LinkButtonProps } from './Button.types'\n\nconst ButtonContent: FunctionComponent<\n PropsWithChildren<\n Pick<ButtonProps, 'icon' | 'iconRight' | 'size' | 'variant'>\n >\n> = ({ children, icon, iconRight, size, variant }) => {\n return (\n <>\n <StyledContent>\n {React.isValidElement<{ ['data-icon-prop']: string }>(icon)\n ? React.cloneElement(icon, { ['data-icon-prop']: 'true' })\n : null}\n {React.Children.map(children, (child) => {\n return <StyledLabel>{child}</StyledLabel>\n })}\n {React.isValidElement<{ ['data-icon-prop']: string }>(iconRight)\n ? React.cloneElement(iconRight, { ['data-icon-prop']: 'true' })\n : null}\n </StyledContent>\n <StyledSpinner\n size={size === 'lg' ? 'md' : 'sm'}\n color={variant === 'primary' ? 'white' : 'gray15'}\n />\n </>\n )\n}\n\n/**\n\n We use buttons to link to other pages or to trigger an action.\n Buttons clearly define what happens when a user clicks it.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-button--demo)\n\n @see [Design Guidelines](https://design.procore.com/button)\n\n */\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function Button(\n {\n block = false,\n children,\n disabled = false,\n icon,\n iconRight,\n loading = false,\n size = 'md',\n type = 'button',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n return (\n <StyledButton\n aria-busy={loading || undefined}\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n tabIndex={0}\n {...props}\n $block={block}\n disabled={disabled || loading}\n $loading={loading}\n $size={size}\n $variant={variant}\n type={type}\n ref={ref}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledButton>\n )\n }\n)\n\nexport const LinkButton = React.forwardRef<HTMLAnchorElement, LinkButtonProps>(\n function LinkButton(\n {\n block = false,\n children,\n disabled: disabled_,\n href: href_,\n icon,\n iconRight,\n size = 'md',\n variant = 'primary',\n ...props\n },\n ref\n ) {\n const innerRef = React.useRef<HTMLAnchorElement>(null)\n\n const mimicButtonRole = (e: React.KeyboardEvent<HTMLAnchorElement>) => {\n const { key } = e\n\n if (['Enter', 'Spacebar', ' '].indexOf(key) >= 0) {\n // Prevents the page to scroll when \"space\" is pressed\n e.preventDefault()\n innerRef.current?.click()\n }\n }\n\n useEventListener({\n event: 'keydown',\n handler: mimicButtonRole,\n scope: innerRef,\n })\n\n const disabled = disabled_ || !href_\n const href = disabled ? undefined : href_\n\n return (\n <StyledLinkButton\n data-a11y-skip={variant === 'primary' ? 'color-contrast' : undefined}\n role=\"button\"\n {...props}\n aria-disabled={disabled}\n href={href}\n $disabled={disabled}\n $block={block}\n $size={size}\n $variant={variant}\n ref={mergeRefs(ref, innerRef)}\n >\n <ButtonContent\n icon={icon}\n iconRight={iconRight}\n size={size}\n variant={variant}\n >\n {children}\n </ButtonContent>\n </StyledLinkButton>\n )\n }\n)\n"],"mappings":";;;;;;;;;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,gBAAgB,EAChBC,aAAa,QACR,iBAAiB;AAGxB,IAAMC,aAIL,GAAG,SAJEA,aAILA,CAAAC,IAAA,EAAqD;EAAA,IAA/CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IAAEC,OAAO,GAAAL,IAAA,CAAPK,OAAO;EAC7C,oBACEd,KAA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G,gBAAgB,GAAG4B,SAAU;IACrE4B,IAAI,EAAC;EAAQ,GACThC,KAAK;IACT,iBAAeP,QAAS;IACxBsB,IAAI,EAAEA,IAAK;IACXkB,SAAS,EAAExC,QAAS;IACpBa,MAAM,EAAEf,KAAM;IACdiB,KAAK,EAAEjC,IAAK;IACZkC,QAAQ,EAAEjC,OAAQ;IAClBa,GAAG,EAAEzB,SAAS,CAACyB,GAAG,EAAE8B,QAAQ;EAAE,iBAE9BzD,KAAA,CAAAe,aAAA,CAACP,aAAa;IACZG,IAAI,EAAEA,IAAK;IACXC,SAAS,EAAEA,SAAU;IACrBC,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA;EAAQ,GAEhBJ,QACY,CACC,CAAC;AAEvB,CACF,CAAC"}
|
|
@@ -84,11 +84,11 @@ function getColors(loading, variant) {
|
|
|
84
84
|
}
|
|
85
85
|
export var StyledContent = /*#__PURE__*/styled.span.withConfig({
|
|
86
86
|
displayName: "StyledContent",
|
|
87
|
-
componentId: "core-
|
|
87
|
+
componentId: "core-11_28_0__sc-c5bhwh-0"
|
|
88
88
|
})(["align-items:center;display:flex;overflow:hidden;"]);
|
|
89
89
|
export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
90
90
|
displayName: "StyledSpinner",
|
|
91
|
-
componentId: "core-
|
|
91
|
+
componentId: "core-11_28_0__sc-c5bhwh-1"
|
|
92
92
|
})(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
|
|
93
93
|
var size = _ref.size;
|
|
94
94
|
var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
|
|
@@ -96,14 +96,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
|
96
96
|
});
|
|
97
97
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
98
98
|
displayName: "StyledLabel",
|
|
99
|
-
componentId: "core-
|
|
99
|
+
componentId: "core-11_28_0__sc-c5bhwh-2"
|
|
100
100
|
})(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
|
|
101
101
|
function getButtonStyles(block, disabled, loading, size, variant) {
|
|
102
102
|
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, 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));
|
|
103
103
|
}
|
|
104
104
|
export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
105
105
|
displayName: "StyledButton",
|
|
106
|
-
componentId: "core-
|
|
106
|
+
componentId: "core-11_28_0__sc-c5bhwh-3"
|
|
107
107
|
})(["", ""], function (_ref2) {
|
|
108
108
|
var $block = _ref2.$block,
|
|
109
109
|
disabled = _ref2.disabled,
|
|
@@ -114,8 +114,8 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
114
114
|
});
|
|
115
115
|
export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
|
|
116
116
|
displayName: "StyledLinkButton",
|
|
117
|
-
componentId: "core-
|
|
118
|
-
})(["text-decoration:none;", ""], function (_ref3) {
|
|
117
|
+
componentId: "core-11_28_0__sc-c5bhwh-4"
|
|
118
|
+
})(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
|
|
119
119
|
var $block = _ref3.$block,
|
|
120
120
|
$disabled = _ref3.$disabled,
|
|
121
121
|
$size = _ref3.$size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.js","names":["styled","css","defaultSpinnerSize","Spinner","spinnerDimensions","getTypographyIntent","typographyWeights","borderRadius","colors","mediaIE11Hack","focusable","spacing","heights","sm","md","lg","paddingX","xs","typographySizes","buttonTextColors","primary","main","white","disabled","secondary","gray15","gray70","tertiary","tertiaryContrast","blue45","buttonBGColors","orange50","hover","orange45","orange85","gray90","gray85","gray94","getBGColor","variant","console","error","concat","getTextColor","getColors","loading","StyledContent","span","withConfig","displayName","componentId","StyledSpinner","_ref","size","margin","StyledLabel","getButtonStyles","block","semibold","StyledButton","button","_ref2","$block","$loading","$size","$variant","StyledLinkButton","a","_ref3","$disabled"],"sources":["../../src/Button/Button.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { defaultSpinnerSize, Spinner } from '../Spinner/Spinner'\nimport { spinnerDimensions } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport type { Intent } from '../Typography/Typography.types'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { mediaIE11Hack } from '../_styles/media'\nimport { focusable } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { ButtonSizes, ButtonVariant, SizingObject } from './Button.types'\n\nconst heights: SizingObject = {\n sm: 24,\n md: 36,\n lg: 48,\n}\n\nconst paddingX: SizingObject = {\n sm: spacing.xs,\n md: 6, // TODO one-off\n lg: spacing.md,\n}\n\nconst typographySizes: { [key in ButtonSizes]: Intent } = {\n sm: 'small',\n md: 'body',\n lg: 'h3',\n}\n\nconst buttonTextColors: {\n [key in ButtonVariant]: { main: string; disabled: string }\n} = {\n primary: {\n main: colors.white,\n disabled: colors.white,\n },\n secondary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiaryContrast: {\n main: colors.blue45,\n disabled: colors.blue45,\n },\n}\n\nconst buttonBGColors: {\n [key in ButtonVariant]: {\n main: string\n hover: string\n disabled: string\n }\n} = {\n primary: {\n main: colors.orange50,\n hover: colors.orange45,\n disabled: colors.orange85,\n },\n secondary: {\n main: colors.gray90,\n hover: colors.gray85,\n disabled: colors.gray94,\n },\n tertiary: {\n main: 'transparent',\n hover: colors.gray90,\n disabled: 'transparent',\n },\n tertiaryContrast: {\n main: 'transparent',\n hover: 'white',\n disabled: 'transparent',\n },\n}\n\nexport function getBGColor(variant: ButtonVariant) {\n const colors = buttonBGColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonBGColors.primary\n }\n return colors\n}\n\nexport function getTextColor(variant: ButtonVariant) {\n const colors = buttonTextColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonTextColors.primary\n }\n return colors\n}\n\nfunction getColors(loading: boolean, variant: ButtonVariant) {\n return css`\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).main};\n\n color: ${getTextColor(variant).main};\n\n &.active,\n &:active,\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n background: ${getBGColor(variant).hover};\n color: ${getTextColor(variant).main};\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).disabled};\n color: ${getTextColor(variant).disabled};\n }\n `\n}\n\nexport const StyledContent = styled.span`\n align-items: center;\n display: flex;\n overflow: hidden;\n`\n\nexport const StyledSpinner = styled(Spinner)`\n box-sizing: border-box;\n display: none;\n position: absolute;\n transform: translateZ(0);\n\n @media ${mediaIE11Hack} {\n left: 50%;\n top: 50%;\n ${({ size }) => {\n const margin = -1 * (spinnerDimensions[size ?? defaultSpinnerSize] / 2)\n return css`\n margin-left: ${margin}px;\n margin-top: ${margin}px;\n `\n }}\n }\n`\n\nexport const StyledLabel = styled.span`\n overflow: hidden;\n padding: 0 6px; // TODO one-off\n text-overflow: ellipsis;\n white-space: nowrap;\n\n & + span {\n padding-left: 0;\n }\n`\n\ninterface StyledButtonProps {\n disabled: boolean\n $block: boolean\n $loading: boolean\n $size: ButtonSizes\n $variant: ButtonVariant\n}\n\nfunction getButtonStyles(\n block: boolean,\n disabled: boolean,\n loading: boolean,\n size: ButtonSizes,\n variant: ButtonVariant\n) {\n return css`\n ${getTypographyIntent(typographySizes[size])}\n\n ${focusable}\n\n ${getColors(loading, variant)}\n\n align-items: center;\n border-radius: ${borderRadius.md}px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n flex-shrink: 0;\n font-family: inherit;\n font-weight: ${typographyWeights.semibold};\n height: ${heights[size]}px;\n justify-content: center;\n margin: 0;\n overflow: hidden;\n padding: 0 ${paddingX[size]}px;\n position: relative;\n pointer-events: ${disabled || loading ? 'none' : 'inherit'};\n text-overflow: ellipsis;\n user-select: ${disabled || loading ? 'none' : 'inherit'};\n vertical-align: middle;\n white-space: nowrap;\n width: ${block && '100%'};\n\n [data-icon-prop='true'] {\n pointer-events: none;\n height: ${size === 'sm' ? 16 : 24}px;\n width: ${size === 'sm' ? 16 : 24}px;\n }\n\n ${loading &&\n css`\n ${StyledContent} {\n pointer-events: none;\n visibility: hidden;\n }\n\n ${StyledSpinner} {\n display: block;\n }\n `}\n `\n}\n\nexport const StyledButton = styled.button<StyledButtonProps>`\n ${({ $block, disabled, $loading, $size, $variant }) =>\n getButtonStyles($block, disabled, $loading, $size, $variant)}\n`\n\ninterface StyledLinkButtonProps\n extends Pick<StyledButtonProps, '$block' | '$size' | '$variant'> {\n $disabled: boolean\n}\n\nexport const StyledLinkButton = styled.a<StyledLinkButtonProps>`\n text-decoration: none;\n\n ${({ $block, $disabled, $size, $variant }) =>\n getButtonStyles($block, $disabled, false, $size, $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","colors","mediaIE11Hack","focusable","spacing","heights","sm","md","lg","paddingX","xs","typographySizes","buttonTextColors","primary","main","white","disabled","secondary","gray15","gray70","tertiary","tertiaryContrast","blue45","buttonBGColors","orange50","hover","orange45","orange85","gray90","gray85","gray94","getBGColor","variant","console","error","concat","getTextColor","getColors","loading","StyledContent","span","withConfig","displayName","componentId","StyledSpinner","_ref","size","margin","StyledLabel","getButtonStyles","block","semibold","StyledButton","button","_ref2","$block","$loading","$size","$variant","StyledLinkButton","a","_ref3","$disabled"],"sources":["../../src/Button/Button.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { defaultSpinnerSize, Spinner } from '../Spinner/Spinner'\nimport { spinnerDimensions } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport type { Intent } from '../Typography/Typography.types'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { mediaIE11Hack } from '../_styles/media'\nimport { focusable } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { ButtonSizes, ButtonVariant, SizingObject } from './Button.types'\n\nconst heights: SizingObject = {\n sm: 24,\n md: 36,\n lg: 48,\n}\n\nconst paddingX: SizingObject = {\n sm: spacing.xs,\n md: 6, // TODO one-off\n lg: spacing.md,\n}\n\nconst typographySizes: { [key in ButtonSizes]: Intent } = {\n sm: 'small',\n md: 'body',\n lg: 'h3',\n}\n\nconst buttonTextColors: {\n [key in ButtonVariant]: { main: string; disabled: string }\n} = {\n primary: {\n main: colors.white,\n disabled: colors.white,\n },\n secondary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiary: {\n main: colors.gray15,\n disabled: colors.gray70,\n },\n tertiaryContrast: {\n main: colors.blue45,\n disabled: colors.blue45,\n },\n}\n\nconst buttonBGColors: {\n [key in ButtonVariant]: {\n main: string\n hover: string\n disabled: string\n }\n} = {\n primary: {\n main: colors.orange50,\n hover: colors.orange45,\n disabled: colors.orange85,\n },\n secondary: {\n main: colors.gray90,\n hover: colors.gray85,\n disabled: colors.gray94,\n },\n tertiary: {\n main: 'transparent',\n hover: colors.gray90,\n disabled: 'transparent',\n },\n tertiaryContrast: {\n main: 'transparent',\n hover: 'white',\n disabled: 'transparent',\n },\n}\n\nexport function getBGColor(variant: ButtonVariant) {\n const colors = buttonBGColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonBGColors.primary\n }\n return colors\n}\n\nexport function getTextColor(variant: ButtonVariant) {\n const colors = buttonTextColors[variant]\n if (!colors) {\n console.error(\n `@procore/core-react: Using invalid Button variant ${variant}. Please update, falling back to primary.`\n )\n return buttonTextColors.primary\n }\n return colors\n}\n\nfunction getColors(loading: boolean, variant: ButtonVariant) {\n return css`\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).main};\n\n color: ${getTextColor(variant).main};\n\n &.active,\n &:active,\n &.focus,\n &:focus,\n &.hover,\n &:hover {\n background: ${getBGColor(variant).hover};\n color: ${getTextColor(variant).main};\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n background: ${loading\n ? getBGColor(variant).hover\n : getBGColor(variant).disabled};\n color: ${getTextColor(variant).disabled};\n }\n `\n}\n\nexport const StyledContent = styled.span`\n align-items: center;\n display: flex;\n overflow: hidden;\n`\n\nexport const StyledSpinner = styled(Spinner)`\n box-sizing: border-box;\n display: none;\n position: absolute;\n transform: translateZ(0);\n\n @media ${mediaIE11Hack} {\n left: 50%;\n top: 50%;\n ${({ size }) => {\n const margin = -1 * (spinnerDimensions[size ?? defaultSpinnerSize] / 2)\n return css`\n margin-left: ${margin}px;\n margin-top: ${margin}px;\n `\n }}\n }\n`\n\nexport const StyledLabel = styled.span`\n overflow: hidden;\n padding: 0 6px; // TODO one-off\n text-overflow: ellipsis;\n white-space: nowrap;\n\n & + span {\n padding-left: 0;\n }\n`\n\ninterface StyledButtonProps {\n disabled: boolean\n $block: boolean\n $loading: boolean\n $size: ButtonSizes\n $variant: ButtonVariant\n}\n\nfunction getButtonStyles(\n block: boolean,\n disabled: boolean,\n loading: boolean,\n size: ButtonSizes,\n variant: ButtonVariant\n) {\n return css`\n ${getTypographyIntent(typographySizes[size])}\n\n ${focusable}\n\n ${getColors(loading, variant)}\n\n align-items: center;\n border-radius: ${borderRadius.md}px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n flex-shrink: 0;\n font-family: inherit;\n font-weight: ${typographyWeights.semibold};\n height: ${heights[size]}px;\n justify-content: center;\n margin: 0;\n overflow: hidden;\n padding: 0 ${paddingX[size]}px;\n position: relative;\n pointer-events: ${disabled || loading ? 'none' : 'inherit'};\n text-overflow: ellipsis;\n user-select: ${disabled || loading ? 'none' : 'inherit'};\n vertical-align: middle;\n white-space: nowrap;\n width: ${block && '100%'};\n\n [data-icon-prop='true'] {\n pointer-events: none;\n height: ${size === 'sm' ? 16 : 24}px;\n width: ${size === 'sm' ? 16 : 24}px;\n }\n\n ${loading &&\n css`\n ${StyledContent} {\n pointer-events: none;\n visibility: hidden;\n }\n\n ${StyledSpinner} {\n display: block;\n }\n `}\n `\n}\n\nexport const StyledButton = styled.button<StyledButtonProps>`\n ${({ $block, disabled, $loading, $size, $variant }) =>\n getButtonStyles($block, disabled, $loading, $size, $variant)}\n`\n\ninterface StyledLinkButtonProps\n extends Pick<StyledButtonProps, '$block' | '$size' | '$variant'> {\n $disabled: boolean\n}\n\nexport const StyledLinkButton = styled.a<StyledLinkButtonProps>`\n &,\n &:hover {\n text-decoration: none;\n }\n\n ${({ $block, $disabled, $size, $variant }) =>\n getButtonStyles($block, $disabled, false, $size, $variant)}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,kBAAkB,EAAEC,OAAO,QAAQ,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,2BAA2B;AAC7D,SACEC,mBAAmB,EACnBC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AAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE,EAGhCR,OAAO,IACT5C,GAAG,uEACC6C,aAAa,EAKbK,aAAa,CAGhB;AAEL;AAEA,OAAO,IAAMQ,YAAY,gBAAG3D,MAAM,CAAC4D,MAAM,CAAAZ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACrC,UAAAW,KAAA;EAAA,IAAGC,MAAM,GAAAD,KAAA,CAANC,MAAM;IAAEvC,QAAQ,GAAAsC,KAAA,CAARtC,QAAQ;IAAEwC,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,KAAA,CAALG,KAAK;IAAEC,QAAQ,GAAAJ,KAAA,CAARI,QAAQ;EAAA,OAC9CT,eAAe,CAACM,MAAM,EAAEvC,QAAQ,EAAEwC,QAAQ,EAAEC,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC/D;AAOD,OAAO,IAAMC,gBAAgB,gBAAGlE,MAAM,CAACmE,CAAC,CAAAnB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6CAMpC,UAAAkB,KAAA;EAAA,IAAGN,MAAM,GAAAM,KAAA,CAANN,MAAM;IAAEO,SAAS,GAAAD,KAAA,CAATC,SAAS;IAAEL,KAAK,GAAAI,KAAA,CAALJ,KAAK;IAAEC,QAAQ,GAAAG,KAAA,CAARH,QAAQ;EAAA,OACrCT,eAAe,CAACM,MAAM,EAAEO,SAAS,EAAE,KAAK,EAAEL,KAAK,EAAEC,QAAQ,CAAC;AAAA,EAC7D"}
|
|
@@ -39,4 +39,9 @@ export interface ButtonProps extends ButtonAttributes {
|
|
|
39
39
|
variant?: ButtonVariant;
|
|
40
40
|
}
|
|
41
41
|
export interface LinkButtonProps extends AnchorAttributes, Pick<ButtonProps, 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'> {
|
|
42
|
+
/**
|
|
43
|
+
* Use role link when the link has destination. Use role button when it is used for POST.
|
|
44
|
+
* @default 'button'
|
|
45
|
+
*/
|
|
46
|
+
role?: 'link' | 'button';
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type { AnchorAttributes, ButtonAttributes } from '../_utils/types'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps extends ButtonAttributes {\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 */\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 * @since 10.27.2\n */\n variant?: ButtonVariant\n}\n\nexport interface LinkButtonProps\n extends AnchorAttributes,\n Pick<\n ButtonProps,\n 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'\n > {}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Button.types.js","names":[],"sources":["../../src/Button/Button.types.ts"],"sourcesContent":["import type { AnchorAttributes, ButtonAttributes } from '../_utils/types'\n\nexport type ButtonSizes = 'sm' | 'md' | 'lg'\n\nexport type ButtonVariant =\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'tertiaryContrast'\n\nexport type SizingObject = { [key in ButtonSizes]: number }\n\nexport interface ButtonProps extends ButtonAttributes {\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 */\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 * @since 10.27.2\n */\n variant?: ButtonVariant\n}\n\nexport interface LinkButtonProps\n extends AnchorAttributes,\n Pick<\n ButtonProps,\n 'block' | 'disabled' | 'icon' | 'iconRight' | 'size' | 'variant'\n > {\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":""}
|
|
@@ -8,31 +8,31 @@ 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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_0__sc-1kkl86t-5"
|
|
32
32
|
})(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
|
|
33
33
|
export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
34
34
|
displayName: "StyledDayCell",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-11_28_0__sc-1kkl86t-6"
|
|
36
36
|
})(["", ""], function (_ref) {
|
|
37
37
|
var _ref$$disabled = _ref.$disabled,
|
|
38
38
|
$disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
|
|
@@ -55,6 +55,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
|
|
|
55
55
|
});
|
|
56
56
|
export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
|
|
57
57
|
displayName: "StyledWeekRow",
|
|
58
|
-
componentId: "core-
|
|
58
|
+
componentId: "core-11_28_0__sc-1kkl86t-7"
|
|
59
59
|
})(["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);
|
|
60
60
|
//# 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-11_28_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;
|
|
@@ -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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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-11_28_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, StyledFormikForm, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
|
|
10
10
|
export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
|
|
11
11
|
displayName: "StyledActions",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_28_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
|
|
@@ -14,15 +14,15 @@ var inputHeight = 36; // TODO one-off
|
|
|
14
14
|
var disabledCss = /*#__PURE__*/css(["background-color:", ";color:", ";border-width:1px;border-style:solid;border-color:", ";pointer-events:none;svg{color:", ";}"], colors.gray94, colors.gray45, colors.gray70, colors.gray45);
|
|
15
15
|
export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
|
|
16
16
|
displayName: "StyledCalendar",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-11_28_0__sc-w10btf-0"
|
|
18
18
|
})(["color:", ";"], colors.gray45);
|
|
19
19
|
export var StyledDateSegmentsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledDateSegmentsContainer",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_28_0__sc-w10btf-1"
|
|
22
22
|
})(["min-width:104px;display:flex;gap:", "px;"], spacing.xs);
|
|
23
23
|
export var StyledDateInputSegment = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledDateInputSegment",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-11_28_0__sc-w10btf-2"
|
|
26
26
|
})(["", " outline:none;text-align:center;&:focus{background-color:", ";}&::selection{background-color:transparent;}&[data-placeholder='true']{color:", ";}"], getTypographyIntent('body'), colors.blue96, function (_ref) {
|
|
27
27
|
var disabled = _ref.disabled;
|
|
28
28
|
return disabled ? colors.gray70 : colors.gray45;
|
|
@@ -31,15 +31,15 @@ export var StyledDateInputDelimiter = /*#__PURE__*/styled.span.attrs(function (p
|
|
|
31
31
|
return _defineProperty({}, 'data-qa-table-visible', props.visible);
|
|
32
32
|
}).withConfig({
|
|
33
33
|
displayName: "StyledDateInputDelimiter",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-11_28_0__sc-w10btf-3"
|
|
35
35
|
})(["", " user-select:none;"], getTypographyIntent('body'));
|
|
36
36
|
export var StyledDateInputIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledDateInputIconContainer",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-11_28_0__sc-w10btf-4"
|
|
39
39
|
})(["display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;margin:0 0 0 ", "px;height:24px;width:24px;"], spacing.xs);
|
|
40
40
|
export var StyledDateInput = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledDateInput",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-11_28_0__sc-w10btf-5"
|
|
43
43
|
})(["align-items:center;border-color:", ";border-radius:4px;border-style:solid;border-width:1px;display:inline-flex;flex-direction:row;height:", "px;justify-content:center;padding:0 ", "px 0 ", "px;&::placeholder{color:", ";}", " &:focus-within,&[data-qa=", "]{", ";}&:disabled{", "}", " ", ""], colors.gray70, inputHeight, spacing.xs, spacing.sm, colors.gray45, function (_ref3) {
|
|
44
44
|
var error = _ref3.error;
|
|
45
45
|
return !error && css(["&:hover,&[data-qa=", "]{border-color:", ";}"], dataQa.hovered, colors.gray45);
|