@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.
Files changed (116) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/lib/Badge/Badge.js +19 -11
  3. package/lib/BlockQuote/BlockQuote.js +31 -17
  4. package/lib/Breadcrumbs/Breadcrumbs.js +23 -17
  5. package/lib/Breadcrumbs/Item/Item.js +6 -10
  6. package/lib/Callout/Callout.js +5 -6
  7. package/lib/Card/Card.js +5 -5
  8. package/lib/Card/CardContent.js +5 -6
  9. package/lib/Card/CardFooter.js +5 -6
  10. package/lib/Countdown/Countdown.js +5 -6
  11. package/lib/Countdown/Segment.js +6 -6
  12. package/lib/DatePicker/CalendarContainer.js +5 -5
  13. package/lib/DatePicker/DatePicker.js +12 -18
  14. package/lib/DatePicker/reactDatesCss.js +829 -2
  15. package/lib/Disclaimer/Disclaimer.js +5 -6
  16. package/lib/Footnote/Footnote.js +15 -39
  17. package/lib/Footnote/FootnoteLink.js +5 -6
  18. package/lib/NavigationBar/NavigationBar.js +5 -6
  19. package/lib/NavigationBar/NavigationItem.js +5 -6
  20. package/lib/OrderedList/Item.js +7 -11
  21. package/lib/OrderedList/ItemBase.js +5 -5
  22. package/lib/OrderedList/OrderedList.js +5 -6
  23. package/lib/OrderedList/OrderedListBase.js +5 -5
  24. package/lib/Paragraph/Paragraph.js +16 -8
  25. package/lib/PreviewCard/PreviewCard.js +7 -10
  26. package/lib/PriceLockup/PriceLockup.js +64 -54
  27. package/lib/Progress/ProgressBar.js +6 -6
  28. package/lib/QuantitySelector/styles.js +18 -9
  29. package/lib/Ribbon/Ribbon.js +57 -31
  30. package/lib/Span/Span.js +6 -7
  31. package/lib/Spinner/Spinner.js +8 -18
  32. package/lib/Spinner/SpinnerContent.js +5 -6
  33. package/lib/StoryCard/StoryCard.js +7 -10
  34. package/lib/Table/Cell.js +43 -12
  35. package/lib/Table/Table.js +15 -11
  36. package/lib/TermsAndConditions/ExpandCollapse.js +7 -13
  37. package/lib/TermsAndConditions/TermsAndConditions.js +9 -22
  38. package/lib/Testimonial/Testimonial.js +10 -26
  39. package/lib/Toast/Toast.js +64 -13
  40. package/lib/Video/ControlBar/ControlBar.js +8 -18
  41. package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
  42. package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +7 -14
  43. package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +7 -14
  44. package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +6 -10
  45. package/lib/Video/MiddleControlButton/MiddleControlButton.js +5 -6
  46. package/lib/Video/Video.js +10 -26
  47. package/lib/VideoPicker/VideoPicker.js +44 -20
  48. package/lib/VideoPicker/VideoPickerThumbnail.js +52 -18
  49. package/lib/WaffleGrid/WaffleGrid.js +7 -14
  50. package/lib/WebVideo/WebVideo.js +9 -14
  51. package/lib/index.js +1 -1
  52. package/lib/shared/FullBleedContent/FullBleedContent.js +5 -5
  53. package/lib/shared/VideoSplash/SplashButton/SplashButton.js +6 -9
  54. package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +8 -17
  55. package/lib/shared/VideoSplash/VideoSplash.js +5 -6
  56. package/lib/utils/index.js +2 -1
  57. package/lib/utils/ssr.js +4 -1
  58. package/lib/utils/theming/styled-components.js +26 -0
  59. package/package.json +3 -3
  60. package/src/Badge/Badge.jsx +3 -2
  61. package/src/BlockQuote/BlockQuote.jsx +3 -2
  62. package/src/Breadcrumbs/Breadcrumbs.jsx +23 -13
  63. package/src/Breadcrumbs/Item/Item.jsx +3 -2
  64. package/src/Callout/Callout.jsx +3 -2
  65. package/src/Card/Card.jsx +3 -1
  66. package/src/Card/CardContent.jsx +3 -2
  67. package/src/Card/CardFooter.jsx +3 -2
  68. package/src/Countdown/Countdown.jsx +3 -2
  69. package/src/Countdown/Segment.jsx +3 -1
  70. package/src/DatePicker/CalendarContainer.jsx +3 -1
  71. package/src/DatePicker/DatePicker.jsx +3 -2
  72. package/src/DatePicker/reactDatesCss.js +3 -1
  73. package/src/Disclaimer/Disclaimer.jsx +3 -2
  74. package/src/Footnote/Footnote.jsx +9 -2
  75. package/src/Footnote/FootnoteLink.jsx +3 -2
  76. package/src/NavigationBar/NavigationBar.jsx +3 -2
  77. package/src/NavigationBar/NavigationItem.jsx +3 -2
  78. package/src/OrderedList/Item.jsx +4 -3
  79. package/src/OrderedList/ItemBase.jsx +3 -1
  80. package/src/OrderedList/OrderedList.jsx +3 -2
  81. package/src/OrderedList/OrderedListBase.jsx +3 -1
  82. package/src/Paragraph/Paragraph.jsx +3 -2
  83. package/src/PreviewCard/PreviewCard.jsx +3 -1
  84. package/src/PriceLockup/PriceLockup.jsx +3 -2
  85. package/src/Progress/ProgressBar.jsx +3 -1
  86. package/src/QuantitySelector/styles.js +3 -1
  87. package/src/Ribbon/Ribbon.jsx +3 -2
  88. package/src/Span/Span.jsx +3 -2
  89. package/src/Spinner/Spinner.jsx +3 -2
  90. package/src/Spinner/SpinnerContent.jsx +3 -2
  91. package/src/StoryCard/StoryCard.jsx +3 -1
  92. package/src/Table/Cell.jsx +3 -1
  93. package/src/Table/Table.jsx +3 -2
  94. package/src/TermsAndConditions/ExpandCollapse.jsx +3 -1
  95. package/src/TermsAndConditions/TermsAndConditions.jsx +3 -2
  96. package/src/Testimonial/Testimonial.jsx +3 -2
  97. package/src/Toast/Toast.jsx +3 -2
  98. package/src/Video/ControlBar/ControlBar.jsx +3 -3
  99. package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -3
  100. package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +3 -3
  101. package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +3 -3
  102. package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +3 -3
  103. package/src/Video/MiddleControlButton/MiddleControlButton.jsx +4 -3
  104. package/src/Video/Video.jsx +3 -2
  105. package/src/VideoPicker/VideoPicker.jsx +3 -2
  106. package/src/VideoPicker/VideoPickerThumbnail.jsx +3 -1
  107. package/src/WaffleGrid/WaffleGrid.jsx +3 -2
  108. package/src/WebVideo/WebVideo.jsx +4 -3
  109. package/src/index.js +1 -1
  110. package/src/shared/FullBleedContent/FullBleedContent.jsx +3 -2
  111. package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +3 -1
  112. package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +4 -2
  113. package/src/shared/VideoSplash/VideoSplash.jsx +3 -2
  114. package/src/utils/index.js +3 -1
  115. package/src/utils/ssr.js +2 -1
  116. 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 = /*#__PURE__*/styled.p.withConfig({
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,
@@ -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 GlobalBodyScrollLock = /*#__PURE__*/createGlobalStyle({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled(OrderedListBase).withConfig({
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 = /*#__PURE__*/styled(OrderedListBase.Item).withConfig({
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 = /*#__PURE__*/styled.button.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.sup.withConfig({
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 styled from 'styled-components';
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 = /*#__PURE__*/styled.div.withConfig({
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 styled from 'styled-components';
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 = /*#__PURE__*/styled.div.withConfig({
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;
@@ -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 = /*#__PURE__*/styled(ItemBase).withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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: 5
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 styled from 'styled-components';
3
+ import { styledComponents } from '../utils';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- const StyledItem = /*#__PURE__*/styled.li.withConfig({
6
- displayName: "ItemBase__StyledItem",
7
- componentId: "components-web__sc-o0oiv5-0"
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 = /*#__PURE__*/styled(OrderedListBase).withConfig({
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 styled from 'styled-components';
3
+ import { styledComponents } from '../utils';
4
4
  import ItemBase from './ItemBase';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const StyledList = /*#__PURE__*/styled.ol.withConfig({
7
- displayName: "OrderedListBase__StyledList",
8
- componentId: "components-web__sc-4m9lgj-0"
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 = /*#__PURE__*/styled.p.withConfig({
9
- displayName: "Paragraph__StyledParagraph",
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
- }, _ref2 => {
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 styled from 'styled-components';
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
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 = /*#__PURE__*/styled.div.withConfig({
11
- displayName: "PriceLockup__PriceLockupContainer",
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
- const PriceContainer = /*#__PURE__*/styled.div.withConfig({
20
- displayName: "PriceLockup__PriceContainer",
21
- componentId: "components-web__sc-1x6duay-1"
22
- })(["display:flex;margin-bottom:", ";"], _ref2 => {
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
- const FootnoteContainer = /*#__PURE__*/styled.div.withConfig({
29
- displayName: "PriceLockup__FootnoteContainer",
30
- componentId: "components-web__sc-1x6duay-2"
31
- })(["display:flex;margin-top:", ";gap:", ";"], _ref3 => {
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
- }, _ref4 => {
39
+ }};
40
+ gap: ${_ref4 => {
37
41
  let {
38
42
  footnoteGap
39
43
  } = _ref4;
40
44
  return footnoteGap;
41
- });
42
- const BottomTextContainer = /*#__PURE__*/styled.div.withConfig({
43
- displayName: "PriceLockup__BottomTextContainer",
44
- componentId: "components-web__sc-1x6duay-3"
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
- const BottomLinksContainer = /*#__PURE__*/styled.div.withConfig({
52
- displayName: "PriceLockup__BottomLinksContainer",
53
- componentId: "components-web__sc-1x6duay-4"
54
- })(["align-self:center;margin-left:", ";"], _ref6 => {
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
- const TopTextContainer = /*#__PURE__*/styled.div.withConfig({
61
- displayName: "PriceLockup__TopTextContainer",
62
- componentId: "components-web__sc-1x6duay-5"
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
- const PriceTextContainer = /*#__PURE__*/styled.div.withConfig({
70
- displayName: "PriceLockup__PriceTextContainer",
71
- componentId: "components-web__sc-1x6duay-6"
72
- })(["display:flex;flex-direction:", ";"], _ref8 => {
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
- const RateContainer = /*#__PURE__*/styled.div.withConfig({
79
- displayName: "PriceLockup__RateContainer",
80
- componentId: "components-web__sc-1x6duay-7"
81
- })(["display:flex;"]);
82
- const RateTextContainer = /*#__PURE__*/styled.div.withConfig({
83
- displayName: "PriceLockup__RateTextContainer",
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
- const StrikeThroughContainer = /*#__PURE__*/styled.div.withConfig({
92
- displayName: "PriceLockup__StrikeThroughContainer",
93
- componentId: "components-web__sc-1x6duay-9"
94
- })(["display:flex;position:relative;align-items:center;::before{content:'';width:100%;top:", ";height:", ";background:", ";position:absolute;}"], _ref10 => {
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
- }, _ref11 => {
104
+ }};
105
+ height: ${_ref11 => {
100
106
  let {
101
107
  strikeThroughHeight
102
108
  } = _ref11;
103
109
  return `${strikeThroughHeight}px`;
104
- }, _ref12 => {
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 styled from 'styled-components';
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 = /*#__PURE__*/styled.div.attrs({
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 styled from 'styled-components';
2
- export const InputField = /*#__PURE__*/styled.div.withConfig({
3
- displayName: "styles__InputField",
4
- componentId: "components-web__sc-1lrz1xk-0"
5
- })(["order:1;text-align:center;z-index:10;input{text-align:center;}"]);
6
- export const InputWrapper = /*#__PURE__*/styled.div.withConfig({
7
- displayName: "styles__InputWrapper",
8
- componentId: "components-web__sc-1lrz1xk-1"
9
- })(["text-align:start;display:flex;flex-direction:row;flex-wrap:nowrap;"]);
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
+ `;