@telus-uds/theme-allium 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:16:06 GMT
4
+ * Generated on Fri, 07 Jul 2023 19:16:17 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1813,6 +1813,18 @@ module.exports = {
1813
1813
  contentPaddingLeft: 24,
1814
1814
  contentPaddingRight: 0,
1815
1815
  contentPaddingTop: 0,
1816
+ contentPanelBackgroundColor: 'rgba(0, 0, 0, 0)',
1817
+ contentPanelBorderColor: 'rgba(0, 0, 0, 0)',
1818
+ contentPanelBorderWidth: 0,
1819
+ contentPanelFontColor: '#2c2e30',
1820
+ contentPanelFontName: 'HelveticaNow',
1821
+ contentPanelFontSize: 16,
1822
+ contentPanelFontWeight: '700',
1823
+ contentPanelLineHeight: 1.5,
1824
+ contentPanelPaddingBottom: 16,
1825
+ contentPanelPaddingLeft: 24,
1826
+ contentPanelPaddingRight: 0,
1827
+ contentPanelPaddingTop: 16,
1816
1828
  expandDividerColor: 'rgba(0, 0, 0, 0)',
1817
1829
  expandDividerWidth: 0,
1818
1830
  expandDuration: 300,
@@ -2981,10 +2993,12 @@ module.exports = {
2981
2993
  {
2982
2994
  if: { focus: true },
2983
2995
  tokens: {
2984
- backgroundColor: '#ffffff',
2996
+ backgroundColor: '#f4f4f7',
2985
2997
  borderColor: '#4b286d',
2986
- borderWidth: 3,
2987
- color: '#4b286d'
2998
+ borderWidth: 2,
2999
+ color: '#4b286d',
3000
+ outerBorderColor: '#4b286d',
3001
+ outerBorderWidth: 2
2988
3002
  }
2989
3003
  },
2990
3004
  {
@@ -3014,7 +3028,7 @@ module.exports = {
3014
3028
  },
3015
3029
  {
3016
3030
  if: { viewport: [ 'xs', 'sm', 'md' ] },
3017
- tokens: { textAlign: 'flex-start', width: 288 }
3031
+ tokens: { textAlign: 'space-between', width: 288 }
3018
3032
  },
3019
3033
  {
3020
3034
  if: { expanded: true },
@@ -4628,18 +4642,40 @@ module.exports = {
4628
4642
  }
4629
4643
  },
4630
4644
  SkipLink: {
4631
- appearances: {},
4632
- rules: [],
4645
+ appearances: {
4646
+ focus: {
4647
+ 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.",
4648
+ platforms: [ 'rn' ],
4649
+ type: 'state',
4650
+ values: [ true, false ]
4651
+ },
4652
+ pressed: {
4653
+ 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.',
4654
+ type: 'state',
4655
+ values: [ true, false ]
4656
+ }
4657
+ },
4658
+ rules: [
4659
+ {
4660
+ if: { focus: true, pressed: true },
4661
+ tokens: { color: '#163e06', outlineColor: '#163e06' }
4662
+ }
4663
+ ],
4633
4664
  tokens: {
4634
- backgroundColor: '#7c53a5',
4635
- borderRadius: 32,
4636
- color: '#ffffff',
4637
- outlineColor: '#7c53a5',
4638
- outlineOffset: 2,
4665
+ backgroundColor: 'rgba(0, 0, 0, 0)',
4666
+ borderRadius: 4,
4667
+ color: '#2b8000',
4668
+ fontName: 'HelveticaNow',
4669
+ fontSize: 16,
4670
+ fontWeight: '400',
4671
+ lineHeight: 1.5,
4672
+ outlineColor: '#2b8000',
4673
+ outlineOffset: 0,
4639
4674
  outlineStyle: 'solid',
4640
- outlineWidth: 1,
4641
- paddingHorizontal: 8,
4642
- paddingVertical: 8
4675
+ outlineWidth: 2,
4676
+ paddingHorizontal: 2,
4677
+ paddingVertical: 2,
4678
+ textLine: 'underline'
4643
4679
  }
4644
4680
  },
4645
4681
  Spinner: {
@@ -4863,24 +4899,121 @@ module.exports = {
4863
4899
  }
4864
4900
  },
4865
4901
  Table: {
4866
- appearances: { spacing: { type: 'variant', values: [ 'compact' ] } },
4902
+ appearances: {
4903
+ spacing: {
4904
+ description: 'Adjusts the height of the table cell',
4905
+ type: 'variant',
4906
+ values: [ 'compact', 'default' ]
4907
+ },
4908
+ text: { type: 'variant', values: [ 'small', 'medium' ] },
4909
+ type: {
4910
+ type: 'variant',
4911
+ values: [ 'subHeading', 'rowHeading', 'heading', 'default' ]
4912
+ }
4913
+ },
4867
4914
  rules: [
4868
4915
  {
4869
- if: { spacing: 'compact' },
4870
- tokens: { cellPaddingBottom: 8, cellPaddingTop: 8 }
4916
+ if: { spacing: 'compact', type: 'default' },
4917
+ tokens: {
4918
+ cellPaddingBottom: 8,
4919
+ cellPaddingTop: 8,
4920
+ fontSize: 16,
4921
+ lineHeight: 1.25
4922
+ }
4923
+ },
4924
+ {
4925
+ if: { spacing: 'compact', type: 'rowHeading' },
4926
+ tokens: {
4927
+ cellPaddingBottom: 8,
4928
+ cellPaddingTop: 8,
4929
+ fontName: 'HelveticaNow',
4930
+ fontSize: 16,
4931
+ fontWeight: '700',
4932
+ lineHeight: 1.25
4933
+ }
4934
+ },
4935
+ {
4936
+ if: { spacing: 'compact', text: 'small', type: 'subHeading' },
4937
+ tokens: {
4938
+ cellBackground: '#fafafa',
4939
+ cellPaddingBottom: 8,
4940
+ cellPaddingTop: 8,
4941
+ fontName: 'HelveticaNow',
4942
+ fontSize: 14,
4943
+ fontWeight: '500',
4944
+ lineHeight: 1.14285714286
4945
+ }
4946
+ },
4947
+ {
4948
+ if: { type: 'heading' },
4949
+ tokens: {
4950
+ cellBackground: '#f4f4f7',
4951
+ cellBoxShadowColor: '#b2b9bf',
4952
+ fontName: 'HelveticaNow',
4953
+ fontSize: 16,
4954
+ fontWeight: '500'
4955
+ }
4956
+ },
4957
+ {
4958
+ if: { spacing: 'default', type: 'subHeading' },
4959
+ tokens: {
4960
+ cellBackground: '#fafafa',
4961
+ fontName: 'HelveticaNow',
4962
+ fontSize: 14,
4963
+ fontWeight: '500',
4964
+ lineHeight: 1.28571428571
4965
+ }
4966
+ },
4967
+ {
4968
+ if: { spacing: 'compact', text: 'medium', type: 'subHeading' },
4969
+ tokens: {
4970
+ cellBackground: '#fafafa',
4971
+ fontName: 'HelveticaNow',
4972
+ fontSize: 16,
4973
+ fontWeight: '500',
4974
+ lineHeight: 1.25
4975
+ }
4976
+ },
4977
+ {
4978
+ if: { spacing: 'default', type: 'rowHeading' },
4979
+ tokens: { fontName: 'HelveticaNow', fontSize: 16, fontWeight: '700' }
4980
+ },
4981
+ {
4982
+ if: { spacing: 'default', text: 'small', type: 'default' },
4983
+ tokens: {
4984
+ fontName: 'HelveticaNow',
4985
+ fontSize: 14,
4986
+ fontWeight: '400',
4987
+ lineHeight: 1.42857142857
4988
+ }
4989
+ },
4990
+ {
4991
+ if: { spacing: 'compact', text: 'small', type: 'default' },
4992
+ tokens: {
4993
+ fontName: 'HelveticaNow',
4994
+ fontSize: 14,
4995
+ fontWeight: '400',
4996
+ lineHeight: 1.14285714286
4997
+ }
4998
+ },
4999
+ {
5000
+ if: { text: 'small', type: 'rowHeading' },
5001
+ tokens: {
5002
+ fontName: 'HelveticaNow',
5003
+ fontSize: 14,
5004
+ fontWeight: '700',
5005
+ lineHeight: 1.14285714286
5006
+ }
4871
5007
  }
4872
5008
  ],
4873
5009
  tokens: {
4874
- cellBackground: '#ffffff',
5010
+ cellBackground: 'rgba(0, 0, 0, 0)',
4875
5011
  cellBoxShadowColor: '#e3e6e8',
4876
- cellHeadingBackground: '#f4f4f7',
4877
- cellHeadingBoxShadowColor: '#b2b9bf',
4878
5012
  cellMinWidth: 0,
4879
5013
  cellPaddingBottom: 16,
4880
5014
  cellPaddingLeft: 16,
4881
5015
  cellPaddingRight: 16,
4882
5016
  cellPaddingTop: 16,
4883
- cellRowHeadingBackground: '#ffffff',
4884
5017
  cellStickyShadow: {
4885
5018
  blur: 8,
4886
5019
  color: 'rgba(0, 0, 0, 0.1)',
@@ -4889,10 +5022,11 @@ module.exports = {
4889
5022
  offsetY: 4,
4890
5023
  spread: 0
4891
5024
  },
4892
- cellSubheadingBackground: '#fafafa',
4893
5025
  fontName: 'HelveticaNow',
4894
5026
  fontSize: 16,
4895
5027
  fontWeight: '400',
5028
+ lineHeight: 1.5,
5029
+ stickyBackgroundColor: '#ffffff',
4896
5030
  tablePaddingBottom: 24
4897
5031
  }
4898
5032
  },
@@ -5182,35 +5316,57 @@ module.exports = {
5182
5316
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
5183
5317
  type: 'state',
5184
5318
  values: [ true ]
5319
+ },
5320
+ viewport: {
5321
+ description: 'The size label for the current screen viewport based on the current screen width',
5322
+ type: 'state',
5323
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
5185
5324
  }
5186
5325
  },
5187
5326
  rules: [
5327
+ {
5328
+ if: { viewport: [ 'xs', 'sm' ] },
5329
+ tokens: {
5330
+ expandContentPaddingRight: 24,
5331
+ listMarginLeft: 6,
5332
+ titlePaddingLeft: 6
5333
+ }
5334
+ },
5188
5335
  {
5189
5336
  if: { expanded: true },
5190
5337
  tokens: { icon: PaletteIconCaretUp }
5191
5338
  }
5192
5339
  ],
5193
5340
  tokens: {
5341
+ contentBorderColor: 'transparent',
5342
+ contentMarginBottom: 0,
5194
5343
  contentPaddingBottom: 8,
5195
5344
  contentPaddingLeft: 16,
5345
+ dividerColor: '#b2b9bf',
5196
5346
  expandBaseBorderWidth: 0,
5197
5347
  expandContentPaddingBottom: 16,
5198
5348
  expandContentPaddingLeft: 16,
5199
5349
  expandContentPaddingRight: 16,
5200
5350
  expandContentPaddingTop: 16,
5201
5351
  expandIconContainerAlignItems: 'center',
5202
- expandIconContainerBorder: 1,
5203
- expandIconContainerBorderColor: '#676e73',
5352
+ expandIconContainerBorder: 0,
5353
+ expandIconContainerBorderColor: 'rgba(0, 0, 0, 0)',
5204
5354
  expandIconContainerHeight: 32,
5205
5355
  expandIconContainerJustifyContent: 'center',
5206
5356
  expandIconContainerMarginX: 0,
5207
5357
  expandIconContainerMarginY: 12,
5208
5358
  expandIconContainerWidth: 32,
5359
+ expandTitleBorder: 0,
5360
+ expandTitleBorderColor: 'rgba(0, 0, 0, 0)',
5209
5361
  expandTitleColor: '#2c2e30',
5362
+ expandTitleFontName: 'HelveticaNow',
5210
5363
  expandTitleFontSize: 16,
5364
+ expandTitleFontWeight: '500',
5211
5365
  expandTitleLineHeight: 1.5,
5212
5366
  expandTitleMarginX: 4,
5213
5367
  expandTitleMarginY: 0,
5368
+ expandTitlePaddingLeft: 0,
5369
+ expandTitleUnderline: 'none',
5214
5370
  icon: PaletteIconCaretDown,
5215
5371
  listColor: '#414547',
5216
5372
  listFontName: 'HelveticaNow',
@@ -5225,8 +5381,8 @@ module.exports = {
5225
5381
  titleColor: '#414547',
5226
5382
  titleFontSize: 14,
5227
5383
  titleLineHeight: 1.42857142857,
5228
- titlePaddingLeft: 8,
5229
- unorderedPadding: 0
5384
+ titlePaddingLeft: 32,
5385
+ unorderedPadding: 12
5230
5386
  }
5231
5387
  },
5232
5388
  Testimonial: {
@@ -5755,12 +5911,13 @@ module.exports = {
5755
5911
  fontSize: 40,
5756
5912
  fontWeight: '300',
5757
5913
  letterSpacing: -0.035,
5758
- lineHeight: 1.2
5914
+ lineHeight: 1.2,
5915
+ superScriptFontSize: 24
5759
5916
  }
5760
5917
  },
5761
5918
  {
5762
5919
  if: { size: 'display1', viewport: [ 'lg', 'xl' ] },
5763
- tokens: { fontSize: 64, lineHeight: 1.125 }
5920
+ tokens: { fontSize: 64, lineHeight: 1.125, superScriptFontSize: 32 }
5764
5921
  },
5765
5922
  {
5766
5923
  if: { size: 'display2' },
@@ -5769,7 +5926,8 @@ module.exports = {
5769
5926
  fontSize: 36,
5770
5927
  fontWeight: '400',
5771
5928
  letterSpacing: -0.035,
5772
- lineHeight: 1.22222222222
5929
+ lineHeight: 1.22222222222,
5930
+ superScriptFontSize: 24
5773
5931
  }
5774
5932
  },
5775
5933
  {
@@ -5779,7 +5937,8 @@ module.exports = {
5779
5937
  fontSize: 56,
5780
5938
  fontWeight: '300',
5781
5939
  letterSpacing: -0.039,
5782
- lineHeight: 1.14285714286
5940
+ lineHeight: 1.14285714286,
5941
+ superScriptFontSize: 32
5783
5942
  }
5784
5943
  },
5785
5944
  {
@@ -5787,7 +5946,8 @@ module.exports = {
5787
5946
  tokens: {
5788
5947
  fontSize: 28,
5789
5948
  letterSpacing: -0.017,
5790
- lineHeight: 1.28571428571
5949
+ lineHeight: 1.28571428571,
5950
+ superScriptFontSize: 20
5791
5951
  }
5792
5952
  },
5793
5953
  {
@@ -5797,7 +5957,8 @@ module.exports = {
5797
5957
  fontSize: 40,
5798
5958
  fontWeight: '300',
5799
5959
  letterSpacing: -0.035,
5800
- lineHeight: 1.2
5960
+ lineHeight: 1.2,
5961
+ superScriptFontSize: 24
5801
5962
  }
5802
5963
  },
5803
5964
  {
@@ -5806,7 +5967,8 @@ module.exports = {
5806
5967
  fontName: 'HelveticaNow',
5807
5968
  fontSize: 24,
5808
5969
  fontWeight: '400',
5809
- lineHeight: 1.33333333333
5970
+ lineHeight: 1.33333333333,
5971
+ superScriptFontSize: 16
5810
5972
  }
5811
5973
  },
5812
5974
  {
@@ -5814,7 +5976,8 @@ module.exports = {
5814
5976
  tokens: {
5815
5977
  fontSize: 28,
5816
5978
  letterSpacing: -0.017,
5817
- lineHeight: 1.28571428571
5979
+ lineHeight: 1.28571428571,
5980
+ superScriptFontSize: 20
5818
5981
  }
5819
5982
  },
5820
5983
  {
@@ -5823,7 +5986,8 @@ module.exports = {
5823
5986
  fontName: 'HelveticaNow',
5824
5987
  fontSize: 20,
5825
5988
  fontWeight: '500',
5826
- lineHeight: 1.4
5989
+ lineHeight: 1.4,
5990
+ superScriptFontSize: 16
5827
5991
  }
5828
5992
  },
5829
5993
  {
@@ -5836,7 +6000,8 @@ module.exports = {
5836
6000
  fontName: 'HelveticaNow',
5837
6001
  fontSize: 16,
5838
6002
  fontWeight: '500',
5839
- lineHeight: 1.5
6003
+ lineHeight: 1.5,
6004
+ superScriptFontSize: 16
5840
6005
  }
5841
6006
  },
5842
6007
  {
@@ -5848,6 +6013,10 @@ module.exports = {
5848
6013
  lineHeight: 1.28571428571
5849
6014
  }
5850
6015
  },
6016
+ {
6017
+ if: { size: [ 'h5', 'h6' ] },
6018
+ tokens: { superScriptFontSize: 12 }
6019
+ },
5851
6020
  {
5852
6021
  if: { size: 'h6' },
5853
6022
  tokens: {
@@ -5859,7 +6028,7 @@ module.exports = {
5859
6028
  },
5860
6029
  {
5861
6030
  if: { size: 'large' },
5862
- tokens: { fontSize: 20, lineHeight: 1.6 }
6031
+ tokens: { fontSize: 20, lineHeight: 1.6, superScriptFontSize: 16 }
5863
6032
  },
5864
6033
  {
5865
6034
  if: { compact: true, size: 'large' },
@@ -5872,7 +6041,11 @@ module.exports = {
5872
6041
  },
5873
6042
  {
5874
6043
  if: { size: 'small' },
5875
- tokens: { fontSize: 14, lineHeight: 1.42857142857 }
6044
+ tokens: {
6045
+ fontSize: 14,
6046
+ lineHeight: 1.42857142857,
6047
+ superScriptFontSize: 12
6048
+ }
5876
6049
  },
5877
6050
  {
5878
6051
  if: { compact: true, size: 'small' },
@@ -5884,7 +6057,8 @@ module.exports = {
5884
6057
  fontName: 'HelveticaNow',
5885
6058
  fontSize: 12,
5886
6059
  fontWeight: '500',
5887
- lineHeight: 1.33333333333
6060
+ lineHeight: 1.33333333333,
6061
+ superScriptFontSize: 12
5888
6062
  }
5889
6063
  },
5890
6064
  {
@@ -5991,6 +6165,7 @@ module.exports = {
5991
6165
  fontWeight: '400',
5992
6166
  letterSpacing: 0,
5993
6167
  lineHeight: 1.5,
6168
+ superScriptFontSize: 16,
5994
6169
  textTransform: 'none'
5995
6170
  }
5996
6171
  },
@@ -6087,12 +6262,60 @@ module.exports = {
6087
6262
  }
6088
6263
  },
6089
6264
  VideoPickerThumbnail: {
6090
- appearances: {},
6091
- rules: [],
6265
+ appearances: {
6266
+ focus: {
6267
+ 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.",
6268
+ platforms: [ 'rn' ],
6269
+ type: 'state',
6270
+ values: [ true, false ]
6271
+ },
6272
+ hover: {
6273
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
6274
+ platforms: [ 'rn' ],
6275
+ type: 'state',
6276
+ values: [ true, false ]
6277
+ },
6278
+ pressed: {
6279
+ 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.',
6280
+ type: 'state',
6281
+ values: [ true, false ]
6282
+ },
6283
+ selected: {
6284
+ 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`.',
6285
+ type: 'state',
6286
+ values: [ true ]
6287
+ }
6288
+ },
6289
+ rules: [
6290
+ {
6291
+ if: { focus: true },
6292
+ tokens: { borderColor: '#b2b9bf', outerBorderColor: '#b2b9bf' }
6293
+ },
6294
+ {
6295
+ if: { hover: true },
6296
+ tokens: { borderColor: '#e3e6e8', borderWidth: 3 }
6297
+ },
6298
+ {
6299
+ if: { pressed: true },
6300
+ tokens: { borderColor: '#676e73', borderWidth: 3 }
6301
+ },
6302
+ {
6303
+ if: { selected: true },
6304
+ tokens: {
6305
+ borderColor: '#4b286d',
6306
+ borderWidth: 2,
6307
+ titleColor: '#4b286d'
6308
+ }
6309
+ }
6310
+ ],
6092
6311
  tokens: {
6093
- borderColor: '#4b286d',
6312
+ borderColor: '#e3e6e8',
6094
6313
  borderRadius: 4,
6095
6314
  borderWidth: 2,
6315
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
6316
+ outerBorderGap: 2,
6317
+ outerBorderRadius: 8,
6318
+ outerBorderWidth: 2,
6096
6319
  pressableBorderTopColor: '#e3e6e8',
6097
6320
  pressableBorderTopWidth: 1,
6098
6321
  pressablePaddingBottom: 16,
@@ -6100,7 +6323,7 @@ module.exports = {
6100
6323
  pressablePaddingVertical: 16,
6101
6324
  splashButtonRadius: 4,
6102
6325
  subTitleColor: '#676e73',
6103
- titleColor: '#4b286d'
6326
+ titleColor: '#414547'
6104
6327
  }
6105
6328
  },
6106
6329
  VideoProgressBar: {
@@ -6202,5 +6425,5 @@ module.exports = {
6202
6425
  tokens: { size: 96 }
6203
6426
  }
6204
6427
  },
6205
- metadata: { name: 'theme-allium', themeTokensVersion: '2.36.0' }
6428
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.37.0' }
6206
6429
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/allium-design-system#readme",
@@ -8,12 +8,12 @@
8
8
  "main": "build/rn/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.23.0",
12
- "@telus-uds/system-theme-tokens": "^2.36.0",
13
- "@telus-uds/system-tokens": "^0.7.16"
11
+ "@telus-uds/palette-allium": "^2.24.0",
12
+ "@telus-uds/system-theme-tokens": "^2.37.0",
13
+ "@telus-uds/system-tokens": "^0.7.17"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.23.0"
16
+ "@telus-uds/palette-allium": "^2.24.0"
17
17
  },
18
18
  "files": [
19
19
  "build",