@telus-uds/theme-koodo 3.16.0 → 3.18.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 Mon, 03 Apr 2023 20:31:58 GMT
4
+ * Generated on Tue, 04 Apr 2023 19:52:38 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1829,6 +1829,56 @@ module.exports = {
1829
1829
  paddingTop: 12
1830
1830
  }
1831
1831
  },
1832
+ OrderedList: {
1833
+ appearances: {
1834
+ compact: {
1835
+ description: 'When true it will reduce the line height of the list item.',
1836
+ type: 'variant',
1837
+ values: [ true ]
1838
+ },
1839
+ size: {
1840
+ description: 'Indicates list item text size.',
1841
+ type: 'variant',
1842
+ values: [ 'large', 'medium', 'small' ]
1843
+ }
1844
+ },
1845
+ rules: [
1846
+ {
1847
+ if: { size: 'large' },
1848
+ tokens: { itemFontSize: 20, itemLineHeight: 1.4 }
1849
+ },
1850
+ { if: { size: 'medium' }, tokens: {} },
1851
+ {
1852
+ if: { size: 'small' },
1853
+ tokens: { itemFontSize: 14, itemLineHeight: 1.42857142857 }
1854
+ },
1855
+ { if: { compact: true }, tokens: { itemLineHeight: 1.2 } },
1856
+ {
1857
+ if: { compact: true, size: 'small' },
1858
+ tokens: { itemLineHeight: 1.1 }
1859
+ },
1860
+ {
1861
+ if: { compact: true, size: 'large' },
1862
+ tokens: { itemLineHeight: 1.3 }
1863
+ }
1864
+ ],
1865
+ tokens: {
1866
+ headerFontName: 'StagSans',
1867
+ headerFontWeight: '600',
1868
+ interItemMargin: 8,
1869
+ itemBulletContainerWidth: 16,
1870
+ itemBulletHeight: 4,
1871
+ itemBulletWidth: 4,
1872
+ itemColor: '#000000',
1873
+ itemFontName: 'StagSans',
1874
+ itemFontSize: 16,
1875
+ itemFontWeight: '400',
1876
+ itemLineHeight: 1.5,
1877
+ itemMarginTop: 0,
1878
+ itemPaddingTop: 0,
1879
+ listGutter: 8
1880
+ }
1881
+ },
1832
1882
  Pagination: {
1833
1883
  appearances: {
1834
1884
  viewport: {
@@ -2297,14 +2347,87 @@ module.exports = {
2297
2347
  }
2298
2348
  },
2299
2349
  rules: [
2350
+ {
2351
+ if: { error: true },
2352
+ tokens: {
2353
+ inputBackgroundColor: '#ffffff',
2354
+ inputBorderColor: '#ffffff',
2355
+ inputOutlineColor: '#016b6a',
2356
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
2357
+ outerBorderGap: 0,
2358
+ outerBorderWidth: 0
2359
+ }
2360
+ },
2300
2361
  {
2301
2362
  if: { focus: true },
2302
- tokens: { inputOutlineColor: '#c9c8c8', inputOutlineWidth: 2 }
2363
+ tokens: {
2364
+ outerBorderColor: '#17367d',
2365
+ outerBorderGap: 5,
2366
+ outerBorderWidth: 1
2367
+ }
2368
+ },
2369
+ {
2370
+ if: { checked: true, focus: true },
2371
+ tokens: {
2372
+ inputBackgroundColor: '#016b6a',
2373
+ inputBorderColor: '#ffffff',
2374
+ inputOutlineColor: '#016b6a',
2375
+ outerBorderColor: '#17367d',
2376
+ outerBorderGap: 5,
2377
+ outerBorderWidth: 1
2378
+ }
2379
+ },
2380
+ {
2381
+ if: { hover: true },
2382
+ tokens: {
2383
+ outerBorderColor: '#17367d',
2384
+ outerBorderGap: 5,
2385
+ outerBorderWidth: 1
2386
+ }
2387
+ },
2388
+ {
2389
+ if: { checked: true, hover: true },
2390
+ tokens: {
2391
+ inputBackgroundColor: '#016b6a',
2392
+ inputBorderColor: '#ffffff',
2393
+ inputOutlineColor: '#016b6a',
2394
+ outerBorderColor: '#17367d',
2395
+ outerBorderGap: 5,
2396
+ outerBorderWidth: 1
2397
+ }
2398
+ },
2399
+ {
2400
+ if: { checked: true },
2401
+ tokens: {
2402
+ inputBackgroundColor: '#016b6a',
2403
+ inputOutlineColor: '#016b6a'
2404
+ }
2405
+ },
2406
+ {
2407
+ if: { inactive: true },
2408
+ tokens: {
2409
+ inputBackgroundColor: '#c9c8c8',
2410
+ inputBorderColor: '#c9c8c8',
2411
+ inputOutlineColor: '#c9c8c8',
2412
+ labelColor: '#666666'
2413
+ }
2414
+ },
2415
+ {
2416
+ if: { checked: true, inactive: true },
2417
+ tokens: {
2418
+ checkedBackgroundColor: '#c9c8c8',
2419
+ inputBackgroundColor: '#c9c8c8',
2420
+ inputBorderColor: '#ffffff',
2421
+ inputBorderWidth: 3,
2422
+ inputOutlineColor: '#c9c8c8',
2423
+ inputOutlineWidth: 1,
2424
+ labelColor: '#666666'
2425
+ }
2303
2426
  }
2304
2427
  ],
2305
2428
  tokens: {
2306
2429
  checkedBackgroundColor: '#016b6a',
2307
- checkedSize: 12,
2430
+ checkedSize: 16,
2308
2431
  containerBackgroundColor: 'rgba(0, 0, 0, 0)',
2309
2432
  containerBorderRadius: 0,
2310
2433
  containerOpacity: 1,
@@ -2317,10 +2440,10 @@ module.exports = {
2317
2440
  descriptionLineHeight: 1.4,
2318
2441
  descriptionMarginLeft: null,
2319
2442
  inputBackgroundColor: '#ffffff',
2320
- inputBorderColor: '#016b6a',
2443
+ inputBorderColor: '#ffffff',
2321
2444
  inputBorderWidth: 2,
2322
- inputOutlineColor: 'rgba(0, 0, 0, 0)',
2323
- inputOutlineWidth: 0,
2445
+ inputOutlineColor: '#016b6a',
2446
+ inputOutlineWidth: 2,
2324
2447
  inputSize: 20,
2325
2448
  labelColor: '#000000',
2326
2449
  labelFontName: 'StagSans',
@@ -2481,6 +2604,37 @@ module.exports = {
2481
2604
  tokens: { direction: 'row', fieldSpace: 2, space: 2 }
2482
2605
  },
2483
2606
  RadioGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
2607
+ Ribbon: {
2608
+ appearances: {
2609
+ purpose: {
2610
+ type: 'variant',
2611
+ values: [ 'offer', 'default', 'editorial' ]
2612
+ }
2613
+ },
2614
+ rules: [],
2615
+ tokens: {
2616
+ backgroundColor: '#000000',
2617
+ borderRadius: 4,
2618
+ boxShadowColor: '#000000',
2619
+ boxShadowPaddingBottom: 2,
2620
+ boxShadowPaddingLeft: 2,
2621
+ boxShadowPaddingRight: 2,
2622
+ boxShadowPaddingTop: 2,
2623
+ curveAfterBackgroundColor: '#000000',
2624
+ curveAfterHeight: 4,
2625
+ curveAfterRadius: 8,
2626
+ curveAfterWidth: 8,
2627
+ curveBackgroundColor: '#000000',
2628
+ curveHeight: 10,
2629
+ curveMarginTop: 4,
2630
+ curveWidth: 8,
2631
+ gradient: null,
2632
+ paddingBottom: 4,
2633
+ paddingLeft: 8,
2634
+ paddingRight: 8,
2635
+ paddingTop: 4
2636
+ }
2637
+ },
2484
2638
  Search: {
2485
2639
  appearances: {
2486
2640
  focus: {
@@ -3708,5 +3862,5 @@ module.exports = {
3708
3862
  tokens: { size: 96 }
3709
3863
  }
3710
3864
  },
3711
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.15.0' }
3865
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.17.0' }
3712
3866
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.8.0",
9
- "@telus-uds/system-theme-tokens": "^2.15.0"
8
+ "@telus-uds/palette-koodo": "^0.9.0",
9
+ "@telus-uds/system-theme-tokens": "^2.17.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.8.0"
23
+ "@telus-uds/palette-koodo": "^0.9.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.16.0"
34
+ "version": "3.18.0"
35
35
  }
package/theme.json CHANGED
@@ -2506,6 +2506,88 @@
2506
2506
  "paddingTop": "{palette.size.size12}"
2507
2507
  }
2508
2508
  },
2509
+ "OrderedList": {
2510
+ "appearances": {
2511
+ "compact": {
2512
+ "description": "When true it will reduce the line height of the list item.",
2513
+ "type": "variant",
2514
+ "values": [true]
2515
+ },
2516
+ "size": {
2517
+ "description": "Indicates list item text size.",
2518
+ "type": "variant",
2519
+ "values": ["large", "medium", "small"]
2520
+ }
2521
+ },
2522
+ "rules": [
2523
+ {
2524
+ "if": {
2525
+ "size": "large"
2526
+ },
2527
+ "tokens": {
2528
+ "itemFontSize": "{palette.fontSize.size20}",
2529
+ "itemLineHeight": "{palette.lineHeight.ratio7to5}"
2530
+ }
2531
+ },
2532
+ {
2533
+ "if": {
2534
+ "size": "medium"
2535
+ },
2536
+ "tokens": {}
2537
+ },
2538
+ {
2539
+ "if": {
2540
+ "size": "small"
2541
+ },
2542
+ "tokens": {
2543
+ "itemFontSize": "{palette.fontSize.size14}",
2544
+ "itemLineHeight": "{palette.lineHeight.ratio10to7}"
2545
+ }
2546
+ },
2547
+ {
2548
+ "if": {
2549
+ "compact": true
2550
+ },
2551
+ "tokens": {
2552
+ "itemLineHeight": "{palette.lineHeight.multiply120}"
2553
+ }
2554
+ },
2555
+ {
2556
+ "if": {
2557
+ "compact": true,
2558
+ "size": "small"
2559
+ },
2560
+ "tokens": {
2561
+ "itemLineHeight": "{palette.lineHeight.multiply110}"
2562
+ }
2563
+ },
2564
+ {
2565
+ "if": {
2566
+ "compact": true,
2567
+ "size": "large"
2568
+ },
2569
+ "tokens": {
2570
+ "itemLineHeight": "{palette.lineHeight.multiply130}"
2571
+ }
2572
+ }
2573
+ ],
2574
+ "tokens": {
2575
+ "headerFontName": "{palette.fontName.StagSans}",
2576
+ "headerFontWeight": "{palette.fontWeight.weight600}",
2577
+ "interItemMargin": "{palette.size.size8}",
2578
+ "itemBulletContainerWidth": "{palette.size.size16}",
2579
+ "itemBulletHeight": "{palette.size.size4}",
2580
+ "itemBulletWidth": "{palette.size.size4}",
2581
+ "itemColor": "{palette.color.black}",
2582
+ "itemFontName": "{palette.fontName.StagSans}",
2583
+ "itemFontSize": "{palette.fontSize.size16}",
2584
+ "itemFontWeight": "{palette.fontWeight.weight400}",
2585
+ "itemLineHeight": "{palette.lineHeight.ratio3to2}",
2586
+ "itemMarginTop": "{palette.size.size0}",
2587
+ "itemPaddingTop": "{palette.size.size0}",
2588
+ "listGutter": "{palette.size.size8}"
2589
+ }
2590
+ },
2509
2591
  "Pagination": {
2510
2592
  "appearances": {
2511
2593
  "viewport": "{appearances.system.viewport}"
@@ -3009,17 +3091,104 @@
3009
3091
  "rules": [
3010
3092
  {
3011
3093
  "if": {
3094
+ "error": true
3095
+ },
3096
+ "tokens": {
3097
+ "inputBackgroundColor": "{palette.color.white}",
3098
+ "inputBorderColor": "{palette.color.white}",
3099
+ "inputOutlineColor": "{palette.color.mosque}",
3100
+ "outerBorderColor": "{palette.color.transparent}",
3101
+ "outerBorderGap": "{system.size.zero}",
3102
+ "outerBorderWidth": "{system.border.zero}"
3103
+ }
3104
+ },
3105
+ {
3106
+ "if": {
3107
+ "focus": true
3108
+ },
3109
+ "tokens": {
3110
+ "outerBorderColor": "{palette.color.chathamsBlue}",
3111
+ "outerBorderGap": "{palette.size.size5}",
3112
+ "outerBorderWidth": "{palette.border.border1}"
3113
+ }
3114
+ },
3115
+ {
3116
+ "if": {
3117
+ "checked": true,
3012
3118
  "focus": true
3013
3119
  },
3014
3120
  "tokens": {
3121
+ "inputBackgroundColor": "{palette.color.mosque}",
3122
+ "inputBorderColor": "{palette.color.white}",
3123
+ "inputOutlineColor": "{palette.color.mosque}",
3124
+ "outerBorderColor": "{palette.color.chathamsBlue}",
3125
+ "outerBorderGap": "{palette.size.size5}",
3126
+ "outerBorderWidth": "{palette.border.border1}"
3127
+ }
3128
+ },
3129
+ {
3130
+ "if": {
3131
+ "hover": true
3132
+ },
3133
+ "tokens": {
3134
+ "outerBorderColor": "{palette.color.chathamsBlue}",
3135
+ "outerBorderGap": "{palette.size.size5}",
3136
+ "outerBorderWidth": "{palette.border.border1}"
3137
+ }
3138
+ },
3139
+ {
3140
+ "if": {
3141
+ "checked": true,
3142
+ "hover": true
3143
+ },
3144
+ "tokens": {
3145
+ "inputBackgroundColor": "{palette.color.mosque}",
3146
+ "inputBorderColor": "{palette.color.white}",
3147
+ "inputOutlineColor": "{palette.color.mosque}",
3148
+ "outerBorderColor": "{palette.color.chathamsBlue}",
3149
+ "outerBorderGap": "{palette.size.size5}",
3150
+ "outerBorderWidth": "{palette.border.border1}"
3151
+ }
3152
+ },
3153
+ {
3154
+ "if": {
3155
+ "checked": true
3156
+ },
3157
+ "tokens": {
3158
+ "inputBackgroundColor": "{palette.color.mosque}",
3159
+ "inputOutlineColor": "{palette.color.mosque}"
3160
+ }
3161
+ },
3162
+ {
3163
+ "if": {
3164
+ "inactive": true
3165
+ },
3166
+ "tokens": {
3167
+ "inputBackgroundColor": "{palette.color.silver}",
3168
+ "inputBorderColor": "{palette.color.silver}",
3015
3169
  "inputOutlineColor": "{palette.color.silver}",
3016
- "inputOutlineWidth": "{palette.border.border2}"
3170
+ "labelColor": "{palette.color.dove}"
3171
+ }
3172
+ },
3173
+ {
3174
+ "if": {
3175
+ "checked": true,
3176
+ "inactive": true
3177
+ },
3178
+ "tokens": {
3179
+ "checkedBackgroundColor": "{palette.color.silver}",
3180
+ "inputBackgroundColor": "{palette.color.silver}",
3181
+ "inputBorderColor": "{palette.color.white}",
3182
+ "inputBorderWidth": "{palette.border.border3}",
3183
+ "inputOutlineColor": "{palette.color.silver}",
3184
+ "inputOutlineWidth": "{palette.border.border1}",
3185
+ "labelColor": "{palette.color.dove}"
3017
3186
  }
3018
3187
  }
3019
3188
  ],
3020
3189
  "tokens": {
3021
3190
  "checkedBackgroundColor": "{palette.color.mosque}",
3022
- "checkedSize": "{palette.size.size12}",
3191
+ "checkedSize": "{palette.size.size16}",
3023
3192
  "containerBackgroundColor": "{palette.color.transparent}",
3024
3193
  "containerBorderRadius": "{palette.radius.none}",
3025
3194
  "containerOpacity": "{system.opacity.opaque}",
@@ -3032,10 +3201,10 @@
3032
3201
  "descriptionLineHeight": "{palette.lineHeight.multiply140}",
3033
3202
  "descriptionMarginLeft": "{system.size.none}",
3034
3203
  "inputBackgroundColor": "{palette.color.white}",
3035
- "inputBorderColor": "{palette.color.mosque}",
3204
+ "inputBorderColor": "{palette.color.white}",
3036
3205
  "inputBorderWidth": "{palette.border.border2}",
3037
- "inputOutlineColor": "{palette.color.transparent}",
3038
- "inputOutlineWidth": "{palette.border.none}",
3206
+ "inputOutlineColor": "{palette.color.mosque}",
3207
+ "inputOutlineWidth": "{palette.border.border2}",
3039
3208
  "inputSize": "{palette.size.size20}",
3040
3209
  "labelColor": "{palette.color.black}",
3041
3210
  "labelFontName": "{palette.fontName.StagSans}",
@@ -3193,6 +3362,37 @@
3193
3362
  "space": "{system.integer.2}"
3194
3363
  }
3195
3364
  },
3365
+ "Ribbon": {
3366
+ "appearances": {
3367
+ "purpose": {
3368
+ "type": "variant",
3369
+ "values": ["offer", "default", "editorial"]
3370
+ }
3371
+ },
3372
+ "rules": [],
3373
+ "tokens": {
3374
+ "backgroundColor": "{palette.color.black}",
3375
+ "borderRadius": "{palette.size.size4}",
3376
+ "boxShadowColor": "{palette.color.black}",
3377
+ "boxShadowPaddingBottom": "{palette.size.size2}",
3378
+ "boxShadowPaddingLeft": "{palette.size.size2}",
3379
+ "boxShadowPaddingRight": "{palette.size.size2}",
3380
+ "boxShadowPaddingTop": "{palette.size.size2}",
3381
+ "curveAfterBackgroundColor": "{palette.color.black}",
3382
+ "curveAfterHeight": "{palette.size.size4}",
3383
+ "curveAfterRadius": "{palette.size.size8}",
3384
+ "curveAfterWidth": "{palette.size.size8}",
3385
+ "curveBackgroundColor": "{palette.color.black}",
3386
+ "curveHeight": "{palette.size.size10}",
3387
+ "curveMarginTop": "{palette.size.size4}",
3388
+ "curveWidth": "{palette.size.size8}",
3389
+ "gradient": "{system.gradient.none}",
3390
+ "paddingBottom": "{palette.size.size4}",
3391
+ "paddingLeft": "{palette.size.size8}",
3392
+ "paddingRight": "{palette.size.size8}",
3393
+ "paddingTop": "{palette.size.size4}"
3394
+ }
3395
+ },
3196
3396
  "Search": {
3197
3397
  "appearances": {
3198
3398
  "focus": "{appearances.Search.focus}",