@fluentui/web-components 3.0.0-beta.34 → 3.0.0-beta.36
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/CHANGELOG.md +20 -2
- package/dist/dts/drawer/define.d.ts +1 -0
- package/dist/dts/drawer/drawer.d.ts +93 -0
- package/dist/dts/drawer/drawer.definition.d.ts +8 -0
- package/dist/dts/drawer/drawer.options.d.ts +40 -0
- package/dist/dts/drawer/drawer.styles.d.ts +4 -0
- package/dist/dts/drawer/drawer.template.d.ts +8 -0
- package/dist/dts/drawer/index.d.ts +5 -0
- package/dist/dts/drawer-body/define.d.ts +1 -0
- package/dist/dts/drawer-body/drawer-body.d.ts +3 -0
- package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
- package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
- package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
- package/dist/dts/drawer-body/index.d.ts +4 -0
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/text/text.d.ts +40 -1
- package/dist/esm/drawer/define.js +4 -0
- package/dist/esm/drawer/define.js.map +1 -0
- package/dist/esm/drawer/drawer.definition.js +16 -0
- package/dist/esm/drawer/drawer.definition.js.map +1 -0
- package/dist/esm/drawer/drawer.js +132 -0
- package/dist/esm/drawer/drawer.js.map +1 -0
- package/dist/esm/drawer/drawer.options.js +25 -0
- package/dist/esm/drawer/drawer.options.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.js +138 -0
- package/dist/esm/drawer/drawer.styles.js.map +1 -0
- package/dist/esm/drawer/drawer.template.js +28 -0
- package/dist/esm/drawer/drawer.template.js.map +1 -0
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -0
- package/dist/esm/drawer-body/define.js +4 -0
- package/dist/esm/drawer-body/define.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.js +4 -0
- package/dist/esm/drawer-body/drawer-body.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.js +31 -0
- package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.template.js +21 -0
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
- package/dist/esm/drawer-body/index.js +5 -0
- package/dist/esm/drawer-body/index.js.map +1 -0
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/text/text.js +91 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +56 -57
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/web-components.d.ts +192 -1
- package/dist/web-components.js +445 -232
- package/dist/web-components.min.js +236 -233
- package/package.json +9 -1
package/dist/web-components.d.ts
CHANGED
|
@@ -4655,6 +4655,158 @@ export declare const DividerStyles: ElementStyles;
|
|
|
4655
4655
|
*/
|
|
4656
4656
|
export declare const DividerTemplate: ElementViewTemplate<Divider>;
|
|
4657
4657
|
|
|
4658
|
+
/**
|
|
4659
|
+
* A Drawer component that allows content to be displayed in a side panel. It can be rendered as modal or non-modal.
|
|
4660
|
+
* @extends FASTElement
|
|
4661
|
+
*
|
|
4662
|
+
* @attr {DrawerType} type - Determines whether the drawer should be displayed as modal, non-modal, or alert.
|
|
4663
|
+
* @attr {DrawerPosition} position - Sets the position of the drawer (start/end).
|
|
4664
|
+
* @attr {DrawerSize} size - Sets the size of the drawer (small/medium/large).
|
|
4665
|
+
* @attr {string} ariaDescribedby - The ID of the element that describes the drawer.
|
|
4666
|
+
* @attr {string} ariaLabelledby - The ID of the element that labels the drawer.
|
|
4667
|
+
*
|
|
4668
|
+
* @csspart dialog - The dialog element of the drawer.
|
|
4669
|
+
*
|
|
4670
|
+
* @slot - Default slot for the content of the drawer.
|
|
4671
|
+
*
|
|
4672
|
+
* @fires toggle - Event emitted after the dialog's open state changes.
|
|
4673
|
+
* @fires beforetoggle - Event emitted before the dialog's open state changes.
|
|
4674
|
+
*
|
|
4675
|
+
* @method show - Method to show the drawer.
|
|
4676
|
+
* @method hide - Method to hide the drawer.
|
|
4677
|
+
* @method clickHandler - Handles click events on the drawer.
|
|
4678
|
+
* @method emitToggle - Emits an event after the dialog's open state changes.
|
|
4679
|
+
* @method emitBeforeToggle - Emits an event before the dialog's open state changes.
|
|
4680
|
+
*
|
|
4681
|
+
* @summary A component that provides a drawer for displaying content in a side panel.
|
|
4682
|
+
*
|
|
4683
|
+
* @tag fluent-drawer
|
|
4684
|
+
*/
|
|
4685
|
+
export declare class Drawer extends FASTElement {
|
|
4686
|
+
/**
|
|
4687
|
+
* @public
|
|
4688
|
+
* Determines whether the drawer should be displayed as modal or non-modal
|
|
4689
|
+
* When rendered as a modal, an overlay is applied over the rest of the view.
|
|
4690
|
+
*/
|
|
4691
|
+
type: DrawerType;
|
|
4692
|
+
/**
|
|
4693
|
+
* @public
|
|
4694
|
+
* The ID of the element that labels the drawer.
|
|
4695
|
+
*/
|
|
4696
|
+
ariaLabelledby?: string;
|
|
4697
|
+
/**
|
|
4698
|
+
* @public
|
|
4699
|
+
* The ID of the element that describes the drawer.
|
|
4700
|
+
*/
|
|
4701
|
+
ariaDescribedby?: string;
|
|
4702
|
+
/**""
|
|
4703
|
+
* @public
|
|
4704
|
+
* @defaultValue start
|
|
4705
|
+
* Sets the position of the drawer (start/end).
|
|
4706
|
+
*/
|
|
4707
|
+
position: DrawerPosition;
|
|
4708
|
+
/**
|
|
4709
|
+
* @public
|
|
4710
|
+
* @defaultValue medium
|
|
4711
|
+
* Sets the size of the drawer (small/medium/large).
|
|
4712
|
+
*/
|
|
4713
|
+
size: DrawerSize;
|
|
4714
|
+
/**
|
|
4715
|
+
* @public
|
|
4716
|
+
* The dialog element.
|
|
4717
|
+
*/
|
|
4718
|
+
dialog: HTMLDialogElement;
|
|
4719
|
+
/**
|
|
4720
|
+
* @public
|
|
4721
|
+
* Method to emit an event after the dialog's open state changes
|
|
4722
|
+
* HTML spec proposal: https://github.com/whatwg/html/issues/9733
|
|
4723
|
+
*/
|
|
4724
|
+
emitToggle: () => void;
|
|
4725
|
+
/**
|
|
4726
|
+
* @public
|
|
4727
|
+
* Method to emit an event before the dialog's open state changes
|
|
4728
|
+
* HTML spec proposal: https://github.com/whatwg/html/issues/9733
|
|
4729
|
+
*/
|
|
4730
|
+
emitBeforeToggle: () => void;
|
|
4731
|
+
/**
|
|
4732
|
+
* @public
|
|
4733
|
+
* Method to show the drawer
|
|
4734
|
+
*/
|
|
4735
|
+
show(): void;
|
|
4736
|
+
/**
|
|
4737
|
+
* @public
|
|
4738
|
+
* Method to hide the drawer
|
|
4739
|
+
*/
|
|
4740
|
+
hide(): void;
|
|
4741
|
+
/**
|
|
4742
|
+
* @public
|
|
4743
|
+
* @param event - The click event
|
|
4744
|
+
* @returns boolean - Always returns true
|
|
4745
|
+
* Handles click events on the drawer.
|
|
4746
|
+
*/
|
|
4747
|
+
clickHandler(event: Event): boolean;
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
*
|
|
4752
|
+
* @public
|
|
4753
|
+
* @remarks
|
|
4754
|
+
* HTML Element: <fluent-drawer>
|
|
4755
|
+
*/
|
|
4756
|
+
export declare const DrawerDefinition: FASTElementDefinition<typeof Drawer>;
|
|
4757
|
+
|
|
4758
|
+
/**
|
|
4759
|
+
* A drawer can be positioned on the left or right side of the viewport.
|
|
4760
|
+
*/
|
|
4761
|
+
export declare const DrawerPosition: {
|
|
4762
|
+
readonly start: "start";
|
|
4763
|
+
readonly end: "end";
|
|
4764
|
+
};
|
|
4765
|
+
|
|
4766
|
+
/**
|
|
4767
|
+
* The position of the drawer.
|
|
4768
|
+
* @public
|
|
4769
|
+
*/
|
|
4770
|
+
export declare type DrawerPosition = ValuesOf<typeof DrawerPosition>;
|
|
4771
|
+
|
|
4772
|
+
/**
|
|
4773
|
+
* A drawer can be different sizes
|
|
4774
|
+
*/
|
|
4775
|
+
export declare const DrawerSize: {
|
|
4776
|
+
readonly small: "small";
|
|
4777
|
+
readonly medium: "medium";
|
|
4778
|
+
readonly large: "large";
|
|
4779
|
+
readonly full: "full";
|
|
4780
|
+
};
|
|
4781
|
+
|
|
4782
|
+
/**
|
|
4783
|
+
* The size of the drawer.
|
|
4784
|
+
* @public
|
|
4785
|
+
*/
|
|
4786
|
+
export declare type DrawerSize = ValuesOf<typeof DrawerSize>;
|
|
4787
|
+
|
|
4788
|
+
/** Drawer styles
|
|
4789
|
+
* @public
|
|
4790
|
+
*/
|
|
4791
|
+
export declare const DrawerStyles: ElementStyles;
|
|
4792
|
+
|
|
4793
|
+
export declare const DrawerTemplate: ElementViewTemplate<Drawer>;
|
|
4794
|
+
|
|
4795
|
+
/**
|
|
4796
|
+
* A drawer can be different sizes
|
|
4797
|
+
*/
|
|
4798
|
+
export declare const DrawerType: {
|
|
4799
|
+
readonly nonModal: "non-modal";
|
|
4800
|
+
readonly modal: "modal";
|
|
4801
|
+
readonly inline: "inline";
|
|
4802
|
+
};
|
|
4803
|
+
|
|
4804
|
+
/**
|
|
4805
|
+
* The size of the drawer.
|
|
4806
|
+
* @public
|
|
4807
|
+
*/
|
|
4808
|
+
export declare type DrawerType = ValuesOf<typeof DrawerType>;
|
|
4809
|
+
|
|
4658
4810
|
/**
|
|
4659
4811
|
* CSS custom property value for the {@link @fluentui/tokens#durationFast | `durationFast`} design token.
|
|
4660
4812
|
* @public
|
|
@@ -7349,6 +7501,12 @@ export declare const TabTemplate: ElementViewTemplate<Tab, any>;
|
|
|
7349
7501
|
* @public
|
|
7350
7502
|
*/
|
|
7351
7503
|
declare class Text_2 extends FASTElement {
|
|
7504
|
+
/**
|
|
7505
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
7506
|
+
*
|
|
7507
|
+
* @internal
|
|
7508
|
+
*/
|
|
7509
|
+
elementInternals: ElementInternals;
|
|
7352
7510
|
/**
|
|
7353
7511
|
* The text will not wrap
|
|
7354
7512
|
* NOTE: In Fluent UI React v9 this is "wrap"
|
|
@@ -7408,6 +7566,12 @@ declare class Text_2 extends FASTElement {
|
|
|
7408
7566
|
*
|
|
7409
7567
|
*/
|
|
7410
7568
|
size?: TextSize;
|
|
7569
|
+
/**
|
|
7570
|
+
* Handles changes to size attribute custom states
|
|
7571
|
+
* @param prev - the previous state
|
|
7572
|
+
* @param next - the next state
|
|
7573
|
+
*/
|
|
7574
|
+
sizeChanged(prev: TextSize | undefined, next: TextSize | undefined): void;
|
|
7411
7575
|
/**
|
|
7412
7576
|
* THe Text font
|
|
7413
7577
|
*
|
|
@@ -7417,13 +7581,25 @@ declare class Text_2 extends FASTElement {
|
|
|
7417
7581
|
*/
|
|
7418
7582
|
font?: TextFont;
|
|
7419
7583
|
/**
|
|
7420
|
-
*
|
|
7584
|
+
* Handles changes to font attribute custom states
|
|
7585
|
+
* @param prev - the previous state
|
|
7586
|
+
* @param next - the next state
|
|
7587
|
+
*/
|
|
7588
|
+
fontChanged(prev: TextFont | undefined, next: TextFont | undefined): void;
|
|
7589
|
+
/**
|
|
7590
|
+
* The Text weight
|
|
7421
7591
|
*
|
|
7422
7592
|
* @public
|
|
7423
7593
|
* @remarks
|
|
7424
7594
|
* HTML Attribute: weight
|
|
7425
7595
|
*/
|
|
7426
7596
|
weight?: TextWeight;
|
|
7597
|
+
/**
|
|
7598
|
+
* Handles changes to weight attribute custom states
|
|
7599
|
+
* @param prev - the previous state
|
|
7600
|
+
* @param next - the next state
|
|
7601
|
+
*/
|
|
7602
|
+
weightChanged(prev: TextWeight | undefined, next: TextWeight | undefined): void;
|
|
7427
7603
|
/**
|
|
7428
7604
|
* THe Text align
|
|
7429
7605
|
*
|
|
@@ -7432,6 +7608,21 @@ declare class Text_2 extends FASTElement {
|
|
|
7432
7608
|
* HTML Attribute: align
|
|
7433
7609
|
*/
|
|
7434
7610
|
align?: TextAlign;
|
|
7611
|
+
/**
|
|
7612
|
+
* Handles changes to align attribute custom states
|
|
7613
|
+
* @param prev - the previous state
|
|
7614
|
+
* @param next - the next state
|
|
7615
|
+
*/
|
|
7616
|
+
alignChanged(prev: TextAlign | undefined, next: TextAlign | undefined): void;
|
|
7617
|
+
connectedCallback(): void;
|
|
7618
|
+
disconnectedCallback(): void;
|
|
7619
|
+
/**
|
|
7620
|
+
* Handles changes to observable properties
|
|
7621
|
+
* @internal
|
|
7622
|
+
* @param source - the source of the change
|
|
7623
|
+
* @param propertyName - the property name being changed
|
|
7624
|
+
*/
|
|
7625
|
+
handleChange(source: any, propertyName: string): void;
|
|
7435
7626
|
}
|
|
7436
7627
|
export { Text_2 as Text }
|
|
7437
7628
|
|