@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,53 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostContextMenuRadioItem as GhostUnstyledContextMenuRadioItem, } from '@ghostvue/vue';
3
+ /** Themed {@link GhostContextMenuRadioItem} wrapper. */
4
+ export const GhostContextMenuRadioItem = defineComponent({
5
+ name: 'GhostContextMenuRadioItem',
6
+ inheritAttrs: false,
7
+ props: {
8
+ as: {
9
+ type: [
10
+ String,
11
+ Object,
12
+ Function,
13
+ ],
14
+ default: 'div',
15
+ },
16
+ value: {
17
+ type: String,
18
+ required: true,
19
+ },
20
+ disabled: {
21
+ type: Boolean,
22
+ default: false,
23
+ },
24
+ },
25
+ emits: {
26
+ select: (value, event) => typeof value === 'string' && event instanceof Event,
27
+ },
28
+ setup(props, { attrs, slots, emit, expose }) {
29
+ const inner = ref(null);
30
+ expose({
31
+ get element() {
32
+ return inner.value?.element ?? null;
33
+ },
34
+ focus(options) {
35
+ inner.value?.focus(options);
36
+ },
37
+ blur() {
38
+ inner.value?.blur();
39
+ },
40
+ });
41
+ const UnstyledRadioItem = GhostUnstyledContextMenuRadioItem;
42
+ return () => h(UnstyledRadioItem, {
43
+ ...attrs,
44
+ ref: inner,
45
+ as: props.as,
46
+ value: props.value,
47
+ disabled: props.disabled,
48
+ onSelect: (value, event) => {
49
+ emit('select', value, event);
50
+ },
51
+ }, slots);
52
+ },
53
+ });
@@ -0,0 +1,28 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostContextMenuSeparatorElement } from '@ghostvue/vue';
3
+ /** Themed {@link GhostContextMenuSeparator} wrapper. */
4
+ export declare const GhostContextMenuSeparator: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ as: {
6
+ type: PropType<GhostContextMenuSeparatorElement>;
7
+ default: string;
8
+ };
9
+ decorative: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
+ [key: string]: any;
15
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ as: {
17
+ type: PropType<GhostContextMenuSeparatorElement>;
18
+ default: string;
19
+ };
20
+ decorative: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ as: GhostContextMenuSeparatorElement;
26
+ decorative: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export type { GhostContextMenuSeparatorElement };
@@ -0,0 +1,28 @@
1
+ import { defineComponent, h } from 'vue';
2
+ import { GhostContextMenuSeparator as GhostUnstyledContextMenuSeparator, } from '@ghostvue/vue';
3
+ /** Themed {@link GhostContextMenuSeparator} wrapper. */
4
+ export const GhostContextMenuSeparator = defineComponent({
5
+ name: 'GhostContextMenuSeparator',
6
+ inheritAttrs: false,
7
+ props: {
8
+ as: {
9
+ type: [
10
+ String,
11
+ Object,
12
+ Function,
13
+ ],
14
+ default: 'div',
15
+ },
16
+ decorative: {
17
+ type: Boolean,
18
+ default: false,
19
+ },
20
+ },
21
+ setup(props, { attrs }) {
22
+ return () => h(GhostUnstyledContextMenuSeparator, {
23
+ ...attrs,
24
+ as: props.as,
25
+ decorative: props.decorative,
26
+ });
27
+ },
28
+ });
@@ -0,0 +1,28 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostContextMenuTriggerElement, type GhostContextMenuTriggerExposed } from '@ghostvue/vue';
3
+ /** Themed {@link GhostContextMenuTrigger} wrapper. */
4
+ export declare const GhostContextMenuTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ as: {
6
+ type: PropType<GhostContextMenuTriggerElement>;
7
+ default: string;
8
+ };
9
+ disabled: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
+ [key: string]: any;
15
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ as: {
17
+ type: PropType<GhostContextMenuTriggerElement>;
18
+ default: string;
19
+ };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ as: GhostContextMenuTriggerElement;
26
+ disabled: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export type { GhostContextMenuTriggerElement, GhostContextMenuTriggerExposed };
@@ -0,0 +1,41 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostContextMenuTrigger as GhostUnstyledContextMenuTrigger, } from '@ghostvue/vue';
3
+ /** Themed {@link GhostContextMenuTrigger} wrapper. */
4
+ export const GhostContextMenuTrigger = defineComponent({
5
+ name: 'GhostContextMenuTrigger',
6
+ inheritAttrs: false,
7
+ props: {
8
+ as: {
9
+ type: [
10
+ String,
11
+ Object,
12
+ Function,
13
+ ],
14
+ default: 'button',
15
+ },
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false,
19
+ },
20
+ },
21
+ setup(props, { attrs, slots, expose }) {
22
+ const inner = ref(null);
23
+ expose({
24
+ get element() {
25
+ return inner.value?.element ?? null;
26
+ },
27
+ focus(options) {
28
+ inner.value?.focus(options);
29
+ },
30
+ blur() {
31
+ inner.value?.blur();
32
+ },
33
+ });
34
+ return () => h(GhostUnstyledContextMenuTrigger, {
35
+ ...attrs,
36
+ ref: inner,
37
+ as: props.as,
38
+ disabled: props.disabled,
39
+ }, slots);
40
+ },
41
+ });
@@ -0,0 +1,35 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostContextMenuSlotProps } from '@ghostvue/vue';
3
+ /**
4
+ * Themed {@link GhostContextMenu} root wrapper.
5
+ * Importing it loads the default stylesheet; behavior stays on the unstyled primitive.
6
+ */
7
+ export declare const GhostContextMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ open: {
9
+ type: PropType<boolean | undefined>;
10
+ default: undefined;
11
+ };
12
+ defaultOpen: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ 'update:open': (open: boolean) => boolean;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ open: {
22
+ type: PropType<boolean | undefined>;
23
+ default: undefined;
24
+ };
25
+ defaultOpen: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:open"?: (open: boolean) => any;
31
+ }>, {
32
+ open: boolean | undefined;
33
+ defaultOpen: boolean;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ export type { GhostContextMenuSlotProps };
@@ -0,0 +1,33 @@
1
+ import { defineComponent, h } from 'vue';
2
+ import { GhostContextMenu as GhostUnstyledContextMenu, } from '@ghostvue/vue';
3
+ /**
4
+ * Themed {@link GhostContextMenu} root wrapper.
5
+ * Importing it loads the default stylesheet; behavior stays on the unstyled primitive.
6
+ */
7
+ export const GhostContextMenu = defineComponent({
8
+ name: 'GhostContextMenu',
9
+ inheritAttrs: false,
10
+ props: {
11
+ open: {
12
+ type: Boolean,
13
+ default: undefined,
14
+ },
15
+ defaultOpen: {
16
+ type: Boolean,
17
+ default: false,
18
+ },
19
+ },
20
+ emits: {
21
+ 'update:open': (open) => typeof open === 'boolean',
22
+ },
23
+ setup(props, { attrs, emit, slots }) {
24
+ return () => h(GhostUnstyledContextMenu, {
25
+ ...attrs,
26
+ open: props.open,
27
+ defaultOpen: props.defaultOpen,
28
+ 'onUpdate:open': (next) => {
29
+ emit('update:open', next);
30
+ },
31
+ }, slots);
32
+ },
33
+ });
@@ -0,0 +1,31 @@
1
+ import { type DataTableColumnDef, type DataTableTableColumnRef, type GhostDataTablePresetLayoutSlotName, type GhostDataTablePresetProps, type GhostDataTablePresetSlots } from '@ghostvue/vue';
2
+ declare const DataTablePreset: (new <TColumns extends readonly DataTableTableColumnRef[] = readonly DataTableColumnDef<unknown>[], TLayout extends GhostDataTablePresetLayoutSlotName = never>(props: (GhostDataTablePresetProps<TColumns, TLayout> & ({
3
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
4
+ } | {
5
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
6
+ })) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<GhostDataTablePresetProps<TColumns, TLayout> & ({
7
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
8
+ } | {
9
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
10
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
11
+ P: {};
12
+ B: {};
13
+ D: {};
14
+ C: {};
15
+ M: {};
16
+ Defaults: {};
17
+ }, (GhostDataTablePresetProps<TColumns, TLayout> & {
18
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
19
+ }) | (GhostDataTablePresetProps<TColumns, TLayout> & {
20
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
+ }), {}, {}, {}, {}, {}>) & {
22
+ props: {
23
+ columns: ArrayConstructor;
24
+ layoutSlots: ArrayConstructor;
25
+ };
26
+ };
27
+ /** Themed preset that retains the headless preset's typed cell and layout slots. */
28
+ export declare const GhostDataTablePreset: (new <TColumns extends readonly DataTableTableColumnRef[] = readonly DataTableColumnDef<unknown>[], TLayout extends GhostDataTablePresetLayoutSlotName = never>(...args: ConstructorParameters<typeof DataTablePreset<TColumns, TLayout>>) => InstanceType<typeof DataTablePreset<TColumns, TLayout>> & {
29
+ $slots: GhostDataTablePresetSlots<TColumns, NoInfer<TLayout>>;
30
+ }) & Pick<typeof DataTablePreset, "props">;
31
+ export {};
@@ -0,0 +1,12 @@
1
+ import { defineComponent, h } from 'vue';
2
+ import { GhostDataTablePreset as UnstyledDataTablePreset, } from '@ghostvue/vue';
3
+ const DataTablePreset = Object.assign(defineComponent((props, { attrs, slots }) => () => h('div', {
4
+ class: 'ghost-data-table-preset ghost-themed-scope',
5
+ 'data-themed': '',
6
+ }, [h(UnstyledDataTablePreset, { ...attrs, ...props }, slots)]), {
7
+ name: 'GhostDataTablePreset',
8
+ inheritAttrs: false,
9
+ }), { props: { columns: Array, layoutSlots: Array } });
10
+ /** Themed preset that retains the headless preset's typed cell and layout slots. */
11
+ // Layout ownership and all slot invocation stay in the headless preset.
12
+ export const GhostDataTablePreset = DataTablePreset;
@@ -0,0 +1,30 @@
1
+ import { type DataTableColumnDef, type DataTableTableColumnRef, type GhostDataTableTableProps, type GhostDataTableTableSlots } from '@ghostvue/vue';
2
+ declare const DataTableTable: (new <TColumns extends readonly DataTableTableColumnRef[] = readonly DataTableColumnDef<unknown>[]>(props: (GhostDataTableTableProps<TColumns> & ({
3
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
4
+ } | {
5
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
6
+ })) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<GhostDataTableTableProps<TColumns> & ({
7
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
8
+ } | {
9
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
10
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
11
+ P: {};
12
+ B: {};
13
+ D: {};
14
+ C: {};
15
+ M: {};
16
+ Defaults: {};
17
+ }, (GhostDataTableTableProps<TColumns> & {
18
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
19
+ }) | (GhostDataTableTableProps<TColumns> & {
20
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
+ }), {}, {}, {}, {}, {}>) & {
22
+ props: {
23
+ columns: ArrayConstructor;
24
+ };
25
+ };
26
+ /** Themed native table mapper with the same typed column slots as the headless mapper. */
27
+ export declare const GhostDataTableTable: (new <TColumns extends readonly DataTableTableColumnRef[] = readonly DataTableColumnDef<unknown>[]>(...args: ConstructorParameters<typeof DataTableTable<TColumns>>) => InstanceType<typeof DataTableTable<TColumns>> & {
28
+ $slots: GhostDataTableTableSlots<TColumns>;
29
+ }) & Pick<typeof DataTableTable, "props">;
30
+ export {};
@@ -0,0 +1,9 @@
1
+ import { defineComponent, h } from 'vue';
2
+ import { GhostDataTableTable as UnstyledDataTableTable, } from '@ghostvue/vue';
3
+ const DataTableTable = Object.assign(defineComponent((props, { attrs, slots }) => () => h('div', {
4
+ class: 'ghost-data-table-table ghost-themed-scope',
5
+ 'data-themed': '',
6
+ }, [h(UnstyledDataTableTable, { ...attrs, ...props }, slots)]), { name: 'GhostDataTableTable', inheritAttrs: false }), { props: { columns: Array } });
7
+ /** Themed native table mapper with the same typed column slots as the headless mapper. */
8
+ // The generic setup overload omits slot inference. Every slot is passed unchanged.
9
+ export const GhostDataTableTable = DataTableTable;
@@ -0,0 +1,94 @@
1
+ import { type GhostDataTableEmits, type GhostDataTableExposed, type GhostDataTableProps, type GhostDataTableSlotProps } from '@ghostvue/vue';
2
+ /** Density of the themed DataTable. */
3
+ export type GhostDataTableSize = 'sm' | 'md';
4
+ /** Surface treatment of the themed DataTable. */
5
+ export type GhostDataTableVariant = 'plain' | 'card';
6
+ /** DataTable behavior with optional visual settings. */
7
+ export interface GhostDataTableThemedProps<TData> extends GhostDataTableProps<TData> {
8
+ /** Cell and control density. @default 'md' */
9
+ size?: GhostDataTableSize;
10
+ /** Container surface. @default 'plain' */
11
+ variant?: GhostDataTableVariant;
12
+ /** Pin column headings to the block start of the nearest scroll container. @default false */
13
+ stickyHeader?: boolean;
14
+ }
15
+ /** The root element and the headless table's public commands. */
16
+ export interface GhostDataTableThemedExposed<TData> extends GhostDataTableExposed<TData> {
17
+ /** The themed container after mount. */
18
+ readonly element: HTMLElement | null;
19
+ }
20
+ type TableListeners = {
21
+ [Event in keyof GhostDataTableEmits as `on${Capitalize<Event>}`]?: (...args: GhostDataTableEmits[Event]) => void;
22
+ };
23
+ declare const DataTable: (new <TData>(props: (GhostDataTableThemedProps<TData> & TableListeners & ({
24
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
25
+ } | {
26
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
27
+ })) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<GhostDataTableThemedProps<TData> & TableListeners & ({
28
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
29
+ } | {
30
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
31
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, {} & (GhostDataTableThemedProps<TData> & TableListeners & ({
39
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
40
+ } | {
41
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
42
+ })), {}, {}, {}, {}, {}>) & {
43
+ props: {
44
+ data: null;
45
+ columns: null;
46
+ getRowId: null;
47
+ manualSorting: BooleanConstructor;
48
+ manualFiltering: BooleanConstructor;
49
+ manualPagination: BooleanConstructor;
50
+ rowCount: null;
51
+ pageCount: null;
52
+ enableRowSelection: BooleanConstructor;
53
+ enableRowExpansion: BooleanConstructor;
54
+ allowMultipleExpanded: {
55
+ type: BooleanConstructor;
56
+ default: undefined;
57
+ };
58
+ loading: BooleanConstructor;
59
+ disabled: BooleanConstructor;
60
+ ariaLabel: StringConstructor;
61
+ ariaLabelledby: StringConstructor;
62
+ sorting: null;
63
+ defaultSorting: null;
64
+ columnFilters: null;
65
+ defaultColumnFilters: null;
66
+ globalFilter: null;
67
+ defaultGlobalFilter: null;
68
+ pagination: null;
69
+ defaultPagination: null;
70
+ selectedRowIds: null;
71
+ defaultSelectedRowIds: null;
72
+ expandedRowIds: null;
73
+ defaultExpandedRowIds: null;
74
+ size: null;
75
+ variant: null;
76
+ stickyHeader: BooleanConstructor;
77
+ };
78
+ emits: {
79
+ 'update:sorting': null;
80
+ 'update:columnFilters': null;
81
+ 'update:globalFilter': null;
82
+ 'update:pagination': null;
83
+ 'update:selectedRowIds': null;
84
+ 'update:expandedRowIds': null;
85
+ stateChange: null;
86
+ };
87
+ };
88
+ /** Optional theme shell around the renderless DataTable root. */
89
+ export declare const GhostDataTable: (new <TData>(...args: ConstructorParameters<typeof DataTable<TData>>) => InstanceType<typeof DataTable<TData>> & GhostDataTableThemedExposed<TData> & {
90
+ $slots: {
91
+ default?: (bindings: GhostDataTableSlotProps<TData>) => unknown;
92
+ };
93
+ }) & Pick<typeof DataTable, "props" | "emits">;
94
+ export {};
@@ -0,0 +1,105 @@
1
+ import { createVNode, defineComponent, h, mergeProps, resolveDynamicComponent, shallowRef, } from 'vue';
2
+ import { GhostDataTable as UnstyledDataTable, } from '@ghostvue/vue';
3
+ const propOptions = {
4
+ data: null,
5
+ columns: null,
6
+ getRowId: null,
7
+ manualSorting: Boolean,
8
+ manualFiltering: Boolean,
9
+ manualPagination: Boolean,
10
+ rowCount: null,
11
+ pageCount: null,
12
+ enableRowSelection: Boolean,
13
+ enableRowExpansion: Boolean,
14
+ // The inner root owns this default. Preserve omission when forwarding it.
15
+ allowMultipleExpanded: { type: Boolean, default: undefined },
16
+ loading: Boolean,
17
+ disabled: Boolean,
18
+ ariaLabel: String,
19
+ ariaLabelledby: String,
20
+ sorting: null,
21
+ defaultSorting: null,
22
+ columnFilters: null,
23
+ defaultColumnFilters: null,
24
+ globalFilter: null,
25
+ defaultGlobalFilter: null,
26
+ pagination: null,
27
+ defaultPagination: null,
28
+ selectedRowIds: null,
29
+ defaultSelectedRowIds: null,
30
+ expandedRowIds: null,
31
+ defaultExpandedRowIds: null,
32
+ size: null,
33
+ variant: null,
34
+ stickyHeader: Boolean,
35
+ };
36
+ const emits = {
37
+ 'update:sorting': null,
38
+ 'update:columnFilters': null,
39
+ 'update:globalFilter': null,
40
+ 'update:pagination': null,
41
+ 'update:selectedRowIds': null,
42
+ 'update:expandedRowIds': null,
43
+ stateChange: null,
44
+ };
45
+ // Vue infers the generic row type from setup. Attach runtime validators
46
+ // separately so runtime prop constructors cannot narrow that inference.
47
+ const DataTable = Object.assign(defineComponent((props, { attrs, emit, expose, slots }) => {
48
+ const inner = shallowRef(null);
49
+ const element = shallowRef(null);
50
+ const exposed = {
51
+ get element() {
52
+ return element.value;
53
+ },
54
+ toggleAllRowsSelected: (value) => inner.value?.toggleAllRowsSelected(value),
55
+ toggleRowSelected: (id, value) => inner.value?.toggleRowSelected(id, value),
56
+ toggleRowExpanded: (id, value) => inner.value?.toggleRowExpanded(id, value),
57
+ resetRowSelection: () => inner.value?.resetRowSelection(),
58
+ retry: () => inner.value?.retry(),
59
+ setSorting: (value) => inner.value?.setSorting(value),
60
+ toggleSorting: (id) => inner.value?.toggleSorting(id),
61
+ setGlobalFilter: (value) => inner.value?.setGlobalFilter(value),
62
+ setColumnFilter: (id, value) => inner.value?.setColumnFilter(id, value),
63
+ setColumnFilters: (value) => inner.value?.setColumnFilters(value),
64
+ setPagination: (value) => inner.value?.setPagination(value),
65
+ setPageIndex: (page) => inner.value?.setPageIndex(page),
66
+ setPageSize: (size) => inner.value?.setPageSize(size),
67
+ getRowModel: () => inner.value?.getRowModel() ?? [],
68
+ getPrePaginationRowModel: () => inner.value?.getPrePaginationRowModel() ?? [],
69
+ getSelectedRowModel: () => inner.value?.getSelectedRowModel() ?? [],
70
+ };
71
+ expose(exposed);
72
+ function forward(event) {
73
+ return (...args) => {
74
+ emit(event, ...args);
75
+ };
76
+ }
77
+ const listeners = {
78
+ 'onUpdate:sorting': forward('update:sorting'),
79
+ 'onUpdate:columnFilters': forward('update:columnFilters'),
80
+ 'onUpdate:globalFilter': forward('update:globalFilter'),
81
+ 'onUpdate:pagination': forward('update:pagination'),
82
+ 'onUpdate:selectedRowIds': forward('update:selectedRowIds'),
83
+ 'onUpdate:expandedRowIds': forward('update:expandedRowIds'),
84
+ onStateChange: forward('stateChange'),
85
+ };
86
+ return () => {
87
+ const { size, variant, stickyHeader, ...behavior } = props;
88
+ return h('div', mergeProps(attrs, {
89
+ ref: element,
90
+ class: 'ghost-data-table ghost-themed-scope',
91
+ 'data-part': 'root',
92
+ 'data-themed': '',
93
+ 'data-size': size === 'sm' ? size : undefined,
94
+ 'data-variant': variant === 'card' ? variant : undefined,
95
+ 'data-sticky-header': stickyHeader ? '' : undefined,
96
+ 'data-state': props.disabled ? 'disabled' : undefined,
97
+ }), [
98
+ createVNode(resolveDynamicComponent(UnstyledDataTable), { ...behavior, ...listeners, ref: inner }, slots),
99
+ ]);
100
+ };
101
+ }, { name: 'GhostDataTable', inheritAttrs: false }), { props: propOptions, emits });
102
+ /** Optional theme shell around the renderless DataTable root. */
103
+ // The generic setup overload has no slot or exposed-value inference. The
104
+ // runtime forwards the headless slot unchanged and exposes the typed object above.
105
+ export const GhostDataTable = DataTable;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Themed {@link GhostDatePickerCalendar}. Calendar parts are styled by the
3
+ * `.ghost-themed-scope` that the themed content wraps around its slot. The
4
+ * default composition uses the themed calendar parts so the month navigation
5
+ * shows the same chevron icon buttons as the themed GhostCalendar.
6
+ */
7
+ export declare const GhostDatePickerCalendar: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
+ [key: string]: any;
9
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,30 @@
1
+ import { defineComponent, h } from 'vue';
2
+ import { GhostDatePickerCalendar as GhostUnstyledDatePickerCalendar } from '@ghostvue/vue';
3
+ import { GhostCalendarGrid } from './ghost-calendar-grid';
4
+ import { GhostCalendarHeader } from './ghost-calendar-header';
5
+ import { GhostCalendarHeading } from './ghost-calendar-heading';
6
+ import { GhostCalendarNextButton } from './ghost-calendar-next-button';
7
+ import { GhostCalendarPrevButton } from './ghost-calendar-prev-button';
8
+ /**
9
+ * Themed {@link GhostDatePickerCalendar}. Calendar parts are styled by the
10
+ * `.ghost-themed-scope` that the themed content wraps around its slot. The
11
+ * default composition uses the themed calendar parts so the month navigation
12
+ * shows the same chevron icon buttons as the themed GhostCalendar.
13
+ */
14
+ export const GhostDatePickerCalendar = defineComponent({
15
+ name: 'GhostDatePickerCalendar',
16
+ inheritAttrs: false,
17
+ setup(_props, { attrs, slots }) {
18
+ return () => h(GhostUnstyledDatePickerCalendar, { ...attrs }, {
19
+ default: slots['default'] ??
20
+ (() => [
21
+ h(GhostCalendarHeader, null, () => [
22
+ h(GhostCalendarPrevButton),
23
+ h(GhostCalendarHeading),
24
+ h(GhostCalendarNextButton),
25
+ ]),
26
+ h(GhostCalendarGrid),
27
+ ]),
28
+ });
29
+ },
30
+ });