@telus-uds/theme-koodo 2.1.1 → 3.2.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/theme.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Tue, 10 May 2022 13:55:10 GMT
4
+ * Generated on Fri, 12 Aug 2022 20:14:25 GMT
5
5
  *
6
6
  */
7
7
 
8
- const PaletteIconCheck = require('@telus-uds/palette-koodo/build/rn/icons/Check')
9
- const PaletteIconChevronLeft = require('@telus-uds/palette-koodo/build/rn/icons/ChevronLeft')
10
8
  const PaletteIconChevronRight = require('@telus-uds/palette-koodo/build/rn/icons/ChevronRight')
9
+ const PaletteIconChevronLeft = require('@telus-uds/palette-koodo/build/rn/icons/ChevronLeft')
10
+ const PaletteIconCheck = require('@telus-uds/palette-koodo/build/rn/icons/Check')
11
11
  const PaletteIconChevronUp = require('@telus-uds/palette-koodo/build/rn/icons/ChevronUp')
12
12
  const PaletteIconChevronDown = require('@telus-uds/palette-koodo/build/rn/icons/ChevronDown')
13
13
  const PaletteIconCheckCircledFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledFilled')
@@ -209,6 +209,7 @@ module.exports = {
209
209
  tokens: {
210
210
  alignItems: 'center',
211
211
  direction: 'row',
212
+ fieldSpace: 2,
212
213
  flexGrow: 0,
213
214
  flexShrink: 0,
214
215
  justifyContent: 'flex-start',
@@ -335,6 +336,134 @@ module.exports = {
335
336
  shadow: null
336
337
  }
337
338
  },
339
+ Carousel: {
340
+ appearances: {
341
+ viewport: {
342
+ description: 'The size label for the current screen viewport based on the current screen width',
343
+ type: 'state',
344
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
345
+ }
346
+ },
347
+ rules: [
348
+ {
349
+ if: { viewport: [ 'xs', 'sm' ] },
350
+ tokens: { showPreviousNextNavigation: false, thumbnailSize: 48 }
351
+ }
352
+ ],
353
+ tokens: {
354
+ nextIcon: PaletteIconChevronRight,
355
+ previousIcon: PaletteIconChevronLeft,
356
+ showPanelNavigation: true,
357
+ showPreviousNextNavigation: true,
358
+ spaceBetweenSlideAndPanelNavigation: 32,
359
+ spaceBetweenSlideAndPreviousNextNavigation: 24,
360
+ thumbnailBorderColor: '#f9f6a5',
361
+ thumbnailBorderRadius: 4,
362
+ thumbnailBorderWidth: 1,
363
+ thumbnailContainerPaddingTop: 24,
364
+ thumbnailMargin: 4,
365
+ thumbnailPadding: 8,
366
+ thumbnailSelectedBorderColor: '#016b6a',
367
+ thumbnailSelectedBorderWidth: 2,
368
+ thumbnailSize: 64
369
+ }
370
+ },
371
+ CarouselTabsPanelItem: {
372
+ appearances: {
373
+ focus: {
374
+ 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.",
375
+ type: 'state',
376
+ values: [ true ]
377
+ },
378
+ hover: {
379
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
380
+ type: 'state',
381
+ values: [ true ]
382
+ },
383
+ inactive: {
384
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
385
+ type: 'state',
386
+ values: [ true ]
387
+ },
388
+ pressed: {
389
+ 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.',
390
+ type: 'state',
391
+ values: [ true ]
392
+ },
393
+ selected: {
394
+ 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`.',
395
+ type: 'state',
396
+ values: [ true ]
397
+ }
398
+ },
399
+ rules: [
400
+ {
401
+ if: { hover: true },
402
+ tokens: {
403
+ borderBottomColor: '#016b6a',
404
+ borderBottomWidth: 2,
405
+ color: '#016b6a'
406
+ }
407
+ },
408
+ {
409
+ if: { focus: true },
410
+ tokens: {
411
+ borderBottomColor: '#016b6a',
412
+ borderBottomWidth: 4,
413
+ color: '#016b6a'
414
+ }
415
+ },
416
+ {
417
+ if: { pressed: true },
418
+ tokens: {
419
+ borderBottomColor: '#014847',
420
+ borderBottomWidth: 2,
421
+ color: '#014847'
422
+ }
423
+ },
424
+ {
425
+ if: { focus: true, pressed: true },
426
+ tokens: { borderBottomWidth: 4 }
427
+ },
428
+ {
429
+ if: { inactive: true },
430
+ tokens: {
431
+ borderBottomColor: '#c9c8c8',
432
+ borderBottomWidth: 4,
433
+ color: '#c9c8c8'
434
+ }
435
+ },
436
+ {
437
+ if: { selected: true },
438
+ tokens: {
439
+ borderBottomColor: '#c9c8c8',
440
+ borderBottomWidth: 2,
441
+ color: '#c9c8c8',
442
+ fontName: 'StagSans',
443
+ fontWeight: '400'
444
+ }
445
+ }
446
+ ],
447
+ tokens: {
448
+ alignItems: 'flex-start',
449
+ borderBottomColor: 'transparent',
450
+ borderBottomStyle: 'solid',
451
+ borderBottomWidth: 1,
452
+ color: '#016b6a',
453
+ flex: 1,
454
+ fontName: 'StagSans',
455
+ fontScaleCap: 64,
456
+ fontSize: 14,
457
+ fontWeight: '400',
458
+ justifyContent: 'flex-start',
459
+ letterSpacing: 0,
460
+ lineHeight: 1.1,
461
+ paddingBottom: 16,
462
+ paddingLeft: 0,
463
+ paddingRight: 0,
464
+ paddingTop: 0
465
+ }
466
+ },
338
467
  Checkbox: {
339
468
  appearances: {
340
469
  checked: {
@@ -1680,6 +1809,21 @@ module.exports = {
1680
1809
  squareRadius: 4
1681
1810
  }
1682
1811
  },
1812
+ SkipLink: {
1813
+ appearances: {},
1814
+ rules: [],
1815
+ tokens: {
1816
+ backgroundColor: '#014847',
1817
+ borderRadius: 12,
1818
+ color: '#ffffff',
1819
+ outlineColor: '#016b6a',
1820
+ outlineOffset: 0,
1821
+ outlineStyle: 'solid',
1822
+ outlineWidth: 2,
1823
+ paddingHorizontal: 8,
1824
+ paddingVertical: 8
1825
+ }
1826
+ },
1683
1827
  StackView: {
1684
1828
  appearances: {},
1685
1829
  rules: [],
@@ -2137,6 +2281,7 @@ module.exports = {
2137
2281
  tokens: {
2138
2282
  alignItems: 'flex-start',
2139
2283
  direction: 'column',
2284
+ fieldSpace: 2,
2140
2285
  flexGrow: 0,
2141
2286
  flexShrink: 0,
2142
2287
  justifyContent: 'flex-start',
@@ -2375,5 +2520,5 @@ module.exports = {
2375
2520
  tokens: { size: 96 }
2376
2521
  }
2377
2522
  },
2378
- metadata: { name: 'theme-koodo', themeTokensVersion: '1.5.0' }
2523
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.2.0' }
2379
2524
  }
package/package.json CHANGED
@@ -1,36 +1,35 @@
1
1
  {
2
- "name": "@telus-uds/theme-koodo",
3
- "version": "2.1.1",
2
+ "author": "TELUS Digital",
3
+ "bugs": {
4
+ "url": "https://github.com/telus/universal-design-system/issues"
5
+ },
4
6
  "description": "Koodo theme",
7
+ "devDependencies": {
8
+ "@telus-uds/palette-koodo": "^0.1.2",
9
+ "@telus-uds/system-theme-tokens": "^2.2.0"
10
+ },
11
+ "files": [
12
+ "build",
13
+ "theme.json"
14
+ ],
15
+ "homepage": "https://github.com/telus/universal-design-system#readme",
5
16
  "keywords": [
6
17
  "koodo"
7
18
  ],
8
- "author": "TELUS Digital",
9
- "homepage": "https://github.com/telus/koodo-design-system#readme",
10
19
  "license": "UNLICENSED",
11
20
  "main": "build/theme.js",
12
- "files": [
13
- "build",
14
- "theme.json"
15
- ],
16
- "dependencies": {},
21
+ "name": "@telus-uds/theme-koodo",
17
22
  "peerDependencies": {
18
23
  "@telus-uds/palette-koodo": "^0.1.2"
19
24
  },
20
- "devDependencies": {
21
- "@telus-uds/palette-koodo": "^0.1.2",
22
- "@telus-uds/system-theme-tokens": "^1.5.0"
23
- },
24
25
  "repository": {
25
26
  "type": "git",
26
- "url": "git+https://github.com/telus/koodo-design-system.git"
27
+ "url": "git+https://github.com/telus/universal-design-system.git"
27
28
  },
28
29
  "scripts": {
29
30
  "release": "standard-version",
30
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
31
- "dev": "nodemon -w src -x 'yarn build'"
32
+ "dev": "nodemon -w src -x 'npm run build'"
32
33
  },
33
- "bugs": {
34
- "url": "https://github.com/telus/koodo-design-system/issues"
35
- }
34
+ "version": "3.2.0"
36
35
  }
package/theme.json CHANGED
@@ -242,6 +242,7 @@
242
242
  "tokens": {
243
243
  "alignItems": "{system.flexAlign.center}",
244
244
  "direction": "{system.direction.row}",
245
+ "fieldSpace": "{system.integer.2}",
245
246
  "flexGrow": "{system.integer.0}",
246
247
  "flexShrink": "{system.integer.0}",
247
248
  "justifyContent": "{system.flexJustifyContent.flexStart}",
@@ -377,6 +378,130 @@
377
378
  "shadow": "{system.shadow.none}"
378
379
  }
379
380
  },
381
+ "Carousel": {
382
+ "appearances": {
383
+ "viewport": "{appearances.system.viewport}"
384
+ },
385
+ "rules": [
386
+ {
387
+ "if": {
388
+ "viewport": ["xs", "sm"]
389
+ },
390
+ "tokens": {
391
+ "showPreviousNextNavigation": "{system.show.false}",
392
+ "thumbnailSize": "{palette.size.size48}"
393
+ }
394
+ }
395
+ ],
396
+ "tokens": {
397
+ "nextIcon": "{palette.icon.ChevronRight}",
398
+ "previousIcon": "{palette.icon.ChevronLeft}",
399
+ "showPanelNavigation": "{system.show.true}",
400
+ "showPreviousNextNavigation": "{system.show.true}",
401
+ "spaceBetweenSlideAndPanelNavigation": "{palette.size.size32}",
402
+ "spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}",
403
+ "thumbnailBorderColor": "{palette.color.texas}",
404
+ "thumbnailBorderRadius": "{palette.radius.radius4}",
405
+ "thumbnailBorderWidth": "{palette.border.border1}",
406
+ "thumbnailContainerPaddingTop": "{palette.size.size24}",
407
+ "thumbnailMargin": "{palette.size.size4}",
408
+ "thumbnailPadding": "{palette.size.size8}",
409
+ "thumbnailSelectedBorderColor": "{palette.color.mosque}",
410
+ "thumbnailSelectedBorderWidth": "{palette.border.border2}",
411
+ "thumbnailSize": "{palette.size.size64}"
412
+ }
413
+ },
414
+ "CarouselTabsPanelItem": {
415
+ "appearances": {
416
+ "focus": "{appearances.CarouselTabsPanelItem.focus}",
417
+ "hover": "{appearances.CarouselTabsPanelItem.hover}",
418
+ "inactive": "{appearances.CarouselTabsPanelItem.inactive}",
419
+ "pressed": "{appearances.CarouselTabsPanelItem.pressed}",
420
+ "selected": "{appearances.CarouselTabsPanelItem.selected}"
421
+ },
422
+ "rules": [
423
+ {
424
+ "if": {
425
+ "hover": true
426
+ },
427
+ "tokens": {
428
+ "borderBottomColor": "{palette.color.mosque}",
429
+ "borderBottomWidth": "{palette.border.border2}",
430
+ "color": "{palette.color.mosque}"
431
+ }
432
+ },
433
+ {
434
+ "if": {
435
+ "focus": true
436
+ },
437
+ "tokens": {
438
+ "borderBottomColor": "{palette.color.mosque}",
439
+ "borderBottomWidth": "{palette.border.border4}",
440
+ "color": "{palette.color.mosque}"
441
+ }
442
+ },
443
+ {
444
+ "if": {
445
+ "pressed": true
446
+ },
447
+ "tokens": {
448
+ "borderBottomColor": "{palette.color.darkMosque}",
449
+ "borderBottomWidth": "{palette.border.border2}",
450
+ "color": "{palette.color.darkMosque}"
451
+ }
452
+ },
453
+ {
454
+ "if": {
455
+ "focus": true,
456
+ "pressed": true
457
+ },
458
+ "tokens": {
459
+ "borderBottomWidth": "{palette.border.border4}"
460
+ }
461
+ },
462
+ {
463
+ "if": {
464
+ "inactive": true
465
+ },
466
+ "tokens": {
467
+ "borderBottomColor": "{palette.color.silver}",
468
+ "borderBottomWidth": "{palette.border.border4}",
469
+ "color": "{palette.color.silver}"
470
+ }
471
+ },
472
+ {
473
+ "if": {
474
+ "selected": true
475
+ },
476
+ "tokens": {
477
+ "borderBottomColor": "{palette.color.silver}",
478
+ "borderBottomWidth": "{palette.border.border2}",
479
+ "color": "{palette.color.silver}",
480
+ "fontName": "{palette.fontName.StagSans}",
481
+ "fontWeight": "{palette.fontWeight.weight400}"
482
+ }
483
+ }
484
+ ],
485
+ "tokens": {
486
+ "alignItems": "{system.flexAlign.flexStart}",
487
+ "borderBottomColor": "{system.color.transparent}",
488
+ "borderBottomStyle": "{system.borderStyle.solid}",
489
+ "borderBottomWidth": "{palette.border.border1}",
490
+ "color": "{palette.color.mosque}",
491
+ "flex": "{system.integer.1}",
492
+ "fontName": "{palette.fontName.StagSans}",
493
+ "fontScaleCap": "{palette.fontSize.size64}",
494
+ "fontSize": "{palette.fontSize.size14}",
495
+ "fontWeight": "{palette.fontWeight.weight400}",
496
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
497
+ "letterSpacing": "{system.letterSpacing.none}",
498
+ "lineHeight": "{palette.lineHeight.multiply110}",
499
+ "paddingBottom": "{palette.size.size16}",
500
+ "paddingLeft": "{system.size.zero}",
501
+ "paddingRight": "{system.size.zero}",
502
+ "paddingTop": "{system.size.zero}"
503
+ }
504
+ },
380
505
  "Checkbox": {
381
506
  "appearances": {
382
507
  "checked": "{appearances.Checkbox.checked}",
@@ -1849,6 +1974,21 @@
1849
1974
  "squareRadius": "{palette.radius.radius4}"
1850
1975
  }
1851
1976
  },
1977
+ "SkipLink": {
1978
+ "appearances": {},
1979
+ "rules": [],
1980
+ "tokens": {
1981
+ "backgroundColor": "{palette.color.darkMosque}",
1982
+ "borderRadius": "{palette.radius.radius12}",
1983
+ "color": "{palette.color.white}",
1984
+ "outlineColor": "{palette.color.mosque}",
1985
+ "outlineOffset": "{system.border.zero}",
1986
+ "outlineStyle": "{system.borderStyle.solid}",
1987
+ "outlineWidth": "{palette.border.border2}",
1988
+ "paddingHorizontal": "{palette.size.size8}",
1989
+ "paddingVertical": "{palette.size.size8}"
1990
+ }
1991
+ },
1852
1992
  "StackView": {
1853
1993
  "appearances": {},
1854
1994
  "rules": [],
@@ -2351,6 +2491,7 @@
2351
2491
  "tokens": {
2352
2492
  "alignItems": "{system.flexAlign.flexStart}",
2353
2493
  "direction": "{system.direction.column}",
2494
+ "fieldSpace": "{system.integer.2}",
2354
2495
  "flexGrow": "{system.integer.0}",
2355
2496
  "flexShrink": "{system.integer.0}",
2356
2497
  "justifyContent": "{system.flexJustifyContent.flexStart}",