@telus-uds/components-base 1.57.0 → 1.58.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 +10 -2
- package/lib/Carousel/Carousel.js +2 -1
- package/lib/Carousel/CarouselThumbnail.js +3 -1
- package/lib-module/Carousel/Carousel.js +2 -1
- package/lib-module/Carousel/CarouselThumbnail.js +3 -1
- package/package.json +1 -1
- package/src/Carousel/Carousel.jsx +5 -1
- package/src/Carousel/CarouselThumbnail.jsx +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-base
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 02 Aug 2023 18:10:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.58.0
|
|
8
|
+
|
|
9
|
+
Wed, 02 Aug 2023 18:10:10 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- added condition on applying "raised" in Carousel for next/prev buttons (kyle.king2@telus.com)
|
|
14
|
+
|
|
7
15
|
## 1.57.0
|
|
8
16
|
|
|
9
|
-
Fri, 28 Jul 2023 18:
|
|
17
|
+
Fri, 28 Jul 2023 18:18:38 GMT
|
|
10
18
|
|
|
11
19
|
### Minor changes
|
|
12
20
|
|
package/lib/Carousel/Carousel.js
CHANGED
|
@@ -461,7 +461,8 @@ const Carousel = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
461
461
|
|
|
462
462
|
const previousNextIconButtonVariants = {
|
|
463
463
|
size: previousNextIconSize,
|
|
464
|
-
raised: true
|
|
464
|
+
raised: !(variant !== null && variant !== void 0 && variant.inverse) && true,
|
|
465
|
+
inverse: variant === null || variant === void 0 ? void 0 : variant.inverse
|
|
465
466
|
};
|
|
466
467
|
|
|
467
468
|
const getCopyWithPlaceholders = _react.default.useCallback(copyKey => {
|
|
@@ -104,7 +104,9 @@ const CarouselThumbnail = _ref2 => {
|
|
|
104
104
|
pressed,
|
|
105
105
|
focus: focused
|
|
106
106
|
}));
|
|
107
|
-
return [pressableStyles, index === activeIndex && styles.selected
|
|
107
|
+
return [pressableStyles, index === activeIndex && styles.selected, {
|
|
108
|
+
outline: 'none'
|
|
109
|
+
}];
|
|
108
110
|
},
|
|
109
111
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.default, {
|
|
110
112
|
accessibilityIgnoresInvertColors: true,
|
|
@@ -405,7 +405,8 @@ const Carousel = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
405
405
|
|
|
406
406
|
const previousNextIconButtonVariants = {
|
|
407
407
|
size: previousNextIconSize,
|
|
408
|
-
raised: true
|
|
408
|
+
raised: !(variant !== null && variant !== void 0 && variant.inverse) && true,
|
|
409
|
+
inverse: variant === null || variant === void 0 ? void 0 : variant.inverse
|
|
409
410
|
};
|
|
410
411
|
const getCopyWithPlaceholders = React.useCallback(copyKey => {
|
|
411
412
|
const copyText = getCopy(copyKey).replace(/%\{title\}/g, title).replace(/%\{itemLabel\}/g, itemLabel).replace(/%\{stepNumber\}/g, activeIndex + 1).replace(/%\{stepCount\}/g, childrenArray.length); // First word might be a lowercase placeholder: capitalize the first letter
|
|
@@ -88,7 +88,9 @@ const CarouselThumbnail = _ref2 => {
|
|
|
88
88
|
pressed,
|
|
89
89
|
focus: focused
|
|
90
90
|
}));
|
|
91
|
-
return [pressableStyles, index === activeIndex && styles.selected
|
|
91
|
+
return [pressableStyles, index === activeIndex && styles.selected, {
|
|
92
|
+
outline: 'none'
|
|
93
|
+
}];
|
|
92
94
|
},
|
|
93
95
|
children: /*#__PURE__*/_jsx(Image, {
|
|
94
96
|
accessibilityIgnoresInvertColors: true,
|
package/package.json
CHANGED
|
@@ -420,7 +420,11 @@ const Carousel = React.forwardRef(
|
|
|
420
420
|
// @TODO: - these are Allium-theme variants and won't have any effect in themes that don't implement them.
|
|
421
421
|
// Normally we avoid setting variants of subcomponents, however this could be re-considered.
|
|
422
422
|
// Related discussion - https://github.com/telus/universal-design-system/issues/1549
|
|
423
|
-
const previousNextIconButtonVariants = {
|
|
423
|
+
const previousNextIconButtonVariants = {
|
|
424
|
+
size: previousNextIconSize,
|
|
425
|
+
raised: !variant?.inverse && true,
|
|
426
|
+
inverse: variant?.inverse
|
|
427
|
+
}
|
|
424
428
|
|
|
425
429
|
const getCopyWithPlaceholders = React.useCallback(
|
|
426
430
|
(copyKey) => {
|
|
@@ -60,7 +60,13 @@ const CarouselThumbnail = ({ accessibilityLabel, alt, index, src }) => {
|
|
|
60
60
|
})
|
|
61
61
|
)
|
|
62
62
|
|
|
63
|
-
return [
|
|
63
|
+
return [
|
|
64
|
+
pressableStyles,
|
|
65
|
+
index === activeIndex && styles.selected,
|
|
66
|
+
{
|
|
67
|
+
outline: 'none'
|
|
68
|
+
}
|
|
69
|
+
]
|
|
64
70
|
}}
|
|
65
71
|
>
|
|
66
72
|
<Image
|