@telus-uds/components-base 1.36.0 → 1.37.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,21 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Thu, 20 Apr 2023 19:05:54 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Apr 2023 21:33:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.37.0
8
+
9
+ Mon, 24 Apr 2023 21:33:59 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - conditionally render Icon based on it being defined (kyle.king2@telus.com)
14
+ - Bump @telus-uds/system-theme-tokens to v2.22.0
15
+
7
16
  ## 1.36.0
8
17
 
9
- Thu, 20 Apr 2023 19:05:54 GMT
18
+ Thu, 20 Apr 2023 19:13:33 GMT
10
19
 
11
20
  ### Minor changes
12
21
 
@@ -119,6 +119,16 @@
119
119
  "paddingTop": "size",
120
120
  "paddingBottom": "size"
121
121
  },
122
+ "BlockQuote": {
123
+ "color": "color",
124
+ "backgroundGradient": "gradient",
125
+ "paddingLeft": "size",
126
+ "paddingRight": "size",
127
+ "paddingTop": "size",
128
+ "paddingBottom": "size",
129
+ "marginBottom": "size",
130
+ "width": "size"
131
+ },
122
132
  "Box": {
123
133
  "backgroundColor": "color",
124
134
  "gradient": "gradient"
@@ -496,6 +506,7 @@
496
506
  "space": "integer"
497
507
  },
498
508
  "IconButton": {
509
+ "icon": "icon",
499
510
  "backgroundColor": "color",
500
511
  "borderRadius": "radius",
501
512
  "borderColor": "color",
@@ -550,6 +561,38 @@
550
561
  "itemIconColor": "color",
551
562
  "listGutter": "size"
552
563
  },
564
+ "ListBox": {
565
+ "groupBorderRadius": "radius",
566
+ "groupBorderWidth": "border",
567
+ "groupFontSize": "size",
568
+ "groupFontName": "fontName",
569
+ "groupFontWeight": "fontWeight",
570
+ "groupColor": "color",
571
+ "groupBorderColor": "color",
572
+ "groupBackgroundColor": "color",
573
+ "groupPaddingTop": "size",
574
+ "groupPaddingBottom": "size",
575
+ "groupPaddingLeft": "size",
576
+ "groupPaddingRight": "size",
577
+ "groupIcon": "icon",
578
+ "itemDisplay": "show",
579
+ "itemFontName": "fontName",
580
+ "itemFontWeight": "fontWeight",
581
+ "itemFontSize": "size",
582
+ "itemPaddingTop": "size",
583
+ "itemPaddingBottom": "size",
584
+ "itemPaddingLeft": "size",
585
+ "itemPaddingRight": "size",
586
+ "itemColor": "color",
587
+ "itemBackgroundColor": "color",
588
+ "itemBorderBackgroundColor": "color",
589
+ "itemBorderLeftColor": "color",
590
+ "itemBorderLeftWidth": "border",
591
+ "itemBorderWidth": "border",
592
+ "itemTextDecoration": "textLine",
593
+ "itemOutline": "border",
594
+ "shadow": "shadow"
595
+ },
553
596
  "OrderedList": {
554
597
  "headerFontWeight": "fontWeight",
555
598
  "headerFontName": "fontName",
@@ -1714,6 +1757,56 @@
1714
1757
  "type": "state"
1715
1758
  }
1716
1759
  },
1760
+ "ListBox": {
1761
+ "focus": {
1762
+ "description": "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
1763
+ "values": [
1764
+ true
1765
+ ],
1766
+ "type": "state",
1767
+ "platforms": [
1768
+ "rn"
1769
+ ]
1770
+ },
1771
+ "hover": {
1772
+ "description": "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1773
+ "values": [
1774
+ true
1775
+ ],
1776
+ "type": "state",
1777
+ "platforms": [
1778
+ "rn"
1779
+ ]
1780
+ },
1781
+ "pressed": {
1782
+ "description": "Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.",
1783
+ "values": [
1784
+ true
1785
+ ],
1786
+ "type": "state"
1787
+ },
1788
+ "expanded": {
1789
+ "description": "Applies when an ExpandCollapse panel is open and the content inside is visible",
1790
+ "values": [
1791
+ true
1792
+ ],
1793
+ "type": "state"
1794
+ },
1795
+ "current": {
1796
+ "description": "When the current item is selected",
1797
+ "values": [
1798
+ true
1799
+ ],
1800
+ "type": "state"
1801
+ },
1802
+ "isChild": {
1803
+ "description": "when the item is child of another child",
1804
+ "values": [
1805
+ true
1806
+ ],
1807
+ "type": "state"
1808
+ }
1809
+ },
1717
1810
  "Modal": {
1718
1811
  "maxWidth": {
1719
1812
  "description": "Whether a modal should expand responsively to the maximum of 8 layout columns width",
@@ -5155,14 +5248,11 @@
5155
5248
  "docs": {
5156
5249
  "description": "A pressable themeless base component that handles pressable states and passes tokens\nbased on these to an outer border and a base Card component. Not intended to be used in\napps or sites directly: build themed components on top of this.",
5157
5250
  "props": {
5158
- "accessibilityRole": {
5251
+ "variant": {
5159
5252
  "defaultValue": {
5160
- "value": "href ? 'link' : 'button'",
5253
+ "value": "{}",
5161
5254
  "computed": false
5162
5255
  },
5163
- "required": false
5164
- },
5165
- "variant": {
5166
5256
  "type": {
5167
5257
  "name": "objectOf",
5168
5258
  "value": {
@@ -5183,10 +5273,18 @@
5183
5273
  "required": false,
5184
5274
  "description": ""
5185
5275
  },
5276
+ "accessibilityRole": {
5277
+ "defaultValue": {
5278
+ "value": "href ? 'link' : 'button'",
5279
+ "computed": false
5280
+ },
5281
+ "required": false
5282
+ },
5186
5283
  "tokens": {
5187
5284
  "type": {
5188
5285
  "name": "custom",
5189
5286
  "raw": {
5287
+ "icon": "icon",
5190
5288
  "backgroundColor": "color",
5191
5289
  "borderRadius": "radius",
5192
5290
  "borderColor": "color",
@@ -86,7 +86,7 @@ const selectInnerStyle = _ref2 => {
86
86
  const IconButton = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
87
87
  let {
88
88
  tokens,
89
- variant,
89
+ variant = {},
90
90
  icon: IconComponent,
91
91
  href,
92
92
  hrefAttrs,
@@ -134,7 +134,8 @@ const IconButton = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
134
134
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
135
135
  icon: IconComponent,
136
136
  title: selectedProps.accessibilityLabel,
137
- tokens: (0, _utils.selectTokens)('Icon', themeTokens, 'icon')
137
+ tokens: (0, _utils.selectTokens)('Icon', themeTokens, 'icon'),
138
+ variant: variant
138
139
  })
139
140
  });
140
141
  }
@@ -63,7 +63,7 @@ const selectInnerStyle = _ref2 => {
63
63
  const IconButton = /*#__PURE__*/forwardRef((_ref3, ref) => {
64
64
  let {
65
65
  tokens,
66
- variant,
66
+ variant = {},
67
67
  icon: IconComponent,
68
68
  href,
69
69
  hrefAttrs,
@@ -109,7 +109,8 @@ const IconButton = /*#__PURE__*/forwardRef((_ref3, ref) => {
109
109
  children: /*#__PURE__*/_jsx(Icon, {
110
110
  icon: IconComponent,
111
111
  title: selectedProps.accessibilityLabel,
112
- tokens: selectTokens('Icon', themeTokens, 'icon')
112
+ tokens: selectTokens('Icon', themeTokens, 'icon'),
113
+ variant: variant
113
114
  })
114
115
  });
115
116
  }
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.21.0",
14
+ "@telus-uds/system-theme-tokens": "^2.22.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.36.0"
75
+ "version": "1.37.0"
76
76
  }
@@ -54,7 +54,7 @@ const IconButton = forwardRef(
54
54
  (
55
55
  {
56
56
  tokens,
57
- variant,
57
+ variant = {},
58
58
  icon: IconComponent,
59
59
  href,
60
60
  hrefAttrs,
@@ -93,6 +93,7 @@ const IconButton = forwardRef(
93
93
  icon={IconComponent}
94
94
  title={selectedProps.accessibilityLabel}
95
95
  tokens={selectTokens('Icon', themeTokens, 'icon')}
96
+ variant={variant}
96
97
  />
97
98
  </View>
98
99
  )