@telus-uds/theme-allium 4.23.0 → 4.23.1

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.
Files changed (231) hide show
  1. package/build/android/TermsAndConditions.json +57 -0
  2. package/build/android/schema.json +1004 -959
  3. package/build/android/theme.json +58 -1
  4. package/build/ios/TermsAndConditions.json +57 -0
  5. package/build/ios/schema.json +1004 -959
  6. package/build/ios/theme.json +58 -1
  7. package/build/rn/ActivityIndicator.js +1 -1
  8. package/build/rn/Badge.js +1 -1
  9. package/build/rn/BlockQuote.js +1 -1
  10. package/build/rn/Box.js +1 -1
  11. package/build/rn/Breadcrumbs.js +1 -1
  12. package/build/rn/Button.js +3 -3
  13. package/build/rn/ButtonDropdown.js +3 -3
  14. package/build/rn/ButtonGroup.js +1 -1
  15. package/build/rn/ButtonGroupItem.js +3 -3
  16. package/build/rn/Callout.js +1 -1
  17. package/build/rn/Card.js +3 -3
  18. package/build/rn/Carousel.js +1 -1
  19. package/build/rn/CarouselTabsPanelItem.js +3 -3
  20. package/build/rn/CarouselThumbnail.js +3 -3
  21. package/build/rn/Checkbox.js +3 -3
  22. package/build/rn/CheckboxCard.js +3 -3
  23. package/build/rn/CheckboxCardGroup.js +1 -1
  24. package/build/rn/CheckboxGroup.js +1 -1
  25. package/build/rn/ChevronLink.js +3 -3
  26. package/build/rn/ColourToggle.js +3 -3
  27. package/build/rn/Countdown.js +1 -1
  28. package/build/rn/DatePicker.js +1 -1
  29. package/build/rn/Disclaimer.js +1 -1
  30. package/build/rn/Divider.js +1 -1
  31. package/build/rn/ExpandCollapse.js +1 -1
  32. package/build/rn/ExpandCollapseControl.js +1 -1
  33. package/build/rn/ExpandCollapseMini.js +1 -1
  34. package/build/rn/ExpandCollapseMiniControl.js +1 -1
  35. package/build/rn/ExpandCollapsePanel.js +1 -1
  36. package/build/rn/Feedback.js +1 -1
  37. package/build/rn/Fieldset.js +1 -1
  38. package/build/rn/Footnote.js +1 -1
  39. package/build/rn/FootnoteLink.js +1 -1
  40. package/build/rn/HorizontalScrollButton.js +3 -3
  41. package/build/rn/Icon.js +1 -1
  42. package/build/rn/IconButton.js +3 -3
  43. package/build/rn/Image.js +1 -1
  44. package/build/rn/InputLabel.js +1 -1
  45. package/build/rn/InputSupports.js +1 -1
  46. package/build/rn/Link.js +3 -3
  47. package/build/rn/List.js +1 -1
  48. package/build/rn/Listbox.js +3 -3
  49. package/build/rn/Modal.js +1 -1
  50. package/build/rn/MultiSelectFilter.js +1 -1
  51. package/build/rn/NavigationBar.js +3 -3
  52. package/build/rn/Notification.js +1 -1
  53. package/build/rn/OrderedList.js +1 -1
  54. package/build/rn/Pagination.js +1 -1
  55. package/build/rn/PaginationPageButton.js +3 -3
  56. package/build/rn/PaginationSideButton.js +3 -3
  57. package/build/rn/PreviewCard.js +4 -4
  58. package/build/rn/PriceLockup.js +1 -1
  59. package/build/rn/Progress.js +1 -1
  60. package/build/rn/ProgressBar.js +1 -1
  61. package/build/rn/QuantitySelector.js +1 -1
  62. package/build/rn/QuantitySelectorSideButton.js +1 -1
  63. package/build/rn/QuickLinks.js +1 -1
  64. package/build/rn/QuickLinksButton.js +3 -3
  65. package/build/rn/QuickLinksCard.js +1 -1
  66. package/build/rn/QuickLinksFeature.js +1 -1
  67. package/build/rn/QuickLinksFeatureItem.js +3 -3
  68. package/build/rn/QuickLinksList.js +3 -3
  69. package/build/rn/Radio.js +3 -3
  70. package/build/rn/RadioCard.js +3 -3
  71. package/build/rn/RadioCardGroup.js +1 -1
  72. package/build/rn/RadioGroup.js +1 -1
  73. package/build/rn/Ribbon.js +1 -1
  74. package/build/rn/Search.js +2 -2
  75. package/build/rn/SearchButton.js +3 -3
  76. package/build/rn/Select.js +2 -2
  77. package/build/rn/SideNav.js +1 -1
  78. package/build/rn/SideNavItem.js +3 -3
  79. package/build/rn/SideNavItemsGroup.js +1 -1
  80. package/build/rn/Skeleton.js +1 -1
  81. package/build/rn/SkipLink.js +2 -2
  82. package/build/rn/Spinner.js +1 -1
  83. package/build/rn/SplashButton.js +2 -2
  84. package/build/rn/SplashButtonWithDetails.js +2 -2
  85. package/build/rn/StackView.js +1 -1
  86. package/build/rn/StepTracker.js +1 -1
  87. package/build/rn/StoryCard.js +3 -3
  88. package/build/rn/Table.js +1 -1
  89. package/build/rn/Tabs.js +1 -1
  90. package/build/rn/TabsItem.js +1 -1
  91. package/build/rn/Tags.js +1 -1
  92. package/build/rn/TagsItem.js +3 -3
  93. package/build/rn/TermsAndConditions.js +36 -2
  94. package/build/rn/Testimonial.js +1 -1
  95. package/build/rn/TextArea.js +1 -1
  96. package/build/rn/TextInput.js +2 -2
  97. package/build/rn/Timeline.js +1 -1
  98. package/build/rn/Toast.js +1 -1
  99. package/build/rn/ToggleSwitch.js +3 -3
  100. package/build/rn/ToggleSwitchGroup.js +1 -1
  101. package/build/rn/Tooltip.js +1 -1
  102. package/build/rn/TooltipButton.js +3 -3
  103. package/build/rn/Typography.js +1 -1
  104. package/build/rn/Video.js +1 -1
  105. package/build/rn/VideoButton.js +1 -1
  106. package/build/rn/VideoControlBar.js +1 -1
  107. package/build/rn/VideoMenu.js +1 -1
  108. package/build/rn/VideoMiddleControlButton.js +1 -1
  109. package/build/rn/VideoPicker.js +1 -1
  110. package/build/rn/VideoPickerSlider.js +1 -1
  111. package/build/rn/VideoPickerThumbnail.js +3 -3
  112. package/build/rn/VideoProgressBar.js +1 -1
  113. package/build/rn/VideoVolumeSlider.js +1 -1
  114. package/build/rn/WaffleGrid.js +1 -1
  115. package/build/rn/schema.json +1004 -959
  116. package/build/rn/spacingScale.js +1 -1
  117. package/build/rn/theme.js +103 -69
  118. package/build/web/ActivityIndicator.js +1 -1
  119. package/build/web/Badge.js +1 -1
  120. package/build/web/BlockQuote.js +1 -1
  121. package/build/web/Box.js +1 -1
  122. package/build/web/Breadcrumbs.js +1 -1
  123. package/build/web/Button.js +94 -1
  124. package/build/web/ButtonDropdown.js +36 -1
  125. package/build/web/ButtonGroup.js +1 -1
  126. package/build/web/ButtonGroupItem.js +35 -1
  127. package/build/web/Callout.js +1 -1
  128. package/build/web/Card.js +25 -2
  129. package/build/web/Carousel.js +1 -1
  130. package/build/web/CarouselTabsPanelItem.js +57 -1
  131. package/build/web/CarouselThumbnail.js +18 -1
  132. package/build/web/Checkbox.js +30 -1
  133. package/build/web/CheckboxCard.js +35 -1
  134. package/build/web/CheckboxCardGroup.js +1 -1
  135. package/build/web/CheckboxGroup.js +1 -1
  136. package/build/web/ChevronLink.js +38 -1
  137. package/build/web/ColourToggle.js +29 -1
  138. package/build/web/Countdown.js +1 -1
  139. package/build/web/DatePicker.js +1 -1
  140. package/build/web/Disclaimer.js +1 -1
  141. package/build/web/Divider.js +1 -1
  142. package/build/web/ExpandCollapse.js +1 -1
  143. package/build/web/ExpandCollapseControl.js +1 -1
  144. package/build/web/ExpandCollapseMini.js +1 -1
  145. package/build/web/ExpandCollapseMiniControl.js +1 -1
  146. package/build/web/ExpandCollapsePanel.js +1 -1
  147. package/build/web/Feedback.js +1 -1
  148. package/build/web/Fieldset.js +1 -1
  149. package/build/web/Footnote.js +1 -1
  150. package/build/web/FootnoteLink.js +1 -1
  151. package/build/web/HorizontalScrollButton.js +17 -1
  152. package/build/web/Icon.js +1 -1
  153. package/build/web/IconButton.js +76 -1
  154. package/build/web/Image.js +1 -1
  155. package/build/web/InputLabel.js +1 -1
  156. package/build/web/InputSupports.js +1 -1
  157. package/build/web/Link.js +70 -2
  158. package/build/web/List.js +1 -1
  159. package/build/web/Listbox.js +61 -1
  160. package/build/web/Modal.js +1 -1
  161. package/build/web/MultiSelectFilter.js +1 -1
  162. package/build/web/NavigationBar.js +40 -1
  163. package/build/web/Notification.js +1 -1
  164. package/build/web/OrderedList.js +1 -1
  165. package/build/web/Pagination.js +1 -1
  166. package/build/web/PaginationPageButton.js +27 -1
  167. package/build/web/PaginationSideButton.js +26 -1
  168. package/build/web/PreviewCard.js +33 -3
  169. package/build/web/PriceLockup.js +1 -1
  170. package/build/web/Progress.js +1 -1
  171. package/build/web/ProgressBar.js +1 -1
  172. package/build/web/QuantitySelector.js +1 -1
  173. package/build/web/QuantitySelectorSideButton.js +1 -1
  174. package/build/web/QuickLinks.js +1 -1
  175. package/build/web/QuickLinksButton.js +17 -2
  176. package/build/web/QuickLinksCard.js +1 -1
  177. package/build/web/QuickLinksFeature.js +1 -1
  178. package/build/web/QuickLinksFeatureItem.js +29 -1
  179. package/build/web/QuickLinksList.js +29 -1
  180. package/build/web/Radio.js +18 -1
  181. package/build/web/RadioCard.js +35 -1
  182. package/build/web/RadioCardGroup.js +1 -1
  183. package/build/web/RadioGroup.js +1 -1
  184. package/build/web/Ribbon.js +1 -1
  185. package/build/web/Search.js +11 -1
  186. package/build/web/SearchButton.js +30 -1
  187. package/build/web/Select.js +8 -1
  188. package/build/web/SideNav.js +1 -1
  189. package/build/web/SideNavItem.js +30 -1
  190. package/build/web/SideNavItemsGroup.js +1 -1
  191. package/build/web/Skeleton.js +1 -1
  192. package/build/web/SkipLink.js +13 -2
  193. package/build/web/Spinner.js +1 -1
  194. package/build/web/SplashButton.js +15 -3
  195. package/build/web/SplashButtonWithDetails.js +15 -3
  196. package/build/web/StackView.js +1 -1
  197. package/build/web/StepTracker.js +1 -1
  198. package/build/web/StoryCard.js +25 -2
  199. package/build/web/Table.js +1 -1
  200. package/build/web/Tabs.js +1 -1
  201. package/build/web/TabsItem.js +1 -1
  202. package/build/web/Tags.js +1 -1
  203. package/build/web/TagsItem.js +35 -1
  204. package/build/web/TermsAndConditions.js +36 -2
  205. package/build/web/Testimonial.js +1 -1
  206. package/build/web/TextArea.js +1 -1
  207. package/build/web/TextInput.js +11 -1
  208. package/build/web/Timeline.js +1 -1
  209. package/build/web/Toast.js +1 -1
  210. package/build/web/ToggleSwitch.js +42 -1
  211. package/build/web/ToggleSwitchGroup.js +1 -1
  212. package/build/web/Tooltip.js +1 -1
  213. package/build/web/TooltipButton.js +19 -1
  214. package/build/web/Typography.js +1 -1
  215. package/build/web/Video.js +1 -1
  216. package/build/web/VideoButton.js +1 -1
  217. package/build/web/VideoControlBar.js +1 -1
  218. package/build/web/VideoMenu.js +1 -1
  219. package/build/web/VideoMiddleControlButton.js +1 -1
  220. package/build/web/VideoPicker.js +1 -1
  221. package/build/web/VideoPickerSlider.js +1 -1
  222. package/build/web/VideoPickerThumbnail.js +21 -1
  223. package/build/web/VideoProgressBar.js +1 -1
  224. package/build/web/VideoVolumeSlider.js +1 -1
  225. package/build/web/WaffleGrid.js +1 -1
  226. package/build/web/index.js +1 -1
  227. package/build/web/schema.json +1004 -959
  228. package/build/web/spacingScale.js +1 -1
  229. package/build/web/theme.js +1201 -19
  230. package/package.json +5 -5
  231. package/theme.json +29 -0
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -13,6 +13,18 @@ const theme = {
13
13
  type: 'variant',
14
14
  values: [ true ]
15
15
  },
16
+ focus: {
17
+ 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.",
18
+ platforms: [ 'rn', 'web' ],
19
+ type: 'state',
20
+ values: [ true, false ]
21
+ },
22
+ hover: {
23
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
24
+ platforms: [ 'rn', 'web' ],
25
+ type: 'state',
26
+ values: [ true, false ]
27
+ },
16
28
  inactive: {
17
29
  description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
18
30
  type: 'state',
@@ -51,6 +63,15 @@ const theme = {
51
63
  }
52
64
  },
53
65
  rules: [
66
+ {
67
+ if: { hover: true },
68
+ tokens: {
69
+ borderBottomWidth: 3,
70
+ borderLeftWidth: 3,
71
+ borderRightWidth: 3,
72
+ borderTopWidth: 3
73
+ }
74
+ },
54
75
  {
55
76
  if: { priority: 'high' },
56
77
  tokens: {
@@ -68,6 +89,7 @@ const theme = {
68
89
  color: '#ffffff'
69
90
  }
70
91
  },
92
+ { if: { focus: true }, tokens: { outerBorderColor: '#2b8000' } },
71
93
  {
72
94
  if: { inverse: true },
73
95
  tokens: {
@@ -76,10 +98,22 @@ const theme = {
76
98
  color: '#ffffff'
77
99
  }
78
100
  },
101
+ {
102
+ if: { hover: true, priority: 'high' },
103
+ tokens: { backgroundColor: '#1f5c09' }
104
+ },
105
+ {
106
+ if: { focus: true, pressed: true },
107
+ tokens: { outerBorderColor: '#163e06' }
108
+ },
79
109
  {
80
110
  if: { inverse: true, priority: 'high' },
81
111
  tokens: { backgroundColor: '#ffffff', color: '#414547' }
82
112
  },
113
+ {
114
+ if: { hover: true, inverse: true, priority: 'high' },
115
+ tokens: { backgroundColor: 'rgba(255, 255, 255, 0.8)' }
116
+ },
83
117
  {
84
118
  if: { inverse: true, pressed: true },
85
119
  tokens: {
@@ -88,6 +122,10 @@ const theme = {
88
122
  color: '#414547'
89
123
  }
90
124
  },
125
+ {
126
+ if: { focus: true, inverse: true },
127
+ tokens: { outerBorderColor: '#ffffff' }
128
+ },
91
129
  {
92
130
  if: { danger: true, priority: null },
93
131
  tokens: { borderColor: '#e12339', color: '#e12339' }
@@ -96,6 +134,10 @@ const theme = {
96
134
  if: { danger: true, inverse: true, priority: null },
97
135
  tokens: { backgroundColor: '#ffffff' }
98
136
  },
137
+ {
138
+ if: { danger: true, focus: true, priority: null },
139
+ tokens: { outerBorderColor: '#e12339' }
140
+ },
99
141
  {
100
142
  if: { danger: true, pressed: true, priority: null },
101
143
  tokens: {
@@ -104,6 +146,10 @@ const theme = {
104
146
  color: '#ffffff'
105
147
  }
106
148
  },
149
+ {
150
+ if: { danger: true, focus: true, pressed: true, priority: null },
151
+ tokens: { outerBorderColor: '#c12335' }
152
+ },
107
153
  { if: { width: 'full' }, tokens: { width: '100%' } },
108
154
  {
109
155
  if: { viewport: [ 'xs' ], width: 'responsive' },
@@ -144,6 +190,7 @@ const theme = {
144
190
  textLine: 'underline'
145
191
  }
146
192
  },
193
+ { if: { hover: true, text: true }, tokens: { textLine: 'none' } },
147
194
  {
148
195
  if: { priority: 'high', text: true },
149
196
  tokens: { color: '#2b8000' }
@@ -152,6 +199,31 @@ const theme = {
152
199
  if: { priority: 'low', text: true },
153
200
  tokens: { color: '#414547' }
154
201
  },
202
+ {
203
+ if: { focus: true, text: true },
204
+ tokens: {
205
+ borderColor: 'rgba(0, 0, 0, 0)',
206
+ borderRadius: 0,
207
+ color: '#2b8000',
208
+ outerBorderColor: '#2b8000'
209
+ }
210
+ },
211
+ {
212
+ if: { hover: true, priority: 'high', text: true },
213
+ tokens: { color: '#1f5c09' }
214
+ },
215
+ {
216
+ if: { hover: true, priority: null, text: true },
217
+ tokens: { color: '#1f5c09' }
218
+ },
219
+ {
220
+ if: { hover: true, priority: 'low', text: true },
221
+ tokens: { color: '#414547' }
222
+ },
223
+ {
224
+ if: { danger: true, hover: true, text: true },
225
+ tokens: { color: '#c12335' }
226
+ },
155
227
  {
156
228
  if: { pressed: true, text: true },
157
229
  tokens: {
@@ -161,6 +233,15 @@ const theme = {
161
233
  textLine: 'none'
162
234
  }
163
235
  },
236
+ {
237
+ if: { focus: true, pressed: true, text: true },
238
+ tokens: {
239
+ borderColor: 'rgba(0, 0, 0, 0)',
240
+ color: '#163e06',
241
+ outerBorderColor: '#163e06',
242
+ textLine: 'none'
243
+ }
244
+ },
164
245
  {
165
246
  if: { inactive: true, text: true },
166
247
  tokens: {
@@ -174,6 +255,18 @@ const theme = {
174
255
  if: { inverse: true, text: true },
175
256
  tokens: { borderRadius: 0, color: '#ffffff' }
176
257
  },
258
+ {
259
+ if: { focus: true, inverse: true, text: true },
260
+ tokens: { borderColor: 'rgba(0, 0, 0, 0)', outerBorderColor: '#ffffff' }
261
+ },
262
+ {
263
+ if: { focus: true, inverse: true, pressed: true, text: true },
264
+ tokens: {
265
+ borderColor: 'rgba(0, 0, 0, 0)',
266
+ color: '#b2b9bf',
267
+ outerBorderColor: '#b2b9bf'
268
+ }
269
+ },
177
270
  {
178
271
  if: { inactive: true, inverse: true, text: true },
179
272
  tokens: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -9,6 +9,18 @@ import PaletteIconCaretDown from '@telus-uds/palette-allium/build/rn/icons/Caret
9
9
  import PaletteIconCaretUp from '@telus-uds/palette-allium/build/rn/icons/CaretUp'
10
10
  const theme = {
11
11
  appearances: {
12
+ focus: {
13
+ 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.",
14
+ platforms: [ 'rn', 'web' ],
15
+ type: 'state',
16
+ values: [ true, false ]
17
+ },
18
+ hover: {
19
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
20
+ platforms: [ 'rn', 'web' ],
21
+ type: 'state',
22
+ values: [ true, false ]
23
+ },
12
24
  inactive: {
13
25
  description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
14
26
  type: 'state',
@@ -32,6 +44,16 @@ const theme = {
32
44
  },
33
45
  rules: [
34
46
  { if: { open: true }, tokens: { icon: PaletteIconCaretUp } },
47
+ {
48
+ if: { focus: true },
49
+ tokens: {
50
+ borderColor: '#676e73',
51
+ color: '#414547',
52
+ outerBorderColor: '#676e73',
53
+ outerBorderGap: 2,
54
+ outerBorderWidth: 2
55
+ }
56
+ },
35
57
  {
36
58
  if: { pressed: true },
37
59
  tokens: {
@@ -41,6 +63,7 @@ const theme = {
41
63
  iconColor: '#ffffff'
42
64
  }
43
65
  },
66
+ { if: { hover: true }, tokens: { borderWidth: 3 } },
44
67
  {
45
68
  if: { inactive: true },
46
69
  tokens: {
@@ -61,9 +84,21 @@ const theme = {
61
84
  iconColor: '#ffffff'
62
85
  }
63
86
  },
87
+ {
88
+ if: { hover: true, selected: true },
89
+ tokens: { backgroundColor: '#7c53a5', iconBackground: '#613889' }
90
+ },
91
+ {
92
+ if: { focus: true, selected: true },
93
+ tokens: { outerBorderColor: '#4b286d' }
94
+ },
64
95
  {
65
96
  if: { pressed: true, selected: true },
66
97
  tokens: { backgroundColor: '#3f2a54', iconBackground: '#613889' }
98
+ },
99
+ {
100
+ if: { focus: true, pressed: true, selected: true },
101
+ tokens: { outerBorderGap: 2, outerBorderWidth: 2 }
67
102
  }
68
103
  ],
69
104
  tokens: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1,13 +1,25 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
8
8
 
9
9
  const theme = {
10
10
  appearances: {
11
+ focus: {
12
+ 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.",
13
+ platforms: [ 'rn', 'web' ],
14
+ type: 'state',
15
+ values: [ true, false ]
16
+ },
17
+ hover: {
18
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
19
+ platforms: [ 'rn', 'web' ],
20
+ type: 'state',
21
+ values: [ true, false ]
22
+ },
11
23
  iconPosition: {
12
24
  description: 'Theme styles to be applied to icon links depending on where the icon is in relation to the link text',
13
25
  type: 'state',
@@ -44,14 +56,36 @@ const theme = {
44
56
  color: '#ffffff'
45
57
  }
46
58
  },
59
+ {
60
+ if: { focus: true },
61
+ tokens: {
62
+ borderColor: '#676e73',
63
+ outerBorderColor: '#676e73',
64
+ outerBorderGap: 2,
65
+ outerBorderWidth: 2
66
+ }
67
+ },
68
+ { if: { hover: true }, tokens: { borderWidth: 3 } },
47
69
  {
48
70
  if: { selected: true },
49
71
  tokens: { backgroundColor: '#4b286d', borderWidth: 0, color: '#ffffff' }
50
72
  },
73
+ {
74
+ if: { hover: true, selected: true },
75
+ tokens: { backgroundColor: '#7c53a5' }
76
+ },
51
77
  {
52
78
  if: { pressed: true, selected: true },
53
79
  tokens: { backgroundColor: '#3f2a54' }
54
80
  },
81
+ {
82
+ if: { focus: true, selected: true },
83
+ tokens: { outerBorderColor: '#4b286d' }
84
+ },
85
+ {
86
+ if: { focus: true, pressed: true, selected: true },
87
+ tokens: { outerBorderColor: '#3f2a54' }
88
+ },
55
89
  {
56
90
  if: { inactive: true },
57
91
  tokens: { backgroundColor: '#b2b9bf', borderWidth: 0, color: '#ffffff' }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
package/build/web/Card.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -13,6 +13,18 @@ const theme = {
13
13
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
14
14
  },
15
15
  borderRadius: { type: 'variant', values: [ 'none', 'small', 'large' ] },
16
+ focus: {
17
+ 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.",
18
+ platforms: [ 'rn', 'web' ],
19
+ type: 'state',
20
+ values: [ true, false ]
21
+ },
22
+ hover: {
23
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
24
+ platforms: [ 'rn', 'web' ],
25
+ type: 'state',
26
+ values: [ true, false ]
27
+ },
16
28
  interactive: { type: 'variant', values: [ true ] },
17
29
  padding: {
18
30
  type: 'variant',
@@ -124,9 +136,20 @@ const theme = {
124
136
  }
125
137
  },
126
138
  {
127
- if: { interactive: true, pressed: false },
139
+ if: { focus: false, interactive: true, pressed: false },
128
140
  tokens: { borderColor: '#ffffff', borderWidth: 2 }
129
141
  },
142
+ {
143
+ if: { hover: true, interactive: true },
144
+ tokens: {
145
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
146
+ borderColor: 'transparent'
147
+ }
148
+ },
149
+ {
150
+ if: { focus: true, interactive: true },
151
+ tokens: { borderColor: '#4b286d', borderWidth: 2 }
152
+ },
130
153
  {
131
154
  if: { interactive: true, pressed: true },
132
155
  tokens: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1,13 +1,25 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
8
8
 
9
9
  const theme = {
10
10
  appearances: {
11
+ focus: {
12
+ 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.",
13
+ platforms: [ 'rn', 'web' ],
14
+ type: 'state',
15
+ values: [ true, false ]
16
+ },
17
+ hover: {
18
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
19
+ platforms: [ 'rn', 'web' ],
20
+ type: 'state',
21
+ values: [ true, false ]
22
+ },
11
23
  inactive: {
12
24
  description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
13
25
  type: 'state',
@@ -26,6 +38,22 @@ const theme = {
26
38
  }
27
39
  },
28
40
  rules: [
41
+ {
42
+ if: { hover: true },
43
+ tokens: {
44
+ borderBottomColor: '#2b8000',
45
+ borderBottomWidth: 2,
46
+ color: '#2b8000'
47
+ }
48
+ },
49
+ {
50
+ if: { focus: true },
51
+ tokens: {
52
+ borderBottomColor: '#2b8000',
53
+ borderBottomWidth: 4,
54
+ color: '#2b8000'
55
+ }
56
+ },
29
57
  {
30
58
  if: { pressed: true },
31
59
  tokens: {
@@ -34,6 +62,10 @@ const theme = {
34
62
  color: '#1f5c09'
35
63
  }
36
64
  },
65
+ {
66
+ if: { focus: true, pressed: true },
67
+ tokens: { borderBottomWidth: 4 }
68
+ },
37
69
  {
38
70
  if: { inactive: true },
39
71
  tokens: {
@@ -53,6 +85,14 @@ const theme = {
53
85
  }
54
86
  },
55
87
  { if: { inverse: true }, tokens: { color: '#ffffff' } },
88
+ {
89
+ if: { hover: true, inverse: true },
90
+ tokens: {
91
+ borderBottomColor: '#ffffff',
92
+ borderBottomWidth: 2,
93
+ color: '#ffffff'
94
+ }
95
+ },
56
96
  {
57
97
  if: { inverse: true, pressed: true },
58
98
  tokens: {
@@ -61,6 +101,22 @@ const theme = {
61
101
  color: '#676e73'
62
102
  }
63
103
  },
104
+ {
105
+ if: { focus: true, inverse: true },
106
+ tokens: {
107
+ borderBottomColor: '#ffffff',
108
+ borderBottomWidth: 4,
109
+ color: '#ffffff'
110
+ }
111
+ },
112
+ {
113
+ if: { focus: true, inverse: true, pressed: true },
114
+ tokens: {
115
+ borderBottomColor: '#676e73',
116
+ borderBottomWidth: 4,
117
+ color: '#676e73'
118
+ }
119
+ },
64
120
  {
65
121
  if: { inverse: true, selected: true },
66
122
  tokens: {
@@ -1,13 +1,25 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
8
8
 
9
9
  const theme = {
10
10
  appearances: {
11
+ focus: {
12
+ 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.",
13
+ platforms: [ 'rn', 'web' ],
14
+ type: 'state',
15
+ values: [ true, false ]
16
+ },
17
+ hover: {
18
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
19
+ platforms: [ 'rn', 'web' ],
20
+ type: 'state',
21
+ values: [ true, false ]
22
+ },
11
23
  pressed: {
12
24
  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.',
13
25
  type: 'state',
@@ -24,6 +36,11 @@ const theme = {
24
36
  if: { viewport: [ 'xs', 'sm' ] },
25
37
  tokens: { alignItems: 'flex-start', size: 48 }
26
38
  },
39
+ { if: { hover: true }, tokens: { borderColor: '#2b8000' } },
40
+ {
41
+ if: { focus: true },
42
+ tokens: { borderColor: '#2b8000', borderWidth: 2 }
43
+ },
27
44
  {
28
45
  if: { pressed: true },
29
46
  tokens: { borderColor: '#1f5c09', borderWidth: 2 }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -14,6 +14,18 @@ const theme = {
14
14
  values: [ true ]
15
15
  },
16
16
  error: { type: 'state', values: [ true ] },
17
+ focus: {
18
+ 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.",
19
+ platforms: [ 'rn', 'web' ],
20
+ type: 'state',
21
+ values: [ true, false ]
22
+ },
23
+ hover: {
24
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
25
+ platforms: [ 'rn', 'web' ],
26
+ type: 'state',
27
+ values: [ true, false ]
28
+ },
17
29
  inactive: {
18
30
  description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
19
31
  type: 'state',
@@ -22,6 +34,10 @@ const theme = {
22
34
  },
23
35
  rules: [
24
36
  { if: { error: true }, tokens: { inputBorderColor: '#e12339' } },
37
+ {
38
+ if: { focus: true },
39
+ tokens: { inputBorderColor: '#7c53a5', inputBorderWidth: 3 }
40
+ },
25
41
  {
26
42
  if: { inactive: true },
27
43
  tokens: {
@@ -31,6 +47,19 @@ const theme = {
31
47
  inputBorderColor: 'rgba(0, 0, 0, 0)',
32
48
  labelColor: '#676e73'
33
49
  }
50
+ },
51
+ {
52
+ if: { hover: true },
53
+ tokens: { inputOutlineColor: '#e3e6e8', inputOutlineWidth: 2 }
54
+ },
55
+ {
56
+ if: { checked: true, focus: true },
57
+ tokens: {
58
+ inputBorderColor: '#ffffff',
59
+ inputBorderWidth: 2,
60
+ inputOutlineColor: '#7c53a5',
61
+ inputOutlineWidth: 3
62
+ }
34
63
  }
35
64
  ],
36
65
  tokens: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -14,6 +14,18 @@ const theme = {
14
14
  values: [ true ]
15
15
  },
16
16
  error: { type: 'state', values: [ true ] },
17
+ focus: {
18
+ 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.",
19
+ platforms: [ 'rn', 'web' ],
20
+ type: 'state',
21
+ values: [ true, false ]
22
+ },
23
+ hover: {
24
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
25
+ platforms: [ 'rn', 'web' ],
26
+ type: 'state',
27
+ values: [ true, false ]
28
+ },
17
29
  inactive: {
18
30
  description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
19
31
  type: 'state',
@@ -42,6 +54,24 @@ const theme = {
42
54
  paddingTop: 16
43
55
  }
44
56
  },
57
+ {
58
+ if: { hover: true },
59
+ tokens: {
60
+ borderColor: '#676e73',
61
+ checkboxOuterBorderColor: '#e3e6e8',
62
+ checkboxOuterBorderWidth: 2,
63
+ outerBorderColor: '#e3e6e8'
64
+ }
65
+ },
66
+ {
67
+ if: { focus: true },
68
+ tokens: {
69
+ checkboxInputBorderColor: '#7c53a5',
70
+ checkboxInputBorderWidth: 3,
71
+ outerBorderColor: '#676e73',
72
+ outerBorderGap: 2
73
+ }
74
+ },
45
75
  {
46
76
  description: 'Pressed state matches hover state plus light grey background',
47
77
  if: { pressed: true },
@@ -57,6 +87,10 @@ const theme = {
57
87
  }
58
88
  },
59
89
  { if: { checked: true }, tokens: { borderColor: '#7c53a5' } },
90
+ {
91
+ if: { checked: true, hover: true },
92
+ tokens: { borderColor: '#4b286d' }
93
+ },
60
94
  {
61
95
  if: { error: true },
62
96
  tokens: {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 18 Jan 2024 22:42:16 GMT
4
+ * Generated on Mon, 29 Jan 2024 18:24:29 GMT
5
5
  *
6
6
  */
7
7