@ghostvue/themes 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 (364) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +59 -2
  3. package/THIRD_PARTY_NOTICES.md +30 -0
  4. package/dist/base.css +341 -0
  5. package/dist/calm.css +1899 -0
  6. package/dist/components.d.ts +148 -0
  7. package/dist/components.js +143 -0
  8. package/dist/default.css +11017 -0
  9. package/dist/define.d.ts +75 -0
  10. package/dist/define.js +5934 -0
  11. package/dist/flagship-themes.d.ts +5 -0
  12. package/dist/flagship-themes.js +3 -0
  13. package/dist/generated/tokens.d.ts +5275 -0
  14. package/dist/generated/tokens.js +5272 -0
  15. package/dist/ghost-accordion-content.d.ts +26 -0
  16. package/dist/ghost-accordion-content.js +22 -0
  17. package/dist/ghost-accordion-item.d.ts +24 -0
  18. package/dist/ghost-accordion-item.js +16 -0
  19. package/dist/ghost-accordion-trigger.d.ts +17 -0
  20. package/dist/ghost-accordion-trigger.js +33 -0
  21. package/dist/ghost-accordion.d.ts +72 -0
  22. package/dist/ghost-accordion.js +56 -0
  23. package/dist/ghost-avatar.d.ts +60 -0
  24. package/dist/ghost-avatar.js +39 -0
  25. package/dist/ghost-badge.d.ts +46 -0
  26. package/dist/ghost-badge.js +33 -0
  27. package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
  28. package/dist/ghost-breadcrumb-ellipsis.js +20 -0
  29. package/dist/ghost-breadcrumb-item.d.ts +18 -0
  30. package/dist/ghost-breadcrumb-item.js +20 -0
  31. package/dist/ghost-breadcrumb-link.d.ts +18 -0
  32. package/dist/ghost-breadcrumb-link.js +33 -0
  33. package/dist/ghost-breadcrumb-list.d.ts +18 -0
  34. package/dist/ghost-breadcrumb-list.js +27 -0
  35. package/dist/ghost-breadcrumb-page.d.ts +18 -0
  36. package/dist/ghost-breadcrumb-page.js +20 -0
  37. package/dist/ghost-breadcrumb-separator.d.ts +18 -0
  38. package/dist/ghost-breadcrumb-separator.js +20 -0
  39. package/dist/ghost-breadcrumb.d.ts +34 -0
  40. package/dist/ghost-breadcrumb.js +27 -0
  41. package/dist/ghost-button.d.ts +102 -0
  42. package/dist/ghost-button.js +66 -0
  43. package/dist/ghost-calendar-cell.d.ts +15 -0
  44. package/dist/ghost-calendar-cell.js +12 -0
  45. package/dist/ghost-calendar-grid.d.ts +5 -0
  46. package/dist/ghost-calendar-grid.js +21 -0
  47. package/dist/ghost-calendar-header.d.ts +3 -0
  48. package/dist/ghost-calendar-header.js +9 -0
  49. package/dist/ghost-calendar-heading.d.ts +3 -0
  50. package/dist/ghost-calendar-heading.js +9 -0
  51. package/dist/ghost-calendar-next-button.d.ts +9 -0
  52. package/dist/ghost-calendar-next-button.js +18 -0
  53. package/dist/ghost-calendar-prev-button.d.ts +9 -0
  54. package/dist/ghost-calendar-prev-button.js +18 -0
  55. package/dist/ghost-calendar.d.ts +119 -0
  56. package/dist/ghost-calendar.js +101 -0
  57. package/dist/ghost-card.d.ts +33 -0
  58. package/dist/ghost-card.js +36 -0
  59. package/dist/ghost-checkbox.d.ts +76 -0
  60. package/dist/ghost-checkbox.js +59 -0
  61. package/dist/ghost-collapsible-content.d.ts +28 -0
  62. package/dist/ghost-collapsible-content.js +41 -0
  63. package/dist/ghost-collapsible-trigger.d.ts +28 -0
  64. package/dist/ghost-collapsible-trigger.js +41 -0
  65. package/dist/ghost-collapsible.d.ts +44 -0
  66. package/dist/ghost-collapsible.js +38 -0
  67. package/dist/ghost-combobox-content.d.ts +82 -0
  68. package/dist/ghost-combobox-content.js +58 -0
  69. package/dist/ghost-combobox-input.d.ts +28 -0
  70. package/dist/ghost-combobox-input.js +36 -0
  71. package/dist/ghost-combobox-trigger.d.ts +28 -0
  72. package/dist/ghost-combobox-trigger.js +36 -0
  73. package/dist/ghost-combobox.d.ts +179 -0
  74. package/dist/ghost-combobox.js +98 -0
  75. package/dist/ghost-command-palette-content.d.ts +86 -0
  76. package/dist/ghost-command-palette-content.js +55 -0
  77. package/dist/ghost-command-palette-overlay.d.ts +40 -0
  78. package/dist/ghost-command-palette-overlay.js +40 -0
  79. package/dist/ghost-command-palette.d.ts +114 -0
  80. package/dist/ghost-command-palette.js +93 -0
  81. package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
  82. package/dist/ghost-context-menu-checkbox-item.js +57 -0
  83. package/dist/ghost-context-menu-content.d.ts +85 -0
  84. package/dist/ghost-context-menu-content.js +75 -0
  85. package/dist/ghost-context-menu-group.d.ts +19 -0
  86. package/dist/ghost-context-menu-group.js +23 -0
  87. package/dist/ghost-context-menu-item.d.ts +32 -0
  88. package/dist/ghost-context-menu-item.js +43 -0
  89. package/dist/ghost-context-menu-label.d.ts +19 -0
  90. package/dist/ghost-context-menu-label.js +23 -0
  91. package/dist/ghost-context-menu-radio-group.d.ts +50 -0
  92. package/dist/ghost-context-menu-radio-group.js +46 -0
  93. package/dist/ghost-context-menu-radio-item.d.ts +40 -0
  94. package/dist/ghost-context-menu-radio-item.js +53 -0
  95. package/dist/ghost-context-menu-separator.d.ts +28 -0
  96. package/dist/ghost-context-menu-separator.js +28 -0
  97. package/dist/ghost-context-menu-trigger.d.ts +28 -0
  98. package/dist/ghost-context-menu-trigger.js +41 -0
  99. package/dist/ghost-context-menu.d.ts +35 -0
  100. package/dist/ghost-context-menu.js +33 -0
  101. package/dist/ghost-data-table-preset.d.ts +31 -0
  102. package/dist/ghost-data-table-preset.js +12 -0
  103. package/dist/ghost-data-table-table.d.ts +30 -0
  104. package/dist/ghost-data-table-table.js +9 -0
  105. package/dist/ghost-data-table.d.ts +94 -0
  106. package/dist/ghost-data-table.js +105 -0
  107. package/dist/ghost-date-picker-calendar.d.ts +9 -0
  108. package/dist/ghost-date-picker-calendar.js +30 -0
  109. package/dist/ghost-date-picker-content.d.ts +95 -0
  110. package/dist/ghost-date-picker-content.js +58 -0
  111. package/dist/ghost-date-picker-input.d.ts +46 -0
  112. package/dist/ghost-date-picker-input.js +39 -0
  113. package/dist/ghost-date-picker-trigger.d.ts +6 -0
  114. package/dist/ghost-date-picker-trigger.js +22 -0
  115. package/dist/ghost-date-picker.d.ts +245 -0
  116. package/dist/ghost-date-picker.js +68 -0
  117. package/dist/ghost-dialog-close.d.ts +28 -0
  118. package/dist/ghost-dialog-close.js +37 -0
  119. package/dist/ghost-dialog-content.d.ts +95 -0
  120. package/dist/ghost-dialog-content.js +78 -0
  121. package/dist/ghost-dialog-description.d.ts +19 -0
  122. package/dist/ghost-dialog-description.js +37 -0
  123. package/dist/ghost-dialog-overlay.d.ts +40 -0
  124. package/dist/ghost-dialog-overlay.js +46 -0
  125. package/dist/ghost-dialog-title.d.ts +19 -0
  126. package/dist/ghost-dialog-title.js +33 -0
  127. package/dist/ghost-dialog-trigger.d.ts +28 -0
  128. package/dist/ghost-dialog-trigger.js +37 -0
  129. package/dist/ghost-dialog.d.ts +44 -0
  130. package/dist/ghost-dialog.js +38 -0
  131. package/dist/ghost-drawer-close.d.ts +28 -0
  132. package/dist/ghost-drawer-close.js +37 -0
  133. package/dist/ghost-drawer-content.d.ts +87 -0
  134. package/dist/ghost-drawer-content.js +73 -0
  135. package/dist/ghost-drawer-description.d.ts +19 -0
  136. package/dist/ghost-drawer-description.js +36 -0
  137. package/dist/ghost-drawer-overlay.d.ts +40 -0
  138. package/dist/ghost-drawer-overlay.js +46 -0
  139. package/dist/ghost-drawer-title.d.ts +19 -0
  140. package/dist/ghost-drawer-title.js +32 -0
  141. package/dist/ghost-drawer-trigger.d.ts +28 -0
  142. package/dist/ghost-drawer-trigger.js +37 -0
  143. package/dist/ghost-drawer.d.ts +62 -0
  144. package/dist/ghost-drawer.js +48 -0
  145. package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
  146. package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
  147. package/dist/ghost-dropdown-menu-content.d.ts +85 -0
  148. package/dist/ghost-dropdown-menu-content.js +75 -0
  149. package/dist/ghost-dropdown-menu-group.d.ts +19 -0
  150. package/dist/ghost-dropdown-menu-group.js +23 -0
  151. package/dist/ghost-dropdown-menu-item.d.ts +32 -0
  152. package/dist/ghost-dropdown-menu-item.js +47 -0
  153. package/dist/ghost-dropdown-menu-label.d.ts +19 -0
  154. package/dist/ghost-dropdown-menu-label.js +23 -0
  155. package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
  156. package/dist/ghost-dropdown-menu-radio-group.js +46 -0
  157. package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
  158. package/dist/ghost-dropdown-menu-radio-item.js +53 -0
  159. package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
  160. package/dist/ghost-dropdown-menu-separator.js +28 -0
  161. package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
  162. package/dist/ghost-dropdown-menu-trigger.js +41 -0
  163. package/dist/ghost-dropdown-menu.d.ts +35 -0
  164. package/dist/ghost-dropdown-menu.js +33 -0
  165. package/dist/ghost-empty-state.d.ts +31 -0
  166. package/dist/ghost-empty-state.js +35 -0
  167. package/dist/ghost-field.d.ts +44 -0
  168. package/dist/ghost-field.js +44 -0
  169. package/dist/ghost-file-upload-dropzone.d.ts +9 -0
  170. package/dist/ghost-file-upload-dropzone.js +23 -0
  171. package/dist/ghost-file-upload-item-remove.d.ts +10 -0
  172. package/dist/ghost-file-upload-item-remove.js +30 -0
  173. package/dist/ghost-file-upload-list.d.ts +10 -0
  174. package/dist/ghost-file-upload-list.js +24 -0
  175. package/dist/ghost-file-upload-trigger.d.ts +18 -0
  176. package/dist/ghost-file-upload-trigger.js +30 -0
  177. package/dist/ghost-file-upload.d.ts +147 -0
  178. package/dist/ghost-file-upload.js +98 -0
  179. package/dist/ghost-hover-card-content.d.ts +85 -0
  180. package/dist/ghost-hover-card-content.js +75 -0
  181. package/dist/ghost-hover-card-trigger.d.ts +28 -0
  182. package/dist/ghost-hover-card-trigger.js +41 -0
  183. package/dist/ghost-hover-card.d.ts +62 -0
  184. package/dist/ghost-hover-card.js +48 -0
  185. package/dist/ghost-inline-alert.d.ts +62 -0
  186. package/dist/ghost-inline-alert.js +50 -0
  187. package/dist/ghost-input.d.ts +100 -0
  188. package/dist/ghost-input.js +60 -0
  189. package/dist/ghost-interactive-surface.d.ts +31 -0
  190. package/dist/ghost-interactive-surface.js +36 -0
  191. package/dist/ghost-kbd.d.ts +42 -0
  192. package/dist/ghost-kbd.js +32 -0
  193. package/dist/ghost-link.d.ts +94 -0
  194. package/dist/ghost-link.js +59 -0
  195. package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
  196. package/dist/ghost-menubar-checkbox-item.js +57 -0
  197. package/dist/ghost-menubar-content.d.ts +85 -0
  198. package/dist/ghost-menubar-content.js +71 -0
  199. package/dist/ghost-menubar-group.d.ts +19 -0
  200. package/dist/ghost-menubar-group.js +19 -0
  201. package/dist/ghost-menubar-item.d.ts +32 -0
  202. package/dist/ghost-menubar-item.js +43 -0
  203. package/dist/ghost-menubar-label.d.ts +19 -0
  204. package/dist/ghost-menubar-label.js +19 -0
  205. package/dist/ghost-menubar-menu.d.ts +35 -0
  206. package/dist/ghost-menubar-menu.js +33 -0
  207. package/dist/ghost-menubar-radio-group.d.ts +50 -0
  208. package/dist/ghost-menubar-radio-group.js +46 -0
  209. package/dist/ghost-menubar-radio-item.d.ts +40 -0
  210. package/dist/ghost-menubar-radio-item.js +53 -0
  211. package/dist/ghost-menubar-separator.d.ts +28 -0
  212. package/dist/ghost-menubar-separator.js +28 -0
  213. package/dist/ghost-menubar-trigger.d.ts +28 -0
  214. package/dist/ghost-menubar-trigger.js +37 -0
  215. package/dist/ghost-menubar.d.ts +28 -0
  216. package/dist/ghost-menubar.js +33 -0
  217. package/dist/ghost-number-input.d.ts +153 -0
  218. package/dist/ghost-number-input.js +87 -0
  219. package/dist/ghost-pagination.d.ts +151 -0
  220. package/dist/ghost-pagination.js +71 -0
  221. package/dist/ghost-popover-close.d.ts +28 -0
  222. package/dist/ghost-popover-close.js +37 -0
  223. package/dist/ghost-popover-content.d.ts +86 -0
  224. package/dist/ghost-popover-content.js +72 -0
  225. package/dist/ghost-popover-trigger.d.ts +28 -0
  226. package/dist/ghost-popover-trigger.js +37 -0
  227. package/dist/ghost-popover.d.ts +35 -0
  228. package/dist/ghost-popover.js +33 -0
  229. package/dist/ghost-progress.d.ts +69 -0
  230. package/dist/ghost-progress.js +37 -0
  231. package/dist/ghost-radio-group-item.d.ts +37 -0
  232. package/dist/ghost-radio-group-item.js +33 -0
  233. package/dist/ghost-radio-group.d.ts +91 -0
  234. package/dist/ghost-radio-group.js +65 -0
  235. package/dist/ghost-scroll-area.d.ts +49 -0
  236. package/dist/ghost-scroll-area.js +32 -0
  237. package/dist/ghost-scroll-spy-item.d.ts +27 -0
  238. package/dist/ghost-scroll-spy-item.js +29 -0
  239. package/dist/ghost-scroll-spy-link.d.ts +44 -0
  240. package/dist/ghost-scroll-spy-link.js +39 -0
  241. package/dist/ghost-scroll-spy-list.d.ts +18 -0
  242. package/dist/ghost-scroll-spy-list.js +27 -0
  243. package/dist/ghost-scroll-spy.d.ts +121 -0
  244. package/dist/ghost-scroll-spy.js +83 -0
  245. package/dist/ghost-segmented-control-item.d.ts +36 -0
  246. package/dist/ghost-segmented-control-item.js +47 -0
  247. package/dist/ghost-segmented-control.d.ts +77 -0
  248. package/dist/ghost-segmented-control.js +73 -0
  249. package/dist/ghost-select-content.d.ts +82 -0
  250. package/dist/ghost-select-content.js +58 -0
  251. package/dist/ghost-select-trigger.d.ts +28 -0
  252. package/dist/ghost-select-trigger.js +36 -0
  253. package/dist/ghost-select.d.ts +115 -0
  254. package/dist/ghost-select.js +74 -0
  255. package/dist/ghost-separator.d.ts +41 -0
  256. package/dist/ghost-separator.js +34 -0
  257. package/dist/ghost-skeleton.d.ts +34 -0
  258. package/dist/ghost-skeleton.js +31 -0
  259. package/dist/ghost-slider.d.ts +150 -0
  260. package/dist/ghost-slider.js +83 -0
  261. package/dist/ghost-spinner.d.ts +42 -0
  262. package/dist/ghost-spinner.js +26 -0
  263. package/dist/ghost-switch.d.ts +102 -0
  264. package/dist/ghost-switch.js +68 -0
  265. package/dist/ghost-table.d.ts +30 -0
  266. package/dist/ghost-table.js +36 -0
  267. package/dist/ghost-tabs-content.d.ts +27 -0
  268. package/dist/ghost-tabs-content.js +38 -0
  269. package/dist/ghost-tabs-list.d.ts +19 -0
  270. package/dist/ghost-tabs-list.js +33 -0
  271. package/dist/ghost-tabs-trigger.d.ts +36 -0
  272. package/dist/ghost-tabs-trigger.js +43 -0
  273. package/dist/ghost-tabs.d.ts +59 -0
  274. package/dist/ghost-tabs.js +45 -0
  275. package/dist/ghost-textarea.d.ts +109 -0
  276. package/dist/ghost-textarea.js +66 -0
  277. package/dist/ghost-toast-viewport.d.ts +43 -0
  278. package/dist/ghost-toast-viewport.js +74 -0
  279. package/dist/ghost-toast.d.ts +54 -0
  280. package/dist/ghost-toast.js +48 -0
  281. package/dist/ghost-toggle-group-item.d.ts +36 -0
  282. package/dist/ghost-toggle-group-item.js +43 -0
  283. package/dist/ghost-toggle-group.d.ts +77 -0
  284. package/dist/ghost-toggle-group.js +69 -0
  285. package/dist/ghost-toolbar.d.ts +6 -0
  286. package/dist/ghost-toolbar.js +24 -0
  287. package/dist/ghost-tooltip-content.d.ts +86 -0
  288. package/dist/ghost-tooltip-content.js +72 -0
  289. package/dist/ghost-tooltip-trigger.d.ts +28 -0
  290. package/dist/ghost-tooltip-trigger.js +37 -0
  291. package/dist/ghost-tooltip.d.ts +62 -0
  292. package/dist/ghost-tooltip.js +50 -0
  293. package/dist/ghost-tree-group.d.ts +32 -0
  294. package/dist/ghost-tree-group.js +39 -0
  295. package/dist/ghost-tree-item.d.ts +45 -0
  296. package/dist/ghost-tree-item.js +42 -0
  297. package/dist/ghost-tree-trigger.d.ts +40 -0
  298. package/dist/ghost-tree-trigger.js +43 -0
  299. package/dist/ghost-tree.d.ts +122 -0
  300. package/dist/ghost-tree.js +98 -0
  301. package/dist/index.d.ts +148 -0
  302. package/dist/index.js +144 -0
  303. package/dist/manifest.json +6375 -0
  304. package/dist/mono.css +1864 -0
  305. package/dist/recipes/accordion.css +42 -0
  306. package/dist/recipes/avatar.css +87 -0
  307. package/dist/recipes/badge.css +170 -0
  308. package/dist/recipes/breadcrumb.css +149 -0
  309. package/dist/recipes/button.css +632 -0
  310. package/dist/recipes/calendar.css +292 -0
  311. package/dist/recipes/card.css +54 -0
  312. package/dist/recipes/checkbox.css +262 -0
  313. package/dist/recipes/collapsible.css +304 -0
  314. package/dist/recipes/combobox.css +276 -0
  315. package/dist/recipes/command-palette.css +244 -0
  316. package/dist/recipes/context-menu.css +227 -0
  317. package/dist/recipes/data-table.css +455 -0
  318. package/dist/recipes/date-picker.css +292 -0
  319. package/dist/recipes/dialog.css +141 -0
  320. package/dist/recipes/drawer.css +338 -0
  321. package/dist/recipes/dropdown-menu.css +232 -0
  322. package/dist/recipes/empty-state.css +66 -0
  323. package/dist/recipes/field.css +63 -0
  324. package/dist/recipes/file-upload.css +260 -0
  325. package/dist/recipes/hover-card.css +64 -0
  326. package/dist/recipes/inline-alert.css +172 -0
  327. package/dist/recipes/input.css +176 -0
  328. package/dist/recipes/kbd.css +113 -0
  329. package/dist/recipes/link.css +158 -0
  330. package/dist/recipes/menubar.css +242 -0
  331. package/dist/recipes/number-input.css +222 -0
  332. package/dist/recipes/pagination.css +143 -0
  333. package/dist/recipes/popover.css +83 -0
  334. package/dist/recipes/progress.css +119 -0
  335. package/dist/recipes/radio-group.css +200 -0
  336. package/dist/recipes/scroll-area.css +31 -0
  337. package/dist/recipes/scroll-spy.css +72 -0
  338. package/dist/recipes/segmented-control.css +178 -0
  339. package/dist/recipes/select.css +299 -0
  340. package/dist/recipes/separator.css +41 -0
  341. package/dist/recipes/skeleton.css +132 -0
  342. package/dist/recipes/slider.css +239 -0
  343. package/dist/recipes/spinner.css +93 -0
  344. package/dist/recipes/switch.css +314 -0
  345. package/dist/recipes/table.css +120 -0
  346. package/dist/recipes/tabs.css +139 -0
  347. package/dist/recipes/textarea.css +148 -0
  348. package/dist/recipes/toast.css +321 -0
  349. package/dist/recipes/toggle-group.css +92 -0
  350. package/dist/recipes/toolbar.css +25 -0
  351. package/dist/recipes/tooltip.css +48 -0
  352. package/dist/recipes/tree.css +231 -0
  353. package/dist/start-theme-transition.d.ts +9 -0
  354. package/dist/start-theme-transition.js +27 -0
  355. package/dist/tokens/primitives.json +612 -0
  356. package/dist/tokens/seeds.json +23 -0
  357. package/dist/tokens/semantic.compact.json +175 -0
  358. package/dist/tokens/semantic.dark.json +583 -0
  359. package/dist/tokens/semantic.json +1651 -0
  360. package/dist/tokens/semantic.spacious.json +175 -0
  361. package/dist/tokens.css +1864 -0
  362. package/dist/tokens.json +6137 -0
  363. package/dist/vibrant.css +1864 -0
  364. package/package.json +75 -4
@@ -0,0 +1,222 @@
1
+ /*
2
+ * Themed GhostNumberInput layout and control chrome aligned with ghost-input.
3
+ */
4
+ @layer ghostvue-theme {
5
+ :where(
6
+ .ghost-theme .ghost-number-input,
7
+ .ghost-themed-scope .ghost-number-input
8
+ ) {
9
+ --_ghost-number-input-gap: var(--ghost-space-gap-sm);
10
+ --_ghost-number-input-min-size: var(--ghost-control-size-md-min);
11
+ --_ghost-number-input-padding-block: var(
12
+ --ghost-control-size-md-padding-block
13
+ );
14
+ --_ghost-number-input-padding-inline: var(
15
+ --ghost-control-size-md-padding-inline
16
+ );
17
+ --_ghost-number-input-font-size: var(--ghost-control-size-md-font);
18
+
19
+ align-items: stretch;
20
+ display: inline-flex;
21
+ gap: var(--_ghost-number-input-gap);
22
+ max-inline-size: 100%;
23
+ }
24
+
25
+ :where(
26
+ .ghost-theme .ghost-number-input[data-size='sm'],
27
+ .ghost-themed-scope .ghost-number-input[data-size='sm']
28
+ ) {
29
+ --_ghost-number-input-min-size: var(--ghost-control-size-sm-min);
30
+ --_ghost-number-input-padding-block: var(
31
+ --ghost-control-size-sm-padding-block
32
+ );
33
+ --_ghost-number-input-padding-inline: var(
34
+ --ghost-control-size-sm-padding-inline
35
+ );
36
+ --_ghost-number-input-font-size: var(--ghost-control-size-sm-font);
37
+ }
38
+
39
+ :where(
40
+ .ghost-theme .ghost-number-input[data-size='lg'],
41
+ .ghost-themed-scope .ghost-number-input[data-size='lg']
42
+ ) {
43
+ --_ghost-number-input-min-size: var(--ghost-control-size-lg-min);
44
+ --_ghost-number-input-padding-block: var(
45
+ --ghost-control-size-lg-padding-block
46
+ );
47
+ --_ghost-number-input-padding-inline: var(
48
+ --ghost-control-size-lg-padding-inline
49
+ );
50
+ --_ghost-number-input-font-size: var(--ghost-control-size-lg-font);
51
+ }
52
+
53
+ :where(
54
+ .ghost-theme .ghost-number-input[data-block],
55
+ .ghost-themed-scope .ghost-number-input[data-block]
56
+ ) {
57
+ display: flex;
58
+ inline-size: 100%;
59
+ }
60
+
61
+ :where(
62
+ .ghost-theme .ghost-number-input > .ghost-number-input__input,
63
+ .ghost-themed-scope .ghost-number-input > .ghost-number-input__input
64
+ ) {
65
+ --_ghost-number-input-background: var(--ghost-surface-bg);
66
+ --_ghost-number-input-border-color: var(--ghost-border-default);
67
+ --_ghost-number-input-color: var(--ghost-text-default);
68
+
69
+ appearance: none;
70
+ background-color: var(--_ghost-number-input-background);
71
+ border: var(--ghost-border-hairline-width) solid
72
+ var(--_ghost-number-input-border-color);
73
+ border-radius: var(--ghost-action-radius);
74
+ box-sizing: border-box;
75
+ color: var(--_ghost-number-input-color);
76
+ flex: 1 1 auto;
77
+ font-family: var(--ghost-type-family-sans);
78
+ font-size: var(--_ghost-number-input-font-size);
79
+ font-weight: var(--ghost-type-weight-regular);
80
+ letter-spacing: var(--ghost-type-letter-normal);
81
+ line-height: var(--ghost-type-line-normal);
82
+ margin: 0;
83
+ min-block-size: var(--_ghost-number-input-min-size);
84
+ min-inline-size: 4ch;
85
+ padding-block: var(--_ghost-number-input-padding-block);
86
+ padding-inline: var(--_ghost-number-input-padding-inline);
87
+ text-align: end;
88
+ }
89
+
90
+ :where(
91
+ .ghost-theme .ghost-number-input > .ghost-number-input__button,
92
+ .ghost-themed-scope .ghost-number-input > .ghost-number-input__button
93
+ ) {
94
+ align-items: center;
95
+ appearance: none;
96
+ background: var(--ghost-surface-muted-bg);
97
+ border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
98
+ border-radius: var(--ghost-action-radius);
99
+ color: var(--ghost-text-default);
100
+ cursor: pointer;
101
+ display: inline-flex;
102
+ font-family: var(--ghost-type-family-sans);
103
+ font-size: var(--_ghost-number-input-font-size);
104
+ justify-content: center;
105
+ margin: 0;
106
+ min-block-size: var(--_ghost-number-input-min-size);
107
+ min-inline-size: var(--_ghost-number-input-min-size);
108
+ padding-inline: var(--ghost-space-inset-xs);
109
+ }
110
+
111
+ :where(
112
+ .ghost-theme .ghost-number-input > .ghost-number-input__button:disabled,
113
+ .ghost-themed-scope
114
+ .ghost-number-input
115
+ > .ghost-number-input__button:disabled
116
+ ) {
117
+ cursor: not-allowed;
118
+ opacity: 0.5;
119
+ }
120
+
121
+ :where(
122
+ .ghost-theme
123
+ .ghost-number-input
124
+ > .ghost-number-input__button:focus-visible,
125
+ .ghost-themed-scope
126
+ .ghost-number-input
127
+ > .ghost-number-input__button:focus-visible
128
+ ) {
129
+ box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
130
+ var(--ghost-focus-ring-contrast);
131
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
132
+ outline-offset: var(--ghost-focus-ring-offset);
133
+ }
134
+
135
+ :where(
136
+ .ghost-theme .ghost-number-input > .ghost-number-input__input:focus-visible,
137
+ .ghost-themed-scope
138
+ .ghost-number-input
139
+ > .ghost-number-input__input:focus-visible
140
+ ) {
141
+ box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
142
+ var(--ghost-focus-ring-contrast);
143
+ outline: var(--ghost-focus-ring-width) solid
144
+ var(--_ghost-number-input-focus-color, var(--ghost-focus-ring-color));
145
+ outline-offset: var(--ghost-focus-ring-offset);
146
+ }
147
+
148
+ :where(
149
+ .ghost-theme
150
+ .ghost-number-input[data-state='invalid']
151
+ > .ghost-number-input__input,
152
+ .ghost-themed-scope
153
+ .ghost-number-input[data-state='invalid']
154
+ > .ghost-number-input__input,
155
+ .ghost-theme
156
+ .ghost-number-input
157
+ > .ghost-number-input__input[aria-invalid='true'],
158
+ .ghost-themed-scope
159
+ .ghost-number-input
160
+ > .ghost-number-input__input[aria-invalid='true']
161
+ ) {
162
+ --_ghost-number-input-border-color: var(--ghost-border-danger);
163
+ --_ghost-number-input-focus-color: var(--ghost-border-danger);
164
+ }
165
+
166
+ /*
167
+ * Forced colors strip box-shadow focus rings and repaint control chrome, so
168
+ * preserve system colors, Highlight outlines, and GrayText disabled state.
169
+ */
170
+ @media (forced-colors: active) {
171
+ :where(
172
+ .ghost-theme .ghost-number-input > .ghost-number-input__input,
173
+ .ghost-themed-scope .ghost-number-input > .ghost-number-input__input
174
+ ) {
175
+ background-color: Field;
176
+ border-color: FieldText;
177
+ color: FieldText;
178
+ }
179
+
180
+ :where(
181
+ .ghost-theme .ghost-number-input > .ghost-number-input__button,
182
+ .ghost-themed-scope .ghost-number-input > .ghost-number-input__button
183
+ ) {
184
+ background-color: ButtonFace;
185
+ border-color: ButtonText;
186
+ color: ButtonText;
187
+ }
188
+
189
+ :where(
190
+ .ghost-theme .ghost-number-input > .ghost-number-input__button:disabled,
191
+ .ghost-themed-scope
192
+ .ghost-number-input
193
+ > .ghost-number-input__button:disabled,
194
+ .ghost-theme .ghost-number-input > .ghost-number-input__input:disabled,
195
+ .ghost-themed-scope
196
+ .ghost-number-input
197
+ > .ghost-number-input__input:disabled
198
+ ) {
199
+ border-color: GrayText;
200
+ color: GrayText;
201
+ opacity: 1;
202
+ }
203
+
204
+ :where(
205
+ .ghost-theme
206
+ .ghost-number-input
207
+ > .ghost-number-input__button:focus-visible,
208
+ .ghost-themed-scope
209
+ .ghost-number-input
210
+ > .ghost-number-input__button:focus-visible,
211
+ .ghost-theme
212
+ .ghost-number-input
213
+ > .ghost-number-input__input:focus-visible,
214
+ .ghost-themed-scope
215
+ .ghost-number-input
216
+ > .ghost-number-input__input:focus-visible
217
+ ) {
218
+ box-shadow: none;
219
+ outline: var(--ghost-focus-ring-width) solid Highlight;
220
+ }
221
+ }
222
+ }
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Themed GhostPagination. Reuses action control tokens for page buttons.
3
+ */
4
+ @layer ghostvue-theme {
5
+ :where(
6
+ .ghost-theme .ghost-pagination,
7
+ .ghost-themed-scope .ghost-pagination
8
+ ) {
9
+ --_ghost-pagination-gap: var(--ghost-space-gap-xs);
10
+ --_ghost-pagination-min-size: var(--ghost-control-size-md-min);
11
+ --_ghost-pagination-font-size: var(--ghost-control-size-md-font);
12
+ --_ghost-pagination-padding-block: var(
13
+ --ghost-control-size-md-padding-block
14
+ );
15
+ --_ghost-pagination-padding-inline: var(
16
+ --ghost-control-size-md-padding-inline
17
+ );
18
+ }
19
+
20
+ :where(
21
+ .ghost-theme .ghost-pagination__list,
22
+ .ghost-themed-scope .ghost-pagination__list
23
+ ) {
24
+ display: flex;
25
+ flex-wrap: wrap;
26
+ gap: var(--_ghost-pagination-gap);
27
+ list-style: none;
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ :where(
33
+ .ghost-theme .ghost-pagination button,
34
+ .ghost-themed-scope .ghost-pagination button
35
+ ) {
36
+ align-items: center;
37
+ appearance: none;
38
+ background-color: var(--ghost-surface-muted-bg);
39
+ border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
40
+ border-radius: var(--ghost-action-radius);
41
+ box-sizing: border-box;
42
+ color: var(--ghost-surface-fg);
43
+ cursor: pointer;
44
+ display: inline-flex;
45
+ font-family: var(--ghost-action-label-family);
46
+ font-size: var(--_ghost-pagination-font-size);
47
+ font-weight: var(--ghost-action-label-weight);
48
+ justify-content: center;
49
+ line-height: var(--ghost-action-label-line);
50
+ min-block-size: var(--_ghost-pagination-min-size);
51
+ min-inline-size: var(--_ghost-pagination-min-size);
52
+ padding-block: var(--_ghost-pagination-padding-block);
53
+ padding-inline: var(--_ghost-pagination-padding-inline);
54
+ }
55
+
56
+ :where(
57
+ .ghost-theme .ghost-pagination button[aria-current='page'],
58
+ .ghost-themed-scope .ghost-pagination button[aria-current='page']
59
+ ) {
60
+ background-color: var(--ghost-action-primary-bg);
61
+ border-color: var(--ghost-action-primary-border);
62
+ color: var(--ghost-action-primary-fg);
63
+ cursor: default;
64
+ }
65
+
66
+ :where(
67
+ .ghost-theme .ghost-pagination button:disabled,
68
+ .ghost-themed-scope .ghost-pagination button:disabled,
69
+ .ghost-theme .ghost-pagination button[aria-disabled='true'],
70
+ .ghost-themed-scope .ghost-pagination button[aria-disabled='true']
71
+ ) {
72
+ cursor: not-allowed;
73
+ opacity: var(--ghost-action-disabled-opacity);
74
+ }
75
+
76
+ :where(
77
+ .ghost-theme .ghost-pagination [data-part='ellipsis'],
78
+ .ghost-themed-scope .ghost-pagination [data-part='ellipsis']
79
+ ) {
80
+ align-items: center;
81
+ color: var(--ghost-text-muted);
82
+ display: inline-flex;
83
+ min-block-size: var(--_ghost-pagination-min-size);
84
+ min-inline-size: var(--_ghost-pagination-min-size);
85
+ justify-content: center;
86
+ }
87
+
88
+ :where(
89
+ .ghost-theme .ghost-pagination[data-size='sm'],
90
+ .ghost-themed-scope .ghost-pagination[data-size='sm']
91
+ ) {
92
+ --_ghost-pagination-min-size: var(--ghost-control-size-sm-min);
93
+ --_ghost-pagination-font-size: var(--ghost-control-size-sm-font);
94
+ --_ghost-pagination-padding-block: var(
95
+ --ghost-control-size-sm-padding-block
96
+ );
97
+ --_ghost-pagination-padding-inline: var(
98
+ --ghost-control-size-sm-padding-inline
99
+ );
100
+ }
101
+
102
+ :where(
103
+ .ghost-theme .ghost-pagination[data-size='lg'],
104
+ .ghost-themed-scope .ghost-pagination[data-size='lg']
105
+ ) {
106
+ --_ghost-pagination-min-size: var(--ghost-control-size-lg-min);
107
+ --_ghost-pagination-font-size: var(--ghost-control-size-lg-font);
108
+ --_ghost-pagination-padding-block: var(
109
+ --ghost-control-size-lg-padding-block
110
+ );
111
+ --_ghost-pagination-padding-inline: var(
112
+ --ghost-control-size-lg-padding-inline
113
+ );
114
+ }
115
+
116
+ /*
117
+ * In forced colors every page button shares ButtonFace and ButtonText, so
118
+ * the current page is painted Highlight (opted out of adjustment) and
119
+ * disabled controls use GrayText instead of opacity.
120
+ */
121
+ @media (forced-colors: active) {
122
+ :where(
123
+ .ghost-theme .ghost-pagination button[aria-current='page'],
124
+ .ghost-themed-scope .ghost-pagination button[aria-current='page']
125
+ ) {
126
+ background-color: Highlight;
127
+ border-color: Highlight;
128
+ color: HighlightText;
129
+ forced-color-adjust: none;
130
+ }
131
+
132
+ :where(
133
+ .ghost-theme .ghost-pagination button:disabled,
134
+ .ghost-themed-scope .ghost-pagination button:disabled,
135
+ .ghost-theme .ghost-pagination button[aria-disabled='true'],
136
+ .ghost-themed-scope .ghost-pagination button[aria-disabled='true']
137
+ ) {
138
+ border-color: GrayText;
139
+ color: GrayText;
140
+ opacity: 1;
141
+ }
142
+ }
143
+ }
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Themed GhostPopover surface. Visual values come from semantic --ghost-*
3
+ * tokens with no component-specific tokens or hard-coded colors/lengths.
4
+ */
5
+ @layer ghostvue-theme {
6
+ :where(
7
+ .ghost-theme .ghost-popover-content,
8
+ .ghost-themed-scope .ghost-popover-content,
9
+ .ghost-popover-content[data-themed]
10
+ ) {
11
+ background-color: var(--ghost-elevation-3-bg);
12
+ border: var(--ghost-border-hairline-width) solid
13
+ var(--ghost-elevation-3-border);
14
+ border-radius: var(--ghost-radius-lg);
15
+ box-shadow:
16
+ var(--ghost-elevation-3-shadow), var(--ghost-elevation-3-highlight);
17
+ box-sizing: border-box;
18
+ color: var(--ghost-surface-fg);
19
+ font-family: var(--ghost-type-family-sans);
20
+ font-feature-settings: var(--ghost-type-feature-default);
21
+ padding: var(--ghost-space-inset-md);
22
+ z-index: 50;
23
+ }
24
+
25
+ :where(
26
+ .ghost-theme .ghost-popover-content:focus-visible,
27
+ .ghost-themed-scope .ghost-popover-content:focus-visible,
28
+ .ghost-popover-content[data-themed]:focus-visible
29
+ ) {
30
+ box-shadow:
31
+ var(--ghost-elevation-3-shadow),
32
+ var(--ghost-elevation-3-highlight),
33
+ 0 0 0 var(--ghost-focus-ring-offset) var(--ghost-focus-ring-contrast);
34
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
35
+ outline-offset: var(--ghost-focus-ring-offset);
36
+ }
37
+
38
+ :where(
39
+ .ghost-theme .ghost-popover-content[data-state='open'],
40
+ .ghost-themed-scope .ghost-popover-content[data-state='open'],
41
+ .ghost-popover-content[data-themed][data-state='open']
42
+ ) {
43
+ transition: opacity var(--ghost-motion-fade-duration)
44
+ var(--ghost-motion-easing-standard);
45
+
46
+ @starting-style {
47
+ opacity: 0;
48
+ }
49
+
50
+ @media (prefers-reduced-motion: no-preference) {
51
+ transition:
52
+ opacity var(--ghost-motion-duration-fast)
53
+ var(--ghost-motion-enter-easing),
54
+ scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
55
+
56
+ @starting-style {
57
+ scale: 0.98;
58
+ }
59
+ }
60
+ }
61
+
62
+ @media (forced-colors: active) {
63
+ :where(
64
+ .ghost-theme .ghost-popover-content,
65
+ .ghost-themed-scope .ghost-popover-content,
66
+ .ghost-popover-content[data-themed]
67
+ ) {
68
+ background-color: Canvas;
69
+ border-color: CanvasText;
70
+ box-shadow: none;
71
+ color: CanvasText;
72
+ }
73
+
74
+ :where(
75
+ .ghost-theme .ghost-popover-content:focus-visible,
76
+ .ghost-themed-scope .ghost-popover-content:focus-visible,
77
+ .ghost-popover-content[data-themed]:focus-visible
78
+ ) {
79
+ box-shadow: none;
80
+ outline-color: Highlight;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,119 @@
1
+ /*
2
+ * Themed GhostProgress. Visual values come from semantic --ghost-* tokens.
3
+ * Private --_ghost-progress-* properties are per-instance wiring, not a public
4
+ * API. Indeterminate translation is CSS-only so reduced-motion can swap it for
5
+ * a pulse without a client motion query.
6
+ *
7
+ * Thickness reads --ghost-track-thickness-*, not --ghost-space-gap-*: gaps are
8
+ * layout spacing that density may collapse to zero (Calm defaults to compact),
9
+ * while painted thickness must stay visible at every density and theme.
10
+ */
11
+ @layer ghostvue-theme {
12
+ :where(.ghost-theme .ghost-progress, .ghost-themed-scope .ghost-progress) {
13
+ --_ghost-progress-track: var(--ghost-border-default);
14
+ --_ghost-progress-fill: var(--ghost-action-primary-bg);
15
+ --_ghost-progress-size: var(--ghost-track-thickness-md);
16
+
17
+ background-color: var(--_ghost-progress-track);
18
+ block-size: var(--_ghost-progress-size);
19
+ border-radius: var(--ghost-radius-pill);
20
+ box-sizing: border-box;
21
+ display: block;
22
+ inline-size: 100%;
23
+ overflow: hidden;
24
+ }
25
+
26
+ :where(
27
+ .ghost-theme .ghost-progress [data-part='indicator'],
28
+ .ghost-themed-scope .ghost-progress [data-part='indicator']
29
+ ) {
30
+ background-color: var(--_ghost-progress-fill);
31
+ block-size: 100%;
32
+ border-radius: inherit;
33
+ transition: inline-size var(--ghost-motion-duration-fast)
34
+ var(--ghost-motion-easing-standard);
35
+ }
36
+
37
+ :where(
38
+ .ghost-theme .ghost-progress[data-tone='neutral'],
39
+ .ghost-themed-scope .ghost-progress[data-tone='neutral']
40
+ ) {
41
+ --_ghost-progress-fill: var(--ghost-action-neutral-bg);
42
+ }
43
+
44
+ :where(
45
+ .ghost-theme .ghost-progress[data-tone='danger'],
46
+ .ghost-themed-scope .ghost-progress[data-tone='danger']
47
+ ) {
48
+ --_ghost-progress-fill: var(--ghost-action-danger-bg);
49
+ }
50
+
51
+ :where(
52
+ .ghost-theme .ghost-progress[data-size='sm'],
53
+ .ghost-themed-scope .ghost-progress[data-size='sm']
54
+ ) {
55
+ --_ghost-progress-size: var(--ghost-track-thickness-sm);
56
+ }
57
+
58
+ :where(
59
+ .ghost-theme .ghost-progress[data-size='lg'],
60
+ .ghost-themed-scope .ghost-progress[data-size='lg']
61
+ ) {
62
+ --_ghost-progress-size: var(--ghost-track-thickness-lg);
63
+ }
64
+
65
+ :where(
66
+ .ghost-theme
67
+ .ghost-progress[data-state='indeterminate']
68
+ [data-part='indicator'],
69
+ .ghost-themed-scope
70
+ .ghost-progress[data-state='indeterminate']
71
+ [data-part='indicator']
72
+ ) {
73
+ /* Looping duration matches GhostSpinner so the two do not drift. */
74
+ animation: ghost-progress-indeterminate var(--ghost-action-spinner-duration)
75
+ var(--ghost-motion-easing-standard) infinite;
76
+ /* Width is a fraction of the track; keyframes translate in units of this fill. */
77
+ inline-size: 40%;
78
+ }
79
+
80
+ @media (prefers-reduced-motion: reduce) {
81
+ :where(
82
+ .ghost-theme
83
+ .ghost-progress[data-state='indeterminate']
84
+ [data-part='indicator'],
85
+ .ghost-themed-scope
86
+ .ghost-progress[data-state='indeterminate']
87
+ [data-part='indicator']
88
+ ) {
89
+ animation: ghost-progress-pulse var(--ghost-action-spinner-duration)
90
+ var(--ghost-motion-easing-standard) infinite;
91
+ inline-size: 100%;
92
+ transform: none;
93
+ }
94
+ }
95
+
96
+ @media (forced-colors: active) {
97
+ :where(.ghost-theme .ghost-progress, .ghost-themed-scope .ghost-progress) {
98
+ --_ghost-progress-track: Canvas;
99
+ --_ghost-progress-fill: Highlight;
100
+ }
101
+ }
102
+
103
+ @keyframes ghost-progress-indeterminate {
104
+ 0% {
105
+ transform: translateX(-100%);
106
+ }
107
+
108
+ 100% {
109
+ /* 40% fill: -100% of self starts off-start, 250% crosses the track, +100% exits. */
110
+ transform: translateX(350%);
111
+ }
112
+ }
113
+
114
+ @keyframes ghost-progress-pulse {
115
+ 50% {
116
+ opacity: var(--ghost-action-spinner-opacity);
117
+ }
118
+ }
119
+ }