@workday/canvas-kit-docs 10.1.3 → 10.2.0-628-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.
@@ -248471,6 +248471,359 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248471
248471
  }
248472
248472
  }
248473
248473
  },
248474
+ {
248475
+ "name": "calc",
248476
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts",
248477
+ "description": "",
248478
+ "declarations": [
248479
+ {
248480
+ "name": "calc",
248481
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248482
+ }
248483
+ ],
248484
+ "tags": {},
248485
+ "type": {
248486
+ "kind": "object",
248487
+ "properties": [
248488
+ {
248489
+ "kind": "property",
248490
+ "name": "add",
248491
+ "type": {
248492
+ "kind": "function",
248493
+ "parameters": [
248494
+ {
248495
+ "kind": "parameter",
248496
+ "name": "augend",
248497
+ "type": {
248498
+ "kind": "primitive",
248499
+ "value": "string"
248500
+ },
248501
+ "required": true,
248502
+ "rest": false,
248503
+ "description": "The base value. E.g. '1rem' or '--cnvs-sys-space-x4'",
248504
+ "declarations": [
248505
+ {
248506
+ "name": "augend",
248507
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248508
+ }
248509
+ ],
248510
+ "tags": {
248511
+ "param": "augend The base value. E.g. '1rem' or '--cnvs-sys-space-x4'"
248512
+ }
248513
+ },
248514
+ {
248515
+ "kind": "parameter",
248516
+ "name": "addend",
248517
+ "type": {
248518
+ "kind": "primitive",
248519
+ "value": "string"
248520
+ },
248521
+ "required": true,
248522
+ "rest": false,
248523
+ "description": "The value being added to the base. E.g. '1rem' or '--cnvs-sys-space-x4'",
248524
+ "declarations": [
248525
+ {
248526
+ "name": "addend",
248527
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248528
+ }
248529
+ ],
248530
+ "tags": {
248531
+ "param": "addend The value being added to the base. E.g. '1rem' or '--cnvs-sys-space-x4'"
248532
+ }
248533
+ }
248534
+ ],
248535
+ "members": [],
248536
+ "returnType": {
248537
+ "kind": "primitive",
248538
+ "value": "string"
248539
+ }
248540
+ },
248541
+ "description": "",
248542
+ "declarations": [
248543
+ {
248544
+ "name": "add",
248545
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248546
+ }
248547
+ ],
248548
+ "tags": {}
248549
+ },
248550
+ {
248551
+ "kind": "property",
248552
+ "name": "divide",
248553
+ "type": {
248554
+ "kind": "function",
248555
+ "parameters": [
248556
+ {
248557
+ "kind": "parameter",
248558
+ "name": "dividend",
248559
+ "type": {
248560
+ "kind": "primitive",
248561
+ "value": "string"
248562
+ },
248563
+ "required": true,
248564
+ "rest": false,
248565
+ "description": "The base value being divided. E.g. '1rem' or '--cnvs-sys-space-x1'",
248566
+ "declarations": [
248567
+ {
248568
+ "name": "dividend",
248569
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248570
+ }
248571
+ ],
248572
+ "tags": {
248573
+ "param": "dividend The base value being divided. E.g. '1rem' or '--cnvs-sys-space-x1'"
248574
+ }
248575
+ },
248576
+ {
248577
+ "kind": "parameter",
248578
+ "name": "divisor",
248579
+ "defaultValue": {
248580
+ "kind": "number",
248581
+ "value": 1
248582
+ },
248583
+ "type": {
248584
+ "kind": "union",
248585
+ "value": [
248586
+ {
248587
+ "kind": "primitive",
248588
+ "value": "string"
248589
+ },
248590
+ {
248591
+ "kind": "primitive",
248592
+ "value": "number"
248593
+ }
248594
+ ]
248595
+ },
248596
+ "required": false,
248597
+ "rest": false,
248598
+ "description": "The divisor of the base value. E.g. 2 or '--cnvs-sys-space-x1'",
248599
+ "declarations": [
248600
+ {
248601
+ "name": "divisor",
248602
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248603
+ }
248604
+ ],
248605
+ "tags": {
248606
+ "param": "divisor The divisor of the base value. E.g. 2 or '--cnvs-sys-space-x1'"
248607
+ }
248608
+ }
248609
+ ],
248610
+ "members": [],
248611
+ "returnType": {
248612
+ "kind": "primitive",
248613
+ "value": "string"
248614
+ }
248615
+ },
248616
+ "description": "",
248617
+ "declarations": [
248618
+ {
248619
+ "name": "divide",
248620
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248621
+ }
248622
+ ],
248623
+ "tags": {}
248624
+ },
248625
+ {
248626
+ "kind": "property",
248627
+ "name": "multiply",
248628
+ "type": {
248629
+ "kind": "function",
248630
+ "parameters": [
248631
+ {
248632
+ "kind": "parameter",
248633
+ "name": "multiplicand",
248634
+ "type": {
248635
+ "kind": "primitive",
248636
+ "value": "string"
248637
+ },
248638
+ "required": true,
248639
+ "rest": false,
248640
+ "description": "The base value being multiplied. E.g. '1rem' or '--cnvs-sys-space-x1'",
248641
+ "declarations": [
248642
+ {
248643
+ "name": "multiplicand",
248644
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248645
+ }
248646
+ ],
248647
+ "tags": {
248648
+ "param": "multiplicand The base value being multiplied. E.g. '1rem' or '--cnvs-sys-space-x1'"
248649
+ }
248650
+ },
248651
+ {
248652
+ "kind": "parameter",
248653
+ "name": "multiplier",
248654
+ "defaultValue": {
248655
+ "kind": "number",
248656
+ "value": 1
248657
+ },
248658
+ "type": {
248659
+ "kind": "union",
248660
+ "value": [
248661
+ {
248662
+ "kind": "primitive",
248663
+ "value": "string"
248664
+ },
248665
+ {
248666
+ "kind": "primitive",
248667
+ "value": "number"
248668
+ }
248669
+ ]
248670
+ },
248671
+ "required": false,
248672
+ "rest": false,
248673
+ "description": "The value being multiplied to the base. E.g. 2 or '--cnvs-sys-space-x1'",
248674
+ "declarations": [
248675
+ {
248676
+ "name": "multiplier",
248677
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248678
+ }
248679
+ ],
248680
+ "tags": {
248681
+ "param": "multiplier The value being multiplied to the base. E.g. 2 or '--cnvs-sys-space-x1'"
248682
+ }
248683
+ }
248684
+ ],
248685
+ "members": [],
248686
+ "returnType": {
248687
+ "kind": "primitive",
248688
+ "value": "string"
248689
+ }
248690
+ },
248691
+ "description": "",
248692
+ "declarations": [
248693
+ {
248694
+ "name": "multiply",
248695
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248696
+ }
248697
+ ],
248698
+ "tags": {}
248699
+ },
248700
+ {
248701
+ "kind": "property",
248702
+ "name": "negate",
248703
+ "type": {
248704
+ "kind": "function",
248705
+ "parameters": [
248706
+ {
248707
+ "kind": "parameter",
248708
+ "name": "value",
248709
+ "type": {
248710
+ "kind": "primitive",
248711
+ "value": "string"
248712
+ },
248713
+ "required": true,
248714
+ "rest": false,
248715
+ "description": "The value being negated. E.g. '--cnvs-sys-space-x1' or '1rem'",
248716
+ "declarations": [
248717
+ {
248718
+ "name": "value",
248719
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248720
+ }
248721
+ ],
248722
+ "tags": {
248723
+ "param": "value The value being negated. E.g. '--cnvs-sys-space-x1' or '1rem'"
248724
+ }
248725
+ },
248726
+ {
248727
+ "kind": "parameter",
248728
+ "name": "fallback",
248729
+ "type": {
248730
+ "kind": "primitive",
248731
+ "value": "string"
248732
+ },
248733
+ "required": false,
248734
+ "rest": false,
248735
+ "description": "An optional fallback value for a CSS variable. E.g. '1rem'",
248736
+ "declarations": [
248737
+ {
248738
+ "name": "fallback",
248739
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248740
+ }
248741
+ ],
248742
+ "tags": {
248743
+ "param": "fallback An optional fallback value for a CSS variable. E.g. '1rem'"
248744
+ }
248745
+ }
248746
+ ],
248747
+ "members": [],
248748
+ "returnType": {
248749
+ "kind": "primitive",
248750
+ "value": "string"
248751
+ }
248752
+ },
248753
+ "description": "",
248754
+ "declarations": [
248755
+ {
248756
+ "name": "negate",
248757
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248758
+ }
248759
+ ],
248760
+ "tags": {}
248761
+ },
248762
+ {
248763
+ "kind": "property",
248764
+ "name": "subtract",
248765
+ "type": {
248766
+ "kind": "function",
248767
+ "parameters": [
248768
+ {
248769
+ "kind": "parameter",
248770
+ "name": "minuend",
248771
+ "type": {
248772
+ "kind": "primitive",
248773
+ "value": "string"
248774
+ },
248775
+ "required": true,
248776
+ "rest": false,
248777
+ "description": "The base value. E.g. '1rem' or '--cnvs-sys-space-x4'",
248778
+ "declarations": [
248779
+ {
248780
+ "name": "minuend",
248781
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248782
+ }
248783
+ ],
248784
+ "tags": {
248785
+ "param": "minuend The base value. E.g. '1rem' or '--cnvs-sys-space-x4'"
248786
+ }
248787
+ },
248788
+ {
248789
+ "kind": "parameter",
248790
+ "name": "subtrahend",
248791
+ "type": {
248792
+ "kind": "primitive",
248793
+ "value": "string"
248794
+ },
248795
+ "required": true,
248796
+ "rest": false,
248797
+ "description": "The value being subtracted from the base. E.g. '1rem' or '--cnvs-sys-space-x4'",
248798
+ "declarations": [
248799
+ {
248800
+ "name": "subtrahend",
248801
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248802
+ }
248803
+ ],
248804
+ "tags": {
248805
+ "param": "subtrahend The value being subtracted from the base. E.g. '1rem' or '--cnvs-sys-space-x4'"
248806
+ }
248807
+ }
248808
+ ],
248809
+ "members": [],
248810
+ "returnType": {
248811
+ "kind": "primitive",
248812
+ "value": "string"
248813
+ }
248814
+ },
248815
+ "description": "",
248816
+ "declarations": [
248817
+ {
248818
+ "name": "subtract",
248819
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
248820
+ }
248821
+ ],
248822
+ "tags": {}
248823
+ }
248824
+ ]
248825
+ }
248826
+ },
248474
248827
  {
248475
248828
  "name": "createStylesCache",
248476
248829
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
@@ -251018,6 +251371,70 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
251018
251371
  }
251019
251372
  }
251020
251373
  },
251374
+ {
251375
+ "name": "px2rem",
251376
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts",
251377
+ "description": "Function that converts a `px` value (number) to `rem` (string).",
251378
+ "declarations": [
251379
+ {
251380
+ "name": "px2rem",
251381
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
251382
+ }
251383
+ ],
251384
+ "tags": {
251385
+ "example": "```ts\nmargin: px2rem(2);\n// returns '0.125rem'\n```"
251386
+ },
251387
+ "type": {
251388
+ "kind": "function",
251389
+ "parameters": [
251390
+ {
251391
+ "kind": "parameter",
251392
+ "name": "px",
251393
+ "type": {
251394
+ "kind": "primitive",
251395
+ "value": "number"
251396
+ },
251397
+ "required": true,
251398
+ "rest": false,
251399
+ "description": "",
251400
+ "declarations": [
251401
+ {
251402
+ "name": "px",
251403
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
251404
+ }
251405
+ ],
251406
+ "tags": {}
251407
+ },
251408
+ {
251409
+ "kind": "parameter",
251410
+ "name": "base",
251411
+ "defaultValue": {
251412
+ "kind": "number",
251413
+ "value": 16
251414
+ },
251415
+ "type": {
251416
+ "kind": "primitive",
251417
+ "value": "number"
251418
+ },
251419
+ "required": false,
251420
+ "rest": false,
251421
+ "description": "",
251422
+ "declarations": [
251423
+ {
251424
+ "name": "base",
251425
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
251426
+ }
251427
+ ],
251428
+ "tags": {}
251429
+ }
251430
+ ],
251431
+ "members": [],
251432
+ "returnType": {
251433
+ "kind": "primitive",
251434
+ "value": "string"
251435
+ }
251436
+ }
251437
+ },
251021
251438
  {
251022
251439
  "name": "slugify",
251023
251440
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/slugify.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "10.1.3",
3
+ "version": "10.2.0-628-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,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^10.1.3",
48
- "@workday/canvas-kit-preview-react": "^10.1.3",
49
- "@workday/canvas-kit-react": "^10.1.3",
50
- "@workday/canvas-kit-styling": "^10.1.3",
47
+ "@workday/canvas-kit-labs-react": "^10.2.0-628-next.0",
48
+ "@workday/canvas-kit-preview-react": "^10.2.0-628-next.0",
49
+ "@workday/canvas-kit-react": "^10.2.0-628-next.0",
50
+ "@workday/canvas-kit-styling": "^10.2.0-628-next.0",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^1.0.0",
53
53
  "markdown-to-jsx": "^6.10.3",
@@ -59,5 +59,5 @@
59
59
  "mkdirp": "^1.0.3",
60
60
  "typescript": "4.2"
61
61
  },
62
- "gitHead": "2936b4918f4df739c86417d45700bbde98130fe9"
62
+ "gitHead": "e87d2573a126d186bd1e45e3eedef40a9e0dcc4f"
63
63
  }