@telus-uds/system-theme-tokens 2.6.0 → 2.8.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,36 @@
1
1
  # Change Log - @telus-uds/system-theme-tokens
2
2
 
3
- This log was last generated on Mon, 19 Sep 2022 22:48:56 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 08 Nov 2022 01:32:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.8.0
8
+
9
+ Tue, 08 Nov 2022 01:32:09 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - feat: add ButtonDropdown component. (ugursysl@gmail.com)
14
+ - Background feature for Carousel (tiagohldb@gmail.com)
15
+ - Add platform specificity to some appearances (alan.slater@nearform.com)
16
+ - Box gradient (tiagohldb@gmail.com)
17
+ - feat: add clear button tokens to TextInput (ruslan.bredikhin@nearform.com)
18
+ - Bump @telus-uds/system-constants to v1.2.0
19
+
20
+ ## 2.7.0
21
+
22
+ Fri, 14 Oct 2022 19:30:03 GMT
23
+
24
+ ### Minor changes
25
+
26
+ - Implementing hide label for pagination on larger screens (tiagohldb@gmail.com)
27
+ - feat: add tokens for TextInput buttons (ruslan.bredikhin@nearform.com)
28
+ - Update `Button` theme with `textLine` and `textLineStyle` (shahzaibkhalidmalik@outlook.com)
29
+ - Bump @telus-uds/system-constants to v1.1.0
30
+
7
31
  ## 2.6.0
8
32
 
9
- Mon, 19 Sep 2022 22:48:56 GMT
33
+ Mon, 19 Sep 2022 22:51:24 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
package/appearances.js CHANGED
@@ -7,6 +7,14 @@ const focus = {
7
7
  description:
8
8
  "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
9
9
  values: [true],
10
+ type: 'state',
11
+ platforms: ['rn'] // In most cases, Native Apps team want to skip focus state
12
+ }
13
+
14
+ const inputFocus = {
15
+ description:
16
+ 'Focus states for some input elements are well supported across web, RN, ios and android',
17
+ values: [true],
10
18
  type: 'state'
11
19
  }
12
20
 
@@ -14,7 +22,8 @@ const hover = {
14
22
  description:
15
23
  "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
16
24
  values: [true],
17
- type: 'state'
25
+ type: 'state',
26
+ platforms: ['rn'] // Native Apps team currently want to skip ios / android hover
18
27
  }
19
28
 
20
29
  const pressed = {
@@ -50,6 +59,12 @@ const validation = {
50
59
  type: 'state'
51
60
  }
52
61
 
62
+ const open = {
63
+ description: 'Applies when a ButtonDropdown is open.',
64
+ values: [true],
65
+ type: 'state'
66
+ }
67
+
53
68
  // TODO this is used in radio and checkbox, should re-use validation state above?
54
69
  const error = { values: [true], type: 'state' }
55
70
 
@@ -70,6 +85,7 @@ module.exports = {
70
85
  }
71
86
  },
72
87
  Button: { focus, hover, pressed, inactive, selected },
88
+ ButtonDropdown: { focus, hover, pressed, inactive, selected, open },
73
89
  ButtonGroupItem: { focus, hover, pressed, inactive, selected },
74
90
  CarouselTabsPanelItem: { focus, hover, pressed, inactive, selected },
75
91
  Checkbox: { checked, error, focus, hover, inactive },
@@ -127,15 +143,20 @@ module.exports = {
127
143
  values: ['previous', 'next'],
128
144
  description: "Determines which way does the button navigate in Pagination's context",
129
145
  type: 'state'
146
+ },
147
+ compact: {
148
+ values: [true],
149
+ description: 'Determines if the "Next" and "Previous" labels should be omitted',
150
+ type: 'state'
130
151
  }
131
152
  },
132
153
  ProgressBar: { inactive },
133
154
  QuickLinksList: { hover, focus, pressed },
134
155
  Radio: { checked, error, focus, hover, inactive },
135
156
  RadioCard: { pressed, checked, error, focus, hover, inactive },
136
- Search: { hover, focus, inactive },
157
+ Search: { hover, focus: inputFocus, inactive },
137
158
  SearchButton: { hover, focus, pressed, inactive },
138
- Select: { validation, hover, focus, inactive },
159
+ Select: { validation, hover, focus: inputFocus, inactive },
139
160
  SideNavItem: {
140
161
  active: {
141
162
  description:
@@ -162,7 +183,7 @@ module.exports = {
162
183
  },
163
184
  TabsItem: { focus, hover, pressed, selected },
164
185
  TagsItem: { focus, hover, pressed, inactive, selected },
165
- TextInput: { validation, hover, focus, inactive },
186
+ TextInput: { validation, hover, inactive, focus: inputFocus },
166
187
  ToggleSwitch: { focus, hover, pressed, inactive, selected },
167
188
  TooltipButton: { focus, hover, pressed },
168
189
  SkipLink: { focus }
package/components.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Define the required components and their supported tokens
2
2
  module.exports = {
3
3
  ActivityIndicator: { size: 'size', thickness: 'border', color: 'color' },
4
- Box: { backgroundColor: 'color' },
4
+ Box: { backgroundColor: 'color', gradient: 'gradient' },
5
5
  Button: {
6
6
  borderColor: 'color',
7
7
  borderWidth: 'border',
@@ -28,6 +28,46 @@ module.exports = {
28
28
  iconSpace: 'integer',
29
29
  icon: 'icon',
30
30
 
31
+ outerBorderColor: 'color',
32
+ outerBorderWidth: 'border',
33
+ outerBorderGap: 'size',
34
+ outerBackgroundColor: 'color',
35
+ textLine: 'textLine',
36
+ textLineStyle: 'textLineStyle'
37
+ },
38
+ ButtonDropdown: {
39
+ icon: 'icon',
40
+ iconPosition: 'position',
41
+ iconSpace: 'integer',
42
+ iconSize: 'size',
43
+ iconColor: 'color',
44
+ iconPadding: 'size',
45
+ iconAlignSelf: 'flexAlign',
46
+ iconTranslateX: 'size',
47
+ iconTranslateY: 'size',
48
+ iconBackground: 'color',
49
+ iconBorderRadius: 'radius',
50
+ // These are duplicated Button tokens. TODO: consider token sets to reduce duplication.
51
+ // https://github.com/telus/universal-design-system/issues/782
52
+ borderColor: 'color',
53
+ borderWidth: 'border',
54
+ borderRadius: 'radius',
55
+ shadow: 'shadow',
56
+ fontSize: 'fontSize',
57
+ color: 'color',
58
+ lineHeight: 'lineHeight',
59
+ textAlign: 'flexJustifyContent',
60
+ alignSelf: 'flexAlign',
61
+ fontName: 'fontName',
62
+ fontWeight: 'fontWeight',
63
+ backgroundColor: 'color',
64
+ opacity: 'opacity',
65
+ paddingLeft: 'size',
66
+ paddingRight: 'size',
67
+ paddingTop: 'size',
68
+ paddingBottom: 'size',
69
+ width: 'size',
70
+ minWidth: 'size',
31
71
  outerBorderColor: 'color',
32
72
  outerBorderWidth: 'border',
33
73
  outerBorderGap: 'size',
@@ -83,6 +123,7 @@ module.exports = {
83
123
  shadow: 'shadow'
84
124
  },
85
125
  Carousel: {
126
+ backgroundColor: 'color',
86
127
  nextIcon: 'icon',
87
128
  previousIcon: 'icon',
88
129
  showPreviousNextNavigation: 'show',
@@ -383,7 +424,8 @@ module.exports = {
383
424
  iconSize: 'size',
384
425
  iconDisplace: 'size',
385
426
  width: 'size',
386
- textAlign: 'flexJustifyContent'
427
+ textAlign: 'flexJustifyContent',
428
+ displayLabel: 'show'
387
429
  },
388
430
  Progress: {
389
431
  backgroundColor: 'color',
@@ -814,6 +856,10 @@ module.exports = {
814
856
  borderWidth: 'border',
815
857
  borderColor: 'color',
816
858
  borderRadius: 'radius',
859
+ buttonSize: 'size',
860
+ buttonsGap: 'size',
861
+ buttonsPaddingRight: 'size',
862
+ clearButtonIcon: 'icon',
817
863
  paddingTop: 'size',
818
864
  paddingBottom: 'size',
819
865
  paddingLeft: 'size',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/system-theme-tokens",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Theme token schema for UDS",
5
5
  "keywords": [
6
6
  "system"
@@ -25,6 +25,6 @@
25
25
  "skip": true
26
26
  },
27
27
  "dependencies": {
28
- "@telus-uds/system-constants": "^1.0.4"
28
+ "@telus-uds/system-constants": "^1.2.0"
29
29
  }
30
30
  }