@telus-uds/theme-koodo 3.13.0 → 3.14.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 Tue, 14 Mar 2023 20:10:21 GMT
4
+ * Generated on Mon, 20 Mar 2023 19:40:47 GMT
5
5
  *
6
6
  */
7
7
 
@@ -16,6 +16,8 @@ const PaletteIconTimes = require('@telus-uds/palette-koodo/build/rn/icons/Times'
16
16
  const PaletteIconExclamationOctagon = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationOctagon')
17
17
  const PaletteIconSpyglass = require('@telus-uds/palette-koodo/build/rn/icons/Spyglass')
18
18
  const PaletteIconCheckCircledNotFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledNotFilled')
19
+ const PaletteIconEyeMasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeMasked')
20
+ const PaletteIconEyeUnmasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeUnmasked')
19
21
  const PaletteIconInfo = require('@telus-uds/palette-koodo/build/rn/icons/Info')
20
22
 
21
23
  module.exports = {
@@ -35,6 +37,7 @@ module.exports = {
35
37
  appearances: {
36
38
  background: {
37
39
  description: 'Background colour of box. White if not specified.',
40
+ type: 'variant',
38
41
  values: [
39
42
  'lightest', 'lighter',
40
43
  'light', 'dark',
@@ -749,7 +752,22 @@ module.exports = {
749
752
  rules: [
750
753
  {
751
754
  if: { focus: true },
752
- tokens: { inputOutlineColor: '#c9c8c8', inputOutlineWidth: 2 }
755
+ tokens: { inputOutlineColor: '#17367d', inputOutlineWidth: 1 }
756
+ },
757
+ {
758
+ if: { hover: true },
759
+ tokens: { inputOutlineColor: '#17367d', inputOutlineWidth: 1 }
760
+ },
761
+ {
762
+ if: { inactive: true },
763
+ tokens: {
764
+ inputBackgroundColor: '#c9c8c8',
765
+ inputBorderColor: 'rgba(0, 0, 0, 0)'
766
+ }
767
+ },
768
+ {
769
+ if: { checked: true, inactive: true },
770
+ tokens: { iconBackgroundColor: '#c9c8c8', iconColor: '#ffffff' }
753
771
  }
754
772
  ],
755
773
  tokens: {
@@ -1122,13 +1140,48 @@ module.exports = {
1122
1140
  type: 'state',
1123
1141
  values: [ true ]
1124
1142
  },
1143
+ password: {
1144
+ description: 'Password masked or not',
1145
+ type: 'variant',
1146
+ values: [ true ]
1147
+ },
1125
1148
  pressed: {
1126
1149
  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.',
1127
1150
  type: 'state',
1128
1151
  values: [ true ]
1129
1152
  }
1130
1153
  },
1131
- rules: [ { if: { compact: true }, tokens: { outerBorderGap: 0 } } ],
1154
+ rules: [
1155
+ { if: { compact: true }, tokens: { outerBorderGap: 0 } },
1156
+ {
1157
+ if: { hover: true },
1158
+ tokens: { backgroundColor: '#016b6a', iconColor: '#ffffff' }
1159
+ },
1160
+ {
1161
+ if: { password: true },
1162
+ tokens: { borderColor: 'rgba(0, 0, 0, 0)' }
1163
+ },
1164
+ {
1165
+ if: { password: true, pressed: true },
1166
+ tokens: { backgroundColor: '#014847', iconColor: '#ffffff' }
1167
+ },
1168
+ {
1169
+ if: { focus: true, password: true },
1170
+ tokens: { borderColor: '#016b6a', borderWidth: 3 }
1171
+ },
1172
+ {
1173
+ if: { inactive: true },
1174
+ tokens: {
1175
+ backgroundColor: 'rgba(0, 0, 0, 0)',
1176
+ borderWidth: 0,
1177
+ iconColor: '#ffffff'
1178
+ }
1179
+ },
1180
+ {
1181
+ if: { inactive: true, password: true },
1182
+ tokens: { iconColor: '#c9c8c8' }
1183
+ }
1184
+ ],
1132
1185
  tokens: {
1133
1186
  backgroundColor: 'transparent',
1134
1187
  borderColor: '#016b6a',
@@ -2749,6 +2802,11 @@ module.exports = {
2749
2802
  type: 'state',
2750
2803
  values: [ true ]
2751
2804
  },
2805
+ password: {
2806
+ description: 'capability that helps masking and unmasking text',
2807
+ type: 'variant',
2808
+ values: [ true ]
2809
+ },
2752
2810
  validation: {
2753
2811
  description: 'Validation states for form inputs',
2754
2812
  type: 'state',
@@ -2811,7 +2869,9 @@ module.exports = {
2811
2869
  paddingBottom: 10,
2812
2870
  paddingLeft: 16,
2813
2871
  paddingRight: 16,
2814
- paddingTop: 10
2872
+ paddingTop: 10,
2873
+ passwordHideButtonIcon: PaletteIconEyeMasked,
2874
+ passwordShowButtonIcon: PaletteIconEyeUnmasked
2815
2875
  }
2816
2876
  },
2817
2877
  Timeline: {
@@ -3050,6 +3110,11 @@ module.exports = {
3050
3110
  Typography: {
3051
3111
  appearances: {
3052
3112
  colour: { type: 'variant', values: [ 'red' ] },
3113
+ compact: {
3114
+ description: 'Reduces line height on some body text styles. For data-rich content, not for flow content',
3115
+ type: 'variant',
3116
+ values: [ true ]
3117
+ },
3053
3118
  inverse: {
3054
3119
  description: 'Styles the link white for use on dark backgrounds.',
3055
3120
  type: 'variant',
@@ -3057,7 +3122,14 @@ module.exports = {
3057
3122
  },
3058
3123
  size: {
3059
3124
  type: 'variant',
3060
- values: [ 'small', 'large', 'h1', 'h2', 'h3', 'h4', 'display' ]
3125
+ values: [
3126
+ 'micro', 'small',
3127
+ 'medium', 'large',
3128
+ 'h1', 'h2',
3129
+ 'h3', 'h4',
3130
+ 'h5', 'h6',
3131
+ 'display1', 'display2'
3132
+ ]
3061
3133
  },
3062
3134
  viewport: {
3063
3135
  description: 'The size label for the current screen viewport based on the current screen width',
@@ -3081,72 +3153,119 @@ module.exports = {
3081
3153
  },
3082
3154
  {
3083
3155
  if: { size: 'large' },
3084
- tokens: { fontSize: 20, lineHeight: 1.6 }
3156
+ tokens: { fontSize: 20, lineHeight: 1.4 }
3157
+ },
3158
+ {
3159
+ if: { compact: true, size: 'large' },
3160
+ tokens: { lineHeight: 1.2 }
3161
+ },
3162
+ {
3163
+ if: { size: 'medium' },
3164
+ tokens: { fontSize: 16, lineHeight: 1.5 }
3165
+ },
3166
+ {
3167
+ if: { compact: true, size: 'medium' },
3168
+ tokens: { lineHeight: 1.25 }
3085
3169
  },
3086
3170
  {
3087
3171
  if: { size: 'small' },
3088
- tokens: { fontSize: 14, lineHeight: 1.4 }
3172
+ tokens: { fontSize: 14, lineHeight: 1.42857142857 }
3089
3173
  },
3090
3174
  {
3091
- if: { size: 'display' },
3175
+ if: { compact: true, size: 'small' },
3176
+ tokens: { lineHeight: 1.14285714286 }
3177
+ },
3178
+ {
3179
+ if: { size: 'micro' },
3180
+ tokens: { fontSize: 12, lineHeight: 1.33333333333 }
3181
+ },
3182
+ {
3183
+ if: { compact: true, size: 'micro' },
3184
+ tokens: { lineHeight: 1.33333333333 }
3185
+ },
3186
+ {
3187
+ if: { size: 'display1' },
3092
3188
  tokens: {
3093
3189
  fontName: 'StagSans',
3094
- fontSize: 48,
3190
+ fontSize: 44,
3095
3191
  fontWeight: '700',
3096
- lineHeight: 1.2
3192
+ lineHeight: 1.22222222222
3193
+ }
3194
+ },
3195
+ {
3196
+ if: { size: 'display1', viewport: [ 'lg', 'xl' ] },
3197
+ tokens: { fontSize: 70, lineHeight: 1.2 }
3198
+ },
3199
+ {
3200
+ if: { size: 'display2' },
3201
+ tokens: {
3202
+ fontName: 'StagSans',
3203
+ fontSize: 36,
3204
+ fontWeight: '700',
3205
+ lineHeight: 1.22222222222
3097
3206
  }
3098
3207
  },
3099
3208
  {
3100
- if: { size: 'display', viewport: [ 'lg', 'xl' ] },
3101
- tokens: { fontSize: 64, lineHeight: 1.1 }
3209
+ if: { size: 'display2', viewport: [ 'lg', 'xl' ] },
3210
+ tokens: { fontSize: 54, lineHeight: 1.14285714286 }
3102
3211
  },
3103
3212
  {
3104
3213
  if: { size: 'h1' },
3105
3214
  tokens: {
3106
3215
  fontName: 'StagSans',
3107
- fontSize: 44,
3216
+ fontSize: 34,
3108
3217
  fontWeight: '700',
3109
- lineHeight: 1.2
3218
+ lineHeight: 1.22222222222
3110
3219
  }
3111
3220
  },
3112
3221
  {
3113
3222
  if: { size: 'h1', viewport: [ 'lg', 'xl' ] },
3114
- tokens: { fontSize: 40, lineHeight: 1.1 }
3223
+ tokens: { fontSize: 44, lineHeight: 1.22222222222 }
3115
3224
  },
3116
3225
  {
3117
3226
  if: { size: 'h2' },
3118
3227
  tokens: {
3119
3228
  color: '#000000',
3120
3229
  fontName: 'StagSans',
3121
- fontSize: 28,
3230
+ fontSize: 32,
3122
3231
  fontWeight: '700',
3123
- lineHeight: 1.3
3232
+ lineHeight: 1.25
3124
3233
  }
3125
3234
  },
3126
3235
  {
3127
- if: { size: 'h2', viewport: [ 'lg', 'xl' ] },
3128
- tokens: { fontSize: 28 }
3236
+ if: { size: 'h3' },
3237
+ tokens: {
3238
+ fontName: 'StagSans',
3239
+ fontSize: 24,
3240
+ fontWeight: '700',
3241
+ lineHeight: 1.33333333333
3242
+ }
3129
3243
  },
3130
3244
  {
3131
- if: { size: 'h3' },
3245
+ if: { size: 'h4' },
3132
3246
  tokens: {
3133
3247
  fontName: 'StagSans',
3134
3248
  fontSize: 20,
3135
3249
  fontWeight: '700',
3136
- lineHeight: 1.4
3250
+ lineHeight: 1.2
3137
3251
  }
3138
3252
  },
3139
3253
  {
3140
- if: { size: 'h3', viewport: [ 'lg', 'xl' ] },
3141
- tokens: { fontSize: 24, lineHeight: 1.3 }
3254
+ if: { size: 'h5' },
3255
+ tokens: {
3256
+ fontName: 'StagSans',
3257
+ fontSize: 18,
3258
+ fontWeight: '700',
3259
+ lineHeight: 1.22222222222
3260
+ }
3142
3261
  },
3143
3262
  {
3144
- if: { size: 'h4' },
3263
+ if: { size: 'h6' },
3145
3264
  tokens: {
3146
3265
  fontName: 'StagSans',
3147
3266
  fontSize: 16,
3148
3267
  fontWeight: '700',
3149
- lineHeight: 1.5
3268
+ lineHeight: 1.25
3150
3269
  }
3151
3270
  },
3152
3271
  { if: { inverse: true }, tokens: { color: '#ffffff' } },
@@ -3223,5 +3342,5 @@ module.exports = {
3223
3342
  tokens: { size: 96 }
3224
3343
  }
3225
3344
  },
3226
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.12.0' }
3345
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.13.0' }
3227
3346
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.5.0",
9
- "@telus-uds/system-theme-tokens": "^2.12.0"
8
+ "@telus-uds/palette-koodo": "^0.6.0",
9
+ "@telus-uds/system-theme-tokens": "^2.13.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": "^0.5.0"
23
+ "@telus-uds/palette-koodo": "^0.6.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": "3.13.0"
34
+ "version": "3.14.0"
35
35
  }