@noxlovette/material 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/bin/material-claude-skill.js +31 -0
  2. package/claude-skill/material-design/SKILL.md +68 -0
  3. package/claude-skill/material-design/references/accessibility-checklist.md +29 -0
  4. package/claude-skill/material-design/references/component-patterns.md +55 -0
  5. package/claude-skill/material-design/references/motion-guide.md +163 -0
  6. package/claude-skill/material-design/references/tokens-and-styles.md +68 -0
  7. package/dist/animation/Shapes.stories.svelte +60 -0
  8. package/dist/animation/Shapes.stories.svelte.d.ts +3 -0
  9. package/dist/animation/TransitionPatterns.stories.svelte +32 -20
  10. package/dist/animation/containerTransform.d.ts +11 -0
  11. package/dist/animation/containerTransform.js +11 -0
  12. package/dist/animation/enterExit.d.ts +9 -0
  13. package/dist/animation/enterExit.js +6 -3
  14. package/dist/animation/index.d.ts +1 -0
  15. package/dist/animation/index.js +1 -0
  16. package/dist/animation/shapeMorph.svelte.d.ts +52 -0
  17. package/dist/animation/shapeMorph.svelte.js +112 -0
  18. package/dist/animation/shapesAnimatableSmall.d.ts +28 -22
  19. package/dist/animation/shapesAnimatableSmall.js +32 -23
  20. package/dist/animation/sharedAxisTransition.d.ts +22 -0
  21. package/dist/animation/sharedAxisTransition.js +25 -1
  22. package/dist/animation/skeleton.d.ts +6 -1
  23. package/dist/animation/skeleton.js +6 -1
  24. package/dist/components/badge/Badge.mdx +70 -0
  25. package/dist/components/badge/Badge.stories.svelte +38 -20
  26. package/dist/components/badge/Badge.svelte +12 -5
  27. package/dist/components/badge/theme.d.ts +30 -7
  28. package/dist/components/badge/theme.js +24 -4
  29. package/dist/components/badge/types.d.ts +18 -4
  30. package/dist/components/buttons/Button.mdx +85 -0
  31. package/dist/components/buttons/Button.stories.svelte +62 -27
  32. package/dist/components/buttons/Button.svelte +29 -25
  33. package/dist/components/buttons/Button.svelte.d.ts +11 -9
  34. package/dist/components/buttons/ButtonIcon.mdx +52 -0
  35. package/dist/components/buttons/ButtonIcon.stories.svelte +72 -48
  36. package/dist/components/buttons/ButtonIcon.svelte +58 -36
  37. package/dist/components/buttons/ButtonIcon.svelte.d.ts +9 -7
  38. package/dist/components/buttons/FAB.mdx +84 -0
  39. package/dist/components/buttons/FAB.stories.svelte +103 -24
  40. package/dist/components/buttons/FAB.stories.svelte.d.ts +2 -17
  41. package/dist/components/buttons/FAB.svelte +353 -29
  42. package/dist/components/buttons/FAB.svelte.d.ts +11 -6
  43. package/dist/components/buttons/FABMenu.svelte +27 -8
  44. package/dist/components/buttons/FABMenu.svelte.d.ts +7 -3
  45. package/dist/components/buttons/FABMenuItem.svelte +20 -16
  46. package/dist/components/buttons/FABMenuItem.svelte.d.ts +3 -3
  47. package/dist/components/buttons/Toggle.stories.svelte +31 -23
  48. package/dist/components/buttons/Toggle.stories.svelte.d.ts +2 -17
  49. package/dist/components/buttons/Toggle.svelte +28 -25
  50. package/dist/components/buttons/Toggle.svelte.d.ts +5 -5
  51. package/dist/components/buttons/button-group/ButtonGroup.mdx +39 -0
  52. package/dist/components/buttons/button-group/ButtonGroup.stories.svelte +62 -43
  53. package/dist/components/buttons/button-group/ButtonGroup.stories.svelte.d.ts +2 -17
  54. package/dist/components/buttons/button-group/ButtonGroup.svelte +102 -8
  55. package/dist/components/buttons/button-group/ButtonGroup.svelte.d.ts +6 -7
  56. package/dist/components/buttons/button-group/theme.d.ts +45 -15
  57. package/dist/components/buttons/button-group/theme.js +13 -8
  58. package/dist/components/buttons/button-group/types.d.ts +13 -7
  59. package/dist/components/buttons/connected/ConnectedButtonGroup.mdx +43 -0
  60. package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte +56 -74
  61. package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte.d.ts +2 -17
  62. package/dist/components/buttons/connected/ConnectedButtonGroup.svelte +16 -4
  63. package/dist/components/buttons/connected/ConnectedButtonGroup.svelte.d.ts +4 -4
  64. package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte +35 -8
  65. package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte.d.ts +2 -3
  66. package/dist/components/buttons/connected/theme.d.ts +33 -18
  67. package/dist/components/buttons/connected/theme.js +32 -9
  68. package/dist/components/buttons/connected/types.d.ts +36 -9
  69. package/dist/components/buttons/shapeMorph.d.ts +26 -0
  70. package/dist/components/buttons/shapeMorph.js +142 -0
  71. package/dist/components/buttons/split-button/SplitButton.mdx +48 -0
  72. package/dist/components/buttons/split-button/SplitButton.stories.svelte +9 -14
  73. package/dist/components/buttons/split-button/SplitButton.svelte +65 -48
  74. package/dist/components/buttons/split-button/SplitButton.svelte.d.ts +6 -11
  75. package/dist/components/buttons/split-button/theme.d.ts +110 -17
  76. package/dist/components/buttons/split-button/theme.js +74 -16
  77. package/dist/components/buttons/split-button/types.d.ts +24 -18
  78. package/dist/components/buttons/theme.d.ts +422 -230
  79. package/dist/components/buttons/theme.js +286 -380
  80. package/dist/components/buttons/types.d.ts +130 -125
  81. package/dist/components/cards/Card.mdx +44 -0
  82. package/dist/components/cards/Card.stories.svelte +11 -11
  83. package/dist/components/cards/theme.js +5 -5
  84. package/dist/components/chips/Chip.mdx +68 -0
  85. package/dist/components/chips/Chip.stories.svelte +4 -4
  86. package/dist/components/chips/theme.js +3 -3
  87. package/dist/components/containers/action-rail/ActionRail.stories.svelte +1 -0
  88. package/dist/components/containers/action-rail/theme.js +1 -1
  89. package/dist/components/containers/bottom-sheet/BottomSheet.mdx +64 -0
  90. package/dist/components/containers/bottom-sheet/BottomSheet.stories.svelte +108 -12
  91. package/dist/components/containers/bottom-sheet/BottomSheet.svelte +179 -109
  92. package/dist/components/containers/bottom-sheet/BottomSheet.svelte.d.ts +10 -5
  93. package/dist/components/containers/bottom-sheet/index.d.ts +1 -0
  94. package/dist/components/containers/bottom-sheet/index.js +1 -0
  95. package/dist/components/containers/bottom-sheet/theme.d.ts +45 -0
  96. package/dist/components/containers/bottom-sheet/theme.js +42 -0
  97. package/dist/components/containers/bottom-sheet/types.d.ts +37 -5
  98. package/dist/components/containers/carousel/Carousel.mdx +80 -0
  99. package/dist/components/containers/carousel/Carousel.stories.svelte +131 -0
  100. package/dist/components/containers/carousel/Carousel.stories.svelte.d.ts +4 -0
  101. package/dist/components/containers/carousel/Carousel.svelte +194 -0
  102. package/dist/components/containers/carousel/Carousel.svelte.d.ts +25 -0
  103. package/dist/components/containers/carousel/index.d.ts +3 -0
  104. package/dist/components/containers/{stack → carousel}/index.js +1 -2
  105. package/dist/components/containers/carousel/keylines.d.ts +32 -0
  106. package/dist/components/containers/carousel/keylines.js +88 -0
  107. package/dist/components/containers/carousel/theme.d.ts +162 -0
  108. package/dist/components/containers/carousel/theme.js +67 -0
  109. package/dist/components/containers/carousel/types.d.ts +52 -0
  110. package/dist/components/containers/context-menu/ContextMenu.stories.svelte +1 -0
  111. package/dist/components/containers/context-menu/ContextMenu.svelte +2 -2
  112. package/dist/components/containers/context-menu/ContextMenu.svelte.d.ts +1 -1
  113. package/dist/components/containers/context-menu/theme.js +10 -10
  114. package/dist/components/containers/dialogue/Dialogue.mdx +65 -0
  115. package/dist/components/containers/dialogue/Dialogue.stories.svelte +4 -4
  116. package/dist/components/containers/dialogue/Dialogue.svelte +1 -1
  117. package/dist/components/containers/dialogue/theme.js +3 -3
  118. package/dist/components/containers/divider/Divider.stories.svelte +2 -1
  119. package/dist/components/containers/divider/Divider.svelte +2 -2
  120. package/dist/components/containers/divider/theme.d.ts +6 -6
  121. package/dist/components/containers/divider/theme.js +2 -2
  122. package/dist/components/containers/index.d.ts +1 -1
  123. package/dist/components/containers/index.js +1 -1
  124. package/dist/components/containers/link-preview/theme.js +2 -2
  125. package/dist/components/containers/list/List.svelte +18 -0
  126. package/dist/components/containers/list/List.svelte.d.ts +4 -0
  127. package/dist/components/containers/list/ListItem.mdx +100 -0
  128. package/dist/components/containers/list/ListItem.stories.svelte +177 -42
  129. package/dist/components/containers/list/ListItem.stories.svelte.d.ts +2 -17
  130. package/dist/components/containers/list/ListItem.svelte +92 -37
  131. package/dist/components/containers/list/ListItem.svelte.d.ts +1 -1
  132. package/dist/components/containers/list/context.d.ts +6 -0
  133. package/dist/components/containers/list/context.js +4 -0
  134. package/dist/components/containers/list/index.d.ts +1 -0
  135. package/dist/components/containers/list/index.js +1 -0
  136. package/dist/components/containers/list/theme.d.ts +487 -12
  137. package/dist/components/containers/list/theme.js +140 -13
  138. package/dist/components/containers/list/types.d.ts +39 -5
  139. package/dist/components/containers/menu/Menu.mdx +52 -0
  140. package/dist/components/containers/menu/Menu.stories.svelte +14 -14
  141. package/dist/components/containers/menu/Menu.svelte +1 -1
  142. package/dist/components/containers/menu/MenuGroup.svelte +1 -1
  143. package/dist/components/containers/menu/MenuGroup.svelte.d.ts +1 -1
  144. package/dist/components/containers/menu/menu-item/MenuItem.svelte +1 -1
  145. package/dist/components/containers/menu/theme.js +8 -8
  146. package/dist/components/containers/pane/DraggablePane.stories.svelte +4 -3
  147. package/dist/components/containers/pane/DraggablePane.svelte +2 -2
  148. package/dist/components/containers/pane/Pane.stories.svelte +11 -10
  149. package/dist/components/containers/pane/Pane.svelte +24 -2
  150. package/dist/components/containers/pane/PaneGrid.stories.svelte +19 -18
  151. package/dist/components/containers/pane/PaneGrid.svelte +3 -2
  152. package/dist/components/containers/pane/PaneGrid.svelte.d.ts +2 -1
  153. package/dist/components/containers/pane/PaneHandle.svelte +48 -2
  154. package/dist/components/containers/pane/PaneHandle.svelte.d.ts +4 -0
  155. package/dist/components/containers/pane/resizeStore.svelte.d.ts +10 -1
  156. package/dist/components/containers/pane/resizeStore.svelte.js +13 -2
  157. package/dist/components/containers/pane/theme.js +129 -45
  158. package/dist/components/containers/pane/types.d.ts +3 -2
  159. package/dist/components/containers/popover/Popover.mdx +45 -0
  160. package/dist/components/containers/popover/Popover.stories.svelte +1 -1
  161. package/dist/components/containers/popover/Popover.svelte +1 -1
  162. package/dist/components/containers/popover/theme.js +3 -3
  163. package/dist/components/containers/scroll-area/theme.js +2 -2
  164. package/dist/components/containers/side-sheet/SideSheet.mdx +71 -0
  165. package/dist/components/containers/side-sheet/SideSheet.stories.svelte +113 -17
  166. package/dist/components/containers/side-sheet/SideSheet.svelte +113 -66
  167. package/dist/components/containers/side-sheet/SideSheet.svelte.d.ts +8 -7
  168. package/dist/components/containers/side-sheet/index.d.ts +1 -0
  169. package/dist/components/containers/side-sheet/index.js +1 -0
  170. package/dist/components/containers/side-sheet/theme.d.ts +108 -0
  171. package/dist/components/containers/side-sheet/theme.js +72 -0
  172. package/dist/components/containers/side-sheet/types.d.ts +35 -7
  173. package/dist/components/date/DateField.stories.svelte +4 -3
  174. package/dist/components/date/DateField.svelte +49 -26
  175. package/dist/components/date/DateField.svelte.d.ts +2 -0
  176. package/dist/components/date/DateRangeField.stories.svelte +4 -3
  177. package/dist/components/date/DateRangeField.svelte +54 -31
  178. package/dist/components/date/DateRangeField.svelte.d.ts +2 -0
  179. package/dist/components/date/calendarMotion.d.ts +9 -0
  180. package/dist/components/date/calendarMotion.js +23 -0
  181. package/dist/components/date/theme.d.ts +7 -7
  182. package/dist/components/date/theme.js +34 -30
  183. package/dist/components/forms/checkbox/Checkbox.mdx +35 -0
  184. package/dist/components/forms/checkbox/Checkbox.stories.svelte +2 -2
  185. package/dist/components/forms/checkbox/Checkbox.svelte +1 -1
  186. package/dist/components/forms/checkbox/theme.js +3 -3
  187. package/dist/components/forms/command/Command.stories.svelte +1 -0
  188. package/dist/components/forms/command/theme.js +9 -9
  189. package/dist/components/forms/pin/theme.js +4 -4
  190. package/dist/components/forms/radio-group/RadioGroup.svelte +1 -1
  191. package/dist/components/forms/radio-group/theme.js +5 -5
  192. package/dist/components/forms/search/Search.mdx +38 -0
  193. package/dist/components/forms/search/Search.stories.svelte +19 -9
  194. package/dist/components/forms/search/Search.svelte +40 -17
  195. package/dist/components/forms/search/Search.svelte.d.ts +2 -2
  196. package/dist/components/forms/search/theme.d.ts +45 -12
  197. package/dist/components/forms/search/theme.js +13 -8
  198. package/dist/components/forms/search/types.d.ts +18 -12
  199. package/dist/components/forms/select/Select.mdx +53 -0
  200. package/dist/components/forms/select/Select.stories.svelte +4 -4
  201. package/dist/components/forms/select/Select.svelte +10 -2
  202. package/dist/components/forms/select/SelectItem.svelte +1 -1
  203. package/dist/components/forms/select/theme.js +12 -12
  204. package/dist/components/forms/slider/Slider.mdx +85 -0
  205. package/dist/components/forms/slider/Slider.stories.svelte +7 -7
  206. package/dist/components/forms/slider/Slider.svelte +46 -28
  207. package/dist/components/forms/slider/theme.d.ts +14 -0
  208. package/dist/components/forms/slider/theme.js +28 -17
  209. package/dist/components/forms/slider/types.d.ts +3 -2
  210. package/dist/components/forms/switch/Switch.mdx +38 -0
  211. package/dist/components/forms/switch/Switch.stories.svelte +3 -3
  212. package/dist/components/forms/switch/theme.js +6 -6
  213. package/dist/components/forms/textfield/Textfield.mdx +53 -0
  214. package/dist/components/forms/textfield/Textfield.stories.svelte +6 -6
  215. package/dist/components/forms/textfield/Textfield.svelte +1 -0
  216. package/dist/components/forms/textfield/theme.d.ts +3 -0
  217. package/dist/components/forms/textfield/theme.js +22 -19
  218. package/dist/components/forms/toggle-group/theme.js +2 -2
  219. package/dist/components/forms/tooltip/Tooltip.stories.svelte +1 -0
  220. package/dist/components/forms/tooltip/theme.js +3 -3
  221. package/dist/components/misc/Avatar.stories.svelte +5 -4
  222. package/dist/components/misc/ThemeSettings.svelte +9 -9
  223. package/dist/components/misc/ThemeSwitcher.svelte +3 -3
  224. package/dist/components/misc/theme.js +4 -4
  225. package/dist/components/nav/appbar/AppBar.mdx +71 -0
  226. package/dist/components/nav/appbar/AppBar.stories.svelte +93 -3
  227. package/dist/components/nav/appbar/AppBar.stories.svelte.d.ts +2 -17
  228. package/dist/components/nav/appbar/AppBar.svelte +90 -37
  229. package/dist/components/nav/appbar/AppBar.svelte.d.ts +9 -2
  230. package/dist/components/nav/appbar/theme.d.ts +85 -18
  231. package/dist/components/nav/appbar/theme.js +159 -23
  232. package/dist/components/nav/appbar/types.d.ts +46 -9
  233. package/dist/components/nav/breadcrumb/Breadcrumb.stories.svelte +1 -0
  234. package/dist/components/nav/breadcrumb/theme.js +5 -5
  235. package/dist/components/nav/navbar/Navbar.mdx +38 -0
  236. package/dist/components/nav/navbar/Navbar.svelte +1 -1
  237. package/dist/components/nav/navbar/NavbarItem.svelte +12 -9
  238. package/dist/components/nav/navbar/theme.js +6 -6
  239. package/dist/components/nav/rail/Rail.mdx +73 -0
  240. package/dist/components/nav/rail/Rail.stories.svelte +3 -7
  241. package/dist/components/nav/rail/Rail.svelte +1 -0
  242. package/dist/components/nav/rail/RailItem.svelte +12 -9
  243. package/dist/components/nav/rail/theme.js +13 -13
  244. package/dist/components/nav/rail/types.d.ts +4 -1
  245. package/dist/components/nav/tabs/TabHolder.svelte +29 -3
  246. package/dist/components/nav/tabs/TabHolder.svelte.d.ts +3 -1
  247. package/dist/components/nav/tabs/Tabs.mdx +62 -0
  248. package/dist/components/nav/tabs/Tabs.stories.svelte +1 -1
  249. package/dist/components/nav/tabs/theme.js +4 -4
  250. package/dist/components/pill/Pill.mdx +32 -0
  251. package/dist/components/pill/Pill.stories.svelte +1 -1
  252. package/dist/components/pill/theme.d.ts +1 -1
  253. package/dist/components/pill/theme.js +1 -1
  254. package/dist/components/progress/LinearProgress.svelte +1 -1
  255. package/dist/components/progress/Progress.mdx +50 -0
  256. package/dist/components/progress/Progress.stories.svelte +6 -6
  257. package/dist/components/snackbar/Snackbar.mdx +52 -0
  258. package/dist/components/snackbar/Snackbar.stories.svelte +5 -5
  259. package/dist/components/snackbar/Snackbar.svelte +1 -1
  260. package/dist/components/snackbar/theme.d.ts +3 -3
  261. package/dist/components/snackbar/theme.js +4 -4
  262. package/dist/components/table/Table.stories.svelte +1 -0
  263. package/dist/components/table/TableHeader.svelte +1 -1
  264. package/dist/components/table/theme.js +3 -3
  265. package/dist/components/time/TimeField.stories.svelte +3 -2
  266. package/dist/components/time/TimeField.svelte +14 -8
  267. package/dist/components/time/TimeField.svelte.d.ts +6 -0
  268. package/dist/components/time/TimepickerInput.svelte +9 -5
  269. package/dist/components/time/theme.js +5 -5
  270. package/dist/components/time/types.d.ts +11 -1
  271. package/dist/components/toolbar/Toolbar.stories.svelte +1 -0
  272. package/dist/components/toolbar/Toolbar.svelte +1 -1
  273. package/dist/components/toolbar/Toolbar.svelte.d.ts +1 -1
  274. package/dist/components/toolbar/theme.js +14 -14
  275. package/dist/components/typography/Typography.mdx +67 -0
  276. package/dist/components/typography/body/Body.stories.svelte +2 -1
  277. package/dist/components/typography/body/theme.d.ts +15 -12
  278. package/dist/components/typography/body/theme.js +19 -4
  279. package/dist/components/typography/body/types.d.ts +2 -1
  280. package/dist/components/typography/display/Display.stories.svelte +2 -1
  281. package/dist/components/typography/display/theme.d.ts +15 -12
  282. package/dist/components/typography/display/theme.js +19 -4
  283. package/dist/components/typography/display/types.d.ts +2 -1
  284. package/dist/components/typography/headline/Headline.stories.svelte +2 -1
  285. package/dist/components/typography/headline/theme.d.ts +15 -12
  286. package/dist/components/typography/headline/theme.js +19 -4
  287. package/dist/components/typography/headline/types.d.ts +2 -1
  288. package/dist/components/typography/kbd/Kbd.stories.svelte +2 -1
  289. package/dist/components/typography/kbd/theme.d.ts +4 -4
  290. package/dist/components/typography/kbd/theme.js +2 -2
  291. package/dist/components/typography/label/Label.stories.svelte +2 -1
  292. package/dist/components/typography/label/theme.d.ts +15 -12
  293. package/dist/components/typography/label/theme.js +19 -4
  294. package/dist/components/typography/label/types.d.ts +2 -1
  295. package/dist/components/typography/title/Title.stories.svelte +2 -1
  296. package/dist/components/typography/title/theme.d.ts +15 -12
  297. package/dist/components/typography/title/theme.js +19 -4
  298. package/dist/components/typography/title/types.d.ts +2 -1
  299. package/dist/index.css +1 -0
  300. package/dist/styles/component.css +78 -175
  301. package/dist/styles/elevation.css +9 -0
  302. package/dist/styles/spacing.css +29 -0
  303. package/dist/styles/typescale.css +635 -20
  304. package/dist/utils/Layer.svelte +1 -1
  305. package/dist/utils/icon/Icon.svelte +8 -6
  306. package/dist/utils/icon/loadingShapes.js +11 -10
  307. package/package.json +19 -15
  308. package/dist/components/containers/stack/HStack.svelte +0 -23
  309. package/dist/components/containers/stack/HStack.svelte.d.ts +0 -5
  310. package/dist/components/containers/stack/VStack.svelte +0 -23
  311. package/dist/components/containers/stack/VStack.svelte.d.ts +0 -5
  312. package/dist/components/containers/stack/index.d.ts +0 -4
  313. package/dist/components/containers/stack/theme.d.ts +0 -66
  314. package/dist/components/containers/stack/theme.js +0 -26
  315. package/dist/components/containers/stack/types.d.ts +0 -12
  316. /package/dist/components/containers/{stack → carousel}/types.js +0 -0
@@ -202,7 +202,7 @@
202
202
  &:is(:global(input:focus-visible + label) > .tint),
203
203
  &:is(:global(:focus-visible) > .tint),
204
204
  &:is(:global(:active) > .tint) {
205
- opacity: 0.12;
205
+ opacity: 0.1;
206
206
  }
207
207
  }
208
208
  }
@@ -1,13 +1,14 @@
1
1
  <script lang="ts">
2
2
  import clsx from 'clsx';
3
+ import { twMerge } from 'tailwind-merge';
3
4
  import type { IconProps, IconSize } from './types.js';
4
5
 
5
6
  const sizeMap: Record<IconSize, { cls: string; opsz: number }> = {
6
- xs: { cls: 'size-4 text-[16px]', opsz: 20 },
7
- sm: { cls: 'size-5 text-[20px]', opsz: 20 },
8
- md: { cls: 'size-6 text-[24px]', opsz: 24 },
9
- lg: { cls: 'size-10 text-[40px]', opsz: 40 },
10
- xl: { cls: 'size-12 text-[48px]', opsz: 48 }
7
+ xs: { cls: 'size-spacing-200 text-[16px]', opsz: 20 },
8
+ sm: { cls: 'size-spacing-250 text-[20px]', opsz: 20 },
9
+ md: { cls: 'size-spacing-300 text-[24px]', opsz: 24 },
10
+ lg: { cls: 'size-spacing-500 text-[40px]', opsz: 40 },
11
+ xl: { cls: 'size-spacing-600 text-[48px]', opsz: 48 }
11
12
  };
12
13
 
13
14
  const {
@@ -26,7 +27,8 @@
26
27
  const wrapperClass = 'inline-flex items-center justify-center leading-none';
27
28
  </script>
28
29
 
29
- <div class={clsx(resolved.cls, className, wrapperClass)}>
30
+ <!-- twMerge: a caller's size class replaces the preset's instead of racing it in the cascade. -->
31
+ <div class={twMerge(resolved.cls, clsx(className), wrapperClass)}>
30
32
  <span
31
33
  class="material-symbols-{variant}"
32
34
  style="font-size: 1em; font-variation-settings: 'FILL' {fill}, 'wght' {wght}, 'GRAD' {grad}, 'opsz' {resolvedOpsz};"
@@ -1,15 +1,16 @@
1
+ import { pathAnimatableSmallFourSidedCookie, pathAnimatableSmallNineSidedCookie, pathAnimatableSmallOval, pathAnimatableSmallPentagon, pathAnimatableSmallPill, pathAnimatableSmallSoftBurst, pathAnimatableSmallSunny } from '../../animation/shapesAnimatableSmall.js';
1
2
  /*
2
- The seven shapes the M3 loading indicator morphs through, in a 48 × 48 viewBox. Every path has
3
- the same command structure (120 relative points), so Motion's `mix` can interpolate between any
4
- two.
3
+ The seven shapes the M3 loading indicator morphs through, in a 48 × 48 viewBox. They come from the
4
+ small animatable set, so every path has the same command structure (120 relative points) and
5
+ Motion's `mix` can interpolate between any two.
5
6
  https://m3.material.io/components/loading-indicator/specs
6
7
  */
7
8
  export const LOADING_SHAPES = [
8
- 'm37.4 24.7 0.5 0.7 0.8 0.9 0.8 1.0 0.6 1.0 -0.1 0.8 -0.0 0.1 -0.6 0.7 -1.1 0.5 -1.3 0.3 -1.0 0.2 -0.9 0.4 -0.7 1.1 0.1 1.0 0.1 1.1 0.0 1.2 -0.2 1.1 -0.4 0.5 -0.3 0.2 -0.8 0.2 -1.2 -0.4 -1.2 -0.4 -1.0 -0.5 -0.8 -0.1 -1.3 0.5 -0.5 0.8 -0.6 0.9 -0.6 1.0 -0.8 0.8 -0.8 0.2 -0.1 -0.0 -0.9 -0.3 -0.8 -1.0 -0.6 -1.0 -0.6 -0.9 -0.5 -0.7 -1.3 -0.3 -0.9 0.2 -0.9 0.4 -1.2 0.5 -1.2 0.3 -0.8 -0.3 -0.0 -0.1 -0.6 -0.6 -0.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1 1.0 -0.1 0.9 -0.1 0.8 -0.2 0.8 -0.3 0.9 -0.3 0.7 z'
9
+ pathAnimatableSmallSoftBurst,
10
+ pathAnimatableSmallNineSidedCookie,
11
+ pathAnimatableSmallPentagon,
12
+ pathAnimatableSmallPill,
13
+ pathAnimatableSmallSunny,
14
+ pathAnimatableSmallFourSidedCookie,
15
+ pathAnimatableSmallOval
15
16
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxlovette/material",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "A Material Design 3 component library for Svelte, built on Bits UI.",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "https://github.com/noxlovette/material/issues"
24
24
  },
25
25
  "scripts": {
26
- "build": "bun run generate:springs && svelte-package",
26
+ "build": "bun run generate:springs && svelte-package && bun scripts/copy-skill.ts",
27
27
  "generate:springs": "bun scripts/generate-motion-springs.ts && prettier --write src/lib/styles/motion.css",
28
28
  "build:site": "vite build",
29
29
  "watch": "svelte-package --watch",
@@ -44,6 +44,9 @@
44
44
  "claude-skill",
45
45
  "bin"
46
46
  ],
47
+ "bin": {
48
+ "material-claude-skill": "./bin/material-claude-skill.js"
49
+ },
47
50
  "sideEffects": false,
48
51
  "svelte": "./dist/index.js",
49
52
  "types": "./dist/index.d.ts",
@@ -64,7 +67,7 @@
64
67
  "@internationalized/date": "^3.12.1"
65
68
  },
66
69
  "devDependencies": {
67
- "@eslint/compat": "^2.1.0",
70
+ "@eslint/compat": "^2.1.1",
68
71
  "@eslint/js": "^10.0.1",
69
72
  "@storybook/addon-a11y": "10.5.10",
70
73
  "@storybook/addon-docs": "10.5.10",
@@ -77,44 +80,45 @@
77
80
  "@tailwindcss/cli": "^4.3.3",
78
81
  "@tailwindcss/typography": "^0.5.20",
79
82
  "@tailwindcss/vite": "^4.3.3",
80
- "@types/node": "^26.4.0",
81
- "eslint": "^10.9.1",
83
+ "@types/node": "^26.6.2",
84
+ "eslint": "^10.11.0",
82
85
  "eslint-config-prettier": "^10.1.8",
83
86
  "eslint-plugin-svelte": "^3.23.0",
84
- "globals": "^17.11.0",
87
+ "globals": "^17.12.0",
85
88
  "jsdom": "^30.1.1",
86
- "lefthook": "^2.1.12",
87
- "prettier": "^3.9.6",
89
+ "lefthook": "^2.1.14",
90
+ "prettier": "^3.9.9",
88
91
  "prettier-plugin-organize-imports": "^4.3.0",
89
92
  "prettier-plugin-svelte": "^4.1.1",
90
93
  "prettier-plugin-tailwindcss": "^0.8.1",
91
94
  "publint": "^0.3.24",
95
+ "remark-gfm": "^4.0.1",
92
96
  "shiki": "^4.4.3",
93
97
  "storybook": "10.5.10",
94
- "svelte": "^5.57.0",
98
+ "svelte": "^5.57.1",
95
99
  "svelte-check": "^4.7.6",
96
100
  "sveltekit-superforms": "^2.30.2",
97
101
  "tailwind-scrollbar": "^4.0.2",
98
102
  "tailwindcss": "^4.3.3",
99
103
  "typescript": "6",
100
- "typescript-eslint": "^8.69.0",
104
+ "typescript-eslint": "^8.70.1",
101
105
  "vite": "8.2.2",
102
106
  "vite-plugin-devtools-json": "^1.1.0",
103
107
  "vitest": "^4.1.11",
104
- "zod": "^4.5.4"
108
+ "zod": "^4.6.5"
105
109
  },
106
110
  "dependencies": {
107
111
  "@dicebear/core": "^10.7.0",
108
112
  "@dicebear/styles": "^10.6.0",
109
113
  "@floating-ui/dom": "^1.8.0",
110
- "@internationalized/date": "^3.12.3",
114
+ "@internationalized/date": "^3.12.4",
111
115
  "@ktibow/material-color-utilities-nightly": "^0.4.1772748028000",
112
- "bits-ui": "^2.19.0",
116
+ "bits-ui": "^2.19.3",
113
117
  "clsx": "^2.1.1",
114
118
  "mode-watcher": "^1.1.0",
115
- "motion": "^13.4.0",
119
+ "motion": "^13.4.3",
116
120
  "nanoid": "^6.0.1",
117
- "tailwind-merge": "^3.6.0",
121
+ "tailwind-merge": "^3.7.0",
118
122
  "tailwind-variants": "^3.3.1"
119
123
  }
120
124
  }
@@ -1,23 +0,0 @@
1
- <!--
2
- @component
3
- HStack is a horizontal flex container.
4
- -->
5
- <script lang="ts">
6
- import clsx from 'clsx';
7
- import { stack } from './theme.js';
8
- import type { StackProps } from './types.js';
9
-
10
- let {
11
- children,
12
- type = 'hstack',
13
- size = 'w',
14
- class: className,
15
- gap = 'md'
16
- }: StackProps = $props();
17
-
18
- const styling = $derived(stack({ type, size, gap }));
19
- </script>
20
-
21
- <div class={clsx(styling, className)}>
22
- {@render children()}
23
- </div>
@@ -1,5 +0,0 @@
1
- import type { StackProps } from './types.js';
2
- /** HStack is a horizontal flex container. */
3
- declare const HStack: import("svelte").Component<StackProps, {}, "">;
4
- type HStack = ReturnType<typeof HStack>;
5
- export default HStack;
@@ -1,23 +0,0 @@
1
- <!--
2
- @component
3
- VStack is a vertical flex container.
4
- -->
5
- <script lang="ts">
6
- import clsx from 'clsx';
7
- import { stack } from './theme.js';
8
- import type { StackProps } from './types.js';
9
-
10
- let {
11
- children,
12
- type = 'vstack',
13
- size = 'h',
14
- class: className,
15
- gap = 'md'
16
- }: StackProps = $props();
17
-
18
- const styling = $derived(stack({ type, size, gap }));
19
- </script>
20
-
21
- <div class={clsx(styling, className)}>
22
- {@render children()}
23
- </div>
@@ -1,5 +0,0 @@
1
- import type { StackProps } from './types.js';
2
- /** VStack is a vertical flex container. */
3
- declare const VStack: import("svelte").Component<StackProps, {}, "">;
4
- type VStack = ReturnType<typeof VStack>;
5
- export default VStack;
@@ -1,4 +0,0 @@
1
- export * from './theme.js';
2
- export * from './types.js';
3
- export { default as HStack } from './HStack.svelte';
4
- export { default as VStack } from './VStack.svelte';
@@ -1,66 +0,0 @@
1
- import { type VariantProps } from 'tailwind-variants';
2
- export type StackVariants = VariantProps<typeof stack>;
3
- export declare const stack: import("tailwind-variants").TVReturnType<{
4
- type: {
5
- vstack: "flex-row";
6
- hstack: "flex-col";
7
- vFlip: "md:flex-row flex-col";
8
- hFlip: "md:flex-col flex-row";
9
- zstaack: "flex";
10
- };
11
- size: {
12
- full: "size-full";
13
- w: "w-full";
14
- h: "h-full";
15
- };
16
- gap: {
17
- none: "gap-0";
18
- xs: "gap-1";
19
- sm: "gap-2";
20
- md: "gap-3";
21
- lg: "gap-4";
22
- xl: "gap-6";
23
- };
24
- }, undefined, "flex relative", {
25
- type: {
26
- vstack: "flex-row";
27
- hstack: "flex-col";
28
- vFlip: "md:flex-row flex-col";
29
- hFlip: "md:flex-col flex-row";
30
- zstaack: "flex";
31
- };
32
- size: {
33
- full: "size-full";
34
- w: "w-full";
35
- h: "h-full";
36
- };
37
- gap: {
38
- none: "gap-0";
39
- xs: "gap-1";
40
- sm: "gap-2";
41
- md: "gap-3";
42
- lg: "gap-4";
43
- xl: "gap-6";
44
- };
45
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
46
- type: {
47
- vstack: "flex-row";
48
- hstack: "flex-col";
49
- vFlip: "md:flex-row flex-col";
50
- hFlip: "md:flex-col flex-row";
51
- zstaack: "flex";
52
- };
53
- size: {
54
- full: "size-full";
55
- w: "w-full";
56
- h: "h-full";
57
- };
58
- gap: {
59
- none: "gap-0";
60
- xs: "gap-1";
61
- sm: "gap-2";
62
- md: "gap-3";
63
- lg: "gap-4";
64
- xl: "gap-6";
65
- };
66
- }, undefined>>;
@@ -1,26 +0,0 @@
1
- import { tv } from 'tailwind-variants';
2
- export const stack = tv({
3
- base: 'flex relative',
4
- variants: {
5
- type: {
6
- vstack: 'flex-row',
7
- hstack: 'flex-col',
8
- vFlip: 'md:flex-row flex-col',
9
- hFlip: 'md:flex-col flex-row',
10
- zstaack: 'flex'
11
- },
12
- size: {
13
- full: 'size-full',
14
- w: 'w-full',
15
- h: 'h-full'
16
- },
17
- gap: {
18
- none: 'gap-0',
19
- xs: 'gap-1',
20
- sm: 'gap-2',
21
- md: 'gap-3',
22
- lg: 'gap-4',
23
- xl: 'gap-6'
24
- }
25
- }
26
- });
@@ -1,12 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import type { StackVariants } from './theme.js';
4
- /**
5
- * Props for the Stack components (HStack and VStack).
6
- */
7
- export type StackProps = StackVariants & HTMLAttributes<HTMLDivElement> & {
8
- /**
9
- * The content to be stacked.
10
- */
11
- children: Snippet;
12
- };