@threadlabs/looma 0.32.1 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/components/shared/icons.js +1 -0
  2. package/components/shared/overlay.js +1 -1
  3. package/components/ui-action-bar/ui-action-bar.html +11 -11
  4. package/components/ui-affordance-scope/ui-affordance-scope.html +2 -2
  5. package/components/ui-avatar/ui-avatar.html +8 -8
  6. package/components/ui-avatar-group/ui-avatar-group.html +14 -14
  7. package/components/ui-avatar-group/ui-avatar-group.js +3 -2
  8. package/components/ui-badge/ui-badge.html +43 -43
  9. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +13 -13
  10. package/components/ui-breadcrumbs/ui-breadcrumbs.html +8 -8
  11. package/components/ui-button/ui-button.html +32 -29
  12. package/components/ui-callout/ui-callout.html +9 -9
  13. package/components/ui-card/ui-card.html +11 -11
  14. package/components/ui-checkbox/ui-checkbox.html +52 -33
  15. package/components/ui-cluster/ui-cluster.html +21 -21
  16. package/components/ui-color-picker/ui-color-picker.html +135 -0
  17. package/components/ui-color-picker/ui-color-picker.js +76 -0
  18. package/components/ui-combobox/ui-combobox.html +43 -43
  19. package/components/ui-container/ui-container.html +7 -7
  20. package/components/ui-context-menu/ui-context-menu.html +9 -9
  21. package/components/ui-cover/ui-cover.html +8 -8
  22. package/components/ui-description-item/ui-description-item.html +7 -7
  23. package/components/ui-description-list/ui-description-list.html +4 -4
  24. package/components/ui-dialog/ui-dialog.html +26 -26
  25. package/components/ui-disclosure/ui-disclosure.html +23 -23
  26. package/components/ui-editable/ui-editable.html +16 -16
  27. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +9 -9
  28. package/components/ui-editor-link-form/ui-editor-link-form.html +1 -2
  29. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +23 -23
  30. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +10 -10
  31. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +29 -29
  32. package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +5 -5
  33. package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +11 -11
  34. package/components/ui-editor-surface/ui-editor-surface.html +2 -2
  35. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +25 -25
  36. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +13 -13
  37. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +31 -31
  38. package/components/ui-editor-toolbar/ui-editor-toolbar.html +13 -13
  39. package/components/ui-floating-action-button/ui-floating-action-button.html +8 -8
  40. package/components/ui-form-field/ui-form-field.html +15 -15
  41. package/components/ui-form-field/ui-form-field.js +12 -4
  42. package/components/ui-grid/ui-grid.html +4 -4
  43. package/components/ui-icon/ui-icon.html +3 -2
  44. package/components/ui-icon-button/ui-icon-button.html +15 -14
  45. package/components/ui-image/ui-image.html +14 -14
  46. package/components/ui-input/ui-input.html +8 -8
  47. package/components/ui-input-group/ui-input-group.html +18 -18
  48. package/components/ui-list/ui-list.html +11 -11
  49. package/components/ui-list-item/ui-list-item.html +18 -18
  50. package/components/ui-listbox/ui-listbox.html +10 -10
  51. package/components/ui-menu/ui-menu.html +18 -17
  52. package/components/ui-menu-group/ui-menu-group.html +4 -4
  53. package/components/ui-menu-item/ui-menu-item.html +20 -20
  54. package/components/ui-meter/ui-meter.html +5 -5
  55. package/components/ui-nav-item/ui-nav-item.html +20 -20
  56. package/components/ui-page-header/ui-page-header.html +18 -17
  57. package/components/ui-popover/ui-popover.html +8 -8
  58. package/components/ui-radio/ui-radio.html +25 -17
  59. package/components/ui-radio-group/ui-radio-group.html +10 -10
  60. package/components/ui-reel/ui-reel.html +5 -5
  61. package/components/ui-scroll-area/ui-scroll-area.html +10 -10
  62. package/components/ui-search-result-row/ui-search-result-row.html +19 -19
  63. package/components/ui-search-shell/ui-search-shell.html +22 -22
  64. package/components/ui-section/ui-section.html +24 -23
  65. package/components/ui-select/ui-select.html +10 -10
  66. package/components/ui-separator/ui-separator.html +2 -2
  67. package/components/ui-sidebar/ui-sidebar.html +8 -8
  68. package/components/ui-spinner/ui-spinner.html +6 -6
  69. package/components/ui-stack/ui-stack.html +12 -12
  70. package/components/ui-status-message/ui-status-message.html +17 -17
  71. package/components/ui-swatch/ui-swatch.html +2 -2
  72. package/components/ui-switch/ui-switch.html +36 -26
  73. package/components/ui-switcher/ui-switcher.html +7 -7
  74. package/components/ui-table/ui-table.html +6 -6
  75. package/components/ui-tabs/ui-tabs.html +16 -15
  76. package/components/ui-text/ui-text.html +3 -2
  77. package/components/ui-textarea/ui-textarea.html +10 -10
  78. package/components/ui-toast/ui-toast.html +9 -9
  79. package/components/ui-toast-region/ui-toast-region.html +12 -12
  80. package/components/ui-tooltip/ui-tooltip.html +15 -15
  81. package/components/ui-top-bar/ui-top-bar.html +11 -11
  82. package/components/ui-tree/ui-tree.html +5 -5
  83. package/components/ui-tree-item/ui-tree-item.html +36 -36
  84. package/dist/index.js +46 -45
  85. package/package.json +3 -2
  86. package/styles/ui-action-bar.css +11 -11
  87. package/styles/ui-affordance-scope.css +2 -2
  88. package/styles/ui-avatar-group.css +14 -14
  89. package/styles/ui-avatar.css +8 -8
  90. package/styles/ui-badge.css +41 -41
  91. package/styles/ui-breadcrumb-item.css +13 -13
  92. package/styles/ui-breadcrumbs.css +8 -8
  93. package/styles/ui-button.css +30 -28
  94. package/styles/ui-callout.css +9 -9
  95. package/styles/ui-card.css +11 -11
  96. package/styles/ui-checkbox.css +52 -33
  97. package/styles/ui-cluster.css +21 -21
  98. package/styles/ui-color-picker.css +120 -0
  99. package/styles/ui-combobox.css +86 -86
  100. package/styles/ui-container.css +7 -7
  101. package/styles/ui-context-menu.css +9 -9
  102. package/styles/ui-cover.css +8 -8
  103. package/styles/ui-description-item.css +7 -7
  104. package/styles/ui-description-list.css +4 -4
  105. package/styles/ui-dialog.css +52 -52
  106. package/styles/ui-disclosure.css +23 -23
  107. package/styles/ui-editable.css +16 -16
  108. package/styles/ui-editor-insert-table-grid.css +9 -9
  109. package/styles/ui-editor-mention-menu-item.css +10 -10
  110. package/styles/ui-editor-mention-menu.css +23 -23
  111. package/styles/ui-editor-slash-menu-group.css +5 -5
  112. package/styles/ui-editor-slash-menu-item.css +11 -11
  113. package/styles/ui-editor-slash-menu.css +29 -29
  114. package/styles/ui-editor-surface.css +2 -2
  115. package/styles/ui-editor-table-context-menu.css +25 -25
  116. package/styles/ui-editor-table-overlay.css +13 -13
  117. package/styles/ui-editor-table-toolbar.css +31 -31
  118. package/styles/ui-editor-toolbar.css +13 -13
  119. package/styles/ui-floating-action-button.css +8 -8
  120. package/styles/ui-form-field.css +13 -13
  121. package/styles/ui-grid.css +4 -4
  122. package/styles/ui-icon-button.css +13 -13
  123. package/styles/ui-icon.css +2 -2
  124. package/styles/ui-image.css +14 -14
  125. package/styles/ui-input-group.css +18 -18
  126. package/styles/ui-input.css +8 -8
  127. package/styles/ui-list-item.css +18 -18
  128. package/styles/ui-list.css +11 -11
  129. package/styles/ui-listbox.css +20 -20
  130. package/styles/ui-menu-group.css +4 -4
  131. package/styles/ui-menu-item.css +20 -20
  132. package/styles/ui-menu.css +16 -16
  133. package/styles/ui-meter.css +5 -5
  134. package/styles/ui-nav-item.css +20 -20
  135. package/styles/ui-page-header.css +18 -17
  136. package/styles/ui-popover.css +8 -8
  137. package/styles/ui-radio-group.css +10 -10
  138. package/styles/ui-radio.css +26 -18
  139. package/styles/ui-reel.css +5 -5
  140. package/styles/ui-scroll-area.css +10 -10
  141. package/styles/ui-search-result-row.css +19 -19
  142. package/styles/ui-search-shell.css +22 -22
  143. package/styles/ui-section.css +24 -23
  144. package/styles/ui-select.css +10 -10
  145. package/styles/ui-separator.css +2 -2
  146. package/styles/ui-sidebar.css +8 -8
  147. package/styles/ui-spinner.css +6 -6
  148. package/styles/ui-stack.css +12 -12
  149. package/styles/ui-status-message.css +17 -17
  150. package/styles/ui-swatch.css +2 -2
  151. package/styles/ui-switch.css +36 -28
  152. package/styles/ui-switcher.css +7 -7
  153. package/styles/ui-table.css +6 -6
  154. package/styles/ui-tabs.css +11 -11
  155. package/styles/ui-text.css +3 -2
  156. package/styles/ui-textarea.css +10 -10
  157. package/styles/ui-toast-region.css +24 -24
  158. package/styles/ui-toast.css +18 -18
  159. package/styles/ui-tooltip.css +15 -15
  160. package/styles/ui-top-bar.css +11 -11
  161. package/styles/ui-tree-item.css +71 -71
  162. package/styles/ui-tree.css +5 -5
  163. package/theme-system.css +80 -0
  164. package/tokens.css +14 -3
  165. package/vanilla/UiColorPicker.d.ts +30 -0
  166. package/vanilla/UiColorPicker.js +77 -0
  167. package/vanilla/UiIcon.js +1 -1
  168. package/vanilla/index.js +1 -0
  169. package/vue/UiActionBar.vue +11 -11
  170. package/vue/UiAffordanceScope.vue +2 -2
  171. package/vue/UiAvatar.vue +8 -8
  172. package/vue/UiAvatarGroup.vue +14 -14
  173. package/vue/UiBadge.vue +43 -42
  174. package/vue/UiBreadcrumbItem.vue +13 -13
  175. package/vue/UiBreadcrumbs.vue +8 -8
  176. package/vue/UiButton.vue +34 -29
  177. package/vue/UiCallout.vue +9 -9
  178. package/vue/UiCard.vue +11 -11
  179. package/vue/UiCheckbox.vue +57 -34
  180. package/vue/UiCluster.vue +21 -21
  181. package/vue/UiColorPicker.d.ts +65 -0
  182. package/vue/UiColorPicker.js +2 -0
  183. package/vue/UiColorPicker.vue +422 -0
  184. package/vue/UiCombobox.vue +86 -86
  185. package/vue/UiContainer.vue +7 -7
  186. package/vue/UiContextMenu.vue +9 -9
  187. package/vue/UiCover.vue +8 -8
  188. package/vue/UiDescriptionItem.vue +7 -7
  189. package/vue/UiDescriptionList.vue +4 -4
  190. package/vue/UiDialog.vue +52 -52
  191. package/vue/UiDisclosure.vue +23 -23
  192. package/vue/UiEditable.vue +16 -16
  193. package/vue/UiEditorInsertTableGrid.vue +9 -9
  194. package/vue/UiEditorMentionMenu.vue +23 -23
  195. package/vue/UiEditorMentionMenuItem.vue +10 -10
  196. package/vue/UiEditorSlashMenu.vue +29 -29
  197. package/vue/UiEditorSlashMenuGroup.vue +5 -5
  198. package/vue/UiEditorSlashMenuItem.vue +11 -11
  199. package/vue/UiEditorSurface.vue +2 -2
  200. package/vue/UiEditorTableContextMenu.vue +25 -25
  201. package/vue/UiEditorTableOverlay.vue +13 -13
  202. package/vue/UiEditorTableToolbar.vue +31 -31
  203. package/vue/UiEditorToolbar.vue +13 -13
  204. package/vue/UiFloatingActionButton.vue +8 -8
  205. package/vue/UiFormField.vue +14 -14
  206. package/vue/UiGrid.vue +4 -4
  207. package/vue/UiIcon.vue +6 -2
  208. package/vue/UiIconButton.vue +14 -14
  209. package/vue/UiImage.vue +14 -14
  210. package/vue/UiInput.vue +9 -8
  211. package/vue/UiInputGroup.vue +18 -18
  212. package/vue/UiList.vue +11 -11
  213. package/vue/UiListItem.vue +18 -18
  214. package/vue/UiListbox.vue +20 -20
  215. package/vue/UiMenu.vue +16 -16
  216. package/vue/UiMenuGroup.vue +4 -4
  217. package/vue/UiMenuItem.vue +20 -20
  218. package/vue/UiMeter.vue +5 -5
  219. package/vue/UiNavItem.vue +20 -20
  220. package/vue/UiPageHeader.vue +18 -17
  221. package/vue/UiPopover.vue +8 -8
  222. package/vue/UiRadio.vue +28 -17
  223. package/vue/UiRadioGroup.vue +10 -10
  224. package/vue/UiReel.vue +5 -5
  225. package/vue/UiScrollArea.vue +10 -10
  226. package/vue/UiSearchResultRow.vue +19 -19
  227. package/vue/UiSearchShell.vue +22 -22
  228. package/vue/UiSection.vue +24 -23
  229. package/vue/UiSelect.vue +11 -10
  230. package/vue/UiSeparator.vue +2 -2
  231. package/vue/UiSidebar.vue +8 -8
  232. package/vue/UiSpinner.vue +6 -6
  233. package/vue/UiStack.vue +12 -12
  234. package/vue/UiStatusMessage.vue +17 -17
  235. package/vue/UiSwatch.vue +2 -2
  236. package/vue/UiSwitch.vue +38 -25
  237. package/vue/UiSwitcher.vue +7 -7
  238. package/vue/UiTable.vue +6 -6
  239. package/vue/UiTabs.vue +13 -13
  240. package/vue/UiText.vue +3 -2
  241. package/vue/UiTextarea.vue +10 -10
  242. package/vue/UiToast.vue +18 -18
  243. package/vue/UiToastRegion.vue +24 -24
  244. package/vue/UiTooltip.vue +15 -15
  245. package/vue/UiTopBar.vue +11 -11
  246. package/vue/UiTree.vue +5 -5
  247. package/vue/UiTreeItem.vue +73 -71
  248. package/vue/chunks/UiActionBar.js +1 -1
  249. package/vue/chunks/UiAffordanceScope.js +1 -1
  250. package/vue/chunks/UiAvatar.js +1 -1
  251. package/vue/chunks/UiAvatarGroup.js +1 -1
  252. package/vue/chunks/UiBadge.js +2 -2
  253. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  254. package/vue/chunks/UiBreadcrumbs.js +1 -1
  255. package/vue/chunks/UiButton.js +2 -2
  256. package/vue/chunks/UiCallout.js +1 -1
  257. package/vue/chunks/UiCard.js +1 -1
  258. package/vue/chunks/UiCheckbox.js +1 -1
  259. package/vue/chunks/UiCluster.js +1 -1
  260. package/vue/chunks/UiColorPicker.js +326 -0
  261. package/vue/chunks/UiCombobox.js +1 -1
  262. package/vue/chunks/UiContainer.js +1 -1
  263. package/vue/chunks/UiContextMenu.js +1 -1
  264. package/vue/chunks/UiCover.js +1 -1
  265. package/vue/chunks/UiDescriptionItem.js +1 -1
  266. package/vue/chunks/UiDescriptionList.js +1 -1
  267. package/vue/chunks/UiDialog.js +1 -1
  268. package/vue/chunks/UiDisclosure.js +1 -1
  269. package/vue/chunks/UiEditable.js +1 -1
  270. package/vue/chunks/UiEditorImageToolbar.js +1 -1
  271. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  272. package/vue/chunks/UiEditorLinkForm.js +1 -1
  273. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  274. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  275. package/vue/chunks/UiEditorSlashMenu.js +1 -1
  276. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  277. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  278. package/vue/chunks/UiEditorSurface.js +1 -1
  279. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  280. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  281. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  282. package/vue/chunks/UiEditorToolbar.js +1 -1
  283. package/vue/chunks/UiFloatingActionButton.js +1 -1
  284. package/vue/chunks/UiFormField.js +2 -2
  285. package/vue/chunks/UiGrid.js +1 -1
  286. package/vue/chunks/UiIcon.js +5 -1
  287. package/vue/chunks/UiIconButton.js +2 -2
  288. package/vue/chunks/UiImage.js +1 -1
  289. package/vue/chunks/UiInput.js +1 -1
  290. package/vue/chunks/UiInputGroup.js +1 -1
  291. package/vue/chunks/UiList.js +1 -1
  292. package/vue/chunks/UiListItem.js +1 -1
  293. package/vue/chunks/UiListbox.js +1 -1
  294. package/vue/chunks/UiMenu.js +1 -1
  295. package/vue/chunks/UiMenuGroup.js +1 -1
  296. package/vue/chunks/UiMenuItem.js +1 -1
  297. package/vue/chunks/UiMeter.js +1 -1
  298. package/vue/chunks/UiNavItem.js +1 -1
  299. package/vue/chunks/UiPageHeader.js +1 -1
  300. package/vue/chunks/UiPopover.js +1 -1
  301. package/vue/chunks/UiRadio.js +1 -1
  302. package/vue/chunks/UiRadioGroup.js +1 -1
  303. package/vue/chunks/UiReel.js +1 -1
  304. package/vue/chunks/UiScrollArea.js +1 -1
  305. package/vue/chunks/UiSearchResultRow.js +1 -1
  306. package/vue/chunks/UiSearchShell.js +1 -1
  307. package/vue/chunks/UiSection.js +1 -1
  308. package/vue/chunks/UiSelect.js +1 -1
  309. package/vue/chunks/UiSeparator.js +1 -1
  310. package/vue/chunks/UiSidebar.js +1 -1
  311. package/vue/chunks/UiSpinner.js +1 -1
  312. package/vue/chunks/UiStack.js +1 -1
  313. package/vue/chunks/UiStatusMessage.js +1 -1
  314. package/vue/chunks/UiSwatch.js +1 -1
  315. package/vue/chunks/UiSwitch.js +1 -1
  316. package/vue/chunks/UiSwitcher.js +1 -1
  317. package/vue/chunks/UiTable.js +1 -1
  318. package/vue/chunks/UiTabs.js +3 -3
  319. package/vue/chunks/UiText.js +1 -1
  320. package/vue/chunks/UiTextarea.js +1 -1
  321. package/vue/chunks/UiToast.js +1 -1
  322. package/vue/chunks/UiToastRegion.js +1 -1
  323. package/vue/chunks/UiTooltip.js +1 -1
  324. package/vue/chunks/UiTopBar.js +1 -1
  325. package/vue/chunks/UiTree.js +1 -1
  326. package/vue/chunks/UiTreeItem.js +1 -1
  327. package/vue/components.css +1857 -1654
  328. package/vue/editor/index.js +28 -11
  329. package/vue/index.d.ts +1 -0
  330. package/vue/index.js +3 -2
@@ -43,22 +43,22 @@
43
43
  --_ui-default-tree-item-min-block-size: initial;
44
44
  --_ui-default-tree-item-font-size: initial;
45
45
  --_ui-default-tree-item-label-padding-block: initial;
46
- display: block;
46
+ display: block !important;
47
47
  min-inline-size: 0;
48
- padding-inline-start: var(--ui-tree-gutter, 0px);
48
+ padding-inline-start: var(--ui-tree-gutter, 0px) !important;
49
49
  }
50
50
 
51
51
  :scope:where([data-component~="ui-tree"])[data-move-mode]::after {
52
52
  content: "Choose a destination row, or use Up and Down; Right nests inside a branch. Enter places it, Escape cancels.";
53
- display: block;
54
- padding: var(--ui-space-2);
53
+ display: block !important;
54
+ padding: var(--ui-space-2) !important;
55
55
  color: var(--ui-text-secondary);
56
56
  font-size: var(--ui-font-size-sm);
57
57
  }
58
58
 
59
59
  /* A component that sets its display still honours the hidden attribute on its root. */
60
60
  :scope:where([data-component~="ui-tree"])[hidden] {
61
- display: none;
61
+ display: none !important;
62
62
  }
63
63
  }
64
64
  @scope ([data-component~="ui-tree"]) to ([data-component]) {
@@ -0,0 +1,80 @@
1
+ /* Optional shared recipe. Load after tokens.css and the chosen palette.
2
+ Existing public roles remain the customization interface; no component selectors. */
3
+ @layer theme {
4
+ :root {
5
+ --ui-density: 1;
6
+ --ui-scale-ratio: 1.2;
7
+ --ui-space-curve: 1;
8
+ --ui-outer-depth: 0.6;
9
+ --ui-inner-depth: 0.3;
10
+ --ui-edge-light: 0;
11
+ --ui-overlay-translucency: 0;
12
+ }
13
+
14
+ :where(:root, [data-theme], [data-contrast]) {
15
+ /* Controls use a ratio. Spacing uses an independent curve, so increasing the size
16
+ contrast cannot unexpectedly turn linear spacing into quadratic spacing. */
17
+ --_ui-theme-ratio: max(1, var(--ui-scale-ratio));
18
+ --_ui-theme-unit: calc(var(--ui-control-size) * 0.1 * max(0, var(--ui-density)));
19
+ --_ui-theme-curve: max(0, var(--ui-space-curve));
20
+ --ui-control-size-sm: calc(var(--ui-control-size) / var(--_ui-theme-ratio));
21
+ --ui-control-size-md: var(--ui-control-size);
22
+ --ui-control-size-lg: calc(var(--ui-control-size) * var(--_ui-theme-ratio));
23
+ --ui-space-1: var(--_ui-theme-unit);
24
+ --ui-space-2: calc(var(--_ui-theme-unit) * pow(2, var(--_ui-theme-curve)));
25
+ --ui-space-3: calc(var(--_ui-theme-unit) * pow(3, var(--_ui-theme-curve)));
26
+ --ui-space-4: calc(var(--_ui-theme-unit) * pow(4, var(--_ui-theme-curve)));
27
+ --ui-space-0-5: calc(var(--ui-space-1) * 0.5);
28
+ --ui-space-5: calc(var(--_ui-theme-unit) * pow(6, var(--_ui-theme-curve)));
29
+ --ui-space-6: calc(var(--_ui-theme-unit) * pow(8, var(--_ui-theme-curve)));
30
+ /* Vertical editing/action insets fit the shared box instead of growing with the
31
+ page spacing curve. Multi-line content can still grow intrinsically. */
32
+ --ui-control-inset-block-sm: max(0px, calc((var(--ui-control-size-sm) - var(--ui-font-size-sm) * var(--ui-line-height-tight) - 2 * var(--ui-border-width)) / 2));
33
+ --ui-control-inset-block-md: max(0px, calc((var(--ui-control-size-md) - var(--ui-font-size-md) * var(--ui-line-height-tight) - 2 * var(--ui-border-width)) / 2));
34
+ --ui-control-inset-block-lg: max(0px, calc((var(--ui-control-size-lg) - var(--ui-font-size-md) * var(--ui-line-height-tight) - 2 * var(--ui-border-width)) / 2));
35
+ --ui-action-inset-sm: calc(var(--ui-control-size-sm) * 0.625 * var(--ui-density));
36
+ --ui-action-inset-md: calc(var(--ui-control-size-md) * 0.625 * var(--ui-density));
37
+ --ui-action-inset-lg: calc(var(--ui-control-size-lg) * 0.625 * var(--ui-density));
38
+
39
+ --ui-radius-sm: calc(var(--ui-radius-md) * 0.5);
40
+ --ui-radius-lg: calc(var(--ui-radius-md) * 1.5);
41
+ --ui-action-radius: var(--ui-radius-md);
42
+ --ui-field-radius: var(--ui-radius-md);
43
+ --ui-overlay-radius: calc(var(--ui-radius-md) * 1.75);
44
+
45
+ /* Depth changes elevation and recession, not motion amplitude. Neutral shadows
46
+ work across palettes without an extra ornamental brand colour. */
47
+ --_ui-theme-outer: max(0, var(--ui-outer-depth));
48
+ --_ui-theme-inner: max(0, var(--ui-inner-depth));
49
+ --_ui-theme-edge: clamp(0, var(--ui-edge-light), 1);
50
+ --_ui-theme-edge-paint: inset 1px 1px 0 rgb(255 255 255 / calc(var(--_ui-theme-edge) * 0.08)), inset -1px -1px 0 rgb(0 0 0 / calc(var(--_ui-theme-edge) * 0.08));
51
+ --ui-action-edge: var(--_ui-theme-edge-paint);
52
+ --ui-shadow-xs: 0 calc(1px * var(--_ui-theme-outer)) calc(2px * var(--_ui-theme-outer)) rgb(0 0 0 / 0.08);
53
+ --ui-shadow-sm: 0 calc(1px * var(--_ui-theme-outer)) calc(3px * var(--_ui-theme-outer)) rgb(0 0 0 / 0.12), 0 calc(4px * var(--_ui-theme-outer)) calc(12px * var(--_ui-theme-outer)) rgb(0 0 0 / 0.06);
54
+ --ui-shadow-md: var(--ui-shadow-sm);
55
+ --ui-shadow-lg: 0 calc(8px * var(--_ui-theme-outer)) calc(24px * var(--_ui-theme-outer)) rgb(0 0 0 / 0.12), 0 calc(4px * var(--_ui-theme-outer)) calc(8px * var(--_ui-theme-outer)) rgb(0 0 0 / 0.06);
56
+ --ui-shadow-xl: var(--ui-shadow-lg);
57
+ --ui-action-shadow: var(--ui-shadow-sm);
58
+ --ui-raised: var(--ui-shadow-sm);
59
+ --ui-elevation-tooltip: var(--ui-shadow-sm);
60
+ --ui-elevation-overlay: var(--ui-shadow-lg);
61
+ --ui-elevation-dialog: var(--ui-shadow-lg);
62
+ --ui-control-inset: inset 0 calc(1px * var(--_ui-theme-inner)) calc(3px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.15), inset 0 -1px 0 rgb(255 255 255 / calc(var(--_ui-theme-edge) * 0.18));
63
+ --ui-pressed: inset 0 calc(2px * var(--_ui-theme-inner)) calc(4px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.2);
64
+ --ui-overlay-surface: color-mix(in srgb, var(--ui-surface-raised) calc((1 - clamp(0, var(--ui-overlay-translucency), 1)) * 100%), transparent);
65
+
66
+ /* Existing timing and easing names stay canonical. */
67
+ --ui-motion-press: calc(var(--ui-motion-fast) / 3);
68
+ --ui-motion-base: calc(var(--ui-motion-fast) * 1.2);
69
+ --ui-motion-ease-out: var(--ui-motion-ease);
70
+ --ui-press-scale: 0.98;
71
+ }
72
+
73
+ @media (prefers-reduced-motion: reduce) {
74
+ :where(:root, [data-theme], [data-contrast]) {
75
+ --ui-motion-press: 0ms;
76
+ --ui-motion-base: 0ms;
77
+ --ui-press-scale: 1;
78
+ }
79
+ }
80
+ }
package/tokens.css CHANGED
@@ -106,6 +106,12 @@
106
106
  --ui-font-family-sans: var(--ui-font-sans);
107
107
  --ui-font-family-mono: var(--ui-font-mono);
108
108
 
109
+ /* Text actions share the spacing scale; a theme may derive roomier action insets from its
110
+ control sizes without altering field padding or the common control height. */
111
+ --ui-action-inset-sm: var(--ui-space-2);
112
+ --ui-action-inset-md: var(--ui-space-3);
113
+ --ui-action-inset-lg: var(--ui-space-4);
114
+
109
115
  /* Space steps either side of the contract's four. */
110
116
  --ui-space-0-5: calc(var(--ui-space-1) * 0.5);
111
117
  --ui-space-5: calc(var(--ui-space-4) * 1.5);
@@ -243,6 +249,11 @@
243
249
  --ui-control-size-md: var(--ui-control-size);
244
250
  --ui-control-size-lg: calc(var(--ui-control-size) * 1.2);
245
251
 
252
+ /* Choice marks follow typography; row heights follow the shared control scale. */
253
+ --ui-choice-mark-size: calc(var(--ui-font-size) * 1.125);
254
+ --ui-choice-track-height: calc(var(--ui-font-size) * 1.5);
255
+ --ui-choice-track-width: calc(var(--ui-font-size) * 2.5);
256
+
246
257
  /* Icon sizes, used by icon buttons and field affordances. */
247
258
  --ui-icon-size-sm: var(--ui-font-size);
248
259
  --ui-icon-size-md: calc(var(--ui-font-size) * 1.25);
@@ -355,14 +366,14 @@
355
366
  [data-ui-choice-option][data-multiple]::before {
356
367
  content: "";
357
368
  flex: none;
358
- inline-size: 1.125rem;
359
- block-size: 1.125rem;
369
+ inline-size: var(--ui-choice-mark-size);
370
+ block-size: var(--ui-choice-mark-size);
360
371
  border: var(--ui-border-width) solid var(--ui-control-border-hover, var(--ui-border-strong));
361
372
  border-radius: var(--ui-radius-sm);
362
373
  background-color: var(--ui-control-surface);
363
374
  background-repeat: no-repeat;
364
375
  background-position: center;
365
- background-size: 0.7rem;
376
+ background-size: calc(var(--ui-font-size) * 0.7);
366
377
  }
367
378
 
368
379
  [data-ui-choice-option][data-multiple][aria-selected="true"]::before {
@@ -0,0 +1,30 @@
1
+ // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
+ export interface UiColorPickerEventMap {
3
+ input: CustomEvent<{ readonly value: string }>;
4
+ change: CustomEvent<{ readonly value: string }>;
5
+ }
6
+ export interface UiColorPickerElement extends HTMLSpanElement {
7
+ addEventListener<K extends keyof UiColorPickerEventMap>(type: K, listener: (this: UiColorPickerElement, event: UiColorPickerEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
8
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiColorPickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
9
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10
+ removeEventListener<K extends keyof UiColorPickerEventMap>(type: K, listener: (this: UiColorPickerElement, event: UiColorPickerEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
11
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiColorPickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
12
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13
+ }
14
+ export interface UiColorPickerProps {
15
+ disabled?: boolean | null;
16
+ label?: string | null;
17
+ name?: string | null;
18
+ round?: boolean | null;
19
+ size?: "sm" | "md" | "lg" | null;
20
+ value?: string | null;
21
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
22
+ children?: readonly (string | Node)[];
23
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
24
+ }
25
+ export declare function createUiColorPicker(props?: UiColorPickerProps): UiColorPickerElement;
26
+ declare global {
27
+ interface ComponentTagMap {
28
+ "ui-color-picker": { element: UiColorPickerElement; props: Omit<UiColorPickerProps, "attributes" | "children" | "slots"> };
29
+ }
30
+ }
@@ -0,0 +1,77 @@
1
+ // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
+ import * as controller from "../components/ui-color-picker/ui-color-picker.js";
4
+ import "../styles/ui-color-picker.css";
5
+
6
+ const T0 = ["",[],"\n ",["input",["type","hidden","data-ui-field-value",""]],"\n ",["button",["data-ui-field-control","","type","button","aria-haspopup","dialog","aria-expanded","false"],"\n ",["span",["class","colour"]],"\n "],"\n ",["span",["class","editor","hidden","","role","dialog"],"\n ",["label",["class","channel"],"Red",["input",["type","range","min","0","max","255","aria-label","Red"]]],"\n ",["label",["class","channel"],"Green",["input",["type","range","min","0","max","255","aria-label","Green"]]],"\n ",["label",["class","channel"],"Blue",["input",["type","range","min","0","max","255","aria-label","Blue"]]],"\n ",["ui-input",["size","sm","aria-label","Hex colour","maxlength","7","spellcheck","false"]],"\n "],"\n "];
7
+ let P0;
8
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-color-picker", d: { "input": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
9
+ const D = { g: "ui-color-picker", props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Choose colour", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "round": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":"#000000", c: checkString, t: "string", j: 0, m: "s" } } };
10
+ const C = (host) => activateModule(controller, host);
11
+
12
+ export function createUiColorPicker(options = {}, html) {
13
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14
+ const element = document.createElement("span");
15
+ for (const [name, value] of Object.entries(attributes)) {
16
+ if (value === null || value === undefined || value === false) continue;
17
+ element.setAttribute(name, value === true ? "" : String(value));
18
+ }
19
+ element.setAttribute("data-component", "ui-color-picker");
20
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
+ const v = [null, null, null, null, null, null];
22
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
+ const p0 = (r, c, d) => {
24
+ if (c & 4) {
25
+ const x0 = v[2];
26
+ const s0 = toAttribute(x0, "name");
27
+ if (s0 !== r.v0) writeAttribute(r.a0, "name", r.v0 = s0);
28
+ }
29
+ if (c & 1) {
30
+ const x1 = v[0];
31
+ const s1 = toAttribute(x1, "disabled");
32
+ if (s1 !== r.v1) writeAttribute(r.a0, "disabled", r.v1 = s1);
33
+ }
34
+ if (c & 2) {
35
+ const x2 = v[1];
36
+ const s2 = toAttribute(x2, "aria-label");
37
+ if (s2 !== r.v2) writeAttribute(r.a1, "aria-label", r.v2 = s2);
38
+ const s4 = toAttribute(x2, "aria-label");
39
+ if (s4 !== r.v4) writeAttribute(r.a3, "aria-label", r.v4 = s4);
40
+ }
41
+ if (c & 1) {
42
+ const x3 = v[0];
43
+ const s3 = toAttribute(x3, "disabled");
44
+ if (s3 !== r.v3) writeAttribute(r.a1, "disabled", r.v3 = s3);
45
+ }
46
+ if (c & 24) {
47
+ const x4 = hostState(["size","round"], [v[4], v[3]]);
48
+ const s5 = x4;
49
+ if (s5 !== r.v5) writeAttribute(r.n, "data-ui-color-picker-state", (r.v5 = s5) === "" ? null : s5);
50
+ }
51
+ };
52
+ const t0 = element.firstChild.nextSibling;
53
+ const t1 = t0.nextSibling.nextSibling;
54
+ const t2 = t1.firstChild.nextSibling;
55
+ const t3 = t1.nextSibling.nextSibling;
56
+ const t4 = t3.firstChild.nextSibling;
57
+ const t5 = t4.firstChild.nextSibling;
58
+ const t6 = t4.nextSibling.nextSibling;
59
+ const t7 = t6.firstChild.nextSibling;
60
+ const t8 = t6.nextSibling.nextSibling;
61
+ const t9 = t8.firstChild.nextSibling;
62
+ const t10 = t8.nextSibling.nextSibling;
63
+ const R = { n: element, a0: t0, a1: t1, a3: t3, v0: null, v1: null, v2: null, v3: null, v4: null, v5: undefined };
64
+ const I = { B };
65
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
66
+ manageProps(I);
67
+ I.r["field"] = t0;
68
+ I.r["trigger"] = t1;
69
+ I.r["colour"] = t2;
70
+ I.r["editor"] = t3;
71
+ I.r["red"] = t5;
72
+ I.r["green"] = t7;
73
+ I.r["blue"] = t9;
74
+ I.r["hex"] = t10;
75
+ return element;
76
+ }
77
+ defineComponent("ui-color-picker", createUiColorPicker, ["disabled","label","name","round","size","value"]);
package/vanilla/UiIcon.js CHANGED
@@ -29,7 +29,7 @@ export function createUiIcon(options = {}, html) {
29
29
  const inputStatus = (j) => { if (j >= 0 && j < 1) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 1) return awaitInput(B, "name", true); if (j === 2) return awaitInput(B, "tone", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
30
30
  const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
31
31
  const ke = [];
32
- const K = [() => readIndex({ "align-center": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M17 12H7" }, { "tag": "path", "d": "M19 19H5" }], "align-left": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M15 12H3" }, { "tag": "path", "d": "M17 19H3" }], "align-right": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M21 12H9" }, { "tag": "path", "d": "M21 19H7" }], "arrow-left": [{ "tag": "path", "d": "m12 19-7-7 7-7" }, { "tag": "path", "d": "M19 12H5" }], "bell": [{ "tag": "path", "d": "M10.268 21a2 2 0 0 0 3.464 0" }, { "tag": "path", "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }], "bold": [{ "tag": "path", "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }], "book-user": [{ "tag": "path", "d": "M15 13a3 3 0 1 0-6 0" }, { "tag": "path", "d": "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, { "tag": "circle", "cx": "12", "cy": "8", "r": "2" }], "braces": [{ "tag": "path", "d": "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }, { "tag": "path", "d": "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }], "calculator": [{ "tag": "rect", "width": "16", "height": "20", "x": "4", "y": "2", "rx": "2" }, { "tag": "line", "x1": "8", "x2": "16", "y1": "6", "y2": "6" }, { "tag": "line", "x1": "16", "x2": "16", "y1": "14", "y2": "18" }, { "tag": "path", "d": "M16 10h.01" }, { "tag": "path", "d": "M12 10h.01" }, { "tag": "path", "d": "M8 10h.01" }, { "tag": "path", "d": "M12 14h.01" }, { "tag": "path", "d": "M8 14h.01" }, { "tag": "path", "d": "M12 18h.01" }, { "tag": "path", "d": "M8 18h.01" }], "check": [{ "tag": "path", "d": "M20 6 9 17l-5-5" }], "chevron-down": [{ "tag": "path", "d": "m6 9 6 6 6-6" }], "chevron-left": [{ "tag": "path", "d": "m15 18-6-6 6-6" }], "chevron-right": [{ "tag": "path", "d": "m9 18 6-6-6-6" }], "circle-check": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "m9 12 2 2 4-4" }], "circle-dot": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "1" }], "circle-x": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "m15 9-6 6" }, { "tag": "path", "d": "m9 9 6 6" }], "code-xml": [{ "tag": "path", "d": "m18 16 4-4-4-4" }, { "tag": "path", "d": "m6 8-4 4 4 4" }, { "tag": "path", "d": "m14.5 4-5 16" }], "columns": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M9 3v18" }, { "tag": "path", "d": "M15 3v18" }], "compass": [{ "tag": "path", "d": "m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "10" }], "credit-card": [{ "tag": "rect", "width": "20", "height": "14", "x": "2", "y": "5", "rx": "2" }, { "tag": "line", "x1": "2", "x2": "22", "y1": "10", "y2": "10" }], "ellipsis": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "12", "r": "1" }], "eraser": [{ "tag": "path", "d": "M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" }, { "tag": "path", "d": "m5.082 11.09 8.828 8.828" }], "external-link": [{ "tag": "path", "d": "M15 3h6v6" }, { "tag": "path", "d": "M10 14 21 3" }, { "tag": "path", "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }], "file-text": [{ "tag": "path", "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }, { "tag": "path", "d": "M14 2v5a1 1 0 0 0 1 1h5" }, { "tag": "path", "d": "M10 9H8" }, { "tag": "path", "d": "M16 13H8" }, { "tag": "path", "d": "M16 17H8" }], "folder": [{ "tag": "path", "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }], "grip-horizontal": [{ "tag": "circle", "cx": "12", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "12", "cy": "15", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "15", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "15", "r": "1" }], "grip-vertical": [{ "tag": "circle", "cx": "9", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "9", "cy": "5", "r": "1" }, { "tag": "circle", "cx": "9", "cy": "19", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "5", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "19", "r": "1" }], "heading-1": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "m17 12 3-2v8" }], "heading-2": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" }], "heading-3": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }, { "tag": "path", "d": "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }], "help": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, { "tag": "path", "d": "M12 17h.01" }], "highlighter": [{ "tag": "path", "d": "m9 11-6 6v3h9l3-3" }, { "tag": "path", "d": "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" }], "history": [{ "tag": "path", "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }, { "tag": "path", "d": "M3 3v5h5" }, { "tag": "path", "d": "M12 7v5l4 2" }], "image": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }, { "tag": "circle", "cx": "9", "cy": "9", "r": "2" }, { "tag": "path", "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }], "info": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "M12 16v-4" }, { "tag": "path", "d": "M12 8h.01" }], "italic": [{ "tag": "line", "x1": "19", "x2": "10", "y1": "4", "y2": "4" }, { "tag": "line", "x1": "14", "x2": "5", "y1": "20", "y2": "20" }, { "tag": "line", "x1": "15", "x2": "9", "y1": "4", "y2": "20" }], "layout-dashboard": [{ "tag": "rect", "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }, { "tag": "rect", "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }, { "tag": "rect", "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }, { "tag": "rect", "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }], "lightbulb": [{ "tag": "path", "d": "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }, { "tag": "path", "d": "M9 18h6" }, { "tag": "path", "d": "M10 22h4" }], "link": [{ "tag": "path", "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }, { "tag": "path", "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }], "list": [{ "tag": "path", "d": "M3 5h.01" }, { "tag": "path", "d": "M3 12h.01" }, { "tag": "path", "d": "M3 19h.01" }, { "tag": "path", "d": "M8 5h13" }, { "tag": "path", "d": "M8 12h13" }, { "tag": "path", "d": "M8 19h13" }], "list-ordered": [{ "tag": "path", "d": "M11 5h10" }, { "tag": "path", "d": "M11 12h10" }, { "tag": "path", "d": "M11 19h10" }, { "tag": "path", "d": "M4 4h1v5" }, { "tag": "path", "d": "M4 9h2" }, { "tag": "path", "d": "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }], "list-todo": [{ "tag": "path", "d": "M13 5h8" }, { "tag": "path", "d": "M13 12h8" }, { "tag": "path", "d": "M13 19h8" }, { "tag": "path", "d": "m3 17 2 2 4-4" }, { "tag": "rect", "x": "3", "y": "4", "width": "6", "height": "6", "rx": "1" }], "loader": [{ "tag": "path", "d": "M21 12a9 9 0 1 1-6.219-8.56" }], "merge": [{ "tag": "path", "d": "m8 6 4-4 4 4" }, { "tag": "path", "d": "M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22" }, { "tag": "path", "d": "m20 22-5-5" }], "message-square-warning": [{ "tag": "path", "d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }, { "tag": "path", "d": "M12 15h.01" }, { "tag": "path", "d": "M12 7v4" }], "minus": [{ "tag": "path", "d": "M5 12h14" }], "notebook-pen": [{ "tag": "path", "d": "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }, { "tag": "path", "d": "M2 6h4" }, { "tag": "path", "d": "M2 10h4" }, { "tag": "path", "d": "M2 14h4" }, { "tag": "path", "d": "M2 18h4" }, { "tag": "path", "d": "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" }], "paint-bucket": [{ "tag": "path", "d": "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z" }, { "tag": "path", "d": "m5 2 5 5" }, { "tag": "path", "d": "M2 13h15" }, { "tag": "path", "d": "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z" }], "panel-bottom": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M3 15h18" }], "panel-left": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M9 3v18" }], "panel-right": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M15 3v18" }], "panel-top": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M3 9h18" }], "pencil": [{ "tag": "path", "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }, { "tag": "path", "d": "m15 5 4 4" }], "pilcrow": [{ "tag": "path", "d": "M13 4v16" }, { "tag": "path", "d": "M17 4v16" }, { "tag": "path", "d": "M19 4H9.5a4.5 4.5 0 0 0 0 9H13" }], "plus": [{ "tag": "path", "d": "M5 12h14" }, { "tag": "path", "d": "M12 5v14" }], "quote": [{ "tag": "path", "d": "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }, { "tag": "path", "d": "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }], "receipt": [{ "tag": "path", "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" }, { "tag": "path", "d": "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8" }, { "tag": "path", "d": "M12 17.5v-11" }], "redo": [{ "tag": "path", "d": "m15 14 5-5-5-5" }, { "tag": "path", "d": "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" }], "rows": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M21 9H3" }, { "tag": "path", "d": "M21 15H3" }], "search": [{ "tag": "path", "d": "m21 21-4.34-4.34" }, { "tag": "circle", "cx": "11", "cy": "11", "r": "8" }], "settings": [{ "tag": "path", "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "3" }], "split": [{ "tag": "path", "d": "M16 3h5v5" }, { "tag": "path", "d": "M8 3H3v5" }, { "tag": "path", "d": "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" }, { "tag": "path", "d": "m15 9 6-6" }], "strikethrough": [{ "tag": "path", "d": "M16 4H9a3 3 0 0 0-2.83 4" }, { "tag": "path", "d": "M14 12a4 4 0 0 1 0 8H6" }, { "tag": "line", "x1": "4", "x2": "20", "y1": "12", "y2": "12" }], "superscript": [{ "tag": "path", "d": "m4 19 8-8" }, { "tag": "path", "d": "m12 19-8-8" }, { "tag": "path", "d": "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" }], "table": [{ "tag": "path", "d": "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18" }], "tag": [{ "tag": "path", "d": "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z" }, { "tag": "circle", "cx": "7.5", "cy": "7.5", "r": ".5", "fill": "currentColor" }], "trash": [{ "tag": "path", "d": "M10 11v6" }, { "tag": "path", "d": "M14 11v6" }, { "tag": "path", "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }, { "tag": "path", "d": "M3 6h18" }, { "tag": "path", "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }], "triangle-alert": [{ "tag": "path", "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }, { "tag": "path", "d": "M12 9v4" }, { "tag": "path", "d": "M12 17h.01" }], "truck": [{ "tag": "path", "d": "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2" }, { "tag": "path", "d": "M15 18H9" }, { "tag": "path", "d": "M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14" }, { "tag": "circle", "cx": "17", "cy": "18", "r": "2" }, { "tag": "circle", "cx": "7", "cy": "18", "r": "2" }], "underline": [{ "tag": "path", "d": "M6 4v6a6 6 0 0 0 12 0V4" }, { "tag": "line", "x1": "4", "x2": "20", "y1": "20", "y2": "20" }], "undo": [{ "tag": "path", "d": "M9 14 4 9l5-5" }, { "tag": "path", "d": "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" }], "unlink": [{ "tag": "path", "d": "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }, { "tag": "path", "d": "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }, { "tag": "line", "x1": "8", "x2": "8", "y1": "2", "y2": "5" }, { "tag": "line", "x1": "2", "x2": "5", "y1": "8", "y2": "8" }, { "tag": "line", "x1": "16", "x2": "16", "y1": "19", "y2": "22" }, { "tag": "line", "x1": "19", "x2": "22", "y1": "16", "y2": "16" }], "user-round": [{ "tag": "circle", "cx": "12", "cy": "8", "r": "5" }, { "tag": "path", "d": "M20 21a8 8 0 0 0-16 0" }], "users": [{ "tag": "path", "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { "tag": "path", "d": "M16 3.128a4 4 0 0 1 0 7.744" }, { "tag": "path", "d": "M22 21v-2a4 4 0 0 0-3-3.87" }, { "tag": "circle", "cx": "9", "cy": "7", "r": "4" }], "x": [{ "tag": "path", "d": "M18 6 6 18" }, { "tag": "path", "d": "m6 6 12 12" }] }, inputRead(v[1], inputStatus(1)))];
32
+ const K = [() => readIndex({ "align-center": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M17 12H7" }, { "tag": "path", "d": "M19 19H5" }], "align-left": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M15 12H3" }, { "tag": "path", "d": "M17 19H3" }], "align-right": [{ "tag": "path", "d": "M21 5H3" }, { "tag": "path", "d": "M21 12H9" }, { "tag": "path", "d": "M21 19H7" }], "arrow-left": [{ "tag": "path", "d": "m12 19-7-7 7-7" }, { "tag": "path", "d": "M19 12H5" }], "bell": [{ "tag": "path", "d": "M10.268 21a2 2 0 0 0 3.464 0" }, { "tag": "path", "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }], "bold": [{ "tag": "path", "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }], "book-user": [{ "tag": "path", "d": "M15 13a3 3 0 1 0-6 0" }, { "tag": "path", "d": "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, { "tag": "circle", "cx": "12", "cy": "8", "r": "2" }], "braces": [{ "tag": "path", "d": "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }, { "tag": "path", "d": "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }], "calculator": [{ "tag": "rect", "width": "16", "height": "20", "x": "4", "y": "2", "rx": "2" }, { "tag": "line", "x1": "8", "x2": "16", "y1": "6", "y2": "6" }, { "tag": "line", "x1": "16", "x2": "16", "y1": "14", "y2": "18" }, { "tag": "path", "d": "M16 10h.01" }, { "tag": "path", "d": "M12 10h.01" }, { "tag": "path", "d": "M8 10h.01" }, { "tag": "path", "d": "M12 14h.01" }, { "tag": "path", "d": "M8 14h.01" }, { "tag": "path", "d": "M12 18h.01" }, { "tag": "path", "d": "M8 18h.01" }], "check": [{ "tag": "path", "d": "M20 6 9 17l-5-5" }], "chevron-down": [{ "tag": "path", "d": "m6 9 6 6 6-6" }], "chevron-left": [{ "tag": "path", "d": "m15 18-6-6 6-6" }], "chevron-right": [{ "tag": "path", "d": "m9 18 6-6-6-6" }], "circle-check": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "m9 12 2 2 4-4" }], "circle-dot": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "1" }], "circle-x": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "m15 9-6 6" }, { "tag": "path", "d": "m9 9 6 6" }], "code-xml": [{ "tag": "path", "d": "m18 16 4-4-4-4" }, { "tag": "path", "d": "m6 8-4 4 4 4" }, { "tag": "path", "d": "m14.5 4-5 16" }], "columns": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M9 3v18" }, { "tag": "path", "d": "M15 3v18" }], "compass": [{ "tag": "path", "d": "m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "10" }], "credit-card": [{ "tag": "rect", "width": "20", "height": "14", "x": "2", "y": "5", "rx": "2" }, { "tag": "line", "x1": "2", "x2": "22", "y1": "10", "y2": "10" }], "ellipsis": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "12", "r": "1" }], "eraser": [{ "tag": "path", "d": "M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" }, { "tag": "path", "d": "m5.082 11.09 8.828 8.828" }], "external-link": [{ "tag": "path", "d": "M15 3h6v6" }, { "tag": "path", "d": "M10 14 21 3" }, { "tag": "path", "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }], "file-text": [{ "tag": "path", "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }, { "tag": "path", "d": "M14 2v5a1 1 0 0 0 1 1h5" }, { "tag": "path", "d": "M10 9H8" }, { "tag": "path", "d": "M16 13H8" }, { "tag": "path", "d": "M16 17H8" }], "folder": [{ "tag": "path", "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }], "grip-horizontal": [{ "tag": "circle", "cx": "12", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "9", "r": "1" }, { "tag": "circle", "cx": "12", "cy": "15", "r": "1" }, { "tag": "circle", "cx": "19", "cy": "15", "r": "1" }, { "tag": "circle", "cx": "5", "cy": "15", "r": "1" }], "grip-vertical": [{ "tag": "circle", "cx": "9", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "9", "cy": "5", "r": "1" }, { "tag": "circle", "cx": "9", "cy": "19", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "12", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "5", "r": "1" }, { "tag": "circle", "cx": "15", "cy": "19", "r": "1" }], "heading-1": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "m17 12 3-2v8" }], "heading-2": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" }], "heading-3": [{ "tag": "path", "d": "M4 12h8" }, { "tag": "path", "d": "M4 18V6" }, { "tag": "path", "d": "M12 18V6" }, { "tag": "path", "d": "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }, { "tag": "path", "d": "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }], "help": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, { "tag": "path", "d": "M12 17h.01" }], "highlighter": [{ "tag": "path", "d": "m9 11-6 6v3h9l3-3" }, { "tag": "path", "d": "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" }], "history": [{ "tag": "path", "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }, { "tag": "path", "d": "M3 3v5h5" }, { "tag": "path", "d": "M12 7v5l4 2" }], "image": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }, { "tag": "circle", "cx": "9", "cy": "9", "r": "2" }, { "tag": "path", "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }], "info": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "10" }, { "tag": "path", "d": "M12 16v-4" }, { "tag": "path", "d": "M12 8h.01" }], "italic": [{ "tag": "line", "x1": "19", "x2": "10", "y1": "4", "y2": "4" }, { "tag": "line", "x1": "14", "x2": "5", "y1": "20", "y2": "20" }, { "tag": "line", "x1": "15", "x2": "9", "y1": "4", "y2": "20" }], "layout-dashboard": [{ "tag": "rect", "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }, { "tag": "rect", "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }, { "tag": "rect", "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }, { "tag": "rect", "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }], "lightbulb": [{ "tag": "path", "d": "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }, { "tag": "path", "d": "M9 18h6" }, { "tag": "path", "d": "M10 22h4" }], "link": [{ "tag": "path", "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }, { "tag": "path", "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }], "list": [{ "tag": "path", "d": "M3 5h.01" }, { "tag": "path", "d": "M3 12h.01" }, { "tag": "path", "d": "M3 19h.01" }, { "tag": "path", "d": "M8 5h13" }, { "tag": "path", "d": "M8 12h13" }, { "tag": "path", "d": "M8 19h13" }], "list-ordered": [{ "tag": "path", "d": "M11 5h10" }, { "tag": "path", "d": "M11 12h10" }, { "tag": "path", "d": "M11 19h10" }, { "tag": "path", "d": "M4 4h1v5" }, { "tag": "path", "d": "M4 9h2" }, { "tag": "path", "d": "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }], "list-todo": [{ "tag": "path", "d": "M13 5h8" }, { "tag": "path", "d": "M13 12h8" }, { "tag": "path", "d": "M13 19h8" }, { "tag": "path", "d": "m3 17 2 2 4-4" }, { "tag": "rect", "x": "3", "y": "4", "width": "6", "height": "6", "rx": "1" }], "loader": [{ "tag": "path", "d": "M21 12a9 9 0 1 1-6.219-8.56" }], "merge": [{ "tag": "path", "d": "m8 6 4-4 4 4" }, { "tag": "path", "d": "M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22" }, { "tag": "path", "d": "m20 22-5-5" }], "message-square-warning": [{ "tag": "path", "d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }, { "tag": "path", "d": "M12 15h.01" }, { "tag": "path", "d": "M12 7v4" }], "minus": [{ "tag": "path", "d": "M5 12h14" }], "notebook-pen": [{ "tag": "path", "d": "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }, { "tag": "path", "d": "M2 6h4" }, { "tag": "path", "d": "M2 10h4" }, { "tag": "path", "d": "M2 14h4" }, { "tag": "path", "d": "M2 18h4" }, { "tag": "path", "d": "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" }], "paint-bucket": [{ "tag": "path", "d": "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z" }, { "tag": "path", "d": "m5 2 5 5" }, { "tag": "path", "d": "M2 13h15" }, { "tag": "path", "d": "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z" }], "panel-bottom": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M3 15h18" }], "panel-left": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M9 3v18" }], "panel-right": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M15 3v18" }], "panel-top": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M3 9h18" }], "paperclip": [{ "tag": "path", "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }], "pencil": [{ "tag": "path", "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }, { "tag": "path", "d": "m15 5 4 4" }], "pilcrow": [{ "tag": "path", "d": "M13 4v16" }, { "tag": "path", "d": "M17 4v16" }, { "tag": "path", "d": "M19 4H9.5a4.5 4.5 0 0 0 0 9H13" }], "plus": [{ "tag": "path", "d": "M5 12h14" }, { "tag": "path", "d": "M12 5v14" }], "quote": [{ "tag": "path", "d": "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }, { "tag": "path", "d": "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }], "receipt": [{ "tag": "path", "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" }, { "tag": "path", "d": "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8" }, { "tag": "path", "d": "M12 17.5v-11" }], "redo": [{ "tag": "path", "d": "m15 14 5-5-5-5" }, { "tag": "path", "d": "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" }], "rows": [{ "tag": "rect", "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }, { "tag": "path", "d": "M21 9H3" }, { "tag": "path", "d": "M21 15H3" }], "search": [{ "tag": "path", "d": "m21 21-4.34-4.34" }, { "tag": "circle", "cx": "11", "cy": "11", "r": "8" }], "settings": [{ "tag": "path", "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }, { "tag": "circle", "cx": "12", "cy": "12", "r": "3" }], "split": [{ "tag": "path", "d": "M16 3h5v5" }, { "tag": "path", "d": "M8 3H3v5" }, { "tag": "path", "d": "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" }, { "tag": "path", "d": "m15 9 6-6" }], "strikethrough": [{ "tag": "path", "d": "M16 4H9a3 3 0 0 0-2.83 4" }, { "tag": "path", "d": "M14 12a4 4 0 0 1 0 8H6" }, { "tag": "line", "x1": "4", "x2": "20", "y1": "12", "y2": "12" }], "superscript": [{ "tag": "path", "d": "m4 19 8-8" }, { "tag": "path", "d": "m12 19-8-8" }, { "tag": "path", "d": "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" }], "table": [{ "tag": "path", "d": "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18" }], "tag": [{ "tag": "path", "d": "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z" }, { "tag": "circle", "cx": "7.5", "cy": "7.5", "r": ".5", "fill": "currentColor" }], "trash": [{ "tag": "path", "d": "M10 11v6" }, { "tag": "path", "d": "M14 11v6" }, { "tag": "path", "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }, { "tag": "path", "d": "M3 6h18" }, { "tag": "path", "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }], "triangle-alert": [{ "tag": "path", "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }, { "tag": "path", "d": "M12 9v4" }, { "tag": "path", "d": "M12 17h.01" }], "truck": [{ "tag": "path", "d": "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2" }, { "tag": "path", "d": "M15 18H9" }, { "tag": "path", "d": "M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14" }, { "tag": "circle", "cx": "17", "cy": "18", "r": "2" }, { "tag": "circle", "cx": "7", "cy": "18", "r": "2" }], "underline": [{ "tag": "path", "d": "M6 4v6a6 6 0 0 0 12 0V4" }, { "tag": "line", "x1": "4", "x2": "20", "y1": "20", "y2": "20" }], "undo": [{ "tag": "path", "d": "M9 14 4 9l5-5" }, { "tag": "path", "d": "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" }], "unlink": [{ "tag": "path", "d": "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }, { "tag": "path", "d": "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }, { "tag": "line", "x1": "8", "x2": "8", "y1": "2", "y2": "5" }, { "tag": "line", "x1": "2", "x2": "5", "y1": "8", "y2": "8" }, { "tag": "line", "x1": "16", "x2": "16", "y1": "19", "y2": "22" }, { "tag": "line", "x1": "19", "x2": "22", "y1": "16", "y2": "16" }], "user-round": [{ "tag": "circle", "cx": "12", "cy": "8", "r": "5" }, { "tag": "path", "d": "M20 21a8 8 0 0 0-16 0" }], "users": [{ "tag": "path", "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { "tag": "path", "d": "M16 3.128a4 4 0 0 1 0 7.744" }, { "tag": "path", "d": "M22 21v-2a4 4 0 0 0-3-3.87" }, { "tag": "circle", "cx": "9", "cy": "7", "r": "4" }], "x": [{ "tag": "path", "d": "M18 6 6 18" }, { "tag": "path", "d": "m6 6 12 12" }] }, inputRead(v[1], inputStatus(1)))];
33
33
  const g = (j) => {
34
34
  const i = j - 0;
35
35
  if (ke[i] === X.e) return v[j];
package/vanilla/index.js CHANGED
@@ -10,6 +10,7 @@ export * from "./UiCallout.js";
10
10
  export * from "./UiCard.js";
11
11
  export * from "./UiCheckbox.js";
12
12
  export * from "./UiCluster.js";
13
+ export * from "./UiColorPicker.js";
13
14
  export * from "./UiCombobox.js";
14
15
  export * from "./UiContainer.js";
15
16
  export * from "./UiContextMenu.js";
@@ -46,7 +46,7 @@ checkHydratedRoot('div', 'ui-action-bar')
46
46
  --_ui-action-bar-gap: var(--ui-action-bar-gap);
47
47
 
48
48
  --_gap: var(--ui-space-2);
49
- display: block;
49
+ display: block !important;
50
50
  /* A size container sizes itself from its container, never its content. */
51
51
  container-type: inline-size;
52
52
  inline-size: 100%;
@@ -57,13 +57,13 @@ checkHydratedRoot('div', 'ui-action-bar')
57
57
  :global(.tertiary:where([data-hn-ui-action-bar])),
58
58
  :global(.secondary:where([data-hn-ui-action-bar])),
59
59
  :global(.primary:where([data-hn-ui-action-bar])) {
60
- display: flex;
61
- flex-wrap: wrap;
62
- align-items: center;
63
- gap: var(--_ui-action-bar-gap, var(--_gap));
60
+ display: flex !important;
61
+ flex-wrap: wrap !important;
62
+ align-items: center !important;
63
+ gap: var(--_ui-action-bar-gap, var(--_gap)) !important;
64
64
  }
65
65
  :global(.bar:where([data-hn-ui-action-bar])) {
66
- justify-content: flex-end;
66
+ justify-content: flex-end !important;
67
67
  }
68
68
 
69
69
  :global(.tertiary:where([data-hn-ui-action-bar])) {
@@ -73,16 +73,16 @@ checkHydratedRoot('div', 'ui-action-bar')
73
73
  :global(.tertiary:empty:where([data-hn-ui-action-bar])),
74
74
  :global(.secondary:empty:where([data-hn-ui-action-bar])),
75
75
  :global(.primary:empty:where([data-hn-ui-action-bar])) {
76
- display: none;
76
+ display: none !important;
77
77
  }
78
78
  @container (inline-size < 24rem) {
79
79
  :global(.bar:where([data-hn-ui-action-bar])),
80
80
  :global(.tertiary:where([data-hn-ui-action-bar])),
81
81
  :global(.secondary:where([data-hn-ui-action-bar])),
82
82
  :global(.primary:where([data-hn-ui-action-bar])) {
83
- flex-direction: column-reverse;
84
- flex-wrap: nowrap;
85
- align-items: stretch;
83
+ flex-direction: column-reverse !important;
84
+ flex-wrap: nowrap !important;
85
+ align-items: stretch !important;
86
86
  }
87
87
 
88
88
  :global(.tertiary:where([data-hn-ui-action-bar])) {
@@ -90,7 +90,7 @@ checkHydratedRoot('div', 'ui-action-bar')
90
90
  }
91
91
  }
92
92
  :global(:scope[hidden]:where([data-hn-ui-action-bar])) {
93
- display: none;
93
+ display: none !important;
94
94
  }
95
95
  }
96
96
  </style>
@@ -165,7 +165,7 @@ useComponentHost(() => import('../components/ui-affordance-scope/ui-affordance-s
165
165
 
166
166
  @scope (.ui-affordance-scope) to ([data-hn]) {
167
167
  :global(:scope:where([data-hn-ui-affordance-scope])) {
168
- display: contents;
168
+ display: contents !important;
169
169
  --ui-affordance-scope-engaged: 0;
170
170
  --ui-affordance-scope-guide: 1;
171
171
  }
@@ -176,7 +176,7 @@ useComponentHost(() => import('../components/ui-affordance-scope/ui-affordance-s
176
176
  --ui-affordance-scope-guide: 0;
177
177
  }
178
178
  :global(:scope[hidden]:where([data-hn-ui-affordance-scope])) {
179
- display: none;
179
+ display: none !important;
180
180
  }
181
181
  }
182
182
  </style>
package/vue/UiAvatar.vue CHANGED
@@ -333,7 +333,7 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
333
333
  @scope (.ui-avatar) to ([data-hn]) {
334
334
  :global(:scope:where([data-hn-ui-avatar])) {
335
335
  --_ui-default-icon-size: 1.25rem;
336
- display: inline-grid;
336
+ display: inline-grid !important;
337
337
  place-items: center;
338
338
  overflow: hidden;
339
339
  inline-size: 2.5rem;
@@ -395,27 +395,27 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
395
395
 
396
396
  :global(.fallback:where([data-hn-ui-avatar])) {
397
397
  grid-area: 1 / 1;
398
- display: inline-flex;
399
- align-items: center;
400
- justify-content: center;
398
+ display: inline-flex !important;
399
+ align-items: center !important;
400
+ justify-content: center !important;
401
401
  inline-size: 100%;
402
402
  block-size: 100%;
403
403
  }
404
404
  @supports (text-box-trim: trim-both) {
405
405
  :global(.fallback:where([data-hn-ui-avatar])) {
406
- display: block;
406
+ display: block !important;
407
407
  text-align: center;
408
- align-content: center;
408
+ align-content: center !important;
409
409
  text-box-trim: trim-both;
410
410
  text-box-edge: cap alphabetic;
411
411
  }
412
412
  }
413
413
 
414
414
  :global([hidden]:where([data-hn-ui-avatar])) {
415
- display: none;
415
+ display: none !important;
416
416
  }
417
417
  :global(:scope[hidden]:where([data-hn-ui-avatar])) {
418
- display: none;
418
+ display: none !important;
419
419
  }
420
420
  }
421
421
  </style>
@@ -250,18 +250,18 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
250
250
  * a white gap out of the avatar underneath. */
251
251
  --_overlap-shadow: -1px 0 0 0 rgb(0 0 0 / 0.22);
252
252
 
253
- display: flex;
254
- align-items: center;
255
- flex-direction: row;
256
- gap: 0;
253
+ display: flex !important;
254
+ align-items: center !important;
255
+ flex-direction: row !important;
256
+ gap: 0 !important;
257
257
  }
258
258
  :global(:where(:not([data-hn-ui-avatar-group])):is(*)) {
259
- margin-inline-start: -0.5rem;
259
+ margin-inline-start: -0.5rem !important;
260
260
  flex-shrink: 0;
261
261
  }
262
262
 
263
263
  :global(:where(:not([data-hn-ui-avatar-group])):is(*:first-child)) {
264
- margin-inline-start: 0;
264
+ margin-inline-start: 0 !important;
265
265
  }
266
266
 
267
267
  :global(:scope:dir(rtl):where([data-hn-ui-avatar-group])) {
@@ -269,10 +269,10 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
269
269
  }
270
270
 
271
271
  :global(.overflow:where([data-hn-ui-avatar-group])) {
272
- margin-inline-start: -0.5rem;
273
- display: inline-flex;
274
- align-items: center;
275
- justify-content: center;
272
+ margin-inline-start: -0.5rem !important;
273
+ display: inline-flex !important;
274
+ align-items: center !important;
275
+ justify-content: center !important;
276
276
  inline-size: 2.5rem;
277
277
  block-size: 2.5rem;
278
278
  border-radius: var(--ui-radius-round);
@@ -290,14 +290,14 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
290
290
 
291
291
  :global(:scope[data-ui-avatar-group-state~="size=sm"]
292
292
  .overflow:where([data-hn-ui-avatar-group])) {
293
- margin-inline-start: -0.25rem;
293
+ margin-inline-start: -0.25rem !important;
294
294
  inline-size: 1.75rem;
295
295
  block-size: 1.75rem;
296
296
  }
297
297
 
298
298
  :global(:scope[data-ui-avatar-group-state~="size=xs"]
299
299
  .overflow:where([data-hn-ui-avatar-group])) {
300
- margin-inline-start: -0.1875rem;
300
+ margin-inline-start: -0.1875rem !important;
301
301
  inline-size: 1.25rem;
302
302
  block-size: 1.25rem;
303
303
  /* Matches the xs Avatar's initials. */
@@ -306,10 +306,10 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
306
306
  }
307
307
 
308
308
  :global(.overflow[hidden]:where([data-hn-ui-avatar-group])) {
309
- display: none;
309
+ display: none !important;
310
310
  }
311
311
  :global(:scope[hidden]:where([data-hn-ui-avatar-group])) {
312
- display: none;
312
+ display: none !important;
313
313
  }
314
314
  }
315
315
  </style>