@telus-uds/components-base 1.3.1 → 1.4.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.json +24 -1
- package/CHANGELOG.md +20 -2
- package/component-docs.json +2 -1
- package/lib/Notification/Notification.js +5 -6
- package/lib-module/Notification/Notification.js +6 -6
- package/package.json +2 -2
- package/src/Notification/Notification.jsx +7 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@telus-uds/components-base:build: cache hit, replaying output
|
|
1
|
+
@telus-uds/components-base:build: cache hit, replaying output 875a557dac68c9fc
|
|
2
2
|
@telus-uds/components-base:build: [2K[1G[2m$ yarn build:code && yarn build:docs[22m
|
|
3
3
|
@telus-uds/components-base:build: [2K[1G[2m$ yarn build:main && yarn build:module[22m
|
|
4
4
|
@telus-uds/components-base:build: [2K[1G[2m$ babel src -d lib[22m
|
|
5
|
-
@telus-uds/components-base:build: Successfully compiled 215 files with Babel (
|
|
5
|
+
@telus-uds/components-base:build: Successfully compiled 215 files with Babel (7019ms).
|
|
6
6
|
@telus-uds/components-base:build: [2K[1G[2m$ babel src -d lib-module --env-name module[22m
|
|
7
|
-
@telus-uds/components-base:build: Successfully compiled 215 files with Babel (
|
|
7
|
+
@telus-uds/components-base:build: Successfully compiled 215 files with Babel (5391ms).
|
|
8
8
|
@telus-uds/components-base:build: [2K[1G[2m$ babel-node --plugins=react-docgen-alpha generate-component-docs.js[22m
|
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,30 @@
|
|
|
2
2
|
"name": "@telus-uds/components-base",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 01 Apr 2022 14:15:14 GMT",
|
|
6
|
+
"tag": "@telus-uds/components-base_v1.4.0",
|
|
7
|
+
"version": "1.4.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "simon.lawrence@nearform.com",
|
|
12
|
+
"package": "@telus-uds/components-base",
|
|
13
|
+
"commit": "05e43b4642997ec461094b5d8a439bfef1abaab8",
|
|
14
|
+
"comment": "Refactor children wrapping in the notifications"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"minor": [
|
|
18
|
+
{
|
|
19
|
+
"author": "beachball",
|
|
20
|
+
"package": "@telus-uds/components-base",
|
|
21
|
+
"comment": "Bump @telus-uds/system-theme-tokens to v1.3.0",
|
|
22
|
+
"commit": "05e43b4642997ec461094b5d8a439bfef1abaab8"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"date": "Wed, 30 Mar 2022 09:49:18 GMT",
|
|
6
29
|
"tag": "@telus-uds/components-base_v1.3.1",
|
|
7
30
|
"version": "1.3.1",
|
|
8
31
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-base
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 01 Apr 2022 14:15:14 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.4.0
|
|
8
|
+
|
|
9
|
+
Fri, 01 Apr 2022 14:15:14 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Bump @telus-uds/system-theme-tokens to v1.3.0
|
|
14
|
+
|
|
15
|
+
### Patches
|
|
16
|
+
|
|
17
|
+
- Refactor children wrapping in the notifications (simon.lawrence@nearform.com)
|
|
18
|
+
|
|
7
19
|
## 1.3.1
|
|
8
20
|
|
|
9
|
-
Wed, 30 Mar 2022 09:49:
|
|
21
|
+
Wed, 30 Mar 2022 09:49:18 GMT
|
|
10
22
|
|
|
11
23
|
### Patches
|
|
12
24
|
|
|
@@ -14,6 +26,12 @@ Wed, 30 Mar 2022 09:49:08 GMT
|
|
|
14
26
|
- Bump @telus-uds/system-constants to v1.0.2
|
|
15
27
|
- Bump @telus-uds/system-theme-tokens to v1.2.2
|
|
16
28
|
- Bump @telus-uds/browserslist-config to v1.0.1
|
|
29
|
+
- Export viewport context
|
|
30
|
+
- Unify system props handling
|
|
31
|
+
- Reduced motion support for ActivityIndicator component
|
|
32
|
+
- Include FootnoteLink in list of wrappable children
|
|
33
|
+
- Add a module build target
|
|
34
|
+
- Add SSR util functions
|
|
17
35
|
|
|
18
36
|
## [1.3.0](https://github.com/telus/universal-design-system/compare/@telus-uds/components-base/v1.2.0...@telus-uds/components-base/v1.3.0) (2022-03-21)
|
|
19
37
|
|
package/component-docs.json
CHANGED
|
@@ -9,8 +9,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _StyleSheet = _interopRequireDefault(require("react-native-web/dist/cjs/exports/StyleSheet"));
|
|
11
11
|
|
|
12
|
-
var _Text = _interopRequireDefault(require("react-native-web/dist/cjs/exports/Text"));
|
|
13
|
-
|
|
14
12
|
var _View = _interopRequireDefault(require("react-native-web/dist/cjs/exports/View"));
|
|
15
13
|
|
|
16
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -143,10 +141,11 @@ const Notification = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
143
141
|
}
|
|
144
142
|
|
|
145
143
|
const textStyles = selectTextStyles(themeTokens);
|
|
146
|
-
const content = typeof children === '
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
const content = (0, _utils.wrapStringsInText)(typeof children === 'function' ? children({
|
|
145
|
+
textStyles
|
|
146
|
+
}) : children, {
|
|
147
|
+
style: textStyles
|
|
148
|
+
});
|
|
150
149
|
const {
|
|
151
150
|
icon: IconComponent,
|
|
152
151
|
dismissIcon: DismissIconComponent
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { forwardRef, useState } from 'react';
|
|
2
2
|
import StyleSheet from "react-native-web/dist/exports/StyleSheet";
|
|
3
|
-
import Text from "react-native-web/dist/exports/Text";
|
|
4
3
|
import View from "react-native-web/dist/exports/View";
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { applyTextStyles, useThemeTokens } from '../ThemeProvider';
|
|
7
|
-
import { a11yProps, getTokensPropType, selectSystemProps, selectTokens, variantProp, viewProps } from '../utils';
|
|
6
|
+
import { a11yProps, getTokensPropType, selectSystemProps, selectTokens, variantProp, viewProps, wrapStringsInText } from '../utils';
|
|
8
7
|
import ButtonBase from '../Button/ButtonBase';
|
|
9
8
|
import useCopy from '../utils/useCopy';
|
|
10
9
|
import dictionary from './dictionary';
|
|
@@ -120,10 +119,11 @@ const Notification = /*#__PURE__*/forwardRef(({
|
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
const textStyles = selectTextStyles(themeTokens);
|
|
123
|
-
const content = typeof children === '
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
const content = wrapStringsInText(typeof children === 'function' ? children({
|
|
123
|
+
textStyles
|
|
124
|
+
}) : children, {
|
|
125
|
+
style: textStyles
|
|
126
|
+
});
|
|
127
127
|
const {
|
|
128
128
|
icon: IconComponent,
|
|
129
129
|
dismissIcon: DismissIconComponent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/components-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Base components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"airbnb-prop-types": "^2.16.0",
|
|
61
61
|
"@telus-uds/system-constants": "^1.0.2",
|
|
62
|
-
"@telus-uds/system-theme-tokens": "^1.
|
|
62
|
+
"@telus-uds/system-theme-tokens": "^1.3.0",
|
|
63
63
|
"lodash.debounce": "^4.0.8",
|
|
64
64
|
"lodash.merge": "^4.6.2",
|
|
65
65
|
"prop-types": "^15.7.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useState } from 'react'
|
|
2
|
-
import { StyleSheet,
|
|
2
|
+
import { StyleSheet, View } from 'react-native'
|
|
3
3
|
|
|
4
4
|
import PropTypes from 'prop-types'
|
|
5
5
|
import { applyTextStyles, useThemeTokens } from '../ThemeProvider'
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
selectSystemProps,
|
|
10
10
|
selectTokens,
|
|
11
11
|
variantProp,
|
|
12
|
-
viewProps
|
|
12
|
+
viewProps,
|
|
13
|
+
wrapStringsInText
|
|
13
14
|
} from '../utils'
|
|
14
15
|
import ButtonBase from '../Button/ButtonBase'
|
|
15
16
|
import useCopy from '../utils/useCopy'
|
|
@@ -102,8 +103,10 @@ const Notification = forwardRef(
|
|
|
102
103
|
|
|
103
104
|
const textStyles = selectTextStyles(themeTokens)
|
|
104
105
|
|
|
105
|
-
const content =
|
|
106
|
-
typeof children === '
|
|
106
|
+
const content = wrapStringsInText(
|
|
107
|
+
typeof children === 'function' ? children({ textStyles }) : children,
|
|
108
|
+
{ style: textStyles }
|
|
109
|
+
)
|
|
107
110
|
|
|
108
111
|
const { icon: IconComponent, dismissIcon: DismissIconComponent } = themeTokens
|
|
109
112
|
|