@telus-uds/theme-koodo 5.0.0 → 5.2.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/build/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Sat, 18 Nov 2023 02:23:36 GMT
4
+ * Generated on Fri, 01 Dec 2023 20:55:19 GMT
5
5
  *
6
6
  */
7
7
 
@@ -690,7 +690,7 @@ module.exports = {
690
690
  fontWeight: '600',
691
691
  height: null,
692
692
  icon: null,
693
- iconSize: 24,
693
+ iconSize: 16,
694
694
  iconSpace: 2,
695
695
  lineHeight: 1.5,
696
696
  minWidth: 144,
@@ -1043,10 +1043,28 @@ module.exports = {
1043
1043
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
1044
1044
  },
1045
1045
  borderRadius: { type: 'variant', values: [ 'none', 'small', 'large' ] },
1046
+ focus: {
1047
+ 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.",
1048
+ platforms: [ 'rn' ],
1049
+ type: 'state',
1050
+ values: [ true, false ]
1051
+ },
1052
+ hover: {
1053
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1054
+ platforms: [ 'rn' ],
1055
+ type: 'state',
1056
+ values: [ true, false ]
1057
+ },
1058
+ interactive: { type: 'variant', values: [ true ] },
1046
1059
  padding: {
1047
1060
  type: 'variant',
1048
1061
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
1049
1062
  },
1063
+ pressed: {
1064
+ 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.',
1065
+ type: 'state',
1066
+ values: [ true, false ]
1067
+ },
1050
1068
  viewport: {
1051
1069
  description: 'The size label for the current screen viewport based on the current screen width',
1052
1070
  type: 'state',
@@ -1143,6 +1161,29 @@ module.exports = {
1143
1161
  paddingRight: 0,
1144
1162
  paddingTop: 0
1145
1163
  }
1164
+ },
1165
+ {
1166
+ if: { focus: false, interactive: true, pressed: false },
1167
+ tokens: { borderColor: '#ffffff', borderWidth: 2 }
1168
+ },
1169
+ {
1170
+ if: { hover: true, interactive: true },
1171
+ tokens: {
1172
+ backgroundColor: 'rgba(0, 0, 0, 0.1)',
1173
+ borderColor: 'transparent'
1174
+ }
1175
+ },
1176
+ {
1177
+ if: { focus: true, interactive: true },
1178
+ tokens: { borderColor: '#000000', borderWidth: 2 }
1179
+ },
1180
+ {
1181
+ if: { interactive: true, pressed: true },
1182
+ tokens: {
1183
+ backgroundColor: 'rgba(0, 0, 0, 0.2)',
1184
+ borderColor: '#c9c8c8',
1185
+ borderWidth: 2
1186
+ }
1146
1187
  }
1147
1188
  ],
1148
1189
  tokens: {
@@ -1747,22 +1788,31 @@ module.exports = {
1747
1788
  },
1748
1789
  {
1749
1790
  if: { size: 'large' },
1750
- tokens: { fontSize: 20, iconSize: 24 }
1791
+ tokens: { blockLineHeight: 1.4, fontSize: 20, iconSize: 20 }
1751
1792
  },
1752
1793
  {
1753
1794
  if: { size: 'small' },
1754
- tokens: { fontSize: 14, iconSize: 16 }
1795
+ tokens: {
1796
+ blockLineHeight: 1.42857142857,
1797
+ fontSize: 14,
1798
+ iconSize: 16
1799
+ }
1755
1800
  },
1756
1801
  {
1757
1802
  if: { size: 'micro' },
1758
- tokens: { fontSize: 12, iconSize: 16 }
1803
+ tokens: {
1804
+ blockLineHeight: 1.33333333333,
1805
+ fontSize: 12,
1806
+ iconSize: 16
1807
+ }
1759
1808
  }
1760
1809
  ],
1761
1810
  tokens: {
1811
+ blockLineHeight: 1.5,
1762
1812
  color: '#000000',
1763
1813
  fontSize: 16,
1764
1814
  iconDisplace: 0,
1765
- iconSize: 24,
1815
+ iconSize: 16,
1766
1816
  iconSpace: 1,
1767
1817
  leftIcon: PaletteIconChevronLeft,
1768
1818
  outerBorderColor: 'rgba(0, 0, 0, 0)',
@@ -2704,6 +2754,11 @@ module.exports = {
2704
2754
  type: 'state',
2705
2755
  values: [ true, false ]
2706
2756
  },
2757
+ quiet: {
2758
+ description: 'When it is true, it does not show the decoration',
2759
+ type: 'state',
2760
+ values: [ true, false ]
2761
+ },
2707
2762
  size: {
2708
2763
  description: 'Text sizes for block links; similar but not always identical to Typography sizes.',
2709
2764
  type: 'variant',
@@ -2787,6 +2842,19 @@ module.exports = {
2787
2842
  {
2788
2843
  if: { size: 'large' },
2789
2844
  tokens: { blockFontSize: 20, blockLineHeight: 1.4, iconSize: 24 }
2845
+ },
2846
+ { if: { quiet: true }, tokens: { textLine: 'none' } },
2847
+ {
2848
+ if: { hover: true, quiet: true },
2849
+ tokens: { color: '#404040', textLine: 'underline' }
2850
+ },
2851
+ {
2852
+ if: { alternative: true, hover: true, quiet: true },
2853
+ tokens: { color: '#5b2bc2', textLine: 'underline' }
2854
+ },
2855
+ {
2856
+ if: { hover: true, inverse: true, quiet: true },
2857
+ tokens: { color: '#efefef', textLine: 'underline' }
2790
2858
  }
2791
2859
  ],
2792
2860
  tokens: {
@@ -2965,10 +3033,11 @@ module.exports = {
2965
3033
  {
2966
3034
  if: { expanded: true },
2967
3035
  tokens: {
2968
- groupBackgroundColor: '#000000',
3036
+ groupBackgroundColor: 'rgba(0, 0, 0, 0)',
2969
3037
  groupBorderColor: 'rgba(0, 0, 0, 0)',
2970
3038
  groupColor: '#ffffff',
2971
- groupIcon: PaletteIconChevronUp
3039
+ groupIcon: PaletteIconChevronUp,
3040
+ itemColor: '#595959'
2972
3041
  }
2973
3042
  },
2974
3043
  {
@@ -3124,6 +3193,11 @@ module.exports = {
3124
3193
  description: 'The size label for the current screen viewport based on the current screen width',
3125
3194
  type: 'state',
3126
3195
  values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
3196
+ },
3197
+ width: {
3198
+ description: 'The width of the modal',
3199
+ type: 'state',
3200
+ values: [ 's', 'm', 'l', 'xl' ]
3127
3201
  }
3128
3202
  },
3129
3203
  rules: [
@@ -3152,11 +3226,59 @@ module.exports = {
3152
3226
  }
3153
3227
  },
3154
3228
  {
3155
- if: { maxWidth: true, viewport: [ 'md', 'lg', 'xl' ] },
3229
+ if: { viewport: [ 'md', 'lg', 'xl' ], width: 's' },
3230
+ tokens: {
3231
+ containerPaddingBottom: 32,
3232
+ containerPaddingTop: 32,
3233
+ maxWidth: 320
3234
+ }
3235
+ },
3236
+ {
3237
+ if: { viewport: [ 'md', 'lg', 'xl' ], width: 'm' },
3238
+ tokens: {
3239
+ containerPaddingBottom: 32,
3240
+ containerPaddingTop: 32,
3241
+ maxWidth: 480
3242
+ }
3243
+ },
3244
+ {
3245
+ if: { viewport: [ 'lg', 'xl' ], width: 'l' },
3246
+ tokens: {
3247
+ containerPaddingBottom: 32,
3248
+ containerPaddingTop: 32,
3249
+ maxWidth: 630
3250
+ }
3251
+ },
3252
+ {
3253
+ if: { viewport: 'xl', width: 'xl' },
3254
+ tokens: {
3255
+ containerPaddingBottom: 32,
3256
+ containerPaddingTop: 32,
3257
+ maxWidth: 768
3258
+ }
3259
+ },
3260
+ {
3261
+ if: { maxWidth: true, viewport: 'md' },
3262
+ tokens: {
3263
+ containerPaddingLeft: 16,
3264
+ containerPaddingRight: 16,
3265
+ maxWidth: 480
3266
+ }
3267
+ },
3268
+ {
3269
+ if: { maxWidth: true, viewport: 'lg' },
3270
+ tokens: {
3271
+ containerPaddingLeft: 16,
3272
+ containerPaddingRight: 16,
3273
+ maxWidth: 630
3274
+ }
3275
+ },
3276
+ {
3277
+ if: { maxWidth: true, viewport: 'xl' },
3156
3278
  tokens: {
3157
3279
  containerPaddingLeft: 16,
3158
3280
  containerPaddingRight: 16,
3159
- maxWidth: '66.67%'
3281
+ maxWidth: 768
3160
3282
  }
3161
3283
  }
3162
3284
  ],
@@ -6927,5 +7049,5 @@ module.exports = {
6927
7049
  tokens: { size: 96 }
6928
7050
  }
6929
7051
  },
6930
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.46.0' }
7052
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.47.0' }
6931
7053
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^1.0.0",
9
- "@telus-uds/system-theme-tokens": "^2.46.0"
8
+ "@telus-uds/palette-koodo": "^1.1.0",
9
+ "@telus-uds/system-theme-tokens": "^2.47.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -20,7 +20,7 @@
20
20
  "main": "build/rn/theme.js",
21
21
  "name": "@telus-uds/theme-koodo",
22
22
  "peerDependencies": {
23
- "@telus-uds/palette-koodo": "^1.0.0"
23
+ "@telus-uds/palette-koodo": "^1.1.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
@@ -31,5 +31,5 @@
31
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
32
32
  "dev": "nodemon -w src -x 'npm run build'"
33
33
  },
34
- "version": "5.0.0"
34
+ "version": "5.2.0"
35
35
  }
package/theme.json CHANGED
@@ -929,7 +929,7 @@
929
929
  "fontWeight": "{palette.fontWeight.weight600}",
930
930
  "height": "{system.size.none}",
931
931
  "icon": "{system.icon.none}",
932
- "iconSize": "{palette.size.size24}",
932
+ "iconSize": "{palette.size.size16}",
933
933
  "iconSpace": "{system.integer.2}",
934
934
  "lineHeight": "{palette.lineHeight.ratio3to2}",
935
935
  "minWidth": "{palette.size.size144}",
@@ -1353,10 +1353,17 @@
1353
1353
  "type": "variant",
1354
1354
  "values": ["none", "small", "large"]
1355
1355
  },
1356
+ "focus": "{appearances.Card.focus}",
1357
+ "hover": "{appearances.Card.hover}",
1358
+ "interactive": {
1359
+ "type": "variant",
1360
+ "values": [true]
1361
+ },
1356
1362
  "padding": {
1357
1363
  "type": "variant",
1358
1364
  "values": ["narrow", "intermediate", "compact", "custom"]
1359
1365
  },
1366
+ "pressed": "{appearances.Card.pressed}",
1360
1367
  "viewport": "{appearances.system.viewport}"
1361
1368
  },
1362
1369
  "rules": [
@@ -1500,6 +1507,48 @@
1500
1507
  "paddingRight": "{palette.size.size0}",
1501
1508
  "paddingTop": "{palette.size.size0}"
1502
1509
  }
1510
+ },
1511
+ {
1512
+ "if": {
1513
+ "focus": false,
1514
+ "interactive": true,
1515
+ "pressed": false
1516
+ },
1517
+ "tokens": {
1518
+ "borderColor": "{palette.color.white}",
1519
+ "borderWidth": "{palette.border.border2}"
1520
+ }
1521
+ },
1522
+ {
1523
+ "if": {
1524
+ "hover": true,
1525
+ "interactive": true
1526
+ },
1527
+ "tokens": {
1528
+ "backgroundColor": "{palette.color.dark10}",
1529
+ "borderColor": "{system.color.transparent}"
1530
+ }
1531
+ },
1532
+ {
1533
+ "if": {
1534
+ "focus": true,
1535
+ "interactive": true
1536
+ },
1537
+ "tokens": {
1538
+ "borderColor": "{palette.color.black}",
1539
+ "borderWidth": "{palette.border.border2}"
1540
+ }
1541
+ },
1542
+ {
1543
+ "if": {
1544
+ "interactive": true,
1545
+ "pressed": true
1546
+ },
1547
+ "tokens": {
1548
+ "backgroundColor": "{palette.color.dark20}",
1549
+ "borderColor": "{palette.color.silver}",
1550
+ "borderWidth": "{palette.border.border2}"
1551
+ }
1503
1552
  }
1504
1553
  ],
1505
1554
  "tokens": {
@@ -2206,8 +2255,9 @@
2206
2255
  "size": "large"
2207
2256
  },
2208
2257
  "tokens": {
2258
+ "blockLineHeight": "{palette.lineHeight.ratio7to5}",
2209
2259
  "fontSize": "{palette.fontSize.size20}",
2210
- "iconSize": "{palette.size.size24}"
2260
+ "iconSize": "{palette.size.size20}"
2211
2261
  }
2212
2262
  },
2213
2263
  {
@@ -2215,6 +2265,7 @@
2215
2265
  "size": "small"
2216
2266
  },
2217
2267
  "tokens": {
2268
+ "blockLineHeight": "{palette.lineHeight.ratio10to7}",
2218
2269
  "fontSize": "{palette.fontSize.size14}",
2219
2270
  "iconSize": "{palette.size.size16}"
2220
2271
  }
@@ -2224,16 +2275,18 @@
2224
2275
  "size": "micro"
2225
2276
  },
2226
2277
  "tokens": {
2278
+ "blockLineHeight": "{palette.lineHeight.ratio4to3}",
2227
2279
  "fontSize": "{palette.fontSize.size12}",
2228
2280
  "iconSize": "{palette.size.size16}"
2229
2281
  }
2230
2282
  }
2231
2283
  ],
2232
2284
  "tokens": {
2285
+ "blockLineHeight": "{palette.lineHeight.ratio3to2}",
2233
2286
  "color": "{palette.color.black}",
2234
2287
  "fontSize": "{palette.fontSize.size16}",
2235
2288
  "iconDisplace": "{palette.size.size0}",
2236
- "iconSize": "{palette.size.size24}",
2289
+ "iconSize": "{palette.size.size16}",
2237
2290
  "iconSpace": "{system.integer.1}",
2238
2291
  "leftIcon": "{palette.icon.ChevronLeft}",
2239
2292
  "outerBorderColor": "{palette.color.transparent}",
@@ -3561,6 +3614,11 @@
3561
3614
  "values": [true]
3562
3615
  },
3563
3616
  "pressed": "{appearances.Link.pressed}",
3617
+ "quiet": {
3618
+ "description": "When it is true, it does not show the decoration",
3619
+ "type": "state",
3620
+ "values": [true, false]
3621
+ },
3564
3622
  "size": {
3565
3623
  "description": "Text sizes for block links; similar but not always identical to Typography sizes.",
3566
3624
  "type": "variant",
@@ -3739,6 +3797,46 @@
3739
3797
  "blockLineHeight": "{palette.lineHeight.ratio7to5}",
3740
3798
  "iconSize": "{palette.size.size24}"
3741
3799
  }
3800
+ },
3801
+ {
3802
+ "if": {
3803
+ "quiet": true
3804
+ },
3805
+ "tokens": {
3806
+ "textLine": "{system.textLine.none}"
3807
+ }
3808
+ },
3809
+ {
3810
+ "if": {
3811
+ "hover": true,
3812
+ "quiet": true
3813
+ },
3814
+ "tokens": {
3815
+ "color": "{palette.color.blackLight}",
3816
+ "textLine": "{system.textLine.underline}"
3817
+ }
3818
+ },
3819
+ {
3820
+ "if": {
3821
+ "alternative": true,
3822
+ "hover": true,
3823
+ "quiet": true
3824
+ },
3825
+ "tokens": {
3826
+ "color": "{palette.color.purpleDark}",
3827
+ "textLine": "{system.textLine.underline}"
3828
+ }
3829
+ },
3830
+ {
3831
+ "if": {
3832
+ "hover": true,
3833
+ "inverse": true,
3834
+ "quiet": true
3835
+ },
3836
+ "tokens": {
3837
+ "color": "{palette.color.gallery}",
3838
+ "textLine": "{system.textLine.underline}"
3839
+ }
3742
3840
  }
3743
3841
  ],
3744
3842
  "tokens": {
@@ -3932,10 +4030,11 @@
3932
4030
  "expanded": true
3933
4031
  },
3934
4032
  "tokens": {
3935
- "groupBackgroundColor": "{palette.color.black}",
4033
+ "groupBackgroundColor": "{palette.color.transparent}",
3936
4034
  "groupBorderColor": "{palette.color.transparent}",
3937
4035
  "groupColor": "{palette.color.white}",
3938
- "groupIcon": "{palette.icon.ChevronUp}"
4036
+ "groupIcon": "{palette.icon.ChevronUp}",
4037
+ "itemColor": "{palette.color.mortar}"
3939
4038
  }
3940
4039
  },
3941
4040
  {
@@ -4105,7 +4204,8 @@
4105
4204
  "Modal": {
4106
4205
  "appearances": {
4107
4206
  "maxWidth": "{appearances.Modal.maxWidth}",
4108
- "viewport": "{appearances.system.viewport}"
4207
+ "viewport": "{appearances.system.viewport}",
4208
+ "width": "{appearances.Modal.width}"
4109
4209
  },
4110
4210
  "rules": [
4111
4211
  {
@@ -4129,22 +4229,88 @@
4129
4229
  "containerPaddingBottom": "{palette.size.size32}",
4130
4230
  "containerPaddingTop": "{palette.size.size32}",
4131
4231
  "direction": "{system.direction.row}",
4132
- "maxWidth": "{system.size.viewportSm}",
4232
+ "maxWidth": "{palette.size.size576}",
4133
4233
  "paddingBottom": "{palette.size.size32}",
4134
4234
  "paddingLeft": "{palette.size.size32}",
4135
4235
  "paddingRight": "{palette.size.size32}",
4136
4236
  "paddingTop": "{palette.size.size32}"
4137
4237
  }
4138
4238
  },
4239
+ {
4240
+ "if": {
4241
+ "viewport": ["md", "lg", "xl"],
4242
+ "width": "s"
4243
+ },
4244
+ "tokens": {
4245
+ "containerPaddingBottom": "{palette.size.size32}",
4246
+ "containerPaddingTop": "{palette.size.size32}",
4247
+ "maxWidth": "{palette.size.size320}"
4248
+ }
4249
+ },
4250
+ {
4251
+ "if": {
4252
+ "viewport": ["md", "lg", "xl"],
4253
+ "width": "m"
4254
+ },
4255
+ "tokens": {
4256
+ "containerPaddingBottom": "{palette.size.size32}",
4257
+ "containerPaddingTop": "{palette.size.size32}",
4258
+ "maxWidth": "{palette.size.size480}"
4259
+ }
4260
+ },
4261
+ {
4262
+ "if": {
4263
+ "viewport": ["lg", "xl"],
4264
+ "width": "l"
4265
+ },
4266
+ "tokens": {
4267
+ "containerPaddingBottom": "{palette.size.size32}",
4268
+ "containerPaddingTop": "{palette.size.size32}",
4269
+ "maxWidth": "{palette.size.size630}"
4270
+ }
4271
+ },
4272
+ {
4273
+ "if": {
4274
+ "viewport": "xl",
4275
+ "width": "xl"
4276
+ },
4277
+ "tokens": {
4278
+ "containerPaddingBottom": "{palette.size.size32}",
4279
+ "containerPaddingTop": "{palette.size.size32}",
4280
+ "maxWidth": "{palette.size.size768}"
4281
+ }
4282
+ },
4139
4283
  {
4140
4284
  "if": {
4141
4285
  "maxWidth": true,
4142
- "viewport": ["md", "lg", "xl"]
4286
+ "viewport": "md"
4287
+ },
4288
+ "tokens": {
4289
+ "containerPaddingLeft": "{palette.size.size16}",
4290
+ "containerPaddingRight": "{palette.size.size16}",
4291
+ "maxWidth": "{palette.size.size480}"
4292
+ }
4293
+ },
4294
+ {
4295
+ "if": {
4296
+ "maxWidth": true,
4297
+ "viewport": "lg"
4298
+ },
4299
+ "tokens": {
4300
+ "containerPaddingLeft": "{palette.size.size16}",
4301
+ "containerPaddingRight": "{palette.size.size16}",
4302
+ "maxWidth": "{palette.size.size630}"
4303
+ }
4304
+ },
4305
+ {
4306
+ "if": {
4307
+ "maxWidth": true,
4308
+ "viewport": "xl"
4143
4309
  },
4144
4310
  "tokens": {
4145
4311
  "containerPaddingLeft": "{palette.size.size16}",
4146
4312
  "containerPaddingRight": "{palette.size.size16}",
4147
- "maxWidth": "{system.size.twoThirds}"
4313
+ "maxWidth": "{palette.size.size768}"
4148
4314
  }
4149
4315
  }
4150
4316
  ],