@workday/canvas-kit-docs 11.0.0-alpha.710-next.0 → 11.0.0-alpha.713-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 +834 -154
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -253910,12 +253910,12 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
253910
253910
|
}
|
|
253911
253911
|
},
|
|
253912
253912
|
{
|
|
253913
|
-
"name": "
|
|
253913
|
+
"name": "DefaultedVarsMapToCSSVarNames",
|
|
253914
253914
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
253915
|
-
"description": "",
|
|
253915
|
+
"description": "Maps JS var names to CSS variable names\n\n```ts\n// ID unknown\nDefaultedVarsMapToCSSVarNames<{foo: 'red'}, never> = Record<'foo', string>\n// ID unknown, nested\nDefaultedVarsMapToCSSVarNames<{foo: { bar: 'red' }}> = Record<'foo', Record<'bar', string>>\n\n// ID known\nDefaultedVarsMapToCSSVarNames<{foo: { bar: 'red' }}, 'my-id'> = { foo: '--my-id-red' }\n// ID known, nested\nDefaultedVarsMapToCSSVarNames<{foo: { bar: 'red' }}, 'my-id'> = { foo: { bar: '--my-id-red' }}\n```",
|
|
253916
253916
|
"declarations": [
|
|
253917
253917
|
{
|
|
253918
|
-
"name": "
|
|
253918
|
+
"name": "DefaultedVarsMapToCSSVarNames",
|
|
253919
253919
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
253920
253920
|
}
|
|
253921
253921
|
],
|
|
@@ -253925,7 +253925,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
253925
253925
|
"typeParameters": [
|
|
253926
253926
|
{
|
|
253927
253927
|
"kind": "typeParameter",
|
|
253928
|
-
"name": "
|
|
253928
|
+
"name": "V",
|
|
253929
253929
|
"constraint": {
|
|
253930
253930
|
"kind": "union",
|
|
253931
253931
|
"value": [
|
|
@@ -254017,7 +254017,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254017
254017
|
"kind": "conditional",
|
|
254018
254018
|
"check": {
|
|
254019
254019
|
"kind": "generic",
|
|
254020
|
-
"name": "
|
|
254020
|
+
"name": "V"
|
|
254021
254021
|
},
|
|
254022
254022
|
"extends": {
|
|
254023
254023
|
"kind": "external",
|
|
@@ -254042,7 +254042,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254042
254042
|
{
|
|
254043
254043
|
"kind": "unknown",
|
|
254044
254044
|
"value": "unknown",
|
|
254045
|
-
"text": "keyof
|
|
254045
|
+
"text": "keyof V"
|
|
254046
254046
|
},
|
|
254047
254047
|
{
|
|
254048
254048
|
"kind": "primitive",
|
|
@@ -254053,17 +254053,177 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254053
254053
|
"falseType": {
|
|
254054
254054
|
"kind": "unknown",
|
|
254055
254055
|
"value": "unknown",
|
|
254056
|
-
"text": "{[K in keyof
|
|
254056
|
+
"text": "{[K in keyof V]: Record<keyof V[K], string>}"
|
|
254057
254057
|
}
|
|
254058
254058
|
},
|
|
254059
254059
|
"falseType": {
|
|
254060
254060
|
"kind": "unknown",
|
|
254061
254061
|
"value": "unknown",
|
|
254062
|
-
"text": "{\n [K in keyof
|
|
254062
|
+
"text": "{\n [K in keyof V]: V[K] extends Record<string, string>\n ? DefaultedVarsMapToCSSVarNames<V[K], `${ID}-${ToString<K>}`> // TypeScript doesn't know K is a string here and will throw an error, so we have to coerce it\n : CSSVarName<ID, K>;\n }"
|
|
254063
254063
|
}
|
|
254064
254064
|
}
|
|
254065
254065
|
}
|
|
254066
254066
|
},
|
|
254067
|
+
{
|
|
254068
|
+
"name": "DefaultedVarsMap",
|
|
254069
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
254070
|
+
"description": "Maps CSS var names to defaulted values if possible. If no ID is provided, TypeScript won't know\nthe CSS var name and will return `Record<string, string>`. If the ID is known, a full mapping\nwill be returned.\n\n```ts\n// ID known\nDefaultedVarsMap<{foo: 'red'}, 'my-id'> = { '--my-id-foo': 'red' }\n// ID known, nested\nDefaultedVarsMap<{foo: { bar: 'red' }}, 'my-id'> = { foo: { '--my-id-bar': 'red' }}\n```",
|
|
254071
|
+
"declarations": [
|
|
254072
|
+
{
|
|
254073
|
+
"name": "DefaultedVarsMap",
|
|
254074
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
254075
|
+
}
|
|
254076
|
+
],
|
|
254077
|
+
"tags": {},
|
|
254078
|
+
"type": {
|
|
254079
|
+
"kind": "object",
|
|
254080
|
+
"properties": [
|
|
254081
|
+
{
|
|
254082
|
+
"kind": "property",
|
|
254083
|
+
"name": "$defaults",
|
|
254084
|
+
"required": true,
|
|
254085
|
+
"type": {
|
|
254086
|
+
"kind": "conditional",
|
|
254087
|
+
"check": {
|
|
254088
|
+
"kind": "tuple",
|
|
254089
|
+
"value": [
|
|
254090
|
+
{
|
|
254091
|
+
"kind": "generic",
|
|
254092
|
+
"name": "ID"
|
|
254093
|
+
}
|
|
254094
|
+
]
|
|
254095
|
+
},
|
|
254096
|
+
"extends": {
|
|
254097
|
+
"kind": "tuple",
|
|
254098
|
+
"value": [
|
|
254099
|
+
{
|
|
254100
|
+
"kind": "primitive",
|
|
254101
|
+
"value": "never"
|
|
254102
|
+
}
|
|
254103
|
+
]
|
|
254104
|
+
},
|
|
254105
|
+
"trueType": {
|
|
254106
|
+
"kind": "external",
|
|
254107
|
+
"name": "Record",
|
|
254108
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
254109
|
+
"typeParameters": [
|
|
254110
|
+
{
|
|
254111
|
+
"kind": "primitive",
|
|
254112
|
+
"value": "string"
|
|
254113
|
+
},
|
|
254114
|
+
{
|
|
254115
|
+
"kind": "primitive",
|
|
254116
|
+
"value": "string"
|
|
254117
|
+
}
|
|
254118
|
+
]
|
|
254119
|
+
},
|
|
254120
|
+
"falseType": {
|
|
254121
|
+
"kind": "conditional",
|
|
254122
|
+
"check": {
|
|
254123
|
+
"kind": "generic",
|
|
254124
|
+
"name": "V"
|
|
254125
|
+
},
|
|
254126
|
+
"extends": {
|
|
254127
|
+
"kind": "external",
|
|
254128
|
+
"name": "Record",
|
|
254129
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
254130
|
+
"typeParameters": [
|
|
254131
|
+
{
|
|
254132
|
+
"kind": "primitive",
|
|
254133
|
+
"value": "string"
|
|
254134
|
+
},
|
|
254135
|
+
{
|
|
254136
|
+
"kind": "primitive",
|
|
254137
|
+
"value": "string"
|
|
254138
|
+
}
|
|
254139
|
+
]
|
|
254140
|
+
},
|
|
254141
|
+
"trueType": {
|
|
254142
|
+
"kind": "unknown",
|
|
254143
|
+
"value": "unknown",
|
|
254144
|
+
"text": "{\n [K in keyof V as CSSVarName<ID, K>]: V[K]; // The variables are a simple flat object with string values\n }"
|
|
254145
|
+
},
|
|
254146
|
+
"falseType": {
|
|
254147
|
+
"kind": "unknown",
|
|
254148
|
+
"value": "unknown",
|
|
254149
|
+
"text": "{[K in FlattenObjectKeys<V> as CSSVarName<ID, K>]: ExtractValue<V, K>}"
|
|
254150
|
+
}
|
|
254151
|
+
}
|
|
254152
|
+
},
|
|
254153
|
+
"description": "",
|
|
254154
|
+
"declarations": [
|
|
254155
|
+
{
|
|
254156
|
+
"name": "$defaults",
|
|
254157
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
254158
|
+
}
|
|
254159
|
+
],
|
|
254160
|
+
"tags": {}
|
|
254161
|
+
}
|
|
254162
|
+
],
|
|
254163
|
+
"typeParameters": [
|
|
254164
|
+
{
|
|
254165
|
+
"kind": "typeParameter",
|
|
254166
|
+
"name": "V",
|
|
254167
|
+
"constraint": {
|
|
254168
|
+
"kind": "union",
|
|
254169
|
+
"value": [
|
|
254170
|
+
{
|
|
254171
|
+
"kind": "external",
|
|
254172
|
+
"name": "Record",
|
|
254173
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
254174
|
+
"typeParameters": [
|
|
254175
|
+
{
|
|
254176
|
+
"kind": "primitive",
|
|
254177
|
+
"value": "string"
|
|
254178
|
+
},
|
|
254179
|
+
{
|
|
254180
|
+
"kind": "primitive",
|
|
254181
|
+
"value": "string"
|
|
254182
|
+
}
|
|
254183
|
+
]
|
|
254184
|
+
},
|
|
254185
|
+
{
|
|
254186
|
+
"kind": "external",
|
|
254187
|
+
"name": "Record",
|
|
254188
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
254189
|
+
"typeParameters": [
|
|
254190
|
+
{
|
|
254191
|
+
"kind": "primitive",
|
|
254192
|
+
"value": "string"
|
|
254193
|
+
},
|
|
254194
|
+
{
|
|
254195
|
+
"kind": "external",
|
|
254196
|
+
"name": "Record",
|
|
254197
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
254198
|
+
"typeParameters": [
|
|
254199
|
+
{
|
|
254200
|
+
"kind": "primitive",
|
|
254201
|
+
"value": "string"
|
|
254202
|
+
},
|
|
254203
|
+
{
|
|
254204
|
+
"kind": "primitive",
|
|
254205
|
+
"value": "string"
|
|
254206
|
+
}
|
|
254207
|
+
]
|
|
254208
|
+
}
|
|
254209
|
+
]
|
|
254210
|
+
}
|
|
254211
|
+
]
|
|
254212
|
+
},
|
|
254213
|
+
"required": true
|
|
254214
|
+
},
|
|
254215
|
+
{
|
|
254216
|
+
"kind": "typeParameter",
|
|
254217
|
+
"name": "ID",
|
|
254218
|
+
"constraint": {
|
|
254219
|
+
"kind": "primitive",
|
|
254220
|
+
"value": "string"
|
|
254221
|
+
},
|
|
254222
|
+
"required": true
|
|
254223
|
+
}
|
|
254224
|
+
]
|
|
254225
|
+
}
|
|
254226
|
+
},
|
|
254067
254227
|
{
|
|
254068
254228
|
"name": "createDefaultedVars",
|
|
254069
254229
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
@@ -254222,43 +254382,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254222
254382
|
"name": "T"
|
|
254223
254383
|
},
|
|
254224
254384
|
{
|
|
254225
|
-
"kind": "
|
|
254226
|
-
"
|
|
254227
|
-
|
|
254228
|
-
"parameters": [
|
|
254229
|
-
{
|
|
254230
|
-
"kind": "parameter",
|
|
254231
|
-
"name": "modifiers",
|
|
254232
|
-
"type": {
|
|
254233
|
-
"kind": "symbol",
|
|
254234
|
-
"name": "Partial",
|
|
254235
|
-
"typeParameters": [
|
|
254236
|
-
{
|
|
254237
|
-
"kind": "symbol",
|
|
254238
|
-
"name": "ModifierValues",
|
|
254239
|
-
"value": "ModifierValues<T>"
|
|
254240
|
-
}
|
|
254241
|
-
],
|
|
254242
|
-
"value": "Partial<T>"
|
|
254243
|
-
},
|
|
254244
|
-
"required": true,
|
|
254245
|
-
"rest": false,
|
|
254246
|
-
"description": "",
|
|
254247
|
-
"declarations": [
|
|
254248
|
-
{
|
|
254249
|
-
"name": "modifiers",
|
|
254250
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
254251
|
-
}
|
|
254252
|
-
],
|
|
254253
|
-
"tags": {}
|
|
254254
|
-
}
|
|
254255
|
-
],
|
|
254256
|
-
"members": [],
|
|
254257
|
-
"returnType": {
|
|
254258
|
-
"kind": "primitive",
|
|
254259
|
-
"value": "string"
|
|
254260
|
-
}
|
|
254261
|
-
}
|
|
254385
|
+
"kind": "symbol",
|
|
254386
|
+
"name": "ModifierFn",
|
|
254387
|
+
"value": "ModifierFn<T>"
|
|
254262
254388
|
}
|
|
254263
254389
|
]
|
|
254264
254390
|
}
|
|
@@ -254470,14 +254596,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254470
254596
|
"members": [],
|
|
254471
254597
|
"returnType": {
|
|
254472
254598
|
"kind": "symbol",
|
|
254473
|
-
"name": "
|
|
254474
|
-
"
|
|
254475
|
-
{
|
|
254476
|
-
"kind": "generic",
|
|
254477
|
-
"name": "M"
|
|
254478
|
-
}
|
|
254479
|
-
],
|
|
254480
|
-
"value": "ModifierReturn<T>"
|
|
254599
|
+
"name": "ModifierFn",
|
|
254600
|
+
"value": "ModifierFn<M>"
|
|
254481
254601
|
}
|
|
254482
254602
|
}
|
|
254483
254603
|
},
|
|
@@ -254514,23 +254634,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254514
254634
|
},
|
|
254515
254635
|
{
|
|
254516
254636
|
"kind": "symbol",
|
|
254517
|
-
"name": "
|
|
254518
|
-
"
|
|
254519
|
-
{
|
|
254520
|
-
"kind": "union",
|
|
254521
|
-
"value": [
|
|
254522
|
-
{
|
|
254523
|
-
"kind": "primitive",
|
|
254524
|
-
"value": "string"
|
|
254525
|
-
},
|
|
254526
|
-
{
|
|
254527
|
-
"kind": "primitive",
|
|
254528
|
-
"value": "number"
|
|
254529
|
-
}
|
|
254530
|
-
]
|
|
254531
|
-
}
|
|
254532
|
-
],
|
|
254533
|
-
"value": "Properties<TLength, TTime>"
|
|
254637
|
+
"name": "CSSObjectWithVars",
|
|
254638
|
+
"value": "CSSObjectWithVars<CSSObject>"
|
|
254534
254639
|
},
|
|
254535
254640
|
{
|
|
254536
254641
|
"kind": "array",
|
|
@@ -254581,23 +254686,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
254581
254686
|
"required": false,
|
|
254582
254687
|
"type": {
|
|
254583
254688
|
"kind": "symbol",
|
|
254584
|
-
"name": "
|
|
254585
|
-
"
|
|
254586
|
-
{
|
|
254587
|
-
"kind": "union",
|
|
254588
|
-
"value": [
|
|
254589
|
-
{
|
|
254590
|
-
"kind": "primitive",
|
|
254591
|
-
"value": "string"
|
|
254592
|
-
},
|
|
254593
|
-
{
|
|
254594
|
-
"kind": "primitive",
|
|
254595
|
-
"value": "number"
|
|
254596
|
-
}
|
|
254597
|
-
]
|
|
254598
|
-
}
|
|
254599
|
-
],
|
|
254600
|
-
"value": "Properties<TLength, TTime>"
|
|
254689
|
+
"name": "CSSObjectWithVars",
|
|
254690
|
+
"value": "CSSObjectWithVars<CSSObject>"
|
|
254601
254691
|
},
|
|
254602
254692
|
"description": "",
|
|
254603
254693
|
"declarations": [
|
|
@@ -255016,30 +255106,62 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255016
255106
|
]
|
|
255017
255107
|
},
|
|
255018
255108
|
"required": false
|
|
255019
|
-
}
|
|
255020
|
-
|
|
255021
|
-
|
|
255022
|
-
|
|
255023
|
-
|
|
255024
|
-
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
255025
|
-
"typeParameters": [
|
|
255026
|
-
{
|
|
255109
|
+
},
|
|
255110
|
+
{
|
|
255111
|
+
"kind": "typeParameter",
|
|
255112
|
+
"name": "E",
|
|
255113
|
+
"defaultValue": {
|
|
255027
255114
|
"kind": "primitive",
|
|
255028
|
-
"value": "
|
|
255115
|
+
"value": "never"
|
|
255029
255116
|
},
|
|
255030
|
-
{
|
|
255031
|
-
"kind": "
|
|
255032
|
-
"name": "
|
|
255033
|
-
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
255117
|
+
"constraint": {
|
|
255118
|
+
"kind": "symbol",
|
|
255119
|
+
"name": "BaseStencil",
|
|
255034
255120
|
"typeParameters": [
|
|
255035
255121
|
{
|
|
255036
255122
|
"kind": "primitive",
|
|
255037
|
-
"value": "
|
|
255123
|
+
"value": "any"
|
|
255038
255124
|
},
|
|
255039
255125
|
{
|
|
255040
|
-
"kind": "
|
|
255041
|
-
"
|
|
255042
|
-
|
|
255126
|
+
"kind": "primitive",
|
|
255127
|
+
"value": "any"
|
|
255128
|
+
},
|
|
255129
|
+
{
|
|
255130
|
+
"kind": "primitive",
|
|
255131
|
+
"value": "any"
|
|
255132
|
+
},
|
|
255133
|
+
{
|
|
255134
|
+
"kind": "primitive",
|
|
255135
|
+
"value": "any"
|
|
255136
|
+
}
|
|
255137
|
+
],
|
|
255138
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
255139
|
+
},
|
|
255140
|
+
"required": false
|
|
255141
|
+
}
|
|
255142
|
+
],
|
|
255143
|
+
"value": {
|
|
255144
|
+
"kind": "external",
|
|
255145
|
+
"name": "Record",
|
|
255146
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
255147
|
+
"typeParameters": [
|
|
255148
|
+
{
|
|
255149
|
+
"kind": "primitive",
|
|
255150
|
+
"value": "string"
|
|
255151
|
+
},
|
|
255152
|
+
{
|
|
255153
|
+
"kind": "external",
|
|
255154
|
+
"name": "Record",
|
|
255155
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
255156
|
+
"typeParameters": [
|
|
255157
|
+
{
|
|
255158
|
+
"kind": "primitive",
|
|
255159
|
+
"value": "string"
|
|
255160
|
+
},
|
|
255161
|
+
{
|
|
255162
|
+
"kind": "symbol",
|
|
255163
|
+
"name": "StylesReturn",
|
|
255164
|
+
"value": "StylesReturn<V, E>"
|
|
255043
255165
|
}
|
|
255044
255166
|
]
|
|
255045
255167
|
}
|
|
@@ -255131,6 +255253,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255131
255253
|
"type": {
|
|
255132
255254
|
"kind": "object",
|
|
255133
255255
|
"properties": [
|
|
255256
|
+
{
|
|
255257
|
+
"kind": "property",
|
|
255258
|
+
"name": "extends",
|
|
255259
|
+
"required": false,
|
|
255260
|
+
"type": {
|
|
255261
|
+
"kind": "generic",
|
|
255262
|
+
"name": "E"
|
|
255263
|
+
},
|
|
255264
|
+
"description": "A Stencil can extend another stencil. Styles are not copied from one stencil to another, but\nrather the class name generated for each stencil will be included in the stencil output. For\nexample:\n\n```ts\nconst baseStencil = createStencil({\n base: {padding: 5}\n});\nconst extendingStencil = createStencil({\n extends: baseStencil,\n base: {margin: 5}\n});\n```\n\nIn this example, `extendingStencil` does not have a base style that includes `padding`, but\ncalling the stencil will return both style classes created:\n\n```ts\nextendingStencil() // {className: 'css-{base} css-{extending}'}\n```\n\nNotice when the stencil is called, it will return the CSS class name of each stencil.\n\nAn extending stencil can use a `compound` modifier that includes references to the base stencil\nmodifiers. For runtime, each compound modifier has a unique class name. The static CSS\nextraction will use the base modifier name in the selector.",
|
|
255265
|
+
"declarations": [
|
|
255266
|
+
{
|
|
255267
|
+
"name": "extends",
|
|
255268
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255269
|
+
}
|
|
255270
|
+
],
|
|
255271
|
+
"tags": {}
|
|
255272
|
+
},
|
|
255134
255273
|
{
|
|
255135
255274
|
"kind": "property",
|
|
255136
255275
|
"name": "vars",
|
|
@@ -255139,7 +255278,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255139
255278
|
"kind": "generic",
|
|
255140
255279
|
"name": "V"
|
|
255141
255280
|
},
|
|
255142
|
-
"description": "",
|
|
255281
|
+
"description": "A stencil can support CSS variables. Since CSS variables cascade by default, variables are\ndefined with defaults. These defaults are added automatically to the `base` styles to prevent\nCSS variables defined higher in the DOM tree from cascading into a component.\n\n```ts\nconst buttonStencil = createStencil({\n vars: {color: 'red'},\n base: {padding: 5}\n})\n```\n\n```css\n.css-button {\n --css-button-color: red;\n padding: 5px;\n}\n```\n\nAccess to variables in `base` and `modifiers` is done via a function wrapper that gives\nall variables.\n\n```ts\nconst buttonStencil = createStyles({\n vars: {color: 'red'},\n base({color}) {\n return {color: color}\n }\n})\n```\n\n```css\n.css-button {\n --css-button-color: red;\n color: var(--css-button-color);\n}\n```",
|
|
255143
255282
|
"declarations": [
|
|
255144
255283
|
{
|
|
255145
255284
|
"name": "vars",
|
|
@@ -255155,7 +255294,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255155
255294
|
"type": {
|
|
255156
255295
|
"kind": "symbol",
|
|
255157
255296
|
"name": "StylesReturn",
|
|
255158
|
-
"value": "StylesReturn<V>"
|
|
255297
|
+
"value": "StylesReturn<V, E>"
|
|
255159
255298
|
},
|
|
255160
255299
|
"description": "Base styles. These styles will always be returned when the stencil is called",
|
|
255161
255300
|
"declarations": [
|
|
@@ -255190,15 +255329,97 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255190
255329
|
"type": {
|
|
255191
255330
|
"kind": "array",
|
|
255192
255331
|
"value": {
|
|
255193
|
-
"kind": "
|
|
255194
|
-
"
|
|
255195
|
-
|
|
255196
|
-
{
|
|
255197
|
-
"kind": "
|
|
255198
|
-
"
|
|
255332
|
+
"kind": "parenthesis",
|
|
255333
|
+
"value": {
|
|
255334
|
+
"kind": "conditional",
|
|
255335
|
+
"check": {
|
|
255336
|
+
"kind": "tuple",
|
|
255337
|
+
"value": [
|
|
255338
|
+
{
|
|
255339
|
+
"kind": "generic",
|
|
255340
|
+
"name": "E"
|
|
255341
|
+
}
|
|
255342
|
+
]
|
|
255343
|
+
},
|
|
255344
|
+
"extends": {
|
|
255345
|
+
"kind": "tuple",
|
|
255346
|
+
"value": [
|
|
255347
|
+
{
|
|
255348
|
+
"kind": "primitive",
|
|
255349
|
+
"value": "never"
|
|
255350
|
+
}
|
|
255351
|
+
]
|
|
255352
|
+
},
|
|
255353
|
+
"trueType": {
|
|
255354
|
+
"kind": "symbol",
|
|
255355
|
+
"name": "StencilCompoundConfig",
|
|
255356
|
+
"typeParameters": [
|
|
255357
|
+
{
|
|
255358
|
+
"kind": "generic",
|
|
255359
|
+
"name": "M"
|
|
255360
|
+
}
|
|
255361
|
+
],
|
|
255362
|
+
"value": "StencilCompoundConfig<M>"
|
|
255363
|
+
},
|
|
255364
|
+
"falseType": {
|
|
255365
|
+
"kind": "conditional",
|
|
255366
|
+
"check": {
|
|
255367
|
+
"kind": "generic",
|
|
255368
|
+
"name": "E"
|
|
255369
|
+
},
|
|
255370
|
+
"extends": {
|
|
255371
|
+
"kind": "symbol",
|
|
255372
|
+
"name": "BaseStencil",
|
|
255373
|
+
"typeParameters": [
|
|
255374
|
+
{
|
|
255375
|
+
"kind": "infer",
|
|
255376
|
+
"value": {
|
|
255377
|
+
"kind": "typeParameter",
|
|
255378
|
+
"name": "ME",
|
|
255379
|
+
"required": true
|
|
255380
|
+
}
|
|
255381
|
+
},
|
|
255382
|
+
{
|
|
255383
|
+
"kind": "primitive",
|
|
255384
|
+
"value": "any"
|
|
255385
|
+
},
|
|
255386
|
+
{
|
|
255387
|
+
"kind": "primitive",
|
|
255388
|
+
"value": "any"
|
|
255389
|
+
},
|
|
255390
|
+
{
|
|
255391
|
+
"kind": "primitive",
|
|
255392
|
+
"value": "any"
|
|
255393
|
+
}
|
|
255394
|
+
],
|
|
255395
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
255396
|
+
},
|
|
255397
|
+
"trueType": {
|
|
255398
|
+
"kind": "symbol",
|
|
255399
|
+
"name": "StencilCompoundConfig",
|
|
255400
|
+
"typeParameters": [
|
|
255401
|
+
{
|
|
255402
|
+
"kind": "intersection",
|
|
255403
|
+
"value": [
|
|
255404
|
+
{
|
|
255405
|
+
"kind": "generic",
|
|
255406
|
+
"name": "ME"
|
|
255407
|
+
},
|
|
255408
|
+
{
|
|
255409
|
+
"kind": "generic",
|
|
255410
|
+
"name": "M"
|
|
255411
|
+
}
|
|
255412
|
+
]
|
|
255413
|
+
}
|
|
255414
|
+
],
|
|
255415
|
+
"value": "StencilCompoundConfig<M>"
|
|
255416
|
+
},
|
|
255417
|
+
"falseType": {
|
|
255418
|
+
"kind": "primitive",
|
|
255419
|
+
"value": "never"
|
|
255420
|
+
}
|
|
255199
255421
|
}
|
|
255200
|
-
|
|
255201
|
-
"value": "StencilCompoundConfig<M>"
|
|
255422
|
+
}
|
|
255202
255423
|
}
|
|
255203
255424
|
},
|
|
255204
255425
|
"description": "Stencil compound modifiers. The styles of a compound modifier are returned only if each modifier\nmatches the specified value. For example:\n\n```tsx\nconst stencil = createStencil({\n base: {\n padding: 5,\n },\n modifiers: {\n size: {\n large: {\n padding: 10\n }\n },\n position: {\n start: {\n paddingInlineStart: 0\n }\n }\n },\n compound: [\n {\n modifiers: {\n size: 'large',\n position: 'start',\n },\n styles: {\n paddingInlineStart: 5\n }\n }\n ]\n})\n\nstencil({})\n// {padding: 5px;}\nstencil({size: 'large'})\n// {padding: 10px;}\nstencil({position: 'start' })\n// {padding: 5px; paddingInlineStart: 0}\nstencil({size: 'large', position: 'start' })\n// {padding: 10px; paddingInlineStart: 5px;}\n```",
|
|
@@ -255258,9 +255479,13 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255258
255479
|
{
|
|
255259
255480
|
"kind": "generic",
|
|
255260
255481
|
"name": "V"
|
|
255482
|
+
},
|
|
255483
|
+
{
|
|
255484
|
+
"kind": "generic",
|
|
255485
|
+
"name": "E"
|
|
255261
255486
|
}
|
|
255262
255487
|
],
|
|
255263
|
-
"value": "StylesReturn<V>"
|
|
255488
|
+
"value": "StylesReturn<V, E>"
|
|
255264
255489
|
}
|
|
255265
255490
|
]
|
|
255266
255491
|
}
|
|
@@ -255323,6 +255548,38 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255323
255548
|
},
|
|
255324
255549
|
"required": false
|
|
255325
255550
|
},
|
|
255551
|
+
{
|
|
255552
|
+
"kind": "typeParameter",
|
|
255553
|
+
"name": "E",
|
|
255554
|
+
"defaultValue": {
|
|
255555
|
+
"kind": "primitive",
|
|
255556
|
+
"value": "never"
|
|
255557
|
+
},
|
|
255558
|
+
"constraint": {
|
|
255559
|
+
"kind": "symbol",
|
|
255560
|
+
"name": "BaseStencil",
|
|
255561
|
+
"typeParameters": [
|
|
255562
|
+
{
|
|
255563
|
+
"kind": "primitive",
|
|
255564
|
+
"value": "any"
|
|
255565
|
+
},
|
|
255566
|
+
{
|
|
255567
|
+
"kind": "primitive",
|
|
255568
|
+
"value": "any"
|
|
255569
|
+
},
|
|
255570
|
+
{
|
|
255571
|
+
"kind": "primitive",
|
|
255572
|
+
"value": "any"
|
|
255573
|
+
},
|
|
255574
|
+
{
|
|
255575
|
+
"kind": "primitive",
|
|
255576
|
+
"value": "any"
|
|
255577
|
+
}
|
|
255578
|
+
],
|
|
255579
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
255580
|
+
},
|
|
255581
|
+
"required": false
|
|
255582
|
+
},
|
|
255326
255583
|
{
|
|
255327
255584
|
"kind": "typeParameter",
|
|
255328
255585
|
"name": "ID",
|
|
@@ -255349,12 +255606,12 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255349
255606
|
}
|
|
255350
255607
|
},
|
|
255351
255608
|
{
|
|
255352
|
-
"name": "
|
|
255609
|
+
"name": "BaseStencil",
|
|
255353
255610
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
255354
255611
|
"description": "",
|
|
255355
255612
|
"declarations": [
|
|
255356
255613
|
{
|
|
255357
|
-
"name": "
|
|
255614
|
+
"name": "BaseStencil",
|
|
255358
255615
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255359
255616
|
}
|
|
255360
255617
|
],
|
|
@@ -255364,17 +255621,33 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255364
255621
|
"properties": [
|
|
255365
255622
|
{
|
|
255366
255623
|
"kind": "property",
|
|
255367
|
-
"name": "
|
|
255624
|
+
"name": "__extends",
|
|
255625
|
+
"required": false,
|
|
255626
|
+
"type": {
|
|
255627
|
+
"kind": "generic",
|
|
255628
|
+
"name": "E"
|
|
255629
|
+
},
|
|
255630
|
+
"description": "",
|
|
255631
|
+
"declarations": [
|
|
255632
|
+
{
|
|
255633
|
+
"name": "__extends",
|
|
255634
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255635
|
+
}
|
|
255636
|
+
],
|
|
255637
|
+
"tags": {}
|
|
255638
|
+
},
|
|
255639
|
+
{
|
|
255640
|
+
"kind": "property",
|
|
255641
|
+
"name": "__vars",
|
|
255368
255642
|
"required": true,
|
|
255369
255643
|
"type": {
|
|
255370
|
-
"kind": "
|
|
255371
|
-
"name": "
|
|
255372
|
-
"value": "DefaultedVars<V, ID>"
|
|
255644
|
+
"kind": "generic",
|
|
255645
|
+
"name": "V"
|
|
255373
255646
|
},
|
|
255374
255647
|
"description": "",
|
|
255375
255648
|
"declarations": [
|
|
255376
255649
|
{
|
|
255377
|
-
"name": "
|
|
255650
|
+
"name": "__vars",
|
|
255378
255651
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255379
255652
|
}
|
|
255380
255653
|
],
|
|
@@ -255382,16 +255655,16 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255382
255655
|
},
|
|
255383
255656
|
{
|
|
255384
255657
|
"kind": "property",
|
|
255385
|
-
"name": "
|
|
255658
|
+
"name": "__modifiers",
|
|
255386
255659
|
"required": true,
|
|
255387
255660
|
"type": {
|
|
255388
|
-
"kind": "
|
|
255389
|
-
"
|
|
255661
|
+
"kind": "generic",
|
|
255662
|
+
"name": "M"
|
|
255390
255663
|
},
|
|
255391
255664
|
"description": "",
|
|
255392
255665
|
"declarations": [
|
|
255393
255666
|
{
|
|
255394
|
-
"name": "
|
|
255667
|
+
"name": "__modifiers",
|
|
255395
255668
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255396
255669
|
}
|
|
255397
255670
|
],
|
|
@@ -255399,17 +255672,16 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255399
255672
|
},
|
|
255400
255673
|
{
|
|
255401
255674
|
"kind": "property",
|
|
255402
|
-
"name": "
|
|
255675
|
+
"name": "__id",
|
|
255403
255676
|
"required": true,
|
|
255404
255677
|
"type": {
|
|
255405
|
-
"kind": "
|
|
255406
|
-
"name": "
|
|
255407
|
-
"value": "StencilModifierReturn<M, V>"
|
|
255678
|
+
"kind": "generic",
|
|
255679
|
+
"name": "ID"
|
|
255408
255680
|
},
|
|
255409
255681
|
"description": "",
|
|
255410
255682
|
"declarations": [
|
|
255411
255683
|
{
|
|
255412
|
-
"name": "
|
|
255684
|
+
"name": "__id",
|
|
255413
255685
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255414
255686
|
}
|
|
255415
255687
|
],
|
|
@@ -255429,7 +255701,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255429
255701
|
"name": "V"
|
|
255430
255702
|
}
|
|
255431
255703
|
],
|
|
255432
|
-
"value": "StencilModifierConfig<V>"
|
|
255704
|
+
"value": "StencilModifierConfig<V, E>"
|
|
255433
255705
|
},
|
|
255434
255706
|
"required": true
|
|
255435
255707
|
},
|
|
@@ -255484,6 +255756,38 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255484
255756
|
},
|
|
255485
255757
|
"required": true
|
|
255486
255758
|
},
|
|
255759
|
+
{
|
|
255760
|
+
"kind": "typeParameter",
|
|
255761
|
+
"name": "E",
|
|
255762
|
+
"defaultValue": {
|
|
255763
|
+
"kind": "primitive",
|
|
255764
|
+
"value": "never"
|
|
255765
|
+
},
|
|
255766
|
+
"constraint": {
|
|
255767
|
+
"kind": "symbol",
|
|
255768
|
+
"name": "BaseStencil",
|
|
255769
|
+
"typeParameters": [
|
|
255770
|
+
{
|
|
255771
|
+
"kind": "primitive",
|
|
255772
|
+
"value": "any"
|
|
255773
|
+
},
|
|
255774
|
+
{
|
|
255775
|
+
"kind": "primitive",
|
|
255776
|
+
"value": "any"
|
|
255777
|
+
},
|
|
255778
|
+
{
|
|
255779
|
+
"kind": "primitive",
|
|
255780
|
+
"value": "any"
|
|
255781
|
+
},
|
|
255782
|
+
{
|
|
255783
|
+
"kind": "primitive",
|
|
255784
|
+
"value": "any"
|
|
255785
|
+
}
|
|
255786
|
+
],
|
|
255787
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
255788
|
+
},
|
|
255789
|
+
"required": false
|
|
255790
|
+
},
|
|
255487
255791
|
{
|
|
255488
255792
|
"kind": "typeParameter",
|
|
255489
255793
|
"name": "ID",
|
|
@@ -255501,35 +255805,371 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255501
255805
|
}
|
|
255502
255806
|
},
|
|
255503
255807
|
{
|
|
255504
|
-
"name": "
|
|
255808
|
+
"name": "Stencil",
|
|
255505
255809
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
255506
|
-
"description": "
|
|
255810
|
+
"description": "",
|
|
255507
255811
|
"declarations": [
|
|
255508
255812
|
{
|
|
255509
|
-
"name": "
|
|
255813
|
+
"name": "Stencil",
|
|
255510
255814
|
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255511
255815
|
}
|
|
255512
255816
|
],
|
|
255513
255817
|
"tags": {},
|
|
255514
255818
|
"type": {
|
|
255515
|
-
"kind": "
|
|
255516
|
-
"
|
|
255819
|
+
"kind": "object",
|
|
255820
|
+
"properties": [
|
|
255517
255821
|
{
|
|
255518
|
-
"kind": "
|
|
255519
|
-
"name": "
|
|
255520
|
-
"
|
|
255521
|
-
|
|
255522
|
-
"
|
|
255523
|
-
"
|
|
255524
|
-
|
|
255525
|
-
|
|
255526
|
-
|
|
255527
|
-
|
|
255528
|
-
|
|
255529
|
-
|
|
255530
|
-
|
|
255531
|
-
|
|
255532
|
-
|
|
255822
|
+
"kind": "property",
|
|
255823
|
+
"name": "vars",
|
|
255824
|
+
"required": true,
|
|
255825
|
+
"type": {
|
|
255826
|
+
"kind": "generic",
|
|
255827
|
+
"name": "StencilDefaultVars"
|
|
255828
|
+
},
|
|
255829
|
+
"description": "",
|
|
255830
|
+
"declarations": [
|
|
255831
|
+
{
|
|
255832
|
+
"name": "vars",
|
|
255833
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255834
|
+
}
|
|
255835
|
+
],
|
|
255836
|
+
"tags": {}
|
|
255837
|
+
},
|
|
255838
|
+
{
|
|
255839
|
+
"kind": "property",
|
|
255840
|
+
"name": "base",
|
|
255841
|
+
"required": true,
|
|
255842
|
+
"type": {
|
|
255843
|
+
"kind": "primitive",
|
|
255844
|
+
"value": "string"
|
|
255845
|
+
},
|
|
255846
|
+
"description": "",
|
|
255847
|
+
"declarations": [
|
|
255848
|
+
{
|
|
255849
|
+
"name": "base",
|
|
255850
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255851
|
+
}
|
|
255852
|
+
],
|
|
255853
|
+
"tags": {}
|
|
255854
|
+
},
|
|
255855
|
+
{
|
|
255856
|
+
"kind": "property",
|
|
255857
|
+
"name": "modifiers",
|
|
255858
|
+
"required": true,
|
|
255859
|
+
"type": {
|
|
255860
|
+
"kind": "conditional",
|
|
255861
|
+
"check": {
|
|
255862
|
+
"kind": "tuple",
|
|
255863
|
+
"value": [
|
|
255864
|
+
{
|
|
255865
|
+
"kind": "generic",
|
|
255866
|
+
"name": "E"
|
|
255867
|
+
}
|
|
255868
|
+
]
|
|
255869
|
+
},
|
|
255870
|
+
"extends": {
|
|
255871
|
+
"kind": "tuple",
|
|
255872
|
+
"value": [
|
|
255873
|
+
{
|
|
255874
|
+
"kind": "symbol",
|
|
255875
|
+
"name": "BaseStencil",
|
|
255876
|
+
"typeParameters": [
|
|
255877
|
+
{
|
|
255878
|
+
"kind": "infer",
|
|
255879
|
+
"value": {
|
|
255880
|
+
"kind": "typeParameter",
|
|
255881
|
+
"name": "ME",
|
|
255882
|
+
"required": true
|
|
255883
|
+
}
|
|
255884
|
+
},
|
|
255885
|
+
{
|
|
255886
|
+
"kind": "infer",
|
|
255887
|
+
"value": {
|
|
255888
|
+
"kind": "typeParameter",
|
|
255889
|
+
"name": "VE",
|
|
255890
|
+
"required": true
|
|
255891
|
+
}
|
|
255892
|
+
},
|
|
255893
|
+
{
|
|
255894
|
+
"kind": "primitive",
|
|
255895
|
+
"value": "any"
|
|
255896
|
+
},
|
|
255897
|
+
{
|
|
255898
|
+
"kind": "primitive",
|
|
255899
|
+
"value": "any"
|
|
255900
|
+
}
|
|
255901
|
+
],
|
|
255902
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
255903
|
+
}
|
|
255904
|
+
]
|
|
255905
|
+
},
|
|
255906
|
+
"trueType": {
|
|
255907
|
+
"kind": "symbol",
|
|
255908
|
+
"name": "StencilModifierReturn",
|
|
255909
|
+
"value": "StencilModifierReturn<ME & M, VE & V>"
|
|
255910
|
+
},
|
|
255911
|
+
"falseType": {
|
|
255912
|
+
"kind": "symbol",
|
|
255913
|
+
"name": "StencilModifierReturn",
|
|
255914
|
+
"typeParameters": [
|
|
255915
|
+
{
|
|
255916
|
+
"kind": "generic",
|
|
255917
|
+
"name": "M"
|
|
255918
|
+
},
|
|
255919
|
+
{
|
|
255920
|
+
"kind": "generic",
|
|
255921
|
+
"name": "V"
|
|
255922
|
+
}
|
|
255923
|
+
],
|
|
255924
|
+
"value": "StencilModifierReturn<M, V>"
|
|
255925
|
+
}
|
|
255926
|
+
},
|
|
255927
|
+
"description": "",
|
|
255928
|
+
"declarations": [
|
|
255929
|
+
{
|
|
255930
|
+
"name": "modifiers",
|
|
255931
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255932
|
+
}
|
|
255933
|
+
],
|
|
255934
|
+
"tags": {}
|
|
255935
|
+
},
|
|
255936
|
+
{
|
|
255937
|
+
"kind": "property",
|
|
255938
|
+
"name": "defaultModifiers",
|
|
255939
|
+
"required": true,
|
|
255940
|
+
"type": {
|
|
255941
|
+
"kind": "unknown",
|
|
255942
|
+
"value": "unknown",
|
|
255943
|
+
"text": "{[K in keyof M]?: keyof M[K]}"
|
|
255944
|
+
},
|
|
255945
|
+
"description": "",
|
|
255946
|
+
"declarations": [
|
|
255947
|
+
{
|
|
255948
|
+
"name": "defaultModifiers",
|
|
255949
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255950
|
+
}
|
|
255951
|
+
],
|
|
255952
|
+
"tags": {}
|
|
255953
|
+
},
|
|
255954
|
+
{
|
|
255955
|
+
"kind": "property",
|
|
255956
|
+
"name": "__extends",
|
|
255957
|
+
"required": false,
|
|
255958
|
+
"type": {
|
|
255959
|
+
"kind": "generic",
|
|
255960
|
+
"name": "E"
|
|
255961
|
+
},
|
|
255962
|
+
"description": "",
|
|
255963
|
+
"declarations": [
|
|
255964
|
+
{
|
|
255965
|
+
"name": "__extends",
|
|
255966
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255967
|
+
}
|
|
255968
|
+
],
|
|
255969
|
+
"tags": {}
|
|
255970
|
+
},
|
|
255971
|
+
{
|
|
255972
|
+
"kind": "property",
|
|
255973
|
+
"name": "__vars",
|
|
255974
|
+
"required": true,
|
|
255975
|
+
"type": {
|
|
255976
|
+
"kind": "generic",
|
|
255977
|
+
"name": "V"
|
|
255978
|
+
},
|
|
255979
|
+
"description": "",
|
|
255980
|
+
"declarations": [
|
|
255981
|
+
{
|
|
255982
|
+
"name": "__vars",
|
|
255983
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
255984
|
+
}
|
|
255985
|
+
],
|
|
255986
|
+
"tags": {}
|
|
255987
|
+
},
|
|
255988
|
+
{
|
|
255989
|
+
"kind": "property",
|
|
255990
|
+
"name": "__modifiers",
|
|
255991
|
+
"required": true,
|
|
255992
|
+
"type": {
|
|
255993
|
+
"kind": "generic",
|
|
255994
|
+
"name": "M"
|
|
255995
|
+
},
|
|
255996
|
+
"description": "",
|
|
255997
|
+
"declarations": [
|
|
255998
|
+
{
|
|
255999
|
+
"name": "__modifiers",
|
|
256000
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
256001
|
+
}
|
|
256002
|
+
],
|
|
256003
|
+
"tags": {}
|
|
256004
|
+
},
|
|
256005
|
+
{
|
|
256006
|
+
"kind": "property",
|
|
256007
|
+
"name": "__id",
|
|
256008
|
+
"required": true,
|
|
256009
|
+
"type": {
|
|
256010
|
+
"kind": "generic",
|
|
256011
|
+
"name": "ID"
|
|
256012
|
+
},
|
|
256013
|
+
"description": "",
|
|
256014
|
+
"declarations": [
|
|
256015
|
+
{
|
|
256016
|
+
"name": "__id",
|
|
256017
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
256018
|
+
}
|
|
256019
|
+
],
|
|
256020
|
+
"tags": {}
|
|
256021
|
+
}
|
|
256022
|
+
],
|
|
256023
|
+
"typeParameters": [
|
|
256024
|
+
{
|
|
256025
|
+
"kind": "typeParameter",
|
|
256026
|
+
"name": "M",
|
|
256027
|
+
"constraint": {
|
|
256028
|
+
"kind": "symbol",
|
|
256029
|
+
"name": "StencilModifierConfig",
|
|
256030
|
+
"typeParameters": [
|
|
256031
|
+
{
|
|
256032
|
+
"kind": "generic",
|
|
256033
|
+
"name": "V"
|
|
256034
|
+
},
|
|
256035
|
+
{
|
|
256036
|
+
"kind": "generic",
|
|
256037
|
+
"name": "E"
|
|
256038
|
+
}
|
|
256039
|
+
],
|
|
256040
|
+
"value": "StencilModifierConfig<V, E>"
|
|
256041
|
+
},
|
|
256042
|
+
"required": true
|
|
256043
|
+
},
|
|
256044
|
+
{
|
|
256045
|
+
"kind": "typeParameter",
|
|
256046
|
+
"name": "V",
|
|
256047
|
+
"constraint": {
|
|
256048
|
+
"kind": "union",
|
|
256049
|
+
"value": [
|
|
256050
|
+
{
|
|
256051
|
+
"kind": "external",
|
|
256052
|
+
"name": "Record",
|
|
256053
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
256054
|
+
"typeParameters": [
|
|
256055
|
+
{
|
|
256056
|
+
"kind": "primitive",
|
|
256057
|
+
"value": "string"
|
|
256058
|
+
},
|
|
256059
|
+
{
|
|
256060
|
+
"kind": "primitive",
|
|
256061
|
+
"value": "string"
|
|
256062
|
+
}
|
|
256063
|
+
]
|
|
256064
|
+
},
|
|
256065
|
+
{
|
|
256066
|
+
"kind": "external",
|
|
256067
|
+
"name": "Record",
|
|
256068
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
256069
|
+
"typeParameters": [
|
|
256070
|
+
{
|
|
256071
|
+
"kind": "primitive",
|
|
256072
|
+
"value": "string"
|
|
256073
|
+
},
|
|
256074
|
+
{
|
|
256075
|
+
"kind": "external",
|
|
256076
|
+
"name": "Record",
|
|
256077
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
256078
|
+
"typeParameters": [
|
|
256079
|
+
{
|
|
256080
|
+
"kind": "primitive",
|
|
256081
|
+
"value": "string"
|
|
256082
|
+
},
|
|
256083
|
+
{
|
|
256084
|
+
"kind": "primitive",
|
|
256085
|
+
"value": "string"
|
|
256086
|
+
}
|
|
256087
|
+
]
|
|
256088
|
+
}
|
|
256089
|
+
]
|
|
256090
|
+
}
|
|
256091
|
+
]
|
|
256092
|
+
},
|
|
256093
|
+
"required": true
|
|
256094
|
+
},
|
|
256095
|
+
{
|
|
256096
|
+
"kind": "typeParameter",
|
|
256097
|
+
"name": "E",
|
|
256098
|
+
"defaultValue": {
|
|
256099
|
+
"kind": "primitive",
|
|
256100
|
+
"value": "never"
|
|
256101
|
+
},
|
|
256102
|
+
"constraint": {
|
|
256103
|
+
"kind": "symbol",
|
|
256104
|
+
"name": "BaseStencil",
|
|
256105
|
+
"typeParameters": [
|
|
256106
|
+
{
|
|
256107
|
+
"kind": "primitive",
|
|
256108
|
+
"value": "any"
|
|
256109
|
+
},
|
|
256110
|
+
{
|
|
256111
|
+
"kind": "primitive",
|
|
256112
|
+
"value": "any"
|
|
256113
|
+
},
|
|
256114
|
+
{
|
|
256115
|
+
"kind": "primitive",
|
|
256116
|
+
"value": "any"
|
|
256117
|
+
},
|
|
256118
|
+
{
|
|
256119
|
+
"kind": "primitive",
|
|
256120
|
+
"value": "any"
|
|
256121
|
+
}
|
|
256122
|
+
],
|
|
256123
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
256124
|
+
},
|
|
256125
|
+
"required": false
|
|
256126
|
+
},
|
|
256127
|
+
{
|
|
256128
|
+
"kind": "typeParameter",
|
|
256129
|
+
"name": "ID",
|
|
256130
|
+
"defaultValue": {
|
|
256131
|
+
"kind": "primitive",
|
|
256132
|
+
"value": "never"
|
|
256133
|
+
},
|
|
256134
|
+
"constraint": {
|
|
256135
|
+
"kind": "primitive",
|
|
256136
|
+
"value": "string"
|
|
256137
|
+
},
|
|
256138
|
+
"required": false
|
|
256139
|
+
}
|
|
256140
|
+
]
|
|
256141
|
+
}
|
|
256142
|
+
},
|
|
256143
|
+
{
|
|
256144
|
+
"name": "createStencil",
|
|
256145
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts",
|
|
256146
|
+
"description": "Creates a reuseable Stencil for styling elements. It takes vars, base styles, modifiers, and\ncompound modifiers.",
|
|
256147
|
+
"declarations": [
|
|
256148
|
+
{
|
|
256149
|
+
"name": "createStencil",
|
|
256150
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/lib/cs.ts"
|
|
256151
|
+
}
|
|
256152
|
+
],
|
|
256153
|
+
"tags": {},
|
|
256154
|
+
"type": {
|
|
256155
|
+
"kind": "function",
|
|
256156
|
+
"typeParameters": [
|
|
256157
|
+
{
|
|
256158
|
+
"kind": "typeParameter",
|
|
256159
|
+
"name": "M",
|
|
256160
|
+
"constraint": {
|
|
256161
|
+
"kind": "symbol",
|
|
256162
|
+
"name": "StencilModifierConfig",
|
|
256163
|
+
"typeParameters": [
|
|
256164
|
+
{
|
|
256165
|
+
"kind": "generic",
|
|
256166
|
+
"name": "V"
|
|
256167
|
+
}
|
|
256168
|
+
],
|
|
256169
|
+
"value": "StencilModifierConfig<V, E>"
|
|
256170
|
+
},
|
|
256171
|
+
"required": true
|
|
256172
|
+
},
|
|
255533
256173
|
{
|
|
255534
256174
|
"kind": "typeParameter",
|
|
255535
256175
|
"name": "V",
|
|
@@ -255585,6 +256225,38 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255585
256225
|
},
|
|
255586
256226
|
"required": false
|
|
255587
256227
|
},
|
|
256228
|
+
{
|
|
256229
|
+
"kind": "typeParameter",
|
|
256230
|
+
"name": "E",
|
|
256231
|
+
"defaultValue": {
|
|
256232
|
+
"kind": "primitive",
|
|
256233
|
+
"value": "never"
|
|
256234
|
+
},
|
|
256235
|
+
"constraint": {
|
|
256236
|
+
"kind": "symbol",
|
|
256237
|
+
"name": "BaseStencil",
|
|
256238
|
+
"typeParameters": [
|
|
256239
|
+
{
|
|
256240
|
+
"kind": "primitive",
|
|
256241
|
+
"value": "any"
|
|
256242
|
+
},
|
|
256243
|
+
{
|
|
256244
|
+
"kind": "primitive",
|
|
256245
|
+
"value": "any"
|
|
256246
|
+
},
|
|
256247
|
+
{
|
|
256248
|
+
"kind": "primitive",
|
|
256249
|
+
"value": "any"
|
|
256250
|
+
},
|
|
256251
|
+
{
|
|
256252
|
+
"kind": "primitive",
|
|
256253
|
+
"value": "any"
|
|
256254
|
+
}
|
|
256255
|
+
],
|
|
256256
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
256257
|
+
},
|
|
256258
|
+
"required": false
|
|
256259
|
+
},
|
|
255588
256260
|
{
|
|
255589
256261
|
"kind": "typeParameter",
|
|
255590
256262
|
"name": "ID",
|
|
@@ -255615,12 +256287,16 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255615
256287
|
"kind": "generic",
|
|
255616
256288
|
"name": "V"
|
|
255617
256289
|
},
|
|
256290
|
+
{
|
|
256291
|
+
"kind": "generic",
|
|
256292
|
+
"name": "E"
|
|
256293
|
+
},
|
|
255618
256294
|
{
|
|
255619
256295
|
"kind": "generic",
|
|
255620
256296
|
"name": "ID"
|
|
255621
256297
|
}
|
|
255622
256298
|
],
|
|
255623
|
-
"value": "StencilConfig<M, V, ID>"
|
|
256299
|
+
"value": "StencilConfig<M, V, E, ID>"
|
|
255624
256300
|
},
|
|
255625
256301
|
"required": true,
|
|
255626
256302
|
"rest": false,
|
|
@@ -255665,12 +256341,16 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
255665
256341
|
"kind": "generic",
|
|
255666
256342
|
"name": "V"
|
|
255667
256343
|
},
|
|
256344
|
+
{
|
|
256345
|
+
"kind": "generic",
|
|
256346
|
+
"name": "E"
|
|
256347
|
+
},
|
|
255668
256348
|
{
|
|
255669
256349
|
"kind": "generic",
|
|
255670
256350
|
"name": "ID"
|
|
255671
256351
|
}
|
|
255672
256352
|
],
|
|
255673
|
-
"value": "Stencil<M, V, ID>"
|
|
256353
|
+
"value": "Stencil<M, V, E, ID>"
|
|
255674
256354
|
}
|
|
255675
256355
|
}
|
|
255676
256356
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.713-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": "^11.0.0-alpha.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.0-alpha.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.713-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.713-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.0-alpha.713-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.0-alpha.713-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^1.0.2",
|
|
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": "f49d99cc052c346c8e364e591d85652bb443d357"
|
|
63
63
|
}
|