@telus-uds/components-web 3.2.0 → 3.2.1
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 -2
- package/lib/Badge/Badge.js +19 -11
- package/lib/BlockQuote/BlockQuote.js +31 -17
- package/lib/Breadcrumbs/Breadcrumbs.js +23 -17
- package/lib/Breadcrumbs/Item/Item.js +6 -10
- package/lib/Callout/Callout.js +5 -6
- package/lib/Card/Card.js +5 -5
- package/lib/Card/CardContent.js +5 -6
- package/lib/Card/CardFooter.js +5 -6
- package/lib/Countdown/Countdown.js +5 -6
- package/lib/Countdown/Segment.js +6 -6
- package/lib/DatePicker/CalendarContainer.js +5 -5
- package/lib/DatePicker/DatePicker.js +12 -18
- package/lib/DatePicker/reactDatesCss.js +829 -2
- package/lib/Disclaimer/Disclaimer.js +5 -6
- package/lib/Footnote/Footnote.js +15 -39
- package/lib/Footnote/FootnoteLink.js +5 -6
- package/lib/NavigationBar/NavigationBar.js +5 -6
- package/lib/NavigationBar/NavigationItem.js +5 -6
- package/lib/OrderedList/Item.js +7 -11
- package/lib/OrderedList/ItemBase.js +5 -5
- package/lib/OrderedList/OrderedList.js +5 -6
- package/lib/OrderedList/OrderedListBase.js +5 -5
- package/lib/Paragraph/Paragraph.js +16 -8
- package/lib/PreviewCard/PreviewCard.js +7 -10
- package/lib/PriceLockup/PriceLockup.js +64 -54
- package/lib/Progress/ProgressBar.js +6 -6
- package/lib/QuantitySelector/styles.js +18 -9
- package/lib/Ribbon/Ribbon.js +57 -31
- package/lib/Span/Span.js +6 -7
- package/lib/Spinner/Spinner.js +8 -18
- package/lib/Spinner/SpinnerContent.js +5 -6
- package/lib/StoryCard/StoryCard.js +7 -10
- package/lib/Table/Cell.js +43 -12
- package/lib/Table/Table.js +15 -11
- package/lib/TermsAndConditions/ExpandCollapse.js +7 -13
- package/lib/TermsAndConditions/TermsAndConditions.js +9 -22
- package/lib/Testimonial/Testimonial.js +10 -26
- package/lib/Toast/Toast.js +64 -13
- package/lib/Video/ControlBar/ControlBar.js +8 -18
- package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
- package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +7 -14
- package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +7 -14
- package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +6 -10
- package/lib/Video/MiddleControlButton/MiddleControlButton.js +5 -6
- package/lib/Video/Video.js +10 -26
- package/lib/VideoPicker/VideoPicker.js +44 -20
- package/lib/VideoPicker/VideoPickerThumbnail.js +52 -18
- package/lib/WaffleGrid/WaffleGrid.js +7 -14
- package/lib/WebVideo/WebVideo.js +9 -14
- package/lib/index.js +1 -1
- package/lib/shared/FullBleedContent/FullBleedContent.js +5 -5
- package/lib/shared/VideoSplash/SplashButton/SplashButton.js +6 -9
- package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +8 -17
- package/lib/shared/VideoSplash/VideoSplash.js +5 -6
- package/lib/utils/index.js +2 -1
- package/lib/utils/ssr.js +4 -1
- package/lib/utils/theming/styled-components.js +26 -0
- package/package.json +3 -3
- package/src/Badge/Badge.jsx +3 -2
- package/src/BlockQuote/BlockQuote.jsx +3 -2
- package/src/Breadcrumbs/Breadcrumbs.jsx +23 -13
- package/src/Breadcrumbs/Item/Item.jsx +3 -2
- package/src/Callout/Callout.jsx +3 -2
- package/src/Card/Card.jsx +3 -1
- package/src/Card/CardContent.jsx +3 -2
- package/src/Card/CardFooter.jsx +3 -2
- package/src/Countdown/Countdown.jsx +3 -2
- package/src/Countdown/Segment.jsx +3 -1
- package/src/DatePicker/CalendarContainer.jsx +3 -1
- package/src/DatePicker/DatePicker.jsx +3 -2
- package/src/DatePicker/reactDatesCss.js +3 -1
- package/src/Disclaimer/Disclaimer.jsx +3 -2
- package/src/Footnote/Footnote.jsx +9 -2
- package/src/Footnote/FootnoteLink.jsx +3 -2
- package/src/NavigationBar/NavigationBar.jsx +3 -2
- package/src/NavigationBar/NavigationItem.jsx +3 -2
- package/src/OrderedList/Item.jsx +4 -3
- package/src/OrderedList/ItemBase.jsx +3 -1
- package/src/OrderedList/OrderedList.jsx +3 -2
- package/src/OrderedList/OrderedListBase.jsx +3 -1
- package/src/Paragraph/Paragraph.jsx +3 -2
- package/src/PreviewCard/PreviewCard.jsx +3 -1
- package/src/PriceLockup/PriceLockup.jsx +3 -2
- package/src/Progress/ProgressBar.jsx +3 -1
- package/src/QuantitySelector/styles.js +3 -1
- package/src/Ribbon/Ribbon.jsx +3 -2
- package/src/Span/Span.jsx +3 -2
- package/src/Spinner/Spinner.jsx +3 -2
- package/src/Spinner/SpinnerContent.jsx +3 -2
- package/src/StoryCard/StoryCard.jsx +3 -1
- package/src/Table/Cell.jsx +3 -1
- package/src/Table/Table.jsx +3 -2
- package/src/TermsAndConditions/ExpandCollapse.jsx +3 -1
- package/src/TermsAndConditions/TermsAndConditions.jsx +3 -2
- package/src/Testimonial/Testimonial.jsx +3 -2
- package/src/Toast/Toast.jsx +3 -2
- package/src/Video/ControlBar/ControlBar.jsx +3 -3
- package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -3
- package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +3 -3
- package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +3 -3
- package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +3 -3
- package/src/Video/MiddleControlButton/MiddleControlButton.jsx +4 -3
- package/src/Video/Video.jsx +3 -2
- package/src/VideoPicker/VideoPicker.jsx +3 -2
- package/src/VideoPicker/VideoPickerThumbnail.jsx +3 -1
- package/src/WaffleGrid/WaffleGrid.jsx +3 -2
- package/src/WebVideo/WebVideo.jsx +4 -3
- package/src/index.js +1 -1
- package/src/shared/FullBleedContent/FullBleedContent.jsx +3 -2
- package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +3 -1
- package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +4 -2
- package/src/shared/VideoSplash/VideoSplash.jsx +3 -2
- package/src/utils/index.js +3 -1
- package/src/utils/ssr.js +2 -1
- package/src/utils/theming/styled-components.js +23 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { applyTextStyles, selectSystemProps, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
|
-
import { htmlAttrs } from '../utils';
|
|
4
|
+
import { htmlAttrs, styledComponents } from '../utils';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const {
|
|
7
|
+
styled
|
|
8
|
+
} = styledComponents;
|
|
7
9
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
8
|
-
const StyledDisclaimer =
|
|
9
|
-
displayName: "Disclaimer__StyledDisclaimer",
|
|
10
|
-
componentId: "components-web__sc-1l4xf7u-0"
|
|
11
|
-
})(_ref => {
|
|
10
|
+
const StyledDisclaimer = styled.p(_ref => {
|
|
12
11
|
let {
|
|
13
12
|
fontName,
|
|
14
13
|
fontWeight,
|
package/lib/Footnote/Footnote.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled, { createGlobalStyle } from 'styled-components';
|
|
4
3
|
import { Icon, Portal, selectSystemProps, Typography, useCopy, useTheme, useResponsiveProp, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
5
4
|
import OrderedListBase from '../OrderedList/OrderedListBase';
|
|
6
|
-
import { htmlAttrs, media, renderStructuredContent, isElementFocusable } from '../utils';
|
|
5
|
+
import { htmlAttrs, media, renderStructuredContent, isElementFocusable, styledComponents } from '../utils';
|
|
7
6
|
import defaultDictionary from './dictionary';
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
10
9
|
const viewportBreakpoint = 1440;
|
|
11
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
styled,
|
|
12
|
+
createGlobalStyle
|
|
13
|
+
} = styledComponents;
|
|
14
|
+
const GlobalBodyScrollLock = createGlobalStyle({
|
|
12
15
|
'html, body': media().until('md').css({
|
|
13
16
|
overflow: 'hidden'
|
|
14
17
|
})
|
|
15
18
|
});
|
|
16
|
-
const StyledFootnote =
|
|
17
|
-
displayName: "Footnote__StyledFootnote",
|
|
18
|
-
componentId: "components-web__sc-1563bo5-0"
|
|
19
|
-
})(_ref => {
|
|
19
|
+
const StyledFootnote = styled.div(_ref => {
|
|
20
20
|
let {
|
|
21
21
|
footnoteBackground,
|
|
22
22
|
isVisible,
|
|
@@ -60,17 +60,11 @@ const StyledFootnote = /*#__PURE__*/styled.div.withConfig({
|
|
|
60
60
|
}
|
|
61
61
|
return {};
|
|
62
62
|
});
|
|
63
|
-
const StyledFootnoteHeader =
|
|
64
|
-
displayName: "Footnote__StyledFootnoteHeader",
|
|
65
|
-
componentId: "components-web__sc-1563bo5-1"
|
|
66
|
-
})(() => ({
|
|
63
|
+
const StyledFootnoteHeader = styled.div(() => ({
|
|
67
64
|
position: 'relative',
|
|
68
65
|
width: '100%'
|
|
69
66
|
}));
|
|
70
|
-
const StyledHeader =
|
|
71
|
-
displayName: "Footnote__StyledHeader",
|
|
72
|
-
componentId: "components-web__sc-1563bo5-2"
|
|
73
|
-
})(_ref3 => {
|
|
67
|
+
const StyledHeader = styled.div(_ref3 => {
|
|
74
68
|
let {
|
|
75
69
|
footnoteHeaderPaddingLeft,
|
|
76
70
|
footnoteHeaderPaddingRight,
|
|
@@ -88,10 +82,7 @@ const StyledHeader = /*#__PURE__*/styled.div.withConfig({
|
|
|
88
82
|
paddingLeft: footnoteHeaderPaddingLeft
|
|
89
83
|
};
|
|
90
84
|
});
|
|
91
|
-
const StyledFootnoteBody =
|
|
92
|
-
displayName: "Footnote__StyledFootnoteBody",
|
|
93
|
-
componentId: "components-web__sc-1563bo5-3"
|
|
94
|
-
})(_ref4 => {
|
|
85
|
+
const StyledFootnoteBody = styled.div(_ref4 => {
|
|
95
86
|
let {
|
|
96
87
|
footnoteBodyBackground,
|
|
97
88
|
footnoteBodyPadding,
|
|
@@ -116,10 +107,7 @@ const StyledFootnoteBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
116
107
|
opacity: isTextVisible ? 1 : 0
|
|
117
108
|
};
|
|
118
109
|
});
|
|
119
|
-
const List =
|
|
120
|
-
displayName: "Footnote__List",
|
|
121
|
-
componentId: "components-web__sc-1563bo5-4"
|
|
122
|
-
})(_ref5 => {
|
|
110
|
+
const List = styled(OrderedListBase)(_ref5 => {
|
|
123
111
|
let {
|
|
124
112
|
listPaddingLeft
|
|
125
113
|
} = _ref5;
|
|
@@ -128,10 +116,7 @@ const List = /*#__PURE__*/styled(OrderedListBase).withConfig({
|
|
|
128
116
|
paddingLeft: listPaddingLeft
|
|
129
117
|
};
|
|
130
118
|
});
|
|
131
|
-
const ListItem =
|
|
132
|
-
displayName: "Footnote__ListItem",
|
|
133
|
-
componentId: "components-web__sc-1563bo5-5"
|
|
134
|
-
})(_ref6 => {
|
|
119
|
+
const ListItem = styled(OrderedListBase.Item)(_ref6 => {
|
|
135
120
|
let {
|
|
136
121
|
listItemMarkerFontSize,
|
|
137
122
|
listItemMarkerLineHeight,
|
|
@@ -155,10 +140,7 @@ const ListItem = /*#__PURE__*/styled(OrderedListBase.Item).withConfig({
|
|
|
155
140
|
paddingLeft: listItemPaddingLeft
|
|
156
141
|
};
|
|
157
142
|
});
|
|
158
|
-
const CloseButton =
|
|
159
|
-
displayName: "Footnote__CloseButton",
|
|
160
|
-
componentId: "components-web__sc-1563bo5-6"
|
|
161
|
-
})(_ref7 => {
|
|
143
|
+
const CloseButton = styled.button(_ref7 => {
|
|
162
144
|
let {
|
|
163
145
|
closeButtonBorder,
|
|
164
146
|
closeButtonHeight,
|
|
@@ -179,10 +161,7 @@ const CloseButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
179
161
|
width: closeButtonWidth
|
|
180
162
|
};
|
|
181
163
|
});
|
|
182
|
-
const ContentContainer =
|
|
183
|
-
displayName: "Footnote__ContentContainer",
|
|
184
|
-
componentId: "components-web__sc-1563bo5-7"
|
|
185
|
-
})({
|
|
164
|
+
const ContentContainer = styled.div({
|
|
186
165
|
'margin-left': 'auto',
|
|
187
166
|
'margin-right': 'auto',
|
|
188
167
|
left: 0,
|
|
@@ -196,10 +175,7 @@ const ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
196
175
|
width: maxWidth
|
|
197
176
|
};
|
|
198
177
|
});
|
|
199
|
-
const StyledCustomContentContainer =
|
|
200
|
-
displayName: "Footnote__StyledCustomContentContainer",
|
|
201
|
-
componentId: "components-web__sc-1563bo5-8"
|
|
202
|
-
})(_ref9 => {
|
|
178
|
+
const StyledCustomContentContainer = styled.div(_ref9 => {
|
|
203
179
|
let {
|
|
204
180
|
listItemColor,
|
|
205
181
|
listItemFontSize,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { applyTextStyles, selectSystemProps, useCopy, useThemeTokens, variantProp } from '@telus-uds/components-base';
|
|
5
4
|
import dictionary from './dictionary';
|
|
6
|
-
import { htmlAttrs } from '../utils';
|
|
5
|
+
import { htmlAttrs, styledComponents } from '../utils';
|
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const {
|
|
8
|
+
styled
|
|
9
|
+
} = styledComponents;
|
|
8
10
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
9
|
-
const StyledSup =
|
|
10
|
-
displayName: "FootnoteLink__StyledSup",
|
|
11
|
-
componentId: "components-web__sc-17nd7xo-0"
|
|
12
|
-
})(_ref => {
|
|
11
|
+
const StyledSup = styled.sup(_ref => {
|
|
13
12
|
let {
|
|
14
13
|
fontSize,
|
|
15
14
|
lineHeight,
|
|
@@ -2,17 +2,16 @@ var _withLinkRouter$propT, _withLinkRouter$propT2, _withLinkRouter$propT3, _with
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { selectSystemProps, StackView, Typography, useHash, useInputValue, useResponsiveProp, withLinkRouter } from '@telus-uds/components-base';
|
|
5
|
-
import
|
|
6
|
-
import { htmlAttrs, scrollToAnchor } from '../utils';
|
|
5
|
+
import { htmlAttrs, scrollToAnchor, styledComponents } from '../utils';
|
|
7
6
|
import NavigationItem from './NavigationItem';
|
|
8
7
|
import NavigationSubMenu from './NavigationSubMenu';
|
|
9
8
|
import collapseItems from './collapseItems';
|
|
10
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const {
|
|
11
|
+
styled
|
|
12
|
+
} = styledComponents;
|
|
11
13
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
12
|
-
const Heading =
|
|
13
|
-
displayName: "NavigationBar__Heading",
|
|
14
|
-
componentId: "components-web__sc-1vis1gt-0"
|
|
15
|
-
})({
|
|
14
|
+
const Heading = styled.div({
|
|
16
15
|
alignItems: 'center',
|
|
17
16
|
display: 'flex',
|
|
18
17
|
flex: 1,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Button, selectSystemProps, useResponsiveProp, useViewport, useThemeTokensCallback, getTokensPropType } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
5
|
-
import { htmlAttrs } from '../utils';
|
|
4
|
+
import { htmlAttrs, styledComponents } from '../utils';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const {
|
|
7
|
+
styled
|
|
8
|
+
} = styledComponents;
|
|
7
9
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
8
10
|
const defaultMaxWidth = 192;
|
|
9
|
-
const ItemContainer =
|
|
10
|
-
displayName: "NavigationItem__ItemContainer",
|
|
11
|
-
componentId: "components-web__sc-ql9x7c-0"
|
|
12
|
-
})(_ref => {
|
|
11
|
+
const ItemContainer = styled.div(_ref => {
|
|
13
12
|
let {
|
|
14
13
|
targetWidth
|
|
15
14
|
} = _ref;
|
package/lib/OrderedList/Item.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { applyTextStyles, getTokensPropType, selectSystemProps, StackView, Typography, useTheme, useThemeTokens, wrapStringsInText } from '@telus-uds/components-base';
|
|
5
4
|
import ItemBase from './ItemBase';
|
|
6
|
-
import { htmlAttrs } from '../utils';
|
|
5
|
+
import { htmlAttrs, styledComponents } from '../utils';
|
|
7
6
|
import { OL_COUNTER_NAME } from './constants';
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const {
|
|
9
|
+
styled
|
|
10
|
+
} = styledComponents;
|
|
9
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
10
12
|
const selectItemTextStyles = (_ref, themeOptions) => {
|
|
11
13
|
let {
|
|
@@ -25,10 +27,7 @@ const selectItemTextStyles = (_ref, themeOptions) => {
|
|
|
25
27
|
lineHeight: itemLineHeight
|
|
26
28
|
});
|
|
27
29
|
};
|
|
28
|
-
const StyledItemBase =
|
|
29
|
-
displayName: "Item__StyledItemBase",
|
|
30
|
-
componentId: "components-web__sc-7jzwcq-0"
|
|
31
|
-
})(_ref2 => {
|
|
30
|
+
const StyledItemBase = styled(ItemBase)(_ref2 => {
|
|
32
31
|
let {
|
|
33
32
|
interItemMargin,
|
|
34
33
|
itemBulletContainerWidth,
|
|
@@ -67,13 +66,10 @@ const StyledItemBase = /*#__PURE__*/styled(ItemBase).withConfig({
|
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
68
|
});
|
|
70
|
-
const ItemContent =
|
|
71
|
-
displayName: "Item__ItemContent",
|
|
72
|
-
componentId: "components-web__sc-7jzwcq-1"
|
|
73
|
-
})({
|
|
69
|
+
const ItemContent = styled.div({
|
|
74
70
|
display: 'flex',
|
|
75
71
|
flexDirection: 'column',
|
|
76
|
-
gap:
|
|
72
|
+
gap: 0
|
|
77
73
|
});
|
|
78
74
|
const Item = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
79
75
|
let {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import { styledComponents } from '../utils';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const {
|
|
6
|
+
styled
|
|
7
|
+
} = styledComponents;
|
|
8
|
+
const StyledItem = styled.li({
|
|
9
9
|
display: 'flex'
|
|
10
10
|
});
|
|
11
11
|
const Item = _ref => {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { getTokensPropType, selectSystemProps, variantProp } from '@telus-uds/components-base';
|
|
5
|
-
import { htmlAttrs } from '../utils';
|
|
4
|
+
import { htmlAttrs, styledComponents } from '../utils';
|
|
6
5
|
import OrderedListBase from './OrderedListBase';
|
|
7
6
|
import Item from './Item';
|
|
8
7
|
import { OL_COUNTER_NAME } from './constants';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const {
|
|
10
|
+
styled
|
|
11
|
+
} = styledComponents;
|
|
10
12
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
11
|
-
const StyledOrderedListBase =
|
|
12
|
-
displayName: "OrderedList__StyledOrderedListBase",
|
|
13
|
-
componentId: "components-web__sc-t5az8z-0"
|
|
14
|
-
})(_ref => {
|
|
13
|
+
const StyledOrderedListBase = styled(OrderedListBase)(_ref => {
|
|
15
14
|
let {
|
|
16
15
|
start
|
|
17
16
|
} = _ref;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import { styledComponents } from '../utils';
|
|
4
4
|
import ItemBase from './ItemBase';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const {
|
|
7
|
+
styled
|
|
8
|
+
} = styledComponents;
|
|
9
|
+
const StyledList = styled.ol({
|
|
10
10
|
display: 'flex',
|
|
11
11
|
flexDirection: 'column',
|
|
12
12
|
listStylePosition: 'inside',
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { getTokensPropType, selectSystemProps } from '@telus-uds/components-base';
|
|
5
|
-
import { htmlAttrs, useTypographyTheme } from '../utils';
|
|
4
|
+
import { htmlAttrs, useTypographyTheme, styledComponents } from '../utils';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const {
|
|
7
|
+
styled
|
|
8
|
+
} = styledComponents;
|
|
7
9
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
8
|
-
const StyledParagraph =
|
|
9
|
-
|
|
10
|
-
componentId: "components-web__sc-1bg9r8p-0"
|
|
11
|
-
})(["", " ", " &:first-child{margin-block-start:0em;}&:last-child{margin-block-end:0em;}"], _ref => {
|
|
10
|
+
const StyledParagraph = styled.p`
|
|
11
|
+
${_ref => {
|
|
12
12
|
let {
|
|
13
13
|
align
|
|
14
14
|
} = _ref;
|
|
15
15
|
return align ? `text-align: ${align};` : '';
|
|
16
|
-
}
|
|
16
|
+
}}
|
|
17
|
+
${_ref2 => {
|
|
17
18
|
let {
|
|
18
19
|
linesBetween
|
|
19
20
|
} = _ref2;
|
|
@@ -21,7 +22,14 @@ const StyledParagraph = /*#__PURE__*/styled.p.withConfig({
|
|
|
21
22
|
margin-block-start: ${linesBetween}em;
|
|
22
23
|
margin-block-end: ${linesBetween}em;
|
|
23
24
|
`;
|
|
24
|
-
}
|
|
25
|
+
}}
|
|
26
|
+
&:first-child {
|
|
27
|
+
margin-block-start: 0em;
|
|
28
|
+
}
|
|
29
|
+
&:last-child {
|
|
30
|
+
margin-block-end: 0em;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
25
33
|
|
|
26
34
|
/**
|
|
27
35
|
* Block text as an HTML ```<p>``` element.
|
|
@@ -2,20 +2,20 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import omit from 'lodash.omit';
|
|
4
4
|
import { Box, getThemeTokens, hrefAttrsProp, PressableCardBase, selectSystemProps, Spacer, StackView, Typography, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useTheme, getTokensPropType } from '@telus-uds/components-base';
|
|
5
|
-
import
|
|
5
|
+
import { styledComponents } from '../utils';
|
|
6
6
|
import FullBleedContent, { getFullBleedBorderRadius, useFullBleedContentProps } from '../shared/FullBleedContent';
|
|
7
7
|
import AuthorDate from './AuthorDate';
|
|
8
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const {
|
|
10
|
+
styled
|
|
11
|
+
} = styledComponents;
|
|
8
12
|
|
|
9
13
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
10
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
14
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, focusHandlerProps, viewProps]);
|
|
12
15
|
|
|
13
16
|
// Stop changes to the card's inner border width causing the size and
|
|
14
17
|
// apparent position of the full bleed image to change.
|
|
15
|
-
const FullBleedOffsetOuter =
|
|
16
|
-
displayName: "PreviewCard__FullBleedOffsetOuter",
|
|
17
|
-
componentId: "components-web__sc-1yfz4de-0"
|
|
18
|
-
})(_ref => {
|
|
18
|
+
const FullBleedOffsetOuter = styled.div(_ref => {
|
|
19
19
|
let {
|
|
20
20
|
borderOffset
|
|
21
21
|
} = _ref;
|
|
@@ -24,10 +24,7 @@ const FullBleedOffsetOuter = /*#__PURE__*/styled.div.withConfig({
|
|
|
24
24
|
marginTop: borderOffset * 2
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
|
-
const FullBleedOffsetInner =
|
|
28
|
-
displayName: "PreviewCard__FullBleedOffsetInner",
|
|
29
|
-
componentId: "components-web__sc-1yfz4de-1"
|
|
30
|
-
})(_ref2 => {
|
|
27
|
+
const FullBleedOffsetInner = styled.div(_ref2 => {
|
|
31
28
|
let {
|
|
32
29
|
borderOffset
|
|
33
30
|
} = _ref2;
|
|
@@ -1,112 +1,122 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { A11yText, Divider, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
4
|
import FootnoteLink from '../Footnote/FootnoteLink';
|
|
6
5
|
import getTypographyTokens from './tokens';
|
|
7
|
-
import { htmlAttrs, warn } from '../utils';
|
|
6
|
+
import { htmlAttrs, warn, styledComponents } from '../utils';
|
|
8
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const {
|
|
9
|
+
styled
|
|
10
|
+
} = styledComponents;
|
|
9
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
10
|
-
const PriceLockupContainer =
|
|
11
|
-
|
|
12
|
-
componentId: "components-web__sc-1x6duay-0"
|
|
13
|
-
})(["align-items:", ";display:flex;flex-direction:column;width:fit-content;"], _ref => {
|
|
12
|
+
const PriceLockupContainer = styled.div`
|
|
13
|
+
align-items: ${_ref => {
|
|
14
14
|
let {
|
|
15
15
|
alignItemsText
|
|
16
16
|
} = _ref;
|
|
17
17
|
return alignItemsText;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
}};
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
width: fit-content;
|
|
22
|
+
`;
|
|
23
|
+
const PriceContainer = styled.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
margin-bottom: ${_ref2 => {
|
|
23
26
|
let {
|
|
24
27
|
priceMarginBottom
|
|
25
28
|
} = _ref2;
|
|
26
29
|
return priceMarginBottom;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
}};
|
|
31
|
+
`;
|
|
32
|
+
const FootnoteContainer = styled.div`
|
|
33
|
+
display: flex;
|
|
34
|
+
margin-top: ${_ref3 => {
|
|
32
35
|
let {
|
|
33
36
|
footnoteMarginTop
|
|
34
37
|
} = _ref3;
|
|
35
38
|
return footnoteMarginTop;
|
|
36
|
-
}
|
|
39
|
+
}};
|
|
40
|
+
gap: ${_ref4 => {
|
|
37
41
|
let {
|
|
38
42
|
footnoteGap
|
|
39
43
|
} = _ref4;
|
|
40
44
|
return footnoteGap;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})(["margin-top:", ";"], _ref5 => {
|
|
45
|
+
}};
|
|
46
|
+
`;
|
|
47
|
+
const BottomTextContainer = styled.div`
|
|
48
|
+
margin-top: ${_ref5 => {
|
|
46
49
|
let {
|
|
47
50
|
bottomTextMarginTop
|
|
48
51
|
} = _ref5;
|
|
49
52
|
return bottomTextMarginTop;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
}};
|
|
54
|
+
`;
|
|
55
|
+
const BottomLinksContainer = styled.div`
|
|
56
|
+
align-self: center;
|
|
57
|
+
margin-left: ${_ref6 => {
|
|
55
58
|
let {
|
|
56
59
|
bottomLinksMarginLeft
|
|
57
60
|
} = _ref6;
|
|
58
61
|
return bottomLinksMarginLeft;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})(["margin-bottom:", ";"], _ref7 => {
|
|
62
|
+
}};
|
|
63
|
+
`;
|
|
64
|
+
const TopTextContainer = styled.div`
|
|
65
|
+
margin-bottom: ${_ref7 => {
|
|
64
66
|
let {
|
|
65
67
|
topTextMarginBottom
|
|
66
68
|
} = _ref7;
|
|
67
69
|
return topTextMarginBottom;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}};
|
|
71
|
+
`;
|
|
72
|
+
const PriceTextContainer = styled.div`
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: ${_ref8 => {
|
|
73
75
|
let {
|
|
74
76
|
ratePosition
|
|
75
77
|
} = _ref8;
|
|
76
78
|
return ratePosition === 'bottom' ? 'column' : 'row';
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const RateTextContainer =
|
|
83
|
-
|
|
84
|
-
componentId: "components-web__sc-1x6duay-8"
|
|
85
|
-
})(["align-self:", ";"], _ref9 => {
|
|
79
|
+
}};
|
|
80
|
+
`;
|
|
81
|
+
const RateContainer = styled.div`
|
|
82
|
+
display: flex;
|
|
83
|
+
`;
|
|
84
|
+
const RateTextContainer = styled.div`
|
|
85
|
+
align-self: ${_ref9 => {
|
|
86
86
|
let {
|
|
87
87
|
ratePosition
|
|
88
88
|
} = _ref9;
|
|
89
89
|
return ratePosition === 'bottom' ? 'flex-start' : 'flex-end';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
}};
|
|
91
|
+
`;
|
|
92
|
+
const StrikeThroughContainer = styled.div`
|
|
93
|
+
display: flex;
|
|
94
|
+
position: relative;
|
|
95
|
+
align-items: center;
|
|
96
|
+
::before {
|
|
97
|
+
content: '';
|
|
98
|
+
width: 100%;
|
|
99
|
+
top: ${_ref10 => {
|
|
95
100
|
let {
|
|
96
101
|
strikeThroughPosition
|
|
97
102
|
} = _ref10;
|
|
98
103
|
return `${strikeThroughPosition}px`;
|
|
99
|
-
}
|
|
104
|
+
}};
|
|
105
|
+
height: ${_ref11 => {
|
|
100
106
|
let {
|
|
101
107
|
strikeThroughHeight
|
|
102
108
|
} = _ref11;
|
|
103
109
|
return `${strikeThroughHeight}px`;
|
|
104
|
-
}
|
|
110
|
+
}};
|
|
111
|
+
background: ${_ref12 => {
|
|
105
112
|
let {
|
|
106
113
|
strikeThroughColor
|
|
107
114
|
} = _ref12;
|
|
108
115
|
return strikeThroughColor;
|
|
109
|
-
}
|
|
116
|
+
}};
|
|
117
|
+
position: absolute;
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
110
120
|
const selectFootnoteLinkStyles = _ref13 => {
|
|
111
121
|
let {
|
|
112
122
|
footnoteLinkColor,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { getTokensPropType, Progress, selectSystemProps, useThemeTokens, a11yProps, viewProps, variantProp, applyShadowToken } from '@telus-uds/components-base';
|
|
4
|
-
import
|
|
4
|
+
import { styledComponents } from '../utils';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const {
|
|
7
|
+
styled
|
|
8
|
+
} = styledComponents;
|
|
5
9
|
|
|
6
10
|
// Passes React Native-oriented system props through UDS Progress
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
11
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, viewProps]);
|
|
9
12
|
const {
|
|
10
13
|
Bar: ProgressBarBase
|
|
11
14
|
} = Progress;
|
|
12
|
-
const Gradient =
|
|
15
|
+
const Gradient = styled.div.attrs({
|
|
13
16
|
'data-testid': 'ProgressBar-Gradient'
|
|
14
|
-
}).withConfig({
|
|
15
|
-
displayName: "ProgressBar__Gradient",
|
|
16
|
-
componentId: "components-web__sc-1vmzyq5-0"
|
|
17
17
|
})(_ref => {
|
|
18
18
|
let {
|
|
19
19
|
gradient: {
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { styledComponents } from '../utils';
|
|
2
|
+
const {
|
|
3
|
+
styled
|
|
4
|
+
} = styledComponents;
|
|
5
|
+
export const InputField = styled.div`
|
|
6
|
+
order: 1;
|
|
7
|
+
text-align: center;
|
|
8
|
+
z-index: 10;
|
|
9
|
+
input {
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
export const InputWrapper = styled.div`
|
|
14
|
+
text-align: start;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
flex-wrap: nowrap;
|
|
18
|
+
`;
|