@telus-uds/theme-koodo 3.3.1 → 3.4.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,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Tue, 23 Aug 2022 19:30:03 GMT
4
+ * Generated on Mon, 19 Sep 2022 22:48:38 GMT
5
5
  *
6
6
  */
7
7
 
@@ -350,13 +350,18 @@ module.exports = {
350
350
  rules: [
351
351
  {
352
352
  if: { viewport: [ 'xs', 'sm' ] },
353
- tokens: { showPreviousNextNavigation: false, thumbnailSize: 48 }
353
+ tokens: {
354
+ showPanelTabs: false,
355
+ showPreviousNextNavigation: false,
356
+ thumbnailSize: 48
357
+ }
354
358
  }
355
359
  ],
356
360
  tokens: {
357
361
  nextIcon: PaletteIconChevronRight,
358
362
  previousIcon: PaletteIconChevronLeft,
359
363
  showPanelNavigation: true,
364
+ showPanelTabs: true,
360
365
  showPreviousNextNavigation: true,
361
366
  spaceBetweenSlideAndPanelNavigation: 32,
362
367
  spaceBetweenSlideAndPreviousNextNavigation: 24,
@@ -1257,6 +1262,167 @@ module.exports = {
1257
1262
  outlineWidth: 1
1258
1263
  }
1259
1264
  },
1265
+ QuickLinks: {
1266
+ appearances: {
1267
+ viewport: {
1268
+ description: 'The size label for the current screen viewport based on the current screen width',
1269
+ type: 'state',
1270
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1271
+ }
1272
+ },
1273
+ rules: [
1274
+ {
1275
+ if: { viewport: [ 'md', 'lg', 'xl' ] },
1276
+ tokens: { card: false, dividers: true, list: false }
1277
+ }
1278
+ ],
1279
+ tokens: {
1280
+ card: true,
1281
+ dividers: true,
1282
+ list: true,
1283
+ stackGap: 2,
1284
+ stackJustify: 'center',
1285
+ stackSpace: 4
1286
+ }
1287
+ },
1288
+ QuickLinksButton: {
1289
+ appearances: {
1290
+ focus: {
1291
+ 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.",
1292
+ type: 'state',
1293
+ values: [ true ]
1294
+ },
1295
+ hover: {
1296
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1297
+ type: 'state',
1298
+ values: [ true ]
1299
+ },
1300
+ pressed: {
1301
+ 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.',
1302
+ type: 'state',
1303
+ values: [ true ]
1304
+ }
1305
+ },
1306
+ rules: [
1307
+ {
1308
+ if: { hover: true },
1309
+ tokens: {
1310
+ backgroundColor: '#014847',
1311
+ borderColor: '#014847',
1312
+ color: '#ffffff'
1313
+ }
1314
+ },
1315
+ {
1316
+ if: { pressed: true },
1317
+ tokens: {
1318
+ backgroundColor: '#016b6a',
1319
+ borderColor: '#016b6a',
1320
+ color: '#ffffff'
1321
+ }
1322
+ },
1323
+ {
1324
+ if: { focus: true },
1325
+ tokens: { outerBorderColor: '#016b6a' }
1326
+ }
1327
+ ],
1328
+ tokens: {
1329
+ alignSelf: 'flex-start',
1330
+ backgroundColor: '#016b6a',
1331
+ borderColor: '#ffffff',
1332
+ borderRadius: 4,
1333
+ borderWidth: 0,
1334
+ color: '#ffffff',
1335
+ fontName: 'StagSans',
1336
+ fontSize: 16,
1337
+ fontWeight: '600',
1338
+ icon: null,
1339
+ iconColor: '#ffffff',
1340
+ iconSize: 24,
1341
+ iconSpace: 2,
1342
+ lineHeight: 1.5,
1343
+ minWidth: 0,
1344
+ opacity: 1,
1345
+ outerBackgroundColor: 'rgba(0, 0, 0, 0)',
1346
+ outerBorderColor: '#ffffff',
1347
+ outerBorderGap: 2,
1348
+ outerBorderWidth: 2,
1349
+ paddingBottom: 8,
1350
+ paddingLeft: 24,
1351
+ paddingRight: 24,
1352
+ paddingTop: 8,
1353
+ shadow: null,
1354
+ textAlign: 'center',
1355
+ width: null
1356
+ }
1357
+ },
1358
+ QuickLinksCard: {
1359
+ appearances: {},
1360
+ rules: [],
1361
+ tokens: {
1362
+ backgroundColor: '#f9f6a5',
1363
+ borderColor: null,
1364
+ borderRadius: 0,
1365
+ borderWidth: 0,
1366
+ flex: 1,
1367
+ minWidth: null,
1368
+ paddingBottom: 16,
1369
+ paddingLeft: 16,
1370
+ paddingRight: 16,
1371
+ paddingTop: 16,
1372
+ shadow: null
1373
+ }
1374
+ },
1375
+ QuickLinksList: {
1376
+ appearances: {
1377
+ focus: {
1378
+ 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.",
1379
+ type: 'state',
1380
+ values: [ true ]
1381
+ },
1382
+ hover: {
1383
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1384
+ type: 'state',
1385
+ values: [ true ]
1386
+ },
1387
+ pressed: {
1388
+ 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.',
1389
+ type: 'state',
1390
+ values: [ true ]
1391
+ }
1392
+ },
1393
+ rules: [
1394
+ { if: { hover: true }, tokens: { backgroundColor: '#c1f2e8' } },
1395
+ { if: { focus: true }, tokens: { backgroundColor: '#f9f6a5' } },
1396
+ {
1397
+ if: { pressed: true },
1398
+ tokens: { backgroundColor: '#016b6a' }
1399
+ }
1400
+ ],
1401
+ tokens: {
1402
+ backgroundColor: null,
1403
+ dividerColor: '#c9c8c8',
1404
+ dividerSize: 1,
1405
+ iconMarginTop: 4,
1406
+ interItemMargin: null,
1407
+ interItemMarginWithDivider: null,
1408
+ itemBulletColor: '#7c1366',
1409
+ itemBulletContainerAlign: 'center',
1410
+ itemBulletContainerWidth: 16,
1411
+ itemBulletHeight: 4,
1412
+ itemBulletWidth: 4,
1413
+ itemFontName: 'StagSans',
1414
+ itemFontSize: 16,
1415
+ itemFontWeight: '600',
1416
+ itemIconColor: '#7c1366',
1417
+ itemIconSize: 16,
1418
+ itemLineHeight: 1.3,
1419
+ listGutter: 10,
1420
+ paddingBottom: 8,
1421
+ paddingLeft: 12,
1422
+ paddingRight: 12,
1423
+ paddingTop: 8
1424
+ }
1425
+ },
1260
1426
  Radio: {
1261
1427
  appearances: {
1262
1428
  checked: {
@@ -2181,6 +2347,54 @@ module.exports = {
2181
2347
  paddingTop: 10
2182
2348
  }
2183
2349
  },
2350
+ Timeline: {
2351
+ appearances: {
2352
+ horizontal: {
2353
+ description: 'Use horizontal to display timeline horizontally.',
2354
+ type: 'variant',
2355
+ values: [ true ]
2356
+ },
2357
+ viewport: {
2358
+ description: 'The size label for the current screen viewport based on the current screen width',
2359
+ type: 'state',
2360
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
2361
+ }
2362
+ },
2363
+ rules: [
2364
+ {
2365
+ if: { horizontal: true, viewport: [ 'lg', 'xl' ] },
2366
+ tokens: {
2367
+ connectorHeight: 2,
2368
+ connectorWidth: '100%',
2369
+ itemContentMarginBottom: 0,
2370
+ itemContentMarginRight: 32,
2371
+ lineItemContainerDirection: 'column',
2372
+ lineItemDirection: 'row',
2373
+ lineItemMarginBottom: 24,
2374
+ lineItemMarginRight: 0,
2375
+ timelineContainerDirection: 'row'
2376
+ }
2377
+ }
2378
+ ],
2379
+ tokens: {
2380
+ connectorHeight: '100%',
2381
+ connectorWidth: 2,
2382
+ dotBorderWidth: 3,
2383
+ dotColor: '#ffffff',
2384
+ dotWidth: 16,
2385
+ itemContentFlexSize: 1,
2386
+ itemContentMarginBottom: 32,
2387
+ itemContentMarginRight: 0,
2388
+ lineContainerFlexSize: 1,
2389
+ lineItemAlign: 'center',
2390
+ lineItemContainerDirection: 'row',
2391
+ lineItemDirection: 'column',
2392
+ lineItemMarginBottom: 0,
2393
+ lineItemMarginRight: 24,
2394
+ timelineColor: '#016b6a',
2395
+ timelineContainerDirection: 'column'
2396
+ }
2397
+ },
2184
2398
  ToggleSwitch: {
2185
2399
  appearances: {
2186
2400
  focus: {
@@ -2523,5 +2737,5 @@ module.exports = {
2523
2737
  tokens: { size: 96 }
2524
2738
  }
2525
2739
  },
2526
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.4.0' }
2740
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.6.0' }
2527
2741
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
8
  "@telus-uds/palette-koodo": "^0.1.2",
9
- "@telus-uds/system-theme-tokens": "^2.4.0"
9
+ "@telus-uds/system-theme-tokens": "^2.6.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -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.3.1"
34
+ "version": "3.4.0"
35
35
  }
package/theme.json CHANGED
@@ -391,6 +391,7 @@
391
391
  "viewport": ["xs", "sm"]
392
392
  },
393
393
  "tokens": {
394
+ "showPanelTabs": "{system.show.false}",
394
395
  "showPreviousNextNavigation": "{system.show.false}",
395
396
  "thumbnailSize": "{palette.size.size48}"
396
397
  }
@@ -400,6 +401,7 @@
400
401
  "nextIcon": "{palette.icon.ChevronRight}",
401
402
  "previousIcon": "{palette.icon.ChevronLeft}",
402
403
  "showPanelNavigation": "{system.show.true}",
404
+ "showPanelTabs": "{system.show.true}",
403
405
  "showPreviousNextNavigation": "{system.show.true}",
404
406
  "spaceBetweenSlideAndPanelNavigation": "{palette.size.size32}",
405
407
  "spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}",
@@ -1411,6 +1413,171 @@
1411
1413
  "outlineWidth": "{palette.border.border1}"
1412
1414
  }
1413
1415
  },
1416
+ "QuickLinks": {
1417
+ "appearances": {
1418
+ "viewport": "{appearances.system.viewport}"
1419
+ },
1420
+ "rules": [
1421
+ {
1422
+ "if": {
1423
+ "viewport": ["md", "lg", "xl"]
1424
+ },
1425
+ "tokens": {
1426
+ "card": "{system.show.false}",
1427
+ "dividers": "{system.show.true}",
1428
+ "list": "{system.show.false}"
1429
+ }
1430
+ }
1431
+ ],
1432
+ "tokens": {
1433
+ "card": "{system.show.true}",
1434
+ "dividers": "{system.show.true}",
1435
+ "list": "{system.show.true}",
1436
+ "stackGap": "{system.integer.2}",
1437
+ "stackJustify": "{system.flexJustifyContent.center}",
1438
+ "stackSpace": "{system.integer.4}"
1439
+ }
1440
+ },
1441
+ "QuickLinksButton": {
1442
+ "appearances": {
1443
+ "focus": "{appearances.Button.focus}",
1444
+ "hover": "{appearances.Button.hover}",
1445
+ "pressed": "{appearances.Button.pressed}"
1446
+ },
1447
+ "rules": [
1448
+ {
1449
+ "if": {
1450
+ "hover": true
1451
+ },
1452
+ "tokens": {
1453
+ "backgroundColor": "{palette.color.darkMosque}",
1454
+ "borderColor": "{palette.color.darkMosque}",
1455
+ "color": "{palette.color.white}"
1456
+ }
1457
+ },
1458
+ {
1459
+ "if": {
1460
+ "pressed": true
1461
+ },
1462
+ "tokens": {
1463
+ "backgroundColor": "{palette.color.mosque}",
1464
+ "borderColor": "{palette.color.mosque}",
1465
+ "color": "{palette.color.white}"
1466
+ }
1467
+ },
1468
+ {
1469
+ "if": {
1470
+ "focus": true
1471
+ },
1472
+ "tokens": {
1473
+ "outerBorderColor": "{palette.color.mosque}"
1474
+ }
1475
+ }
1476
+ ],
1477
+ "tokens": {
1478
+ "alignSelf": "{system.flexAlign.flexStart}",
1479
+ "backgroundColor": "{palette.color.mosque}",
1480
+ "borderColor": "{palette.color.white}",
1481
+ "borderRadius": "{palette.radius.radius4}",
1482
+ "borderWidth": "{palette.border.none}",
1483
+ "color": "{palette.color.white}",
1484
+ "fontName": "{palette.fontName.StagSans}",
1485
+ "fontSize": "{palette.fontSize.size16}",
1486
+ "fontWeight": "{palette.fontWeight.weight600}",
1487
+ "icon": "{system.icon.none}",
1488
+ "iconColor": "{palette.color.white}",
1489
+ "iconSize": "{palette.size.size24}",
1490
+ "iconSpace": "{system.integer.2}",
1491
+ "lineHeight": "{palette.lineHeight.multiply150}",
1492
+ "minWidth": "{system.size.zero}",
1493
+ "opacity": "{system.opacity.opaque}",
1494
+ "outerBackgroundColor": "{palette.color.transparent}",
1495
+ "outerBorderColor": "{palette.color.white}",
1496
+ "outerBorderGap": "{palette.size.size2}",
1497
+ "outerBorderWidth": "{palette.border.border2}",
1498
+ "paddingBottom": "{palette.size.size8}",
1499
+ "paddingLeft": "{palette.size.size24}",
1500
+ "paddingRight": "{palette.size.size24}",
1501
+ "paddingTop": "{palette.size.size8}",
1502
+ "shadow": "{system.shadow.none}",
1503
+ "textAlign": "{system.flexJustifyContent.center}",
1504
+ "width": "{system.size.none}"
1505
+ }
1506
+ },
1507
+ "QuickLinksCard": {
1508
+ "appearances": {},
1509
+ "rules": [],
1510
+ "tokens": {
1511
+ "backgroundColor": "{palette.color.texas}",
1512
+ "borderColor": "{system.color.none}",
1513
+ "borderRadius": "{palette.radius.none}",
1514
+ "borderWidth": "{palette.border.none}",
1515
+ "flex": "{system.integer.1}",
1516
+ "minWidth": "{system.size.none}",
1517
+ "paddingBottom": "{palette.size.size16}",
1518
+ "paddingLeft": "{palette.size.size16}",
1519
+ "paddingRight": "{palette.size.size16}",
1520
+ "paddingTop": "{palette.size.size16}",
1521
+ "shadow": "{system.shadow.none}"
1522
+ }
1523
+ },
1524
+ "QuickLinksList": {
1525
+ "appearances": {
1526
+ "focus": "{appearances.QuickLinksList.focus}",
1527
+ "hover": "{appearances.QuickLinksList.hover}",
1528
+ "pressed": "{appearances.QuickLinksList.pressed}"
1529
+ },
1530
+ "rules": [
1531
+ {
1532
+ "if": {
1533
+ "hover": true
1534
+ },
1535
+ "tokens": {
1536
+ "backgroundColor": "{palette.color.mintTulip}"
1537
+ }
1538
+ },
1539
+ {
1540
+ "if": {
1541
+ "focus": true
1542
+ },
1543
+ "tokens": {
1544
+ "backgroundColor": "{palette.color.texas}"
1545
+ }
1546
+ },
1547
+ {
1548
+ "if": {
1549
+ "pressed": true
1550
+ },
1551
+ "tokens": {
1552
+ "backgroundColor": "{palette.color.mosque}"
1553
+ }
1554
+ }
1555
+ ],
1556
+ "tokens": {
1557
+ "backgroundColor": "{system.color.none}",
1558
+ "dividerColor": "{palette.color.silver}",
1559
+ "dividerSize": "{palette.border.border1}",
1560
+ "iconMarginTop": "{palette.size.size4}",
1561
+ "interItemMargin": "{system.size.none}",
1562
+ "interItemMarginWithDivider": "{system.size.none}",
1563
+ "itemBulletColor": "{palette.color.flirt}",
1564
+ "itemBulletContainerAlign": "{system.textAlign.center}",
1565
+ "itemBulletContainerWidth": "{palette.size.size16}",
1566
+ "itemBulletHeight": "{palette.size.size4}",
1567
+ "itemBulletWidth": "{palette.size.size4}",
1568
+ "itemFontName": "{palette.fontName.StagSans}",
1569
+ "itemFontSize": "{palette.fontSize.size16}",
1570
+ "itemFontWeight": "{palette.fontWeight.weight600}",
1571
+ "itemIconColor": "{palette.color.flirt}",
1572
+ "itemIconSize": "{palette.size.size16}",
1573
+ "itemLineHeight": "{palette.lineHeight.multiply130}",
1574
+ "listGutter": "{palette.size.size10}",
1575
+ "paddingBottom": "{palette.size.size8}",
1576
+ "paddingLeft": "{palette.size.size12}",
1577
+ "paddingRight": "{palette.size.size12}",
1578
+ "paddingTop": "{palette.size.size8}"
1579
+ }
1580
+ },
1414
1581
  "Radio": {
1415
1582
  "appearances": {
1416
1583
  "checked": "{appearances.Radio.checked}",
@@ -2364,6 +2531,53 @@
2364
2531
  "paddingTop": "{palette.size.size10}"
2365
2532
  }
2366
2533
  },
2534
+ "Timeline": {
2535
+ "appearances": {
2536
+ "horizontal": {
2537
+ "description": "Use horizontal to display timeline horizontally.",
2538
+ "type": "variant",
2539
+ "values": [true]
2540
+ },
2541
+ "viewport": "{appearances.system.viewport}"
2542
+ },
2543
+ "rules": [
2544
+ {
2545
+ "if": {
2546
+ "horizontal": true,
2547
+ "viewport": ["lg", "xl"]
2548
+ },
2549
+ "tokens": {
2550
+ "connectorHeight": "{palette.size.size2}",
2551
+ "connectorWidth": "{system.size.full}",
2552
+ "itemContentMarginBottom": "{palette.size.size0}",
2553
+ "itemContentMarginRight": "{palette.size.size32}",
2554
+ "lineItemContainerDirection": "{system.direction.column}",
2555
+ "lineItemDirection": "{system.direction.row}",
2556
+ "lineItemMarginBottom": "{palette.size.size24}",
2557
+ "lineItemMarginRight": "{palette.size.size0}",
2558
+ "timelineContainerDirection": "{system.direction.row}"
2559
+ }
2560
+ }
2561
+ ],
2562
+ "tokens": {
2563
+ "connectorHeight": "{system.size.full}",
2564
+ "connectorWidth": "{palette.size.size2}",
2565
+ "dotBorderWidth": "{palette.border.border3}",
2566
+ "dotColor": "{palette.color.white}",
2567
+ "dotWidth": "{palette.size.size16}",
2568
+ "itemContentFlexSize": "{system.integer.1}",
2569
+ "itemContentMarginBottom": "{palette.size.size32}",
2570
+ "itemContentMarginRight": "{palette.size.size0}",
2571
+ "lineContainerFlexSize": "{system.integer.1}",
2572
+ "lineItemAlign": "{system.flexAlign.center}",
2573
+ "lineItemContainerDirection": "{system.direction.row}",
2574
+ "lineItemDirection": "{system.direction.column}",
2575
+ "lineItemMarginBottom": "{palette.size.size0}",
2576
+ "lineItemMarginRight": "{palette.size.size24}",
2577
+ "timelineColor": "{palette.color.mosque}",
2578
+ "timelineContainerDirection": "{system.direction.column}"
2579
+ }
2580
+ },
2367
2581
  "ToggleSwitch": {
2368
2582
  "appearances": {
2369
2583
  "focus": "{appearances.ToggleSwitch.focus}",