@telus-uds/components-web 2.21.2 → 2.22.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 +13 -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/lib/OrderedList/Item.js
CHANGED
|
@@ -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 _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _ItemBase = _interopRequireDefault(require("./ItemBase"));
|
|
17
|
-
|
|
18
12
|
var _utils = require("../utils");
|
|
19
|
-
|
|
20
13
|
var _constants = require("./constants");
|
|
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 selectItemTextStyles = (_ref, themeOptions) => {
|
|
33
20
|
let {
|
|
34
21
|
itemFontWeight,
|
|
@@ -46,7 +33,6 @@ const selectItemTextStyles = (_ref, themeOptions) => {
|
|
|
46
33
|
lineHeight: itemLineHeight
|
|
47
34
|
});
|
|
48
35
|
};
|
|
49
|
-
|
|
50
36
|
const StyledItemBase = /*#__PURE__*/(0, _styledComponents.default)(_ItemBase.default).withConfig({
|
|
51
37
|
displayName: "Item__StyledItemBase",
|
|
52
38
|
componentId: "components-web__sc-7jzwcq-0"
|
|
@@ -85,14 +71,12 @@ const StyledItemBase = /*#__PURE__*/(0, _styledComponents.default)(_ItemBase.def
|
|
|
85
71
|
}
|
|
86
72
|
};
|
|
87
73
|
});
|
|
88
|
-
|
|
89
74
|
const ItemContent = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
90
75
|
displayName: "Item__ItemContent",
|
|
91
76
|
componentId: "components-web__sc-7jzwcq-1"
|
|
92
77
|
})({
|
|
93
78
|
flex: 1
|
|
94
79
|
});
|
|
95
|
-
|
|
96
80
|
const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
97
81
|
let {
|
|
98
82
|
children,
|
|
@@ -134,25 +118,24 @@ const Item = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
134
118
|
},
|
|
135
119
|
tokens: headingTokens,
|
|
136
120
|
children: title
|
|
137
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ItemContent, {
|
|
121
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ItemContent, {
|
|
122
|
+
...themeTokens,
|
|
138
123
|
children: itemContent
|
|
139
124
|
})]
|
|
140
125
|
}) : itemContent
|
|
141
126
|
});
|
|
142
127
|
});
|
|
143
128
|
Item.displayName = 'OrderedListItem';
|
|
144
|
-
Item.propTypes = {
|
|
145
|
-
|
|
129
|
+
Item.propTypes = {
|
|
130
|
+
...selectedSystemPropTypes,
|
|
146
131
|
/**
|
|
147
132
|
* Item content
|
|
148
133
|
*/
|
|
149
134
|
children: _propTypes.default.node.isRequired,
|
|
150
|
-
|
|
151
135
|
/**
|
|
152
136
|
* Defines the title of the `OrderedList.Item`
|
|
153
137
|
*/
|
|
154
138
|
title: _propTypes.default.string,
|
|
155
|
-
|
|
156
139
|
/**
|
|
157
140
|
* Item tokens
|
|
158
141
|
*/
|
|
@@ -4,34 +4,27 @@ 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 _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
const StyledItem = /*#__PURE__*/_styledComponents.default.li.withConfig({
|
|
19
13
|
displayName: "ItemBase__StyledItem",
|
|
20
14
|
componentId: "components-web__sc-o0oiv5-0"
|
|
21
15
|
})({
|
|
22
16
|
display: 'flex'
|
|
23
17
|
});
|
|
24
|
-
|
|
25
18
|
const Item = _ref => {
|
|
26
19
|
let {
|
|
27
20
|
children,
|
|
28
21
|
...rest
|
|
29
22
|
} = _ref;
|
|
30
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItem, {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledItem, {
|
|
24
|
+
...rest,
|
|
31
25
|
children: children
|
|
32
26
|
});
|
|
33
27
|
};
|
|
34
|
-
|
|
35
28
|
Item.propTypes = {
|
|
36
29
|
/**
|
|
37
30
|
* Item content
|
|
@@ -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 _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _utils = require("../utils");
|
|
17
|
-
|
|
18
12
|
var _OrderedListBase = _interopRequireDefault(require("./OrderedListBase"));
|
|
19
|
-
|
|
20
13
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
21
|
-
|
|
22
14
|
var _constants = require("./constants");
|
|
23
|
-
|
|
24
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
|
|
26
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
17
|
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); }
|
|
29
|
-
|
|
30
18
|
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; }
|
|
31
|
-
|
|
32
19
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_utils.htmlAttrs]);
|
|
33
20
|
const StyledOrderedListBase = /*#__PURE__*/(0, _styledComponents.default)(_OrderedListBase.default).withConfig({
|
|
34
21
|
displayName: "OrderedList__StyledOrderedListBase",
|
|
@@ -43,10 +30,10 @@ const StyledOrderedListBase = /*#__PURE__*/(0, _styledComponents.default)(_Order
|
|
|
43
30
|
counterReset: `${_constants.OL_COUNTER_NAME} ${start - 1}`
|
|
44
31
|
};
|
|
45
32
|
});
|
|
33
|
+
|
|
46
34
|
/**
|
|
47
35
|
* Themed semantic ordered list.
|
|
48
36
|
*/
|
|
49
|
-
|
|
50
37
|
const OrderedList = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
|
|
51
38
|
let {
|
|
52
39
|
children,
|
|
@@ -57,31 +44,33 @@ const OrderedList = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
|
|
|
57
44
|
// Pass any variants "OrderedList" receives down to the individual list items.
|
|
58
45
|
const childrenWithParentVariants = variant ? children.map(child => {
|
|
59
46
|
var _child$props;
|
|
60
|
-
|
|
61
47
|
const existingChildVariants = ((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.variant) ?? {};
|
|
62
|
-
return {
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
return {
|
|
49
|
+
...child,
|
|
50
|
+
props: {
|
|
51
|
+
...child.props,
|
|
52
|
+
variant: {
|
|
53
|
+
...existingChildVariants,
|
|
65
54
|
...variant
|
|
66
55
|
}
|
|
67
56
|
}
|
|
68
57
|
};
|
|
69
58
|
}) : children;
|
|
70
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOrderedListBase, {
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOrderedListBase, {
|
|
60
|
+
...selectProps(rest),
|
|
71
61
|
ref: ref,
|
|
72
62
|
start: start,
|
|
73
63
|
children: childrenWithParentVariants
|
|
74
64
|
});
|
|
75
65
|
});
|
|
76
66
|
OrderedList.displayName = 'OrderedList';
|
|
77
|
-
OrderedList.propTypes = {
|
|
67
|
+
OrderedList.propTypes = {
|
|
68
|
+
...selectedSystemPropTypes,
|
|
78
69
|
tokens: (0, _componentsBase.getTokensPropType)('OrderedList'),
|
|
79
|
-
|
|
80
70
|
/**
|
|
81
71
|
* A list of ordered items wrapped in `OrderedList.Item`.
|
|
82
72
|
*/
|
|
83
73
|
children: _propTypes.default.node.isRequired,
|
|
84
|
-
|
|
85
74
|
/**
|
|
86
75
|
* The position to start the list with.
|
|
87
76
|
*/
|
|
@@ -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 = _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 _ItemBase = _interopRequireDefault(require("./ItemBase"));
|
|
15
|
-
|
|
16
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
|
|
25
16
|
displayName: "OrderedListBase__StyledList",
|
|
26
17
|
componentId: "components-web__sc-4m9lgj-0"
|
|
@@ -31,18 +22,18 @@ const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
|
|
|
31
22
|
margin: 0,
|
|
32
23
|
padding: 0
|
|
33
24
|
});
|
|
25
|
+
|
|
34
26
|
/**
|
|
35
27
|
* Semantic ordered list.
|
|
36
28
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
29
|
const OrderedListBase = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
40
30
|
let {
|
|
41
31
|
children,
|
|
42
32
|
start,
|
|
43
33
|
...rest
|
|
44
34
|
} = _ref;
|
|
45
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledList, {
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledList, {
|
|
36
|
+
...rest,
|
|
46
37
|
ref: ref,
|
|
47
38
|
start: start,
|
|
48
39
|
children: children
|
|
@@ -54,7 +45,6 @@ OrderedListBase.propTypes = {
|
|
|
54
45
|
* A list of ordered items wrapped in `OrderedListBase.Item`.
|
|
55
46
|
*/
|
|
56
47
|
children: _propTypes.default.node.isRequired,
|
|
57
|
-
|
|
58
48
|
/**
|
|
59
49
|
* The position to start the list with.
|
|
60
50
|
*/
|
package/lib/OrderedList/index.js
CHANGED
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _OrderedList = _interopRequireDefault(require("./OrderedList"));
|
|
9
|
-
|
|
10
8
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
_OrderedList.default.Item = _Item.default;
|
|
15
11
|
var _default = _OrderedList.default;
|
|
16
12
|
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 _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 StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
|
|
25
16
|
displayName: "Paragraph__StyledParagraph",
|
|
26
17
|
componentId: "components-web__sc-1bg9r8p-0"
|
|
@@ -38,6 +29,7 @@ const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
|
|
|
38
29
|
margin-block-end: ${linesBetween}em;
|
|
39
30
|
`;
|
|
40
31
|
});
|
|
32
|
+
|
|
41
33
|
/**
|
|
42
34
|
* Block text as an HTML ```<p>``` element.
|
|
43
35
|
*
|
|
@@ -48,8 +40,6 @@ const StyledParagraph = /*#__PURE__*/_styledComponents.default.p.withConfig({
|
|
|
48
40
|
contrast.
|
|
49
41
|
* - All Allium Typography variants other than header size variants are supported.
|
|
50
42
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
43
|
const Paragraph = _ref3 => {
|
|
54
44
|
let {
|
|
55
45
|
children,
|
|
@@ -70,33 +60,28 @@ const Paragraph = _ref3 => {
|
|
|
70
60
|
children: children
|
|
71
61
|
});
|
|
72
62
|
};
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
Paragraph.propTypes = {
|
|
64
|
+
...selectedSystemPropTypes,
|
|
75
65
|
children: _propTypes.default.node.isRequired,
|
|
76
|
-
|
|
77
66
|
/**
|
|
78
67
|
* Adds a `data-testid` attribute to the element for testing purposes
|
|
79
68
|
*/
|
|
80
69
|
testID: _propTypes.default.string,
|
|
81
|
-
|
|
82
70
|
/**
|
|
83
71
|
* Sets the alignment style for the paragraph. Same options as Typography's `align` prop.
|
|
84
72
|
* 'justify' should be avoided as it usually reduces ease of reading.
|
|
85
73
|
*/
|
|
86
74
|
align: _propTypes.default.oneOf(['auto', 'left', 'right', 'center', 'justify']),
|
|
87
|
-
|
|
88
75
|
/**
|
|
89
76
|
* How much space between consecutive paragraphs, or between a paragraph and its siblings, in CSS
|
|
90
77
|
* `em` units: 1 gives space equal to one line of paragraph text, 0.5 would be half a line, etc.
|
|
91
78
|
* @default 1
|
|
92
79
|
*/
|
|
93
80
|
linesBetween: _propTypes.default.number,
|
|
94
|
-
|
|
95
81
|
/**
|
|
96
82
|
* Paragraph takes the same tokens overrides as Typography
|
|
97
83
|
*/
|
|
98
84
|
tokens: _propTypes.default.oneOf([_propTypes.default.object, _propTypes.default.func]),
|
|
99
|
-
|
|
100
85
|
/**
|
|
101
86
|
* Paragraph takes any of Typography's theme variants except for header sizes
|
|
102
87
|
*/
|
package/lib/Paragraph/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 _Paragraph = _interopRequireDefault(require("./Paragraph"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _Paragraph.default;
|
|
13
10
|
exports.default = _default;
|
|
@@ -4,25 +4,18 @@ 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 _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* A footer for PreviewCard that composes author and date in a standard way
|
|
20
14
|
*
|
|
21
15
|
* @TODO
|
|
22
16
|
* Add same locale-based date formatting as StoryCard when ready.
|
|
23
17
|
* Get locale based on decision of https://github.com/telus/universal-design-system/issues/715
|
|
24
|
-
*/
|
|
25
|
-
const AuthorDate = _ref => {
|
|
18
|
+
*/const AuthorDate = _ref => {
|
|
26
19
|
let {
|
|
27
20
|
author,
|
|
28
21
|
date
|
|
@@ -55,13 +48,11 @@ const AuthorDate = _ref => {
|
|
|
55
48
|
})]
|
|
56
49
|
});
|
|
57
50
|
};
|
|
58
|
-
|
|
59
51
|
AuthorDate.propTypes = {
|
|
60
52
|
/**
|
|
61
53
|
* Name of the author
|
|
62
54
|
*/
|
|
63
55
|
author: _propTypes.default.string.isRequired,
|
|
64
|
-
|
|
65
56
|
/**
|
|
66
57
|
* Date of the post
|
|
67
58
|
*/
|
|
@@ -4,34 +4,24 @@ 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 _lodash = _interopRequireDefault(require("lodash.omit"));
|
|
13
|
-
|
|
14
10
|
var _componentsBase = require("@telus-uds/components-base");
|
|
15
|
-
|
|
16
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
|
-
|
|
18
12
|
var _FullBleedContent = _interopRequireWildcard(require("../shared/FullBleedContent"));
|
|
19
|
-
|
|
20
13
|
var _AuthorDate = _interopRequireDefault(require("./AuthorDate"));
|
|
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
|
/* eslint-disable react/require-default-props */
|
|
19
|
+
|
|
31
20
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
32
|
-
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.focusHandlerProps, _componentsBase.viewProps]);
|
|
33
|
-
// apparent position of the full bleed image to change.
|
|
21
|
+
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.focusHandlerProps, _componentsBase.viewProps]);
|
|
34
22
|
|
|
23
|
+
// Stop changes to the card's inner border width causing the size and
|
|
24
|
+
// apparent position of the full bleed image to change.
|
|
35
25
|
const FullBleedOffsetOuter = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
36
26
|
displayName: "PreviewCard__FullBleedOffsetOuter",
|
|
37
27
|
componentId: "components-web__sc-1yfz4de-0"
|
|
@@ -44,7 +34,6 @@ const FullBleedOffsetOuter = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
44
34
|
marginTop: borderOffset * 2
|
|
45
35
|
};
|
|
46
36
|
});
|
|
47
|
-
|
|
48
37
|
const FullBleedOffsetInner = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
49
38
|
displayName: "PreviewCard__FullBleedOffsetInner",
|
|
50
39
|
componentId: "components-web__sc-1yfz4de-1"
|
|
@@ -57,7 +46,6 @@ const FullBleedOffsetInner = /*#__PURE__*/_styledComponents.default.div.withConf
|
|
|
57
46
|
margin: 0 - borderOffset
|
|
58
47
|
};
|
|
59
48
|
});
|
|
60
|
-
|
|
61
49
|
const defaultTokens = {
|
|
62
50
|
minWidth: 0,
|
|
63
51
|
shadow: null,
|
|
@@ -66,6 +54,7 @@ const defaultTokens = {
|
|
|
66
54
|
contentFlexGrow: 0,
|
|
67
55
|
contentFlexShrink: 0
|
|
68
56
|
};
|
|
57
|
+
|
|
69
58
|
/**
|
|
70
59
|
* Showcase and guide users to another page, with a preview containing title and a footer.
|
|
71
60
|
* Whole card is interactive, width expands based on column or container.
|
|
@@ -76,7 +65,6 @@ const defaultTokens = {
|
|
|
76
65
|
* - Use `href` to set the target URL
|
|
77
66
|
* - Use `fullBleedContent` to set the thumbnail image
|
|
78
67
|
*/
|
|
79
|
-
|
|
80
68
|
const PreviewCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
81
69
|
let {
|
|
82
70
|
tag,
|
|
@@ -92,7 +80,8 @@ const PreviewCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
92
80
|
fullBleedContentPosition,
|
|
93
81
|
contentStackDirection,
|
|
94
82
|
fullBleedContentProps
|
|
95
|
-
} = (0, _FullBleedContent.useFullBleedContentProps)({
|
|
83
|
+
} = (0, _FullBleedContent.useFullBleedContentProps)({
|
|
84
|
+
...fullBleedContent,
|
|
96
85
|
position: 'bottom'
|
|
97
86
|
});
|
|
98
87
|
const {
|
|
@@ -100,16 +89,14 @@ const PreviewCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
100
89
|
PreviewCard: theme
|
|
101
90
|
}
|
|
102
91
|
} = (0, _componentsBase.useTheme)();
|
|
103
|
-
|
|
104
|
-
|
|
92
|
+
const getPressableCardTokens = cardState => ({
|
|
93
|
+
...(0, _lodash.default)((0, _componentsBase.getThemeTokens)(theme, {}, {}, cardState), 'separatorColor'),
|
|
105
94
|
...defaultTokens
|
|
106
95
|
});
|
|
107
|
-
|
|
108
96
|
const {
|
|
109
97
|
hrefAttrs,
|
|
110
98
|
rest: unusedRest
|
|
111
99
|
} = _componentsBase.hrefAttrsProp.bundle(rest);
|
|
112
|
-
|
|
113
100
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_componentsBase.PressableCardBase, {
|
|
114
101
|
onPress: onPress,
|
|
115
102
|
href: href,
|
|
@@ -121,8 +108,8 @@ const PreviewCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
121
108
|
const {
|
|
122
109
|
borderRadius,
|
|
123
110
|
borderWidth
|
|
124
|
-
} = getPressableCardTokens(cardState);
|
|
125
|
-
|
|
111
|
+
} = getPressableCardTokens(cardState);
|
|
112
|
+
// Stop content jumping around as border size changes
|
|
126
113
|
const borderOffset = borderWidth - theme.tokens.borderWidth;
|
|
127
114
|
const fullBleedBorderRadius = (0, _FullBleedContent.getFullBleedBorderRadius)(borderRadius + borderOffset, fullBleedContentPosition);
|
|
128
115
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_componentsBase.StackView, {
|
|
@@ -184,12 +171,13 @@ const PreviewCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
184
171
|
}
|
|
185
172
|
});
|
|
186
173
|
});
|
|
187
|
-
PreviewCard.displayName = 'PreviewCard';
|
|
174
|
+
PreviewCard.displayName = 'PreviewCard';
|
|
188
175
|
|
|
176
|
+
// Provide standard author/date footer as a preset with the export
|
|
189
177
|
PreviewCard.AuthorDate = _AuthorDate.default;
|
|
190
|
-
PreviewCard.propTypes = {
|
|
178
|
+
PreviewCard.propTypes = {
|
|
179
|
+
...selectedSystemPropTypes,
|
|
191
180
|
tokens: (0, _componentsBase.getTokensPropType)('PreviewCard'),
|
|
192
|
-
|
|
193
181
|
/**
|
|
194
182
|
* The URL of the story to be navigated to. Note that `Video` component does not play well when used within
|
|
195
183
|
* a `PreviewCard` with `href` prop set (the volume and progress sliders can be clicked but are not draggable).
|
|
@@ -198,41 +186,33 @@ PreviewCard.propTypes = { ...selectedSystemPropTypes,
|
|
|
198
186
|
* @see https://github.com/telus/allium-design-system/issues/6
|
|
199
187
|
*/
|
|
200
188
|
href: _propTypes.default.string,
|
|
201
|
-
|
|
202
189
|
/**
|
|
203
190
|
* Optional function to be called on press e.g. for within-page navigation.
|
|
204
191
|
*/
|
|
205
192
|
onPress: _propTypes.default.func,
|
|
206
|
-
|
|
207
193
|
/**
|
|
208
194
|
* Text stating the category of the content.
|
|
209
195
|
*/
|
|
210
196
|
tag: _propTypes.default.string,
|
|
211
|
-
|
|
212
197
|
/**
|
|
213
198
|
* Section containing additional information, such as author and date.
|
|
214
199
|
* Use `<PreviewCard.AuthorDate author={...} date={...} />` here for author and date.
|
|
215
200
|
*/
|
|
216
201
|
footer: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
|
|
217
|
-
|
|
218
202
|
/**
|
|
219
203
|
* Text stating the title or headline of the story.
|
|
220
204
|
*/
|
|
221
205
|
title: _propTypes.default.string.isRequired,
|
|
222
|
-
|
|
223
206
|
/**
|
|
224
207
|
* Full bleed image to be placed on the card, deprecated in favor of `fullBleedContent`.
|
|
225
208
|
*
|
|
226
209
|
* @deprecated
|
|
227
210
|
*/
|
|
228
211
|
fullBleedImage: _propTypes.default.exact(_FullBleedContent.default.propTypes || {}),
|
|
229
|
-
|
|
230
212
|
/**
|
|
231
213
|
* Full bleed content to be placed on the card.
|
|
232
214
|
*/
|
|
233
215
|
fullBleedContent: _propTypes.default.exact(_FullBleedContent.default.propTypes || {})
|
|
234
216
|
};
|
|
235
|
-
|
|
236
217
|
var _default = (0, _componentsBase.withLinkRouter)(PreviewCard);
|
|
237
|
-
|
|
238
218
|
exports.default = _default;
|
package/lib/PreviewCard/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 _PreviewCard = _interopRequireDefault(require("./PreviewCard"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _PreviewCard.default;
|
|
13
10
|
exports.default = _default;
|