@shavin/ui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/LICENSE +21 -0
  3. package/README.md +81 -2
  4. package/components.json +15771 -0
  5. package/dist/authoring/types.js +0 -0
  6. package/dist/icons.d.ts +20 -0
  7. package/dist/icons.js +6 -0
  8. package/dist/index.d.ts +3325 -0
  9. package/dist/index.js +531 -0
  10. package/dist/inspector/FindingPopover.js +252 -0
  11. package/dist/inspector/Highlight.js +76 -0
  12. package/dist/inspector/Inspector.js +420 -0
  13. package/dist/inspector/InspectorRoot.js +75 -0
  14. package/dist/inspector/IssuesLayer.js +134 -0
  15. package/dist/inspector/IssuesList.js +174 -0
  16. package/dist/inspector/SettingsPanel.js +89 -0
  17. package/dist/inspector/ShavinMark.js +22 -0
  18. package/dist/inspector/Toolbar.js +202 -0
  19. package/dist/inspector/barPlacement.js +117 -0
  20. package/dist/inspector/env.js +59 -0
  21. package/dist/inspector/geometry.js +44 -0
  22. package/dist/inspector/ignored.js +52 -0
  23. package/dist/inspector/index.js +7 -0
  24. package/dist/inspector/journalClient.js +57 -0
  25. package/dist/inspector/journalState.js +36 -0
  26. package/dist/inspector/pin.js +43 -0
  27. package/dist/inspector/placement.js +96 -0
  28. package/dist/inspector/prompt.js +63 -0
  29. package/dist/inspector/scheme.js +56 -0
  30. package/dist/inspector/settings.js +54 -0
  31. package/dist/inspector/strings.js +67 -0
  32. package/dist/inspector/targets.js +31 -0
  33. package/dist/inspector/theme/ThemeControls.js +351 -0
  34. package/dist/inspector/theme/ThemePanel.js +32 -0
  35. package/dist/inspector/theme/useThemeController.js +560 -0
  36. package/dist/inspector/usePhone.js +32 -0
  37. package/dist/inspector/useSelectTool.js +82 -0
  38. package/dist/inspector/useTimeouts.js +22 -0
  39. package/dist/inspector/useTrackedRect.js +39 -0
  40. package/dist/lib/announce.js +47 -0
  41. package/dist/lib/bridge.js +43 -0
  42. package/dist/lib/buttonState.js +81 -0
  43. package/dist/lib/chart-kit.js +226 -0
  44. package/dist/lib/cn.js +8 -0
  45. package/dist/lib/color-space.js +315 -0
  46. package/dist/lib/concentric.js +85 -0
  47. package/dist/lib/hit-area.js +25 -0
  48. package/dist/lib/inspector/collect.js +299 -0
  49. package/dist/lib/inspector/color.js +58 -0
  50. package/dist/lib/inspector/console-capture.js +96 -0
  51. package/dist/lib/inspector/index.js +8 -0
  52. package/dist/lib/inspector/rules.js +232 -0
  53. package/dist/lib/inspector/run.js +35 -0
  54. package/dist/lib/inspector/schema.js +110 -0
  55. package/dist/lib/inspector/selector.js +103 -0
  56. package/dist/lib/inspector/tokens.js +34 -0
  57. package/dist/lib/media-overlay-presets.js +284 -0
  58. package/dist/lib/media-overlays.js +381 -0
  59. package/dist/lib/meta.js +70 -0
  60. package/dist/lib/motion-gsap.js +25 -0
  61. package/dist/lib/motion-runtime.js +283 -0
  62. package/dist/lib/neutral-tint.js +108 -0
  63. package/dist/lib/portal-container.js +12 -0
  64. package/dist/lib/scroll-edges.js +41 -0
  65. package/dist/lib/surface.js +6 -0
  66. package/dist/lib/syntax.js +115 -0
  67. package/dist/lib/theme-presets.d.ts +1 -0
  68. package/dist/lib/theme-presets.js +759 -0
  69. package/dist/lib/useClientLocale.js +11 -0
  70. package/dist/lib/useFieldErrorAnnouncement.js +15 -0
  71. package/dist/lib/useReducedMotion.js +17 -0
  72. package/dist/lib/useResizable.js +313 -0
  73. package/dist/lib/useReturnFocus.js +24 -0
  74. package/dist/lib/useSlidingIndicator.js +56 -0
  75. package/dist/panels.d.ts +37 -0
  76. package/dist/panels.js +19 -0
  77. package/dist/primitives/Accordion/Accordion.doc.js +37 -0
  78. package/dist/primitives/Accordion/Accordion.js +87 -0
  79. package/dist/primitives/Accordion/index.js +2 -0
  80. package/dist/primitives/ActionBar/ActionBar.doc.js +37 -0
  81. package/dist/primitives/ActionBar/ActionBar.js +126 -0
  82. package/dist/primitives/ActionBar/index.js +2 -0
  83. package/dist/primitives/AlertDialog/AlertDialog.doc.js +54 -0
  84. package/dist/primitives/AlertDialog/AlertDialog.js +113 -0
  85. package/dist/primitives/AlertDialog/index.js +2 -0
  86. package/dist/primitives/AppShell/AppShell.doc.js +81 -0
  87. package/dist/primitives/AppShell/AppShell.js +178 -0
  88. package/dist/primitives/AppShell/frame-context.js +10 -0
  89. package/dist/primitives/AppShell/index.js +2 -0
  90. package/dist/primitives/AspectRatio/AspectRatio.doc.js +34 -0
  91. package/dist/primitives/AspectRatio/AspectRatio.js +5 -0
  92. package/dist/primitives/AspectRatio/index.js +2 -0
  93. package/dist/primitives/Avatar/Avatar.doc.js +40 -0
  94. package/dist/primitives/Avatar/Avatar.js +62 -0
  95. package/dist/primitives/Avatar/index.js +2 -0
  96. package/dist/primitives/Backdrop/Backdrop.doc.js +24 -0
  97. package/dist/primitives/Backdrop/Backdrop.js +42 -0
  98. package/dist/primitives/Backdrop/index.js +2 -0
  99. package/dist/primitives/Badge/Badge.doc.js +35 -0
  100. package/dist/primitives/Badge/Badge.js +95 -0
  101. package/dist/primitives/Badge/index.js +2 -0
  102. package/dist/primitives/BarChart/BarChart.doc.js +59 -0
  103. package/dist/primitives/BarChart/BarChart.js +154 -0
  104. package/dist/primitives/BarChart/index.js +2 -0
  105. package/dist/primitives/BlockPreview/BlockPreview.doc.js +51 -0
  106. package/dist/primitives/BlockPreview/BlockPreview.js +485 -0
  107. package/dist/primitives/BlockPreview/index.js +8 -0
  108. package/dist/primitives/Blockquote/Blockquote.doc.js +25 -0
  109. package/dist/primitives/Blockquote/Blockquote.js +19 -0
  110. package/dist/primitives/Blockquote/index.js +2 -0
  111. package/dist/primitives/BottomNav/BottomNav.doc.js +37 -0
  112. package/dist/primitives/BottomNav/BottomNav.js +54 -0
  113. package/dist/primitives/BottomNav/index.js +2 -0
  114. package/dist/primitives/Box/Box.doc.js +45 -0
  115. package/dist/primitives/Box/Box.js +51 -0
  116. package/dist/primitives/Box/index.js +2 -0
  117. package/dist/primitives/Breadcrumbs/Breadcrumbs.doc.js +35 -0
  118. package/dist/primitives/Breadcrumbs/Breadcrumbs.js +40 -0
  119. package/dist/primitives/Breadcrumbs/index.js +2 -0
  120. package/dist/primitives/Button/Button.doc.js +80 -0
  121. package/dist/primitives/Button/Button.js +132 -0
  122. package/dist/primitives/Button/index.js +2 -0
  123. package/dist/primitives/Calendar/Calendar.doc.js +36 -0
  124. package/dist/primitives/Calendar/Calendar.js +502 -0
  125. package/dist/primitives/Calendar/index.js +2 -0
  126. package/dist/primitives/Callout/Callout.doc.js +34 -0
  127. package/dist/primitives/Callout/Callout.js +63 -0
  128. package/dist/primitives/Callout/index.js +2 -0
  129. package/dist/primitives/Card/Card.doc.js +46 -0
  130. package/dist/primitives/Card/Card.js +159 -0
  131. package/dist/primitives/Card/index.js +2 -0
  132. package/dist/primitives/Carousel/Carousel.doc.js +61 -0
  133. package/dist/primitives/Carousel/Carousel.js +369 -0
  134. package/dist/primitives/Carousel/index.js +1 -0
  135. package/dist/primitives/ChatBubble/ChatBubble.doc.js +37 -0
  136. package/dist/primitives/ChatBubble/ChatBubble.js +120 -0
  137. package/dist/primitives/ChatBubble/index.js +2 -0
  138. package/dist/primitives/Checkbox/Checkbox.doc.js +36 -0
  139. package/dist/primitives/Checkbox/Checkbox.js +57 -0
  140. package/dist/primitives/Checkbox/index.js +2 -0
  141. package/dist/primitives/CheckboxCards/CheckboxCards.doc.js +35 -0
  142. package/dist/primitives/CheckboxCards/CheckboxCards.js +47 -0
  143. package/dist/primitives/CheckboxCards/index.js +2 -0
  144. package/dist/primitives/CheckboxGroup/CheckboxGroup.doc.js +35 -0
  145. package/dist/primitives/CheckboxGroup/CheckboxGroup.js +40 -0
  146. package/dist/primitives/CheckboxGroup/index.js +2 -0
  147. package/dist/primitives/Code/Code.doc.js +22 -0
  148. package/dist/primitives/Code/Code.js +17 -0
  149. package/dist/primitives/Code/index.js +2 -0
  150. package/dist/primitives/CodeBlock/CodeBlock.doc.js +36 -0
  151. package/dist/primitives/CodeBlock/CodeBlock.js +205 -0
  152. package/dist/primitives/CodeBlock/index.js +2 -0
  153. package/dist/primitives/CodeEditor/CodeEditor.doc.js +53 -0
  154. package/dist/primitives/CodeEditor/CodeEditor.js +204 -0
  155. package/dist/primitives/CodeEditor/index.js +4 -0
  156. package/dist/primitives/ColorPicker/ColorPicker.doc.js +37 -0
  157. package/dist/primitives/ColorPicker/ColorPicker.js +776 -0
  158. package/dist/primitives/ColorPicker/index.js +2 -0
  159. package/dist/primitives/Combobox/Combobox.doc.js +36 -0
  160. package/dist/primitives/Combobox/Combobox.js +199 -0
  161. package/dist/primitives/Combobox/index.js +2 -0
  162. package/dist/primitives/Container/Container.doc.js +46 -0
  163. package/dist/primitives/Container/Container.js +54 -0
  164. package/dist/primitives/Container/index.js +2 -0
  165. package/dist/primitives/ContextMenu/ContextMenu.doc.js +36 -0
  166. package/dist/primitives/ContextMenu/ContextMenu.js +59 -0
  167. package/dist/primitives/ContextMenu/index.js +2 -0
  168. package/dist/primitives/DataList/DataList.doc.js +34 -0
  169. package/dist/primitives/DataList/DataList.js +35 -0
  170. package/dist/primitives/DataList/index.js +2 -0
  171. package/dist/primitives/DatePicker/DatePicker.doc.js +36 -0
  172. package/dist/primitives/DatePicker/DatePicker.js +398 -0
  173. package/dist/primitives/DatePicker/index.js +2 -0
  174. package/dist/primitives/Dialog/Dialog.doc.js +107 -0
  175. package/dist/primitives/Dialog/Dialog.js +143 -0
  176. package/dist/primitives/Dialog/index.js +2 -0
  177. package/dist/primitives/DonutChart/DonutChart.doc.js +26 -0
  178. package/dist/primitives/DonutChart/DonutChart.js +71 -0
  179. package/dist/primitives/DonutChart/index.js +2 -0
  180. package/dist/primitives/Drawer/Drawer.doc.js +44 -0
  181. package/dist/primitives/Drawer/Drawer.js +158 -0
  182. package/dist/primitives/Drawer/index.js +2 -0
  183. package/dist/primitives/Dropdown/Dropdown.doc.js +40 -0
  184. package/dist/primitives/Dropdown/Dropdown.js +146 -0
  185. package/dist/primitives/Dropdown/index.js +2 -0
  186. package/dist/primitives/Emphasis/Emphasis.doc.js +28 -0
  187. package/dist/primitives/Emphasis/Emphasis.js +25 -0
  188. package/dist/primitives/Emphasis/index.js +2 -0
  189. package/dist/primitives/EmptyState/EmptyState.doc.js +76 -0
  190. package/dist/primitives/EmptyState/EmptyState.js +118 -0
  191. package/dist/primitives/EmptyState/index.js +2 -0
  192. package/dist/primitives/FileOutput/FileOutput.doc.js +26 -0
  193. package/dist/primitives/FileOutput/FileOutput.js +55 -0
  194. package/dist/primitives/FileOutput/index.js +2 -0
  195. package/dist/primitives/Flex/Flex.doc.js +58 -0
  196. package/dist/primitives/Flex/Flex.js +98 -0
  197. package/dist/primitives/Flex/index.js +2 -0
  198. package/dist/primitives/FormErrorSummary/FormErrorSummary.doc.js +39 -0
  199. package/dist/primitives/FormErrorSummary/FormErrorSummary.js +61 -0
  200. package/dist/primitives/FormErrorSummary/index.js +2 -0
  201. package/dist/primitives/FormField/FormField.doc.js +68 -0
  202. package/dist/primitives/FormField/FormField.js +149 -0
  203. package/dist/primitives/FormField/index.js +2 -0
  204. package/dist/primitives/FunnelChart/FunnelChart.doc.js +45 -0
  205. package/dist/primitives/FunnelChart/FunnelChart.js +54 -0
  206. package/dist/primitives/FunnelChart/index.js +2 -0
  207. package/dist/primitives/Grid/Grid.doc.js +57 -0
  208. package/dist/primitives/Grid/Grid.js +122 -0
  209. package/dist/primitives/Grid/index.js +2 -0
  210. package/dist/primitives/Heading/Heading.doc.js +46 -0
  211. package/dist/primitives/Heading/Heading.js +80 -0
  212. package/dist/primitives/Heading/index.js +2 -0
  213. package/dist/primitives/Heatmap/Heatmap.doc.js +49 -0
  214. package/dist/primitives/Heatmap/Heatmap.js +42 -0
  215. package/dist/primitives/Heatmap/index.js +2 -0
  216. package/dist/primitives/HoverCard/HoverCard.doc.js +36 -0
  217. package/dist/primitives/HoverCard/HoverCard.js +39 -0
  218. package/dist/primitives/HoverCard/index.js +2 -0
  219. package/dist/primitives/Icon/Icon.doc.js +49 -0
  220. package/dist/primitives/Icon/Icon.js +214 -0
  221. package/dist/primitives/Icon/buckets/lucide-a.js +214 -0
  222. package/dist/primitives/Icon/buckets/lucide-b.js +298 -0
  223. package/dist/primitives/Icon/buckets/lucide-c.js +524 -0
  224. package/dist/primitives/Icon/buckets/lucide-d.js +110 -0
  225. package/dist/primitives/Icon/buckets/lucide-e.js +50 -0
  226. package/dist/primitives/Icon/buckets/lucide-f.js +264 -0
  227. package/dist/primitives/Icon/buckets/lucide-g.js +108 -0
  228. package/dist/primitives/Icon/buckets/lucide-h.js +112 -0
  229. package/dist/primitives/Icon/buckets/lucide-i.js +46 -0
  230. package/dist/primitives/Icon/buckets/lucide-j.js +6 -0
  231. package/dist/primitives/Icon/buckets/lucide-k.js +18 -0
  232. package/dist/primitives/Icon/buckets/lucide-l.js +162 -0
  233. package/dist/primitives/Icon/buckets/lucide-m.js +266 -0
  234. package/dist/primitives/Icon/buckets/lucide-n.js +34 -0
  235. package/dist/primitives/Icon/buckets/lucide-o.js +20 -0
  236. package/dist/primitives/Icon/buckets/lucide-p.js +216 -0
  237. package/dist/primitives/Icon/buckets/lucide-q.js +6 -0
  238. package/dist/primitives/Icon/buckets/lucide-r.js +140 -0
  239. package/dist/primitives/Icon/buckets/lucide-s.js +490 -0
  240. package/dist/primitives/Icon/buckets/lucide-t.js +204 -0
  241. package/dist/primitives/Icon/buckets/lucide-u.js +84 -0
  242. package/dist/primitives/Icon/buckets/lucide-v.js +46 -0
  243. package/dist/primitives/Icon/buckets/lucide-w.js +82 -0
  244. package/dist/primitives/Icon/buckets/lucide-x.js +6 -0
  245. package/dist/primitives/Icon/buckets/lucide-z.js +36 -0
  246. package/dist/primitives/Icon/buckets/phosphor-a.js +250 -0
  247. package/dist/primitives/Icon/buckets/phosphor-b.js +158 -0
  248. package/dist/primitives/Icon/buckets/phosphor-c.js +320 -0
  249. package/dist/primitives/Icon/buckets/phosphor-d.js +90 -0
  250. package/dist/primitives/Icon/buckets/phosphor-e.js +52 -0
  251. package/dist/primitives/Icon/buckets/phosphor-f.js +162 -0
  252. package/dist/primitives/Icon/buckets/phosphor-g.js +92 -0
  253. package/dist/primitives/Icon/buckets/phosphor-h.js +88 -0
  254. package/dist/primitives/Icon/buckets/phosphor-i.js +26 -0
  255. package/dist/primitives/Icon/buckets/phosphor-j.js +8 -0
  256. package/dist/primitives/Icon/buckets/phosphor-k.js +8 -0
  257. package/dist/primitives/Icon/buckets/phosphor-l.js +84 -0
  258. package/dist/primitives/Icon/buckets/phosphor-m.js +110 -0
  259. package/dist/primitives/Icon/buckets/phosphor-n.js +100 -0
  260. package/dist/primitives/Icon/buckets/phosphor-o.js +14 -0
  261. package/dist/primitives/Icon/buckets/phosphor-p.js +166 -0
  262. package/dist/primitives/Icon/buckets/phosphor-q.js +10 -0
  263. package/dist/primitives/Icon/buckets/phosphor-r.js +46 -0
  264. package/dist/primitives/Icon/buckets/phosphor-s.js +254 -0
  265. package/dist/primitives/Icon/buckets/phosphor-t.js +152 -0
  266. package/dist/primitives/Icon/buckets/phosphor-u.js +38 -0
  267. package/dist/primitives/Icon/buckets/phosphor-v.js +22 -0
  268. package/dist/primitives/Icon/buckets/phosphor-w.js +48 -0
  269. package/dist/primitives/Icon/buckets/phosphor-x.js +4 -0
  270. package/dist/primitives/Icon/buckets/phosphor-y.js +8 -0
  271. package/dist/primitives/Icon/icon-display-names.generated.js +4 -0
  272. package/dist/primitives/Icon/icon-loaders.generated.js +70 -0
  273. package/dist/primitives/Icon/icon-names-material.generated.js +4 -0
  274. package/dist/primitives/Icon/icon-names.js +11 -0
  275. package/dist/primitives/Icon/index.js +7 -0
  276. package/dist/primitives/IconButton/IconButton.doc.js +43 -0
  277. package/dist/primitives/IconButton/IconButton.js +98 -0
  278. package/dist/primitives/IconButton/index.js +2 -0
  279. package/dist/primitives/IconPicker/IconPicker.doc.js +52 -0
  280. package/dist/primitives/IconPicker/IconPicker.js +193 -0
  281. package/dist/primitives/IconPicker/index.js +2 -0
  282. package/dist/primitives/IconPicker/registry.js +98 -0
  283. package/dist/primitives/Image/Image.doc.js +40 -0
  284. package/dist/primitives/Image/Image.js +76 -0
  285. package/dist/primitives/Image/index.js +2 -0
  286. package/dist/primitives/Inset/Inset.doc.js +34 -0
  287. package/dist/primitives/Inset/Inset.js +51 -0
  288. package/dist/primitives/Inset/index.js +2 -0
  289. package/dist/primitives/Kbd/Kbd.doc.js +22 -0
  290. package/dist/primitives/Kbd/Kbd.js +17 -0
  291. package/dist/primitives/Kbd/index.js +2 -0
  292. package/dist/primitives/LineChart/LineChart.doc.js +61 -0
  293. package/dist/primitives/LineChart/LineChart.js +146 -0
  294. package/dist/primitives/LineChart/index.js +2 -0
  295. package/dist/primitives/Link/Link.doc.js +45 -0
  296. package/dist/primitives/Link/Link.js +37 -0
  297. package/dist/primitives/Link/index.js +2 -0
  298. package/dist/primitives/List/List.doc.js +35 -0
  299. package/dist/primitives/List/List.js +35 -0
  300. package/dist/primitives/List/index.js +2 -0
  301. package/dist/primitives/Menu/Menu.doc.js +37 -0
  302. package/dist/primitives/Menu/Menu.js +117 -0
  303. package/dist/primitives/Menu/index.js +2 -0
  304. package/dist/primitives/Murmur/Murmur.doc.js +32 -0
  305. package/dist/primitives/Murmur/Murmur.js +85 -0
  306. package/dist/primitives/Murmur/engine.js +163 -0
  307. package/dist/primitives/Murmur/index.js +12 -0
  308. package/dist/primitives/Pagination/Pagination.doc.js +37 -0
  309. package/dist/primitives/Pagination/Pagination.js +183 -0
  310. package/dist/primitives/Pagination/index.js +2 -0
  311. package/dist/primitives/PanelGroup/PanelGroup.doc.js +41 -0
  312. package/dist/primitives/PanelGroup/PanelGroup.js +142 -0
  313. package/dist/primitives/PanelGroup/index.js +2 -0
  314. package/dist/primitives/Popover/Popover.doc.js +36 -0
  315. package/dist/primitives/Popover/Popover.js +41 -0
  316. package/dist/primitives/Popover/index.js +2 -0
  317. package/dist/primitives/Progress/Progress.doc.js +35 -0
  318. package/dist/primitives/Progress/Progress.js +77 -0
  319. package/dist/primitives/Progress/index.js +2 -0
  320. package/dist/primitives/RadioGroup/RadioGroup.doc.js +36 -0
  321. package/dist/primitives/RadioGroup/RadioGroup.js +132 -0
  322. package/dist/primitives/RadioGroup/index.js +2 -0
  323. package/dist/primitives/Rating/NpsScale.js +102 -0
  324. package/dist/primitives/Rating/Rating.doc.js +35 -0
  325. package/dist/primitives/Rating/Rating.js +116 -0
  326. package/dist/primitives/Rating/RatingSummary.js +50 -0
  327. package/dist/primitives/Rating/SentimentRating.js +81 -0
  328. package/dist/primitives/Rating/index.js +5 -0
  329. package/dist/primitives/Reasoning/Reasoning.doc.js +28 -0
  330. package/dist/primitives/Reasoning/Reasoning.js +73 -0
  331. package/dist/primitives/Reasoning/index.js +2 -0
  332. package/dist/primitives/Resizable/Resizable.doc.js +50 -0
  333. package/dist/primitives/Resizable/ResizeHandle.js +185 -0
  334. package/dist/primitives/Resizable/index.js +2 -0
  335. package/dist/primitives/Row/Row.doc.js +36 -0
  336. package/dist/primitives/Row/Row.js +53 -0
  337. package/dist/primitives/Row/index.js +2 -0
  338. package/dist/primitives/ScrollArea/ScrollArea.doc.js +35 -0
  339. package/dist/primitives/ScrollArea/ScrollArea.js +50 -0
  340. package/dist/primitives/ScrollArea/index.js +2 -0
  341. package/dist/primitives/Section/Section.doc.js +64 -0
  342. package/dist/primitives/Section/Section.js +76 -0
  343. package/dist/primitives/Section/index.js +2 -0
  344. package/dist/primitives/SegmentedControl/SegmentedControl.doc.js +75 -0
  345. package/dist/primitives/SegmentedControl/SegmentedControl.js +160 -0
  346. package/dist/primitives/SegmentedControl/index.js +2 -0
  347. package/dist/primitives/Select/Select.doc.js +42 -0
  348. package/dist/primitives/Select/Select.js +180 -0
  349. package/dist/primitives/Select/index.js +2 -0
  350. package/dist/primitives/Separator/Separator.doc.js +34 -0
  351. package/dist/primitives/Separator/Separator.js +84 -0
  352. package/dist/primitives/Separator/index.js +2 -0
  353. package/dist/primitives/ShavinDevTools/DevToolsPanel.js +2050 -0
  354. package/dist/primitives/ShavinDevTools/ShavinDevTools.doc.js +44 -0
  355. package/dist/primitives/ShavinDevTools/ShavinDevTools.js +15 -0
  356. package/dist/primitives/ShavinDevTools/index.js +8 -0
  357. package/dist/primitives/ShavinDevTools/types.js +0 -0
  358. package/dist/primitives/Sidebar/Sidebar.doc.js +39 -0
  359. package/dist/primitives/Sidebar/Sidebar.js +295 -0
  360. package/dist/primitives/Sidebar/index.js +2 -0
  361. package/dist/primitives/Skeleton/Skeleton.doc.js +38 -0
  362. package/dist/primitives/Skeleton/Skeleton.js +36 -0
  363. package/dist/primitives/Skeleton/index.js +2 -0
  364. package/dist/primitives/Slider/Slider.doc.js +45 -0
  365. package/dist/primitives/Slider/Slider.js +406 -0
  366. package/dist/primitives/Slider/index.js +2 -0
  367. package/dist/primitives/Sortable/Sortable.doc.js +35 -0
  368. package/dist/primitives/Sortable/Sortable.js +179 -0
  369. package/dist/primitives/Sortable/index.js +2 -0
  370. package/dist/primitives/Sparkline/Sparkline.doc.js +25 -0
  371. package/dist/primitives/Sparkline/Sparkline.js +46 -0
  372. package/dist/primitives/Sparkline/index.js +2 -0
  373. package/dist/primitives/Spinner/Spinner.doc.js +35 -0
  374. package/dist/primitives/Spinner/Spinner.js +162 -0
  375. package/dist/primitives/Spinner/index.js +2 -0
  376. package/dist/primitives/Spotlight/Spotlight.doc.js +36 -0
  377. package/dist/primitives/Spotlight/Spotlight.js +139 -0
  378. package/dist/primitives/Spotlight/index.js +2 -0
  379. package/dist/primitives/Stepper/Stepper.doc.js +46 -0
  380. package/dist/primitives/Stepper/Stepper.js +235 -0
  381. package/dist/primitives/Stepper/index.js +2 -0
  382. package/dist/primitives/Switch/Switch.doc.js +36 -0
  383. package/dist/primitives/Switch/Switch.js +54 -0
  384. package/dist/primitives/Switch/index.js +2 -0
  385. package/dist/primitives/Table/Table.doc.js +47 -0
  386. package/dist/primitives/Table/Table.js +63 -0
  387. package/dist/primitives/Table/index.js +2 -0
  388. package/dist/primitives/Tabs/Tabs.doc.js +53 -0
  389. package/dist/primitives/Tabs/Tabs.js +275 -0
  390. package/dist/primitives/Tabs/index.js +2 -0
  391. package/dist/primitives/Text/Text.doc.js +35 -0
  392. package/dist/primitives/Text/Text.js +67 -0
  393. package/dist/primitives/Text/index.js +2 -0
  394. package/dist/primitives/TextArea/TextArea.doc.js +35 -0
  395. package/dist/primitives/TextArea/TextArea.js +45 -0
  396. package/dist/primitives/TextArea/index.js +2 -0
  397. package/dist/primitives/TextField/TextField.doc.js +41 -0
  398. package/dist/primitives/TextField/TextField.js +290 -0
  399. package/dist/primitives/TextField/index.js +2 -0
  400. package/dist/primitives/ThemeProvider/ScopedThemeProvider.js +71 -0
  401. package/dist/primitives/ThemeProvider/ThemeProvider.doc.js +61 -0
  402. package/dist/primitives/ThemeProvider/ThemeProvider.js +143 -0
  403. package/dist/primitives/ThemeProvider/clientTheme.js +47 -0
  404. package/dist/primitives/ThemeProvider/index.js +3 -0
  405. package/dist/primitives/ThemeProvider/themeContext.js +11 -0
  406. package/dist/primitives/ThemeSwitcher/ThemeSwitcher.doc.js +49 -0
  407. package/dist/primitives/ThemeSwitcher/ThemeSwitcher.js +323 -0
  408. package/dist/primitives/ThemeSwitcher/index.js +2 -0
  409. package/dist/primitives/TimePicker/TimePicker.doc.js +36 -0
  410. package/dist/primitives/TimePicker/TimePicker.js +368 -0
  411. package/dist/primitives/TimePicker/index.js +2 -0
  412. package/dist/primitives/Toast/Toast.doc.js +65 -0
  413. package/dist/primitives/Toast/Toast.js +304 -0
  414. package/dist/primitives/Toast/index.js +2 -0
  415. package/dist/primitives/ToolCall/ToolCall.doc.js +29 -0
  416. package/dist/primitives/ToolCall/ToolCall.js +75 -0
  417. package/dist/primitives/ToolCall/index.js +2 -0
  418. package/dist/primitives/Tooltip/Tooltip.doc.js +37 -0
  419. package/dist/primitives/Tooltip/Tooltip.js +55 -0
  420. package/dist/primitives/Tooltip/index.js +2 -0
  421. package/dist/primitives/TopBar/TopBar.doc.js +34 -0
  422. package/dist/primitives/TopBar/TopBar.js +8 -0
  423. package/dist/primitives/TopBar/index.js +2 -0
  424. package/dist/primitives/Video/PauseToggle.js +49 -0
  425. package/dist/primitives/Video/Video.doc.js +47 -0
  426. package/dist/primitives/Video/Video.js +104 -0
  427. package/dist/primitives/Video/index.js +1 -0
  428. package/dist/primitives/VoiceInput/VoiceInput.doc.js +38 -0
  429. package/dist/primitives/VoiceInput/VoiceInput.js +96 -0
  430. package/dist/primitives/VoiceInput/index.js +2 -0
  431. package/dist/primitives/WiseOwlLogo/WiseOwlLogo.doc.js +38 -0
  432. package/dist/primitives/WiseOwlLogo/WiseOwlLogo.js +82 -0
  433. package/dist/primitives/WiseOwlLogo/index.js +2 -0
  434. package/dist/primitives/WiseOwlLogo/paths.js +10 -0
  435. package/dist/server.d.ts +256 -0
  436. package/dist/server.js +22 -0
  437. package/dist/styles/base-oklch.css +124 -0
  438. package/dist/styles/base-oklch.d.ts +2 -0
  439. package/dist/styles/base.css +124 -0
  440. package/dist/styles/base.d.ts +2 -0
  441. package/dist/styles/brand-preset.d.ts +22 -0
  442. package/dist/styles/brand-preset.js +13 -0
  443. package/dist/styles/brand-theme-v4-oklch.css +2 -0
  444. package/dist/styles/brand-theme-v4-oklch.d.ts +2 -0
  445. package/dist/styles/brand-theme-v4.css +2 -0
  446. package/dist/styles/brand-theme-v4.d.ts +2 -0
  447. package/dist/styles/brand-tokens-oklch.css +6 -0
  448. package/dist/styles/brand-tokens-oklch.d.ts +2 -0
  449. package/dist/styles/brand-tokens.css +6 -0
  450. package/dist/styles/brand-tokens.d.ts +2 -0
  451. package/dist/styles/global-oklch.css +1329 -0
  452. package/dist/styles/global-oklch.d.ts +2 -0
  453. package/dist/styles/global.css +1329 -0
  454. package/dist/styles/global.d.ts +2 -0
  455. package/dist/styles/theme-v4-oklch.css +22 -0
  456. package/dist/styles/theme-v4-oklch.d.ts +2 -0
  457. package/dist/styles/theme-v4.css +22 -0
  458. package/dist/styles/theme-v4.d.ts +2 -0
  459. package/dist/styles/tokens-oklch.css +1204 -0
  460. package/dist/styles/tokens-oklch.d.ts +2 -0
  461. package/dist/styles/tokens.css +1204 -0
  462. package/dist/styles/tokens.d.ts +2 -0
  463. package/dist/tailwind-preset.cjs +155 -0
  464. package/dist/tailwind-preset.d.ts +112 -0
  465. package/dist/tailwind-preset.js +133 -0
  466. package/dist/theme-presets-BVWZ_TxX.d.ts +514 -0
  467. package/global-oklch.css +3 -0
  468. package/package.json +169 -4
  469. package/styles.css +3 -0
  470. package/tailwind-preset.ts +140 -0
  471. package/tokens.json +423 -0
@@ -0,0 +1,256 @@
1
+ import { ClassValue } from 'clsx';
2
+ import { CSSProperties } from 'react';
3
+
4
+ /** Merge conditional classNames, last-write-wins on conflicting Tailwind utilities. */
5
+ declare function cn(...inputs: ClassValue[]): string;
6
+
7
+ /**
8
+ * Concentric Radius — Foundation Automation
9
+ * ──────────────────────────────────────────
10
+ * Implements R_inner = max(floor, R_outer − P) via CSS custom property cascade,
11
+ * floor = min(--radius-lg, --radius-panel / 2) (see CONCENTRIC_FLOOR).
12
+ *
13
+ * Container components (Card, Flex translucent, Grid translucent, Box
14
+ * translucent, Section translucent, Calendar, CheckboxCards, etc.) call
15
+ * `concentricContainerStyle()` with their padding token. The returned
16
+ * style object sets `--radius-panel-inner` on the container's root element.
17
+ *
18
+ * Any descendant with `radius="concentric"` (Image, Inset, etc.) reads this
19
+ * variable via the `rounded-panel-inner` Tailwind utility and automatically
20
+ * gets the correct inner radius — zero JS, zero runtime measurement.
21
+ *
22
+ * ═══════════════════════════════════════════════════════════════════════════
23
+ * CASCADE MODEL — Four Rules Based on VISIBLE BOUNDARY
24
+ * ═══════════════════════════════════════════════════════════════════════════
25
+ *
26
+ * The key insight: radius only means something when paired with a VISIBLE
27
+ * BOUNDARY (bg color or border). An element with bg but no radius has sharp
28
+ * corners — that IS the visual reference. A concentric child must not skip
29
+ * past it to a grandparent's rounded corners, or you get the optical disaster
30
+ * of 32px > 0px > 20px (three visible containers, middle one sharp).
31
+ *
32
+ * ┌─────────────────┬───────────┬─────────┬────────────────────────────────┐
33
+ * │ Visible Boundary│ Has Radius│ Padding │ Action │
34
+ * ├─────────────────┼───────────┼─────────┼────────────────────────────────┤
35
+ * │ Yes (bg/border) │ Yes │ Any │ SET: max(floor, R_outer − P) │
36
+ * │ Yes (bg/border) │ No │ Any │ RESET: 0px (sharp = reference) │
37
+ * │ No (transparent)│ — │ Any │ PASS THROUGH (CSS inheritance) │
38
+ * └─────────────────┴───────────┴─────────┴────────────────────────────────┘
39
+ *
40
+ * "Visible Boundary" = element has a background color or border that creates
41
+ * a visible edge. In Shavin primitives, `translucent=true` creates this.
42
+ * In Studio, any node with a bgColor/border prop set counts.
43
+ *
44
+ * EXAMPLES:
45
+ *
46
+ * Card [r=32, bg, p-5] > Flex [no bg, no r, no p] > Image [concentric]
47
+ * Card SETs: inner = max(floor, 32−20) = 12px
48
+ * Flex: transparent, no padding → PASS THROUGH
49
+ * Image reads 12px ✓
50
+ *
51
+ * Card [r=32, bg, p-5] > Flex [bg, NO r, p-3] > Image [concentric]
52
+ * Card SETs: inner = max(floor, 32−20) = 12px
53
+ * Flex: has visible boundary (bg) but NO radius → RESET to 0px
54
+ * Image reads 0px (sharp, matching Flex's sharp corners) ✓
55
+ *
56
+ * Card [r=16, p-5] > Card [p-4] > Image [concentric]
57
+ * Outer Card SETs: inner = max(floor, 16−20) = floor (8px at medium)
58
+ * Inner Card reads its outer radius from the parent (CardContext): 8px,
59
+ * and SETs: inner = max(floor, 8−16) = floor
60
+ * Image reads the floor ✓ (no CSS cycle: the maths is a string built in JS)
61
+ *
62
+ * A transparent element with padding does NOT compound in CSS: a custom
63
+ * property cannot subtract from its own inherited value (that is a cycle and
64
+ * resolves to nothing). Put the padding on the visible container instead.
65
+ *
66
+ * FALLBACK: When no ancestor sets the variable, `:root` defines
67
+ * --radius-panel-inner = var(--radius-panel) (no subtraction). The
68
+ * concentric element resolves to plain panel radius — safe but the user
69
+ * should be warned that no container reference exists.
70
+ *
71
+ * ═══════════════════════════════════════════════════════════════════════════
72
+ * STUDIO INTEGRATION (tree intelligence, future)
73
+ * ═══════════════════════════════════════════════════════════════════════════
74
+ * When Studio's tree renderer encounters a node with:
75
+ * - bgColor or border prop + radius prop → apply concentricContainerStyle()
76
+ * - bgColor or border prop but NO radius → apply data-concentric-reset
77
+ * - padding prop, no bgColor/border → pass through (a custom property
78
+ * cannot subtract from its own inherited value without a CSS cycle; nest a
79
+ * Card instead, which computes its radius from its parent's in JS)
80
+ * - neither → do nothing (pass through)
81
+ *
82
+ * The CSS rule [data-concentric-reset] in global.css handles the reset case
83
+ * for arbitrary elements that aren't Shavin primitives (raw divs in Studio).
84
+ */
85
+
86
+ /**
87
+ * Converts a Card padding variant ("none"|"xs"|"sm"|"md"|"lg"|"xl"|"2xl"|"3xl")
88
+ * into the corresponding Tailwind padding scale token ("0"|"2"|"4"|"5"|"6"|"8"|"10"|"12").
89
+ */
90
+ declare function cardPaddingToScale(padding?: string | null): string | null;
91
+ /** Options for {@link concentricContainerStyle} and {@link concentricRadius}. */
92
+ interface ConcentricOptions {
93
+ /** The container's own outer radius as a CSS expression. Default `var(--radius-panel)`. A nested
94
+ * Card passes its parent's inner radius so the chain stays concentric. */
95
+ outer?: string;
96
+ /** The container draws a 1px border. With no padding the child sits inside that border, so its
97
+ * radius is `outer − 1px` (never below 0). */
98
+ border?: boolean;
99
+ }
100
+ /**
101
+ * The concentric inner radius as a CSS expression: `max(<floor>, calc(<outer> − <pad>))`, or, with
102
+ * no padding, the outer radius itself (minus the 1px border when there is one). Pure string maths:
103
+ * no custom property reads its own value, so there is no CSS cycle.
104
+ *
105
+ * @param paddingScale Tailwind padding token ("0", "1", "3", "4", "5", ...). Unknown tokens → null.
106
+ */
107
+ declare function concentricRadius(paddingScale: string | null | undefined, opts?: ConcentricOptions): string | null;
108
+ /**
109
+ * Rule 1 — SET: Computes the CSS style for a VISIBLE BOUNDARY element that
110
+ * HAS radius (bg/border + rounded). This is the primary visual reference.
111
+ *
112
+ * `--radius-panel-inner = max(<floor>, calc(var(--radius-panel) - <pad>rem))`
113
+ * (see CONCENTRIC_FLOOR — never square unless the theme radius is 0).
114
+ * With no padding (Card `padding="none"`), the inner radius is the outer one
115
+ * (minus the border), so flush children follow the container's own corners
116
+ * instead of inheriting a value from some ancestor.
117
+ *
118
+ * The container is the new visual reference — the nearest visible boundary
119
+ * with radius wins. Descendants with `radius="concentric"` read this value.
120
+ *
121
+ * @param paddingScale Tailwind padding token ("0", "3", "4", "5", "6", "8", etc.) or Card padding variant
122
+ * @param isCardPadding When true, `paddingScale` is treated as a Card variant ("none", "sm", "md", etc.)
123
+ * @param opts Outer radius and border (see {@link ConcentricOptions})
124
+ * @returns CSSProperties with `--radius-panel-inner` set, or an empty object for an unknown token
125
+ */
126
+ declare function concentricContainerStyle(paddingScale?: string | null, isCardPadding?: boolean, opts?: ConcentricOptions): CSSProperties;
127
+ /**
128
+ * The padding a container really has, read from its className, as a Tailwind scale token. The
129
+ * translucent Box/Flex/Grid/Section take their padding from className (there is no padding prop),
130
+ * so the concentric inner radius must come from there, not from a guess. Only unprefixed
131
+ * utilities count (`p-6`, `px-4 py-8`); responsive or state variants (`md:p-8`) are ignored. The
132
+ * corner gap is the smaller of the horizontal and vertical padding.
133
+ *
134
+ * @returns the token ("0", "4", "6", ...) or "0" when no padding utility is present.
135
+ */
136
+ declare function paddingScaleFromClassName(className?: string | null): string;
137
+ /**
138
+ * Rule 2 — RESET: Computes the CSS style for a VISIBLE BOUNDARY element that
139
+ * has NO radius (has bg/border but sharp corners). This element becomes the
140
+ * new visual reference with R=0 — any concentric descendant must align to
141
+ * these sharp corners, NOT skip past to a grandparent's rounded corners.
142
+ *
143
+ * `--radius-panel-inner = 0px`
144
+ *
145
+ * It is used by Studio tree intelligence (bg-without-radius on arbitrary
146
+ * nodes), the CSS rule `[data-concentric-reset]` in global.css for raw
147
+ * elements, and any component that has a bg but deliberately no radius.
148
+ *
149
+ * @param _paddingScale Ignored (R_outer = 0, so the result is 0px). Kept for API symmetry.
150
+ * @returns CSSProperties with `--radius-panel-inner` set to 0px
151
+ */
152
+ declare function concentricBoundaryResetStyle(_paddingScale?: string | null): CSSProperties;
153
+ /**
154
+ * Merges concentric container style into an existing style object.
155
+ * If the caller already has a `--radius-panel-inner` in their style (edge case),
156
+ * the computed value takes precedence.
157
+ */
158
+ declare function withConcentricStyle(baseStyle: CSSProperties | undefined, concentricStyle: CSSProperties): CSSProperties;
159
+
160
+ /**
161
+ * Surface contrast scoping — resolves a `surface` prop into a data attribute.
162
+ *
163
+ * The `surface` prop is a **content-readability intent**, not a literal CSS
164
+ * class directive. There are four modes, split into two behaviours:
165
+ *
166
+ * **Auto-inverting** (creates a contrast band against the page):
167
+ * - `surface="dark"` → dark tokens on light page; **inverts** to light on dark page
168
+ * - `surface="light"` → light tokens on light page; **inverts** to dark on dark page
169
+ *
170
+ * **Always** (locked regardless of page theme — use for media backgrounds):
171
+ * - `surface="dark-always"` → dark tokens on both light and dark pages
172
+ * - `surface="light-always"` → light tokens on both light and dark pages
173
+ *
174
+ * Use `dark` / `light` when the section should visually contrast against the
175
+ * page (e.g. a solid surface card). Use `dark-always` / `light-always` when
176
+ * the background media (video/image) is always dark or always light,
177
+ * regardless of the page theme — the text must stay readable against the
178
+ * media, not against the page.
179
+ *
180
+ * The intent is resolved by CSS rules in `global.css` that key off
181
+ * `[data-surface]` + `:root.dark` / `:root:not(.dark)`. CSS handles
182
+ * reactivity automatically — no JS re-render is needed when the user
183
+ * toggles dark mode.
184
+ *
185
+ * The primitives set `data-surface={surface}` on the DOM element. The CSS
186
+ * rules in `global.css` map this attribute to the appropriate contrast token
187
+ * set based on the page theme.
188
+ */
189
+ type Surface = "dark" | "light" | "dark-always" | "light-always" | undefined;
190
+ /**
191
+ * Resolve a `surface` prop value into a CSS class name.
192
+ *
193
+ * Returns `undefined` — surface scoping is now handled entirely via the
194
+ * `data-surface` attribute and CSS rules. This function is kept for backward
195
+ * compatibility (some primitives still call it in their `cn()` chain) but it
196
+ * no longer contributes a class. The `data-surface` attribute set directly
197
+ * by each primitive is the sole driver of surface contrast scoping.
198
+ */
199
+ declare function surfaceClass(surface: Surface): string | undefined;
200
+
201
+ /**
202
+ * @shavin/ui Master Design System Metadata & Statistics
203
+ * AUTO-GENERATED by scripts/gen-manifest.mjs — DO NOT EDIT DIRECTLY.
204
+ * Run `npm run manifest:gen` to regenerate.
205
+ */
206
+ declare const SHAVIN_META: {
207
+ readonly version: "0.1.0";
208
+ readonly primitiveCount: 94;
209
+ /** Every tool in the registry. A plain install lists fewer until a Studio session or bridge tab connects (see tool-visibility). */
210
+ readonly mcpToolCount: 36;
211
+ /** Page and section compositions in the layout-compositions skill. */
212
+ readonly compositionCount: 57;
213
+ /** Theme presets in THEME_PRESETS (not the brand colours). */
214
+ readonly themePresetCount: 9;
215
+ readonly skillCount: 9;
216
+ /** Skills a project gets (skillCount minus the maintainer-only ones in packages/skills/internal.json). */
217
+ readonly consumerSkillCount: 7;
218
+ /** Slash commands a project gets (packages/skills/commands). */
219
+ readonly commandCount: 9;
220
+ readonly blockCount: 59;
221
+ readonly manifestCount: 2;
222
+ readonly tokenPurityTarget: 100;
223
+ readonly mcpTools: readonly ["audit_source", "autofix_code", "await_finding", "check_page", "clear_studio_canvas", "compose_to_canvas", "connect_studio", "disconnect_studio", "duplicate_frame", "export_frame", "get_block_template", "get_components", "get_guidelines", "get_live_audit", "get_project_context", "get_setup_instructions", "get_skill", "get_skill_mode", "get_studio_schema", "get_studio_state", "get_tokens", "inject_blocks", "inspect_environment", "install_skills", "list_commands", "list_findings", "list_skills", "plan_page", "render_check", "resize_frame", "set_studio_theme", "shavin_steer", "synthesize_layout", "trigger_live_rescan", "validate_code", "wait_for_live_clean"];
224
+ readonly skills: readonly [{
225
+ readonly name: "layout-choreography";
226
+ readonly desc: "Scene-based, awwwards-style choreographed motion for web pages (Tier 2) — pinned scrollytelling, scroll-scrubbed timelines, horizontal-scroll sections, split...";
227
+ }, {
228
+ readonly name: "layout-compositions";
229
+ readonly desc: "A library of 57 website section and page layout compositions (structural, hero, features, proof, conversion, gallery, editorial, documentation, expressive) w...";
230
+ }, {
231
+ readonly name: "layout-motion";
232
+ readonly desc: "Clean, smooth, restrained motion for web layouts (Tier 1) — motion tokens (durations, easings, distances, stagger), scroll reveals, hover and press states, t...";
233
+ }, {
234
+ readonly name: "shavin-app";
235
+ readonly desc: "Guides the architecture, layout partitioning, interaction patterns, state management, and implementation of SaaS web applications, dashboards, AI chat tools,...";
236
+ }, {
237
+ readonly name: "shavin-core";
238
+ readonly desc: "Decides which Shavin skill fires for a request, reads the SHAVIN.md site and mode defaults, explains how skills reference MCP tools with a no-MCP fallback, a...";
239
+ }, {
240
+ readonly name: "shavin-studio";
241
+ readonly desc: "Rules for designing live in Shavin Studio through the MCP: only when a Studio session is connected (connect_studio) and you build BlockNode trees for the can...";
242
+ }, {
243
+ readonly name: "shavin-ui-qa-linter";
244
+ readonly desc: "Runs automated design-system QA, token enforcement linting, accessibility audits, setup verification, and visual regression checks for @shavin/ui.";
245
+ }, {
246
+ readonly name: "shavin-webpage";
247
+ readonly desc: "Guides the architecture, visual composition, layout design, and implementation of marketing pages, landing pages, documentation portals, editorial showcases,...";
248
+ }, {
249
+ readonly name: "visual-compositor";
250
+ readonly desc: "Precise structural and spatial composition rules for web pages and web apps.";
251
+ }];
252
+ };
253
+ type ShavinMeta = typeof SHAVIN_META;
254
+ type ShavinMcpTool = (typeof SHAVIN_META.mcpTools)[number];
255
+
256
+ export { SHAVIN_META, type ShavinMcpTool, type ShavinMeta, type Surface, cardPaddingToScale, cn, concentricBoundaryResetStyle, concentricContainerStyle, concentricRadius, paddingScaleFromClassName, surfaceClass, withConcentricStyle };
package/dist/server.js ADDED
@@ -0,0 +1,22 @@
1
+ import { cn } from "./lib/cn.js";
2
+ import {
3
+ concentricContainerStyle,
4
+ concentricRadius,
5
+ paddingScaleFromClassName,
6
+ concentricBoundaryResetStyle,
7
+ withConcentricStyle,
8
+ cardPaddingToScale
9
+ } from "./lib/concentric.js";
10
+ import { surfaceClass } from "./lib/surface.js";
11
+ import { SHAVIN_META } from "./lib/meta.js";
12
+ export {
13
+ SHAVIN_META,
14
+ cardPaddingToScale,
15
+ cn,
16
+ concentricBoundaryResetStyle,
17
+ concentricContainerStyle,
18
+ concentricRadius,
19
+ paddingScaleFromClassName,
20
+ surfaceClass,
21
+ withConcentricStyle
22
+ };
@@ -0,0 +1,124 @@
1
+ /* src/styles/base-oklch.css */
2
+ html,
3
+ body {
4
+ height: 100%;
5
+ }
6
+ body {
7
+ background: var(--bg-canvas);
8
+ color: var(--fg);
9
+ font-family:
10
+ var(--font-body),
11
+ ui-sans-serif,
12
+ system-ui,
13
+ sans-serif;
14
+ font-size: 0.875rem;
15
+ line-height: 1.25rem;
16
+ font-feature-settings: "ss01", "cv01";
17
+ -webkit-font-smoothing: antialiased;
18
+ text-rendering: optimizeLegibility;
19
+ }
20
+ *:focus-visible {
21
+ outline: var(--focus-width, 1px) solid var(--focus);
22
+ outline-offset: var(--focus-offset, 2px);
23
+ }
24
+ [role^=menuitem]:focus-visible,
25
+ [role=option]:focus-visible {
26
+ outline: none;
27
+ }
28
+ :where(input, textarea, select):focus-visible {
29
+ outline-offset: var(--focus-offset-inset, -1px);
30
+ }
31
+ ::selection {
32
+ background: color-mix(in oklch, var(--brand), transparent 80%);
33
+ }
34
+ * {
35
+ scrollbar-width: thin;
36
+ scrollbar-color: var(--hairline) transparent;
37
+ }
38
+ pre::-webkit-scrollbar {
39
+ height: 6px;
40
+ width: 6px;
41
+ }
42
+ pre::-webkit-scrollbar-track {
43
+ background: transparent;
44
+ }
45
+ pre::-webkit-scrollbar-thumb {
46
+ background: rgba(148, 163, 184, 0.3);
47
+ border-radius: 9999px;
48
+ }
49
+ pre::-webkit-scrollbar-thumb:hover {
50
+ background: rgba(148, 163, 184, 0.5);
51
+ }
52
+ pre {
53
+ scrollbar-width: thin;
54
+ scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
55
+ }
56
+ :root {
57
+ --tap-min: 24px;
58
+ --tap-min-touch: 44px;
59
+ }
60
+ [data-touch-targets=comfortable] {
61
+ --tap-min-touch: 44px;
62
+ }
63
+ [data-touch-targets=compact] {
64
+ --tap-min-touch: var(--tap-min, 24px);
65
+ }
66
+ :where(.hit-area, .hit-area-touch) {
67
+ position: relative;
68
+ --hit-min: var(--tap-min, 24px);
69
+ }
70
+ :where(.hit-area, .hit-area-touch)::after {
71
+ content: "";
72
+ position: absolute;
73
+ top: 50%;
74
+ left: 50%;
75
+ width: max(100%, var(--hit-min));
76
+ height: max(100%, var(--hit-min));
77
+ transform: translate(-50%, -50%);
78
+ }
79
+ @media (pointer: coarse) {
80
+ :where(.hit-area-touch) {
81
+ --hit-min: max(var(--tap-min, 24px), var(--tap-min-touch, 44px));
82
+ }
83
+ :where(.hit-area-touch.hit-area-force) {
84
+ --hit-min: max(var(--tap-min-touch, 44px), 44px);
85
+ }
86
+ :where(.hit-area-input) {
87
+ min-height: var(--tap-min-touch, 44px);
88
+ }
89
+ :where(.hit-area-input.hit-area-force) {
90
+ min-height: max(var(--tap-min-touch, 44px), 44px);
91
+ }
92
+ }
93
+ :where(.hit-area-none)::after {
94
+ position: revert;
95
+ top: revert;
96
+ left: revert;
97
+ width: revert;
98
+ height: revert;
99
+ transform: revert;
100
+ content: revert;
101
+ }
102
+ :where(.hit-area-none) {
103
+ min-height: revert;
104
+ }
105
+ @supports (animation-timeline: view()) {
106
+ @media (prefers-reduced-motion: no-preference) {
107
+ @keyframes shavin-reveal {
108
+ from {
109
+ opacity: 0;
110
+ translate: 0 var(--reveal-distance, 0.75rem);
111
+ }
112
+ to {
113
+ opacity: 1;
114
+ translate: 0 0;
115
+ }
116
+ }
117
+ section[data-composition]:not([data-composition=none]) :is(h1, h2, h3):not(:is([data-reveal=off], [data-reveal=off] *)),
118
+ [data-reveal]:not([data-reveal=off]):not([data-reveal=off] *) {
119
+ animation: shavin-reveal linear forwards;
120
+ animation-timeline: view();
121
+ animation-range: entry 0% entry 40%;
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,124 @@
1
+ /* src/styles/base.css */
2
+ html,
3
+ body {
4
+ height: 100%;
5
+ }
6
+ body {
7
+ background: rgb(var(--bg-canvas));
8
+ color: rgb(var(--fg));
9
+ font-family:
10
+ var(--font-body),
11
+ ui-sans-serif,
12
+ system-ui,
13
+ sans-serif;
14
+ font-size: 0.875rem;
15
+ line-height: 1.25rem;
16
+ font-feature-settings: "ss01", "cv01";
17
+ -webkit-font-smoothing: antialiased;
18
+ text-rendering: optimizeLegibility;
19
+ }
20
+ *:focus-visible {
21
+ outline: var(--focus-width, 1px) solid rgb(var(--focus));
22
+ outline-offset: var(--focus-offset, 2px);
23
+ }
24
+ [role^=menuitem]:focus-visible,
25
+ [role=option]:focus-visible {
26
+ outline: none;
27
+ }
28
+ :where(input, textarea, select):focus-visible {
29
+ outline-offset: var(--focus-offset-inset, -1px);
30
+ }
31
+ ::selection {
32
+ background: rgb(var(--brand) / 0.2);
33
+ }
34
+ * {
35
+ scrollbar-width: thin;
36
+ scrollbar-color: rgb(var(--hairline)) transparent;
37
+ }
38
+ pre::-webkit-scrollbar {
39
+ height: 6px;
40
+ width: 6px;
41
+ }
42
+ pre::-webkit-scrollbar-track {
43
+ background: transparent;
44
+ }
45
+ pre::-webkit-scrollbar-thumb {
46
+ background: rgba(148, 163, 184, 0.3);
47
+ border-radius: 9999px;
48
+ }
49
+ pre::-webkit-scrollbar-thumb:hover {
50
+ background: rgba(148, 163, 184, 0.5);
51
+ }
52
+ pre {
53
+ scrollbar-width: thin;
54
+ scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
55
+ }
56
+ :root {
57
+ --tap-min: 24px;
58
+ --tap-min-touch: 44px;
59
+ }
60
+ [data-touch-targets=comfortable] {
61
+ --tap-min-touch: 44px;
62
+ }
63
+ [data-touch-targets=compact] {
64
+ --tap-min-touch: var(--tap-min, 24px);
65
+ }
66
+ :where(.hit-area, .hit-area-touch) {
67
+ position: relative;
68
+ --hit-min: var(--tap-min, 24px);
69
+ }
70
+ :where(.hit-area, .hit-area-touch)::after {
71
+ content: "";
72
+ position: absolute;
73
+ top: 50%;
74
+ left: 50%;
75
+ width: max(100%, var(--hit-min));
76
+ height: max(100%, var(--hit-min));
77
+ transform: translate(-50%, -50%);
78
+ }
79
+ @media (pointer: coarse) {
80
+ :where(.hit-area-touch) {
81
+ --hit-min: max(var(--tap-min, 24px), var(--tap-min-touch, 44px));
82
+ }
83
+ :where(.hit-area-touch.hit-area-force) {
84
+ --hit-min: max(var(--tap-min-touch, 44px), 44px);
85
+ }
86
+ :where(.hit-area-input) {
87
+ min-height: var(--tap-min-touch, 44px);
88
+ }
89
+ :where(.hit-area-input.hit-area-force) {
90
+ min-height: max(var(--tap-min-touch, 44px), 44px);
91
+ }
92
+ }
93
+ :where(.hit-area-none)::after {
94
+ position: revert;
95
+ top: revert;
96
+ left: revert;
97
+ width: revert;
98
+ height: revert;
99
+ transform: revert;
100
+ content: revert;
101
+ }
102
+ :where(.hit-area-none) {
103
+ min-height: revert;
104
+ }
105
+ @supports (animation-timeline: view()) {
106
+ @media (prefers-reduced-motion: no-preference) {
107
+ @keyframes shavin-reveal {
108
+ from {
109
+ opacity: 0;
110
+ translate: 0 var(--reveal-distance, 0.75rem);
111
+ }
112
+ to {
113
+ opacity: 1;
114
+ translate: 0 0;
115
+ }
116
+ }
117
+ section[data-composition]:not([data-composition=none]) :is(h1, h2, h3):not(:is([data-reveal=off], [data-reveal=off] *)),
118
+ [data-reveal]:not([data-reveal=off]):not([data-reveal=off] *) {
119
+ animation: shavin-reveal linear forwards;
120
+ animation-timeline: view();
121
+ animation-range: entry 0% entry 40%;
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,22 @@
1
+ // ════════════════════════════════════════════════════════════════════════
2
+ // AUTO-GENERATED by @shavin/cli brand — DO NOT EDIT.
3
+ // Regenerated on every `npm run dev` (predev) or `npm run brand:gen`.
4
+ //
5
+ // Add this to your tailwind.config.ts presets array:
6
+ // import shavinPreset from "@shavin/ui/tailwind-preset";
7
+ // import brandPreset from "./brand-preset.mjs";
8
+ // export default { presets: [shavinPreset, brandPreset], /* ... */ };
9
+ // ════════════════════════════════════════════════════════════════════════
10
+
11
+ /** @type {import('tailwindcss').Config} */
12
+ var brandPreset = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ /* (no brand colors defined yet — add hex values in brand-tokens.css) */
17
+ },
18
+ },
19
+ },
20
+ };
21
+
22
+ export { brandPreset as default };
@@ -0,0 +1,13 @@
1
+ // src/styles/brand-preset.mjs
2
+ var brand_preset_default = {
3
+ theme: {
4
+ extend: {
5
+ colors: {
6
+ /* (no brand colors defined yet — add hex values in brand-tokens.css) */
7
+ }
8
+ }
9
+ }
10
+ };
11
+ export {
12
+ brand_preset_default as default
13
+ };
@@ -0,0 +1,2 @@
1
+ /* src/styles/brand-theme-v4-oklch.css */
2
+ @theme inline {}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+ /* src/styles/brand-theme-v4.css */
2
+ @theme inline {}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,6 @@
1
+ /* src/styles/brand-tokens-oklch.css */
2
+ :root,
3
+ .light {
4
+ }
5
+ .dark {
6
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,6 @@
1
+ /* src/styles/brand-tokens.css */
2
+ :root,
3
+ .light {
4
+ }
5
+ .dark {
6
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { }