@threadlabs/looma 0.44.2 → 0.44.3

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 (82) hide show
  1. package/components/shared/icons.js +1 -0
  2. package/components/ui-badge/ui-badge.html +7 -6
  3. package/components/ui-button/ui-button.html +47 -2
  4. package/components/ui-card/ui-card.html +6 -6
  5. package/components/ui-color-picker/ui-color-picker.html +12 -5
  6. package/components/ui-color-picker/ui-color-picker.js +20 -6
  7. package/components/ui-dialog/ui-dialog.html +5 -6
  8. package/components/ui-icon/ui-icon.html +1 -0
  9. package/components/ui-icon-button/ui-icon-button.html +59 -4
  10. package/components/ui-menu/ui-menu.html +5 -6
  11. package/components/ui-number-input/ui-number-input.html +7 -0
  12. package/components/ui-popover/ui-popover.html +5 -6
  13. package/components/ui-slider/ui-slider.html +6 -0
  14. package/components/ui-tooltip/ui-tooltip.html +8 -5
  15. package/components/ui-tree-item/ui-tree-item.html +7 -1
  16. package/dist/index.js +1 -1
  17. package/docs/README.md +8 -4
  18. package/docs/catalog.json +469 -3704
  19. package/docs/customizer-render.mjs +55 -36
  20. package/docs/customizer.js +48 -33
  21. package/docs/fonts.mjs +28 -0
  22. package/docs/theme.mjs +39 -14
  23. package/editor/icons.d.ts +1 -0
  24. package/editor/index.js +2 -1
  25. package/package.json +1 -1
  26. package/styles/ui-badge.css +11 -10
  27. package/styles/ui-button.css +47 -2
  28. package/styles/ui-card.css +4 -4
  29. package/styles/ui-color-picker.css +105 -2
  30. package/styles/ui-dialog.css +10 -12
  31. package/styles/ui-icon-button.css +59 -4
  32. package/styles/ui-menu.css +5 -6
  33. package/styles/ui-number-input.css +6 -0
  34. package/styles/ui-popover.css +5 -6
  35. package/styles/ui-slider.css +3 -0
  36. package/styles/ui-tooltip.css +8 -5
  37. package/styles/ui-tree-item.css +12 -2
  38. package/theme-system.css +28 -16
  39. package/tokens.css +7 -0
  40. package/vanilla/UiColorPicker.d.ts +1 -0
  41. package/vanilla/UiColorPicker.js +32 -28
  42. package/vanilla/UiIcon.js +1 -1
  43. package/vanilla/UiNumberInput.d.ts +1 -0
  44. package/vanilla/UiNumberInput.js +53 -43
  45. package/vanilla/UiSlider.d.ts +1 -0
  46. package/vanilla/UiSlider.js +65 -57
  47. package/vanilla/UiTreeItem.js +1 -1
  48. package/vue/UiBadge.vue +7 -9
  49. package/vue/UiButton.vue +56 -2
  50. package/vue/UiCard.vue +13 -5
  51. package/vue/UiColorPicker.d.ts +6 -0
  52. package/vue/UiColorPicker.vue +156 -6
  53. package/vue/UiDialog.vue +22 -12
  54. package/vue/UiIcon.vue +1 -0
  55. package/vue/UiIconButton.vue +62 -4
  56. package/vue/UiMenu.vue +11 -6
  57. package/vue/UiNumberInput.d.ts +6 -0
  58. package/vue/UiNumberInput.vue +47 -1
  59. package/vue/UiPopover.vue +11 -6
  60. package/vue/UiSlider.d.ts +6 -0
  61. package/vue/UiSlider.vue +37 -1
  62. package/vue/UiTooltip.vue +11 -5
  63. package/vue/UiTreeItem.vue +19 -3
  64. package/vue/chunks/UiBadge.js +1 -1
  65. package/vue/chunks/UiButton.js +1 -1
  66. package/vue/chunks/UiCard.js +2 -2
  67. package/vue/chunks/UiColorPicker.js +60 -11
  68. package/vue/chunks/UiDialog.js +1 -1
  69. package/vue/chunks/UiIcon.js +5 -1
  70. package/vue/chunks/UiIconButton.js +1 -1
  71. package/vue/chunks/UiMenu.js +1 -1
  72. package/vue/chunks/UiNumberInput.js +31 -2
  73. package/vue/chunks/UiPopover.js +1 -1
  74. package/vue/chunks/UiSlider.js +33 -2
  75. package/vue/chunks/UiTooltip.js +1 -1
  76. package/vue/chunks/UiTreeItem.js +3 -3
  77. package/vue/components.css +457 -84
  78. package/vue/editor/index.js +4 -0
  79. package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +0 -9
  80. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +0 -1
  81. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +0 -81
  82. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +0 -24
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" }], "monitor": [{ "tag": "rect", "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }, { "tag": "line", "x1": "8", "x2": "16", "y1": "21", "y2": "21" }, { "tag": "line", "x1": "12", "x2": "12", "y1": "17", "y2": "21" }], "moon": [{ "tag": "path", "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }], "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" }], "sun": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "4" }, { "tag": "path", "d": "M12 2v2" }, { "tag": "path", "d": "M12 20v2" }, { "tag": "path", "d": "m4.93 4.93 1.41 1.41" }, { "tag": "path", "d": "m17.66 17.66 1.41 1.41" }, { "tag": "path", "d": "M2 12h2" }, { "tag": "path", "d": "M20 12h2" }, { "tag": "path", "d": "m6.34 17.66-1.41 1.41" }, { "tag": "path", "d": "m19.07 4.93-1.41 1.41" }], "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" }], "monitor": [{ "tag": "rect", "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }, { "tag": "line", "x1": "8", "x2": "16", "y1": "21", "y2": "21" }, { "tag": "line", "x1": "12", "x2": "12", "y1": "17", "y2": "21" }], "moon": [{ "tag": "path", "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }], "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" }], "slash": [{ "tag": "path", "d": "M22 2 2 22" }], "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" }], "sun": [{ "tag": "circle", "cx": "12", "cy": "12", "r": "4" }, { "tag": "path", "d": "M12 2v2" }, { "tag": "path", "d": "M12 20v2" }, { "tag": "path", "d": "m4.93 4.93 1.41 1.41" }, { "tag": "path", "d": "m17.66 17.66 1.41 1.41" }, { "tag": "path", "d": "M2 12h2" }, { "tag": "path", "d": "M20 12h2" }, { "tag": "path", "d": "m6.34 17.66-1.41 1.41" }, { "tag": "path", "d": "m19.07 4.93-1.41 1.41" }], "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];
@@ -12,6 +12,7 @@ export interface UiNumberInputElement extends HTMLSpanElement {
12
12
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13
13
  }
14
14
  export interface UiNumberInputProps {
15
+ compact?: boolean | null;
15
16
  disabled?: boolean | null;
16
17
  label?: string | null;
17
18
  max?: number | null;
@@ -1,12 +1,12 @@
1
1
  // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, stateInitializers, buildTemplate, checkReference, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
2
+ import { attachGeneratedController, stateInitializers, buildTemplate, checkReference, NONCONFORMING, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-number-input/ui-number-input.js";
4
4
  import "../styles/ui-number-input.css";
5
5
 
6
6
  const T0 = ["",[],"\n ",["ui-icon-button",["data-number-step","decrease","match-button","","type","button"],["ui-icon",["name","minus"]]],"\n ",["ui-input",["data-ui-field-control","","inputmode","decimal","spellcheck","false","aria-description","Enter calculates arithmetic. Arrow keys step; Shift changes ten steps."]],"\n ",["ui-icon-button",["data-number-step","increase","match-button","","type","button"],["ui-icon",["name","plus"]]],"\n "];
7
7
  let P0;
8
8
  const S = { n: ["display"], t: ["s"], f: import.meta.url, g: "ui-number-input", 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-number-input", props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1000000, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":-1000000, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"0", c: checkString, t: "string", j: 0, m: "s" } } };
9
+ const D = { g: "ui-number-input", props: { "compact": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1000000, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":-1000000, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"0", c: checkString, t: "string", j: 0, m: "s" } } };
10
10
  const C = (host) => activateModule(controller, host);
11
11
 
12
12
  export function createUiNumberInput(options = {}, html) {
@@ -18,69 +18,79 @@ export function createUiNumberInput(options = {}, html) {
18
18
  }
19
19
  element.setAttribute("data-component", "ui-number-input");
20
20
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
- const v = [null, null, null, null, null, null, null, null, null, null];
21
+ const v = [null, null, null, null, null, null, null, null, null, null, null];
22
22
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
23
  const CS = [];
24
- const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "disabled", true); if (j === 2) return awaitInput(B, "label", true); if (j === 3) return awaitInput(B, "max", true); if (j === 4) return awaitInput(B, "min", true); if (j === 5) return awaitInput(B, "name", true); if (j === 6) return awaitInput(B, "size", true); if (j === 7) return awaitInput(B, "step", true); if (j === 8) return awaitInput(B, "unit", true); if (j === 9) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
24
+ const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "compact", true); if (j === 2) return awaitInput(B, "disabled", true); if (j === 3) return awaitInput(B, "label", true); if (j === 4) return awaitInput(B, "max", true); if (j === 5) return awaitInput(B, "min", true); if (j === 6) return awaitInput(B, "name", true); if (j === 7) return awaitInput(B, "size", true); if (j === 8) return awaitInput(B, "step", true); if (j === 9) return awaitInput(B, "unit", true); if (j === 10) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
25
25
  const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
26
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[9], inputStatus(9)) });
26
+ const E = stateInitializers(S, v, X, { 0: () => inputRead(v[10], inputStatus(10)) });
27
27
  const p0 = (r, c, d) => {
28
- if (c & 1073741888) {
29
- const x0 = v[6];
30
- const s0 = toAttribute(x0, "size");
31
- if (s0 !== r.v0) writeAttribute(r.a0, "size", r.v0 = s0);
32
- const s3 = toAttribute(x0, "size");
33
- if (s3 !== r.v3) writeAttribute(r.a1, "size", r.v3 = s3);
34
- const s8 = toAttribute(x0, "size");
35
- if (s8 !== r.v8) writeAttribute(r.a2, "size", r.v8 = s8);
36
- }
37
28
  if (c & 2) {
38
- const x1 = v[1];
39
- const s1 = toAttribute(x1, "disabled");
40
- if (s1 !== r.v1) writeAttribute(r.a0, "disabled", r.v1 = s1);
41
- const s4 = toAttribute(x1, "disabled");
42
- if (s4 !== r.v4) writeAttribute(r.a1, "disabled", r.v4 = s4);
43
- const s9 = toAttribute(x1, "disabled");
44
- if (s9 !== r.v9) writeAttribute(r.a2, "disabled", r.v9 = s9);
29
+ const x0 = v[1];
30
+ const s0 = toAttribute(x0, "hidden");
31
+ if (s0 !== r.v0) writeAttribute(r.a0, "hidden", r.v0 = s0);
32
+ const s9 = toAttribute(x0, "hidden");
33
+ if (s9 !== r.v9) writeAttribute(r.a2, "hidden", r.v9 = s9);
34
+ const x1 = hostState(["compact"], [v[1]]);
35
+ const s13 = x1;
36
+ if (s13 !== r.v13) writeAttribute(r.n, "data-ui-number-input-state", (r.v13 = s13) === "" ? null : s13);
37
+ }
38
+ if (c & 1073741952) {
39
+ const x2 = v[7];
40
+ const s1 = toAttribute(x2, "size");
41
+ if (s1 !== r.v1) writeAttribute(r.a0, "size", r.v1 = s1);
42
+ const s4 = toAttribute(x2, "size");
43
+ if (s4 !== r.v4) writeAttribute(r.a1, "size", r.v4 = s4);
44
+ const s10 = toAttribute(x2, "size");
45
+ if (s10 !== r.v10) writeAttribute(r.a2, "size", r.v10 = s10);
45
46
  }
46
47
  if (c & 4) {
47
- const x2 = textCall("concat", ["Decrease ", v[2]]);
48
- if (x2 !== NONCONFORMING) {
49
- const s2 = toAttribute(x2, "label");
50
- if (s2 !== r.v2) writeAttribute(r.a0, "label", r.v2 = s2);
48
+ const x3 = v[2];
49
+ const s2 = toAttribute(x3, "disabled");
50
+ if (s2 !== r.v2) writeAttribute(r.a0, "disabled", r.v2 = s2);
51
+ const s5 = toAttribute(x3, "disabled");
52
+ if (s5 !== r.v5) writeAttribute(r.a1, "disabled", r.v5 = s5);
53
+ const s11 = toAttribute(x3, "disabled");
54
+ if (s11 !== r.v11) writeAttribute(r.a2, "disabled", r.v11 = s11);
55
+ }
56
+ if (c & 8) {
57
+ const x4 = textCall("concat", ["Decrease ", v[3]]);
58
+ if (x4 !== NONCONFORMING) {
59
+ const s3 = toAttribute(x4, "label");
60
+ if (s3 !== r.v3) writeAttribute(r.a0, "label", r.v3 = s3);
51
61
  }
52
62
  }
53
63
  if (c & 1) {
54
- const x3 = (checkReference(S, v[0], "s", "expression:$display:display", "Reference `display` must satisfy string.") ? E.read(0) : NONCONFORMING);
55
- if (x3 !== NONCONFORMING) {
56
- const s5 = toAttribute(x3, "value");
57
- if (s5 !== r.v5) writeAttribute(r.a1, "value", r.v5 = s5);
64
+ const x5 = (checkReference(S, v[0], "s", "expression:$display:display", "Reference `display` must satisfy string.") ? E.read(0) : NONCONFORMING);
65
+ if (x5 !== NONCONFORMING) {
66
+ const s6 = toAttribute(x5, "value");
67
+ if (s6 !== r.v6) writeAttribute(r.a1, "value", r.v6 = s6);
58
68
  }
59
69
  }
60
- if (c & 4) {
61
- const x4 = v[2];
62
- const s6 = toAttribute(x4, "aria-label");
63
- if (s6 !== r.v6) writeAttribute(r.a1, "aria-label", r.v6 = s6);
64
- const x5 = textCall("concat", ["Increase ", v[2]]);
65
- if (x5 !== NONCONFORMING) {
66
- const s10 = toAttribute(x5, "label");
67
- if (s10 !== r.v10) writeAttribute(r.a2, "label", r.v10 = s10);
70
+ if (c & 8) {
71
+ const x6 = v[3];
72
+ const s7 = toAttribute(x6, "aria-label");
73
+ if (s7 !== r.v7) writeAttribute(r.a1, "aria-label", r.v7 = s7);
74
+ const x7 = textCall("concat", ["Increase ", v[3]]);
75
+ if (x7 !== NONCONFORMING) {
76
+ const s12 = toAttribute(x7, "label");
77
+ if (s12 !== r.v12) writeAttribute(r.a2, "label", r.v12 = s12);
68
78
  }
69
79
  }
70
- if (c & 32) {
71
- const x6 = v[5];
72
- const s7 = toAttribute(x6, "name");
73
- if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
80
+ if (c & 64) {
81
+ const x8 = v[6];
82
+ const s8 = toAttribute(x8, "name");
83
+ if (s8 !== r.v8) writeAttribute(r.a1, "name", r.v8 = s8);
74
84
  }
75
85
  };
76
86
  const t0 = element.firstChild.nextSibling;
77
87
  const t1 = t0.nextSibling.nextSibling;
78
88
  const t2 = t1.nextSibling.nextSibling;
79
- const R = { a0: t0, a1: t1, a2: t2, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null };
89
+ const R = { n: element, a0: t0, a1: t1, a2: t2, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: undefined };
80
90
  const I = { B, U: E };
81
91
  I.R = new Set();
82
92
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
83
93
  manageProps(I);
84
94
  return element;
85
95
  }
86
- defineComponent("ui-number-input", createUiNumberInput, ["disabled","label","max","min","name","size","step","unit","value"]);
96
+ defineComponent("ui-number-input", createUiNumberInput, ["compact","disabled","label","max","min","name","size","step","unit","value"]);
@@ -12,6 +12,7 @@ export interface UiSliderElement extends HTMLSpanElement {
12
12
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13
13
  }
14
14
  export interface UiSliderProps {
15
+ compact?: boolean | null;
15
16
  disabled?: boolean | null;
16
17
  label?: string | null;
17
18
  max?: number | null;
@@ -6,7 +6,7 @@ import "../styles/ui-slider.css";
6
6
  const T0 = ["",[],"\n ",["input",["type","range","data-ui-field-control",""]],"\n ",["ui-number-input",["data-slider-exact",""]],"\n "];
7
7
  let P0;
8
8
  const S = { n: ["current"], t: ["n"], f: import.meta.url, g: "ui-slider", d: { "input": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkNumber, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
9
- const D = { g: "ui-slider", props: { "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":100, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" } } };
9
+ const D = { g: "ui-slider", props: { "compact": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Value", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":100, c: checkNumber, t: "number", j: 0, m: "n" }, "min": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "step": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "unit": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" } } };
10
10
  const C = (host) => activateModule(controller, host);
11
11
 
12
12
  export function createUiSlider(options = {}, html) {
@@ -18,103 +18,111 @@ export function createUiSlider(options = {}, html) {
18
18
  }
19
19
  element.setAttribute("data-component", "ui-slider");
20
20
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
21
- const v = [null, null, null, null, null, null, null, null, null, null];
21
+ const v = [null, null, null, null, null, null, null, null, null, null, null];
22
22
  const B = acceptProps(element, D, S.n, v, componentProps, [], html);
23
23
  const CS = [];
24
- const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "disabled", true); if (j === 2) return awaitInput(B, "label", true); if (j === 3) return awaitInput(B, "max", true); if (j === 4) return awaitInput(B, "min", true); if (j === 5) return awaitInput(B, "name", true); if (j === 6) return awaitInput(B, "size", true); if (j === 7) return awaitInput(B, "step", true); if (j === 8) return awaitInput(B, "unit", true); if (j === 9) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
24
+ const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 1) return awaitInput(B, "compact", true); if (j === 2) return awaitInput(B, "disabled", true); if (j === 3) return awaitInput(B, "label", true); if (j === 4) return awaitInput(B, "max", true); if (j === 5) return awaitInput(B, "min", true); if (j === 6) return awaitInput(B, "name", true); if (j === 7) return awaitInput(B, "size", true); if (j === 8) return awaitInput(B, "step", true); if (j === 9) return awaitInput(B, "unit", true); if (j === 10) return awaitInput(B, "value", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
25
25
  const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
26
- const E = stateInitializers(S, v, X, { 0: () => inputRead(v[9], inputStatus(9)) });
26
+ const E = stateInitializers(S, v, X, { 0: () => inputRead(v[10], inputStatus(10)) });
27
27
  const p0 = (r, c, d) => {
28
- if (c & 4) {
29
- const x0 = v[2];
28
+ if (c & 8) {
29
+ const x0 = v[3];
30
30
  const s0 = toAttribute(x0, "aria-label");
31
31
  if (s0 !== r.v0) writeAttribute(r.a0, "aria-label", r.v0 = s0);
32
32
  }
33
- if (c & 257) {
34
- const x1 = (checkReference(S, v[0], "n", "expression:concat($current, $unit):current", "Reference `current` must satisfy number.") ? textCall("concat", [E.read(0), v[8]]) : NONCONFORMING);
33
+ if (c & 513) {
34
+ const x1 = (checkReference(S, v[0], "n", "expression:concat($current, $unit):current", "Reference `current` must satisfy number.") ? textCall("concat", [E.read(0), v[9]]) : NONCONFORMING);
35
35
  if (x1 !== NONCONFORMING) {
36
36
  const s1 = toAttribute(x1, "aria-valuetext");
37
37
  if (s1 !== r.v1) writeAttribute(r.a0, "aria-valuetext", r.v1 = s1);
38
38
  }
39
- if (x1 !== NONCONFORMING) {
40
- const s8 = toAttribute(x1, "value");
41
- if (s8 !== r.v8) writeAttribute(r.a1, "value", r.v8 = s8);
42
- }
43
39
  }
44
- if (c & 512) {
45
- const x2 = v[9];
40
+ if (c & 1024) {
41
+ const x2 = v[10];
46
42
  const s2 = toAttribute(x2, "value");
47
43
  if (s2 !== r.v2) writeAttribute(r.a0, "value", r.v2 = s2);
48
44
  }
49
- if (c & 16) {
50
- const x3 = v[4];
45
+ if (c & 32) {
46
+ const x3 = v[5];
51
47
  const s3 = toAttribute(x3, "min");
52
48
  if (s3 !== r.v3) writeAttribute(r.a0, "min", r.v3 = s3);
53
49
  }
54
- if (c & 8) {
55
- const x4 = v[3];
50
+ if (c & 16) {
51
+ const x4 = v[4];
56
52
  const s4 = toAttribute(x4, "max");
57
53
  if (s4 !== r.v4) writeAttribute(r.a0, "max", r.v4 = s4);
58
54
  }
59
- if (c & 128) {
60
- const x5 = v[7];
55
+ if (c & 256) {
56
+ const x5 = v[8];
61
57
  const s5 = toAttribute(x5, "step");
62
58
  if (s5 !== r.v5) writeAttribute(r.a0, "step", r.v5 = s5);
63
59
  }
64
- if (c & 2) {
65
- const x6 = v[1];
60
+ if (c & 4) {
61
+ const x6 = v[2];
66
62
  const s6 = toAttribute(x6, "disabled");
67
63
  if (s6 !== r.v6) writeAttribute(r.a0, "disabled", r.v6 = s6);
68
64
  }
69
- if (c & 32) {
70
- const x7 = v[5];
65
+ if (c & 64) {
66
+ const x7 = v[6];
71
67
  const s7 = toAttribute(x7, "name");
72
68
  if (s7 !== r.v7) writeAttribute(r.a0, "name", r.v7 = s7);
73
69
  }
74
- if (c & 256) {
75
- const x8 = v[8];
76
- const s9 = toAttribute(x8, "unit");
77
- if (s9 !== r.v9) writeAttribute(r.a1, "unit", r.v9 = s9);
70
+ if (c & 2) {
71
+ const x8 = v[1];
72
+ const s8 = toAttribute(x8, "compact");
73
+ if (s8 !== r.v8) writeAttribute(r.a1, "compact", r.v8 = s8);
74
+ }
75
+ if (c & 513) {
76
+ const x9 = (checkReference(S, v[0], "n", "expression:concat($current, $unit):current", "Reference `current` must satisfy number.") ? textCall("concat", [E.read(0), v[9]]) : NONCONFORMING);
77
+ if (x9 !== NONCONFORMING) {
78
+ const s9 = toAttribute(x9, "value");
79
+ if (s9 !== r.v9) writeAttribute(r.a1, "value", r.v9 = s9);
80
+ }
78
81
  }
79
- if (c & 16) {
80
- const x9 = v[4];
81
- const s10 = toAttribute(x9, "min");
82
- if (s10 !== r.v10) writeAttribute(r.a1, "min", r.v10 = s10);
82
+ if (c & 512) {
83
+ const x10 = v[9];
84
+ const s10 = toAttribute(x10, "unit");
85
+ if (s10 !== r.v10) writeAttribute(r.a1, "unit", r.v10 = s10);
83
86
  }
84
- if (c & 8) {
85
- const x10 = v[3];
86
- const s11 = toAttribute(x10, "max");
87
- if (s11 !== r.v11) writeAttribute(r.a1, "max", r.v11 = s11);
87
+ if (c & 32) {
88
+ const x11 = v[5];
89
+ const s11 = toAttribute(x11, "min");
90
+ if (s11 !== r.v11) writeAttribute(r.a1, "min", r.v11 = s11);
88
91
  }
89
- if (c & 128) {
90
- const x11 = v[7];
91
- const s12 = toAttribute(x11, "step");
92
- if (s12 !== r.v12) writeAttribute(r.a1, "step", r.v12 = s12);
92
+ if (c & 16) {
93
+ const x12 = v[4];
94
+ const s12 = toAttribute(x12, "max");
95
+ if (s12 !== r.v12) writeAttribute(r.a1, "max", r.v12 = s12);
93
96
  }
94
- if (c & 1073741888) {
95
- const x12 = v[6];
96
- const s13 = toAttribute(x12, "size");
97
- if (s13 !== r.v13) writeAttribute(r.a1, "size", r.v13 = s13);
97
+ if (c & 256) {
98
+ const x13 = v[8];
99
+ const s13 = toAttribute(x13, "step");
100
+ if (s13 !== r.v13) writeAttribute(r.a1, "step", r.v13 = s13);
98
101
  }
99
- if (c & 2) {
100
- const x13 = v[1];
101
- const s14 = toAttribute(x13, "disabled");
102
- if (s14 !== r.v14) writeAttribute(r.a1, "disabled", r.v14 = s14);
102
+ if (c & 1073741952) {
103
+ const x14 = v[7];
104
+ const s14 = toAttribute(x14, "size");
105
+ if (s14 !== r.v14) writeAttribute(r.a1, "size", r.v14 = s14);
103
106
  }
104
107
  if (c & 4) {
105
- const x14 = v[2];
106
- const s15 = toAttribute(x14, "label");
107
- if (s15 !== r.v15) writeAttribute(r.a1, "label", r.v15 = s15);
108
+ const x15 = v[2];
109
+ const s15 = toAttribute(x15, "disabled");
110
+ if (s15 !== r.v15) writeAttribute(r.a1, "disabled", r.v15 = s15);
108
111
  }
109
- if (c & 64) {
110
- const x15 = hostState(["size"], [v[6]]);
111
- const s16 = x15;
112
- if (s16 !== r.v16) writeAttribute(r.n, "data-ui-slider-state", (r.v16 = s16) === "" ? null : s16);
112
+ if (c & 8) {
113
+ const x16 = v[3];
114
+ const s16 = toAttribute(x16, "label");
115
+ if (s16 !== r.v16) writeAttribute(r.a1, "label", r.v16 = s16);
116
+ }
117
+ if (c & 130) {
118
+ const x17 = hostState(["compact","size"], [v[1], v[7]]);
119
+ const s17 = x17;
120
+ if (s17 !== r.v17) writeAttribute(r.n, "data-ui-slider-state", (r.v17 = s17) === "" ? null : s17);
113
121
  }
114
122
  };
115
123
  const t0 = element.firstChild.nextSibling;
116
124
  const t1 = t0.nextSibling.nextSibling;
117
- const R = { n: element, a0: t0, a1: t1, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: undefined };
125
+ const R = { n: element, a0: t0, a1: t1, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: undefined };
118
126
  const I = { B, U: E };
119
127
  I.R = new Set();
120
128
  attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
@@ -122,4 +130,4 @@ export function createUiSlider(options = {}, html) {
122
130
  I.r["range"] = t0;
123
131
  return element;
124
132
  }
125
- defineComponent("ui-slider", createUiSlider, ["disabled","label","max","min","name","size","step","unit","value"]);
133
+ defineComponent("ui-slider", createUiSlider, ["compact","disabled","label","max","min","name","size","step","unit","value"]);
@@ -177,7 +177,7 @@ export function createUiTreeItem(options = {}, html) {
177
177
  if (s15 !== r.v15) writeAttribute(r.a12, "hidden", r.v15 = s15);
178
178
  }
179
179
  if (c & 131400) {
180
- const x13 = hostState(["selected","disabled","actionsVisible","isContainer"], [v[17], v[8], v[6], v[3]]);
180
+ const x13 = hostState(["isContainer","selected","disabled","actionsVisible"], [v[3], v[17], v[8], v[6]]);
181
181
  const s16 = x13;
182
182
  if (s16 !== r.v16) writeAttribute(r.n, "data-ui-tree-item-state", (r.v16 = s16) === "" ? null : s16);
183
183
  }
package/vue/UiBadge.vue CHANGED
@@ -217,11 +217,11 @@ const hostState = computed(() =>
217
217
  /* A solid colour fills with the ink. Its text is the page surface, mixed at 0% only so that it too is
218
218
  invalid while the hook is unset. */
219
219
 
220
- /* A translucent inverse surface picks up its filled control's tone. Deepen the tone ink
221
- toward the theme text to retain contrast against that composed surface. */
220
+ /* The inverse ink opposes the tone's on-fill ink, independently of the document scheme.
221
+ A bright pigment can use dark on-fill ink even in a light document. */
222
222
 
223
- /* A circular count has a tone-tinted surface, a separate lighter rim and readable tone ink.
224
- Dark controls retain a shaded surface and theme ink with a quieter rim. */
223
+ /* A circular count retains its translucent surface and quiet rim. Bound the pigment
224
+ in its foreground so either on-fill polarity remains readable through that surface. */
225
225
 
226
226
  /* A count can keep its containing control's contrasting ink instead of reversing it.
227
227
  The faint fill preserves text contrast; a quiet boundary separates the count from its control. */
@@ -458,6 +458,7 @@ const hostState = computed(() =>
458
458
  --_badge-color-text: color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default));
459
459
  }
460
460
  :global(:scope[data-ui-badge-state~="variant=inverse"]:where([data-hn-ui-badge])) {
461
+ --_badge-inverse-ink: oklch(from var(--_badge-text) clamp(0, calc((0.5 - l) * 1000), 1) 0 h);
461
462
  --_badge-color-surface: color-mix(
462
463
  in srgb,
463
464
  color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default)) 88%,
@@ -477,7 +478,7 @@ const hostState = computed(() =>
477
478
  --ui-badge-text,
478
479
  var(
479
480
  --_badge-color-text,
480
- color-mix(in srgb, var(--_badge-surface) 85%, var(--ui-text-primary))
481
+ color-mix(in srgb, var(--_badge-surface) 85%, var(--_badge-inverse-ink))
481
482
  )
482
483
  );
483
484
  /* Paint each translucent layer once, including the border, without a bright double-painted ring. */
@@ -540,10 +541,7 @@ const hostState = computed(() =>
540
541
  --ui-badge-text,
541
542
  var(
542
543
  --_badge-color-text,
543
- light-dark(
544
- color-mix(in srgb, var(--_badge-surface) 65%, var(--ui-text-primary)),
545
- var(--ui-text-primary)
546
- )
544
+ color-mix(in srgb, var(--_badge-surface) 35%, var(--_badge-inverse-ink))
547
545
  )
548
546
  );
549
547
  box-shadow: 0 1px 1px light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.12));