@ecoma-io/loom 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 (259) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +180 -0
  3. package/dist/a11y.d.ts +2 -0
  4. package/dist/a11y.d.ts.map +1 -0
  5. package/dist/a11y.js +2 -0
  6. package/dist/blocks/AppHeader/AppHeader.js +7 -0
  7. package/dist/blocks/AppHeader/AppHeader.js.map +1 -0
  8. package/dist/blocks/AppHeader/AppHeader.vue.d.ts +83 -0
  9. package/dist/blocks/AppHeader/AppHeader.vue.d.ts.map +1 -0
  10. package/dist/blocks/AppHeader/AppHeader.vue_vue_type_script_setup_true_lang.js +96 -0
  11. package/dist/blocks/AppHeader/AppHeader.vue_vue_type_script_setup_true_lang.js.map +1 -0
  12. package/dist/blocks/DashboardGrid/DashboardGrid.js +7 -0
  13. package/dist/blocks/DashboardGrid/DashboardGrid.js.map +1 -0
  14. package/dist/blocks/DashboardGrid/DashboardGrid.vue.d.ts +42 -0
  15. package/dist/blocks/DashboardGrid/DashboardGrid.vue.d.ts.map +1 -0
  16. package/dist/blocks/DashboardGrid/DashboardGrid.vue_vue_type_script_setup_true_lang.js +45 -0
  17. package/dist/blocks/DashboardGrid/DashboardGrid.vue_vue_type_script_setup_true_lang.js.map +1 -0
  18. package/dist/blocks/EmptyState/EmptyState.js +7 -0
  19. package/dist/blocks/EmptyState/EmptyState.js.map +1 -0
  20. package/dist/blocks/EmptyState/EmptyState.vue.d.ts +50 -0
  21. package/dist/blocks/EmptyState/EmptyState.vue.d.ts.map +1 -0
  22. package/dist/blocks/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js +71 -0
  23. package/dist/blocks/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js.map +1 -0
  24. package/dist/blocks/PageHeader/PageHeader.js +7 -0
  25. package/dist/blocks/PageHeader/PageHeader.js.map +1 -0
  26. package/dist/blocks/PageHeader/PageHeader.vue.d.ts +54 -0
  27. package/dist/blocks/PageHeader/PageHeader.vue.d.ts.map +1 -0
  28. package/dist/blocks/PageHeader/PageHeader.vue_vue_type_script_setup_true_lang.js +68 -0
  29. package/dist/blocks/PageHeader/PageHeader.vue_vue_type_script_setup_true_lang.js.map +1 -0
  30. package/dist/blocks/RowActions/RowActions.js +7 -0
  31. package/dist/blocks/RowActions/RowActions.js.map +1 -0
  32. package/dist/blocks/RowActions/RowActions.vue.d.ts +14 -0
  33. package/dist/blocks/RowActions/RowActions.vue.d.ts.map +1 -0
  34. package/dist/blocks/RowActions/RowActions.vue_vue_type_script_setup_true_lang.js +47 -0
  35. package/dist/blocks/RowActions/RowActions.vue_vue_type_script_setup_true_lang.js.map +1 -0
  36. package/dist/blocks/SidebarNav/SidebarNav.js +7 -0
  37. package/dist/blocks/SidebarNav/SidebarNav.js.map +1 -0
  38. package/dist/blocks/SidebarNav/SidebarNav.vue.d.ts +40 -0
  39. package/dist/blocks/SidebarNav/SidebarNav.vue.d.ts.map +1 -0
  40. package/dist/blocks/SidebarNav/SidebarNav.vue_vue_type_script_setup_true_lang.js +125 -0
  41. package/dist/blocks/SidebarNav/SidebarNav.vue_vue_type_script_setup_true_lang.js.map +1 -0
  42. package/dist/blocks/TitleBar/TitleBar.js +7 -0
  43. package/dist/blocks/TitleBar/TitleBar.js.map +1 -0
  44. package/dist/blocks/TitleBar/TitleBar.vue.d.ts +49 -0
  45. package/dist/blocks/TitleBar/TitleBar.vue.d.ts.map +1 -0
  46. package/dist/blocks/TitleBar/TitleBar.vue_vue_type_script_setup_true_lang.js +66 -0
  47. package/dist/blocks/TitleBar/TitleBar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  48. package/dist/blocks/ToastStack/ToastStack.js +7 -0
  49. package/dist/blocks/ToastStack/ToastStack.js.map +1 -0
  50. package/dist/blocks/ToastStack/ToastStack.vue.d.ts +24 -0
  51. package/dist/blocks/ToastStack/ToastStack.vue.d.ts.map +1 -0
  52. package/dist/blocks/ToastStack/ToastStack.vue_vue_type_script_setup_true_lang.js +38 -0
  53. package/dist/blocks/ToastStack/ToastStack.vue_vue_type_script_setup_true_lang.js.map +1 -0
  54. package/dist/icons/BrandMark.d.ts +18 -0
  55. package/dist/icons/BrandMark.d.ts.map +1 -0
  56. package/dist/icons/BrandMark.js +47 -0
  57. package/dist/icons/BrandMark.js.map +1 -0
  58. package/dist/index.d.ts +75 -0
  59. package/dist/index.d.ts.map +1 -0
  60. package/dist/index.js +46 -0
  61. package/dist/lib/a11y-scope.d.ts +19 -0
  62. package/dist/lib/a11y-scope.d.ts.map +1 -0
  63. package/dist/lib/a11y-scope.js +28 -0
  64. package/dist/lib/a11y-scope.js.map +1 -0
  65. package/dist/lib/attrs.d.ts +18 -0
  66. package/dist/lib/attrs.d.ts.map +1 -0
  67. package/dist/lib/attrs.js +28 -0
  68. package/dist/lib/attrs.js.map +1 -0
  69. package/dist/lib/cn.d.ts +9 -0
  70. package/dist/lib/cn.d.ts.map +1 -0
  71. package/dist/lib/cn.js +16 -0
  72. package/dist/lib/cn.js.map +1 -0
  73. package/dist/lib/icon-defaults.d.ts +22 -0
  74. package/dist/lib/icon-defaults.d.ts.map +1 -0
  75. package/dist/lib/icon-defaults.js +32 -0
  76. package/dist/lib/icon-defaults.js.map +1 -0
  77. package/dist/lib/motion.d.ts +14 -0
  78. package/dist/lib/motion.d.ts.map +1 -0
  79. package/dist/lib/motion.js +20 -0
  80. package/dist/lib/motion.js.map +1 -0
  81. package/dist/lib/props.d.ts +31 -0
  82. package/dist/lib/props.d.ts.map +1 -0
  83. package/dist/lib/props.js +37 -0
  84. package/dist/lib/props.js.map +1 -0
  85. package/dist/primitives/Avatar/Avatar.js +7 -0
  86. package/dist/primitives/Avatar/Avatar.js.map +1 -0
  87. package/dist/primitives/Avatar/Avatar.vue.d.ts +27 -0
  88. package/dist/primitives/Avatar/Avatar.vue.d.ts.map +1 -0
  89. package/dist/primitives/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +33 -0
  90. package/dist/primitives/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  91. package/dist/primitives/Badge/Badge.js +7 -0
  92. package/dist/primitives/Badge/Badge.js.map +1 -0
  93. package/dist/primitives/Badge/Badge.vue.d.ts +27 -0
  94. package/dist/primitives/Badge/Badge.vue.d.ts.map +1 -0
  95. package/dist/primitives/Badge/Badge.vue_vue_type_script_setup_true_lang.js +30 -0
  96. package/dist/primitives/Badge/Badge.vue_vue_type_script_setup_true_lang.js.map +1 -0
  97. package/dist/primitives/Button/Button.js +7 -0
  98. package/dist/primitives/Button/Button.js.map +1 -0
  99. package/dist/primitives/Button/Button.vue.d.ts +70 -0
  100. package/dist/primitives/Button/Button.vue.d.ts.map +1 -0
  101. package/dist/primitives/Button/Button.vue_vue_type_script_setup_true_lang.js +122 -0
  102. package/dist/primitives/Button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -0
  103. package/dist/primitives/Checkbox/Checkbox.js +7 -0
  104. package/dist/primitives/Checkbox/Checkbox.js.map +1 -0
  105. package/dist/primitives/Checkbox/Checkbox.vue.d.ts +34 -0
  106. package/dist/primitives/Checkbox/Checkbox.vue.d.ts.map +1 -0
  107. package/dist/primitives/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +94 -0
  108. package/dist/primitives/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -0
  109. package/dist/primitives/Dialog/Dialog.js +7 -0
  110. package/dist/primitives/Dialog/Dialog.js.map +1 -0
  111. package/dist/primitives/Dialog/Dialog.vue.d.ts +58 -0
  112. package/dist/primitives/Dialog/Dialog.vue.d.ts.map +1 -0
  113. package/dist/primitives/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js +88 -0
  114. package/dist/primitives/Dialog/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
  115. package/dist/primitives/DropdownMenu/DropdownMenu.js +7 -0
  116. package/dist/primitives/DropdownMenu/DropdownMenu.js.map +1 -0
  117. package/dist/primitives/DropdownMenu/DropdownMenu.vue.d.ts +55 -0
  118. package/dist/primitives/DropdownMenu/DropdownMenu.vue.d.ts.map +1 -0
  119. package/dist/primitives/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js +82 -0
  120. package/dist/primitives/DropdownMenu/DropdownMenu.vue_vue_type_script_setup_true_lang.js.map +1 -0
  121. package/dist/primitives/Field/Field.js +7 -0
  122. package/dist/primitives/Field/Field.js.map +1 -0
  123. package/dist/primitives/Field/Field.vue.d.ts +53 -0
  124. package/dist/primitives/Field/Field.vue.d.ts.map +1 -0
  125. package/dist/primitives/Field/Field.vue_vue_type_script_setup_true_lang.js +84 -0
  126. package/dist/primitives/Field/Field.vue_vue_type_script_setup_true_lang.js.map +1 -0
  127. package/dist/primitives/InlineError/InlineError.js +7 -0
  128. package/dist/primitives/InlineError/InlineError.js.map +1 -0
  129. package/dist/primitives/InlineError/InlineError.vue.d.ts +32 -0
  130. package/dist/primitives/InlineError/InlineError.vue.d.ts.map +1 -0
  131. package/dist/primitives/InlineError/InlineError.vue_vue_type_script_setup_true_lang.js +44 -0
  132. package/dist/primitives/InlineError/InlineError.vue_vue_type_script_setup_true_lang.js.map +1 -0
  133. package/dist/primitives/Menubar/Menubar.js +7 -0
  134. package/dist/primitives/Menubar/Menubar.js.map +1 -0
  135. package/dist/primitives/Menubar/Menubar.vue.d.ts +41 -0
  136. package/dist/primitives/Menubar/Menubar.vue.d.ts.map +1 -0
  137. package/dist/primitives/Menubar/Menubar.vue_vue_type_script_setup_true_lang.js +184 -0
  138. package/dist/primitives/Menubar/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  139. package/dist/primitives/NumberField/NumberField.js +7 -0
  140. package/dist/primitives/NumberField/NumberField.js.map +1 -0
  141. package/dist/primitives/NumberField/NumberField.vue.d.ts +47 -0
  142. package/dist/primitives/NumberField/NumberField.vue.d.ts.map +1 -0
  143. package/dist/primitives/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +204 -0
  144. package/dist/primitives/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js.map +1 -0
  145. package/dist/primitives/Popover/Popover.js +7 -0
  146. package/dist/primitives/Popover/Popover.js.map +1 -0
  147. package/dist/primitives/Popover/Popover.vue.d.ts +61 -0
  148. package/dist/primitives/Popover/Popover.vue.d.ts.map +1 -0
  149. package/dist/primitives/Popover/Popover.vue_vue_type_script_setup_true_lang.js +59 -0
  150. package/dist/primitives/Popover/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -0
  151. package/dist/primitives/Progress/Progress.js +7 -0
  152. package/dist/primitives/Progress/Progress.js.map +1 -0
  153. package/dist/primitives/Progress/Progress.vue.d.ts +30 -0
  154. package/dist/primitives/Progress/Progress.vue.d.ts.map +1 -0
  155. package/dist/primitives/Progress/Progress.vue_vue_type_script_setup_true_lang.js +67 -0
  156. package/dist/primitives/Progress/Progress.vue_vue_type_script_setup_true_lang.js.map +1 -0
  157. package/dist/primitives/RadioGroup/RadioGroup.js +7 -0
  158. package/dist/primitives/RadioGroup/RadioGroup.js.map +1 -0
  159. package/dist/primitives/RadioGroup/RadioGroup.vue.d.ts +39 -0
  160. package/dist/primitives/RadioGroup/RadioGroup.vue.d.ts.map +1 -0
  161. package/dist/primitives/RadioGroup/RadioGroup.vue_vue_type_script_setup_true_lang.js +63 -0
  162. package/dist/primitives/RadioGroup/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
  163. package/dist/primitives/SegmentedControl/SegmentedControl.js +7 -0
  164. package/dist/primitives/SegmentedControl/SegmentedControl.js.map +1 -0
  165. package/dist/primitives/SegmentedControl/SegmentedControl.vue.d.ts +40 -0
  166. package/dist/primitives/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -0
  167. package/dist/primitives/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js +89 -0
  168. package/dist/primitives/SegmentedControl/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -0
  169. package/dist/primitives/Select/Select.js +7 -0
  170. package/dist/primitives/Select/Select.js.map +1 -0
  171. package/dist/primitives/Select/Select.vue.d.ts +56 -0
  172. package/dist/primitives/Select/Select.vue.d.ts.map +1 -0
  173. package/dist/primitives/Select/Select.vue_vue_type_script_setup_true_lang.js +122 -0
  174. package/dist/primitives/Select/Select.vue_vue_type_script_setup_true_lang.js.map +1 -0
  175. package/dist/primitives/Separator/Separator.js +7 -0
  176. package/dist/primitives/Separator/Separator.js.map +1 -0
  177. package/dist/primitives/Separator/Separator.vue.d.ts +19 -0
  178. package/dist/primitives/Separator/Separator.vue.d.ts.map +1 -0
  179. package/dist/primitives/Separator/Separator.vue_vue_type_script_setup_true_lang.js +31 -0
  180. package/dist/primitives/Separator/Separator.vue_vue_type_script_setup_true_lang.js.map +1 -0
  181. package/dist/primitives/Skeleton/Skeleton.js +7 -0
  182. package/dist/primitives/Skeleton/Skeleton.js.map +1 -0
  183. package/dist/primitives/Skeleton/Skeleton.vue.d.ts +16 -0
  184. package/dist/primitives/Skeleton/Skeleton.vue.d.ts.map +1 -0
  185. package/dist/primitives/Skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +37 -0
  186. package/dist/primitives/Skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js.map +1 -0
  187. package/dist/primitives/Slider/Slider.js +7 -0
  188. package/dist/primitives/Slider/Slider.js.map +1 -0
  189. package/dist/primitives/Slider/Slider.vue.d.ts +58 -0
  190. package/dist/primitives/Slider/Slider.vue.d.ts.map +1 -0
  191. package/dist/primitives/Slider/Slider.vue_vue_type_script_setup_true_lang.js +137 -0
  192. package/dist/primitives/Slider/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -0
  193. package/dist/primitives/Spinner/Spinner.js +7 -0
  194. package/dist/primitives/Spinner/Spinner.js.map +1 -0
  195. package/dist/primitives/Spinner/Spinner.vue.d.ts +21 -0
  196. package/dist/primitives/Spinner/Spinner.vue.d.ts.map +1 -0
  197. package/dist/primitives/Spinner/Spinner.vue_vue_type_script_setup_true_lang.js +63 -0
  198. package/dist/primitives/Spinner/Spinner.vue_vue_type_script_setup_true_lang.js.map +1 -0
  199. package/dist/primitives/Surface/Surface.js +7 -0
  200. package/dist/primitives/Surface/Surface.js.map +1 -0
  201. package/dist/primitives/Surface/Surface.vue.d.ts +42 -0
  202. package/dist/primitives/Surface/Surface.vue.d.ts.map +1 -0
  203. package/dist/primitives/Surface/Surface.vue_vue_type_script_setup_true_lang.js +48 -0
  204. package/dist/primitives/Surface/Surface.vue_vue_type_script_setup_true_lang.js.map +1 -0
  205. package/dist/primitives/Switch/Switch.js +7 -0
  206. package/dist/primitives/Switch/Switch.js.map +1 -0
  207. package/dist/primitives/Switch/Switch.vue.d.ts +24 -0
  208. package/dist/primitives/Switch/Switch.vue.d.ts.map +1 -0
  209. package/dist/primitives/Switch/Switch.vue_vue_type_script_setup_true_lang.js +44 -0
  210. package/dist/primitives/Switch/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -0
  211. package/dist/primitives/Tabs/Tabs.js +7 -0
  212. package/dist/primitives/Tabs/Tabs.js.map +1 -0
  213. package/dist/primitives/Tabs/Tabs.vue.d.ts +33 -0
  214. package/dist/primitives/Tabs/Tabs.vue.d.ts.map +1 -0
  215. package/dist/primitives/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +54 -0
  216. package/dist/primitives/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -0
  217. package/dist/primitives/TextField/TextField.js +7 -0
  218. package/dist/primitives/TextField/TextField.js.map +1 -0
  219. package/dist/primitives/TextField/TextField.vue.d.ts +58 -0
  220. package/dist/primitives/TextField/TextField.vue.d.ts.map +1 -0
  221. package/dist/primitives/TextField/TextField.vue_vue_type_script_setup_true_lang.js +71 -0
  222. package/dist/primitives/TextField/TextField.vue_vue_type_script_setup_true_lang.js.map +1 -0
  223. package/dist/primitives/Textarea/Textarea.js +7 -0
  224. package/dist/primitives/Textarea/Textarea.js.map +1 -0
  225. package/dist/primitives/Textarea/Textarea.vue.d.ts +48 -0
  226. package/dist/primitives/Textarea/Textarea.vue.d.ts.map +1 -0
  227. package/dist/primitives/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +54 -0
  228. package/dist/primitives/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js.map +1 -0
  229. package/dist/primitives/Toast/Toast.js +7 -0
  230. package/dist/primitives/Toast/Toast.js.map +1 -0
  231. package/dist/primitives/Toast/Toast.vue.d.ts +46 -0
  232. package/dist/primitives/Toast/Toast.vue.d.ts.map +1 -0
  233. package/dist/primitives/Toast/Toast.vue_vue_type_script_setup_true_lang.js +52 -0
  234. package/dist/primitives/Toast/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -0
  235. package/dist/primitives/Toast/ToastItem.js +7 -0
  236. package/dist/primitives/Toast/ToastItem.js.map +1 -0
  237. package/dist/primitives/Toast/ToastItem.vue.d.ts +38 -0
  238. package/dist/primitives/Toast/ToastItem.vue.d.ts.map +1 -0
  239. package/dist/primitives/Toast/ToastItem.vue_vue_type_script_setup_true_lang.js +114 -0
  240. package/dist/primitives/Toast/ToastItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
  241. package/dist/primitives/Tooltip/Tooltip.js +7 -0
  242. package/dist/primitives/Tooltip/Tooltip.js.map +1 -0
  243. package/dist/primitives/Tooltip/Tooltip.vue.d.ts +52 -0
  244. package/dist/primitives/Tooltip/Tooltip.vue.d.ts.map +1 -0
  245. package/dist/primitives/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +56 -0
  246. package/dist/primitives/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -0
  247. package/dist/primitives/WindowControls/WindowControls.js +7 -0
  248. package/dist/primitives/WindowControls/WindowControls.js.map +1 -0
  249. package/dist/primitives/WindowControls/WindowControls.vue.d.ts +41 -0
  250. package/dist/primitives/WindowControls/WindowControls.vue.d.ts.map +1 -0
  251. package/dist/primitives/WindowControls/WindowControls.vue_vue_type_script_setup_true_lang.js +111 -0
  252. package/dist/primitives/WindowControls/WindowControls.vue_vue_type_script_setup_true_lang.js.map +1 -0
  253. package/dist/styles/fonts/Geist-Variable.woff2 +0 -0
  254. package/dist/styles/fonts/GeistMono-Variable.woff2 +0 -0
  255. package/dist/styles/fonts/OFL.txt +92 -0
  256. package/dist/styles/fonts.css +30 -0
  257. package/dist/styles/global.css +181 -0
  258. package/dist/styles/theme.css +212 -0
  259. package/package.json +123 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.vue_vue_type_script_setup_true_lang.js","names":["$emit"],"sources":["../../../src/primitives/Tooltip/Tooltip.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Which edge of the trigger the tip prefers, before collision flipping. The\n * members mirror Reka's own `Side`, and the template binding is what enforces\n * that: a member Reka does not accept stops `:side=\"side\"` type-checking.\n * Declared here rather than aliased so the generated props table prints the\n * four values instead of a name that tells the reader nothing.\n */\nexport type TooltipSide = \"top\" | \"right\" | \"bottom\" | \"left\";\n</script>\n\n<script setup lang=\"ts\">\nimport {\n TooltipProvider,\n TooltipRoot,\n TooltipTrigger,\n TooltipPortal,\n TooltipContent,\n TooltipArrow,\n} from \"reka-ui\";\nimport { cn } from \"../../lib/cn\";\nimport { optional } from \"../../lib/props\";\n\n/**\n * Tooltip — a short, non-interactive hint on hover or keyboard focus of its\n * trigger: the label for an icon-only button, or one terse explanation.\n *\n * A tooltip is not a small dialog, and the difference is the whole contract.\n * It never takes focus — focus stays on the trigger the entire time it is\n * shown, which is what lets a keyboard user read it and keep going. Hovering\n * the trigger or focusing it opens the tip; Esc, blur and moving the pointer\n * away close it; the page behind never stops scrolling. Nothing inside it can\n * be reached, so nothing interactive belongs inside it. The moment a hint\n * needs a link or a button, it is a `Popover`.\n *\n * It is wired as `aria-describedby`, never `aria-labelledby`: it *supplements*\n * an accessible name and must never be the only source of one. An icon-only\n * button still carries its own `aria-label` — a screen reader user who never\n * hovers would otherwise meet an unnamed button.\n *\n * The provider is bundled in so a single tooltip works with no setup. An\n * application with many can hoist one Reka `TooltipProvider` higher later,\n * which is what shares the hover delay across them.\n */\nwithDefaults(\n defineProps<{\n /** The hint text. The default slot overrides it where the hint needs markup. */\n content?: string;\n /** The edge of the trigger to anchor against, before collision flipping. */\n side?: TooltipSide;\n /** Gap in pixels between the trigger and the tip. */\n sideOffset?: number;\n /** Milliseconds of hover before the tip appears. Keyboard focus is always immediate. */\n delay?: number;\n /** Drive the tip from the host with `v-model:open` — an onboarding hint, say. Omit it for hover and focus alone. */\n open?: boolean | undefined;\n }>(),\n // `open: undefined` is load-bearing, not a redundant default — it is what\n // keeps the uncontrolled third state reachable past Vue's absent-Boolean\n // casting. `optional()` in the template is the other half; its docblock\n // carries the reasoning for both. `content` needs no such entry: a string\n // prop is already `undefined` when absent.\n { open: undefined, side: \"top\", sideOffset: 6, delay: 300 },\n);\n\ndefineEmits<{ \"update:open\": [value: boolean] }>();\n</script>\n\n<template>\n <TooltipProvider :delay-duration=\"delay\">\n <TooltipRoot v-bind=\"optional({ open })\" @update:open=\"$emit('update:open', $event)\">\n <!-- @slot The element the hint describes. Rendered `as-child`, so the\n caller's own element *is* the trigger and keeps its own accessible\n name. -->\n <TooltipTrigger as-child>\n <slot name=\"trigger\" />\n </TooltipTrigger>\n\n <TooltipPortal>\n <TooltipContent\n :side=\"side\"\n :side-offset=\"sideOffset\"\n :class=\"\n cn(\n 'z-50 max-w-[16rem] rounded-md bg-foreground px-2 py-1 text-xs font-medium text-background shadow-md',\n // Scoped to the open state, never unconditional. Reka's Presence\n // keeps closed content mounted until an animationend arrives, and\n // a mount-only animation never fires a second one — so an\n // unconditional animation class leaves a stray tip in the page.\n // Scoped, the closed element computes `animation-name: none` and\n // Presence unmounts it at once.\n //\n // `delayed-open` rather than `open`: the animation belongs to the\n // hover path, which the user waited for. A tip opened by keyboard\n // focus appears instantly, because a keyboard user asked for it\n // deliberately and has nothing to wait through.\n 'data-[state=delayed-open]:animate-scale-in',\n )\n \"\n style=\"transform-origin: var(--reka-popper-transform-origin)\"\n >\n <!-- @slot The hint, where markup is needed. Takes precedence over\n `content`. Nothing interactive belongs here — a tooltip cannot be\n reached by keyboard or pointer. -->\n <slot>{{ content }}</slot>\n <TooltipArrow class=\"fill-foreground\" :width=\"10\" :height=\"5\" />\n </TooltipContent>\n </TooltipPortal>\n </TooltipRoot>\n </TooltipProvider>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;GAqEE,OAAA,UAAA,GAAA,YAwCkB,MAAA,eAAA,GAAA,EAxCA,kBAAgB,QAAA,MAAK,GAAA;IACrC,SAAA,cAsCc,CAtCd,YAsCc,MAAA,WAAA,GAtCd,WAAqB,MAsCP,QAAA,CAtCe,CAAA,EAAA,MAAG,QAAA,KAAI,CAAA,GAAA,EAAM,iBAAW,OAAA,OAAA,OAAA,MAAA,WAAEA,KAAAA,MAAK,eAAgB,MAAM,GAAA,CAAA,GAAA;KAIhF,SAAA,cAEiB,CAFjB,YAEiB,MAAA,cAAA,GAAA,EAFD,YAAA,GAAQ,GAAA;MACtB,SAAA,cAAuB,CAAvB,WAAuB,KAAA,QAAA,SAAA,CAAA,CAAA;;KAGzB,CAAA,GAAA,YA6BgB,MAAA,aAAA,GAAA,MAAA;MA5Bd,SAAA,cA2BiB,CA3BjB,YA2BiB,MAAA,cAAA,GAAA;OA1Bd,MAAM,QAAA;OACN,eAAa,QAAA;OACb,OAAK,eAAe,MAAA,EAAA,CAAE,CAAA,uGAAA,4CAAA,CAAA;OAiBvB,OAAA,EAAA,oBAAA,sCAAA;;OAKA,SAAA,cAA0B,CAA1B,WAA0B,KAAA,QAAA,WAAA,CAAA,SAAA,CAAjB,gBAAA,gBAAA,QAAA,OAAO,GAAA,CAAA,CAAA,CAAA,GAChB,YAAgE,MAAA,YAAA,GAAA;QAAlD,OAAM;QAAmB,OAAO;QAAK,QAAQ"}
@@ -0,0 +1,7 @@
1
+ import WindowControls_vue_vue_type_script_setup_true_lang_default from "./WindowControls.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/primitives/WindowControls/WindowControls.vue
3
+ var WindowControls_default = WindowControls_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { WindowControls_default as default };
6
+
7
+ //# sourceMappingURL=WindowControls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WindowControls.js","names":[],"sources":["../../../src/primitives/WindowControls/WindowControls.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * WindowControls — the minimize / maximize / close cluster for a frameless\n * (custom-chrome) window. Presentational only: it emits intents; the host wires\n * them to the platform (the desktop shell's window bridge). Windows-style layout —\n * on macOS the OS draws native traffic-lights, so hide this there.\n *\n * The close button is the one place `destructive` is allowed without a confirm:\n * OS window-close is an expected, reversible-by-reopen affordance.\n */\n\n/** Accessible names for the three buttons — overridable by the host for i18n. */\nexport interface WindowControlsLabels {\n minimize: string;\n maximize: string;\n restore: string;\n close: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nwithDefaults(\n defineProps<{\n /** Swaps the middle button between its Maximize and Restore glyph and label. */\n isMaximized?: boolean;\n /** Accessible names for the three buttons, for a host localising the chrome. */\n labels?: WindowControlsLabels;\n }>(),\n {\n isMaximized: false,\n labels: () => ({\n minimize: \"Minimize\",\n maximize: \"Maximize\",\n restore: \"Restore\",\n close: \"Close\",\n }),\n },\n);\n\nconst emit = defineEmits<{\n (e: \"minimize\"): void;\n (e: \"maximize\"): void;\n (e: \"close\"): void;\n}>();\n</script>\n\n<template>\n <div class=\"flex h-full items-stretch\" style=\"-webkit-app-region: no-drag\">\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"labels.minimize\"\n data-testid=\"win-minimize\"\n @click=\"emit('minimize')\"\n >\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect y=\"4.5\" width=\"10\" height=\"1\" fill=\"currentColor\" />\n </svg>\n </button>\n\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"isMaximized ? labels.restore : labels.maximize\"\n data-testid=\"win-maximize\"\n @click=\"emit('maximize')\"\n >\n <svg v-if=\"!isMaximized\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect x=\"0.5\" y=\"0.5\" width=\"9\" height=\"9\" fill=\"none\" stroke=\"currentColor\" />\n </svg>\n <svg v-else width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect x=\"0.5\" y=\"2.5\" width=\"7\" height=\"7\" fill=\"none\" stroke=\"currentColor\" />\n <path d=\"M2.5 2.5 V0.5 H9.5 V7.5 H7.5\" fill=\"none\" stroke=\"currentColor\" />\n </svg>\n </button>\n\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-destructive hover:text-destructive-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"labels.close\"\n data-testid=\"win-close\"\n @click=\"emit('close')\"\n >\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <path d=\"M0 0 L10 10 M10 0 L0 10\" stroke=\"currentColor\" />\n </svg>\n </button>\n </div>\n</template>\n"],"mappings":""}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * WindowControls — the minimize / maximize / close cluster for a frameless
3
+ * (custom-chrome) window. Presentational only: it emits intents; the host wires
4
+ * them to the platform (the desktop shell's window bridge). Windows-style layout —
5
+ * on macOS the OS draws native traffic-lights, so hide this there.
6
+ *
7
+ * The close button is the one place `destructive` is allowed without a confirm:
8
+ * OS window-close is an expected, reversible-by-reopen affordance.
9
+ */
10
+ /** Accessible names for the three buttons — overridable by the host for i18n. */
11
+ export interface WindowControlsLabels {
12
+ minimize: string;
13
+ maximize: string;
14
+ restore: string;
15
+ close: string;
16
+ }
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ declare const __VLS_export: import("vue").DefineComponent<{
20
+ /** Swaps the middle button between its Maximize and Restore glyph and label. */
21
+ isMaximized?: boolean;
22
+ /** Accessible names for the three buttons, for a host localising the chrome. */
23
+ labels?: WindowControlsLabels;
24
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
25
+ close: () => any;
26
+ minimize: () => any;
27
+ maximize: () => any;
28
+ }, string, import("vue").PublicProps, Readonly<{
29
+ /** Swaps the middle button between its Maximize and Restore glyph and label. */
30
+ isMaximized?: boolean;
31
+ /** Accessible names for the three buttons, for a host localising the chrome. */
32
+ labels?: WindowControlsLabels;
33
+ }> & Readonly<{
34
+ onClose?: () => any;
35
+ onMinimize?: () => any;
36
+ onMaximize?: () => any;
37
+ }>, {
38
+ isMaximized: boolean;
39
+ labels: WindowControlsLabels;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ //# sourceMappingURL=WindowControls.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WindowControls.vue.d.ts","sourceRoot":"","sources":["../../../src/primitives/WindowControls/WindowControls.vue"],"names":[],"mappings":"AA6FA;;;;;;;;GAQG;AAEH,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IAEd,gFAAgF;kBAClE,OAAO;IACrB,gFAAgF;aACvE,oBAAoB;;;;;;IAH7B,gFAAgF;kBAClE,OAAO;IACrB,gFAAgF;aACvE,oBAAoB;;;;;;iBAFf,OAAO;YAEZ,oBAAoB;6EAwM7B,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock } from "vue";
2
+ //#region src/primitives/WindowControls/WindowControls.vue?vue&type=script&setup=true&lang.ts
3
+ var _hoisted_1 = {
4
+ class: "flex h-full items-stretch",
5
+ style: { "-webkit-app-region": "no-drag" }
6
+ };
7
+ var _hoisted_2 = ["aria-label"];
8
+ var _hoisted_3 = ["aria-label"];
9
+ var _hoisted_4 = {
10
+ key: 0,
11
+ width: "10",
12
+ height: "10",
13
+ viewBox: "0 0 10 10",
14
+ "aria-hidden": "true"
15
+ };
16
+ var _hoisted_5 = {
17
+ key: 1,
18
+ width: "10",
19
+ height: "10",
20
+ viewBox: "0 0 10 10",
21
+ "aria-hidden": "true"
22
+ };
23
+ var _hoisted_6 = ["aria-label"];
24
+ var WindowControls_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
25
+ __name: "WindowControls",
26
+ props: {
27
+ isMaximized: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ labels: { default: () => ({
32
+ minimize: "Minimize",
33
+ maximize: "Maximize",
34
+ restore: "Restore",
35
+ close: "Close"
36
+ }) }
37
+ },
38
+ emits: [
39
+ "minimize",
40
+ "maximize",
41
+ "close"
42
+ ],
43
+ setup(__props, { emit: __emit }) {
44
+ const emit = __emit;
45
+ return (_ctx, _cache) => {
46
+ return openBlock(), createElementBlock("div", _hoisted_1, [
47
+ createElementVNode("button", {
48
+ type: "button",
49
+ class: "flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring",
50
+ "aria-label": __props.labels.minimize,
51
+ "data-testid": "win-minimize",
52
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("minimize"))
53
+ }, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
54
+ width: "10",
55
+ height: "10",
56
+ viewBox: "0 0 10 10",
57
+ "aria-hidden": "true"
58
+ }, [createElementVNode("rect", {
59
+ y: "4.5",
60
+ width: "10",
61
+ height: "1",
62
+ fill: "currentColor"
63
+ })], -1)])], 8, _hoisted_2),
64
+ createElementVNode("button", {
65
+ type: "button",
66
+ class: "flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring",
67
+ "aria-label": __props.isMaximized ? __props.labels.restore : __props.labels.maximize,
68
+ "data-testid": "win-maximize",
69
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("maximize"))
70
+ }, [!__props.isMaximized ? (openBlock(), createElementBlock("svg", _hoisted_4, [..._cache[4] || (_cache[4] = [createElementVNode("rect", {
71
+ x: "0.5",
72
+ y: "0.5",
73
+ width: "9",
74
+ height: "9",
75
+ fill: "none",
76
+ stroke: "currentColor"
77
+ }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_5, [..._cache[5] || (_cache[5] = [createElementVNode("rect", {
78
+ x: "0.5",
79
+ y: "2.5",
80
+ width: "7",
81
+ height: "7",
82
+ fill: "none",
83
+ stroke: "currentColor"
84
+ }, null, -1), createElementVNode("path", {
85
+ d: "M2.5 2.5 V0.5 H9.5 V7.5 H7.5",
86
+ fill: "none",
87
+ stroke: "currentColor"
88
+ }, null, -1)])]))], 8, _hoisted_3),
89
+ createElementVNode("button", {
90
+ type: "button",
91
+ class: "flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-destructive hover:text-destructive-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring",
92
+ "aria-label": __props.labels.close,
93
+ "data-testid": "win-close",
94
+ onClick: _cache[2] || (_cache[2] = ($event) => emit("close"))
95
+ }, [..._cache[6] || (_cache[6] = [createElementVNode("svg", {
96
+ width: "10",
97
+ height: "10",
98
+ viewBox: "0 0 10 10",
99
+ "aria-hidden": "true"
100
+ }, [createElementVNode("path", {
101
+ d: "M0 0 L10 10 M10 0 L0 10",
102
+ stroke: "currentColor"
103
+ })], -1)])], 8, _hoisted_6)
104
+ ]);
105
+ };
106
+ }
107
+ });
108
+ //#endregion
109
+ export { WindowControls_vue_vue_type_script_setup_true_lang_default as default };
110
+
111
+ //# sourceMappingURL=WindowControls.vue_vue_type_script_setup_true_lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WindowControls.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/primitives/WindowControls/WindowControls.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * WindowControls — the minimize / maximize / close cluster for a frameless\n * (custom-chrome) window. Presentational only: it emits intents; the host wires\n * them to the platform (the desktop shell's window bridge). Windows-style layout —\n * on macOS the OS draws native traffic-lights, so hide this there.\n *\n * The close button is the one place `destructive` is allowed without a confirm:\n * OS window-close is an expected, reversible-by-reopen affordance.\n */\n\n/** Accessible names for the three buttons — overridable by the host for i18n. */\nexport interface WindowControlsLabels {\n minimize: string;\n maximize: string;\n restore: string;\n close: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nwithDefaults(\n defineProps<{\n /** Swaps the middle button between its Maximize and Restore glyph and label. */\n isMaximized?: boolean;\n /** Accessible names for the three buttons, for a host localising the chrome. */\n labels?: WindowControlsLabels;\n }>(),\n {\n isMaximized: false,\n labels: () => ({\n minimize: \"Minimize\",\n maximize: \"Maximize\",\n restore: \"Restore\",\n close: \"Close\",\n }),\n },\n);\n\nconst emit = defineEmits<{\n (e: \"minimize\"): void;\n (e: \"maximize\"): void;\n (e: \"close\"): void;\n}>();\n</script>\n\n<template>\n <div class=\"flex h-full items-stretch\" style=\"-webkit-app-region: no-drag\">\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"labels.minimize\"\n data-testid=\"win-minimize\"\n @click=\"emit('minimize')\"\n >\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect y=\"4.5\" width=\"10\" height=\"1\" fill=\"currentColor\" />\n </svg>\n </button>\n\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-subtle hover:text-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"isMaximized ? labels.restore : labels.maximize\"\n data-testid=\"win-maximize\"\n @click=\"emit('maximize')\"\n >\n <svg v-if=\"!isMaximized\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect x=\"0.5\" y=\"0.5\" width=\"9\" height=\"9\" fill=\"none\" stroke=\"currentColor\" />\n </svg>\n <svg v-else width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <rect x=\"0.5\" y=\"2.5\" width=\"7\" height=\"7\" fill=\"none\" stroke=\"currentColor\" />\n <path d=\"M2.5 2.5 V0.5 H9.5 V7.5 H7.5\" fill=\"none\" stroke=\"currentColor\" />\n </svg>\n </button>\n\n <button\n type=\"button\"\n class=\"flex w-11 items-center justify-center text-muted-foreground transition-colors duration-fast ease-out hover:bg-destructive hover:text-destructive-foreground active:brightness-90 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring\"\n :aria-label=\"labels.close\"\n data-testid=\"win-close\"\n @click=\"emit('close')\"\n >\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <path d=\"M0 0 L10 10 M10 0 L0 10\" stroke=\"currentColor\" />\n </svg>\n </button>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCA,MAAM,OAAO;;GAQX,OAAA,UAAA,GAAA,mBAwCM,OAxCN,YAwCM;IAvCJ,mBAUS,UAAA;KATP,MAAK;KACL,OAAM;KACL,cAAY,QAAA,OAAO;KACpB,eAAY;KACX,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAA;IAEZ,GAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,mBAEM,OAAA;KAFD,OAAM;KAAK,QAAO;KAAK,SAAQ;KAAY,eAAY;IAC1D,GAAA,CAAA,mBAA0D,QAAA;KAApD,GAAE;KAAM,OAAM;KAAK,QAAO;KAAI,MAAK;;IAI7C,mBAcS,UAAA;KAbP,MAAK;KACL,OAAM;KACL,cAAY,QAAA,cAAc,QAAA,OAAO,UAAU,QAAA,OAAO;KACnD,eAAY;KACX,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAA;IAEA,GAAA,CAAA,CAAA,QAAA,eAAZ,UAAA,GAAA,mBAEM,OAFN,YAEM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CADJ,mBAA+E,QAAA;KAAzE,GAAE;KAAM,GAAE;KAAM,OAAM;KAAI,QAAO;KAAI,MAAK;KAAO,QAAO;IAEhE,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA,MAAA,UAAA,GAAA,mBAGM,OAHN,YAGM,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAFJ,mBAA+E,QAAA;KAAzE,GAAE;KAAM,GAAE;KAAM,OAAM;KAAI,QAAO;KAAI,MAAK;KAAO,QAAO;IAC9D,GAAA,MAAA,EAAA,GAAA,mBAA2E,QAAA;KAArE,GAAE;KAA+B,MAAK;KAAO,QAAO;;IAI9D,mBAUS,UAAA;KATP,MAAK;KACL,OAAM;KACL,cAAY,QAAA,OAAO;KACpB,eAAY;KACX,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,OAAA;IAEZ,GAAA,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,mBAEM,OAAA;KAFD,OAAM;KAAK,QAAO;KAAK,SAAQ;KAAY,eAAY;IAC1D,GAAA,CAAA,mBAA0D,QAAA;KAApD,GAAE;KAA0B,QAAO"}
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2023 Vercel, in collaboration with basement.studio
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Loom — self-hosted type: Geist and Geist Mono, variable, weight 100–900.
3
+ *
4
+ * The files are vendored from the `geist` package (Vercel) and licensed under
5
+ * the SIL Open Font License 1.1 — `./fonts/OFL.txt` travels with them, which
6
+ * is what the licence requires.
7
+ *
8
+ * Self-hosting is the offline-safe rule made real. `theme.css` names Geist
9
+ * first in --font-sans and --font-mono; this file is what makes that name
10
+ * resolve, in every host, with no network fetch and no third party learning
11
+ * who loaded the page.
12
+ *
13
+ * Imported by `./global.css`, so a host that loads the Loom base styles gets
14
+ * the faces for free and never imports this file directly.
15
+ */
16
+ @font-face {
17
+ font-family: "Geist";
18
+ src: url("./fonts/Geist-Variable.woff2") format("woff2");
19
+ font-weight: 100 900;
20
+ font-style: normal;
21
+ font-display: swap;
22
+ }
23
+
24
+ @font-face {
25
+ font-family: "Geist Mono";
26
+ src: url("./fonts/GeistMono-Variable.woff2") format("woff2");
27
+ font-weight: 100 900;
28
+ font-style: normal;
29
+ font-display: swap;
30
+ }
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Loom — the stylesheet a host imports.
3
+ * =====================================
4
+ * One import gets you the Tailwind engine, the Loom theme, the self-hosted
5
+ * faces, the base element styling and the motion keyframe library:
6
+ *
7
+ * @import "@ecoma-io/loom/styles/global.css";
8
+ *
9
+ * A host assembling its own entry can take `theme.css` and `fonts.css`
10
+ * separately instead — they are exported for exactly that — but it then owns
11
+ * the import order, and Tailwind must come first or `@theme` has no engine to
12
+ * register against.
13
+ *
14
+ * Nothing here reaches the network. The faces are vendored (./fonts/), and
15
+ * there is no CDN import to fail on a plane or leak a page view to a third
16
+ * party.
17
+ */
18
+ @import "tailwindcss";
19
+ @import "./theme.css";
20
+ @import "./fonts.css";
21
+
22
+ /* Loom's own components, registered as a scan target.
23
+ *
24
+ * Tailwind's automatic source detection skips `node_modules` — sensible for a
25
+ * consumer, fatal for us: every class a Loom component renders lives in the
26
+ * package the consumer installed, so without this line the utilities those
27
+ * components need are never generated and the library ships unstyled.
28
+ *
29
+ * The path is `../` in both trees by construction. In the repository this file
30
+ * is `src/styles/global.css`, so `../` is `src/`; in the published package it
31
+ * is `dist/styles/global.css`, so `../` is `dist/`. One relative path, no
32
+ * build-time rewrite. */
33
+ @source "../";
34
+
35
+ @layer base {
36
+ * {
37
+ border-color: var(--color-border);
38
+ }
39
+
40
+ html {
41
+ -webkit-font-smoothing: antialiased;
42
+ -moz-osx-font-smoothing: grayscale;
43
+ text-rendering: optimizeLegibility;
44
+ font-feature-settings: "cv01", "ss01"; /* Geist's stylistic alternates */
45
+ }
46
+
47
+ body {
48
+ background-color: var(--color-background);
49
+ color: var(--color-foreground);
50
+ font-family: var(--font-sans);
51
+ }
52
+
53
+ ::selection {
54
+ background-color: color-mix(in oklab, var(--color-primary) 22%, transparent);
55
+ }
56
+
57
+ /* The brand focus ring — intentional, never an afterthought, and never
58
+ * removed without something at least as visible replacing it. */
59
+ :focus-visible {
60
+ outline: 2px solid var(--color-ring);
61
+ outline-offset: 2px;
62
+ }
63
+ }
64
+
65
+ /* Tabular, aligned numerics wherever a number carries meaning: identifiers,
66
+ * counts, anything a reader scans down a column. */
67
+ @utility tabular {
68
+ font-variant-numeric: tabular-nums;
69
+ font-family: var(--font-mono);
70
+ }
71
+
72
+ /* ---- The motion keyframe library ------------------------------------------
73
+ * Named and reusable; `theme.css` maps each to an `animate-*` utility. All of
74
+ * them are short and purposeful, and nothing loops for decoration except the
75
+ * loaders — where the loop IS the message.
76
+ */
77
+
78
+ /* A plain opacity fade, for a surface that must not move: a modal backdrop,
79
+ * where fade-rise's 4px lift would either read as wrong or, across a full
80
+ * viewport, as invisible clutter. */
81
+ @keyframes fade {
82
+ from {
83
+ opacity: 0;
84
+ }
85
+ to {
86
+ opacity: 1;
87
+ }
88
+ }
89
+
90
+ @keyframes fade-rise {
91
+ from {
92
+ opacity: 0;
93
+ transform: translateY(4px);
94
+ }
95
+ to {
96
+ opacity: 1;
97
+ transform: translateY(0);
98
+ }
99
+ }
100
+
101
+ @keyframes scale-in {
102
+ from {
103
+ opacity: 0;
104
+ transform: scale(0.97);
105
+ }
106
+ to {
107
+ opacity: 1;
108
+ transform: scale(1);
109
+ }
110
+ }
111
+
112
+ @keyframes shimmer {
113
+ from {
114
+ background-position: -180% 0;
115
+ }
116
+ to {
117
+ background-position: 180% 0;
118
+ }
119
+ }
120
+
121
+ /* Conduct — "an agent is working": the weft's shuttle beat, a pulse keeping
122
+ * time while the thread is carried across. This is Force 2's motion voice. */
123
+ @keyframes conduct {
124
+ 0%,
125
+ 100% {
126
+ box-shadow: 0 0 0 0 transparent;
127
+ }
128
+ 50% {
129
+ box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-agent) 18%, transparent);
130
+ }
131
+ }
132
+
133
+ /* Seam-flow — a live seam: the warp↔weft boundary drifts while a human↔agent
134
+ * collaboration is running. Apply to a `bg-seam` element with
135
+ * `background-size: 200% 100%`, and stop it once the work settles. */
136
+ @keyframes seam-flow {
137
+ from {
138
+ background-position: 0% 0;
139
+ }
140
+ to {
141
+ background-position: -200% 0;
142
+ }
143
+ }
144
+
145
+ /* Indeterminate progress: a short segment sweeping the track. Motion says
146
+ * "working" when there is no percentage to paint. */
147
+ @keyframes progress-indeterminate {
148
+ from {
149
+ transform: translateX(-100%);
150
+ }
151
+ to {
152
+ transform: translateX(340%);
153
+ }
154
+ }
155
+
156
+ /* A toast entering: it slides in from the viewport's right edge — the same
157
+ * axis it is swiped away on — and settles with a restrained spring. Applied
158
+ * to the toast's inner card and never to the swipe-transformed root, so a
159
+ * filled transform cannot fight the swipe gesture. */
160
+ @keyframes toast-in {
161
+ from {
162
+ opacity: 0;
163
+ transform: translateX(0.75rem);
164
+ }
165
+ to {
166
+ opacity: 1;
167
+ transform: translateX(0);
168
+ }
169
+ }
170
+
171
+ /* Respect the reader. Motion is meaning, but it is never a barrier. */
172
+ @media (prefers-reduced-motion: reduce) {
173
+ *,
174
+ *::before,
175
+ *::after {
176
+ animation-duration: 0.01ms !important;
177
+ animation-iteration-count: 1 !important;
178
+ transition-duration: 0.01ms !important;
179
+ scroll-behavior: auto !important;
180
+ }
181
+ }