material 3.8.0 → 3.8.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 (382) hide show
  1. package/README.md +1 -1
  2. package/dist/components/badge/badge.d.ts +4 -0
  3. package/dist/components/badge/constants.d.ts +4 -0
  4. package/dist/components/badge/index.d.ts +1 -0
  5. package/dist/components/badge/types.d.ts +102 -0
  6. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +4 -0
  7. package/dist/components/bottom-app-bar/constants.d.ts +3 -0
  8. package/dist/components/bottom-app-bar/types.d.ts +42 -0
  9. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  10. package/dist/components/bottom-sheet/constants.d.ts +9 -0
  11. package/dist/components/bottom-sheet/types.d.ts +52 -0
  12. package/dist/components/button/button.d.ts +4 -0
  13. package/dist/components/button/constants.d.ts +20 -0
  14. package/dist/components/button/index.d.ts +1 -0
  15. package/dist/components/button/types.d.ts +190 -0
  16. package/dist/components/button-group/button-group.d.ts +4 -0
  17. package/dist/components/button-group/constants.d.ts +54 -0
  18. package/dist/components/button-group/index.d.ts +1 -0
  19. package/dist/components/button-group/types.d.ts +125 -0
  20. package/dist/components/card/card.d.ts +4 -0
  21. package/dist/components/card/constants.d.ts +11 -0
  22. package/dist/components/card/content.d.ts +16 -0
  23. package/dist/components/card/index.d.ts +2 -0
  24. package/dist/components/card/types.d.ts +123 -0
  25. package/dist/components/carousel/carousel.d.ts +1 -0
  26. package/dist/components/carousel/constants.d.ts +10 -0
  27. package/dist/components/carousel/types.d.ts +16 -0
  28. package/dist/components/checkbox/checkbox.d.ts +5 -0
  29. package/dist/components/checkbox/constants.d.ts +13 -0
  30. package/dist/components/checkbox/index.d.ts +2 -0
  31. package/dist/components/checkbox/types.d.ts +94 -0
  32. package/dist/components/chips/chips.d.ts +4 -0
  33. package/dist/components/chips/constants.d.ts +1 -0
  34. package/dist/components/chips/factories.d.ts +4 -0
  35. package/dist/components/chips/types.d.ts +140 -0
  36. package/dist/components/datepicker/constants.d.ts +38 -0
  37. package/dist/components/datepicker/datepicker.d.ts +2 -0
  38. package/dist/components/datepicker/types.d.ts +139 -0
  39. package/dist/components/dialog/constants.d.ts +45 -0
  40. package/dist/components/dialog/dialog.d.ts +5 -0
  41. package/dist/components/dialog/index.d.ts +1 -0
  42. package/dist/components/dialog/types.d.ts +196 -0
  43. package/dist/components/divider/config.d.ts +30 -0
  44. package/dist/components/divider/constants.d.ts +15 -0
  45. package/dist/components/divider/divider.d.ts +4 -0
  46. package/dist/components/divider/types.d.ts +27 -0
  47. package/dist/components/drawer/constants.d.ts +39 -0
  48. package/dist/components/drawer/drawer.d.ts +4 -0
  49. package/dist/components/drawer/index.d.ts +1 -0
  50. package/dist/components/drawer/types.d.ts +109 -0
  51. package/dist/components/extended-fab/constants.d.ts +32 -0
  52. package/dist/components/extended-fab/extended-fab.d.ts +4 -0
  53. package/dist/components/extended-fab/types.d.ts +123 -0
  54. package/dist/components/fab/constants.d.ts +26 -0
  55. package/dist/components/fab/fab.d.ts +4 -0
  56. package/dist/components/fab/types.d.ts +100 -0
  57. package/dist/components/fab-menu/constants.d.ts +9 -0
  58. package/dist/components/fab-menu/fab-menu.d.ts +4 -0
  59. package/dist/components/fab-menu/types.d.ts +41 -0
  60. package/dist/components/icon-button/constants.d.ts +34 -0
  61. package/dist/components/icon-button/icon-button.d.ts +4 -0
  62. package/dist/components/icon-button/types.d.ts +157 -0
  63. package/dist/components/index.d.ts +1 -0
  64. package/dist/components/list/constants.d.ts +30 -0
  65. package/dist/components/list/index.d.ts +1 -0
  66. package/dist/components/list/list.d.ts +4 -0
  67. package/dist/components/list/types.d.ts +110 -0
  68. package/dist/components/loading-indicator/constants.d.ts +16 -0
  69. package/dist/components/loading-indicator/features/renderer.d.ts +13 -0
  70. package/dist/components/loading-indicator/loading-indicator.d.ts +4 -0
  71. package/dist/components/loading-indicator/types.d.ts +21 -0
  72. package/dist/components/menu/constants.d.ts +51 -0
  73. package/dist/components/menu/features/controller.js +1 -1
  74. package/dist/components/menu/features/keyboard.js +8 -3
  75. package/dist/components/menu/features/opener.js +2 -16
  76. package/dist/components/menu/index.d.ts +2 -0
  77. package/dist/components/menu/inner.d.ts +2 -0
  78. package/dist/components/menu/menu.d.ts +4 -0
  79. package/dist/components/menu/on-demand.d.ts +9 -0
  80. package/dist/components/menu/types.d.ts +185 -1
  81. package/dist/components/navigation-bar/navigation-bar.d.ts +1 -0
  82. package/dist/components/navigation-bar/types.d.ts +12 -0
  83. package/dist/components/navigation-rail/constants.d.ts +2 -0
  84. package/dist/components/navigation-rail/navigation-rail.d.ts +1 -0
  85. package/dist/components/navigation-rail/types.d.ts +18 -0
  86. package/dist/components/progress/constants.d.ts +37 -0
  87. package/dist/components/progress/progress.d.ts +4 -0
  88. package/dist/components/progress/types.d.ts +136 -0
  89. package/dist/components/radios/constants.d.ts +14 -0
  90. package/dist/components/radios/radios.d.ts +4 -0
  91. package/dist/components/radios/types.d.ts +89 -0
  92. package/dist/components/search/constants.d.ts +34 -0
  93. package/dist/components/search/search.d.ts +4 -0
  94. package/dist/components/search/types.d.ts +109 -0
  95. package/dist/components/select/constants.d.ts +46 -0
  96. package/dist/components/select/features.js +9 -1
  97. package/dist/components/select/index.d.ts +2 -0
  98. package/dist/components/select/select.d.ts +4 -0
  99. package/dist/components/select/types.d.ts +95 -0
  100. package/dist/components/side-sheet/constants.d.ts +9 -0
  101. package/dist/components/side-sheet/side-sheet.d.ts +4 -0
  102. package/dist/components/side-sheet/types.d.ts +51 -0
  103. package/dist/components/slider/constants.d.ts +62 -0
  104. package/dist/components/slider/slider.d.ts +4 -0
  105. package/dist/components/slider/types.d.ts +78 -0
  106. package/dist/components/snackbar/constants.d.ts +37 -0
  107. package/dist/components/snackbar/snackbar.d.ts +5 -0
  108. package/dist/components/snackbar/types.d.ts +67 -0
  109. package/dist/components/split-button/api.js +13 -3
  110. package/dist/components/split-button/constants.d.ts +13 -0
  111. package/dist/components/split-button/split-button.d.ts +4 -0
  112. package/dist/components/split-button/types.d.ts +50 -0
  113. package/dist/components/switch/constants.d.ts +34 -0
  114. package/dist/components/switch/switch.d.ts +4 -0
  115. package/dist/components/switch/types.d.ts +55 -0
  116. package/dist/components/tabs/constants.d.ts +49 -0
  117. package/dist/components/tabs/indicator.d.ts +22 -0
  118. package/dist/components/tabs/responsive.d.ts +17 -0
  119. package/dist/components/tabs/tab.d.ts +5 -0
  120. package/dist/components/tabs/tabs.d.ts +4 -0
  121. package/dist/components/tabs/types.d.ts +170 -0
  122. package/dist/components/tabs/utils.d.ts +24 -0
  123. package/dist/components/text-field/constants.d.ts +61 -0
  124. package/dist/components/text-field/features/trailing-icon.d.ts +25 -0
  125. package/dist/components/text-field/text-field.d.ts +4 -0
  126. package/dist/components/text-field/types.d.ts +84 -0
  127. package/dist/components/timepicker/constants.d.ts +61 -0
  128. package/dist/components/timepicker/types.d.ts +145 -0
  129. package/dist/components/toolbar/constants.d.ts +8 -0
  130. package/dist/components/toolbar/toolbar.d.ts +4 -0
  131. package/dist/components/toolbar/types.d.ts +75 -0
  132. package/dist/components/tooltip/constants.d.ts +43 -0
  133. package/dist/components/tooltip/tooltip.d.ts +4 -0
  134. package/dist/components/tooltip/types.d.ts +78 -0
  135. package/dist/components/top-app-bar/constants.d.ts +29 -0
  136. package/dist/components/top-app-bar/top-app-bar.d.ts +4 -0
  137. package/dist/components/top-app-bar/types.d.ts +55 -0
  138. package/dist/core/canvas/animation.d.ts +6 -0
  139. package/dist/core/canvas/drawing.d.ts +47 -0
  140. package/dist/core/canvas/index.d.ts +1 -0
  141. package/dist/core/canvas/resize.d.ts +7 -0
  142. package/dist/core/canvas/utils.d.ts +39 -0
  143. package/dist/core/compose/base.d.ts +9 -0
  144. package/dist/core/compose/cleanup.d.ts +2 -0
  145. package/dist/core/compose/component.d.ts +13 -0
  146. package/dist/core/compose/features/badge.d.ts +10 -0
  147. package/dist/core/compose/features/checkable.d.ts +13 -0
  148. package/dist/core/compose/features/debounce.d.ts +19 -0
  149. package/dist/core/compose/features/disabled.d.ts +11 -0
  150. package/dist/core/compose/features/events.d.ts +19 -0
  151. package/dist/core/compose/features/icon.d.ts +20 -0
  152. package/dist/core/compose/features/input.d.ts +31 -0
  153. package/dist/core/compose/features/lifecycle.d.ts +16 -0
  154. package/dist/core/compose/features/position.d.ts +13 -0
  155. package/dist/core/compose/features/ripple.d.ts +17 -0
  156. package/dist/core/compose/features/size.d.ts +5 -0
  157. package/dist/core/compose/features/style.d.ts +5 -0
  158. package/dist/core/compose/features/text.d.ts +20 -0
  159. package/dist/core/compose/features/textinput.d.ts +39 -0
  160. package/dist/core/compose/features/textlabel.d.ts +18 -0
  161. package/dist/core/compose/features/throttle.d.ts +18 -0
  162. package/dist/core/compose/features/track.d.ts +12 -0
  163. package/dist/core/compose/features/variant.d.ts +5 -0
  164. package/dist/core/compose/features/withEvents.d.ts +12 -0
  165. package/dist/core/compose/pipe.d.ts +12 -0
  166. package/dist/core/compose/utils/type-guards.d.ts +5 -0
  167. package/dist/core/config/component.d.ts +17 -0
  168. package/dist/core/config/global.d.ts +15 -0
  169. package/dist/core/config.d.ts +34 -0
  170. package/dist/core/dom/attributes.d.ts +25 -0
  171. package/dist/core/dom/classes.d.ts +24 -0
  172. package/dist/core/dom/create.d.ts +47 -0
  173. package/dist/core/dom/events.d.ts +26 -0
  174. package/dist/core/dom/focus.d.ts +11 -0
  175. package/dist/core/dom/html.d.ts +6 -0
  176. package/dist/core/dom/layer.d.ts +36 -0
  177. package/dist/core/dom/roving.d.ts +7 -0
  178. package/dist/core/navigation/destinations.d.ts +10 -0
  179. package/dist/core/shapes/cubic.d.ts +8 -0
  180. package/dist/core/shapes/material.d.ts +45 -0
  181. package/dist/core/shapes/polygon.d.ts +11 -0
  182. package/dist/core/state/emitter.d.ts +19 -0
  183. package/dist/core/state/events.d.ts +17 -0
  184. package/dist/core/state/store.d.ts +40 -0
  185. package/dist/core/theme/shape.d.ts +3 -0
  186. package/dist/core/theme/tokens.d.ts +6 -0
  187. package/dist/core/utils/background.d.ts +7 -0
  188. package/dist/core/utils/color.d.ts +5 -0
  189. package/dist/core/utils/index.d.ts +9 -0
  190. package/dist/core/utils/mobile.d.ts +10 -0
  191. package/dist/core/utils/object.d.ts +9 -0
  192. package/dist/core/utils/performance.d.ts +20 -0
  193. package/dist/core/utils/theme.d.ts +8 -0
  194. package/dist/core/utils/url.d.ts +3 -0
  195. package/dist/elements/adapter.d.ts +24 -0
  196. package/dist/elements/badge.d.ts +4 -0
  197. package/dist/elements/bottom-app-bar.d.ts +4 -0
  198. package/dist/elements/bottom-sheet.d.ts +6 -0
  199. package/dist/elements/button-group.d.ts +8 -0
  200. package/dist/elements/button.d.ts +5 -0
  201. package/dist/elements/card.d.ts +4 -0
  202. package/dist/elements/carousel.d.ts +5 -0
  203. package/dist/elements/checkbox.d.ts +4 -0
  204. package/dist/elements/chips.d.ts +9 -0
  205. package/dist/elements/css/menu.css +1 -1
  206. package/dist/elements/css/menu.js +1 -1
  207. package/dist/elements/datepicker.d.ts +6 -0
  208. package/dist/elements/define.d.ts +48 -0
  209. package/dist/elements/dialog.d.ts +5 -0
  210. package/dist/elements/divider.d.ts +4 -0
  211. package/dist/elements/drawer.d.ts +6 -0
  212. package/dist/elements/extended-fab.d.ts +5 -0
  213. package/dist/elements/fab-menu.d.ts +10 -0
  214. package/dist/elements/fab.d.ts +5 -0
  215. package/dist/elements/icon-button.d.ts +6 -0
  216. package/dist/elements/index.d.ts +4 -0
  217. package/dist/elements/list.d.ts +8 -0
  218. package/dist/elements/loading-indicator.d.ts +4 -0
  219. package/dist/elements/menu.d.ts +12 -0
  220. package/dist/elements/navigation-bar.d.ts +6 -0
  221. package/dist/elements/navigation-rail.d.ts +10 -0
  222. package/dist/elements/preupgrade/badge.css +1 -1
  223. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  224. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  225. package/dist/elements/preupgrade/button-group.css +1 -1
  226. package/dist/elements/preupgrade/button.css +1 -1
  227. package/dist/elements/preupgrade/card.css +1 -1
  228. package/dist/elements/preupgrade/carousel.css +1 -1
  229. package/dist/elements/preupgrade/checkbox.css +1 -1
  230. package/dist/elements/preupgrade/chips.css +1 -1
  231. package/dist/elements/preupgrade/datepicker.css +1 -1
  232. package/dist/elements/preupgrade/dialog.css +1 -1
  233. package/dist/elements/preupgrade/divider.css +1 -1
  234. package/dist/elements/preupgrade/drawer.css +1 -1
  235. package/dist/elements/preupgrade/extended-fab.css +1 -1
  236. package/dist/elements/preupgrade/fab-menu.css +1 -1
  237. package/dist/elements/preupgrade/fab.css +1 -1
  238. package/dist/elements/preupgrade/icon-button.css +1 -1
  239. package/dist/elements/preupgrade/list.css +1 -1
  240. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  241. package/dist/elements/preupgrade/menu.css +1 -1
  242. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  243. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  244. package/dist/elements/preupgrade/progress.css +1 -1
  245. package/dist/elements/preupgrade/radios.css +1 -1
  246. package/dist/elements/preupgrade/search.css +1 -1
  247. package/dist/elements/preupgrade/select.css +1 -1
  248. package/dist/elements/preupgrade/side-sheet.css +1 -1
  249. package/dist/elements/preupgrade/slider.css +1 -1
  250. package/dist/elements/preupgrade/snackbar.css +1 -1
  251. package/dist/elements/preupgrade/split-button.css +1 -1
  252. package/dist/elements/preupgrade/switch.css +1 -1
  253. package/dist/elements/preupgrade/tabs.css +1 -1
  254. package/dist/elements/preupgrade/text-field.css +1 -1
  255. package/dist/elements/preupgrade/timepicker.css +1 -1
  256. package/dist/elements/preupgrade/toolbar.css +1 -1
  257. package/dist/elements/preupgrade/tooltip.css +1 -1
  258. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  259. package/dist/elements/preupgrade.css +1 -1
  260. package/dist/elements/progress.d.ts +4 -0
  261. package/dist/elements/radios.d.ts +5 -0
  262. package/dist/elements/search.d.ts +15 -0
  263. package/dist/elements/select.d.ts +6 -0
  264. package/dist/elements/side-sheet.d.ts +5 -0
  265. package/dist/elements/slider.d.ts +7 -0
  266. package/dist/elements/snackbar.d.ts +4 -0
  267. package/dist/elements/split-button.d.ts +8 -0
  268. package/dist/elements/styles.d.ts +11 -0
  269. package/dist/elements/switch.d.ts +5 -0
  270. package/dist/elements/tabs.d.ts +6 -0
  271. package/dist/elements/text-field.d.ts +9 -0
  272. package/dist/elements/timepicker.d.ts +9 -0
  273. package/dist/elements/toolbar.d.ts +4 -0
  274. package/dist/elements/tooltip.d.ts +4 -0
  275. package/dist/elements/top-app-bar.d.ts +4 -0
  276. package/dist/index.d.ts +1 -0
  277. package/dist/react/create.d.ts +15 -0
  278. package/dist/react/index.d.ts +1 -0
  279. package/dist/react/jsx.d.ts +3 -0
  280. package/dist/solid/create.d.ts +16 -0
  281. package/dist/solid/index.d.ts +1 -0
  282. package/dist/solid/jsx.d.ts +4 -0
  283. package/dist/ssr/index.d.ts +3 -0
  284. package/dist/ssr/solid.d.ts +1 -0
  285. package/dist/ssr/svelte.d.ts +1 -0
  286. package/dist/ssr/vue.d.ts +1 -0
  287. package/dist/styles/badge.css +1 -1
  288. package/dist/styles/base-lite.css +1 -1
  289. package/dist/styles/base.css +1 -1
  290. package/dist/styles/bottom-app-bar.css +1 -1
  291. package/dist/styles/bottom-sheet.css +1 -1
  292. package/dist/styles/button-group.css +1 -1
  293. package/dist/styles/button.css +1 -1
  294. package/dist/styles/card.css +1 -1
  295. package/dist/styles/carousel.css +1 -1
  296. package/dist/styles/checkbox.css +1 -1
  297. package/dist/styles/chips.css +1 -1
  298. package/dist/styles/contrast.css +1 -1
  299. package/dist/styles/datepicker.css +1 -1
  300. package/dist/styles/dialog.css +1 -1
  301. package/dist/styles/divider.css +1 -1
  302. package/dist/styles/drawer.css +1 -1
  303. package/dist/styles/extended-fab.css +1 -1
  304. package/dist/styles/fab-menu.css +1 -1
  305. package/dist/styles/fab.css +1 -1
  306. package/dist/styles/icon-button.css +1 -1
  307. package/dist/styles/list.css +1 -1
  308. package/dist/styles/loading-indicator.css +1 -1
  309. package/dist/styles/menu.css +2 -2
  310. package/dist/styles/navigation-bar.css +1 -1
  311. package/dist/styles/navigation-rail.css +1 -1
  312. package/dist/styles/progress.css +1 -1
  313. package/dist/styles/radios.css +1 -1
  314. package/dist/styles/search.css +1 -1
  315. package/dist/styles/select.css +1 -1
  316. package/dist/styles/side-sheet.css +1 -1
  317. package/dist/styles/slider.css +1 -1
  318. package/dist/styles/snackbar.css +1 -1
  319. package/dist/styles/split-button.css +1 -1
  320. package/dist/styles/switch.css +1 -1
  321. package/dist/styles/tabs.css +1 -1
  322. package/dist/styles/text-field.css +1 -1
  323. package/dist/styles/timepicker.css +1 -1
  324. package/dist/styles/toolbar.css +1 -1
  325. package/dist/styles/tooltip.css +1 -1
  326. package/dist/styles/top-app-bar.css +1 -1
  327. package/dist/styles/typography.css +1 -1
  328. package/dist/styles/utilities.css +1 -1
  329. package/dist/styles.css +2 -2
  330. package/dist/svelte/runtime.d.ts +21 -0
  331. package/dist/theme/image.d.ts +2 -0
  332. package/dist/theme/index.d.ts +20 -0
  333. package/dist/theme/variants.d.ts +6 -0
  334. package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +1 -0
  335. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +39 -0
  336. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +13 -0
  337. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +1 -0
  338. package/dist/theme/vendor/hct/hct.d.ts +9 -0
  339. package/dist/themes/autumn-contrast.css +1 -1
  340. package/dist/themes/autumn.css +1 -1
  341. package/dist/themes/baseline-contrast.css +1 -1
  342. package/dist/themes/baseline.css +1 -1
  343. package/dist/themes/brownbeige-contrast.css +1 -1
  344. package/dist/themes/brownbeige.css +1 -1
  345. package/dist/themes/content-contrast.css +1 -1
  346. package/dist/themes/content.css +1 -1
  347. package/dist/themes/desert-contrast.css +1 -1
  348. package/dist/themes/desert.css +1 -1
  349. package/dist/themes/expressive-contrast.css +1 -1
  350. package/dist/themes/expressive.css +1 -1
  351. package/dist/themes/fidelity-contrast.css +1 -1
  352. package/dist/themes/fidelity.css +1 -1
  353. package/dist/themes/forest-contrast.css +1 -1
  354. package/dist/themes/forest.css +1 -1
  355. package/dist/themes/fruit-salad-contrast.css +1 -1
  356. package/dist/themes/fruit-salad.css +1 -1
  357. package/dist/themes/highcontrast-contrast.css +1 -1
  358. package/dist/themes/highcontrast.css +1 -1
  359. package/dist/themes/monochrome-contrast.css +1 -1
  360. package/dist/themes/monochrome.css +1 -1
  361. package/dist/themes/neutral-contrast.css +1 -1
  362. package/dist/themes/neutral.css +1 -1
  363. package/dist/themes/ocean-contrast.css +1 -1
  364. package/dist/themes/ocean.css +1 -1
  365. package/dist/themes/rainbow-contrast.css +1 -1
  366. package/dist/themes/rainbow.css +1 -1
  367. package/dist/themes/sageivory-contrast.css +1 -1
  368. package/dist/themes/sageivory.css +1 -1
  369. package/dist/themes/spring-contrast.css +1 -1
  370. package/dist/themes/spring.css +1 -1
  371. package/dist/themes/summer-contrast.css +1 -1
  372. package/dist/themes/summer.css +1 -1
  373. package/dist/themes/sunset-contrast.css +1 -1
  374. package/dist/themes/sunset.css +1 -1
  375. package/dist/themes/tealcaramel-contrast.css +1 -1
  376. package/dist/themes/tealcaramel.css +1 -1
  377. package/dist/themes/vibrant-contrast.css +1 -1
  378. package/dist/themes/vibrant.css +1 -1
  379. package/dist/vue/create.d.ts +18 -0
  380. package/dist/vue/index.d.ts +1 -0
  381. package/package.json +1 -1
  382. package/src/styles/components/_menu.scss +14 -1
@@ -1,51 +1,96 @@
1
+ /** Dialog sizes */
1
2
  export declare const DIALOG_SIZES: {
3
+ /** 320px width, for simple messages or choices */
2
4
  readonly SMALL: "small";
5
+ /** 560px width, for standard forms or content (default) */
3
6
  readonly MEDIUM: "medium";
7
+ /** 800px width, for complex forms or rich content */
4
8
  readonly LARGE: "large";
9
+ /** Spans the full width of the viewport with margins */
5
10
  readonly FULLWIDTH: "fullwidth";
11
+ /** Takes up the entire viewport (similar to a new page) */
6
12
  readonly FULLSCREEN: "fullscreen";
7
13
  };
14
+ /** Dialog animation types */
8
15
  export declare const DIALOG_ANIMATIONS: {
16
+ /** Scale up/down animation from center (default) */
9
17
  readonly SCALE: "scale";
18
+ /** Slide in from bottom, slide out to bottom */
10
19
  readonly SLIDE_UP: "slide-up";
20
+ /** Slide in from top, slide out to top */
11
21
  readonly SLIDE_DOWN: "slide-down";
22
+ /** Simple fade in/out animation */
12
23
  readonly FADE: "fade";
13
24
  };
25
+ /** Footer alignment options */
14
26
  export declare const DIALOG_FOOTER_ALIGNMENTS: {
27
+ /** Align buttons to the right (default, follows Material Design guidelines) */
15
28
  readonly RIGHT: "right";
29
+ /** Align buttons to the left */
16
30
  readonly LEFT: "left";
31
+ /** Center buttons in footer */
17
32
  readonly CENTER: "center";
33
+ /** Space buttons evenly, with first button at left, last at right */
18
34
  readonly SPACE_BETWEEN: "space-between";
19
35
  };
36
+ /** Dialog events */
20
37
  export declare const DIALOG_EVENTS: {
38
+ /** Fired when the dialog begins opening */
21
39
  readonly OPEN: "open";
40
+ /** Fired when the dialog begins closing */
22
41
  readonly CLOSE: "close";
42
+ /** Fired before the dialog starts opening (can be prevented) */
23
43
  readonly BEFORE_OPEN: "beforeopen";
44
+ /** Fired before the dialog starts closing (can be prevented) */
24
45
  readonly BEFORE_CLOSE: "beforeclose";
46
+ /** Fired after the dialog has fully opened (animation complete) */
25
47
  readonly AFTER_OPEN: "afteropen";
48
+ /** Fired after the dialog has fully closed (animation complete) */
26
49
  readonly AFTER_CLOSE: "afterclose";
27
50
  };
51
+ /** Dialog CSS classes */
28
52
  export declare const DIALOG_CLASSES: {
53
+ /** Root dialog element */
29
54
  readonly ROOT: "dialog";
55
+ /** Overlay background */
30
56
  readonly OVERLAY: "dialog__overlay";
57
+ /** Dialog container */
31
58
  readonly CONTAINER: "dialog__container";
59
+ /** Dialog header */
32
60
  readonly HEADER: "dialog__header";
61
+ /** Dialog title */
33
62
  readonly TITLE: "dialog__title";
63
+ /** Dialog subtitle */
34
64
  readonly SUBTITLE: "dialog__subtitle";
65
+ /** Close button */
35
66
  readonly CLOSE_BUTTON: "dialog__close-button";
67
+ /** Dialog content */
36
68
  readonly CONTENT: "dialog__content";
69
+ /** Dialog footer */
37
70
  readonly FOOTER: "dialog__footer";
71
+ /** Dialog divider */
38
72
  readonly DIVIDER: "dialog__divider";
73
+ /** Added when dialog is open */
39
74
  readonly OPEN: "dialog--open";
75
+ /** Added when dialog is animating */
40
76
  readonly ANIMATING: "dialog--animating";
41
77
  };
78
+ /** Default animation duration in milliseconds */
42
79
  export declare const DEFAULT_ANIMATION_DURATION = 300;
80
+ /** Default z-index for dialogs */
43
81
  export declare const DEFAULT_Z_INDEX = 1000;
82
+ /** Button variants for dialog buttons following Material Design 3 */
44
83
  export declare const DIALOG_BUTTON_VARIANTS: {
84
+ /** Text button (low emphasis) */
45
85
  readonly TEXT: "text";
86
+ /** Filled button (high emphasis) */
46
87
  readonly FILLED: "filled";
88
+ /** Outlined button (medium emphasis) */
47
89
  readonly OUTLINED: "outlined";
90
+ /** Tonal button (medium emphasis) */
48
91
  readonly TONAL: "tonal";
49
92
  };
93
+ /** Default button text for confirmation dialogs */
50
94
  export declare const DEFAULT_CONFIRM_BUTTON_TEXT = "Yes";
95
+ /** Default button text for cancellation in dialogs */
51
96
  export declare const DEFAULT_CANCEL_BUTTON_TEXT = "No";
@@ -1,3 +1,8 @@
1
+ /** Dialog Component Implementation This module implements a Material Design 3 dialog component that can be used for alerts, confirmations, form submissions, and complex interactions. */
1
2
  import { DialogConfig, DialogComponent } from "./types.js";
3
+ /**
4
+ * Creates a new Dialog component with the specified configuration.
5
+ * @param config
6
+ */
2
7
  declare const createDialog: (config?: DialogConfig) => DialogComponent;
3
8
  export default createDialog;
@@ -1,2 +1,3 @@
1
+ /** Dialog Component Module A Material Design 3 dialog implementation with support for multiple sizes, animations, content types, and interactive features like confirmation. */
1
2
  export { default, default as createDialog } from "./dialog.js";
2
3
  export type { DialogConfig, DialogComponent, DialogButton, DialogEvent, DialogConfirmOptions, DialogSize, DialogAnimation, DialogFooterAlignment, DialogEventType, } from "./types.js";
@@ -1,63 +1,167 @@
1
1
  import type { ButtonComponent } from "../button/types.js";
2
2
  import type { EventCallback } from "../../core/state/emitter.js";
3
+ /** Dialog size types - determines the width and height of the dialog */
3
4
  export type DialogSize = 'small' | 'medium' | 'large' | 'fullwidth' | 'fullscreen';
5
+ /** Dialog animation types - controls how the dialog appears and disappears */
4
6
  export type DialogAnimation = 'scale' | 'slide-up' | 'slide-down' | 'fade';
7
+ /** Dialog footer alignment types - controls how buttons in the footer are aligned */
5
8
  export type DialogFooterAlignment = 'right' | 'left' | 'center' | 'space-between';
9
+ /** Dialog event types - events that can be listened to with the on() method */
6
10
  export type DialogEventType = 'open' | 'close' | 'beforeopen' | 'beforeclose' | 'afteropen' | 'afterclose';
11
+ /** Configuration interface for the Dialog component */
7
12
  export interface DialogConfig {
13
+ /** Dialog title text - appears in the header */
8
14
  title?: string;
15
+ /** Dialog subtitle text - appears below title in smaller text */
9
16
  subtitle?: string;
17
+ /** Dialog content (text or HTML) Can include rich content like forms, images, etc. */
10
18
  content?: string;
19
+ /**
20
+ * Whether to show a close affordance in the header.
21
+ * @default false (true for the fullscreen size)
22
+ */
11
23
  closeButton?: boolean;
24
+ /** Accessible name for a dialog without a headline */
12
25
  ariaLabel?: string;
26
+ /** ARIA role for the dialog. */
13
27
  role?: 'alertdialog' | 'dialog';
28
+ /** Additional CSS classes to apply to the dialog */
14
29
  class?: string;
30
+ /**
31
+ * Dialog size variant
32
+ * @default "medium"
33
+ */
15
34
  size?: DialogSize | string;
35
+ /**
36
+ * Dialog animation variant
37
+ * @default "scale"
38
+ */
16
39
  animation?: DialogAnimation | string;
40
+ /**
41
+ * Footer buttons alignment
42
+ * @default "right"
43
+ */
17
44
  footerAlignment?: DialogFooterAlignment | string;
45
+ /**
46
+ * Whether dialog is initially open
47
+ * @default false
48
+ */
18
49
  open?: boolean;
50
+ /**
51
+ * Whether to close when clicking overlay background
52
+ * @default true
53
+ */
19
54
  closeOnOverlayClick?: boolean;
55
+ /**
56
+ * Whether to close when Escape key is pressed Escape is handled as a key press, in both layers, by the topmost open dialog only, and after whatever is open inside it (a menu, a select) has had the key.
57
+ * @default true
58
+ */
20
59
  closeOnEscape?: boolean;
60
+ /**
61
+ * Whether dialog should be modal
62
+ * @default true
63
+ */
21
64
  modal?: boolean;
65
+ /**
66
+ * Whether to focus the first focusable element when opened
67
+ * @default true
68
+ */
22
69
  autofocus?: boolean;
70
+ /**
71
+ * Whether to trap focus within dialog when opened
72
+ * @default true
73
+ */
23
74
  trapFocus?: boolean;
75
+ /**
76
+ * Parent element to append dialog to.
77
+ * @default document.body
78
+ */
24
79
  container?: HTMLElement;
80
+ /** `"top"` makes the dialog itself a `<dialog>` element, rendered in place in `container` (or `document.body`) and kept there when it closes, and opens it with `showModal()`: in the browser's top layer, above every z-index and outside any clipping ancestor, with the rest of the page inert. */
25
81
  layer?: "top";
82
+ /** Footer buttons configuration */
26
83
  buttons?: DialogButton[];
84
+ /**
85
+ * Whether to show a divider between header and content
86
+ * @default false
87
+ */
27
88
  divider?: boolean;
89
+ /**
90
+ * Dialog z-index - controls stacking order
91
+ * @default 1000
92
+ */
28
93
  zIndex?: number;
94
+ /** How long `afteropen` and `afterclose` wait after opening and closing, in milliseconds, and when a closed dialog leaves the DOM. */
29
95
  animationDuration?: number;
96
+ /** Event handlers for dialog events */
30
97
  on?: {
31
98
  [key in DialogEventType]?: (event: DialogEvent) => void;
32
99
  };
33
100
  }
101
+ /** Dialog button configuration Defines the appearance and behavior of buttons in the dialog footer. */
34
102
  export interface DialogButton {
103
+ /** Button text label */
35
104
  text: string;
105
+ /**
106
+ * Button variant (uses button component variants)
107
+ * @default "text"
108
+ */
36
109
  variant?: string;
110
+ /**
111
+ * Button size
112
+ * @default "medium"
113
+ */
37
114
  size?: string;
115
+ /**
116
+ * Button click handler
117
+ * @param event
118
+ * @param dialog
119
+ */
38
120
  onClick?: (event: MouseEvent, dialog: DialogComponent) => void | boolean;
121
+ /**
122
+ * Whether to close the dialog when this button is clicked
123
+ * @default true
124
+ */
39
125
  closeDialog?: boolean;
126
+ /**
127
+ * Whether to autofocus this button when the dialog opens
128
+ * @default false
129
+ */
40
130
  autofocus?: boolean;
131
+ /** Additional button attributes to pass to the button element */
41
132
  attributes?: Record<string, unknown>;
42
133
  }
134
+ /** Dialog event object Passed to event handlers registered with the on() method. */
43
135
  export interface DialogEvent {
136
+ /** Dialog component instance that triggered the event */
44
137
  dialog: DialogComponent;
138
+ /** Original browser event if applicable */
45
139
  originalEvent?: Event;
140
+ /** Call this method to prevent the default action */
46
141
  preventDefault: () => void;
142
+ /** Whether the default action was prevented */
47
143
  defaultPrevented: boolean;
48
144
  }
145
+ /** Dialog component interface */
146
+ /** The elements withStructure builds and hangs off the component. */
49
147
  export interface DialogStructure {
148
+ /** Always built by withStructure, whatever the config */
50
149
  header: HTMLElement;
150
+ /** Always built by withStructure, whatever the config */
51
151
  content: HTMLElement;
152
+ /** Only when the dialog has buttons, and set back to null when the last goes */
52
153
  footer: HTMLElement | null;
154
+ /** The <hr> elements between the sections, only while shown */
53
155
  headerDivider: HTMLElement | null;
54
156
  footerDivider: HTMLElement | null;
55
157
  container: HTMLElement;
56
158
  }
159
+ /** A footer button as the dialog keeps it: the live button component and the config it was built from. */
57
160
  export interface DialogButtonRecord {
58
161
  instance: ButtonComponent;
59
162
  config: DialogButton;
60
163
  }
164
+ /** What a dialog feature needs from the component it is handed. */
61
165
  export interface DialogFeatureComponent {
62
166
  element: HTMLElement;
63
167
  config: DialogConfig & Record<string, unknown>;
@@ -67,47 +171,139 @@ export interface DialogFeatureComponent {
67
171
  emit: (event: string, data?: unknown) => unknown;
68
172
  _buttons?: DialogButtonRecord[];
69
173
  }
174
+ /** A dialog that has been through withStructure. */
70
175
  export interface DialogStructured extends DialogFeatureComponent {
71
176
  overlay: HTMLElement;
72
177
  structure: DialogStructure;
73
178
  }
74
179
  export interface DialogComponent {
180
+ /** The dialog's root DOM element */
75
181
  element: HTMLElement;
182
+ /** The dialog's overlay/backdrop element */
76
183
  overlay: HTMLElement;
184
+ /** Opens the dialog. */
77
185
  open: () => DialogComponent;
186
+ /** Closes the dialog. */
78
187
  close: () => DialogComponent;
188
+ /**
189
+ * Toggles dialog open/closed state
190
+ * @param open
191
+ */
79
192
  toggle: (open?: boolean) => DialogComponent;
193
+ /** Checks if dialog is currently open. */
80
194
  isOpen: () => boolean;
195
+ /**
196
+ * Sets dialog title text
197
+ * @param title
198
+ */
81
199
  setTitle: (title: string) => DialogComponent;
200
+ /** Gets dialog current title text */
82
201
  getTitle: () => string;
202
+ /**
203
+ * Sets dialog subtitle text
204
+ * @param subtitle
205
+ */
83
206
  setSubtitle: (subtitle: string) => DialogComponent;
207
+ /** Gets dialog current subtitle text */
84
208
  getSubtitle: () => string;
209
+ /**
210
+ * Sets dialog content
211
+ * @param content
212
+ */
85
213
  setContent: (content: string) => DialogComponent;
214
+ /** Gets dialog content */
86
215
  getContent: () => string;
216
+ /**
217
+ * Adds a button to the dialog footer
218
+ * @param button
219
+ */
87
220
  addButton: (button: DialogButton) => DialogComponent;
221
+ /**
222
+ * Removes a button by index or text
223
+ * @param indexOrText
224
+ */
88
225
  removeButton: (indexOrText: number | string) => DialogComponent;
226
+ /** Gets all footer buttons */
89
227
  getButtons: () => DialogButton[];
228
+ /**
229
+ * Sets footer button alignment
230
+ * @param alignment
231
+ */
90
232
  setFooterAlignment: (alignment: DialogFooterAlignment | string) => DialogComponent;
233
+ /**
234
+ * Sets dialog size
235
+ * @param size
236
+ */
91
237
  setSize: (size: DialogSize | string) => DialogComponent;
238
+ /**
239
+ * Adds an event listener to the dialog
240
+ * @param event
241
+ * @param handler
242
+ */
92
243
  on: (event: DialogEventType | string, handler: (event: DialogEvent) => void) => DialogComponent;
244
+ /**
245
+ * Removes an event listener from the dialog
246
+ * @param event
247
+ * @param handler
248
+ */
93
249
  off: (event: DialogEventType | string, handler: (event: DialogEvent) => void) => DialogComponent;
250
+ /** Gets dialog header element */
94
251
  getHeaderElement: () => HTMLElement | null;
252
+ /** Gets dialog content element */
95
253
  getContentElement: () => HTMLElement | null;
254
+ /** Gets dialog footer element */
96
255
  getFooterElement: () => HTMLElement | null;
256
+ /**
257
+ * Shows or hides the divider between header and content
258
+ * @param show
259
+ */
97
260
  toggleDivider: (show: boolean) => DialogComponent;
261
+ /** Checks if the dialog has a divider visible */
98
262
  hasDivider: () => boolean;
263
+ /**
264
+ * Creates a confirmation dialog with Yes/No buttons
265
+ * @param options
266
+ */
99
267
  confirm: (options?: DialogConfirmOptions) => Promise<boolean>;
268
+ /** Destroys the dialog and removes it from DOM */
100
269
  destroy: () => void;
101
270
  }
271
+ /** Options for confirmation dialog Used with the dialog.confirm() method to create a simple confirmation dialog with customizable options. */
102
272
  export interface DialogConfirmOptions {
273
+ /**
274
+ * Confirmation dialog title
275
+ * @default "Confirm"
276
+ */
103
277
  title?: string;
278
+ /** Confirmation message/question to display */
104
279
  message: string;
280
+ /**
281
+ * Confirm button text
282
+ * @default "Yes"
283
+ */
105
284
  confirmText?: string;
285
+ /**
286
+ * Cancel button text
287
+ * @default "No"
288
+ */
106
289
  cancelText?: string;
290
+ /**
291
+ * Confirm button variant
292
+ * @default "filled"
293
+ */
107
294
  confirmVariant?: string;
295
+ /**
296
+ * Cancel button variant
297
+ * @default "text"
298
+ */
108
299
  cancelVariant?: string;
300
+ /**
301
+ * Dialog size for the confirmation dialog
302
+ * @default "small"
303
+ */
109
304
  size?: DialogSize | string;
110
305
  }
306
+ /** Registers DialogConfig with the global defaults map, so `setComponentDefaults("dialog", ...)` is typed without core importing anything from this component. */
111
307
  declare module "../../core/config/global" {
112
308
  interface ComponentConfigMap {
113
309
  dialog?: Partial<DialogConfig>;
@@ -1,13 +1,43 @@
1
+ /** Configuration options for divider components Controls the appearance, orientation, and behavior of Material Design 3 dividers. */
1
2
  export interface DividerConfig {
3
+ /** CSS class prefix (defaults to 'mtrl') */
2
4
  prefix?: string;
5
+ /** CSS class to add to the divider Additional classes for custom styling needs. */
3
6
  class?: string | string[];
7
+ /**
8
+ * Orientation of the divider
9
+ * @default 'horizontal'
10
+ */
4
11
  orientation?: 'horizontal' | 'vertical';
12
+ /**
13
+ * 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.
14
+ * @default 'full-width'
15
+ */
5
16
  variant?: 'full-width' | 'inset' | 'middle-inset';
17
+ /**
18
+ * Custom inset value (left margin for horizontal, top margin for vertical) Overrides the default inset spacing at the start of the divider.
19
+ * @default 16 for 'inset' and 'middle-inset' variants
20
+ */
6
21
  insetStart?: number;
22
+ /**
23
+ * Custom inset end value (right margin for horizontal, bottom margin for vertical) Overrides the default inset spacing at the end of the divider.
24
+ * @default 0 for 'inset', 16 for 'middle-inset'
25
+ */
7
26
  insetEnd?: number;
27
+ /** Color of the divider Sets a custom color for the divider. */
8
28
  color?: string;
29
+ /**
30
+ * Thickness of the divider in pixels Controls the thickness (height for horizontal, width for vertical) of the divider.
31
+ * @default 1
32
+ */
9
33
  thickness?: number;
34
+ /** Used internally for component composition */
10
35
  componentName?: string;
11
36
  }
37
+ /** Default configuration for dividers */
12
38
  export declare const defaultConfig: Partial<DividerConfig>;
39
+ /**
40
+ * Creates a base configuration object for divider Merges user-provided configuration with default values and ensures all required properties have values.
41
+ * @param config
42
+ */
13
43
  export declare const createBaseConfig: (config?: DividerConfig) => DividerConfig;
@@ -1,18 +1,33 @@
1
+ /** Divider orientation options */
1
2
  export declare const DIVIDER_ORIENTATIONS: {
3
+ /** Horizontal divider (default) */
2
4
  readonly HORIZONTAL: "horizontal";
5
+ /** Vertical divider */
3
6
  readonly VERTICAL: "vertical";
4
7
  };
8
+ /** Divider variant options */
5
9
  export declare const DIVIDER_VARIANTS: {
10
+ /** Spans the entire width/height of the container (default) */
6
11
  readonly FULL_WIDTH: "full-width";
12
+ /** Adds space at the start (left for horizontal, top for vertical) */
7
13
  readonly INSET: "inset";
14
+ /** Adds space at both start and end */
8
15
  readonly MIDDLE_INSET: "middle-inset";
9
16
  };
17
+ /** Default divider thickness in pixels */
10
18
  export declare const DEFAULT_DIVIDER_THICKNESS = 1;
19
+ /** Default inset value in pixels */
11
20
  export declare const DEFAULT_INSET_VALUE = 16;
21
+ /** CSS classes used by the divider component */
12
22
  export declare const DIVIDER_CLASSES: {
23
+ /** Root divider element */
13
24
  readonly ROOT: "divider";
25
+ /** Applied to horizontal dividers */
14
26
  readonly HORIZONTAL: "divider--horizontal";
27
+ /** Applied to vertical dividers */
15
28
  readonly VERTICAL: "divider--vertical";
29
+ /** Applied to inset dividers */
16
30
  readonly INSET: "divider--inset";
31
+ /** Applied to middle-inset dividers */
17
32
  readonly MIDDLE_INSET: "divider--middle-inset";
18
33
  };
@@ -1,3 +1,7 @@
1
1
  import { DividerConfig } from "./config.js";
2
2
  import { DividerComponent } from "./types.js";
3
+ /**
4
+ * Creates a new Divider component with the specified configuration.
5
+ * @param config
6
+ */
3
7
  export declare const createDivider: (config?: DividerConfig) => DividerComponent;
@@ -1,16 +1,43 @@
1
1
  import { BaseComponent, ElementComponent } from "../../core/compose/index.js";
2
+ /** The three slices of a divider, one per enhancer in features.ts. */
2
3
  export interface DividerOrientation {
4
+ /** Gets current orientation of the divider */
3
5
  getOrientation(): 'horizontal' | 'vertical';
6
+ /**
7
+ * Sets orientation of the divider Changes the divider's orientation between horizontal (default) and vertical.
8
+ * @param orientation
9
+ */
4
10
  setOrientation(orientation: 'horizontal' | 'vertical'): this;
5
11
  }
12
+ /** The inset slice. */
6
13
  export interface DividerInset {
14
+ /** Gets current variant of the divider */
7
15
  getVariant(): 'full-width' | 'inset' | 'middle-inset';
16
+ /**
17
+ * Sets variant of the divider
18
+ * @param variant
19
+ */
8
20
  setVariant(variant: 'full-width' | 'inset' | 'middle-inset'): this;
21
+ /**
22
+ * Sets custom inset values for the divider Allows fine-grained control over inset spacing, overriding the default values applied by the variant.
23
+ * @param insetStart
24
+ * @param insetEnd
25
+ */
9
26
  setInset(insetStart?: number, insetEnd?: number): this;
10
27
  }
28
+ /** The style slice. */
11
29
  export interface DividerStyle {
30
+ /**
31
+ * Sets thickness of the divider Changes the divider's thickness (height for horizontal, width for vertical).
32
+ * @param thickness
33
+ */
12
34
  setThickness(thickness: number): this;
35
+ /**
36
+ * Sets custom color for the divider By default, dividers use the 'outline-variant' color from the theme.
37
+ * @param color
38
+ */
13
39
  setColor(color: string): this;
14
40
  }
41
+ /** Divider component interface Represents a Material Design 3 divider that separates content into distinct sections. */
15
42
  export interface DividerComponent extends BaseComponent, ElementComponent, DividerOrientation, DividerInset, DividerStyle {
16
43
  }
@@ -1,46 +1,85 @@
1
+ /** Drawer variants matching MD3 navigation drawer specification */
1
2
  export declare const DRAWER_VARIANTS: {
3
+ /** Standard drawer — inline, can be permanently visible or toggled */
2
4
  readonly STANDARD: "standard";
5
+ /** Modal drawer — overlays content with scrim, for compact/medium screens */
3
6
  readonly MODAL: "modal";
4
7
  };
8
+ /** Drawer positions (anchor edge) */
5
9
  export declare const DRAWER_POSITIONS: {
10
+ /** Start edge (left in LTR, right in RTL) — default per MD3 */
6
11
  readonly START: "start";
12
+ /** End edge (right in LTR, left in RTL) */
7
13
  readonly END: "end";
8
14
  };
15
+ /** Drawer item types for the items configuration array */
9
16
  export declare const DRAWER_ITEM_TYPES: {
17
+ /** Navigation destination item */
10
18
  readonly ITEM: "item";
19
+ /** Visual separator between groups */
11
20
  readonly DIVIDER: "divider";
21
+ /** Section label / subhead for grouping */
12
22
  readonly SECTION: "section";
13
23
  };
24
+ /** Drawer events */
14
25
  export declare const DRAWER_EVENTS: {
26
+ /** Fired when the drawer opens */
15
27
  readonly OPEN: "open";
28
+ /** Fired when the drawer closes */
16
29
  readonly CLOSE: "close";
30
+ /** Fired when a navigation item is selected */
17
31
  readonly SELECT: "select";
18
32
  };
33
+ /** CSS classes used by the drawer component */
19
34
  export declare const DRAWER_CLASSES: {
35
+ /** Root container */
20
36
  readonly ROOT: "drawer";
37
+ /** Scrim overlay (modal variant only) */
21
38
  readonly SCRIM: "drawer__scrim";
39
+ /** Inner sheet / panel */
22
40
  readonly SHEET: "drawer__sheet";
41
+ /** Headline text */
23
42
  readonly HEADLINE: "drawer__headline";
43
+ /** Scrollable items container */
24
44
  readonly ITEMS: "drawer__items";
45
+ /** Single navigation item */
25
46
  readonly ITEM: "drawer__item";
47
+ /** Item icon */
26
48
  readonly ITEM_ICON: "drawer__item-icon";
49
+ /** Item label text */
27
50
  readonly ITEM_LABEL: "drawer__item-label";
51
+ /** Item badge */
28
52
  readonly ITEM_BADGE: "drawer__item-badge";
53
+ /** Active indicator shape */
29
54
  readonly ACTIVE_INDICATOR: "drawer__active-indicator";
55
+ /** Dense/compact variant */
30
56
  readonly DENSE: "drawer--dense";
57
+ /** Divider separator */
31
58
  readonly DIVIDER: "drawer__divider";
59
+ /** Section label */
32
60
  readonly SECTION_LABEL: "drawer__section-label";
33
61
  };
62
+ /** Default animation configuration */
34
63
  export declare const DRAWER_ANIMATION: {
64
+ /** Animation duration in milliseconds */
35
65
  readonly DURATION: 300;
66
+ /** Easing for opening */
36
67
  readonly EASING_OPEN: "cubic-bezier(0.0, 0.0, 0.2, 1.0)";
68
+ /** Easing for closing */
37
69
  readonly EASING_CLOSE: "cubic-bezier(0.3, 0.0, 1.0, 1.0)";
38
70
  };
71
+ /** Drawer default values */
39
72
  export declare const DRAWER_DEFAULTS: {
73
+ /** Default variant */
40
74
  readonly VARIANT: "standard";
75
+ /** Default position */
41
76
  readonly POSITION: "start";
77
+ /** Whether drawer is open by default */
42
78
  readonly OPEN: false;
79
+ /** Whether modal can be dismissed via scrim */
43
80
  readonly DISMISSIBLE: true;
81
+ /** Default drawer width in pixels */
44
82
  readonly WIDTH: 360;
83
+ /** Whether items ripple on press */
45
84
  readonly RIPPLE: true;
46
85
  };
@@ -1,3 +1,7 @@
1
1
  import { DrawerConfig, DrawerComponent } from "./types.js";
2
+ /**
3
+ * Creates a new Drawer component with the specified configuration.
4
+ * @param config
5
+ */
2
6
  declare const createDrawer: (config?: DrawerConfig) => DrawerComponent;
3
7
  export default createDrawer;
@@ -1,2 +1,3 @@
1
+ /** Drawer component module */
1
2
  export { default, default as createDrawer } from "./drawer.js";
2
3
  export type { DrawerConfig, DrawerComponent, DrawerVariant, DrawerPosition, DrawerItemConfig, DrawerSelectEvent, DrawerEvents, } from "./types.js";