@workday/canvas-kit-docs 12.0.9 → 12.1.0-943-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 +627 -0
- package/dist/mdx/react/loading-dots/LoadingDots.mdx +17 -6
- package/dist/mdx/react/loading-dots/examples/Accessible.tsx +1 -1
- package/dist/mdx/react/loading-dots/examples/CustomColorAndAnimation.tsx +19 -0
- package/dist/mdx/react/loading-dots/examples/CustomShape.tsx +32 -0
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -172198,6 +172198,585 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
172198
172198
|
}
|
|
172199
172199
|
}
|
|
172200
172200
|
},
|
|
172201
|
+
{
|
|
172202
|
+
"name": "LoadingDotsProps",
|
|
172203
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx",
|
|
172204
|
+
"description": "",
|
|
172205
|
+
"declarations": [
|
|
172206
|
+
{
|
|
172207
|
+
"name": "LoadingDotsProps",
|
|
172208
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx"
|
|
172209
|
+
}
|
|
172210
|
+
],
|
|
172211
|
+
"tags": {},
|
|
172212
|
+
"type": {
|
|
172213
|
+
"kind": "alias",
|
|
172214
|
+
"name": "LoadingDots"
|
|
172215
|
+
}
|
|
172216
|
+
},
|
|
172217
|
+
{
|
|
172218
|
+
"name": "loadingDotsStencil",
|
|
172219
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx",
|
|
172220
|
+
"description": "",
|
|
172221
|
+
"declarations": [
|
|
172222
|
+
{
|
|
172223
|
+
"name": "loadingDotsStencil",
|
|
172224
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx"
|
|
172225
|
+
}
|
|
172226
|
+
],
|
|
172227
|
+
"tags": {},
|
|
172228
|
+
"type": {
|
|
172229
|
+
"kind": "function",
|
|
172230
|
+
"parameters": [
|
|
172231
|
+
{
|
|
172232
|
+
"kind": "parameter",
|
|
172233
|
+
"name": "options",
|
|
172234
|
+
"type": {
|
|
172235
|
+
"kind": "conditional",
|
|
172236
|
+
"check": {
|
|
172237
|
+
"kind": "tuple",
|
|
172238
|
+
"value": [
|
|
172239
|
+
{
|
|
172240
|
+
"kind": "symbol",
|
|
172241
|
+
"name": "E",
|
|
172242
|
+
"value": "E"
|
|
172243
|
+
}
|
|
172244
|
+
]
|
|
172245
|
+
},
|
|
172246
|
+
"extends": {
|
|
172247
|
+
"kind": "tuple",
|
|
172248
|
+
"value": [
|
|
172249
|
+
{
|
|
172250
|
+
"kind": "primitive",
|
|
172251
|
+
"value": "never"
|
|
172252
|
+
}
|
|
172253
|
+
]
|
|
172254
|
+
},
|
|
172255
|
+
"trueType": {
|
|
172256
|
+
"kind": "intersection",
|
|
172257
|
+
"value": [
|
|
172258
|
+
{
|
|
172259
|
+
"kind": "symbol",
|
|
172260
|
+
"name": "ModifierValuesStencil",
|
|
172261
|
+
"typeParameters": [
|
|
172262
|
+
{
|
|
172263
|
+
"kind": "symbol",
|
|
172264
|
+
"name": "M",
|
|
172265
|
+
"value": "M"
|
|
172266
|
+
},
|
|
172267
|
+
{
|
|
172268
|
+
"kind": "symbol",
|
|
172269
|
+
"name": "V",
|
|
172270
|
+
"value": "V"
|
|
172271
|
+
}
|
|
172272
|
+
],
|
|
172273
|
+
"value": "ModifierValuesStencil<M, V>"
|
|
172274
|
+
},
|
|
172275
|
+
{
|
|
172276
|
+
"kind": "symbol",
|
|
172277
|
+
"name": "VariableValuesStencil",
|
|
172278
|
+
"typeParameters": [
|
|
172279
|
+
{
|
|
172280
|
+
"kind": "symbol",
|
|
172281
|
+
"name": "V",
|
|
172282
|
+
"value": "V"
|
|
172283
|
+
}
|
|
172284
|
+
],
|
|
172285
|
+
"value": "VariableValuesStencil<V>"
|
|
172286
|
+
}
|
|
172287
|
+
]
|
|
172288
|
+
},
|
|
172289
|
+
"falseType": {
|
|
172290
|
+
"kind": "conditional",
|
|
172291
|
+
"check": {
|
|
172292
|
+
"kind": "symbol",
|
|
172293
|
+
"name": "E",
|
|
172294
|
+
"value": "E"
|
|
172295
|
+
},
|
|
172296
|
+
"extends": {
|
|
172297
|
+
"kind": "symbol",
|
|
172298
|
+
"name": "BaseStencil",
|
|
172299
|
+
"typeParameters": [
|
|
172300
|
+
{
|
|
172301
|
+
"kind": "infer",
|
|
172302
|
+
"value": {
|
|
172303
|
+
"kind": "typeParameter",
|
|
172304
|
+
"name": "ME",
|
|
172305
|
+
"required": true
|
|
172306
|
+
}
|
|
172307
|
+
},
|
|
172308
|
+
{
|
|
172309
|
+
"kind": "infer",
|
|
172310
|
+
"value": {
|
|
172311
|
+
"kind": "typeParameter",
|
|
172312
|
+
"name": "VE",
|
|
172313
|
+
"required": true
|
|
172314
|
+
}
|
|
172315
|
+
},
|
|
172316
|
+
{
|
|
172317
|
+
"kind": "primitive",
|
|
172318
|
+
"value": "any"
|
|
172319
|
+
},
|
|
172320
|
+
{
|
|
172321
|
+
"kind": "primitive",
|
|
172322
|
+
"value": "any"
|
|
172323
|
+
}
|
|
172324
|
+
],
|
|
172325
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
172326
|
+
},
|
|
172327
|
+
"trueType": {
|
|
172328
|
+
"kind": "intersection",
|
|
172329
|
+
"value": [
|
|
172330
|
+
{
|
|
172331
|
+
"kind": "symbol",
|
|
172332
|
+
"name": "ModifierValuesStencil",
|
|
172333
|
+
"typeParameters": [
|
|
172334
|
+
{
|
|
172335
|
+
"kind": "intersection",
|
|
172336
|
+
"value": [
|
|
172337
|
+
{
|
|
172338
|
+
"kind": "symbol",
|
|
172339
|
+
"name": "ME",
|
|
172340
|
+
"value": "ME"
|
|
172341
|
+
},
|
|
172342
|
+
{
|
|
172343
|
+
"kind": "symbol",
|
|
172344
|
+
"name": "M",
|
|
172345
|
+
"value": "M"
|
|
172346
|
+
}
|
|
172347
|
+
]
|
|
172348
|
+
}
|
|
172349
|
+
],
|
|
172350
|
+
"value": "ModifierValuesStencil<M, V>"
|
|
172351
|
+
},
|
|
172352
|
+
{
|
|
172353
|
+
"kind": "symbol",
|
|
172354
|
+
"name": "VariableValuesStencil",
|
|
172355
|
+
"typeParameters": [
|
|
172356
|
+
{
|
|
172357
|
+
"kind": "intersection",
|
|
172358
|
+
"value": [
|
|
172359
|
+
{
|
|
172360
|
+
"kind": "symbol",
|
|
172361
|
+
"name": "VE",
|
|
172362
|
+
"value": "VE"
|
|
172363
|
+
},
|
|
172364
|
+
{
|
|
172365
|
+
"kind": "symbol",
|
|
172366
|
+
"name": "V",
|
|
172367
|
+
"value": "V"
|
|
172368
|
+
}
|
|
172369
|
+
]
|
|
172370
|
+
}
|
|
172371
|
+
],
|
|
172372
|
+
"value": "VariableValuesStencil<V>"
|
|
172373
|
+
}
|
|
172374
|
+
]
|
|
172375
|
+
},
|
|
172376
|
+
"falseType": {
|
|
172377
|
+
"kind": "primitive",
|
|
172378
|
+
"value": "never"
|
|
172379
|
+
}
|
|
172380
|
+
}
|
|
172381
|
+
},
|
|
172382
|
+
"required": false,
|
|
172383
|
+
"rest": false,
|
|
172384
|
+
"description": "",
|
|
172385
|
+
"declarations": [
|
|
172386
|
+
{
|
|
172387
|
+
"name": "options",
|
|
172388
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172389
|
+
}
|
|
172390
|
+
],
|
|
172391
|
+
"tags": {}
|
|
172392
|
+
}
|
|
172393
|
+
],
|
|
172394
|
+
"members": [
|
|
172395
|
+
{
|
|
172396
|
+
"kind": "property",
|
|
172397
|
+
"name": "vars",
|
|
172398
|
+
"required": true,
|
|
172399
|
+
"type": {
|
|
172400
|
+
"kind": "symbol",
|
|
172401
|
+
"name": "StencilDefaultVars",
|
|
172402
|
+
"typeParameters": [
|
|
172403
|
+
{
|
|
172404
|
+
"kind": "symbol",
|
|
172405
|
+
"name": "V",
|
|
172406
|
+
"value": "V"
|
|
172407
|
+
},
|
|
172408
|
+
{
|
|
172409
|
+
"kind": "symbol",
|
|
172410
|
+
"name": "E",
|
|
172411
|
+
"value": "E"
|
|
172412
|
+
},
|
|
172413
|
+
{
|
|
172414
|
+
"kind": "symbol",
|
|
172415
|
+
"name": "ID",
|
|
172416
|
+
"value": "ID"
|
|
172417
|
+
}
|
|
172418
|
+
],
|
|
172419
|
+
"value": "StencilDefaultVars<V, E, ID>"
|
|
172420
|
+
},
|
|
172421
|
+
"description": "",
|
|
172422
|
+
"declarations": [
|
|
172423
|
+
{
|
|
172424
|
+
"name": "vars",
|
|
172425
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172426
|
+
}
|
|
172427
|
+
],
|
|
172428
|
+
"tags": {}
|
|
172429
|
+
},
|
|
172430
|
+
{
|
|
172431
|
+
"kind": "property",
|
|
172432
|
+
"name": "base",
|
|
172433
|
+
"required": true,
|
|
172434
|
+
"type": {
|
|
172435
|
+
"kind": "primitive",
|
|
172436
|
+
"value": "string"
|
|
172437
|
+
},
|
|
172438
|
+
"description": "",
|
|
172439
|
+
"declarations": [
|
|
172440
|
+
{
|
|
172441
|
+
"name": "base",
|
|
172442
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172443
|
+
}
|
|
172444
|
+
],
|
|
172445
|
+
"tags": {}
|
|
172446
|
+
},
|
|
172447
|
+
{
|
|
172448
|
+
"kind": "property",
|
|
172449
|
+
"name": "modifiers",
|
|
172450
|
+
"required": true,
|
|
172451
|
+
"type": {
|
|
172452
|
+
"kind": "conditional",
|
|
172453
|
+
"check": {
|
|
172454
|
+
"kind": "tuple",
|
|
172455
|
+
"value": [
|
|
172456
|
+
{
|
|
172457
|
+
"kind": "symbol",
|
|
172458
|
+
"name": "E",
|
|
172459
|
+
"value": "E"
|
|
172460
|
+
}
|
|
172461
|
+
]
|
|
172462
|
+
},
|
|
172463
|
+
"extends": {
|
|
172464
|
+
"kind": "tuple",
|
|
172465
|
+
"value": [
|
|
172466
|
+
{
|
|
172467
|
+
"kind": "symbol",
|
|
172468
|
+
"name": "BaseStencil",
|
|
172469
|
+
"typeParameters": [
|
|
172470
|
+
{
|
|
172471
|
+
"kind": "infer",
|
|
172472
|
+
"value": {
|
|
172473
|
+
"kind": "typeParameter",
|
|
172474
|
+
"name": "ME",
|
|
172475
|
+
"required": true
|
|
172476
|
+
}
|
|
172477
|
+
},
|
|
172478
|
+
{
|
|
172479
|
+
"kind": "infer",
|
|
172480
|
+
"value": {
|
|
172481
|
+
"kind": "typeParameter",
|
|
172482
|
+
"name": "VE",
|
|
172483
|
+
"required": true
|
|
172484
|
+
}
|
|
172485
|
+
},
|
|
172486
|
+
{
|
|
172487
|
+
"kind": "primitive",
|
|
172488
|
+
"value": "any"
|
|
172489
|
+
},
|
|
172490
|
+
{
|
|
172491
|
+
"kind": "primitive",
|
|
172492
|
+
"value": "any"
|
|
172493
|
+
}
|
|
172494
|
+
],
|
|
172495
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
172496
|
+
}
|
|
172497
|
+
]
|
|
172498
|
+
},
|
|
172499
|
+
"trueType": {
|
|
172500
|
+
"kind": "symbol",
|
|
172501
|
+
"name": "StencilModifierReturn",
|
|
172502
|
+
"typeParameters": [
|
|
172503
|
+
{
|
|
172504
|
+
"kind": "intersection",
|
|
172505
|
+
"value": [
|
|
172506
|
+
{
|
|
172507
|
+
"kind": "symbol",
|
|
172508
|
+
"name": "ME",
|
|
172509
|
+
"value": "ME"
|
|
172510
|
+
},
|
|
172511
|
+
{
|
|
172512
|
+
"kind": "symbol",
|
|
172513
|
+
"name": "M",
|
|
172514
|
+
"value": "M"
|
|
172515
|
+
}
|
|
172516
|
+
]
|
|
172517
|
+
},
|
|
172518
|
+
{
|
|
172519
|
+
"kind": "intersection",
|
|
172520
|
+
"value": [
|
|
172521
|
+
{
|
|
172522
|
+
"kind": "symbol",
|
|
172523
|
+
"name": "VE",
|
|
172524
|
+
"value": "VE"
|
|
172525
|
+
},
|
|
172526
|
+
{
|
|
172527
|
+
"kind": "symbol",
|
|
172528
|
+
"name": "V",
|
|
172529
|
+
"value": "V"
|
|
172530
|
+
}
|
|
172531
|
+
]
|
|
172532
|
+
}
|
|
172533
|
+
],
|
|
172534
|
+
"value": "StencilModifierReturn<M, V>"
|
|
172535
|
+
},
|
|
172536
|
+
"falseType": {
|
|
172537
|
+
"kind": "symbol",
|
|
172538
|
+
"name": "StencilModifierReturn",
|
|
172539
|
+
"typeParameters": [
|
|
172540
|
+
{
|
|
172541
|
+
"kind": "symbol",
|
|
172542
|
+
"name": "M",
|
|
172543
|
+
"value": "M"
|
|
172544
|
+
},
|
|
172545
|
+
{
|
|
172546
|
+
"kind": "symbol",
|
|
172547
|
+
"name": "V",
|
|
172548
|
+
"value": "V"
|
|
172549
|
+
}
|
|
172550
|
+
],
|
|
172551
|
+
"value": "StencilModifierReturn<M, V>"
|
|
172552
|
+
}
|
|
172553
|
+
},
|
|
172554
|
+
"description": "",
|
|
172555
|
+
"declarations": [
|
|
172556
|
+
{
|
|
172557
|
+
"name": "modifiers",
|
|
172558
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172559
|
+
}
|
|
172560
|
+
],
|
|
172561
|
+
"tags": {}
|
|
172562
|
+
},
|
|
172563
|
+
{
|
|
172564
|
+
"kind": "property",
|
|
172565
|
+
"name": "defaultModifiers",
|
|
172566
|
+
"required": true,
|
|
172567
|
+
"type": {
|
|
172568
|
+
"kind": "conditional",
|
|
172569
|
+
"check": {
|
|
172570
|
+
"kind": "tuple",
|
|
172571
|
+
"value": [
|
|
172572
|
+
{
|
|
172573
|
+
"kind": "symbol",
|
|
172574
|
+
"name": "E",
|
|
172575
|
+
"value": "E"
|
|
172576
|
+
}
|
|
172577
|
+
]
|
|
172578
|
+
},
|
|
172579
|
+
"extends": {
|
|
172580
|
+
"kind": "tuple",
|
|
172581
|
+
"value": [
|
|
172582
|
+
{
|
|
172583
|
+
"kind": "symbol",
|
|
172584
|
+
"name": "BaseStencil",
|
|
172585
|
+
"typeParameters": [
|
|
172586
|
+
{
|
|
172587
|
+
"kind": "infer",
|
|
172588
|
+
"value": {
|
|
172589
|
+
"kind": "typeParameter",
|
|
172590
|
+
"name": "ME",
|
|
172591
|
+
"required": true
|
|
172592
|
+
}
|
|
172593
|
+
},
|
|
172594
|
+
{
|
|
172595
|
+
"kind": "primitive",
|
|
172596
|
+
"value": "any"
|
|
172597
|
+
},
|
|
172598
|
+
{
|
|
172599
|
+
"kind": "primitive",
|
|
172600
|
+
"value": "any"
|
|
172601
|
+
},
|
|
172602
|
+
{
|
|
172603
|
+
"kind": "primitive",
|
|
172604
|
+
"value": "any"
|
|
172605
|
+
}
|
|
172606
|
+
],
|
|
172607
|
+
"value": "BaseStencil<M, V, E, ID>"
|
|
172608
|
+
}
|
|
172609
|
+
]
|
|
172610
|
+
},
|
|
172611
|
+
"trueType": {
|
|
172612
|
+
"kind": "symbol",
|
|
172613
|
+
"name": "StencilDefaultModifierReturn",
|
|
172614
|
+
"typeParameters": [
|
|
172615
|
+
{
|
|
172616
|
+
"kind": "intersection",
|
|
172617
|
+
"value": [
|
|
172618
|
+
{
|
|
172619
|
+
"kind": "symbol",
|
|
172620
|
+
"name": "ME",
|
|
172621
|
+
"value": "ME"
|
|
172622
|
+
},
|
|
172623
|
+
{
|
|
172624
|
+
"kind": "symbol",
|
|
172625
|
+
"name": "M",
|
|
172626
|
+
"value": "M"
|
|
172627
|
+
}
|
|
172628
|
+
]
|
|
172629
|
+
}
|
|
172630
|
+
],
|
|
172631
|
+
"value": "StencilDefaultModifierReturn<M>"
|
|
172632
|
+
},
|
|
172633
|
+
"falseType": {
|
|
172634
|
+
"kind": "symbol",
|
|
172635
|
+
"name": "StencilDefaultModifierReturn",
|
|
172636
|
+
"typeParameters": [
|
|
172637
|
+
{
|
|
172638
|
+
"kind": "symbol",
|
|
172639
|
+
"name": "M",
|
|
172640
|
+
"value": "M"
|
|
172641
|
+
}
|
|
172642
|
+
],
|
|
172643
|
+
"value": "StencilDefaultModifierReturn<M>"
|
|
172644
|
+
}
|
|
172645
|
+
},
|
|
172646
|
+
"description": "",
|
|
172647
|
+
"declarations": [
|
|
172648
|
+
{
|
|
172649
|
+
"name": "defaultModifiers",
|
|
172650
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172651
|
+
}
|
|
172652
|
+
],
|
|
172653
|
+
"tags": {}
|
|
172654
|
+
},
|
|
172655
|
+
{
|
|
172656
|
+
"kind": "property",
|
|
172657
|
+
"name": "__extends",
|
|
172658
|
+
"required": false,
|
|
172659
|
+
"type": {
|
|
172660
|
+
"kind": "symbol",
|
|
172661
|
+
"name": "E",
|
|
172662
|
+
"value": "E"
|
|
172663
|
+
},
|
|
172664
|
+
"description": "",
|
|
172665
|
+
"declarations": [
|
|
172666
|
+
{
|
|
172667
|
+
"name": "__extends",
|
|
172668
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172669
|
+
}
|
|
172670
|
+
],
|
|
172671
|
+
"tags": {}
|
|
172672
|
+
},
|
|
172673
|
+
{
|
|
172674
|
+
"kind": "property",
|
|
172675
|
+
"name": "__vars",
|
|
172676
|
+
"required": true,
|
|
172677
|
+
"type": {
|
|
172678
|
+
"kind": "symbol",
|
|
172679
|
+
"name": "V",
|
|
172680
|
+
"value": "V"
|
|
172681
|
+
},
|
|
172682
|
+
"description": "",
|
|
172683
|
+
"declarations": [
|
|
172684
|
+
{
|
|
172685
|
+
"name": "__vars",
|
|
172686
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172687
|
+
}
|
|
172688
|
+
],
|
|
172689
|
+
"tags": {}
|
|
172690
|
+
},
|
|
172691
|
+
{
|
|
172692
|
+
"kind": "property",
|
|
172693
|
+
"name": "__modifiers",
|
|
172694
|
+
"required": true,
|
|
172695
|
+
"type": {
|
|
172696
|
+
"kind": "symbol",
|
|
172697
|
+
"name": "M",
|
|
172698
|
+
"value": "M"
|
|
172699
|
+
},
|
|
172700
|
+
"description": "",
|
|
172701
|
+
"declarations": [
|
|
172702
|
+
{
|
|
172703
|
+
"name": "__modifiers",
|
|
172704
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172705
|
+
}
|
|
172706
|
+
],
|
|
172707
|
+
"tags": {}
|
|
172708
|
+
},
|
|
172709
|
+
{
|
|
172710
|
+
"kind": "property",
|
|
172711
|
+
"name": "__id",
|
|
172712
|
+
"required": true,
|
|
172713
|
+
"type": {
|
|
172714
|
+
"kind": "symbol",
|
|
172715
|
+
"name": "ID",
|
|
172716
|
+
"value": "ID"
|
|
172717
|
+
},
|
|
172718
|
+
"description": "",
|
|
172719
|
+
"declarations": [
|
|
172720
|
+
{
|
|
172721
|
+
"name": "__id",
|
|
172722
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172723
|
+
}
|
|
172724
|
+
],
|
|
172725
|
+
"tags": {}
|
|
172726
|
+
}
|
|
172727
|
+
],
|
|
172728
|
+
"returnType": {
|
|
172729
|
+
"kind": "object",
|
|
172730
|
+
"properties": [
|
|
172731
|
+
{
|
|
172732
|
+
"kind": "property",
|
|
172733
|
+
"name": "className",
|
|
172734
|
+
"required": true,
|
|
172735
|
+
"type": {
|
|
172736
|
+
"kind": "primitive",
|
|
172737
|
+
"value": "string"
|
|
172738
|
+
},
|
|
172739
|
+
"description": "",
|
|
172740
|
+
"declarations": [
|
|
172741
|
+
{
|
|
172742
|
+
"name": "className",
|
|
172743
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172744
|
+
}
|
|
172745
|
+
],
|
|
172746
|
+
"tags": {}
|
|
172747
|
+
},
|
|
172748
|
+
{
|
|
172749
|
+
"kind": "property",
|
|
172750
|
+
"name": "style",
|
|
172751
|
+
"required": false,
|
|
172752
|
+
"type": {
|
|
172753
|
+
"kind": "external",
|
|
172754
|
+
"name": "Record",
|
|
172755
|
+
"url": "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
|
|
172756
|
+
"typeParameters": [
|
|
172757
|
+
{
|
|
172758
|
+
"kind": "primitive",
|
|
172759
|
+
"value": "string"
|
|
172760
|
+
},
|
|
172761
|
+
{
|
|
172762
|
+
"kind": "primitive",
|
|
172763
|
+
"value": "string"
|
|
172764
|
+
}
|
|
172765
|
+
]
|
|
172766
|
+
},
|
|
172767
|
+
"description": "",
|
|
172768
|
+
"declarations": [
|
|
172769
|
+
{
|
|
172770
|
+
"name": "style",
|
|
172771
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
|
|
172772
|
+
}
|
|
172773
|
+
],
|
|
172774
|
+
"tags": {}
|
|
172775
|
+
}
|
|
172776
|
+
]
|
|
172777
|
+
}
|
|
172778
|
+
}
|
|
172779
|
+
},
|
|
172201
172780
|
{
|
|
172202
172781
|
"name": "LoadingDots",
|
|
172203
172782
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx",
|
|
@@ -172214,6 +172793,54 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
172214
172793
|
"componentType": "regular",
|
|
172215
172794
|
"displayName": "LoadingDots",
|
|
172216
172795
|
"props": [
|
|
172796
|
+
{
|
|
172797
|
+
"kind": "property",
|
|
172798
|
+
"name": "loadingDotColor",
|
|
172799
|
+
"required": false,
|
|
172800
|
+
"type": {
|
|
172801
|
+
"kind": "primitive",
|
|
172802
|
+
"value": "string"
|
|
172803
|
+
},
|
|
172804
|
+
"description": "Applies backgroundColor to loading dots, intended for use with the circle variant design on grey/dark/image-based backgrounds.",
|
|
172805
|
+
"declarations": [
|
|
172806
|
+
{
|
|
172807
|
+
"name": "loadingDotColor",
|
|
172808
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx"
|
|
172809
|
+
}
|
|
172810
|
+
],
|
|
172811
|
+
"tags": {
|
|
172812
|
+
"default": "`system.color.bg.alt.strong`"
|
|
172813
|
+
},
|
|
172814
|
+
"defaultValue": {
|
|
172815
|
+
"kind": "symbol",
|
|
172816
|
+
"name": "`system.color.bg.alt.strong`",
|
|
172817
|
+
"value": "`system.color.bg.alt.strong`"
|
|
172818
|
+
}
|
|
172819
|
+
},
|
|
172820
|
+
{
|
|
172821
|
+
"kind": "property",
|
|
172822
|
+
"name": "animationDurationMs",
|
|
172823
|
+
"required": false,
|
|
172824
|
+
"type": {
|
|
172825
|
+
"kind": "primitive",
|
|
172826
|
+
"value": "string"
|
|
172827
|
+
},
|
|
172828
|
+
"description": "Duration of the loading animation in milliseconds.",
|
|
172829
|
+
"declarations": [
|
|
172830
|
+
{
|
|
172831
|
+
"name": "animationDurationMs",
|
|
172832
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/loading-dots/lib/LoadingDots.tsx"
|
|
172833
|
+
}
|
|
172834
|
+
],
|
|
172835
|
+
"tags": {
|
|
172836
|
+
"default": "`40ms`"
|
|
172837
|
+
},
|
|
172838
|
+
"defaultValue": {
|
|
172839
|
+
"kind": "symbol",
|
|
172840
|
+
"name": "`40ms`",
|
|
172841
|
+
"value": "`40ms`"
|
|
172842
|
+
}
|
|
172843
|
+
},
|
|
172217
172844
|
{
|
|
172218
172845
|
"kind": "property",
|
|
172219
172846
|
"name": "cs",
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
|
|
1
|
+
import {ExampleCodeBlock, SymbolDoc} from '@workday/canvas-kit-docs';
|
|
2
2
|
import Basic from './examples/Basic';
|
|
3
3
|
import RTL from './examples/RTL';
|
|
4
4
|
import Accessible from './examples/Accessible';
|
|
5
|
+
import CustomShape from './examples/CustomShape';
|
|
6
|
+
import CustomColorAndAnimation from './examples/CustomColorAndAnimation';
|
|
5
7
|
|
|
6
8
|
# Canvas Kit Loading Dots
|
|
7
9
|
|
|
8
10
|
Loading Dots make users aware that content is currently being loaded, processing, or that change
|
|
9
11
|
will occur on the page.
|
|
10
12
|
|
|
11
|
-
[> Workday Design Reference](https://
|
|
13
|
+
[> Workday Design Reference](https://canvas.workdaydesign.com/components/indicators/loading-dots/)
|
|
12
14
|
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
@@ -26,10 +28,20 @@ yarn add @workday/canvas-kit-react
|
|
|
26
28
|
|
|
27
29
|
<ExampleCodeBlock code={RTL} />
|
|
28
30
|
|
|
31
|
+
### Custom Shape
|
|
32
|
+
|
|
33
|
+
<ExampleCodeBlock code={CustomShape} />
|
|
34
|
+
|
|
35
|
+
### Custom Color and Animation
|
|
36
|
+
|
|
37
|
+
<ExampleCodeBlock code={CustomColorAndAnimation} />
|
|
38
|
+
|
|
29
39
|
### Custom Styles
|
|
30
40
|
|
|
31
41
|
Loading Dots supports custom styling via the `cs` prop. For more information, check our
|
|
32
|
-
["How To Customize Styles"](https://workday.github.io/canvas-kit/?path=/docs/styling-how-to-customize-styles--
|
|
42
|
+
["How To Customize Styles"](https://workday.github.io/canvas-kit/?path=/docs/styling-how-to-customize-styles--docs).
|
|
43
|
+
|
|
44
|
+
Custom styling is also supported through the [Loading Dots documented props below](#props).
|
|
33
45
|
|
|
34
46
|
### Adding screen reader support to loading animations
|
|
35
47
|
|
|
@@ -47,7 +59,6 @@ components included in Canvas to describe both the appearance and disappearance
|
|
|
47
59
|
|
|
48
60
|
<ExampleCodeBlock code={Accessible} />
|
|
49
61
|
|
|
50
|
-
##
|
|
62
|
+
## Component API
|
|
51
63
|
|
|
52
|
-
|
|
53
|
-
element.
|
|
64
|
+
<SymbolDoc name="LoadingDots" fileName="/react/" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {LoadingDots} from '@workday/canvas-kit-react/loading-dots';
|
|
3
|
-
import {
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
4
|
import {Flex} from '@workday/canvas-kit-react/layout';
|
|
5
5
|
import {SecondaryButton} from '@workday/canvas-kit-react/button';
|
|
6
6
|
import {createStyles} from '@workday/canvas-kit-styling';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {LoadingDots} from '@workday/canvas-kit-react/loading-dots';
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
5
|
+
|
|
6
|
+
const styleOverrides = {
|
|
7
|
+
parentContainer: createStyles({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
gap: system.space.x4,
|
|
10
|
+
}),
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default () => {
|
|
14
|
+
return (
|
|
15
|
+
<div className={styleOverrides.parentContainer}>
|
|
16
|
+
<LoadingDots loadingDotColor={system.color.fg.primary.default} animationDurationMs="60ms" />
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {LoadingDots, loadingDotsStencil} from '@workday/canvas-kit-react/loading-dots';
|
|
3
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
4
|
+
import {createStyles, createStencil} from '@workday/canvas-kit-styling';
|
|
5
|
+
|
|
6
|
+
const styleOverrides = {
|
|
7
|
+
parentContainer: createStyles({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
gap: system.space.x4,
|
|
10
|
+
}),
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const loadingStencil = createStencil({
|
|
14
|
+
base: {
|
|
15
|
+
borderRadius: system.shape.round,
|
|
16
|
+
backgroundColor: system.color.bg.overlay,
|
|
17
|
+
height: 80,
|
|
18
|
+
width: 80,
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
display: 'flex',
|
|
22
|
+
[loadingDotsStencil.vars.loadingDotColor]: system.color.icon.inverse,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export default () => {
|
|
27
|
+
return (
|
|
28
|
+
<div className={styleOverrides.parentContainer}>
|
|
29
|
+
<LoadingDots cs={loadingStencil()} />
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.1.0-943-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": "^12.0.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^12.0.
|
|
49
|
-
"@workday/canvas-kit-react": "^12.0.
|
|
50
|
-
"@workday/canvas-kit-styling": "^12.0.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^12.1.0-943-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^12.1.0-943-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^12.1.0-943-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^12.1.0-943-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^2.0.1",
|
|
53
53
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"mkdirp": "^1.0.3",
|
|
61
61
|
"typescript": "5.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "6259a19bb3bb9912528c6f949bcad0c4bb7f2e30"
|
|
64
64
|
}
|