@telus-uds/theme-koodo 3.29.0 → 3.31.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, 24 May 2023 23:38:59 GMT
4
+ * Generated on Tue, 30 May 2023 02:40:56 GMT
5
5
  *
6
6
  */
7
7
 
@@ -761,8 +761,20 @@ module.exports = {
761
761
  }
762
762
  },
763
763
  ButtonGroup: {
764
- appearances: {},
765
- rules: [],
764
+ appearances: {
765
+ viewport: {
766
+ description: 'The size label for the current screen viewport based on the current screen width',
767
+ type: 'state',
768
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
769
+ }
770
+ },
771
+ rules: [
772
+ { if: { viewport: [ 'xs', 'sm' ] }, tokens: { space: 2 } },
773
+ {
774
+ if: { viewport: [ 'md', 'lg', 'xl' ] },
775
+ tokens: { space: 3 }
776
+ }
777
+ ],
766
778
  tokens: {
767
779
  alignItems: 'center',
768
780
  direction: 'row',
@@ -770,7 +782,7 @@ module.exports = {
770
782
  flexGrow: 0,
771
783
  flexShrink: 0,
772
784
  justifyContent: 'flex-start',
773
- space: 3
785
+ space: 2
774
786
  }
775
787
  },
776
788
  ButtonGroupItem: {
@@ -811,73 +823,58 @@ module.exports = {
811
823
  rules: [
812
824
  {
813
825
  if: { pressed: true },
814
- tokens: {
815
- backgroundColor: '#016b6a',
816
- borderColor: '#016b6a',
817
- color: '#ffffff'
818
- }
826
+ tokens: { backgroundColor: '#1b4746', color: '#ffffff' }
819
827
  },
820
828
  {
821
829
  if: { focus: true },
822
830
  tokens: { outerBorderColor: '#016b6a' }
823
831
  },
824
- { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
832
+ {
833
+ if: { hover: true },
834
+ tokens: { backgroundColor: '#1b4746', color: '#ffffff' }
835
+ },
825
836
  {
826
837
  if: { selected: true },
827
- tokens: {
828
- opacity: 0.8,
829
- outerBorderColor: '#016b6a',
830
- outerBorderGap: 1,
831
- outerBorderWidth: 4
832
- }
838
+ tokens: { backgroundColor: '#016b6a', color: '#ffffff' }
833
839
  },
834
840
  {
835
- if: { focus: true, pressed: true },
836
- tokens: { outerBorderColor: '#258b0b' }
841
+ if: { hover: true, selected: true },
842
+ tokens: { backgroundColor: '#1b4746', color: '#ffffff' }
843
+ },
844
+ {
845
+ if: { pressed: true, selected: true },
846
+ tokens: { backgroundColor: '#1b4746', color: '#ffffff' }
837
847
  },
838
848
  {
839
849
  if: { inactive: true },
840
850
  tokens: {
841
- backgroundColor: '#666666',
851
+ backgroundColor: '#c9c8c8',
842
852
  borderWidth: 0,
843
853
  color: '#ffffff'
844
854
  }
845
855
  },
846
- {
847
- if: { selected: true },
848
- tokens: {
849
- opacity: 0.8,
850
- outerBorderColor: '#016b6a',
851
- outerBorderGap: 1,
852
- outerBorderWidth: 4
853
- }
854
- },
855
- {
856
- if: { focus: true, selected: true },
857
- tokens: { outerBorderColor: '#1b4746' }
858
- },
859
856
  { if: { iconPosition: 'right' }, tokens: { iconSpace: 1 } }
860
857
  ],
861
858
  tokens: {
862
859
  alignSelf: 'flex-start',
863
- backgroundColor: '#016b6a',
864
- borderColor: '#1b4746',
860
+ backgroundColor: '#ffffff',
861
+ borderColor: '#016b6a',
865
862
  borderRadius: 4,
866
- borderWidth: 0,
867
- color: '#ffffff',
863
+ borderWidth: 1,
864
+ color: '#016b6a',
868
865
  fontName: 'StagSans',
869
- fontSize: 14,
866
+ fontSize: 16,
870
867
  fontWeight: '600',
871
- height: 36,
868
+ height: 48,
872
869
  iconSize: 20,
873
- iconSpace: 3,
874
- lineHeight: 1.4,
870
+ iconSpace: 2,
871
+ lineHeight: 1.5,
875
872
  minWidth: 0,
876
873
  opacity: 1,
877
874
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
878
875
  outerBorderColor: 'rgba(0, 0, 0, 0)',
879
- outerBorderGap: 2,
880
- outerBorderWidth: 2,
876
+ outerBorderGap: 3,
877
+ outerBorderWidth: 1,
881
878
  paddingBottom: 8,
882
879
  paddingLeft: 24,
883
880
  paddingRight: 24,
@@ -1550,6 +1547,23 @@ module.exports = {
1550
1547
  titleFontSize: 16
1551
1548
  }
1552
1549
  },
1550
+ Fieldset: {
1551
+ appearances: { error: { type: 'variant', values: [ true ] } },
1552
+ rules: [ { if: { error: true }, tokens: { outlineColor: '#ee2c74' } } ],
1553
+ tokens: {
1554
+ borderBottomLeftRadius: 0,
1555
+ borderBottomRightRadius: 0,
1556
+ borderTopLeftRadius: 0,
1557
+ borderTopRightRadius: 0,
1558
+ outlineColor: 'rgba(0, 0, 0, 0)',
1559
+ outlineOffset: null,
1560
+ outlineWidth: 0,
1561
+ paddingBottom: 0,
1562
+ paddingLeft: 0,
1563
+ paddingRight: 0,
1564
+ paddingTop: 0
1565
+ }
1566
+ },
1553
1567
  Footnote: {
1554
1568
  appearances: {},
1555
1569
  rules: [],
@@ -3411,28 +3425,44 @@ module.exports = {
3411
3425
  {
3412
3426
  if: { hover: true },
3413
3427
  tokens: {
3428
+ borderColor: '#666666',
3414
3429
  outerBorderColor: '#efefef',
3415
3430
  outerBorderWidth: 2,
3416
- radioInputBorderColor: '#1b4746'
3431
+ radioOuterBorderColor: '#17367d',
3432
+ radioOuterBorderGap: 2,
3433
+ radioOuterBorderWidth: 1
3417
3434
  }
3418
3435
  },
3419
3436
  {
3420
- description: 'Pressed state matches hover state plus light grey background',
3421
- if: { pressed: true },
3437
+ if: { focus: true },
3422
3438
  tokens: {
3423
- backgroundColor: '#efefef',
3424
- outerBorderColor: '#efefef',
3439
+ outerBorderColor: '#17367d',
3440
+ outerBorderGap: 2,
3425
3441
  outerBorderWidth: 2,
3426
- radioInputBorderColor: '#1b4746'
3442
+ radioInputBorderColor: '#016b6a',
3443
+ radioOuterBorderColor: '#17367d',
3444
+ radioOuterBorderGap: 2,
3445
+ radioOuterBorderWidth: 1
3427
3446
  }
3428
3447
  },
3429
3448
  {
3430
- if: { focus: true },
3449
+ if: { checked: true },
3431
3450
  tokens: {
3432
- outerBorderColor: '#666666',
3433
- outerBorderGap: 4,
3434
- outerBorderWidth: 2,
3435
- radioInputBorderColor: '#1b4746'
3451
+ borderColor: '#c9c8c8',
3452
+ radioInputBorderColor: '#016b6a',
3453
+ radioInputBorderWidth: 2
3454
+ }
3455
+ },
3456
+ {
3457
+ description: 'Pressed state matches hover state plus light grey background',
3458
+ if: { pressed: true },
3459
+ tokens: {
3460
+ backgroundColor: '#efefef',
3461
+ outerBorderColor: '#c9c8c8',
3462
+ outerBorderGap: 0,
3463
+ outerBorderWidth: 1,
3464
+ radioOuterBorderColor: '#17367d',
3465
+ radioOuterBorderGap: 2
3436
3466
  }
3437
3467
  },
3438
3468
  {
@@ -3441,8 +3471,13 @@ module.exports = {
3441
3471
  backgroundColor: '#efefef',
3442
3472
  borderColor: 'transparent',
3443
3473
  color: '#666666',
3444
- radioInputBackgroundColor: '#efefef',
3445
- radioInputBorderColor: '#c9c8c8'
3474
+ radioCheckedBackgroundColor: '#c9c8c8',
3475
+ radioInputBackgroundColor: '#c9c8c8',
3476
+ radioInputBorderColor: '#c9c8c8',
3477
+ radioInputSize: 16,
3478
+ radioOuterBorderColor: '#c9c8c8',
3479
+ radioOuterBorderGap: 2,
3480
+ radioOuterBorderWidth: 1
3446
3481
  }
3447
3482
  },
3448
3483
  {
@@ -3456,7 +3491,7 @@ module.exports = {
3456
3491
  ],
3457
3492
  tokens: {
3458
3493
  backgroundColor: '#ffffff',
3459
- borderColor: '#000000',
3494
+ borderColor: '#c9c8c8',
3460
3495
  borderRadius: 4,
3461
3496
  borderWidth: 1,
3462
3497
  color: '#000000',
@@ -3471,22 +3506,22 @@ module.exports = {
3471
3506
  fontWeight: '700',
3472
3507
  letterSpacing: 0,
3473
3508
  lineHeight: 1.4,
3474
- minWidth: 120,
3509
+ minWidth: 288,
3475
3510
  outerBorderColor: 'transparent',
3476
3511
  outerBorderGap: 0,
3477
3512
  outerBorderWidth: 0,
3478
3513
  paddingBottom: 16,
3479
- paddingLeft: 10,
3514
+ paddingLeft: 8,
3480
3515
  paddingRight: 16,
3481
- paddingTop: 16,
3516
+ paddingTop: 12,
3482
3517
  radioCheckedBackgroundColor: '#016b6a',
3483
- radioCheckedSize: 12,
3518
+ radioCheckedSize: 16,
3484
3519
  radioInputBackgroundColor: '#ffffff',
3485
3520
  radioInputBorderColor: '#016b6a',
3486
3521
  radioInputBorderWidth: 2,
3487
3522
  radioInputOutlineColor: 'rgba(0, 0, 0, 0)',
3488
3523
  radioInputOutlineWidth: 0,
3489
- radioInputSize: 20,
3524
+ radioInputSize: 24,
3490
3525
  radioOuterBorderColor: 'transparent',
3491
3526
  radioOuterBorderGap: 0,
3492
3527
  radioOuterBorderWidth: 0,
@@ -3497,6 +3532,11 @@ module.exports = {
3497
3532
  },
3498
3533
  RadioCardGroup: {
3499
3534
  appearances: {
3535
+ fullWidth: {
3536
+ description: 'Makes cards always occupy the full width of the parent, regardless of viewport',
3537
+ type: 'variant',
3538
+ values: [ true ]
3539
+ },
3500
3540
  viewport: {
3501
3541
  description: 'The size label for the current screen viewport based on the current screen width',
3502
3542
  type: 'state',
@@ -3505,13 +3545,27 @@ module.exports = {
3505
3545
  },
3506
3546
  rules: [
3507
3547
  {
3508
- if: { viewport: [ 'lg', 'xl' ] },
3509
- tokens: { direction: 'column' }
3548
+ if: { fullWidth: null, viewport: [ 'md', 'lg', 'xl' ] },
3549
+ tokens: { direction: 'row', space: 5 }
3510
3550
  }
3511
3551
  ],
3512
- tokens: { direction: 'row', fieldSpace: 2, space: 2 }
3552
+ tokens: { direction: 'column', fieldSpace: 3, space: 3 }
3553
+ },
3554
+ RadioGroup: {
3555
+ appearances: {},
3556
+ rules: [],
3557
+ tokens: {
3558
+ borderBottomLeftRadius: 1,
3559
+ borderBottomRightRadius: 1,
3560
+ borderTopLeftRadius: 1,
3561
+ borderTopRightRadius: 1,
3562
+ fieldSpace: 2,
3563
+ outlineOffset: 8,
3564
+ outlineWidth: 1,
3565
+ showIcon: true,
3566
+ space: 2
3567
+ }
3513
3568
  },
3514
- RadioGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
3515
3569
  Ribbon: {
3516
3570
  appearances: {
3517
3571
  purpose: {
@@ -4536,6 +4590,11 @@ module.exports = {
4536
4590
  type: 'state',
4537
4591
  values: [ true ]
4538
4592
  },
4593
+ numeric: {
4594
+ description: 'capability to only allow numbers',
4595
+ type: 'variant',
4596
+ values: [ true ]
4597
+ },
4539
4598
  password: {
4540
4599
  description: 'capability that helps masking and unmasking text',
4541
4600
  type: 'variant',
@@ -4707,22 +4766,37 @@ module.exports = {
4707
4766
  }
4708
4767
  },
4709
4768
  rules: [
4710
- { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
4769
+ {
4770
+ if: { hover: true },
4771
+ tokens: { backgroundColor: '#b5b4b4', switchColor: '#505050' }
4772
+ },
4711
4773
  {
4712
4774
  if: { pressed: true },
4713
- tokens: { backgroundColor: '#c3efff' }
4775
+ tokens: { backgroundColor: '#b5b4b4', switchColor: '#505050' }
4714
4776
  },
4715
4777
  {
4716
4778
  if: { focus: true },
4717
- tokens: { outerBorderColor: '#016b6a' }
4779
+ tokens: {
4780
+ backgroundColor: '#b5b4b4',
4781
+ outerBorderColor: '#17367d',
4782
+ outerBorderGap: 3,
4783
+ outerBorderWidth: 1,
4784
+ switchColor: '#505050'
4785
+ }
4718
4786
  },
4719
4787
  {
4720
4788
  if: { selected: true },
4721
- tokens: { backgroundColor: '#00a1db' }
4789
+ tokens: {
4790
+ backgroundColor: '#e5f7fb',
4791
+ icon: PaletteIconCheck,
4792
+ iconColor: '#ffffff',
4793
+ switchBorderColor: 'rgba(0, 0, 0, 0)',
4794
+ switchColor: '#016b6a'
4795
+ }
4722
4796
  },
4723
4797
  {
4724
4798
  if: { hover: true, selected: true },
4725
- tokens: { backgroundColor: '#0083b3' }
4799
+ tokens: { backgroundColor: '#bbeaf5' }
4726
4800
  },
4727
4801
  {
4728
4802
  if: { pressed: true, selected: true },
@@ -4730,54 +4804,84 @@ module.exports = {
4730
4804
  },
4731
4805
  {
4732
4806
  if: { focus: true, selected: true },
4733
- tokens: { outerBorderColor: '#00a1db' }
4807
+ tokens: { outerBorderColor: '#17367d', outerBorderWidth: 1 }
4808
+ },
4809
+ {
4810
+ if: { focus: true, pressed: true },
4811
+ tokens: {
4812
+ outerBorderColor: '#17367d',
4813
+ outerBorderGap: 3,
4814
+ outerBorderWidth: 1
4815
+ }
4734
4816
  },
4735
4817
  {
4736
4818
  if: { focus: true, pressed: true, selected: true },
4737
- tokens: { outerBorderColor: '#c3efff' }
4819
+ tokens: { outerBorderColor: '#17367d' }
4738
4820
  },
4739
- { if: { inactive: true }, tokens: { opacity: 0.5 } }
4821
+ {
4822
+ if: { inactive: true },
4823
+ tokens: {
4824
+ backgroundColor: '#efefef',
4825
+ iconColor: '#c9c8c8',
4826
+ opacity: 0.5,
4827
+ switchBorderColor: 'rgba(0, 0, 0, 0)',
4828
+ switchColor: '#ffffff'
4829
+ }
4830
+ }
4740
4831
  ],
4741
4832
  tokens: {
4742
4833
  alignSelf: 'flex-start',
4743
- backgroundColor: '#016b6a',
4834
+ backgroundColor: '#c9c8c8',
4744
4835
  borderColor: 'rgba(0, 0, 0, 0)',
4745
- borderRadius: 4,
4836
+ borderRadius: 32,
4746
4837
  borderWidth: 0,
4747
4838
  icon: null,
4748
- iconColor: 'rgba(0, 0, 0, 0)',
4749
- iconSize: 16,
4839
+ iconColor: null,
4840
+ iconSize: 12,
4750
4841
  labelColor: '#000000',
4751
4842
  labelFontName: 'StagSans',
4752
4843
  labelFontSize: 16,
4753
- labelFontWeight: '400',
4844
+ labelFontWeight: '600',
4754
4845
  labelLineHeight: 1.5,
4755
4846
  labelMarginLeft: 8,
4756
4847
  opacity: 1,
4757
4848
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
4758
4849
  outerBorderColor: 'rgba(0, 0, 0, 0)',
4759
- outerBorderGap: 2,
4760
- outerBorderWidth: 2,
4761
- paddingBottom: 4,
4762
- paddingLeft: 8,
4763
- paddingRight: 8,
4764
- paddingTop: 4,
4850
+ outerBorderGap: 0,
4851
+ outerBorderWidth: 0,
4852
+ paddingBottom: 0,
4853
+ paddingLeft: 0,
4854
+ paddingRight: 0,
4855
+ paddingTop: 0,
4765
4856
  shadow: null,
4766
4857
  switchBorderColor: 'rgba(0, 0, 0, 0)',
4767
4858
  switchBorderRadius: 32,
4768
4859
  switchBorderWidth: 0,
4769
- switchColor: '#ffffff',
4770
- switchShadow: null,
4771
- switchSize: 24,
4860
+ switchColor: '#595959',
4861
+ switchShadow: {
4862
+ blur: 2,
4863
+ color: 'rgba(0, 0, 0, 0.1)',
4864
+ inset: false,
4865
+ offsetX: 0,
4866
+ offsetY: 2,
4867
+ spread: 0
4868
+ },
4869
+ switchSize: 18,
4772
4870
  trackBorderColor: 'rgba(0, 0, 0, 0)',
4773
- trackBorderRadius: 0,
4774
- trackBorderWidth: 0,
4775
- width: 64
4871
+ trackBorderRadius: 12,
4872
+ trackBorderWidth: 3,
4873
+ width: 40
4776
4874
  }
4777
4875
  },
4778
4876
  ToggleSwitchGroup: {
4779
- appearances: {},
4780
- rules: [],
4877
+ appearances: {
4878
+ viewport: {
4879
+ description: 'The size label for the current screen viewport based on the current screen width',
4880
+ type: 'state',
4881
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
4882
+ }
4883
+ },
4884
+ rules: [ { if: { viewport: [ 'lg', 'xl' ] }, tokens: { space: 3 } } ],
4781
4885
  tokens: {
4782
4886
  alignItems: 'flex-start',
4783
4887
  direction: 'column',
@@ -5228,5 +5332,5 @@ module.exports = {
5228
5332
  tokens: { size: 96 }
5229
5333
  }
5230
5334
  },
5231
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.27.0' }
5335
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.28.0' }
5232
5336
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.16.1",
9
- "@telus-uds/system-theme-tokens": "^2.27.0"
8
+ "@telus-uds/palette-koodo": "^0.17.0",
9
+ "@telus-uds/system-theme-tokens": "^2.28.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.16.1"
23
+ "@telus-uds/palette-koodo": "^0.17.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.29.0"
34
+ "version": "3.31.0"
35
35
  }