@telus-uds/theme-koodo 3.11.0 → 3.13.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 Thu, 02 Mar 2023 22:28:35 GMT
4
+ * Generated on Tue, 14 Mar 2023 20:10:21 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',
@@ -545,10 +545,33 @@ module.exports = {
545
545
  }
546
546
  },
547
547
  Card: {
548
- appearances: {},
549
- rules: [],
548
+ appearances: {
549
+ background: {
550
+ description: 'Defines background related attributes of Card',
551
+ type: 'variant',
552
+ values: [ 'alternative', 'subtle', 'grid', 'feature' ]
553
+ }
554
+ },
555
+ rules: [
556
+ {
557
+ if: { background: 'alternative' },
558
+ tokens: { backgroundColor: '#e5f7fb' }
559
+ },
560
+ {
561
+ if: { background: 'subtle' },
562
+ tokens: { backgroundColor: '#fae6f4', borderRadius: 8 }
563
+ },
564
+ {
565
+ if: { background: 'grid' },
566
+ tokens: { borderColor: '#016b6a', borderRadius: 8, borderWidth: 1 }
567
+ },
568
+ {
569
+ if: { background: 'feature' },
570
+ tokens: { backgroundColor: '#f9f6a5' }
571
+ }
572
+ ],
550
573
  tokens: {
551
- backgroundColor: '#f9f6a5',
574
+ backgroundColor: '#ffffff',
552
575
  borderColor: null,
553
576
  borderRadius: 0,
554
577
  borderWidth: 0,
@@ -649,9 +672,9 @@ module.exports = {
649
672
  {
650
673
  if: { pressed: true },
651
674
  tokens: {
652
- borderBottomColor: '#014847',
675
+ borderBottomColor: '#1b4746',
653
676
  borderBottomWidth: 2,
654
- color: '#014847'
677
+ color: '#1b4746'
655
678
  }
656
679
  },
657
680
  {
@@ -757,13 +780,88 @@ module.exports = {
757
780
  },
758
781
  CheckboxGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
759
782
  ChevronLink: {
760
- appearances: {},
761
- rules: [],
783
+ appearances: {
784
+ alternative: { type: 'variant', values: [ true ] },
785
+ focus: {
786
+ 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.",
787
+ platforms: [ 'rn' ],
788
+ type: 'state',
789
+ values: [ true ]
790
+ },
791
+ hover: {
792
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
793
+ platforms: [ 'rn' ],
794
+ type: 'state',
795
+ values: [ true ]
796
+ },
797
+ inverse: { type: 'variant', values: [ true ] },
798
+ pressed: {
799
+ 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.',
800
+ type: 'state',
801
+ values: [ true ]
802
+ },
803
+ size: {
804
+ description: 'Sets the size of the text and icon; these variants are shared with ChevronLink',
805
+ type: 'variant',
806
+ values: [ 'large', 'small', 'micro' ]
807
+ }
808
+ },
809
+ rules: [
810
+ { if: { hover: true }, tokens: { color: '#1b4746' } },
811
+ { if: { pressed: true }, tokens: { color: '#595959' } },
812
+ {
813
+ if: { focus: true },
814
+ tokens: { color: '#016b6a', outerBorderColor: '#016b6a' }
815
+ },
816
+ {
817
+ if: { focus: true, pressed: true },
818
+ tokens: { color: '#1b4746', outerBorderColor: '#1b4746' }
819
+ },
820
+ { if: { alternative: true }, tokens: { color: '#666666' } },
821
+ {
822
+ if: { alternative: true, hover: true },
823
+ tokens: { color: '#5c5c5c' }
824
+ },
825
+ {
826
+ if: { alternative: true, pressed: true },
827
+ tokens: { color: '#595959' }
828
+ },
829
+ {
830
+ if: { alternative: true, focus: true },
831
+ tokens: { color: '#666666', outerBorderColor: '#666666' }
832
+ },
833
+ {
834
+ if: { alternative: true, focus: true, pressed: true },
835
+ tokens: { color: '#5c5c5c', outerBorderColor: '#5c5c5c' }
836
+ },
837
+ { if: { inverse: true }, tokens: { color: '#e5f7fb' } },
838
+ {
839
+ if: { hover: true, inverse: true },
840
+ tokens: { color: '#bbeaf5' }
841
+ },
842
+ {
843
+ if: { inverse: true, pressed: true },
844
+ tokens: { color: '#c9c8c8' }
845
+ },
846
+ {
847
+ if: { focus: true, inverse: true },
848
+ tokens: { color: '#e5f7fb', outerBorderColor: '#e5f7fb' }
849
+ },
850
+ {
851
+ if: { focus: true, inverse: true, pressed: true },
852
+ tokens: { color: '#bbeaf5', outerBorderColor: '#bbeaf5' }
853
+ },
854
+ { if: { size: 'large' }, tokens: { iconSize: 24 } },
855
+ { if: { size: 'small' }, tokens: { iconSize: 20 } },
856
+ { if: { size: 'micro' }, tokens: { iconSize: 16 } }
857
+ ],
762
858
  tokens: {
763
- iconDisplace: 4,
859
+ color: '#016b6a',
860
+ iconDisplace: 0,
764
861
  iconSize: 24,
765
- iconSpace: 0,
862
+ iconSpace: 1,
766
863
  leftIcon: PaletteIconChevronLeft,
864
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
767
865
  rightIcon: PaletteIconChevronRight,
768
866
  textLine: 'none'
769
867
  }
@@ -926,8 +1024,8 @@ module.exports = {
926
1024
  if: { hover: true },
927
1025
  tokens: {
928
1026
  backgroundColor: '#f9f6a5',
929
- borderColor: '#014847',
930
- iconColor: '#014847'
1027
+ borderColor: '#1b4746',
1028
+ iconColor: '#1b4746'
931
1029
  }
932
1030
  },
933
1031
  {
@@ -1089,7 +1187,7 @@ module.exports = {
1089
1187
  { if: { iconPosition: 'left' }, tokens: { iconSpace: 2 } },
1090
1188
  {
1091
1189
  if: { hover: true },
1092
- tokens: { color: '#014847', textLine: 'none' }
1190
+ tokens: { color: '#1b4746', textLine: 'none' }
1093
1191
  },
1094
1192
  { if: { rank: 'secondary' }, tokens: { color: '#00a1db' } },
1095
1193
  {
@@ -1542,7 +1640,7 @@ module.exports = {
1542
1640
  backgroundColor: '#016b6a',
1543
1641
  borderRadius: 12,
1544
1642
  gradient: null,
1545
- outlineColor: '#014847',
1643
+ outlineColor: '#1b4746',
1546
1644
  outlineWidth: 1
1547
1645
  }
1548
1646
  },
@@ -1593,8 +1691,8 @@ module.exports = {
1593
1691
  {
1594
1692
  if: { hover: true },
1595
1693
  tokens: {
1596
- backgroundColor: '#014847',
1597
- borderColor: '#014847',
1694
+ backgroundColor: '#1b4746',
1695
+ borderColor: '#1b4746',
1598
1696
  color: '#ffffff'
1599
1697
  }
1600
1698
  },
@@ -1869,7 +1967,7 @@ module.exports = {
1869
1967
  tokens: {
1870
1968
  outerBorderColor: '#efefef',
1871
1969
  outerBorderWidth: 2,
1872
- radioInputBorderColor: '#014847'
1970
+ radioInputBorderColor: '#1b4746'
1873
1971
  }
1874
1972
  },
1875
1973
  {
@@ -1879,7 +1977,7 @@ module.exports = {
1879
1977
  backgroundColor: '#efefef',
1880
1978
  outerBorderColor: '#efefef',
1881
1979
  outerBorderWidth: 2,
1882
- radioInputBorderColor: '#014847'
1980
+ radioInputBorderColor: '#1b4746'
1883
1981
  }
1884
1982
  },
1885
1983
  {
@@ -1888,7 +1986,7 @@ module.exports = {
1888
1986
  outerBorderColor: '#666666',
1889
1987
  outerBorderGap: 4,
1890
1988
  outerBorderWidth: 2,
1891
- radioInputBorderColor: '#014847'
1989
+ radioInputBorderColor: '#1b4746'
1892
1990
  }
1893
1991
  },
1894
1992
  {
@@ -2058,8 +2156,8 @@ module.exports = {
2058
2156
  {
2059
2157
  if: { hover: true },
2060
2158
  tokens: {
2061
- backgroundColor: '#014847',
2062
- borderColor: '#014847',
2159
+ backgroundColor: '#1b4746',
2160
+ borderColor: '#1b4746',
2063
2161
  iconColor: '#ffffff'
2064
2162
  }
2065
2163
  },
@@ -2321,7 +2419,7 @@ module.exports = {
2321
2419
  appearances: {},
2322
2420
  rules: [],
2323
2421
  tokens: {
2324
- backgroundColor: '#014847',
2422
+ backgroundColor: '#1b4746',
2325
2423
  borderRadius: 12,
2326
2424
  color: '#ffffff',
2327
2425
  outlineColor: '#016b6a',
@@ -2552,7 +2650,7 @@ module.exports = {
2552
2650
  },
2553
2651
  {
2554
2652
  if: { hover: true },
2555
- tokens: { backgroundColor: '#014847', iconColor: '#014847' }
2653
+ tokens: { backgroundColor: '#1b4746', iconColor: '#1b4746' }
2556
2654
  },
2557
2655
  {
2558
2656
  if: { selected: true },
@@ -2588,13 +2686,13 @@ module.exports = {
2588
2686
  },
2589
2687
  {
2590
2688
  if: { focus: true, selected: true },
2591
- tokens: { outerBorderColor: '#014847' }
2689
+ tokens: { outerBorderColor: '#1b4746' }
2592
2690
  }
2593
2691
  ],
2594
2692
  tokens: {
2595
2693
  alignSelf: 'center',
2596
2694
  backgroundColor: '#016b6a',
2597
- borderColor: '#014847',
2695
+ borderColor: '#1b4746',
2598
2696
  borderRadius: 4,
2599
2697
  borderWidth: 0,
2600
2698
  color: '#ffffff',
@@ -2795,7 +2893,7 @@ module.exports = {
2795
2893
  }
2796
2894
  },
2797
2895
  rules: [
2798
- { if: { hover: true }, tokens: { backgroundColor: '#014847' } },
2896
+ { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
2799
2897
  {
2800
2898
  if: { pressed: true },
2801
2899
  tokens: { backgroundColor: '#c3efff' }
@@ -2881,14 +2979,14 @@ module.exports = {
2881
2979
  rules: [
2882
2980
  {
2883
2981
  if: { inverse: true },
2884
- tokens: { backgroundColor: '#ffffff', color: '#014847' }
2982
+ tokens: { backgroundColor: '#ffffff', color: '#1b4746' }
2885
2983
  }
2886
2984
  ],
2887
2985
  tokens: {
2888
2986
  arrowBorderRadius: 0,
2889
2987
  arrowOffset: 4,
2890
2988
  arrowWidth: 8,
2891
- backgroundColor: '#014847',
2989
+ backgroundColor: '#1b4746',
2892
2990
  borderRadius: 4,
2893
2991
  color: '#ffffff',
2894
2992
  fontName: 'StagSans',
@@ -2931,10 +3029,10 @@ module.exports = {
2931
3029
  },
2932
3030
  rules: [
2933
3031
  { if: { hover: true }, tokens: { iconScale: 1.25 } },
2934
- { if: { pressed: true }, tokens: { iconColor: '#014847' } },
3032
+ { if: { pressed: true }, tokens: { iconColor: '#1b4746' } },
2935
3033
  {
2936
3034
  if: { focus: true },
2937
- tokens: { outerBorderColor: '#014847' }
3035
+ tokens: { outerBorderColor: '#1b4746' }
2938
3036
  }
2939
3037
  ],
2940
3038
  tokens: {
@@ -3125,5 +3223,5 @@ module.exports = {
3125
3223
  tokens: { size: 96 }
3126
3224
  }
3127
3225
  },
3128
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.11.0' }
3226
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.12.0' }
3129
3227
  }
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.5.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.5.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.11.0"
34
+ "version": "3.13.0"
35
35
  }