@telus-uds/theme-koodo 3.10.0 → 3.12.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, 28 Feb 2023 00:22:13 GMT
4
+ * Generated on Tue, 07 Mar 2023 21:06:01 GMT
5
5
  *
6
6
  */
7
7
 
@@ -179,8 +179,8 @@ module.exports = {
179
179
  {
180
180
  if: { hover: true },
181
181
  tokens: {
182
- backgroundColor: '#014847',
183
- borderColor: '#014847',
182
+ backgroundColor: '#1b4746',
183
+ borderColor: '#1b4746',
184
184
  color: '#ffffff'
185
185
  }
186
186
  },
@@ -340,7 +340,7 @@ module.exports = {
340
340
  },
341
341
  {
342
342
  if: { hover: true },
343
- tokens: { backgroundColor: '#014847', iconColor: '#014847' }
343
+ tokens: { backgroundColor: '#1b4746', iconColor: '#1b4746' }
344
344
  },
345
345
  {
346
346
  if: { selected: true },
@@ -375,13 +375,13 @@ module.exports = {
375
375
  },
376
376
  {
377
377
  if: { focus: true, selected: true },
378
- tokens: { outerBorderColor: '#014847' }
378
+ tokens: { outerBorderColor: '#1b4746' }
379
379
  }
380
380
  ],
381
381
  tokens: {
382
382
  alignSelf: 'flex-start',
383
383
  backgroundColor: '#016b6a',
384
- borderColor: '#014847',
384
+ borderColor: '#1b4746',
385
385
  borderRadius: 4,
386
386
  borderWidth: 0,
387
387
  color: '#ffffff',
@@ -412,7 +412,7 @@ module.exports = {
412
412
  paddingRight: 16,
413
413
  paddingTop: 8,
414
414
  shadow: null,
415
- subtitleColor: '#014847',
415
+ subtitleColor: '#1b4746',
416
416
  textAlign: 'center',
417
417
  width: null
418
418
  }
@@ -478,7 +478,7 @@ module.exports = {
478
478
  if: { focus: true },
479
479
  tokens: { outerBorderColor: '#016b6a' }
480
480
  },
481
- { if: { hover: true }, tokens: { backgroundColor: '#014847' } },
481
+ { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
482
482
  {
483
483
  if: { selected: true },
484
484
  tokens: {
@@ -511,14 +511,14 @@ module.exports = {
511
511
  },
512
512
  {
513
513
  if: { focus: true, selected: true },
514
- tokens: { outerBorderColor: '#014847' }
514
+ tokens: { outerBorderColor: '#1b4746' }
515
515
  },
516
516
  { if: { iconPosition: 'right' }, tokens: { iconSpace: 1 } }
517
517
  ],
518
518
  tokens: {
519
519
  alignSelf: 'flex-start',
520
520
  backgroundColor: '#016b6a',
521
- borderColor: '#014847',
521
+ borderColor: '#1b4746',
522
522
  borderRadius: 4,
523
523
  borderWidth: 0,
524
524
  color: '#ffffff',
@@ -649,9 +649,9 @@ module.exports = {
649
649
  {
650
650
  if: { pressed: true },
651
651
  tokens: {
652
- borderBottomColor: '#014847',
652
+ borderBottomColor: '#1b4746',
653
653
  borderBottomWidth: 2,
654
- color: '#014847'
654
+ color: '#1b4746'
655
655
  }
656
656
  },
657
657
  {
@@ -757,13 +757,88 @@ module.exports = {
757
757
  },
758
758
  CheckboxGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
759
759
  ChevronLink: {
760
- appearances: {},
761
- rules: [],
760
+ appearances: {
761
+ alternative: { type: 'variant', values: [ true ] },
762
+ focus: {
763
+ 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.",
764
+ platforms: [ 'rn' ],
765
+ type: 'state',
766
+ values: [ true ]
767
+ },
768
+ hover: {
769
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
770
+ platforms: [ 'rn' ],
771
+ type: 'state',
772
+ values: [ true ]
773
+ },
774
+ inverse: { type: 'variant', values: [ true ] },
775
+ pressed: {
776
+ 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.',
777
+ type: 'state',
778
+ values: [ true ]
779
+ },
780
+ size: {
781
+ description: 'Sets the size of the text and icon; these variants are shared with ChevronLink',
782
+ type: 'variant',
783
+ values: [ 'large', 'small', 'micro' ]
784
+ }
785
+ },
786
+ rules: [
787
+ { if: { hover: true }, tokens: { color: '#1b4746' } },
788
+ { if: { pressed: true }, tokens: { color: '#595959' } },
789
+ {
790
+ if: { focus: true },
791
+ tokens: { color: '#016b6a', outerBorderColor: '#016b6a' }
792
+ },
793
+ {
794
+ if: { focus: true, pressed: true },
795
+ tokens: { color: '#1b4746', outerBorderColor: '#1b4746' }
796
+ },
797
+ { if: { alternative: true }, tokens: { color: '#666666' } },
798
+ {
799
+ if: { alternative: true, hover: true },
800
+ tokens: { color: '#5c5c5c' }
801
+ },
802
+ {
803
+ if: { alternative: true, pressed: true },
804
+ tokens: { color: '#595959' }
805
+ },
806
+ {
807
+ if: { alternative: true, focus: true },
808
+ tokens: { color: '#666666', outerBorderColor: '#666666' }
809
+ },
810
+ {
811
+ if: { alternative: true, focus: true, pressed: true },
812
+ tokens: { color: '#5c5c5c', outerBorderColor: '#5c5c5c' }
813
+ },
814
+ { if: { inverse: true }, tokens: { color: '#e5f7fb' } },
815
+ {
816
+ if: { hover: true, inverse: true },
817
+ tokens: { color: '#bbeaf5' }
818
+ },
819
+ {
820
+ if: { inverse: true, pressed: true },
821
+ tokens: { color: '#c9c8c8' }
822
+ },
823
+ {
824
+ if: { focus: true, inverse: true },
825
+ tokens: { color: '#e5f7fb', outerBorderColor: '#e5f7fb' }
826
+ },
827
+ {
828
+ if: { focus: true, inverse: true, pressed: true },
829
+ tokens: { color: '#bbeaf5', outerBorderColor: '#bbeaf5' }
830
+ },
831
+ { if: { size: 'large' }, tokens: { iconSize: 24 } },
832
+ { if: { size: 'small' }, tokens: { iconSize: 20 } },
833
+ { if: { size: 'micro' }, tokens: { iconSize: 16 } }
834
+ ],
762
835
  tokens: {
763
- iconDisplace: 4,
836
+ color: '#016b6a',
837
+ iconDisplace: 0,
764
838
  iconSize: 24,
765
- iconSpace: 0,
839
+ iconSpace: 1,
766
840
  leftIcon: PaletteIconChevronLeft,
841
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
767
842
  rightIcon: PaletteIconChevronRight,
768
843
  textLine: 'none'
769
844
  }
@@ -926,8 +1001,8 @@ module.exports = {
926
1001
  if: { hover: true },
927
1002
  tokens: {
928
1003
  backgroundColor: '#f9f6a5',
929
- borderColor: '#014847',
930
- iconColor: '#014847'
1004
+ borderColor: '#1b4746',
1005
+ iconColor: '#1b4746'
931
1006
  }
932
1007
  },
933
1008
  {
@@ -958,11 +1033,19 @@ module.exports = {
958
1033
  },
959
1034
  Icon: {
960
1035
  appearances: {
961
- colour: {
1036
+ color: {
962
1037
  type: 'variant',
963
- values: [ 'primary', 'secondary', 'black', 'white' ]
1038
+ values: [
1039
+ 'brand', 'subtle',
1040
+ 'offer', 'success',
1041
+ 'danger', 'warning',
1042
+ 'inverse'
1043
+ ]
1044
+ },
1045
+ size: {
1046
+ type: 'variant',
1047
+ values: [ 'micro', 'small', 'large', 'extraLarge' ]
964
1048
  },
965
- size: { type: 'variant', values: [ 'small' ] },
966
1049
  status: {
967
1050
  description: 'Uses icon colour to communicate meaning to the user',
968
1051
  type: 'variant',
@@ -970,16 +1053,22 @@ module.exports = {
970
1053
  }
971
1054
  },
972
1055
  rules: [
1056
+ { if: { size: 'micro' }, tokens: { size: 16 } },
973
1057
  { if: { size: 'small' }, tokens: { size: 20 } },
974
- { if: { colour: 'primary' }, tokens: { color: '#000000' } },
975
- { if: { colour: 'secondary' }, tokens: { color: '#00a1db' } },
976
- { if: { colour: 'black' }, tokens: { color: '#000000' } },
977
- { if: { colour: 'white' }, tokens: { color: '#ffffff' } },
1058
+ { if: { size: 'large' }, tokens: { size: 32 } },
1059
+ { if: { size: 'extraLarge' }, tokens: { size: 48 } },
1060
+ { if: { color: 'brand' }, tokens: { color: '#016b6a' } },
1061
+ { if: { color: 'subtle' }, tokens: { color: '#666666' } },
1062
+ { if: { color: 'offer' }, tokens: { color: '#016b6a' } },
1063
+ { if: { color: 'success' }, tokens: { color: '#016b6a' } },
1064
+ { if: { color: 'danger' }, tokens: { color: '#ee2c74' } },
1065
+ { if: { color: 'warning' }, tokens: { color: '#595959' } },
1066
+ { if: { color: 'inverse' }, tokens: { color: '#ffffff' } },
978
1067
  { if: { status: 'success' }, tokens: { color: '#016b6a' } },
979
1068
  { if: { status: 'error' }, tokens: { color: '#ee2c74' } }
980
1069
  ],
981
1070
  tokens: {
982
- color: '#666666',
1071
+ color: '#000000',
983
1072
  scale: 1,
984
1073
  size: 24,
985
1074
  translateX: 0,
@@ -1075,7 +1164,7 @@ module.exports = {
1075
1164
  { if: { iconPosition: 'left' }, tokens: { iconSpace: 2 } },
1076
1165
  {
1077
1166
  if: { hover: true },
1078
- tokens: { color: '#014847', textLine: 'none' }
1167
+ tokens: { color: '#1b4746', textLine: 'none' }
1079
1168
  },
1080
1169
  { if: { rank: 'secondary' }, tokens: { color: '#00a1db' } },
1081
1170
  {
@@ -1528,7 +1617,7 @@ module.exports = {
1528
1617
  backgroundColor: '#016b6a',
1529
1618
  borderRadius: 12,
1530
1619
  gradient: null,
1531
- outlineColor: '#014847',
1620
+ outlineColor: '#1b4746',
1532
1621
  outlineWidth: 1
1533
1622
  }
1534
1623
  },
@@ -1579,8 +1668,8 @@ module.exports = {
1579
1668
  {
1580
1669
  if: { hover: true },
1581
1670
  tokens: {
1582
- backgroundColor: '#014847',
1583
- borderColor: '#014847',
1671
+ backgroundColor: '#1b4746',
1672
+ borderColor: '#1b4746',
1584
1673
  color: '#ffffff'
1585
1674
  }
1586
1675
  },
@@ -1855,7 +1944,7 @@ module.exports = {
1855
1944
  tokens: {
1856
1945
  outerBorderColor: '#efefef',
1857
1946
  outerBorderWidth: 2,
1858
- radioInputBorderColor: '#014847'
1947
+ radioInputBorderColor: '#1b4746'
1859
1948
  }
1860
1949
  },
1861
1950
  {
@@ -1865,7 +1954,7 @@ module.exports = {
1865
1954
  backgroundColor: '#efefef',
1866
1955
  outerBorderColor: '#efefef',
1867
1956
  outerBorderWidth: 2,
1868
- radioInputBorderColor: '#014847'
1957
+ radioInputBorderColor: '#1b4746'
1869
1958
  }
1870
1959
  },
1871
1960
  {
@@ -1874,7 +1963,7 @@ module.exports = {
1874
1963
  outerBorderColor: '#666666',
1875
1964
  outerBorderGap: 4,
1876
1965
  outerBorderWidth: 2,
1877
- radioInputBorderColor: '#014847'
1966
+ radioInputBorderColor: '#1b4746'
1878
1967
  }
1879
1968
  },
1880
1969
  {
@@ -2044,8 +2133,8 @@ module.exports = {
2044
2133
  {
2045
2134
  if: { hover: true },
2046
2135
  tokens: {
2047
- backgroundColor: '#014847',
2048
- borderColor: '#014847',
2136
+ backgroundColor: '#1b4746',
2137
+ borderColor: '#1b4746',
2049
2138
  iconColor: '#ffffff'
2050
2139
  }
2051
2140
  },
@@ -2307,7 +2396,7 @@ module.exports = {
2307
2396
  appearances: {},
2308
2397
  rules: [],
2309
2398
  tokens: {
2310
- backgroundColor: '#014847',
2399
+ backgroundColor: '#1b4746',
2311
2400
  borderRadius: 12,
2312
2401
  color: '#ffffff',
2313
2402
  outlineColor: '#016b6a',
@@ -2538,7 +2627,7 @@ module.exports = {
2538
2627
  },
2539
2628
  {
2540
2629
  if: { hover: true },
2541
- tokens: { backgroundColor: '#014847', iconColor: '#014847' }
2630
+ tokens: { backgroundColor: '#1b4746', iconColor: '#1b4746' }
2542
2631
  },
2543
2632
  {
2544
2633
  if: { selected: true },
@@ -2574,13 +2663,13 @@ module.exports = {
2574
2663
  },
2575
2664
  {
2576
2665
  if: { focus: true, selected: true },
2577
- tokens: { outerBorderColor: '#014847' }
2666
+ tokens: { outerBorderColor: '#1b4746' }
2578
2667
  }
2579
2668
  ],
2580
2669
  tokens: {
2581
2670
  alignSelf: 'center',
2582
2671
  backgroundColor: '#016b6a',
2583
- borderColor: '#014847',
2672
+ borderColor: '#1b4746',
2584
2673
  borderRadius: 4,
2585
2674
  borderWidth: 0,
2586
2675
  color: '#ffffff',
@@ -2781,7 +2870,7 @@ module.exports = {
2781
2870
  }
2782
2871
  },
2783
2872
  rules: [
2784
- { if: { hover: true }, tokens: { backgroundColor: '#014847' } },
2873
+ { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
2785
2874
  {
2786
2875
  if: { pressed: true },
2787
2876
  tokens: { backgroundColor: '#c3efff' }
@@ -2867,14 +2956,14 @@ module.exports = {
2867
2956
  rules: [
2868
2957
  {
2869
2958
  if: { inverse: true },
2870
- tokens: { backgroundColor: '#ffffff', color: '#014847' }
2959
+ tokens: { backgroundColor: '#ffffff', color: '#1b4746' }
2871
2960
  }
2872
2961
  ],
2873
2962
  tokens: {
2874
2963
  arrowBorderRadius: 0,
2875
2964
  arrowOffset: 4,
2876
2965
  arrowWidth: 8,
2877
- backgroundColor: '#014847',
2966
+ backgroundColor: '#1b4746',
2878
2967
  borderRadius: 4,
2879
2968
  color: '#ffffff',
2880
2969
  fontName: 'StagSans',
@@ -2917,10 +3006,10 @@ module.exports = {
2917
3006
  },
2918
3007
  rules: [
2919
3008
  { if: { hover: true }, tokens: { iconScale: 1.25 } },
2920
- { if: { pressed: true }, tokens: { iconColor: '#014847' } },
3009
+ { if: { pressed: true }, tokens: { iconColor: '#1b4746' } },
2921
3010
  {
2922
3011
  if: { focus: true },
2923
- tokens: { outerBorderColor: '#014847' }
3012
+ tokens: { outerBorderColor: '#1b4746' }
2924
3013
  }
2925
3014
  ],
2926
3015
  tokens: {
@@ -3111,5 +3200,5 @@ module.exports = {
3111
3200
  tokens: { size: 96 }
3112
3201
  }
3113
3202
  },
3114
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.11.0' }
3203
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.12.0' }
3115
3204
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.3.0",
9
- "@telus-uds/system-theme-tokens": "^2.11.0"
8
+ "@telus-uds/palette-koodo": "^0.4.0",
9
+ "@telus-uds/system-theme-tokens": "^2.12.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.3.0"
23
+ "@telus-uds/palette-koodo": "^0.4.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.10.0"
34
+ "version": "3.12.0"
35
35
  }