@procore/core-react 12.22.0 → 12.23.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 +14 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.d.ts +8 -8
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.d.ts +3 -0
- package/dist/BadgePill/BadgePill.js +25 -0
- package/dist/BadgePill/BadgePill.js.map +1 -0
- package/dist/BadgePill/BadgePill.styles.d.ts +12 -0
- package/dist/BadgePill/BadgePill.styles.js +33 -0
- package/dist/BadgePill/BadgePill.styles.js.map +1 -0
- package/dist/BadgePill/BadgePill.types.d.ts +50 -0
- package/dist/BadgePill/BadgePill.types.js +2 -0
- package/dist/BadgePill/BadgePill.types.js.map +1 -0
- package/dist/BadgePill/index.d.ts +2 -0
- package/dist/BadgePill/index.js +2 -0
- package/dist/BadgePill/index.js.map +1 -0
- 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/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.js +2 -0
- package/dist/ContactItem/ContactItem.js.map +1 -1
- 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/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 +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- 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 +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.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 +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 +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 +7 -7
- 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/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.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 +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 +6 -6
- 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/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- 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/ClickOutside.js +19 -5
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +44 -9
- package/dist/_hooks/I18n.js +63 -28
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- 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 +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +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 +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- 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 +741 -741
- 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 +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 +46 -46
- 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 +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- 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 +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 +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +60 -60
- 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 +12 -12
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +101 -101
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- 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 +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 +4 -4
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- 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 +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +82 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5848cca: Update I18nProviders to have the option to pull translations from the CDN package cdn-translations with `enableCDN` prop or context inheritance
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- e14e204: There is a fix for inconvenient disappears after releasing the mouse outside of the popover component
|
|
12
|
+
- dfaab43: Added some aria to Contact Item and updated documentation
|
|
13
|
+
- Updated dependencies [fac7a44]
|
|
14
|
+
- Updated dependencies [b091686]
|
|
15
|
+
- @procore/core-icons@12.8.0
|
|
16
|
+
|
|
3
17
|
## 12.22.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -5,11 +5,11 @@ import { getEllipsis } from '../_styles/mixins';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
|
|
7
7
|
displayName: "StyledAnchorNavigation",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_23_0__sc-aacdj4-0"
|
|
9
9
|
})(["max-width:200px;margin:0;padding-inline-start:0;"]);
|
|
10
10
|
export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
|
|
11
11
|
displayName: "StyledAnchorSection",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_23_0__sc-aacdj4-1"
|
|
13
13
|
})(["display:flex;cursor:pointer;border-left:", "px solid ", ";background-color:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;:hover{border-left:", "px solid ", ";background-color:", ";}"], spacing.xs, function (_ref) {
|
|
14
14
|
var $selected = _ref.$selected;
|
|
15
15
|
return $selected ? colors.gray15 : colors.gray90;
|
|
@@ -22,7 +22,7 @@ export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
|
|
|
22
22
|
}, colors.gray90);
|
|
23
23
|
export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
|
|
24
24
|
displayName: "StyledAnchor",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_23_0__sc-aacdj4-2"
|
|
26
26
|
})(["width:100%;padding:6px ", "px;", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
|
|
27
27
|
var $selected = _ref4.$selected;
|
|
28
28
|
return $selected ? css(["font-weight:600;"]) : '';
|
|
@@ -28,26 +28,26 @@ var iconSize = {
|
|
|
28
28
|
};
|
|
29
29
|
export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledAvatarOverlay",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_23_0__sc-7q2ydl-0"
|
|
32
32
|
})(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
|
|
33
33
|
export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledIconContainer",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_23_0__sc-7q2ydl-1"
|
|
36
36
|
})(["display:inline-flex;"]);
|
|
37
37
|
export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
|
|
38
38
|
displayName: "StyledLabelContainer",
|
|
39
|
-
componentId: "core-
|
|
39
|
+
componentId: "core-12_23_0__sc-7q2ydl-2"
|
|
40
40
|
})(["text-transform:uppercase;"]);
|
|
41
41
|
export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
|
|
42
42
|
displayName: "StyledPortraitContainer",
|
|
43
|
-
componentId: "core-
|
|
43
|
+
componentId: "core-12_23_0__sc-7q2ydl-3"
|
|
44
44
|
})(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
|
|
45
45
|
var $imageUrl = _ref.$imageUrl;
|
|
46
46
|
return css(["background-image:url(", ");"], $imageUrl);
|
|
47
47
|
});
|
|
48
48
|
export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
49
49
|
displayName: "StyledAvatarContainer",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_23_0__sc-7q2ydl-4"
|
|
51
51
|
})(["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) {
|
|
52
52
|
var _ref2$$size = _ref2.$size,
|
|
53
53
|
$size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
|
|
@@ -8,8 +8,9 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
8
8
|
role: "link";
|
|
9
9
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href">> & {
|
|
10
10
|
is?: string | undefined;
|
|
11
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
12
11
|
translate?: "no" | "yes" | undefined;
|
|
12
|
+
type?: string | undefined;
|
|
13
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
14
|
slot?: string | undefined;
|
|
14
15
|
title?: string | undefined;
|
|
15
16
|
media?: string | undefined;
|
|
@@ -276,7 +277,6 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
276
277
|
hrefLang?: string | undefined;
|
|
277
278
|
ping?: string | undefined;
|
|
278
279
|
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
279
|
-
type?: string | undefined;
|
|
280
280
|
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
281
281
|
} & {
|
|
282
282
|
'aria-label': string;
|
|
@@ -289,8 +289,9 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
289
289
|
role: "link";
|
|
290
290
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "href">> & {
|
|
291
291
|
is?: string | undefined;
|
|
292
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
293
292
|
translate?: "no" | "yes" | undefined;
|
|
293
|
+
type?: string | undefined;
|
|
294
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
294
295
|
slot?: string | undefined;
|
|
295
296
|
title?: string | undefined;
|
|
296
297
|
media?: string | undefined;
|
|
@@ -557,7 +558,6 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
557
558
|
hrefLang?: string | undefined;
|
|
558
559
|
ping?: string | undefined;
|
|
559
560
|
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
560
|
-
type?: string | undefined;
|
|
561
561
|
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
562
562
|
} & {
|
|
563
563
|
'aria-labelledby': string;
|
|
@@ -570,8 +570,8 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
570
570
|
role: "button";
|
|
571
571
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, never>> & {
|
|
572
572
|
is?: string | undefined;
|
|
573
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
574
573
|
translate?: "no" | "yes" | undefined;
|
|
574
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
575
575
|
slot?: string | undefined;
|
|
576
576
|
title?: string | undefined;
|
|
577
577
|
color?: string | undefined;
|
|
@@ -845,8 +845,8 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
845
845
|
role: "button";
|
|
846
846
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, never>> & {
|
|
847
847
|
is?: string | undefined;
|
|
848
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
849
848
|
translate?: "no" | "yes" | undefined;
|
|
849
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
850
850
|
slot?: string | undefined;
|
|
851
851
|
title?: string | undefined;
|
|
852
852
|
color?: string | undefined;
|
|
@@ -1120,8 +1120,8 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
1120
1120
|
role: "img";
|
|
1121
1121
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, never>> & {
|
|
1122
1122
|
is?: string | undefined;
|
|
1123
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
1124
1123
|
translate?: "no" | "yes" | undefined;
|
|
1124
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
1125
1125
|
slot?: string | undefined;
|
|
1126
1126
|
title?: string | undefined;
|
|
1127
1127
|
color?: string | undefined;
|
|
@@ -1393,8 +1393,8 @@ export declare const StyledAvatar: import("styled-components/dist/types").IStyle
|
|
|
1393
1393
|
role: "img";
|
|
1394
1394
|
} & Required<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, never>> & {
|
|
1395
1395
|
is?: string | undefined;
|
|
1396
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
1397
1396
|
translate?: "no" | "yes" | undefined;
|
|
1397
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
1398
1398
|
slot?: string | undefined;
|
|
1399
1399
|
title?: string | undefined;
|
|
1400
1400
|
color?: string | undefined;
|
|
@@ -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-12_23_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-12_23_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-12_23_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-12_23_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-12_23_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-12_23_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-12_23_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-12_23_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-12_23_0__sc-rpertu-1"
|
|
9
9
|
})(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
|
|
10
10
|
//# sourceMappingURL=Badge.styles.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var _excluded = ["children", "dotIndicator", "value", "hidden", "xOffset", "yOffset"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { StyledBadgeContainer, StyledBadgeContent, StyledBadgeCounter, StyledBadgeDotIndicator } from './BadgePill.styles';
|
|
7
|
+
var MAX_DISPLAY_VALUE = 99;
|
|
8
|
+
export var BadgePill = function BadgePill(props) {
|
|
9
|
+
var children = props.children,
|
|
10
|
+
dotIndicator = props.dotIndicator,
|
|
11
|
+
value = props.value,
|
|
12
|
+
hidden = props.hidden,
|
|
13
|
+
xOffset = props.xOffset,
|
|
14
|
+
yOffset = props.yOffset,
|
|
15
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement(StyledBadgeContainer, null, children, /*#__PURE__*/React.createElement(StyledBadgeContent, _extends({}, restProps, {
|
|
17
|
+
$overlapping: !!children,
|
|
18
|
+
$hidden: hidden,
|
|
19
|
+
$xOffset: xOffset,
|
|
20
|
+
$yOffset: yOffset
|
|
21
|
+
}), dotIndicator && /*#__PURE__*/React.createElement(StyledBadgeDotIndicator, null), !dotIndicator && /*#__PURE__*/React.createElement(StyledBadgeCounter, {
|
|
22
|
+
$oneDigit: value >= 0 && value < 10
|
|
23
|
+
}, value > MAX_DISPLAY_VALUE ? "".concat(MAX_DISPLAY_VALUE, "+") : value)));
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=BadgePill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgePill.js","names":["React","StyledBadgeContainer","StyledBadgeContent","StyledBadgeCounter","StyledBadgeDotIndicator","MAX_DISPLAY_VALUE","BadgePill","props","children","dotIndicator","value","hidden","xOffset","yOffset","restProps","_objectWithoutProperties","_excluded","createElement","_extends","$overlapping","$hidden","$xOffset","$yOffset","$oneDigit","concat"],"sources":["../../src/BadgePill/BadgePill.tsx"],"sourcesContent":["import React from 'react'\nimport {\n StyledBadgeContainer,\n StyledBadgeContent,\n StyledBadgeCounter,\n StyledBadgeDotIndicator,\n} from './BadgePill.styles'\nimport type { BadgePillProps } from './BadgePill.types'\n\nconst MAX_DISPLAY_VALUE = 99\n\nexport const BadgePill = (props: BadgePillProps) => {\n const {\n children,\n dotIndicator,\n value,\n hidden,\n xOffset,\n yOffset,\n ...restProps\n } = props\n\n return (\n <StyledBadgeContainer>\n {children}\n <StyledBadgeContent\n {...restProps}\n $overlapping={!!children}\n $hidden={hidden}\n $xOffset={xOffset}\n $yOffset={yOffset}\n >\n {dotIndicator && <StyledBadgeDotIndicator />}\n {!dotIndicator && (\n <StyledBadgeCounter $oneDigit={value >= 0 && value < 10}>\n {value > MAX_DISPLAY_VALUE ? `${MAX_DISPLAY_VALUE}+` : value}\n </StyledBadgeCounter>\n )}\n </StyledBadgeContent>\n </StyledBadgeContainer>\n )\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,oBAAoB,EACpBC,kBAAkB,EAClBC,kBAAkB,EAClBC,uBAAuB,QAClB,oBAAoB;AAG3B,IAAMC,iBAAiB,GAAG,EAAE;AAE5B,OAAO,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,KAAqB,EAAK;EAClD,IACEC,QAAQ,GAOND,KAAK,CAPPC,QAAQ;IACRC,YAAY,GAMVF,KAAK,CANPE,YAAY;IACZC,KAAK,GAKHH,KAAK,CALPG,KAAK;IACLC,MAAM,GAIJJ,KAAK,CAJPI,MAAM;IACNC,OAAO,GAGLL,KAAK,CAHPK,OAAO;IACPC,OAAO,GAELN,KAAK,CAFPM,OAAO;IACJC,SAAS,GAAAC,wBAAA,CACVR,KAAK,EAAAS,SAAA;EAET,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,oBAAoB,QAClBO,QAAQ,eACTR,KAAA,CAAAiB,aAAA,CAACf,kBAAkB,EAAAgB,QAAA,KACbJ,SAAS;IACbK,YAAY,EAAE,CAAC,CAACX,QAAS;IACzBY,OAAO,EAAET,MAAO;IAChBU,QAAQ,EAAET,OAAQ;IAClBU,QAAQ,EAAET;EAAQ,IAEjBJ,YAAY,iBAAIT,KAAA,CAAAiB,aAAA,CAACb,uBAAuB,MAAE,CAAC,EAC3C,CAACK,YAAY,iBACZT,KAAA,CAAAiB,aAAA,CAACd,kBAAkB;IAACoB,SAAS,EAAEb,KAAK,IAAI,CAAC,IAAIA,KAAK,GAAG;EAAG,GACrDA,KAAK,GAAGL,iBAAiB,MAAAmB,MAAA,CAAMnB,iBAAiB,SAAMK,KACrC,CAEJ,CACA,CAAC;AAE3B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledBadgeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const StyledBadgeContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$overlapping: boolean;
|
|
5
|
+
$hidden?: boolean | undefined;
|
|
6
|
+
$xOffset?: number | undefined;
|
|
7
|
+
$yOffset?: number | undefined;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const StyledBadgeDotIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const StyledBadgeCounter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
$oneDigit?: boolean | undefined;
|
|
12
|
+
}>> & string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { getTypographyIntent } from '../Typography';
|
|
3
|
+
import { colors } from '../_styles/colors';
|
|
4
|
+
export var StyledBadgeContainer = /*#__PURE__*/styled.div.withConfig({
|
|
5
|
+
displayName: "StyledBadgeContainer",
|
|
6
|
+
componentId: "core-12_23_0__sc-s2n9gd-0"
|
|
7
|
+
})(["display:inline-flex;position:relative;"]);
|
|
8
|
+
export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
|
|
9
|
+
displayName: "StyledBadgeContent",
|
|
10
|
+
componentId: "core-12_23_0__sc-s2n9gd-1"
|
|
11
|
+
})(["position:relative;", " ", " pointer-events:none;user-select:none;"], function (_ref) {
|
|
12
|
+
var $overlapping = _ref.$overlapping,
|
|
13
|
+
_ref$$xOffset = _ref.$xOffset,
|
|
14
|
+
$xOffset = _ref$$xOffset === void 0 ? 0 : _ref$$xOffset,
|
|
15
|
+
_ref$$yOffset = _ref.$yOffset,
|
|
16
|
+
$yOffset = _ref$$yOffset === void 0 ? 0 : _ref$$yOffset;
|
|
17
|
+
return $overlapping && "\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n transform: translate(\n calc(50% + ".concat($xOffset, "px),\n calc(-50% + ").concat($yOffset * -1, "px)\n );\n ");
|
|
18
|
+
}, function (props) {
|
|
19
|
+
return props.$hidden ? 'visibility: hidden;' : '';
|
|
20
|
+
});
|
|
21
|
+
export var StyledBadgeDotIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
22
|
+
displayName: "StyledBadgeDotIndicator",
|
|
23
|
+
componentId: "core-12_23_0__sc-s2n9gd-2"
|
|
24
|
+
})(["width:6px;height:6px;border-radius:50%;background-color:", ";"], colors.orange50);
|
|
25
|
+
var oneDigitStyles = "\n border-radius: 50%;\n padding: 2px;\n min-width: 21.5px;\n min-height: 21.5px;\n";
|
|
26
|
+
var multiDigitStyles = "\n border-radius: 10px;\n padding: 2px 8px;\n";
|
|
27
|
+
export var StyledBadgeCounter = /*#__PURE__*/styled.div.withConfig({
|
|
28
|
+
displayName: "StyledBadgeCounter",
|
|
29
|
+
componentId: "core-12_23_0__sc-s2n9gd-3"
|
|
30
|
+
})(["display:inline-flex;justify-content:center;align-items:center;color:", ";background-color:", ";", " ", ""], colors.white, colors.orange50, getTypographyIntent('small'), function (props) {
|
|
31
|
+
return props.$oneDigit ? oneDigitStyles : multiDigitStyles;
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=BadgePill.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgePill.styles.js","names":["styled","getTypographyIntent","colors","StyledBadgeContainer","div","withConfig","displayName","componentId","StyledBadgeContent","_ref","$overlapping","_ref$$xOffset","$xOffset","_ref$$yOffset","$yOffset","concat","props","$hidden","StyledBadgeDotIndicator","orange50","oneDigitStyles","multiDigitStyles","StyledBadgeCounter","white","$oneDigit"],"sources":["../../src/BadgePill/BadgePill.styles.ts"],"sourcesContent":["import styled from 'styled-components'\nimport { getTypographyIntent } from '../Typography'\nimport { colors } from '../_styles/colors'\n\nexport const StyledBadgeContainer = styled.div`\n display: inline-flex;\n position: relative;\n`\n\nexport const StyledBadgeContent = styled.div<{\n $overlapping: boolean\n $hidden?: boolean\n $xOffset?: number\n $yOffset?: number\n}>`\n position: relative;\n ${({ $overlapping, $xOffset = 0, $yOffset = 0 }) =>\n $overlapping &&\n `\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n transform: translate(\n calc(50% + ${$xOffset}px),\n calc(-50% + ${$yOffset * -1}px)\n );\n `}\n ${(props) => (props.$hidden ? 'visibility: hidden;' : '')}\n pointer-events: none;\n user-select: none;\n`\n\nexport const StyledBadgeDotIndicator = styled.div`\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ${colors.orange50};\n`\n\nconst oneDigitStyles = `\n border-radius: 50%;\n padding: 2px;\n min-width: 21.5px;\n min-height: 21.5px;\n`\n\nconst multiDigitStyles = `\n border-radius: 10px;\n padding: 2px 8px;\n`\n\nexport const StyledBadgeCounter = styled.div<{ $oneDigit?: boolean }>`\n display: inline-flex;\n justify-content: center;\n align-items: center;\n color: ${colors.white};\n background-color: ${colors.orange50};\n ${getTypographyIntent('small')}\n ${(props) => (props.$oneDigit ? oneDigitStyles : multiDigitStyles)}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AACtC,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,OAAO,IAAMC,oBAAoB,gBAAGH,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8CAG7C;AAED,OAAO,IAAMC,kBAAkB,gBAAGR,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,0EAOxC,UAAAE,IAAA;EAAA,IAAGC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAAC,aAAA,GAAAF,IAAA,CAAEG,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,CAAC,GAAAA,aAAA;IAAAE,aAAA,GAAAJ,IAAA,CAAEK,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,CAAC,GAAAA,aAAA;EAAA,OAC3CH,YAAY,2HAAAK,MAAA,CAOGH,QAAQ,8BAAAG,MAAA,CACPD,QAAQ,GAAG,CAAC,CAAC,oBAE9B;AAAA,GACC,UAACE,KAAK;EAAA,OAAMA,KAAK,CAACC,OAAO,GAAG,qBAAqB,GAAG,EAAE;AAAA,CAAC,CAG1D;AAED,OAAO,IAAMC,uBAAuB,gBAAGlB,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sEAI3BL,MAAM,CAACiB,QAAQ,CACpC;AAED,IAAMC,cAAc,4FAKnB;AAED,IAAMC,gBAAgB,oDAGrB;AAED,OAAO,IAAMC,kBAAkB,gBAAGtB,MAAM,CAACI,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iHAIjCL,MAAM,CAACqB,KAAK,EACDrB,MAAM,CAACiB,QAAQ,EACjClB,mBAAmB,CAAC,OAAO,CAAC,EAC5B,UAACe,KAAK;EAAA,OAAMA,KAAK,CAACQ,SAAS,GAAGJ,cAAc,GAAGC,gBAAgB;AAAA,CAAC,CACnE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
declare type BadgePillBaseProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Hide the badge conditionally
|
|
5
|
+
* @since 12.22.0
|
|
6
|
+
*/
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare type BadgePillDotIndicatorProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Renders a small dot indicator
|
|
12
|
+
* @since 12.22.0
|
|
13
|
+
*/
|
|
14
|
+
dotIndicator: true;
|
|
15
|
+
value?: undefined;
|
|
16
|
+
};
|
|
17
|
+
declare type BadgePillCounterProps = {
|
|
18
|
+
dotIndicator?: undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Renders a numeric counter value
|
|
21
|
+
* @since 12.22.0
|
|
22
|
+
*/
|
|
23
|
+
value: number;
|
|
24
|
+
};
|
|
25
|
+
declare type BadgePillVariantProps = BadgePillDotIndicatorProps | BadgePillCounterProps;
|
|
26
|
+
declare type BadgePillInlineProps = {
|
|
27
|
+
children?: undefined;
|
|
28
|
+
xOffset?: undefined;
|
|
29
|
+
yOffset?: undefined;
|
|
30
|
+
};
|
|
31
|
+
declare type BadgePillOverlappingProps = {
|
|
32
|
+
/**
|
|
33
|
+
* The content that the badge will overlap
|
|
34
|
+
* @since 12.22.0
|
|
35
|
+
*/
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Horizontal offset of the badge in pixels
|
|
39
|
+
* @since 12.22.0
|
|
40
|
+
*/
|
|
41
|
+
xOffset?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Vertical offset of the badge in pixels
|
|
44
|
+
* @since 12.22.0
|
|
45
|
+
*/
|
|
46
|
+
yOffset?: number;
|
|
47
|
+
};
|
|
48
|
+
declare type BadgePillPositionProps = BadgePillInlineProps | BadgePillOverlappingProps;
|
|
49
|
+
export declare type BadgePillProps = BadgePillBaseProps & BadgePillPositionProps & BadgePillVariantProps;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgePill.types.js","names":[],"sources":["../../src/BadgePill/BadgePill.types.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\ntype BadgePillBaseProps = {\n /**\n * Hide the badge conditionally\n * @since 12.22.0\n */\n hidden?: boolean\n}\n\ntype BadgePillDotIndicatorProps = {\n /**\n * Renders a small dot indicator\n * @since 12.22.0\n */\n dotIndicator: true\n value?: undefined\n}\n\ntype BadgePillCounterProps = {\n dotIndicator?: undefined\n /**\n * Renders a numeric counter value\n * @since 12.22.0\n */\n value: number\n}\n\ntype BadgePillVariantProps = BadgePillDotIndicatorProps | BadgePillCounterProps\n\ntype BadgePillInlineProps = {\n children?: undefined\n xOffset?: undefined\n yOffset?: undefined\n}\n\ntype BadgePillOverlappingProps = {\n /**\n * The content that the badge will overlap\n * @since 12.22.0\n */\n children: ReactNode\n /**\n * Horizontal offset of the badge in pixels\n * @since 12.22.0\n */\n xOffset?: number\n /**\n * Vertical offset of the badge in pixels\n * @since 12.22.0\n */\n yOffset?: number\n}\n\ntype BadgePillPositionProps = BadgePillInlineProps | BadgePillOverlappingProps\n\nexport type BadgePillProps = BadgePillBaseProps &\n BadgePillPositionProps &\n BadgePillVariantProps\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BadgePill"],"sources":["../../src/BadgePill/index.ts"],"sourcesContent":["export { BadgePill } from './BadgePill'\nexport type { BadgePillProps } from './BadgePill.types'\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_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_23_0__sc-c5bhwh-4"
|
|
127
127
|
})(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
|
|
128
128
|
var $block = _ref3.$block,
|
|
129
129
|
$disabled = _ref3.$disabled,
|
|
@@ -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-12_23_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_23_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_23_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_23_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_23_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_23_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-12_23_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-12_23_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-12_23_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;
|