@fluentui/web-components 3.0.0-alpha.24 → 3.0.0-alpha.26

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/dist/dts/checkbox/checkbox.d.ts +35 -0
  3. package/dist/dts/checkbox/checkbox.definition.d.ts +9 -0
  4. package/dist/dts/checkbox/checkbox.options.d.ts +28 -0
  5. package/dist/dts/checkbox/checkbox.styles.d.ts +5 -0
  6. package/dist/dts/checkbox/checkbox.template.d.ts +7 -0
  7. package/dist/dts/checkbox/define.d.ts +1 -0
  8. package/dist/dts/checkbox/index.d.ts +5 -0
  9. package/dist/dts/index.d.ts +1 -0
  10. package/dist/dts/theme/index.d.ts +1 -1
  11. package/dist/dts/theme/set-theme.d.ts +2 -0
  12. package/dist/esm/checkbox/checkbox.definition.js +17 -0
  13. package/dist/esm/checkbox/checkbox.definition.js.map +1 -0
  14. package/dist/esm/checkbox/checkbox.js +19 -0
  15. package/dist/esm/checkbox/checkbox.js.map +1 -0
  16. package/dist/esm/checkbox/checkbox.options.js +25 -0
  17. package/dist/esm/checkbox/checkbox.options.js.map +1 -0
  18. package/dist/esm/checkbox/checkbox.styles.js +164 -0
  19. package/dist/esm/checkbox/checkbox.styles.js.map +1 -0
  20. package/dist/esm/checkbox/checkbox.template.js +27 -0
  21. package/dist/esm/checkbox/checkbox.template.js.map +1 -0
  22. package/dist/esm/checkbox/define.js +4 -0
  23. package/dist/esm/checkbox/define.js.map +1 -0
  24. package/dist/esm/checkbox/index.js +6 -0
  25. package/dist/esm/checkbox/index.js.map +1 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/theme/index.js +1 -1
  29. package/dist/esm/theme/index.js.map +1 -1
  30. package/dist/esm/theme/set-theme.js +5 -0
  31. package/dist/esm/theme/set-theme.js.map +1 -1
  32. package/dist/esm/toggle-button/toggle-button.js +3 -0
  33. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  34. package/dist/fluent-web-components.api.json +446 -0
  35. package/dist/web-components.d.ts +91 -0
  36. package/dist/web-components.js +206 -35
  37. package/dist/web-components.min.js +167 -165
  38. package/docs/api-report.md +47 -0
  39. package/package.json +5 -1
  40. package/CHANGELOG.json +0 -3243
  41. package/dist/tsdoc-metadata.json +0 -11
@@ -3226,6 +3226,412 @@
3226
3226
  "endIndex": 5
3227
3227
  }
3228
3228
  },
3229
+ {
3230
+ "kind": "Class",
3231
+ "canonicalReference": "@fluentui/web-components!Checkbox:class",
3232
+ "docComment": "/**\n * The base class used for constucting a fluent checkbox custom element\n *\n * @public\n */\n",
3233
+ "excerptTokens": [
3234
+ {
3235
+ "kind": "Content",
3236
+ "text": "export declare class Checkbox extends "
3237
+ },
3238
+ {
3239
+ "kind": "Reference",
3240
+ "text": "FASTCheckbox",
3241
+ "canonicalReference": "@microsoft/fast-foundation!FASTCheckbox:class"
3242
+ },
3243
+ {
3244
+ "kind": "Content",
3245
+ "text": " "
3246
+ }
3247
+ ],
3248
+ "releaseTag": "Public",
3249
+ "name": "Checkbox",
3250
+ "preserveMemberOrder": false,
3251
+ "members": [
3252
+ {
3253
+ "kind": "Property",
3254
+ "canonicalReference": "@fluentui/web-components!Checkbox#labelPosition:member",
3255
+ "docComment": "/**\n * Sets position of the label relative to the input\n *\n * @default 'after'\n *\n * @remarks\n *\n * HTML Attribute: label-position\n *\n * @public\n */\n",
3256
+ "excerptTokens": [
3257
+ {
3258
+ "kind": "Content",
3259
+ "text": "labelPosition?: "
3260
+ },
3261
+ {
3262
+ "kind": "Reference",
3263
+ "text": "CheckboxLabelPosition",
3264
+ "canonicalReference": "@fluentui/web-components!CheckboxLabelPosition:type"
3265
+ },
3266
+ {
3267
+ "kind": "Content",
3268
+ "text": ";"
3269
+ }
3270
+ ],
3271
+ "isReadonly": false,
3272
+ "isOptional": true,
3273
+ "releaseTag": "Public",
3274
+ "name": "labelPosition",
3275
+ "propertyTypeTokenRange": {
3276
+ "startIndex": 1,
3277
+ "endIndex": 2
3278
+ },
3279
+ "isStatic": false,
3280
+ "isProtected": false
3281
+ },
3282
+ {
3283
+ "kind": "Property",
3284
+ "canonicalReference": "@fluentui/web-components!Checkbox#shape:member",
3285
+ "docComment": "/**\n * Sets shape of the checkbox.\n *\n * @default 'square'\n *\n * @remarks\n *\n * HTML Attribute: shape\n *\n * @public\n */\n",
3286
+ "excerptTokens": [
3287
+ {
3288
+ "kind": "Content",
3289
+ "text": "shape?: "
3290
+ },
3291
+ {
3292
+ "kind": "Reference",
3293
+ "text": "CheckboxShape",
3294
+ "canonicalReference": "@fluentui/web-components!CheckboxShape:type"
3295
+ },
3296
+ {
3297
+ "kind": "Content",
3298
+ "text": ";"
3299
+ }
3300
+ ],
3301
+ "isReadonly": false,
3302
+ "isOptional": true,
3303
+ "releaseTag": "Public",
3304
+ "name": "shape",
3305
+ "propertyTypeTokenRange": {
3306
+ "startIndex": 1,
3307
+ "endIndex": 2
3308
+ },
3309
+ "isStatic": false,
3310
+ "isProtected": false
3311
+ },
3312
+ {
3313
+ "kind": "Property",
3314
+ "canonicalReference": "@fluentui/web-components!Checkbox#size:member",
3315
+ "docComment": "/**\n * Sets size of the checkbox.\n *\n * @default 'medium'\n *\n * @remarks\n *\n * HTML Attribute: size\n *\n * @public\n */\n",
3316
+ "excerptTokens": [
3317
+ {
3318
+ "kind": "Content",
3319
+ "text": "size?: "
3320
+ },
3321
+ {
3322
+ "kind": "Reference",
3323
+ "text": "CheckboxSize",
3324
+ "canonicalReference": "@fluentui/web-components!CheckboxSize:type"
3325
+ },
3326
+ {
3327
+ "kind": "Content",
3328
+ "text": ";"
3329
+ }
3330
+ ],
3331
+ "isReadonly": false,
3332
+ "isOptional": true,
3333
+ "releaseTag": "Public",
3334
+ "name": "size",
3335
+ "propertyTypeTokenRange": {
3336
+ "startIndex": 1,
3337
+ "endIndex": 2
3338
+ },
3339
+ "isStatic": false,
3340
+ "isProtected": false
3341
+ }
3342
+ ],
3343
+ "extendsTokenRange": {
3344
+ "startIndex": 1,
3345
+ "endIndex": 2
3346
+ },
3347
+ "implementsTokenRanges": []
3348
+ },
3349
+ {
3350
+ "kind": "Variable",
3351
+ "canonicalReference": "@fluentui/web-components!CheckboxDefinition:var",
3352
+ "docComment": "/**\n * The Fluent Checkbox Element\n *\n * @remarks\n *\n * HTML Element: \\<fluent-checkbox\\>\n *\n * @public\n */\n",
3353
+ "excerptTokens": [
3354
+ {
3355
+ "kind": "Content",
3356
+ "text": "definition: "
3357
+ },
3358
+ {
3359
+ "kind": "Content",
3360
+ "text": "import(\"@microsoft/fast-element\")."
3361
+ },
3362
+ {
3363
+ "kind": "Reference",
3364
+ "text": "FASTElementDefinition",
3365
+ "canonicalReference": "@microsoft/fast-element!FASTElementDefinition:class"
3366
+ },
3367
+ {
3368
+ "kind": "Content",
3369
+ "text": "<typeof "
3370
+ },
3371
+ {
3372
+ "kind": "Reference",
3373
+ "text": "Checkbox",
3374
+ "canonicalReference": "@fluentui/web-components!Checkbox:class"
3375
+ },
3376
+ {
3377
+ "kind": "Content",
3378
+ "text": ">"
3379
+ }
3380
+ ],
3381
+ "isReadonly": true,
3382
+ "releaseTag": "Public",
3383
+ "name": "CheckboxDefinition",
3384
+ "variableTypeTokenRange": {
3385
+ "startIndex": 1,
3386
+ "endIndex": 6
3387
+ }
3388
+ },
3389
+ {
3390
+ "kind": "TypeAlias",
3391
+ "canonicalReference": "@fluentui/web-components!CheckboxLabelPosition:type",
3392
+ "docComment": "",
3393
+ "excerptTokens": [
3394
+ {
3395
+ "kind": "Content",
3396
+ "text": "export declare type CheckboxLabelPosition = "
3397
+ },
3398
+ {
3399
+ "kind": "Reference",
3400
+ "text": "ValuesOf",
3401
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
3402
+ },
3403
+ {
3404
+ "kind": "Content",
3405
+ "text": "<typeof "
3406
+ },
3407
+ {
3408
+ "kind": "Reference",
3409
+ "text": "CheckboxLabelPosition",
3410
+ "canonicalReference": "@fluentui/web-components!CheckboxLabelPosition:var"
3411
+ },
3412
+ {
3413
+ "kind": "Content",
3414
+ "text": ">"
3415
+ },
3416
+ {
3417
+ "kind": "Content",
3418
+ "text": ";"
3419
+ }
3420
+ ],
3421
+ "releaseTag": "Public",
3422
+ "name": "CheckboxLabelPosition",
3423
+ "typeTokenRange": {
3424
+ "startIndex": 1,
3425
+ "endIndex": 5
3426
+ }
3427
+ },
3428
+ {
3429
+ "kind": "Variable",
3430
+ "canonicalReference": "@fluentui/web-components!CheckboxLabelPosition:var",
3431
+ "docComment": "/**\n * Checkbox label position\n *\n * @public\n */\n",
3432
+ "excerptTokens": [
3433
+ {
3434
+ "kind": "Content",
3435
+ "text": "CheckboxLabelPosition: "
3436
+ },
3437
+ {
3438
+ "kind": "Content",
3439
+ "text": "{\n readonly before: \"before\";\n readonly after: \"after\";\n}"
3440
+ }
3441
+ ],
3442
+ "isReadonly": true,
3443
+ "releaseTag": "Public",
3444
+ "name": "CheckboxLabelPosition",
3445
+ "variableTypeTokenRange": {
3446
+ "startIndex": 1,
3447
+ "endIndex": 2
3448
+ }
3449
+ },
3450
+ {
3451
+ "kind": "TypeAlias",
3452
+ "canonicalReference": "@fluentui/web-components!CheckboxShape:type",
3453
+ "docComment": "",
3454
+ "excerptTokens": [
3455
+ {
3456
+ "kind": "Content",
3457
+ "text": "export declare type CheckboxShape = "
3458
+ },
3459
+ {
3460
+ "kind": "Reference",
3461
+ "text": "ValuesOf",
3462
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
3463
+ },
3464
+ {
3465
+ "kind": "Content",
3466
+ "text": "<typeof "
3467
+ },
3468
+ {
3469
+ "kind": "Reference",
3470
+ "text": "CheckboxShape",
3471
+ "canonicalReference": "@fluentui/web-components!CheckboxShape:var"
3472
+ },
3473
+ {
3474
+ "kind": "Content",
3475
+ "text": ">"
3476
+ },
3477
+ {
3478
+ "kind": "Content",
3479
+ "text": ";"
3480
+ }
3481
+ ],
3482
+ "releaseTag": "Public",
3483
+ "name": "CheckboxShape",
3484
+ "typeTokenRange": {
3485
+ "startIndex": 1,
3486
+ "endIndex": 5
3487
+ }
3488
+ },
3489
+ {
3490
+ "kind": "Variable",
3491
+ "canonicalReference": "@fluentui/web-components!CheckboxShape:var",
3492
+ "docComment": "/**\n * Checkbox shape\n *\n * @public\n */\n",
3493
+ "excerptTokens": [
3494
+ {
3495
+ "kind": "Content",
3496
+ "text": "CheckboxShape: "
3497
+ },
3498
+ {
3499
+ "kind": "Content",
3500
+ "text": "{\n readonly circular: \"circular\";\n readonly square: \"square\";\n}"
3501
+ }
3502
+ ],
3503
+ "isReadonly": true,
3504
+ "releaseTag": "Public",
3505
+ "name": "CheckboxShape",
3506
+ "variableTypeTokenRange": {
3507
+ "startIndex": 1,
3508
+ "endIndex": 2
3509
+ }
3510
+ },
3511
+ {
3512
+ "kind": "TypeAlias",
3513
+ "canonicalReference": "@fluentui/web-components!CheckboxSize:type",
3514
+ "docComment": "",
3515
+ "excerptTokens": [
3516
+ {
3517
+ "kind": "Content",
3518
+ "text": "export declare type CheckboxSize = "
3519
+ },
3520
+ {
3521
+ "kind": "Reference",
3522
+ "text": "ValuesOf",
3523
+ "canonicalReference": "@microsoft/fast-foundation!ValuesOf:type"
3524
+ },
3525
+ {
3526
+ "kind": "Content",
3527
+ "text": "<typeof "
3528
+ },
3529
+ {
3530
+ "kind": "Reference",
3531
+ "text": "CheckboxSize",
3532
+ "canonicalReference": "@fluentui/web-components!CheckboxSize:var"
3533
+ },
3534
+ {
3535
+ "kind": "Content",
3536
+ "text": ">"
3537
+ },
3538
+ {
3539
+ "kind": "Content",
3540
+ "text": ";"
3541
+ }
3542
+ ],
3543
+ "releaseTag": "Public",
3544
+ "name": "CheckboxSize",
3545
+ "typeTokenRange": {
3546
+ "startIndex": 1,
3547
+ "endIndex": 5
3548
+ }
3549
+ },
3550
+ {
3551
+ "kind": "Variable",
3552
+ "canonicalReference": "@fluentui/web-components!CheckboxSize:var",
3553
+ "docComment": "/**\n * Checkbox size\n *\n * @public\n */\n",
3554
+ "excerptTokens": [
3555
+ {
3556
+ "kind": "Content",
3557
+ "text": "CheckboxSize: "
3558
+ },
3559
+ {
3560
+ "kind": "Content",
3561
+ "text": "{\n readonly medium: \"medium\";\n readonly large: \"large\";\n}"
3562
+ }
3563
+ ],
3564
+ "isReadonly": true,
3565
+ "releaseTag": "Public",
3566
+ "name": "CheckboxSize",
3567
+ "variableTypeTokenRange": {
3568
+ "startIndex": 1,
3569
+ "endIndex": 2
3570
+ }
3571
+ },
3572
+ {
3573
+ "kind": "Variable",
3574
+ "canonicalReference": "@fluentui/web-components!CheckboxStyles:var",
3575
+ "docComment": "/**\n * Checkbox styles\n *\n * @public\n */\n",
3576
+ "excerptTokens": [
3577
+ {
3578
+ "kind": "Content",
3579
+ "text": "styles: "
3580
+ },
3581
+ {
3582
+ "kind": "Content",
3583
+ "text": "import(\"@microsoft/fast-element\")."
3584
+ },
3585
+ {
3586
+ "kind": "Reference",
3587
+ "text": "ElementStyles",
3588
+ "canonicalReference": "@microsoft/fast-element!ElementStyles:class"
3589
+ }
3590
+ ],
3591
+ "isReadonly": true,
3592
+ "releaseTag": "Public",
3593
+ "name": "CheckboxStyles",
3594
+ "variableTypeTokenRange": {
3595
+ "startIndex": 1,
3596
+ "endIndex": 3
3597
+ }
3598
+ },
3599
+ {
3600
+ "kind": "Variable",
3601
+ "canonicalReference": "@fluentui/web-components!CheckboxTemplate:var",
3602
+ "docComment": "/**\n * Template for the Checkbox component\n *\n * @public\n */\n",
3603
+ "excerptTokens": [
3604
+ {
3605
+ "kind": "Content",
3606
+ "text": "template: "
3607
+ },
3608
+ {
3609
+ "kind": "Reference",
3610
+ "text": "ElementViewTemplate",
3611
+ "canonicalReference": "@microsoft/fast-element!ElementViewTemplate:interface"
3612
+ },
3613
+ {
3614
+ "kind": "Content",
3615
+ "text": "<"
3616
+ },
3617
+ {
3618
+ "kind": "Reference",
3619
+ "text": "Checkbox",
3620
+ "canonicalReference": "@fluentui/web-components!Checkbox:class"
3621
+ },
3622
+ {
3623
+ "kind": "Content",
3624
+ "text": ">"
3625
+ }
3626
+ ],
3627
+ "isReadonly": true,
3628
+ "releaseTag": "Public",
3629
+ "name": "CheckboxTemplate",
3630
+ "variableTypeTokenRange": {
3631
+ "startIndex": 1,
3632
+ "endIndex": 5
3633
+ }
3634
+ },
3229
3635
  {
3230
3636
  "kind": "Variable",
3231
3637
  "canonicalReference": "@fluentui/web-components!colorBackgroundOverlay:var",
@@ -17156,6 +17562,46 @@
17156
17562
  "endIndex": 4
17157
17563
  }
17158
17564
  },
17565
+ {
17566
+ "kind": "Variable",
17567
+ "canonicalReference": "@fluentui/web-components!setThemeFor:var",
17568
+ "docComment": "",
17569
+ "excerptTokens": [
17570
+ {
17571
+ "kind": "Content",
17572
+ "text": "setThemeFor: "
17573
+ },
17574
+ {
17575
+ "kind": "Content",
17576
+ "text": "(element: "
17577
+ },
17578
+ {
17579
+ "kind": "Reference",
17580
+ "text": "FASTElement",
17581
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
17582
+ },
17583
+ {
17584
+ "kind": "Content",
17585
+ "text": ", theme: "
17586
+ },
17587
+ {
17588
+ "kind": "Reference",
17589
+ "text": "Theme",
17590
+ "canonicalReference": "@fluentui/tokens!Theme:type"
17591
+ },
17592
+ {
17593
+ "kind": "Content",
17594
+ "text": ") => void"
17595
+ }
17596
+ ],
17597
+ "isReadonly": true,
17598
+ "releaseTag": "Public",
17599
+ "name": "setThemeFor",
17600
+ "variableTypeTokenRange": {
17601
+ "startIndex": 1,
17602
+ "endIndex": 6
17603
+ }
17604
+ },
17159
17605
  {
17160
17606
  "kind": "Variable",
17161
17607
  "canonicalReference": "@fluentui/web-components!shadow16:var",
@@ -9,6 +9,7 @@ import { FASTAccordion } from '@microsoft/fast-foundation';
9
9
  import { FASTAccordionItem } from '@microsoft/fast-foundation';
10
10
  import { FASTAnchor } from '@microsoft/fast-foundation';
11
11
  import { FASTButton } from '@microsoft/fast-foundation';
12
+ import { FASTCheckbox } from '@microsoft/fast-foundation';
12
13
  import { FASTDivider } from '@microsoft/fast-foundation';
13
14
  import { FASTElement } from '@microsoft/fast-element';
14
15
  import { FASTElementDefinition } from '@microsoft/fast-element';
@@ -817,6 +818,94 @@ export declare type ButtonSize = ValuesOf<typeof ButtonSize>;
817
818
  */
818
819
  export declare const ButtonTemplate: ElementViewTemplate<Button>;
819
820
 
821
+ /**
822
+ * The base class used for constucting a fluent checkbox custom element
823
+ * @public
824
+ */
825
+ export declare class Checkbox extends FASTCheckbox {
826
+ /**
827
+ * Sets shape of the checkbox.
828
+ *
829
+ * @public
830
+ * @default 'square'
831
+ * @remarks
832
+ * HTML Attribute: shape
833
+ */
834
+ shape?: CheckboxShape;
835
+ /**
836
+ * Sets size of the checkbox.
837
+ *
838
+ * @public
839
+ * @default 'medium'
840
+ * @remarks
841
+ * HTML Attribute: size
842
+ */
843
+ size?: CheckboxSize;
844
+ /**
845
+ * Sets position of the label relative to the input
846
+ *
847
+ * @public
848
+ * @default 'after'
849
+ * @remarks
850
+ * HTML Attribute: label-position
851
+ */
852
+ labelPosition?: CheckboxLabelPosition;
853
+ }
854
+
855
+ /**
856
+ * The Fluent Checkbox Element
857
+ *
858
+ * @public
859
+ * @remarks
860
+ * HTML Element: \<fluent-checkbox\>
861
+ */
862
+ export declare const CheckboxDefinition: FASTElementDefinition<typeof Checkbox>;
863
+
864
+ /**
865
+ * Checkbox label position
866
+ * @public
867
+ */
868
+ export declare const CheckboxLabelPosition: {
869
+ readonly before: "before";
870
+ readonly after: "after";
871
+ };
872
+
873
+ export declare type CheckboxLabelPosition = ValuesOf<typeof CheckboxLabelPosition>;
874
+
875
+ /**
876
+ * Checkbox shape
877
+ * @public
878
+ */
879
+ export declare const CheckboxShape: {
880
+ readonly circular: "circular";
881
+ readonly square: "square";
882
+ };
883
+
884
+ export declare type CheckboxShape = ValuesOf<typeof CheckboxShape>;
885
+
886
+ /**
887
+ * Checkbox size
888
+ * @public
889
+ */
890
+ export declare const CheckboxSize: {
891
+ readonly medium: "medium";
892
+ readonly large: "large";
893
+ };
894
+
895
+ export declare type CheckboxSize = ValuesOf<typeof CheckboxSize>;
896
+
897
+ /** Checkbox styles
898
+ *
899
+ * @public
900
+ */
901
+ export declare const CheckboxStyles: ElementStyles;
902
+
903
+ /**
904
+ * Template for the Checkbox component
905
+ * @public
906
+ */
907
+ export declare const CheckboxTemplate: ElementViewTemplate<Checkbox>;
908
+
820
909
  export declare const colorBackgroundOverlay: CSSDesignToken<string>;
821
910
 
822
911
  export declare const colorBrandBackground: CSSDesignToken<string>;
@@ -2328,6 +2417,8 @@ export declare const RadioTemplate: ElementViewTemplate<Radio>;
2328
2417
  */
2329
2418
  export declare const setTheme: (theme: Theme) => void;
2330
2419
 
2420
+ export declare const setThemeFor: (element: FASTElement, theme: Theme) => void;
2421
+
2331
2422
  export declare const shadow16: CSSDesignToken<string>;
2332
2423
 
2333
2424
  export declare const shadow16Brand: CSSDesignToken<string>;