@telus-uds/components-web 2.17.0 → 2.17.2
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 +19 -2
- package/component-docs.json +18 -0
- package/lib/ExpandCollapseMini/ExpandCollapseMini.js +9 -1
- package/lib/Table/Table.js +1 -1
- package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +9 -1
- package/lib-module/Table/Table.js +1 -1
- package/package.json +2 -2
- package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +8 -2
- package/src/Table/Table.jsx +1 -1
- package/types/common.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-web
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 31 Aug 2023 17:58:49 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.17.2
|
|
8
|
+
|
|
9
|
+
Thu, 31 Aug 2023 17:58:49 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @telus-uds/components-base to v1.59.2
|
|
14
|
+
|
|
15
|
+
## 2.17.1
|
|
16
|
+
|
|
17
|
+
Mon, 21 Aug 2023 19:06:28 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Synced up event propagation to the relevant element taking `id` (shahzaibkhalidmalik@outlook.com)
|
|
22
|
+
- Bump @telus-uds/components-base to v1.59.1
|
|
23
|
+
|
|
7
24
|
## 2.17.0
|
|
8
25
|
|
|
9
|
-
|
|
26
|
+
Wed, 09 Aug 2023 00:02:59 GMT
|
|
10
27
|
|
|
11
28
|
### Minor changes
|
|
12
29
|
|
package/component-docs.json
CHANGED
|
@@ -847,6 +847,17 @@
|
|
|
847
847
|
"required": false,
|
|
848
848
|
"description": "Function to call on pressing the panel's control, which should open or close the panel."
|
|
849
849
|
},
|
|
850
|
+
"nativeID": {
|
|
851
|
+
"defaultValue": {
|
|
852
|
+
"value": "''",
|
|
853
|
+
"computed": false
|
|
854
|
+
},
|
|
855
|
+
"type": {
|
|
856
|
+
"name": "string"
|
|
857
|
+
},
|
|
858
|
+
"required": false,
|
|
859
|
+
"description": "ID for DOM element on web"
|
|
860
|
+
},
|
|
850
861
|
"onPress": {
|
|
851
862
|
"type": {
|
|
852
863
|
"name": "func"
|
|
@@ -10696,6 +10707,13 @@
|
|
|
10696
10707
|
},
|
|
10697
10708
|
"required": false,
|
|
10698
10709
|
"description": ""
|
|
10710
|
+
},
|
|
10711
|
+
"nativeSubmitBtnID": {
|
|
10712
|
+
"type": {
|
|
10713
|
+
"name": "string"
|
|
10714
|
+
},
|
|
10715
|
+
"required": false,
|
|
10716
|
+
"description": "ID for Submit button element on web"
|
|
10699
10717
|
}
|
|
10700
10718
|
},
|
|
10701
10719
|
"attributes": {
|
|
@@ -26,6 +26,7 @@ const ExpandCollapseMini = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
26
26
|
children,
|
|
27
27
|
onToggle,
|
|
28
28
|
tokens,
|
|
29
|
+
nativeID,
|
|
29
30
|
...rest
|
|
30
31
|
} = _ref;
|
|
31
32
|
|
|
@@ -57,6 +58,7 @@ const ExpandCollapseMini = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
57
58
|
...rest
|
|
58
59
|
}),
|
|
59
60
|
controlRef: ref,
|
|
61
|
+
nativeID: nativeID,
|
|
60
62
|
children: children
|
|
61
63
|
})
|
|
62
64
|
});
|
|
@@ -68,10 +70,16 @@ ExpandCollapseMini.propTypes = { ..._ExpandCollapseMiniControl.default.propTypes
|
|
|
68
70
|
* Function to call on pressing the panel's control, which should open or close the panel.
|
|
69
71
|
*/
|
|
70
72
|
onToggle: _propTypes.default.func,
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* ID for DOM element on web
|
|
76
|
+
*/
|
|
77
|
+
nativeID: _propTypes.default.string,
|
|
71
78
|
children: _propTypes.default.node.isRequired
|
|
72
79
|
};
|
|
73
80
|
ExpandCollapseMini.defaultProps = {
|
|
74
|
-
onToggle: () => {}
|
|
81
|
+
onToggle: () => {},
|
|
82
|
+
nativeID: ''
|
|
75
83
|
};
|
|
76
84
|
var _default = ExpandCollapseMini;
|
|
77
85
|
exports.default = _default;
|
package/lib/Table/Table.js
CHANGED
|
@@ -107,7 +107,6 @@ const Table = _ref2 => {
|
|
|
107
107
|
ref: containerRef,
|
|
108
108
|
isScrollable: isScrollable,
|
|
109
109
|
tablePaddingBottom: tablePaddingBottom,
|
|
110
|
-
...selectProps(rest),
|
|
111
110
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TableContext.Provider, {
|
|
112
111
|
value: {
|
|
113
112
|
text,
|
|
@@ -121,6 +120,7 @@ const Table = _ref2 => {
|
|
|
121
120
|
tableWidth: tableWidth,
|
|
122
121
|
cellSpacing: 0,
|
|
123
122
|
ref: tableRef,
|
|
123
|
+
...selectProps(rest),
|
|
124
124
|
children: children
|
|
125
125
|
})
|
|
126
126
|
})
|
|
@@ -8,6 +8,7 @@ const ExpandCollapseMini = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
8
8
|
children,
|
|
9
9
|
onToggle,
|
|
10
10
|
tokens,
|
|
11
|
+
nativeID,
|
|
11
12
|
...rest
|
|
12
13
|
} = _ref;
|
|
13
14
|
|
|
@@ -39,6 +40,7 @@ const ExpandCollapseMini = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
39
40
|
...rest
|
|
40
41
|
}),
|
|
41
42
|
controlRef: ref,
|
|
43
|
+
nativeID: nativeID,
|
|
42
44
|
children: children
|
|
43
45
|
})
|
|
44
46
|
});
|
|
@@ -50,9 +52,15 @@ ExpandCollapseMini.propTypes = { ...ExpandCollapseMiniControl.propTypes,
|
|
|
50
52
|
* Function to call on pressing the panel's control, which should open or close the panel.
|
|
51
53
|
*/
|
|
52
54
|
onToggle: PropTypes.func,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* ID for DOM element on web
|
|
58
|
+
*/
|
|
59
|
+
nativeID: PropTypes.string,
|
|
53
60
|
children: PropTypes.node.isRequired
|
|
54
61
|
};
|
|
55
62
|
ExpandCollapseMini.defaultProps = {
|
|
56
|
-
onToggle: () => {}
|
|
63
|
+
onToggle: () => {},
|
|
64
|
+
nativeID: ''
|
|
57
65
|
};
|
|
58
66
|
export default ExpandCollapseMini;
|
|
@@ -80,7 +80,6 @@ const Table = _ref2 => {
|
|
|
80
80
|
ref: containerRef,
|
|
81
81
|
isScrollable: isScrollable,
|
|
82
82
|
tablePaddingBottom: tablePaddingBottom,
|
|
83
|
-
...selectProps(rest),
|
|
84
83
|
children: /*#__PURE__*/_jsx(TableContext.Provider, {
|
|
85
84
|
value: {
|
|
86
85
|
text,
|
|
@@ -94,6 +93,7 @@ const Table = _ref2 => {
|
|
|
94
93
|
tableWidth: tableWidth,
|
|
95
94
|
cellSpacing: 0,
|
|
96
95
|
ref: tableRef,
|
|
96
|
+
...selectProps(rest),
|
|
97
97
|
children: children
|
|
98
98
|
})
|
|
99
99
|
})
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
],
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@gorhom/portal": "^1.0.14",
|
|
8
|
-
"@telus-uds/components-base": "1.59.
|
|
8
|
+
"@telus-uds/components-base": "1.59.2",
|
|
9
9
|
"@telus-uds/system-constants": "^1.3.0",
|
|
10
10
|
"fscreen": "^1.2.0",
|
|
11
11
|
"lodash.omit": "^4.5.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"skip": true
|
|
64
64
|
},
|
|
65
65
|
"types": "types/index.d.ts",
|
|
66
|
-
"version": "2.17.
|
|
66
|
+
"version": "2.17.2"
|
|
67
67
|
}
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import { ExpandCollapse } from '@telus-uds/components-base'
|
|
4
4
|
import ExpandCollapseMiniControl from './ExpandCollapseMiniControl'
|
|
5
5
|
|
|
6
|
-
const ExpandCollapseMini = forwardRef(({ children, onToggle, tokens, ...rest }, ref) => {
|
|
6
|
+
const ExpandCollapseMini = forwardRef(({ children, onToggle, tokens, nativeID, ...rest }, ref) => {
|
|
7
7
|
const handleChange = (openPanels, event) => {
|
|
8
8
|
if (typeof onToggle === 'function') {
|
|
9
9
|
const isOpen = openPanels.length > 0
|
|
@@ -31,6 +31,7 @@ const ExpandCollapseMini = forwardRef(({ children, onToggle, tokens, ...rest },
|
|
|
31
31
|
<ExpandCollapseMiniControl pressableState={pressableState} {...rest} />
|
|
32
32
|
)}
|
|
33
33
|
controlRef={ref}
|
|
34
|
+
nativeID={nativeID}
|
|
34
35
|
>
|
|
35
36
|
{children}
|
|
36
37
|
</ExpandCollapse.Panel>
|
|
@@ -46,10 +47,15 @@ ExpandCollapseMini.propTypes = {
|
|
|
46
47
|
* Function to call on pressing the panel's control, which should open or close the panel.
|
|
47
48
|
*/
|
|
48
49
|
onToggle: PropTypes.func,
|
|
50
|
+
/**
|
|
51
|
+
* ID for DOM element on web
|
|
52
|
+
*/
|
|
53
|
+
nativeID: PropTypes.string,
|
|
49
54
|
children: PropTypes.node.isRequired
|
|
50
55
|
}
|
|
51
56
|
ExpandCollapseMini.defaultProps = {
|
|
52
|
-
onToggle: () => {}
|
|
57
|
+
onToggle: () => {},
|
|
58
|
+
nativeID: ''
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export default ExpandCollapseMini
|
package/src/Table/Table.jsx
CHANGED
|
@@ -81,7 +81,6 @@ const Table = ({
|
|
|
81
81
|
ref={containerRef}
|
|
82
82
|
isScrollable={isScrollable}
|
|
83
83
|
tablePaddingBottom={tablePaddingBottom}
|
|
84
|
-
{...selectProps(rest)}
|
|
85
84
|
>
|
|
86
85
|
<TableContext.Provider value={{ text, isScrollable, tokens, spacing }}>
|
|
87
86
|
<StyledTable
|
|
@@ -90,6 +89,7 @@ const Table = ({
|
|
|
90
89
|
tableWidth={tableWidth}
|
|
91
90
|
cellSpacing={0}
|
|
92
91
|
ref={tableRef}
|
|
92
|
+
{...selectProps(rest)}
|
|
93
93
|
>
|
|
94
94
|
{children}
|
|
95
95
|
</StyledTable>
|
package/types/common.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export type Tokens = Record<string, any>
|
|
|
145
145
|
|
|
146
146
|
export type CopyLang = 'en' | 'fr'
|
|
147
147
|
|
|
148
|
-
export type Variant = Record<string, string | number | boolean>
|
|
148
|
+
export type Variant = Record<string, string | number | boolean | undefined>
|
|
149
149
|
|
|
150
150
|
export interface PressableState {
|
|
151
151
|
pressed: boolean
|