@telus-uds/theme-koodo 3.0.0 → 3.3.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 Fri, 17 Jun 2022 16:22:53 GMT
4
+ * Generated on Wed, 17 Aug 2022 20:48:18 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')
@@ -187,6 +187,9 @@ module.exports = {
187
187
  fontName: 'StagSans',
188
188
  fontSize: 16,
189
189
  fontWeight: '600',
190
+ icon: null,
191
+ iconSize: 24,
192
+ iconSpace: 2,
190
193
  lineHeight: 1.5,
191
194
  minWidth: 0,
192
195
  opacity: 1,
@@ -336,6 +339,134 @@ module.exports = {
336
339
  shadow: null
337
340
  }
338
341
  },
342
+ Carousel: {
343
+ appearances: {
344
+ viewport: {
345
+ description: 'The size label for the current screen viewport based on the current screen width',
346
+ type: 'state',
347
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
348
+ }
349
+ },
350
+ rules: [
351
+ {
352
+ if: { viewport: [ 'xs', 'sm' ] },
353
+ tokens: { showPreviousNextNavigation: false, thumbnailSize: 48 }
354
+ }
355
+ ],
356
+ tokens: {
357
+ nextIcon: PaletteIconChevronRight,
358
+ previousIcon: PaletteIconChevronLeft,
359
+ showPanelNavigation: true,
360
+ showPreviousNextNavigation: true,
361
+ spaceBetweenSlideAndPanelNavigation: 32,
362
+ spaceBetweenSlideAndPreviousNextNavigation: 24,
363
+ thumbnailBorderColor: '#f9f6a5',
364
+ thumbnailBorderRadius: 4,
365
+ thumbnailBorderWidth: 1,
366
+ thumbnailContainerPaddingTop: 24,
367
+ thumbnailMargin: 4,
368
+ thumbnailPadding: 8,
369
+ thumbnailSelectedBorderColor: '#016b6a',
370
+ thumbnailSelectedBorderWidth: 2,
371
+ thumbnailSize: 64
372
+ }
373
+ },
374
+ CarouselTabsPanelItem: {
375
+ appearances: {
376
+ focus: {
377
+ 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.",
378
+ type: 'state',
379
+ values: [ true ]
380
+ },
381
+ hover: {
382
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
383
+ type: 'state',
384
+ values: [ true ]
385
+ },
386
+ inactive: {
387
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
388
+ type: 'state',
389
+ values: [ true ]
390
+ },
391
+ pressed: {
392
+ 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.',
393
+ type: 'state',
394
+ values: [ true ]
395
+ },
396
+ selected: {
397
+ 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`.',
398
+ type: 'state',
399
+ values: [ true ]
400
+ }
401
+ },
402
+ rules: [
403
+ {
404
+ if: { hover: true },
405
+ tokens: {
406
+ borderBottomColor: '#016b6a',
407
+ borderBottomWidth: 2,
408
+ color: '#016b6a'
409
+ }
410
+ },
411
+ {
412
+ if: { focus: true },
413
+ tokens: {
414
+ borderBottomColor: '#016b6a',
415
+ borderBottomWidth: 4,
416
+ color: '#016b6a'
417
+ }
418
+ },
419
+ {
420
+ if: { pressed: true },
421
+ tokens: {
422
+ borderBottomColor: '#014847',
423
+ borderBottomWidth: 2,
424
+ color: '#014847'
425
+ }
426
+ },
427
+ {
428
+ if: { focus: true, pressed: true },
429
+ tokens: { borderBottomWidth: 4 }
430
+ },
431
+ {
432
+ if: { inactive: true },
433
+ tokens: {
434
+ borderBottomColor: '#c9c8c8',
435
+ borderBottomWidth: 4,
436
+ color: '#c9c8c8'
437
+ }
438
+ },
439
+ {
440
+ if: { selected: true },
441
+ tokens: {
442
+ borderBottomColor: '#c9c8c8',
443
+ borderBottomWidth: 2,
444
+ color: '#c9c8c8',
445
+ fontName: 'StagSans',
446
+ fontWeight: '400'
447
+ }
448
+ }
449
+ ],
450
+ tokens: {
451
+ alignItems: 'flex-start',
452
+ borderBottomColor: 'transparent',
453
+ borderBottomStyle: 'solid',
454
+ borderBottomWidth: 1,
455
+ color: '#016b6a',
456
+ flex: 1,
457
+ fontName: 'StagSans',
458
+ fontScaleCap: 64,
459
+ fontSize: 14,
460
+ fontWeight: '400',
461
+ justifyContent: 'flex-start',
462
+ letterSpacing: 0,
463
+ lineHeight: 1.1,
464
+ paddingBottom: 16,
465
+ paddingLeft: 0,
466
+ paddingRight: 0,
467
+ paddingTop: 0
468
+ }
469
+ },
339
470
  Checkbox: {
340
471
  appearances: {
341
472
  checked: {
@@ -1681,6 +1812,21 @@ module.exports = {
1681
1812
  squareRadius: 4
1682
1813
  }
1683
1814
  },
1815
+ SkipLink: {
1816
+ appearances: {},
1817
+ rules: [],
1818
+ tokens: {
1819
+ backgroundColor: '#014847',
1820
+ borderRadius: 12,
1821
+ color: '#ffffff',
1822
+ outlineColor: '#016b6a',
1823
+ outlineOffset: 0,
1824
+ outlineStyle: 'solid',
1825
+ outlineWidth: 2,
1826
+ paddingHorizontal: 8,
1827
+ paddingVertical: 8
1828
+ }
1829
+ },
1684
1830
  StackView: {
1685
1831
  appearances: {},
1686
1832
  rules: [],
@@ -2377,5 +2523,5 @@ module.exports = {
2377
2523
  tokens: { size: 96 }
2378
2524
  }
2379
2525
  },
2380
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.0.2' }
2526
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.3.0' }
2381
2527
  }
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
- "name": "@telus-uds/theme-koodo",
3
- "version": "3.0.0",
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.3.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
- ],
21
+ "name": "@telus-uds/theme-koodo",
16
22
  "peerDependencies": {
17
23
  "@telus-uds/palette-koodo": "^0.1.2"
18
24
  },
19
- "devDependencies": {
20
- "@telus-uds/palette-koodo": "^0.1.2",
21
- "@telus-uds/system-theme-tokens": "^2.0.2"
22
- },
23
25
  "repository": {
24
26
  "type": "git",
25
- "url": "git+https://github.com/telus/koodo-design-system.git"
27
+ "url": "git+https://github.com/telus/universal-design-system.git"
26
28
  },
27
29
  "scripts": {
28
30
  "release": "standard-version",
29
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
30
- "dev": "nodemon -w src -x 'yarn build'"
32
+ "dev": "nodemon -w src -x 'npm run build'"
31
33
  },
32
- "bugs": {
33
- "url": "https://github.com/telus/koodo-design-system/issues"
34
- }
34
+ "version": "3.3.0"
35
35
  }
package/theme.json CHANGED
@@ -220,6 +220,9 @@
220
220
  "fontName": "{palette.fontName.StagSans}",
221
221
  "fontSize": "{palette.fontSize.size16}",
222
222
  "fontWeight": "{palette.fontWeight.weight600}",
223
+ "icon": "{system.icon.none}",
224
+ "iconSize": "{palette.size.size24}",
225
+ "iconSpace": "{system.integer.2}",
223
226
  "lineHeight": "{palette.lineHeight.multiply150}",
224
227
  "minWidth": "{system.size.zero}",
225
228
  "opacity": "{system.opacity.opaque}",
@@ -378,6 +381,130 @@
378
381
  "shadow": "{system.shadow.none}"
379
382
  }
380
383
  },
384
+ "Carousel": {
385
+ "appearances": {
386
+ "viewport": "{appearances.system.viewport}"
387
+ },
388
+ "rules": [
389
+ {
390
+ "if": {
391
+ "viewport": ["xs", "sm"]
392
+ },
393
+ "tokens": {
394
+ "showPreviousNextNavigation": "{system.show.false}",
395
+ "thumbnailSize": "{palette.size.size48}"
396
+ }
397
+ }
398
+ ],
399
+ "tokens": {
400
+ "nextIcon": "{palette.icon.ChevronRight}",
401
+ "previousIcon": "{palette.icon.ChevronLeft}",
402
+ "showPanelNavigation": "{system.show.true}",
403
+ "showPreviousNextNavigation": "{system.show.true}",
404
+ "spaceBetweenSlideAndPanelNavigation": "{palette.size.size32}",
405
+ "spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}",
406
+ "thumbnailBorderColor": "{palette.color.texas}",
407
+ "thumbnailBorderRadius": "{palette.radius.radius4}",
408
+ "thumbnailBorderWidth": "{palette.border.border1}",
409
+ "thumbnailContainerPaddingTop": "{palette.size.size24}",
410
+ "thumbnailMargin": "{palette.size.size4}",
411
+ "thumbnailPadding": "{palette.size.size8}",
412
+ "thumbnailSelectedBorderColor": "{palette.color.mosque}",
413
+ "thumbnailSelectedBorderWidth": "{palette.border.border2}",
414
+ "thumbnailSize": "{palette.size.size64}"
415
+ }
416
+ },
417
+ "CarouselTabsPanelItem": {
418
+ "appearances": {
419
+ "focus": "{appearances.CarouselTabsPanelItem.focus}",
420
+ "hover": "{appearances.CarouselTabsPanelItem.hover}",
421
+ "inactive": "{appearances.CarouselTabsPanelItem.inactive}",
422
+ "pressed": "{appearances.CarouselTabsPanelItem.pressed}",
423
+ "selected": "{appearances.CarouselTabsPanelItem.selected}"
424
+ },
425
+ "rules": [
426
+ {
427
+ "if": {
428
+ "hover": true
429
+ },
430
+ "tokens": {
431
+ "borderBottomColor": "{palette.color.mosque}",
432
+ "borderBottomWidth": "{palette.border.border2}",
433
+ "color": "{palette.color.mosque}"
434
+ }
435
+ },
436
+ {
437
+ "if": {
438
+ "focus": true
439
+ },
440
+ "tokens": {
441
+ "borderBottomColor": "{palette.color.mosque}",
442
+ "borderBottomWidth": "{palette.border.border4}",
443
+ "color": "{palette.color.mosque}"
444
+ }
445
+ },
446
+ {
447
+ "if": {
448
+ "pressed": true
449
+ },
450
+ "tokens": {
451
+ "borderBottomColor": "{palette.color.darkMosque}",
452
+ "borderBottomWidth": "{palette.border.border2}",
453
+ "color": "{palette.color.darkMosque}"
454
+ }
455
+ },
456
+ {
457
+ "if": {
458
+ "focus": true,
459
+ "pressed": true
460
+ },
461
+ "tokens": {
462
+ "borderBottomWidth": "{palette.border.border4}"
463
+ }
464
+ },
465
+ {
466
+ "if": {
467
+ "inactive": true
468
+ },
469
+ "tokens": {
470
+ "borderBottomColor": "{palette.color.silver}",
471
+ "borderBottomWidth": "{palette.border.border4}",
472
+ "color": "{palette.color.silver}"
473
+ }
474
+ },
475
+ {
476
+ "if": {
477
+ "selected": true
478
+ },
479
+ "tokens": {
480
+ "borderBottomColor": "{palette.color.silver}",
481
+ "borderBottomWidth": "{palette.border.border2}",
482
+ "color": "{palette.color.silver}",
483
+ "fontName": "{palette.fontName.StagSans}",
484
+ "fontWeight": "{palette.fontWeight.weight400}"
485
+ }
486
+ }
487
+ ],
488
+ "tokens": {
489
+ "alignItems": "{system.flexAlign.flexStart}",
490
+ "borderBottomColor": "{system.color.transparent}",
491
+ "borderBottomStyle": "{system.borderStyle.solid}",
492
+ "borderBottomWidth": "{palette.border.border1}",
493
+ "color": "{palette.color.mosque}",
494
+ "flex": "{system.integer.1}",
495
+ "fontName": "{palette.fontName.StagSans}",
496
+ "fontScaleCap": "{palette.fontSize.size64}",
497
+ "fontSize": "{palette.fontSize.size14}",
498
+ "fontWeight": "{palette.fontWeight.weight400}",
499
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
500
+ "letterSpacing": "{system.letterSpacing.none}",
501
+ "lineHeight": "{palette.lineHeight.multiply110}",
502
+ "paddingBottom": "{palette.size.size16}",
503
+ "paddingLeft": "{system.size.zero}",
504
+ "paddingRight": "{system.size.zero}",
505
+ "paddingTop": "{system.size.zero}"
506
+ }
507
+ },
381
508
  "Checkbox": {
382
509
  "appearances": {
383
510
  "checked": "{appearances.Checkbox.checked}",
@@ -1850,6 +1977,21 @@
1850
1977
  "squareRadius": "{palette.radius.radius4}"
1851
1978
  }
1852
1979
  },
1980
+ "SkipLink": {
1981
+ "appearances": {},
1982
+ "rules": [],
1983
+ "tokens": {
1984
+ "backgroundColor": "{palette.color.darkMosque}",
1985
+ "borderRadius": "{palette.radius.radius12}",
1986
+ "color": "{palette.color.white}",
1987
+ "outlineColor": "{palette.color.mosque}",
1988
+ "outlineOffset": "{system.border.zero}",
1989
+ "outlineStyle": "{system.borderStyle.solid}",
1990
+ "outlineWidth": "{palette.border.border2}",
1991
+ "paddingHorizontal": "{palette.size.size8}",
1992
+ "paddingVertical": "{palette.size.size8}"
1993
+ }
1994
+ },
1853
1995
  "StackView": {
1854
1996
  "appearances": {},
1855
1997
  "rules": [],