@telus-uds/components-web 2.19.5 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/lib/Breadcrumbs/Breadcrumbs.js +1 -0
- package/lib/Countdown/Countdown.js +1 -0
- package/lib/DatePicker/DatePicker.js +2 -0
- package/lib/Disclaimer/Disclaimer.js +1 -4
- package/lib/Footnote/Footnote.js +1 -0
- package/lib/IconButton/IconButton.js +3 -1
- package/lib/Image/Image.js +2 -1
- package/lib/NavigationBar/NavigationBar.js +3 -1
- package/lib/OrderedList/OrderedList.js +2 -0
- package/lib/PreviewCard/PreviewCard.js +1 -0
- package/lib/Ribbon/Ribbon.js +2 -2
- package/lib/Spinner/Spinner.js +1 -0
- package/lib/StoryCard/StoryCard.js +1 -0
- package/lib/Table/Table.js +1 -0
- package/lib/TermsAndConditions/TermsAndConditions.js +7 -1
- package/lib/Testimonial/Testimonial.js +1 -0
- package/lib/Toast/Toast.js +2 -2
- package/lib/VideoPicker/VideoPicker.js +1 -0
- package/lib/WaffleGrid/WaffleGrid.js +5 -0
- package/lib-module/Breadcrumbs/Breadcrumbs.js +2 -1
- package/lib-module/Countdown/Countdown.js +2 -1
- package/lib-module/DatePicker/DatePicker.js +3 -1
- package/lib-module/Disclaimer/Disclaimer.js +2 -5
- package/lib-module/Footnote/Footnote.js +2 -1
- package/lib-module/IconButton/IconButton.js +4 -2
- package/lib-module/Image/Image.js +3 -2
- package/lib-module/NavigationBar/NavigationBar.js +4 -2
- package/lib-module/OrderedList/OrderedList.js +3 -1
- package/lib-module/PreviewCard/PreviewCard.js +2 -1
- package/lib-module/Ribbon/Ribbon.js +2 -2
- package/lib-module/Spinner/Spinner.js +2 -1
- package/lib-module/StoryCard/StoryCard.js +2 -1
- package/lib-module/Table/Table.js +2 -1
- package/lib-module/TermsAndConditions/TermsAndConditions.js +8 -2
- package/lib-module/Testimonial/Testimonial.js +2 -1
- package/lib-module/Toast/Toast.js +2 -2
- package/lib-module/VideoPicker/VideoPicker.js +2 -1
- package/lib-module/WaffleGrid/WaffleGrid.js +6 -1
- package/package.json +3 -4
- package/src/Breadcrumbs/Breadcrumbs.jsx +3 -1
- package/src/Countdown/Countdown.jsx +3 -1
- package/src/DatePicker/DatePicker.jsx +4 -1
- package/src/Disclaimer/Disclaimer.jsx +7 -4
- package/src/Footnote/Footnote.jsx +3 -1
- package/src/IconButton/IconButton.jsx +7 -2
- package/src/Image/Image.jsx +5 -2
- package/src/NavigationBar/NavigationBar.jsx +5 -2
- package/src/OrderedList/OrderedList.jsx +3 -2
- package/src/PreviewCard/PreviewCard.jsx +3 -1
- package/src/Ribbon/Ribbon.jsx +2 -2
- package/src/Spinner/Spinner.jsx +7 -1
- package/src/StoryCard/StoryCard.jsx +3 -1
- package/src/Table/Table.jsx +7 -1
- package/src/TermsAndConditions/TermsAndConditions.jsx +8 -2
- package/src/Testimonial/Testimonial.jsx +3 -1
- package/src/Toast/Toast.jsx +2 -2
- package/src/VideoPicker/VideoPicker.jsx +3 -1
- package/src/WaffleGrid/WaffleGrid.jsx +7 -1
- package/component-docs.json +0 -14251
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-web
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
This log was last generated on Wed, 04 Oct 2023 18:37:04 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.20.0
|
|
8
|
+
|
|
9
|
+
Wed, 04 Oct 2023 18:37:04 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- update components web imports (evander.owusu@telus.com)
|
|
14
|
+
- Bump @telus-uds/components-base to v1.63.0
|
|
15
|
+
|
|
7
16
|
## 2.19.5
|
|
8
17
|
|
|
9
|
-
Wed, 27 Sep 2023 20:
|
|
18
|
+
Wed, 27 Sep 2023 20:47:22 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
|
@@ -180,6 +180,7 @@ const Countdown = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
180
180
|
});
|
|
181
181
|
Countdown.displayName = 'Countdown';
|
|
182
182
|
Countdown.propTypes = { ...selectedSystemPropTypes,
|
|
183
|
+
tokens: (0, _componentsBase.getTokensPropType)('Countdown'),
|
|
183
184
|
|
|
184
185
|
/**
|
|
185
186
|
* Copy language identifier (`'en'` or `'fr'`) or a dictionary instance (an object with
|
|
@@ -359,6 +359,7 @@ const DatePicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
359
359
|
});
|
|
360
360
|
DatePicker.displayName = 'DatePicker';
|
|
361
361
|
DatePicker.propTypes = { ...selectedSystemPropTypes,
|
|
362
|
+
tokens: (0, _componentsBase.getTokensPropType)('DatePicker'),
|
|
362
363
|
|
|
363
364
|
/**
|
|
364
365
|
* A unique identifier.
|
|
@@ -456,6 +457,7 @@ DatePicker.defaultProps = {
|
|
|
456
457
|
onDateChange: () => {},
|
|
457
458
|
validation: undefined,
|
|
458
459
|
disabled: false,
|
|
460
|
+
tokens: undefined,
|
|
459
461
|
prevTestID: '',
|
|
460
462
|
nextTestID: ''
|
|
461
463
|
};
|
|
@@ -62,10 +62,7 @@ const Disclaimer = _ref2 => {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
Disclaimer.propTypes = { ...selectedSystemPropTypes,
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Children nodes that can be added
|
|
68
|
-
*/
|
|
65
|
+
tokens: (0, _componentsBase.getTokensPropType)('Disclaimer'),
|
|
69
66
|
children: _propTypes.default.node.isRequired
|
|
70
67
|
};
|
|
71
68
|
var _default = Disclaimer;
|
package/lib/Footnote/Footnote.js
CHANGED
|
@@ -59,6 +59,7 @@ const propsWithoutIcon = _ref2 => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
IconButton.propTypes = { ...propsWithoutIcon(_componentsBase.IconButton.propTypes),
|
|
62
|
+
tokens: (0, _componentsBase.getTokensPropType)('IconButton'),
|
|
62
63
|
|
|
63
64
|
/**
|
|
64
65
|
* To set the icon to a multi-brand compatabile icon
|
|
@@ -72,7 +73,8 @@ IconButton.propTypes = { ...propsWithoutIcon(_componentsBase.IconButton.propType
|
|
|
72
73
|
icon: _propTypes.default.func
|
|
73
74
|
};
|
|
74
75
|
IconButton.defaultProps = {
|
|
75
|
-
icon: null
|
|
76
|
+
icon: null,
|
|
77
|
+
tokens: {}
|
|
76
78
|
};
|
|
77
79
|
var _default = IconButton;
|
|
78
80
|
exports.default = _default;
|
package/lib/Image/Image.js
CHANGED
|
@@ -120,7 +120,8 @@ Image.propTypes = { ...selectedSystemPropTypes,
|
|
|
120
120
|
/**
|
|
121
121
|
* Make image render as a circle or with rounded corners.
|
|
122
122
|
*/
|
|
123
|
-
rounded: _propTypes.default.oneOf(['circle', 'corners'])
|
|
123
|
+
rounded: _propTypes.default.oneOf(['circle', 'corners']),
|
|
124
|
+
tokens: (0, _componentsBase.getTokensPropType)('Image')
|
|
124
125
|
};
|
|
125
126
|
var _default = Image;
|
|
126
127
|
exports.default = _default;
|
|
@@ -176,6 +176,7 @@ const NavigationBar = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
176
176
|
});
|
|
177
177
|
NavigationBar.displayName = 'NavigationBar';
|
|
178
178
|
NavigationBar.propTypes = { ...selectedSystemPropTypes,
|
|
179
|
+
tokens: (0, _componentsBase.getTokensPropType)('NavigationBar'),
|
|
179
180
|
..._componentsBase.withLinkRouter.propTypes,
|
|
180
181
|
|
|
181
182
|
/**
|
|
@@ -235,7 +236,8 @@ NavigationBar.defaultProps = {
|
|
|
235
236
|
heading: undefined,
|
|
236
237
|
headingLevel: 'h1',
|
|
237
238
|
onChange: () => {},
|
|
238
|
-
accessibilityRole: ''
|
|
239
|
+
accessibilityRole: '',
|
|
240
|
+
tokens: {}
|
|
239
241
|
};
|
|
240
242
|
var _default = NavigationBar;
|
|
241
243
|
exports.default = _default;
|
|
@@ -75,6 +75,7 @@ const OrderedList = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
|
|
|
75
75
|
});
|
|
76
76
|
OrderedList.displayName = 'OrderedList';
|
|
77
77
|
OrderedList.propTypes = { ...selectedSystemPropTypes,
|
|
78
|
+
tokens: (0, _componentsBase.getTokensPropType)('OrderedList'),
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
81
|
* A list of ordered items wrapped in `OrderedList.Item`.
|
|
@@ -89,6 +90,7 @@ OrderedList.propTypes = { ...selectedSystemPropTypes,
|
|
|
89
90
|
};
|
|
90
91
|
OrderedList.defaultProps = {
|
|
91
92
|
start: 1,
|
|
93
|
+
tokens: {},
|
|
92
94
|
variant: {}
|
|
93
95
|
};
|
|
94
96
|
OrderedList.Item = _Item.default;
|
|
@@ -188,6 +188,7 @@ PreviewCard.displayName = 'PreviewCard'; // Provide standard author/date footer
|
|
|
188
188
|
|
|
189
189
|
PreviewCard.AuthorDate = _AuthorDate.default;
|
|
190
190
|
PreviewCard.propTypes = { ...selectedSystemPropTypes,
|
|
191
|
+
tokens: (0, _componentsBase.getTokensPropType)('PreviewCard'),
|
|
191
192
|
|
|
192
193
|
/**
|
|
193
194
|
* The URL of the story to be navigated to. Note that `Video` component does not play well when used within
|
package/lib/Ribbon/Ribbon.js
CHANGED
|
@@ -219,6 +219,7 @@ const Ribbon = _ref18 => {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
Ribbon.propTypes = { ...selectedSystemPropTypes,
|
|
222
|
+
tokens: (0, _componentsBase.getTokensPropType)('Ribbon'),
|
|
222
223
|
children: _propTypes.default.node,
|
|
223
224
|
|
|
224
225
|
/** show/hide the ribbon fold
|
|
@@ -230,8 +231,7 @@ Ribbon.propTypes = { ...selectedSystemPropTypes,
|
|
|
230
231
|
left: _propTypes.default.number,
|
|
231
232
|
|
|
232
233
|
/** sets the top offset (triggers absolute positioning) */
|
|
233
|
-
top: _propTypes.default.number
|
|
234
|
-
tokens: (0, _componentsBase.getTokensPropType)('Ribbon')
|
|
234
|
+
top: _propTypes.default.number
|
|
235
235
|
};
|
|
236
236
|
var _default = Ribbon;
|
|
237
237
|
exports.default = _default;
|
package/lib/Spinner/Spinner.js
CHANGED
|
@@ -198,6 +198,7 @@ const Spinner = _ref3 => {
|
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
Spinner.propTypes = { ...selectedSystemPropTypes,
|
|
201
|
+
tokens: (0, _componentsBase.getTokensPropType)('Spinner'),
|
|
201
202
|
|
|
202
203
|
/**
|
|
203
204
|
* Content to be overlaid while the spinner is active. Can be text, any HTML element,
|
|
@@ -188,6 +188,7 @@ const StoryCard = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
|
|
|
188
188
|
});
|
|
189
189
|
StoryCard.displayName = 'StoryCard';
|
|
190
190
|
StoryCard.propTypes = { ...selectedSystemPropTypes,
|
|
191
|
+
tokens: (0, _componentsBase.getTokensPropType)('StoryCard'),
|
|
191
192
|
|
|
192
193
|
/**
|
|
193
194
|
* The URL of the story to be navigated to. Note that `Video` component does not play well when used within
|
package/lib/Table/Table.js
CHANGED
|
@@ -221,6 +221,11 @@ TermsAndConditions.propTypes = { ...selectedSystemPropTypes,
|
|
|
221
221
|
nonIndexedTitle: _propTypes.default.string
|
|
222
222
|
})]),
|
|
223
223
|
|
|
224
|
+
/**
|
|
225
|
+
* Sets the tokens for TermsAndConditions element.
|
|
226
|
+
*/
|
|
227
|
+
tokens: (0, _componentsBase.getTokensPropType)('TermsAndConditions'),
|
|
228
|
+
|
|
224
229
|
/**
|
|
225
230
|
* An array of nodes, strings, or a combination to be displayed in an ordered list.
|
|
226
231
|
*
|
|
@@ -247,7 +252,8 @@ TermsAndConditions.defaultProps = {
|
|
|
247
252
|
copy: 'en',
|
|
248
253
|
indexedContent: [],
|
|
249
254
|
nonIndexedContent: [],
|
|
250
|
-
dictionary: _dictionary.default
|
|
255
|
+
dictionary: _dictionary.default,
|
|
256
|
+
tokens: {}
|
|
251
257
|
};
|
|
252
258
|
var _default = TermsAndConditions;
|
|
253
259
|
exports.default = _default;
|
package/lib/Toast/Toast.js
CHANGED
|
@@ -155,6 +155,7 @@ const Toast = _ref5 => {
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
Toast.propTypes = { ...selectedSystemPropTypes,
|
|
158
|
+
tokens: (0, _componentsBase.getTokensPropType)('Toast'),
|
|
158
159
|
|
|
159
160
|
/**
|
|
160
161
|
* If true, the toast will be displayed
|
|
@@ -179,8 +180,7 @@ Toast.propTypes = { ...selectedSystemPropTypes,
|
|
|
179
180
|
text: _propTypes.default.string.isRequired,
|
|
180
181
|
LinkRouter: (_withLinkRouter$propT = _componentsBase.withLinkRouter.propTypes) === null || _withLinkRouter$propT === void 0 ? void 0 : _withLinkRouter$propT.LinkRouter,
|
|
181
182
|
linkRouterProps: (_withLinkRouter$propT2 = _componentsBase.withLinkRouter.propTypes) === null || _withLinkRouter$propT2 === void 0 ? void 0 : _withLinkRouter$propT2.linkRouterProps
|
|
182
|
-
})
|
|
183
|
-
tokens: (0, _componentsBase.getTokensPropType)('Toast')
|
|
183
|
+
})
|
|
184
184
|
};
|
|
185
185
|
var _default = Toast;
|
|
186
186
|
exports.default = _default;
|
|
@@ -163,6 +163,7 @@ const VideoPicker = _ref6 => {
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
VideoPicker.propTypes = { ...selectedSystemPropTypes,
|
|
166
|
+
tokens: (0, _componentsBase.getTokensPropType)('VideoPicker'),
|
|
166
167
|
|
|
167
168
|
/**
|
|
168
169
|
* Id of the currently selected video (defaults to the first video if not set).
|
|
@@ -166,6 +166,11 @@ WaffleGrid.propTypes = { ...selectedSystemPropTypes,
|
|
|
166
166
|
..._componentsBase.withLinkRouter.propTypes
|
|
167
167
|
})).isRequired,
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Sets the tokens for WaffleGrid element.
|
|
171
|
+
*/
|
|
172
|
+
tokens: (0, _componentsBase.getTokensPropType)('WaffleGrid'),
|
|
173
|
+
|
|
169
174
|
/**
|
|
170
175
|
* Row size, optionally depending on the viewport
|
|
171
176
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Helmet, HelmetProvider } from 'react-helmet-async';
|
|
5
|
-
import { componentPropType, selectSystemProps, unpackFragment, withLinkRouter } from '@telus-uds/components-base';
|
|
5
|
+
import { componentPropType, selectSystemProps, unpackFragment, withLinkRouter, getTokensPropType } from '@telus-uds/components-base';
|
|
6
6
|
import { htmlAttrs } from '../utils';
|
|
7
7
|
import Item from './Item/Item';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -193,6 +193,7 @@ const Breadcrumbs = _ref2 => {
|
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
Breadcrumbs.propTypes = { ...selectedSystemPropTypes,
|
|
196
|
+
tokens: getTokensPropType('Breadcrumbs'),
|
|
196
197
|
...withLinkRouter.propTypes,
|
|
197
198
|
|
|
198
199
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/require-default-props */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Spacer, StackView, Typography, selectSystemProps, useViewport, useThemeTokens, applyTextStyles } from '@telus-uds/components-base';
|
|
4
|
+
import { Spacer, StackView, Typography, selectSystemProps, useViewport, useThemeTokens, applyTextStyles, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import { viewports } from '@telus-uds/system-constants';
|
|
6
6
|
import styled from 'styled-components'; // Reading these from the RN palette since they will be used to generate
|
|
7
7
|
// the `Typography` tokens
|
|
@@ -157,6 +157,7 @@ const Countdown = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
157
157
|
});
|
|
158
158
|
Countdown.displayName = 'Countdown';
|
|
159
159
|
Countdown.propTypes = { ...selectedSystemPropTypes,
|
|
160
|
+
tokens: getTokensPropType('Countdown'),
|
|
160
161
|
|
|
161
162
|
/**
|
|
162
163
|
* Copy language identifier (`'en'` or `'fr'`) or a dictionary instance (an object with
|
|
@@ -5,7 +5,7 @@ import momentPropTypes from 'react-moment-proptypes';
|
|
|
5
5
|
import 'react-dates/initialize';
|
|
6
6
|
import SingleDatePicker from 'react-dates/lib/components/SingleDatePicker';
|
|
7
7
|
import DayPickerSingleDateController from 'react-dates/lib/components/DayPickerSingleDateController';
|
|
8
|
-
import { IconButton, TextInput, selectSystemProps, useCopy, useViewport, useThemeTokens, applyTextStyles } from '@telus-uds/components-base';
|
|
8
|
+
import { IconButton, TextInput, selectSystemProps, useCopy, useViewport, useThemeTokens, applyTextStyles, getTokensPropType } from '@telus-uds/components-base';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import { isUndefined } from 'lodash';
|
|
11
11
|
import CalendarContainer from './CalendarContainer';
|
|
@@ -330,6 +330,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
330
330
|
});
|
|
331
331
|
DatePicker.displayName = 'DatePicker';
|
|
332
332
|
DatePicker.propTypes = { ...selectedSystemPropTypes,
|
|
333
|
+
tokens: getTokensPropType('DatePicker'),
|
|
333
334
|
|
|
334
335
|
/**
|
|
335
336
|
* A unique identifier.
|
|
@@ -427,6 +428,7 @@ DatePicker.defaultProps = {
|
|
|
427
428
|
onDateChange: () => {},
|
|
428
429
|
validation: undefined,
|
|
429
430
|
disabled: false,
|
|
431
|
+
tokens: undefined,
|
|
430
432
|
prevTestID: '',
|
|
431
433
|
nextTestID: ''
|
|
432
434
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { applyTextStyles, selectSystemProps, useThemeTokens } from '@telus-uds/components-base';
|
|
4
|
+
import { applyTextStyles, selectSystemProps, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import { htmlAttrs } from '../utils';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
@@ -45,10 +45,7 @@ const Disclaimer = _ref2 => {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
Disclaimer.propTypes = { ...selectedSystemPropTypes,
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Children nodes that can be added
|
|
51
|
-
*/
|
|
48
|
+
tokens: getTokensPropType('Disclaimer'),
|
|
52
49
|
children: PropTypes.node.isRequired
|
|
53
50
|
};
|
|
54
51
|
export default Disclaimer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState, useCallback } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled, { createGlobalStyle } from 'styled-components';
|
|
4
|
-
import { Icon, Portal, selectSystemProps, Typography, useCopy, useTheme, useResponsiveProp, useThemeTokens } from '@telus-uds/components-base';
|
|
4
|
+
import { Icon, Portal, selectSystemProps, Typography, useCopy, useTheme, useResponsiveProp, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import OrderedListBase from '../OrderedList/OrderedListBase';
|
|
6
6
|
import { htmlAttrs, media, renderStructuredContent } from '../utils';
|
|
7
7
|
import defaultDictionary from './dictionary';
|
|
@@ -572,6 +572,7 @@ const dictionaryContentShape = PropTypes.shape({
|
|
|
572
572
|
heading: PropTypes.string.isRequired
|
|
573
573
|
});
|
|
574
574
|
Footnote.propTypes = { ...selectedSystemPropTypes,
|
|
575
|
+
tokens: getTokensPropType('Footnote'),
|
|
575
576
|
|
|
576
577
|
/**
|
|
577
578
|
* The content.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { IconButton as IconButtonBase, useThemeTokens } from '@telus-uds/components-base';
|
|
3
|
+
import { IconButton as IconButtonBase, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const IconButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6
6
|
let {
|
|
@@ -42,6 +42,7 @@ const propsWithoutIcon = _ref2 => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
IconButton.propTypes = { ...propsWithoutIcon(IconButtonBase.propTypes),
|
|
45
|
+
tokens: getTokensPropType('IconButton'),
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* To set the icon to a multi-brand compatabile icon
|
|
@@ -55,6 +56,7 @@ IconButton.propTypes = { ...propsWithoutIcon(IconButtonBase.propTypes),
|
|
|
55
56
|
icon: PropTypes.func
|
|
56
57
|
};
|
|
57
58
|
IconButton.defaultProps = {
|
|
58
|
-
icon: null
|
|
59
|
+
icon: null,
|
|
60
|
+
tokens: {}
|
|
59
61
|
};
|
|
60
62
|
export default IconButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { selectSystemProps, useThemeTokens } from '@telus-uds/components-base';
|
|
4
|
+
import { selectSystemProps, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import { htmlAttrs, warn } from '../utils';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([htmlAttrs]);
|
|
@@ -103,6 +103,7 @@ Image.propTypes = { ...selectedSystemPropTypes,
|
|
|
103
103
|
/**
|
|
104
104
|
* Make image render as a circle or with rounded corners.
|
|
105
105
|
*/
|
|
106
|
-
rounded: PropTypes.oneOf(['circle', 'corners'])
|
|
106
|
+
rounded: PropTypes.oneOf(['circle', 'corners']),
|
|
107
|
+
tokens: getTokensPropType('Image')
|
|
107
108
|
};
|
|
108
109
|
export default Image;
|
|
@@ -2,7 +2,7 @@ var _withLinkRouter$propT, _withLinkRouter$propT2, _withLinkRouter$propT3, _with
|
|
|
2
2
|
|
|
3
3
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { selectSystemProps, StackView, Typography, useResponsiveProp, withLinkRouter } from '@telus-uds/components-base';
|
|
5
|
+
import { selectSystemProps, StackView, Typography, useResponsiveProp, withLinkRouter, getTokensPropType } from '@telus-uds/components-base';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { htmlAttrs } from '../utils';
|
|
8
8
|
import NavigationItem from './NavigationItem';
|
|
@@ -153,6 +153,7 @@ const NavigationBar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
153
153
|
});
|
|
154
154
|
NavigationBar.displayName = 'NavigationBar';
|
|
155
155
|
NavigationBar.propTypes = { ...selectedSystemPropTypes,
|
|
156
|
+
tokens: getTokensPropType('NavigationBar'),
|
|
156
157
|
...withLinkRouter.propTypes,
|
|
157
158
|
|
|
158
159
|
/**
|
|
@@ -212,6 +213,7 @@ NavigationBar.defaultProps = {
|
|
|
212
213
|
heading: undefined,
|
|
213
214
|
headingLevel: 'h1',
|
|
214
215
|
onChange: () => {},
|
|
215
|
-
accessibilityRole: ''
|
|
216
|
+
accessibilityRole: '',
|
|
217
|
+
tokens: {}
|
|
216
218
|
};
|
|
217
219
|
export default NavigationBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { selectSystemProps, variantProp } from '@telus-uds/components-base';
|
|
4
|
+
import { selectSystemProps, getTokensPropType, variantProp } from '@telus-uds/components-base';
|
|
5
5
|
import { htmlAttrs } from '../utils';
|
|
6
6
|
import OrderedListBase from './OrderedListBase';
|
|
7
7
|
import Item from './Item';
|
|
@@ -53,6 +53,7 @@ const OrderedList = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
53
53
|
});
|
|
54
54
|
OrderedList.displayName = 'OrderedList';
|
|
55
55
|
OrderedList.propTypes = { ...selectedSystemPropTypes,
|
|
56
|
+
tokens: getTokensPropType('OrderedList'),
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* A list of ordered items wrapped in `OrderedList.Item`.
|
|
@@ -67,6 +68,7 @@ OrderedList.propTypes = { ...selectedSystemPropTypes,
|
|
|
67
68
|
};
|
|
68
69
|
OrderedList.defaultProps = {
|
|
69
70
|
start: 1,
|
|
71
|
+
tokens: {},
|
|
70
72
|
variant: {}
|
|
71
73
|
};
|
|
72
74
|
OrderedList.Item = Item;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import omit from 'lodash.omit';
|
|
5
|
-
import { Box, getThemeTokens, hrefAttrsProp, PressableCardBase, selectSystemProps, Spacer, StackView, Typography, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useTheme } from '@telus-uds/components-base';
|
|
5
|
+
import { Box, getThemeTokens, hrefAttrsProp, PressableCardBase, selectSystemProps, Spacer, StackView, Typography, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useTheme, getTokensPropType } from '@telus-uds/components-base';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import FullBleedContent, { getFullBleedBorderRadius, useFullBleedContentProps } from '../shared/FullBleedContent';
|
|
8
8
|
import AuthorDate from './AuthorDate'; // Passes React Native-oriented system props through UDS PressableCardBase
|
|
@@ -166,6 +166,7 @@ PreviewCard.displayName = 'PreviewCard'; // Provide standard author/date footer
|
|
|
166
166
|
|
|
167
167
|
PreviewCard.AuthorDate = AuthorDate;
|
|
168
168
|
PreviewCard.propTypes = { ...selectedSystemPropTypes,
|
|
169
|
+
tokens: getTokensPropType('PreviewCard'),
|
|
169
170
|
|
|
170
171
|
/**
|
|
171
172
|
* The URL of the story to be navigated to. Note that `Video` component does not play well when used within
|
|
@@ -202,6 +202,7 @@ const Ribbon = _ref18 => {
|
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
Ribbon.propTypes = { ...selectedSystemPropTypes,
|
|
205
|
+
tokens: getTokensPropType('Ribbon'),
|
|
205
206
|
children: PropTypes.node,
|
|
206
207
|
|
|
207
208
|
/** show/hide the ribbon fold
|
|
@@ -213,7 +214,6 @@ Ribbon.propTypes = { ...selectedSystemPropTypes,
|
|
|
213
214
|
left: PropTypes.number,
|
|
214
215
|
|
|
215
216
|
/** sets the top offset (triggers absolute positioning) */
|
|
216
|
-
top: PropTypes.number
|
|
217
|
-
tokens: getTokensPropType('Ribbon')
|
|
217
|
+
top: PropTypes.number
|
|
218
218
|
};
|
|
219
219
|
export default Ribbon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { selectSystemProps, useScrollBlocking, useThemeTokens } from '@telus-uds/components-base';
|
|
4
|
+
import { selectSystemProps, useScrollBlocking, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import { Portal } from '@gorhom/portal';
|
|
6
6
|
import SpinnerContent from './SpinnerContent';
|
|
7
7
|
import { htmlAttrs, media } from '../utils';
|
|
@@ -177,6 +177,7 @@ const Spinner = _ref3 => {
|
|
|
177
177
|
};
|
|
178
178
|
|
|
179
179
|
Spinner.propTypes = { ...selectedSystemPropTypes,
|
|
180
|
+
tokens: getTokensPropType('Spinner'),
|
|
180
181
|
|
|
181
182
|
/**
|
|
182
183
|
* Content to be overlaid while the spinner is active. Can be text, any HTML element,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/require-default-props */
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Box, Divider, PressableCardBase, selectSystemProps, Spacer, StackView, StackWrap, Typography, hrefAttrsProp, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useThemeTokens, useThemeTokensCallback } from '@telus-uds/components-base';
|
|
4
|
+
import { Box, Divider, PressableCardBase, selectSystemProps, Spacer, StackView, StackWrap, Typography, hrefAttrsProp, a11yProps, focusHandlerProps, viewProps, withLinkRouter, useThemeTokens, useThemeTokensCallback, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import FullBleedContent, { getFullBleedBorderRadius, useFullBleedContentProps } from '../shared/FullBleedContent'; // Passes React Native-oriented system props through UDS PressableCardBase
|
|
7
7
|
|
|
@@ -167,6 +167,7 @@ const StoryCard = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
167
167
|
});
|
|
168
168
|
StoryCard.displayName = 'StoryCard';
|
|
169
169
|
StoryCard.propTypes = { ...selectedSystemPropTypes,
|
|
170
|
+
tokens: getTokensPropType('StoryCard'),
|
|
170
171
|
|
|
171
172
|
/**
|
|
172
173
|
* The URL of the story to be navigated to. Note that `Video` component does not play well when used within
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { selectSystemProps, useSafeLayoutEffect, useThemeTokens } from '@telus-uds/components-base';
|
|
4
|
+
import { selectSystemProps, useSafeLayoutEffect, useThemeTokens, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import throttle from 'lodash.throttle';
|
|
6
6
|
import { htmlAttrs } from '../utils';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -101,6 +101,7 @@ const Table = _ref2 => {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
Table.propTypes = { ...selectedSystemPropTypes,
|
|
104
|
+
tokens: getTokensPropType('Table'),
|
|
104
105
|
children: PropTypes.node,
|
|
105
106
|
|
|
106
107
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Box, Divider, selectSystemProps, Typography, useCopy, useThemeTokens, useViewport } from '@telus-uds/components-base';
|
|
4
|
+
import { Box, Divider, selectSystemProps, Typography, useCopy, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import ExpandCollapse from './ExpandCollapse';
|
|
6
6
|
import OrderedListBase from '../OrderedList/OrderedListBase';
|
|
7
7
|
import { htmlAttrs, media, renderStructuredContent } from '../utils';
|
|
@@ -193,6 +193,11 @@ TermsAndConditions.propTypes = { ...selectedSystemPropTypes,
|
|
|
193
193
|
nonIndexedTitle: PropTypes.string
|
|
194
194
|
})]),
|
|
195
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Sets the tokens for TermsAndConditions element.
|
|
198
|
+
*/
|
|
199
|
+
tokens: getTokensPropType('TermsAndConditions'),
|
|
200
|
+
|
|
196
201
|
/**
|
|
197
202
|
* An array of nodes, strings, or a combination to be displayed in an ordered list.
|
|
198
203
|
*
|
|
@@ -219,6 +224,7 @@ TermsAndConditions.defaultProps = {
|
|
|
219
224
|
copy: 'en',
|
|
220
225
|
indexedContent: [],
|
|
221
226
|
nonIndexedContent: [],
|
|
222
|
-
dictionary: defaultDictionary
|
|
227
|
+
dictionary: defaultDictionary,
|
|
228
|
+
tokens: {}
|
|
223
229
|
};
|
|
224
230
|
export default TermsAndConditions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Icon, selectSystemProps, Typography, useThemeTokens, useViewport } from '@telus-uds/components-base';
|
|
4
|
+
import { Icon, selectSystemProps, Typography, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import Image from '../Image';
|
|
6
6
|
import { htmlAttrs } from '../utils';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -202,6 +202,7 @@ const Testimonial = _ref5 => {
|
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
Testimonial.propTypes = { ...selectedSystemPropTypes,
|
|
205
|
+
tokens: getTokensPropType('Testimonial'),
|
|
205
206
|
|
|
206
207
|
/**
|
|
207
208
|
* Testimonial content
|
|
@@ -137,6 +137,7 @@ const Toast = _ref5 => {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
Toast.propTypes = { ...selectedSystemPropTypes,
|
|
140
|
+
tokens: getTokensPropType('Toast'),
|
|
140
141
|
|
|
141
142
|
/**
|
|
142
143
|
* If true, the toast will be displayed
|
|
@@ -161,7 +162,6 @@ Toast.propTypes = { ...selectedSystemPropTypes,
|
|
|
161
162
|
text: PropTypes.string.isRequired,
|
|
162
163
|
LinkRouter: (_withLinkRouter$propT = withLinkRouter.propTypes) === null || _withLinkRouter$propT === void 0 ? void 0 : _withLinkRouter$propT.LinkRouter,
|
|
163
164
|
linkRouterProps: (_withLinkRouter$propT2 = withLinkRouter.propTypes) === null || _withLinkRouter$propT2 === void 0 ? void 0 : _withLinkRouter$propT2.linkRouterProps
|
|
164
|
-
})
|
|
165
|
-
tokens: getTokensPropType('Toast')
|
|
165
|
+
})
|
|
166
166
|
};
|
|
167
167
|
export default Toast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { viewports } from '@telus-uds/system-constants';
|
|
4
|
-
import { selectSystemProps, StackView, useThemeTokens, useViewport } from '@telus-uds/components-base';
|
|
4
|
+
import { selectSystemProps, StackView, useThemeTokens, useViewport, getTokensPropType } from '@telus-uds/components-base';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { VideoPropType } from './videoPropType';
|
|
7
7
|
import VideoPickerThumbnail from './VideoPickerThumbnail';
|
|
@@ -138,6 +138,7 @@ const VideoPicker = _ref6 => {
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
VideoPicker.propTypes = { ...selectedSystemPropTypes,
|
|
141
|
+
tokens: getTokensPropType('VideoPicker'),
|
|
141
142
|
|
|
142
143
|
/**
|
|
143
144
|
* Id of the currently selected video (defaults to the first video if not set).
|