@telus-uds/theme-koodo 3.29.0 → 3.30.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 Sat, 27 May 2023 00:36:19 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: [],
@@ -3511,7 +3525,21 @@ module.exports = {
3511
3525
  ],
3512
3526
  tokens: { direction: 'row', fieldSpace: 2, space: 2 }
3513
3527
  },
3514
- RadioGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
3528
+ RadioGroup: {
3529
+ appearances: {},
3530
+ rules: [],
3531
+ tokens: {
3532
+ borderBottomLeftRadius: 1,
3533
+ borderBottomRightRadius: 1,
3534
+ borderTopLeftRadius: 1,
3535
+ borderTopRightRadius: 1,
3536
+ fieldSpace: 2,
3537
+ outlineOffset: 8,
3538
+ outlineWidth: 1,
3539
+ showIcon: true,
3540
+ space: 2
3541
+ }
3542
+ },
3515
3543
  Ribbon: {
3516
3544
  appearances: {
3517
3545
  purpose: {
@@ -4536,6 +4564,11 @@ module.exports = {
4536
4564
  type: 'state',
4537
4565
  values: [ true ]
4538
4566
  },
4567
+ numeric: {
4568
+ description: 'capability to only allow numbers',
4569
+ type: 'variant',
4570
+ values: [ true ]
4571
+ },
4539
4572
  password: {
4540
4573
  description: 'capability that helps masking and unmasking text',
4541
4574
  type: 'variant',
@@ -4707,22 +4740,37 @@ module.exports = {
4707
4740
  }
4708
4741
  },
4709
4742
  rules: [
4710
- { if: { hover: true }, tokens: { backgroundColor: '#1b4746' } },
4743
+ {
4744
+ if: { hover: true },
4745
+ tokens: { backgroundColor: '#b5b4b4', switchColor: '#505050' }
4746
+ },
4711
4747
  {
4712
4748
  if: { pressed: true },
4713
- tokens: { backgroundColor: '#c3efff' }
4749
+ tokens: { backgroundColor: '#b5b4b4', switchColor: '#505050' }
4714
4750
  },
4715
4751
  {
4716
4752
  if: { focus: true },
4717
- tokens: { outerBorderColor: '#016b6a' }
4753
+ tokens: {
4754
+ backgroundColor: '#b5b4b4',
4755
+ outerBorderColor: '#17367d',
4756
+ outerBorderGap: 3,
4757
+ outerBorderWidth: 1,
4758
+ switchColor: '#505050'
4759
+ }
4718
4760
  },
4719
4761
  {
4720
4762
  if: { selected: true },
4721
- tokens: { backgroundColor: '#00a1db' }
4763
+ tokens: {
4764
+ backgroundColor: '#e5f7fb',
4765
+ icon: PaletteIconCheck,
4766
+ iconColor: '#ffffff',
4767
+ switchBorderColor: 'rgba(0, 0, 0, 0)',
4768
+ switchColor: '#016b6a'
4769
+ }
4722
4770
  },
4723
4771
  {
4724
4772
  if: { hover: true, selected: true },
4725
- tokens: { backgroundColor: '#0083b3' }
4773
+ tokens: { backgroundColor: '#bbeaf5' }
4726
4774
  },
4727
4775
  {
4728
4776
  if: { pressed: true, selected: true },
@@ -4730,54 +4778,84 @@ module.exports = {
4730
4778
  },
4731
4779
  {
4732
4780
  if: { focus: true, selected: true },
4733
- tokens: { outerBorderColor: '#00a1db' }
4781
+ tokens: { outerBorderColor: '#17367d', outerBorderWidth: 1 }
4782
+ },
4783
+ {
4784
+ if: { focus: true, pressed: true },
4785
+ tokens: {
4786
+ outerBorderColor: '#17367d',
4787
+ outerBorderGap: 3,
4788
+ outerBorderWidth: 1
4789
+ }
4734
4790
  },
4735
4791
  {
4736
4792
  if: { focus: true, pressed: true, selected: true },
4737
- tokens: { outerBorderColor: '#c3efff' }
4793
+ tokens: { outerBorderColor: '#17367d' }
4738
4794
  },
4739
- { if: { inactive: true }, tokens: { opacity: 0.5 } }
4795
+ {
4796
+ if: { inactive: true },
4797
+ tokens: {
4798
+ backgroundColor: '#efefef',
4799
+ iconColor: '#c9c8c8',
4800
+ opacity: 0.5,
4801
+ switchBorderColor: 'rgba(0, 0, 0, 0)',
4802
+ switchColor: '#ffffff'
4803
+ }
4804
+ }
4740
4805
  ],
4741
4806
  tokens: {
4742
4807
  alignSelf: 'flex-start',
4743
- backgroundColor: '#016b6a',
4808
+ backgroundColor: '#c9c8c8',
4744
4809
  borderColor: 'rgba(0, 0, 0, 0)',
4745
- borderRadius: 4,
4810
+ borderRadius: 32,
4746
4811
  borderWidth: 0,
4747
4812
  icon: null,
4748
- iconColor: 'rgba(0, 0, 0, 0)',
4749
- iconSize: 16,
4813
+ iconColor: null,
4814
+ iconSize: 12,
4750
4815
  labelColor: '#000000',
4751
4816
  labelFontName: 'StagSans',
4752
4817
  labelFontSize: 16,
4753
- labelFontWeight: '400',
4818
+ labelFontWeight: '600',
4754
4819
  labelLineHeight: 1.5,
4755
4820
  labelMarginLeft: 8,
4756
4821
  opacity: 1,
4757
4822
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
4758
4823
  outerBorderColor: 'rgba(0, 0, 0, 0)',
4759
- outerBorderGap: 2,
4760
- outerBorderWidth: 2,
4761
- paddingBottom: 4,
4762
- paddingLeft: 8,
4763
- paddingRight: 8,
4764
- paddingTop: 4,
4824
+ outerBorderGap: 0,
4825
+ outerBorderWidth: 0,
4826
+ paddingBottom: 0,
4827
+ paddingLeft: 0,
4828
+ paddingRight: 0,
4829
+ paddingTop: 0,
4765
4830
  shadow: null,
4766
4831
  switchBorderColor: 'rgba(0, 0, 0, 0)',
4767
4832
  switchBorderRadius: 32,
4768
4833
  switchBorderWidth: 0,
4769
- switchColor: '#ffffff',
4770
- switchShadow: null,
4771
- switchSize: 24,
4834
+ switchColor: '#595959',
4835
+ switchShadow: {
4836
+ blur: 2,
4837
+ color: 'rgba(0, 0, 0, 0.1)',
4838
+ inset: false,
4839
+ offsetX: 0,
4840
+ offsetY: 2,
4841
+ spread: 0
4842
+ },
4843
+ switchSize: 18,
4772
4844
  trackBorderColor: 'rgba(0, 0, 0, 0)',
4773
- trackBorderRadius: 0,
4774
- trackBorderWidth: 0,
4775
- width: 64
4845
+ trackBorderRadius: 12,
4846
+ trackBorderWidth: 3,
4847
+ width: 40
4776
4848
  }
4777
4849
  },
4778
4850
  ToggleSwitchGroup: {
4779
- appearances: {},
4780
- rules: [],
4851
+ appearances: {
4852
+ viewport: {
4853
+ description: 'The size label for the current screen viewport based on the current screen width',
4854
+ type: 'state',
4855
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
4856
+ }
4857
+ },
4858
+ rules: [ { if: { viewport: [ 'lg', 'xl' ] }, tokens: { space: 3 } } ],
4781
4859
  tokens: {
4782
4860
  alignItems: 'flex-start',
4783
4861
  direction: 'column',
@@ -5228,5 +5306,5 @@ module.exports = {
5228
5306
  tokens: { size: 96 }
5229
5307
  }
5230
5308
  },
5231
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.27.0' }
5309
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.28.0' }
5232
5310
  }
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.30.0"
35
35
  }