@workday/canvas-kit-docs 10.0.0-alpha.446-next.0 → 10.0.0-alpha.447-next.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.
@@ -21276,7 +21276,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
21276
21276
  "tags": {},
21277
21277
  "type": {
21278
21278
  "kind": "number",
21279
- "value": 1
21279
+ "value": 0.0625
21280
21280
  }
21281
21281
  },
21282
21282
  {
@@ -21291,8 +21291,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
21291
21291
  ],
21292
21292
  "tags": {},
21293
21293
  "type": {
21294
- "kind": "number",
21295
- "value": 280
21294
+ "kind": "primitive",
21295
+ "value": "string"
21296
21296
  }
21297
21297
  },
21298
21298
  {
@@ -54040,19 +54040,19 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
54040
54040
  },
54041
54041
  {
54042
54042
  "kind": "string",
54043
- "value": "40px"
54043
+ "value": "2.5rem"
54044
54044
  },
54045
54045
  {
54046
54046
  "kind": "string",
54047
- "value": "80px"
54047
+ "value": "5rem"
54048
54048
  },
54049
54049
  {
54050
54050
  "kind": "string",
54051
- "value": "32px"
54051
+ "value": "2rem"
54052
54052
  },
54053
54053
  {
54054
54054
  "kind": "string",
54055
- "value": "24px"
54055
+ "value": "1.5rem"
54056
54056
  }
54057
54057
  ]
54058
54058
  }
@@ -228588,7 +228588,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228588
228588
  "required": true,
228589
228589
  "type": {
228590
228590
  "kind": "string",
228591
- "value": "0px 1px 4px rgba(31, 38, 46, 0.12), 0px 2px 8px rgba(31, 38, 46, 0.08)"
228591
+ "value": "0 0.0625rem 0.25rem rgba(31, 38, 46, 0.12), 0 0.125rem 0.5rem rgba(31, 38, 46, 0.08)"
228592
228592
  },
228593
228593
  "description": "",
228594
228594
  "declarations": [
@@ -228625,7 +228625,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228625
228625
  "required": true,
228626
228626
  "type": {
228627
228627
  "kind": "string",
228628
- "value": "0px 2px 8px rgba(31, 38, 46, 0.12), 0px 4px 16px rgba(31, 38, 46, 0.08)"
228628
+ "value": "0 0.125rem 0.5rem rgba(31, 38, 46, 0.12), 0 0.25rem 1rem rgba(31, 38, 46, 0.08)"
228629
228629
  },
228630
228630
  "description": "",
228631
228631
  "declarations": [
@@ -228662,7 +228662,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228662
228662
  "required": true,
228663
228663
  "type": {
228664
228664
  "kind": "string",
228665
- "value": "0px 3px 12px rgba(31, 38, 46, 0.12), 0px 6px 24px rgba(31, 38, 46, 0.08)"
228665
+ "value": "0 0.1875rem 0.75rem rgba(31, 38, 46, 0.12), 0 0.375rem 1.5rem rgba(31, 38, 46, 0.08)"
228666
228666
  },
228667
228667
  "description": "",
228668
228668
  "declarations": [
@@ -228699,7 +228699,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228699
228699
  "required": true,
228700
228700
  "type": {
228701
228701
  "kind": "string",
228702
- "value": "0px 4px 16px rgba(31, 38, 46, 0.12), 0px 8px 32px rgba(31, 38, 46, 0.08)"
228702
+ "value": "0 0.25rem 1rem rgba(31, 38, 46, 0.12), 0 0.5rem 2rem rgba(31, 38, 46, 0.08)"
228703
228703
  },
228704
228704
  "description": "",
228705
228705
  "declarations": [
@@ -228736,7 +228736,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228736
228736
  "required": true,
228737
228737
  "type": {
228738
228738
  "kind": "string",
228739
- "value": "0px 5px 20px rgba(31, 38, 46, 0.12), 0px 10px 40px rgba(31, 38, 46, 0.08)"
228739
+ "value": "0 0.3125rem 1.25rem rgba(31, 38, 46, 0.12), 0 0.625rem 2.5rem rgba(31, 38, 46, 0.08)"
228740
228740
  },
228741
228741
  "description": "",
228742
228742
  "declarations": [
@@ -228773,7 +228773,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228773
228773
  "required": true,
228774
228774
  "type": {
228775
228775
  "kind": "string",
228776
- "value": "0px 6px 24px rgba(31, 38, 46, 0.12), 0px 12px 48px rgba(31, 38, 46, 0.08)"
228776
+ "value": "0 0.375rem 1.5rem rgba(31, 38, 46, 0.12), 0 0.75rem 3rem rgba(31, 38, 46, 0.08)"
228777
228777
  },
228778
228778
  "description": "",
228779
228779
  "declarations": [
@@ -228848,7 +228848,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228848
228848
  "required": true,
228849
228849
  "type": {
228850
228850
  "kind": "string",
228851
- "value": "0px 1px 4px rgba(31, 38, 46, 0.12), 0px 2px 8px rgba(31, 38, 46, 0.08)"
228851
+ "value": "0 0.0625rem 0.25rem rgba(31, 38, 46, 0.12), 0 0.125rem 0.5rem rgba(31, 38, 46, 0.08)"
228852
228852
  },
228853
228853
  "description": "",
228854
228854
  "declarations": [
@@ -228870,7 +228870,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228870
228870
  "required": true,
228871
228871
  "type": {
228872
228872
  "kind": "string",
228873
- "value": "0px 2px 8px rgba(31, 38, 46, 0.12), 0px 4px 16px rgba(31, 38, 46, 0.08)"
228873
+ "value": "0 0.125rem 0.5rem rgba(31, 38, 46, 0.12), 0 0.25rem 1rem rgba(31, 38, 46, 0.08)"
228874
228874
  },
228875
228875
  "description": "",
228876
228876
  "declarations": [
@@ -228892,7 +228892,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228892
228892
  "required": true,
228893
228893
  "type": {
228894
228894
  "kind": "string",
228895
- "value": "0px 3px 12px rgba(31, 38, 46, 0.12), 0px 6px 24px rgba(31, 38, 46, 0.08)"
228895
+ "value": "0 0.1875rem 0.75rem rgba(31, 38, 46, 0.12), 0 0.375rem 1.5rem rgba(31, 38, 46, 0.08)"
228896
228896
  },
228897
228897
  "description": "",
228898
228898
  "declarations": [
@@ -228914,7 +228914,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228914
228914
  "required": true,
228915
228915
  "type": {
228916
228916
  "kind": "string",
228917
- "value": "0px 4px 16px rgba(31, 38, 46, 0.12), 0px 8px 32px rgba(31, 38, 46, 0.08)"
228917
+ "value": "0 0.25rem 1rem rgba(31, 38, 46, 0.12), 0 0.5rem 2rem rgba(31, 38, 46, 0.08)"
228918
228918
  },
228919
228919
  "description": "",
228920
228920
  "declarations": [
@@ -228936,7 +228936,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228936
228936
  "required": true,
228937
228937
  "type": {
228938
228938
  "kind": "string",
228939
- "value": "0px 5px 20px rgba(31, 38, 46, 0.12), 0px 10px 40px rgba(31, 38, 46, 0.08)"
228939
+ "value": "0 0.3125rem 1.25rem rgba(31, 38, 46, 0.12), 0 0.625rem 2.5rem rgba(31, 38, 46, 0.08)"
228940
228940
  },
228941
228941
  "description": "",
228942
228942
  "declarations": [
@@ -228958,7 +228958,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
228958
228958
  "required": true,
228959
228959
  "type": {
228960
228960
  "kind": "string",
228961
- "value": "0px 6px 24px rgba(31, 38, 46, 0.12), 0px 12px 48px rgba(31, 38, 46, 0.08)"
228961
+ "value": "0 0.375rem 1.5rem rgba(31, 38, 46, 0.12), 0 0.75rem 3rem rgba(31, 38, 46, 0.08)"
228962
228962
  },
228963
228963
  "description": "",
228964
228964
  "declarations": [
@@ -229140,23 +229140,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229140
229140
  "value": [
229141
229141
  {
229142
229142
  "kind": "string",
229143
- "value": "8px"
229143
+ "value": "4px"
229144
229144
  },
229145
229145
  {
229146
229146
  "kind": "string",
229147
- "value": "0px"
229147
+ "value": "999px"
229148
229148
  },
229149
229149
  {
229150
229150
  "kind": "string",
229151
- "value": "4px"
229151
+ "value": "2px"
229152
229152
  },
229153
229153
  {
229154
229154
  "kind": "string",
229155
- "value": "999px"
229155
+ "value": "0px"
229156
229156
  },
229157
229157
  {
229158
229158
  "kind": "string",
229159
- "value": "2px"
229159
+ "value": "8px"
229160
229160
  }
229161
229161
  ]
229162
229162
  }
@@ -229182,7 +229182,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229182
229182
  {
229183
229183
  "name": "CanvasSpace",
229184
229184
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229185
- "description": "Type for the `space` object with keys and px values (strings)",
229185
+ "description": "Type for the `space` object with keys and rem values (strings)",
229186
229186
  "declarations": [
229187
229187
  {
229188
229188
  "name": "CanvasSpace",
@@ -229199,7 +229199,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229199
229199
  "required": true,
229200
229200
  "type": {
229201
229201
  "kind": "string",
229202
- "value": "0px"
229202
+ "value": "0"
229203
229203
  },
229204
229204
  "description": "",
229205
229205
  "declarations": [
@@ -229216,7 +229216,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229216
229216
  "required": true,
229217
229217
  "type": {
229218
229218
  "kind": "string",
229219
- "value": "4px"
229219
+ "value": "0.25rem"
229220
229220
  },
229221
229221
  "description": "",
229222
229222
  "declarations": [
@@ -229233,7 +229233,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229233
229233
  "required": true,
229234
229234
  "type": {
229235
229235
  "kind": "string",
229236
- "value": "8px"
229236
+ "value": "0.5rem"
229237
229237
  },
229238
229238
  "description": "",
229239
229239
  "declarations": [
@@ -229250,7 +229250,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229250
229250
  "required": true,
229251
229251
  "type": {
229252
229252
  "kind": "string",
229253
- "value": "12px"
229253
+ "value": "0.75rem"
229254
229254
  },
229255
229255
  "description": "",
229256
229256
  "declarations": [
@@ -229267,7 +229267,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229267
229267
  "required": true,
229268
229268
  "type": {
229269
229269
  "kind": "string",
229270
- "value": "16px"
229270
+ "value": "1rem"
229271
229271
  },
229272
229272
  "description": "",
229273
229273
  "declarations": [
@@ -229284,7 +229284,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229284
229284
  "required": true,
229285
229285
  "type": {
229286
229286
  "kind": "string",
229287
- "value": "24px"
229287
+ "value": "1.5rem"
229288
229288
  },
229289
229289
  "description": "",
229290
229290
  "declarations": [
@@ -229301,7 +229301,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229301
229301
  "required": true,
229302
229302
  "type": {
229303
229303
  "kind": "string",
229304
- "value": "32px"
229304
+ "value": "2rem"
229305
229305
  },
229306
229306
  "description": "",
229307
229307
  "declarations": [
@@ -229318,7 +229318,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229318
229318
  "required": true,
229319
229319
  "type": {
229320
229320
  "kind": "string",
229321
- "value": "40px"
229321
+ "value": "2.5rem"
229322
229322
  },
229323
229323
  "description": "",
229324
229324
  "declarations": [
@@ -229335,7 +229335,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229335
229335
  "required": true,
229336
229336
  "type": {
229337
229337
  "kind": "string",
229338
- "value": "64px"
229338
+ "value": "4rem"
229339
229339
  },
229340
229340
  "description": "",
229341
229341
  "declarations": [
@@ -229352,7 +229352,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229352
229352
  "required": true,
229353
229353
  "type": {
229354
229354
  "kind": "string",
229355
- "value": "80px"
229355
+ "value": "5rem"
229356
229356
  },
229357
229357
  "description": "",
229358
229358
  "declarations": [
@@ -229394,7 +229394,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229394
229394
  {
229395
229395
  "name": "CanvasSpaceValues",
229396
229396
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229397
- "description": "The px values for CanvasSpace (strings)",
229397
+ "description": "The rem values for CanvasSpace (strings)",
229398
229398
  "declarations": [
229399
229399
  {
229400
229400
  "name": "CanvasSpaceValues",
@@ -229410,43 +229410,43 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229410
229410
  "value": [
229411
229411
  {
229412
229412
  "kind": "string",
229413
- "value": "40px"
229413
+ "value": "2.5rem"
229414
229414
  },
229415
229415
  {
229416
229416
  "kind": "string",
229417
- "value": "80px"
229417
+ "value": "5rem"
229418
229418
  },
229419
229419
  {
229420
229420
  "kind": "string",
229421
- "value": "32px"
229421
+ "value": "2rem"
229422
229422
  },
229423
229423
  {
229424
229424
  "kind": "string",
229425
- "value": "24px"
229425
+ "value": "1.5rem"
229426
229426
  },
229427
229427
  {
229428
229428
  "kind": "string",
229429
- "value": "16px"
229429
+ "value": "1rem"
229430
229430
  },
229431
229431
  {
229432
229432
  "kind": "string",
229433
- "value": "12px"
229433
+ "value": "0.75rem"
229434
229434
  },
229435
229435
  {
229436
229436
  "kind": "string",
229437
- "value": "8px"
229437
+ "value": "0.5rem"
229438
229438
  },
229439
229439
  {
229440
229440
  "kind": "string",
229441
- "value": "0px"
229441
+ "value": "0"
229442
229442
  },
229443
229443
  {
229444
229444
  "kind": "string",
229445
- "value": "4px"
229445
+ "value": "0.25rem"
229446
229446
  },
229447
229447
  {
229448
229448
  "kind": "string",
229449
- "value": "64px"
229449
+ "value": "4rem"
229450
229450
  }
229451
229451
  ]
229452
229452
  }
@@ -229455,7 +229455,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229455
229455
  {
229456
229456
  "name": "space",
229457
229457
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229458
- "description": "An object of space keys and px values (strings)",
229458
+ "description": "An object of space keys and rem values (strings)\n\nBelow is a table to show the equivalent values from `px` to `rem`.\nThis is based on the default browser font size which is `16px`.\n\n| px Value | rem Value | space token |\n| --------- | --------- | ----------- |\n| 0 | 0 | zero |\n| 4px | 0.25rem | xxxs |\n| 8px | 0.5rem | xxs |\n| 12px | 0.75rem | xs |\n| 16px | 1rem | s |\n| 24px | 1.5rem | m |\n| 32px | 2rem | l |\n| 40px | 2.5rem | xl |\n| 64px | 4rem | xxl |\n| 80px | 5rem | xxxl |",
229459
229459
  "declarations": [
229460
229460
  {
229461
229461
  "name": "space",
@@ -229472,7 +229472,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229472
229472
  {
229473
229473
  "name": "CanvasSpaceNumbers",
229474
229474
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229475
- "description": "Type for the `spaceNumbers` object with keys and numeric px values (numbers)",
229475
+ "description": "Type for the `spaceNumbers` object with keys and numeric rem values (numbers)",
229476
229476
  "declarations": [
229477
229477
  {
229478
229478
  "name": "CanvasSpaceNumbers",
@@ -229506,7 +229506,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229506
229506
  "required": true,
229507
229507
  "type": {
229508
229508
  "kind": "number",
229509
- "value": 4
229509
+ "value": 0.25
229510
229510
  },
229511
229511
  "description": "",
229512
229512
  "declarations": [
@@ -229523,7 +229523,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229523
229523
  "required": true,
229524
229524
  "type": {
229525
229525
  "kind": "number",
229526
- "value": 8
229526
+ "value": 0.5
229527
229527
  },
229528
229528
  "description": "",
229529
229529
  "declarations": [
@@ -229540,7 +229540,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229540
229540
  "required": true,
229541
229541
  "type": {
229542
229542
  "kind": "number",
229543
- "value": 12
229543
+ "value": 0.75
229544
229544
  },
229545
229545
  "description": "",
229546
229546
  "declarations": [
@@ -229557,7 +229557,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229557
229557
  "required": true,
229558
229558
  "type": {
229559
229559
  "kind": "number",
229560
- "value": 16
229560
+ "value": 1
229561
229561
  },
229562
229562
  "description": "",
229563
229563
  "declarations": [
@@ -229574,7 +229574,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229574
229574
  "required": true,
229575
229575
  "type": {
229576
229576
  "kind": "number",
229577
- "value": 24
229577
+ "value": 1.5
229578
229578
  },
229579
229579
  "description": "",
229580
229580
  "declarations": [
@@ -229591,7 +229591,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229591
229591
  "required": true,
229592
229592
  "type": {
229593
229593
  "kind": "number",
229594
- "value": 32
229594
+ "value": 2
229595
229595
  },
229596
229596
  "description": "",
229597
229597
  "declarations": [
@@ -229608,7 +229608,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229608
229608
  "required": true,
229609
229609
  "type": {
229610
229610
  "kind": "number",
229611
- "value": 40
229611
+ "value": 2.5
229612
229612
  },
229613
229613
  "description": "",
229614
229614
  "declarations": [
@@ -229625,7 +229625,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229625
229625
  "required": true,
229626
229626
  "type": {
229627
229627
  "kind": "number",
229628
- "value": 64
229628
+ "value": 4
229629
229629
  },
229630
229630
  "description": "",
229631
229631
  "declarations": [
@@ -229642,7 +229642,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229642
229642
  "required": true,
229643
229643
  "type": {
229644
229644
  "kind": "number",
229645
- "value": 80
229645
+ "value": 5
229646
229646
  },
229647
229647
  "description": "",
229648
229648
  "declarations": [
@@ -229659,7 +229659,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229659
229659
  {
229660
229660
  "name": "CanvasSpaceNumberValues",
229661
229661
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229662
- "description": "The numeric px values for CanvasSpaceNumbers (numbers)",
229662
+ "description": "The numeric rem values for CanvasSpaceNumbers (numbers)",
229663
229663
  "declarations": [
229664
229664
  {
229665
229665
  "name": "CanvasSpaceNumberValues",
@@ -229679,39 +229679,39 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229679
229679
  },
229680
229680
  {
229681
229681
  "kind": "number",
229682
- "value": 4
229682
+ "value": 1
229683
229683
  },
229684
229684
  {
229685
229685
  "kind": "number",
229686
- "value": 12
229686
+ "value": 2
229687
229687
  },
229688
229688
  {
229689
229689
  "kind": "number",
229690
- "value": 16
229690
+ "value": 4
229691
229691
  },
229692
229692
  {
229693
229693
  "kind": "number",
229694
- "value": 24
229694
+ "value": 5
229695
229695
  },
229696
229696
  {
229697
229697
  "kind": "number",
229698
- "value": 32
229698
+ "value": 0.5
229699
229699
  },
229700
229700
  {
229701
229701
  "kind": "number",
229702
- "value": 40
229702
+ "value": 1.5
229703
229703
  },
229704
229704
  {
229705
229705
  "kind": "number",
229706
- "value": 8
229706
+ "value": 0.25
229707
229707
  },
229708
229708
  {
229709
229709
  "kind": "number",
229710
- "value": 64
229710
+ "value": 0.75
229711
229711
  },
229712
229712
  {
229713
229713
  "kind": "number",
229714
- "value": 80
229714
+ "value": 2.5
229715
229715
  }
229716
229716
  ]
229717
229717
  }
@@ -229720,7 +229720,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229720
229720
  {
229721
229721
  "name": "spaceNumbers",
229722
229722
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tokens/lib/space.ts",
229723
- "description": "An object of space keys and their numeric px values (numbers)\n- These are helpful when you need a raw numeric px value.\n- Here's an example usage to perform calculations:",
229723
+ "description": "An object of space keys and their numeric rem values (numbers)\n- These are helpful when you need a raw numeric rem value.\n- Here's an example usage to perform calculations:",
229724
229724
  "declarations": [
229725
229725
  {
229726
229726
  "name": "spaceNumbers",
@@ -229728,7 +229728,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
229728
229728
  }
229729
229729
  ],
229730
229730
  "tags": {
229731
- "example": "const buttonPaddingLeft = spaceNumbers.s + iconSize;"
229731
+ "example": "```tsx\nconst buttonPaddingLeft = `${spaceNumbers.s + iconSize}rem`;\n```\n\nBelow is a table to show the equivalent values from `px` to `rem`.\nThis is based on the default browser font size which is `16px`.\n\n| px Value | rem Value | space token |\n| --------- | --------- | ----------- |\n| 0 | 0 | zero |\n| 4px | 0.25rem | xxxs |\n| 8px | 0.5rem | xxs |\n| 12px | 0.75rem | xs |\n| 16px | 1rem | s |\n| 24px | 1.5rem | m |\n| 32px | 2rem | l |\n| 40px | 2.5rem | xl |\n| 64px | 4rem | xxl |\n| 80px | 5rem | xxxl |"
229732
229732
  },
229733
229733
  "type": {
229734
229734
  "kind": "symbol",
@@ -230108,43 +230108,43 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
230108
230108
  "value": [
230109
230109
  {
230110
230110
  "kind": "string",
230111
- "value": "0.875rem"
230111
+ "value": "2.5rem"
230112
230112
  },
230113
230113
  {
230114
230114
  "kind": "string",
230115
- "value": "1.25rem"
230115
+ "value": "2rem"
230116
230116
  },
230117
230117
  {
230118
230118
  "kind": "string",
230119
- "value": "0.625rem"
230119
+ "value": "1.5rem"
230120
230120
  },
230121
230121
  {
230122
230122
  "kind": "string",
230123
- "value": "0.75rem"
230123
+ "value": "1rem"
230124
230124
  },
230125
230125
  {
230126
230126
  "kind": "string",
230127
- "value": "1rem"
230127
+ "value": "0.75rem"
230128
230128
  },
230129
230129
  {
230130
230130
  "kind": "string",
230131
- "value": "1.125rem"
230131
+ "value": "0.875rem"
230132
230132
  },
230133
230133
  {
230134
230134
  "kind": "string",
230135
- "value": "1.5rem"
230135
+ "value": "1.25rem"
230136
230136
  },
230137
230137
  {
230138
230138
  "kind": "string",
230139
- "value": "1.75rem"
230139
+ "value": "0.625rem"
230140
230140
  },
230141
230141
  {
230142
230142
  "kind": "string",
230143
- "value": "2rem"
230143
+ "value": "1.125rem"
230144
230144
  },
230145
230145
  {
230146
230146
  "kind": "string",
230147
- "value": "2.5rem"
230147
+ "value": "1.75rem"
230148
230148
  },
230149
230149
  {
230150
230150
  "kind": "string",
@@ -5,6 +5,8 @@ This guide contains an overview of the changes in Canvas Kit v10. Please
5
5
  any questions.
6
6
 
7
7
  - [Codemod](#codemod)
8
+ - [Token Updates](#token-updates)
9
+ - [Space and Depth](#space-and-depth)
8
10
 
9
11
  ## Codemod
10
12
 
@@ -35,4 +37,50 @@ handled by the codemod are marked with 🤖 in the Upgrade Guide.**
35
37
 
36
38
  **Please verify all changes made by the codemod.** As a safety precaution, we recommend committing
37
39
  the changes from the codemod as a single isolated commit (separate from other changes) so you can
38
- roll back more easily if necessary.
40
+ roll back more easily if necessary.
41
+
42
+ ## Token Updates
43
+
44
+ ### Space and Depth
45
+
46
+ **PR:** [#2229](https://github.com/Workday/canvas-kit/pull/2229)
47
+
48
+ In v10, we have updated our `space` and `depth` token values from `px` to `rem`. This is based on
49
+ the default browser font size which is `16px`.
50
+
51
+ These updates just mean that we have moved the values from `px` to `rem`. The values have been
52
+ updated on a 1:1 basis. None of the base value have changed, just the unit.
53
+
54
+ Below is a table to show what each token value is, what is corresponds too and what the new `rem`
55
+ value is in `px`:
56
+
57
+ | px Value | rem Value | space Token |
58
+ | -------- | --------- | ----------- |
59
+ | 0 | 0 | zero |
60
+ | 4px | 0.25rem | xxxs |
61
+ | 8px | 0.5rem | xxs |
62
+ | 12px | 0.75rem | xs |
63
+ | 16px | 1rem | s |
64
+ | 24px | 1.5rem | m |
65
+ | 32px | 2rem | l |
66
+ | 40px | 2.5rem | xl |
67
+ | 64px | 4rem | xxl |
68
+ | 80px | 5rem | xxxl |
69
+
70
+ You can convert a `px` value to a `rem` value by dividing your `px` value by `16`(if your default
71
+ browser font size hasn't been updated, the value will be `16`).
72
+
73
+ For example:
74
+
75
+ | Equation | rem Value |
76
+ | ----------- | --------- |
77
+ | `16px/16px` | `1rem` |
78
+ | `32px/16px` | `2rem` |
79
+ | `8px/16px` | `0.5rem` |
80
+
81
+ #### Why Did We Make This Change?
82
+
83
+ We wanted to move away from absolute units in tokens to relative units for better accessibility and
84
+ adaptability to different viewport/screen sizes. If a user changes their default browser font size,
85
+ these sizes should change along with it. Since `px` are a fixed unit and do not scale, utilizing
86
+ `rem` will allow these tokens to scale with a new default font size.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "10.0.0-alpha.446-next.0",
3
+ "version": "10.0.0-alpha.447-next.0",
4
4
  "description": "Documentation components of Canvas Kit components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^10.0.0-alpha.446-next.0",
48
- "@workday/canvas-kit-preview-react": "^10.0.0-alpha.446-next.0",
49
- "@workday/canvas-kit-react": "^10.0.0-alpha.446-next.0",
47
+ "@workday/canvas-kit-labs-react": "^10.0.0-alpha.447-next.0",
48
+ "@workday/canvas-kit-preview-react": "^10.0.0-alpha.447-next.0",
49
+ "@workday/canvas-kit-react": "^10.0.0-alpha.447-next.0",
50
50
  "@workday/canvas-system-icons-web": "^3.0.0",
51
51
  "markdown-to-jsx": "^6.10.3",
52
52
  "ts-node": "^10.9.1"
@@ -57,5 +57,5 @@
57
57
  "mkdirp": "^1.0.3",
58
58
  "typescript": "4.2"
59
59
  },
60
- "gitHead": "7202c6904b61f4ef6d4a221276faa1e13062c8e3"
60
+ "gitHead": "7fc0c577c5f944eabe967840a78fc77f781833ce"
61
61
  }