@fluentui/web-components 3.0.0-beta.35 → 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 +11 -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/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/web-components.d.ts +152 -0
- package/dist/web-components.js +351 -229
- package/dist/web-components.min.js +254 -251
- package/package.json +9 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { DrawerBody } from './drawer-body.js';
|
|
3
|
+
import { styles } from './drawer-body.styles.js';
|
|
4
|
+
import { template } from './drawer-body.template.js';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
* @remarks
|
|
9
|
+
* HTML Element: <fluent-drawer>
|
|
10
|
+
*/
|
|
11
|
+
export const definition = DrawerBody.compose({
|
|
12
|
+
name: `${FluentDesignSystem.prefix}-drawer-body`,
|
|
13
|
+
template,
|
|
14
|
+
styles,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=drawer-body.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-body.definition.js","sourceRoot":"","sources":["../../../src/drawer-body/drawer-body.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC;IAC3C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,cAAc;IAChD,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-body.js","sourceRoot":"","sources":["../../../src/drawer-body/drawer-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,OAAO,UAAW,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display } from '../utils/index.js';
|
|
3
|
+
import { spacingHorizontalM, spacingHorizontalXL } from '../theme/design-tokens.js';
|
|
4
|
+
import { typographySubtitle1Styles } from '../styles/partials/typography.partials.js';
|
|
5
|
+
/** Drawer styles
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export const styles = css `
|
|
9
|
+
${display('grid')}
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
grid-template-rows: min-content auto min-content;
|
|
13
|
+
position: relative;
|
|
14
|
+
height: 100%;
|
|
15
|
+
padding: ${spacingHorizontalXL};
|
|
16
|
+
max-height: 100svh;
|
|
17
|
+
}
|
|
18
|
+
.header {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
${typographySubtitle1Styles}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.footer {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: flex-start;
|
|
28
|
+
gap: ${spacingHorizontalM};
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
//# sourceMappingURL=drawer-body.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-body.styles.js","sourceRoot":"","sources":["../../../src/drawer-body/drawer-body.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;;;;eAMJ,mBAAmB;;;;;;;MAO5B,yBAAyB;;;;;;WAMpB,kBAAkB;;CAE5B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The template for the Drawer component.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export function drawerBodyTemplate() {
|
|
7
|
+
return html `
|
|
8
|
+
<div class="header" part="header">
|
|
9
|
+
<slot name="title"></slot>
|
|
10
|
+
<slot name="close"></slot>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="content" part="content">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="footer" part="footer">
|
|
16
|
+
<slot name="footer"></slot>
|
|
17
|
+
</div>
|
|
18
|
+
`;
|
|
19
|
+
}
|
|
20
|
+
export const template = drawerBodyTemplate();
|
|
21
|
+
//# sourceMappingURL=drawer-body.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-body.template.js","sourceRoot":"","sources":["../../../src/drawer-body/drawer-body.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGpE;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,CAAG;;;;;;;;;;;GAWb,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAoC,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './drawer-body.js';
|
|
2
|
+
export { definition as DrawerBodyDefinition } from './drawer-body.definition.js';
|
|
3
|
+
export { styles as DrawerBodyStyles } from './drawer-body.styles.js';
|
|
4
|
+
export { template as DrawerBodyTemplate } from './drawer-body.template.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drawer-body/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/esm/index-rollup.js
CHANGED
|
@@ -10,6 +10,7 @@ import './counter-badge/define.js';
|
|
|
10
10
|
import './dialog/define.js';
|
|
11
11
|
import './dialog-body/define.js';
|
|
12
12
|
import './divider/define.js';
|
|
13
|
+
import './drawer/define.js';
|
|
13
14
|
import './field/define.js';
|
|
14
15
|
import './image/define.js';
|
|
15
16
|
import './label/define.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-rollup.js","sourceRoot":"","sources":["../../src/index-rollup.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,oBAAoB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AC;AAC/B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,yBAAyB,CAAC;AACjC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,2BAA2B,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export { CounterBadge, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeDe
|
|
|
10
10
|
export { Dialog, DialogType, DialogDefinition, DialogTemplate, DialogStyles } from './dialog/index.js';
|
|
11
11
|
export { DialogBody, DialogBodyDefinition, DialogBodyTemplate, DialogBodyStyles } from './dialog-body/index.js';
|
|
12
12
|
export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
|
|
13
|
+
export { Drawer, DrawerDefinition, DrawerPosition, DrawerSize, DrawerType, DrawerTemplate, DrawerStyles, } from './drawer/index.js';
|
|
13
14
|
export { Field, FieldLabelPosition, ValidationFlags, FieldDefinition, FieldStyles, FieldTemplate, } from './field/index.js';
|
|
14
15
|
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
15
16
|
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO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ACL,IAAI,EACJ,SAAS,EACT,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EACL,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,eAAe,EACf,UAAU,EACV,eAAe,EACf,UAAU,EACV,SAAS,EACT,WAAW,EACX,aAAa,GACd,MAAM,kBAAkB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AO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
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
|