material 3.14.0 → 3.14.1

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 (159) hide show
  1. package/dist/components/badge/index.d.ts +6 -6
  2. package/dist/components/bottom-sheet/index.d.ts +6 -6
  3. package/dist/components/button/features/progress.js +6 -9
  4. package/dist/components/button-group/index.d.ts +6 -6
  5. package/dist/components/card/index.d.ts +29 -29
  6. package/dist/components/checkbox/index.d.ts +6 -6
  7. package/dist/components/chips/index.d.ts +18 -18
  8. package/dist/components/datepicker/index.d.ts +6 -6
  9. package/dist/components/dialog/index.d.ts +6 -6
  10. package/dist/components/divider/index.d.ts +42 -42
  11. package/dist/components/fab/index.d.ts +6 -6
  12. package/dist/components/list/index.d.ts +16 -16
  13. package/dist/components/loading-indicator/index.d.ts +32 -32
  14. package/dist/components/navigation-bar/index.d.ts +3 -3
  15. package/dist/components/navigation-rail/index.d.ts +3 -3
  16. package/dist/components/progress/features/canvas.js +7 -13
  17. package/dist/components/radios/index.d.ts +6 -6
  18. package/dist/components/switch/index.d.ts +6 -6
  19. package/dist/components/tabs/index.d.ts +97 -97
  20. package/dist/components/text-field/index.d.ts +51 -51
  21. package/dist/components/tooltip/index.d.ts +6 -6
  22. package/dist/core/canvas/index.d.ts +77 -77
  23. package/dist/core/compose/index.d.ts +365 -365
  24. package/dist/core/dom/index.d.ts +117 -117
  25. package/dist/core/icons/index.d.ts +5 -5
  26. package/dist/core/shapes/index.d.ts +51 -51
  27. package/dist/core/state/index.d.ts +26 -26
  28. package/dist/core/utils/index.d.ts +8 -8
  29. package/dist/elements/index.d.ts +2109 -2109
  30. package/dist/elements/preupgrade/badge.css +1 -1
  31. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  32. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  33. package/dist/elements/preupgrade/button-group.css +1 -1
  34. package/dist/elements/preupgrade/button.css +1 -1
  35. package/dist/elements/preupgrade/card.css +1 -1
  36. package/dist/elements/preupgrade/carousel.css +1 -1
  37. package/dist/elements/preupgrade/checkbox.css +1 -1
  38. package/dist/elements/preupgrade/chips.css +1 -1
  39. package/dist/elements/preupgrade/datepicker.css +1 -1
  40. package/dist/elements/preupgrade/dialog.css +1 -1
  41. package/dist/elements/preupgrade/divider.css +1 -1
  42. package/dist/elements/preupgrade/drawer.css +1 -1
  43. package/dist/elements/preupgrade/extended-fab.css +1 -1
  44. package/dist/elements/preupgrade/fab-menu.css +1 -1
  45. package/dist/elements/preupgrade/fab.css +1 -1
  46. package/dist/elements/preupgrade/icon-button.css +1 -1
  47. package/dist/elements/preupgrade/list.css +1 -1
  48. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  49. package/dist/elements/preupgrade/menu.css +1 -1
  50. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  51. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  52. package/dist/elements/preupgrade/progress.css +1 -1
  53. package/dist/elements/preupgrade/radios.css +1 -1
  54. package/dist/elements/preupgrade/search.css +1 -1
  55. package/dist/elements/preupgrade/select.css +1 -1
  56. package/dist/elements/preupgrade/side-sheet.css +1 -1
  57. package/dist/elements/preupgrade/slider.css +1 -1
  58. package/dist/elements/preupgrade/snackbar.css +1 -1
  59. package/dist/elements/preupgrade/split-button.css +1 -1
  60. package/dist/elements/preupgrade/switch.css +1 -1
  61. package/dist/elements/preupgrade/tabs.css +1 -1
  62. package/dist/elements/preupgrade/text-field.css +1 -1
  63. package/dist/elements/preupgrade/timepicker.css +1 -1
  64. package/dist/elements/preupgrade/toolbar.css +1 -1
  65. package/dist/elements/preupgrade/tooltip.css +1 -1
  66. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  67. package/dist/elements/preupgrade.css +1 -1
  68. package/dist/react/index.d.ts +47 -47
  69. package/dist/solid/index.d.ts +47 -47
  70. package/dist/styles/badge.css +1 -1
  71. package/dist/styles/base-elements.css +1 -1
  72. package/dist/styles/base-lite.css +1 -1
  73. package/dist/styles/base.css +1 -1
  74. package/dist/styles/bottom-app-bar-toolbar.css +1 -1
  75. package/dist/styles/bottom-app-bar.css +1 -1
  76. package/dist/styles/bottom-sheet.css +1 -1
  77. package/dist/styles/button-filled-small-round.css +1 -1
  78. package/dist/styles/button-group.css +1 -1
  79. package/dist/styles/button.css +1 -1
  80. package/dist/styles/card.css +1 -1
  81. package/dist/styles/carousel.css +1 -1
  82. package/dist/styles/checkbox.css +1 -1
  83. package/dist/styles/chips.css +1 -1
  84. package/dist/styles/contrast.css +1 -1
  85. package/dist/styles/datepicker.css +1 -1
  86. package/dist/styles/dialog.css +1 -1
  87. package/dist/styles/divider.css +1 -1
  88. package/dist/styles/drawer.css +1 -1
  89. package/dist/styles/extended-fab.css +1 -1
  90. package/dist/styles/fab-menu.css +1 -1
  91. package/dist/styles/fab.css +1 -1
  92. package/dist/styles/icon-button.css +1 -1
  93. package/dist/styles/list.css +1 -1
  94. package/dist/styles/listbox.css +1 -1
  95. package/dist/styles/loading-indicator.css +1 -1
  96. package/dist/styles/menu.css +1 -1
  97. package/dist/styles/navigation-bar.css +1 -1
  98. package/dist/styles/navigation-rail.css +1 -1
  99. package/dist/styles/progress.css +1 -1
  100. package/dist/styles/radios.css +1 -1
  101. package/dist/styles/search.css +1 -1
  102. package/dist/styles/select.css +1 -1
  103. package/dist/styles/side-sheet.css +1 -1
  104. package/dist/styles/slider.css +1 -1
  105. package/dist/styles/snackbar.css +1 -1
  106. package/dist/styles/split-button.css +1 -1
  107. package/dist/styles/switch.css +1 -1
  108. package/dist/styles/tabs.css +1 -1
  109. package/dist/styles/text-field.css +1 -1
  110. package/dist/styles/timepicker.css +1 -1
  111. package/dist/styles/toolbar.css +1 -1
  112. package/dist/styles/tooltip.css +1 -1
  113. package/dist/styles/top-app-bar.css +1 -1
  114. package/dist/styles/typography.css +1 -1
  115. package/dist/styles/utilities.css +1 -1
  116. package/dist/styles.css +1 -1
  117. package/dist/themes/autumn-contrast.css +1 -1
  118. package/dist/themes/autumn.css +1 -1
  119. package/dist/themes/baseline-contrast.css +1 -1
  120. package/dist/themes/baseline.css +1 -1
  121. package/dist/themes/brownbeige-contrast.css +1 -1
  122. package/dist/themes/brownbeige.css +1 -1
  123. package/dist/themes/content-contrast.css +1 -1
  124. package/dist/themes/content.css +1 -1
  125. package/dist/themes/desert-contrast.css +1 -1
  126. package/dist/themes/desert.css +1 -1
  127. package/dist/themes/expressive-contrast.css +1 -1
  128. package/dist/themes/expressive.css +1 -1
  129. package/dist/themes/fidelity-contrast.css +1 -1
  130. package/dist/themes/fidelity.css +1 -1
  131. package/dist/themes/forest-contrast.css +1 -1
  132. package/dist/themes/forest.css +1 -1
  133. package/dist/themes/fruit-salad-contrast.css +1 -1
  134. package/dist/themes/fruit-salad.css +1 -1
  135. package/dist/themes/highcontrast-contrast.css +1 -1
  136. package/dist/themes/highcontrast.css +1 -1
  137. package/dist/themes/monochrome-contrast.css +1 -1
  138. package/dist/themes/monochrome.css +1 -1
  139. package/dist/themes/neutral-contrast.css +1 -1
  140. package/dist/themes/neutral.css +1 -1
  141. package/dist/themes/ocean-contrast.css +1 -1
  142. package/dist/themes/ocean.css +1 -1
  143. package/dist/themes/rainbow-contrast.css +1 -1
  144. package/dist/themes/rainbow.css +1 -1
  145. package/dist/themes/sageivory-contrast.css +1 -1
  146. package/dist/themes/sageivory.css +1 -1
  147. package/dist/themes/spring-contrast.css +1 -1
  148. package/dist/themes/spring.css +1 -1
  149. package/dist/themes/summer-contrast.css +1 -1
  150. package/dist/themes/summer.css +1 -1
  151. package/dist/themes/sunset-contrast.css +1 -1
  152. package/dist/themes/sunset.css +1 -1
  153. package/dist/themes/tealcaramel-contrast.css +1 -1
  154. package/dist/themes/tealcaramel.css +1 -1
  155. package/dist/themes/vibrant-contrast.css +1 -1
  156. package/dist/themes/vibrant.css +1 -1
  157. package/dist/tokens/catalogue.json +3 -3
  158. package/dist/vue/index.d.ts +74 -74
  159. package/package.json +1 -1
@@ -1,5 +1,11 @@
1
1
  import { ElementComponent } from "../../core/compose/component.js";
2
2
 
3
+ /**
4
+ * Creates a new Badge component following Material Design 3 guidelines.
5
+ * @param config
6
+ */
7
+ declare const createBadge: (config?: BadgeConfig) => BadgeComponent;
8
+
3
9
  /** Badge variant types - determines the badge size and appearance */
4
10
  type BadgeVariant = 'small' | 'large';
5
11
 
@@ -157,11 +163,5 @@ interface BadgeComponent {
157
163
  */
158
164
  off: (event: string, handler: Function) => BadgeComponent;
159
165
  }
160
-
161
- /**
162
- * Creates a new Badge component following Material Design 3 guidelines.
163
- * @param config
164
- */
165
- declare const createBadge: (config?: BadgeConfig) => BadgeComponent;
166
166
  export type { BadgeColor, BadgeComponent, BadgeConfig, BadgePosition, BadgeVariant };
167
167
  export { createBadge, createBadge as default };
@@ -1,5 +1,11 @@
1
1
  import { BOTTOM_SHEET_STATES, BOTTOM_SHEET_VARIANTS } from "./constants.js";
2
2
 
3
+ /**
4
+ * Creates a bottom sheet: a surface anchored to the bottom edge holding content secondary to the page.
5
+ * @param config
6
+ */
7
+ declare const createBottomSheet: (config?: BottomSheetConfig) => BottomSheetComponent;
8
+
3
9
  /** Standard or modal */
4
10
  type BottomSheetVariant = (typeof BOTTOM_SHEET_VARIANTS)[keyof typeof BOTTOM_SHEET_VARIANTS];
5
11
 
@@ -104,11 +110,5 @@ interface BottomSheetComponent {
104
110
  /** Prefixes a class name, for styling hooks */
105
111
  getClass: (name: string) => string;
106
112
  }
107
-
108
- /**
109
- * Creates a bottom sheet: a surface anchored to the bottom edge holding content secondary to the page.
110
- * @param config
111
- */
112
- declare const createBottomSheet: (config?: BottomSheetConfig) => BottomSheetComponent;
113
113
  export type { BottomSheetComponent, BottomSheetConfig, BottomSheetEventHandlers, BottomSheetState, BottomSheetStateEvent, BottomSheetVariant };
114
114
  export { createBottomSheet, createBottomSheet as default };
@@ -8,10 +8,10 @@ if (!config.progress && !config.loading) {
8
8
  return component;
9
9
  }
10
10
  const { on, ...restConfig } = (typeof config.progress === "object" ? config.progress : {});
11
- const progressEventHandlers = on ?? {};
12
11
  const progressConfig = {
13
12
  variant: "circular", size: 20, thickness: 2, indeterminate: true,
14
13
  ...restConfig,
14
+ minSize: 20,
15
15
  };
16
16
  let progress = null;
17
17
  let progressPromise = null;
@@ -30,15 +30,14 @@ return progress;
30
30
  if (!progressPromise) {
31
31
  progressPromise = createProgressLazy(progressConfig).then((p) => {
32
32
  progress = p;
33
- addClass(progress.element, component.getClass("button__progress"));
34
- progress.element.style.display = "none";
35
- for (const event of Object.keys(progressEventHandlers)) {
36
- const handler = progressEventHandlers[event];
33
+ addClass(p.element, component.getClass("button__progress"));
34
+ p.element.style.display = "none";
35
+ for (const [event, handler] of Object.entries(on ?? {})) {
37
36
  if (handler)
38
37
  p.on(event, handler);
39
38
  }
40
- component.progress = progress;
41
- return progress;
39
+ component.progress = p;
40
+ return p;
42
41
  });
43
42
  }
44
43
  return progressPromise;
@@ -52,7 +51,6 @@ return component.element.firstChild;
52
51
  };
53
52
  const showProgress = async () => {
54
53
  const p = await ensureProgress();
55
- if (p.element) {
56
54
  if (!component.element.contains(p.element)) {
57
55
  const insertPoint = getProgressInsertionPoint();
58
56
  if (insertPoint) {
@@ -68,7 +66,6 @@ const iconElement = component.element.querySelector(`.${component.getClass("butt
68
66
  if (iconElement instanceof HTMLElement) {
69
67
  iconElement.style.display = "none";
70
68
  }
71
- }
72
69
  return component;
73
70
  };
74
71
  component.showProgress = showProgress;
@@ -1,5 +1,11 @@
1
1
  import type { ButtonComponent, ButtonConfig } from "../button/types.js";
2
2
 
3
+ /**
4
+ * Creates a new Button Group component The Button Group component provides a container for grouping related action buttons.
5
+ * @param config
6
+ */
7
+ declare const createButtonGroup: (config?: ButtonGroupConfig) => ButtonGroupComponent;
8
+
3
9
  /** Button group orientation */
4
10
  type ButtonGroupOrientation = "horizontal" | "vertical";
5
11
 
@@ -239,12 +245,6 @@ interface ButtonGroupComponent {
239
245
  /** Destroys the component and cleans up resources */
240
246
  destroy: () => void;
241
247
  }
242
-
243
- /**
244
- * Creates a new Button Group component The Button Group component provides a container for grouping related action buttons.
245
- * @param config
246
- */
247
- declare const createButtonGroup: (config?: ButtonGroupConfig) => ButtonGroupComponent;
248
248
  export type { ButtonGroupChangeEvent, ButtonGroupComponent, ButtonGroupConfig, ButtonGroupDensity, ButtonGroupEvent, ButtonGroupEventType, ButtonGroupItemConfig, ButtonGroupKind, ButtonGroupOrientation, ButtonGroupSelection, ButtonGroupVariant };
249
249
  export { createButtonGroup, createButtonGroup as default };
250
250
  export { BUTTON_GROUP_CLASSES, BUTTON_GROUP_DEFAULTS, BUTTON_GROUP_DENSITY, BUTTON_GROUP_EVENTS, BUTTON_GROUP_ORIENTATIONS, BUTTON_GROUP_VARIANTS } from "./constants.js";
@@ -2,35 +2,6 @@ import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
2
  import type { TouchEvents } from "../../core/utils/mobile.js";
3
3
  import type { ButtonConfig as BaseButtonConfig } from "../button/types.js";
4
4
 
5
- declare const CARD_CONTENT_PADDING = true;
6
-
7
- /**
8
- * Creates a card content component
9
- * @param config
10
- */
11
- declare const createCardContent: (config?: CardContentConfig) => HTMLElement;
12
-
13
- /**
14
- * Creates a card header component
15
- * @param config
16
- */
17
- declare const createCardHeader: (config?: CardHeaderConfig) => HTMLElement;
18
-
19
- /**
20
- * Creates a card actions component
21
- * @param config
22
- */
23
- declare const createCardActions: (config?: CardActionsConfig) => HTMLElement;
24
-
25
-
26
- declare const NESTED_ACTION_SELECTOR = "button,a[href],input,select,textarea,m-button,m-icon-button,[role=button],[role=link],slot[name=actions],slot[name=header-action]";
27
-
28
- /**
29
- * Creates a card media component
30
- * @param config
31
- */
32
- declare const createCardMedia: (config?: CardMediaConfig) => HTMLElement;
33
-
34
5
  /** Card variant types following Material Design 3 guidelines. */
35
6
  type CardVariant = 'elevated' | 'filled' | 'outlined';
36
7
 
@@ -322,6 +293,35 @@ declare module "../../core/config/global" {
322
293
  }
323
294
  }
324
295
 
296
+ declare const CARD_CONTENT_PADDING = true;
297
+
298
+ /**
299
+ * Creates a card content component
300
+ * @param config
301
+ */
302
+ declare const createCardContent: (config?: CardContentConfig) => HTMLElement;
303
+
304
+ /**
305
+ * Creates a card header component
306
+ * @param config
307
+ */
308
+ declare const createCardHeader: (config?: CardHeaderConfig) => HTMLElement;
309
+
310
+ /**
311
+ * Creates a card actions component
312
+ * @param config
313
+ */
314
+ declare const createCardActions: (config?: CardActionsConfig) => HTMLElement;
315
+
316
+
317
+ declare const NESTED_ACTION_SELECTOR = "button,a[href],input,select,textarea,m-button,m-icon-button,[role=button],[role=link],slot[name=actions],slot[name=header-action]";
318
+
319
+ /**
320
+ * Creates a card media component
321
+ * @param config
322
+ */
323
+ declare const createCardMedia: (config?: CardMediaConfig) => HTMLElement;
324
+
325
325
  /**
326
326
  * Creates a new Card component following Material Design 3 principles.
327
327
  * @param config
@@ -1,6 +1,12 @@
1
1
  import type { EventCallback } from "../../core/state/emitter.js";
2
2
  import type { TouchEvents } from "../../core/utils/mobile.js";
3
3
 
4
+ /**
5
+ * Creates a new Checkbox component with the specified configuration.
6
+ * @param config
7
+ */
8
+ declare const createCheckbox: (config?: CheckboxConfig) => CheckboxComponent;
9
+
4
10
  /** Checkbox label position types - controls where the label appears */
5
11
  type CheckboxLabelPosition = "start" | "end";
6
12
 
@@ -206,12 +212,6 @@ declare module "../../core/config/global" {
206
212
  checkbox?: Partial<CheckboxConfig>;
207
213
  }
208
214
  }
209
-
210
- /**
211
- * Creates a new Checkbox component with the specified configuration.
212
- * @param config
213
- */
214
- declare const createCheckbox: (config?: CheckboxConfig) => CheckboxComponent;
215
215
  export type { CheckboxChangePayload, CheckboxComponent, CheckboxConfig, CheckboxEvents, CheckboxLabelPosition };
216
216
  export { createCheckbox, createCheckbox as default };
217
217
  export { CHECKBOX_CLASSES, CHECKBOX_LABEL_POSITION, CHECKBOX_STATES } from "./constants.js";
@@ -1,6 +1,24 @@
1
1
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
2
  import type { EventCallback } from "../../core/state/emitter.js";
3
3
 
4
+ /**
5
+ * Creates a chips container for grouping related chips Chips follows a clear architectural pattern: 1.
6
+ * @param config
7
+ */
8
+ declare const createChips: (config?: ChipsConfig) => ChipsComponent;
9
+
10
+ /** Action chip; flat and outlined by default. */
11
+ declare const createAssistChip: (config: AssistChipConfig) => ChipComponent;
12
+
13
+ /** Toggleable filter; selected chips show a checkmark. */
14
+ declare const createFilterChip: (config: FilterChipConfig) => ChipComponent;
15
+
16
+ /** Selectable input token with an optional independent removal action. */
17
+ declare const createInputChip: (config: InputChipConfig) => ChipComponent;
18
+
19
+ /** Suggested action; flat and outlined by default. */
20
+ declare const createSuggestionChip: (config: SuggestionChipConfig) => ChipComponent;
21
+
4
22
  type ChipType = "assist" | "filter" | "input" | "suggestion";
5
23
 
6
24
  /** Shared chip options. */
@@ -321,23 +339,5 @@ declare module "../../core/config/global" {
321
339
  chip?: Partial<ChipConfig>;
322
340
  }
323
341
  }
324
-
325
- /** Action chip; flat and outlined by default. */
326
- declare const createAssistChip: (config: AssistChipConfig) => ChipComponent;
327
-
328
- /** Toggleable filter; selected chips show a checkmark. */
329
- declare const createFilterChip: (config: FilterChipConfig) => ChipComponent;
330
-
331
- /** Selectable input token with an optional independent removal action. */
332
- declare const createInputChip: (config: InputChipConfig) => ChipComponent;
333
-
334
- /** Suggested action; flat and outlined by default. */
335
- declare const createSuggestionChip: (config: SuggestionChipConfig) => ChipComponent;
336
-
337
- /**
338
- * Creates a chips container for grouping related chips Chips follows a clear architectural pattern: 1.
339
- * @param config
340
- */
341
- declare const createChips: (config?: ChipsConfig) => ChipsComponent;
342
342
  export type { AssistChipConfig, ChipChangePayload, ChipComponent, ChipConfig, ChipEvents, ChipType, ChipsAddEvent, ChipsChangeEvent, ChipsComponent, ChipsConfig, ChipsEvents, ChipsRemoveEvent, FilterChipConfig, InputChipConfig, SuggestionChipConfig };
343
343
  export { createAssistChip, createChips, createChips as default, createFilterChip, createInputChip, createSuggestionChip };
@@ -1,6 +1,12 @@
1
1
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
2
  import type { NormalizedEvent } from "../../core/utils/mobile.js";
3
3
 
4
+ /** M3 calendar/input modes share a draft; modal acceptance is the commit boundary. */
5
+ /** The value's type follows a literal selectionMode: `'range'` makes it a pair, the default a date. */
6
+ declare const createDatePicker: <M extends string = "single">(config?: DatePickerConfig & {
7
+ selectionMode?: M;
8
+ }) => DatePickerComponent<DatePickerValueOf<M>>;
9
+
4
10
  /** Value returned by the API, including complete ranges and empty selections. */
5
11
  type DatePickerValue = Date | [
6
12
  Date,
@@ -303,11 +309,5 @@ interface DatePickerState {
303
309
  listStart?: Date;
304
310
  listLength?: number;
305
311
  }
306
-
307
- /** M3 calendar/input modes share a draft; modal acceptance is the commit boundary. */
308
- /** The value's type follows a literal selectionMode: `'range'` makes it a pair, the default a date. */
309
- declare const createDatePicker: <M extends string = "single">(config?: DatePickerConfig & {
310
- selectionMode?: M;
311
- }) => DatePickerComponent<DatePickerValueOf<M>>;
312
312
  export type { CalendarAPI, DatePickerChangePayload, DatePickerComponent, DatePickerConfig, DatePickerEvents, DatePickerInput, DatePickerSelectionMode, DatePickerSwipePayload, DatePickerTapPayload, DatePickerValue, DatePickerValueOf, DatePickerVariant, DatePickerView, DatePickerVisibilityPayload };
313
313
  export { createDatePicker, createDatePicker as default };
@@ -1,6 +1,12 @@
1
1
  import type { EventCallback } from "../../core/state/emitter.js";
2
2
  import type { ButtonComponent } from "../button/types.js";
3
3
 
4
+ /**
5
+ * Creates a new Dialog component with the specified configuration.
6
+ * @param config
7
+ */
8
+ declare const createDialog: (config?: DialogConfig) => DialogComponent;
9
+
4
10
  /** Dialog size types - determines the width and height of the dialog */
5
11
  type DialogSize = 'small' | 'medium' | 'large' | 'fullwidth' | 'fullscreen';
6
12
 
@@ -323,11 +329,5 @@ declare module "../../core/config/global" {
323
329
  dialog?: Partial<DialogConfig>;
324
330
  }
325
331
  }
326
-
327
- /**
328
- * Creates a new Dialog component with the specified configuration.
329
- * @param config
330
- */
331
- declare const createDialog: (config?: DialogConfig) => DialogComponent;
332
332
  export type { DialogAnimation, DialogButton, DialogComponent, DialogConfig, DialogConfirmOptions, DialogEvent, DialogEventType, DialogFooterAlignment, DialogSize };
333
333
  export { createDialog, createDialog as default };
@@ -5,6 +5,48 @@ import { BaseComponent, ElementComponent } from "../../core/compose/index.js";
5
5
  * @param config
6
6
  */
7
7
  declare const createDivider: (config?: DividerConfig) => DividerComponent;
8
+ /** Configuration options for divider components Controls the appearance, orientation, and behavior of Material Design 3 dividers. */
9
+ interface DividerConfig {
10
+ /** CSS class prefix (defaults to 'mtrl') */
11
+ prefix?: string;
12
+ /** CSS class to add to the divider Additional classes for custom styling needs. */
13
+ class?: string | string[];
14
+ /**
15
+ * Orientation of the divider
16
+ * @default 'horizontal'
17
+ */
18
+ orientation?: 'horizontal' | 'vertical';
19
+ /**
20
+ * Variant of the divider Controls how the divider is inset within its container: - 'full-width': Spans the entire width/height (default) - 'inset': Adds space at the start (left for horizontal, top for vertical) - 'middle-inset': Adds space at both start and end Most commonly used in lists to align dividers with text content.
21
+ * @default 'full-width'
22
+ */
23
+ variant?: 'full-width' | 'inset' | 'middle-inset';
24
+ /**
25
+ * Custom inset value (left margin for horizontal, top margin for vertical) Overrides the default inset spacing at the start of the divider.
26
+ * @default 16 for 'inset' and 'middle-inset' variants
27
+ */
28
+ insetStart?: number;
29
+ /**
30
+ * Custom inset end value (right margin for horizontal, bottom margin for vertical) Overrides the default inset spacing at the end of the divider.
31
+ * @default 0 for 'inset', 16 for 'middle-inset'
32
+ */
33
+ insetEnd?: number;
34
+ /** Color of the divider Sets a custom color for the divider. */
35
+ color?: string;
36
+ /**
37
+ * Thickness of the divider in pixels Controls the thickness (height for horizontal, width for vertical) of the divider.
38
+ * @default 1
39
+ */
40
+ thickness?: number;
41
+ /** Used internally for component composition */
42
+ componentName?: string;
43
+ }
44
+
45
+
46
+ declare const defaultConfig: Partial<DividerConfig>;
47
+
48
+
49
+ declare const createBaseConfig: (config?: DividerConfig) => DividerConfig;
8
50
 
9
51
  /** The three slices of a divider, one per enhancer in features.ts. */
10
52
  interface DividerOrientation {
@@ -51,47 +93,5 @@ interface DividerStyle {
51
93
  /** Divider component interface Represents a Material Design 3 divider that separates content into distinct sections. */
52
94
  interface DividerComponent extends BaseComponent, ElementComponent, DividerOrientation, DividerInset, DividerStyle {
53
95
  }
54
- /** Configuration options for divider components Controls the appearance, orientation, and behavior of Material Design 3 dividers. */
55
- interface DividerConfig {
56
- /** CSS class prefix (defaults to 'mtrl') */
57
- prefix?: string;
58
- /** CSS class to add to the divider Additional classes for custom styling needs. */
59
- class?: string | string[];
60
- /**
61
- * Orientation of the divider
62
- * @default 'horizontal'
63
- */
64
- orientation?: 'horizontal' | 'vertical';
65
- /**
66
- * Variant of the divider Controls how the divider is inset within its container: - 'full-width': Spans the entire width/height (default) - 'inset': Adds space at the start (left for horizontal, top for vertical) - 'middle-inset': Adds space at both start and end Most commonly used in lists to align dividers with text content.
67
- * @default 'full-width'
68
- */
69
- variant?: 'full-width' | 'inset' | 'middle-inset';
70
- /**
71
- * Custom inset value (left margin for horizontal, top margin for vertical) Overrides the default inset spacing at the start of the divider.
72
- * @default 16 for 'inset' and 'middle-inset' variants
73
- */
74
- insetStart?: number;
75
- /**
76
- * Custom inset end value (right margin for horizontal, bottom margin for vertical) Overrides the default inset spacing at the end of the divider.
77
- * @default 0 for 'inset', 16 for 'middle-inset'
78
- */
79
- insetEnd?: number;
80
- /** Color of the divider Sets a custom color for the divider. */
81
- color?: string;
82
- /**
83
- * Thickness of the divider in pixels Controls the thickness (height for horizontal, width for vertical) of the divider.
84
- * @default 1
85
- */
86
- thickness?: number;
87
- /** Used internally for component composition */
88
- componentName?: string;
89
- }
90
-
91
-
92
- declare const defaultConfig: Partial<DividerConfig>;
93
-
94
-
95
- declare const createBaseConfig: (config?: DividerConfig) => DividerConfig;
96
96
  export type { DividerComponent, DividerConfig };
97
97
  export { createDivider, createDivider as default };
@@ -2,6 +2,12 @@ import type { IconManager } from "../../core/compose/features/icon.js";
2
2
  import type { ForwardedEventPayload } from "../../core/dom/create.js";
3
3
  import type { TouchEvents } from "../../core/utils/mobile.js";
4
4
 
5
+ /**
6
+ * Creates a new Floating Action Button (FAB) component Floating Action Buttons (FABs) represent the primary action in an application.
7
+ * @param config
8
+ */
9
+ declare const createFab: (config: FabConfig) => FabComponent;
10
+
5
11
  /** FAB variants following Material Design 3 guidelines Material Design 3 offers different color variants for the FAB to match visual hierarchy and application color schemes. */
6
12
  type FabVariant = "primary-container" | "secondary-container" | "tertiary-container" | "primary" | "secondary" | "tertiary";
7
13
 
@@ -173,11 +179,5 @@ interface FabComponent {
173
179
  */
174
180
  addClass: (...classes: string[]) => FabComponent;
175
181
  }
176
-
177
- /**
178
- * Creates a new Floating Action Button (FAB) component Floating Action Buttons (FABs) represent the primary action in an application.
179
- * @param config
180
- */
181
- declare const createFab: (config: FabConfig) => FabComponent;
182
182
  export type { FabComponent, FabConfig, FabEvents, FabPlacement, FabPosition, FabSize, FabVariant };
183
183
  export { createFab, createFab as default };
@@ -1,10 +1,20 @@
1
1
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
2
 
3
+ /** Options for {@link withSingleSelectListbox}. */
4
+ interface SingleSelectListboxOptions {
5
+ /**
6
+ * Where the visual-only radio indicator sits: before the row's content (`"leading"`, the default) or after it (`"trailing"`).
7
+ * @default "leading"
8
+ */
9
+ indicator?: "leading" | "trailing";
10
+ }
11
+
3
12
  /**
4
- * Creates a new List component The List component provides a simple way to render static arrays of data with Material item anatomy and built-in selection capabilities.
5
- * @param config
13
+ * Turns a created list into a single-select listbox (`role="listbox"` with `role="option"` rows, `aria-selected`, a visual-only radio, one tab stop).
14
+ * @param component
15
+ * @param options
6
16
  */
7
- declare const createList: (config?: Partial<ListConfig<ListItem>>) => ListComponent<ListItem>;
17
+ declare const withSingleSelectListbox: (component: ListComponent<ListItem>, options?: SingleSelectListboxOptions) => ListComponent<ListItem>;
8
18
 
9
19
  /** List variant types following Material Design 3 guidelines. */
10
20
  type ListVariant = 'standard' | 'segmented';
@@ -279,21 +289,11 @@ interface ListEvents<T = unknown> {
279
289
  keydown: (event: ForwardedEventPayload<KeyboardEvent, HTMLElement>) => void;
280
290
  }
281
291
 
282
- /** Options for {@link withSingleSelectListbox}. */
283
- interface SingleSelectListboxOptions {
284
- /**
285
- * Where the visual-only radio indicator sits: before the row's content (`"leading"`, the default) or after it (`"trailing"`).
286
- * @default "leading"
287
- */
288
- indicator?: "leading" | "trailing";
289
- }
290
-
291
292
  /**
292
- * Turns a created list into a single-select listbox (`role="listbox"` with `role="option"` rows, `aria-selected`, a visual-only radio, one tab stop).
293
- * @param component
294
- * @param options
293
+ * Creates a new List component The List component provides a simple way to render static arrays of data with Material item anatomy and built-in selection capabilities.
294
+ * @param config
295
295
  */
296
- declare const withSingleSelectListbox: (component: ListComponent<ListItem>, options?: SingleSelectListboxOptions) => ListComponent<ListItem>;
296
+ declare const createList: (config?: Partial<ListConfig<ListItem>>) => ListComponent<ListItem>;
297
297
  export type { ListComponent, ListConfig, ListItem, ListSlot, ListVariant, LoadEvent, SelectEvent, SingleSelectListboxOptions };
298
298
  export { createList, createList as default, withSingleSelectListbox };
299
299
  export { LIST_CLASSES, LIST_DEFAULTS, LIST_EVENTS, LIST_SCROLL_POSITIONS, LIST_SELECTION_MODES, LIST_TYPES, LIST_VARIANTS } from "./constants.js";
@@ -1,5 +1,37 @@
1
1
  import { MaterialShapeName, RadialProfile } from "../../core/shapes/index.js";
2
2
 
3
+ /**
4
+ * Creates a loading indicator: the Material 3 expressive shape morph for waits under about five seconds.
5
+ * @param config
6
+ */
7
+ declare const createLoadingIndicator: (config?: LoadingIndicatorConfig) => LoadingIndicatorComponent;
8
+
9
+
10
+ interface Frame {
11
+
12
+ index: number;
13
+
14
+ progress: number;
15
+
16
+ rotation: number;
17
+ }
18
+
19
+ interface Renderer {
20
+
21
+ draw: (shapes: readonly RadialProfile[], frame: Frame) => void;
22
+
23
+ resize: (size: number) => void;
24
+
25
+ refreshColor: () => void;
26
+
27
+ redraw: () => void;
28
+
29
+ profiles: (names: readonly MaterialShapeName[]) => RadialProfile[];
30
+ }
31
+
32
+
33
+ declare const withRenderer: (config: LoadingIndicatorConfig) => (component: BaseComponent) => BaseComponent;
34
+
3
35
  /** Configuration options for the loading indicator */
4
36
  interface LoadingIndicatorConfig {
5
37
  /** Width and height in pixels, 24 to 240 (default 48) */
@@ -54,38 +86,6 @@ interface BaseComponent {
54
86
  canvas?: HTMLCanvasElement;
55
87
  renderer?: Renderer;
56
88
  }
57
-
58
- /**
59
- * Creates a loading indicator: the Material 3 expressive shape morph for waits under about five seconds.
60
- * @param config
61
- */
62
- declare const createLoadingIndicator: (config?: LoadingIndicatorConfig) => LoadingIndicatorComponent;
63
-
64
-
65
- interface Frame {
66
-
67
- index: number;
68
-
69
- progress: number;
70
-
71
- rotation: number;
72
- }
73
-
74
- interface Renderer {
75
-
76
- draw: (shapes: readonly RadialProfile[], frame: Frame) => void;
77
-
78
- resize: (size: number) => void;
79
-
80
- refreshColor: () => void;
81
-
82
- redraw: () => void;
83
-
84
- profiles: (names: readonly MaterialShapeName[]) => RadialProfile[];
85
- }
86
-
87
-
88
- declare const withRenderer: (config: LoadingIndicatorConfig) => (component: BaseComponent) => BaseComponent;
89
89
  export type { LoadingIndicatorComponent, LoadingIndicatorConfig };
90
90
  export { createLoadingIndicator, createLoadingIndicator as default };
91
91
  export { LOADING_INDICATOR_DEFAULTS, LOADING_INDICATOR_SHAPES } from "./constants.js";
@@ -1,5 +1,8 @@
1
1
  import type { DestinationConfig } from "../../core/navigation/destinations.js";
2
2
 
3
+ /** Creates an M3 Expressive navigation bar: three to five destinations along the bottom of a compact or medium window (Compose `ShortNavigationBar`). */
4
+ declare function createNavigationBar(config?: NavigationBarConfig): NavigationBarComponent;
5
+
3
6
  /** One destination of the bar: a link (`href`) or a button. */
4
7
  type NavigationBarItemConfig = DestinationConfig;
5
8
 
@@ -63,8 +66,5 @@ interface NavigationBarComponent {
63
66
  off: <K extends keyof NavigationBarEvents>(event: K, handler: (payload: NavigationBarEvents[K]) => void) => NavigationBarComponent;
64
67
  destroy: () => void;
65
68
  }
66
-
67
- /** Creates an M3 Expressive navigation bar: three to five destinations along the bottom of a compact or medium window (Compose `ShortNavigationBar`). */
68
- declare function createNavigationBar(config?: NavigationBarConfig): NavigationBarComponent;
69
69
  export type { NavigationBarComponent, NavigationBarConfig, NavigationBarEvents, NavigationBarItemConfig, NavigationBarItemLayout, NavigationBarSelectEvent };
70
70
  export { createNavigationBar, createNavigationBar as default };
@@ -1,5 +1,8 @@
1
1
  import type { BaseComponentConfig } from "../../core/config/component.js";
2
2
 
3
+ /** Creates an M3 Expressive navigation rail with stable destinations during expansion. */
4
+ declare function createNavigationRail(config?: NavigationRailConfig): NavigationRailComponent;
5
+
3
6
  /** A primary destination. */
4
7
  interface NavigationRailItemConfig {
5
8
  id: string;
@@ -91,8 +94,5 @@ declare module "../../core/config/global" {
91
94
  "navigation-rail"?: Partial<NavigationRailConfig>;
92
95
  }
93
96
  }
94
-
95
- /** Creates an M3 Expressive navigation rail with stable destinations during expansion. */
96
- declare function createNavigationRail(config?: NavigationRailConfig): NavigationRailComponent;
97
97
  export type { NavigationRailComponent, NavigationRailConfig, NavigationRailEvents, NavigationRailItemConfig, NavigationRailSelectEvent };
98
98
  export { createNavigationRail, createNavigationRail as default };