@telus-uds/components-web 2.21.2 → 2.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 +23 -2
- package/lib/Badge/Badge.js +2 -14
- package/lib/Badge/index.js +0 -3
- package/lib/BlockQuote/BlockQuote.js +4 -25
- package/lib/BlockQuote/index.js +0 -3
- package/lib/Breadcrumbs/Breadcrumbs.js +9 -36
- package/lib/Breadcrumbs/Item/Item.js +15 -25
- package/lib/Breadcrumbs/index.js +0 -2
- package/lib/Callout/Callout.js +2 -24
- package/lib/Callout/index.js +0 -3
- package/lib/Card/Card.js +15 -29
- package/lib/Card/CardContent.js +5 -18
- package/lib/Card/CardFooter.js +7 -19
- package/lib/Card/index.js +0 -3
- package/lib/Countdown/Countdown.js +5 -24
- package/lib/Countdown/Segment.js +3 -15
- package/lib/Countdown/index.js +0 -3
- package/lib/Countdown/types.js +2 -7
- package/lib/Countdown/useCountdown.js +0 -7
- package/lib/DatePicker/CalendarContainer.js +0 -5
- package/lib/DatePicker/DatePicker.js +9 -61
- package/lib/DatePicker/dictionary.js +0 -8
- package/lib/DatePicker/index.js +0 -3
- package/lib/DatePicker/reactDatesCss.js +0 -2
- package/lib/Disclaimer/Disclaimer.js +5 -14
- package/lib/Disclaimer/index.js +0 -2
- package/lib/ExpandCollapseMini/ExpandCollapseMini.js +6 -17
- package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +12 -25
- package/lib/ExpandCollapseMini/index.js +0 -3
- package/lib/Footnote/Footnote.js +17 -63
- package/lib/Footnote/FootnoteLink.js +3 -24
- package/lib/Footnote/index.js +0 -4
- package/lib/IconButton/IconButton.js +4 -14
- package/lib/IconButton/index.js +0 -3
- package/lib/Image/Image.js +5 -24
- package/lib/Image/index.js +0 -3
- package/lib/List/List.js +0 -2
- package/lib/List/ListItem.js +0 -8
- package/lib/List/index.js +0 -4
- package/lib/NavigationBar/NavigationBar.js +10 -35
- package/lib/NavigationBar/NavigationItem.js +5 -17
- package/lib/NavigationBar/NavigationSubMenu.js +3 -19
- package/lib/NavigationBar/collapseItems.js +6 -9
- package/lib/NavigationBar/index.js +0 -3
- package/lib/NavigationBar/resolveItemSelection.js +2 -3
- package/lib/OptimizeImage/OptimizeImage.js +6 -27
- package/lib/OptimizeImage/index.js +0 -3
- package/lib/OptimizeImage/utils/getFallbackUrl.js +0 -4
- package/lib/OptimizeImage/utils/getOptimizedUrl.js +0 -8
- package/lib/OptimizeImage/utils/hasWebpSupport.js +1 -5
- package/lib/OptimizeImage/utils/index.js +0 -4
- package/lib/OptimizeImage/utils/isSvgUrl.js +0 -1
- package/lib/OrderedList/Item.js +4 -21
- package/lib/OrderedList/ItemBase.js +2 -9
- package/lib/OrderedList/OrderedList.js +11 -22
- package/lib/OrderedList/OrderedListBase.js +3 -13
- package/lib/OrderedList/index.js +0 -4
- package/lib/Paragraph/Paragraph.js +3 -18
- package/lib/Paragraph/index.js +0 -3
- package/lib/PreviewCard/AuthorDate.js +1 -10
- package/lib/PreviewCard/PreviewCard.js +15 -35
- package/lib/PreviewCard/index.js +0 -3
- package/lib/PriceLockup/PriceLockup.js +78 -75
- package/lib/PriceLockup/index.js +0 -3
- package/lib/PriceLockup/tokens.js +0 -2
- package/lib/Progress/ProgressBar.js +5 -16
- package/lib/Progress/index.js +0 -4
- package/lib/QuantitySelector/QuantitySelector.js +8 -42
- package/lib/QuantitySelector/SideButton.js +4 -11
- package/lib/QuantitySelector/index.js +0 -3
- package/lib/QuantitySelector/styles.js +0 -6
- package/lib/ResponsiveImage/ResponsiveImage.js +5 -20
- package/lib/ResponsiveImage/index.js +0 -3
- package/lib/Ribbon/Ribbon.js +4 -20
- package/lib/Ribbon/index.js +0 -3
- package/lib/SkeletonProvider/SkeletonImage.js +0 -10
- package/lib/SkeletonProvider/SkeletonProvider.js +4 -22
- package/lib/SkeletonProvider/SkeletonTypography.js +0 -10
- package/lib/SkeletonProvider/index.js +0 -3
- package/lib/Span/Span.js +3 -17
- package/lib/Span/index.js +0 -3
- package/lib/Spinner/Spinner.js +11 -39
- package/lib/Spinner/SpinnerContent.js +2 -18
- package/lib/Spinner/index.js +0 -3
- package/lib/StoryCard/StoryCard.js +11 -31
- package/lib/StoryCard/index.js +0 -3
- package/lib/Table/Body.js +0 -6
- package/lib/Table/Cell.js +4 -24
- package/lib/Table/Header.js +0 -9
- package/lib/Table/Row.js +0 -8
- package/lib/Table/SubHeading.js +0 -9
- package/lib/Table/Table.js +5 -23
- package/lib/Table/index.js +0 -8
- package/lib/TermsAndConditions/ExpandCollapse.js +4 -14
- package/lib/TermsAndConditions/TermsAndConditions.js +7 -29
- package/lib/TermsAndConditions/index.js +0 -2
- package/lib/Testimonial/Testimonial.js +2 -26
- package/lib/Testimonial/index.js +0 -3
- package/lib/Toast/Toast.js +4 -25
- package/lib/Toast/index.js +0 -3
- package/lib/Video/ControlBar/ControlBar.js +2 -25
- package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +4 -17
- package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +4 -20
- package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +12 -26
- package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +8 -23
- package/lib/Video/MiddleControlButton/MiddleControlButton.js +2 -12
- package/lib/Video/Video.js +122 -194
- package/lib/Video/index.js +0 -3
- package/lib/VideoPicker/VideoPicker.js +6 -32
- package/lib/VideoPicker/VideoPickerPlayer.js +2 -10
- package/lib/VideoPicker/VideoPickerThumbnail.js +7 -28
- package/lib/VideoPicker/VideoSlider.js +7 -17
- package/lib/VideoPicker/index.js +0 -3
- package/lib/VideoPicker/videoPropType.js +2 -8
- package/lib/WaffleGrid/WaffleGrid.js +11 -28
- package/lib/WaffleGrid/index.js +0 -3
- package/lib/WebPortal/WebPortal.js +1 -5
- package/lib/WebPortal/index.js +0 -3
- package/lib/WebVideo/WebVideo.js +4 -30
- package/lib/WebVideo/index.js +0 -3
- package/lib/baseExports.js +6 -1
- package/lib/index.js +0 -49
- package/lib/shared/FullBleedContent/FullBleedContent.js +5 -17
- package/lib/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -11
- package/lib/shared/FullBleedContent/index.js +0 -5
- package/lib/shared/FullBleedContent/useFullBleedContentProps.js +1 -12
- package/lib/shared/VideoSplash/SplashButton/SplashButton.js +2 -12
- package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +7 -23
- package/lib/shared/VideoSplash/VideoSplash.js +4 -17
- package/lib/shared/VideoSplash/helpers.js +0 -6
- package/lib/utils/index.js +0 -9
- package/lib/utils/logger.js +0 -6
- package/lib/utils/media.js +2 -11
- package/lib/utils/renderStructuredContent.js +14 -31
- package/lib/utils/ssr.js +0 -6
- package/lib/utils/transforms.js +0 -2
- package/lib/utils/useOverlaidPosition.js +6 -28
- package/lib/utils/useTypographyTheme.js +4 -5
- package/lib-module/Badge/Badge.js +2 -5
- package/lib-module/BlockQuote/BlockQuote.js +4 -15
- package/lib-module/Breadcrumbs/Breadcrumbs.js +9 -25
- package/lib-module/Breadcrumbs/Item/Item.js +15 -12
- package/lib-module/Callout/Callout.js +2 -16
- package/lib-module/Card/Card.js +14 -17
- package/lib-module/Card/CardContent.js +5 -8
- package/lib-module/Card/CardFooter.js +7 -9
- package/lib-module/Countdown/Countdown.js +6 -11
- package/lib-module/Countdown/Segment.js +6 -8
- package/lib-module/Countdown/types.js +2 -1
- package/lib-module/Countdown/useCountdown.js +0 -6
- package/lib-module/DatePicker/CalendarContainer.js +3 -1
- package/lib-module/DatePicker/DatePicker.js +9 -39
- package/lib-module/DatePicker/dictionary.js +0 -8
- package/lib-module/Disclaimer/Disclaimer.js +5 -4
- package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +6 -8
- package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +13 -19
- package/lib-module/Footnote/Footnote.js +17 -41
- package/lib-module/Footnote/FootnoteLink.js +3 -12
- package/lib-module/IconButton/IconButton.js +4 -6
- package/lib-module/Image/Image.js +5 -14
- package/lib-module/NavigationBar/NavigationBar.js +10 -20
- package/lib-module/NavigationBar/NavigationItem.js +5 -5
- package/lib-module/NavigationBar/NavigationSubMenu.js +3 -8
- package/lib-module/NavigationBar/collapseItems.js +6 -8
- package/lib-module/NavigationBar/resolveItemSelection.js +2 -2
- package/lib-module/OptimizeImage/OptimizeImage.js +6 -16
- package/lib-module/OptimizeImage/utils/getFallbackUrl.js +0 -1
- package/lib-module/OptimizeImage/utils/getOptimizedUrl.js +0 -5
- package/lib-module/OptimizeImage/utils/hasWebpSupport.js +1 -5
- package/lib-module/OrderedList/Item.js +4 -7
- package/lib-module/OrderedList/ItemBase.js +2 -3
- package/lib-module/OrderedList/OrderedList.js +11 -9
- package/lib-module/OrderedList/OrderedListBase.js +3 -3
- package/lib-module/Paragraph/Paragraph.js +3 -8
- package/lib-module/PreviewCard/AuthorDate.js +1 -4
- package/lib-module/PreviewCard/PreviewCard.js +16 -19
- package/lib-module/PriceLockup/PriceLockup.js +78 -57
- package/lib-module/Progress/ProgressBar.js +7 -8
- package/lib-module/QuantitySelector/QuantitySelector.js +8 -30
- package/lib-module/QuantitySelector/SideButton.js +4 -6
- package/lib-module/ResponsiveImage/ResponsiveImage.js +5 -12
- package/lib-module/Ribbon/Ribbon.js +4 -9
- package/lib-module/SkeletonProvider/SkeletonImage.js +0 -5
- package/lib-module/SkeletonProvider/SkeletonProvider.js +4 -12
- package/lib-module/SkeletonProvider/SkeletonTypography.js +0 -5
- package/lib-module/Span/Span.js +3 -7
- package/lib-module/Spinner/Spinner.js +11 -24
- package/lib-module/Spinner/SpinnerContent.js +2 -8
- package/lib-module/StoryCard/StoryCard.js +12 -17
- package/lib-module/Table/Body.js +0 -2
- package/lib-module/Table/Cell.js +4 -14
- package/lib-module/Table/Header.js +0 -2
- package/lib-module/Table/Row.js +0 -2
- package/lib-module/Table/SubHeading.js +0 -2
- package/lib-module/Table/Table.js +5 -6
- package/lib-module/TermsAndConditions/ExpandCollapse.js +4 -2
- package/lib-module/TermsAndConditions/TermsAndConditions.js +7 -9
- package/lib-module/Testimonial/Testimonial.js +2 -11
- package/lib-module/Toast/Toast.js +4 -15
- package/lib-module/Video/ControlBar/ControlBar.js +2 -9
- package/lib-module/Video/ControlBar/Controls/VideoButton/VideoButton.js +4 -8
- package/lib-module/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +4 -8
- package/lib-module/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +12 -13
- package/lib-module/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +8 -10
- package/lib-module/Video/MiddleControlButton/MiddleControlButton.js +2 -3
- package/lib-module/Video/Video.js +122 -173
- package/lib-module/VideoPicker/VideoPicker.js +6 -15
- package/lib-module/VideoPicker/VideoPickerPlayer.js +2 -3
- package/lib-module/VideoPicker/VideoPickerThumbnail.js +7 -13
- package/lib-module/VideoPicker/VideoSlider.js +6 -9
- package/lib-module/VideoPicker/videoPropType.js +2 -1
- package/lib-module/WaffleGrid/WaffleGrid.js +11 -15
- package/lib-module/WebPortal/WebPortal.js +1 -1
- package/lib-module/WebVideo/WebVideo.js +4 -15
- package/lib-module/baseExports.js +3 -2
- package/lib-module/index.js +0 -1
- package/lib-module/shared/FullBleedContent/FullBleedContent.js +5 -10
- package/lib-module/shared/FullBleedContent/getFullBleedBorderRadius.js +0 -10
- package/lib-module/shared/FullBleedContent/useFullBleedContentProps.js +1 -11
- package/lib-module/shared/VideoSplash/SplashButton/SplashButton.js +2 -3
- package/lib-module/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +7 -12
- package/lib-module/shared/VideoSplash/VideoSplash.js +4 -4
- package/lib-module/utils/logger.js +2 -2
- package/lib-module/utils/media.js +2 -9
- package/lib-module/utils/renderStructuredContent.js +14 -25
- package/lib-module/utils/ssr.js +0 -4
- package/lib-module/utils/useOverlaidPosition.js +8 -27
- package/lib-module/utils/useTypographyTheme.js +4 -4
- package/package.json +3 -3
- package/src/PriceLockup/PriceLockup.jsx +36 -11
- package/src/baseExports.js +1 -0
- package/src/index.js +0 -1
- package/lib/Modal/Modal.js +0 -146
- package/lib/Modal/ModalContent.js +0 -203
- package/lib/Modal/index.js +0 -13
- package/lib-module/Modal/Modal.js +0 -132
- package/lib-module/Modal/ModalContent.js +0 -181
- package/lib-module/Modal/index.js +0 -2
- package/src/Modal/Modal.jsx +0 -121
- package/src/Modal/ModalContent.jsx +0 -167
- package/src/Modal/index.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-web
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 10 Nov 2023 22:28:25 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.23.0
|
|
8
|
+
|
|
9
|
+
Fri, 10 Nov 2023 22:28:25 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Ribbon component modified to match design intention (35577399+JoshHC@users.noreply.github.com)
|
|
14
|
+
- Bump @telus-uds/components-base to v1.67.1
|
|
15
|
+
- Bump @telus-uds/system-theme-tokens to v2.44.1
|
|
16
|
+
|
|
17
|
+
## 2.22.0
|
|
18
|
+
|
|
19
|
+
Tue, 07 Nov 2023 16:32:21 GMT
|
|
20
|
+
|
|
21
|
+
### Minor changes
|
|
22
|
+
|
|
23
|
+
- enable ability to position rate text (evander.owusu@telus.com)
|
|
24
|
+
- test deleted for modal from components web (35577399+JoshHC@users.noreply.github.com)
|
|
25
|
+
- Bump @telus-uds/components-base to v1.67.0
|
|
26
|
+
- Bump @telus-uds/system-theme-tokens to v2.44.0
|
|
27
|
+
|
|
7
28
|
## 2.21.2
|
|
8
29
|
|
|
9
|
-
Wed, 01 Nov 2023
|
|
30
|
+
Wed, 01 Nov 2023 01:05:43 GMT
|
|
10
31
|
|
|
11
32
|
### Patches
|
|
12
33
|
|
package/lib/Badge/Badge.js
CHANGED
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _utils = require("../utils");
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
23
|
-
|
|
24
15
|
const BadgeContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
25
16
|
displayName: "Badge__BadgeContainer",
|
|
26
17
|
componentId: "components-web__sc-tsiuo2-0"
|
|
@@ -57,7 +48,6 @@ const BadgeContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
57
48
|
${gradient && '-webkit-text-fill-color: transparent;'}
|
|
58
49
|
}`;
|
|
59
50
|
});
|
|
60
|
-
|
|
61
51
|
const Badge = _ref6 => {
|
|
62
52
|
let {
|
|
63
53
|
children,
|
|
@@ -88,13 +78,11 @@ const Badge = _ref6 => {
|
|
|
88
78
|
} = variant;
|
|
89
79
|
let background = backgroundColor;
|
|
90
80
|
const isOutlineOffer = purpose === 'offer' && outline;
|
|
91
|
-
|
|
92
81
|
if ((isOutlineOffer || alternative) && gradient) {
|
|
93
82
|
background = `linear-gradient(#fff 0 0) padding-box, ${semanticGradient} border-box`;
|
|
94
83
|
} else if (purpose === 'offer' && gradient) {
|
|
95
84
|
background = semanticGradient;
|
|
96
85
|
}
|
|
97
|
-
|
|
98
86
|
const fontSizeMapping = {
|
|
99
87
|
12: 'micro',
|
|
100
88
|
14: 'small',
|
|
@@ -124,8 +112,8 @@ const Badge = _ref6 => {
|
|
|
124
112
|
})
|
|
125
113
|
});
|
|
126
114
|
};
|
|
127
|
-
|
|
128
|
-
|
|
115
|
+
Badge.propTypes = {
|
|
116
|
+
...selectedSystemPropTypes,
|
|
129
117
|
children: _propTypes.default.node,
|
|
130
118
|
tokens: (0, _componentsBase.getTokensPropType)('Badge'),
|
|
131
119
|
variant: _propTypes.default.exact({
|
package/lib/Badge/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _Badge = _interopRequireDefault(require("./Badge"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _Badge.default;
|
|
13
10
|
exports.default = _default;
|
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
13
|
-
|
|
14
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
16
11
|
var _utils = require("../utils");
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
23
|
-
|
|
24
15
|
const BlockQuoteContainer = /*#__PURE__*/_styledComponents.default.blockquote.withConfig({
|
|
25
16
|
displayName: "BlockQuote__BlockQuoteContainer",
|
|
26
17
|
componentId: "components-web__sc-vals3u-0"
|
|
@@ -55,7 +46,6 @@ const BlockQuoteContainer = /*#__PURE__*/_styledComponents.default.blockquote.wi
|
|
|
55
46
|
} = _ref6;
|
|
56
47
|
return backgroundGradient && (0, _utils.transformGradient)(backgroundGradient);
|
|
57
48
|
});
|
|
58
|
-
|
|
59
49
|
const QuoteContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
60
50
|
displayName: "BlockQuote__QuoteContainer",
|
|
61
51
|
componentId: "components-web__sc-vals3u-1"
|
|
@@ -65,7 +55,6 @@ const QuoteContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
65
55
|
} = _ref7;
|
|
66
56
|
return `${marginBottom}px`;
|
|
67
57
|
});
|
|
68
|
-
|
|
69
58
|
const BlockQuote = _ref8 => {
|
|
70
59
|
let {
|
|
71
60
|
children,
|
|
@@ -116,7 +105,6 @@ const BlockQuote = _ref8 => {
|
|
|
116
105
|
fontWeight: titleFontWeight,
|
|
117
106
|
lineHeight: titleLineHeight
|
|
118
107
|
};
|
|
119
|
-
|
|
120
108
|
const renderLink = () => {
|
|
121
109
|
if (linkHref) {
|
|
122
110
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, {
|
|
@@ -136,7 +124,6 @@ const BlockQuote = _ref8 => {
|
|
|
136
124
|
children: link
|
|
137
125
|
});
|
|
138
126
|
}
|
|
139
|
-
|
|
140
127
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
141
128
|
tokens: {
|
|
142
129
|
color,
|
|
@@ -148,7 +135,6 @@ const BlockQuote = _ref8 => {
|
|
|
148
135
|
children: link
|
|
149
136
|
});
|
|
150
137
|
};
|
|
151
|
-
|
|
152
138
|
const renderQuote = () => {
|
|
153
139
|
const quote = /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
154
140
|
tokens: {
|
|
@@ -160,18 +146,16 @@ const BlockQuote = _ref8 => {
|
|
|
160
146
|
},
|
|
161
147
|
children: children
|
|
162
148
|
});
|
|
163
|
-
|
|
164
149
|
if (additionalInfo || link) {
|
|
165
150
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(QuoteContainer, {
|
|
166
151
|
marginBottom: marginBottom,
|
|
167
152
|
children: quote
|
|
168
153
|
});
|
|
169
154
|
}
|
|
170
|
-
|
|
171
155
|
return quote;
|
|
172
156
|
};
|
|
173
|
-
|
|
174
|
-
|
|
157
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(BlockQuoteContainer, {
|
|
158
|
+
...selectProps(rest),
|
|
175
159
|
paddingTop: paddingTop,
|
|
176
160
|
paddingBottom: paddingBottom,
|
|
177
161
|
paddingLeft: paddingLeft,
|
|
@@ -192,35 +176,30 @@ const BlockQuote = _ref8 => {
|
|
|
192
176
|
})]
|
|
193
177
|
});
|
|
194
178
|
};
|
|
195
|
-
|
|
196
|
-
|
|
179
|
+
BlockQuote.propTypes = {
|
|
180
|
+
...selectedSystemPropTypes,
|
|
197
181
|
..._componentsBase.withLinkRouter.propTypes,
|
|
198
182
|
tokens: (0, _componentsBase.getTokensPropType)('BlockQuote'),
|
|
199
183
|
variant: _propTypes.default.exact({
|
|
200
184
|
alternative: _propTypes.default.bool,
|
|
201
185
|
size: _propTypes.default.string
|
|
202
186
|
}),
|
|
203
|
-
|
|
204
187
|
/**
|
|
205
188
|
* Children nodes that can be added
|
|
206
189
|
*/
|
|
207
190
|
children: _propTypes.default.node.isRequired,
|
|
208
|
-
|
|
209
191
|
/**
|
|
210
192
|
* External source's identifier (e.g. author's name)
|
|
211
193
|
*/
|
|
212
194
|
link: _propTypes.default.string,
|
|
213
|
-
|
|
214
195
|
/**
|
|
215
196
|
* External source's URL
|
|
216
197
|
*/
|
|
217
198
|
linkHref: _propTypes.default.string,
|
|
218
|
-
|
|
219
199
|
/**
|
|
220
200
|
* To provide additional information about the source, rendered underneath `link`
|
|
221
201
|
*/
|
|
222
202
|
additionalInfo: _propTypes.default.string,
|
|
223
|
-
|
|
224
203
|
/**
|
|
225
204
|
* Whether to render BlockQuote as a heading size of `h3` or large text size
|
|
226
205
|
*/
|
package/lib/BlockQuote/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _BlockQuote = _interopRequireDefault(require("./BlockQuote"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _BlockQuote.default;
|
|
13
10
|
exports.default = _default;
|
|
@@ -4,31 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
10
|
var _reactHelmetAsync = require("react-helmet-async");
|
|
15
|
-
|
|
16
11
|
var _componentsBase = require("@telus-uds/components-base");
|
|
17
|
-
|
|
18
12
|
var _utils = require("../utils");
|
|
19
|
-
|
|
20
13
|
var _Item = _interopRequireDefault(require("./Item/Item"));
|
|
21
|
-
|
|
22
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
18
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
31
|
-
|
|
32
19
|
const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
|
|
33
20
|
displayName: "Breadcrumbs__StyledList",
|
|
34
21
|
componentId: "components-web__sc-gwwxrc-0"
|
|
@@ -42,7 +29,6 @@ const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
|
|
|
42
29
|
padding: 0,
|
|
43
30
|
alignItems: 'baseline'
|
|
44
31
|
});
|
|
45
|
-
|
|
46
32
|
const omitProps = _ref => {
|
|
47
33
|
let {
|
|
48
34
|
current,
|
|
@@ -55,12 +41,10 @@ const omitProps = _ref => {
|
|
|
55
41
|
} = _ref;
|
|
56
42
|
return props;
|
|
57
43
|
};
|
|
58
|
-
|
|
59
44
|
const getBreadcrumbName = (item, params) => {
|
|
60
45
|
if (!item.breadcrumbName) {
|
|
61
46
|
return null;
|
|
62
47
|
}
|
|
63
|
-
|
|
64
48
|
let {
|
|
65
49
|
breadcrumbName
|
|
66
50
|
} = item;
|
|
@@ -69,26 +53,20 @@ const getBreadcrumbName = (item, params) => {
|
|
|
69
53
|
});
|
|
70
54
|
return breadcrumbName;
|
|
71
55
|
};
|
|
72
|
-
|
|
73
56
|
const getPath = (path, params, concatenatePaths, paths) => {
|
|
74
57
|
let p = path;
|
|
75
|
-
|
|
76
58
|
if (concatenatePaths) {
|
|
77
59
|
p = p.replace(/^\//, '');
|
|
78
60
|
Object.keys(params).forEach(key => {
|
|
79
61
|
p = p.replace(`:${key}`, params[key]);
|
|
80
62
|
});
|
|
81
|
-
|
|
82
63
|
if (p) {
|
|
83
64
|
paths.push(p);
|
|
84
65
|
}
|
|
85
|
-
|
|
86
66
|
return `/${paths.join('/')}`;
|
|
87
67
|
}
|
|
88
|
-
|
|
89
68
|
return p;
|
|
90
69
|
};
|
|
91
|
-
|
|
92
70
|
const getItems = (items, params, concatenatePaths) => {
|
|
93
71
|
const paths = [];
|
|
94
72
|
return items.filter(item => item.path).map((item, i, filteredItems) => {
|
|
@@ -109,7 +87,6 @@ const getItems = (items, params, concatenatePaths) => {
|
|
|
109
87
|
};
|
|
110
88
|
});
|
|
111
89
|
};
|
|
112
|
-
|
|
113
90
|
const getStructuredData = (items, baseUrl) => {
|
|
114
91
|
return items.map((item, index) => ({
|
|
115
92
|
'@type': 'ListItem',
|
|
@@ -120,11 +97,10 @@ const getStructuredData = (items, baseUrl) => {
|
|
|
120
97
|
}
|
|
121
98
|
}));
|
|
122
99
|
};
|
|
100
|
+
|
|
123
101
|
/**
|
|
124
102
|
* Display a hierarchy of links, commonly used for navigation.
|
|
125
103
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
128
104
|
const Breadcrumbs = _ref2 => {
|
|
129
105
|
let {
|
|
130
106
|
baseUrl,
|
|
@@ -139,7 +115,6 @@ const Breadcrumbs = _ref2 => {
|
|
|
139
115
|
} = _ref2;
|
|
140
116
|
// React Helmet can cause a memory leak in SSR if not properly configured.
|
|
141
117
|
// Only run it in SSR if theme options tells us to.
|
|
142
|
-
|
|
143
118
|
/* const {
|
|
144
119
|
themeOptions: { enableHelmetSSR }
|
|
145
120
|
} = useTheme() */
|
|
@@ -192,15 +167,18 @@ const Breadcrumbs = _ref2 => {
|
|
|
192
167
|
linkRouterProps: itemLinkRouterProps,
|
|
193
168
|
...itemRest
|
|
194
169
|
} = _ref4;
|
|
195
|
-
return /*#__PURE__*/(0, _react.createElement)(_Item.default, {
|
|
170
|
+
return /*#__PURE__*/(0, _react.createElement)(_Item.default, {
|
|
171
|
+
...itemRest,
|
|
196
172
|
current: current,
|
|
197
173
|
href: href,
|
|
198
174
|
tokens: tokens,
|
|
199
175
|
key: href,
|
|
200
|
-
linkRouterProps: {
|
|
176
|
+
linkRouterProps: {
|
|
177
|
+
...linkRouterProps,
|
|
201
178
|
...itemLinkRouterProps
|
|
202
179
|
},
|
|
203
|
-
variant: {
|
|
180
|
+
variant: {
|
|
181
|
+
...variant,
|
|
204
182
|
size: 'micro'
|
|
205
183
|
},
|
|
206
184
|
LinkRouter: ItemLinkRouter
|
|
@@ -209,26 +187,22 @@ const Breadcrumbs = _ref2 => {
|
|
|
209
187
|
}), metadata]
|
|
210
188
|
});
|
|
211
189
|
};
|
|
212
|
-
|
|
213
|
-
|
|
190
|
+
Breadcrumbs.propTypes = {
|
|
191
|
+
...selectedSystemPropTypes,
|
|
214
192
|
tokens: (0, _componentsBase.getTokensPropType)('Breadcrumbs'),
|
|
215
193
|
..._componentsBase.withLinkRouter.propTypes,
|
|
216
|
-
|
|
217
194
|
/**
|
|
218
195
|
* Base URL used to build structured data.
|
|
219
196
|
*/
|
|
220
197
|
baseUrl: _propTypes.default.string,
|
|
221
|
-
|
|
222
198
|
/**
|
|
223
199
|
* A list of Items to be used as an alternative to the `routes` prop.
|
|
224
200
|
*/
|
|
225
201
|
children: (0, _componentsBase.componentPropType)('Item'),
|
|
226
|
-
|
|
227
202
|
/**
|
|
228
203
|
* React Router params.
|
|
229
204
|
*/
|
|
230
205
|
params: _propTypes.default.object,
|
|
231
|
-
|
|
232
206
|
/**
|
|
233
207
|
* An array of routes to be displayed as breadcrumbs.
|
|
234
208
|
*/
|
|
@@ -236,7 +210,6 @@ Breadcrumbs.propTypes = { ...selectedSystemPropTypes,
|
|
|
236
210
|
path: _propTypes.default.string,
|
|
237
211
|
breadcrumbName: _propTypes.default.string
|
|
238
212
|
})),
|
|
239
|
-
|
|
240
213
|
/**
|
|
241
214
|
* Variant to render.
|
|
242
215
|
*/
|
|
@@ -4,27 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
10
|
var _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _utils = require("../../utils");
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
16
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
27
|
-
|
|
28
17
|
const StyledItemContainer = /*#__PURE__*/_styledComponents.default.li.withConfig({
|
|
29
18
|
displayName: "Item__StyledItemContainer",
|
|
30
19
|
componentId: "components-web__sc-1rfdaul-0"
|
|
@@ -37,7 +26,6 @@ const StyledItemContainer = /*#__PURE__*/_styledComponents.default.li.withConfig
|
|
|
37
26
|
return `${listItemPadding}px`;
|
|
38
27
|
}
|
|
39
28
|
});
|
|
40
|
-
|
|
41
29
|
const IconContainer = /*#__PURE__*/_styledComponents.default.span.withConfig({
|
|
42
30
|
displayName: "Item__IconContainer",
|
|
43
31
|
componentId: "components-web__sc-1rfdaul-1"
|
|
@@ -67,7 +55,6 @@ const IconContainer = /*#__PURE__*/_styledComponents.default.span.withConfig({
|
|
|
67
55
|
}).fontFamily;
|
|
68
56
|
}
|
|
69
57
|
});
|
|
70
|
-
|
|
71
58
|
const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
|
|
72
59
|
let {
|
|
73
60
|
href,
|
|
@@ -91,20 +78,24 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
|
|
|
91
78
|
fontSize,
|
|
92
79
|
...themeTokens
|
|
93
80
|
} = (0, _componentsBase.useThemeTokens)('Breadcrumbs', tokens, variant);
|
|
94
|
-
const linkOptions = {
|
|
81
|
+
const linkOptions = {
|
|
82
|
+
..._componentsBase.clickProps.toPressProps(selectProps(rest)),
|
|
95
83
|
href
|
|
96
84
|
};
|
|
97
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItemContainer, {
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItemContainer, {
|
|
86
|
+
...themeTokens,
|
|
98
87
|
children: current ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Typography, {
|
|
99
88
|
tokens: {
|
|
100
89
|
color: currentColor,
|
|
101
90
|
fontSize
|
|
102
91
|
},
|
|
103
|
-
variant: {
|
|
92
|
+
variant: {
|
|
93
|
+
...variant
|
|
104
94
|
},
|
|
105
95
|
children: children
|
|
106
96
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
107
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, {
|
|
97
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.Link, {
|
|
98
|
+
...linkOptions,
|
|
108
99
|
ref: ref,
|
|
109
100
|
tokens: {
|
|
110
101
|
color,
|
|
@@ -114,7 +105,8 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
|
|
|
114
105
|
linkRouterProps: linkRouterProps,
|
|
115
106
|
variant: variant,
|
|
116
107
|
children: children
|
|
117
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconContainer, {
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconContainer, {
|
|
109
|
+
...themeTokens,
|
|
118
110
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChevronRightIcon, {
|
|
119
111
|
size: iconSize,
|
|
120
112
|
color: iconColor
|
|
@@ -124,35 +116,33 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref5, ref) => {
|
|
|
124
116
|
});
|
|
125
117
|
});
|
|
126
118
|
Item.displayName = 'Item';
|
|
127
|
-
Item.propTypes = {
|
|
128
|
-
|
|
119
|
+
Item.propTypes = {
|
|
120
|
+
...selectedSystemPropTypes,
|
|
129
121
|
/**
|
|
130
122
|
* Breadcrumb text
|
|
131
123
|
*/
|
|
132
124
|
children: _propTypes.default.node.isRequired,
|
|
133
|
-
|
|
134
125
|
/**
|
|
135
126
|
* @ignore
|
|
136
127
|
*
|
|
137
128
|
* Indicates whether or not the Item should be as current/active
|
|
138
129
|
*/
|
|
139
130
|
current: _propTypes.default.bool,
|
|
140
|
-
|
|
141
131
|
/**
|
|
142
132
|
* Target URL. This will be converted to `to` if the `LinkRouter`
|
|
143
133
|
* prop is provided to the `Item` or parent `Breadcrumbs` element.
|
|
144
134
|
*/
|
|
145
135
|
href: _propTypes.default.string.isRequired,
|
|
146
|
-
|
|
147
136
|
/**
|
|
148
137
|
* Variant to render.
|
|
149
138
|
*/
|
|
150
139
|
variant: _propTypes.default.shape({
|
|
151
140
|
inverse: _propTypes.default.bool
|
|
152
141
|
})
|
|
153
|
-
};
|
|
154
|
-
// - probably related https://github.com/yannickcr/eslint-plugin-react/issues/2760
|
|
142
|
+
};
|
|
155
143
|
|
|
144
|
+
// Since react/require-default-props eslint rule doesn't pick up default arguments as default props when combined with `forwardRef`
|
|
145
|
+
// - probably related https://github.com/yannickcr/eslint-plugin-react/issues/2760
|
|
156
146
|
Item.defaultProps = {
|
|
157
147
|
current: false,
|
|
158
148
|
variant: {
|
package/lib/Breadcrumbs/index.js
CHANGED
package/lib/Callout/Callout.js
CHANGED
|
@@ -4,56 +4,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
10
|
var _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _utils = require("../utils");
|
|
17
|
-
|
|
18
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
23
|
-
|
|
24
15
|
const getAlignment = (rounded, textAlignToFlex) => {
|
|
25
16
|
if (textAlignToFlex) {
|
|
26
17
|
switch (textAlignToFlex) {
|
|
27
18
|
case 'left':
|
|
28
19
|
return 'flex-star';
|
|
29
|
-
|
|
30
20
|
case 'center':
|
|
31
21
|
return 'center';
|
|
32
|
-
|
|
33
22
|
default:
|
|
34
23
|
return 'flex-start';
|
|
35
24
|
}
|
|
36
25
|
}
|
|
37
|
-
|
|
38
26
|
return rounded ? 'center' : ' flex-start';
|
|
39
27
|
};
|
|
40
|
-
|
|
41
28
|
const verticalAlignToFlex = verticalAlign => {
|
|
42
29
|
switch (verticalAlign) {
|
|
43
30
|
case 'top':
|
|
44
31
|
return 'flex-start';
|
|
45
|
-
|
|
46
32
|
case 'middle':
|
|
47
33
|
return 'center';
|
|
48
|
-
|
|
49
34
|
case 'bottom':
|
|
50
35
|
return 'flex-end';
|
|
51
|
-
|
|
52
36
|
default:
|
|
53
37
|
return 'top';
|
|
54
38
|
}
|
|
55
39
|
};
|
|
56
|
-
|
|
57
40
|
const CalloutContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
58
41
|
displayName: "Callout__CalloutContainer",
|
|
59
42
|
componentId: "components-web__sc-1a7ptx-0"
|
|
@@ -77,7 +60,6 @@ const CalloutContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
77
60
|
alignItems: verticalAlignToFlex(verticalAlign)
|
|
78
61
|
};
|
|
79
62
|
});
|
|
80
|
-
|
|
81
63
|
const Callout = _ref2 => {
|
|
82
64
|
let {
|
|
83
65
|
icon,
|
|
@@ -134,25 +116,21 @@ const Callout = _ref2 => {
|
|
|
134
116
|
})]
|
|
135
117
|
});
|
|
136
118
|
};
|
|
137
|
-
|
|
138
|
-
|
|
119
|
+
Callout.propTypes = {
|
|
120
|
+
...selectedSystemPropTypes,
|
|
139
121
|
tokens: (0, _componentsBase.getTokensPropType)('Callout'),
|
|
140
|
-
|
|
141
122
|
/**
|
|
142
123
|
* Icon to display on the left side of the Callout
|
|
143
124
|
*/
|
|
144
125
|
icon: _propTypes.default.elementType,
|
|
145
|
-
|
|
146
126
|
/**
|
|
147
127
|
* Children nodes that can be added
|
|
148
128
|
*/
|
|
149
129
|
children: _propTypes.default.node.isRequired,
|
|
150
|
-
|
|
151
130
|
/**
|
|
152
131
|
* To change the horizontal alignment of the Callout's text
|
|
153
132
|
*/
|
|
154
133
|
textAlignToFlex: _propTypes.default.oneOf(['center', 'left']),
|
|
155
|
-
|
|
156
134
|
/**
|
|
157
135
|
* To change the vertical alignment of the Callout's icon
|
|
158
136
|
*/
|
package/lib/Callout/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _Callout = _interopRequireDefault(require("./Callout"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _Callout.default;
|
|
13
10
|
exports.default = _default;
|