@threadlabs/looma 0.44.5 → 0.45.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.
package/docs/card.html CHANGED
@@ -25,12 +25,12 @@
25
25
  <div $if="$resizable" class="preview-width"> <ui-form-field><label slot="label">Preview width</label><span slot="help">Explore the example at a narrower width.</span><ui-input $ref="width" type="number" min="240" max="1600" value="720" aria-label="Preview width in pixels" size="sm"></ui-input></ui-form-field></div>
26
26
  <div $if="not $reference and not $previewOnly" class="body"><ui-stack gap="xs">
27
27
  <div class="meta"><span>{$category}</span><code>{$nativeRoot}</code></div>
28
- <h3><a from:href="$href">{$title}</a></h3>
28
+ <h3><a class="destination" from:href="$href">{$title}</a></h3>
29
29
  <p class="description">{$description}</p>
30
30
  <p class="owner" $if="$packageName">{$packageName}</p>
31
31
  <p class="example-caption" $if="$exampleTitle">{$exampleTitle}</p>
32
32
 
33
- <footer><ui-button $if="$href" from:href="$href" variant="link" size="sm">View component</ui-button><ui-button $if="$removable" $ref="remove" variant="ghost" size="sm">Remove</ui-button><slot name="actions"></slot></footer>
33
+ <footer><span $if="$href" class="view-link">View component</span><div class="secondary-actions"><ui-button $if="$removable" $ref="remove" variant="ghost" size="sm">Remove</ui-button><slot name="actions"></slot></div></footer>
34
34
  </ui-stack></div>
35
35
  </article>
36
36
  <style>
@@ -43,14 +43,11 @@
43
43
  border: var(--ui-border-width) solid var(--ui-border);
44
44
  border-radius: var(--ui-radius-lg);
45
45
  box-shadow: var(--ui-shadow-sm);
46
- transition: border-color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease), transform var(--ui-motion-fast) var(--ui-motion-ease);
47
46
  }
48
47
  :host([category="display"]) { --_card-accent: var(--ui-success); }
49
48
  :host([category="overlay"]) { --_card-accent: var(--ui-danger); }
50
49
  :host([category="layout"]) { --_card-accent: var(--ui-info); }
51
50
  :host([category="editor"]) { --_card-accent: var(--ui-warning); }
52
- :host:hover { border-color: color-mix(in srgb, var(--_card-accent) 45%, var(--ui-border)); box-shadow: var(--ui-shadow-md); transform: translateY(-2px); }
53
- :host([reference]):hover { transform: none; border-color: var(--ui-border); box-shadow: var(--ui-shadow-sm); }
54
51
  .example-heading { padding: var(--ui-space-5) !important; border-block-end: var(--ui-border-width) solid var(--ui-border); }
55
52
  .example-code { padding: var(--ui-space-5) !important; border-block-start: var(--ui-border-width) solid var(--ui-border); }
56
53
  .example-code h4 { margin: 0 0 var(--ui-space-3) !important; font-size: var(--ui-font-size-md); }
@@ -62,7 +59,14 @@
62
59
  .stage { inline-size: var(--_preview-width, 100%); max-inline-size: 100%; min-inline-size: 0; }
63
60
  footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--ui-space-2) !important; }
64
61
  .preview-width { padding: var(--ui-space-4) !important; }
65
- .body { padding: var(--ui-space-5) !important; }
62
+ .body { position: relative; isolation: isolate; padding: var(--ui-space-5) !important; background: var(--ui-surface-raised); transition: background-color var(--ui-motion-fast) var(--ui-motion-ease); }
63
+ .body:has(.destination[href]:hover), .body:has(.destination[href]:focus-visible) { background: var(--ui-accent-subtle); }
64
+ .body:has(.destination[href]:active) { background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-surface-raised)); }
65
+ .destination[href]::after { position: absolute; inset: 0; z-index: 1; content: ""; cursor: pointer; }
66
+ .destination:focus-visible { outline: none; }
67
+ .destination:focus-visible::after { outline: var(--ui-focus-width) solid var(--ui-focus-ring); outline-offset: calc(-1 * var(--ui-focus-width)); }
68
+ .view-link { color: var(--ui-link-color); font-size: var(--ui-font-size-sm); font-weight: var(--ui-font-semibold); text-decoration: underline; text-underline-offset: .2em; }
69
+ .secondary-actions { position: relative; z-index: 2; display: flex !important; align-items: center !important; gap: var(--ui-space-2) !important; }
66
70
  .meta { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--ui-space-2) !important; margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); font-weight: var(--ui-font-bold); letter-spacing: .09em; text-transform: uppercase; }
67
71
  .meta code { padding: 0 !important; background: transparent; color: inherit; text-transform: none; }
68
72
  h3 { margin: 0 !important; padding: 0 !important; font-size: var(--ui-font-size-lg); letter-spacing: -.035em; }
@@ -70,6 +74,6 @@
70
74
  .description { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-sm); line-height: var(--ui-line-height); }
71
75
  .owner { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); overflow-wrap: anywhere; }
72
76
  .example-caption { margin: 0 !important; color: var(--ui-text-secondary); font-size: var(--ui-font-size-xs); }
73
- @media (prefers-reduced-motion: reduce) { :host { transition: none; } :host:hover { transform: none; } }
77
+ @media (prefers-reduced-motion: reduce) { .body { transition: none; } }
74
78
  </style>
75
79
  </template>
package/docs/catalog.json CHANGED
@@ -463,7 +463,7 @@
463
463
  ],
464
464
  "schemaVersion": 1,
465
465
  "package": "@threadlabs/looma",
466
- "version": "0.44.5",
466
+ "version": "0.45.0",
467
467
  "groups": [
468
468
  {
469
469
  "id": "layout",
@@ -2261,6 +2261,7 @@
2261
2261
  "var(--ui-info-highlight, none)"
2262
2262
  ],
2263
2263
  "fallbacks": [
2264
+ "var(--ui-surface-highlight, linear-gradient(transparent, transparent))",
2264
2265
  "none"
2265
2266
  ]
2266
2267
  }
@@ -9784,7 +9785,8 @@
9784
9785
  "var(--ui-neutral-highlight, none)"
9785
9786
  ],
9786
9787
  "fallbacks": [
9787
- "none"
9788
+ "none",
9789
+ "var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
9788
9790
  ]
9789
9791
  }
9790
9792
  ],
@@ -17971,7 +17973,7 @@
17971
17973
  "tag": "ui-site-header",
17972
17974
  "package": "@threadlabs/looma",
17973
17975
  "root": "header",
17974
- "description": "A site-wide header with branding, primary navigation, actions, and a mobile menu trigger. Branding remains visible when navigation collapses. Applications supply links, routing, and menu behavior; use TopBar for contextual application tools.",
17976
+ "description": "Supply brand, navigation, and optional actions once. Below the breakpoint, SiteHeader automatically adds a hamburger to the right of the logo (mirrored in RTL) and presents the same navigation in a full-height, scrollable drawer with a dark backdrop. It handles focus, Escape, outside press, link selection, and page scroll locking. Applications supply links and routing; no menu slot, duplicate links, IDs, or drawer wiring are needed. Before JavaScript, navigation remains available inline. Use TopBar for contextual application tools.",
17975
17977
  "designTokens": {
17976
17978
  "sources": [
17977
17979
  "packages/looma/src/components/ui-site-header/ui-site-header.html"
@@ -17995,6 +17997,12 @@
17995
17997
  "4.25rem"
17996
17998
  ]
17997
17999
  },
18000
+ {
18001
+ "name": "--ui-site-header-navigation-width",
18002
+ "fallbacks": [
18003
+ "280px"
18004
+ ]
18005
+ },
17998
18006
  {
17999
18007
  "name": "--ui-site-header-padding-inline",
18000
18008
  "fallbacks": [
@@ -18018,12 +18026,21 @@
18018
18026
  {
18019
18027
  "name": "--ui-border"
18020
18028
  },
18029
+ {
18030
+ "name": "--ui-border-divider"
18031
+ },
18021
18032
  {
18022
18033
  "name": "--ui-border-width"
18023
18034
  },
18024
18035
  {
18025
18036
  "name": "--ui-control-min-block-size"
18026
18037
  },
18038
+ {
18039
+ "name": "--ui-elevation-overlay",
18040
+ "fallbacks": [
18041
+ "var(--ui-shadow-lg)"
18042
+ ]
18043
+ },
18027
18044
  {
18028
18045
  "name": "--ui-focus-ring"
18029
18046
  },
@@ -18033,6 +18050,9 @@
18033
18050
  {
18034
18051
  "name": "--ui-font-bold"
18035
18052
  },
18053
+ {
18054
+ "name": "--ui-font-normal"
18055
+ },
18036
18056
  {
18037
18057
  "name": "--ui-font-semibold"
18038
18058
  },
@@ -18042,9 +18062,45 @@
18042
18062
  {
18043
18063
  "name": "--ui-font-size-sm"
18044
18064
  },
18065
+ {
18066
+ "name": "--ui-line-height-tight"
18067
+ },
18045
18068
  {
18046
18069
  "name": "--ui-link-color"
18047
18070
  },
18071
+ {
18072
+ "name": "--ui-motion-reveal"
18073
+ },
18074
+ {
18075
+ "name": "--ui-motion-reveal-ease"
18076
+ },
18077
+ {
18078
+ "name": "--ui-overlay-backdrop",
18079
+ "fallbacks": [
18080
+ "rgb(0 0 0 / 0.32)"
18081
+ ]
18082
+ },
18083
+ {
18084
+ "name": "--ui-overlay-border",
18085
+ "fallbacks": [
18086
+ "var(--ui-border-divider)"
18087
+ ]
18088
+ },
18089
+ {
18090
+ "name": "--ui-overlay-surface",
18091
+ "fallbacks": [
18092
+ "var(--ui-surface-elevated)"
18093
+ ]
18094
+ },
18095
+ {
18096
+ "name": "--ui-scroll-fade-size",
18097
+ "fallbacks": [
18098
+ "24px"
18099
+ ]
18100
+ },
18101
+ {
18102
+ "name": "--ui-shadow-lg"
18103
+ },
18048
18104
  {
18049
18105
  "name": "--ui-space-2"
18050
18106
  },
@@ -18063,6 +18119,9 @@
18063
18119
  {
18064
18120
  "name": "--ui-surface"
18065
18121
  },
18122
+ {
18123
+ "name": "--ui-surface-elevated"
18124
+ },
18066
18125
  {
18067
18126
  "name": "--ui-text-primary"
18068
18127
  }
@@ -18072,7 +18131,7 @@
18072
18131
  {
18073
18132
  "name": "breakpoint",
18074
18133
  "property": "breakpoint",
18075
- "description": "The viewport width at which navigation replaces the menu trigger: sm is 40rem, md 48rem, and lg 64rem. The consumer owns the menu or drawer the trigger opens.",
18134
+ "description": "The viewport width at which navigation changes from an automatic mobile drawer to inline links: sm is 40rem, md 48rem, and lg 64rem.",
18076
18135
  "type": "keyword",
18077
18136
  "default": "lg",
18078
18137
  "options": [
@@ -18081,6 +18140,13 @@
18081
18140
  "lg"
18082
18141
  ]
18083
18142
  },
18143
+ {
18144
+ "name": "close-label",
18145
+ "property": "closeLabel",
18146
+ "description": "Accessible name of the drawer's close button.",
18147
+ "type": "string",
18148
+ "default": "Close navigation"
18149
+ },
18084
18150
  {
18085
18151
  "name": "label",
18086
18152
  "property": "label",
@@ -18088,6 +18154,13 @@
18088
18154
  "type": "string",
18089
18155
  "default": "Main"
18090
18156
  },
18157
+ {
18158
+ "name": "menu-label",
18159
+ "property": "menuLabel",
18160
+ "description": "Accessible name of the automatic mobile menu button.",
18161
+ "type": "string",
18162
+ "default": "Open navigation"
18163
+ },
18091
18164
  {
18092
18165
  "name": "sticky",
18093
18166
  "property": "sticky",
@@ -18099,7 +18172,7 @@
18099
18172
  "properties": [
18100
18173
  {
18101
18174
  "name": "breakpoint",
18102
- "description": "The viewport width at which navigation replaces the menu trigger: sm is 40rem, md 48rem, and lg 64rem. The consumer owns the menu or drawer the trigger opens.",
18175
+ "description": "The viewport width at which navigation changes from an automatic mobile drawer to inline links: sm is 40rem, md 48rem, and lg 64rem.",
18103
18176
  "type": "\"sm\" | \"md\" | \"lg\"",
18104
18177
  "default": "lg",
18105
18178
  "options": [
@@ -18108,12 +18181,24 @@
18108
18181
  "lg"
18109
18182
  ]
18110
18183
  },
18184
+ {
18185
+ "name": "closeLabel",
18186
+ "description": "Accessible name of the drawer's close button.",
18187
+ "type": "string",
18188
+ "default": "Close navigation"
18189
+ },
18111
18190
  {
18112
18191
  "name": "label",
18113
18192
  "description": "Accessible name for the primary navigation region.",
18114
18193
  "type": "string",
18115
18194
  "default": "Main"
18116
18195
  },
18196
+ {
18197
+ "name": "menuLabel",
18198
+ "description": "Accessible name of the automatic mobile menu button.",
18199
+ "type": "string",
18200
+ "default": "Open navigation"
18201
+ },
18117
18202
  {
18118
18203
  "name": "sticky",
18119
18204
  "description": "Keeps the header at the top of its scrolling container.",
@@ -18123,14 +18208,14 @@
18123
18208
  ],
18124
18209
  "events": [],
18125
18210
  "slots": [
18126
- {
18127
- "name": "menu",
18128
- "description": "Named content for the menu region."
18129
- },
18130
18211
  {
18131
18212
  "name": "brand",
18132
18213
  "description": "Named content for the brand region."
18133
18214
  },
18215
+ {
18216
+ "name": "menu",
18217
+ "description": "Named content for the menu region."
18218
+ },
18134
18219
  {
18135
18220
  "name": "navigation",
18136
18221
  "description": "Named content for the navigation region."
@@ -18140,7 +18225,7 @@
18140
18225
  "description": "Named content for the actions region."
18141
18226
  }
18142
18227
  ],
18143
- "summary": "Site branding, primary navigation, and actions with a mobile menu.",
18228
+ "summary": "Site branding and navigation with an automatic mobile drawer.",
18144
18229
  "group": "display",
18145
18230
  "id": "@threadlabs/looma/ui-site-header",
18146
18231
  "title": "Site Header",
@@ -18154,8 +18239,8 @@
18154
18239
  "id": "@threadlabs/looma/ui-site-header/00-preview",
18155
18240
  "name": "00-preview",
18156
18241
  "title": "Compact header",
18157
- "description": "Branding and a trailing action in a compact header.",
18158
- "markup": "<ui-site-header><a slot=\"brand\" href=\"#home\"><ui-icon name=\"compass\"></ui-icon>Folio</a><ui-icon-button slot=\"actions\" label=\"Search\" size=\"sm\"><ui-icon\n name=\"search\"\n ></ui-icon></ui-icon-button></ui-site-header>",
18242
+ "description": "Branding, navigation, and an action. On mobile, the header supplies the menu automatically.",
18243
+ "markup": "<ui-site-header><a slot=\"brand\" href=\"#home\"><ui-icon name=\"compass\"></ui-icon>Folio</a><a slot=\"navigation\" href=\"#guide\">Guide</a><a\n slot=\"navigation\"\n href=\"#components\"\n >Components</a><ui-icon-button slot=\"actions\" label=\"Search\" size=\"sm\"><ui-icon name=\"search\"></ui-icon></ui-icon-button></ui-site-header>",
18159
18244
  "resizable": false,
18160
18245
  "bindings": "",
18161
18246
  "frameworks": {}
@@ -18164,8 +18249,8 @@
18164
18249
  "id": "@threadlabs/looma/ui-site-header/01-default",
18165
18250
  "name": "01-default",
18166
18251
  "title": "Site navigation",
18167
- "description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. On mobile, the navigation moves into the menu. Pass actions individually so the header can reserve space for their adjustable hit areas.",
18168
- "markup": "<ui-site-header>\n <a slot=\"brand\" href=\"#home\" aria-label=\"Folio home\"><ui-icon name=\"compass\"></ui-icon>Folio</a>\n <a slot=\"navigation\" href=\"#guide\" aria-current=\"page\">Guide</a>\n <a slot=\"navigation\" href=\"#components\">Components</a>\n <a slot=\"navigation\" href=\"#journal\">Journal</a>\n <ui-icon-button id=\"site-header-menu-trigger\" slot=\"menu\" size=\"sm\" label=\"Open navigation\"><ui-icon name=\"panel-left\"></ui-icon></ui-icon-button>\n <ui-icon-button slot=\"actions\" id=\"site-header-search-trigger\" size=\"sm\" label=\"Search pages\"><ui-icon name=\"search\"></ui-icon></ui-icon-button>\n <ui-icon-button slot=\"actions\" id=\"site-header-account-trigger\" size=\"sm\" label=\"Account\"><ui-icon name=\"user-round\"></ui-icon></ui-icon-button>\n</ui-site-header>\n<ui-popover for=\"site-header-menu-trigger\"><nav aria-label=\"Compact navigation\">\n <ui-stack gap=\"s\"><a href=\"#guide\" aria-current=\"page\">Guide</a><a href=\"#components\">Components</a><a href=\"#journal\">Journal</a></ui-stack>\n </nav></ui-popover>\n<ui-popover for=\"site-header-search-trigger\"><ui-form-field>\n <label slot=\"label\" for=\"site-header-search\">Search pages</label><ui-input id=\"site-header-search\" type=\"search\" placeholder=\"Find a page\"></ui-input>\n </ui-form-field></ui-popover>\n<ui-popover for=\"site-header-account-trigger\"><nav aria-label=\"Account\">\n <ui-stack gap=\"s\"><a href=\"#profile\">Your profile</a><a href=\"#settings\">Settings</a></ui-stack>\n </nav></ui-popover>",
18252
+ "description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. Below 64rem, the header automatically supplies a hamburger beside the logo and opens the same navigation in a full-height, scrollable drawer with a dark backdrop. No menu trigger, duplicate links, IDs, or event wiring are needed. Pass actions individually so the header reserves their adjustable hit areas.",
18253
+ "markup": "<ui-site-header>\n <a slot=\"brand\" href=\"#home\" aria-label=\"Folio home\"><ui-icon name=\"compass\"></ui-icon>Folio</a>\n <a slot=\"navigation\" href=\"#guide\" aria-current=\"page\">Guide</a>\n <a slot=\"navigation\" href=\"#components\">Components</a>\n <a slot=\"navigation\" href=\"#journal\">Journal</a>\n <ui-icon-button slot=\"actions\" id=\"site-header-search-trigger\" size=\"sm\" label=\"Search pages\"><ui-icon name=\"search\"></ui-icon></ui-icon-button>\n <ui-icon-button slot=\"actions\" id=\"site-header-account-trigger\" size=\"sm\" label=\"Account\"><ui-icon name=\"user-round\"></ui-icon></ui-icon-button>\n</ui-site-header>\n<ui-popover for=\"site-header-search-trigger\"><ui-form-field>\n <label slot=\"label\" for=\"site-header-search\">Search pages</label><ui-input id=\"site-header-search\" type=\"search\" placeholder=\"Find a page\"></ui-input>\n </ui-form-field></ui-popover>\n<ui-popover for=\"site-header-account-trigger\"><nav aria-label=\"Account\">\n <ui-stack gap=\"s\"><a href=\"#profile\">Your profile</a><a href=\"#settings\">Settings</a></ui-stack>\n </nav></ui-popover>",
18169
18254
  "resizable": false,
18170
18255
  "bindings": "",
18171
18256
  "frameworks": {}
package/editor/icons.d.ts CHANGED
@@ -52,6 +52,7 @@ export declare const LOOMA_ICONS: {
52
52
  'list-todo': IconNode;
53
53
  lightbulb: IconNode;
54
54
  loader: IconNode;
55
+ menu: IconNode;
55
56
  merge: IconNode;
56
57
  'message-square-warning': IconNode;
57
58
  'notebook-pen': IconNode;
package/editor/index.js CHANGED
@@ -2,7 +2,7 @@ import { n as TABLE_CELL_BACKGROUND_PRESETS, t as TABLE_CELL_BACKGROUND_OPTIONS
2
2
  import { n as resolveTableCellAt, t as measureTableOverlayGeometry } from "./chunks/ui.js";
3
3
  import { $ as LOOMA_ACTIVE_BLOCK_BLUR_GRACE_MS, A as filterLoomaMentionItems, B as LOOMA_FOOTNOTE_LABEL, C as loomaMarkdownToHtml, D as createLoomaMentionExtension, E as LoomaMentionSuggestionPluginKey, F as LoomaTableOfContents, G as LoomaFigcaption, H as LoomaFootnoteReference, I as getTableOfContentsEntries, J as revealLoomaExpandAt, K as LoomaFigure, L as normalizeTableOfContentsConfig, M as LoomaImage, N as normalizeImageDimension, O as DEFAULT_MENTION_RESULT_LIMIT, P as normalizeImagePlacement, Q as LoomaCallout, R as LoomaTab, S as loomaMarkdownFromDoc, T as siteRelativeHref, U as LoomaFootnotes, V as LoomaFootnote, W as findLoomaFootnote, X as LoomaChip, Y as LOOMA_CHIP_COLORS, Z as normalizeLoomaChipColor, _ as getActiveTableCellAlignment, a as getActiveTableUiState, b as setActiveTableCellBackground, c as insertTableAtRange, d as LoomaTableKit, et as LOOMA_ACTIVE_BLOCK_CLASS, f as getDefaultEditorExtensions, g as LoomaTableHeader, h as LoomaTableCell, i as getDefaultSlashCommands, j as normalizeMentionResultLimit, k as MAX_MENTION_RESULT_LIMIT, l as normalizeActiveTableColumnWidths, m as LoomaTable, n as createLoomaSlashCommandExtension, nt as LoomaActiveBlock, o as handleTableAction, p as getLoomaTableExtensions, q as LoomaExpand, r as filterLoomaSlashCommands, rt as LoomaActiveBlockPluginKey, s as handleTableOverlayAction, t as LoomaSlashCommand, tt as LOOMA_ACTIVE_BLOCK_TYPING_IDLE_MS, u as shouldShowTextFormattingToolbar, v as getActiveTableCellBackground, w as createSiteRelativeLinks, x as LoomaSmartPaste, y as setActiveTableCellAlignment, z as LoomaTabs } from "./chunks/extensions.js";
4
4
  import { a as setReferenceDisplay, i as referenceDisplay, n as LoomaReferencePresentation, o as LOOMA_CALLOUT_TONES, r as getReferenceDisplay, t as LoomaReference } from "./chunks/reference-display.js";
5
- import { AlignCenter, AlignLeft, AlignRight, ArrowLeft, Bell, Bold, BookUser, Braces, Calculator, Check, ChevronDown, ChevronLeft, ChevronRight, CircleCheck, CircleDot, CircleQuestionMark, CircleX, CodeXml, Columns3, Compass, CreditCard, Ellipsis, Eraser, ExternalLink, FileText, Folder, GripHorizontal, GripVertical, Heading1, Heading2, Heading3, Highlighter, History, Image, Info, Italic, LayoutDashboard, Lightbulb, Link, List, ListOrdered, ListTodo, LoaderCircle, Merge, MessageSquareWarning, Minus, Monitor, Moon, NotebookPen, PaintBucket, PanelBottom, PanelLeft, PanelRight, PanelTop, Paperclip, Pencil, Pilcrow, Plus, Quote, Receipt, Redo2, Rows3, Search, Settings, Slash, Split, Strikethrough, Sun, Superscript, Table2, Tag, Trash2, TriangleAlert, Truck, Underline, Undo2, Unlink, UserRound, Users, X } from "lucide";
5
+ import { AlignCenter, AlignLeft, AlignRight, ArrowLeft, Bell, Bold, BookUser, Braces, Calculator, Check, ChevronDown, ChevronLeft, ChevronRight, CircleCheck, CircleDot, CircleQuestionMark, CircleX, CodeXml, Columns3, Compass, CreditCard, Ellipsis, Eraser, ExternalLink, FileText, Folder, GripHorizontal, GripVertical, Heading1, Heading2, Heading3, Highlighter, History, Image, Info, Italic, LayoutDashboard, Lightbulb, Link, List, ListOrdered, ListTodo, LoaderCircle, Menu, Merge, MessageSquareWarning, Minus, Monitor, Moon, NotebookPen, PaintBucket, PanelBottom, PanelLeft, PanelRight, PanelTop, Paperclip, Pencil, Pilcrow, Plus, Quote, Receipt, Redo2, Rows3, Search, Settings, Slash, Split, Strikethrough, Sun, Superscript, Table2, Tag, Trash2, TriangleAlert, Truck, Underline, Undo2, Unlink, UserRound, Users, X } from "lucide";
6
6
  //#region src/editor/icons.ts
7
7
  /** The opinionated Lucide set used by Looma's shipped interaction surfaces. */
8
8
  var LOOMA_ICONS = {
@@ -57,6 +57,7 @@ var LOOMA_ICONS = {
57
57
  "list-todo": ListTodo,
58
58
  lightbulb: Lightbulb,
59
59
  loader: LoaderCircle,
60
+ menu: Menu,
60
61
  merge: Merge,
61
62
  "message-square-warning": MessageSquareWarning,
62
63
  "notebook-pen": NotebookPen,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.44.5",
3
+ "version": "0.45.0",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -209,16 +209,18 @@
209
209
  }
210
210
 
211
211
  :scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
212
+ --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
212
213
  --_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
213
214
  border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
214
215
  background-color: var(--ui-button-surface, transparent);
215
216
  box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
216
217
  background-image:
217
218
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
218
- var(--ui-surface-highlight, linear-gradient(transparent, transparent));
219
+ var(--_outline-highlight);
219
220
  }
220
221
 
221
222
  :scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
223
+ --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
222
224
  --_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
223
225
  background-color: var(--ui-button-hover-surface, transparent);
224
226
  border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
@@ -374,15 +374,17 @@
374
374
  }
375
375
 
376
376
  :scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
377
+ --_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
377
378
  --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
378
379
  border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
379
380
  background-color: var(--ui-icon-button-outline-surface, transparent);
380
381
  background-image:
381
382
  linear-gradient(var(--_outline-wash), var(--_outline-wash)),
382
- var(--ui-surface-highlight, linear-gradient(transparent, transparent));
383
+ var(--_outline-highlight);
383
384
  }
384
385
 
385
386
  :scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
387
+ --_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
386
388
  --_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
387
389
  background-color: var(--ui-icon-button-hover-surface, transparent);
388
390
  border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));