@windmorph/react 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 @@
1
+ {"version":3,"file":"sheet-icons.js","names":[],"sources":["../../../src/components/sheet/sheet-icons.tsx"],"sourcesContent":["/** Material Symbols \"close\" (Apache-2.0). */\nexport function CloseIcon() {\n return (\n <svg viewBox=\"0 -960 960 960\" fill=\"currentColor\">\n <path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" />\n </svg>\n );\n}\n\n/** Material Symbols \"arrow_back\" (Apache-2.0), mirrored in right-to-left layouts. */\nexport function BackIcon() {\n return (\n <svg viewBox=\"0 -960 960 960\" fill=\"currentColor\" className=\"rtl:-scale-x-100\">\n <path d=\"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z\" />\n </svg>\n );\n}\n\n/** Material Symbols \"expand_more\" (Apache-2.0). */\nexport function CollapseIcon() {\n return (\n <svg viewBox=\"0 -960 960 960\" fill=\"currentColor\">\n <path d=\"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z\" />\n </svg>\n );\n}\n"],"mappings":";;;AACA,SAAgB,YAAY;CAC1B,OACE,oBAAC,OAAD;EAAK,SAAQ;EAAiB,MAAK;EACjC,UAAA,oBAAC,QAAD,EAAM,GAAE,oGAAqG,CAAA;CAC1G,CAAA;AAET;;AAGA,SAAgB,WAAW;CACzB,OACE,oBAAC,OAAD;EAAK,SAAQ;EAAiB,MAAK;EAAe,WAAU;EAC1D,UAAA,oBAAC,QAAD,EAAM,GAAE,mEAAoE,CAAA;CACzE,CAAA;AAET;;AAGA,SAAgB,eAAe;CAC7B,OACE,oBAAC,OAAD;EAAK,SAAQ;EAAiB,MAAK;EACjC,UAAA,oBAAC,QAAD,EAAM,GAAE,wDAAyD,CAAA;CAC9D,CAAA;AAET"}
@@ -0,0 +1,58 @@
1
+ import { SPRINGS } from "../../tokens/motion.js";
2
+ import { springWithVelocityToLinearEasing } from "../../tokens/spring-velocity.js";
3
+ /** The anchor at or beyond `position` in one direction, nearest to it. */
4
+ function closestAnchor(anchors, position, searchUpwards) {
5
+ let best;
6
+ for (const anchor of anchors) if ((searchUpwards ? anchor >= position : anchor <= position) && (best === void 0 || Math.abs(anchor - position) < Math.abs(best - position))) best = anchor;
7
+ return best ?? (searchUpwards ? Math.max(...anchors) : Math.min(...anchors));
8
+ }
9
+ /**
10
+ * Where a dragged sheet settles, ported from Compose's `AnchoredDraggableState`
11
+ * (`computeTarget`). Offsets grow away from the open position (0 = fully open; downwards for
12
+ * a bottom sheet, toward its edge for a side sheet); `velocity` is in px per second, positive
13
+ * the same way.
14
+ *
15
+ * - A fling faster than 125px/s goes to the next anchor in its direction.
16
+ * - Otherwise the sheet moves on once it has travelled `positionalThreshold` (56px, the
17
+ * bottom sheet's; a side sheet passes half its width, as Compose's horizontal
18
+ * `ModalWideNavigationRail` does) towards the neighbouring anchor, and returns to where it
19
+ * started if not.
20
+ */
21
+ function settleTarget(anchors, origin, offset, velocity, positionalThreshold = 56) {
22
+ if (offset === origin) return origin;
23
+ if (Math.abs(velocity) >= 125) return closestAnchor(anchors, offset, velocity > 0);
24
+ const neighbour = closestAnchor(anchors, offset, offset > origin);
25
+ return Math.abs(origin - offset) < Math.min(positionalThreshold, Math.abs(neighbour - origin)) ? origin : neighbour;
26
+ }
27
+ /**
28
+ * A drag's velocity at release, px per second, from the samples of the last
29
+ * {@link VELOCITY_WINDOW}ms before the last one (the release), so a slow drag that ends in a
30
+ * flick reads as a fling and one that stops before lifting doesn't.
31
+ */
32
+ function releaseVelocity(samples) {
33
+ const last = samples.at(-1);
34
+ if (!last) return 0;
35
+ const first = samples.find((sample) => last.time - sample.time <= 100) ?? last;
36
+ const elapsed = (last.time - first.time) / 1e3;
37
+ return elapsed > 0 ? (last.position - first.position) / elapsed : 0;
38
+ }
39
+ /**
40
+ * How far a closing sheet travels, as a share of its size: 112%, so the fast spatial spring's
41
+ * overshoot (under 10.5% of the distance) settles out of view (see `sheet-styles.ts`).
42
+ */
43
+ const EXIT_DISTANCE = 1.12;
44
+ /**
45
+ * The transition that settles a released sheet at the speed it was let go with, as Compose's
46
+ * `animateTo(target, velocity)`: the fast spatial spring for an exit (`closes`), the default
47
+ * spatial spring otherwise, started with `velocity` (px per second) over `distance` (px, the
48
+ * way still to go, same sign convention). `null` (the sheet's own transition, instant under
49
+ * reduced motion) when reduced motion is on or there's nowhere to go. Both sheets use it.
50
+ */
51
+ function releaseMotion(scheme, closes, velocity, distance) {
52
+ if (typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches || Math.abs(distance) < .5) return null;
53
+ return springWithVelocityToLinearEasing(SPRINGS[scheme].spatial[closes ? "fast" : "default"], velocity / distance);
54
+ }
55
+ //#endregion
56
+ export { EXIT_DISTANCE, releaseMotion, releaseVelocity, settleTarget };
57
+
58
+ //# sourceMappingURL=sheet-settle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-settle.js","names":[],"sources":["../../../src/components/sheet/sheet-settle.ts"],"sourcesContent":["import { SPRINGS, type MotionScheme } from '../../tokens/motion';\nimport { springWithVelocityToLinearEasing } from '../../tokens/spring-velocity';\n\n/** Compose's `BottomSheetDefaults.PositionalThreshold` (56dp). */\nexport const POSITIONAL_THRESHOLD = 56;\n/** Compose's `BottomSheetDefaults.VelocityThreshold` (125dp per second). */\nexport const VELOCITY_THRESHOLD = 125;\n\n/** The anchor at or beyond `position` in one direction, nearest to it. */\nfunction closestAnchor(anchors: number[], position: number, searchUpwards: boolean) {\n let best: number | undefined;\n for (const anchor of anchors) {\n const beyond = searchUpwards ? anchor >= position : anchor <= position;\n if (beyond && (best === undefined || Math.abs(anchor - position) < Math.abs(best - position)))\n best = anchor;\n }\n return best ?? (searchUpwards ? Math.max(...anchors) : Math.min(...anchors));\n}\n\n/**\n * Where a dragged sheet settles, ported from Compose's `AnchoredDraggableState`\n * (`computeTarget`). Offsets grow away from the open position (0 = fully open; downwards for\n * a bottom sheet, toward its edge for a side sheet); `velocity` is in px per second, positive\n * the same way.\n *\n * - A fling faster than 125px/s goes to the next anchor in its direction.\n * - Otherwise the sheet moves on once it has travelled `positionalThreshold` (56px, the\n * bottom sheet's; a side sheet passes half its width, as Compose's horizontal\n * `ModalWideNavigationRail` does) towards the neighbouring anchor, and returns to where it\n * started if not.\n */\nexport function settleTarget(\n anchors: number[],\n origin: number,\n offset: number,\n velocity: number,\n positionalThreshold: number = POSITIONAL_THRESHOLD,\n): number {\n if (offset === origin) return origin;\n if (Math.abs(velocity) >= VELOCITY_THRESHOLD) {\n return closestAnchor(anchors, offset, velocity > 0);\n }\n const neighbour = closestAnchor(anchors, offset, offset > origin);\n const travelled = Math.abs(origin - offset);\n return travelled < Math.min(positionalThreshold, Math.abs(neighbour - origin))\n ? origin\n : neighbour;\n}\n\n/** A pointer position along a drag's axis, and when it was there (ms). */\nexport interface DragSample {\n position: number;\n time: number;\n}\n\n/** How far back a release velocity looks, ms (Compose's `VelocityTracker` horizon). */\nexport const VELOCITY_WINDOW = 100;\n\n/**\n * A drag's velocity at release, px per second, from the samples of the last\n * {@link VELOCITY_WINDOW}ms before the last one (the release), so a slow drag that ends in a\n * flick reads as a fling and one that stops before lifting doesn't.\n */\nexport function releaseVelocity(samples: readonly DragSample[]): number {\n const last = samples.at(-1);\n if (!last) return 0;\n const first = samples.find((sample) => last.time - sample.time <= VELOCITY_WINDOW) ?? last;\n const elapsed = (last.time - first.time) / 1000;\n return elapsed > 0 ? (last.position - first.position) / elapsed : 0;\n}\n\n/**\n * How far a closing sheet travels, as a share of its size: 112%, so the fast spatial spring's\n * overshoot (under 10.5% of the distance) settles out of view (see `sheet-styles.ts`).\n */\nexport const EXIT_DISTANCE = 1.12;\n\n/** A settle's spring, started at the release speed, as a `linear()` easing and a duration. */\nexport interface ReleaseMotion {\n easing: string;\n duration: number;\n}\n\n/**\n * The transition that settles a released sheet at the speed it was let go with, as Compose's\n * `animateTo(target, velocity)`: the fast spatial spring for an exit (`closes`), the default\n * spatial spring otherwise, started with `velocity` (px per second) over `distance` (px, the\n * way still to go, same sign convention). `null` (the sheet's own transition, instant under\n * reduced motion) when reduced motion is on or there's nowhere to go. Both sheets use it.\n */\nexport function releaseMotion(\n scheme: MotionScheme,\n closes: boolean,\n velocity: number,\n distance: number,\n): ReleaseMotion | null {\n const reduced =\n typeof window !== 'undefined' &&\n window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n if (reduced || Math.abs(distance) < 0.5) return null;\n return springWithVelocityToLinearEasing(\n SPRINGS[scheme].spatial[closes ? 'fast' : 'default'],\n velocity / distance,\n );\n}\n"],"mappings":";;;AASA,SAAS,cAAc,SAAmB,UAAkB,eAAwB;CAClF,IAAI;CACJ,KAAK,MAAM,UAAU,SAEnB,KADe,gBAAgB,UAAU,WAAW,UAAU,cAC/C,SAAS,KAAA,KAAa,KAAK,IAAI,SAAS,QAAQ,IAAI,KAAK,IAAI,OAAO,QAAQ,IACzF,OAAO;CAEX,OAAO,SAAS,gBAAgB,KAAK,IAAI,GAAG,OAAO,IAAI,KAAK,IAAI,GAAG,OAAO;AAC5E;;;;;;;;;;;;;AAcA,SAAgB,aACd,SACA,QACA,QACA,UACA,sBAAA,IACQ;CACR,IAAI,WAAW,QAAQ,OAAO;CAC9B,IAAI,KAAK,IAAI,QAAQ,KAAA,KACnB,OAAO,cAAc,SAAS,QAAQ,WAAW,CAAC;CAEpD,MAAM,YAAY,cAAc,SAAS,QAAQ,SAAS,MAAM;CAEhE,OADkB,KAAK,IAAI,SAAS,MACrB,IAAI,KAAK,IAAI,qBAAqB,KAAK,IAAI,YAAY,MAAM,CAAC,IACzE,SACA;AACN;;;;;;AAgBA,SAAgB,gBAAgB,SAAwC;CACtE,MAAM,OAAO,QAAQ,GAAG,EAAE;CAC1B,IAAI,CAAC,MAAM,OAAO;CAClB,MAAM,QAAQ,QAAQ,MAAM,WAAW,KAAK,OAAO,OAAO,QAAA,GAAuB,KAAK;CACtF,MAAM,WAAW,KAAK,OAAO,MAAM,QAAQ;CAC3C,OAAO,UAAU,KAAK,KAAK,WAAW,MAAM,YAAY,UAAU;AACpE;;;;;AAMA,MAAa,gBAAgB;;;;;;;;AAe7B,SAAgB,cACd,QACA,QACA,UACA,UACsB;CAItB,IAFE,OAAO,WAAW,eAClB,OAAO,aAAa,kCAAkC,CAAC,CAAC,WAC3C,KAAK,IAAI,QAAQ,IAAI,IAAK,OAAO;CAChD,OAAO,iCACL,QAAQ,OAAO,CAAC,QAAQ,SAAS,SAAS,YAC1C,WAAW,QACb;AACF"}
@@ -0,0 +1,312 @@
1
+ import { VariantProps } from "../../utils/tv.js";
2
+ //#region src/components/sheet/sheet-styles.d.ts
3
+ /** Variant definitions for {@link BottomSheet}. */
4
+ export declare const bottomSheetStyles: import("tailwind-variants").TVReturnType<{
5
+ variant: {
6
+ modal: {};
7
+ standard: {
8
+ container: string;
9
+ };
10
+ };
11
+ /** Dragging moves the sheet (`swipeable`); without it the handle is only a button. */
12
+ swipeable: {
13
+ true: {
14
+ handle: string;
15
+ content: string[];
16
+ };
17
+ false: {
18
+ handle: string;
19
+ };
20
+ };
21
+ }, {
22
+ scrim: string[];
23
+ container: string[];
24
+ motion: string[];
25
+ panel: string[];
26
+ handle: string[];
27
+ handleBar: string[];
28
+ closeRow: string;
29
+ content: string;
30
+ }, undefined, {
31
+ variant: {
32
+ modal: {};
33
+ standard: {
34
+ container: string;
35
+ };
36
+ };
37
+ /** Dragging moves the sheet (`swipeable`); without it the handle is only a button. */
38
+ swipeable: {
39
+ true: {
40
+ handle: string;
41
+ content: string[];
42
+ };
43
+ false: {
44
+ handle: string;
45
+ };
46
+ };
47
+ }, {
48
+ scrim: string[];
49
+ container: string[];
50
+ motion: string[];
51
+ panel: string[];
52
+ handle: string[];
53
+ handleBar: string[];
54
+ closeRow: string;
55
+ content: string;
56
+ }, import("tailwind-variants").TVReturnTypeLike<{
57
+ variant: {
58
+ modal: {};
59
+ standard: {
60
+ container: string;
61
+ };
62
+ };
63
+ /** Dragging moves the sheet (`swipeable`); without it the handle is only a button. */
64
+ swipeable: {
65
+ true: {
66
+ handle: string;
67
+ content: string[];
68
+ };
69
+ false: {
70
+ handle: string;
71
+ };
72
+ };
73
+ }, {
74
+ scrim: string[];
75
+ container: string[];
76
+ motion: string[];
77
+ panel: string[];
78
+ handle: string[];
79
+ handleBar: string[];
80
+ closeRow: string;
81
+ content: string;
82
+ }>>;
83
+ /**
84
+ * The variants of {@link bottomSheetStyles}, for building on its styles. They are the recipe's keys, not
85
+ * component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
86
+ */
87
+ export type BottomSheetStyleProps = VariantProps<typeof bottomSheetStyles>;
88
+ /** Variant definitions for {@link SideSheet}. */
89
+ export declare const sideSheetStyles: import("tailwind-variants").TVReturnType<{
90
+ variant: {
91
+ modal: {};
92
+ standard: {
93
+ panel: string;
94
+ };
95
+ };
96
+ /** The window edge the sheet sits on; `end` is the right in LTR and the left in RTL. */
97
+ edge: {
98
+ end: {
99
+ container: string[];
100
+ motion: string[];
101
+ standardClip: string;
102
+ };
103
+ start: {
104
+ container: string[];
105
+ motion: string[];
106
+ standardClip: string;
107
+ };
108
+ };
109
+ /**
110
+ * A touch or pen swipe can close the modal sheet: the browser keeps vertical scrolling
111
+ * and pinch zoom but never takes a horizontal pan from it (the content too, a scroller,
112
+ * which would give its descendants panning back).
113
+ */
114
+ swipeable: {
115
+ true: {
116
+ panel: string;
117
+ content: string;
118
+ };
119
+ false: {};
120
+ };
121
+ detached: {
122
+ true: {
123
+ motion: string;
124
+ standardFrame: string;
125
+ panel: string;
126
+ };
127
+ false: {};
128
+ };
129
+ /** A back button leads the header. */
130
+ hasBack: {
131
+ true: {
132
+ header: string;
133
+ };
134
+ false: {};
135
+ };
136
+ /** A divider separates the standard sheet from the content beside it. */
137
+ divider: {
138
+ true: {};
139
+ false: {};
140
+ };
141
+ /** A divider separates the bottom actions from the content. */
142
+ footerDivider: {
143
+ true: {
144
+ footer: string;
145
+ };
146
+ false: {};
147
+ };
148
+ }, {
149
+ scrim: string[];
150
+ container: string;
151
+ motion: string[];
152
+ panel: string[];
153
+ header: string;
154
+ title: string;
155
+ headerActions: string;
156
+ content: string;
157
+ footer: string[];
158
+ standard: string[];
159
+ standardClip: string;
160
+ standardFrame: string;
161
+ }, undefined, {
162
+ variant: {
163
+ modal: {};
164
+ standard: {
165
+ panel: string;
166
+ };
167
+ };
168
+ /** The window edge the sheet sits on; `end` is the right in LTR and the left in RTL. */
169
+ edge: {
170
+ end: {
171
+ container: string[];
172
+ motion: string[];
173
+ standardClip: string;
174
+ };
175
+ start: {
176
+ container: string[];
177
+ motion: string[];
178
+ standardClip: string;
179
+ };
180
+ };
181
+ /**
182
+ * A touch or pen swipe can close the modal sheet: the browser keeps vertical scrolling
183
+ * and pinch zoom but never takes a horizontal pan from it (the content too, a scroller,
184
+ * which would give its descendants panning back).
185
+ */
186
+ swipeable: {
187
+ true: {
188
+ panel: string;
189
+ content: string;
190
+ };
191
+ false: {};
192
+ };
193
+ detached: {
194
+ true: {
195
+ motion: string;
196
+ standardFrame: string;
197
+ panel: string;
198
+ };
199
+ false: {};
200
+ };
201
+ /** A back button leads the header. */
202
+ hasBack: {
203
+ true: {
204
+ header: string;
205
+ };
206
+ false: {};
207
+ };
208
+ /** A divider separates the standard sheet from the content beside it. */
209
+ divider: {
210
+ true: {};
211
+ false: {};
212
+ };
213
+ /** A divider separates the bottom actions from the content. */
214
+ footerDivider: {
215
+ true: {
216
+ footer: string;
217
+ };
218
+ false: {};
219
+ };
220
+ }, {
221
+ scrim: string[];
222
+ container: string;
223
+ motion: string[];
224
+ panel: string[];
225
+ header: string;
226
+ title: string;
227
+ headerActions: string;
228
+ content: string;
229
+ footer: string[];
230
+ standard: string[];
231
+ standardClip: string;
232
+ standardFrame: string;
233
+ }, import("tailwind-variants").TVReturnTypeLike<{
234
+ variant: {
235
+ modal: {};
236
+ standard: {
237
+ panel: string;
238
+ };
239
+ };
240
+ /** The window edge the sheet sits on; `end` is the right in LTR and the left in RTL. */
241
+ edge: {
242
+ end: {
243
+ container: string[];
244
+ motion: string[];
245
+ standardClip: string;
246
+ };
247
+ start: {
248
+ container: string[];
249
+ motion: string[];
250
+ standardClip: string;
251
+ };
252
+ };
253
+ /**
254
+ * A touch or pen swipe can close the modal sheet: the browser keeps vertical scrolling
255
+ * and pinch zoom but never takes a horizontal pan from it (the content too, a scroller,
256
+ * which would give its descendants panning back).
257
+ */
258
+ swipeable: {
259
+ true: {
260
+ panel: string;
261
+ content: string;
262
+ };
263
+ false: {};
264
+ };
265
+ detached: {
266
+ true: {
267
+ motion: string;
268
+ standardFrame: string;
269
+ panel: string;
270
+ };
271
+ false: {};
272
+ };
273
+ /** A back button leads the header. */
274
+ hasBack: {
275
+ true: {
276
+ header: string;
277
+ };
278
+ false: {};
279
+ };
280
+ /** A divider separates the standard sheet from the content beside it. */
281
+ divider: {
282
+ true: {};
283
+ false: {};
284
+ };
285
+ /** A divider separates the bottom actions from the content. */
286
+ footerDivider: {
287
+ true: {
288
+ footer: string;
289
+ };
290
+ false: {};
291
+ };
292
+ }, {
293
+ scrim: string[];
294
+ container: string;
295
+ motion: string[];
296
+ panel: string[];
297
+ header: string;
298
+ title: string;
299
+ headerActions: string;
300
+ content: string;
301
+ footer: string[];
302
+ standard: string[];
303
+ standardClip: string;
304
+ standardFrame: string;
305
+ }>>;
306
+ /**
307
+ * The variants of {@link sideSheetStyles}, for building on its styles. They are the recipe's keys, not
308
+ * component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
309
+ */
310
+ export type SideSheetStyleProps = VariantProps<typeof sideSheetStyles>;
311
+ //#endregion
312
+ //# sourceMappingURL=sheet-styles.d.ts.map
@@ -0,0 +1,229 @@
1
+ import { tv } from "../../utils/tv.js";
2
+ import { reducedMotionFade } from "../../motion/reduced-motion.js";
3
+ //#region src/components/sheet/sheet-styles.ts
4
+ const scrim = [
5
+ "fixed inset-0 z-(--md-sys-z-scrim) bg-scrim/32 opacity-100",
6
+ "[transition-property:opacity]",
7
+ "[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]",
8
+ "[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]",
9
+ "starting:opacity-0 data-exiting:opacity-0"
10
+ ];
11
+ /**
12
+ * Shows on the default spatial spring, hides on the fast spatial spring. Exits translate
13
+ * 112% of the sheet's size, so the spring's overshoot stays off-screen. Under reduced motion
14
+ * the sheet fades in and out where it rests, and settling on a detent is instant; a drag
15
+ * still follows the pointer.
16
+ */
17
+ const sheetMotion = [
18
+ "[transition-property:translate]",
19
+ "[transition-duration:var(--md-sys-motion-spring-spatial-default-duration)]",
20
+ "[transition-timing-function:var(--md-sys-motion-spring-spatial-default-easing)]",
21
+ "data-exiting:[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration)]",
22
+ "data-exiting:[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing)]",
23
+ "data-dragging:[transition-duration:0s]",
24
+ "motion-safe:data-lowering:not-data-exiting:not-data-dragging:[transition-duration:var(--md-sys-motion-spring-effects-fast-duration)]",
25
+ "motion-safe:data-lowering:not-data-exiting:not-data-dragging:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing)]",
26
+ ...reducedMotionFade
27
+ ];
28
+ /**
29
+ * The transitions that end a sheet's exit (`usePresence`): the slide, or the fade under
30
+ * reduced motion.
31
+ */
32
+ const SHEET_EXIT_PROPERTIES = ["translate", "opacity"];
33
+ /** Variant definitions for {@link BottomSheet}. */
34
+ const bottomSheetStyles = tv({
35
+ slots: {
36
+ scrim,
37
+ container: [
38
+ "fixed inset-x-0 bottom-0 z-(--md-sys-z-sheet) mx-auto flex w-full max-w-[640px] items-end",
39
+ "max-h-[calc(100dvh-72px)] min-[641px]:max-h-[calc(100dvh-56px)]",
40
+ "min-[641px]:max-w-[min(640px,calc(100%-112px))]",
41
+ "[clip-path:inset(-100vh_-100vw_0_-100vw)]"
42
+ ],
43
+ motion: [
44
+ "flex w-full",
45
+ "translate-y-(--m3-sheet-offset) motion-safe:starting:translate-y-full motion-safe:data-exiting:translate-y-[112%]",
46
+ ...sheetMotion
47
+ ],
48
+ panel: [
49
+ "relative flex max-h-[calc(100dvh-72px)] w-full flex-col",
50
+ "after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-[32px] after:[background-color:inherit] after:content-['']",
51
+ "rounded-t-[var(--_md-comp-sheet-bottom-docked-container-shape)]",
52
+ "min-[641px]:max-h-[calc(100dvh-56px)]",
53
+ "bg-[var(--_md-comp-sheet-bottom-docked-container-color)] text-on-surface outline-none",
54
+ "shadow-[shadow:var(--_md-comp-sheet-bottom-docked-container-elevation)]",
55
+ "forced-colors:border-x forced-colors:border-t forced-colors:border-solid forced-colors:border-[CanvasText]"
56
+ ],
57
+ handle: ["flex w-full shrink-0 justify-center pt-[22px] pb-[22px] outline-none", "focus-ring-inset rounded-t-[var(--_md-comp-sheet-bottom-docked-container-shape)]"],
58
+ handleBar: [
59
+ "h-[4px] w-[32px] rounded-corner-extra-large",
60
+ "bg-[var(--_md-comp-sheet-bottom-docked-drag-handle-color)]",
61
+ "forced-colors:bg-[CanvasText] forced-colors:forced-color-adjust-none"
62
+ ],
63
+ closeRow: "flex shrink-0 justify-end ps-[4px] pe-[4px]",
64
+ content: "min-h-0 flex-1 overflow-y-auto overscroll-contain"
65
+ },
66
+ variants: {
67
+ variant: {
68
+ modal: {},
69
+ standard: { container: "z-(--md-sys-z-sticky)" }
70
+ },
71
+ /** Dragging moves the sheet (`swipeable`); without it the handle is only a button. */
72
+ swipeable: {
73
+ true: {
74
+ handle: "cursor-grab touch-none data-dragging:cursor-grabbing",
75
+ content: ["data-at-top:[touch-action:pan-x_pan-down_pinch-zoom]", "data-at-top:data-can-rise:[touch-action:pan-x_pinch-zoom]"]
76
+ },
77
+ false: { handle: "cursor-pointer" }
78
+ }
79
+ },
80
+ defaultVariants: {
81
+ variant: "modal",
82
+ swipeable: true
83
+ }
84
+ });
85
+ /** Variant definitions for {@link SideSheet}. */
86
+ const sideSheetStyles = tv({
87
+ slots: {
88
+ scrim,
89
+ container: "fixed inset-y-0 z-(--md-sys-z-sheet) flex max-w-full",
90
+ motion: [
91
+ "flex min-w-0",
92
+ "translate-x-(--m3-side-sheet-offset)",
93
+ ...sheetMotion
94
+ ],
95
+ panel: [
96
+ "flex w-[256px] max-w-[400px] min-w-0 flex-col text-on-surface outline-none",
97
+ "bg-[var(--_md-comp-sheet-side-container-color)]",
98
+ "shadow-[shadow:var(--_md-comp-sheet-side-container-elevation)]"
99
+ ],
100
+ header: "flex min-h-[72px] shrink-0 items-center gap-[12px] ps-[24px] pe-[12px] pt-[12px] pb-[12px]",
101
+ title: "min-w-0 flex-1 text-title-large font-brand text-on-surface-variant",
102
+ headerActions: "ms-auto flex shrink-0 items-center gap-[12px]",
103
+ content: "min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain ps-[24px] pe-[24px]",
104
+ footer: ["flex min-h-[72px] shrink-0 flex-wrap items-center justify-start gap-[8px]", "ps-[24px] pe-[24px] pt-[16px] pb-[24px]"],
105
+ standard: [
106
+ "flex h-full w-[var(--m3-side-sheet-width,auto)] shrink-0 visible data-closed:invisible data-closed:w-0",
107
+ "max-w-[var(--m3-side-sheet-width,none)]",
108
+ "[transition-property:width,visibility]",
109
+ "[transition-duration:var(--md-sys-motion-spring-spatial-default-duration),var(--md-sys-motion-spring-spatial-default-duration)]",
110
+ "[transition-timing-function:var(--md-sys-motion-spring-spatial-default-easing),linear]"
111
+ ],
112
+ standardClip: "flex w-full min-w-0 overflow-hidden",
113
+ standardFrame: "flex h-full shrink-0"
114
+ },
115
+ variants: {
116
+ variant: {
117
+ modal: {},
118
+ standard: { panel: "h-full shrink-0" }
119
+ },
120
+ /** The window edge the sheet sits on; `end` is the right in LTR and the left in RTL. */
121
+ edge: {
122
+ end: {
123
+ container: ["end-0", "[clip-path:inset(-100vh_0_-100vh_-100vw)] rtl:[clip-path:inset(-100vh_-100vw_-100vh_0)]"],
124
+ motion: ["motion-safe:starting:translate-x-full motion-safe:data-exiting:translate-x-[112%]", "motion-safe:rtl:starting:-translate-x-full motion-safe:rtl:data-exiting:-translate-x-[112%]"],
125
+ standardClip: "justify-start"
126
+ },
127
+ start: {
128
+ container: ["start-0", "[clip-path:inset(-100vh_-100vw_-100vh_0)] rtl:[clip-path:inset(-100vh_0_-100vh_-100vw)]"],
129
+ motion: ["motion-safe:starting:-translate-x-full motion-safe:data-exiting:-translate-x-[112%]", "motion-safe:rtl:starting:translate-x-full motion-safe:rtl:data-exiting:translate-x-[112%]"],
130
+ standardClip: "justify-end"
131
+ }
132
+ },
133
+ /**
134
+ * A touch or pen swipe can close the modal sheet: the browser keeps vertical scrolling
135
+ * and pinch zoom but never takes a horizontal pan from it (the content too, a scroller,
136
+ * which would give its descendants panning back).
137
+ */
138
+ swipeable: {
139
+ true: {
140
+ panel: "[touch-action:pan-y_pinch-zoom]",
141
+ content: "[touch-action:pan-y_pinch-zoom]"
142
+ },
143
+ false: {}
144
+ },
145
+ detached: {
146
+ true: {
147
+ motion: "pt-[16px] pb-[16px]",
148
+ standardFrame: "pt-[16px] pb-[16px] ps-[16px] pe-[16px]",
149
+ panel: "rounded-[var(--_md-comp-sheet-side-container-shape)]"
150
+ },
151
+ false: {}
152
+ },
153
+ /** A back button leads the header. */
154
+ hasBack: {
155
+ true: { header: "ps-[16px]" },
156
+ false: {}
157
+ },
158
+ /** A divider separates the standard sheet from the content beside it. */
159
+ divider: {
160
+ true: {},
161
+ false: {}
162
+ },
163
+ /** A divider separates the bottom actions from the content. */
164
+ footerDivider: {
165
+ true: { footer: "border-t border-outline-variant" },
166
+ false: {}
167
+ }
168
+ },
169
+ compoundVariants: [
170
+ {
171
+ detached: true,
172
+ edge: "end",
173
+ class: { motion: "pe-[16px]" }
174
+ },
175
+ {
176
+ detached: true,
177
+ edge: "start",
178
+ class: { motion: "ps-[16px]" }
179
+ },
180
+ {
181
+ variant: "modal",
182
+ detached: false,
183
+ class: { panel: ["relative after:pointer-events-none after:absolute after:inset-y-0 after:w-[32px] after:[background-color:inherit] after:content-['']", "forced-colors:border-solid forced-colors:border-[CanvasText]"] }
184
+ },
185
+ {
186
+ variant: "modal",
187
+ detached: false,
188
+ edge: "end",
189
+ class: { panel: ["rounded-s-[var(--_md-comp-sheet-side-container-shape)] after:start-full", "forced-colors:border-s"] }
190
+ },
191
+ {
192
+ variant: "modal",
193
+ detached: false,
194
+ edge: "start",
195
+ class: { panel: ["rounded-e-[var(--_md-comp-sheet-side-container-shape)] after:end-full", "forced-colors:border-e"] }
196
+ },
197
+ {
198
+ detached: true,
199
+ class: { panel: "forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]" }
200
+ },
201
+ {
202
+ variant: "standard",
203
+ detached: false,
204
+ divider: true,
205
+ edge: "end",
206
+ class: { panel: "border-s border-outline-variant" }
207
+ },
208
+ {
209
+ variant: "standard",
210
+ detached: false,
211
+ divider: true,
212
+ edge: "start",
213
+ class: { panel: "border-e border-outline-variant" }
214
+ }
215
+ ],
216
+ defaultVariants: {
217
+ variant: "modal",
218
+ edge: "end",
219
+ swipeable: false,
220
+ detached: false,
221
+ hasBack: false,
222
+ divider: true,
223
+ footerDivider: false
224
+ }
225
+ });
226
+ //#endregion
227
+ export { SHEET_EXIT_PROPERTIES, bottomSheetStyles, sideSheetStyles };
228
+
229
+ //# sourceMappingURL=sheet-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-styles.js","names":[],"sources":["../../../src/components/sheet/sheet-styles.ts"],"sourcesContent":["import { reducedMotionFade } from '../../motion/reduced-motion';\nimport { tv, type VariantProps } from '../../utils/tv';\n\n/*\n * Bottom sheet values follow m3.material.io and Compose Material 3 (ModalBottomSheet.kt,\n * BottomSheetScaffold.kt, SheetDefaults.kt, SheetBottomTokens): at most 640px wide and\n * centred, with a 72px top margin (56px, and 56px side margins, above 640px), 28px top\n * corners, `surface-container-low` at level 1, a 32 × 4px `on-surface-variant` drag handle\n * with 22px above and below it, and (modal) a 32% scrim fading on the default effects\n * spring. It shows on the default spatial spring and hides on the fast spatial spring: the\n * exit moves the sheet, and position moves on spatial springs (2026-10-13). The exit\n * travels 112% of the sheet's size, so the spring's overshoot (under 10.5% of the\n * distance) settles out of view and the sheet never springs back into the window.\n *\n * Side sheets aren't in Compose; values follow m3.material.io and Material Components\n * Android (`m3_comp_sheet_side_*`): 256px wide, at most 400px; standard `surface` at level 0 with no\n * corners and an `outline-variant` divider on its content edge; modal\n * `surface-container-low` at level 1 with 16px corners on its free edge, over a 32% scrim;\n * detached sheets sit 16px from the edges with 16px corners all round. The header has 24px\n * start padding (16px with a back button) and 12px between its parts; the bottom action\n * row is at least 72px, 16px above and 24px below, start-aligned. They move on the bottom\n * sheet's springs.\n *\n * The sheets move by `translate` on a library-owned wrapper, never on the consumer's panel\n * (§10).\n *\n * The containers' colours, corners and shadows and the drag handle's colour come from the\n * sheets' component tokens (`sheet-tokens.ts`, `--md-comp-sheet-bottom-docked-*` and\n * `--md-comp-sheet-side-*`); each sheet's root carries its set's `data-tokens` and\n * `data-variant` (a detached side sheet also `data-detached`), and the parts read one private\n * variable each. A consumer class (`bg-surface-container`) still wins. Every class is written\n * out in full so Tailwind can find it.\n */\n\nconst scrim = [\n 'fixed inset-0 z-(--md-sys-z-scrim) bg-scrim/32 opacity-100',\n '[transition-property:opacity]',\n '[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]',\n 'starting:opacity-0 data-exiting:opacity-0',\n];\n\n/**\n * Shows on the default spatial spring, hides on the fast spatial spring. Exits translate\n * 112% of the sheet's size, so the spring's overshoot stays off-screen. Under reduced motion\n * the sheet fades in and out where it rests, and settling on a detent is instant; a drag\n * still follows the pointer.\n */\nconst sheetMotion = [\n '[transition-property:translate]',\n '[transition-duration:var(--md-sys-motion-spring-spatial-default-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-default-easing)]',\n 'data-exiting:[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration)]',\n 'data-exiting:[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing)]',\n 'data-dragging:[transition-duration:0s]',\n // A move down to a lower detent that isn't a drag's settle (BottomSheet's state): the fast\n // effects spring, no overshoot. Under reduced motion detent changes stay instant.\n 'motion-safe:data-lowering:not-data-exiting:not-data-dragging:[transition-duration:var(--md-sys-motion-spring-effects-fast-duration)]',\n 'motion-safe:data-lowering:not-data-exiting:not-data-dragging:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing)]',\n ...reducedMotionFade,\n];\n\n/**\n * The transitions that end a sheet's exit (`usePresence`): the slide, or the fade under\n * reduced motion.\n */\nexport const SHEET_EXIT_PROPERTIES = ['translate', 'opacity'] as const;\n\n/** Variant definitions for {@link BottomSheet}. */\nexport const bottomSheetStyles = tv({\n slots: {\n scrim,\n // The outermost element, which places the sheet and takes the consumer's `className` and\n // `style`. The sheet sits at its bottom (`items-end`), so a consumer inset that stretches\n // it (`top-24` with the library's `bottom-0`) never stretches the sheet.\n container: [\n 'fixed inset-x-0 bottom-0 z-(--md-sys-z-sheet) mx-auto flex w-full max-w-[640px] items-end',\n 'max-h-[calc(100dvh-72px)] min-[641px]:max-h-[calc(100dvh-56px)]',\n 'min-[641px]:max-w-[min(640px,calc(100%-112px))]',\n // Clips below its bottom edge only, where the panel's bleed hangs (see `panel`).\n '[clip-path:inset(-100vh_-100vw_0_-100vw)]',\n ],\n // Library-owned layer that moves the sheet, inside the container, so the motion never\n // animates the outermost element's `translate` (architecture §10 rule 4).\n motion: [\n 'flex w-full',\n 'translate-y-(--m3-sheet-offset) motion-safe:starting:translate-y-full motion-safe:data-exiting:translate-y-[112%]',\n ...sheetMotion,\n ],\n panel: [\n 'relative flex max-h-[calc(100dvh-72px)] w-full flex-col',\n // A bleed in the panel's colour below its bottom edge: when the spring overshoots, the\n // sheet lifts a few pixels off the window's edge and this fills the gap (Compose scales\n // the sheet up for the same reason). The container clips it at rest.\n \"after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-[32px] after:[background-color:inherit] after:content-['']\",\n 'rounded-t-[var(--_md-comp-sheet-bottom-docked-container-shape)]',\n 'min-[641px]:max-h-[calc(100dvh-56px)]',\n 'bg-[var(--_md-comp-sheet-bottom-docked-container-color)] text-on-surface outline-none',\n 'shadow-[shadow:var(--_md-comp-sheet-bottom-docked-container-elevation)]',\n // Forced colours drop the container and the shadow: a border on the free edges.\n 'forced-colors:border-x forced-colors:border-t forced-colors:border-solid forced-colors:border-[CanvasText]',\n ],\n handle: [\n 'flex w-full shrink-0 justify-center pt-[22px] pb-[22px] outline-none',\n 'focus-ring-inset rounded-t-[var(--_md-comp-sheet-bottom-docked-container-shape)]',\n ],\n handleBar: [\n 'h-[4px] w-[32px] rounded-corner-extra-large',\n 'bg-[var(--_md-comp-sheet-bottom-docked-drag-handle-color)]',\n 'forced-colors:bg-[CanvasText] forced-colors:forced-color-adjust-none',\n ],\n closeRow: 'flex shrink-0 justify-end ps-[4px] pe-[4px]',\n content: 'min-h-0 flex-1 overflow-y-auto overscroll-contain',\n },\n variants: {\n variant: {\n modal: {},\n // Over the page without a scrim, below every overlay; the page stays usable around it.\n standard: { container: 'z-(--md-sys-z-sticky)' },\n },\n /** Dragging moves the sheet (`swipeable`); without it the handle is only a button. */\n swipeable: {\n true: {\n handle: 'cursor-grab touch-none data-dragging:cursor-grabbing',\n // At its top, the content leaves downward touch moves to the sheet's drag\n // (BottomSheet), and upward ones too while the sheet rests below its top detent\n // (`data-can-rise`), so an upward swipe raises the sheet before the content scrolls.\n content: [\n 'data-at-top:[touch-action:pan-x_pan-down_pinch-zoom]',\n 'data-at-top:data-can-rise:[touch-action:pan-x_pinch-zoom]',\n ],\n },\n false: { handle: 'cursor-pointer' },\n },\n },\n defaultVariants: { variant: 'modal', swipeable: true },\n});\n\n/**\n * The variants of {@link bottomSheetStyles}, for building on its styles. They are the recipe's keys, not\n * component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.\n */\nexport type BottomSheetStyleProps = VariantProps<typeof bottomSheetStyles>;\n\n/** Variant definitions for {@link SideSheet}. */\nexport const sideSheetStyles = tv({\n slots: {\n scrim,\n // A modal sheet's outermost element, which places it on its `edge` and takes the\n // consumer's `className` and `style`. It clips past that edge only, where a docked\n // panel's bleed hangs (see `compoundVariants`).\n container: 'fixed inset-y-0 z-(--md-sys-z-sheet) flex max-w-full',\n // Library-owned layer that moves a modal sheet, inside the container (architecture §10\n // rule 4); it holds a detached sheet's 16px margins, so the exit clears them. A swipe\n // moves it by `--m3-side-sheet-offset` (physical px, set by SideSheet while dragging and\n // settling); it enters from and leaves past the sheet's edge (`edge`).\n motion: ['flex min-w-0', 'translate-x-(--m3-side-sheet-offset)', ...sheetMotion],\n // 256px by default; a consumer width can't pass the spec's 400px maximum. A fixed\n // maximum (not a percentage) also caps the wrapper's shrink-to-fit width, and `min-w-0`\n // lets the panel shrink with the wrapper in a narrow window.\n panel: [\n 'flex w-[256px] max-w-[400px] min-w-0 flex-col text-on-surface outline-none',\n 'bg-[var(--_md-comp-sheet-side-container-color)]',\n 'shadow-[shadow:var(--_md-comp-sheet-side-container-elevation)]',\n ],\n header:\n 'flex min-h-[72px] shrink-0 items-center gap-[12px] ps-[24px] pe-[12px] pt-[12px] pb-[12px]',\n title: 'min-w-0 flex-1 text-title-large font-brand text-on-surface-variant',\n headerActions: 'ms-auto flex shrink-0 items-center gap-[12px]',\n // m3.material.io: \"Side sheets cannot scroll horizontally.\"\n content:\n 'min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain ps-[24px] pe-[24px]',\n footer: [\n 'flex min-h-[72px] shrink-0 flex-wrap items-center justify-start gap-[8px]',\n 'ps-[24px] pe-[24px] pt-[16px] pb-[24px]',\n ],\n // Standard sheets sit in the layout; their width opens and closes (a measured length, so\n // the panel stays on its edge), on the default spatial spring. The measured width is also\n // the maximum, so the spring's overshoot never opens a strip beside the panel.\n standard: [\n 'flex h-full w-[var(--m3-side-sheet-width,auto)] shrink-0 visible data-closed:invisible data-closed:w-0',\n 'max-w-[var(--m3-side-sheet-width,none)]',\n '[transition-property:width,visibility]',\n '[transition-duration:var(--md-sys-motion-spring-spatial-default-duration),var(--md-sys-motion-spring-spatial-default-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-default-easing),linear]',\n ],\n // The panel rides the root's inner edge (the content's side, `edge`), so as the width\n // moves the sheet slides in and out with its edge leading, as M3's reference moves it\n // (2026-10-24); pinned to the window's side, its far side was wiped into view first.\n standardClip: 'flex w-full min-w-0 overflow-hidden',\n standardFrame: 'flex h-full shrink-0',\n },\n variants: {\n variant: {\n modal: {},\n standard: { panel: 'h-full shrink-0' },\n },\n /** The window edge the sheet sits on; `end` is the right in LTR and the left in RTL. */\n edge: {\n end: {\n container: [\n 'end-0',\n '[clip-path:inset(-100vh_0_-100vh_-100vw)] rtl:[clip-path:inset(-100vh_-100vw_-100vh_0)]',\n ],\n motion: [\n 'motion-safe:starting:translate-x-full motion-safe:data-exiting:translate-x-[112%]',\n 'motion-safe:rtl:starting:-translate-x-full motion-safe:rtl:data-exiting:-translate-x-[112%]',\n ],\n standardClip: 'justify-start',\n },\n start: {\n container: [\n 'start-0',\n '[clip-path:inset(-100vh_-100vw_-100vh_0)] rtl:[clip-path:inset(-100vh_0_-100vh_-100vw)]',\n ],\n motion: [\n 'motion-safe:starting:-translate-x-full motion-safe:data-exiting:-translate-x-[112%]',\n 'motion-safe:rtl:starting:translate-x-full motion-safe:rtl:data-exiting:translate-x-[112%]',\n ],\n standardClip: 'justify-end',\n },\n },\n /**\n * A touch or pen swipe can close the modal sheet: the browser keeps vertical scrolling\n * and pinch zoom but never takes a horizontal pan from it (the content too, a scroller,\n * which would give its descendants panning back).\n */\n swipeable: {\n true: {\n panel: '[touch-action:pan-y_pinch-zoom]',\n content: '[touch-action:pan-y_pinch-zoom]',\n },\n false: {},\n },\n detached: {\n true: {\n motion: 'pt-[16px] pb-[16px]',\n standardFrame: 'pt-[16px] pb-[16px] ps-[16px] pe-[16px]',\n panel: 'rounded-[var(--_md-comp-sheet-side-container-shape)]',\n },\n false: {},\n },\n /** A back button leads the header. */\n hasBack: { true: { header: 'ps-[16px]' }, false: {} },\n /** A divider separates the standard sheet from the content beside it. */\n divider: { true: {}, false: {} },\n /** A divider separates the bottom actions from the content. */\n footerDivider: { true: { footer: 'border-t border-outline-variant' }, false: {} },\n },\n compoundVariants: [\n { detached: true, edge: 'end', class: { motion: 'pe-[16px]' } },\n { detached: true, edge: 'start', class: { motion: 'ps-[16px]' } },\n {\n variant: 'modal',\n detached: false,\n class: {\n panel: [\n // A bleed past the anchored edge fills the gap when the spring overshoots (see the\n // bottom sheet's panel).\n \"relative after:pointer-events-none after:absolute after:inset-y-0 after:w-[32px] after:[background-color:inherit] after:content-['']\",\n // Forced colours drop the container and the shadow: a border on the free edge.\n 'forced-colors:border-solid forced-colors:border-[CanvasText]',\n ],\n },\n },\n // The corners and the forced-colours border are on the free edge, the bleed on the other.\n {\n variant: 'modal',\n detached: false,\n edge: 'end',\n class: {\n panel: [\n 'rounded-s-[var(--_md-comp-sheet-side-container-shape)] after:start-full',\n 'forced-colors:border-s',\n ],\n },\n },\n {\n variant: 'modal',\n detached: false,\n edge: 'start',\n class: {\n panel: [\n 'rounded-e-[var(--_md-comp-sheet-side-container-shape)] after:end-full',\n 'forced-colors:border-e',\n ],\n },\n },\n {\n detached: true,\n class: {\n panel: 'forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n },\n },\n // The divider is on the content edge, the side away from the window's.\n {\n variant: 'standard',\n detached: false,\n divider: true,\n edge: 'end',\n class: { panel: 'border-s border-outline-variant' },\n },\n {\n variant: 'standard',\n detached: false,\n divider: true,\n edge: 'start',\n class: { panel: 'border-e border-outline-variant' },\n },\n ],\n defaultVariants: {\n variant: 'modal',\n edge: 'end',\n swipeable: false,\n detached: false,\n hasBack: false,\n divider: true,\n footerDivider: false,\n },\n});\n\n/**\n * The variants of {@link sideSheetStyles}, for building on its styles. They are the recipe's keys, not\n * component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.\n */\nexport type SideSheetStyleProps = VariantProps<typeof sideSheetStyles>;\n"],"mappings":";;;AAkCA,MAAM,QAAQ;CACZ;CACA;CACA;CACA;CACA;AACF;;;;;;;AAQA,MAAM,cAAc;CAClB;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA,GAAG;AACL;;;;;AAMA,MAAa,wBAAwB,CAAC,aAAa,SAAS;;AAG5D,MAAa,oBAAoB,GAAG;CAClC,OAAO;EACL;EAIA,WAAW;GACT;GACA;GACA;GAEA;EACF;EAGA,QAAQ;GACN;GACA;GACA,GAAG;EACL;EACA,OAAO;GACL;GAIA;GACA;GACA;GACA;GACA;GAEA;EACF;EACA,QAAQ,CACN,wEACA,kFACF;EACA,WAAW;GACT;GACA;GACA;EACF;EACA,UAAU;EACV,SAAS;CACX;CACA,UAAU;EACR,SAAS;GACP,OAAO,CAAC;GAER,UAAU,EAAE,WAAW,wBAAwB;EACjD;;EAEA,WAAW;GACT,MAAM;IACJ,QAAQ;IAIR,SAAS,CACP,wDACA,2DACF;GACF;GACA,OAAO,EAAE,QAAQ,iBAAiB;EACpC;CACF;CACA,iBAAiB;EAAE,SAAS;EAAS,WAAW;CAAK;AACvD,CAAC;;AASD,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL;EAIA,WAAW;EAKX,QAAQ;GAAC;GAAgB;GAAwC,GAAG;EAAW;EAI/E,OAAO;GACL;GACA;GACA;EACF;EACA,QACE;EACF,OAAO;EACP,eAAe;EAEf,SACE;EACF,QAAQ,CACN,6EACA,yCACF;EAIA,UAAU;GACR;GACA;GACA;GACA;GACA;EACF;EAIA,cAAc;EACd,eAAe;CACjB;CACA,UAAU;EACR,SAAS;GACP,OAAO,CAAC;GACR,UAAU,EAAE,OAAO,kBAAkB;EACvC;;EAEA,MAAM;GACJ,KAAK;IACH,WAAW,CACT,SACA,yFACF;IACA,QAAQ,CACN,qFACA,6FACF;IACA,cAAc;GAChB;GACA,OAAO;IACL,WAAW,CACT,WACA,yFACF;IACA,QAAQ,CACN,uFACA,2FACF;IACA,cAAc;GAChB;EACF;;;;;;EAMA,WAAW;GACT,MAAM;IACJ,OAAO;IACP,SAAS;GACX;GACA,OAAO,CAAC;EACV;EACA,UAAU;GACR,MAAM;IACJ,QAAQ;IACR,eAAe;IACf,OAAO;GACT;GACA,OAAO,CAAC;EACV;;EAEA,SAAS;GAAE,MAAM,EAAE,QAAQ,YAAY;GAAG,OAAO,CAAC;EAAE;;EAEpD,SAAS;GAAE,MAAM,CAAC;GAAG,OAAO,CAAC;EAAE;;EAE/B,eAAe;GAAE,MAAM,EAAE,QAAQ,kCAAkC;GAAG,OAAO,CAAC;EAAE;CAClF;CACA,kBAAkB;EAChB;GAAE,UAAU;GAAM,MAAM;GAAO,OAAO,EAAE,QAAQ,YAAY;EAAE;EAC9D;GAAE,UAAU;GAAM,MAAM;GAAS,OAAO,EAAE,QAAQ,YAAY;EAAE;EAChE;GACE,SAAS;GACT,UAAU;GACV,OAAO,EACL,OAAO,CAGL,wIAEA,8DACF,EACF;EACF;EAEA;GACE,SAAS;GACT,UAAU;GACV,MAAM;GACN,OAAO,EACL,OAAO,CACL,2EACA,wBACF,EACF;EACF;EACA;GACE,SAAS;GACT,UAAU;GACV,MAAM;GACN,OAAO,EACL,OAAO,CACL,yEACA,wBACF,EACF;EACF;EACA;GACE,UAAU;GACV,OAAO,EACL,OAAO,oFACT;EACF;EAEA;GACE,SAAS;GACT,UAAU;GACV,SAAS;GACT,MAAM;GACN,OAAO,EAAE,OAAO,kCAAkC;EACpD;EACA;GACE,SAAS;GACT,UAAU;GACV,SAAS;GACT,MAAM;GACN,OAAO,EAAE,OAAO,kCAAkC;EACpD;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;EACN,WAAW;EACX,UAAU;EACV,SAAS;EACT,SAAS;EACT,eAAe;CACjB;AACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ComponentTokenSet } from "../../tokens/component.js";
2
+ import "../../index.js";
3
+ //#region src/components/sheet/sheet-tokens.d.ts
4
+ /** The tokens of {@link BottomSheet}: `--md-comp-sheet-bottom-docked-[<variant>-]<part>`. */
5
+ export declare const bottomSheetTokenSet: ComponentTokenSet<"container-color" | "container-shape" | "drag-handle-color">;
6
+ /**
7
+ * The tokens of {@link SideSheet}: `--md-comp-sheet-side-docked-<variant>-<part>`, and
8
+ * `--md-comp-sheet-side-detached-container-shape` for a detached sheet.
9
+ */
10
+ export declare const sideSheetTokenSet: ComponentTokenSet<never>;
11
+ //#endregion
12
+ //# sourceMappingURL=sheet-tokens.d.ts.map