@ghostvue/themes 0.0.0-stage → 0.2.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 (376) 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 +1909 -0
  6. package/dist/components.d.ts +153 -0
  7. package/dist/components.js +148 -0
  8. package/dist/default.css +11271 -0
  9. package/dist/define.d.ts +75 -0
  10. package/dist/define.js +5952 -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 +5286 -0
  14. package/dist/generated/tokens.js +5283 -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-group.d.ts +50 -0
  60. package/dist/ghost-checkbox-group.js +56 -0
  61. package/dist/ghost-checkbox.d.ts +76 -0
  62. package/dist/ghost-checkbox.js +59 -0
  63. package/dist/ghost-collapsible-content.d.ts +28 -0
  64. package/dist/ghost-collapsible-content.js +41 -0
  65. package/dist/ghost-collapsible-trigger.d.ts +28 -0
  66. package/dist/ghost-collapsible-trigger.js +41 -0
  67. package/dist/ghost-collapsible.d.ts +44 -0
  68. package/dist/ghost-collapsible.js +38 -0
  69. package/dist/ghost-combobox-content.d.ts +82 -0
  70. package/dist/ghost-combobox-content.js +58 -0
  71. package/dist/ghost-combobox-input.d.ts +28 -0
  72. package/dist/ghost-combobox-input.js +36 -0
  73. package/dist/ghost-combobox-trigger.d.ts +28 -0
  74. package/dist/ghost-combobox-trigger.js +36 -0
  75. package/dist/ghost-combobox.d.ts +179 -0
  76. package/dist/ghost-combobox.js +98 -0
  77. package/dist/ghost-command-palette-content.d.ts +86 -0
  78. package/dist/ghost-command-palette-content.js +55 -0
  79. package/dist/ghost-command-palette-overlay.d.ts +40 -0
  80. package/dist/ghost-command-palette-overlay.js +40 -0
  81. package/dist/ghost-command-palette.d.ts +114 -0
  82. package/dist/ghost-command-palette.js +93 -0
  83. package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
  84. package/dist/ghost-context-menu-checkbox-item.js +57 -0
  85. package/dist/ghost-context-menu-content.d.ts +85 -0
  86. package/dist/ghost-context-menu-content.js +75 -0
  87. package/dist/ghost-context-menu-group.d.ts +19 -0
  88. package/dist/ghost-context-menu-group.js +23 -0
  89. package/dist/ghost-context-menu-item.d.ts +32 -0
  90. package/dist/ghost-context-menu-item.js +43 -0
  91. package/dist/ghost-context-menu-label.d.ts +19 -0
  92. package/dist/ghost-context-menu-label.js +23 -0
  93. package/dist/ghost-context-menu-radio-group.d.ts +50 -0
  94. package/dist/ghost-context-menu-radio-group.js +46 -0
  95. package/dist/ghost-context-menu-radio-item.d.ts +40 -0
  96. package/dist/ghost-context-menu-radio-item.js +53 -0
  97. package/dist/ghost-context-menu-separator.d.ts +28 -0
  98. package/dist/ghost-context-menu-separator.js +28 -0
  99. package/dist/ghost-context-menu-trigger.d.ts +28 -0
  100. package/dist/ghost-context-menu-trigger.js +41 -0
  101. package/dist/ghost-context-menu.d.ts +35 -0
  102. package/dist/ghost-context-menu.js +33 -0
  103. package/dist/ghost-data-table-preset.d.ts +31 -0
  104. package/dist/ghost-data-table-preset.js +12 -0
  105. package/dist/ghost-data-table-table.d.ts +30 -0
  106. package/dist/ghost-data-table-table.js +9 -0
  107. package/dist/ghost-data-table.d.ts +94 -0
  108. package/dist/ghost-data-table.js +105 -0
  109. package/dist/ghost-date-picker-calendar.d.ts +9 -0
  110. package/dist/ghost-date-picker-calendar.js +30 -0
  111. package/dist/ghost-date-picker-content.d.ts +95 -0
  112. package/dist/ghost-date-picker-content.js +58 -0
  113. package/dist/ghost-date-picker-input.d.ts +46 -0
  114. package/dist/ghost-date-picker-input.js +39 -0
  115. package/dist/ghost-date-picker-trigger.d.ts +6 -0
  116. package/dist/ghost-date-picker-trigger.js +22 -0
  117. package/dist/ghost-date-picker.d.ts +245 -0
  118. package/dist/ghost-date-picker.js +68 -0
  119. package/dist/ghost-dialog-close.d.ts +28 -0
  120. package/dist/ghost-dialog-close.js +37 -0
  121. package/dist/ghost-dialog-content.d.ts +95 -0
  122. package/dist/ghost-dialog-content.js +78 -0
  123. package/dist/ghost-dialog-description.d.ts +19 -0
  124. package/dist/ghost-dialog-description.js +37 -0
  125. package/dist/ghost-dialog-overlay.d.ts +40 -0
  126. package/dist/ghost-dialog-overlay.js +46 -0
  127. package/dist/ghost-dialog-title.d.ts +19 -0
  128. package/dist/ghost-dialog-title.js +33 -0
  129. package/dist/ghost-dialog-trigger.d.ts +28 -0
  130. package/dist/ghost-dialog-trigger.js +37 -0
  131. package/dist/ghost-dialog.d.ts +44 -0
  132. package/dist/ghost-dialog.js +38 -0
  133. package/dist/ghost-drawer-close.d.ts +28 -0
  134. package/dist/ghost-drawer-close.js +37 -0
  135. package/dist/ghost-drawer-content.d.ts +87 -0
  136. package/dist/ghost-drawer-content.js +73 -0
  137. package/dist/ghost-drawer-description.d.ts +19 -0
  138. package/dist/ghost-drawer-description.js +36 -0
  139. package/dist/ghost-drawer-overlay.d.ts +40 -0
  140. package/dist/ghost-drawer-overlay.js +46 -0
  141. package/dist/ghost-drawer-title.d.ts +19 -0
  142. package/dist/ghost-drawer-title.js +32 -0
  143. package/dist/ghost-drawer-trigger.d.ts +28 -0
  144. package/dist/ghost-drawer-trigger.js +37 -0
  145. package/dist/ghost-drawer.d.ts +62 -0
  146. package/dist/ghost-drawer.js +48 -0
  147. package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
  148. package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
  149. package/dist/ghost-dropdown-menu-content.d.ts +85 -0
  150. package/dist/ghost-dropdown-menu-content.js +75 -0
  151. package/dist/ghost-dropdown-menu-group.d.ts +19 -0
  152. package/dist/ghost-dropdown-menu-group.js +23 -0
  153. package/dist/ghost-dropdown-menu-item.d.ts +32 -0
  154. package/dist/ghost-dropdown-menu-item.js +47 -0
  155. package/dist/ghost-dropdown-menu-label.d.ts +19 -0
  156. package/dist/ghost-dropdown-menu-label.js +23 -0
  157. package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
  158. package/dist/ghost-dropdown-menu-radio-group.js +46 -0
  159. package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
  160. package/dist/ghost-dropdown-menu-radio-item.js +53 -0
  161. package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
  162. package/dist/ghost-dropdown-menu-separator.js +28 -0
  163. package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
  164. package/dist/ghost-dropdown-menu-trigger.js +41 -0
  165. package/dist/ghost-dropdown-menu.d.ts +35 -0
  166. package/dist/ghost-dropdown-menu.js +33 -0
  167. package/dist/ghost-empty-state.d.ts +31 -0
  168. package/dist/ghost-empty-state.js +35 -0
  169. package/dist/ghost-field.d.ts +53 -0
  170. package/dist/ghost-field.js +49 -0
  171. package/dist/ghost-file-upload-dropzone.d.ts +9 -0
  172. package/dist/ghost-file-upload-dropzone.js +23 -0
  173. package/dist/ghost-file-upload-item-remove.d.ts +10 -0
  174. package/dist/ghost-file-upload-item-remove.js +30 -0
  175. package/dist/ghost-file-upload-list.d.ts +10 -0
  176. package/dist/ghost-file-upload-list.js +24 -0
  177. package/dist/ghost-file-upload-trigger.d.ts +18 -0
  178. package/dist/ghost-file-upload-trigger.js +30 -0
  179. package/dist/ghost-file-upload.d.ts +147 -0
  180. package/dist/ghost-file-upload.js +98 -0
  181. package/dist/ghost-hover-card-content.d.ts +85 -0
  182. package/dist/ghost-hover-card-content.js +75 -0
  183. package/dist/ghost-hover-card-trigger.d.ts +28 -0
  184. package/dist/ghost-hover-card-trigger.js +41 -0
  185. package/dist/ghost-hover-card.d.ts +62 -0
  186. package/dist/ghost-hover-card.js +48 -0
  187. package/dist/ghost-inline-alert.d.ts +62 -0
  188. package/dist/ghost-inline-alert.js +50 -0
  189. package/dist/ghost-input.d.ts +100 -0
  190. package/dist/ghost-input.js +60 -0
  191. package/dist/ghost-interactive-surface.d.ts +31 -0
  192. package/dist/ghost-interactive-surface.js +36 -0
  193. package/dist/ghost-kbd.d.ts +42 -0
  194. package/dist/ghost-kbd.js +32 -0
  195. package/dist/ghost-link.d.ts +94 -0
  196. package/dist/ghost-link.js +59 -0
  197. package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
  198. package/dist/ghost-menubar-checkbox-item.js +57 -0
  199. package/dist/ghost-menubar-content.d.ts +85 -0
  200. package/dist/ghost-menubar-content.js +71 -0
  201. package/dist/ghost-menubar-group.d.ts +19 -0
  202. package/dist/ghost-menubar-group.js +19 -0
  203. package/dist/ghost-menubar-item.d.ts +32 -0
  204. package/dist/ghost-menubar-item.js +43 -0
  205. package/dist/ghost-menubar-label.d.ts +19 -0
  206. package/dist/ghost-menubar-label.js +19 -0
  207. package/dist/ghost-menubar-menu.d.ts +35 -0
  208. package/dist/ghost-menubar-menu.js +33 -0
  209. package/dist/ghost-menubar-radio-group.d.ts +50 -0
  210. package/dist/ghost-menubar-radio-group.js +46 -0
  211. package/dist/ghost-menubar-radio-item.d.ts +40 -0
  212. package/dist/ghost-menubar-radio-item.js +53 -0
  213. package/dist/ghost-menubar-separator.d.ts +28 -0
  214. package/dist/ghost-menubar-separator.js +28 -0
  215. package/dist/ghost-menubar-trigger.d.ts +28 -0
  216. package/dist/ghost-menubar-trigger.js +37 -0
  217. package/dist/ghost-menubar.d.ts +28 -0
  218. package/dist/ghost-menubar.js +33 -0
  219. package/dist/ghost-number-input.d.ts +153 -0
  220. package/dist/ghost-number-input.js +87 -0
  221. package/dist/ghost-pagination.d.ts +151 -0
  222. package/dist/ghost-pagination.js +71 -0
  223. package/dist/ghost-popover-close.d.ts +28 -0
  224. package/dist/ghost-popover-close.js +37 -0
  225. package/dist/ghost-popover-content.d.ts +86 -0
  226. package/dist/ghost-popover-content.js +72 -0
  227. package/dist/ghost-popover-trigger.d.ts +28 -0
  228. package/dist/ghost-popover-trigger.js +37 -0
  229. package/dist/ghost-popover.d.ts +35 -0
  230. package/dist/ghost-popover.js +33 -0
  231. package/dist/ghost-progress.d.ts +69 -0
  232. package/dist/ghost-progress.js +37 -0
  233. package/dist/ghost-radio-group-item.d.ts +37 -0
  234. package/dist/ghost-radio-group-item.js +33 -0
  235. package/dist/ghost-radio-group.d.ts +91 -0
  236. package/dist/ghost-radio-group.js +65 -0
  237. package/dist/ghost-scroll-area.d.ts +49 -0
  238. package/dist/ghost-scroll-area.js +32 -0
  239. package/dist/ghost-scroll-spy-item.d.ts +27 -0
  240. package/dist/ghost-scroll-spy-item.js +29 -0
  241. package/dist/ghost-scroll-spy-link.d.ts +44 -0
  242. package/dist/ghost-scroll-spy-link.js +39 -0
  243. package/dist/ghost-scroll-spy-list.d.ts +18 -0
  244. package/dist/ghost-scroll-spy-list.js +27 -0
  245. package/dist/ghost-scroll-spy.d.ts +121 -0
  246. package/dist/ghost-scroll-spy.js +83 -0
  247. package/dist/ghost-segmented-control-item.d.ts +36 -0
  248. package/dist/ghost-segmented-control-item.js +47 -0
  249. package/dist/ghost-segmented-control.d.ts +77 -0
  250. package/dist/ghost-segmented-control.js +73 -0
  251. package/dist/ghost-select-content.d.ts +82 -0
  252. package/dist/ghost-select-content.js +58 -0
  253. package/dist/ghost-select-trigger.d.ts +28 -0
  254. package/dist/ghost-select-trigger.js +36 -0
  255. package/dist/ghost-select.d.ts +54 -0
  256. package/dist/ghost-select.js +51 -0
  257. package/dist/ghost-separator.d.ts +41 -0
  258. package/dist/ghost-separator.js +34 -0
  259. package/dist/ghost-skeleton.d.ts +34 -0
  260. package/dist/ghost-skeleton.js +31 -0
  261. package/dist/ghost-slider.d.ts +150 -0
  262. package/dist/ghost-slider.js +83 -0
  263. package/dist/ghost-spinner.d.ts +42 -0
  264. package/dist/ghost-spinner.js +26 -0
  265. package/dist/ghost-submenu-content.d.ts +22 -0
  266. package/dist/ghost-submenu-content.js +17 -0
  267. package/dist/ghost-submenu-trigger.d.ts +11 -0
  268. package/dist/ghost-submenu-trigger.js +11 -0
  269. package/dist/ghost-submenu.d.ts +1 -0
  270. package/dist/ghost-submenu.js +1 -0
  271. package/dist/ghost-switch.d.ts +102 -0
  272. package/dist/ghost-switch.js +68 -0
  273. package/dist/ghost-table.d.ts +30 -0
  274. package/dist/ghost-table.js +36 -0
  275. package/dist/ghost-tabs-content.d.ts +27 -0
  276. package/dist/ghost-tabs-content.js +38 -0
  277. package/dist/ghost-tabs-list.d.ts +19 -0
  278. package/dist/ghost-tabs-list.js +33 -0
  279. package/dist/ghost-tabs-trigger.d.ts +36 -0
  280. package/dist/ghost-tabs-trigger.js +43 -0
  281. package/dist/ghost-tabs.d.ts +59 -0
  282. package/dist/ghost-tabs.js +45 -0
  283. package/dist/ghost-tags-input.d.ts +75 -0
  284. package/dist/ghost-tags-input.js +54 -0
  285. package/dist/ghost-textarea.d.ts +109 -0
  286. package/dist/ghost-textarea.js +66 -0
  287. package/dist/ghost-toast-viewport.d.ts +43 -0
  288. package/dist/ghost-toast-viewport.js +74 -0
  289. package/dist/ghost-toast.d.ts +54 -0
  290. package/dist/ghost-toast.js +48 -0
  291. package/dist/ghost-toggle-group-item.d.ts +36 -0
  292. package/dist/ghost-toggle-group-item.js +43 -0
  293. package/dist/ghost-toggle-group.d.ts +77 -0
  294. package/dist/ghost-toggle-group.js +69 -0
  295. package/dist/ghost-toolbar.d.ts +6 -0
  296. package/dist/ghost-toolbar.js +24 -0
  297. package/dist/ghost-tooltip-content.d.ts +86 -0
  298. package/dist/ghost-tooltip-content.js +72 -0
  299. package/dist/ghost-tooltip-trigger.d.ts +28 -0
  300. package/dist/ghost-tooltip-trigger.js +37 -0
  301. package/dist/ghost-tooltip.d.ts +62 -0
  302. package/dist/ghost-tooltip.js +50 -0
  303. package/dist/ghost-tree-group.d.ts +32 -0
  304. package/dist/ghost-tree-group.js +39 -0
  305. package/dist/ghost-tree-item.d.ts +45 -0
  306. package/dist/ghost-tree-item.js +42 -0
  307. package/dist/ghost-tree-trigger.d.ts +40 -0
  308. package/dist/ghost-tree-trigger.js +43 -0
  309. package/dist/ghost-tree.d.ts +122 -0
  310. package/dist/ghost-tree.js +98 -0
  311. package/dist/index.d.ts +153 -0
  312. package/dist/index.js +149 -0
  313. package/dist/manifest.json +6835 -0
  314. package/dist/mono.css +1874 -0
  315. package/dist/recipes/accordion.css +42 -0
  316. package/dist/recipes/avatar.css +87 -0
  317. package/dist/recipes/badge.css +170 -0
  318. package/dist/recipes/breadcrumb.css +149 -0
  319. package/dist/recipes/button.css +632 -0
  320. package/dist/recipes/calendar.css +292 -0
  321. package/dist/recipes/card.css +54 -0
  322. package/dist/recipes/checkbox-group.css +30 -0
  323. package/dist/recipes/checkbox.css +262 -0
  324. package/dist/recipes/collapsible.css +304 -0
  325. package/dist/recipes/combobox.css +276 -0
  326. package/dist/recipes/command-palette.css +296 -0
  327. package/dist/recipes/context-menu.css +138 -0
  328. package/dist/recipes/data-table.css +462 -0
  329. package/dist/recipes/date-picker.css +292 -0
  330. package/dist/recipes/dialog.css +199 -0
  331. package/dist/recipes/drawer.css +436 -0
  332. package/dist/recipes/dropdown-menu.css +138 -0
  333. package/dist/recipes/empty-state.css +66 -0
  334. package/dist/recipes/field.css +63 -0
  335. package/dist/recipes/file-upload.css +260 -0
  336. package/dist/recipes/hover-card.css +83 -0
  337. package/dist/recipes/inline-alert.css +172 -0
  338. package/dist/recipes/input.css +176 -0
  339. package/dist/recipes/kbd.css +113 -0
  340. package/dist/recipes/link.css +158 -0
  341. package/dist/recipes/menubar.css +161 -0
  342. package/dist/recipes/number-input.css +222 -0
  343. package/dist/recipes/pagination.css +143 -0
  344. package/dist/recipes/popover.css +102 -0
  345. package/dist/recipes/progress.css +124 -0
  346. package/dist/recipes/radio-group.css +200 -0
  347. package/dist/recipes/scroll-area.css +72 -0
  348. package/dist/recipes/scroll-spy.css +72 -0
  349. package/dist/recipes/segmented-control.css +237 -0
  350. package/dist/recipes/select.css +299 -0
  351. package/dist/recipes/separator.css +41 -0
  352. package/dist/recipes/skeleton.css +132 -0
  353. package/dist/recipes/slider.css +239 -0
  354. package/dist/recipes/spinner.css +93 -0
  355. package/dist/recipes/switch.css +314 -0
  356. package/dist/recipes/table.css +120 -0
  357. package/dist/recipes/tabs.css +139 -0
  358. package/dist/recipes/tags-input.css +120 -0
  359. package/dist/recipes/textarea.css +148 -0
  360. package/dist/recipes/toast.css +321 -0
  361. package/dist/recipes/toggle-group.css +92 -0
  362. package/dist/recipes/toolbar.css +25 -0
  363. package/dist/recipes/tooltip.css +48 -0
  364. package/dist/recipes/tree.css +231 -0
  365. package/dist/start-theme-transition.d.ts +9 -0
  366. package/dist/start-theme-transition.js +27 -0
  367. package/dist/tokens/primitives.json +612 -0
  368. package/dist/tokens/seeds.json +23 -0
  369. package/dist/tokens/semantic.compact.json +175 -0
  370. package/dist/tokens/semantic.dark.json +583 -0
  371. package/dist/tokens/semantic.json +1656 -0
  372. package/dist/tokens/semantic.spacious.json +175 -0
  373. package/dist/tokens.css +1874 -0
  374. package/dist/tokens.json +6152 -0
  375. package/dist/vibrant.css +1874 -0
  376. package/package.json +75 -4
@@ -0,0 +1,54 @@
1
+ import { defineComponent, h, useTemplateRef, } from 'vue';
2
+ import { GhostTagsInput as GhostUnstyledTagsInput, } from '@ghostvue/vue';
3
+ /** The themed free-form tag editor, backed by the headless form control. */
4
+ export const GhostTagsInput = defineComponent({
5
+ name: 'GhostTagsInput',
6
+ inheritAttrs: false,
7
+ props: {
8
+ modelValue: {
9
+ type: Array,
10
+ default: undefined,
11
+ },
12
+ defaultValue: {
13
+ type: Array,
14
+ default: () => [],
15
+ },
16
+ delimiters: {
17
+ type: Array,
18
+ default: () => [],
19
+ },
20
+ name: { type: String, default: undefined },
21
+ disabled: Boolean,
22
+ readonly: Boolean,
23
+ required: Boolean,
24
+ invalid: Boolean,
25
+ messages: {
26
+ type: Object,
27
+ default: undefined,
28
+ },
29
+ },
30
+ emits: {
31
+ 'update:modelValue': (value) => Array.isArray(value),
32
+ },
33
+ slots: Object,
34
+ setup(props, { attrs, emit, expose, slots }) {
35
+ const inner = useTemplateRef('inner');
36
+ expose({
37
+ get element() {
38
+ return inner.value?.element ?? null;
39
+ },
40
+ focus() {
41
+ inner.value?.focus();
42
+ },
43
+ });
44
+ return () => h(GhostUnstyledTagsInput, {
45
+ ...attrs,
46
+ ...props,
47
+ ref: 'inner',
48
+ 'data-themed': '',
49
+ 'onUpdate:modelValue': (value) => {
50
+ emit('update:modelValue', value);
51
+ },
52
+ }, slots);
53
+ },
54
+ });
@@ -0,0 +1,109 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostTextareaExposed } from '@ghostvue/vue';
3
+ /** Visual size. Omitting it selects `md`. */
4
+ export type GhostTextareaSize = 'sm' | 'md' | 'lg';
5
+ /**
6
+ * Themed wrapper: visual size as `data-size`, instance-scoped CSS. Behavior
7
+ * stays on the unstyled primitive; native attrs fall through.
8
+ */
9
+ export declare const GhostTextarea: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ modelValue: {
11
+ type: PropType<string | undefined>;
12
+ default: undefined;
13
+ };
14
+ defaultValue: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ readonly: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ invalid: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ required: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ rows: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ maxRows: {
39
+ type: NumberConstructor;
40
+ default: undefined;
41
+ };
42
+ autoResize: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ size: {
47
+ type: PropType<GhostTextareaSize>;
48
+ default: string;
49
+ };
50
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
+ [key: string]: any;
52
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ 'update:modelValue': (value: string) => boolean;
54
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
+ modelValue: {
56
+ type: PropType<string | undefined>;
57
+ default: undefined;
58
+ };
59
+ defaultValue: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ readonly: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ invalid: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ required: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ rows: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ maxRows: {
84
+ type: NumberConstructor;
85
+ default: undefined;
86
+ };
87
+ autoResize: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ size: {
92
+ type: PropType<GhostTextareaSize>;
93
+ default: string;
94
+ };
95
+ }>> & Readonly<{
96
+ "onUpdate:modelValue"?: (value: string) => any;
97
+ }>, {
98
+ invalid: boolean;
99
+ size: GhostTextareaSize;
100
+ required: boolean;
101
+ disabled: boolean;
102
+ modelValue: string | undefined;
103
+ defaultValue: string;
104
+ readonly: boolean;
105
+ rows: number;
106
+ maxRows: number;
107
+ autoResize: boolean;
108
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
109
+ export type { GhostTextareaExposed };
@@ -0,0 +1,66 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostTextarea as GhostUnstyledTextarea, } from '@ghostvue/vue';
3
+ /**
4
+ * Themed wrapper: visual size as `data-size`, instance-scoped CSS. Behavior
5
+ * stays on the unstyled primitive; native attrs fall through.
6
+ */
7
+ export const GhostTextarea = defineComponent({
8
+ name: 'GhostTextarea',
9
+ inheritAttrs: false,
10
+ props: {
11
+ modelValue: {
12
+ type: String,
13
+ default: undefined,
14
+ },
15
+ defaultValue: { type: String, default: '' },
16
+ disabled: { type: Boolean, default: false },
17
+ readonly: { type: Boolean, default: false },
18
+ invalid: { type: Boolean, default: false },
19
+ required: { type: Boolean, default: false },
20
+ rows: { type: Number, default: 2 },
21
+ maxRows: { type: Number, default: undefined },
22
+ autoResize: { type: Boolean, default: false },
23
+ size: { type: String, default: 'md' },
24
+ },
25
+ emits: {
26
+ 'update:modelValue': (value) => typeof value === 'string',
27
+ },
28
+ setup(props, { attrs, 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
+ return () => h('span', { class: 'ghost-themed-scope' }, [
42
+ h(GhostUnstyledTextarea, {
43
+ ...attrs,
44
+ ref: inner,
45
+ // Omit unset optionals so exactOptionalPropertyTypes stays satisfied
46
+ // and uncontrolled v-model still applies.
47
+ ...(props.modelValue === undefined
48
+ ? {}
49
+ : { modelValue: props.modelValue }),
50
+ defaultValue: props.defaultValue,
51
+ disabled: props.disabled,
52
+ readonly: props.readonly,
53
+ invalid: props.invalid,
54
+ required: props.required,
55
+ rows: props.rows,
56
+ ...(props.maxRows === undefined ? {} : { maxRows: props.maxRows }),
57
+ autoResize: props.autoResize,
58
+ // CSS treats a missing hook as md.
59
+ 'data-size': props.size === 'md' ? undefined : props.size,
60
+ 'onUpdate:modelValue': (value) => {
61
+ emit('update:modelValue', value);
62
+ },
63
+ }),
64
+ ]);
65
+ },
66
+ });
@@ -0,0 +1,43 @@
1
+ import { type PropType, type SlotsType } from 'vue';
2
+ import { type GhostToastViewportElement, type GhostToastViewportExposed, type GhostToastViewportItemSlotProps, type GhostToastViewportSlotProps } from '@ghostvue/vue';
3
+ /**
4
+ * Themed {@link GhostToastViewport} wrapper. Sets `data-themed` so the
5
+ * portaled region gets the theme's fixed bottom-end stack (gap, width, and
6
+ * stacking order) outside any `.ghost-theme` host. With `portal: false` it
7
+ * also sets `data-inline`, and the stack stays in normal flow so the
8
+ * surrounding layout places it.
9
+ *
10
+ * Without slots each visible record renders as a themed {@link GhostToast}.
11
+ * A consumer `toast` or `default` slot replaces that content exactly as on
12
+ * the headless viewport.
13
+ */
14
+ export declare const GhostToastViewport: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
15
+ as: {
16
+ type: PropType<GhostToastViewportElement>;
17
+ default: string;
18
+ };
19
+ portal: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
+ as: {
27
+ type: PropType<GhostToastViewportElement>;
28
+ default: string;
29
+ };
30
+ portal: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ }>> & Readonly<{}>, {
35
+ as: GhostToastViewportElement;
36
+ portal: boolean;
37
+ }, SlotsType<{
38
+ /** Replaces the whole stack, as on the headless viewport. */
39
+ default?: (slotProps: GhostToastViewportSlotProps) => unknown;
40
+ /** Content of one toast. Defaults to a themed GhostToast. */
41
+ toast?: (slotProps: GhostToastViewportItemSlotProps) => unknown;
42
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ export type { GhostToastViewportElement, GhostToastViewportExposed, GhostToastViewportItemSlotProps, GhostToastViewportSlotProps, };
@@ -0,0 +1,74 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostToastAction, GhostToastClose, GhostToastDescription, GhostToastTitle, GhostToastViewport as GhostUnstyledToastViewport, } from '@ghostvue/vue';
3
+ import { GhostToast } from './ghost-toast';
4
+ /**
5
+ * Default themed content for one record. It uses the headless parts, so the
6
+ * action still runs `action.onClick` and Close still dismisses through the
7
+ * store. The close icon keeps the headless default's accessible name
8
+ * ("Dismiss") so both layers are found the same way.
9
+ */
10
+ function renderDefaultToast({ toast }) {
11
+ return h(GhostToast, { toast }, () => [
12
+ h(GhostToastTitle, null, () => toast.title),
13
+ toast.description
14
+ ? h(GhostToastDescription, null, () => toast.description)
15
+ : null,
16
+ toast.action ? h(GhostToastAction, null, () => toast.action?.label) : null,
17
+ h(GhostToastClose, { 'aria-label': 'Dismiss' }, () => h('svg', {
18
+ 'aria-hidden': 'true',
19
+ focusable: 'false',
20
+ viewBox: '0 0 16 16',
21
+ width: '16',
22
+ height: '16',
23
+ fill: 'none',
24
+ stroke: 'currentColor',
25
+ 'stroke-width': '1.5',
26
+ 'stroke-linecap': 'round',
27
+ }, [h('path', { d: 'M4 4l8 8M12 4l-8 8' })])),
28
+ ]);
29
+ }
30
+ /**
31
+ * Themed {@link GhostToastViewport} wrapper. Sets `data-themed` so the
32
+ * portaled region gets the theme's fixed bottom-end stack (gap, width, and
33
+ * stacking order) outside any `.ghost-theme` host. With `portal: false` it
34
+ * also sets `data-inline`, and the stack stays in normal flow so the
35
+ * surrounding layout places it.
36
+ *
37
+ * Without slots each visible record renders as a themed {@link GhostToast}.
38
+ * A consumer `toast` or `default` slot replaces that content exactly as on
39
+ * the headless viewport.
40
+ */
41
+ export const GhostToastViewport = defineComponent({
42
+ name: 'GhostToastViewport',
43
+ inheritAttrs: false,
44
+ props: {
45
+ as: {
46
+ type: String,
47
+ default: 'div',
48
+ },
49
+ portal: { type: Boolean, default: true },
50
+ },
51
+ slots: Object,
52
+ setup(props, { attrs, slots, expose }) {
53
+ const inner = ref(null);
54
+ expose({
55
+ get element() {
56
+ return inner.value?.element ?? null;
57
+ },
58
+ });
59
+ return () => {
60
+ const forwarded = { toast: slots.toast ?? renderDefaultToast };
61
+ if (slots.default) {
62
+ forwarded.default = slots.default;
63
+ }
64
+ return h(GhostUnstyledToastViewport, {
65
+ ...attrs,
66
+ ref: inner,
67
+ as: props.as,
68
+ portal: props.portal,
69
+ 'data-themed': '',
70
+ 'data-inline': props.portal ? undefined : '',
71
+ }, forwarded);
72
+ };
73
+ },
74
+ });
@@ -0,0 +1,54 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostToastExposed, type GhostToastRecord, type GhostToastSlotProps } from '@ghostvue/vue';
3
+ /** Visual treatment of a themed toast. Omitting it selects `surface`. */
4
+ export type GhostToastVariant = 'surface' | 'solid';
5
+ /**
6
+ * Semantic color intent, independent of {@link GhostToastVariant}. When it is
7
+ * not set, the record's `type` picks it: `'error'` maps to `danger`, anything
8
+ * else to `neutral`.
9
+ */
10
+ export type GhostToastTone = 'neutral' | 'accent' | 'danger';
11
+ /**
12
+ * Themed {@link GhostToast} wrapper. Adds `data-themed` plus `data-variant` and
13
+ * `data-tone` visual hooks (defaults omitted, as on `GhostInlineAlert`).
14
+ * Timers, pause reasons, Escape, and focus return all stay on the unstyled
15
+ * root, so the themed stack has no behavior of its own.
16
+ *
17
+ * Enter motion lives in `ghost-toast.css` as a CSS animation, which plays once
18
+ * when the root element is inserted. The viewport keys each root by toast id,
19
+ * so `update()` and duplicate-id merges patch the same element and the
20
+ * animation does not replay (spec T7).
21
+ */
22
+ export declare const GhostToast: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
23
+ toast: {
24
+ type: PropType<GhostToastRecord>;
25
+ required: true;
26
+ };
27
+ variant: {
28
+ type: PropType<GhostToastVariant>;
29
+ default: string;
30
+ };
31
+ tone: {
32
+ type: PropType<GhostToastTone | undefined>;
33
+ default: undefined;
34
+ };
35
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ toast: {
39
+ type: PropType<GhostToastRecord>;
40
+ required: true;
41
+ };
42
+ variant: {
43
+ type: PropType<GhostToastVariant>;
44
+ default: string;
45
+ };
46
+ tone: {
47
+ type: PropType<GhostToastTone | undefined>;
48
+ default: undefined;
49
+ };
50
+ }>> & Readonly<{}>, {
51
+ variant: GhostToastVariant;
52
+ tone: GhostToastTone | undefined;
53
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
+ export type { GhostToastExposed, GhostToastRecord, GhostToastSlotProps };
@@ -0,0 +1,48 @@
1
+ import { computed, defineComponent, h, ref } from 'vue';
2
+ import { GhostToast as GhostUnstyledToast, } from '@ghostvue/vue';
3
+ /**
4
+ * Themed {@link GhostToast} wrapper. Adds `data-themed` plus `data-variant` and
5
+ * `data-tone` visual hooks (defaults omitted, as on `GhostInlineAlert`).
6
+ * Timers, pause reasons, Escape, and focus return all stay on the unstyled
7
+ * root, so the themed stack has no behavior of its own.
8
+ *
9
+ * Enter motion lives in `ghost-toast.css` as a CSS animation, which plays once
10
+ * when the root element is inserted. The viewport keys each root by toast id,
11
+ * so `update()` and duplicate-id merges patch the same element and the
12
+ * animation does not replay (spec T7).
13
+ */
14
+ export const GhostToast = defineComponent({
15
+ name: 'GhostToast',
16
+ inheritAttrs: false,
17
+ props: {
18
+ toast: {
19
+ type: Object,
20
+ required: true,
21
+ },
22
+ variant: {
23
+ type: String,
24
+ default: 'surface',
25
+ },
26
+ tone: {
27
+ type: String,
28
+ default: undefined,
29
+ },
30
+ },
31
+ setup(props, { attrs, slots, expose }) {
32
+ const inner = ref(null);
33
+ expose({
34
+ get element() {
35
+ return inner.value?.element ?? null;
36
+ },
37
+ });
38
+ const tone = computed(() => props.tone ?? (props.toast.type === 'error' ? 'danger' : 'neutral'));
39
+ return () => h(GhostUnstyledToast, {
40
+ ...attrs,
41
+ ref: inner,
42
+ toast: props.toast,
43
+ 'data-themed': '',
44
+ 'data-variant': props.variant === 'surface' ? undefined : props.variant,
45
+ 'data-tone': tone.value === 'neutral' ? undefined : tone.value,
46
+ }, slots);
47
+ },
48
+ });
@@ -0,0 +1,36 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostToggleGroupItemElement, type GhostToggleGroupItemExposed } from '@ghostvue/vue';
3
+ /** Themed {@link GhostToggleGroupItem} wrapper. */
4
+ export declare const GhostToggleGroupItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ as: {
6
+ type: PropType<GhostToggleGroupItemElement>;
7
+ default: string;
8
+ };
9
+ value: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ disabled: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ as: {
21
+ type: PropType<GhostToggleGroupItemElement>;
22
+ default: string;
23
+ };
24
+ value: {
25
+ type: StringConstructor;
26
+ required: true;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>> & Readonly<{}>, {
33
+ as: GhostToggleGroupItemElement;
34
+ disabled: boolean;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ export type { GhostToggleGroupItemElement, GhostToggleGroupItemExposed };
@@ -0,0 +1,43 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostToggleGroupItem as GhostUnstyledToggleGroupItem, } from '@ghostvue/vue';
3
+ /** Themed {@link GhostToggleGroupItem} wrapper. */
4
+ export const GhostToggleGroupItem = defineComponent({
5
+ name: 'GhostToggleGroupItem',
6
+ inheritAttrs: false,
7
+ props: {
8
+ as: {
9
+ type: [String, Object, Function],
10
+ default: 'button',
11
+ },
12
+ value: {
13
+ type: String,
14
+ required: true,
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(GhostUnstyledToggleGroupItem, {
35
+ ...attrs,
36
+ ref: inner,
37
+ as: props.as,
38
+ value: props.value,
39
+ disabled: props.disabled,
40
+ 'data-themed': '',
41
+ }, slots);
42
+ },
43
+ });
@@ -0,0 +1,77 @@
1
+ import { type PropType } from 'vue';
2
+ import { type GhostToggleGroupElement, type GhostToggleGroupExposed, type GhostToggleGroupOrientation, type GhostToggleGroupType, type GhostToggleGroupValue } from '@ghostvue/vue';
3
+ /** Themed {@link GhostToggleGroup} wrapper. */
4
+ export declare const GhostToggleGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ type: {
6
+ type: PropType<GhostToggleGroupType>;
7
+ default: string;
8
+ };
9
+ modelValue: {
10
+ type: PropType<GhostToggleGroupValue>;
11
+ default: undefined;
12
+ };
13
+ defaultValue: {
14
+ type: PropType<GhostToggleGroupValue>;
15
+ default: undefined;
16
+ };
17
+ orientation: {
18
+ type: PropType<GhostToggleGroupOrientation>;
19
+ default: string;
20
+ };
21
+ dir: {
22
+ type: PropType<"ltr" | "rtl">;
23
+ default: undefined;
24
+ };
25
+ as: {
26
+ type: PropType<GhostToggleGroupElement>;
27
+ default: string;
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ 'update:modelValue': (value: GhostToggleGroupValue) => value is string | string[] | undefined;
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ type: {
39
+ type: PropType<GhostToggleGroupType>;
40
+ default: string;
41
+ };
42
+ modelValue: {
43
+ type: PropType<GhostToggleGroupValue>;
44
+ default: undefined;
45
+ };
46
+ defaultValue: {
47
+ type: PropType<GhostToggleGroupValue>;
48
+ default: undefined;
49
+ };
50
+ orientation: {
51
+ type: PropType<GhostToggleGroupOrientation>;
52
+ default: string;
53
+ };
54
+ dir: {
55
+ type: PropType<"ltr" | "rtl">;
56
+ default: undefined;
57
+ };
58
+ as: {
59
+ type: PropType<GhostToggleGroupElement>;
60
+ default: string;
61
+ };
62
+ disabled: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ }>> & Readonly<{
67
+ "onUpdate:modelValue"?: (value: GhostToggleGroupValue) => any;
68
+ }>, {
69
+ as: GhostToggleGroupElement;
70
+ type: GhostToggleGroupType;
71
+ disabled: boolean;
72
+ modelValue: GhostToggleGroupValue;
73
+ defaultValue: GhostToggleGroupValue;
74
+ dir: "ltr" | "rtl";
75
+ orientation: GhostToggleGroupOrientation;
76
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
77
+ export type { GhostToggleGroupExposed };
@@ -0,0 +1,69 @@
1
+ import { defineComponent, h, ref } from 'vue';
2
+ import { GhostToggleGroup as GhostUnstyledToggleGroup, } from '@ghostvue/vue';
3
+ /** Themed {@link GhostToggleGroup} wrapper. */
4
+ export const GhostToggleGroup = defineComponent({
5
+ name: 'GhostToggleGroup',
6
+ inheritAttrs: false,
7
+ props: {
8
+ type: {
9
+ type: String,
10
+ default: 'single',
11
+ },
12
+ modelValue: {
13
+ type: [String, Array],
14
+ default: undefined,
15
+ },
16
+ defaultValue: {
17
+ type: [String, Array],
18
+ default: undefined,
19
+ },
20
+ orientation: {
21
+ type: String,
22
+ default: 'horizontal',
23
+ },
24
+ dir: {
25
+ type: String,
26
+ default: undefined,
27
+ },
28
+ as: {
29
+ type: [String, Object, Function],
30
+ default: 'div',
31
+ },
32
+ disabled: {
33
+ type: Boolean,
34
+ default: false,
35
+ },
36
+ },
37
+ emits: {
38
+ 'update:modelValue': (value) => value === undefined || typeof value === 'string' || Array.isArray(value),
39
+ },
40
+ setup(props, { attrs, emit, slots, expose }) {
41
+ const inner = ref(null);
42
+ expose({
43
+ get element() {
44
+ return inner.value?.element ?? null;
45
+ },
46
+ focus(options) {
47
+ inner.value?.focus(options);
48
+ },
49
+ blur() {
50
+ inner.value?.blur();
51
+ },
52
+ });
53
+ return () => h(GhostUnstyledToggleGroup, {
54
+ ...attrs,
55
+ ref: inner,
56
+ type: props.type,
57
+ modelValue: props.modelValue,
58
+ defaultValue: props.defaultValue,
59
+ orientation: props.orientation,
60
+ dir: props.dir,
61
+ as: props.as,
62
+ disabled: props.disabled,
63
+ 'data-themed': '',
64
+ 'onUpdate:modelValue': (value) => {
65
+ emit('update:modelValue', value);
66
+ },
67
+ }, slots);
68
+ },
69
+ });
@@ -0,0 +1,6 @@
1
+ import { type GhostToolbarExposed } from '@ghostvue/vue';
2
+ /** Themed wrapper: layout via instance-scoped CSS. Behavior stays unstyled. */
3
+ export declare const GhostToolbar: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
+ [key: string]: any;
5
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ export type { GhostToolbarExposed };