@threadlabs/looma 0.47.6 → 0.49.1

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 (932) hide show
  1. package/README.md +40 -17
  2. package/components/shared/input-modality.d.ts +2 -0
  3. package/components/shared/input-modality.js +2 -0
  4. package/components/shared/overlay.js +9 -0
  5. package/components/ui-compact-content/ui-compact-content.html +8 -0
  6. package/components/ui-compact-content/ui-compact-content.js +1 -0
  7. package/components/ui-compact-editor/ui-compact-editor.css +39 -0
  8. package/components/ui-compact-editor/ui-compact-editor.html +22 -0
  9. package/components/ui-compact-editor/ui-compact-editor.js +30 -0
  10. package/components/ui-compact-mark/ui-compact-mark.html +26 -0
  11. package/components/ui-compact-node/ui-compact-node.html +14 -0
  12. package/components/ui-dialog/ui-dialog.html +4 -1
  13. package/components/ui-editor/ui-editor.css +531 -0
  14. package/components/ui-editor/ui-editor.html +414 -0
  15. package/components/ui-editor/ui-editor.js +87 -0
  16. package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +2 -1
  17. package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +6 -0
  18. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.html +59 -0
  19. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.js +44 -0
  20. package/components/ui-editor-link-form/ui-editor-link-form.html +1 -0
  21. package/components/ui-editor-link-form/ui-editor-link-form.js +7 -0
  22. package/components/ui-editor-surface/ui-editor-surface.css +109 -0
  23. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  24. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +7 -4
  25. package/components/ui-menu/ui-menu.html +4 -1
  26. package/components/ui-meter/ui-meter.html +7 -7
  27. package/components/ui-popover/ui-popover.html +4 -1
  28. package/components/ui-radio-group/ui-radio-group.html +3 -1
  29. package/components/ui-radio-group/ui-radio-group.js +5 -0
  30. package/dist/index.js +57 -53
  31. package/docs/README.md +5 -7
  32. package/docs/catalog.json +1080 -180
  33. package/docs/catalog.mjs +2 -2
  34. package/docs/framework-examples.d.mts +7 -0
  35. package/docs/framework-examples.mjs +89 -0
  36. package/docs/index.d.ts +1 -1
  37. package/docs/render.mjs +3 -40
  38. package/editor/chunks/content.js +29 -0
  39. package/{vue/chunks/compact.js → editor/chunks/dist.js} +103 -230
  40. package/editor/chunks/expressmark.js +1 -24
  41. package/editor/chunks/extensions.js +63 -455
  42. package/editor/chunks/session.js +61 -0
  43. package/editor/chunks/{ui.js → table-overlay.js} +51 -1
  44. package/editor/compact.d.ts +22 -0
  45. package/editor/compact.js +63 -0
  46. package/editor/components.css +3699 -0
  47. package/editor/document-session.d.ts +274 -0
  48. package/editor/extensions/index.js +2 -2
  49. package/editor/index.d.ts +4 -0
  50. package/editor/index.js +15578 -4
  51. package/editor/session.d.ts +1 -1
  52. package/editor/toolbar-tooltip.d.ts +5 -1
  53. package/editor/ui.js +1 -2
  54. package/package.json +31 -46
  55. package/styles/ui-action-bar.css +1 -1
  56. package/styles/ui-affordance-scope.css +1 -1
  57. package/styles/ui-avatar-group.css +1 -1
  58. package/styles/ui-avatar.css +1 -1
  59. package/styles/ui-badge.css +1 -1
  60. package/styles/ui-breadcrumb-item.css +1 -1
  61. package/styles/ui-breadcrumbs.css +1 -1
  62. package/styles/ui-button.css +1 -1
  63. package/styles/ui-callout.css +1 -1
  64. package/styles/ui-card-group.css +1 -1
  65. package/styles/ui-card.css +1 -1
  66. package/styles/ui-checkbox.css +1 -1
  67. package/styles/ui-cluster.css +1 -1
  68. package/styles/ui-color-picker.css +1 -1
  69. package/styles/ui-combobox.css +1 -1
  70. package/styles/ui-compact-content.css +1 -0
  71. package/styles/ui-compact-editor.css +1 -0
  72. package/styles/ui-compact-mark.css +1 -0
  73. package/styles/ui-compact-node.css +1 -0
  74. package/styles/ui-container.css +1 -1
  75. package/styles/ui-context-menu.css +1 -1
  76. package/styles/ui-cover.css +1 -1
  77. package/styles/ui-curve-editor.css +1 -1
  78. package/styles/ui-cycle-button.css +1 -1
  79. package/styles/ui-description-item.css +1 -1
  80. package/styles/ui-description-list.css +1 -1
  81. package/styles/ui-dialog.css +9 -3
  82. package/styles/ui-disclosure.css +1 -1
  83. package/styles/ui-editable.css +1 -1
  84. package/styles/ui-editor-block-actions.css +1 -1
  85. package/styles/ui-editor-chip-editor.css +1 -1
  86. package/styles/ui-editor-code-language.css +1 -1
  87. package/styles/ui-editor-footnote-editor.css +1 -1
  88. package/styles/ui-editor-formatting-tools.css +1 -0
  89. package/styles/ui-editor-image-toolbar.css +1 -1
  90. package/styles/ui-editor-insert-table-grid.css +1 -1
  91. package/styles/ui-editor-link-card.css +1 -1
  92. package/styles/ui-editor-link-form.css +1 -1
  93. package/styles/ui-editor-mention-menu-item.css +1 -1
  94. package/styles/ui-editor-mention-menu.css +1 -1
  95. package/styles/ui-editor-slash-menu-group.css +1 -1
  96. package/styles/ui-editor-slash-menu-item.css +1 -1
  97. package/styles/ui-editor-slash-menu.css +1 -1
  98. package/styles/ui-editor-surface.css +1 -1
  99. package/styles/ui-editor-table-context-menu.css +1 -1
  100. package/styles/ui-editor-table-overlay.css +1 -1
  101. package/styles/ui-editor-table-toolbar.css +1 -1
  102. package/styles/ui-editor-toolbar.css +1 -1
  103. package/styles/ui-editor.css +1 -0
  104. package/styles/ui-floating-action-button.css +1 -1
  105. package/styles/ui-form-field.css +1 -1
  106. package/styles/ui-grid.css +1 -1
  107. package/styles/ui-icon-button.css +1 -1
  108. package/styles/ui-icon.css +1 -1
  109. package/styles/ui-image.css +1 -1
  110. package/styles/ui-input-group.css +1 -1
  111. package/styles/ui-input.css +1 -1
  112. package/styles/ui-light-editor.css +1 -1
  113. package/styles/ui-list-item.css +1 -1
  114. package/styles/ui-list.css +1 -1
  115. package/styles/ui-listbox.css +1 -1
  116. package/styles/ui-menu-group.css +1 -1
  117. package/styles/ui-menu-item.css +1 -1
  118. package/styles/ui-menu.css +5 -2
  119. package/styles/ui-meter.css +8 -8
  120. package/styles/ui-nav-item.css +1 -1
  121. package/styles/ui-number-input.css +1 -1
  122. package/styles/ui-page-header.css +1 -1
  123. package/styles/ui-pagination.css +1 -1
  124. package/styles/ui-popover.css +5 -2
  125. package/styles/ui-radio-group.css +1 -1
  126. package/styles/ui-radio.css +1 -1
  127. package/styles/ui-reel.css +1 -1
  128. package/styles/ui-scroll-area.css +1 -1
  129. package/styles/ui-search-result-row.css +1 -1
  130. package/styles/ui-search-shell.css +1 -1
  131. package/styles/ui-section.css +1 -1
  132. package/styles/ui-select.css +1 -1
  133. package/styles/ui-separator.css +1 -1
  134. package/styles/ui-sidebar.css +1 -1
  135. package/styles/ui-site-header.css +1 -1
  136. package/styles/ui-skeleton.css +1 -1
  137. package/styles/ui-slider.css +1 -1
  138. package/styles/ui-spinner.css +1 -1
  139. package/styles/ui-stack.css +1 -1
  140. package/styles/ui-status-message.css +1 -1
  141. package/styles/ui-swatch.css +1 -1
  142. package/styles/ui-switch.css +1 -1
  143. package/styles/ui-switcher.css +1 -1
  144. package/styles/ui-table.css +1 -1
  145. package/styles/ui-tabs.css +1 -1
  146. package/styles/ui-text.css +1 -1
  147. package/styles/ui-textarea.css +1 -1
  148. package/styles/ui-toast-region.css +1 -1
  149. package/styles/ui-toast.css +1 -1
  150. package/styles/ui-tooltip.css +1 -1
  151. package/styles/ui-top-bar.css +1 -1
  152. package/styles/ui-tree-item.css +1 -1
  153. package/styles/ui-tree.css +1 -1
  154. package/vanilla/UiActionBar.d.ts +1 -1
  155. package/vanilla/UiActionBar.js +1 -1
  156. package/vanilla/UiAffordanceScope.d.ts +1 -1
  157. package/vanilla/UiAffordanceScope.js +1 -1
  158. package/vanilla/UiAvatar.d.ts +1 -1
  159. package/vanilla/UiAvatar.js +1 -1
  160. package/vanilla/UiAvatarGroup.d.ts +1 -1
  161. package/vanilla/UiAvatarGroup.js +1 -1
  162. package/vanilla/UiBadge.d.ts +1 -1
  163. package/vanilla/UiBadge.js +1 -1
  164. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  165. package/vanilla/UiBreadcrumbItem.js +1 -1
  166. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  167. package/vanilla/UiBreadcrumbs.js +1 -1
  168. package/vanilla/UiButton.d.ts +1 -1
  169. package/vanilla/UiButton.js +1 -1
  170. package/vanilla/UiCallout.d.ts +1 -1
  171. package/vanilla/UiCallout.js +1 -1
  172. package/vanilla/UiCard.d.ts +1 -1
  173. package/vanilla/UiCard.js +1 -1
  174. package/vanilla/UiCardGroup.d.ts +1 -1
  175. package/vanilla/UiCardGroup.js +1 -1
  176. package/vanilla/UiCheckbox.d.ts +1 -1
  177. package/vanilla/UiCheckbox.js +1 -1
  178. package/vanilla/UiCluster.d.ts +1 -1
  179. package/vanilla/UiCluster.js +1 -1
  180. package/vanilla/UiColorPicker.d.ts +1 -1
  181. package/vanilla/UiColorPicker.js +1 -1
  182. package/vanilla/UiCombobox.d.ts +1 -1
  183. package/vanilla/UiCombobox.js +1 -1
  184. package/vanilla/UiCompactContent.d.ts +23 -0
  185. package/vanilla/UiCompactContent.js +51 -0
  186. package/vanilla/UiCompactEditor.d.ts +29 -0
  187. package/vanilla/UiCompactEditor.js +59 -0
  188. package/vanilla/UiCompactMark.d.ts +25 -0
  189. package/vanilla/UiCompactMark.js +206 -0
  190. package/vanilla/UiCompactNode.d.ts +23 -0
  191. package/vanilla/UiCompactNode.js +156 -0
  192. package/vanilla/UiContainer.d.ts +1 -1
  193. package/vanilla/UiContainer.js +1 -1
  194. package/vanilla/UiContextMenu.d.ts +1 -1
  195. package/vanilla/UiContextMenu.js +1 -1
  196. package/vanilla/UiCover.d.ts +1 -1
  197. package/vanilla/UiCover.js +1 -1
  198. package/vanilla/UiCurveEditor.d.ts +1 -1
  199. package/vanilla/UiCurveEditor.js +1 -1
  200. package/vanilla/UiCycleButton.d.ts +1 -1
  201. package/vanilla/UiCycleButton.js +1 -1
  202. package/vanilla/UiDescriptionItem.d.ts +1 -1
  203. package/vanilla/UiDescriptionItem.js +1 -1
  204. package/vanilla/UiDescriptionList.d.ts +1 -1
  205. package/vanilla/UiDescriptionList.js +1 -1
  206. package/vanilla/UiDialog.d.ts +1 -1
  207. package/vanilla/UiDialog.js +1 -1
  208. package/vanilla/UiDisclosure.d.ts +1 -1
  209. package/vanilla/UiDisclosure.js +1 -1
  210. package/vanilla/UiEditable.d.ts +1 -1
  211. package/vanilla/UiEditable.js +1 -1
  212. package/vanilla/UiEditor.d.ts +57 -0
  213. package/vanilla/UiEditor.js +1067 -0
  214. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  215. package/vanilla/UiEditorBlockActions.js +1 -1
  216. package/vanilla/UiEditorChipEditor.d.ts +2 -1
  217. package/vanilla/UiEditorChipEditor.js +10 -10
  218. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  219. package/vanilla/UiEditorCodeLanguage.js +1 -1
  220. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  221. package/vanilla/UiEditorFootnoteEditor.js +1 -1
  222. package/vanilla/UiEditorFormattingTools.d.ts +27 -0
  223. package/vanilla/UiEditorFormattingTools.js +188 -0
  224. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  225. package/vanilla/UiEditorImageToolbar.js +1 -1
  226. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  227. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  228. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  229. package/vanilla/UiEditorLinkCard.js +1 -1
  230. package/vanilla/UiEditorLinkForm.d.ts +2 -1
  231. package/vanilla/UiEditorLinkForm.js +41 -41
  232. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  233. package/vanilla/UiEditorMentionMenu.js +1 -1
  234. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  235. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  236. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  237. package/vanilla/UiEditorSlashMenu.js +1 -1
  238. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  239. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  240. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  241. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  242. package/vanilla/UiEditorSurface.d.ts +1 -1
  243. package/vanilla/UiEditorSurface.js +1 -1
  244. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  245. package/vanilla/UiEditorTableContextMenu.js +10 -5
  246. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  247. package/vanilla/UiEditorTableOverlay.js +1 -1
  248. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  249. package/vanilla/UiEditorTableToolbar.js +1 -1
  250. package/vanilla/UiEditorToolbar.d.ts +1 -1
  251. package/vanilla/UiEditorToolbar.js +1 -1
  252. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  253. package/vanilla/UiFloatingActionButton.js +1 -1
  254. package/vanilla/UiFormField.d.ts +1 -1
  255. package/vanilla/UiFormField.js +1 -1
  256. package/vanilla/UiGrid.d.ts +1 -1
  257. package/vanilla/UiGrid.js +1 -1
  258. package/vanilla/UiIcon.d.ts +1 -1
  259. package/vanilla/UiIcon.js +1 -1
  260. package/vanilla/UiIconButton.d.ts +1 -1
  261. package/vanilla/UiIconButton.js +1 -1
  262. package/vanilla/UiImage.d.ts +1 -1
  263. package/vanilla/UiImage.js +1 -1
  264. package/vanilla/UiInput.d.ts +1 -1
  265. package/vanilla/UiInput.js +1 -1
  266. package/vanilla/UiInputGroup.d.ts +1 -1
  267. package/vanilla/UiInputGroup.js +1 -1
  268. package/vanilla/UiLightEditor.d.ts +1 -1
  269. package/vanilla/UiLightEditor.js +1 -1
  270. package/vanilla/UiList.d.ts +1 -1
  271. package/vanilla/UiList.js +1 -1
  272. package/vanilla/UiListItem.d.ts +1 -1
  273. package/vanilla/UiListItem.js +1 -1
  274. package/vanilla/UiListbox.d.ts +1 -1
  275. package/vanilla/UiListbox.js +1 -1
  276. package/vanilla/UiMenu.d.ts +1 -1
  277. package/vanilla/UiMenu.js +1 -1
  278. package/vanilla/UiMenuGroup.d.ts +1 -1
  279. package/vanilla/UiMenuGroup.js +1 -1
  280. package/vanilla/UiMenuItem.d.ts +1 -1
  281. package/vanilla/UiMenuItem.js +1 -1
  282. package/vanilla/UiMeter.d.ts +1 -1
  283. package/vanilla/UiMeter.js +1 -1
  284. package/vanilla/UiNavItem.d.ts +1 -1
  285. package/vanilla/UiNavItem.js +1 -1
  286. package/vanilla/UiNumberInput.d.ts +1 -1
  287. package/vanilla/UiNumberInput.js +1 -1
  288. package/vanilla/UiPageHeader.d.ts +1 -1
  289. package/vanilla/UiPageHeader.js +1 -1
  290. package/vanilla/UiPagination.d.ts +1 -1
  291. package/vanilla/UiPagination.js +1 -1
  292. package/vanilla/UiPopover.d.ts +1 -1
  293. package/vanilla/UiPopover.js +1 -1
  294. package/vanilla/UiRadio.d.ts +1 -1
  295. package/vanilla/UiRadio.js +1 -1
  296. package/vanilla/UiRadioGroup.d.ts +2 -1
  297. package/vanilla/UiRadioGroup.js +33 -28
  298. package/vanilla/UiReel.d.ts +1 -1
  299. package/vanilla/UiReel.js +1 -1
  300. package/vanilla/UiScrollArea.d.ts +1 -1
  301. package/vanilla/UiScrollArea.js +1 -1
  302. package/vanilla/UiSearchResultRow.d.ts +1 -1
  303. package/vanilla/UiSearchResultRow.js +1 -1
  304. package/vanilla/UiSearchShell.d.ts +1 -1
  305. package/vanilla/UiSearchShell.js +1 -1
  306. package/vanilla/UiSection.d.ts +1 -1
  307. package/vanilla/UiSection.js +1 -1
  308. package/vanilla/UiSelect.d.ts +1 -1
  309. package/vanilla/UiSelect.js +1 -1
  310. package/vanilla/UiSeparator.d.ts +1 -1
  311. package/vanilla/UiSeparator.js +1 -1
  312. package/vanilla/UiSidebar.d.ts +1 -1
  313. package/vanilla/UiSidebar.js +1 -1
  314. package/vanilla/UiSiteHeader.d.ts +1 -1
  315. package/vanilla/UiSiteHeader.js +1 -1
  316. package/vanilla/UiSkeleton.d.ts +1 -1
  317. package/vanilla/UiSkeleton.js +1 -1
  318. package/vanilla/UiSlider.d.ts +1 -1
  319. package/vanilla/UiSlider.js +1 -1
  320. package/vanilla/UiSpinner.d.ts +1 -1
  321. package/vanilla/UiSpinner.js +1 -1
  322. package/vanilla/UiStack.d.ts +1 -1
  323. package/vanilla/UiStack.js +1 -1
  324. package/vanilla/UiStatusMessage.d.ts +1 -1
  325. package/vanilla/UiStatusMessage.js +1 -1
  326. package/vanilla/UiSwatch.d.ts +1 -1
  327. package/vanilla/UiSwatch.js +1 -1
  328. package/vanilla/UiSwitch.d.ts +1 -1
  329. package/vanilla/UiSwitch.js +1 -1
  330. package/vanilla/UiSwitcher.d.ts +1 -1
  331. package/vanilla/UiSwitcher.js +1 -1
  332. package/vanilla/UiTable.d.ts +1 -1
  333. package/vanilla/UiTable.js +1 -1
  334. package/vanilla/UiTabs.d.ts +1 -1
  335. package/vanilla/UiTabs.js +1 -1
  336. package/vanilla/UiText.d.ts +1 -1
  337. package/vanilla/UiText.js +1 -1
  338. package/vanilla/UiTextarea.d.ts +1 -1
  339. package/vanilla/UiTextarea.js +1 -1
  340. package/vanilla/UiToast.d.ts +1 -1
  341. package/vanilla/UiToast.js +1 -1
  342. package/vanilla/UiToastRegion.d.ts +1 -1
  343. package/vanilla/UiToastRegion.js +1 -1
  344. package/vanilla/UiTooltip.d.ts +1 -1
  345. package/vanilla/UiTooltip.js +1 -1
  346. package/vanilla/UiTopBar.d.ts +1 -1
  347. package/vanilla/UiTopBar.js +1 -1
  348. package/vanilla/UiTree.d.ts +1 -1
  349. package/vanilla/UiTree.js +1 -1
  350. package/vanilla/UiTreeItem.d.ts +1 -1
  351. package/vanilla/UiTreeItem.js +1 -1
  352. package/vanilla/index.js +6 -0
  353. package/editor/chunks/table-backgrounds.js +0 -51
  354. package/vue/UiActionBar.d.ts +0 -19
  355. package/vue/UiActionBar.js +0 -2
  356. package/vue/UiActionBar.vue +0 -90
  357. package/vue/UiAffordanceScope.d.ts +0 -35
  358. package/vue/UiAffordanceScope.js +0 -2
  359. package/vue/UiAffordanceScope.vue +0 -182
  360. package/vue/UiAvatar.d.ts +0 -71
  361. package/vue/UiAvatar.js +0 -2
  362. package/vue/UiAvatar.vue +0 -394
  363. package/vue/UiAvatarGroup.d.ts +0 -53
  364. package/vue/UiAvatarGroup.js +0 -2
  365. package/vue/UiAvatarGroup.vue +0 -305
  366. package/vue/UiBadge.d.ts +0 -49
  367. package/vue/UiBadge.js +0 -2
  368. package/vue/UiBadge.vue +0 -810
  369. package/vue/UiBreadcrumbItem.d.ts +0 -29
  370. package/vue/UiBreadcrumbItem.js +0 -2
  371. package/vue/UiBreadcrumbItem.vue +0 -192
  372. package/vue/UiBreadcrumbs.d.ts +0 -29
  373. package/vue/UiBreadcrumbs.js +0 -2
  374. package/vue/UiBreadcrumbs.vue +0 -117
  375. package/vue/UiButton.d.ts +0 -131
  376. package/vue/UiButton.js +0 -2
  377. package/vue/UiButton.vue +0 -1609
  378. package/vue/UiCallout.d.ts +0 -35
  379. package/vue/UiCallout.js +0 -2
  380. package/vue/UiCallout.vue +0 -418
  381. package/vue/UiCard.d.ts +0 -81
  382. package/vue/UiCard.js +0 -2
  383. package/vue/UiCard.vue +0 -530
  384. package/vue/UiCardGroup.d.ts +0 -41
  385. package/vue/UiCardGroup.js +0 -2
  386. package/vue/UiCardGroup.vue +0 -168
  387. package/vue/UiCheckbox.d.ts +0 -95
  388. package/vue/UiCheckbox.js +0 -2
  389. package/vue/UiCheckbox.vue +0 -601
  390. package/vue/UiCluster.d.ts +0 -65
  391. package/vue/UiCluster.js +0 -2
  392. package/vue/UiCluster.vue +0 -304
  393. package/vue/UiColorPicker.d.ts +0 -71
  394. package/vue/UiColorPicker.js +0 -2
  395. package/vue/UiColorPicker.vue +0 -563
  396. package/vue/UiCombobox.d.ts +0 -538
  397. package/vue/UiCombobox.js +0 -2
  398. package/vue/UiCombobox.vue +0 -2894
  399. package/vue/UiContainer.d.ts +0 -41
  400. package/vue/UiContainer.js +0 -2
  401. package/vue/UiContainer.vue +0 -177
  402. package/vue/UiContextMenu.d.ts +0 -69
  403. package/vue/UiContextMenu.js +0 -2
  404. package/vue/UiContextMenu.vue +0 -289
  405. package/vue/UiCover.d.ts +0 -29
  406. package/vue/UiCover.js +0 -2
  407. package/vue/UiCover.vue +0 -127
  408. package/vue/UiCurveEditor.d.ts +0 -59
  409. package/vue/UiCurveEditor.js +0 -2
  410. package/vue/UiCurveEditor.vue +0 -429
  411. package/vue/UiCycleButton.d.ts +0 -69
  412. package/vue/UiCycleButton.js +0 -2
  413. package/vue/UiCycleButton.vue +0 -403
  414. package/vue/UiDescriptionItem.d.ts +0 -29
  415. package/vue/UiDescriptionItem.js +0 -2
  416. package/vue/UiDescriptionItem.vue +0 -124
  417. package/vue/UiDescriptionList.d.ts +0 -41
  418. package/vue/UiDescriptionList.js +0 -2
  419. package/vue/UiDescriptionList.vue +0 -217
  420. package/vue/UiDialog.d.ts +0 -97
  421. package/vue/UiDialog.js +0 -2
  422. package/vue/UiDialog.vue +0 -817
  423. package/vue/UiDisclosure.d.ts +0 -107
  424. package/vue/UiDisclosure.js +0 -2
  425. package/vue/UiDisclosure.vue +0 -605
  426. package/vue/UiEditable.d.ts +0 -113
  427. package/vue/UiEditable.js +0 -2
  428. package/vue/UiEditable.vue +0 -582
  429. package/vue/UiEditorBlockActions.d.ts +0 -33
  430. package/vue/UiEditorBlockActions.js +0 -2
  431. package/vue/UiEditorBlockActions.vue +0 -163
  432. package/vue/UiEditorChipEditor.d.ts +0 -45
  433. package/vue/UiEditorChipEditor.js +0 -2
  434. package/vue/UiEditorChipEditor.vue +0 -208
  435. package/vue/UiEditorCodeLanguage.d.ts +0 -41
  436. package/vue/UiEditorCodeLanguage.js +0 -2
  437. package/vue/UiEditorCodeLanguage.vue +0 -200
  438. package/vue/UiEditorFootnoteEditor.d.ts +0 -39
  439. package/vue/UiEditorFootnoteEditor.js +0 -2
  440. package/vue/UiEditorFootnoteEditor.vue +0 -152
  441. package/vue/UiEditorImageToolbar.d.ts +0 -51
  442. package/vue/UiEditorImageToolbar.js +0 -2
  443. package/vue/UiEditorImageToolbar.vue +0 -446
  444. package/vue/UiEditorInsertTableGrid.d.ts +0 -49
  445. package/vue/UiEditorInsertTableGrid.js +0 -2
  446. package/vue/UiEditorInsertTableGrid.vue +0 -367
  447. package/vue/UiEditorLinkCard.d.ts +0 -49
  448. package/vue/UiEditorLinkCard.js +0 -2
  449. package/vue/UiEditorLinkCard.vue +0 -385
  450. package/vue/UiEditorLinkForm.d.ts +0 -131
  451. package/vue/UiEditorLinkForm.js +0 -2
  452. package/vue/UiEditorLinkForm.vue +0 -664
  453. package/vue/UiEditorMentionMenu.d.ts +0 -121
  454. package/vue/UiEditorMentionMenu.js +0 -2
  455. package/vue/UiEditorMentionMenu.vue +0 -596
  456. package/vue/UiEditorMentionMenuItem.d.ts +0 -43
  457. package/vue/UiEditorMentionMenuItem.js +0 -2
  458. package/vue/UiEditorMentionMenuItem.vue +0 -205
  459. package/vue/UiEditorSlashMenu.d.ts +0 -111
  460. package/vue/UiEditorSlashMenu.js +0 -2
  461. package/vue/UiEditorSlashMenu.vue +0 -549
  462. package/vue/UiEditorSlashMenuGroup.d.ts +0 -29
  463. package/vue/UiEditorSlashMenuGroup.js +0 -2
  464. package/vue/UiEditorSlashMenuGroup.vue +0 -113
  465. package/vue/UiEditorSlashMenuItem.d.ts +0 -53
  466. package/vue/UiEditorSlashMenuItem.js +0 -2
  467. package/vue/UiEditorSlashMenuItem.vue +0 -249
  468. package/vue/UiEditorSurface.d.ts +0 -29
  469. package/vue/UiEditorSurface.js +0 -2
  470. package/vue/UiEditorSurface.vue +0 -117
  471. package/vue/UiEditorTableContextMenu.d.ts +0 -57
  472. package/vue/UiEditorTableContextMenu.js +0 -2
  473. package/vue/UiEditorTableContextMenu.vue +0 -694
  474. package/vue/UiEditorTableOverlay.d.ts +0 -191
  475. package/vue/UiEditorTableOverlay.js +0 -2
  476. package/vue/UiEditorTableOverlay.vue +0 -1099
  477. package/vue/UiEditorTableToolbar.d.ts +0 -57
  478. package/vue/UiEditorTableToolbar.js +0 -2
  479. package/vue/UiEditorTableToolbar.vue +0 -834
  480. package/vue/UiEditorToolbar.d.ts +0 -29
  481. package/vue/UiEditorToolbar.js +0 -2
  482. package/vue/UiEditorToolbar.vue +0 -296
  483. package/vue/UiFloatingActionButton.d.ts +0 -41
  484. package/vue/UiFloatingActionButton.js +0 -2
  485. package/vue/UiFloatingActionButton.vue +0 -201
  486. package/vue/UiFormField.d.ts +0 -49
  487. package/vue/UiFormField.js +0 -2
  488. package/vue/UiFormField.vue +0 -256
  489. package/vue/UiGrid.d.ts +0 -41
  490. package/vue/UiGrid.js +0 -2
  491. package/vue/UiGrid.vue +0 -190
  492. package/vue/UiIcon.d.ts +0 -25
  493. package/vue/UiIcon.js +0 -2
  494. package/vue/UiIcon.vue +0 -612
  495. package/vue/UiIconButton.d.ts +0 -101
  496. package/vue/UiIconButton.js +0 -2
  497. package/vue/UiIconButton.vue +0 -1141
  498. package/vue/UiImage.d.ts +0 -85
  499. package/vue/UiImage.js +0 -2
  500. package/vue/UiImage.vue +0 -462
  501. package/vue/UiInput.d.ts +0 -50
  502. package/vue/UiInput.js +0 -2
  503. package/vue/UiInput.vue +0 -671
  504. package/vue/UiInputGroup.d.ts +0 -59
  505. package/vue/UiInputGroup.js +0 -2
  506. package/vue/UiInputGroup.vue +0 -447
  507. package/vue/UiLightEditor.d.ts +0 -83
  508. package/vue/UiLightEditor.js +0 -2
  509. package/vue/UiLightEditor.vue +0 -537
  510. package/vue/UiList.d.ts +0 -49
  511. package/vue/UiList.js +0 -2
  512. package/vue/UiList.vue +0 -260
  513. package/vue/UiListItem.d.ts +0 -65
  514. package/vue/UiListItem.js +0 -2
  515. package/vue/UiListItem.vue +0 -407
  516. package/vue/UiListbox.d.ts +0 -87
  517. package/vue/UiListbox.js +0 -2
  518. package/vue/UiListbox.vue +0 -554
  519. package/vue/UiMenu.d.ts +0 -99
  520. package/vue/UiMenu.js +0 -2
  521. package/vue/UiMenu.vue +0 -541
  522. package/vue/UiMenuGroup.d.ts +0 -29
  523. package/vue/UiMenuGroup.js +0 -2
  524. package/vue/UiMenuGroup.vue +0 -105
  525. package/vue/UiMenuItem.d.ts +0 -89
  526. package/vue/UiMenuItem.js +0 -2
  527. package/vue/UiMenuItem.vue +0 -532
  528. package/vue/UiMeter.d.ts +0 -73
  529. package/vue/UiMeter.js +0 -2
  530. package/vue/UiMeter.vue +0 -1112
  531. package/vue/UiNavItem.d.ts +0 -79
  532. package/vue/UiNavItem.js +0 -2
  533. package/vue/UiNavItem.vue +0 -493
  534. package/vue/UiNumberInput.d.ts +0 -89
  535. package/vue/UiNumberInput.js +0 -2
  536. package/vue/UiNumberInput.vue +0 -445
  537. package/vue/UiPageHeader.d.ts +0 -37
  538. package/vue/UiPageHeader.js +0 -2
  539. package/vue/UiPageHeader.vue +0 -192
  540. package/vue/UiPagination.d.ts +0 -115
  541. package/vue/UiPagination.js +0 -2
  542. package/vue/UiPagination.vue +0 -596
  543. package/vue/UiPopover.d.ts +0 -77
  544. package/vue/UiPopover.js +0 -2
  545. package/vue/UiPopover.vue +0 -495
  546. package/vue/UiRadio.d.ts +0 -77
  547. package/vue/UiRadio.js +0 -2
  548. package/vue/UiRadio.vue +0 -475
  549. package/vue/UiRadioGroup.d.ts +0 -95
  550. package/vue/UiRadioGroup.js +0 -2
  551. package/vue/UiRadioGroup.vue +0 -393
  552. package/vue/UiReel.d.ts +0 -41
  553. package/vue/UiReel.js +0 -2
  554. package/vue/UiReel.vue +0 -223
  555. package/vue/UiScrollArea.d.ts +0 -53
  556. package/vue/UiScrollArea.js +0 -2
  557. package/vue/UiScrollArea.vue +0 -307
  558. package/vue/UiSearchResultRow.d.ts +0 -49
  559. package/vue/UiSearchResultRow.js +0 -2
  560. package/vue/UiSearchResultRow.vue +0 -268
  561. package/vue/UiSearchShell.d.ts +0 -67
  562. package/vue/UiSearchShell.js +0 -2
  563. package/vue/UiSearchShell.vue +0 -391
  564. package/vue/UiSection.d.ts +0 -51
  565. package/vue/UiSection.js +0 -2
  566. package/vue/UiSection.vue +0 -331
  567. package/vue/UiSelect.d.ts +0 -69
  568. package/vue/UiSelect.js +0 -2
  569. package/vue/UiSelect.vue +0 -391
  570. package/vue/UiSeparator.d.ts +0 -37
  571. package/vue/UiSeparator.js +0 -2
  572. package/vue/UiSeparator.vue +0 -199
  573. package/vue/UiSidebar.d.ts +0 -99
  574. package/vue/UiSidebar.js +0 -2
  575. package/vue/UiSidebar.vue +0 -579
  576. package/vue/UiSiteHeader.d.ts +0 -59
  577. package/vue/UiSiteHeader.js +0 -2
  578. package/vue/UiSiteHeader.vue +0 -904
  579. package/vue/UiSkeleton.d.ts +0 -37
  580. package/vue/UiSkeleton.js +0 -2
  581. package/vue/UiSkeleton.vue +0 -287
  582. package/vue/UiSlider.d.ts +0 -89
  583. package/vue/UiSlider.js +0 -2
  584. package/vue/UiSlider.vue +0 -448
  585. package/vue/UiSpinner.d.ts +0 -25
  586. package/vue/UiSpinner.js +0 -2
  587. package/vue/UiSpinner.vue +0 -330
  588. package/vue/UiStack.d.ts +0 -53
  589. package/vue/UiStack.js +0 -2
  590. package/vue/UiStack.vue +0 -247
  591. package/vue/UiStatusMessage.d.ts +0 -43
  592. package/vue/UiStatusMessage.js +0 -2
  593. package/vue/UiStatusMessage.vue +0 -239
  594. package/vue/UiSwatch.d.ts +0 -19
  595. package/vue/UiSwatch.js +0 -2
  596. package/vue/UiSwatch.vue +0 -188
  597. package/vue/UiSwitch.d.ts +0 -77
  598. package/vue/UiSwitch.js +0 -2
  599. package/vue/UiSwitch.vue +0 -478
  600. package/vue/UiSwitcher.d.ts +0 -47
  601. package/vue/UiSwitcher.js +0 -2
  602. package/vue/UiSwitcher.vue +0 -258
  603. package/vue/UiTable.d.ts +0 -35
  604. package/vue/UiTable.js +0 -2
  605. package/vue/UiTable.vue +0 -280
  606. package/vue/UiTabs.d.ts +0 -81
  607. package/vue/UiTabs.js +0 -2
  608. package/vue/UiTabs.vue +0 -493
  609. package/vue/UiText.d.ts +0 -111
  610. package/vue/UiText.js +0 -2
  611. package/vue/UiText.vue +0 -836
  612. package/vue/UiTextarea.d.ts +0 -77
  613. package/vue/UiTextarea.js +0 -2
  614. package/vue/UiTextarea.vue +0 -477
  615. package/vue/UiToast.d.ts +0 -49
  616. package/vue/UiToast.js +0 -2
  617. package/vue/UiToast.vue +0 -337
  618. package/vue/UiToastRegion.d.ts +0 -61
  619. package/vue/UiToastRegion.js +0 -2
  620. package/vue/UiToastRegion.vue +0 -631
  621. package/vue/UiTooltip.d.ts +0 -93
  622. package/vue/UiTooltip.js +0 -2
  623. package/vue/UiTooltip.vue +0 -627
  624. package/vue/UiTopBar.d.ts +0 -35
  625. package/vue/UiTopBar.js +0 -2
  626. package/vue/UiTopBar.vue +0 -240
  627. package/vue/UiTree.d.ts +0 -123
  628. package/vue/UiTree.js +0 -2
  629. package/vue/UiTree.vue +0 -419
  630. package/vue/UiTreeItem.d.ts +0 -133
  631. package/vue/UiTreeItem.js +0 -2
  632. package/vue/UiTreeItem.vue +0 -1962
  633. package/vue/chunks/UiActionBar.js +0 -42
  634. package/vue/chunks/UiAffordanceScope.js +0 -136
  635. package/vue/chunks/UiAvatar.js +0 -341
  636. package/vue/chunks/UiAvatarGroup.js +0 -234
  637. package/vue/chunks/UiBadge.js +0 -188
  638. package/vue/chunks/UiBreadcrumbItem.js +0 -104
  639. package/vue/chunks/UiBreadcrumbs.js +0 -67
  640. package/vue/chunks/UiButton.js +0 -881
  641. package/vue/chunks/UiCallout.js +0 -302
  642. package/vue/chunks/UiCard.js +0 -369
  643. package/vue/chunks/UiCardGroup.js +0 -153
  644. package/vue/chunks/UiCheckbox.js +0 -361
  645. package/vue/chunks/UiCluster.js +0 -236
  646. package/vue/chunks/UiColorPicker.js +0 -375
  647. package/vue/chunks/UiCombobox.js +0 -2186
  648. package/vue/chunks/UiContainer.js +0 -122
  649. package/vue/chunks/UiContextMenu.js +0 -157
  650. package/vue/chunks/UiCover.js +0 -66
  651. package/vue/chunks/UiCurveEditor.js +0 -415
  652. package/vue/chunks/UiCycleButton.js +0 -352
  653. package/vue/chunks/UiDescriptionItem.js +0 -64
  654. package/vue/chunks/UiDescriptionList.js +0 -133
  655. package/vue/chunks/UiDialog.js +0 -367
  656. package/vue/chunks/UiDisclosure.js +0 -403
  657. package/vue/chunks/UiEditable.js +0 -436
  658. package/vue/chunks/UiEditorBlockActions.js +0 -157
  659. package/vue/chunks/UiEditorChipEditor.js +0 -191
  660. package/vue/chunks/UiEditorCodeLanguage.js +0 -181
  661. package/vue/chunks/UiEditorFootnoteEditor.js +0 -114
  662. package/vue/chunks/UiEditorImageToolbar.js +0 -531
  663. package/vue/chunks/UiEditorInsertTableGrid.js +0 -325
  664. package/vue/chunks/UiEditorLinkCard.js +0 -391
  665. package/vue/chunks/UiEditorLinkForm.js +0 -711
  666. package/vue/chunks/UiEditorMentionMenu.js +0 -618
  667. package/vue/chunks/UiEditorMentionMenuItem.js +0 -140
  668. package/vue/chunks/UiEditorSlashMenu.js +0 -555
  669. package/vue/chunks/UiEditorSlashMenuGroup.js +0 -78
  670. package/vue/chunks/UiEditorSlashMenuItem.js +0 -197
  671. package/vue/chunks/UiEditorSurface.js +0 -66
  672. package/vue/chunks/UiEditorTableContextMenu.js +0 -500
  673. package/vue/chunks/UiEditorTableOverlay.js +0 -987
  674. package/vue/chunks/UiEditorTableToolbar.js +0 -707
  675. package/vue/chunks/UiEditorToolbar.js +0 -103
  676. package/vue/chunks/UiFloatingActionButton.js +0 -123
  677. package/vue/chunks/UiFormField.js +0 -172
  678. package/vue/chunks/UiGrid.js +0 -127
  679. package/vue/chunks/UiIcon.js +0 -1361
  680. package/vue/chunks/UiIconButton.js +0 -469
  681. package/vue/chunks/UiImage.js +0 -312
  682. package/vue/chunks/UiInput.js +0 -709
  683. package/vue/chunks/UiInputGroup.js +0 -225
  684. package/vue/chunks/UiLightEditor.js +0 -365
  685. package/vue/chunks/UiList.js +0 -178
  686. package/vue/chunks/UiListItem.js +0 -219
  687. package/vue/chunks/UiListbox.js +0 -489
  688. package/vue/chunks/UiMenu.js +0 -286
  689. package/vue/chunks/UiMenuGroup.js +0 -75
  690. package/vue/chunks/UiMenuItem.js +0 -374
  691. package/vue/chunks/UiMeter.js +0 -540
  692. package/vue/chunks/UiNavItem.js +0 -380
  693. package/vue/chunks/UiNumberInput.js +0 -432
  694. package/vue/chunks/UiPageHeader.js +0 -100
  695. package/vue/chunks/UiPagination.js +0 -537
  696. package/vue/chunks/UiPopover.js +0 -243
  697. package/vue/chunks/UiRadio.js +0 -291
  698. package/vue/chunks/UiRadioGroup.js +0 -300
  699. package/vue/chunks/UiReel.js +0 -133
  700. package/vue/chunks/UiScrollArea.js +0 -219
  701. package/vue/chunks/UiSearchResultRow.js +0 -164
  702. package/vue/chunks/UiSearchShell.js +0 -215
  703. package/vue/chunks/UiSection.js +0 -228
  704. package/vue/chunks/UiSelect.js +0 -251
  705. package/vue/chunks/UiSeparator.js +0 -144
  706. package/vue/chunks/UiSidebar.js +0 -358
  707. package/vue/chunks/UiSiteHeader.js +0 -335
  708. package/vue/chunks/UiSkeleton.js +0 -183
  709. package/vue/chunks/UiSlider.js +0 -427
  710. package/vue/chunks/UiSpinner.js +0 -181
  711. package/vue/chunks/UiStack.js +0 -177
  712. package/vue/chunks/UiStatusMessage.js +0 -176
  713. package/vue/chunks/UiSwatch.js +0 -93
  714. package/vue/chunks/UiSwitch.js +0 -292
  715. package/vue/chunks/UiSwitcher.js +0 -194
  716. package/vue/chunks/UiTable.js +0 -128
  717. package/vue/chunks/UiTabs.js +0 -334
  718. package/vue/chunks/UiText.js +0 -747
  719. package/vue/chunks/UiTextarea.js +0 -313
  720. package/vue/chunks/UiToast.js +0 -174
  721. package/vue/chunks/UiToastRegion.js +0 -275
  722. package/vue/chunks/UiTooltip.js +0 -297
  723. package/vue/chunks/UiTopBar.js +0 -129
  724. package/vue/chunks/UiTree.js +0 -282
  725. package/vue/chunks/UiTreeItem.js +0 -699
  726. package/vue/chunks/_plugin-vue_export-helper.js +0 -1265
  727. package/vue/chunks/control.js +0 -214
  728. package/vue/chunks/props.js +0 -1228
  729. package/vue/components.css +0 -17545
  730. package/vue/editor/LoomaEditor.d.ts +0 -433
  731. package/vue/editor/compact/index.d.ts +0 -84
  732. package/vue/editor/compact/index.js +0 -2
  733. package/vue/editor/index.d.ts +0 -5
  734. package/vue/editor/index.js +0 -17281
  735. package/vue/editor/primitives.d.ts +0 -120
  736. package/vue/host.ts +0 -2272
  737. package/vue/index.d.ts +0 -94
  738. package/vue/index.js +0 -95
  739. package/vue/props.d.ts +0 -272
  740. /package/{vue → editor}/chunks/1c.js +0 -0
  741. /package/{vue → editor}/chunks/abnf.js +0 -0
  742. /package/{vue → editor}/chunks/accesslog.js +0 -0
  743. /package/{vue → editor}/chunks/actionscript.js +0 -0
  744. /package/{vue → editor}/chunks/ada.js +0 -0
  745. /package/{vue → editor}/chunks/angelscript.js +0 -0
  746. /package/{vue → editor}/chunks/apache.js +0 -0
  747. /package/{vue → editor}/chunks/applescript.js +0 -0
  748. /package/{vue → editor}/chunks/arcade.js +0 -0
  749. /package/{vue → editor}/chunks/arduino.js +0 -0
  750. /package/{vue → editor}/chunks/armasm.js +0 -0
  751. /package/{vue → editor}/chunks/asciidoc.js +0 -0
  752. /package/{vue → editor}/chunks/aspectj.js +0 -0
  753. /package/{vue → editor}/chunks/autohotkey.js +0 -0
  754. /package/{vue → editor}/chunks/autoit.js +0 -0
  755. /package/{vue → editor}/chunks/avrasm.js +0 -0
  756. /package/{vue → editor}/chunks/awk.js +0 -0
  757. /package/{vue → editor}/chunks/axapta.js +0 -0
  758. /package/{vue → editor}/chunks/bash.js +0 -0
  759. /package/{vue → editor}/chunks/basic.js +0 -0
  760. /package/{vue → editor}/chunks/bnf.js +0 -0
  761. /package/{vue → editor}/chunks/brainfuck.js +0 -0
  762. /package/{vue → editor}/chunks/c.js +0 -0
  763. /package/{vue → editor}/chunks/cal.js +0 -0
  764. /package/{vue → editor}/chunks/capnproto.js +0 -0
  765. /package/{vue → editor}/chunks/ceylon.js +0 -0
  766. /package/{vue → editor}/chunks/clean.js +0 -0
  767. /package/{vue → editor}/chunks/clojure-repl.js +0 -0
  768. /package/{vue → editor}/chunks/clojure.js +0 -0
  769. /package/{vue → editor}/chunks/cmake.js +0 -0
  770. /package/{vue → editor}/chunks/coffeescript.js +0 -0
  771. /package/{vue → editor}/chunks/coq.js +0 -0
  772. /package/{vue → editor}/chunks/cos.js +0 -0
  773. /package/{vue → editor}/chunks/cpp.js +0 -0
  774. /package/{vue → editor}/chunks/crmsh.js +0 -0
  775. /package/{vue → editor}/chunks/crystal.js +0 -0
  776. /package/{vue → editor}/chunks/csharp.js +0 -0
  777. /package/{vue → editor}/chunks/csp.js +0 -0
  778. /package/{vue → editor}/chunks/css.js +0 -0
  779. /package/{vue → editor}/chunks/d.js +0 -0
  780. /package/{vue → editor}/chunks/dart.js +0 -0
  781. /package/{vue → editor}/chunks/delphi.js +0 -0
  782. /package/{vue → editor}/chunks/diff.js +0 -0
  783. /package/{vue → editor}/chunks/django.js +0 -0
  784. /package/{vue → editor}/chunks/dns.js +0 -0
  785. /package/{vue → editor}/chunks/dockerfile.js +0 -0
  786. /package/{vue → editor}/chunks/dos.js +0 -0
  787. /package/{vue → editor}/chunks/dsconfig.js +0 -0
  788. /package/{vue → editor}/chunks/dts.js +0 -0
  789. /package/{vue → editor}/chunks/dust.js +0 -0
  790. /package/{vue → editor}/chunks/ebnf.js +0 -0
  791. /package/{vue → editor}/chunks/elixir.js +0 -0
  792. /package/{vue → editor}/chunks/elm.js +0 -0
  793. /package/{vue → editor}/chunks/erb.js +0 -0
  794. /package/{vue → editor}/chunks/erlang-repl.js +0 -0
  795. /package/{vue → editor}/chunks/erlang.js +0 -0
  796. /package/{vue → editor}/chunks/excel.js +0 -0
  797. /package/{vue → editor}/chunks/fix.js +0 -0
  798. /package/{vue → editor}/chunks/flix.js +0 -0
  799. /package/{vue → editor}/chunks/fortran.js +0 -0
  800. /package/{vue → editor}/chunks/fsharp.js +0 -0
  801. /package/{vue → editor}/chunks/gams.js +0 -0
  802. /package/{vue → editor}/chunks/gauss.js +0 -0
  803. /package/{vue → editor}/chunks/gcode.js +0 -0
  804. /package/{vue → editor}/chunks/gherkin.js +0 -0
  805. /package/{vue → editor}/chunks/glsl.js +0 -0
  806. /package/{vue → editor}/chunks/gml.js +0 -0
  807. /package/{vue → editor}/chunks/go.js +0 -0
  808. /package/{vue → editor}/chunks/golo.js +0 -0
  809. /package/{vue → editor}/chunks/gradle.js +0 -0
  810. /package/{vue → editor}/chunks/graphql.js +0 -0
  811. /package/{vue → editor}/chunks/groovy.js +0 -0
  812. /package/{vue → editor}/chunks/haml.js +0 -0
  813. /package/{vue → editor}/chunks/handlebars.js +0 -0
  814. /package/{vue → editor}/chunks/haskell.js +0 -0
  815. /package/{vue → editor}/chunks/haxe.js +0 -0
  816. /package/{vue → editor}/chunks/hsp.js +0 -0
  817. /package/{vue → editor}/chunks/http.js +0 -0
  818. /package/{vue → editor}/chunks/hy.js +0 -0
  819. /package/{vue → editor}/chunks/inform7.js +0 -0
  820. /package/{vue → editor}/chunks/ini.js +0 -0
  821. /package/{vue → editor}/chunks/irpf90.js +0 -0
  822. /package/{vue → editor}/chunks/isbl.js +0 -0
  823. /package/{vue → editor}/chunks/java.js +0 -0
  824. /package/{vue → editor}/chunks/javascript.js +0 -0
  825. /package/{vue → editor}/chunks/jboss-cli.js +0 -0
  826. /package/{vue → editor}/chunks/json.js +0 -0
  827. /package/{vue → editor}/chunks/julia-repl.js +0 -0
  828. /package/{vue → editor}/chunks/julia.js +0 -0
  829. /package/{vue → editor}/chunks/kotlin.js +0 -0
  830. /package/{vue → editor}/chunks/lasso.js +0 -0
  831. /package/{vue → editor}/chunks/latex.js +0 -0
  832. /package/{vue → editor}/chunks/ldif.js +0 -0
  833. /package/{vue → editor}/chunks/leaf.js +0 -0
  834. /package/{vue → editor}/chunks/less.js +0 -0
  835. /package/{vue → editor}/chunks/lisp.js +0 -0
  836. /package/{vue → editor}/chunks/livecodeserver.js +0 -0
  837. /package/{vue → editor}/chunks/livescript.js +0 -0
  838. /package/{vue → editor}/chunks/llvm.js +0 -0
  839. /package/{vue → editor}/chunks/lsl.js +0 -0
  840. /package/{vue → editor}/chunks/lua.js +0 -0
  841. /package/{vue → editor}/chunks/makefile.js +0 -0
  842. /package/{vue → editor}/chunks/markdown.js +0 -0
  843. /package/{vue → editor}/chunks/mathematica.js +0 -0
  844. /package/{vue → editor}/chunks/matlab.js +0 -0
  845. /package/{vue → editor}/chunks/maxima.js +0 -0
  846. /package/{vue → editor}/chunks/mel.js +0 -0
  847. /package/{vue → editor}/chunks/mercury.js +0 -0
  848. /package/{vue → editor}/chunks/mipsasm.js +0 -0
  849. /package/{vue → editor}/chunks/mizar.js +0 -0
  850. /package/{vue → editor}/chunks/mojolicious.js +0 -0
  851. /package/{vue → editor}/chunks/monkey.js +0 -0
  852. /package/{vue → editor}/chunks/moonscript.js +0 -0
  853. /package/{vue → editor}/chunks/n1ql.js +0 -0
  854. /package/{vue → editor}/chunks/nestedtext.js +0 -0
  855. /package/{vue → editor}/chunks/nginx.js +0 -0
  856. /package/{vue → editor}/chunks/nim.js +0 -0
  857. /package/{vue → editor}/chunks/nix.js +0 -0
  858. /package/{vue → editor}/chunks/node-repl.js +0 -0
  859. /package/{vue → editor}/chunks/nsis.js +0 -0
  860. /package/{vue → editor}/chunks/objectivec.js +0 -0
  861. /package/{vue → editor}/chunks/ocaml.js +0 -0
  862. /package/{vue → editor}/chunks/openscad.js +0 -0
  863. /package/{vue → editor}/chunks/oxygene.js +0 -0
  864. /package/{vue → editor}/chunks/parser3.js +0 -0
  865. /package/{vue → editor}/chunks/perl.js +0 -0
  866. /package/{vue → editor}/chunks/pf.js +0 -0
  867. /package/{vue → editor}/chunks/pgsql.js +0 -0
  868. /package/{vue → editor}/chunks/php-template.js +0 -0
  869. /package/{vue → editor}/chunks/php.js +0 -0
  870. /package/{vue → editor}/chunks/plaintext.js +0 -0
  871. /package/{vue → editor}/chunks/pony.js +0 -0
  872. /package/{vue → editor}/chunks/powershell.js +0 -0
  873. /package/{vue → editor}/chunks/processing.js +0 -0
  874. /package/{vue → editor}/chunks/profile.js +0 -0
  875. /package/{vue → editor}/chunks/prolog.js +0 -0
  876. /package/{vue → editor}/chunks/properties.js +0 -0
  877. /package/{vue → editor}/chunks/protobuf.js +0 -0
  878. /package/{vue → editor}/chunks/puppet.js +0 -0
  879. /package/{vue → editor}/chunks/purebasic.js +0 -0
  880. /package/{vue → editor}/chunks/python-repl.js +0 -0
  881. /package/{vue → editor}/chunks/python.js +0 -0
  882. /package/{vue → editor}/chunks/q.js +0 -0
  883. /package/{vue → editor}/chunks/qml.js +0 -0
  884. /package/{vue → editor}/chunks/r.js +0 -0
  885. /package/{vue → editor}/chunks/reasonml.js +0 -0
  886. /package/{vue → editor}/chunks/rib.js +0 -0
  887. /package/{vue → editor}/chunks/roboconf.js +0 -0
  888. /package/{vue → editor}/chunks/routeros.js +0 -0
  889. /package/{vue → editor}/chunks/rsl.js +0 -0
  890. /package/{vue → editor}/chunks/ruby.js +0 -0
  891. /package/{vue → editor}/chunks/ruleslanguage.js +0 -0
  892. /package/{vue → editor}/chunks/rust.js +0 -0
  893. /package/{vue → editor}/chunks/sas.js +0 -0
  894. /package/{vue → editor}/chunks/scala.js +0 -0
  895. /package/{vue → editor}/chunks/scheme.js +0 -0
  896. /package/{vue → editor}/chunks/scilab.js +0 -0
  897. /package/{vue → editor}/chunks/scss.js +0 -0
  898. /package/{vue → editor}/chunks/shell.js +0 -0
  899. /package/{vue → editor}/chunks/smali.js +0 -0
  900. /package/{vue → editor}/chunks/smalltalk.js +0 -0
  901. /package/{vue → editor}/chunks/sml.js +0 -0
  902. /package/{vue → editor}/chunks/sqf.js +0 -0
  903. /package/{vue → editor}/chunks/sql.js +0 -0
  904. /package/{vue → editor}/chunks/stan.js +0 -0
  905. /package/{vue → editor}/chunks/stata.js +0 -0
  906. /package/{vue → editor}/chunks/step21.js +0 -0
  907. /package/{vue → editor}/chunks/stylus.js +0 -0
  908. /package/{vue → editor}/chunks/subunit.js +0 -0
  909. /package/{vue → editor}/chunks/swift.js +0 -0
  910. /package/{vue → editor}/chunks/taggerscript.js +0 -0
  911. /package/{vue → editor}/chunks/tap.js +0 -0
  912. /package/{vue → editor}/chunks/tcl.js +0 -0
  913. /package/{vue → editor}/chunks/thrift.js +0 -0
  914. /package/{vue → editor}/chunks/tp.js +0 -0
  915. /package/{vue → editor}/chunks/twig.js +0 -0
  916. /package/{vue → editor}/chunks/typescript.js +0 -0
  917. /package/{vue → editor}/chunks/vala.js +0 -0
  918. /package/{vue → editor}/chunks/vbnet.js +0 -0
  919. /package/{vue → editor}/chunks/vbscript-html.js +0 -0
  920. /package/{vue → editor}/chunks/vbscript.js +0 -0
  921. /package/{vue → editor}/chunks/verilog.js +0 -0
  922. /package/{vue → editor}/chunks/vhdl.js +0 -0
  923. /package/{vue → editor}/chunks/vim.js +0 -0
  924. /package/{vue → editor}/chunks/wasm.js +0 -0
  925. /package/{vue → editor}/chunks/wren.js +0 -0
  926. /package/{vue → editor}/chunks/x86asm.js +0 -0
  927. /package/{vue → editor}/chunks/xl.js +0 -0
  928. /package/{vue → editor}/chunks/xml.js +0 -0
  929. /package/{vue → editor}/chunks/xquery.js +0 -0
  930. /package/{vue → editor}/chunks/yaml.js +0 -0
  931. /package/{vue → editor}/chunks/zephir.js +0 -0
  932. /package/{vue/editor/compact/extensions.d.ts → editor/compact-extensions.d.ts} +0 -0
@@ -1,1141 +0,0 @@
1
- <!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
2
- <script setup lang="ts">
3
- import { computed, getCurrentInstance, ref, watchSyncEffect } from 'vue'
4
- import type { PropType } from 'vue'
5
- import {
6
- attribute,
7
- checkHydratedRoot,
8
- concat,
9
- createDispatch,
10
- cycleCheckedComputed,
11
- nativeAttrs,
12
- useComponentHost,
13
- useReflectedProp,
14
- } from './host'
15
- import {
16
- BINDING_INPUTS_PROP,
17
- checkedProp,
18
- checkPropInput,
19
- type InputBindings,
20
- inputComputed,
21
- inputDefault,
22
- inputRead,
23
- propValidityState,
24
- READY_INPUT,
25
- requireInputStatus,
26
- UNRESOLVED_INPUT,
27
- vPropValidity,
28
- vuePropInputs,
29
- } from './props'
30
- import UiSpinner from './UiSpinner.vue'
31
-
32
- defineOptions({ inheritAttrs: false })
33
-
34
- const propValidityContract = {
35
- props: {
36
- anticipatory: {
37
- type: { kind: 'terminal', name: 'boolean' },
38
- required: false,
39
- target: { attribute: 'anticipatory' },
40
- description:
41
- 'Keeps the button out of sight until it is wanted: at rest a fine pointer sees only a small guide dot, and the button appears on hover, on focus, or when\n the pointer comes near inside a ui-affordance-scope. Touch devices and the solid variant always show it.',
42
- default: false,
43
- },
44
- disabled: {
45
- type: { kind: 'terminal', name: 'boolean' },
46
- required: false,
47
- target: { attribute: 'disabled' },
48
- description:
49
- 'Disables the button, so it cannot be pressed or focused, and gives it a flat neutral surface and muted icon.',
50
- default: false,
51
- },
52
- guide: {
53
- type: { kind: 'terminal', name: 'keyword' },
54
- required: false,
55
- target: { attribute: 'guide' },
56
- description:
57
- 'The idle marker of an anticipatory button: dot for contextual actions, or a slim neutral rounded bar for a panel-edge control. The icon appears on hover or\n keyboard focus; touch always shows the icon.',
58
- values: ['dot', 'bar'],
59
- default: 'dot',
60
- },
61
- label: {
62
- type: { kind: 'terminal', name: 'string' },
63
- required: false,
64
- target: { attribute: 'aria-label' },
65
- description: 'Accessible name for the icon.',
66
- },
67
- loading: {
68
- type: { kind: 'terminal', name: 'boolean' },
69
- required: false,
70
- target: { attribute: 'loading' },
71
- description:
72
- 'Keeps the button focusable and named while work is in progress. It shows a spinner, states aria-disabled and aria-busy, and prevents activation until\n cleared.',
73
- default: false,
74
- },
75
- matchButton: {
76
- type: { kind: 'terminal', name: 'boolean' },
77
- required: false,
78
- target: { attribute: 'data-match-button' },
79
- description:
80
- 'Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row\'s height, on mouse and\n touch alike. Touch expansion stays vertical so an adjacent action keeps its own horizontal boundary. Leave it off for compact toolbar and inline icon\n buttons.',
81
- default: false,
82
- },
83
- pending: {
84
- type: { kind: 'terminal', name: 'boolean' },
85
- required: false,
86
- target: { attribute: 'pending' },
87
- description: 'Deprecated alias for loading.',
88
- default: false,
89
- },
90
- preset: {
91
- type: { kind: 'terminal', name: 'keyword' },
92
- required: false,
93
- target: { attribute: 'preset' },
94
- description:
95
- 'The same shortcuts as Button: primary is solid accent, standard is solid neutral, quiet is ghost neutral, and destructive is solid danger. A named preset\n wins over variant and tone; none preserves independent choices.',
96
- values: ['none', 'primary', 'standard', 'quiet', 'destructive'],
97
- default: 'none',
98
- },
99
- revealed: {
100
- type: { kind: 'terminal', name: 'boolean' },
101
- required: false,
102
- target: { attribute: 'revealed' },
103
- description:
104
- 'Keeps an anticipatory button visible while its context is active, such as a selected block or an open popup. It does not imply a pressed or expanded\n state.',
105
- default: false,
106
- },
107
- round: {
108
- type: { kind: 'terminal', name: 'boolean' },
109
- required: false,
110
- target: { attribute: 'round' },
111
- description: 'Use a fully circular shape.',
112
- default: false,
113
- },
114
- size: {
115
- type: { kind: 'terminal', name: 'keyword' },
116
- required: false,
117
- target: { attribute: 'size' },
118
- description:
119
- 'Button and icon size together: sm is 1.75rem with a small icon, md is 2rem, and lg is 2.5rem with a large icon. Touch can use an invisible hit area sized\n by the adjustable control target preference.',
120
- values: ['sm', 'md', 'lg'],
121
- default: 'md',
122
- },
123
- tone: {
124
- type: { kind: 'terminal', name: 'keyword' },
125
- required: false,
126
- target: { attribute: 'tone' },
127
- description:
128
- 'Colour for every variant. The default neutral shares the quiet control family with fields and text buttons. Choose accent explicitly for a coloured action,\n or primary for solid accent. danger, success, warning and info share Button\'s intent colors. Native aria-pressed="true" keeps an outline toggle visibly\n pressed; the consumer owns that state. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme, and\n unset families follow the primary accent.',
129
- values: [
130
- 'accent',
131
- 'accent-secondary',
132
- 'accent-tertiary',
133
- 'neutral',
134
- 'danger',
135
- 'success',
136
- 'warning',
137
- 'info',
138
- ],
139
- default: 'neutral',
140
- },
141
- variant: {
142
- type: { kind: 'terminal', name: 'keyword' },
143
- required: false,
144
- target: { attribute: 'variant' },
145
- description:
146
- 'Emphasis. ghost shows only the icon until it is hovered, for toolbars and dense rows; outline adds a border on the default surface; solid fills with its\n chosen tone.',
147
- values: ['ghost', 'outline', 'solid'],
148
- default: 'ghost',
149
- },
150
- },
151
- } as const
152
- const props = defineProps({
153
- anticipatory: { type: null as unknown as PropType<boolean | null> },
154
- disabled: { type: null as unknown as PropType<boolean | null> },
155
- guide: { type: null as unknown as PropType<'dot' | 'bar' | null> },
156
- label: { type: null as unknown as PropType<string | null> },
157
- loading: { type: null as unknown as PropType<boolean | null> },
158
- matchButton: { type: null as unknown as PropType<boolean | null> },
159
- pending: { type: null as unknown as PropType<boolean | null> },
160
- preset: {
161
- type: null as unknown as PropType<
162
- 'none' | 'primary' | 'standard' | 'quiet' | 'destructive' | null
163
- >,
164
- },
165
- revealed: { type: null as unknown as PropType<boolean | null> },
166
- round: { type: null as unknown as PropType<boolean | null> },
167
- size: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null> },
168
- tone: {
169
- type: null as unknown as PropType<
170
- | 'accent'
171
- | 'accent-secondary'
172
- | 'accent-tertiary'
173
- | 'neutral'
174
- | 'danger'
175
- | 'success'
176
- | 'warning'
177
- | 'info'
178
- | null
179
- >,
180
- },
181
- variant: { type: null as unknown as PropType<'ghost' | 'outline' | 'solid' | null> },
182
- [BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
183
- })
184
- const acceptedProps: Record<string, unknown> = {
185
- anticipatory: false,
186
- disabled: false,
187
- guide: 'dot',
188
- label: null,
189
- loading: false,
190
- matchButton: false,
191
- pending: false,
192
- preset: 'none',
193
- revealed: false,
194
- round: false,
195
- size: 'md',
196
- tone: 'neutral',
197
- variant: 'ghost',
198
- }
199
- const inputTracking = vuePropInputs(acceptedProps, {
200
- anticipatory: false,
201
- disabled: false,
202
- guide: 'dot',
203
- loading: false,
204
- matchButton: false,
205
- pending: false,
206
- preset: 'none',
207
- revealed: false,
208
- round: false,
209
- size: 'md',
210
- tone: 'neutral',
211
- variant: 'ghost',
212
- }, (name, value, source, values) => {
213
- switch (name) {
214
- case 'anticipatory':
215
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
216
- case 'disabled':
217
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
218
- case 'guide':
219
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
220
- case 'label':
221
- return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
222
- case 'loading':
223
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
224
- case 'matchButton':
225
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
226
- case 'pending':
227
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
228
- case 'preset':
229
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
230
- case 'revealed':
231
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
232
- case 'round':
233
- return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
234
- case 'size':
235
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
236
- case 'tone':
237
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
238
- case 'variant':
239
- return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
240
- default:
241
- return { ok: false }
242
- }
243
- }, () => {
244
- void checkedProps.value
245
- })
246
- const propInputs = inputTracking.inputs
247
- const checkedProps = computed(() => {
248
- void inputTracking.version.value
249
- return ({
250
- anticipatory: propInputs.value<boolean | null>(
251
- 'anticipatory',
252
- props['anticipatory'],
253
- props[BINDING_INPUTS_PROP],
254
- ) as boolean,
255
- disabled: propInputs.value<boolean | null>(
256
- 'disabled',
257
- props['disabled'],
258
- props[BINDING_INPUTS_PROP],
259
- ) as boolean,
260
- guide: propInputs.value<'dot' | 'bar' | null>(
261
- 'guide',
262
- props['guide'],
263
- props[BINDING_INPUTS_PROP],
264
- ) as 'dot' | 'bar',
265
- label: propInputs.value<string | null>('label', props['label'], props[BINDING_INPUTS_PROP]),
266
- loading: propInputs.value<boolean | null>(
267
- 'loading',
268
- props['loading'],
269
- props[BINDING_INPUTS_PROP],
270
- ) as boolean,
271
- matchButton: propInputs.value<boolean | null>(
272
- 'matchButton',
273
- props['matchButton'],
274
- props[BINDING_INPUTS_PROP],
275
- ) as boolean,
276
- pending: propInputs.value<boolean | null>(
277
- 'pending',
278
- props['pending'],
279
- props[BINDING_INPUTS_PROP],
280
- ) as boolean,
281
- preset: propInputs.value<'none' | 'primary' | 'standard' | 'quiet' | 'destructive' | null>(
282
- 'preset',
283
- props['preset'],
284
- props[BINDING_INPUTS_PROP],
285
- ) as 'none' | 'primary' | 'standard' | 'quiet' | 'destructive',
286
- revealed: propInputs.value<boolean | null>(
287
- 'revealed',
288
- props['revealed'],
289
- props[BINDING_INPUTS_PROP],
290
- ) as boolean,
291
- round: propInputs.value<boolean | null>(
292
- 'round',
293
- props['round'],
294
- props[BINDING_INPUTS_PROP],
295
- ) as boolean,
296
- size: propInputs.value<'sm' | 'md' | 'lg' | null>(
297
- 'size',
298
- props['size'],
299
- props[BINDING_INPUTS_PROP],
300
- ) as 'sm' | 'md' | 'lg',
301
- tone: propInputs.value<
302
- | 'accent'
303
- | 'accent-secondary'
304
- | 'accent-tertiary'
305
- | 'neutral'
306
- | 'danger'
307
- | 'success'
308
- | 'warning'
309
- | 'info'
310
- | null
311
- >('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
312
- | 'accent'
313
- | 'accent-secondary'
314
- | 'accent-tertiary'
315
- | 'neutral'
316
- | 'danger'
317
- | 'success'
318
- | 'warning'
319
- | 'info',
320
- variant: propInputs.value<'ghost' | 'outline' | 'solid' | null>(
321
- 'variant',
322
- props['variant'],
323
- props[BINDING_INPUTS_PROP],
324
- ) as 'ghost' | 'outline' | 'solid',
325
- })
326
- })
327
- const inputStatus = (name: string, handlesError: boolean) => {
328
- void checkedProps.value
329
- void inputTracking.version.value
330
- return requireInputStatus(propInputs.status(name), handlesError)
331
- }
332
- void checkedProps.value
333
- watchSyncEffect(() => {
334
- void checkedProps.value
335
- })
336
- const reflectedProp = useReflectedProp()
337
- const hydrationInstance = getCurrentInstance()
338
-
339
- const root = ref<HTMLElement | null>(null)
340
- const appearance: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
341
- () =>
342
- (({
343
- none: inputRead(checkedProps.value.variant, propInputs.status('variant')),
344
- primary: 'solid',
345
- standard: 'solid',
346
- quiet: 'ghost',
347
- destructive: 'solid',
348
- }) as Record<string, any>)[
349
- inputRead(checkedProps.value.preset, propInputs.status('preset'))
350
- ] as any,
351
- (read) => {
352
- const value = cycleCheckedComputed(read)
353
- return { get: () => value.value }
354
- },
355
- )
356
- const colorTone: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
357
- () =>
358
- (({
359
- none: inputRead(checkedProps.value.tone, propInputs.status('tone')),
360
- primary: 'accent',
361
- standard: 'neutral',
362
- quiet: 'neutral',
363
- destructive: 'danger',
364
- }) as Record<string, any>)[
365
- inputRead(checkedProps.value.preset, propInputs.status('preset'))
366
- ] as any,
367
- (read) => {
368
- const value = cycleCheckedComputed(read)
369
- return { get: () => value.value }
370
- },
371
- )
372
- let guardedPrevious: any = null
373
- const guarded = computed(() => {
374
- const candidate: any = ((objectValue: any, indexValue: any) =>
375
- objectValue === Symbol.for('html-next.invalid-result')
376
- || indexValue === Symbol.for('html-next.invalid-result')
377
- ? Symbol.for('html-next.invalid-result')
378
- : objectValue[indexValue])(
379
- { true: 'true', false: null },
380
- concat(checkedProps.value.loading || checkedProps.value.pending),
381
- )
382
- if (candidate === Symbol.for('html-next.invalid-result')) {
383
- return guardedPrevious
384
- }
385
- return guardedPrevious = typeof (((objectValue: any, indexValue: any) =>
386
- objectValue === Symbol.for('html-next.invalid-result')
387
- || indexValue === Symbol.for('html-next.invalid-result')
388
- ? Symbol.for('html-next.invalid-result')
389
- : objectValue[indexValue])(
390
- { true: 'true', false: null },
391
- concat(checkedProps.value.loading || checkedProps.value.pending),
392
- )) === 'boolean'
393
- ? String(((objectValue: any, indexValue: any) =>
394
- objectValue === Symbol.for('html-next.invalid-result')
395
- || indexValue === Symbol.for('html-next.invalid-result')
396
- ? Symbol.for('html-next.invalid-result')
397
- : objectValue[indexValue])(
398
- { true: 'true', false: null },
399
- concat(checkedProps.value.loading || checkedProps.value.pending),
400
- ))
401
- : attribute(((objectValue: any, indexValue: any) =>
402
- objectValue === Symbol.for('html-next.invalid-result')
403
- || indexValue === Symbol.for('html-next.invalid-result')
404
- ? Symbol.for('html-next.invalid-result')
405
- : objectValue[indexValue])(
406
- { true: 'true', false: null },
407
- concat(checkedProps.value.loading || checkedProps.value.pending),
408
- ))
409
- })
410
- checkHydratedRoot('button', 'ui-icon-button')
411
-
412
- /** The values the styles' :host() and :state() rules test. */
413
- const hostState = computed(() =>
414
- [
415
- checkedProps.value.anticipatory && 'anticipatory',
416
- checkedProps.value.guide && 'guide',
417
- checkedProps.value.guide != null && `guide=${encodeURIComponent(checkedProps.value.guide)}`,
418
- checkedProps.value.revealed && 'revealed',
419
- checkedProps.value.loading && 'loading',
420
- checkedProps.value.pending && 'pending',
421
- checkedProps.value.size && 'size',
422
- checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
423
- checkedProps.value.matchButton && 'matchButton',
424
- checkedProps.value.round && 'round',
425
- ].filter(Boolean).join(' ')
426
- )
427
-
428
- const dispatch = createDispatch(root)
429
-
430
- useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'), {
431
- root,
432
- module: true,
433
- dispatch,
434
- controllerSource: {
435
- specifier: '../components/ui-icon-button/ui-icon-button.js',
436
- definition: './components/ui-icon-button/ui-icon-button.html',
437
- },
438
- props: checkedProps,
439
- inputs: propInputs,
440
- inputTracking,
441
- propInputs: (name: string) => {
442
- const incoming = hydrationInstance?.vnode.props
443
- const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
444
- return incoming !== null && incoming !== undefined
445
- ? (incoming[name] ?? incoming[kebab] ?? null)
446
- : null
447
- },
448
- propNames: [
449
- 'anticipatory',
450
- 'disabled',
451
- 'guide',
452
- 'label',
453
- 'loading',
454
- 'matchButton',
455
- 'pending',
456
- 'preset',
457
- 'revealed',
458
- 'round',
459
- 'size',
460
- 'tone',
461
- 'variant',
462
- ],
463
- propValidity: (name: string) =>
464
- propValidityState({ contract: propValidityContract, values: { ...props } }, name),
465
- computed: { appearance, colorTone },
466
- availability: { appearance: () => appearance.status(), colorTone: () => colorTone.status() },
467
- })
468
- </script>
469
-
470
- <template>
471
- <button
472
- class="ui-icon-button"
473
- type="button"
474
- v-bind="nativeAttrs($attrs)"
475
- data-hn
476
- data-hn-ui-icon-button
477
- :data-appearance="attribute(appearance.get())"
478
- :data-tone="attribute(colorTone.get())"
479
- :disabled="checkedProps.disabled ?? undefined"
480
- :aria-label="checkedProps.label ?? undefined"
481
- :data-match-button="checkedProps.matchButton ? '' : undefined"
482
- :aria-disabled="guarded"
483
- :aria-busy="checkedProps.loading || checkedProps.pending"
484
- v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
485
- :data-ui-icon-button-prop-anticipatory="reflectedProp('anticipatory', 'anticipatory', checkedProps.anticipatory, undefined, false)"
486
- :data-ui-icon-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
487
- :data-ui-icon-button-prop-guide="reflectedProp('guide', 'guide', checkedProps.guide, undefined, false)"
488
- :data-ui-icon-button-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
489
- :data-ui-icon-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
490
- :data-ui-icon-button-prop-match-button="reflectedProp('matchButton', 'match-button', checkedProps.matchButton, undefined, false)"
491
- :data-ui-icon-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
492
- :data-ui-icon-button-prop-preset="reflectedProp('preset', 'preset', checkedProps.preset, undefined, false)"
493
- :data-ui-icon-button-prop-revealed="reflectedProp('revealed', 'revealed', checkedProps.revealed, undefined, false)"
494
- :data-ui-icon-button-prop-round="reflectedProp('round', 'round', checkedProps.round, undefined, false)"
495
- :data-ui-icon-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
496
- :data-ui-icon-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
497
- :data-ui-icon-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
498
- :data-ui-icon-button-state="hostState || undefined"
499
- ref="root"
500
- >
501
- <UiSpinner v-if="checkedProps.loading || checkedProps.pending" class="ui-spinner" size="sm" />{{
502
- ' '
503
- }}<span class="content" data-hn-ui-icon-button><slot /></span>
504
- </button>
505
- </template>
506
-
507
- <style scoped>
508
- /* Neutral actions and form fields share the control boundary. */
509
-
510
- /* At rest an anticipatory button shows only its guide dot. The icon grows into place when
511
- proximity, hover, or focus reveals it; the button's hit area and guide remain stable. */
512
-
513
- /* A touch target without a bigger button: an invisible hit area, at least the control
514
- minimum, centred on the button (::before is the anticipatory guide). */
515
-
516
- /* A text button's companion uses control geometry; compact icon buttons keep their own density. */
517
-
518
- /* A paired action may grow vertically for touch, without intercepting its neighbour. */
519
-
520
- /* Native toggle state persists after pointer release, including during loading. */
521
-
522
- /* Disabled is a flat neutral control, independent of the active variant's tone. */
523
-
524
- /* A component that sets its display still honours the hidden attribute on its root. */
525
-
526
- @scope (.ui-icon-button) to ([data-hn]) {
527
- :global(:scope:where([data-hn-ui-icon-button])) {
528
- /* Optional inherited action-group values keep text and icon actions under the same light.
529
- One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
530
- The shared theme supplies reflections and glow independently of the resting lift. */
531
- --_solid-border: var(--ui-accent-border, var(--ui-accent-solid));
532
- --_solid-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
533
- --_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
534
- --_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
535
- --_tone-highlight: var(--ui-accent-highlight, none);
536
- --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
537
- --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
538
- --_tone-wash: var(--ui-accent-wash);
539
- --_tone-wash-hover: var(--ui-accent-wash-hover);
540
- --_tone-ghost-hover: var(--ui-accent-ghost-hover);
541
- --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
542
- --_ui-action-start: 1px;
543
- --_ui-action-edge: var(
544
- --ui-action-edge,
545
- inset var(--_ui-action-start) 1px 0 light-dark(
546
- rgb(255 255 255 / 0.08),
547
- rgb(255 255 255 / 0.06)
548
- ),
549
- inset calc(-1 * var(--_ui-action-start)) -1px 0 light-dark(
550
- rgb(0 0 0 / 0.08),
551
- rgb(0 0 0 / 0.08)
552
- )
553
- );
554
- --_ui-action-shadow:
555
- var(--_ui-action-edge),
556
- 0 1px 2px light-dark(rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.20));
557
- /* Resolve shared part values at the component root. */
558
- --_ui-icon-button-icon-size: var(--ui-icon-button-icon-size);
559
- --_ui-icon-button-icon-stroke-width: var(--ui-icon-button-icon-stroke-width);
560
-
561
- display: inline-flex !important;
562
- color: var(--ui-text-secondary);
563
- }
564
- :global(:scope:dir(rtl):where([data-hn-ui-icon-button])) {
565
- --_ui-action-start: -1px;
566
- }
567
- :global(:scope[data-tone="accent-secondary"]:where([data-hn-ui-icon-button])) {
568
- --_solid-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
569
- --_solid-hover-border: var(
570
- --ui-accent-secondary-hover-border,
571
- var(--ui-accent-secondary-hover)
572
- );
573
- --_solid-active-border: var(
574
- --ui-accent-secondary-active-border,
575
- var(--ui-accent-secondary-active)
576
- );
577
- --_solid-active-surface: var(--ui-accent-secondary-active, var(--ui-accent-secondary-hover));
578
- --_tone-highlight: var(--ui-accent-secondary-highlight, none);
579
- --_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
580
- --_tone-outline-border: var(
581
- --ui-accent-secondary-outline-border,
582
- var(--ui-accent-secondary-subtle-text)
583
- );
584
- --_tone-wash: var(--ui-accent-secondary-wash);
585
- --_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
586
- --_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
587
- --_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
588
- --_icon-button-border: var(--ui-accent-secondary-subtle-text);
589
- --_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
590
- --_icon-button-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
591
- --_icon-button-outline-surface: color-mix(
592
- in srgb,
593
- var(--ui-accent-secondary-solid) 5%,
594
- var(--ui-surface-default)
595
- );
596
- --_icon-button-solid-surface: var(--ui-accent-secondary);
597
- --_icon-button-solid-hover-surface: var(--ui-accent-secondary-hover);
598
- --_icon-button-solid-text: var(--ui-on-accent-secondary);
599
- color: var(--_icon-button-text);
600
- }
601
- :global(:scope[data-tone="accent-tertiary"]:where([data-hn-ui-icon-button])) {
602
- --_solid-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
603
- --_solid-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
604
- --_solid-active-border: var(
605
- --ui-accent-tertiary-active-border,
606
- var(--ui-accent-tertiary-active)
607
- );
608
- --_solid-active-surface: var(--ui-accent-tertiary-active, var(--ui-accent-tertiary-hover));
609
- --_tone-highlight: var(--ui-accent-tertiary-highlight, none);
610
- --_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
611
- --_tone-outline-border: var(
612
- --ui-accent-tertiary-outline-border,
613
- var(--ui-accent-tertiary-subtle-text)
614
- );
615
- --_tone-wash: var(--ui-accent-tertiary-wash);
616
- --_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
617
- --_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
618
- --_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
619
- --_icon-button-border: var(--ui-accent-tertiary-subtle-text);
620
- --_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
621
- --_icon-button-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
622
- --_icon-button-outline-surface: color-mix(
623
- in srgb,
624
- var(--ui-accent-tertiary-solid) 5%,
625
- var(--ui-surface-default)
626
- );
627
- --_icon-button-solid-surface: var(--ui-accent-tertiary);
628
- --_icon-button-solid-hover-surface: var(--ui-accent-tertiary-hover);
629
- --_icon-button-solid-text: var(--ui-on-accent-tertiary);
630
- color: var(--_icon-button-text);
631
- }
632
- :global(:scope[data-tone="accent"]:where([data-hn-ui-icon-button])) {
633
- --_solid-border: var(--ui-accent-border, var(--ui-accent));
634
- --_solid-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
635
- --_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
636
- --_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
637
- --_tone-highlight: var(--ui-accent-highlight, none);
638
- --_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
639
- --_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
640
- --_tone-wash: var(--ui-accent-wash);
641
- --_tone-wash-hover: var(--ui-accent-wash-hover);
642
- --_tone-ghost-hover: var(--ui-accent-ghost-hover);
643
- --_tone-glow: var(--ui-accent-glow, 0 0 transparent);
644
- --_icon-button-border: var(--ui-accent-subtle-text);
645
- --_icon-button-hover-border: var(--ui-accent-subtle-text);
646
- --_icon-button-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
647
- --_icon-button-outline-surface: color-mix(
648
- in srgb,
649
- var(--ui-accent-solid) 5%,
650
- var(--ui-surface-default)
651
- );
652
- color: var(--_icon-button-text);
653
- }
654
- :global(:scope[data-tone="danger"]:where([data-hn-ui-icon-button])) {
655
- --_solid-border: var(--ui-danger-border, var(--ui-danger));
656
- --_solid-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
657
- --_solid-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
658
- --_solid-active-surface: var(--ui-danger-active, var(--ui-danger-hover));
659
- --_tone-highlight: var(--ui-danger-highlight, none);
660
- --_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
661
- --_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
662
- --_tone-wash: var(--ui-danger-wash);
663
- --_tone-wash-hover: var(--ui-danger-wash-hover);
664
- --_tone-ghost-hover: var(--ui-danger-ghost-hover);
665
- --_tone-glow: var(--ui-danger-glow, 0 0 transparent);
666
- --_icon-button-border: var(--ui-danger-subtle-text);
667
- --_icon-button-hover-border: var(--ui-danger-subtle-text);
668
- --_icon-button-text: var(--ui-danger-subtle-text);
669
- --_icon-button-outline-surface: color-mix(
670
- in srgb,
671
- var(--ui-danger) 5%,
672
- var(--ui-surface-default)
673
- );
674
- --_icon-button-solid-surface: var(--ui-danger);
675
- --_icon-button-solid-hover-surface: var(--ui-danger-hover);
676
- --_icon-button-solid-text: var(--ui-danger-on-strong);
677
- color: var(--_icon-button-text);
678
- }
679
- :global(:scope[data-tone="success"]:where([data-hn-ui-icon-button])) {
680
- --_solid-border: var(--ui-success-border, var(--ui-success));
681
- --_solid-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
682
- --_solid-active-border: var(--ui-success-active-border, var(--ui-success-active));
683
- --_solid-active-surface: var(--ui-success-active, var(--ui-success-hover));
684
- --_tone-highlight: var(--ui-success-highlight, none);
685
- --_tone-hover-highlight: var(--ui-success-hover-highlight, none);
686
- --_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
687
- --_tone-wash: var(--ui-success-wash);
688
- --_tone-wash-hover: var(--ui-success-wash-hover);
689
- --_tone-ghost-hover: var(--ui-success-ghost-hover);
690
- --_tone-glow: var(--ui-success-glow, 0 0 transparent);
691
- --_icon-button-border: var(--ui-success-subtle-text);
692
- --_icon-button-hover-border: var(--ui-success-subtle-text);
693
- --_icon-button-text: var(--ui-success-subtle-text);
694
- --_icon-button-outline-surface: color-mix(
695
- in srgb,
696
- var(--ui-success) 5%,
697
- var(--ui-surface-default)
698
- );
699
- --_icon-button-solid-surface: var(--ui-success);
700
- --_icon-button-solid-hover-surface: var(--ui-success-hover);
701
- --_icon-button-solid-text: var(--ui-success-on-strong);
702
- color: var(--_icon-button-text);
703
- }
704
- :global(:scope[data-tone="warning"]:where([data-hn-ui-icon-button])) {
705
- --_solid-border: var(--ui-warning-border, var(--ui-warning));
706
- --_solid-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
707
- --_solid-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
708
- --_solid-active-surface: var(--ui-warning-active, var(--ui-warning-hover));
709
- --_tone-highlight: var(--ui-warning-highlight, none);
710
- --_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
711
- --_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
712
- --_tone-wash: var(--ui-warning-wash);
713
- --_tone-wash-hover: var(--ui-warning-wash-hover);
714
- --_tone-ghost-hover: var(--ui-warning-ghost-hover);
715
- --_tone-glow: var(--ui-warning-glow, 0 0 transparent);
716
- --_icon-button-border: var(--ui-warning-subtle-text);
717
- --_icon-button-hover-border: var(--ui-warning-subtle-text);
718
- --_icon-button-text: var(--ui-warning-subtle-text);
719
- --_icon-button-outline-surface: color-mix(
720
- in srgb,
721
- var(--ui-warning) 5%,
722
- var(--ui-surface-default)
723
- );
724
- --_icon-button-solid-surface: var(--ui-warning);
725
- --_icon-button-solid-hover-surface: var(--ui-warning-hover);
726
- --_icon-button-solid-text: var(--ui-warning-on-strong);
727
- color: var(--_icon-button-text);
728
- }
729
- :global(:scope[data-tone="info"]:where([data-hn-ui-icon-button])) {
730
- --_solid-border: var(--ui-info-border, var(--ui-info));
731
- --_solid-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
732
- --_solid-active-border: var(--ui-info-active-border, var(--ui-info-active));
733
- --_solid-active-surface: var(--ui-info-active, var(--ui-info-hover));
734
- --_tone-highlight: var(--ui-info-highlight, none);
735
- --_tone-hover-highlight: var(--ui-info-hover-highlight, none);
736
- --_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
737
- --_tone-wash: var(--ui-info-wash);
738
- --_tone-wash-hover: var(--ui-info-wash-hover);
739
- --_tone-ghost-hover: var(--ui-info-ghost-hover);
740
- --_tone-glow: var(--ui-info-glow, 0 0 transparent);
741
- --_icon-button-border: var(--ui-info-subtle-text);
742
- --_icon-button-hover-border: var(--ui-info-subtle-text);
743
- --_icon-button-text: var(--ui-info-subtle-text);
744
- --_icon-button-outline-surface: color-mix(
745
- in srgb,
746
- var(--ui-info) 5%,
747
- var(--ui-surface-default)
748
- );
749
- --_icon-button-solid-surface: var(--ui-info);
750
- --_icon-button-solid-hover-surface: var(--ui-info-hover);
751
- --_icon-button-solid-text: var(--ui-info-on-strong);
752
- color: var(--_icon-button-text);
753
- }
754
- :global(:scope[data-tone="neutral"]:where([data-hn-ui-icon-button])) {
755
- --_solid-border: var(--ui-control-border, var(--ui-neutral-surface));
756
- --_solid-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
757
- --_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
758
- --_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
759
- --_tone-highlight: var(--ui-neutral-highlight, none);
760
- --_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
761
- --_tone-outline-border: var(--ui-control-border);
762
- --_tone-ghost-hover: var(--ui-neutral-ghost-hover);
763
- --_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
764
- --_icon-button-outline-surface: transparent;
765
- --_icon-button-border: var(--ui-control-border);
766
- --_icon-button-hover-border: var(--ui-control-border-hover);
767
- --_icon-button-text: var(--ui-text);
768
- --_icon-button-solid-surface: var(--ui-neutral-surface);
769
- --_icon-button-solid-hover-surface: var(--ui-neutral-hover);
770
- --_icon-button-solid-text: var(--ui-text);
771
- }
772
-
773
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:where([data-hn-ui-icon-button])) {
774
- position: relative;
775
- }
776
-
777
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:where([data-hn-ui-icon-button])::before) {
778
- content: "";
779
- position: absolute;
780
- inset: 50% auto auto 50%;
781
- z-index: 1;
782
- inline-size: var(--ui-affordance-guide-size);
783
- block-size: var(--ui-affordance-guide-size);
784
- border-radius: var(--ui-radius-round);
785
- background: var(--ui-affordance-guide-color, var(--ui-border-strong));
786
- opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
787
- transform: translate(-50%, -50%);
788
- transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
789
- pointer-events: none;
790
- }
791
-
792
- :global(:scope[data-ui-icon-button-state~="anticipatory"][data-ui-icon-button-state~="guide=bar"]:where([data-hn-ui-icon-button])::before) {
793
- inline-size: 2px;
794
- block-size: 20px;
795
- background: var(--ui-border-strong);
796
- opacity: 1;
797
- }
798
-
799
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:disabled:where([data-hn-ui-icon-button])::before) {
800
- opacity: 0;
801
- }
802
- :global(:scope[data-ui-icon-button-state~="anticipatory"]
803
- .content:where([data-hn-ui-icon-button])) {
804
- opacity: 1;
805
- transform: scale(1);
806
- transition:
807
- opacity var(--ui-motion-fast) var(--ui-motion-ease),
808
- transform calc(var(--ui-motion-fast) * 2) cubic-bezier(0.2, 1.4, 0.35, 1);
809
- }
810
-
811
- @media (hover: hover) and (pointer: fine) {
812
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:not(:scope[data-ui-icon-button-state~="revealed"], :scope[data-appearance="solid"], :scope[data-ui-icon-button-state~="loading"], :scope[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible):where([data-hn-ui-icon-button])) {
813
- border-color: transparent;
814
- background-color: transparent;
815
- box-shadow: none;
816
- }
817
-
818
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:not(:scope[data-ui-icon-button-state~="revealed"], :scope[data-appearance="solid"], :scope[data-ui-icon-button-state~="loading"], :scope[data-ui-icon-button-state~="pending"], :disabled, [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible)
819
- .content:where([data-hn-ui-icon-button])) {
820
- opacity: 0;
821
- transform: scale(0.65);
822
- transition-duration: var(--ui-motion-fast);
823
- }
824
- }
825
-
826
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:is(:scope[data-ui-icon-button-state~="revealed"], :scope[data-appearance="solid"], [aria-pressed="true"], [data-ui-proximity="near"], :hover, :focus-visible):where([data-hn-ui-icon-button])::before) {
827
- opacity: 0;
828
- }
829
-
830
- :global(:scope:where([data-hn-ui-icon-button])) {
831
- /* The size prop resolves here; --ui-icon-button-size overrides it on an element. */
832
- --_size: 2rem;
833
- appearance: none;
834
- inline-size: var(--ui-icon-button-size, var(--_size));
835
- block-size: var(--ui-icon-button-size, var(--_size));
836
- min-inline-size: var(--ui-icon-button-size, var(--_size));
837
- min-block-size: var(--ui-icon-button-size, var(--_size));
838
- padding: 0 !important;
839
- margin: 0 !important;
840
- border: var(--ui-border-width) solid transparent;
841
- border-radius: var(--ui-icon-button-radius, var(--ui-action-radius, var(--ui-radius-md)));
842
- background-color: var(--ui-icon-button-surface, transparent);
843
- color: inherit;
844
- display: inline-flex !important;
845
- align-items: center !important;
846
- justify-content: center !important;
847
- cursor: pointer;
848
- transition:
849
- background-color var(--ui-motion-fast) var(--ui-motion-ease),
850
- border-color var(--ui-motion-fast) var(--ui-motion-ease),
851
- color var(--ui-motion-fast) var(--ui-motion-ease),
852
- box-shadow var(--ui-motion-base) var(--ui-motion-ease),
853
- scale var(--ui-motion-press, var(--ui-motion-fast)) var(--ui-motion-ease);
854
- }
855
-
856
- @media (hover: none), (pointer: coarse) {
857
- :global(:scope[data-ui-icon-button-state~="anticipatory"]:where([data-hn-ui-icon-button])::before) {
858
- opacity: 0;
859
- }
860
- }
861
- @media (pointer: coarse) {
862
- :global(:scope:where([data-hn-ui-icon-button])) {
863
- position: relative;
864
- }
865
-
866
- :global(:scope:where([data-hn-ui-icon-button])::after) {
867
- content: "";
868
- position: absolute;
869
- inset: 50% auto auto 50%;
870
- inline-size: max(100%, var(--ui-control-min-block-size));
871
- block-size: max(100%, var(--ui-control-min-block-size));
872
- transform: translate(-50%, -50%);
873
- }
874
- }
875
-
876
- :global(html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])) {
877
- position: relative;
878
- }
879
-
880
- :global(html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::after) {
881
- content: "";
882
- position: absolute;
883
- inset: 50% auto auto 50%;
884
- inline-size: max(100%, var(--ui-control-min-block-size));
885
- block-size: max(100%, var(--ui-control-min-block-size));
886
- transform: translate(-50%, -50%);
887
- }
888
-
889
- :global(:scope[data-ui-icon-button-state~="size=sm"]:where([data-hn-ui-icon-button])) {
890
- --_size: 1.75rem;
891
- inline-size: var(--ui-icon-button-size, var(--_size));
892
- block-size: var(--ui-icon-button-size, var(--_size));
893
- min-inline-size: var(--ui-icon-button-size, var(--_size));
894
- min-block-size: var(--ui-icon-button-size, var(--_size));
895
- }
896
-
897
- :global(:scope[data-ui-icon-button-state~="size=lg"]:where([data-hn-ui-icon-button])) {
898
- --_size: 2.5rem;
899
- inline-size: var(--ui-icon-button-size, var(--_size));
900
- block-size: var(--ui-icon-button-size, var(--_size));
901
- min-inline-size: var(--ui-icon-button-size, var(--_size));
902
- min-block-size: var(--ui-icon-button-size, var(--_size));
903
- }
904
- :global(:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])) {
905
- --_size: var(--ui-control-size-md);
906
- block-size: auto;
907
- align-self: stretch;
908
- }
909
- :global(:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after),
910
- :global(html[data-ui-input-modality="touch"]
911
- :scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after) {
912
- inline-size: 100%;
913
- }
914
-
915
- :global(:scope[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"]:where([data-hn-ui-icon-button])) {
916
- --_size: var(--ui-control-size-sm);
917
- }
918
-
919
- :global(:scope[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=lg"]:where([data-hn-ui-icon-button])) {
920
- --_size: var(--ui-control-size-lg);
921
- }
922
-
923
- :global(:scope[data-ui-icon-button-state~="round"]:where([data-hn-ui-icon-button])) {
924
- border-radius: var(--ui-radius-round);
925
- }
926
-
927
- :global(:scope[data-appearance="outline"]:where([data-hn-ui-icon-button])) {
928
- border-color: var(
929
- --ui-icon-button-border,
930
- var(--_icon-button-border, var(--ui-control-border, var(--ui-border-strong)))
931
- );
932
- background-color: var(
933
- --ui-icon-button-outline-surface,
934
- var(--_icon-button-outline-surface, var(--ui-surface-default))
935
- );
936
- background-image: none;
937
- color: var(--ui-icon-button-outline-text, var(--_icon-button-text, var(--ui-text-primary)));
938
- box-shadow: var(--ui-neutral-shadow);
939
- }
940
-
941
- :global(:scope[data-appearance="solid"]:where([data-hn-ui-icon-button])) {
942
- border-color: var(--ui-icon-button-border, var(--_solid-border));
943
- background-color: var(
944
- --ui-icon-button-solid-surface,
945
- var(--_icon-button-solid-surface, var(--ui-accent-solid))
946
- );
947
- background-image: var(--_tone-highlight);
948
- color: var(
949
- --ui-icon-button-solid-text,
950
- var(--_icon-button-solid-text, var(--ui-text-on-accent))
951
- );
952
- box-shadow:
953
- var(--ui-icon-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
954
- var(--_tone-glow);
955
- }
956
-
957
- :global(:scope[data-tone="neutral"][data-appearance="outline"]:where([data-hn-ui-icon-button])) {
958
- box-shadow: var(--ui-neutral-shadow);
959
- }
960
- :global(:scope[data-tone="neutral"][data-appearance="solid"]:where([data-hn-ui-icon-button])) {
961
- border-color: var(--ui-icon-button-border, var(--ui-control-border));
962
- box-shadow: var(--ui-icon-button-solid-shadow, var(--ui-neutral-shadow));
963
- }
964
-
965
- :global(:scope:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
966
- /* Shared translucent paint keeps text and icon action feedback coordinated. */
967
- background-color: var(--ui-icon-button-hover-surface, var(--_tone-ghost-hover));
968
- color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
969
- }
970
-
971
- :global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-icon-button])) {
972
- --_outline-wash: var(--_tone-wash);
973
- border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
974
- background-color: var(--ui-icon-button-outline-surface, transparent);
975
- background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
976
- }
977
-
978
- :global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
979
- --_outline-wash: var(--_tone-wash-hover);
980
- background-color: var(--ui-icon-button-hover-surface, transparent);
981
- border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
982
- }
983
-
984
- :global(:scope[data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
985
- border-color: var(
986
- --ui-icon-button-hover-border,
987
- var(--_icon-button-hover-border, var(--ui-control-border-hover, var(--ui-control-border)))
988
- );
989
- }
990
- :global(:scope[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
991
- background-color: var(--ui-icon-button-hover-surface, transparent);
992
- --_outline-wash: var(--ui-neutral-wash-hover);
993
- background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
994
- }
995
- :global(:scope[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
996
- background-color: var(--ui-icon-button-active-surface, var(--ui-neutral-active));
997
- }
998
-
999
- :global(:scope[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1000
- border-color: var(--ui-icon-button-hover-border, var(--_solid-hover-border));
1001
- background-color: var(
1002
- --ui-icon-button-solid-hover-surface,
1003
- var(--_icon-button-solid-hover-surface, var(--ui-accent-hover))
1004
- );
1005
- background-image: var(--_tone-hover-highlight);
1006
- }
1007
-
1008
- :global(:scope[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1009
- color: var(
1010
- --ui-icon-button-solid-text,
1011
- var(--_icon-button-solid-text, var(--ui-text-on-accent))
1012
- );
1013
- }
1014
-
1015
- :global(:scope[data-appearance="ghost"][aria-expanded="true"]:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1016
- background-color: var(
1017
- --ui-icon-button-active-surface,
1018
- color-mix(in srgb, currentColor 16%, transparent)
1019
- );
1020
- color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
1021
- box-shadow: var(--ui-pressed);
1022
- }
1023
- :global(:scope[data-appearance="outline"][aria-pressed="true"]:enabled:where([data-hn-ui-icon-button])) {
1024
- background-color: var(
1025
- --ui-icon-button-active-surface,
1026
- color-mix(in srgb, currentColor 12%, var(--ui-surface-default))
1027
- );
1028
- background-image: none;
1029
- box-shadow: var(--ui-pressed);
1030
- }
1031
-
1032
- :global(:scope:active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1033
- scale: var(--ui-icon-button-active-scale, var(--ui-press-scale, 0.96));
1034
- }
1035
-
1036
- :global(:is(:scope[data-ui-icon-button-state~="loading"], :scope[data-ui-icon-button-state~="pending"]):where([data-hn-ui-icon-button])) {
1037
- cursor: progress;
1038
- }
1039
-
1040
- :global(.content:where([data-hn-ui-icon-button])) {
1041
- display: inline-flex !important;
1042
- align-items: center !important;
1043
- justify-content: center !important;
1044
- }
1045
-
1046
- :global(:is(:scope[data-ui-icon-button-state~="loading"], :scope[data-ui-icon-button-state~="pending"])
1047
- .content:where([data-hn-ui-icon-button])) {
1048
- display: none !important;
1049
- }
1050
-
1051
- @media (prefers-reduced-motion: reduce) {
1052
- :global(:scope[data-ui-icon-button-state~="anticipatory"]
1053
- .content:where([data-hn-ui-icon-button])) {
1054
- transition: none;
1055
- }
1056
- }
1057
-
1058
- :global(:scope:focus-visible:where([data-hn-ui-icon-button])) {
1059
- outline: none;
1060
- box-shadow: var(--ui-focus-halo);
1061
- }
1062
-
1063
- :global(:scope[data-appearance="outline"]:focus-visible:where([data-hn-ui-icon-button])) {
1064
- box-shadow:
1065
- var(--ui-neutral-shadow),
1066
- var(--ui-focus-halo);
1067
- }
1068
-
1069
- :global(:scope[data-appearance="solid"]:focus-visible:where([data-hn-ui-icon-button])) {
1070
- box-shadow:
1071
- var(--ui-icon-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
1072
- var(--ui-focus-halo);
1073
- }
1074
-
1075
- :global(:scope[data-appearance="solid"]:active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1076
- background-color: var(--ui-icon-button-active-surface, var(--_solid-active-surface));
1077
- border-color: var(--_solid-active-border);
1078
- }
1079
-
1080
- :global(:scope:is(:scope[data-appearance="outline"], :scope[data-appearance="solid"]):active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
1081
- background-image: none;
1082
- box-shadow: var(--ui-pressed);
1083
- }
1084
-
1085
- :global(:scope[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible:where([data-hn-ui-icon-button])) {
1086
- box-shadow:
1087
- var(--ui-pressed),
1088
- var(--ui-focus-halo);
1089
- }
1090
-
1091
- @media (forced-colors: active) {
1092
- :global(:scope[data-appearance="outline"][aria-pressed="true"]:enabled:where([data-hn-ui-icon-button])) {
1093
- outline: var(--ui-focus-width) solid Highlight;
1094
- outline-offset: calc(-2 * var(--ui-focus-width));
1095
- }
1096
- :global(:scope[data-appearance="outline"][aria-pressed="true"]:enabled:focus-visible:where([data-hn-ui-icon-button])) {
1097
- outline-offset: var(--ui-focus-width);
1098
- }
1099
- }
1100
- :global(:scope[data-tone]:disabled:where([data-hn-ui-icon-button])) {
1101
- border-color: var(--ui-disabled-border);
1102
- background-color: var(--ui-disabled-surface);
1103
- color: var(--ui-disabled-text);
1104
- filter: var(--ui-icon-button-disabled-filter, var(--ui-disabled-filter));
1105
- opacity: var(--ui-icon-button-disabled-opacity, 1);
1106
- cursor: not-allowed;
1107
- box-shadow: none;
1108
- background-image: none;
1109
- }
1110
-
1111
- :global(:scope[data-appearance="ghost"]:disabled:where([data-hn-ui-icon-button])) {
1112
- border-color: transparent;
1113
- }
1114
-
1115
- :global(:scope:where([data-hn-ui-icon-button])) {
1116
- --_icon-button-icon-default: var(--ui-icon-size-md);
1117
- /* A slotted ui-icon is its own component, out of reach of the svg rule below; these are its
1118
- defaults, which its own --ui-icon-* hooks still override. */
1119
- --_ui-default-icon-size: var(--_ui-icon-button-icon-size, var(--_icon-button-icon-default));
1120
- --_ui-default-icon-stroke-width: var(--_ui-icon-button-icon-stroke-width, 1.75);
1121
- }
1122
-
1123
- :global(:scope[data-ui-icon-button-state~="size=sm"]:where([data-hn-ui-icon-button])) {
1124
- --_icon-button-icon-default: var(--ui-icon-size-sm);
1125
- }
1126
-
1127
- :global(:scope[data-ui-icon-button-state~="size=lg"]:where([data-hn-ui-icon-button])) {
1128
- --_icon-button-icon-default: var(--ui-icon-size-lg);
1129
- }
1130
-
1131
- :global(:where(:not([data-hn-ui-icon-button])):is(svg)) {
1132
- inline-size: var(--_ui-icon-button-icon-size, var(--_icon-button-icon-default));
1133
- block-size: var(--_ui-icon-button-icon-size, var(--_icon-button-icon-default));
1134
- flex-shrink: 0;
1135
- stroke-width: var(--_ui-icon-button-icon-stroke-width, 1.75);
1136
- }
1137
- :global(:scope[hidden]:where([data-hn-ui-icon-button])) {
1138
- display: none !important;
1139
- }
1140
- }
1141
- </style>