@workday/canvas-kit-docs 10.1.4 → 10.2.0-630-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.
- package/dist/es6/lib/docs.js +417 -0
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -248581,6 +248581,359 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
248581
248581
|
}
|
|
248582
248582
|
}
|
|
248583
248583
|
},
|
|
248584
|
+
{
|
|
248585
|
+
"name": "calc",
|
|
248586
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts",
|
|
248587
|
+
"description": "",
|
|
248588
|
+
"declarations": [
|
|
248589
|
+
{
|
|
248590
|
+
"name": "calc",
|
|
248591
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248592
|
+
}
|
|
248593
|
+
],
|
|
248594
|
+
"tags": {},
|
|
248595
|
+
"type": {
|
|
248596
|
+
"kind": "object",
|
|
248597
|
+
"properties": [
|
|
248598
|
+
{
|
|
248599
|
+
"kind": "property",
|
|
248600
|
+
"name": "add",
|
|
248601
|
+
"type": {
|
|
248602
|
+
"kind": "function",
|
|
248603
|
+
"parameters": [
|
|
248604
|
+
{
|
|
248605
|
+
"kind": "parameter",
|
|
248606
|
+
"name": "augend",
|
|
248607
|
+
"type": {
|
|
248608
|
+
"kind": "primitive",
|
|
248609
|
+
"value": "string"
|
|
248610
|
+
},
|
|
248611
|
+
"required": true,
|
|
248612
|
+
"rest": false,
|
|
248613
|
+
"description": "The base value. E.g. '1rem' or '--cnvs-sys-space-x4'",
|
|
248614
|
+
"declarations": [
|
|
248615
|
+
{
|
|
248616
|
+
"name": "augend",
|
|
248617
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248618
|
+
}
|
|
248619
|
+
],
|
|
248620
|
+
"tags": {
|
|
248621
|
+
"param": "augend The base value. E.g. '1rem' or '--cnvs-sys-space-x4'"
|
|
248622
|
+
}
|
|
248623
|
+
},
|
|
248624
|
+
{
|
|
248625
|
+
"kind": "parameter",
|
|
248626
|
+
"name": "addend",
|
|
248627
|
+
"type": {
|
|
248628
|
+
"kind": "primitive",
|
|
248629
|
+
"value": "string"
|
|
248630
|
+
},
|
|
248631
|
+
"required": true,
|
|
248632
|
+
"rest": false,
|
|
248633
|
+
"description": "The value being added to the base. E.g. '1rem' or '--cnvs-sys-space-x4'",
|
|
248634
|
+
"declarations": [
|
|
248635
|
+
{
|
|
248636
|
+
"name": "addend",
|
|
248637
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248638
|
+
}
|
|
248639
|
+
],
|
|
248640
|
+
"tags": {
|
|
248641
|
+
"param": "addend The value being added to the base. E.g. '1rem' or '--cnvs-sys-space-x4'"
|
|
248642
|
+
}
|
|
248643
|
+
}
|
|
248644
|
+
],
|
|
248645
|
+
"members": [],
|
|
248646
|
+
"returnType": {
|
|
248647
|
+
"kind": "primitive",
|
|
248648
|
+
"value": "string"
|
|
248649
|
+
}
|
|
248650
|
+
},
|
|
248651
|
+
"description": "",
|
|
248652
|
+
"declarations": [
|
|
248653
|
+
{
|
|
248654
|
+
"name": "add",
|
|
248655
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248656
|
+
}
|
|
248657
|
+
],
|
|
248658
|
+
"tags": {}
|
|
248659
|
+
},
|
|
248660
|
+
{
|
|
248661
|
+
"kind": "property",
|
|
248662
|
+
"name": "divide",
|
|
248663
|
+
"type": {
|
|
248664
|
+
"kind": "function",
|
|
248665
|
+
"parameters": [
|
|
248666
|
+
{
|
|
248667
|
+
"kind": "parameter",
|
|
248668
|
+
"name": "dividend",
|
|
248669
|
+
"type": {
|
|
248670
|
+
"kind": "primitive",
|
|
248671
|
+
"value": "string"
|
|
248672
|
+
},
|
|
248673
|
+
"required": true,
|
|
248674
|
+
"rest": false,
|
|
248675
|
+
"description": "The base value being divided. E.g. '1rem' or '--cnvs-sys-space-x1'",
|
|
248676
|
+
"declarations": [
|
|
248677
|
+
{
|
|
248678
|
+
"name": "dividend",
|
|
248679
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248680
|
+
}
|
|
248681
|
+
],
|
|
248682
|
+
"tags": {
|
|
248683
|
+
"param": "dividend The base value being divided. E.g. '1rem' or '--cnvs-sys-space-x1'"
|
|
248684
|
+
}
|
|
248685
|
+
},
|
|
248686
|
+
{
|
|
248687
|
+
"kind": "parameter",
|
|
248688
|
+
"name": "divisor",
|
|
248689
|
+
"defaultValue": {
|
|
248690
|
+
"kind": "number",
|
|
248691
|
+
"value": 1
|
|
248692
|
+
},
|
|
248693
|
+
"type": {
|
|
248694
|
+
"kind": "union",
|
|
248695
|
+
"value": [
|
|
248696
|
+
{
|
|
248697
|
+
"kind": "primitive",
|
|
248698
|
+
"value": "string"
|
|
248699
|
+
},
|
|
248700
|
+
{
|
|
248701
|
+
"kind": "primitive",
|
|
248702
|
+
"value": "number"
|
|
248703
|
+
}
|
|
248704
|
+
]
|
|
248705
|
+
},
|
|
248706
|
+
"required": false,
|
|
248707
|
+
"rest": false,
|
|
248708
|
+
"description": "The divisor of the base value. E.g. 2 or '--cnvs-sys-space-x1'",
|
|
248709
|
+
"declarations": [
|
|
248710
|
+
{
|
|
248711
|
+
"name": "divisor",
|
|
248712
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248713
|
+
}
|
|
248714
|
+
],
|
|
248715
|
+
"tags": {
|
|
248716
|
+
"param": "divisor The divisor of the base value. E.g. 2 or '--cnvs-sys-space-x1'"
|
|
248717
|
+
}
|
|
248718
|
+
}
|
|
248719
|
+
],
|
|
248720
|
+
"members": [],
|
|
248721
|
+
"returnType": {
|
|
248722
|
+
"kind": "primitive",
|
|
248723
|
+
"value": "string"
|
|
248724
|
+
}
|
|
248725
|
+
},
|
|
248726
|
+
"description": "",
|
|
248727
|
+
"declarations": [
|
|
248728
|
+
{
|
|
248729
|
+
"name": "divide",
|
|
248730
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248731
|
+
}
|
|
248732
|
+
],
|
|
248733
|
+
"tags": {}
|
|
248734
|
+
},
|
|
248735
|
+
{
|
|
248736
|
+
"kind": "property",
|
|
248737
|
+
"name": "multiply",
|
|
248738
|
+
"type": {
|
|
248739
|
+
"kind": "function",
|
|
248740
|
+
"parameters": [
|
|
248741
|
+
{
|
|
248742
|
+
"kind": "parameter",
|
|
248743
|
+
"name": "multiplicand",
|
|
248744
|
+
"type": {
|
|
248745
|
+
"kind": "primitive",
|
|
248746
|
+
"value": "string"
|
|
248747
|
+
},
|
|
248748
|
+
"required": true,
|
|
248749
|
+
"rest": false,
|
|
248750
|
+
"description": "The base value being multiplied. E.g. '1rem' or '--cnvs-sys-space-x1'",
|
|
248751
|
+
"declarations": [
|
|
248752
|
+
{
|
|
248753
|
+
"name": "multiplicand",
|
|
248754
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248755
|
+
}
|
|
248756
|
+
],
|
|
248757
|
+
"tags": {
|
|
248758
|
+
"param": "multiplicand The base value being multiplied. E.g. '1rem' or '--cnvs-sys-space-x1'"
|
|
248759
|
+
}
|
|
248760
|
+
},
|
|
248761
|
+
{
|
|
248762
|
+
"kind": "parameter",
|
|
248763
|
+
"name": "multiplier",
|
|
248764
|
+
"defaultValue": {
|
|
248765
|
+
"kind": "number",
|
|
248766
|
+
"value": 1
|
|
248767
|
+
},
|
|
248768
|
+
"type": {
|
|
248769
|
+
"kind": "union",
|
|
248770
|
+
"value": [
|
|
248771
|
+
{
|
|
248772
|
+
"kind": "primitive",
|
|
248773
|
+
"value": "string"
|
|
248774
|
+
},
|
|
248775
|
+
{
|
|
248776
|
+
"kind": "primitive",
|
|
248777
|
+
"value": "number"
|
|
248778
|
+
}
|
|
248779
|
+
]
|
|
248780
|
+
},
|
|
248781
|
+
"required": false,
|
|
248782
|
+
"rest": false,
|
|
248783
|
+
"description": "The value being multiplied to the base. E.g. 2 or '--cnvs-sys-space-x1'",
|
|
248784
|
+
"declarations": [
|
|
248785
|
+
{
|
|
248786
|
+
"name": "multiplier",
|
|
248787
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248788
|
+
}
|
|
248789
|
+
],
|
|
248790
|
+
"tags": {
|
|
248791
|
+
"param": "multiplier The value being multiplied to the base. E.g. 2 or '--cnvs-sys-space-x1'"
|
|
248792
|
+
}
|
|
248793
|
+
}
|
|
248794
|
+
],
|
|
248795
|
+
"members": [],
|
|
248796
|
+
"returnType": {
|
|
248797
|
+
"kind": "primitive",
|
|
248798
|
+
"value": "string"
|
|
248799
|
+
}
|
|
248800
|
+
},
|
|
248801
|
+
"description": "",
|
|
248802
|
+
"declarations": [
|
|
248803
|
+
{
|
|
248804
|
+
"name": "multiply",
|
|
248805
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248806
|
+
}
|
|
248807
|
+
],
|
|
248808
|
+
"tags": {}
|
|
248809
|
+
},
|
|
248810
|
+
{
|
|
248811
|
+
"kind": "property",
|
|
248812
|
+
"name": "negate",
|
|
248813
|
+
"type": {
|
|
248814
|
+
"kind": "function",
|
|
248815
|
+
"parameters": [
|
|
248816
|
+
{
|
|
248817
|
+
"kind": "parameter",
|
|
248818
|
+
"name": "value",
|
|
248819
|
+
"type": {
|
|
248820
|
+
"kind": "primitive",
|
|
248821
|
+
"value": "string"
|
|
248822
|
+
},
|
|
248823
|
+
"required": true,
|
|
248824
|
+
"rest": false,
|
|
248825
|
+
"description": "The value being negated. E.g. '--cnvs-sys-space-x1' or '1rem'",
|
|
248826
|
+
"declarations": [
|
|
248827
|
+
{
|
|
248828
|
+
"name": "value",
|
|
248829
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248830
|
+
}
|
|
248831
|
+
],
|
|
248832
|
+
"tags": {
|
|
248833
|
+
"param": "value The value being negated. E.g. '--cnvs-sys-space-x1' or '1rem'"
|
|
248834
|
+
}
|
|
248835
|
+
},
|
|
248836
|
+
{
|
|
248837
|
+
"kind": "parameter",
|
|
248838
|
+
"name": "fallback",
|
|
248839
|
+
"type": {
|
|
248840
|
+
"kind": "primitive",
|
|
248841
|
+
"value": "string"
|
|
248842
|
+
},
|
|
248843
|
+
"required": false,
|
|
248844
|
+
"rest": false,
|
|
248845
|
+
"description": "An optional fallback value for a CSS variable. E.g. '1rem'",
|
|
248846
|
+
"declarations": [
|
|
248847
|
+
{
|
|
248848
|
+
"name": "fallback",
|
|
248849
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248850
|
+
}
|
|
248851
|
+
],
|
|
248852
|
+
"tags": {
|
|
248853
|
+
"param": "fallback An optional fallback value for a CSS variable. E.g. '1rem'"
|
|
248854
|
+
}
|
|
248855
|
+
}
|
|
248856
|
+
],
|
|
248857
|
+
"members": [],
|
|
248858
|
+
"returnType": {
|
|
248859
|
+
"kind": "primitive",
|
|
248860
|
+
"value": "string"
|
|
248861
|
+
}
|
|
248862
|
+
},
|
|
248863
|
+
"description": "",
|
|
248864
|
+
"declarations": [
|
|
248865
|
+
{
|
|
248866
|
+
"name": "negate",
|
|
248867
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248868
|
+
}
|
|
248869
|
+
],
|
|
248870
|
+
"tags": {}
|
|
248871
|
+
},
|
|
248872
|
+
{
|
|
248873
|
+
"kind": "property",
|
|
248874
|
+
"name": "subtract",
|
|
248875
|
+
"type": {
|
|
248876
|
+
"kind": "function",
|
|
248877
|
+
"parameters": [
|
|
248878
|
+
{
|
|
248879
|
+
"kind": "parameter",
|
|
248880
|
+
"name": "minuend",
|
|
248881
|
+
"type": {
|
|
248882
|
+
"kind": "primitive",
|
|
248883
|
+
"value": "string"
|
|
248884
|
+
},
|
|
248885
|
+
"required": true,
|
|
248886
|
+
"rest": false,
|
|
248887
|
+
"description": "The base value. E.g. '1rem' or '--cnvs-sys-space-x4'",
|
|
248888
|
+
"declarations": [
|
|
248889
|
+
{
|
|
248890
|
+
"name": "minuend",
|
|
248891
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248892
|
+
}
|
|
248893
|
+
],
|
|
248894
|
+
"tags": {
|
|
248895
|
+
"param": "minuend The base value. E.g. '1rem' or '--cnvs-sys-space-x4'"
|
|
248896
|
+
}
|
|
248897
|
+
},
|
|
248898
|
+
{
|
|
248899
|
+
"kind": "parameter",
|
|
248900
|
+
"name": "subtrahend",
|
|
248901
|
+
"type": {
|
|
248902
|
+
"kind": "primitive",
|
|
248903
|
+
"value": "string"
|
|
248904
|
+
},
|
|
248905
|
+
"required": true,
|
|
248906
|
+
"rest": false,
|
|
248907
|
+
"description": "The value being subtracted from the base. E.g. '1rem' or '--cnvs-sys-space-x4'",
|
|
248908
|
+
"declarations": [
|
|
248909
|
+
{
|
|
248910
|
+
"name": "subtrahend",
|
|
248911
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248912
|
+
}
|
|
248913
|
+
],
|
|
248914
|
+
"tags": {
|
|
248915
|
+
"param": "subtrahend The value being subtracted from the base. E.g. '1rem' or '--cnvs-sys-space-x4'"
|
|
248916
|
+
}
|
|
248917
|
+
}
|
|
248918
|
+
],
|
|
248919
|
+
"members": [],
|
|
248920
|
+
"returnType": {
|
|
248921
|
+
"kind": "primitive",
|
|
248922
|
+
"value": "string"
|
|
248923
|
+
}
|
|
248924
|
+
},
|
|
248925
|
+
"description": "",
|
|
248926
|
+
"declarations": [
|
|
248927
|
+
{
|
|
248928
|
+
"name": "subtract",
|
|
248929
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts"
|
|
248930
|
+
}
|
|
248931
|
+
],
|
|
248932
|
+
"tags": {}
|
|
248933
|
+
}
|
|
248934
|
+
]
|
|
248935
|
+
}
|
|
248936
|
+
},
|
|
248584
248937
|
{
|
|
248585
248938
|
"name": "createStylesCache",
|
|
248586
248939
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
@@ -251128,6 +251481,70 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
251128
251481
|
}
|
|
251129
251482
|
}
|
|
251130
251483
|
},
|
|
251484
|
+
{
|
|
251485
|
+
"name": "px2rem",
|
|
251486
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts",
|
|
251487
|
+
"description": "Function that converts a `px` value (number) to `rem` (string).",
|
|
251488
|
+
"declarations": [
|
|
251489
|
+
{
|
|
251490
|
+
"name": "px2rem",
|
|
251491
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
|
|
251492
|
+
}
|
|
251493
|
+
],
|
|
251494
|
+
"tags": {
|
|
251495
|
+
"example": "```ts\nmargin: px2rem(2);\n// returns '0.125rem'\n```"
|
|
251496
|
+
},
|
|
251497
|
+
"type": {
|
|
251498
|
+
"kind": "function",
|
|
251499
|
+
"parameters": [
|
|
251500
|
+
{
|
|
251501
|
+
"kind": "parameter",
|
|
251502
|
+
"name": "px",
|
|
251503
|
+
"type": {
|
|
251504
|
+
"kind": "primitive",
|
|
251505
|
+
"value": "number"
|
|
251506
|
+
},
|
|
251507
|
+
"required": true,
|
|
251508
|
+
"rest": false,
|
|
251509
|
+
"description": "",
|
|
251510
|
+
"declarations": [
|
|
251511
|
+
{
|
|
251512
|
+
"name": "px",
|
|
251513
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
|
|
251514
|
+
}
|
|
251515
|
+
],
|
|
251516
|
+
"tags": {}
|
|
251517
|
+
},
|
|
251518
|
+
{
|
|
251519
|
+
"kind": "parameter",
|
|
251520
|
+
"name": "base",
|
|
251521
|
+
"defaultValue": {
|
|
251522
|
+
"kind": "number",
|
|
251523
|
+
"value": 16
|
|
251524
|
+
},
|
|
251525
|
+
"type": {
|
|
251526
|
+
"kind": "primitive",
|
|
251527
|
+
"value": "number"
|
|
251528
|
+
},
|
|
251529
|
+
"required": false,
|
|
251530
|
+
"rest": false,
|
|
251531
|
+
"description": "",
|
|
251532
|
+
"declarations": [
|
|
251533
|
+
{
|
|
251534
|
+
"name": "base",
|
|
251535
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/px2rem.ts"
|
|
251536
|
+
}
|
|
251537
|
+
],
|
|
251538
|
+
"tags": {}
|
|
251539
|
+
}
|
|
251540
|
+
],
|
|
251541
|
+
"members": [],
|
|
251542
|
+
"returnType": {
|
|
251543
|
+
"kind": "primitive",
|
|
251544
|
+
"value": "string"
|
|
251545
|
+
}
|
|
251546
|
+
}
|
|
251547
|
+
},
|
|
251131
251548
|
{
|
|
251132
251549
|
"name": "slugify",
|
|
251133
251550
|
"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.
|
|
3
|
+
"version": "10.2.0-630-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.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^10.
|
|
49
|
-
"@workday/canvas-kit-react": "^10.
|
|
50
|
-
"@workday/canvas-kit-styling": "^10.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^10.2.0-630-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^10.2.0-630-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^10.2.0-630-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^10.2.0-630-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": "
|
|
62
|
+
"gitHead": "0af1da723f8b8b20a47bf9785c6e21470339a304"
|
|
63
63
|
}
|