@telus-uds/system-theme-tokens 2.7.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,18 +1,31 @@
1
1
  # Change Log - @telus-uds/system-theme-tokens
2
2
 
3
- This log was last generated on Fri, 14 Oct 2022 19:26:37 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
+
7
20
  ## 2.7.0
8
21
 
9
- Fri, 14 Oct 2022 19:26:37 GMT
22
+ Fri, 14 Oct 2022 19:30:03 GMT
10
23
 
11
24
  ### Minor changes
12
25
 
13
26
  - Implementing hide label for pagination on larger screens (tiagohldb@gmail.com)
14
27
  - feat: add tokens for TextInput buttons (ruslan.bredikhin@nearform.com)
15
- - Update `Button` theme with `textLine` and `textLineStyle` (shahzaibkhalidmalik@outlook.com)
28
+ - Update `Button` theme with `textLine` and `textLineStyle` (shahzaibkhalidmalik@outlook.com)
16
29
  - Bump @telus-uds/system-constants to v1.1.0
17
30
 
18
31
  ## 2.6.0
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 },
@@ -138,9 +154,9 @@ module.exports = {
138
154
  QuickLinksList: { hover, focus, pressed },
139
155
  Radio: { checked, error, focus, hover, inactive },
140
156
  RadioCard: { pressed, checked, error, focus, hover, inactive },
141
- Search: { hover, focus, inactive },
157
+ Search: { hover, focus: inputFocus, inactive },
142
158
  SearchButton: { hover, focus, pressed, inactive },
143
- Select: { validation, hover, focus, inactive },
159
+ Select: { validation, hover, focus: inputFocus, inactive },
144
160
  SideNavItem: {
145
161
  active: {
146
162
  description:
@@ -167,7 +183,7 @@ module.exports = {
167
183
  },
168
184
  TabsItem: { focus, hover, pressed, selected },
169
185
  TagsItem: { focus, hover, pressed, inactive, selected },
170
- TextInput: { validation, hover, focus, inactive },
186
+ TextInput: { validation, hover, inactive, focus: inputFocus },
171
187
  ToggleSwitch: { focus, hover, pressed, inactive, selected },
172
188
  TooltipButton: { focus, hover, pressed },
173
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',
@@ -35,6 +35,44 @@ module.exports = {
35
35
  textLine: 'textLine',
36
36
  textLineStyle: 'textLineStyle'
37
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',
71
+ outerBorderColor: 'color',
72
+ outerBorderWidth: 'border',
73
+ outerBorderGap: 'size',
74
+ outerBackgroundColor: 'color'
75
+ },
38
76
  ButtonGroup: {
39
77
  space: 'integer',
40
78
  fieldSpace: 'integer',
@@ -85,6 +123,7 @@ module.exports = {
85
123
  shadow: 'shadow'
86
124
  },
87
125
  Carousel: {
126
+ backgroundColor: 'color',
88
127
  nextIcon: 'icon',
89
128
  previousIcon: 'icon',
90
129
  showPreviousNextNavigation: 'show',
@@ -820,6 +859,7 @@ module.exports = {
820
859
  buttonSize: 'size',
821
860
  buttonsGap: 'size',
822
861
  buttonsPaddingRight: 'size',
862
+ clearButtonIcon: 'icon',
823
863
  paddingTop: 'size',
824
864
  paddingBottom: 'size',
825
865
  paddingLeft: 'size',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/system-theme-tokens",
3
- "version": "2.7.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.1.0"
28
+ "@telus-uds/system-constants": "^1.2.0"
29
29
  }
30
30
  }