@threadlabs/looma 0.44.6 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/catalog.json CHANGED
@@ -463,7 +463,7 @@
463
463
  ],
464
464
  "schemaVersion": 1,
465
465
  "package": "@threadlabs/looma",
466
- "version": "0.44.6",
466
+ "version": "0.45.1",
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
  ],
@@ -16877,7 +16879,7 @@
16877
16879
  "tag": "ui-section",
16878
16880
  "package": "@threadlabs/looma",
16879
16881
  "root": "section",
16880
- "description": "A part of a view: an `h2` `heading`, an optional `description`, `actions` for the whole section, and its content. `variant=\"card\"` sets it on a bordered surface, for a settings group; `variant=\"divided\"` rules it off from the section before, for a long form; `tone=\"danger\"` marks destructive actions. Space sections with a Stack.",
16882
+ "description": "A part of a view: an `h2` `heading`, an optional `description`, `actions` for the whole section, and its content. `variant=\"fieldset\"` joins the heading to a rounded frame with a native legend, for a named settings group. Its description and actions stay inside the frame; long headings wrap without covering the content. `variant=\"card\"` sets it on a bordered surface; `variant=\"divided\"` rules it off from the section before, for a long form; `tone=\"danger\"` marks destructive actions. A fieldset is announced as a group named by its legend. Use `aria-label` when omitting the heading. Space sections with a Stack.",
16881
16883
  "designTokens": {
16882
16884
  "sources": [
16883
16885
  "packages/looma/src/components/ui-section/ui-section.html"
@@ -16920,6 +16922,9 @@
16920
16922
  {
16921
16923
  "name": "--ui-font-size-lg"
16922
16924
  },
16925
+ {
16926
+ "name": "--ui-font-size-md"
16927
+ },
16923
16928
  {
16924
16929
  "name": "--ui-font-size-sm"
16925
16930
  },
@@ -16969,7 +16974,7 @@
16969
16974
  {
16970
16975
  "name": "tone",
16971
16976
  "property": "tone",
16972
- "description": "danger marks a section of destructive actions (a danger zone): its heading and a card's border take the danger colour.",
16977
+ "description": "danger marks a section of destructive actions (a danger zone): its heading and a framed section's border take the danger colour.",
16973
16978
  "type": "keyword",
16974
16979
  "default": "neutral",
16975
16980
  "options": [
@@ -16980,13 +16985,14 @@
16980
16985
  {
16981
16986
  "name": "variant",
16982
16987
  "property": "variant",
16983
- "description": "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided rules it off from the section before it, for a long form.",
16988
+ "description": "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided rules it off from the section before it, for a long form. fieldset joins the heading to a bordered frame using a native legend.",
16984
16989
  "type": "keyword",
16985
16990
  "default": "plain",
16986
16991
  "options": [
16987
16992
  "plain",
16988
16993
  "card",
16989
- "divided"
16994
+ "divided",
16995
+ "fieldset"
16990
16996
  ]
16991
16997
  }
16992
16998
  ],
@@ -16999,7 +17005,7 @@
16999
17005
  },
17000
17006
  {
17001
17007
  "name": "tone",
17002
- "description": "danger marks a section of destructive actions (a danger zone): its heading and a card's border take the danger colour.",
17008
+ "description": "danger marks a section of destructive actions (a danger zone): its heading and a framed section's border take the danger colour.",
17003
17009
  "type": "\"neutral\" | \"danger\"",
17004
17010
  "default": "neutral",
17005
17011
  "options": [
@@ -17009,13 +17015,14 @@
17009
17015
  },
17010
17016
  {
17011
17017
  "name": "variant",
17012
- "description": "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided rules it off from the section before it, for a long form.",
17013
- "type": "\"plain\" | \"card\" | \"divided\"",
17018
+ "description": "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided rules it off from the section before it, for a long form. fieldset joins the heading to a bordered frame using a native legend.",
17019
+ "type": "\"plain\" | \"card\" | \"divided\" | \"fieldset\"",
17014
17020
  "default": "plain",
17015
17021
  "options": [
17016
17022
  "plain",
17017
17023
  "card",
17018
- "divided"
17024
+ "divided",
17025
+ "fieldset"
17019
17026
  ]
17020
17027
  }
17021
17028
  ],
@@ -17063,6 +17070,16 @@
17063
17070
  "resizable": false,
17064
17071
  "bindings": "",
17065
17072
  "frameworks": {}
17073
+ },
17074
+ {
17075
+ "id": "@threadlabs/looma/ui-section/03-fieldset",
17076
+ "name": "03-fieldset",
17077
+ "title": "Connected headings",
17078
+ "description": "A native legend joins the heading to the frame. Descriptions, actions and fields stay comfortably inside it, including with long titles on narrow screens.",
17079
+ "markup": "<ui-stack gap=\"l\">\n <ui-section heading=\"Profile and preferences\" variant=\"fieldset\">\n <span slot=\"description\">The details people see when you work together.</span>\n <ui-form-field>\n <label slot=\"label\" for=\"profile-name\">Display name</label>\n <ui-input id=\"profile-name\" value=\"Ada Lovelace\"></ui-input>\n </ui-form-field>\n <ui-button slot=\"actions\" variant=\"outline\" tone=\"accent\" size=\"sm\">Reset</ui-button>\n </ui-section>\n <ui-section heading=\"Notification preferences and shared workspace visibility\" variant=\"fieldset\">\n <ui-text>Choose when you hear about changes and which workspaces appear in your navigation.</ui-text>\n </ui-section>\n <ui-section heading=\"Delete account\" variant=\"fieldset\" tone=\"danger\">\n <span slot=\"description\">Permanently remove this account and its saved preferences.</span>\n <ui-button variant=\"outline\" tone=\"danger\">Delete account</ui-button>\n </ui-section>\n</ui-stack>",
17080
+ "resizable": false,
17081
+ "bindings": "",
17082
+ "frameworks": {}
17066
17083
  }
17067
17084
  ]
17068
17085
  },
@@ -17971,7 +17988,7 @@
17971
17988
  "tag": "ui-site-header",
17972
17989
  "package": "@threadlabs/looma",
17973
17990
  "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.",
17991
+ "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
17992
  "designTokens": {
17976
17993
  "sources": [
17977
17994
  "packages/looma/src/components/ui-site-header/ui-site-header.html"
@@ -17995,6 +18012,12 @@
17995
18012
  "4.25rem"
17996
18013
  ]
17997
18014
  },
18015
+ {
18016
+ "name": "--ui-site-header-navigation-width",
18017
+ "fallbacks": [
18018
+ "280px"
18019
+ ]
18020
+ },
17998
18021
  {
17999
18022
  "name": "--ui-site-header-padding-inline",
18000
18023
  "fallbacks": [
@@ -18018,12 +18041,21 @@
18018
18041
  {
18019
18042
  "name": "--ui-border"
18020
18043
  },
18044
+ {
18045
+ "name": "--ui-border-divider"
18046
+ },
18021
18047
  {
18022
18048
  "name": "--ui-border-width"
18023
18049
  },
18024
18050
  {
18025
18051
  "name": "--ui-control-min-block-size"
18026
18052
  },
18053
+ {
18054
+ "name": "--ui-elevation-overlay",
18055
+ "fallbacks": [
18056
+ "var(--ui-shadow-lg)"
18057
+ ]
18058
+ },
18027
18059
  {
18028
18060
  "name": "--ui-focus-ring"
18029
18061
  },
@@ -18033,6 +18065,9 @@
18033
18065
  {
18034
18066
  "name": "--ui-font-bold"
18035
18067
  },
18068
+ {
18069
+ "name": "--ui-font-normal"
18070
+ },
18036
18071
  {
18037
18072
  "name": "--ui-font-semibold"
18038
18073
  },
@@ -18042,9 +18077,45 @@
18042
18077
  {
18043
18078
  "name": "--ui-font-size-sm"
18044
18079
  },
18080
+ {
18081
+ "name": "--ui-line-height-tight"
18082
+ },
18045
18083
  {
18046
18084
  "name": "--ui-link-color"
18047
18085
  },
18086
+ {
18087
+ "name": "--ui-motion-reveal"
18088
+ },
18089
+ {
18090
+ "name": "--ui-motion-reveal-ease"
18091
+ },
18092
+ {
18093
+ "name": "--ui-overlay-backdrop",
18094
+ "fallbacks": [
18095
+ "rgb(0 0 0 / 0.32)"
18096
+ ]
18097
+ },
18098
+ {
18099
+ "name": "--ui-overlay-border",
18100
+ "fallbacks": [
18101
+ "var(--ui-border-divider)"
18102
+ ]
18103
+ },
18104
+ {
18105
+ "name": "--ui-overlay-surface",
18106
+ "fallbacks": [
18107
+ "var(--ui-surface-elevated)"
18108
+ ]
18109
+ },
18110
+ {
18111
+ "name": "--ui-scroll-fade-size",
18112
+ "fallbacks": [
18113
+ "24px"
18114
+ ]
18115
+ },
18116
+ {
18117
+ "name": "--ui-shadow-lg"
18118
+ },
18048
18119
  {
18049
18120
  "name": "--ui-space-2"
18050
18121
  },
@@ -18063,6 +18134,9 @@
18063
18134
  {
18064
18135
  "name": "--ui-surface"
18065
18136
  },
18137
+ {
18138
+ "name": "--ui-surface-elevated"
18139
+ },
18066
18140
  {
18067
18141
  "name": "--ui-text-primary"
18068
18142
  }
@@ -18072,7 +18146,7 @@
18072
18146
  {
18073
18147
  "name": "breakpoint",
18074
18148
  "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.",
18149
+ "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
18150
  "type": "keyword",
18077
18151
  "default": "lg",
18078
18152
  "options": [
@@ -18081,6 +18155,13 @@
18081
18155
  "lg"
18082
18156
  ]
18083
18157
  },
18158
+ {
18159
+ "name": "close-label",
18160
+ "property": "closeLabel",
18161
+ "description": "Accessible name of the drawer's close button.",
18162
+ "type": "string",
18163
+ "default": "Close navigation"
18164
+ },
18084
18165
  {
18085
18166
  "name": "label",
18086
18167
  "property": "label",
@@ -18088,6 +18169,13 @@
18088
18169
  "type": "string",
18089
18170
  "default": "Main"
18090
18171
  },
18172
+ {
18173
+ "name": "menu-label",
18174
+ "property": "menuLabel",
18175
+ "description": "Accessible name of the automatic mobile menu button.",
18176
+ "type": "string",
18177
+ "default": "Open navigation"
18178
+ },
18091
18179
  {
18092
18180
  "name": "sticky",
18093
18181
  "property": "sticky",
@@ -18099,7 +18187,7 @@
18099
18187
  "properties": [
18100
18188
  {
18101
18189
  "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.",
18190
+ "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
18191
  "type": "\"sm\" | \"md\" | \"lg\"",
18104
18192
  "default": "lg",
18105
18193
  "options": [
@@ -18108,12 +18196,24 @@
18108
18196
  "lg"
18109
18197
  ]
18110
18198
  },
18199
+ {
18200
+ "name": "closeLabel",
18201
+ "description": "Accessible name of the drawer's close button.",
18202
+ "type": "string",
18203
+ "default": "Close navigation"
18204
+ },
18111
18205
  {
18112
18206
  "name": "label",
18113
18207
  "description": "Accessible name for the primary navigation region.",
18114
18208
  "type": "string",
18115
18209
  "default": "Main"
18116
18210
  },
18211
+ {
18212
+ "name": "menuLabel",
18213
+ "description": "Accessible name of the automatic mobile menu button.",
18214
+ "type": "string",
18215
+ "default": "Open navigation"
18216
+ },
18117
18217
  {
18118
18218
  "name": "sticky",
18119
18219
  "description": "Keeps the header at the top of its scrolling container.",
@@ -18123,14 +18223,14 @@
18123
18223
  ],
18124
18224
  "events": [],
18125
18225
  "slots": [
18126
- {
18127
- "name": "menu",
18128
- "description": "Named content for the menu region."
18129
- },
18130
18226
  {
18131
18227
  "name": "brand",
18132
18228
  "description": "Named content for the brand region."
18133
18229
  },
18230
+ {
18231
+ "name": "menu",
18232
+ "description": "Named content for the menu region."
18233
+ },
18134
18234
  {
18135
18235
  "name": "navigation",
18136
18236
  "description": "Named content for the navigation region."
@@ -18140,7 +18240,7 @@
18140
18240
  "description": "Named content for the actions region."
18141
18241
  }
18142
18242
  ],
18143
- "summary": "Site branding, primary navigation, and actions with a mobile menu.",
18243
+ "summary": "Site branding and navigation with an automatic mobile drawer.",
18144
18244
  "group": "display",
18145
18245
  "id": "@threadlabs/looma/ui-site-header",
18146
18246
  "title": "Site Header",
@@ -18154,8 +18254,8 @@
18154
18254
  "id": "@threadlabs/looma/ui-site-header/00-preview",
18155
18255
  "name": "00-preview",
18156
18256
  "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>",
18257
+ "description": "Branding, navigation, and an action. On mobile, the header supplies the menu automatically.",
18258
+ "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
18259
  "resizable": false,
18160
18260
  "bindings": "",
18161
18261
  "frameworks": {}
@@ -18164,8 +18264,8 @@
18164
18264
  "id": "@threadlabs/looma/ui-site-header/01-default",
18165
18265
  "name": "01-default",
18166
18266
  "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>",
18267
+ "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.",
18268
+ "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
18269
  "resizable": false,
18170
18270
  "bindings": "",
18171
18271
  "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.6",
3
+ "version": "0.45.1",
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));
@@ -16,7 +16,8 @@
16
16
  min-inline-size: 0;
17
17
  }
18
18
 
19
- :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"] {
19
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"],
20
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"] {
20
21
  --_ui-selection-context-surface: initial;
21
22
  --_ui-selection-context-border: initial;
22
23
  --_ui-selection-context-text: initial;
@@ -26,12 +27,40 @@
26
27
  background: var(--ui-surface-raised);
27
28
  }
28
29
 
30
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"] {
31
+ display: block !important;
32
+ box-sizing: border-box !important;
33
+ margin: 0 !important;
34
+ padding-block-start: var(--ui-space-4) !important;
35
+ }
36
+
37
+ .legend {
38
+ max-inline-size: 100%;
39
+ box-sizing: border-box !important;
40
+ padding-inline: var(--ui-space-2) !important;
41
+ margin-inline-start: calc(-1 * var(--ui-space-2)) !important;
42
+ overflow-wrap: anywhere;
43
+ }
44
+
45
+ .legend .heading {
46
+ font-size: var(--ui-font-size-md);
47
+ }
48
+
49
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"] .head {
50
+ margin-block-end: var(--ui-space-4) !important;
51
+ }
52
+
53
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"] .head:has(.description:empty):has(.actions:empty) {
54
+ display: none !important;
55
+ }
56
+
29
57
  :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=divided"] {
30
58
  padding-block-start: var(--ui-space-6) !important;
31
59
  border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
32
60
  }
33
61
 
34
- :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"] {
62
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=card"][data-ui-section-state~="tone=danger"],
63
+ :scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=fieldset"][data-ui-section-state~="tone=danger"] {
35
64
  --_ui-selection-context-surface: light-dark(
36
65
  oklch(from var(--ui-danger-soft) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
37
66
  oklch(from var(--ui-danger-soft) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)