@telus-uds/components-web 4.2.1 → 4.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/CHANGELOG.md CHANGED
@@ -1,12 +1,41 @@
1
1
  # Change Log - @telus-uds/components-web
2
2
 
3
- This log was last generated on Wed, 05 Mar 2025 00:01:06 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Mar 2025 16:24:15 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 4.4.0
8
+
9
+ Mon, 24 Mar 2025 16:24:15 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Code, Dynatrace alerts and vulnerabilities resolved (35577399+JoshHC@users.noreply.github.com)
14
+ - `ActivityIndicator`: new animation for the spinner and new `dots` variant added (35577399+JoshHC@users.noreply.github.com)
15
+ - Bump @telus-uds/components-base to v3.5.0
16
+ - Bump @telus-uds/system-theme-tokens to v4.3.0
17
+
18
+ ### Patches
19
+
20
+ - `DatePicker`: add disabled type (sergio.ramirez@telus.com)
21
+
22
+ ## 4.3.0
23
+
24
+ Tue, 11 Mar 2025 21:16:58 GMT
25
+
26
+ ### Minor changes
27
+
28
+ - `Tooltip`: Customized/optional type props (shivam.gupta3@telus.com)
29
+ - Bump @telus-uds/components-base to v3.4.0
30
+
31
+ ### Patches
32
+
33
+ - `Table`: fix row border tokens (guillermo.peitzner@telus.com)
34
+ - `Card`: fix interactiveCard background color (guillermo.peitzner@telus.com)
35
+
7
36
  ## 4.2.1
8
37
 
9
- Wed, 05 Mar 2025 00:01:06 GMT
38
+ Wed, 05 Mar 2025 00:06:37 GMT
10
39
 
11
40
  ### Patches
12
41
 
@@ -13,7 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
  const StyledTR = /*#__PURE__*/_styledComponents.default.tr.withConfig({
14
14
  displayName: "Row__StyledTR",
15
15
  componentId: "components-web__sc-6pbb9a-0"
16
- })(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", ";border-top-width:", ";"], _ref => {
16
+ })(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", "px;border-top-width:", "px;"], _ref => {
17
17
  let {
18
18
  tokens
19
19
  } = _ref;
@@ -32,12 +32,12 @@ const StyledTR = /*#__PURE__*/_styledComponents.default.tr.withConfig({
32
32
  let {
33
33
  tokens
34
34
  } = _ref4;
35
- return tokens?.rowBorderWidth || '0px';
35
+ return `${tokens?.rowBorderWidth}` || 0;
36
36
  }, _ref5 => {
37
37
  let {
38
38
  tokens
39
39
  } = _ref5;
40
- return tokens?.rowBorderTopWidth || tokens?.rowBorderWidth;
40
+ return `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth;
41
41
  });
42
42
  const Row = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) => {
43
43
  let {
@@ -20,7 +20,7 @@ const StyledContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
20
20
  const StyledTable = /*#__PURE__*/_styledComponents.default.table.withConfig({
21
21
  displayName: "Table__StyledTable",
22
22
  componentId: "components-web__sc-10d9q3m-1"
23
- })(["margin:0;padding:0;width:", ";border:", ";"], _ref => {
23
+ })(["margin:0;padding:0;width:", ";border:", ";border-collapse:collapse;"], _ref => {
24
24
  let {
25
25
  fullWidth,
26
26
  tableWidth
@@ -137,7 +137,7 @@ const VideoPicker = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) => {
137
137
  ...themeTokens,
138
138
  isFramed: isFramed,
139
139
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoPickerPlayer.default, {
140
- video: addVideoEventHandlers(currentVideo, onPlay, onPause, onProgress),
140
+ video: addVideoEventHandlers(currentVideo),
141
141
  videoPlayerRef: videoPlayerRef,
142
142
  onStartVideo: onStartVideo
143
143
  })
@@ -6,7 +6,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const StyledTR = /*#__PURE__*/styled.tr.withConfig({
7
7
  displayName: "Row__StyledTR",
8
8
  componentId: "components-web__sc-6pbb9a-0"
9
- })(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", ";border-top-width:", ";"], _ref => {
9
+ })(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", "px;border-top-width:", "px;"], _ref => {
10
10
  let {
11
11
  tokens
12
12
  } = _ref;
@@ -25,12 +25,12 @@ const StyledTR = /*#__PURE__*/styled.tr.withConfig({
25
25
  let {
26
26
  tokens
27
27
  } = _ref4;
28
- return tokens?.rowBorderWidth || '0px';
28
+ return `${tokens?.rowBorderWidth}` || 0;
29
29
  }, _ref5 => {
30
30
  let {
31
31
  tokens
32
32
  } = _ref5;
33
- return tokens?.rowBorderTopWidth || tokens?.rowBorderWidth;
33
+ return `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth;
34
34
  });
35
35
  const Row = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
36
36
  let {
@@ -13,7 +13,7 @@ const StyledContainer = /*#__PURE__*/styled.div.withConfig({
13
13
  const StyledTable = /*#__PURE__*/styled.table.withConfig({
14
14
  displayName: "Table__StyledTable",
15
15
  componentId: "components-web__sc-10d9q3m-1"
16
- })(["margin:0;padding:0;width:", ";border:", ";"], _ref => {
16
+ })(["margin:0;padding:0;width:", ";border:", ";border-collapse:collapse;"], _ref => {
17
17
  let {
18
18
  fullWidth,
19
19
  tableWidth
@@ -128,7 +128,7 @@ const VideoPicker = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
128
128
  ...themeTokens,
129
129
  isFramed: isFramed,
130
130
  children: /*#__PURE__*/_jsx(VideoPickerPlayer, {
131
- video: addVideoEventHandlers(currentVideo, onPlay, onPause, onProgress),
131
+ video: addVideoEventHandlers(currentVideo),
132
132
  videoPlayerRef: videoPlayerRef,
133
133
  onStartVideo: onStartVideo
134
134
  })
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": "^3.3.0",
8
+ "@telus-uds/components-base": "^3.5.0",
9
9
  "@telus-uds/system-constants": "^3.0.0",
10
10
  "fscreen": "^1.2.0",
11
11
  "lodash.omit": "^4.5.0",
@@ -13,7 +13,7 @@
13
13
  "react-dates": "^21.8.0",
14
14
  "react-helmet-async": "^1.3.0",
15
15
  "react-moment-proptypes": "^1.8.1",
16
- "@telus-uds/system-theme-tokens": "^4.2.0",
16
+ "@telus-uds/system-theme-tokens": "^4.3.0",
17
17
  "prop-types": "^15.7.2",
18
18
  "lodash.throttle": "^4.1.1",
19
19
  "react-youtube": "^10.1.0",
@@ -82,5 +82,5 @@
82
82
  "skip": true
83
83
  },
84
84
  "types": "types/index.d.ts",
85
- "version": "4.2.1"
85
+ "version": "4.4.0"
86
86
  }
package/src/Table/Row.jsx CHANGED
@@ -10,8 +10,8 @@ const StyledTR = styled.tr`
10
10
  border-style: ${({ tokens }) =>
11
11
  tokens?.rowBorderWidth || tokens?.rowBorderTopWidth ? 'solid' : 'none'};
12
12
  border-color: ${({ tokens }) => tokens?.rowBorderColor};
13
- border-width: ${({ tokens }) => tokens?.rowBorderWidth || '0px'};
14
- border-top-width: ${({ tokens }) => tokens?.rowBorderTopWidth || tokens?.rowBorderWidth};
13
+ border-width: ${({ tokens }) => `${tokens?.rowBorderWidth}` || 0}px;
14
+ border-top-width: ${({ tokens }) => `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth}px;
15
15
  `
16
16
 
17
17
  const Row = React.forwardRef(({ children, tokens: rowTokens }, ref) => {
@@ -22,6 +22,7 @@ const StyledTable = styled.table`
22
22
  padding: 0;
23
23
  width: ${({ fullWidth, tableWidth }) => (fullWidth ? '100%' : `${tableWidth}px`)};
24
24
  border: ${(props) => `${props.borderWidth}px solid ${props.borderColor}`};
25
+ border-collapse: collapse;
25
26
  `
26
27
 
27
28
  const TableContext = React.createContext({})
@@ -136,7 +136,7 @@ const VideoPicker = React.forwardRef(
136
136
  >
137
137
  <VideoPlayerContainer {...themeTokens} isFramed={isFramed}>
138
138
  <VideoPickerPlayer
139
- video={addVideoEventHandlers(currentVideo, onPlay, onPause, onProgress)}
139
+ video={addVideoEventHandlers(currentVideo)}
140
140
  videoPlayerRef={videoPlayerRef}
141
141
  onStartVideo={onStartVideo}
142
142
  />
@@ -14,6 +14,7 @@ export interface DatePickerProps extends HTMLAttrs {
14
14
  hintPosition?: 'inline' | 'below'
15
15
  tooltip?: string
16
16
  validation?: 'error' | 'success'
17
+ disabled?: boolean
17
18
  }
18
19
 
19
20
  declare const DatePicker: ComponentType<DatePickerProps>
@@ -12,6 +12,8 @@ export interface TooltipProps extends A11yProps, ViewProps {
12
12
  tooltipButtonTokens?: Tokens
13
13
  variant?: Variant
14
14
  onPress?: () => void
15
+ inline?: boolean
16
+ activateOnHover?: boolean
15
17
  }
16
18
 
17
19
  declare const Tooltip: ComponentType<TooltipProps>