@telus-uds/theme-koodo 4.7.0 → 4.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/build/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Wed, 28 Jun 2023 23:15:25 GMT
4
+ * Generated on Fri, 07 Jul 2023 19:15:37 GMT
5
5
  *
6
6
  */
7
7
 
@@ -374,7 +374,15 @@ module.exports = {
374
374
  },
375
375
  {
376
376
  if: { focus: true },
377
- tokens: { outerBorderColor: '#016b6a', outerBorderGap: 2 }
377
+ tokens: {
378
+ borderBottomWidth: 4,
379
+ borderLeftWidth: 4,
380
+ borderRightWidth: 4,
381
+ borderTopWidth: 4,
382
+ color: '#000000',
383
+ outerBorderColor: '#016b6a',
384
+ outerBorderGap: 2
385
+ }
378
386
  },
379
387
  {
380
388
  if: { inverse: true, priority: 'high' },
@@ -1737,6 +1745,18 @@ module.exports = {
1737
1745
  contentPaddingLeft: 16,
1738
1746
  contentPaddingRight: 16,
1739
1747
  contentPaddingTop: 16,
1748
+ contentPanelBackgroundColor: '#efefef',
1749
+ contentPanelBorderColor: 'rgba(0, 0, 0, 0)',
1750
+ contentPanelBorderWidth: 0,
1751
+ contentPanelFontColor: '#000000',
1752
+ contentPanelFontName: 'StagSans',
1753
+ contentPanelFontSize: 16,
1754
+ contentPanelFontWeight: '700',
1755
+ contentPanelLineHeight: 1.5,
1756
+ contentPanelPaddingBottom: 16,
1757
+ contentPanelPaddingLeft: 24,
1758
+ contentPanelPaddingRight: 24,
1759
+ contentPanelPaddingTop: 16,
1740
1760
  expandDividerColor: null,
1741
1761
  expandDividerWidth: null,
1742
1762
  expandDuration: 300,
@@ -2846,21 +2866,17 @@ module.exports = {
2846
2866
  {
2847
2867
  if: { selected: true },
2848
2868
  tokens: {
2849
- backgroundColor: '#efefef',
2850
- borderColor: '#efefef',
2851
- color: '#016b6a',
2869
+ backgroundColor: '#016b6a',
2870
+ borderColor: '#016b6a',
2871
+ color: '#ffffff',
2852
2872
  fontName: 'StagSans',
2853
- fontWeight: '700'
2873
+ fontWeight: '600',
2874
+ outerBorderColor: '#016b6a'
2854
2875
  }
2855
2876
  },
2856
2877
  {
2857
2878
  if: { focus: true },
2858
- tokens: {
2859
- backgroundColor: '#ffffff',
2860
- borderColor: '#016b6a',
2861
- borderWidth: 3,
2862
- color: '#016b6a'
2863
- }
2879
+ tokens: { borderColor: '#016b6a', borderWidth: 4 }
2864
2880
  },
2865
2881
  {
2866
2882
  if: { focus: true, pressed: true },
@@ -2873,23 +2889,44 @@ module.exports = {
2873
2889
  {
2874
2890
  if: { hover: true },
2875
2891
  tokens: {
2876
- backgroundColor: '#1b4746',
2877
- borderColor: '#016b6a',
2878
- color: '#016b6a'
2892
+ backgroundColor: '#014847',
2893
+ borderColor: '#014847',
2894
+ color: '#ffffff'
2879
2895
  }
2880
2896
  },
2881
2897
  {
2882
2898
  if: { pressed: true },
2883
2899
  tokens: {
2884
- backgroundColor: '#efefef',
2885
- borderColor: '#016b6a',
2900
+ backgroundColor: '#595959',
2901
+ borderColor: '#595959',
2886
2902
  borderWidth: 1,
2887
- color: '#016b6a'
2903
+ color: '#c9c8c8'
2888
2904
  }
2889
2905
  },
2890
2906
  {
2891
2907
  if: { viewport: [ 'xs', 'sm', 'md' ] },
2892
- tokens: { textAlign: 'flex-start', width: 288 }
2908
+ tokens: { textAlign: 'space-between', width: 288 }
2909
+ },
2910
+ {
2911
+ if: { hover: true, selected: true },
2912
+ tokens: {
2913
+ backgroundColor: '#014847',
2914
+ borderColor: '#014847',
2915
+ color: '#ffffff',
2916
+ fontName: 'StagSans',
2917
+ fontWeight: '600'
2918
+ }
2919
+ },
2920
+ {
2921
+ if: { pressed: true, selected: true },
2922
+ tokens: {
2923
+ backgroundColor: '#595959',
2924
+ borderColor: '#595959',
2925
+ color: '#c9c8c8',
2926
+ fontName: 'StagSans',
2927
+ fontWeight: '600',
2928
+ outerBorderColor: '#595959'
2929
+ }
2893
2930
  },
2894
2931
  {
2895
2932
  if: { expanded: true },
@@ -2900,24 +2937,24 @@ module.exports = {
2900
2937
  alignSelf: 'flex-start',
2901
2938
  backgroundColor: '#ffffff',
2902
2939
  borderColor: '#ffffff',
2903
- borderRadius: 32,
2904
- borderWidth: 1,
2905
- color: '#efefef',
2940
+ borderRadius: 4,
2941
+ borderWidth: 4,
2942
+ color: '#000000',
2906
2943
  fontName: 'StagSans',
2907
2944
  fontSize: 14,
2908
- fontWeight: '400',
2945
+ fontWeight: '600',
2909
2946
  icoMenu: PaletteIconChevronDown,
2910
- lineHeight: 1.14285714286,
2947
+ lineHeight: 1.45,
2911
2948
  minWidth: 0,
2912
2949
  opacity: 1,
2913
2950
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
2914
2951
  outerBorderColor: 'rgba(0, 0, 0, 0)',
2915
2952
  outerBorderGap: 0,
2916
- outerBorderWidth: 1,
2917
- paddingBottom: 8,
2953
+ outerBorderWidth: 0,
2954
+ paddingBottom: 6,
2918
2955
  paddingLeft: 16,
2919
2956
  paddingRight: 16,
2920
- paddingTop: 8,
2957
+ paddingTop: 6,
2921
2958
  shadow: null,
2922
2959
  textAlign: 'center',
2923
2960
  width: 0
@@ -4468,18 +4505,40 @@ module.exports = {
4468
4505
  }
4469
4506
  },
4470
4507
  SkipLink: {
4471
- appearances: {},
4472
- rules: [],
4508
+ appearances: {
4509
+ focus: {
4510
+ 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.",
4511
+ platforms: [ 'rn' ],
4512
+ type: 'state',
4513
+ values: [ true, false ]
4514
+ },
4515
+ pressed: {
4516
+ 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.',
4517
+ type: 'state',
4518
+ values: [ true, false ]
4519
+ }
4520
+ },
4521
+ rules: [
4522
+ {
4523
+ if: { focus: true, pressed: true },
4524
+ tokens: { color: '#595959', outlineColor: '#595959' }
4525
+ }
4526
+ ],
4473
4527
  tokens: {
4474
- backgroundColor: '#1b4746',
4475
- borderRadius: 12,
4476
- color: '#ffffff',
4528
+ backgroundColor: '#ffffff',
4529
+ borderRadius: 4,
4530
+ color: '#016b6a',
4531
+ fontName: 'StagSans',
4532
+ fontSize: 16,
4533
+ fontWeight: '600',
4534
+ lineHeight: 1.5,
4477
4535
  outlineColor: '#016b6a',
4478
4536
  outlineOffset: 0,
4479
4537
  outlineStyle: 'solid',
4480
4538
  outlineWidth: 2,
4481
- paddingHorizontal: 8,
4482
- paddingVertical: 8
4539
+ paddingHorizontal: 2,
4540
+ paddingVertical: 2,
4541
+ textLine: 'underline'
4483
4542
  }
4484
4543
  },
4485
4544
  Spinner: {
@@ -4704,36 +4763,141 @@ module.exports = {
4704
4763
  }
4705
4764
  },
4706
4765
  Table: {
4707
- appearances: { spacing: { type: 'variant', values: [ 'compact' ] } },
4766
+ appearances: {
4767
+ spacing: {
4768
+ description: 'Adjusts the height of the table cell',
4769
+ type: 'variant',
4770
+ values: [ 'compact', 'default' ]
4771
+ },
4772
+ text: { type: 'variant', values: [ 'small' ] },
4773
+ type: {
4774
+ type: 'variant',
4775
+ values: [ 'subHeading', 'rowHeading', 'heading', 'default' ]
4776
+ }
4777
+ },
4708
4778
  rules: [
4709
4779
  {
4710
- if: { spacing: 'compact' },
4711
- tokens: { cellPaddingBottom: 8, cellPaddingTop: 8 }
4780
+ if: { spacing: 'compact', type: 'default' },
4781
+ tokens: {
4782
+ cellPaddingBottom: 8,
4783
+ cellPaddingTop: 8,
4784
+ fontSize: 16,
4785
+ lineHeight: 1.25
4786
+ }
4787
+ },
4788
+ {
4789
+ if: { spacing: 'compact', type: 'rowHeading' },
4790
+ tokens: {
4791
+ cellPaddingBottom: 8,
4792
+ cellPaddingTop: 8,
4793
+ fontName: 'StagSans',
4794
+ fontSize: 16,
4795
+ fontWeight: '600',
4796
+ lineHeight: 1.25
4797
+ }
4798
+ },
4799
+ {
4800
+ if: { spacing: 'compact', type: 'subHeading' },
4801
+ tokens: {
4802
+ cellBackground: '#fafafa',
4803
+ cellPaddingBottom: 8,
4804
+ cellPaddingTop: 8,
4805
+ fontName: 'StagSans',
4806
+ fontSize: 16,
4807
+ fontWeight: '600',
4808
+ lineHeight: 1.25
4809
+ }
4810
+ },
4811
+ {
4812
+ if: { spacing: 'default', type: 'heading' },
4813
+ tokens: {
4814
+ cellBackground: '#c1f2e8',
4815
+ cellBoxShadowColor: 'rgba(0, 0, 0, 0)',
4816
+ fontName: 'StagSans',
4817
+ fontSize: 16,
4818
+ fontWeight: '600',
4819
+ lineHeight: 1.5
4820
+ }
4821
+ },
4822
+ {
4823
+ if: { spacing: 'compact', type: 'heading' },
4824
+ tokens: {
4825
+ cellBackground: '#c1f2e8',
4826
+ cellBoxShadowColor: 'rgba(0, 0, 0, 0)',
4827
+ fontName: 'StagSans',
4828
+ fontSize: 16,
4829
+ fontWeight: '600',
4830
+ lineHeight: 1.25
4831
+ }
4832
+ },
4833
+ {
4834
+ if: { spacing: 'default', type: 'subHeading' },
4835
+ tokens: {
4836
+ cellBackground: '#fafafa',
4837
+ fontName: 'StagSans',
4838
+ fontSize: 16,
4839
+ fontWeight: '600',
4840
+ lineHeight: 1.5
4841
+ }
4842
+ },
4843
+ {
4844
+ if: { spacing: 'default', type: 'rowHeading' },
4845
+ tokens: {
4846
+ fontName: 'StagSans',
4847
+ fontSize: 16,
4848
+ fontWeight: '600',
4849
+ lineHeight: 1.5
4850
+ }
4851
+ },
4852
+ {
4853
+ if: { text: 'small', type: 'default' },
4854
+ tokens: {
4855
+ fontName: 'StagSans',
4856
+ fontSize: 14,
4857
+ fontWeight: '400',
4858
+ lineHeight: 1.42857142857
4859
+ }
4860
+ },
4861
+ {
4862
+ if: { spacing: 'default', text: 'small', type: 'rowHeading' },
4863
+ tokens: {
4864
+ fontName: 'StagSans',
4865
+ fontSize: 14,
4866
+ fontWeight: '600',
4867
+ lineHeight: 1.42857142857
4868
+ }
4869
+ },
4870
+ {
4871
+ if: { spacing: 'compact', text: 'small', type: 'rowHeading' },
4872
+ tokens: {
4873
+ fontName: 'StagSans',
4874
+ fontSize: 14,
4875
+ fontWeight: '600',
4876
+ lineHeight: 1.14285714286
4877
+ }
4712
4878
  }
4713
4879
  ],
4714
4880
  tokens: {
4715
4881
  cellBackground: '#ffffff',
4716
4882
  cellBoxShadowColor: '#efefef',
4717
- cellHeadingBackground: '#c1f2e8',
4718
- cellHeadingBoxShadowColor: '#efefef',
4719
4883
  cellMinWidth: 0,
4720
4884
  cellPaddingBottom: 16,
4721
4885
  cellPaddingLeft: 16,
4722
4886
  cellPaddingRight: 16,
4723
4887
  cellPaddingTop: 16,
4724
- cellRowHeadingBackground: '#ffffff',
4725
4888
  cellStickyShadow: {
4726
- blur: 1,
4727
- color: 'rgba(255, 255, 255, 0.8)',
4728
- inset: true,
4889
+ blur: 8,
4890
+ color: 'rgba(0, 0, 0, 0.1)',
4891
+ inset: false,
4729
4892
  offsetX: 0,
4730
- offsetY: 1,
4893
+ offsetY: 4,
4731
4894
  spread: 0
4732
4895
  },
4733
- cellSubheadingBackground: '#fafafa',
4734
4896
  fontName: 'StagSans',
4735
4897
  fontSize: 16,
4736
- fontWeight: '600',
4898
+ fontWeight: '400',
4899
+ lineHeight: 1.5,
4900
+ stickyBackgroundColor: '#ffffff',
4737
4901
  tablePaddingBottom: 24
4738
4902
  }
4739
4903
  },
@@ -4965,6 +5129,7 @@ module.exports = {
4965
5129
  icon: PaletteIconClose,
4966
5130
  iconBackground: '#016b6a',
4967
5131
  iconColor: '#ffffff',
5132
+ iconPadding: 4,
4968
5133
  outerBorderColor: 'rgba(0, 0, 0, 0)',
4969
5134
  outerBorderWidth: 0
4970
5135
  }
@@ -5030,7 +5195,7 @@ module.exports = {
5030
5195
  outerBorderWidth: 0,
5031
5196
  paddingBottom: 8,
5032
5197
  paddingLeft: 16,
5033
- paddingRight: 8,
5198
+ paddingRight: 16,
5034
5199
  paddingTop: 8,
5035
5200
  shadow: null,
5036
5201
  textAlign: 'center'
@@ -5042,37 +5207,59 @@ module.exports = {
5042
5207
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
5043
5208
  type: 'state',
5044
5209
  values: [ true ]
5210
+ },
5211
+ viewport: {
5212
+ description: 'The size label for the current screen viewport based on the current screen width',
5213
+ type: 'state',
5214
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
5045
5215
  }
5046
5216
  },
5047
5217
  rules: [
5218
+ {
5219
+ if: { viewport: [ 'xs', 'sm' ] },
5220
+ tokens: {
5221
+ expandContentPaddingRight: 24,
5222
+ listMarginLeft: 2,
5223
+ titlePaddingLeft: 2
5224
+ }
5225
+ },
5048
5226
  {
5049
5227
  if: { expanded: true },
5050
5228
  tokens: { icon: PaletteIconChevronUp }
5051
5229
  }
5052
5230
  ],
5053
5231
  tokens: {
5232
+ contentBorderColor: 'transparent',
5233
+ contentMarginBottom: 0,
5054
5234
  contentPaddingBottom: 8,
5055
5235
  contentPaddingLeft: 16,
5236
+ dividerColor: '#c9c8c8',
5056
5237
  expandBaseBorderWidth: 0,
5057
5238
  expandContentPaddingBottom: 16,
5058
5239
  expandContentPaddingLeft: 16,
5059
5240
  expandContentPaddingRight: 16,
5060
5241
  expandContentPaddingTop: 16,
5061
5242
  expandIconContainerAlignItems: 'center',
5062
- expandIconContainerBorder: 1,
5063
- expandIconContainerBorderColor: '#efefef',
5243
+ expandIconContainerBorder: 0,
5244
+ expandIconContainerBorderColor: 'rgba(0, 0, 0, 0)',
5064
5245
  expandIconContainerHeight: 32,
5065
5246
  expandIconContainerJustifyContent: 'center',
5066
5247
  expandIconContainerMarginX: 0,
5067
5248
  expandIconContainerMarginY: 12,
5068
5249
  expandIconContainerWidth: 32,
5069
- expandTitleColor: '#efefef',
5250
+ expandTitleBorder: 0,
5251
+ expandTitleBorderColor: 'rgba(0, 0, 0, 0)',
5252
+ expandTitleColor: '#000000',
5253
+ expandTitleFontName: 'StagSans',
5070
5254
  expandTitleFontSize: 16,
5255
+ expandTitleFontWeight: '600',
5071
5256
  expandTitleLineHeight: 1.5,
5072
5257
  expandTitleMarginX: 4,
5073
5258
  expandTitleMarginY: 0,
5259
+ expandTitlePaddingLeft: 0,
5260
+ expandTitleUnderline: 'none',
5074
5261
  icon: PaletteIconChevronDown,
5075
- listColor: '#016b6a',
5262
+ listColor: '#000000',
5076
5263
  listFontName: 'StagSans',
5077
5264
  listFontSize: 14,
5078
5265
  listFontWeight: '400',
@@ -5085,8 +5272,8 @@ module.exports = {
5085
5272
  titleColor: '#016b6a',
5086
5273
  titleFontSize: 14,
5087
5274
  titleLineHeight: 1.42857142857,
5088
- titlePaddingLeft: 8,
5089
- unorderedPadding: 0
5275
+ titlePaddingLeft: 32,
5276
+ unorderedPadding: 12
5090
5277
  }
5091
5278
  },
5092
5279
  Testimonial: {
@@ -5749,6 +5936,7 @@ module.exports = {
5749
5936
  fontWeight: '400',
5750
5937
  letterSpacing: 0,
5751
5938
  lineHeight: 1.5,
5939
+ superScriptFontSize: null,
5752
5940
  textTransform: 'none'
5753
5941
  }
5754
5942
  },
@@ -5827,13 +6015,13 @@ module.exports = {
5827
6015
  appearances: {},
5828
6016
  rules: [],
5829
6017
  tokens: {
5830
- framedContainerBackgroundColor: 'rgba(0, 0, 0, 0)',
5831
- framedContainerBorderColor: 'rgba(0, 0, 0, 0)',
6018
+ framedContainerBackgroundColor: '#fafafa',
6019
+ framedContainerBorderColor: '#c9c8c8',
5832
6020
  framedContainerBorderRadius: 4,
5833
6021
  framedContainerBorderWidth: 1,
5834
6022
  framedContainerPadding: 24,
5835
6023
  framedMaxHeight: 640,
5836
- stackViewDividerColor: 'rgba(0, 0, 0, 0)'
6024
+ stackViewDividerColor: '#c9c8c8'
5837
6025
  }
5838
6026
  },
5839
6027
  VideoPickerSlider: {
@@ -5845,20 +6033,68 @@ module.exports = {
5845
6033
  }
5846
6034
  },
5847
6035
  VideoPickerThumbnail: {
5848
- appearances: {},
5849
- rules: [],
6036
+ appearances: {
6037
+ focus: {
6038
+ 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.",
6039
+ platforms: [ 'rn' ],
6040
+ type: 'state',
6041
+ values: [ true, false ]
6042
+ },
6043
+ hover: {
6044
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
6045
+ platforms: [ 'rn' ],
6046
+ type: 'state',
6047
+ values: [ true, false ]
6048
+ },
6049
+ pressed: {
6050
+ 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.',
6051
+ type: 'state',
6052
+ values: [ true, false ]
6053
+ },
6054
+ selected: {
6055
+ description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
6056
+ type: 'state',
6057
+ values: [ true ]
6058
+ }
6059
+ },
6060
+ rules: [
6061
+ {
6062
+ if: { focus: true },
6063
+ tokens: {
6064
+ borderColor: '#595959',
6065
+ borderWidth: 1,
6066
+ outerBorderColor: '#17367d'
6067
+ }
6068
+ },
6069
+ {
6070
+ if: { hover: true },
6071
+ tokens: { borderColor: '#c9c8c8', borderWidth: 3 }
6072
+ },
6073
+ {
6074
+ if: { pressed: true },
6075
+ tokens: { borderColor: '#595959', borderWidth: 3 }
6076
+ },
6077
+ {
6078
+ if: { selected: true },
6079
+ tokens: { borderColor: '#016b6a', titleColor: '#016b6a' }
6080
+ }
6081
+ ],
5850
6082
  tokens: {
5851
- borderColor: 'rgba(0, 0, 0, 0)',
6083
+ borderColor: '#c9c8c8',
5852
6084
  borderRadius: 4,
5853
6085
  borderWidth: 2,
5854
- pressableBorderTopColor: 'rgba(0, 0, 0, 0)',
6086
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
6087
+ outerBorderGap: 2,
6088
+ outerBorderRadius: 8,
6089
+ outerBorderWidth: 2,
6090
+ pressableBorderTopColor: '#c9c8c8',
5855
6091
  pressableBorderTopWidth: 1,
5856
6092
  pressablePaddingBottom: 16,
5857
6093
  pressablePaddingHorizontal: 24,
5858
6094
  pressablePaddingVertical: 16,
5859
6095
  splashButtonRadius: 4,
5860
- subTitleColor: 'rgba(0, 0, 0, 0)',
5861
- titleColor: 'rgba(0, 0, 0, 0)'
6096
+ subTitleColor: '#595959',
6097
+ titleColor: '#000000'
5862
6098
  }
5863
6099
  },
5864
6100
  VideoProgressBar: {
@@ -5960,5 +6196,5 @@ module.exports = {
5960
6196
  tokens: { size: 96 }
5961
6197
  }
5962
6198
  },
5963
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.36.0' }
6199
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.37.0' }
5964
6200
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.21.0",
9
- "@telus-uds/system-theme-tokens": "^2.36.0"
8
+ "@telus-uds/palette-koodo": "^0.22.0",
9
+ "@telus-uds/system-theme-tokens": "^2.37.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.21.0"
23
+ "@telus-uds/palette-koodo": "^0.22.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": "4.7.0"
34
+ "version": "4.8.0"
35
35
  }