@fluentui/web-components 3.0.0-beta.35 → 3.0.0-beta.37

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 (107) hide show
  1. package/CHANGELOG.md +24 -2
  2. package/dist/dts/drawer/define.d.ts +1 -0
  3. package/dist/dts/drawer/drawer.d.ts +93 -0
  4. package/dist/dts/drawer/drawer.definition.d.ts +8 -0
  5. package/dist/dts/drawer/drawer.options.d.ts +40 -0
  6. package/dist/dts/drawer/drawer.styles.d.ts +4 -0
  7. package/dist/dts/drawer/drawer.template.d.ts +8 -0
  8. package/dist/dts/drawer/index.d.ts +5 -0
  9. package/dist/dts/drawer-body/define.d.ts +1 -0
  10. package/dist/dts/drawer-body/drawer-body.d.ts +3 -0
  11. package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
  12. package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
  13. package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
  14. package/dist/dts/drawer-body/index.d.ts +4 -0
  15. package/dist/dts/index-rollup.d.ts +3 -0
  16. package/dist/dts/index.d.ts +2 -0
  17. package/dist/dts/message-bar/define.d.ts +1 -0
  18. package/dist/dts/message-bar/index.d.ts +5 -0
  19. package/dist/dts/message-bar/message-bar.bench.d.ts +3 -0
  20. package/dist/dts/message-bar/message-bar.d.ts +66 -0
  21. package/dist/dts/message-bar/message-bar.definition.d.ts +9 -0
  22. package/dist/dts/message-bar/message-bar.options.d.ts +30 -0
  23. package/dist/dts/message-bar/message-bar.styles.d.ts +7 -0
  24. package/dist/dts/message-bar/message-bar.template.d.ts +14 -0
  25. package/dist/dts/rating-display/define.d.ts +1 -0
  26. package/dist/dts/rating-display/index.d.ts +5 -0
  27. package/dist/dts/rating-display/rating-display.d.ts +94 -0
  28. package/dist/dts/rating-display/rating-display.definition.d.ts +9 -0
  29. package/dist/dts/rating-display/rating-display.options.d.ts +29 -0
  30. package/dist/dts/rating-display/rating-display.styles.d.ts +6 -0
  31. package/dist/dts/rating-display/rating-display.template.d.ts +14 -0
  32. package/dist/dts/styles/states/index.d.ts +20 -0
  33. package/dist/dts/theme/set-theme.bench.d.ts +3 -0
  34. package/dist/esm/drawer/define.js +4 -0
  35. package/dist/esm/drawer/define.js.map +1 -0
  36. package/dist/esm/drawer/drawer.definition.js +16 -0
  37. package/dist/esm/drawer/drawer.definition.js.map +1 -0
  38. package/dist/esm/drawer/drawer.js +132 -0
  39. package/dist/esm/drawer/drawer.js.map +1 -0
  40. package/dist/esm/drawer/drawer.options.js +25 -0
  41. package/dist/esm/drawer/drawer.options.js.map +1 -0
  42. package/dist/esm/drawer/drawer.styles.js +138 -0
  43. package/dist/esm/drawer/drawer.styles.js.map +1 -0
  44. package/dist/esm/drawer/drawer.template.js +28 -0
  45. package/dist/esm/drawer/drawer.template.js.map +1 -0
  46. package/dist/esm/drawer/index.js +6 -0
  47. package/dist/esm/drawer/index.js.map +1 -0
  48. package/dist/esm/drawer-body/define.js +4 -0
  49. package/dist/esm/drawer-body/define.js.map +1 -0
  50. package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
  51. package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
  52. package/dist/esm/drawer-body/drawer-body.js +4 -0
  53. package/dist/esm/drawer-body/drawer-body.js.map +1 -0
  54. package/dist/esm/drawer-body/drawer-body.styles.js +31 -0
  55. package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
  56. package/dist/esm/drawer-body/drawer-body.template.js +21 -0
  57. package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
  58. package/dist/esm/drawer-body/index.js +5 -0
  59. package/dist/esm/drawer-body/index.js.map +1 -0
  60. package/dist/esm/index-rollup.js +3 -0
  61. package/dist/esm/index-rollup.js.map +1 -1
  62. package/dist/esm/index.js +2 -0
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/menu/menu.js +5 -1
  65. package/dist/esm/menu/menu.js.map +1 -1
  66. package/dist/esm/message-bar/define.js +4 -0
  67. package/dist/esm/message-bar/define.js.map +1 -0
  68. package/dist/esm/message-bar/index.js +6 -0
  69. package/dist/esm/message-bar/index.js.map +1 -0
  70. package/dist/esm/message-bar/message-bar.bench.js +56 -0
  71. package/dist/esm/message-bar/message-bar.bench.js.map +1 -0
  72. package/dist/esm/message-bar/message-bar.definition.js +20 -0
  73. package/dist/esm/message-bar/message-bar.definition.js.map +1 -0
  74. package/dist/esm/message-bar/message-bar.js +79 -0
  75. package/dist/esm/message-bar/message-bar.js.map +1 -0
  76. package/dist/esm/message-bar/message-bar.options.js +27 -0
  77. package/dist/esm/message-bar/message-bar.options.js.map +1 -0
  78. package/dist/esm/message-bar/message-bar.styles.js +108 -0
  79. package/dist/esm/message-bar/message-bar.styles.js.map +1 -0
  80. package/dist/esm/message-bar/message-bar.template.js +25 -0
  81. package/dist/esm/message-bar/message-bar.template.js.map +1 -0
  82. package/dist/esm/rating-display/define.js +4 -0
  83. package/dist/esm/rating-display/define.js.map +1 -0
  84. package/dist/esm/rating-display/index.js +6 -0
  85. package/dist/esm/rating-display/index.js.map +1 -0
  86. package/dist/esm/rating-display/rating-display.definition.js +17 -0
  87. package/dist/esm/rating-display/rating-display.definition.js.map +1 -0
  88. package/dist/esm/rating-display/rating-display.js +97 -0
  89. package/dist/esm/rating-display/rating-display.js.map +1 -0
  90. package/dist/esm/rating-display/rating-display.options.js +19 -0
  91. package/dist/esm/rating-display/rating-display.options.js.map +1 -0
  92. package/dist/esm/rating-display/rating-display.styles.js +120 -0
  93. package/dist/esm/rating-display/rating-display.styles.js.map +1 -0
  94. package/dist/esm/rating-display/rating-display.template.js +32 -0
  95. package/dist/esm/rating-display/rating-display.template.js.map +1 -0
  96. package/dist/esm/styles/partials/badge.partials.js +4 -5
  97. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  98. package/dist/esm/styles/states/index.js +20 -0
  99. package/dist/esm/styles/states/index.js.map +1 -1
  100. package/dist/esm/theme/set-theme.bench.js +23 -0
  101. package/dist/esm/theme/set-theme.bench.js.map +1 -0
  102. package/dist/esm/theme/set-theme.js +35 -19
  103. package/dist/esm/theme/set-theme.js.map +1 -1
  104. package/dist/web-components.d.ts +300 -0
  105. package/dist/web-components.js +713 -393
  106. package/dist/web-components.min.js +303 -294
  107. package/package.json +20 -3
package/CHANGELOG.md CHANGED
@@ -1,12 +1,34 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Tue, 25 Jun 2024 04:06:27 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 28 Jun 2024 04:07:05 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.37](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.37)
8
+
9
+ Fri, 28 Jun 2024 04:07:05 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.36..@fluentui/web-components_v3.0.0-beta.37)
11
+
12
+ ### Changes
13
+
14
+ - refactor setTheme() to use adoptedStyleSheets ([PR #31713](https://github.com/microsoft/fluentui/pull/31713) by machi@microsoft.com)
15
+ - Add rating-display component ([PR #31625](https://github.com/microsoft/fluentui/pull/31625) by email not defined)
16
+ - Adds MessageBar component to Fluent Web Components ([PR #31708](https://github.com/microsoft/fluentui/pull/31708) by ryan@ryanmerrill.net)
17
+ - chore: use tokens directly in css for badge partial ([PR #31847](https://github.com/microsoft/fluentui/pull/31847) by mmansour@microsoft.com)
18
+ - fix: ensure menu keydown logic allows shift+tab to navigate as expected ([PR #31849](https://github.com/microsoft/fluentui/pull/31849) by 13071055+chrisdholt@users.noreply.github.com)
19
+
20
+ ## [3.0.0-beta.36](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.36)
21
+
22
+ Wed, 26 Jun 2024 04:07:58 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.35..@fluentui/web-components_v3.0.0-beta.36)
24
+
25
+ ### Changes
26
+
27
+ - feat(drawer): add drawer web component ([PR #31521](https://github.com/microsoft/fluentui/pull/31521) by email not defined)
28
+
7
29
  ## [3.0.0-beta.35](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.35)
8
30
 
9
- Tue, 25 Jun 2024 04:06:27 GMT
31
+ Tue, 25 Jun 2024 04:06:35 GMT
10
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.34..@fluentui/web-components_v3.0.0-beta.35)
11
33
 
12
34
  ### Changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,93 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { DrawerPosition, DrawerSize, DrawerType } from './drawer.options.js';
3
+ /**
4
+ * A Drawer component that allows content to be displayed in a side panel. It can be rendered as modal or non-modal.
5
+ * @extends FASTElement
6
+ *
7
+ * @attr {DrawerType} type - Determines whether the drawer should be displayed as modal, non-modal, or alert.
8
+ * @attr {DrawerPosition} position - Sets the position of the drawer (start/end).
9
+ * @attr {DrawerSize} size - Sets the size of the drawer (small/medium/large).
10
+ * @attr {string} ariaDescribedby - The ID of the element that describes the drawer.
11
+ * @attr {string} ariaLabelledby - The ID of the element that labels the drawer.
12
+ *
13
+ * @csspart dialog - The dialog element of the drawer.
14
+ *
15
+ * @slot - Default slot for the content of the drawer.
16
+ *
17
+ * @fires toggle - Event emitted after the dialog's open state changes.
18
+ * @fires beforetoggle - Event emitted before the dialog's open state changes.
19
+ *
20
+ * @method show - Method to show the drawer.
21
+ * @method hide - Method to hide the drawer.
22
+ * @method clickHandler - Handles click events on the drawer.
23
+ * @method emitToggle - Emits an event after the dialog's open state changes.
24
+ * @method emitBeforeToggle - Emits an event before the dialog's open state changes.
25
+ *
26
+ * @summary A component that provides a drawer for displaying content in a side panel.
27
+ *
28
+ * @tag fluent-drawer
29
+ */
30
+ export declare class Drawer extends FASTElement {
31
+ /**
32
+ * @public
33
+ * Determines whether the drawer should be displayed as modal or non-modal
34
+ * When rendered as a modal, an overlay is applied over the rest of the view.
35
+ */
36
+ type: DrawerType;
37
+ /**
38
+ * @public
39
+ * The ID of the element that labels the drawer.
40
+ */
41
+ ariaLabelledby?: string;
42
+ /**
43
+ * @public
44
+ * The ID of the element that describes the drawer.
45
+ */
46
+ ariaDescribedby?: string;
47
+ /**""
48
+ * @public
49
+ * @defaultValue start
50
+ * Sets the position of the drawer (start/end).
51
+ */
52
+ position: DrawerPosition;
53
+ /**
54
+ * @public
55
+ * @defaultValue medium
56
+ * Sets the size of the drawer (small/medium/large).
57
+ */
58
+ size: DrawerSize;
59
+ /**
60
+ * @public
61
+ * The dialog element.
62
+ */
63
+ dialog: HTMLDialogElement;
64
+ /**
65
+ * @public
66
+ * Method to emit an event after the dialog's open state changes
67
+ * HTML spec proposal: https://github.com/whatwg/html/issues/9733
68
+ */
69
+ emitToggle: () => void;
70
+ /**
71
+ * @public
72
+ * Method to emit an event before the dialog's open state changes
73
+ * HTML spec proposal: https://github.com/whatwg/html/issues/9733
74
+ */
75
+ emitBeforeToggle: () => void;
76
+ /**
77
+ * @public
78
+ * Method to show the drawer
79
+ */
80
+ show(): void;
81
+ /**
82
+ * @public
83
+ * Method to hide the drawer
84
+ */
85
+ hide(): void;
86
+ /**
87
+ * @public
88
+ * @param event - The click event
89
+ * @returns boolean - Always returns true
90
+ * Handles click events on the drawer.
91
+ */
92
+ clickHandler(event: Event): boolean;
93
+ }
@@ -0,0 +1,8 @@
1
+ import { Drawer } from './drawer.js';
2
+ /**
3
+ *
4
+ * @public
5
+ * @remarks
6
+ * HTML Element: <fluent-drawer>
7
+ */
8
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Drawer>;
@@ -0,0 +1,40 @@
1
+ import type { ValuesOf } from '../utils/index.js';
2
+ /**
3
+ * A drawer can be positioned on the left or right side of the viewport.
4
+ */
5
+ export declare const DrawerPosition: {
6
+ readonly start: "start";
7
+ readonly end: "end";
8
+ };
9
+ /**
10
+ * The position of the drawer.
11
+ * @public
12
+ */
13
+ export type DrawerPosition = ValuesOf<typeof DrawerPosition>;
14
+ /**
15
+ * A drawer can be different sizes
16
+ */
17
+ export declare const DrawerSize: {
18
+ readonly small: "small";
19
+ readonly medium: "medium";
20
+ readonly large: "large";
21
+ readonly full: "full";
22
+ };
23
+ /**
24
+ * The size of the drawer.
25
+ * @public
26
+ */
27
+ export type DrawerSize = ValuesOf<typeof DrawerSize>;
28
+ /**
29
+ * A drawer can be different sizes
30
+ */
31
+ export declare const DrawerType: {
32
+ readonly nonModal: "non-modal";
33
+ readonly modal: "modal";
34
+ readonly inline: "inline";
35
+ };
36
+ /**
37
+ * The size of the drawer.
38
+ * @public
39
+ */
40
+ export type DrawerType = ValuesOf<typeof DrawerType>;
@@ -0,0 +1,4 @@
1
+ /** Drawer styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,8 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { Drawer } from './drawer.js';
3
+ /**
4
+ * The template for the Drawer component.
5
+ * @public
6
+ */
7
+ export declare function drawerTemplate<T extends Drawer>(): ElementViewTemplate<T>;
8
+ export declare const template: ElementViewTemplate<Drawer>;
@@ -0,0 +1,5 @@
1
+ export * from './drawer.js';
2
+ export * from './drawer.options.js';
3
+ export { definition as DrawerDefinition } from './drawer.definition.js';
4
+ export { styles as DrawerStyles } from './drawer.styles.js';
5
+ export { template as DrawerTemplate } from './drawer.template.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ export declare class DrawerBody extends FASTElement {
3
+ }
@@ -0,0 +1,8 @@
1
+ import { DrawerBody } from './drawer-body.js';
2
+ /**
3
+ *
4
+ * @public
5
+ * @remarks
6
+ * HTML Element: <fluent-drawer>
7
+ */
8
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof DrawerBody>;
@@ -0,0 +1,4 @@
1
+ /** Drawer styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,8 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { DrawerBody } from './drawer-body.js';
3
+ /**
4
+ * The template for the Drawer component.
5
+ * @public
6
+ */
7
+ export declare function drawerBodyTemplate<T extends DrawerBody>(): ElementViewTemplate<T>;
8
+ export declare const template: ElementViewTemplate<DrawerBody>;
@@ -0,0 +1,4 @@
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';
@@ -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';
@@ -18,9 +19,11 @@ import './menu-button/define.js';
18
19
  import './menu-item/define.js';
19
20
  import './menu-list/define.js';
20
21
  import './menu/define.js';
22
+ import './message-bar/define.js';
21
23
  import './progress-bar/define.js';
22
24
  import './radio-group/define.js';
23
25
  import './radio/define.js';
26
+ import './rating-display/define.js';
24
27
  import './slider/define.js';
25
28
  import './spinner/define.js';
26
29
  import './switch/define.js';
@@ -13,6 +13,7 @@ export { CounterBadge, CounterBadgeAppearance, CounterBadgeColor, CounterBadgeDe
13
13
  export { Dialog, DialogType, DialogDefinition, DialogTemplate, DialogStyles } from './dialog/index.js';
14
14
  export { DialogBody, DialogBodyDefinition, DialogBodyTemplate, DialogBodyStyles } from './dialog-body/index.js';
15
15
  export { Divider, DividerAlignContent, DividerAppearance, DividerDefinition, DividerOrientation, DividerRole, DividerStyles, DividerTemplate, } from './divider/index.js';
16
+ export { Drawer, DrawerDefinition, DrawerPosition, DrawerSize, DrawerType, DrawerTemplate, DrawerStyles, } from './drawer/index.js';
16
17
  export { Field, FieldLabelPosition, ValidationFlags, FieldDefinition, FieldStyles, FieldTemplate, } from './field/index.js';
17
18
  export type { SlottableInput } from './field/index.js';
18
19
  export { FluentDesignSystem } from './fluent-design-system.js';
@@ -29,6 +30,7 @@ export { ProgressBar, ProgressBarDefinition, ProgressBarShape, ProgressBarStyles
29
30
  export { RadioGroup, RadioGroupDefinition, RadioGroupOrientation, RadioGroupStyles, RadioGroupTemplate, } from './radio-group/index.js';
30
31
  export { Radio, RadioDefinition, RadioStyles, RadioTemplate } from './radio/index.js';
31
32
  export type { RadioControl, RadioOptions } from './radio/index.js';
33
+ export { RatingDisplay, RatingDisplayColor, RatingDisplayDefinition, RatingDisplaySize, RatingDisplayStyles, RatingDisplayTemplate, } from './rating-display/index.js';
32
34
  export { Slider, SliderDefinition, SliderMode, SliderOrientation, SliderSize, SliderStyles, SliderTemplate, } from './slider/index.js';
33
35
  export type { SliderConfiguration, SliderOptions } from './slider/index.js';
34
36
  export { Spinner, SpinnerAppearance, SpinnerDefinition, SpinnerSize, SpinnerStyles, SpinnerTemplate, } from './spinner/index.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export { definition as MessageBarDefinition } from './message-bar.definition.js';
2
+ export { MessageBar } from './message-bar.js';
3
+ export { MessageBarIntent, MessageBarLayout, MessageBarShape } from './message-bar.options.js';
4
+ export { styles as MessageBarStyles } from './message-bar.styles.js';
5
+ export { template as MessageBarTemplate } from './message-bar.template.js';
@@ -0,0 +1,3 @@
1
+ declare const itemRenderer: () => HTMLElement;
2
+ export default itemRenderer;
3
+ export { tests } from '../utils/benchmark-wrapper.js';
@@ -0,0 +1,66 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { MessageBarIntent, MessageBarLayout, MessageBarShape } from './message-bar.options.js';
3
+ /**
4
+ * A Message Bar Custom HTML Element.
5
+ *
6
+ * @slot actions - Content that can be provided for the actions
7
+ * @slot dismiss - Content that can be provided for the dismiss button
8
+ * @slot - The default slot for the content
9
+ * @public
10
+ */
11
+ export declare class MessageBar extends FASTElement {
12
+ /**
13
+ * The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
14
+ *
15
+ * @internal
16
+ */
17
+ elementInternals: ElementInternals;
18
+ constructor();
19
+ /**
20
+ * Sets the shape of the Message Bar.
21
+ *
22
+ * @public
23
+ * @remarks
24
+ * HTML Attribute: `shape`
25
+ */
26
+ shape?: MessageBarShape;
27
+ /**
28
+ * Handles changes to shape attribute custom states
29
+ * @param prev - the previous state
30
+ * @param next - the next state
31
+ */
32
+ shapeChanged(prev: MessageBarShape | undefined, next: MessageBarShape | undefined): void;
33
+ /**
34
+ * Sets the layout of the control.
35
+ *
36
+ * @public
37
+ * @remarks
38
+ * HTML Attribute: `layout`
39
+ */
40
+ layout?: MessageBarLayout;
41
+ /**
42
+ * Handles changes to the layout attribute custom states
43
+ * @param prev - the previous state
44
+ * @param next - the next state
45
+ */
46
+ layoutChanged(prev: MessageBarLayout | undefined, next: MessageBarLayout | undefined): void;
47
+ /**
48
+ * Sets the intent of the control.
49
+ *
50
+ * @public
51
+ * @remarks
52
+ * HTML Attribute: `intent`
53
+ */
54
+ intent?: MessageBarIntent;
55
+ /**
56
+ * Handles changes to the intent attribute custom states
57
+ * @param prev - the previous state
58
+ * @param next - the next state
59
+ */
60
+ intentChanged(prev: MessageBarIntent | undefined, next: MessageBarIntent | undefined): void;
61
+ /**
62
+ * @public
63
+ * Method to emit a `dismiss` event when the message bar is dismissed
64
+ */
65
+ dismissMessageBar: () => void;
66
+ }
@@ -0,0 +1,9 @@
1
+ import { MessageBar } from './message-bar.js';
2
+ /**
3
+ * The Fluent MessageBar Element definition.
4
+ *
5
+ * @public
6
+ * @remarks
7
+ * HTML Element: `<fluent-message-bar>`
8
+ */
9
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof MessageBar>;
@@ -0,0 +1,30 @@
1
+ import type { ValuesOf } from '../utils/typings.js';
2
+ /**
3
+ * @public
4
+ * The `layout` variations for the MessageBar component.
5
+ */
6
+ export declare const MessageBarLayout: {
7
+ readonly multiline: "multiline";
8
+ readonly singleline: "singleline";
9
+ };
10
+ export type MessageBarLayout = ValuesOf<typeof MessageBarLayout>;
11
+ /**
12
+ * @public
13
+ * The `shape` variations for the MessageBar component.
14
+ */
15
+ export declare const MessageBarShape: {
16
+ readonly rounded: "rounded";
17
+ readonly square: "square";
18
+ };
19
+ export type MessageBarShape = ValuesOf<typeof MessageBarShape>;
20
+ /**
21
+ * @public
22
+ * The `intent` variations for the MessageBar component.
23
+ */
24
+ export declare const MessageBarIntent: {
25
+ readonly success: "success";
26
+ readonly warning: "warning";
27
+ readonly error: "error";
28
+ readonly info: "info";
29
+ };
30
+ export type MessageBarIntent = ValuesOf<typeof MessageBarIntent>;
@@ -0,0 +1,7 @@
1
+ import type { ElementStyles } from '@microsoft/fast-element';
2
+ /**
3
+ * Styles for the MessageBar component.
4
+ *
5
+ * @public
6
+ */
7
+ export declare const styles: ElementStyles;
@@ -0,0 +1,14 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { MessageBar } from './message-bar.js';
3
+ /**
4
+ * Generates a template for the MessageBar component.
5
+ * @public
6
+ * @param {MessageBar} T - The type of the MessageBar.
7
+ * @returns {ElementViewTemplate<T>} - The template for the MessageBar component.
8
+ */
9
+ export declare function messageBarTemplate<T extends MessageBar>(): ElementViewTemplate<T>;
10
+ /**
11
+ * The template for the MessageBar component.
12
+ * @type {ElementViewTemplate<MessageBar>}
13
+ */
14
+ export declare const template: ElementViewTemplate<MessageBar>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export { RatingDisplay } from './rating-display.js';
2
+ export { RatingDisplayColor, RatingDisplaySize } from './rating-display.options.js';
3
+ export { template as RatingDisplayTemplate } from './rating-display.template.js';
4
+ export { styles as RatingDisplayStyles } from './rating-display.styles.js';
5
+ export { definition as RatingDisplayDefinition } from './rating-display.definition.js';
@@ -0,0 +1,94 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { RatingDisplayColor, RatingDisplaySize } from './rating-display.options.js';
3
+ /**
4
+ * The base class used for constructing a fluent-rating-display custom element
5
+ * @public
6
+ */
7
+ export declare class RatingDisplay extends FASTElement {
8
+ /**
9
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
10
+ *
11
+ * @internal
12
+ */
13
+ elementInternals: ElementInternals;
14
+ /**
15
+ * The color of the rating display icons.
16
+ *
17
+ * @public
18
+ * @default `marigold`
19
+ * @remarks
20
+ * HTML Attribute: `color`
21
+ */
22
+ color?: RatingDisplayColor;
23
+ /**
24
+ * Handles changes to the color attribute.
25
+ *
26
+ * @param prev - The previous state
27
+ * @param next - The next state
28
+ */
29
+ colorChanged(prev: RatingDisplayColor | undefined, next: RatingDisplayColor | undefined): void;
30
+ /**
31
+ * Renders a single filled icon with a label next to it.
32
+ *
33
+ * @public
34
+ * @remarks
35
+ * HTML Attribute: `compact`
36
+ */
37
+ compact: boolean;
38
+ /**
39
+ * The number of ratings.
40
+ *
41
+ * @public
42
+ * @remarks
43
+ * HTML Attribute: `count`
44
+ */
45
+ count?: number;
46
+ /**
47
+ * The maximum possible value of the rating.
48
+ * This attribute determines the number of icons displayed.
49
+ * Must be a whole number greater than 1.
50
+ *
51
+ * @public
52
+ * @remarks
53
+ * HTML Attribute: `max`
54
+ */
55
+ max?: number;
56
+ /**
57
+ * The size of the component.
58
+ *
59
+ * @public
60
+ * @default 'medium'
61
+ * @remarks
62
+ * HTML Attribute: `size`
63
+ */
64
+ size?: RatingDisplaySize;
65
+ /**
66
+ * Handles changes to the size attribute.
67
+ *
68
+ * @param prev - The previous state
69
+ * @param next - The next state
70
+ */
71
+ sizeChanged(prev: RatingDisplaySize | undefined, next: RatingDisplaySize | undefined): void;
72
+ /**
73
+ * The value of the rating.
74
+ *
75
+ * @public
76
+ * @remarks
77
+ * HTML Attribute: `value`
78
+ */
79
+ value?: number;
80
+ private intlNumberFormatter;
81
+ constructor();
82
+ /**
83
+ * Returns "count" as string, formatted according to the locale.
84
+ *
85
+ * @internal
86
+ */
87
+ get formattedCount(): string;
88
+ /**
89
+ * Generates the icon SVG elements based on the "max" attribute.
90
+ *
91
+ * @internal
92
+ */
93
+ generateIcons(): string;
94
+ }
@@ -0,0 +1,9 @@
1
+ import { RatingDisplay } from './rating-display.js';
2
+ /**
3
+ * The definition for the Fluent Rating Display component.
4
+ *
5
+ * @public
6
+ * @remarks
7
+ * HTML Element: `<fluent-rating-display>`
8
+ */
9
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof RatingDisplay>;
@@ -0,0 +1,29 @@
1
+ import type { ValuesOf } from '../utils/index.js';
2
+ /**
3
+ * The color of the Rating Display items can be `neutral`, `brand`, or `marigold`.
4
+ * @public
5
+ */
6
+ export declare const RatingDisplayColor: {
7
+ readonly neutral: "neutral";
8
+ readonly brand: "brand";
9
+ readonly marigold: "marigold";
10
+ };
11
+ /**
12
+ * The size of a Rating Display can be `small`, `medium`, or `large`.
13
+ * @public
14
+ */
15
+ export declare const RatingDisplaySize: {
16
+ readonly small: "small";
17
+ readonly medium: "medium";
18
+ readonly large: "large";
19
+ };
20
+ /**
21
+ * The Rating Display items can be one of several colors.
22
+ * @public
23
+ */
24
+ export type RatingDisplayColor = ValuesOf<typeof RatingDisplayColor>;
25
+ /**
26
+ * A Rating Display can be one of several preset sizes.
27
+ * @public
28
+ */
29
+ export type RatingDisplaySize = ValuesOf<typeof RatingDisplaySize>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The styles for the Rating Display component.
3
+ *
4
+ * @public
5
+ */
6
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,14 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { RatingDisplay } from './rating-display.js';
3
+ /**
4
+ * Generates a template for the Rating Display component.
5
+ *
6
+ * @public
7
+ */
8
+ export declare function ratingDisplayTemplate<T extends RatingDisplay>(): ElementViewTemplate<T>;
9
+ /**
10
+ * The template for the Rating Display component.
11
+ *
12
+ * @public
13
+ */
14
+ export declare const template: ElementViewTemplate<RatingDisplay>;
@@ -148,6 +148,16 @@ export declare const importantState: import("@microsoft/fast-element").CSSDirect
148
148
  * @public
149
149
  */
150
150
  export declare const informativeState: import("@microsoft/fast-element").CSSDirective;
151
+ /**
152
+ * Selector for the `marigold` state.
153
+ * @public
154
+ */
155
+ export declare const marigoldState: import("@microsoft/fast-element").CSSDirective;
156
+ /**
157
+ * Selector for the `neutral` state.
158
+ * @public
159
+ */
160
+ export declare const neutralState: import("@microsoft/fast-element").CSSDirective;
151
161
  /**
152
162
  * Selector for the `severe` state.
153
163
  * @public
@@ -173,3 +183,13 @@ export declare const verticalState: import("@microsoft/fast-element").CSSDirecti
173
183
  * @public
174
184
  */
175
185
  export declare const horizontalState: import("@microsoft/fast-element").CSSDirective;
186
+ /**
187
+ * Selector for the `singleline` state.
188
+ * @public
189
+ */
190
+ export declare const singleLineState: import("@microsoft/fast-element").CSSDirective;
191
+ /**
192
+ * Selector for the `multiline` state.
193
+ * @public
194
+ */
195
+ export declare const multiLineState: import("@microsoft/fast-element").CSSDirective;
@@ -0,0 +1,3 @@
1
+ import { type TestRenderFunction } from '@tensile-perf/web-components';
2
+ declare const tests: Record<string, TestRenderFunction>;
3
+ export { tests };
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './drawer.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/drawer/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}