@windmorph/react 0.0.0-stage → 0.1.0

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 (761) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +23 -0
  3. package/README.md +149 -2
  4. package/dist/cli.d.ts +1 -0
  5. package/dist/cli.js +112 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/components/app-bar/AppBarItems.js +23 -0
  8. package/dist/components/app-bar/AppBarItems.js.map +1 -0
  9. package/dist/components/app-bar/TopAppBar.d.ts +89 -0
  10. package/dist/components/app-bar/TopAppBar.js +103 -0
  11. package/dist/components/app-bar/TopAppBar.js.map +1 -0
  12. package/dist/components/app-bar/app-bar-styles.d.ts +280 -0
  13. package/dist/components/app-bar/app-bar-styles.js +142 -0
  14. package/dist/components/app-bar/app-bar-styles.js.map +1 -0
  15. package/dist/components/app-bar/app-bar-tokens.d.ts +7 -0
  16. package/dist/components/app-bar/app-bar-tokens.js +64 -0
  17. package/dist/components/app-bar/app-bar-tokens.js.map +1 -0
  18. package/dist/components/app-bar/use-app-bar-scroll.d.ts +6 -0
  19. package/dist/components/app-bar/use-app-bar-scroll.js +139 -0
  20. package/dist/components/app-bar/use-app-bar-scroll.js.map +1 -0
  21. package/dist/components/autocomplete/Autocomplete.d.ts +142 -0
  22. package/dist/components/autocomplete/Autocomplete.js +284 -0
  23. package/dist/components/autocomplete/Autocomplete.js.map +1 -0
  24. package/dist/components/badge/Badge.d.ts +71 -0
  25. package/dist/components/badge/Badge.js +72 -0
  26. package/dist/components/badge/Badge.js.map +1 -0
  27. package/dist/components/badge/badge-styles.d.ts +100 -0
  28. package/dist/components/badge/badge-styles.js +43 -0
  29. package/dist/components/badge/badge-styles.js.map +1 -0
  30. package/dist/components/badge/badge-tokens.d.ts +7 -0
  31. package/dist/components/badge/badge-tokens.js +40 -0
  32. package/dist/components/badge/badge-tokens.js.map +1 -0
  33. package/dist/components/button/Button.d.ts +91 -0
  34. package/dist/components/button/Button.js +96 -0
  35. package/dist/components/button/Button.js.map +1 -0
  36. package/dist/components/button/ButtonContext.d.ts +30 -0
  37. package/dist/components/button/ButtonContext.js +18 -0
  38. package/dist/components/button/ButtonContext.js.map +1 -0
  39. package/dist/components/button/DensityZeroButtons.js +25 -0
  40. package/dist/components/button/DensityZeroButtons.js.map +1 -0
  41. package/dist/components/button/button-pending.d.ts +10 -0
  42. package/dist/components/button/button-pending.js +166 -0
  43. package/dist/components/button/button-pending.js.map +1 -0
  44. package/dist/components/button/button-styles.d.ts +216 -0
  45. package/dist/components/button/button-styles.js +199 -0
  46. package/dist/components/button/button-styles.js.map +1 -0
  47. package/dist/components/button/button-tokens.d.ts +10 -0
  48. package/dist/components/button/button-tokens.js +257 -0
  49. package/dist/components/button/button-tokens.js.map +1 -0
  50. package/dist/components/button/connected-shapes.js +152 -0
  51. package/dist/components/button/connected-shapes.js.map +1 -0
  52. package/dist/components/card/Card.d.ts +60 -0
  53. package/dist/components/card/Card.js +69 -0
  54. package/dist/components/card/Card.js.map +1 -0
  55. package/dist/components/card/card-styles.d.ts +42 -0
  56. package/dist/components/card/card-styles.js +64 -0
  57. package/dist/components/card/card-styles.js.map +1 -0
  58. package/dist/components/card/card-tokens.d.ts +7 -0
  59. package/dist/components/card/card-tokens.js +84 -0
  60. package/dist/components/card/card-tokens.js.map +1 -0
  61. package/dist/components/carousel/Carousel.d.ts +124 -0
  62. package/dist/components/carousel/Carousel.js +387 -0
  63. package/dist/components/carousel/Carousel.js.map +1 -0
  64. package/dist/components/carousel/carousel-keylines.js +486 -0
  65. package/dist/components/carousel/carousel-keylines.js.map +1 -0
  66. package/dist/components/carousel/carousel-press-area.js +35 -0
  67. package/dist/components/carousel/carousel-press-area.js.map +1 -0
  68. package/dist/components/carousel/carousel-styles.d.ts +188 -0
  69. package/dist/components/carousel/carousel-styles.js +116 -0
  70. package/dist/components/carousel/carousel-styles.js.map +1 -0
  71. package/dist/components/carousel/carousel-tokens.d.ts +7 -0
  72. package/dist/components/carousel/carousel-tokens.js +18 -0
  73. package/dist/components/carousel/carousel-tokens.js.map +1 -0
  74. package/dist/components/checkbox/Checkbox.d.ts +78 -0
  75. package/dist/components/checkbox/Checkbox.js +77 -0
  76. package/dist/components/checkbox/Checkbox.js.map +1 -0
  77. package/dist/components/checkbox/checkbox-box.js +34 -0
  78. package/dist/components/checkbox/checkbox-box.js.map +1 -0
  79. package/dist/components/checkbox/checkbox-styles.d.ts +100 -0
  80. package/dist/components/checkbox/checkbox-styles.js +54 -0
  81. package/dist/components/checkbox/checkbox-styles.js.map +1 -0
  82. package/dist/components/checkbox/checkbox-tokens.d.ts +7 -0
  83. package/dist/components/checkbox/checkbox-tokens.js +41 -0
  84. package/dist/components/checkbox/checkbox-tokens.js.map +1 -0
  85. package/dist/components/chip/Chip.d.ts +171 -0
  86. package/dist/components/chip/Chip.js +348 -0
  87. package/dist/components/chip/Chip.js.map +1 -0
  88. package/dist/components/chip/ChipSet.d.ts +70 -0
  89. package/dist/components/chip/ChipSet.js +198 -0
  90. package/dist/components/chip/ChipSet.js.map +1 -0
  91. package/dist/components/chip/chip-styles.d.ts +263 -0
  92. package/dist/components/chip/chip-styles.js +360 -0
  93. package/dist/components/chip/chip-styles.js.map +1 -0
  94. package/dist/components/chip/chip-tokens.d.ts +13 -0
  95. package/dist/components/chip/chip-tokens.js +185 -0
  96. package/dist/components/chip/chip-tokens.js.map +1 -0
  97. package/dist/components/date-picker/CalendarGrid.js +94 -0
  98. package/dist/components/date-picker/CalendarGrid.js.map +1 -0
  99. package/dist/components/date-picker/CompactDateDialog.js +63 -0
  100. package/dist/components/date-picker/CompactDateDialog.js.map +1 -0
  101. package/dist/components/date-picker/DateField.d.ts +161 -0
  102. package/dist/components/date-picker/DateField.js +393 -0
  103. package/dist/components/date-picker/DateField.js.map +1 -0
  104. package/dist/components/date-picker/DateInput.d.ts +20 -0
  105. package/dist/components/date-picker/DateInput.js +99 -0
  106. package/dist/components/date-picker/DateInput.js.map +1 -0
  107. package/dist/components/date-picker/DatePicker.d.ts +165 -0
  108. package/dist/components/date-picker/DatePicker.js +492 -0
  109. package/dist/components/date-picker/DatePicker.js.map +1 -0
  110. package/dist/components/date-picker/PickerDialog.d.ts +121 -0
  111. package/dist/components/date-picker/PickerDialog.js +161 -0
  112. package/dist/components/date-picker/PickerDialog.js.map +1 -0
  113. package/dist/components/date-picker/calendar-parts.js +141 -0
  114. package/dist/components/date-picker/calendar-parts.js.map +1 -0
  115. package/dist/components/date-picker/date-format.js +72 -0
  116. package/dist/components/date-picker/date-format.js.map +1 -0
  117. package/dist/components/date-picker/date-picker-styles.d.ts +247 -0
  118. package/dist/components/date-picker/date-picker-styles.js +163 -0
  119. package/dist/components/date-picker/date-picker-styles.js.map +1 -0
  120. package/dist/components/date-picker/date-picker-tokens.d.ts +7 -0
  121. package/dist/components/date-picker/date-picker-tokens.js +104 -0
  122. package/dist/components/date-picker/date-picker-tokens.js.map +1 -0
  123. package/dist/components/date-picker/picker-dialog-context.js +8 -0
  124. package/dist/components/date-picker/picker-dialog-context.js.map +1 -0
  125. package/dist/components/date-picker/picker-dialog-styles.d.ts +95 -0
  126. package/dist/components/date-picker/picker-dialog-styles.js +57 -0
  127. package/dist/components/date-picker/picker-dialog-styles.js.map +1 -0
  128. package/dist/components/date-picker/picker-icons.js +24 -0
  129. package/dist/components/date-picker/picker-icons.js.map +1 -0
  130. package/dist/components/date-picker/use-media-query.js +21 -0
  131. package/dist/components/date-picker/use-media-query.js.map +1 -0
  132. package/dist/components/date-picker/use-size-transform.js +62 -0
  133. package/dist/components/date-picker/use-size-transform.js.map +1 -0
  134. package/dist/components/date-picker/use-view-exit.js +68 -0
  135. package/dist/components/date-picker/use-view-exit.js.map +1 -0
  136. package/dist/components/dialog/Dialog.d.ts +267 -0
  137. package/dist/components/dialog/Dialog.js +521 -0
  138. package/dist/components/dialog/Dialog.js.map +1 -0
  139. package/dist/components/dialog/dialog-styles.d.ts +335 -0
  140. package/dist/components/dialog/dialog-styles.js +377 -0
  141. package/dist/components/dialog/dialog-styles.js.map +1 -0
  142. package/dist/components/dialog/dialog-tokens.d.ts +7 -0
  143. package/dist/components/dialog/dialog-tokens.js +57 -0
  144. package/dist/components/dialog/dialog-tokens.js.map +1 -0
  145. package/dist/components/divider/Divider.d.ts +59 -0
  146. package/dist/components/divider/Divider.js +53 -0
  147. package/dist/components/divider/Divider.js.map +1 -0
  148. package/dist/components/divider/divider-styles.d.ts +90 -0
  149. package/dist/components/divider/divider-styles.js +66 -0
  150. package/dist/components/divider/divider-styles.js.map +1 -0
  151. package/dist/components/divider/divider-tokens.d.ts +7 -0
  152. package/dist/components/divider/divider-tokens.js +16 -0
  153. package/dist/components/divider/divider-tokens.js.map +1 -0
  154. package/dist/components/fab/Fab.d.ts +130 -0
  155. package/dist/components/fab/Fab.js +137 -0
  156. package/dist/components/fab/Fab.js.map +1 -0
  157. package/dist/components/fab/FabTooltip.js +36 -0
  158. package/dist/components/fab/FabTooltip.js.map +1 -0
  159. package/dist/components/fab/fab-styles.d.ts +286 -0
  160. package/dist/components/fab/fab-styles.js +131 -0
  161. package/dist/components/fab/fab-styles.js.map +1 -0
  162. package/dist/components/fab/fab-tokens.d.ts +12 -0
  163. package/dist/components/fab/fab-tokens.js +105 -0
  164. package/dist/components/fab/fab-tokens.js.map +1 -0
  165. package/dist/components/fab-menu/FabMenu.d.ts +156 -0
  166. package/dist/components/fab-menu/FabMenu.js +291 -0
  167. package/dist/components/fab-menu/FabMenu.js.map +1 -0
  168. package/dist/components/fab-menu/fab-menu-stagger.js +51 -0
  169. package/dist/components/fab-menu/fab-menu-stagger.js.map +1 -0
  170. package/dist/components/fab-menu/fab-menu-styles.d.ts +166 -0
  171. package/dist/components/fab-menu/fab-menu-styles.js +107 -0
  172. package/dist/components/fab-menu/fab-menu-styles.js.map +1 -0
  173. package/dist/components/fab-menu/fab-menu-tokens.d.ts +7 -0
  174. package/dist/components/fab-menu/fab-menu-tokens.js +120 -0
  175. package/dist/components/fab-menu/fab-menu-tokens.js.map +1 -0
  176. package/dist/components/icon-button/IconButton.d.ts +125 -0
  177. package/dist/components/icon-button/IconButton.js +112 -0
  178. package/dist/components/icon-button/IconButton.js.map +1 -0
  179. package/dist/components/icon-button/icon-button-styles.d.ts +217 -0
  180. package/dist/components/icon-button/icon-button-styles.js +244 -0
  181. package/dist/components/icon-button/icon-button-styles.js.map +1 -0
  182. package/dist/components/icon-button/icon-button-tokens.d.ts +11 -0
  183. package/dist/components/icon-button/icon-button-tokens.js +215 -0
  184. package/dist/components/icon-button/icon-button-tokens.js.map +1 -0
  185. package/dist/components/list/List.d.ts +265 -0
  186. package/dist/components/list/List.js +1386 -0
  187. package/dist/components/list/List.js.map +1 -0
  188. package/dist/components/list/ListMedia.d.ts +88 -0
  189. package/dist/components/list/ListMedia.js +132 -0
  190. package/dist/components/list/ListMedia.js.map +1 -0
  191. package/dist/components/list/list-styles.d.ts +375 -0
  192. package/dist/components/list/list-styles.js +220 -0
  193. package/dist/components/list/list-styles.js.map +1 -0
  194. package/dist/components/list/list-tokens.d.ts +7 -0
  195. package/dist/components/list/list-tokens.js +92 -0
  196. package/dist/components/list/list-tokens.js.map +1 -0
  197. package/dist/components/loading-indicator/LoadingIndicator.d.ts +65 -0
  198. package/dist/components/loading-indicator/LoadingIndicator.js +92 -0
  199. package/dist/components/loading-indicator/LoadingIndicator.js.map +1 -0
  200. package/dist/components/loading-indicator/lazy-loading-indicator.js +25 -0
  201. package/dist/components/loading-indicator/lazy-loading-indicator.js.map +1 -0
  202. package/dist/components/loading-indicator/loading-indicator-frames.js +149 -0
  203. package/dist/components/loading-indicator/loading-indicator-frames.js.map +1 -0
  204. package/dist/components/loading-indicator/loading-indicator-styles.d.ts +36 -0
  205. package/dist/components/loading-indicator/loading-indicator-styles.js +22 -0
  206. package/dist/components/loading-indicator/loading-indicator-styles.js.map +1 -0
  207. package/dist/components/loading-indicator/loading-indicator-tokens.d.ts +7 -0
  208. package/dist/components/loading-indicator/loading-indicator-tokens.js +44 -0
  209. package/dist/components/loading-indicator/loading-indicator-tokens.js.map +1 -0
  210. package/dist/components/menu/Menu.d.ts +215 -0
  211. package/dist/components/menu/Menu.js +715 -0
  212. package/dist/components/menu/Menu.js.map +1 -0
  213. package/dist/components/menu/menu-styles.d.ts +354 -0
  214. package/dist/components/menu/menu-styles.js +219 -0
  215. package/dist/components/menu/menu-styles.js.map +1 -0
  216. package/dist/components/menu/menu-tokens.d.ts +7 -0
  217. package/dist/components/menu/menu-tokens.js +93 -0
  218. package/dist/components/menu/menu-tokens.js.map +1 -0
  219. package/dist/components/menu/menu-trigger.d.ts +51 -0
  220. package/dist/components/menu/menu-trigger.js +100 -0
  221. package/dist/components/menu/menu-trigger.js.map +1 -0
  222. package/dist/components/menu/use-reveal-entering.js +42 -0
  223. package/dist/components/menu/use-reveal-entering.js.map +1 -0
  224. package/dist/components/navigation/NavItem.d.ts +54 -0
  225. package/dist/components/navigation/NavItem.js +182 -0
  226. package/dist/components/navigation/NavItem.js.map +1 -0
  227. package/dist/components/navigation/NavigationBar.d.ts +64 -0
  228. package/dist/components/navigation/NavigationBar.js +121 -0
  229. package/dist/components/navigation/NavigationBar.js.map +1 -0
  230. package/dist/components/navigation/NavigationRail.d.ts +91 -0
  231. package/dist/components/navigation/NavigationRail.js +285 -0
  232. package/dist/components/navigation/NavigationRail.js.map +1 -0
  233. package/dist/components/navigation/nav-item-styles.d.ts +190 -0
  234. package/dist/components/navigation/nav-item-styles.js +123 -0
  235. package/dist/components/navigation/nav-item-styles.js.map +1 -0
  236. package/dist/components/navigation/navigation-styles.d.ts +239 -0
  237. package/dist/components/navigation/navigation-styles.js +134 -0
  238. package/dist/components/navigation/navigation-styles.js.map +1 -0
  239. package/dist/components/navigation/navigation-tokens.d.ts +9 -0
  240. package/dist/components/navigation/navigation-tokens.js +114 -0
  241. package/dist/components/navigation/navigation-tokens.js.map +1 -0
  242. package/dist/components/navigation/use-hide-on-scroll.js +115 -0
  243. package/dist/components/navigation/use-hide-on-scroll.js.map +1 -0
  244. package/dist/components/navigation/use-item-arrow-keys.js +37 -0
  245. package/dist/components/navigation/use-item-arrow-keys.js.map +1 -0
  246. package/dist/components/navigation/use-rail-item-morph.js +61 -0
  247. package/dist/components/navigation/use-rail-item-morph.js.map +1 -0
  248. package/dist/components/progress/ProgressIndicator.d.ts +95 -0
  249. package/dist/components/progress/ProgressIndicator.js +426 -0
  250. package/dist/components/progress/ProgressIndicator.js.map +1 -0
  251. package/dist/components/progress/progress-geometry.js +285 -0
  252. package/dist/components/progress/progress-geometry.js.map +1 -0
  253. package/dist/components/progress/progress-styles.d.ts +81 -0
  254. package/dist/components/progress/progress-styles.js +43 -0
  255. package/dist/components/progress/progress-styles.js.map +1 -0
  256. package/dist/components/progress/progress-tokens.d.ts +7 -0
  257. package/dist/components/progress/progress-tokens.js +39 -0
  258. package/dist/components/progress/progress-tokens.js.map +1 -0
  259. package/dist/components/pull-to-refresh/PullToRefresh.d.ts +94 -0
  260. package/dist/components/pull-to-refresh/PullToRefresh.js +395 -0
  261. package/dist/components/pull-to-refresh/PullToRefresh.js.map +1 -0
  262. package/dist/components/pull-to-refresh/pull-to-refresh-math.js +37 -0
  263. package/dist/components/pull-to-refresh/pull-to-refresh-math.js.map +1 -0
  264. package/dist/components/pull-to-refresh/pull-to-refresh-styles.d.ts +53 -0
  265. package/dist/components/pull-to-refresh/pull-to-refresh-styles.js +14 -0
  266. package/dist/components/pull-to-refresh/pull-to-refresh-styles.js.map +1 -0
  267. package/dist/components/radio/RadioGroup.d.ts +121 -0
  268. package/dist/components/radio/RadioGroup.js +163 -0
  269. package/dist/components/radio/RadioGroup.js.map +1 -0
  270. package/dist/components/radio/radio-ring.js +21 -0
  271. package/dist/components/radio/radio-ring.js.map +1 -0
  272. package/dist/components/radio/radio-styles.d.ts +155 -0
  273. package/dist/components/radio/radio-styles.js +60 -0
  274. package/dist/components/radio/radio-styles.js.map +1 -0
  275. package/dist/components/radio/radio-tokens.d.ts +7 -0
  276. package/dist/components/radio/radio-tokens.js +31 -0
  277. package/dist/components/radio/radio-tokens.js.map +1 -0
  278. package/dist/components/search/SearchAppBar.d.ts +45 -0
  279. package/dist/components/search/SearchAppBar.js +61 -0
  280. package/dist/components/search/SearchAppBar.js.map +1 -0
  281. package/dist/components/search/SearchBar.d.ts +147 -0
  282. package/dist/components/search/SearchBar.js +412 -0
  283. package/dist/components/search/SearchBar.js.map +1 -0
  284. package/dist/components/search/search-styles.d.ts +243 -0
  285. package/dist/components/search/search-styles.js +143 -0
  286. package/dist/components/search/search-styles.js.map +1 -0
  287. package/dist/components/search/search-tokens.d.ts +9 -0
  288. package/dist/components/search/search-tokens.js +70 -0
  289. package/dist/components/search/search-tokens.js.map +1 -0
  290. package/dist/components/select/Select.d.ts +187 -0
  291. package/dist/components/select/Select.js +319 -0
  292. package/dist/components/select/Select.js.map +1 -0
  293. package/dist/components/select/field-shell.d.ts +29 -0
  294. package/dist/components/select/field-shell.js +135 -0
  295. package/dist/components/select/field-shell.js.map +1 -0
  296. package/dist/components/select/option-list.d.ts +81 -0
  297. package/dist/components/select/option-list.js +291 -0
  298. package/dist/components/select/option-list.js.map +1 -0
  299. package/dist/components/select/search-list.js +135 -0
  300. package/dist/components/select/search-list.js.map +1 -0
  301. package/dist/components/select/selection-cap.js +30 -0
  302. package/dist/components/select/selection-cap.js.map +1 -0
  303. package/dist/components/sheet/BottomSheet.d.ts +154 -0
  304. package/dist/components/sheet/BottomSheet.js +442 -0
  305. package/dist/components/sheet/BottomSheet.js.map +1 -0
  306. package/dist/components/sheet/SheetTrigger.d.ts +25 -0
  307. package/dist/components/sheet/SheetTrigger.js +46 -0
  308. package/dist/components/sheet/SheetTrigger.js.map +1 -0
  309. package/dist/components/sheet/SideSheet.d.ts +139 -0
  310. package/dist/components/sheet/SideSheet.js +289 -0
  311. package/dist/components/sheet/SideSheet.js.map +1 -0
  312. package/dist/components/sheet/bottom-sheet-gesture.js +30 -0
  313. package/dist/components/sheet/bottom-sheet-gesture.js.map +1 -0
  314. package/dist/components/sheet/lazy-bottom-sheet.js +33 -0
  315. package/dist/components/sheet/lazy-bottom-sheet.js.map +1 -0
  316. package/dist/components/sheet/sheet-gesture.js +48 -0
  317. package/dist/components/sheet/sheet-gesture.js.map +1 -0
  318. package/dist/components/sheet/sheet-icons.js +31 -0
  319. package/dist/components/sheet/sheet-icons.js.map +1 -0
  320. package/dist/components/sheet/sheet-settle.js +58 -0
  321. package/dist/components/sheet/sheet-settle.js.map +1 -0
  322. package/dist/components/sheet/sheet-styles.d.ts +312 -0
  323. package/dist/components/sheet/sheet-styles.js +229 -0
  324. package/dist/components/sheet/sheet-styles.js.map +1 -0
  325. package/dist/components/sheet/sheet-tokens.d.ts +12 -0
  326. package/dist/components/sheet/sheet-tokens.js +115 -0
  327. package/dist/components/sheet/sheet-tokens.js.map +1 -0
  328. package/dist/components/sheet/side-swipe-gesture.js +22 -0
  329. package/dist/components/sheet/side-swipe-gesture.js.map +1 -0
  330. package/dist/components/sheet/use-peek-inert.js +32 -0
  331. package/dist/components/sheet/use-peek-inert.js.map +1 -0
  332. package/dist/components/sheet/use-side-swipe.js +174 -0
  333. package/dist/components/sheet/use-side-swipe.js.map +1 -0
  334. package/dist/components/slider/Slider.d.ts +129 -0
  335. package/dist/components/slider/Slider.js +295 -0
  336. package/dist/components/slider/Slider.js.map +1 -0
  337. package/dist/components/slider/slider-geometry.js +138 -0
  338. package/dist/components/slider/slider-geometry.js.map +1 -0
  339. package/dist/components/slider/slider-styles.d.ts +133 -0
  340. package/dist/components/slider/slider-styles.js +97 -0
  341. package/dist/components/slider/slider-styles.js.map +1 -0
  342. package/dist/components/slider/slider-tokens.d.ts +7 -0
  343. package/dist/components/slider/slider-tokens.js +66 -0
  344. package/dist/components/slider/slider-tokens.js.map +1 -0
  345. package/dist/components/slider/use-touch-track.js +138 -0
  346. package/dist/components/slider/use-touch-track.js.map +1 -0
  347. package/dist/components/snackbar/Snackbar.d.ts +96 -0
  348. package/dist/components/snackbar/Snackbar.js +253 -0
  349. package/dist/components/snackbar/Snackbar.js.map +1 -0
  350. package/dist/components/snackbar/snackbar-state.d.ts +58 -0
  351. package/dist/components/snackbar/snackbar-state.js +73 -0
  352. package/dist/components/snackbar/snackbar-state.js.map +1 -0
  353. package/dist/components/snackbar/snackbar-styles.d.ts +109 -0
  354. package/dist/components/snackbar/snackbar-styles.js +67 -0
  355. package/dist/components/snackbar/snackbar-styles.js.map +1 -0
  356. package/dist/components/snackbar/snackbar-tokens.d.ts +7 -0
  357. package/dist/components/snackbar/snackbar-tokens.js +54 -0
  358. package/dist/components/snackbar/snackbar-tokens.js.map +1 -0
  359. package/dist/components/split-button/SplitButton.d.ts +109 -0
  360. package/dist/components/split-button/SplitButton.js +195 -0
  361. package/dist/components/split-button/SplitButton.js.map +1 -0
  362. package/dist/components/split-button/split-button-styles.d.ts +214 -0
  363. package/dist/components/split-button/split-button-styles.js +164 -0
  364. package/dist/components/split-button/split-button-styles.js.map +1 -0
  365. package/dist/components/split-button/split-button-tokens.d.ts +7 -0
  366. package/dist/components/split-button/split-button-tokens.js +36 -0
  367. package/dist/components/split-button/split-button-tokens.js.map +1 -0
  368. package/dist/components/switch/Switch.d.ts +82 -0
  369. package/dist/components/switch/Switch.js +165 -0
  370. package/dist/components/switch/Switch.js.map +1 -0
  371. package/dist/components/switch/switch-styles.d.ts +96 -0
  372. package/dist/components/switch/switch-styles.js +68 -0
  373. package/dist/components/switch/switch-styles.js.map +1 -0
  374. package/dist/components/switch/switch-thumb.js +41 -0
  375. package/dist/components/switch/switch-thumb.js.map +1 -0
  376. package/dist/components/switch/switch-tokens.d.ts +7 -0
  377. package/dist/components/switch/switch-tokens.js +78 -0
  378. package/dist/components/switch/switch-tokens.js.map +1 -0
  379. package/dist/components/tabs/Tabs.d.ts +120 -0
  380. package/dist/components/tabs/Tabs.js +346 -0
  381. package/dist/components/tabs/Tabs.js.map +1 -0
  382. package/dist/components/tabs/tabs-styles.d.ts +198 -0
  383. package/dist/components/tabs/tabs-styles.js +99 -0
  384. package/dist/components/tabs/tabs-styles.js.map +1 -0
  385. package/dist/components/tabs/tabs-tokens.d.ts +7 -0
  386. package/dist/components/tabs/tabs-tokens.js +121 -0
  387. package/dist/components/tabs/tabs-tokens.js.map +1 -0
  388. package/dist/components/text-field/TextField.d.ts +175 -0
  389. package/dist/components/text-field/TextField.js +250 -0
  390. package/dist/components/text-field/TextField.js.map +1 -0
  391. package/dist/components/text-field/text-field-styles.d.ts +252 -0
  392. package/dist/components/text-field/text-field-styles.js +209 -0
  393. package/dist/components/text-field/text-field-styles.js.map +1 -0
  394. package/dist/components/text-field/text-field-tokens.d.ts +7 -0
  395. package/dist/components/text-field/text-field-tokens.js +177 -0
  396. package/dist/components/text-field/text-field-tokens.js.map +1 -0
  397. package/dist/components/time-picker/TimePicker.d.ts +142 -0
  398. package/dist/components/time-picker/TimePicker.js +700 -0
  399. package/dist/components/time-picker/TimePicker.js.map +1 -0
  400. package/dist/components/time-picker/time-picker-styles.d.ts +175 -0
  401. package/dist/components/time-picker/time-picker-styles.js +112 -0
  402. package/dist/components/time-picker/time-picker-styles.js.map +1 -0
  403. package/dist/components/time-picker/time-picker-tokens.d.ts +7 -0
  404. package/dist/components/time-picker/time-picker-tokens.js +86 -0
  405. package/dist/components/time-picker/time-picker-tokens.js.map +1 -0
  406. package/dist/components/toolbar/Toolbar.d.ts +209 -0
  407. package/dist/components/toolbar/Toolbar.js +282 -0
  408. package/dist/components/toolbar/Toolbar.js.map +1 -0
  409. package/dist/components/toolbar/toolbar-styles.d.ts +403 -0
  410. package/dist/components/toolbar/toolbar-styles.js +253 -0
  411. package/dist/components/toolbar/toolbar-styles.js.map +1 -0
  412. package/dist/components/toolbar/toolbar-tokens.d.ts +27 -0
  413. package/dist/components/toolbar/toolbar-tokens.js +117 -0
  414. package/dist/components/toolbar/toolbar-tokens.js.map +1 -0
  415. package/dist/components/toolbar/use-toolbar-scroll-expansion.d.ts +56 -0
  416. package/dist/components/toolbar/use-toolbar-scroll-expansion.js +86 -0
  417. package/dist/components/toolbar/use-toolbar-scroll-expansion.js.map +1 -0
  418. package/dist/components/tooltip/Tooltip.d.ts +131 -0
  419. package/dist/components/tooltip/Tooltip.js +388 -0
  420. package/dist/components/tooltip/Tooltip.js.map +1 -0
  421. package/dist/components/tooltip/lazy-tooltip.js +35 -0
  422. package/dist/components/tooltip/lazy-tooltip.js.map +1 -0
  423. package/dist/components/tooltip/tooltip-placement.d.ts +16 -0
  424. package/dist/components/tooltip/tooltip-placement.js +14 -0
  425. package/dist/components/tooltip/tooltip-placement.js.map +1 -0
  426. package/dist/components/tooltip/tooltip-styles.d.ts +142 -0
  427. package/dist/components/tooltip/tooltip-styles.js +81 -0
  428. package/dist/components/tooltip/tooltip-styles.js.map +1 -0
  429. package/dist/components/tooltip/tooltip-tokens.d.ts +9 -0
  430. package/dist/components/tooltip/tooltip-tokens.js +72 -0
  431. package/dist/components/tooltip/tooltip-tokens.js.map +1 -0
  432. package/dist/components/tooltip/tooltip-trigger.d.ts +42 -0
  433. package/dist/components/tooltip/tooltip-trigger.js +115 -0
  434. package/dist/components/tooltip/tooltip-trigger.js.map +1 -0
  435. package/dist/composites/button-group/ButtonGroup.d.ts +116 -0
  436. package/dist/composites/button-group/ButtonGroup.js +270 -0
  437. package/dist/composites/button-group/ButtonGroup.js.map +1 -0
  438. package/dist/composites/button-group/button-group-styles.d.ts +73 -0
  439. package/dist/composites/button-group/button-group-styles.js +87 -0
  440. package/dist/composites/button-group/button-group-styles.js.map +1 -0
  441. package/dist/composites/button-group/lazy-overflow-menu.js +43 -0
  442. package/dist/composites/button-group/lazy-overflow-menu.js.map +1 -0
  443. package/dist/composites/button-group/overflow-menu-list.js +26 -0
  444. package/dist/composites/button-group/overflow-menu-list.js.map +1 -0
  445. package/dist/composites/button-group/use-overflow.js +75 -0
  446. package/dist/composites/button-group/use-overflow.js.map +1 -0
  447. package/dist/composites/button-group/use-press-expansion.js +155 -0
  448. package/dist/composites/button-group/use-press-expansion.js.map +1 -0
  449. package/dist/index.d.ts +142 -0
  450. package/dist/index.js +136 -0
  451. package/dist/motion/get-m3-spring.d.ts +6 -0
  452. package/dist/motion/get-m3-spring.js +10 -0
  453. package/dist/motion/get-m3-spring.js.map +1 -0
  454. package/dist/motion/reduced-motion.js +19 -0
  455. package/dist/motion/reduced-motion.js.map +1 -0
  456. package/dist/motion/use-m3-spring.d.ts +13 -0
  457. package/dist/motion/use-m3-spring.js +22 -0
  458. package/dist/motion/use-m3-spring.js.map +1 -0
  459. package/dist/next/NextRouterProvider.d.ts +13 -0
  460. package/dist/next/NextRouterProvider.js +26 -0
  461. package/dist/next/NextRouterProvider.js.map +1 -0
  462. package/dist/next/get-theme-from-cookies.d.ts +32 -0
  463. package/dist/next/get-theme-from-cookies.js +27 -0
  464. package/dist/next/get-theme-from-cookies.js.map +1 -0
  465. package/dist/next/navigation-guard.d.ts +30 -0
  466. package/dist/next/navigation-guard.js +68 -0
  467. package/dist/next/navigation-guard.js.map +1 -0
  468. package/dist/next.d.ts +5 -0
  469. package/dist/next.js +5 -0
  470. package/dist/primitives/ButtonBase.d.ts +115 -0
  471. package/dist/primitives/ButtonBase.js +231 -0
  472. package/dist/primitives/ButtonBase.js.map +1 -0
  473. package/dist/primitives/DomDirectionLocale.d.ts +18 -0
  474. package/dist/primitives/DomDirectionLocale.js +28 -0
  475. package/dist/primitives/DomDirectionLocale.js.map +1 -0
  476. package/dist/primitives/Field.d.ts +50 -0
  477. package/dist/primitives/Field.js +74 -0
  478. package/dist/primitives/Field.js.map +1 -0
  479. package/dist/primitives/IconFaces.js +23 -0
  480. package/dist/primitives/IconFaces.js.map +1 -0
  481. package/dist/primitives/Overlay.d.ts +39 -0
  482. package/dist/primitives/Overlay.js +86 -0
  483. package/dist/primitives/Overlay.js.map +1 -0
  484. package/dist/primitives/SelectionControl.d.ts +55 -0
  485. package/dist/primitives/SelectionControl.js +58 -0
  486. package/dist/primitives/SelectionControl.js.map +1 -0
  487. package/dist/primitives/Surface.d.ts +123 -0
  488. package/dist/primitives/Surface.js +68 -0
  489. package/dist/primitives/Surface.js.map +1 -0
  490. package/dist/primitives/ToolbarContext.js +12 -0
  491. package/dist/primitives/ToolbarContext.js.map +1 -0
  492. package/dist/primitives/TouchTarget.d.ts +14 -0
  493. package/dist/primitives/TouchTarget.js +20 -0
  494. package/dist/primitives/TouchTarget.js.map +1 -0
  495. package/dist/primitives/TriggerContext.d.ts +34 -0
  496. package/dist/primitives/TriggerContext.js +24 -0
  497. package/dist/primitives/TriggerContext.js.map +1 -0
  498. package/dist/primitives/hidden-input-focus.js +27 -0
  499. package/dist/primitives/hidden-input-focus.js.map +1 -0
  500. package/dist/primitives/icon-faces-styles.d.ts +9 -0
  501. package/dist/primitives/icon-faces-styles.js +45 -0
  502. package/dist/primitives/icon-faces-styles.js.map +1 -0
  503. package/dist/primitives/locale-with-direction.d.ts +9 -0
  504. package/dist/primitives/locale-with-direction.js +17 -0
  505. package/dist/primitives/locale-with-direction.js.map +1 -0
  506. package/dist/primitives/morph-path.d.ts +25 -0
  507. package/dist/primitives/morph-path.js +38 -0
  508. package/dist/primitives/morph-path.js.map +1 -0
  509. package/dist/primitives/selection-control-styles.d.ts +54 -0
  510. package/dist/primitives/selection-control-styles.js +44 -0
  511. package/dist/primitives/selection-control-styles.js.map +1 -0
  512. package/dist/primitives/use-m3-interaction.d.ts +51 -0
  513. package/dist/primitives/use-m3-interaction.js +149 -0
  514. package/dist/primitives/use-m3-interaction.js.map +1 -0
  515. package/dist/primitives/use-m3-morph.d.ts +18 -0
  516. package/dist/primitives/use-m3-morph.js +36 -0
  517. package/dist/primitives/use-m3-morph.js.map +1 -0
  518. package/dist/primitives/use-presence.d.ts +19 -0
  519. package/dist/primitives/use-presence.js +37 -0
  520. package/dist/primitives/use-presence.js.map +1 -0
  521. package/dist/primitives.d.ts +36 -0
  522. package/dist/primitives.js +34 -0
  523. package/dist/shapes/corner-rounding.d.ts +13 -0
  524. package/dist/shapes/corner-rounding.js +18 -0
  525. package/dist/shapes/corner-rounding.js.map +1 -0
  526. package/dist/shapes/cubic.d.ts +52 -0
  527. package/dist/shapes/cubic.js +189 -0
  528. package/dist/shapes/cubic.js.map +1 -0
  529. package/dist/shapes/feature-mapping.js +80 -0
  530. package/dist/shapes/feature-mapping.js.map +1 -0
  531. package/dist/shapes/features.d.ts +23 -0
  532. package/dist/shapes/features.js +82 -0
  533. package/dist/shapes/features.js.map +1 -0
  534. package/dist/shapes/float-mapping.js +65 -0
  535. package/dist/shapes/float-mapping.js.map +1 -0
  536. package/dist/shapes/generated/material-shape-path-record.d.ts +11 -0
  537. package/dist/shapes/generated/material-shape-path-record.js +48 -0
  538. package/dist/shapes/generated/material-shape-path-record.js.map +1 -0
  539. package/dist/shapes/generated/material-shape-paths.d.ts +78 -0
  540. package/dist/shapes/generated/material-shape-paths.js +218 -0
  541. package/dist/shapes/generated/material-shape-paths.js.map +1 -0
  542. package/dist/shapes/mask.d.ts +14 -0
  543. package/dist/shapes/mask.js +24 -0
  544. package/dist/shapes/mask.js.map +1 -0
  545. package/dist/shapes/material-shapes.d.ts +11 -0
  546. package/dist/shapes/material-shapes.js +250 -0
  547. package/dist/shapes/material-shapes.js.map +1 -0
  548. package/dist/shapes/morph.d.ts +25 -0
  549. package/dist/shapes/morph.js +97 -0
  550. package/dist/shapes/morph.js.map +1 -0
  551. package/dist/shapes/path.d.ts +33 -0
  552. package/dist/shapes/path.js +47 -0
  553. package/dist/shapes/path.js.map +1 -0
  554. package/dist/shapes/point.d.ts +28 -0
  555. package/dist/shapes/point.js +103 -0
  556. package/dist/shapes/point.js.map +1 -0
  557. package/dist/shapes/polygon-measure.js +140 -0
  558. package/dist/shapes/polygon-measure.js.map +1 -0
  559. package/dist/shapes/rounded-polygon.d.ts +44 -0
  560. package/dist/shapes/rounded-polygon.js +278 -0
  561. package/dist/shapes/rounded-polygon.js.map +1 -0
  562. package/dist/shapes/shape-path.d.ts +15 -0
  563. package/dist/shapes/shapes.d.ts +53 -0
  564. package/dist/shapes/shapes.js +171 -0
  565. package/dist/shapes/shapes.js.map +1 -0
  566. package/dist/styles/generated/components.css +710 -0
  567. package/dist/styles/generated/theme.css +247 -0
  568. package/dist/styles/generated/themes.css +3361 -0
  569. package/dist/styles/generated/tokens.css +284 -0
  570. package/dist/styles/styles.css +15 -0
  571. package/dist/styles/utilities.css +283 -0
  572. package/dist/styles.compiled.css +2 -0
  573. package/dist/theme/ThemeProvider.d.ts +72 -0
  574. package/dist/theme/ThemeProvider.js +144 -0
  575. package/dist/theme/ThemeProvider.js.map +1 -0
  576. package/dist/theme/ThemeScope.d.ts +32 -0
  577. package/dist/theme/ThemeScope.js +67 -0
  578. package/dist/theme/ThemeScope.js.map +1 -0
  579. package/dist/theme/ThemeScript.d.ts +26 -0
  580. package/dist/theme/ThemeScript.js +44 -0
  581. package/dist/theme/ThemeScript.js.map +1 -0
  582. package/dist/theme/context.d.ts +32 -0
  583. package/dist/theme/context.js +47 -0
  584. package/dist/theme/context.js.map +1 -0
  585. package/dist/theme/create-theme.d.ts +60 -0
  586. package/dist/theme/create-theme.js +47 -0
  587. package/dist/theme/create-theme.js.map +1 -0
  588. package/dist/theme/css.js +54 -0
  589. package/dist/theme/css.js.map +1 -0
  590. package/dist/theme/parse-palettes.js +40 -0
  591. package/dist/theme/parse-palettes.js.map +1 -0
  592. package/dist/theme/scheme.d.ts +6 -0
  593. package/dist/theme/scheme.js +118 -0
  594. package/dist/theme/scheme.js.map +1 -0
  595. package/dist/theme/state.d.ts +38 -0
  596. package/dist/theme/state.js +93 -0
  597. package/dist/theme/state.js.map +1 -0
  598. package/dist/theme/storage.js +21 -0
  599. package/dist/theme/storage.js.map +1 -0
  600. package/dist/tokens/breakpoints.d.ts +15 -0
  601. package/dist/tokens/breakpoints.js +16 -0
  602. package/dist/tokens/breakpoints.js.map +1 -0
  603. package/dist/tokens/color.d.ts +104 -0
  604. package/dist/tokens/color.js +147 -0
  605. package/dist/tokens/color.js.map +1 -0
  606. package/dist/tokens/component.d.ts +110 -0
  607. package/dist/tokens/component.js +67 -0
  608. package/dist/tokens/component.js.map +1 -0
  609. package/dist/tokens/density.d.ts +20 -0
  610. package/dist/tokens/density.js +27 -0
  611. package/dist/tokens/density.js.map +1 -0
  612. package/dist/tokens/elevation.d.ts +44 -0
  613. package/dist/tokens/elevation.js +45 -0
  614. package/dist/tokens/elevation.js.map +1 -0
  615. package/dist/tokens/motion.d.ts +79 -0
  616. package/dist/tokens/motion.js +126 -0
  617. package/dist/tokens/motion.js.map +1 -0
  618. package/dist/tokens/shape.d.ts +22 -0
  619. package/dist/tokens/shape.js +22 -0
  620. package/dist/tokens/shape.js.map +1 -0
  621. package/dist/tokens/spring-velocity.d.ts +19 -0
  622. package/dist/tokens/spring-velocity.js +44 -0
  623. package/dist/tokens/spring-velocity.js.map +1 -0
  624. package/dist/tokens/state.d.ts +18 -0
  625. package/dist/tokens/state.js +19 -0
  626. package/dist/tokens/state.js.map +1 -0
  627. package/dist/tokens/typography.d.ts +64 -0
  628. package/dist/tokens/typography.js +60 -0
  629. package/dist/tokens/typography.js.map +1 -0
  630. package/dist/tokens/z-index.d.ts +17 -0
  631. package/dist/tokens/z-index.js +18 -0
  632. package/dist/tokens/z-index.js.map +1 -0
  633. package/dist/utils/announce.js +51 -0
  634. package/dist/utils/announce.js.map +1 -0
  635. package/dist/utils/assert-collection-children.js +26 -0
  636. package/dist/utils/assert-collection-children.js.map +1 -0
  637. package/dist/utils/closed-by.d.ts +9 -0
  638. package/dist/utils/closed-by.js +12 -0
  639. package/dist/utils/closed-by.js.map +1 -0
  640. package/dist/utils/cn.d.ts +31 -0
  641. package/dist/utils/cn.js +37 -0
  642. package/dist/utils/cn.js.map +1 -0
  643. package/dist/utils/composite-keys.js +32 -0
  644. package/dist/utils/composite-keys.js.map +1 -0
  645. package/dist/utils/focus-visible.js +14 -0
  646. package/dist/utils/focus-visible.js.map +1 -0
  647. package/dist/utils/focus.js +51 -0
  648. package/dist/utils/focus.js.map +1 -0
  649. package/dist/utils/focusable-disabled.js +12 -0
  650. package/dist/utils/focusable-disabled.js.map +1 -0
  651. package/dist/utils/keep-pressed-in-place.d.ts +60 -0
  652. package/dist/utils/keep-pressed-in-place.js +127 -0
  653. package/dist/utils/keep-pressed-in-place.js.map +1 -0
  654. package/dist/utils/load-on-demand.js +111 -0
  655. package/dist/utils/load-on-demand.js.map +1 -0
  656. package/dist/utils/merge-data-tokens.d.ts +9 -0
  657. package/dist/utils/merge-data-tokens.js +15 -0
  658. package/dist/utils/merge-data-tokens.js.map +1 -0
  659. package/dist/utils/natural-size.js +53 -0
  660. package/dist/utils/natural-size.js.map +1 -0
  661. package/dist/utils/nearest-reveal.js +28 -0
  662. package/dist/utils/nearest-reveal.js.map +1 -0
  663. package/dist/utils/placement.js +14 -0
  664. package/dist/utils/placement.js.map +1 -0
  665. package/dist/utils/radio-group-keys.js +74 -0
  666. package/dist/utils/radio-group-keys.js.map +1 -0
  667. package/dist/utils/rendered-description.js +17 -0
  668. package/dist/utils/rendered-description.js.map +1 -0
  669. package/dist/utils/root-props.d.ts +103 -0
  670. package/dist/utils/root-props.js +51 -0
  671. package/dist/utils/root-props.js.map +1 -0
  672. package/dist/utils/search.d.ts +11 -0
  673. package/dist/utils/search.js +18 -0
  674. package/dist/utils/search.js.map +1 -0
  675. package/dist/utils/shortcut.js +20 -0
  676. package/dist/utils/shortcut.js.map +1 -0
  677. package/dist/utils/split-data-attributes.d.ts +12 -0
  678. package/dist/utils/split-data-attributes.js +20 -0
  679. package/dist/utils/split-data-attributes.js.map +1 -0
  680. package/dist/utils/toolbar-keys.js +28 -0
  681. package/dist/utils/toolbar-keys.js.map +1 -0
  682. package/dist/utils/tv.d.ts +7 -0
  683. package/dist/utils/tv.js +9 -0
  684. package/dist/utils/tv.js.map +1 -0
  685. package/dist/utils/typeahead.js +64 -0
  686. package/dist/utils/typeahead.js.map +1 -0
  687. package/dist/utils/warn-once.js +30 -0
  688. package/dist/utils/warn-once.js.map +1 -0
  689. package/dist/vendor/material-color-utilities/blend/blend.js +88 -0
  690. package/dist/vendor/material-color-utilities/blend/blend.js.map +1 -0
  691. package/dist/vendor/material-color-utilities/contrast/contrast.js +131 -0
  692. package/dist/vendor/material-color-utilities/contrast/contrast.js.map +1 -0
  693. package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js +58 -0
  694. package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js.map +1 -0
  695. package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js +620 -0
  696. package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js.map +1 -0
  697. package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js +786 -0
  698. package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js.map +1 -0
  699. package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js +59 -0
  700. package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js.map +1 -0
  701. package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js +420 -0
  702. package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js.map +1 -0
  703. package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js +701 -0
  704. package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js.map +1 -0
  705. package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js +374 -0
  706. package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js.map +1 -0
  707. package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js +65 -0
  708. package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js.map +1 -0
  709. package/dist/vendor/material-color-utilities/dynamiccolor/variant.js +38 -0
  710. package/dist/vendor/material-color-utilities/dynamiccolor/variant.js.map +1 -0
  711. package/dist/vendor/material-color-utilities/hct/cam16.js +309 -0
  712. package/dist/vendor/material-color-utilities/hct/cam16.js.map +1 -0
  713. package/dist/vendor/material-color-utilities/hct/hct.js +148 -0
  714. package/dist/vendor/material-color-utilities/hct/hct.js.map +1 -0
  715. package/dist/vendor/material-color-utilities/hct/hct_solver.js +660 -0
  716. package/dist/vendor/material-color-utilities/hct/hct_solver.js.map +1 -0
  717. package/dist/vendor/material-color-utilities/hct/viewing_conditions.js +117 -0
  718. package/dist/vendor/material-color-utilities/hct/viewing_conditions.js.map +1 -0
  719. package/dist/vendor/material-color-utilities/index.js +51 -0
  720. package/dist/vendor/material-color-utilities/index.js.map +1 -0
  721. package/dist/vendor/material-color-utilities/palettes/core_palette.js +22 -0
  722. package/dist/vendor/material-color-utilities/palettes/core_palette.js.map +1 -0
  723. package/dist/vendor/material-color-utilities/palettes/tonal_palette.js +134 -0
  724. package/dist/vendor/material-color-utilities/palettes/tonal_palette.js.map +1 -0
  725. package/dist/vendor/material-color-utilities/scheme/scheme.js +21 -0
  726. package/dist/vendor/material-color-utilities/scheme/scheme.js.map +1 -0
  727. package/dist/vendor/material-color-utilities/scheme/scheme_android.js +21 -0
  728. package/dist/vendor/material-color-utilities/scheme/scheme_android.js.map +1 -0
  729. package/dist/vendor/material-color-utilities/scheme/scheme_content.js +22 -0
  730. package/dist/vendor/material-color-utilities/scheme/scheme_content.js.map +1 -0
  731. package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js +38 -0
  732. package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js.map +1 -0
  733. package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js +22 -0
  734. package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js.map +1 -0
  735. package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js +22 -0
  736. package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js.map +1 -0
  737. package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js +22 -0
  738. package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js.map +1 -0
  739. package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js +36 -0
  740. package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js.map +1 -0
  741. package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js +22 -0
  742. package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js.map +1 -0
  743. package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js +41 -0
  744. package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js.map +1 -0
  745. package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js +39 -0
  746. package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js.map +1 -0
  747. package/dist/vendor/material-color-utilities/score/score.js +115 -0
  748. package/dist/vendor/material-color-utilities/score/score.js.map +1 -0
  749. package/dist/vendor/material-color-utilities/temperature/temperature_cache.js +227 -0
  750. package/dist/vendor/material-color-utilities/temperature/temperature_cache.js.map +1 -0
  751. package/dist/vendor/material-color-utilities/utils/color_utils.js +246 -0
  752. package/dist/vendor/material-color-utilities/utils/color_utils.js.map +1 -0
  753. package/dist/vendor/material-color-utilities/utils/image_utils.js +21 -0
  754. package/dist/vendor/material-color-utilities/utils/image_utils.js.map +1 -0
  755. package/dist/vendor/material-color-utilities/utils/math_utils.js +119 -0
  756. package/dist/vendor/material-color-utilities/utils/math_utils.js.map +1 -0
  757. package/dist/vendor/material-color-utilities/utils/string_utils.js +74 -0
  758. package/dist/vendor/material-color-utilities/utils/string_utils.js.map +1 -0
  759. package/dist/vendor/material-color-utilities/utils/theme_utils.js +24 -0
  760. package/dist/vendor/material-color-utilities/utils/theme_utils.js.map +1 -0
  761. package/package.json +114 -3
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import { useLayoutEffect, useState } from "react";
3
+ //#region src/composites/button-group/use-overflow.ts
4
+ /** Set on a group's child while it's folded into the overflow menu; the group hides it. */
5
+ const OVERFLOW_HIDDEN = "data-overflow-hidden";
6
+ /** Set on the group while it measures its children at their natural widths. */
7
+ const MEASURING = "data-measuring";
8
+ /** Sub-pixel slack, so rounding never folds a button that fits. */
9
+ const EPSILON = .5;
10
+ /**
11
+ * How many of `widths` fit in `available` px with `gap` between them, leaving room for an
12
+ * overflow indicator `indicator` px wide (and its gap) when they don't all fit (Compose
13
+ * `ButtonGroup`'s overflow measurement).
14
+ */
15
+ function fitCount(widths, gap, indicator, available) {
16
+ const span = (count) => widths.slice(0, count).reduce((sum, width) => sum + width, 0) + gap * Math.max(0, count - 1);
17
+ if (span(widths.length) <= available + EPSILON) return widths.length;
18
+ let count = 0;
19
+ while (count < widths.length && span(count + 1) + gap + indicator <= available + EPSILON) count += 1;
20
+ return count;
21
+ }
22
+ /**
23
+ * M3 button group overflow ("Buttons at the trailing edge of the button group can be
24
+ * customized to collapse into an overflow menu at smaller breakpoints, and become visible
25
+ * again at larger sizes"). The group's first `count` children are its items and the next
26
+ * one is the overflow indicator. Measures the items at their natural widths whenever the
27
+ * group or an item resizes, hides the trailing items that don't fit (and the indicator
28
+ * when they all do) through `data-overflow-hidden`, and returns how many items show.
29
+ *
30
+ * Measuring and hiding happen in one synchronous pass before paint, so nothing flashes.
31
+ */
32
+ function useOverflow(groupRef, enabled, count) {
33
+ const [visible, setVisible] = useState(count);
34
+ useLayoutEffect(() => {
35
+ const group = groupRef.current;
36
+ if (!group || !enabled) return;
37
+ const measure = () => {
38
+ const children = [...group.children];
39
+ const items = children.slice(0, count);
40
+ const indicator = children[count];
41
+ const available = group.clientWidth;
42
+ for (const element of children) element.removeAttribute(OVERFLOW_HIDDEN);
43
+ group.setAttribute(MEASURING, "");
44
+ const gap = Number.parseFloat(getComputedStyle(group).columnGap) || 0;
45
+ const widths = items.map((element) => element.getBoundingClientRect().width);
46
+ const indicatorWidth = indicator?.getBoundingClientRect().width ?? 0;
47
+ group.removeAttribute(MEASURING);
48
+ const fit = fitCount(widths, gap, indicatorWidth, available);
49
+ items.forEach((element, index) => element.toggleAttribute(OVERFLOW_HIDDEN, index >= fit));
50
+ indicator?.toggleAttribute(OVERFLOW_HIDDEN, fit === count);
51
+ setVisible(fit);
52
+ };
53
+ measure();
54
+ const reset = () => {
55
+ for (const element of group.children) element.removeAttribute(OVERFLOW_HIDDEN);
56
+ };
57
+ if (typeof ResizeObserver === "undefined") return reset;
58
+ const observer = new ResizeObserver(measure);
59
+ observer.observe(group);
60
+ for (const element of group.children) observer.observe(element);
61
+ return () => {
62
+ observer.disconnect();
63
+ reset();
64
+ };
65
+ }, [
66
+ groupRef,
67
+ enabled,
68
+ count
69
+ ]);
70
+ return enabled ? Math.min(visible, count) : count;
71
+ }
72
+ //#endregion
73
+ export { OVERFLOW_HIDDEN, fitCount, useOverflow };
74
+
75
+ //# sourceMappingURL=use-overflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-overflow.js","names":[],"sources":["../../../src/composites/button-group/use-overflow.ts"],"sourcesContent":["'use client';\n\nimport { useLayoutEffect, useState, type RefObject } from 'react';\n\n/** Set on a group's child while it's folded into the overflow menu; the group hides it. */\nexport const OVERFLOW_HIDDEN = 'data-overflow-hidden';\n\n/** Set on the group while it measures its children at their natural widths. */\nconst MEASURING = 'data-measuring';\n\n/** Sub-pixel slack, so rounding never folds a button that fits. */\nconst EPSILON = 0.5;\n\n/**\n * How many of `widths` fit in `available` px with `gap` between them, leaving room for an\n * overflow indicator `indicator` px wide (and its gap) when they don't all fit (Compose\n * `ButtonGroup`'s overflow measurement).\n */\nexport function fitCount(widths: number[], gap: number, indicator: number, available: number) {\n const span = (count: number) =>\n widths.slice(0, count).reduce((sum, width) => sum + width, 0) + gap * Math.max(0, count - 1);\n if (span(widths.length) <= available + EPSILON) return widths.length;\n let count = 0;\n while (count < widths.length && span(count + 1) + gap + indicator <= available + EPSILON) {\n count += 1;\n }\n return count;\n}\n\n/**\n * M3 button group overflow (\"Buttons at the trailing edge of the button group can be\n * customized to collapse into an overflow menu at smaller breakpoints, and become visible\n * again at larger sizes\"). The group's first `count` children are its items and the next\n * one is the overflow indicator. Measures the items at their natural widths whenever the\n * group or an item resizes, hides the trailing items that don't fit (and the indicator\n * when they all do) through `data-overflow-hidden`, and returns how many items show.\n *\n * Measuring and hiding happen in one synchronous pass before paint, so nothing flashes.\n */\nexport function useOverflow(\n groupRef: RefObject<HTMLElement | null>,\n enabled: boolean,\n count: number,\n): number {\n const [visible, setVisible] = useState(count);\n\n useLayoutEffect(() => {\n const group = groupRef.current;\n if (!group || !enabled) return;\n const measure = () => {\n const children = [...group.children] as HTMLElement[];\n const items = children.slice(0, count);\n const indicator = children[count];\n const available = group.clientWidth;\n // Natural widths: every item shown and none growing into spare space.\n for (const element of children) element.removeAttribute(OVERFLOW_HIDDEN);\n group.setAttribute(MEASURING, '');\n const gap = Number.parseFloat(getComputedStyle(group).columnGap) || 0;\n const widths = items.map((element) => element.getBoundingClientRect().width);\n const indicatorWidth = indicator?.getBoundingClientRect().width ?? 0;\n group.removeAttribute(MEASURING);\n\n const fit = fitCount(widths, gap, indicatorWidth, available);\n items.forEach((element, index) => element.toggleAttribute(OVERFLOW_HIDDEN, index >= fit));\n indicator?.toggleAttribute(OVERFLOW_HIDDEN, fit === count);\n setVisible(fit);\n };\n measure();\n const reset = () => {\n for (const element of group.children) element.removeAttribute(OVERFLOW_HIDDEN);\n };\n if (typeof ResizeObserver === 'undefined') return reset;\n const observer = new ResizeObserver(measure);\n observer.observe(group);\n for (const element of group.children) observer.observe(element);\n return () => {\n observer.disconnect();\n reset();\n };\n }, [groupRef, enabled, count]);\n\n return enabled ? Math.min(visible, count) : count;\n}\n"],"mappings":";;;;AAKA,MAAa,kBAAkB;;AAG/B,MAAM,YAAY;;AAGlB,MAAM,UAAU;;;;;;AAOhB,SAAgB,SAAS,QAAkB,KAAa,WAAmB,WAAmB;CAC5F,MAAM,QAAQ,UACZ,OAAO,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,KAAK,UAAU,MAAM,OAAO,CAAC,IAAI,MAAM,KAAK,IAAI,GAAG,QAAQ,CAAC;CAC7F,IAAI,KAAK,OAAO,MAAM,KAAK,YAAY,SAAS,OAAO,OAAO;CAC9D,IAAI,QAAQ;CACZ,OAAO,QAAQ,OAAO,UAAU,KAAK,QAAQ,CAAC,IAAI,MAAM,aAAa,YAAY,SAC/E,SAAS;CAEX,OAAO;AACT;;;;;;;;;;;AAYA,SAAgB,YACd,UACA,SACA,OACQ;CACR,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAE5C,sBAAsB;EACpB,MAAM,QAAQ,SAAS;EACvB,IAAI,CAAC,SAAS,CAAC,SAAS;EACxB,MAAM,gBAAgB;GACpB,MAAM,WAAW,CAAC,GAAG,MAAM,QAAQ;GACnC,MAAM,QAAQ,SAAS,MAAM,GAAG,KAAK;GACrC,MAAM,YAAY,SAAS;GAC3B,MAAM,YAAY,MAAM;GAExB,KAAK,MAAM,WAAW,UAAU,QAAQ,gBAAgB,eAAe;GACvE,MAAM,aAAa,WAAW,EAAE;GAChC,MAAM,MAAM,OAAO,WAAW,iBAAiB,KAAK,CAAC,CAAC,SAAS,KAAK;GACpE,MAAM,SAAS,MAAM,KAAK,YAAY,QAAQ,sBAAsB,CAAC,CAAC,KAAK;GAC3E,MAAM,iBAAiB,WAAW,sBAAsB,CAAC,CAAC,SAAS;GACnE,MAAM,gBAAgB,SAAS;GAE/B,MAAM,MAAM,SAAS,QAAQ,KAAK,gBAAgB,SAAS;GAC3D,MAAM,SAAS,SAAS,UAAU,QAAQ,gBAAgB,iBAAiB,SAAS,GAAG,CAAC;GACxF,WAAW,gBAAgB,iBAAiB,QAAQ,KAAK;GACzD,WAAW,GAAG;EAChB;EACA,QAAQ;EACR,MAAM,cAAc;GAClB,KAAK,MAAM,WAAW,MAAM,UAAU,QAAQ,gBAAgB,eAAe;EAC/E;EACA,IAAI,OAAO,mBAAmB,aAAa,OAAO;EAClD,MAAM,WAAW,IAAI,eAAe,OAAO;EAC3C,SAAS,QAAQ,KAAK;EACtB,KAAK,MAAM,WAAW,MAAM,UAAU,SAAS,QAAQ,OAAO;EAC9D,aAAa;GACX,SAAS,WAAW;GACpB,MAAM;EACR;CACF,GAAG;EAAC;EAAU;EAAS;CAAK,CAAC;CAE7B,OAAO,UAAU,KAAK,IAAI,SAAS,KAAK,IAAI;AAC9C"}
@@ -0,0 +1,155 @@
1
+ "use client";
2
+ import { OVERFLOW_HIDDEN } from "./use-overflow.js";
3
+ import { useLayoutEffect } from "react";
4
+ //#region src/composites/button-group/use-press-expansion.ts
5
+ /**
6
+ * Set on the group while it sizes its items inline. A connected group, a grid at rest, is
7
+ * then a flex row (`data-pinned:flex`), since the bump animates its items' `flex-basis`.
8
+ */
9
+ const PINNED = "data-pinned";
10
+ /**
11
+ * An item's layout width, and how much of it the item may give up: half the space around its
12
+ * content (Compose's compression limit). Both ignore transforms, such as a scaled ancestor,
13
+ * since the group sets layout widths. The used `width` is in the item's own box sizing, as
14
+ * `flex-basis` is.
15
+ */
16
+ function measure(element) {
17
+ const box = element.getBoundingClientRect().width;
18
+ const layout = Number.parseFloat(getComputedStyle(element).width);
19
+ const width = Number.isFinite(layout) ? layout : box;
20
+ const scale = box > 0 ? width / box : 1;
21
+ const content = element.firstElementChild ? element.firstElementChild.getBoundingClientRect().width * scale : width;
22
+ return {
23
+ rest: width,
24
+ limit: Math.max(0, (width - content) / 2)
25
+ };
26
+ }
27
+ /**
28
+ * Changes an item's sizing without animating it. Pinning swaps the consumer's sizing (such as
29
+ * a connected group's `flex: 1 1 0%`) for its measured width in px, and unpinning swaps it
30
+ * back: the layout is the same either way, but the `container-motion` utility transitions
31
+ * `flex-basis`, which would run from 0% to the px width (the item collapsing first) or back.
32
+ * The change is flushed to style and its transition finished, so only the moves between the
33
+ * rest and bumped widths animate.
34
+ */
35
+ function resizeInstantly(element, flex, minWidth) {
36
+ element.style.flex = flex;
37
+ element.style.minWidth = minWidth;
38
+ getComputedStyle(element).flexBasis;
39
+ if (typeof element.getAnimations !== "function") return;
40
+ for (const animation of element.getAnimations()) if (animation instanceof CSSTransition && animation.transitionProperty === "flex-basis") animation.finish();
41
+ }
42
+ /**
43
+ * How long the release takes to settle, in ms. The token is a CSS time, which a minified
44
+ * stylesheet may write in seconds (`.36s` for `360ms`).
45
+ */
46
+ function settleDuration(element) {
47
+ const value = getComputedStyle(element).getPropertyValue("--md-sys-motion-spring-spatial-fast-duration").trim();
48
+ const time = Number.parseFloat(value);
49
+ const ms = value.endsWith("ms") ? time : time * 1e3;
50
+ return (Number.isFinite(ms) ? ms : 400) + 50;
51
+ }
52
+ /**
53
+ * M3 Expressive button group interaction (Compose `ButtonGroup`): the pressed item grows
54
+ * by `expandedRatio` of its width and its neighbours shrink by the same amount, each by
55
+ * at most their own compression limit, so the group's total width stays the same.
56
+ *
57
+ * Watches the public `data-pressed` attribute of the group's direct children and animates
58
+ * their `flex-basis` (the `container-motion` utility transitions it on the fast spatial
59
+ * spring), with `data-pinned` on the group while any item is pinned. At rest no inline sizing remains, so consumer sizing such as `flex-1` applies;
60
+ * the switches between that sizing and the pinned px widths don't animate (2026-10-14).
61
+ * Buttons folded into the overflow menu don't take part. Under reduced motion there's no
62
+ * bump at all: it's movement that only decorates the press (architecture §6).
63
+ */
64
+ function usePressExpansion(groupRef, expandedRatio) {
65
+ useLayoutEffect(() => {
66
+ const group = groupRef.current;
67
+ if (!group || expandedRatio <= 0) return;
68
+ const pinned = /* @__PURE__ */ new Map();
69
+ let pressed = null;
70
+ let settle;
71
+ const pin = (element, size) => {
72
+ const existing = pinned.get(element);
73
+ if (existing) return existing;
74
+ const entry = {
75
+ rest: size.rest,
76
+ limit: size.limit,
77
+ flex: element.style.flex,
78
+ minWidth: element.style.minWidth
79
+ };
80
+ resizeInstantly(element, `0 0 ${entry.rest}px`, "0px");
81
+ pinned.set(element, entry);
82
+ return entry;
83
+ };
84
+ const unpin = () => {
85
+ for (const [element, entry] of pinned) resizeInstantly(element, entry.flex, entry.minWidth);
86
+ pinned.clear();
87
+ group.removeAttribute(PINNED);
88
+ };
89
+ let releases = 0;
90
+ const unpinWhenSettled = () => {
91
+ const release = releases;
92
+ const running = [...pinned.keys()].flatMap((element) => typeof element.getAnimations === "function" ? element.getAnimations().filter((animation) => animation instanceof CSSTransition && animation.transitionProperty === "flex-basis" && animation.playState === "running") : []);
93
+ if (running.length === 0) {
94
+ unpin();
95
+ return;
96
+ }
97
+ Promise.allSettled(running.map((animation) => animation.finished)).then(() => {
98
+ if (release === releases) unpin();
99
+ });
100
+ };
101
+ const release = () => {
102
+ const [first] = pinned.keys();
103
+ if (!first) return;
104
+ for (const [element, entry] of pinned) element.style.flexBasis = `${entry.rest}px`;
105
+ clearTimeout(settle);
106
+ releases++;
107
+ settle = setTimeout(unpinWhenSettled, settleDuration(first));
108
+ };
109
+ const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
110
+ const update = () => {
111
+ const items = [...group.children].filter((element) => !element.hasAttribute(OVERFLOW_HIDDEN));
112
+ const next = items.find((el) => el.hasAttribute("data-pressed") && !el.hasAttribute("data-disabled")) ?? null;
113
+ if (next === pressed) return;
114
+ pressed = next;
115
+ release();
116
+ if (!next || items.length < 2 || reducedMotion.matches) return;
117
+ clearTimeout(settle);
118
+ releases++;
119
+ const index = items.indexOf(next);
120
+ const neighbours = [items[index - 1], items[index + 1]].filter((el) => el !== void 0);
121
+ const sizes = items.map((el) => pinned.get(el) ?? measure(el));
122
+ group.setAttribute(PINNED, "");
123
+ const entries = new Map(items.map((el, i) => [el, pin(el, sizes[i])]));
124
+ const width = entries.get(next).rest;
125
+ const share = neighbours.length === 2 ? expandedRatio * width / 2 : expandedRatio * width;
126
+ const growthPerSide = Math.min(share, ...neighbours.map((neighbour) => entries.get(neighbour).limit));
127
+ let growth = 0;
128
+ for (const neighbour of neighbours) {
129
+ const neighbourWidth = entries.get(neighbour).rest;
130
+ const give = Math.min(growthPerSide, neighbourWidth);
131
+ neighbour.style.flexBasis = `${neighbourWidth - give}px`;
132
+ growth += give;
133
+ }
134
+ next.style.flexBasis = `${width + growth}px`;
135
+ };
136
+ const observer = new MutationObserver((records) => {
137
+ if (records.some((record) => record.target.parentElement === group)) update();
138
+ });
139
+ observer.observe(group, {
140
+ subtree: true,
141
+ attributes: true,
142
+ attributeFilter: ["data-pressed"]
143
+ });
144
+ return () => {
145
+ observer.disconnect();
146
+ clearTimeout(settle);
147
+ releases++;
148
+ unpin();
149
+ };
150
+ }, [groupRef, expandedRatio]);
151
+ }
152
+ //#endregion
153
+ export { usePressExpansion };
154
+
155
+ //# sourceMappingURL=use-press-expansion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-press-expansion.js","names":[],"sources":["../../../src/composites/button-group/use-press-expansion.ts"],"sourcesContent":["'use client';\n\nimport { useLayoutEffect, type RefObject } from 'react';\nimport { OVERFLOW_HIDDEN } from './use-overflow';\n\n/**\n * Set on the group while it sizes its items inline. A connected group, a grid at rest, is\n * then a flex row (`data-pinned:flex`), since the bump animates its items' `flex-basis`.\n */\nconst PINNED = 'data-pinned';\n\ninterface Pinned {\n /** Width at rest, before the group changed it. */\n rest: number;\n /** How much the item may give up to a pressed neighbour. */\n limit: number;\n /** The consumer's inline `flex` and `min-width`, restored afterwards. */\n flex: string;\n minWidth: string;\n}\n\n/**\n * An item's layout width, and how much of it the item may give up: half the space around its\n * content (Compose's compression limit). Both ignore transforms, such as a scaled ancestor,\n * since the group sets layout widths. The used `width` is in the item's own box sizing, as\n * `flex-basis` is.\n */\nfunction measure(element: HTMLElement): { rest: number; limit: number } {\n const box = element.getBoundingClientRect().width;\n const layout = Number.parseFloat(getComputedStyle(element).width);\n const width = Number.isFinite(layout) ? layout : box;\n const scale = box > 0 ? width / box : 1;\n const content = element.firstElementChild\n ? element.firstElementChild.getBoundingClientRect().width * scale\n : width;\n return { rest: width, limit: Math.max(0, (width - content) / 2) };\n}\n\n/**\n * Changes an item's sizing without animating it. Pinning swaps the consumer's sizing (such as\n * a connected group's `flex: 1 1 0%`) for its measured width in px, and unpinning swaps it\n * back: the layout is the same either way, but the `container-motion` utility transitions\n * `flex-basis`, which would run from 0% to the px width (the item collapsing first) or back.\n * The change is flushed to style and its transition finished, so only the moves between the\n * rest and bumped widths animate.\n */\nfunction resizeInstantly(element: HTMLElement, flex: string, minWidth: string) {\n element.style.flex = flex;\n element.style.minWidth = minWidth;\n void getComputedStyle(element).flexBasis;\n if (typeof element.getAnimations !== 'function') return;\n for (const animation of element.getAnimations()) {\n if (animation instanceof CSSTransition && animation.transitionProperty === 'flex-basis') {\n animation.finish();\n }\n }\n}\n\n/**\n * How long the release takes to settle, in ms. The token is a CSS time, which a minified\n * stylesheet may write in seconds (`.36s` for `360ms`).\n */\nfunction settleDuration(element: HTMLElement): number {\n const value = getComputedStyle(element)\n .getPropertyValue('--md-sys-motion-spring-spatial-fast-duration')\n .trim();\n const time = Number.parseFloat(value);\n const ms = value.endsWith('ms') ? time : time * 1000;\n return (Number.isFinite(ms) ? ms : 400) + 50;\n}\n\n/**\n * M3 Expressive button group interaction (Compose `ButtonGroup`): the pressed item grows\n * by `expandedRatio` of its width and its neighbours shrink by the same amount, each by\n * at most their own compression limit, so the group's total width stays the same.\n *\n * Watches the public `data-pressed` attribute of the group's direct children and animates\n * their `flex-basis` (the `container-motion` utility transitions it on the fast spatial\n * spring), with `data-pinned` on the group while any item is pinned. At rest no inline sizing remains, so consumer sizing such as `flex-1` applies;\n * the switches between that sizing and the pinned px widths don't animate (2026-10-14).\n * Buttons folded into the overflow menu don't take part. Under reduced motion there's no\n * bump at all: it's movement that only decorates the press (architecture §6).\n */\nexport function usePressExpansion(groupRef: RefObject<HTMLElement | null>, expandedRatio: number) {\n useLayoutEffect(() => {\n const group = groupRef.current;\n if (!group || expandedRatio <= 0) return;\n\n const pinned = new Map<HTMLElement, Pinned>();\n let pressed: HTMLElement | null = null;\n let settle: ReturnType<typeof setTimeout> | undefined;\n\n const pin = (element: HTMLElement, size: { rest: number; limit: number }): Pinned => {\n const existing = pinned.get(element);\n if (existing) return existing;\n const entry = {\n rest: size.rest,\n limit: size.limit,\n flex: element.style.flex,\n minWidth: element.style.minWidth,\n };\n // Like Compose, the group sets exact widths: a shrinking neighbour may go below its\n // minimum width, its label overlapping the padding it gives up.\n resizeInstantly(element, `0 0 ${entry.rest}px`, '0px');\n pinned.set(element, entry);\n return entry;\n };\n\n // Every item at once, in one task, so no frame shows some of them unpinned.\n const unpin = () => {\n for (const [element, entry] of pinned) resizeInstantly(element, entry.flex, entry.minWidth);\n pinned.clear();\n group.removeAttribute(PINNED);\n };\n\n // Unpins once the release's `flex-basis` transitions have ended. They end later than the\n // spring's duration when a busy main thread started them late, and unpinning then would\n // snap each item the rest of the way (2026-10-17). A new press cancels the wait.\n let releases = 0;\n const unpinWhenSettled = () => {\n const release = releases;\n const running = [...pinned.keys()].flatMap((element) =>\n typeof element.getAnimations === 'function'\n ? element\n .getAnimations()\n .filter(\n (animation) =>\n animation instanceof CSSTransition &&\n animation.transitionProperty === 'flex-basis' &&\n animation.playState === 'running',\n )\n : [],\n );\n if (running.length === 0) {\n unpin();\n return;\n }\n void Promise.allSettled(running.map((animation) => animation.finished)).then(() => {\n if (release === releases) unpin();\n });\n };\n\n // Back to the rest widths, then unpinned once that has settled.\n const release = () => {\n const [first] = pinned.keys();\n if (!first) return;\n for (const [element, entry] of pinned) element.style.flexBasis = `${entry.rest}px`;\n clearTimeout(settle);\n releases++;\n settle = setTimeout(unpinWhenSettled, settleDuration(first));\n };\n\n const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');\n const update = () => {\n const items = ([...group.children] as HTMLElement[]).filter(\n (element) => !element.hasAttribute(OVERFLOW_HIDDEN),\n );\n const next =\n items.find((el) => el.hasAttribute('data-pressed') && !el.hasAttribute('data-disabled')) ??\n null;\n if (next === pressed) return;\n pressed = next;\n release();\n if (!next || items.length < 2 || reducedMotion.matches) return;\n clearTimeout(settle);\n releases++;\n\n const index = items.indexOf(next);\n const neighbours = [items[index - 1], items[index + 1]].filter(\n (el): el is HTMLElement => el !== undefined,\n );\n // Pin every item at its current width first (instantly) so the change to the target\n // widths animates. Every item is measured before any is pinned, and every item is\n // pinned, not only the ones that move: in a group sized by its content (`w-fit`) the\n // group's width, and so the other items', depends on how each item is sized.\n const sizes = items.map((el) => pinned.get(el) ?? measure(el));\n // A connected group lays its items out as a grid; pinned, it's a flex row of the same\n // widths, so their `flex-basis` can animate.\n group.setAttribute(PINNED, '');\n const entries = new Map(items.map((el, i) => [el, pin(el, sizes[i]!)]));\n\n // Compose: a middle item grows by min(ratio × width / 2, both neighbours' limits) on\n // each side; an end item by min(ratio × width, its neighbour's limit) on one side.\n const width = entries.get(next)!.rest;\n const share = neighbours.length === 2 ? (expandedRatio * width) / 2 : expandedRatio * width;\n const growthPerSide = Math.min(\n share,\n ...neighbours.map((neighbour) => entries.get(neighbour)!.limit),\n );\n let growth = 0;\n for (const neighbour of neighbours) {\n const neighbourWidth = entries.get(neighbour)!.rest;\n const give = Math.min(growthPerSide, neighbourWidth);\n neighbour.style.flexBasis = `${neighbourWidth - give}px`;\n growth += give;\n }\n next.style.flexBasis = `${width + growth}px`;\n };\n\n const observer = new MutationObserver((records) => {\n if (records.some((record) => (record.target as Element).parentElement === group)) update();\n });\n observer.observe(group, { subtree: true, attributes: true, attributeFilter: ['data-pressed'] });\n\n return () => {\n observer.disconnect();\n clearTimeout(settle);\n releases++;\n unpin();\n };\n }, [groupRef, expandedRatio]);\n}\n"],"mappings":";;;;;;;;AASA,MAAM,SAAS;;;;;;;AAkBf,SAAS,QAAQ,SAAuD;CACtE,MAAM,MAAM,QAAQ,sBAAsB,CAAC,CAAC;CAC5C,MAAM,SAAS,OAAO,WAAW,iBAAiB,OAAO,CAAC,CAAC,KAAK;CAChE,MAAM,QAAQ,OAAO,SAAS,MAAM,IAAI,SAAS;CACjD,MAAM,QAAQ,MAAM,IAAI,QAAQ,MAAM;CACtC,MAAM,UAAU,QAAQ,oBACpB,QAAQ,kBAAkB,sBAAsB,CAAC,CAAC,QAAQ,QAC1D;CACJ,OAAO;EAAE,MAAM;EAAO,OAAO,KAAK,IAAI,IAAI,QAAQ,WAAW,CAAC;CAAE;AAClE;;;;;;;;;AAUA,SAAS,gBAAgB,SAAsB,MAAc,UAAkB;CAC7E,QAAQ,MAAM,OAAO;CACrB,QAAQ,MAAM,WAAW;CACzB,iBAAsB,OAAO,CAAC,CAAC;CAC/B,IAAI,OAAO,QAAQ,kBAAkB,YAAY;CACjD,KAAK,MAAM,aAAa,QAAQ,cAAc,GAC5C,IAAI,qBAAqB,iBAAiB,UAAU,uBAAuB,cACzE,UAAU,OAAO;AAGvB;;;;;AAMA,SAAS,eAAe,SAA8B;CACpD,MAAM,QAAQ,iBAAiB,OAAO,CAAC,CACpC,iBAAiB,8CAA8C,CAAC,CAChE,KAAK;CACR,MAAM,OAAO,OAAO,WAAW,KAAK;CACpC,MAAM,KAAK,MAAM,SAAS,IAAI,IAAI,OAAO,OAAO;CAChD,QAAQ,OAAO,SAAS,EAAE,IAAI,KAAK,OAAO;AAC5C;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,UAAyC,eAAuB;CAChG,sBAAsB;EACpB,MAAM,QAAQ,SAAS;EACvB,IAAI,CAAC,SAAS,iBAAiB,GAAG;EAElC,MAAM,yBAAS,IAAI,IAAyB;EAC5C,IAAI,UAA8B;EAClC,IAAI;EAEJ,MAAM,OAAO,SAAsB,SAAkD;GACnF,MAAM,WAAW,OAAO,IAAI,OAAO;GACnC,IAAI,UAAU,OAAO;GACrB,MAAM,QAAQ;IACZ,MAAM,KAAK;IACX,OAAO,KAAK;IACZ,MAAM,QAAQ,MAAM;IACpB,UAAU,QAAQ,MAAM;GAC1B;GAGA,gBAAgB,SAAS,OAAO,MAAM,KAAK,KAAK,KAAK;GACrD,OAAO,IAAI,SAAS,KAAK;GACzB,OAAO;EACT;EAGA,MAAM,cAAc;GAClB,KAAK,MAAM,CAAC,SAAS,UAAU,QAAQ,gBAAgB,SAAS,MAAM,MAAM,MAAM,QAAQ;GAC1F,OAAO,MAAM;GACb,MAAM,gBAAgB,MAAM;EAC9B;EAKA,IAAI,WAAW;EACf,MAAM,yBAAyB;GAC7B,MAAM,UAAU;GAChB,MAAM,UAAU,CAAC,GAAG,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,YAC1C,OAAO,QAAQ,kBAAkB,aAC7B,QACG,cAAc,CAAC,CACf,QACE,cACC,qBAAqB,iBACrB,UAAU,uBAAuB,gBACjC,UAAU,cAAc,SAC5B,IACF,CAAC,CACP;GACA,IAAI,QAAQ,WAAW,GAAG;IACxB,MAAM;IACN;GACF;GACA,QAAa,WAAW,QAAQ,KAAK,cAAc,UAAU,QAAQ,CAAC,CAAC,CAAC,WAAW;IACjF,IAAI,YAAY,UAAU,MAAM;GAClC,CAAC;EACH;EAGA,MAAM,gBAAgB;GACpB,MAAM,CAAC,SAAS,OAAO,KAAK;GAC5B,IAAI,CAAC,OAAO;GACZ,KAAK,MAAM,CAAC,SAAS,UAAU,QAAQ,QAAQ,MAAM,YAAY,GAAG,MAAM,KAAK;GAC/E,aAAa,MAAM;GACnB;GACA,SAAS,WAAW,kBAAkB,eAAe,KAAK,CAAC;EAC7D;EAEA,MAAM,gBAAgB,OAAO,WAAW,kCAAkC;EAC1E,MAAM,eAAe;GACnB,MAAM,QAAS,CAAC,GAAG,MAAM,QAAQ,CAAC,CAAmB,QAClD,YAAY,CAAC,QAAQ,aAAa,eAAe,CACpD;GACA,MAAM,OACJ,MAAM,MAAM,OAAO,GAAG,aAAa,cAAc,KAAK,CAAC,GAAG,aAAa,eAAe,CAAC,KACvF;GACF,IAAI,SAAS,SAAS;GACtB,UAAU;GACV,QAAQ;GACR,IAAI,CAAC,QAAQ,MAAM,SAAS,KAAK,cAAc,SAAS;GACxD,aAAa,MAAM;GACnB;GAEA,MAAM,QAAQ,MAAM,QAAQ,IAAI;GAChC,MAAM,aAAa,CAAC,MAAM,QAAQ,IAAI,MAAM,QAAQ,EAAE,CAAC,CAAC,QACrD,OAA0B,OAAO,KAAA,CACpC;GAKA,MAAM,QAAQ,MAAM,KAAK,OAAO,OAAO,IAAI,EAAE,KAAK,QAAQ,EAAE,CAAC;GAG7D,MAAM,aAAa,QAAQ,EAAE;GAC7B,MAAM,UAAU,IAAI,IAAI,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,MAAM,EAAG,CAAC,CAAC,CAAC;GAItE,MAAM,QAAQ,QAAQ,IAAI,IAAI,CAAC,CAAE;GACjC,MAAM,QAAQ,WAAW,WAAW,IAAK,gBAAgB,QAAS,IAAI,gBAAgB;GACtF,MAAM,gBAAgB,KAAK,IACzB,OACA,GAAG,WAAW,KAAK,cAAc,QAAQ,IAAI,SAAS,CAAC,CAAE,KAAK,CAChE;GACA,IAAI,SAAS;GACb,KAAK,MAAM,aAAa,YAAY;IAClC,MAAM,iBAAiB,QAAQ,IAAI,SAAS,CAAC,CAAE;IAC/C,MAAM,OAAO,KAAK,IAAI,eAAe,cAAc;IACnD,UAAU,MAAM,YAAY,GAAG,iBAAiB,KAAK;IACrD,UAAU;GACZ;GACA,KAAK,MAAM,YAAY,GAAG,QAAQ,OAAO;EAC3C;EAEA,MAAM,WAAW,IAAI,kBAAkB,YAAY;GACjD,IAAI,QAAQ,MAAM,WAAY,OAAO,OAAmB,kBAAkB,KAAK,GAAG,OAAO;EAC3F,CAAC;EACD,SAAS,QAAQ,OAAO;GAAE,SAAS;GAAM,YAAY;GAAM,iBAAiB,CAAC,cAAc;EAAE,CAAC;EAE9F,aAAa;GACX,SAAS,WAAW;GACpB,aAAa,MAAM;GACnB;GACA,MAAM;EACR;CACF,GAAG,CAAC,UAAU,aAAa,CAAC;AAC9B"}
@@ -0,0 +1,142 @@
1
+ import { BUILT_IN_THEMES, BUILT_IN_THEME_NAMES, BuiltInThemeName, COLOR_MODES, COLOR_ROLES, CONTRAST_LEVELS, CONTRAST_LEVEL_NAMES, CUSTOM_COLORS, CUSTOM_COLOR_ROLES, ColorMode, ColorRole, ContrastLevel, CustomColorName, DEFAULT_CUSTOM_COLORS, DEFAULT_THEME, PALETTE_NAMES, PaletteName, PaletteSource, ResolvedColorMode, SCHEME_VARIANTS, SchemeVariant, ThemePalettes, ThemeSeed } from "./tokens/color.js";
2
+ import { DEFAULT_DENSITY, DENSITIES, Density, densityAttribute, isDensity } from "./tokens/density.js";
3
+ import { DEFAULT_MOTION_SCHEME, LEGACY_DURATIONS, LEGACY_EASINGS, MOTION_SCHEMES, MotionScheme, MotionSpring, SPRINGS, SPRING_FAMILIES, SPRING_SPEEDS, SPRING_TOKEN_NAMES, SpringFamily, SpringSpeed, SpringToken, springPosition, springSettleDuration, springToLinearEasing, toMotionSpring } from "./tokens/motion.js";
4
+ import { CreateThemeOptions, ThemeDefinition, createTheme } from "./theme/create-theme.js";
5
+ import { DEFAULT_STORAGE_KEY, DEFAULT_THEME_STATE, ThemeState, ThemeStorage, parseThemeState, serializeThemeState, themeAttributes } from "./theme/state.js";
6
+ import { ThemeProvider, ThemeProviderProps } from "./theme/ThemeProvider.js";
7
+ import { ThemeScope, ThemeScopeProps } from "./theme/ThemeScope.js";
8
+ import { ThemeScript, ThemeScriptProps, getThemeScriptSource } from "./theme/ThemeScript.js";
9
+ import { ThemeContextValue, useTheme, useThemeScope } from "./theme/context.js";
10
+ import { getM3Spring } from "./motion/get-m3-spring.js";
11
+ import { useM3Spring } from "./motion/use-m3-spring.js";
12
+ import { cn, twMergeConfig } from "./utils/cn.js";
13
+ import { VariantProps, tv } from "./utils/tv.js";
14
+ import { BREAKPOINTS, BREAKPOINT_NAMES, BreakpointName } from "./tokens/breakpoints.js";
15
+ import { ELEVATION_LEVELS, ELEVATION_LEVEL_NAMES, ElevationLevel, SHADOW_AMBIENT_OPACITY, SHADOW_KEY_OPACITY } from "./tokens/elevation.js";
16
+ import { CORNERS, CORNER_NAMES, CornerName } from "./tokens/shape.js";
17
+ import { FOCUS_INDICATOR, STATE_OPACITIES, StateName } from "./tokens/state.js";
18
+ import { TYPEFACES, TYPE_ROLES, TYPE_SCALE, TypeRole, TypeStyle, Typeface } from "./tokens/typography.js";
19
+ import { ZIndexName, Z_INDEX } from "./tokens/z-index.js";
20
+ import { ComponentToken, ComponentTokenScope, ComponentTokenSet, PublicComponentToken, TokenPaints, TokenValue, color, colorAt, componentTokenList, componentTokensCss, corner, defineComponentTokens, elevation, isComponentTokenSet, px, spring, typeTokens, typescale } from "./tokens/component.js";
21
+ import { ToggleGroupStateContext } from "./primitives/ButtonBase.js";
22
+ import { ButtonShape, ButtonSize, ButtonStyleProps, ButtonVariant, buttonStyles, buttonVariantClasses } from "./components/button/button-styles.js";
23
+ import { ButtonLabels } from "./components/button/button-pending.js";
24
+ import { Button, ButtonActionProps, ButtonClassNames, ButtonLinkProps, ButtonProps, ButtonToggleProps } from "./components/button/Button.js";
25
+ import { IconButtonStyleProps, IconButtonVariant, IconButtonWidth, iconButtonStyles } from "./components/icon-button/icon-button-styles.js";
26
+ import { ButtonContext, ButtonContextValue } from "./components/button/ButtonContext.js";
27
+ import { buttonTokenSet } from "./components/button/button-tokens.js";
28
+ import { IconTransition } from "./primitives/icon-faces-styles.js";
29
+ import { IconButton, IconButtonActionProps, IconButtonClassNames, IconButtonLinkProps, IconButtonProps, IconButtonToggleProps } from "./components/icon-button/IconButton.js";
30
+ import { iconButtonTokenSet } from "./components/icon-button/icon-button-tokens.js";
31
+ import { buttonGroupStyles } from "./composites/button-group/button-group-styles.js";
32
+ import { ButtonGroup, ButtonGroupClassNames, ButtonGroupLabels, ButtonGroupProps, ButtonGroupSelectionMode, ButtonGroupVariant } from "./composites/button-group/ButtonGroup.js";
33
+ import { ExtendedFabSize, ExtendedFabStyleProps, FabColor, FabElevation, FabSize, FabStyleProps, extendedFabStyles, fabStyles } from "./components/fab/fab-styles.js";
34
+ import { ExtendedFab, ExtendedFabClassNames, ExtendedFabProps, Fab, FabClassNames, FabProps } from "./components/fab/Fab.js";
35
+ import { extendedFabTokenSet, fabTokenSet } from "./components/fab/fab-tokens.js";
36
+ import { CircularProgressIndicator, CircularProgressIndicatorClassNames, CircularProgressIndicatorProps, LinearProgressIndicator, LinearProgressIndicatorClassNames, LinearProgressIndicatorProps } from "./components/progress/ProgressIndicator.js";
37
+ import { CircularProgressStyleProps, LinearProgressStyleProps, circularProgressStyles, linearProgressStyles } from "./components/progress/progress-styles.js";
38
+ import { progressIndicatorTokenSet } from "./components/progress/progress-tokens.js";
39
+ import { TooltipPlacement, TooltipPlacementContext } from "./components/tooltip/tooltip-placement.js";
40
+ import { TooltipTrigger, TooltipTriggerProps } from "./components/tooltip/tooltip-trigger.js";
41
+ import { RichTooltip, RichTooltipClassNames, RichTooltipProps, RichTooltipTrigger, RichTooltipTriggerProps, Tooltip, TooltipClassNames, TooltipProps } from "./components/tooltip/Tooltip.js";
42
+ import { RichTooltipStyleProps, richTooltipStyles, tooltipStyles } from "./components/tooltip/tooltip-styles.js";
43
+ import { plainTooltipTokenSet, richTooltipTokenSet } from "./components/tooltip/tooltip-tokens.js";
44
+ import { ShowSnackbarOptions, SnackbarData, SnackbarDuration, SnackbarHostState, SnackbarResult, SnackbarVisuals } from "./components/snackbar/snackbar-state.js";
45
+ import { Snackbar, SnackbarClassNames, SnackbarHost, SnackbarHostProps, SnackbarLabels, SnackbarProps, useSnackbarHostState } from "./components/snackbar/Snackbar.js";
46
+ import { SnackbarStyleProps, snackbarHostStyles, snackbarStyles } from "./components/snackbar/snackbar-styles.js";
47
+ import { snackbarTokenSet } from "./components/snackbar/snackbar-tokens.js";
48
+ import { Badge, BadgeClassNames, BadgeLabels, BadgeProps, BadgedBox, BadgedBoxClassNames, BadgedBoxProps } from "./components/badge/Badge.js";
49
+ import { NavItemLayout, navItemStyles } from "./components/navigation/nav-item-styles.js";
50
+ import { NavItemClassNames } from "./components/navigation/NavItem.js";
51
+ import { NavigationRail, NavigationRailClassNames, NavigationRailItem, NavigationRailItemProps, NavigationRailProps } from "./components/navigation/NavigationRail.js";
52
+ import { NavigationBarArrangement, NavigationBarStyleProps, navigationBarStyles, navigationRailStyles } from "./components/navigation/navigation-styles.js";
53
+ import { NavigationBar, NavigationBarClassNames, NavigationBarItem, NavigationBarItemProps, NavigationBarProps } from "./components/navigation/NavigationBar.js";
54
+ import { navBarTokenSet, navRailTokenSet } from "./components/navigation/navigation-tokens.js";
55
+ import { TabsStyleProps, TabsVariant, tabsStyles } from "./components/tabs/tabs-styles.js";
56
+ import { Tab, TabProps, Tabs, TabsClassNames, TabsProps } from "./components/tabs/Tabs.js";
57
+ import { tabsTokenSet } from "./components/tabs/tabs-tokens.js";
58
+ import { ChipOutline, ChipSetLayout, ChipStyleProps, chipSetStyles, chipStyles } from "./components/chip/chip-styles.js";
59
+ import { AssistChip, AssistChipProps, ChipClassNames, ChipLabels, FilterChip, FilterChipClassNames, FilterChipProps, InputChip, InputChipClassNames, InputChipProps, SuggestionChip, SuggestionChipProps } from "./components/chip/Chip.js";
60
+ import { ChipSet, ChipSetClassNames, ChipSetProps } from "./components/chip/ChipSet.js";
61
+ import { assistChipTokenSet, filterChipTokenSet, inputChipTokenSet, suggestionChipTokenSet } from "./components/chip/chip-tokens.js";
62
+ import { MenuLayout, MenuStyleProps, MenuVariant, menuStyles } from "./components/menu/menu-styles.js";
63
+ import { ContextMenuTrigger, ContextMenuTriggerProps, MenuTrigger, MenuTriggerProps } from "./components/menu/menu-trigger.js";
64
+ import { Menu, MenuClassNames, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuKey as Key, MenuLabels, MenuPlacement, MenuPresentation, MenuProps, SubmenuTrigger, SubmenuTriggerProps } from "./components/menu/Menu.js";
65
+ import { SplitButtonSize, SplitButtonStyleProps, SplitButtonVariant, splitButtonStyles } from "./components/split-button/split-button-styles.js";
66
+ import { SplitButton, SplitButtonClassNames, SplitButtonLabels, SplitButtonProps } from "./components/split-button/SplitButton.js";
67
+ import { splitButtonTokenSet } from "./components/split-button/split-button-tokens.js";
68
+ import { FabMenuColor, FabMenuSize, FabMenuStyleProps, fabMenuStyles } from "./components/fab-menu/fab-menu-styles.js";
69
+ import { FabMenu, FabMenuClassNames, FabMenuItem, FabMenuItemClassNames, FabMenuItemProps, FabMenuPresentation, FabMenuProps } from "./components/fab-menu/FabMenu.js";
70
+ import { fabMenuTokenSet } from "./components/fab-menu/fab-menu-tokens.js";
71
+ import { LoadingIndicatorStyleProps, LoadingIndicatorVariant, loadingIndicatorStyles } from "./components/loading-indicator/loading-indicator-styles.js";
72
+ import { LoadingIndicator, LoadingIndicatorClassNames, LoadingIndicatorProps } from "./components/loading-indicator/LoadingIndicator.js";
73
+ import { loadingIndicatorTokenSet } from "./components/loading-indicator/loading-indicator-tokens.js";
74
+ import { PullToRefresh, PullToRefreshClassNames, PullToRefreshLabels, PullToRefreshProps } from "./components/pull-to-refresh/PullToRefresh.js";
75
+ import { pullToRefreshStyles } from "./components/pull-to-refresh/pull-to-refresh-styles.js";
76
+ import { CardStyleProps, CardVariant, cardStyles } from "./components/card/card-styles.js";
77
+ import { Card, CardActionProps, CardLinkProps, CardProps, CardStaticProps } from "./components/card/Card.js";
78
+ import { cardTokenSet } from "./components/card/card-tokens.js";
79
+ import { TextFieldStyleProps, TextFieldVariant, textFieldStyles } from "./components/text-field/text-field-styles.js";
80
+ import { TextField, TextFieldClassNames, TextFieldLabels, TextFieldProps } from "./components/text-field/TextField.js";
81
+ import { AutocompleteItem, AutocompleteSection, OptionItemProps, OptionPopover, OptionSectionProps, SelectItem, SelectSection } from "./components/select/option-list.js";
82
+ import { Select, SelectClassNames, SelectKey, SelectLabels, SelectPresentation, SelectProps, SelectedOption } from "./components/select/Select.js";
83
+ import { Autocomplete, AutocompleteClassNames, AutocompleteKey, AutocompleteLabels, AutocompleteProps } from "./components/autocomplete/Autocomplete.js";
84
+ import { matchesSearch, normalizeSearch } from "./utils/search.js";
85
+ import { textFieldTokenSet } from "./components/text-field/text-field-tokens.js";
86
+ import { Checkbox, CheckboxClassNames, CheckboxProps } from "./components/checkbox/Checkbox.js";
87
+ import { CheckboxStyleProps, checkboxStyles } from "./components/checkbox/checkbox-styles.js";
88
+ import { checkboxTokenSet } from "./components/checkbox/checkbox-tokens.js";
89
+ import { Radio, RadioClassNames, RadioGroup, RadioGroupClassNames, RadioGroupProps, RadioProps } from "./components/radio/RadioGroup.js";
90
+ import { RadioGroupStyleProps, RadioStyleProps, radioGroupStyles, radioStyles } from "./components/radio/radio-styles.js";
91
+ import { radioTokenSet } from "./components/radio/radio-tokens.js";
92
+ import { Switch, SwitchClassNames, SwitchProps } from "./components/switch/Switch.js";
93
+ import { SwitchStyleProps, switchStyles } from "./components/switch/switch-styles.js";
94
+ import { switchTokenSet } from "./components/switch/switch-tokens.js";
95
+ import { ClosedBy } from "./utils/closed-by.js";
96
+ import { Dialog, DialogActions, DialogActionsProps, DialogClassNames, DialogContent, DialogContentProps, DialogFullScreen, DialogHeader, DialogHeaderClassNames, DialogHeaderLabels, DialogHeaderProps, DialogOrigin, DialogPlacement, DialogProps, DialogRenderProps, DialogTitle, DialogTitleProps, DialogTransition, DialogTrigger, DialogTriggerProps } from "./components/dialog/Dialog.js";
97
+ import { DialogStyleProps, dialogStyles } from "./components/dialog/dialog-styles.js";
98
+ import { dialogTokenSet } from "./components/dialog/dialog-tokens.js";
99
+ import { menuTokenSet } from "./components/menu/menu-tokens.js";
100
+ import { DockedToolbarArrangement, DockedToolbarColor, DockedToolbarStyleProps, FloatingToolbarColor, FloatingToolbarStyleProps, ToolbarExitEdge, ToolbarOrientation, dockedToolbarStyles, floatingToolbarStyles, toolbarFabStyles } from "./components/toolbar/toolbar-styles.js";
101
+ import { DockedToolbar, DockedToolbarClassNames, DockedToolbarProps, FloatingToolbar, FloatingToolbarClassNames, FloatingToolbarProps, ToolbarFab, ToolbarFabClassNames, ToolbarFabProps } from "./components/toolbar/Toolbar.js";
102
+ import { dockedToolbarTokenSet, floatingToolbarTokenSet, toolbarFabTokenSet } from "./components/toolbar/toolbar-tokens.js";
103
+ import { ToolbarScrollExitOptions, ToolbarScrollExpansionOptions, useToolbarScrollExit, useToolbarScrollExpansion } from "./components/toolbar/use-toolbar-scroll-expansion.js";
104
+ import { TopAppBarStyleProps, TopAppBarTitleAlign, TopAppBarVariant, topAppBarStyles } from "./components/app-bar/app-bar-styles.js";
105
+ import { TopAppBarScrollBehavior } from "./components/app-bar/use-app-bar-scroll.js";
106
+ import { TopAppBar, TopAppBarClassNames, TopAppBarProps, TopAppBarScrolledColor } from "./components/app-bar/TopAppBar.js";
107
+ import { appBarTokenSet } from "./components/app-bar/app-bar-tokens.js";
108
+ import { SearchBar, SearchBarClassNames, SearchBarIconState, SearchBarInputProps, SearchBarProps, SearchBarView } from "./components/search/SearchBar.js";
109
+ import { SearchAppBar, SearchAppBarClassNames, SearchAppBarProps } from "./components/search/SearchAppBar.js";
110
+ import { SearchAppBarStyleProps, SearchBarStyleProps, searchAppBarStyles, searchBarStyles } from "./components/search/search-styles.js";
111
+ import { searchBarTokenSet, searchViewTokenSet } from "./components/search/search-tokens.js";
112
+ import { DividerInset, DividerOrientation, DividerStyleProps, dividerStyles, labeledDividerStyles } from "./components/divider/divider-styles.js";
113
+ import { Divider, DividerProps, LabeledDivider, LabeledDividerClassNames, LabeledDividerProps } from "./components/divider/Divider.js";
114
+ import { dividerTokenSet } from "./components/divider/divider-tokens.js";
115
+ import { BadgeStyleProps, badgeStyles, badgedBoxStyles } from "./components/badge/badge-styles.js";
116
+ import { badgeTokenSet } from "./components/badge/badge-tokens.js";
117
+ import { ListDividers, ListStyleProps, ListVariant, listMediaStyles, listStyles } from "./components/list/list-styles.js";
118
+ import { LineLimit, List, ListClassNames, ListItem, ListItemProps, ListProps, ListSection, ListSectionProps } from "./components/list/List.js";
119
+ import { ListItemAvatar, ListItemAvatarProps, ListItemImage, ListItemImageProps, ListItemVideo, ListItemVideoProps } from "./components/list/ListMedia.js";
120
+ import { listTokenSet } from "./components/list/list-tokens.js";
121
+ import { SliderOrientation, SliderSize, SliderStyleProps, sliderStyles } from "./components/slider/slider-styles.js";
122
+ import { RangeSlider, RangeSliderLabels, RangeSliderProps, Slider, SliderClassNames, SliderProps } from "./components/slider/Slider.js";
123
+ import { sliderTokenSet } from "./components/slider/slider-tokens.js";
124
+ import { SheetTrigger, SheetTriggerProps } from "./components/sheet/SheetTrigger.js";
125
+ import { BottomSheet, BottomSheetClassNames, BottomSheetDetent, BottomSheetLabels, BottomSheetProps } from "./components/sheet/BottomSheet.js";
126
+ import { SideSheet, SideSheetClassNames, SideSheetLabels, SideSheetProps } from "./components/sheet/SideSheet.js";
127
+ import { BottomSheetStyleProps, SideSheetStyleProps, bottomSheetStyles, sideSheetStyles } from "./components/sheet/sheet-styles.js";
128
+ import { bottomSheetTokenSet, sideSheetTokenSet } from "./components/sheet/sheet-tokens.js";
129
+ import { Carousel, CarouselClassNames, CarouselProps } from "./components/carousel/Carousel.js";
130
+ import { CarouselStyleProps, carouselStyles } from "./components/carousel/carousel-styles.js";
131
+ import { carouselTokenSet } from "./components/carousel/carousel-tokens.js";
132
+ import { DateInputLabels } from "./components/date-picker/DateInput.js";
133
+ import { DatePicker, DatePickerClassNames, DatePickerLabels, DatePickerProps, DateRange, DateRangePicker, DateRangePickerClassNames, DateRangePickerProps } from "./components/date-picker/DatePicker.js";
134
+ import { DatePickerStyleProps, datePickerStyles, dockedDatePickerStyles } from "./components/date-picker/date-picker-styles.js";
135
+ import { datePickerTokenSet } from "./components/date-picker/date-picker-tokens.js";
136
+ import { DateField, DateFieldClassNames, DateFieldLabels, DateFieldProps } from "./components/date-picker/DateField.js";
137
+ import { PickerDialog, PickerDialogClassNames, PickerDialogLabels, PickerDialogProps } from "./components/date-picker/PickerDialog.js";
138
+ import { pickerDialogStyles } from "./components/date-picker/picker-dialog-styles.js";
139
+ import { TimePicker, TimePickerClassNames, TimePickerLabels, TimePickerMode, TimePickerModeToggle, TimePickerModeToggleProps, TimePickerProps, useTimePickerRoom } from "./components/time-picker/TimePicker.js";
140
+ import { TimePickerStyleProps, timePickerStyles } from "./components/time-picker/time-picker-styles.js";
141
+ import { timePickerTokenSet } from "./components/time-picker/time-picker-tokens.js";
142
+ export { AssistChip, type AssistChipProps, Autocomplete, type AutocompleteClassNames, AutocompleteItem, type AutocompleteKey, type AutocompleteLabels, type AutocompleteProps, AutocompleteSection, BREAKPOINTS, BREAKPOINT_NAMES, BUILT_IN_THEMES, BUILT_IN_THEME_NAMES, Badge, type BadgeClassNames, type BadgeLabels, type BadgeProps, type BadgeStyleProps, BadgedBox, type BadgedBoxClassNames, type BadgedBoxProps, BottomSheet, type BottomSheetClassNames, type BottomSheetDetent, type BottomSheetLabels, type BottomSheetProps, type BottomSheetStyleProps, BreakpointName, BuiltInThemeName, Button, type ButtonActionProps, type ButtonClassNames, ButtonContext, type ButtonContextValue, ButtonGroup, type ButtonGroupClassNames, type ButtonGroupLabels, type ButtonGroupProps, type ButtonGroupSelectionMode, type ButtonGroupVariant, type ButtonLabels, type ButtonLinkProps, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonStyleProps, type ButtonToggleProps, type ButtonVariant, COLOR_MODES, COLOR_ROLES, CONTRAST_LEVELS, CONTRAST_LEVEL_NAMES, CORNERS, CORNER_NAMES, CUSTOM_COLORS, CUSTOM_COLOR_ROLES, Card, type CardActionProps, type CardLinkProps, type CardProps, type CardStaticProps, type CardStyleProps, type CardVariant, Carousel, type CarouselClassNames, type CarouselProps, type CarouselStyleProps, Checkbox, type CheckboxClassNames, type CheckboxProps, type CheckboxStyleProps, type ChipClassNames, type ChipLabels, type ChipOutline, ChipSet, type ChipSetClassNames, type ChipSetLayout, type ChipSetProps, type ChipStyleProps, CircularProgressIndicator, type CircularProgressIndicatorClassNames, type CircularProgressIndicatorProps, type CircularProgressStyleProps, type ClosedBy, ColorMode, ColorRole, type ComponentToken, type ComponentTokenScope, type ComponentTokenSet, ContextMenuTrigger, type ContextMenuTriggerProps, ContrastLevel, CornerName, type CreateThemeOptions, CustomColorName, DEFAULT_CUSTOM_COLORS, DEFAULT_DENSITY, DEFAULT_MOTION_SCHEME, DEFAULT_STORAGE_KEY, DEFAULT_THEME, DEFAULT_THEME_STATE, DENSITIES, DateField, type DateFieldClassNames, type DateFieldLabels, type DateFieldProps, type DateInputLabels, DatePicker, type DatePickerClassNames, type DatePickerLabels, type DatePickerProps, type DatePickerStyleProps, type DateRange, DateRangePicker, type DateRangePickerClassNames, type DateRangePickerProps, Density, Dialog, DialogActions, type DialogActionsProps, type DialogClassNames, DialogContent, type DialogContentProps, type DialogFullScreen, DialogHeader, type DialogHeaderClassNames, type DialogHeaderLabels, type DialogHeaderProps, type DialogOrigin, type DialogPlacement, type DialogProps, type DialogRenderProps, type DialogStyleProps, DialogTitle, type DialogTitleProps, type DialogTransition, DialogTrigger, type DialogTriggerProps, Divider, type DividerInset, type DividerOrientation, type DividerProps, type DividerStyleProps, DockedToolbar, type DockedToolbarArrangement, type DockedToolbarClassNames, type DockedToolbarColor, type DockedToolbarProps, type DockedToolbarStyleProps, ELEVATION_LEVELS, ELEVATION_LEVEL_NAMES, ElevationLevel, ExtendedFab, type ExtendedFabClassNames, type ExtendedFabProps, type ExtendedFabSize, type ExtendedFabStyleProps, FOCUS_INDICATOR, Fab, type FabClassNames, type FabColor, type FabElevation, FabMenu, type FabMenuClassNames, type FabMenuColor, FabMenuItem, type FabMenuItemClassNames, type FabMenuItemProps, type FabMenuPresentation, type FabMenuProps, type FabMenuSize, type FabMenuStyleProps, type FabProps, type FabSize, type FabStyleProps, FilterChip, type FilterChipClassNames, type FilterChipProps, FloatingToolbar, type FloatingToolbarClassNames, type FloatingToolbarColor, type FloatingToolbarProps, type FloatingToolbarStyleProps, IconButton, type IconButtonActionProps, type IconButtonClassNames, type IconButtonLinkProps, type IconButtonProps, type IconButtonStyleProps, type IconButtonToggleProps, type IconButtonVariant, type IconButtonWidth, type IconTransition, InputChip, type InputChipClassNames, type InputChipProps, LEGACY_DURATIONS, LEGACY_EASINGS, LabeledDivider, type LabeledDividerClassNames, type LabeledDividerProps, type LineLimit, LinearProgressIndicator, type LinearProgressIndicatorClassNames, type LinearProgressIndicatorProps, type LinearProgressStyleProps, List, type ListClassNames, type ListDividers, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemImage, type ListItemImageProps, type ListItemProps, ListItemVideo, type ListItemVideoProps, type ListProps, ListSection, type ListSectionProps, type ListStyleProps, type ListVariant, LoadingIndicator, type LoadingIndicatorClassNames, type LoadingIndicatorProps, type LoadingIndicatorStyleProps, type LoadingIndicatorVariant, MOTION_SCHEMES, Menu, type MenuClassNames, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemProps, type Key as MenuKey, type MenuLabels, type MenuLayout, type MenuPlacement, type MenuPresentation, type MenuProps, type MenuStyleProps, MenuTrigger, type MenuTriggerProps, type MenuVariant, MotionScheme, MotionSpring, type NavItemClassNames, type NavItemLayout, NavigationBar, type NavigationBarArrangement, type NavigationBarClassNames, NavigationBarItem, type NavigationBarItemProps, type NavigationBarProps, type NavigationBarStyleProps, NavigationRail, type NavigationRailClassNames, NavigationRailItem, type NavigationRailItemProps, type NavigationRailProps, type OptionItemProps, OptionPopover, type OptionSectionProps, PALETTE_NAMES, PaletteName, PaletteSource, PickerDialog, type PickerDialogClassNames, type PickerDialogLabels, type PickerDialogProps, type PublicComponentToken, PullToRefresh, type PullToRefreshClassNames, type PullToRefreshLabels, type PullToRefreshProps, Radio, type RadioClassNames, RadioGroup, type RadioGroupClassNames, type RadioGroupProps, type RadioGroupStyleProps, type RadioProps, type RadioStyleProps, RangeSlider, type RangeSliderLabels, type RangeSliderProps, ResolvedColorMode, RichTooltip, type RichTooltipClassNames, type RichTooltipProps, type RichTooltipStyleProps, RichTooltipTrigger, type RichTooltipTriggerProps, SCHEME_VARIANTS, SHADOW_AMBIENT_OPACITY, SHADOW_KEY_OPACITY, SPRINGS, SPRING_FAMILIES, SPRING_SPEEDS, SPRING_TOKEN_NAMES, STATE_OPACITIES, SchemeVariant, SearchAppBar, type SearchAppBarClassNames, type SearchAppBarProps, type SearchAppBarStyleProps, SearchBar, type SearchBarClassNames, type SearchBarIconState, type SearchBarInputProps, type SearchBarProps, type SearchBarStyleProps, type SearchBarView, Select, type SelectClassNames, SelectItem, type SelectKey, type SelectLabels, type SelectPresentation, type SelectProps, SelectSection, type SelectedOption, SheetTrigger, type SheetTriggerProps, type ShowSnackbarOptions, SideSheet, type SideSheetClassNames, type SideSheetLabels, type SideSheetProps, type SideSheetStyleProps, Slider, type SliderClassNames, type SliderOrientation, type SliderProps, type SliderSize, type SliderStyleProps, Snackbar, type SnackbarClassNames, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, SnackbarHostState, type SnackbarLabels, type SnackbarProps, type SnackbarResult, type SnackbarStyleProps, type SnackbarVisuals, SplitButton, type SplitButtonClassNames, type SplitButtonLabels, type SplitButtonProps, type SplitButtonSize, type SplitButtonStyleProps, type SplitButtonVariant, SpringFamily, SpringSpeed, SpringToken, StateName, SubmenuTrigger, type SubmenuTriggerProps, SuggestionChip, type SuggestionChipProps, Switch, type SwitchClassNames, type SwitchProps, type SwitchStyleProps, TYPEFACES, TYPE_ROLES, TYPE_SCALE, Tab, type TabProps, Tabs, type TabsClassNames, type TabsProps, type TabsStyleProps, type TabsVariant, TextField, type TextFieldClassNames, type TextFieldLabels, type TextFieldProps, type TextFieldStyleProps, type TextFieldVariant, type ThemeContextValue, type ThemeDefinition, ThemePalettes, ThemeProvider, type ThemeProviderProps, ThemeScope, type ThemeScopeProps, ThemeScript, type ThemeScriptProps, ThemeSeed, type ThemeState, type ThemeStorage, TimePicker, type TimePickerClassNames, type TimePickerLabels, type TimePickerMode, TimePickerModeToggle, type TimePickerModeToggleProps, type TimePickerProps, type TimePickerStyleProps, ToggleGroupStateContext, type TokenPaints, type TokenValue, type ToolbarExitEdge, ToolbarFab, type ToolbarFabClassNames, type ToolbarFabProps, type ToolbarOrientation, type ToolbarScrollExitOptions, type ToolbarScrollExpansionOptions, Tooltip, type TooltipClassNames, type TooltipPlacement, TooltipPlacementContext, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, TopAppBar, type TopAppBarClassNames, type TopAppBarProps, type TopAppBarScrollBehavior, type TopAppBarScrolledColor, type TopAppBarStyleProps, type TopAppBarTitleAlign, type TopAppBarVariant, TypeRole, TypeStyle, Typeface, type VariantProps, ZIndexName, Z_INDEX, appBarTokenSet, assistChipTokenSet, badgeStyles, badgeTokenSet, badgedBoxStyles, bottomSheetStyles, bottomSheetTokenSet, buttonGroupStyles, buttonStyles, buttonTokenSet, buttonVariantClasses, cardStyles, cardTokenSet, carouselStyles, carouselTokenSet, checkboxStyles, checkboxTokenSet, chipSetStyles, chipStyles, circularProgressStyles, cn, color, colorAt, componentTokenList, componentTokensCss, corner, createTheme, datePickerStyles, datePickerTokenSet, defineComponentTokens, densityAttribute, dialogStyles, dialogTokenSet, dividerStyles, dividerTokenSet, dockedDatePickerStyles, dockedToolbarStyles, dockedToolbarTokenSet, elevation, extendedFabStyles, extendedFabTokenSet, fabMenuStyles, fabMenuTokenSet, fabStyles, fabTokenSet, filterChipTokenSet, floatingToolbarStyles, floatingToolbarTokenSet, getM3Spring, getThemeScriptSource, iconButtonStyles, iconButtonTokenSet, inputChipTokenSet, isComponentTokenSet, isDensity, labeledDividerStyles, linearProgressStyles, listMediaStyles, listStyles, listTokenSet, loadingIndicatorStyles, loadingIndicatorTokenSet, matchesSearch, menuStyles, menuTokenSet, navBarTokenSet, navItemStyles, navRailTokenSet, navigationBarStyles, navigationRailStyles, normalizeSearch, parseThemeState, pickerDialogStyles, plainTooltipTokenSet, progressIndicatorTokenSet, pullToRefreshStyles, px, radioGroupStyles, radioStyles, radioTokenSet, richTooltipStyles, richTooltipTokenSet, searchAppBarStyles, searchBarStyles, searchBarTokenSet, searchViewTokenSet, serializeThemeState, sideSheetStyles, sideSheetTokenSet, sliderStyles, sliderTokenSet, snackbarHostStyles, snackbarStyles, snackbarTokenSet, splitButtonStyles, splitButtonTokenSet, spring, springPosition, springSettleDuration, springToLinearEasing, suggestionChipTokenSet, switchStyles, switchTokenSet, tabsStyles, tabsTokenSet, textFieldStyles, textFieldTokenSet, themeAttributes, timePickerStyles, timePickerTokenSet, toMotionSpring, toolbarFabStyles, toolbarFabTokenSet, tooltipStyles, topAppBarStyles, tv, twMergeConfig, typeTokens, typescale, useM3Spring, useSnackbarHostState, useTheme, useThemeScope, useTimePickerRoom, useToolbarScrollExit, useToolbarScrollExpansion };
package/dist/index.js ADDED
@@ -0,0 +1,136 @@
1
+ import { BUILT_IN_THEMES, BUILT_IN_THEME_NAMES, COLOR_MODES, COLOR_ROLES, CONTRAST_LEVELS, CONTRAST_LEVEL_NAMES, CUSTOM_COLORS, CUSTOM_COLOR_ROLES, DEFAULT_CUSTOM_COLORS, DEFAULT_THEME, PALETTE_NAMES, SCHEME_VARIANTS } from "./tokens/color.js";
2
+ import { DEFAULT_DENSITY, DENSITIES, densityAttribute, isDensity } from "./tokens/density.js";
3
+ import { DEFAULT_MOTION_SCHEME, LEGACY_DURATIONS, LEGACY_EASINGS, MOTION_SCHEMES, SPRINGS, SPRING_FAMILIES, SPRING_SPEEDS, SPRING_TOKEN_NAMES, springPosition, springSettleDuration, springToLinearEasing, toMotionSpring } from "./tokens/motion.js";
4
+ import { DEFAULT_STORAGE_KEY, DEFAULT_THEME_STATE, parseThemeState, serializeThemeState, themeAttributes } from "./theme/state.js";
5
+ import { useTheme, useThemeScope } from "./theme/context.js";
6
+ import { ThemeProvider } from "./theme/ThemeProvider.js";
7
+ import { BREAKPOINTS, BREAKPOINT_NAMES } from "./tokens/breakpoints.js";
8
+ import { ELEVATION_LEVELS, ELEVATION_LEVEL_NAMES, SHADOW_AMBIENT_OPACITY, SHADOW_KEY_OPACITY } from "./tokens/elevation.js";
9
+ import { CORNERS, CORNER_NAMES } from "./tokens/shape.js";
10
+ import { FOCUS_INDICATOR, STATE_OPACITIES } from "./tokens/state.js";
11
+ import { TYPEFACES, TYPE_ROLES, TYPE_SCALE } from "./tokens/typography.js";
12
+ import { Z_INDEX } from "./tokens/z-index.js";
13
+ import { cn, twMergeConfig } from "./utils/cn.js";
14
+ import { ThemeScope } from "./theme/ThemeScope.js";
15
+ import { ThemeScript, getThemeScriptSource } from "./theme/ThemeScript.js";
16
+ import { createTheme } from "./theme/create-theme.js";
17
+ import { getM3Spring } from "./motion/get-m3-spring.js";
18
+ import { useM3Spring } from "./motion/use-m3-spring.js";
19
+ import { tv } from "./utils/tv.js";
20
+ import { color, colorAt, componentTokenList, componentTokensCss, corner, defineComponentTokens, elevation, isComponentTokenSet, px, spring, typeTokens, typescale } from "./tokens/component.js";
21
+ import { ToggleGroupStateContext } from "./primitives/ButtonBase.js";
22
+ import { buttonStyles, buttonVariantClasses } from "./components/button/button-styles.js";
23
+ import { ButtonContext } from "./components/button/ButtonContext.js";
24
+ import { Button } from "./components/button/Button.js";
25
+ import { buttonTokenSet } from "./components/button/button-tokens.js";
26
+ import { TooltipPlacementContext } from "./components/tooltip/tooltip-placement.js";
27
+ import { TooltipTrigger } from "./components/tooltip/tooltip-trigger.js";
28
+ import { iconButtonStyles } from "./components/icon-button/icon-button-styles.js";
29
+ import { IconButton } from "./components/icon-button/IconButton.js";
30
+ import { iconButtonTokenSet } from "./components/icon-button/icon-button-tokens.js";
31
+ import { buttonGroupStyles } from "./composites/button-group/button-group-styles.js";
32
+ import { ContextMenuTrigger, MenuTrigger } from "./components/menu/menu-trigger.js";
33
+ import { ButtonGroup } from "./composites/button-group/ButtonGroup.js";
34
+ import { extendedFabStyles, fabStyles } from "./components/fab/fab-styles.js";
35
+ import { ExtendedFab, Fab } from "./components/fab/Fab.js";
36
+ import { extendedFabTokenSet, fabTokenSet } from "./components/fab/fab-tokens.js";
37
+ import { circularProgressStyles, linearProgressStyles } from "./components/progress/progress-styles.js";
38
+ import { CircularProgressIndicator, LinearProgressIndicator } from "./components/progress/ProgressIndicator.js";
39
+ import { progressIndicatorTokenSet } from "./components/progress/progress-tokens.js";
40
+ import { richTooltipStyles, tooltipStyles } from "./components/tooltip/tooltip-styles.js";
41
+ import { RichTooltip, RichTooltipTrigger, Tooltip } from "./components/tooltip/Tooltip.js";
42
+ import { plainTooltipTokenSet, richTooltipTokenSet } from "./components/tooltip/tooltip-tokens.js";
43
+ import { SnackbarHostState } from "./components/snackbar/snackbar-state.js";
44
+ import { snackbarHostStyles, snackbarStyles } from "./components/snackbar/snackbar-styles.js";
45
+ import { Snackbar, SnackbarHost, useSnackbarHostState } from "./components/snackbar/Snackbar.js";
46
+ import { snackbarTokenSet } from "./components/snackbar/snackbar-tokens.js";
47
+ import { badgeStyles, badgedBoxStyles } from "./components/badge/badge-styles.js";
48
+ import { Badge, BadgedBox } from "./components/badge/Badge.js";
49
+ import { navItemStyles } from "./components/navigation/nav-item-styles.js";
50
+ import { navigationBarStyles, navigationRailStyles } from "./components/navigation/navigation-styles.js";
51
+ import { NavigationRail, NavigationRailItem } from "./components/navigation/NavigationRail.js";
52
+ import { NavigationBar, NavigationBarItem } from "./components/navigation/NavigationBar.js";
53
+ import { navBarTokenSet, navRailTokenSet } from "./components/navigation/navigation-tokens.js";
54
+ import { tabsStyles } from "./components/tabs/tabs-styles.js";
55
+ import { Tab, Tabs } from "./components/tabs/Tabs.js";
56
+ import { tabsTokenSet } from "./components/tabs/tabs-tokens.js";
57
+ import { chipSetStyles, chipStyles } from "./components/chip/chip-styles.js";
58
+ import { AssistChip, FilterChip, InputChip, SuggestionChip } from "./components/chip/Chip.js";
59
+ import { ChipSet } from "./components/chip/ChipSet.js";
60
+ import { assistChipTokenSet, filterChipTokenSet, inputChipTokenSet, suggestionChipTokenSet } from "./components/chip/chip-tokens.js";
61
+ import { splitButtonStyles } from "./components/split-button/split-button-styles.js";
62
+ import { SplitButton } from "./components/split-button/SplitButton.js";
63
+ import { splitButtonTokenSet } from "./components/split-button/split-button-tokens.js";
64
+ import { dividerStyles, labeledDividerStyles } from "./components/divider/divider-styles.js";
65
+ import { Divider, LabeledDivider } from "./components/divider/Divider.js";
66
+ import { menuStyles } from "./components/menu/menu-styles.js";
67
+ import { Menu, MenuGroup, MenuItem, SubmenuTrigger } from "./components/menu/Menu.js";
68
+ import { fabMenuStyles } from "./components/fab-menu/fab-menu-styles.js";
69
+ import { FabMenu, FabMenuItem } from "./components/fab-menu/FabMenu.js";
70
+ import { fabMenuTokenSet } from "./components/fab-menu/fab-menu-tokens.js";
71
+ import { loadingIndicatorStyles } from "./components/loading-indicator/loading-indicator-styles.js";
72
+ import { LoadingIndicator } from "./components/loading-indicator/LoadingIndicator.js";
73
+ import { loadingIndicatorTokenSet } from "./components/loading-indicator/loading-indicator-tokens.js";
74
+ import { pullToRefreshStyles } from "./components/pull-to-refresh/pull-to-refresh-styles.js";
75
+ import { PullToRefresh } from "./components/pull-to-refresh/PullToRefresh.js";
76
+ import { cardStyles } from "./components/card/card-styles.js";
77
+ import { Card } from "./components/card/Card.js";
78
+ import { cardTokenSet } from "./components/card/card-tokens.js";
79
+ import { textFieldStyles } from "./components/text-field/text-field-styles.js";
80
+ import { TextField } from "./components/text-field/TextField.js";
81
+ import { matchesSearch, normalizeSearch } from "./utils/search.js";
82
+ import { AutocompleteItem, AutocompleteSection, OptionPopover, SelectItem, SelectSection } from "./components/select/option-list.js";
83
+ import { searchAppBarStyles, searchBarStyles } from "./components/search/search-styles.js";
84
+ import { Select } from "./components/select/Select.js";
85
+ import { Autocomplete } from "./components/autocomplete/Autocomplete.js";
86
+ import { textFieldTokenSet } from "./components/text-field/text-field-tokens.js";
87
+ import { checkboxStyles } from "./components/checkbox/checkbox-styles.js";
88
+ import { Checkbox } from "./components/checkbox/Checkbox.js";
89
+ import { checkboxTokenSet } from "./components/checkbox/checkbox-tokens.js";
90
+ import { radioGroupStyles, radioStyles } from "./components/radio/radio-styles.js";
91
+ import { Radio, RadioGroup } from "./components/radio/RadioGroup.js";
92
+ import { radioTokenSet } from "./components/radio/radio-tokens.js";
93
+ import { switchStyles } from "./components/switch/switch-styles.js";
94
+ import { Switch } from "./components/switch/Switch.js";
95
+ import { switchTokenSet } from "./components/switch/switch-tokens.js";
96
+ import { dialogStyles } from "./components/dialog/dialog-styles.js";
97
+ import { Dialog, DialogActions, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/Dialog.js";
98
+ import { dialogTokenSet } from "./components/dialog/dialog-tokens.js";
99
+ import { menuTokenSet } from "./components/menu/menu-tokens.js";
100
+ import { dockedToolbarStyles, floatingToolbarStyles, toolbarFabStyles } from "./components/toolbar/toolbar-styles.js";
101
+ import { DockedToolbar, FloatingToolbar, ToolbarFab } from "./components/toolbar/Toolbar.js";
102
+ import { dockedToolbarTokenSet, floatingToolbarTokenSet, toolbarFabTokenSet } from "./components/toolbar/toolbar-tokens.js";
103
+ import { useToolbarScrollExit, useToolbarScrollExpansion } from "./components/toolbar/use-toolbar-scroll-expansion.js";
104
+ import { topAppBarStyles } from "./components/app-bar/app-bar-styles.js";
105
+ import { TopAppBar } from "./components/app-bar/TopAppBar.js";
106
+ import { appBarTokenSet } from "./components/app-bar/app-bar-tokens.js";
107
+ import { SearchBar } from "./components/search/SearchBar.js";
108
+ import { SearchAppBar } from "./components/search/SearchAppBar.js";
109
+ import { searchBarTokenSet, searchViewTokenSet } from "./components/search/search-tokens.js";
110
+ import { dividerTokenSet } from "./components/divider/divider-tokens.js";
111
+ import { badgeTokenSet } from "./components/badge/badge-tokens.js";
112
+ import { listMediaStyles, listStyles } from "./components/list/list-styles.js";
113
+ import { ListItemAvatar, ListItemImage, ListItemVideo } from "./components/list/ListMedia.js";
114
+ import { List, ListItem, ListSection } from "./components/list/List.js";
115
+ import { listTokenSet } from "./components/list/list-tokens.js";
116
+ import { sliderStyles } from "./components/slider/slider-styles.js";
117
+ import { RangeSlider, Slider } from "./components/slider/Slider.js";
118
+ import { sliderTokenSet } from "./components/slider/slider-tokens.js";
119
+ import { SheetTrigger } from "./components/sheet/SheetTrigger.js";
120
+ import { bottomSheetStyles, sideSheetStyles } from "./components/sheet/sheet-styles.js";
121
+ import { BottomSheet } from "./components/sheet/BottomSheet.js";
122
+ import { SideSheet } from "./components/sheet/SideSheet.js";
123
+ import { bottomSheetTokenSet, sideSheetTokenSet } from "./components/sheet/sheet-tokens.js";
124
+ import { carouselStyles } from "./components/carousel/carousel-styles.js";
125
+ import { Carousel } from "./components/carousel/Carousel.js";
126
+ import { carouselTokenSet } from "./components/carousel/carousel-tokens.js";
127
+ import { datePickerStyles, dockedDatePickerStyles } from "./components/date-picker/date-picker-styles.js";
128
+ import { DatePicker, DateRangePicker } from "./components/date-picker/DatePicker.js";
129
+ import { datePickerTokenSet } from "./components/date-picker/date-picker-tokens.js";
130
+ import { DateField } from "./components/date-picker/DateField.js";
131
+ import { pickerDialogStyles } from "./components/date-picker/picker-dialog-styles.js";
132
+ import { PickerDialog } from "./components/date-picker/PickerDialog.js";
133
+ import { timePickerStyles } from "./components/time-picker/time-picker-styles.js";
134
+ import { TimePicker, TimePickerModeToggle, useTimePickerRoom } from "./components/time-picker/TimePicker.js";
135
+ import { timePickerTokenSet } from "./components/time-picker/time-picker-tokens.js";
136
+ export { AssistChip, Autocomplete, AutocompleteItem, AutocompleteSection, BREAKPOINTS, BREAKPOINT_NAMES, BUILT_IN_THEMES, BUILT_IN_THEME_NAMES, Badge, BadgedBox, BottomSheet, Button, ButtonContext, ButtonGroup, COLOR_MODES, COLOR_ROLES, CONTRAST_LEVELS, CONTRAST_LEVEL_NAMES, CORNERS, CORNER_NAMES, CUSTOM_COLORS, CUSTOM_COLOR_ROLES, Card, Carousel, Checkbox, ChipSet, CircularProgressIndicator, ContextMenuTrigger, DEFAULT_CUSTOM_COLORS, DEFAULT_DENSITY, DEFAULT_MOTION_SCHEME, DEFAULT_STORAGE_KEY, DEFAULT_THEME, DEFAULT_THEME_STATE, DENSITIES, DateField, DatePicker, DateRangePicker, Dialog, DialogActions, DialogContent, DialogHeader, DialogTitle, DialogTrigger, Divider, DockedToolbar, ELEVATION_LEVELS, ELEVATION_LEVEL_NAMES, ExtendedFab, FOCUS_INDICATOR, Fab, FabMenu, FabMenuItem, FilterChip, FloatingToolbar, IconButton, InputChip, LEGACY_DURATIONS, LEGACY_EASINGS, LabeledDivider, LinearProgressIndicator, List, ListItem, ListItemAvatar, ListItemImage, ListItemVideo, ListSection, LoadingIndicator, MOTION_SCHEMES, Menu, MenuGroup, MenuItem, MenuTrigger, NavigationBar, NavigationBarItem, NavigationRail, NavigationRailItem, OptionPopover, PALETTE_NAMES, PickerDialog, PullToRefresh, Radio, RadioGroup, RangeSlider, RichTooltip, RichTooltipTrigger, SCHEME_VARIANTS, SHADOW_AMBIENT_OPACITY, SHADOW_KEY_OPACITY, SPRINGS, SPRING_FAMILIES, SPRING_SPEEDS, SPRING_TOKEN_NAMES, STATE_OPACITIES, SearchAppBar, SearchBar, Select, SelectItem, SelectSection, SheetTrigger, SideSheet, Slider, Snackbar, SnackbarHost, SnackbarHostState, SplitButton, SubmenuTrigger, SuggestionChip, Switch, TYPEFACES, TYPE_ROLES, TYPE_SCALE, Tab, Tabs, TextField, ThemeProvider, ThemeScope, ThemeScript, TimePicker, TimePickerModeToggle, ToggleGroupStateContext, ToolbarFab, Tooltip, TooltipPlacementContext, TooltipTrigger, TopAppBar, Z_INDEX, appBarTokenSet, assistChipTokenSet, badgeStyles, badgeTokenSet, badgedBoxStyles, bottomSheetStyles, bottomSheetTokenSet, buttonGroupStyles, buttonStyles, buttonTokenSet, buttonVariantClasses, cardStyles, cardTokenSet, carouselStyles, carouselTokenSet, checkboxStyles, checkboxTokenSet, chipSetStyles, chipStyles, circularProgressStyles, cn, color, colorAt, componentTokenList, componentTokensCss, corner, createTheme, datePickerStyles, datePickerTokenSet, defineComponentTokens, densityAttribute, dialogStyles, dialogTokenSet, dividerStyles, dividerTokenSet, dockedDatePickerStyles, dockedToolbarStyles, dockedToolbarTokenSet, elevation, extendedFabStyles, extendedFabTokenSet, fabMenuStyles, fabMenuTokenSet, fabStyles, fabTokenSet, filterChipTokenSet, floatingToolbarStyles, floatingToolbarTokenSet, getM3Spring, getThemeScriptSource, iconButtonStyles, iconButtonTokenSet, inputChipTokenSet, isComponentTokenSet, isDensity, labeledDividerStyles, linearProgressStyles, listMediaStyles, listStyles, listTokenSet, loadingIndicatorStyles, loadingIndicatorTokenSet, matchesSearch, menuStyles, menuTokenSet, navBarTokenSet, navItemStyles, navRailTokenSet, navigationBarStyles, navigationRailStyles, normalizeSearch, parseThemeState, pickerDialogStyles, plainTooltipTokenSet, progressIndicatorTokenSet, pullToRefreshStyles, px, radioGroupStyles, radioStyles, radioTokenSet, richTooltipStyles, richTooltipTokenSet, searchAppBarStyles, searchBarStyles, searchBarTokenSet, searchViewTokenSet, serializeThemeState, sideSheetStyles, sideSheetTokenSet, sliderStyles, sliderTokenSet, snackbarHostStyles, snackbarStyles, snackbarTokenSet, splitButtonStyles, splitButtonTokenSet, spring, springPosition, springSettleDuration, springToLinearEasing, suggestionChipTokenSet, switchStyles, switchTokenSet, tabsStyles, tabsTokenSet, textFieldStyles, textFieldTokenSet, themeAttributes, timePickerStyles, timePickerTokenSet, toMotionSpring, toolbarFabStyles, toolbarFabTokenSet, tooltipStyles, topAppBarStyles, tv, twMergeConfig, typeTokens, typescale, useM3Spring, useSnackbarHostState, useTheme, useThemeScope, useTimePickerRoom, useToolbarScrollExit, useToolbarScrollExpansion };
@@ -0,0 +1,6 @@
1
+ import { MotionScheme, MotionSpring, SpringFamily, SpringSpeed } from "../tokens/motion.js";
2
+ //#region src/motion/get-m3-spring.d.ts
3
+ /** The Motion spring for a motion scheme, family and speed. */
4
+ export declare function getM3Spring(scheme: MotionScheme, family: SpringFamily, speed?: SpringSpeed): MotionSpring;
5
+ //#endregion
6
+ //# sourceMappingURL=get-m3-spring.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { SPRINGS, toMotionSpring } from "../tokens/motion.js";
2
+ //#region src/motion/get-m3-spring.ts
3
+ /** The Motion spring for a motion scheme, family and speed. */
4
+ function getM3Spring(scheme, family, speed = "default") {
5
+ return toMotionSpring(SPRINGS[scheme][family][speed]);
6
+ }
7
+ //#endregion
8
+ export { getM3Spring };
9
+
10
+ //# sourceMappingURL=get-m3-spring.js.map