@telus-uds/components-base 1.31.0 → 1.33.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,34 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Mon, 03 Apr 2023 20:33:24 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 04 Apr 2023 19:53:51 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.33.0
8
+
9
+ Tue, 04 Apr 2023 19:53:51 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - fix: render with bold: true for list items with titles (kyle.king2@telus.com)
14
+ - Bump @telus-uds/system-theme-tokens to v2.17.0
15
+
16
+ ## 1.32.0
17
+
18
+ Tue, 04 Apr 2023 14:52:45 GMT
19
+
20
+ ### Minor changes
21
+
22
+ - feat: Standardize radio telus,PM,Koodo (samuraix221@hotmail.com)
23
+ - Bump @telus-uds/system-theme-tokens to v2.16.0
24
+
25
+ ### Patches
26
+
27
+ - Fixes extra spaces around `Fieldset` group (shahzaibkhalidmalik@outlook.com)
28
+
7
29
  ## 1.31.0
8
30
 
9
- Mon, 03 Apr 2023 20:33:24 GMT
31
+ Mon, 03 Apr 2023 20:41:50 GMT
10
32
 
11
33
  ### Minor changes
12
34
 
@@ -368,6 +368,22 @@
368
368
  "itemIconColor": "color",
369
369
  "listGutter": "size"
370
370
  },
371
+ "OrderedList": {
372
+ "headerFontWeight": "fontWeight",
373
+ "headerFontName": "fontName",
374
+ "itemMarginTop": "size",
375
+ "itemPaddingTop": "size",
376
+ "itemBulletWidth": "size",
377
+ "itemBulletHeight": "size",
378
+ "itemBulletContainerWidth": "size",
379
+ "interItemMargin": "size",
380
+ "listGutter": "size",
381
+ "itemFontName": "fontName",
382
+ "itemFontWeight": "fontWeight",
383
+ "itemFontSize": "fontSize",
384
+ "itemLineHeight": "lineHeight",
385
+ "itemColor": "color"
386
+ },
371
387
  "Modal": {
372
388
  "backdropColor": "color",
373
389
  "backdropOpacity": "opacity",
@@ -648,6 +664,28 @@
648
664
  "space": "integer",
649
665
  "fieldSpace": "integer"
650
666
  },
667
+ "Ribbon": {
668
+ "paddingLeft": "size",
669
+ "paddingRight": "size",
670
+ "paddingTop": "size",
671
+ "paddingBottom": "size",
672
+ "borderRadius": "size",
673
+ "backgroundColor": "color",
674
+ "boxShadowPaddingLeft": "size",
675
+ "boxShadowPaddingTop": "size",
676
+ "boxShadowPaddingRight": "size",
677
+ "boxShadowPaddingBottom": "size",
678
+ "boxShadowColor": "color",
679
+ "curveAfterWidth": "size",
680
+ "curveMarginTop": "size",
681
+ "curveAfterRadius": "size",
682
+ "curveBackgroundColor": "color",
683
+ "curveHeight": "size",
684
+ "curveWidth": "size",
685
+ "curveAfterBackgroundColor": "color",
686
+ "curveAfterHeight": "size",
687
+ "gradient": "gradient"
688
+ },
651
689
  "Search": {
652
690
  "backgroundColor": "color",
653
691
  "color": "color",
@@ -94,7 +94,7 @@ const Fieldset = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
94
94
  space,
95
95
  preserveFragments: true
96
96
  });
97
- const borderStyle = validation === 'error' && showErrorBorder && staticStyles.errorBorder || staticStyles.noBorder;
97
+ const borderStyle = validation === 'error' && showErrorBorder ? staticStyles.errorBorder : null;
98
98
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FieldsetContainer.default, {
99
99
  ref: ref,
100
100
  inactive: inactive,
@@ -113,10 +113,6 @@ const staticStyles = _StyleSheet.default.create({
113
113
  borderColor: 'red',
114
114
  borderRadius: 10,
115
115
  padding: 8
116
- },
117
- noBorder: {
118
- padding: 9,
119
- border: 'unset'
120
116
  }
121
117
  });
122
118
 
@@ -32,7 +32,7 @@ const FieldsetContainer = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
32
32
  borderStyle
33
33
  } = _ref;
34
34
  // If needs border for error design or reset the component style
35
- const styleContainer = showBorderStyle ? borderStyle : _cssReset.default;
35
+ const styleContainer = showBorderStyle && borderStyle ? borderStyle : _cssReset.default;
36
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("fieldset", {
37
37
  ref: ref,
38
38
  disabled: inactive,
@@ -41,7 +41,8 @@ const ListItem = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
41
41
  ...listItemProps,
42
42
  children: [Boolean(title) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
43
43
  variant: {
44
- size: 'h4'
44
+ size: 'h4',
45
+ bold: true
45
46
  },
46
47
  children: title
47
48
  }), children]
@@ -77,7 +77,7 @@ const Fieldset = /*#__PURE__*/forwardRef((_ref, ref) => {
77
77
  space,
78
78
  preserveFragments: true
79
79
  });
80
- const borderStyle = validation === 'error' && showErrorBorder && staticStyles.errorBorder || staticStyles.noBorder;
80
+ const borderStyle = validation === 'error' && showErrorBorder ? staticStyles.errorBorder : null;
81
81
  return /*#__PURE__*/_jsx(FieldsetContainer, {
82
82
  ref: ref,
83
83
  inactive: inactive,
@@ -95,10 +95,6 @@ const staticStyles = StyleSheet.create({
95
95
  borderColor: 'red',
96
96
  borderRadius: 10,
97
97
  padding: 8
98
- },
99
- noBorder: {
100
- padding: 9,
101
- border: 'unset'
102
98
  }
103
99
  });
104
100
  Fieldset.displayName = 'Fieldset';
@@ -16,7 +16,7 @@ const FieldsetContainer = /*#__PURE__*/forwardRef((_ref, ref) => {
16
16
  borderStyle
17
17
  } = _ref;
18
18
  // If needs border for error design or reset the component style
19
- const styleContainer = showBorderStyle ? borderStyle : cssReset;
19
+ const styleContainer = showBorderStyle && borderStyle ? borderStyle : cssReset;
20
20
  return /*#__PURE__*/_jsx("fieldset", {
21
21
  ref: ref,
22
22
  disabled: inactive,
@@ -24,7 +24,8 @@ const ListItem = /*#__PURE__*/forwardRef((_ref, ref) => {
24
24
  ...listItemProps,
25
25
  children: [Boolean(title) && /*#__PURE__*/_jsx(Typography, {
26
26
  variant: {
27
- size: 'h4'
27
+ size: 'h4',
28
+ bold: true
28
29
  },
29
30
  children: title
30
31
  }), children]
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "@floating-ui/react-native": "^0.8.1",
12
12
  "@gorhom/portal": "^1.0.14",
13
13
  "@telus-uds/system-constants": "^1.2.0",
14
- "@telus-uds/system-theme-tokens": "^2.15.0",
14
+ "@telus-uds/system-theme-tokens": "^2.17.0",
15
15
  "airbnb-prop-types": "^2.16.0",
16
16
  "lodash.debounce": "^4.0.8",
17
17
  "lodash.merge": "^4.6.2",
@@ -72,5 +72,5 @@
72
72
  "standard-engine": {
73
73
  "skip": true
74
74
  },
75
- "version": "1.31.0"
75
+ "version": "1.33.0"
76
76
  }
@@ -73,9 +73,7 @@ const Fieldset = forwardRef(
73
73
  ? [legendContent, feedbackContent, childContent]
74
74
  : [legendContent, childContent, feedbackContent]
75
75
  const stackedContent = getStackedContent(orderedContent, { space, preserveFragments: true })
76
- const borderStyle =
77
- (validation === 'error' && showErrorBorder && staticStyles.errorBorder) ||
78
- staticStyles.noBorder
76
+ const borderStyle = validation === 'error' && showErrorBorder ? staticStyles.errorBorder : null
79
77
 
80
78
  return (
81
79
  <FieldsetContainer
@@ -98,10 +96,6 @@ const staticStyles = StyleSheet.create({
98
96
  borderColor: 'red',
99
97
  borderRadius: 10,
100
98
  padding: 8
101
- },
102
- noBorder: {
103
- padding: 9,
104
- border: 'unset'
105
99
  }
106
100
  })
107
101
 
@@ -19,7 +19,7 @@ const FieldsetContainer = forwardRef(
19
19
  ref
20
20
  ) => {
21
21
  // If needs border for error design or reset the component style
22
- const styleContainer = showBorderStyle ? borderStyle : cssReset
22
+ const styleContainer = showBorderStyle && borderStyle ? borderStyle : cssReset
23
23
 
24
24
  return (
25
25
  <fieldset
@@ -12,7 +12,7 @@ const ListItem = forwardRef(({ tokens, variant, children, title, ...listItemProp
12
12
  const themeTokens = useThemeTokens('List', tokens, variant)
13
13
  return (
14
14
  <ListItemBase tokens={themeTokens} ref={ref} {...listItemProps}>
15
- {Boolean(title) && <Typography variant={{ size: 'h4' }}>{title}</Typography>}
15
+ {Boolean(title) && <Typography variant={{ size: 'h4', bold: true }}>{title}</Typography>}
16
16
  {children}
17
17
  </ListItemBase>
18
18
  )