@telus-uds/components-community.content-card 3.2.19 → 4.0.0-alpha.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/.eslintrc.cjs +12 -0
- package/CHANGELOG.md +19 -1
- package/lib/cjs/ContentCard.js +9 -6
- package/lib/cjs/index.js +8 -5
- package/lib/esm/ContentCard.js +8 -5
- package/lib/esm/index.js +1 -3
- package/package.json +10 -10
- package/src/ContentCard.jsx +8 -5
- package/src/index.js +1 -5
package/.eslintrc.cjs
CHANGED
|
@@ -19,4 +19,16 @@ base.settings = {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
base.overrides = [
|
|
23
|
+
...(base.overrides || []),
|
|
24
|
+
{
|
|
25
|
+
files: ['*.{js,jsx,ts,tsx}'],
|
|
26
|
+
excludedFiles: ['*.stories.*'],
|
|
27
|
+
rules: {
|
|
28
|
+
'import/no-default-export': 'error',
|
|
29
|
+
'import/prefer-default-export': 'off'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
|
|
22
34
|
module.exports = base
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-community.content-card
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 20 Mar 2026 02:26:39 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 4.0.0-alpha.0
|
|
8
|
+
|
|
9
|
+
Fri, 20 Mar 2026 02:26:39 GMT
|
|
10
|
+
|
|
11
|
+
### Major changes
|
|
12
|
+
|
|
13
|
+
- Upgrade to React 19 and other major changes, please refer to the changelog for more details (shahzaibkhalidmalik@outlook.com)
|
|
14
|
+
- Bump @telus-uds/components-base to v4.0.0-alpha.0
|
|
15
|
+
- Bump @telus-uds/system-theme-tokens to v5.0.0-alpha.0
|
|
16
|
+
|
|
17
|
+
## 3.2.20
|
|
18
|
+
|
|
19
|
+
Fri, 13 Mar 2026 20:33:41 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Bump @telus-uds/components-base to v3.29.0
|
|
24
|
+
|
|
7
25
|
## 3.2.19
|
|
8
26
|
|
|
9
27
|
Tue, 03 Mar 2026 23:02:55 GMT
|
package/lib/cjs/ContentCard.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ContentCardBase = exports.ContentCard = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _componentsBase = require("@telus-uds/components-base");
|
|
@@ -12,7 +12,7 @@ var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Vi
|
|
|
12
12
|
var _ImageBackground = _interopRequireDefault(require("react-native-web/dist/cjs/exports/ImageBackground"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
const styles =
|
|
15
|
+
const styles = _StyleSheet.default.create({
|
|
16
16
|
rowReverse: {
|
|
17
17
|
flexDirection: 'row-reverse'
|
|
18
18
|
},
|
|
@@ -30,7 +30,7 @@ const styles = exports.styles = _StyleSheet.default.create({
|
|
|
30
30
|
|
|
31
31
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
32
32
|
const [selectProps, selectedSystemPropTypes] = (0, _componentsBase.selectSystemProps)([_componentsBase.a11yProps, _componentsBase.focusHandlerProps, _componentsBase.viewProps]);
|
|
33
|
-
const
|
|
33
|
+
const ContentCardBase = exports.ContentCardBase = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
34
34
|
let {
|
|
35
35
|
title,
|
|
36
36
|
content,
|
|
@@ -132,8 +132,8 @@ const ContentCard = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
ContentCardBase.displayName = 'ContentCard';
|
|
136
|
+
ContentCardBase.propTypes = {
|
|
137
137
|
...selectedSystemPropTypes,
|
|
138
138
|
/**
|
|
139
139
|
* The URL to be navigated to.
|
|
@@ -176,4 +176,7 @@ ContentCard.propTypes = {
|
|
|
176
176
|
*/
|
|
177
177
|
isContentOnRight: _propTypes.default.bool
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
|
|
180
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
181
|
+
|
|
182
|
+
const ContentCard = exports.ContentCard = (0, _componentsBase.withLinkRouter)(ContentCardBase);
|
package/lib/cjs/index.js
CHANGED
|
@@ -6,10 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "ContentCard", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return _ContentCard.
|
|
9
|
+
return _ContentCard.ContentCard;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
exports
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
12
|
+
Object.defineProperty(exports, "ContentCardBase", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _ContentCard.ContentCardBase;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _ContentCard = require("./ContentCard");
|
package/lib/esm/ContentCard.js
CHANGED
|
@@ -5,7 +5,7 @@ import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
|
5
5
|
import View from "react-native-web/dist/exports/View";
|
|
6
6
|
import ImageBackground from "react-native-web/dist/exports/ImageBackground";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
9
|
rowReverse: {
|
|
10
10
|
flexDirection: 'row-reverse'
|
|
11
11
|
},
|
|
@@ -23,7 +23,7 @@ export const styles = StyleSheet.create({
|
|
|
23
23
|
|
|
24
24
|
// Passes React Native-oriented system props through UDS PressableCardBase
|
|
25
25
|
const [selectProps, selectedSystemPropTypes] = selectSystemProps([a11yProps, focusHandlerProps, viewProps]);
|
|
26
|
-
const
|
|
26
|
+
const ContentCardBase = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
27
27
|
let {
|
|
28
28
|
title,
|
|
29
29
|
content,
|
|
@@ -125,8 +125,8 @@ const ContentCard = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
ContentCardBase.displayName = 'ContentCard';
|
|
129
|
+
ContentCardBase.propTypes = {
|
|
130
130
|
...selectedSystemPropTypes,
|
|
131
131
|
/**
|
|
132
132
|
* The URL to be navigated to.
|
|
@@ -169,4 +169,7 @@ ContentCard.propTypes = {
|
|
|
169
169
|
*/
|
|
170
170
|
isContentOnRight: PropTypes.bool
|
|
171
171
|
};
|
|
172
|
-
|
|
172
|
+
|
|
173
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
174
|
+
export { ContentCardBase };
|
|
175
|
+
export const ContentCard = withLinkRouter(ContentCardBase);
|
package/lib/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
],
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"prop-types": "^15.7.2",
|
|
8
|
-
"react-native": "^0.
|
|
9
|
-
"@telus-uds/components-base": "^
|
|
8
|
+
"react-native": "^0.81.0",
|
|
9
|
+
"@telus-uds/components-base": "^4.0.0-alpha.0"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@telus-uds/browserslist-config": "^1.0.5",
|
|
13
|
-
"@telus-uds/system-theme-tokens": "^
|
|
14
|
-
"@testing-library/react-native": "
|
|
15
|
-
"babel-plugin-react-native-web": "^0.
|
|
13
|
+
"@telus-uds/system-theme-tokens": "^5.0.0-alpha.0",
|
|
14
|
+
"@testing-library/react-native": "^13.3.3",
|
|
15
|
+
"babel-plugin-react-native-web": "^0.21.2",
|
|
16
16
|
"babel-plugin-styled-components": "^2.0.6",
|
|
17
17
|
"jest-styled-components": "^7.0.8"
|
|
18
18
|
},
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"name": "@telus-uds/components-community.content-card",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "^18.2.0",
|
|
24
|
-
"react-dom": "^18.2.0",
|
|
25
|
-
"react-native": "^0.74.5",
|
|
26
|
-
"react-native-web": "^0.19.10"
|
|
23
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
25
|
+
"react-native": "^0.74.5 || ^0.81.0",
|
|
26
|
+
"react-native-web": "^0.19.10 || ^0.21.0"
|
|
27
27
|
},
|
|
28
28
|
"main": "lib/cjs/index.js",
|
|
29
29
|
"module": "lib/esm/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"standard-engine": {
|
|
45
45
|
"skip": true
|
|
46
46
|
},
|
|
47
|
-
"version": "
|
|
47
|
+
"version": "4.0.0-alpha.0"
|
|
48
48
|
}
|
package/src/ContentCard.jsx
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from '@telus-uds/components-base'
|
|
19
19
|
import { StyleSheet, View, ImageBackground } from 'react-native'
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const styles = StyleSheet.create({
|
|
22
22
|
rowReverse: {
|
|
23
23
|
flexDirection: 'row-reverse'
|
|
24
24
|
},
|
|
@@ -41,7 +41,7 @@ const [selectProps, selectedSystemPropTypes] = selectSystemProps([
|
|
|
41
41
|
viewProps
|
|
42
42
|
])
|
|
43
43
|
|
|
44
|
-
const
|
|
44
|
+
const ContentCardBase = React.forwardRef(
|
|
45
45
|
(
|
|
46
46
|
{
|
|
47
47
|
title,
|
|
@@ -123,9 +123,9 @@ const ContentCard = React.forwardRef(
|
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
ContentCardBase.displayName = 'ContentCard'
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
ContentCardBase.propTypes = {
|
|
129
129
|
...selectedSystemPropTypes,
|
|
130
130
|
/**
|
|
131
131
|
* The URL to be navigated to.
|
|
@@ -169,4 +169,7 @@ ContentCard.propTypes = {
|
|
|
169
169
|
isContentOnRight: PropTypes.bool
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
// Export unwrapped component for react-docgen to extract info for docsite
|
|
173
|
+
export { ContentCardBase }
|
|
174
|
+
|
|
175
|
+
export const ContentCard = withLinkRouter(ContentCardBase)
|
package/src/index.js
CHANGED