@workday/canvas-kit-docs 10.3.1 → 10.3.4

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.
@@ -248665,6 +248665,90 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248665
248665
  }
248666
248666
  }
248667
248667
  },
248668
+ {
248669
+ "name": "createObjectTransform",
248670
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createObjectTransform.ts",
248671
+ "description": "Object transforms take an AST node that represents a style object and turn it into a\n`NestedStyleObject` or return `void`. If an object transform returns an object, transformation\nparsing stops on that node. If `void` is returned, processing continues using\n`parseObjectToStaticValue`. These transforms are useful if you have custom utility functions\nthat are not statically parsable by the static styling transformer.",
248672
+ "declarations": [
248673
+ {
248674
+ "name": "createObjectTransform",
248675
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createObjectTransform.ts"
248676
+ }
248677
+ ],
248678
+ "tags": {},
248679
+ "type": {
248680
+ "kind": "function",
248681
+ "parameters": [
248682
+ {
248683
+ "kind": "parameter",
248684
+ "name": "transformFn",
248685
+ "type": {
248686
+ "kind": "symbol",
248687
+ "name": "ObjectTransform",
248688
+ "value": "ObjectTransform"
248689
+ },
248690
+ "required": true,
248691
+ "rest": false,
248692
+ "description": "",
248693
+ "declarations": [
248694
+ {
248695
+ "name": "transformFn",
248696
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createObjectTransform.ts"
248697
+ }
248698
+ ],
248699
+ "tags": {}
248700
+ }
248701
+ ],
248702
+ "members": [],
248703
+ "returnType": {
248704
+ "kind": "symbol",
248705
+ "name": "ObjectTransform",
248706
+ "value": "ObjectTransform"
248707
+ }
248708
+ }
248709
+ },
248710
+ {
248711
+ "name": "createPropertyTransform",
248712
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createPropertyTransform.ts",
248713
+ "description": "A property transform takes a style property node and will return a string. You can use\n`parseNodeToStaticValue` to help you process properties that might be inputs to a function.",
248714
+ "declarations": [
248715
+ {
248716
+ "name": "createPropertyTransform",
248717
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createPropertyTransform.ts"
248718
+ }
248719
+ ],
248720
+ "tags": {},
248721
+ "type": {
248722
+ "kind": "function",
248723
+ "parameters": [
248724
+ {
248725
+ "kind": "parameter",
248726
+ "name": "transformFn",
248727
+ "type": {
248728
+ "kind": "symbol",
248729
+ "name": "PropertyTransform",
248730
+ "value": "PropertyTransform"
248731
+ },
248732
+ "required": true,
248733
+ "rest": false,
248734
+ "description": "",
248735
+ "declarations": [
248736
+ {
248737
+ "name": "transformFn",
248738
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/createPropertyTransform.ts"
248739
+ }
248740
+ ],
248741
+ "tags": {}
248742
+ }
248743
+ ],
248744
+ "members": [],
248745
+ "returnType": {
248746
+ "kind": "symbol",
248747
+ "name": "PropertyTransform",
248748
+ "value": "PropertyTransform"
248749
+ }
248750
+ }
248751
+ },
248668
248752
  {
248669
248753
  "name": "NestedStyleObject",
248670
248754
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts",
@@ -248717,6 +248801,65 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248717
248801
  "type": {
248718
248802
  "kind": "object",
248719
248803
  "properties": [
248804
+ {
248805
+ "kind": "property",
248806
+ "name": "fallbackFiles",
248807
+ "required": false,
248808
+ "type": {
248809
+ "kind": "array",
248810
+ "value": {
248811
+ "kind": "primitive",
248812
+ "value": "string"
248813
+ }
248814
+ },
248815
+ "description": "",
248816
+ "declarations": [
248817
+ {
248818
+ "name": "fallbackFiles",
248819
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248820
+ }
248821
+ ],
248822
+ "tags": {}
248823
+ },
248824
+ {
248825
+ "kind": "property",
248826
+ "name": "transformers",
248827
+ "required": false,
248828
+ "type": {
248829
+ "kind": "array",
248830
+ "value": {
248831
+ "kind": "symbol",
248832
+ "name": "NodeTransformer",
248833
+ "value": "NodeTransformer"
248834
+ }
248835
+ },
248836
+ "description": "",
248837
+ "declarations": [
248838
+ {
248839
+ "name": "transformers",
248840
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248841
+ }
248842
+ ],
248843
+ "tags": {}
248844
+ },
248845
+ {
248846
+ "kind": "property",
248847
+ "name": "checker",
248848
+ "required": true,
248849
+ "type": {
248850
+ "kind": "symbol",
248851
+ "name": "ts.TypeChecker",
248852
+ "value": "TypeChecker"
248853
+ },
248854
+ "description": "",
248855
+ "declarations": [
248856
+ {
248857
+ "name": "checker",
248858
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248859
+ }
248860
+ ],
248861
+ "tags": {}
248862
+ },
248720
248863
  {
248721
248864
  "kind": "property",
248722
248865
  "name": "prefix",
@@ -248729,7 +248872,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248729
248872
  "declarations": [
248730
248873
  {
248731
248874
  "name": "prefix",
248732
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248875
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248733
248876
  }
248734
248877
  ],
248735
248878
  "tags": {}
@@ -248741,13 +248884,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248741
248884
  "type": {
248742
248885
  "kind": "external",
248743
248886
  "name": "Record",
248744
- "url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"
248887
+ "url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
248888
+ "typeParameters": [
248889
+ {
248890
+ "kind": "primitive",
248891
+ "value": "string"
248892
+ },
248893
+ {
248894
+ "kind": "primitive",
248895
+ "value": "string"
248896
+ }
248897
+ ]
248745
248898
  },
248746
248899
  "description": "",
248747
248900
  "declarations": [
248748
248901
  {
248749
248902
  "name": "variables",
248750
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248903
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248751
248904
  }
248752
248905
  ],
248753
248906
  "tags": {}
@@ -248759,24 +248912,73 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248759
248912
  "type": {
248760
248913
  "kind": "external",
248761
248914
  "name": "Record",
248762
- "url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"
248915
+ "url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
248916
+ "typeParameters": [
248917
+ {
248918
+ "kind": "primitive",
248919
+ "value": "string"
248920
+ },
248921
+ {
248922
+ "kind": "primitive",
248923
+ "value": "string"
248924
+ }
248925
+ ]
248763
248926
  },
248764
248927
  "description": "",
248765
248928
  "declarations": [
248766
248929
  {
248767
248930
  "name": "keyframes",
248768
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248931
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248769
248932
  }
248770
248933
  ],
248771
248934
  "tags": {}
248772
248935
  },
248773
248936
  {
248774
248937
  "kind": "property",
248775
- "name": "fallbackFiles",
248776
- "required": false,
248938
+ "name": "styles",
248939
+ "required": true,
248777
248940
  "type": {
248778
- "kind": "array",
248779
- "value": {
248941
+ "kind": "symbol",
248942
+ "name": "StylesOutput",
248943
+ "value": "StylesOutput"
248944
+ },
248945
+ "description": "",
248946
+ "declarations": [
248947
+ {
248948
+ "name": "styles",
248949
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248950
+ }
248951
+ ],
248952
+ "tags": {}
248953
+ },
248954
+ {
248955
+ "kind": "property",
248956
+ "name": "getFileName",
248957
+ "required": true,
248958
+ "type": {
248959
+ "kind": "function",
248960
+ "parameters": [
248961
+ {
248962
+ "kind": "parameter",
248963
+ "name": "path",
248964
+ "type": {
248965
+ "kind": "primitive",
248966
+ "value": "string"
248967
+ },
248968
+ "required": true,
248969
+ "rest": false,
248970
+ "description": "",
248971
+ "declarations": [
248972
+ {
248973
+ "name": "path",
248974
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248975
+ }
248976
+ ],
248977
+ "tags": {}
248978
+ }
248979
+ ],
248980
+ "members": [],
248981
+ "returnType": {
248780
248982
  "kind": "primitive",
248781
248983
  "value": "string"
248782
248984
  }
@@ -248784,29 +248986,67 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248784
248986
  "description": "",
248785
248987
  "declarations": [
248786
248988
  {
248787
- "name": "fallbackFiles",
248788
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248989
+ "name": "getFileName",
248990
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248789
248991
  }
248790
248992
  ],
248791
248993
  "tags": {}
248792
248994
  },
248793
248995
  {
248794
248996
  "kind": "property",
248795
- "name": "transformers",
248796
- "required": false,
248997
+ "name": "objectTransforms",
248998
+ "required": true,
248797
248999
  "type": {
248798
249000
  "kind": "array",
248799
249001
  "value": {
248800
249002
  "kind": "symbol",
248801
- "name": "NodeTransformer",
248802
- "value": "NodeTransformer"
249003
+ "name": "ObjectTransform",
249004
+ "value": "ObjectTransform"
248803
249005
  }
248804
249006
  },
248805
249007
  "description": "",
248806
249008
  "declarations": [
248807
249009
  {
248808
- "name": "transformers",
248809
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249010
+ "name": "objectTransforms",
249011
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
249012
+ }
249013
+ ],
249014
+ "tags": {}
249015
+ },
249016
+ {
249017
+ "kind": "property",
249018
+ "name": "propertyTransforms",
249019
+ "required": true,
249020
+ "type": {
249021
+ "kind": "array",
249022
+ "value": {
249023
+ "kind": "symbol",
249024
+ "name": "PropertyTransform",
249025
+ "value": "PropertyTransform"
249026
+ }
249027
+ },
249028
+ "description": "",
249029
+ "declarations": [
249030
+ {
249031
+ "name": "propertyTransforms",
249032
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
249033
+ }
249034
+ ],
249035
+ "tags": {}
249036
+ },
249037
+ {
249038
+ "kind": "property",
249039
+ "name": "fileName",
249040
+ "required": true,
249041
+ "type": {
249042
+ "kind": "primitive",
249043
+ "value": "string"
249044
+ },
249045
+ "description": "",
249046
+ "declarations": [
249047
+ {
249048
+ "name": "fileName",
249049
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
248810
249050
  }
248811
249051
  ],
248812
249052
  "tags": {}
@@ -248870,105 +249110,11 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248870
249110
  },
248871
249111
  {
248872
249112
  "kind": "parameter",
248873
- "name": "__1",
248874
- "defaultValue": {
248875
- "kind": "object",
248876
- "properties": [
248877
- {
248878
- "kind": "property",
248879
- "name": "prefix",
248880
- "defaultValue": {
248881
- "kind": "string",
248882
- "value": "css"
248883
- },
248884
- "type": {
248885
- "kind": "primitive",
248886
- "value": "string"
248887
- },
248888
- "required": true,
248889
- "description": "",
248890
- "declarations": [
248891
- {
248892
- "name": "prefix",
248893
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248894
- }
248895
- ],
248896
- "tags": {}
248897
- },
248898
- {
248899
- "kind": "property",
248900
- "name": "variables",
248901
- "defaultValue": {
248902
- "kind": "object",
248903
- "properties": []
248904
- },
248905
- "type": {
248906
- "kind": "object",
248907
- "properties": []
248908
- },
248909
- "required": true,
248910
- "description": "",
248911
- "declarations": [
248912
- {
248913
- "name": "variables",
248914
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248915
- }
248916
- ],
248917
- "tags": {}
248918
- },
248919
- {
248920
- "kind": "property",
248921
- "name": "keyframes",
248922
- "defaultValue": {
248923
- "kind": "object",
248924
- "properties": []
248925
- },
248926
- "type": {
248927
- "kind": "object",
248928
- "properties": []
248929
- },
248930
- "required": true,
248931
- "description": "",
248932
- "declarations": [
248933
- {
248934
- "name": "keyframes",
248935
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248936
- }
248937
- ],
248938
- "tags": {}
248939
- },
248940
- {
248941
- "kind": "property",
248942
- "name": "transformers",
248943
- "defaultValue": {
248944
- "kind": "unknown",
248945
- "value": "unknown",
248946
- "text": "defaultTransformers"
248947
- },
248948
- "type": {
248949
- "kind": "array",
248950
- "value": {
248951
- "kind": "symbol",
248952
- "name": "NodeTransformer",
248953
- "value": "any"
248954
- }
248955
- },
248956
- "required": true,
248957
- "description": "",
248958
- "declarations": [
248959
- {
248960
- "name": "transformers",
248961
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248962
- }
248963
- ],
248964
- "tags": {}
248965
- }
248966
- ]
248967
- },
248968
- "type": {
248969
- "kind": "symbol",
248970
- "name": "Partial",
248971
- "typeParameters": [
249113
+ "name": "options",
249114
+ "type": {
249115
+ "kind": "symbol",
249116
+ "name": "Partial",
249117
+ "typeParameters": [
248972
249118
  {
248973
249119
  "kind": "symbol",
248974
249120
  "name": "StyleTransformerOptions",
@@ -248982,7 +249128,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
248982
249128
  "description": "",
248983
249129
  "declarations": [
248984
249130
  {
248985
- "name": "__1",
249131
+ "name": "options",
248986
249132
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
248987
249133
  }
248988
249134
  ],
@@ -249004,6 +249150,88 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249004
249150
  }
249005
249151
  }
249006
249152
  },
249153
+ {
249154
+ "name": "withDefaultContext",
249155
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts",
249156
+ "description": "",
249157
+ "declarations": [
249158
+ {
249159
+ "name": "withDefaultContext",
249160
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249161
+ }
249162
+ ],
249163
+ "tags": {},
249164
+ "type": {
249165
+ "kind": "function",
249166
+ "typeParameters": [
249167
+ {
249168
+ "kind": "typeParameter",
249169
+ "name": "T",
249170
+ "constraint": {
249171
+ "kind": "symbol",
249172
+ "name": "TransformerContext",
249173
+ "value": "TransformerContext"
249174
+ },
249175
+ "required": true
249176
+ }
249177
+ ],
249178
+ "parameters": [
249179
+ {
249180
+ "kind": "parameter",
249181
+ "name": "checker",
249182
+ "type": {
249183
+ "kind": "symbol",
249184
+ "name": "ts.TypeChecker",
249185
+ "value": "TypeChecker"
249186
+ },
249187
+ "required": true,
249188
+ "rest": false,
249189
+ "description": "",
249190
+ "declarations": [
249191
+ {
249192
+ "name": "checker",
249193
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249194
+ }
249195
+ ],
249196
+ "tags": {}
249197
+ },
249198
+ {
249199
+ "kind": "parameter",
249200
+ "name": "input",
249201
+ "defaultValue": {
249202
+ "kind": "object",
249203
+ "properties": []
249204
+ },
249205
+ "type": {
249206
+ "kind": "symbol",
249207
+ "name": "Partial",
249208
+ "typeParameters": [
249209
+ {
249210
+ "kind": "generic",
249211
+ "name": "T"
249212
+ }
249213
+ ],
249214
+ "value": "Partial<T>"
249215
+ },
249216
+ "required": false,
249217
+ "rest": false,
249218
+ "description": "",
249219
+ "declarations": [
249220
+ {
249221
+ "name": "input",
249222
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249223
+ }
249224
+ ],
249225
+ "tags": {}
249226
+ }
249227
+ ],
249228
+ "members": [],
249229
+ "returnType": {
249230
+ "kind": "generic",
249231
+ "name": "T"
249232
+ }
249233
+ }
249234
+ },
249007
249235
  {
249008
249236
  "name": "transform",
249009
249237
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts",
@@ -249040,11 +249268,15 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249040
249268
  {
249041
249269
  "kind": "parameter",
249042
249270
  "name": "fileName",
249271
+ "defaultValue": {
249272
+ "kind": "string",
249273
+ "value": "test.ts"
249274
+ },
249043
249275
  "type": {
249044
249276
  "kind": "primitive",
249045
249277
  "value": "string"
249046
249278
  },
249047
- "required": true,
249279
+ "required": false,
249048
249280
  "rest": false,
249049
249281
  "description": "",
249050
249282
  "declarations": [
@@ -249089,6 +249321,59 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249089
249321
  }
249090
249322
  }
249091
249323
  },
249324
+ {
249325
+ "name": "getConfig",
249326
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts",
249327
+ "description": "",
249328
+ "declarations": [
249329
+ {
249330
+ "name": "getConfig",
249331
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249332
+ }
249333
+ ],
249334
+ "tags": {},
249335
+ "type": {
249336
+ "kind": "function",
249337
+ "parameters": [
249338
+ {
249339
+ "kind": "parameter",
249340
+ "name": "basePath",
249341
+ "defaultValue": {
249342
+ "kind": "string",
249343
+ "value": "."
249344
+ },
249345
+ "type": {
249346
+ "kind": "primitive",
249347
+ "value": "string"
249348
+ },
249349
+ "required": false,
249350
+ "rest": false,
249351
+ "description": "",
249352
+ "declarations": [
249353
+ {
249354
+ "name": "basePath",
249355
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/styleTransform.ts"
249356
+ }
249357
+ ],
249358
+ "tags": {}
249359
+ }
249360
+ ],
249361
+ "members": [],
249362
+ "returnType": {
249363
+ "kind": "union",
249364
+ "value": [
249365
+ {
249366
+ "kind": "primitive",
249367
+ "value": "string"
249368
+ },
249369
+ {
249370
+ "kind": "primitive",
249371
+ "value": "undefined"
249372
+ }
249373
+ ]
249374
+ }
249375
+ }
249376
+ },
249092
249377
  {
249093
249378
  "name": "createStyleObjectNode",
249094
249379
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts",
@@ -249105,27 +249390,17 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249105
249390
  "parameters": [
249106
249391
  {
249107
249392
  "kind": "parameter",
249108
- "name": "styleObj",
249393
+ "name": "styles",
249109
249394
  "type": {
249110
- "kind": "union",
249111
- "value": [
249112
- {
249113
- "kind": "symbol",
249114
- "name": "NestedStyleObject",
249115
- "value": "NestedStyleObject"
249116
- },
249117
- {
249118
- "kind": "primitive",
249119
- "value": "string"
249120
- }
249121
- ]
249395
+ "kind": "primitive",
249396
+ "value": "string"
249122
249397
  },
249123
249398
  "required": true,
249124
249399
  "rest": false,
249125
249400
  "description": "",
249126
249401
  "declarations": [
249127
249402
  {
249128
- "name": "styleObj",
249403
+ "name": "styles",
249129
249404
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts"
249130
249405
  }
249131
249406
  ],
@@ -249159,12 +249434,12 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249159
249434
  }
249160
249435
  },
249161
249436
  {
249162
- "name": "getStaticCssClassName",
249437
+ "name": "compileCSS",
249163
249438
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts",
249164
- "description": "Returns the name created by `createStyleObjectNode`",
249439
+ "description": "Compiles CSS using stylis. Emotion's `serializeStyles` creates an unwrapped string for cache\nstorage and it often needs to be wrapped by a CSS selector or `@keyframes`. This function does\nthis the same way Emotion does it internally.",
249165
249440
  "declarations": [
249166
249441
  {
249167
- "name": "getStaticCssClassName",
249442
+ "name": "compileCSS",
249168
249443
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts"
249169
249444
  }
249170
249445
  ],
@@ -249174,18 +249449,17 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249174
249449
  "parameters": [
249175
249450
  {
249176
249451
  "kind": "parameter",
249177
- "name": "node",
249452
+ "name": "input",
249178
249453
  "type": {
249179
- "kind": "symbol",
249180
- "name": "ts.Node",
249181
- "value": "Node"
249454
+ "kind": "primitive",
249455
+ "value": "string"
249182
249456
  },
249183
249457
  "required": true,
249184
249458
  "rest": false,
249185
249459
  "description": "",
249186
249460
  "declarations": [
249187
249461
  {
249188
- "name": "node",
249462
+ "name": "input",
249189
249463
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts"
249190
249464
  }
249191
249465
  ],
@@ -249200,13 +249474,13 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249200
249474
  }
249201
249475
  },
249202
249476
  {
249203
- "name": "getVariablesFromFiles",
249204
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts",
249477
+ "name": "serializeStyles",
249478
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts",
249205
249479
  "description": "",
249206
249480
  "declarations": [
249207
249481
  {
249208
- "name": "getVariablesFromFiles",
249209
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts"
249482
+ "name": "serializeStyles",
249483
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts"
249210
249484
  }
249211
249485
  ],
249212
249486
  "tags": {},
@@ -249215,22 +249489,73 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249215
249489
  "parameters": [
249216
249490
  {
249217
249491
  "kind": "parameter",
249218
- "name": "files",
249492
+ "name": "input",
249219
249493
  "type": {
249220
- "kind": "array",
249221
- "value": {
249222
- "kind": "primitive",
249223
- "value": "string"
249224
- }
249494
+ "kind": "union",
249495
+ "value": [
249496
+ {
249497
+ "kind": "symbol",
249498
+ "name": "NestedStyleObject",
249499
+ "value": "NestedStyleObject"
249500
+ },
249501
+ {
249502
+ "kind": "primitive",
249503
+ "value": "string"
249504
+ }
249505
+ ]
249225
249506
  },
249226
249507
  "required": true,
249227
249508
  "rest": false,
249228
249509
  "description": "",
249229
249510
  "declarations": [
249230
249511
  {
249231
- "name": "files",
249232
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts"
249233
- }
249512
+ "name": "input",
249513
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/createStyleObjectNode.ts"
249514
+ }
249515
+ ],
249516
+ "tags": {}
249517
+ }
249518
+ ],
249519
+ "members": [],
249520
+ "returnType": {
249521
+ "kind": "symbol",
249522
+ "name": "SerializedStyles",
249523
+ "value": "SerializedStyles"
249524
+ }
249525
+ }
249526
+ },
249527
+ {
249528
+ "name": "getVariablesFromFiles",
249529
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts",
249530
+ "description": "",
249531
+ "declarations": [
249532
+ {
249533
+ "name": "getVariablesFromFiles",
249534
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts"
249535
+ }
249536
+ ],
249537
+ "tags": {},
249538
+ "type": {
249539
+ "kind": "function",
249540
+ "parameters": [
249541
+ {
249542
+ "kind": "parameter",
249543
+ "name": "files",
249544
+ "type": {
249545
+ "kind": "array",
249546
+ "value": {
249547
+ "kind": "primitive",
249548
+ "value": "string"
249549
+ }
249550
+ },
249551
+ "required": true,
249552
+ "rest": false,
249553
+ "description": "",
249554
+ "declarations": [
249555
+ {
249556
+ "name": "files",
249557
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getCssVariables.ts"
249558
+ }
249234
249559
  ],
249235
249560
  "tags": {}
249236
249561
  }
@@ -249382,6 +249707,25 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249382
249707
  }
249383
249708
  ],
249384
249709
  "tags": {}
249710
+ },
249711
+ {
249712
+ "kind": "parameter",
249713
+ "name": "context",
249714
+ "type": {
249715
+ "kind": "symbol",
249716
+ "name": "TransformerContext",
249717
+ "value": "TransformerContext"
249718
+ },
249719
+ "required": true,
249720
+ "rest": false,
249721
+ "description": "",
249722
+ "declarations": [
249723
+ {
249724
+ "name": "context",
249725
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/getErrorMessage.ts"
249726
+ }
249727
+ ],
249728
+ "tags": {}
249385
249729
  }
249386
249730
  ],
249387
249731
  "members": [],
@@ -249538,7 +249882,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249538
249882
  {
249539
249883
  "name": "handleCalc",
249540
249884
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/handleCalc.ts",
249541
- "description": "Handle all instances of `calc.*()` statically. It converts `calc.*` call expressions to template\nstring literals. The transformer will then transform the template literal into static values.\n\n```ts\n// in\ncalc.add('80%', '2px')\n\n// out\n`calc(${'80%'} + ${'2px'})`\n```\n\nA template literal is used because the values might be Identifiers, PropertyAccessExpressions,\netc. The transform can handle template string literals with different spans, so we'll convert to\nthose as an intermediate step.",
249885
+ "description": "",
249542
249886
  "declarations": [
249543
249887
  {
249544
249888
  "name": "handleCalc",
@@ -249547,9 +249891,61 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249547
249891
  ],
249548
249892
  "tags": {},
249549
249893
  "type": {
249550
- "kind": "symbol",
249551
- "name": "NodeTransformer",
249552
- "value": "NodeTransformer"
249894
+ "kind": "function",
249895
+ "parameters": [
249896
+ {
249897
+ "kind": "parameter",
249898
+ "name": "node",
249899
+ "type": {
249900
+ "kind": "symbol",
249901
+ "name": "ts.Node",
249902
+ "value": "Node"
249903
+ },
249904
+ "required": true,
249905
+ "rest": false,
249906
+ "description": "",
249907
+ "declarations": [
249908
+ {
249909
+ "name": "node",
249910
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
249911
+ }
249912
+ ],
249913
+ "tags": {}
249914
+ },
249915
+ {
249916
+ "kind": "parameter",
249917
+ "name": "context",
249918
+ "type": {
249919
+ "kind": "symbol",
249920
+ "name": "TransformerContext",
249921
+ "value": "TransformerContext"
249922
+ },
249923
+ "required": true,
249924
+ "rest": false,
249925
+ "description": "",
249926
+ "declarations": [
249927
+ {
249928
+ "name": "context",
249929
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
249930
+ }
249931
+ ],
249932
+ "tags": {}
249933
+ }
249934
+ ],
249935
+ "members": [],
249936
+ "returnType": {
249937
+ "kind": "union",
249938
+ "value": [
249939
+ {
249940
+ "kind": "primitive",
249941
+ "value": "string"
249942
+ },
249943
+ {
249944
+ "kind": "primitive",
249945
+ "value": "void"
249946
+ }
249947
+ ]
249948
+ }
249553
249949
  }
249554
249950
  },
249555
249951
  {
@@ -249606,7 +250002,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249606
250002
  {
249607
250003
  "name": "handleCssVar",
249608
250004
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/handleCssVar.ts",
249609
- "description": "Converts `cssVar` to a `TemplateExpression` with each argument as a span\n\n- `cssVar('--foo')` => `\\`var(${'--foo'})\\``\n- `cssVar('--foo', 'fallback')` => `\\`var(${'--foo'}, ${'fallback'})\\``\n\nThe value parser will figure out what to do from there. We don't have access to variables at this\npoint, so we forward CallExpression arguments in ways the value parser understands.",
250005
+ "description": "",
249610
250006
  "declarations": [
249611
250007
  {
249612
250008
  "name": "handleCssVar",
@@ -249615,26 +250011,61 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249615
250011
  ],
249616
250012
  "tags": {},
249617
250013
  "type": {
249618
- "kind": "symbol",
249619
- "name": "NodeTransformer",
249620
- "value": "NodeTransformer"
249621
- }
249622
- },
249623
- {
249624
- "name": "handleFocusRing",
249625
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/handleFocusRing.ts",
249626
- "description": "",
249627
- "declarations": [
249628
- {
249629
- "name": "handleFocusRing",
249630
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/handleFocusRing.ts"
250014
+ "kind": "function",
250015
+ "parameters": [
250016
+ {
250017
+ "kind": "parameter",
250018
+ "name": "node",
250019
+ "type": {
250020
+ "kind": "symbol",
250021
+ "name": "ts.Node",
250022
+ "value": "Node"
250023
+ },
250024
+ "required": true,
250025
+ "rest": false,
250026
+ "description": "",
250027
+ "declarations": [
250028
+ {
250029
+ "name": "node",
250030
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250031
+ }
250032
+ ],
250033
+ "tags": {}
250034
+ },
250035
+ {
250036
+ "kind": "parameter",
250037
+ "name": "context",
250038
+ "type": {
250039
+ "kind": "symbol",
250040
+ "name": "TransformerContext",
250041
+ "value": "TransformerContext"
250042
+ },
250043
+ "required": true,
250044
+ "rest": false,
250045
+ "description": "",
250046
+ "declarations": [
250047
+ {
250048
+ "name": "context",
250049
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250050
+ }
250051
+ ],
250052
+ "tags": {}
250053
+ }
250054
+ ],
250055
+ "members": [],
250056
+ "returnType": {
250057
+ "kind": "union",
250058
+ "value": [
250059
+ {
250060
+ "kind": "primitive",
250061
+ "value": "string"
250062
+ },
250063
+ {
250064
+ "kind": "primitive",
250065
+ "value": "void"
250066
+ }
250067
+ ]
249631
250068
  }
249632
- ],
249633
- "tags": {},
249634
- "type": {
249635
- "kind": "symbol",
249636
- "name": "NodeTransformer",
249637
- "value": "NodeTransformer"
249638
250069
  }
249639
250070
  },
249640
250071
  {
@@ -249657,7 +250088,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249657
250088
  {
249658
250089
  "name": "handlePx2Rem",
249659
250090
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/handlePx2Rem.ts",
249660
- "description": "Handle the CallExpression `px2rem` to do static conversion and remove the CallExpression.",
250091
+ "description": "",
249661
250092
  "declarations": [
249662
250093
  {
249663
250094
  "name": "handlePx2Rem",
@@ -249666,9 +250097,61 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249666
250097
  ],
249667
250098
  "tags": {},
249668
250099
  "type": {
249669
- "kind": "symbol",
249670
- "name": "NodeTransformer",
249671
- "value": "NodeTransformer"
250100
+ "kind": "function",
250101
+ "parameters": [
250102
+ {
250103
+ "kind": "parameter",
250104
+ "name": "node",
250105
+ "type": {
250106
+ "kind": "symbol",
250107
+ "name": "ts.Node",
250108
+ "value": "Node"
250109
+ },
250110
+ "required": true,
250111
+ "rest": false,
250112
+ "description": "",
250113
+ "declarations": [
250114
+ {
250115
+ "name": "node",
250116
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250117
+ }
250118
+ ],
250119
+ "tags": {}
250120
+ },
250121
+ {
250122
+ "kind": "parameter",
250123
+ "name": "context",
250124
+ "type": {
250125
+ "kind": "symbol",
250126
+ "name": "TransformerContext",
250127
+ "value": "TransformerContext"
250128
+ },
250129
+ "required": true,
250130
+ "rest": false,
250131
+ "description": "",
250132
+ "declarations": [
250133
+ {
250134
+ "name": "context",
250135
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250136
+ }
250137
+ ],
250138
+ "tags": {}
250139
+ }
250140
+ ],
250141
+ "members": [],
250142
+ "returnType": {
250143
+ "kind": "union",
250144
+ "value": [
250145
+ {
250146
+ "kind": "primitive",
250147
+ "value": "string"
250148
+ },
250149
+ {
250150
+ "kind": "primitive",
250151
+ "value": "void"
250152
+ }
250153
+ ]
250154
+ }
249672
250155
  }
249673
250156
  },
249674
250157
  {
@@ -249832,50 +250315,12 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249832
250315
  }
249833
250316
  },
249834
250317
  {
249835
- "name": "NestedStyleObject",
250318
+ "name": "parseObjectToStaticValue",
249836
250319
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/parseObjectToStaticValue.ts",
249837
250320
  "description": "",
249838
250321
  "declarations": [
249839
250322
  {
249840
- "name": "NestedStyleObject",
249841
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/parseObjectToStaticValue.ts"
249842
- }
249843
- ],
249844
- "tags": {},
249845
- "type": {
249846
- "kind": "object",
249847
- "properties": [],
249848
- "indexSignature": {
249849
- "kind": "indexSignature",
249850
- "name": "key",
249851
- "type": {
249852
- "kind": "primitive",
249853
- "value": "string"
249854
- },
249855
- "value": {
249856
- "kind": "union",
249857
- "value": [
249858
- {
249859
- "kind": "primitive",
249860
- "value": "string"
249861
- },
249862
- {
249863
- "kind": "symbol",
249864
- "name": "NestedStyleObject",
249865
- "value": "NestedStyleObject"
249866
- }
249867
- ]
249868
- }
249869
- }
249870
- }
249871
- },
249872
- {
249873
- "name": "parseObjectToStaticValue",
249874
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/parseObjectToStaticValue.ts",
249875
- "description": "",
249876
- "declarations": [
249877
- {
249878
- "name": "parseObjectToStaticValue",
250323
+ "name": "parseObjectToStaticValue",
249879
250324
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/parseObjectToStaticValue.ts"
249880
250325
  }
249881
250326
  ],
@@ -249991,6 +250436,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
249991
250436
  }
249992
250437
  }
249993
250438
  },
250439
+ {
250440
+ "name": "prettyStringify",
250441
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/stylisFns.ts",
250442
+ "description": "",
250443
+ "declarations": [
250444
+ {
250445
+ "name": "prettyStringify",
250446
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/stylisFns.ts"
250447
+ }
250448
+ ],
250449
+ "tags": {},
250450
+ "type": {
250451
+ "kind": "symbol",
250452
+ "name": "Middleware",
250453
+ "value": "Middleware"
250454
+ }
250455
+ },
249994
250456
  {
249995
250457
  "name": "TransformerContext",
249996
250458
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
@@ -250095,10 +250557,166 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
250095
250557
  }
250096
250558
  ],
250097
250559
  "tags": {}
250560
+ },
250561
+ {
250562
+ "kind": "property",
250563
+ "name": "styles",
250564
+ "required": true,
250565
+ "type": {
250566
+ "kind": "symbol",
250567
+ "name": "StylesOutput",
250568
+ "value": "StylesOutput"
250569
+ },
250570
+ "description": "",
250571
+ "declarations": [
250572
+ {
250573
+ "name": "styles",
250574
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250575
+ }
250576
+ ],
250577
+ "tags": {}
250578
+ },
250579
+ {
250580
+ "kind": "property",
250581
+ "name": "getFileName",
250582
+ "required": true,
250583
+ "type": {
250584
+ "kind": "function",
250585
+ "parameters": [
250586
+ {
250587
+ "kind": "parameter",
250588
+ "name": "path",
250589
+ "type": {
250590
+ "kind": "primitive",
250591
+ "value": "string"
250592
+ },
250593
+ "required": true,
250594
+ "rest": false,
250595
+ "description": "",
250596
+ "declarations": [
250597
+ {
250598
+ "name": "path",
250599
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250600
+ }
250601
+ ],
250602
+ "tags": {}
250603
+ }
250604
+ ],
250605
+ "members": [],
250606
+ "returnType": {
250607
+ "kind": "primitive",
250608
+ "value": "string"
250609
+ }
250610
+ },
250611
+ "description": "",
250612
+ "declarations": [
250613
+ {
250614
+ "name": "getFileName",
250615
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250616
+ }
250617
+ ],
250618
+ "tags": {}
250619
+ },
250620
+ {
250621
+ "kind": "property",
250622
+ "name": "objectTransforms",
250623
+ "required": true,
250624
+ "type": {
250625
+ "kind": "array",
250626
+ "value": {
250627
+ "kind": "symbol",
250628
+ "name": "ObjectTransform",
250629
+ "value": "ObjectTransform"
250630
+ }
250631
+ },
250632
+ "description": "",
250633
+ "declarations": [
250634
+ {
250635
+ "name": "objectTransforms",
250636
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250637
+ }
250638
+ ],
250639
+ "tags": {}
250640
+ },
250641
+ {
250642
+ "kind": "property",
250643
+ "name": "propertyTransforms",
250644
+ "required": true,
250645
+ "type": {
250646
+ "kind": "array",
250647
+ "value": {
250648
+ "kind": "symbol",
250649
+ "name": "PropertyTransform",
250650
+ "value": "PropertyTransform"
250651
+ }
250652
+ },
250653
+ "description": "",
250654
+ "declarations": [
250655
+ {
250656
+ "name": "propertyTransforms",
250657
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250658
+ }
250659
+ ],
250660
+ "tags": {}
250661
+ },
250662
+ {
250663
+ "kind": "property",
250664
+ "name": "fileName",
250665
+ "required": true,
250666
+ "type": {
250667
+ "kind": "primitive",
250668
+ "value": "string"
250669
+ },
250670
+ "description": "",
250671
+ "declarations": [
250672
+ {
250673
+ "name": "fileName",
250674
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250675
+ }
250676
+ ],
250677
+ "tags": {}
250098
250678
  }
250099
250679
  ]
250100
250680
  }
250101
250681
  },
250682
+ {
250683
+ "name": "NestedStyleObject",
250684
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
250685
+ "description": "",
250686
+ "declarations": [
250687
+ {
250688
+ "name": "NestedStyleObject",
250689
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250690
+ }
250691
+ ],
250692
+ "tags": {},
250693
+ "type": {
250694
+ "kind": "object",
250695
+ "properties": [],
250696
+ "indexSignature": {
250697
+ "kind": "indexSignature",
250698
+ "name": "key",
250699
+ "type": {
250700
+ "kind": "primitive",
250701
+ "value": "string"
250702
+ },
250703
+ "value": {
250704
+ "kind": "union",
250705
+ "value": [
250706
+ {
250707
+ "kind": "primitive",
250708
+ "value": "string"
250709
+ },
250710
+ {
250711
+ "kind": "symbol",
250712
+ "name": "NestedStyleObject",
250713
+ "value": "NestedStyleObject"
250714
+ }
250715
+ ]
250716
+ }
250717
+ }
250718
+ }
250719
+ },
250102
250720
  {
250103
250721
  "name": "NodeTransformer",
250104
250722
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
@@ -250173,6 +250791,345 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
250173
250791
  }
250174
250792
  }
250175
250793
  },
250794
+ {
250795
+ "name": "StylesOutput",
250796
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
250797
+ "description": "Used to collect styles. The format will be:\n\n```js\n{\n '/absolute/file/name': [\n '.styles-1 { ... }'\n ]\n}\n```",
250798
+ "declarations": [
250799
+ {
250800
+ "name": "StylesOutput",
250801
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250802
+ }
250803
+ ],
250804
+ "tags": {},
250805
+ "type": {
250806
+ "kind": "type",
250807
+ "typeParameters": [],
250808
+ "value": {
250809
+ "kind": "external",
250810
+ "name": "Record",
250811
+ "url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
250812
+ "typeParameters": [
250813
+ {
250814
+ "kind": "primitive",
250815
+ "value": "string"
250816
+ },
250817
+ {
250818
+ "kind": "array",
250819
+ "value": {
250820
+ "kind": "primitive",
250821
+ "value": "string"
250822
+ }
250823
+ }
250824
+ ]
250825
+ }
250826
+ }
250827
+ },
250828
+ {
250829
+ "name": "Config",
250830
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
250831
+ "description": "",
250832
+ "declarations": [
250833
+ {
250834
+ "name": "Config",
250835
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250836
+ }
250837
+ ],
250838
+ "tags": {},
250839
+ "type": {
250840
+ "kind": "object",
250841
+ "properties": [
250842
+ {
250843
+ "kind": "property",
250844
+ "name": "prefix",
250845
+ "required": false,
250846
+ "type": {
250847
+ "kind": "primitive",
250848
+ "value": "string"
250849
+ },
250850
+ "description": "The prefix for all CSS class names and variables. This should be something short and\ndistinguish your CSS class names from others on the page.",
250851
+ "declarations": [
250852
+ {
250853
+ "name": "prefix",
250854
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250855
+ }
250856
+ ],
250857
+ "tags": {}
250858
+ },
250859
+ {
250860
+ "kind": "property",
250861
+ "name": "fallbackFiles",
250862
+ "required": false,
250863
+ "type": {
250864
+ "kind": "array",
250865
+ "value": {
250866
+ "kind": "primitive",
250867
+ "value": "string"
250868
+ }
250869
+ },
250870
+ "description": "If you wish to automatically include CSS variable fallbacks, you can provide paths to CSS files\nthat contain CSS variables. Fallbacks are useful if you expect your CSS to be loaded in an\nenvironment that might not include these CSS files. An example might be Storybook or other dev\nenvironments where you want your CSS to look good even in these environments. Fallbacks make\nbigger files because fallbacks are embedded.\n\nFor example:\n```ts\nconst myComponent = createStyles({\n color: '--primary-color-100'\n})\n```\n\nIf you provide a fallback file that defines `--primary-color-100`, the fallback will be\ninlined:\n```css\n// without\n.my-component{color:var(--primary-color-100);}\n\n// with fallback\n.my-component{color:var(--primary-color-100,#0000ff);}\n```\n\nThe benefit is your CSS will work even without the files that define all your global CSS\nvariables.",
250871
+ "declarations": [
250872
+ {
250873
+ "name": "fallbackFiles",
250874
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250875
+ }
250876
+ ],
250877
+ "tags": {}
250878
+ },
250879
+ {
250880
+ "kind": "property",
250881
+ "name": "additionalTransforms",
250882
+ "required": false,
250883
+ "type": {
250884
+ "kind": "array",
250885
+ "value": {
250886
+ "kind": "symbol",
250887
+ "name": "NodeTransformer",
250888
+ "value": "NodeTransformer"
250889
+ }
250890
+ },
250891
+ "description": "Optional additional transforms. A transform takes an AST node and optionally returns a new AST\nnode. This is useful if your source files use custom utility functions. The style\ntransformation process must receive static strings while reading your source files. The base\ntransformers handle all style utilities provided by `@workday/canvas-kit-styling`, but you may\nuse more. The transformer makes use of TypeScript's type checker to extract a static types out\nof variables, but will throw errors if it finds a generic type like `string` or `number`. If\nyou get these errors and the error points to a function, maybe you need an additional\ntransformer to understand the code. Some simple examples from `@workday/canvas-kit-styling` are\n`px2rem` and `calc.*`. Those have special handlers that are allowed to return new AST nodes\nthat can be further processed. You can return `NumericLiteral`, `StringLiteral`, or\n`TemplateExpression` AST nodes. You can see `handlePx2Rem` and `handleCalc` transformers as\nexamples as well as associated tests.\n\nTransforms are called using the visitor pattern. The order is innermost to outermost of the\nAST. This means if you have a special utility function used to return a style property, it will\nbe called before the `createStyles` or `createStencils` is called.\n\nhttps://ts-ast-viewer.com/#code/MYewdgzgLgBAtgTwMIjgB3AUzLAvDYAJ0wEMpMBlKBAG0wgAoBvAKBhjRIBMuBLMAOYAuGAMxQACtz6CGAcgAeNOQEoWAXxVA\n```ts\nconst myComponent = createStyles({\n padding: getPadding('xl')\n})\n```\n\nIn this example, your transform will be called with `'xl'`, `getPadding`, the `padding`\nPropertyAssignment, `createStyles`, then variable declarations for `myComponent`. You must\ncreate your own filters for each AST node so you only transform the correct nodes. You can\nvisit ts-ast-viewer.com to see the AST and types. You can also use the factory creator to\nreturn new AST.",
250892
+ "declarations": [
250893
+ {
250894
+ "name": "additionalTransforms",
250895
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250896
+ }
250897
+ ],
250898
+ "tags": {}
250899
+ },
250900
+ {
250901
+ "kind": "property",
250902
+ "name": "getFileName",
250903
+ "required": false,
250904
+ "type": {
250905
+ "kind": "function",
250906
+ "parameters": [
250907
+ {
250908
+ "kind": "parameter",
250909
+ "name": "path",
250910
+ "type": {
250911
+ "kind": "primitive",
250912
+ "value": "string"
250913
+ },
250914
+ "required": true,
250915
+ "rest": false,
250916
+ "description": "",
250917
+ "declarations": [
250918
+ {
250919
+ "name": "path",
250920
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250921
+ }
250922
+ ],
250923
+ "tags": {}
250924
+ }
250925
+ ],
250926
+ "members": [],
250927
+ "returnType": {
250928
+ "kind": "primitive",
250929
+ "value": "string"
250930
+ }
250931
+ },
250932
+ "description": "This will be called every time a style or keyframe needs to be injected into extracted style\nfiles. By default, the file name will be the current file with the `.tsx` replaced with a\n`.css`. If you wish to move or combine styles into a file, provide a custom `getFileName`. You\ncan return the same file path for multiple sources. If the same file is used (maybe always\nreturning `index.css`), new styles will be appended to the end of the file.",
250933
+ "declarations": [
250934
+ {
250935
+ "name": "getFileName",
250936
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250937
+ }
250938
+ ],
250939
+ "tags": {}
250940
+ },
250941
+ {
250942
+ "kind": "property",
250943
+ "name": "objectTransforms",
250944
+ "required": false,
250945
+ "type": {
250946
+ "kind": "array",
250947
+ "value": {
250948
+ "kind": "symbol",
250949
+ "name": "ObjectTransform",
250950
+ "value": "ObjectTransform"
250951
+ }
250952
+ },
250953
+ "description": "Object transforms take an AST node that represents a style object and turn it into a\n`NestedStyleObject` or return `void`. If an object transform returns an object, transformation\nparsing stops on that node. If `void` is returned, processing continues using\n`parseObjectToStaticValue`. These transforms are useful if you have custom utility functions\nthat are not statically parsable by the static styling transformer.",
250954
+ "declarations": [
250955
+ {
250956
+ "name": "objectTransforms",
250957
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250958
+ }
250959
+ ],
250960
+ "tags": {}
250961
+ },
250962
+ {
250963
+ "kind": "property",
250964
+ "name": "propertyTransforms",
250965
+ "required": false,
250966
+ "type": {
250967
+ "kind": "array",
250968
+ "value": {
250969
+ "kind": "symbol",
250970
+ "name": "PropertyTransform",
250971
+ "value": "PropertyTransform"
250972
+ }
250973
+ },
250974
+ "description": "",
250975
+ "declarations": [
250976
+ {
250977
+ "name": "propertyTransforms",
250978
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250979
+ }
250980
+ ],
250981
+ "tags": {}
250982
+ }
250983
+ ]
250984
+ }
250985
+ },
250986
+ {
250987
+ "name": "ObjectTransform",
250988
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
250989
+ "description": "",
250990
+ "declarations": [
250991
+ {
250992
+ "name": "ObjectTransform",
250993
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
250994
+ }
250995
+ ],
250996
+ "tags": {},
250997
+ "type": {
250998
+ "kind": "type",
250999
+ "typeParameters": [],
251000
+ "value": {
251001
+ "kind": "function",
251002
+ "parameters": [
251003
+ {
251004
+ "kind": "parameter",
251005
+ "name": "node",
251006
+ "type": {
251007
+ "kind": "symbol",
251008
+ "name": "ts.Node",
251009
+ "value": "Node"
251010
+ },
251011
+ "required": true,
251012
+ "rest": false,
251013
+ "description": "",
251014
+ "declarations": [
251015
+ {
251016
+ "name": "node",
251017
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
251018
+ }
251019
+ ],
251020
+ "tags": {}
251021
+ },
251022
+ {
251023
+ "kind": "parameter",
251024
+ "name": "context",
251025
+ "type": {
251026
+ "kind": "symbol",
251027
+ "name": "TransformerContext",
251028
+ "value": "TransformerContext"
251029
+ },
251030
+ "required": true,
251031
+ "rest": false,
251032
+ "description": "",
251033
+ "declarations": [
251034
+ {
251035
+ "name": "context",
251036
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
251037
+ }
251038
+ ],
251039
+ "tags": {}
251040
+ }
251041
+ ],
251042
+ "members": [],
251043
+ "returnType": {
251044
+ "kind": "union",
251045
+ "value": [
251046
+ {
251047
+ "kind": "symbol",
251048
+ "name": "NestedStyleObject",
251049
+ "value": "NestedStyleObject"
251050
+ },
251051
+ {
251052
+ "kind": "primitive",
251053
+ "value": "void"
251054
+ }
251055
+ ]
251056
+ }
251057
+ }
251058
+ }
251059
+ },
251060
+ {
251061
+ "name": "PropertyTransform",
251062
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts",
251063
+ "description": "",
251064
+ "declarations": [
251065
+ {
251066
+ "name": "PropertyTransform",
251067
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
251068
+ }
251069
+ ],
251070
+ "tags": {},
251071
+ "type": {
251072
+ "kind": "type",
251073
+ "typeParameters": [],
251074
+ "value": {
251075
+ "kind": "function",
251076
+ "parameters": [
251077
+ {
251078
+ "kind": "parameter",
251079
+ "name": "node",
251080
+ "type": {
251081
+ "kind": "symbol",
251082
+ "name": "ts.Node",
251083
+ "value": "Node"
251084
+ },
251085
+ "required": true,
251086
+ "rest": false,
251087
+ "description": "",
251088
+ "declarations": [
251089
+ {
251090
+ "name": "node",
251091
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
251092
+ }
251093
+ ],
251094
+ "tags": {}
251095
+ },
251096
+ {
251097
+ "kind": "parameter",
251098
+ "name": "context",
251099
+ "type": {
251100
+ "kind": "symbol",
251101
+ "name": "TransformerContext",
251102
+ "value": "TransformerContext"
251103
+ },
251104
+ "required": true,
251105
+ "rest": false,
251106
+ "description": "",
251107
+ "declarations": [
251108
+ {
251109
+ "name": "context",
251110
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling-transform/lib/utils/types.ts"
251111
+ }
251112
+ ],
251113
+ "tags": {}
251114
+ }
251115
+ ],
251116
+ "members": [],
251117
+ "returnType": {
251118
+ "kind": "union",
251119
+ "value": [
251120
+ {
251121
+ "kind": "primitive",
251122
+ "value": "string"
251123
+ },
251124
+ {
251125
+ "kind": "primitive",
251126
+ "value": "void"
251127
+ }
251128
+ ]
251129
+ }
251130
+ }
251131
+ }
251132
+ },
250176
251133
  {
250177
251134
  "name": "calc",
250178
251135
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/calc.ts",