@telus-uds/components-base 1.33.0 → 1.34.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,26 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Tue, 04 Apr 2023 19:53:51 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 13 Apr 2023 05:51:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.34.0
8
+
9
+ Thu, 13 Apr 2023 05:51:59 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - feature: standardize Radio for Allium, Public Mobile, Koodo (samuraix221@hotmail.com)
14
+ - select standardization (samuraix221@hotmail.com)
15
+ - Bump @telus-uds/system-theme-tokens to v2.18.0
16
+
17
+ ### Patches
18
+
19
+ - Fix where `Modal` clips long content (shahzaibkhalidmalik@outlook.com)
20
+
7
21
  ## 1.33.0
8
22
 
9
- Tue, 04 Apr 2023 19:53:51 GMT
23
+ Tue, 04 Apr 2023 20:00:31 GMT
10
24
 
11
25
  ### Minor changes
12
26
 
@@ -745,7 +759,7 @@ Wed, 30 Mar 2022 09:49:18 GMT
745
759
 
746
760
  ### Bug Fixes
747
761
 
748
- - same rnw dep specification for base as components-allium-web ([#642](https://github.com/telus/universal-design-system/issues/642)) ([d40a9a2](https://github.com/telus/universal-design-system/commit/d40a9a2eade0a6ab276f13d02758fff0a88c2ecd))
762
+ - same rnw dep specification for base as ds-allium ([#642](https://github.com/telus/universal-design-system/issues/642)) ([d40a9a2](https://github.com/telus/universal-design-system/commit/d40a9a2eade0a6ab276f13d02758fff0a88c2ecd))
749
763
 
750
764
  ### [0.0.2-prerelease.3](https://github.com/telus/universal-design-system/compare/@telus-uds/components-base/v0.0.2-prerelease.2...@telus-uds/components-base/v0.0.2-prerelease.3) (2021-10-12)
751
765
 
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "schema": {
3
3
  "components": {
4
+ "Callout": {
5
+ "background": "color",
6
+ "gap": "size",
7
+ "borderRadius": "size",
8
+ "paddingLeft": "size",
9
+ "paddingRight": "size",
10
+ "paddingTop": "size",
11
+ "paddingBottom": "size",
12
+ "color": "color"
13
+ },
14
+ "FootnoteLink": {
15
+ "lineHeight": "lineHeight",
16
+ "paddingLeft": "size",
17
+ "paddingRight": "size"
18
+ },
19
+ "Footnote": {
20
+ "footnoteBackground": "color",
21
+ "footnoteBorderTopSizeMd": "border",
22
+ "footnoteBorderColorMd": "color",
23
+ "headerMargin": "size",
24
+ "footnoteBodyBackground": "color",
25
+ "footnoteBodyPaddingLeft": "size",
26
+ "footnoteBodyPaddingRight": "size",
27
+ "footnoteBodyPaddingTop": "size",
28
+ "footnoteBodyPaddingBottom": "size",
29
+ "listPaddingLeft": "size",
30
+ "listItemMarkerFontSize": "size",
31
+ "listItemMarkerLineHeight": "lineHeight",
32
+ "listItemColor": "color",
33
+ "listItemFontSize": "size",
34
+ "listItemLineHeight": "lineHeight",
35
+ "listItemPaddingLeft": "size",
36
+ "closeButtonBorderSize": "border",
37
+ "closeButtonBorderColor": "color",
38
+ "closeButtonHeight": "size",
39
+ "closeButtonMarginTop": "size",
40
+ "closeButtonMarginLeft": "size",
41
+ "closeButtonMarginRight": "size",
42
+ "closeButtonMarginBottom": "size",
43
+ "closeButtonWidth": "size",
44
+ "closeButtonIconSize": "size"
45
+ },
46
+ "PriceLockup": {
47
+ "footnoteMarginTop": "size",
48
+ "footnoteGap": "size",
49
+ "bottomTextMarginTop": "size",
50
+ "priceMarginBottom": "size",
51
+ "bottomLinksMarginLeft": "size",
52
+ "topTextMarginBottom": "size",
53
+ "strikeThroughHeight": "size",
54
+ "strikeThroughBackground": "color",
55
+ "fontColor": "color",
56
+ "dividerColor": "color"
57
+ },
4
58
  "ActivityIndicator": {
5
59
  "size": "size",
6
60
  "thickness": "border",
@@ -142,6 +196,21 @@
142
196
  "minWidth": "size",
143
197
  "shadow": "shadow"
144
198
  },
199
+ "PreviewCard": {
200
+ "flex": "integer",
201
+ "outerBorderColor": "color",
202
+ "outerBorderGap": "size",
203
+ "outerBorderWidth": "size",
204
+ "backgroundColor": "color",
205
+ "separatorColor": "color",
206
+ "borderColor": "color",
207
+ "borderRadius": "radius",
208
+ "borderWidth": "border",
209
+ "paddingBottom": "size",
210
+ "paddingLeft": "size",
211
+ "paddingRight": "size",
212
+ "paddingTop": "size"
213
+ },
145
214
  "Carousel": {
146
215
  "backgroundColor": "color",
147
216
  "nextIcon": "icon",
@@ -223,11 +292,69 @@
223
292
  "width": "size",
224
293
  "color": "color"
225
294
  },
295
+ "DatePicker": {
296
+ "hiddenInputFieldContainerHeight": "size",
297
+ "hiddenInputFieldContainerWidth": "size",
298
+ "previousIcon": "icon",
299
+ "nextIcon": "icon",
300
+ "singleDatePickerBorderColor": "color",
301
+ "singleDatePickerRadius": "radius",
302
+ "singleDatePickerPaddingTopBottom": "size",
303
+ "singleDatePickerLeftRight": "size",
304
+ "dateInputBorderColor": "color",
305
+ "dateInputBorderRadius": "radius",
306
+ "invalidInputMixin": "color",
307
+ "validInputMixin": "color",
308
+ "dateInputHoverBorderColor": "color",
309
+ "dateInputFocusBorderColor": "color",
310
+ "dateInputInsideBorderColor": "color",
311
+ "dateInputInsideColor": "color",
312
+ "dateInputStrokeColor": "color",
313
+ "calendarMonthCaptionColor": "color",
314
+ "calendarMonthCaptionFontSize": "fontSize",
315
+ "calendarMonthCaptionLineHeight": "lineHeight",
316
+ "calendarMonthCaptionPaddingBottom": "size",
317
+ "dayPickerNavigationButtonBorderColor": "color",
318
+ "dayPickerNavigationButtonBackgroundColor": "color",
319
+ "dayPickerNavigationButtonMaxHeight": "size",
320
+ "dayPickerNavigationButtonMaxWidth": "size",
321
+ "dayPickerNavigationButtonPadding": "size",
322
+ "dayPickerNavigationButtonChildLeft": "size",
323
+ "dayPickerNavigationButtonChildRight": "size",
324
+ "dayPickerNavigationButtonChildSvgFill": "color",
325
+ "dayPickerNavigationButtonDefaultHoverBorderColor": "color",
326
+ "dayPickerNavigationSVGHorizontalFill": "color",
327
+ "dayPickerWeekHeaderColor": "color",
328
+ "dayPickerWeekHeaderLineHeight": "lineHeight",
329
+ "dayPickerWeekHeaderSmall": "fontSize",
330
+ "calendarDayDefaultBorder": "border",
331
+ "calendarDayDefaultBorderColor": "color",
332
+ "calendarDayDefaultFontSize": "fontSize",
333
+ "calendarDayDefaultColor": "color",
334
+ "calendarDayDefaultBeforeHeight": "size",
335
+ "calendarDayDefaultBeforeWidth": "size",
336
+ "calendarDaySelectedHoverBorderColor": "color",
337
+ "calendarDaySelectedHoverColor": "color",
338
+ "calendarDaySelectedHoverBeforeBackground": "color",
339
+ "calendarDayDefaultCalendarDaySelectedHoverColor": "color",
340
+ "calendarDayDefaultCalendarDaySelectedHoverBackground": "color",
341
+ "calendarDayBlockedCalendarHoverBackground": "color",
342
+ "calendarDayBlockedCalendarHoverColor": "color",
343
+ "calendarMonthCaptionFontName": "fontName",
344
+ "dayPickerWeekHeaderFontName": "fontName",
345
+ "calendarDayDefaultFontName": "fontName",
346
+ "calendarMonthCaptionFontWeight": "fontWeight",
347
+ "dayPickerWeekHeaderFontWeight": "fontWeight",
348
+ "calendarDayDefaultFontWeight": "fontWeight"
349
+ },
226
350
  "ExpandCollapse": {
227
351
  "borderColor": "color",
228
352
  "borderWidth": "border",
229
353
  "borderStyle": "borderStyle"
230
354
  },
355
+ "ExpandCollapseMini": {
356
+ "borderWidth": "border"
357
+ },
231
358
  "ExpandCollapseControl": {
232
359
  "icon": "icon",
233
360
  "iconColor": "color",
@@ -245,6 +372,10 @@
245
372
  "borderColor": "color",
246
373
  "backgroundColor": "color"
247
374
  },
375
+ "ExpandCollapseMiniControl": {
376
+ "size": "size",
377
+ "icon": "icon"
378
+ },
248
379
  "ExpandCollapsePanel": {
249
380
  "expandDuration": "duration",
250
381
  "collapseDuration": "duration",
@@ -1005,6 +1136,12 @@
1005
1136
  "flexGrow": "integer",
1006
1137
  "flexShrink": "integer"
1007
1138
  },
1139
+ "Breadcrumbs": {
1140
+ "icon": "icon",
1141
+ "iconColor": "color",
1142
+ "iconPadding": "size",
1143
+ "listItemPadding": "size"
1144
+ },
1008
1145
  "Timeline": {
1009
1146
  "dotColor": "color",
1010
1147
  "dotWidth": "size",
@@ -1128,6 +1265,35 @@
1128
1265
  "type": "state"
1129
1266
  }
1130
1267
  },
1268
+ "PreviewCard": {
1269
+ "pressed": {
1270
+ "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.",
1271
+ "values": [
1272
+ true
1273
+ ],
1274
+ "type": "state"
1275
+ },
1276
+ "hover": {
1277
+ "description": "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1278
+ "values": [
1279
+ true
1280
+ ],
1281
+ "type": "state",
1282
+ "platforms": [
1283
+ "rn"
1284
+ ]
1285
+ },
1286
+ "focus": {
1287
+ "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.",
1288
+ "values": [
1289
+ true
1290
+ ],
1291
+ "type": "state",
1292
+ "platforms": [
1293
+ "rn"
1294
+ ]
1295
+ }
1296
+ },
1131
1297
  "ButtonDropdown": {
1132
1298
  "focus": {
1133
1299
  "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.",
@@ -241,8 +241,9 @@ const staticStyles = _StyleSheet.default.create({
241
241
 
242
242
  },
243
243
  modal: {
244
- maxHeight: '100%' // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
245
-
244
+ maxHeight: '100%',
245
+ // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
246
+ overflow: 'auto'
246
247
  },
247
248
  closeButtonContainer: {
248
249
  position: 'absolute',
@@ -67,10 +67,12 @@ const selectDescriptionStyles = _ref2 => {
67
67
  descriptionLineHeight,
68
68
  descriptionMarginLeft,
69
69
  inputSize,
70
+ fontColor,
70
71
  labelMarginLeft = 0
71
72
  } = _ref2;
72
73
  return {
73
74
  marginLeft: descriptionMarginLeft ?? containerPaddingLeft + inputSize + labelMarginLeft,
75
+ color: fontColor,
74
76
  ...(0, _ThemeProvider.applyTextStyles)({
75
77
  fontSize: descriptionFontSize,
76
78
  lineHeight: descriptionLineHeight
@@ -229,7 +231,9 @@ const Radio = /*#__PURE__*/(0, _react.forwardRef)((_ref4, ref) => {
229
231
  })
230
232
  })]
231
233
  }), Boolean(description) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.default, {
232
- style: selectDescriptionStyles(getTokens()),
234
+ style: selectDescriptionStyles({ ...getTokens(),
235
+ fontColor: labelStyles.color
236
+ }),
233
237
  children: description
234
238
  })]
235
239
  });
@@ -213,8 +213,9 @@ const staticStyles = StyleSheet.create({
213
213
 
214
214
  },
215
215
  modal: {
216
- maxHeight: '100%' // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
217
-
216
+ maxHeight: '100%',
217
+ // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
218
+ overflow: 'auto'
218
219
  },
219
220
  closeButtonContainer: {
220
221
  position: 'absolute',
@@ -43,10 +43,12 @@ const selectDescriptionStyles = _ref2 => {
43
43
  descriptionLineHeight,
44
44
  descriptionMarginLeft,
45
45
  inputSize,
46
+ fontColor,
46
47
  labelMarginLeft = 0
47
48
  } = _ref2;
48
49
  return {
49
50
  marginLeft: descriptionMarginLeft ?? containerPaddingLeft + inputSize + labelMarginLeft,
51
+ color: fontColor,
50
52
  ...applyTextStyles({
51
53
  fontSize: descriptionFontSize,
52
54
  lineHeight: descriptionLineHeight
@@ -205,7 +207,9 @@ const Radio = /*#__PURE__*/forwardRef((_ref4, ref) => {
205
207
  })
206
208
  })]
207
209
  }), Boolean(description) && /*#__PURE__*/_jsx(Text, {
208
- style: selectDescriptionStyles(getTokens()),
210
+ style: selectDescriptionStyles({ ...getTokens(),
211
+ fontColor: labelStyles.color
212
+ }),
209
213
  children: description
210
214
  })]
211
215
  });
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.17.0",
14
+ "@telus-uds/system-theme-tokens": "^2.18.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.33.0"
75
+ "version": "1.34.0"
76
76
  }
@@ -199,7 +199,8 @@ const staticStyles = StyleSheet.create({
199
199
  width: '100%' // ensure that the modal actually expands to the set maxWidth
200
200
  },
201
201
  modal: {
202
- maxHeight: '100%' // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
202
+ maxHeight: '100%', // so that the modal can expand vertically up to the sizing container's height (exclusive of its vertical padding)
203
+ overflow: 'auto'
203
204
  },
204
205
  closeButtonContainer: {
205
206
  position: 'absolute',
@@ -48,10 +48,15 @@ const selectDescriptionStyles = ({
48
48
  descriptionLineHeight,
49
49
  descriptionMarginLeft,
50
50
  inputSize,
51
+ fontColor,
51
52
  labelMarginLeft = 0
52
53
  }) => ({
53
54
  marginLeft: descriptionMarginLeft ?? containerPaddingLeft + inputSize + labelMarginLeft,
54
- ...applyTextStyles({ fontSize: descriptionFontSize, lineHeight: descriptionLineHeight })
55
+ color: fontColor,
56
+ ...applyTextStyles({
57
+ fontSize: descriptionFontSize,
58
+ lineHeight: descriptionLineHeight
59
+ })
55
60
  })
56
61
  const selectLabelStyles = ({
57
62
  labelColor,
@@ -195,7 +200,14 @@ const Radio = forwardRef(
195
200
  )}
196
201
  </View>
197
202
  {Boolean(description) && (
198
- <Text style={selectDescriptionStyles(getTokens())}>{description}</Text>
203
+ <Text
204
+ style={selectDescriptionStyles({
205
+ ...getTokens(),
206
+ fontColor: labelStyles.color
207
+ })}
208
+ >
209
+ {description}
210
+ </Text>
199
211
  )}
200
212
  </StackView>
201
213
  )