@telus-uds/components-web 3.1.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 (122) hide show
  1. package/CHANGELOG.md +28 -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 +73 -20
  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/QuantitySelector.js +1 -1
  29. package/lib/QuantitySelector/styles.js +18 -9
  30. package/lib/ResponsiveImage/ResponsiveImage.js +7 -1
  31. package/lib/Ribbon/Ribbon.js +57 -31
  32. package/lib/Span/Span.js +6 -7
  33. package/lib/Spinner/Spinner.js +8 -18
  34. package/lib/Spinner/SpinnerContent.js +5 -6
  35. package/lib/StoryCard/StoryCard.js +7 -10
  36. package/lib/Table/Cell.js +43 -12
  37. package/lib/Table/Table.js +15 -11
  38. package/lib/TermsAndConditions/ExpandCollapse.js +7 -13
  39. package/lib/TermsAndConditions/TermsAndConditions.js +9 -22
  40. package/lib/Testimonial/Testimonial.js +10 -26
  41. package/lib/Toast/Toast.js +64 -13
  42. package/lib/Video/ControlBar/ControlBar.js +8 -18
  43. package/lib/Video/ControlBar/Controls/VideoButton/VideoButton.js +5 -6
  44. package/lib/Video/ControlBar/Controls/VideoMenu/VideoMenu.js +7 -14
  45. package/lib/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.js +7 -14
  46. package/lib/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.js +6 -10
  47. package/lib/Video/MiddleControlButton/MiddleControlButton.js +5 -6
  48. package/lib/Video/Video.js +10 -26
  49. package/lib/VideoPicker/VideoPicker.js +44 -20
  50. package/lib/VideoPicker/VideoPickerThumbnail.js +52 -18
  51. package/lib/WaffleGrid/WaffleGrid.js +7 -14
  52. package/lib/WebVideo/WebVideo.js +9 -14
  53. package/lib/index.js +1 -1
  54. package/lib/shared/FullBleedContent/FullBleedContent.js +5 -5
  55. package/lib/shared/VideoSplash/SplashButton/SplashButton.js +6 -9
  56. package/lib/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.js +8 -17
  57. package/lib/shared/VideoSplash/VideoSplash.js +5 -6
  58. package/lib/utils/index.js +3 -1
  59. package/lib/utils/scrollToAnchor.js +19 -0
  60. package/lib/utils/ssr.js +4 -1
  61. package/lib/utils/theming/styled-components.js +26 -0
  62. package/package.json +3 -3
  63. package/src/Badge/Badge.jsx +3 -2
  64. package/src/BlockQuote/BlockQuote.jsx +3 -2
  65. package/src/Breadcrumbs/Breadcrumbs.jsx +23 -13
  66. package/src/Breadcrumbs/Item/Item.jsx +3 -2
  67. package/src/Callout/Callout.jsx +3 -2
  68. package/src/Card/Card.jsx +3 -1
  69. package/src/Card/CardContent.jsx +3 -2
  70. package/src/Card/CardFooter.jsx +3 -2
  71. package/src/Countdown/Countdown.jsx +3 -2
  72. package/src/Countdown/Segment.jsx +3 -1
  73. package/src/DatePicker/CalendarContainer.jsx +3 -1
  74. package/src/DatePicker/DatePicker.jsx +3 -2
  75. package/src/DatePicker/reactDatesCss.js +3 -1
  76. package/src/Disclaimer/Disclaimer.jsx +3 -2
  77. package/src/Footnote/Footnote.jsx +9 -2
  78. package/src/Footnote/FootnoteLink.jsx +3 -2
  79. package/src/NavigationBar/NavigationBar.jsx +55 -13
  80. package/src/NavigationBar/NavigationItem.jsx +3 -2
  81. package/src/OrderedList/Item.jsx +4 -3
  82. package/src/OrderedList/ItemBase.jsx +3 -1
  83. package/src/OrderedList/OrderedList.jsx +3 -2
  84. package/src/OrderedList/OrderedListBase.jsx +3 -1
  85. package/src/Paragraph/Paragraph.jsx +3 -2
  86. package/src/PreviewCard/PreviewCard.jsx +3 -1
  87. package/src/PriceLockup/PriceLockup.jsx +3 -2
  88. package/src/Progress/ProgressBar.jsx +3 -1
  89. package/src/QuantitySelector/QuantitySelector.jsx +1 -1
  90. package/src/QuantitySelector/styles.js +3 -1
  91. package/src/ResponsiveImage/ResponsiveImage.jsx +10 -3
  92. package/src/Ribbon/Ribbon.jsx +3 -2
  93. package/src/Span/Span.jsx +3 -2
  94. package/src/Spinner/Spinner.jsx +3 -2
  95. package/src/Spinner/SpinnerContent.jsx +3 -2
  96. package/src/StoryCard/StoryCard.jsx +3 -1
  97. package/src/Table/Cell.jsx +3 -1
  98. package/src/Table/Table.jsx +3 -2
  99. package/src/TermsAndConditions/ExpandCollapse.jsx +3 -1
  100. package/src/TermsAndConditions/TermsAndConditions.jsx +3 -2
  101. package/src/Testimonial/Testimonial.jsx +3 -2
  102. package/src/Toast/Toast.jsx +3 -2
  103. package/src/Video/ControlBar/ControlBar.jsx +3 -3
  104. package/src/Video/ControlBar/Controls/VideoButton/VideoButton.jsx +4 -3
  105. package/src/Video/ControlBar/Controls/VideoMenu/VideoMenu.jsx +3 -3
  106. package/src/Video/ControlBar/Controls/VideoProgressBar/VideoProgressBar.jsx +3 -3
  107. package/src/Video/ControlBar/Controls/VolumeSlider/VolumeSlider.jsx +3 -3
  108. package/src/Video/MiddleControlButton/MiddleControlButton.jsx +4 -3
  109. package/src/Video/Video.jsx +3 -2
  110. package/src/VideoPicker/VideoPicker.jsx +3 -2
  111. package/src/VideoPicker/VideoPickerThumbnail.jsx +3 -1
  112. package/src/WaffleGrid/WaffleGrid.jsx +3 -2
  113. package/src/WebVideo/WebVideo.jsx +4 -3
  114. package/src/index.js +1 -1
  115. package/src/shared/FullBleedContent/FullBleedContent.jsx +3 -2
  116. package/src/shared/VideoSplash/SplashButton/SplashButton.jsx +3 -1
  117. package/src/shared/VideoSplash/SplashButtonWithDetails/SplashButtonWithDetails.jsx +4 -2
  118. package/src/shared/VideoSplash/VideoSplash.jsx +3 -2
  119. package/src/utils/index.js +5 -1
  120. package/src/utils/scrollToAnchor.js +18 -0
  121. package/src/utils/ssr.js +2 -1
  122. package/src/utils/theming/styled-components.js +23 -0
@@ -1,25 +1,29 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
4
3
  import { selectSystemProps, useSafeLayoutEffect, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
5
4
  import throttle from 'lodash.throttle';
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 StyledContainer = /*#__PURE__*/styled.div.withConfig({
10
- displayName: "Table__StyledContainer",
11
- componentId: "components-web__sc-10d9q3m-0"
12
- })(["overflow:auto;padding-bottom:", ";"], props => props.isScrollable ? `${props.tablePaddingBottom}px` : 0);
13
- const StyledTable = /*#__PURE__*/styled.table.withConfig({
14
- displayName: "Table__StyledTable",
15
- componentId: "components-web__sc-10d9q3m-1"
16
- })(["margin:0;padding:0;width:", ";border:", ";"], _ref => {
11
+ const StyledContainer = styled.div`
12
+ overflow: auto;
13
+ padding-bottom: ${props => props.isScrollable ? `${props.tablePaddingBottom}px` : 0};
14
+ `;
15
+ const StyledTable = styled.table`
16
+ margin: 0;
17
+ padding: 0;
18
+ width: ${_ref => {
17
19
  let {
18
20
  fullWidth,
19
21
  tableWidth
20
22
  } = _ref;
21
23
  return fullWidth ? '100%' : `${tableWidth}px`;
22
- }, props => `${props.borderWidth}px solid ${props.borderColor}`);
24
+ }};
25
+ border: ${props => `${props.borderWidth}px solid ${props.borderColor}`};
26
+ `;
23
27
  const TableContext = /*#__PURE__*/React.createContext({});
24
28
  export const useTableContext = () => React.useContext(TableContext);
25
29
 
@@ -1,22 +1,19 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ExpandCollapse as ExpandCollapseBase, IconButton, useThemeTokensCallback } from '@telus-uds/components-base';
4
- import styled from 'styled-components';
4
+ import { styledComponents } from '../utils';
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- const ExpandCollapseControl = /*#__PURE__*/styled.div.withConfig({
7
- displayName: "ExpandCollapse__ExpandCollapseControl",
8
- componentId: "components-web__sc-1l2mmq7-0"
9
- })({
6
+ const {
7
+ styled
8
+ } = styledComponents;
9
+ const ExpandCollapseControl = styled.div({
10
10
  alignItems: 'center',
11
11
  cursor: 'pointer',
12
12
  display: 'flex',
13
13
  flex: 1,
14
14
  justifyContent: 'flex-start'
15
15
  });
16
- const ExpandCollapseIconContainer = /*#__PURE__*/styled.div.withConfig({
17
- displayName: "ExpandCollapse__ExpandCollapseIconContainer",
18
- componentId: "components-web__sc-1l2mmq7-1"
19
- })(_ref => {
16
+ const ExpandCollapseIconContainer = styled.div(_ref => {
20
17
  let {
21
18
  tokens
22
19
  } = _ref;
@@ -28,10 +25,7 @@ const ExpandCollapseIconContainer = /*#__PURE__*/styled.div.withConfig({
28
25
  width: tokens.expandIconContainerWidth
29
26
  };
30
27
  });
31
- const ExpandCollapseTitle = /*#__PURE__*/styled.h4.withConfig({
32
- displayName: "ExpandCollapse__ExpandCollapseTitle",
33
- componentId: "components-web__sc-1l2mmq7-2"
34
- })(_ref2 => {
28
+ const ExpandCollapseTitle = styled.h4(_ref2 => {
35
29
  let {
36
30
  tokens
37
31
  } = _ref2;
@@ -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 { Box, Divider, selectSystemProps, Typography, useCopy, useThemeTokens, useViewport, getTokensPropType, useTheme, useResponsiveThemeTokens, createMediaQueryStyles, StyleSheet } from '@telus-uds/components-base';
5
4
  import ExpandCollapse from './ExpandCollapse';
6
5
  import OrderedListBase from '../OrderedList/OrderedListBase';
7
- import { htmlAttrs, media, renderStructuredContent } from '../utils';
6
+ import { htmlAttrs, media, renderStructuredContent, styledComponents } from '../utils';
8
7
  import defaultDictionary from './dictionary';
9
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const {
10
+ styled
11
+ } = styledComponents;
10
12
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
11
- const ContentContainer = /*#__PURE__*/styled.div.withConfig({
12
- displayName: "TermsAndConditions__ContentContainer",
13
- componentId: "components-web__sc-1199epn-0"
14
- })(_ref => {
13
+ const ContentContainer = styled.div(_ref => {
15
14
  let {
16
15
  tokens
17
16
  } = _ref;
@@ -24,10 +23,7 @@ const ContentContainer = /*#__PURE__*/styled.div.withConfig({
24
23
  })
25
24
  };
26
25
  });
27
- const Ordered = /*#__PURE__*/styled(OrderedListBase).withConfig({
28
- displayName: "TermsAndConditions__Ordered",
29
- componentId: "components-web__sc-1199epn-1"
30
- })(_ref2 => {
26
+ const Ordered = styled(OrderedListBase)(_ref2 => {
31
27
  let {
32
28
  tokens
33
29
  } = _ref2;
@@ -36,10 +32,7 @@ const Ordered = /*#__PURE__*/styled(OrderedListBase).withConfig({
36
32
  padding: tokens.orderedPadding
37
33
  };
38
34
  });
39
- const Unordered = /*#__PURE__*/styled.ul.withConfig({
40
- displayName: "TermsAndConditions__Unordered",
41
- componentId: "components-web__sc-1199epn-2"
42
- })(_ref3 => {
35
+ const Unordered = styled.ul(_ref3 => {
43
36
  let {
44
37
  tokens
45
38
  } = _ref3;
@@ -50,10 +43,7 @@ const Unordered = /*#__PURE__*/styled.ul.withConfig({
50
43
  paddingTop: tokens.unorderedPadding
51
44
  };
52
45
  });
53
- const ListItem = /*#__PURE__*/styled(OrderedListBase.Item).withConfig({
54
- displayName: "TermsAndConditions__ListItem",
55
- componentId: "components-web__sc-1199epn-3"
56
- })(_ref4 => {
46
+ const ListItem = styled(OrderedListBase.Item)(_ref4 => {
57
47
  let {
58
48
  tokens
59
49
  } = _ref4;
@@ -74,10 +64,7 @@ const ListItem = /*#__PURE__*/styled(OrderedListBase.Item).withConfig({
74
64
  wordBreak: 'break-word'
75
65
  };
76
66
  });
77
- const NonIndexedContentTitle = /*#__PURE__*/styled.div.withConfig({
78
- displayName: "TermsAndConditions__NonIndexedContentTitle",
79
- componentId: "components-web__sc-1199epn-4"
80
- })(_ref5 => {
67
+ const NonIndexedContentTitle = styled.div(_ref5 => {
81
68
  let {
82
69
  tokens
83
70
  } = _ref5;
@@ -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 { Icon, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
5
4
  import Image from '../Image';
6
- import { htmlAttrs } from '../utils';
5
+ import { htmlAttrs, styledComponents } from '../utils';
7
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const {
8
+ styled
9
+ } = styledComponents;
8
10
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
9
- const TestimonialContainer = /*#__PURE__*/styled.figure.withConfig({
10
- displayName: "Testimonial__TestimonialContainer",
11
- componentId: "components-web__sc-1az53gr-0"
12
- })(_ref => {
11
+ const TestimonialContainer = styled.figure(_ref => {
13
12
  let {
14
13
  testimonialContainerGap
15
14
  } = _ref;
@@ -20,10 +19,7 @@ const TestimonialContainer = /*#__PURE__*/styled.figure.withConfig({
20
19
  margin: 0
21
20
  };
22
21
  });
23
- const QuoteContainer = /*#__PURE__*/styled.div.withConfig({
24
- displayName: "Testimonial__QuoteContainer",
25
- componentId: "components-web__sc-1az53gr-1"
26
- })(_ref2 => {
22
+ const QuoteContainer = styled.div(_ref2 => {
27
23
  let {
28
24
  quoteContainerGap
29
25
  } = _ref2;
@@ -33,10 +29,7 @@ const QuoteContainer = /*#__PURE__*/styled.div.withConfig({
33
29
  gap: quoteContainerGap
34
30
  };
35
31
  });
36
- const Divider = /*#__PURE__*/styled.div.withConfig({
37
- displayName: "Testimonial__Divider",
38
- componentId: "components-web__sc-1az53gr-2"
39
- })(_ref3 => {
32
+ const Divider = styled.div(_ref3 => {
40
33
  let {
41
34
  dividerBorder,
42
35
  dividerBackgroundColor
@@ -47,23 +40,14 @@ const Divider = /*#__PURE__*/styled.div.withConfig({
47
40
  width: '100%'
48
41
  };
49
42
  });
50
- const BlockQuote = /*#__PURE__*/styled.blockquote.withConfig({
51
- displayName: "Testimonial__BlockQuote",
52
- componentId: "components-web__sc-1az53gr-3"
53
- })({
43
+ const BlockQuote = styled.blockquote({
54
44
  margin: 0
55
45
  });
56
- const AuthorInfoContainer = /*#__PURE__*/styled.div.withConfig({
57
- displayName: "Testimonial__AuthorInfoContainer",
58
- componentId: "components-web__sc-1az53gr-4"
59
- })({
46
+ const AuthorInfoContainer = styled.div({
60
47
  display: 'flex',
61
48
  flexDirection: 'column'
62
49
  });
63
- const Figcaption = /*#__PURE__*/styled.figcaption.withConfig({
64
- displayName: "Testimonial__Figcaption",
65
- componentId: "components-web__sc-1az53gr-5"
66
- })(_ref4 => {
50
+ const Figcaption = styled.figcaption(_ref4 => {
67
51
  let {
68
52
  figcaptionGap
69
53
  } = _ref4;
@@ -2,40 +2,91 @@ var _withLinkRouter$propT, _withLinkRouter$propT2;
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { ChevronLink, selectSystemProps, useThemeTokens, Typography, withLinkRouter, Spacer, useViewport, getTokensPropType } from '@telus-uds/components-base';
5
- import styled, { keyframes, css } from 'styled-components';
6
- import { htmlAttrs } from '../utils';
5
+ import { htmlAttrs, styledComponents } from '../utils';
7
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const {
8
+ styled,
9
+ css,
10
+ keyframes
11
+ } = styledComponents;
8
12
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
9
- const transform = property => (from, to) => keyframes(["from{", ":", ";}to{", ":", ";}"], property, from, property, to);
13
+ const transform = property => (from, to) => keyframes`
14
+ from {
15
+ ${property}: ${from};
16
+ }
17
+ to {
18
+ ${property}: ${to};
19
+ }
20
+ `;
10
21
  const slideDown = property => function (from, to) {
11
22
  let end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : to;
12
- return keyframes(["0%{", ":", ";}99%{", ":", ";}100%{", ":", ";}"], property, from, property, to, property, end);
23
+ return keyframes`
24
+ 0% {
25
+ ${property}: ${from};
26
+ }
27
+ 99% {
28
+ ${property}: ${to};
29
+ }
30
+ 100% {
31
+ ${property}: ${end};
32
+ }
33
+ `;
13
34
  };
14
- const animation = props => css(["", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 2s forwards,", " 1s ease-in-out 3.2s forwards;& *{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}& > a svg{animation:", " 1s ease-in-out 3s forwards;}& > a div{animation:", " 1s ease-in-out 3s forwards;}"], slideDown('height')(`${props.animationHeightBefore}px`, `${props.animationHeightAfter}px`, 'auto'), transform('padding-bottom')(`${props.animationPaddingBottomBefore}px`, `${props.animationPaddingBottomAfter}px`), transform('padding-top')(`${props.animationPaddingTopBefore}px`, `${props.animationPaddingTopAfter}px`), transform('background')(props.animationBackgroundColorBefore, props.animationBackgroundColorAfter), transform('color')(props.animationColorBefore, props.animationColorAfter), transform('color')(props.animationDivColorBefore, props.animationDivColorAfter), transform('fill')(props.animationFillColorBefore, props.animationFillColorAfter), transform('color')(props.animationFillColorBefore, props.animationFillColorAfter));
15
- const ToastContainer = /*#__PURE__*/styled.div.withConfig({
16
- displayName: "Toast__ToastContainer",
17
- componentId: "components-web__sc-p78jdh-0"
18
- })(["display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding-left:", "px;padding-right:", "px;background:", ";gap:", ";height:0;overflow:hidden;animation:", ";"], _ref => {
35
+ const animation = props => css`
36
+ ${slideDown('height')(`${props.animationHeightBefore}px`, `${props.animationHeightAfter}px`, 'auto')} 1s ease-in-out 2s forwards,
37
+ ${transform('padding-bottom')(`${props.animationPaddingBottomBefore}px`, `${props.animationPaddingBottomAfter}px`)} 1s ease-in-out 2s forwards,
38
+ ${transform('padding-top')(`${props.animationPaddingTopBefore}px`, `${props.animationPaddingTopAfter}px`)} 1s ease-in-out 2s forwards,
39
+ ${transform('background')(props.animationBackgroundColorBefore, props.animationBackgroundColorAfter)} 1s ease-in-out 3.2s forwards;
40
+ & * {
41
+ animation: ${transform('color')(props.animationColorBefore, props.animationColorAfter)} 1s
42
+ ease-in-out 3s forwards;
43
+ }
44
+ & > a div {
45
+ animation: ${transform('color')(props.animationDivColorBefore, props.animationDivColorAfter)} 1s
46
+ ease-in-out 3s forwards;
47
+ }
48
+ & > a svg {
49
+ animation: ${transform('fill')(props.animationFillColorBefore, props.animationFillColorAfter)}
50
+ 1s ease-in-out 3s forwards;
51
+ }
52
+ & > a div {
53
+ animation: ${transform('color')(props.animationFillColorBefore, props.animationFillColorAfter)}
54
+ 1s ease-in-out 3s forwards;
55
+ }
56
+ `;
57
+ const ToastContainer = styled.div`
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: center;
61
+ flex-wrap: wrap;
62
+ padding-left: ${_ref => {
19
63
  let {
20
64
  padding
21
65
  } = _ref;
22
66
  return padding;
23
- }, _ref2 => {
67
+ }}px;
68
+ padding-right: ${_ref2 => {
24
69
  let {
25
70
  padding
26
71
  } = _ref2;
27
72
  return padding;
28
- }, _ref3 => {
73
+ }}px;
74
+ background: ${_ref3 => {
29
75
  let {
30
76
  containerBackgroundColor
31
77
  } = _ref3;
32
78
  return containerBackgroundColor;
33
- }, _ref4 => {
79
+ }};
80
+ gap: ${_ref4 => {
34
81
  let {
35
82
  containerGap
36
83
  } = _ref4;
37
84
  return containerGap;
38
- }, animation);
85
+ }};
86
+ height: 0;
87
+ overflow: hidden;
88
+ animation: ${animation};
89
+ `;
39
90
  const Toast = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
40
91
  let {
41
92
  toast,
@@ -1,22 +1,21 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
4
3
  import { StackView, useThemeTokens, selectSystemProps, Icon, useViewport } from '@telus-uds/components-base';
5
4
  import VideoProgressBar from './Controls/VideoProgressBar/VideoProgressBar';
6
5
  import VolumeSlider from './Controls/VolumeSlider/VolumeSlider';
7
6
  import VideoButton from './Controls/VideoButton/VideoButton';
8
7
  import VideoMenu from './Controls/VideoMenu/VideoMenu';
9
8
  import videoText from '../videoText';
10
- import { htmlAttrs } from '../../utils';
9
+ import { htmlAttrs, styledComponents } from '../../utils';
11
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const {
12
+ styled
13
+ } = styledComponents;
12
14
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
13
15
  const getIcon = icon => /*#__PURE__*/_jsx(Icon, {
14
16
  icon: icon
15
17
  });
16
- const ControlBarContainer = /*#__PURE__*/styled.div.withConfig({
17
- displayName: "ControlBar__ControlBarContainer",
18
- componentId: "components-web__sc-13y61ky-0"
19
- })(_ref => {
18
+ const ControlBarContainer = styled.div(_ref => {
20
19
  let {
21
20
  isHidden,
22
21
  isMobile
@@ -29,10 +28,7 @@ const ControlBarContainer = /*#__PURE__*/styled.div.withConfig({
29
28
  display: isMobile ? 'none' : undefined
30
29
  };
31
30
  });
32
- const StyledControlBar = /*#__PURE__*/styled.div.withConfig({
33
- displayName: "ControlBar__StyledControlBar",
34
- componentId: "components-web__sc-13y61ky-1"
35
- })(_ref2 => {
31
+ const StyledControlBar = styled.div(_ref2 => {
36
32
  let {
37
33
  padding,
38
34
  height
@@ -52,17 +48,11 @@ const StyledControlBar = /*#__PURE__*/styled.div.withConfig({
52
48
  zIndex: 9
53
49
  };
54
50
  });
55
- const VideoProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
56
- displayName: "ControlBar__VideoProgressBarContainer",
57
- componentId: "components-web__sc-13y61ky-2"
58
- })({
51
+ const VideoProgressBarContainer = styled.div({
59
52
  display: 'flex',
60
53
  flexGrow: 1
61
54
  });
62
- const MenuContainer = /*#__PURE__*/styled.div.withConfig({
63
- displayName: "ControlBar__MenuContainer",
64
- componentId: "components-web__sc-13y61ky-3"
65
- })(_ref3 => {
55
+ const MenuContainer = styled.div(_ref3 => {
66
56
  let {
67
57
  isOpen,
68
58
  menuBottom,
@@ -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 { useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
5
- import { htmlAttrs } from '../../../../utils';
4
+ import { htmlAttrs, styledComponents } from '../../../../utils';
6
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ const {
7
+ styled
8
+ } = styledComponents;
7
9
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
8
- const StyledButton = /*#__PURE__*/styled.button.withConfig({
9
- displayName: "VideoButton__StyledButton",
10
- componentId: "components-web__sc-kfw0tr-0"
11
- })(_ref => {
10
+ const StyledButton = styled.button(_ref => {
12
11
  let {
13
12
  color
14
13
  } = _ref;
@@ -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 { StackView, Typography, useThemeTokens, selectSystemProps, Icon } from '@telus-uds/components-base';
5
4
  import videoText from '../../../videoText';
6
- import { htmlAttrs } from '../../../../utils';
5
+ import { htmlAttrs, styledComponents } from '../../../../utils';
7
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const {
8
+ styled
9
+ } = styledComponents;
8
10
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
9
- const MenuContainer = /*#__PURE__*/styled.div.withConfig({
10
- displayName: "VideoMenu__MenuContainer",
11
- componentId: "components-web__sc-nllbhw-0"
12
- })(_ref => {
11
+ const MenuContainer = styled.div(_ref => {
13
12
  let {
14
13
  padding,
15
14
  background
@@ -21,10 +20,7 @@ const MenuContainer = /*#__PURE__*/styled.div.withConfig({
21
20
  borderRadius: 5
22
21
  };
23
22
  });
24
- const MenuButton = /*#__PURE__*/styled.button.withConfig({
25
- displayName: "VideoMenu__MenuButton",
26
- componentId: "components-web__sc-nllbhw-1"
27
- })({
23
+ const MenuButton = styled.button({
28
24
  background: 'none',
29
25
  border: 'none',
30
26
  padding: 0,
@@ -34,10 +30,7 @@ const MenuButton = /*#__PURE__*/styled.button.withConfig({
34
30
  justifyContent: 'space-between',
35
31
  verticalAlign: 'middle'
36
32
  });
37
- const CheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
38
- displayName: "VideoMenu__CheckmarkContainer",
39
- componentId: "components-web__sc-nllbhw-2"
40
- })(_ref2 => {
33
+ const CheckmarkContainer = styled.div(_ref2 => {
41
34
  let {
42
35
  isSelectedItem,
43
36
  checkMarkWidth,
@@ -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 { Typography, useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
5
4
  import videoText from '../../../videoText';
6
- import { htmlAttrs } from '../../../../utils';
5
+ import { htmlAttrs, styledComponents } from '../../../../utils';
7
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const {
8
+ styled
9
+ } = styledComponents;
8
10
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
9
- const ProgressBarContainer = /*#__PURE__*/styled.div.withConfig({
10
- displayName: "VideoProgressBar__ProgressBarContainer",
11
- componentId: "components-web__sc-d9tm07-0"
12
- })({
11
+ const ProgressBarContainer = styled.div({
13
12
  display: 'flex',
14
13
  width: '100%',
15
14
  alignItems: 'center'
@@ -44,16 +43,13 @@ const sharedStyles = _ref => {
44
43
  })
45
44
  };
46
45
  };
47
- const StyledProgressBar = /*#__PURE__*/styled.input.attrs(_ref2 => {
46
+ const StyledProgressBar = styled.input.attrs(_ref2 => {
48
47
  let {
49
48
  videoCurrentTime
50
49
  } = _ref2;
51
50
  return {
52
51
  value: videoCurrentTime
53
52
  };
54
- }).withConfig({
55
- displayName: "VideoProgressBar__StyledProgressBar",
56
- componentId: "components-web__sc-d9tm07-1"
57
53
  })(_ref3 => {
58
54
  let {
59
55
  videoBufferDisplay,
@@ -97,10 +93,7 @@ const StyledProgressBar = /*#__PURE__*/styled.input.attrs(_ref2 => {
97
93
  }
98
94
  };
99
95
  });
100
- const StyledTimestamp = /*#__PURE__*/styled.span.withConfig({
101
- displayName: "VideoProgressBar__StyledTimestamp",
102
- componentId: "components-web__sc-d9tm07-2"
103
- })(_ref4 => {
96
+ const StyledTimestamp = styled.span(_ref4 => {
104
97
  let {
105
98
  margin
106
99
  } = _ref4;
@@ -1,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
4
3
  import { Icon, useThemeTokens, selectSystemProps } from '@telus-uds/components-base';
5
4
  import VideoButton from '../VideoButton/VideoButton';
6
5
  import videoText from '../../../videoText';
7
- import { htmlAttrs } from '../../../../utils';
6
+ import { htmlAttrs, styledComponents } from '../../../../utils';
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
- const VolumeSliderContainer = /*#__PURE__*/styled.div.withConfig({
11
- displayName: "VolumeSlider__VolumeSliderContainer",
12
- componentId: "components-web__sc-apixz4-0"
13
- })(_ref => {
12
+ const VolumeSliderContainer = styled.div(_ref => {
14
13
  let {
15
14
  videoPlayerWidth,
16
15
  compactModeThreshold,
@@ -54,16 +53,13 @@ const sharedStyles = _ref2 => {
54
53
  })
55
54
  };
56
55
  };
57
- const StyledVolumeSlider = /*#__PURE__*/styled.input.attrs(_ref3 => {
56
+ const StyledVolumeSlider = styled.input.attrs(_ref3 => {
58
57
  let {
59
58
  videoCurrentVolume
60
59
  } = _ref3;
61
60
  return {
62
61
  value: videoCurrentVolume
63
62
  };
64
- }).withConfig({
65
- displayName: "VolumeSlider__StyledVolumeSlider",
66
- componentId: "components-web__sc-apixz4-1"
67
63
  })(_ref4 => {
68
64
  let {
69
65
  videoCurrentVolume,
@@ -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 { useThemeTokens, selectSystemProps } 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 StyledMiddleControlButton = /*#__PURE__*/styled.button.withConfig({
9
- displayName: "MiddleControlButton__StyledMiddleControlButton",
10
- componentId: "components-web__sc-1um2s37-0"
11
- })(_ref => {
10
+ const StyledMiddleControlButton = styled.button(_ref => {
12
11
  let {
13
12
  isHidden,
14
13
  width,
@@ -1,22 +1,21 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
4
3
  import fscreen from 'fscreen';
5
4
  import { useThemeTokens, selectSystemProps, getTokensPropType, variantProp } from '@telus-uds/components-base';
6
5
  import Spinner from '../Spinner';
7
- import { warn, htmlAttrs } from '../utils';
6
+ import { warn, htmlAttrs, styledComponents } from '../utils';
8
7
  import VideoSplash from '../shared/VideoSplash/VideoSplash';
9
8
  import MiddleControlButton from './MiddleControlButton/MiddleControlButton';
10
9
  import ControlBar from './ControlBar/ControlBar';
11
10
  import videoText from './videoText';
12
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ const {
13
+ styled
14
+ } = styledComponents;
13
15
  const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
14
16
 
15
17
  // TODO: replace with the actual spinner component from UDS
16
- const VideoPlayerContainer = /*#__PURE__*/styled.div.withConfig({
17
- displayName: "Video__VideoPlayerContainer",
18
- componentId: "components-web__sc-12ltnuw-0"
19
- })(_ref => {
18
+ const VideoPlayerContainer = styled.div(_ref => {
20
19
  let {
21
20
  videoBorder,
22
21
  borderColor
@@ -28,26 +27,17 @@ const VideoPlayerContainer = /*#__PURE__*/styled.div.withConfig({
28
27
  border: videoBorder ? `20px solid ${borderColor}` : undefined
29
28
  };
30
29
  });
31
- const VideoElementContainer = /*#__PURE__*/styled.div.withConfig({
32
- displayName: "Video__VideoElementContainer",
33
- componentId: "components-web__sc-12ltnuw-1"
34
- })({
30
+ const VideoElementContainer = styled.div({
35
31
  outline: 'none',
36
32
  width: '100%',
37
33
  height: '100%',
38
34
  fontSize: 0
39
35
  });
40
- const VideoPlayer = /*#__PURE__*/styled.video.withConfig({
41
- displayName: "Video__VideoPlayer",
42
- componentId: "components-web__sc-12ltnuw-2"
43
- })({
36
+ const VideoPlayer = styled.video({
44
37
  width: '100%',
45
38
  height: '100%'
46
39
  });
47
- const VideoOverlayContainer = /*#__PURE__*/styled.div.withConfig({
48
- displayName: "Video__VideoOverlayContainer",
49
- componentId: "components-web__sc-12ltnuw-3"
50
- })(_ref2 => {
40
+ const VideoOverlayContainer = styled.div(_ref2 => {
51
41
  let {
52
42
  mouseInactive
53
43
  } = _ref2;
@@ -58,19 +48,13 @@ const VideoOverlayContainer = /*#__PURE__*/styled.div.withConfig({
58
48
  cursor: mouseInactive ? 'none' : 'pointer'
59
49
  };
60
50
  });
61
- const VideoSplashContainer = /*#__PURE__*/styled.div.withConfig({
62
- displayName: "Video__VideoSplashContainer",
63
- componentId: "components-web__sc-12ltnuw-4"
64
- })({
51
+ const VideoSplashContainer = styled.div({
65
52
  position: 'absolute',
66
53
  width: '100%',
67
54
  height: '100%',
68
55
  zIndex: 5
69
56
  });
70
- const VideoOverlayElementContainer = /*#__PURE__*/styled.div.withConfig({
71
- displayName: "Video__VideoOverlayElementContainer",
72
- componentId: "components-web__sc-12ltnuw-5"
73
- })({
57
+ const VideoOverlayElementContainer = styled.div({
74
58
  position: 'absolute',
75
59
  zIndex: 4,
76
60
  display: 'flex',