@threadlabs/looma 0.47.1 → 0.47.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 (129) hide show
  1. package/components/ui-card/ui-card.html +39 -5
  2. package/components/ui-card-group/ui-card-group.html +29 -0
  3. package/components/ui-combobox/ui-combobox.html +24 -4
  4. package/components/ui-combobox/ui-combobox.js +6 -0
  5. package/components/ui-site-header/ui-site-header.html +7 -5
  6. package/components/ui-top-bar/ui-top-bar.html +32 -2
  7. package/components/ui-top-bar/ui-top-bar.js +60 -0
  8. package/dist/index.js +4 -3
  9. package/docs/catalog.json +190 -4
  10. package/package.json +1 -1
  11. package/styles/ui-card-group.css +41 -0
  12. package/styles/ui-card.css +19 -1
  13. package/styles/ui-combobox.css +42 -6
  14. package/styles/ui-site-header.css +14 -10
  15. package/styles/ui-top-bar.css +24 -1
  16. package/vanilla/UiCard.js +148 -36
  17. package/vanilla/UiCardGroup.d.ts +25 -0
  18. package/vanilla/UiCardGroup.js +59 -0
  19. package/vanilla/UiCombobox.d.ts +1 -0
  20. package/vanilla/UiCombobox.js +88 -82
  21. package/vanilla/UiTopBar.d.ts +1 -0
  22. package/vanilla/UiTopBar.js +50 -13
  23. package/vanilla/index.js +1 -0
  24. package/vue/UiCard.d.ts +20 -4
  25. package/vue/UiCard.vue +31 -5
  26. package/vue/UiCardGroup.d.ts +41 -0
  27. package/vue/UiCardGroup.js +2 -0
  28. package/vue/UiCardGroup.vue +168 -0
  29. package/vue/UiCombobox.d.ts +6 -0
  30. package/vue/UiCombobox.vue +78 -9
  31. package/vue/UiSiteHeader.vue +12 -8
  32. package/vue/UiTopBar.d.ts +17 -1
  33. package/vue/UiTopBar.vue +171 -3
  34. package/vue/chunks/UiAffordanceScope.js +1 -1
  35. package/vue/chunks/UiAvatar.js +1 -1
  36. package/vue/chunks/UiAvatarGroup.js +1 -1
  37. package/vue/chunks/UiBadge.js +1 -1
  38. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  39. package/vue/chunks/UiBreadcrumbs.js +1 -1
  40. package/vue/chunks/UiButton.js +1 -1
  41. package/vue/chunks/UiCallout.js +1 -1
  42. package/vue/chunks/UiCard.js +74 -10
  43. package/vue/chunks/UiCardGroup.js +153 -0
  44. package/vue/chunks/UiCheckbox.js +1 -1
  45. package/vue/chunks/UiCluster.js +1 -1
  46. package/vue/chunks/UiColorPicker.js +1 -1
  47. package/vue/chunks/UiCombobox.js +74 -53
  48. package/vue/chunks/UiContainer.js +1 -1
  49. package/vue/chunks/UiContextMenu.js +1 -1
  50. package/vue/chunks/UiCover.js +1 -1
  51. package/vue/chunks/UiCurveEditor.js +1 -1
  52. package/vue/chunks/UiCycleButton.js +1 -1
  53. package/vue/chunks/UiDescriptionItem.js +1 -1
  54. package/vue/chunks/UiDescriptionList.js +1 -1
  55. package/vue/chunks/UiDialog.js +1 -1
  56. package/vue/chunks/UiDisclosure.js +1 -1
  57. package/vue/chunks/UiEditable.js +1 -1
  58. package/vue/chunks/UiEditorBlockActions.js +1 -1
  59. package/vue/chunks/UiEditorChipEditor.js +1 -1
  60. package/vue/chunks/UiEditorCodeLanguage.js +1 -1
  61. package/vue/chunks/UiEditorFootnoteEditor.js +1 -1
  62. package/vue/chunks/UiEditorImageToolbar.js +1 -1
  63. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  64. package/vue/chunks/UiEditorLinkCard.js +1 -1
  65. package/vue/chunks/UiEditorLinkForm.js +1 -1
  66. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  67. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  68. package/vue/chunks/UiEditorSlashMenu.js +1 -1
  69. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  70. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  71. package/vue/chunks/UiEditorSurface.js +1 -1
  72. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  73. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  74. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  75. package/vue/chunks/UiEditorToolbar.js +1 -1
  76. package/vue/chunks/UiFloatingActionButton.js +1 -1
  77. package/vue/chunks/UiFormField.js +1 -1
  78. package/vue/chunks/UiGrid.js +1 -1
  79. package/vue/chunks/UiIcon.js +1 -1
  80. package/vue/chunks/UiIconButton.js +1 -1
  81. package/vue/chunks/UiImage.js +1 -1
  82. package/vue/chunks/UiInput.js +1 -1
  83. package/vue/chunks/UiInputGroup.js +1 -1
  84. package/vue/chunks/UiLightEditor.js +1 -1
  85. package/vue/chunks/UiList.js +1 -1
  86. package/vue/chunks/UiListItem.js +1 -1
  87. package/vue/chunks/UiListbox.js +1 -1
  88. package/vue/chunks/UiMenu.js +1 -1
  89. package/vue/chunks/UiMenuGroup.js +1 -1
  90. package/vue/chunks/UiMenuItem.js +1 -1
  91. package/vue/chunks/UiMeter.js +1 -1
  92. package/vue/chunks/UiNavItem.js +1 -1
  93. package/vue/chunks/UiNumberInput.js +1 -1
  94. package/vue/chunks/UiPageHeader.js +1 -1
  95. package/vue/chunks/UiPagination.js +1 -1
  96. package/vue/chunks/UiPopover.js +1 -1
  97. package/vue/chunks/UiRadio.js +1 -1
  98. package/vue/chunks/UiRadioGroup.js +1 -1
  99. package/vue/chunks/UiReel.js +1 -1
  100. package/vue/chunks/UiScrollArea.js +1 -1
  101. package/vue/chunks/UiSearchResultRow.js +1 -1
  102. package/vue/chunks/UiSearchShell.js +1 -1
  103. package/vue/chunks/UiSection.js +1 -1
  104. package/vue/chunks/UiSelect.js +1 -1
  105. package/vue/chunks/UiSeparator.js +1 -1
  106. package/vue/chunks/UiSidebar.js +1 -1
  107. package/vue/chunks/UiSiteHeader.js +2 -2
  108. package/vue/chunks/UiSkeleton.js +1 -1
  109. package/vue/chunks/UiSlider.js +1 -1
  110. package/vue/chunks/UiSpinner.js +1 -1
  111. package/vue/chunks/UiStack.js +1 -1
  112. package/vue/chunks/UiStatusMessage.js +1 -1
  113. package/vue/chunks/UiSwatch.js +1 -1
  114. package/vue/chunks/UiSwitch.js +1 -1
  115. package/vue/chunks/UiSwitcher.js +1 -1
  116. package/vue/chunks/UiTable.js +1 -1
  117. package/vue/chunks/UiTabs.js +1 -1
  118. package/vue/chunks/UiText.js +1 -1
  119. package/vue/chunks/UiTextarea.js +1 -1
  120. package/vue/chunks/UiToast.js +1 -1
  121. package/vue/chunks/UiToastRegion.js +1 -1
  122. package/vue/chunks/UiTooltip.js +1 -1
  123. package/vue/chunks/UiTopBar.js +105 -17
  124. package/vue/chunks/UiTree.js +1 -1
  125. package/vue/chunks/UiTreeItem.js +1 -1
  126. package/vue/chunks/props.js +1 -1
  127. package/vue/components.css +185 -77
  128. package/vue/index.d.ts +1 -0
  129. package/vue/index.js +3 -2
package/docs/catalog.json CHANGED
@@ -50,6 +50,11 @@
50
50
  "package": "@threadlabs/looma",
51
51
  "resource": "@threadlabs/looma/components/ui-card/ui-card.html"
52
52
  },
53
+ {
54
+ "tag": "ui-card-group",
55
+ "package": "@threadlabs/looma",
56
+ "resource": "@threadlabs/looma/components/ui-card-group/ui-card-group.html"
57
+ },
53
58
  {
54
59
  "tag": "ui-checkbox",
55
60
  "package": "@threadlabs/looma",
@@ -463,7 +468,7 @@
463
468
  ],
464
469
  "schemaVersion": 1,
465
470
  "package": "@threadlabs/looma",
466
- "version": "0.47.1",
471
+ "version": "0.47.3",
467
472
  "groups": [
468
473
  {
469
474
  "id": "layout",
@@ -3744,7 +3749,7 @@
3744
3749
  "tag": "ui-card",
3745
3750
  "package": "@threadlabs/looma",
3746
3751
  "root": "div",
3747
- "description": "A surface that groups content with shared spacing and corners. Choose outlined, subtle or elevated; standard or expressive treatment independently follows the theme's material. Tones change colour without changing geometry.",
3752
+ "description": "A surface that groups content with shared spacing and corners. Choose outlined, subtle or elevated; standard or expressive treatment independently follows the theme's material. Tones change colour without changing geometry. Supply a header slot, default body content and an actions slot. CardGroup aligns these regions with native subgrid; ordinary cards keep their stacked layout.",
3748
3753
  "designTokens": {
3749
3754
  "sources": [
3750
3755
  "packages/looma/src/components/ui-card/ui-card.html"
@@ -4058,9 +4063,17 @@
4058
4063
  ],
4059
4064
  "events": [],
4060
4065
  "slots": [
4066
+ {
4067
+ "name": "header",
4068
+ "description": "Named content for the header region."
4069
+ },
4061
4070
  {
4062
4071
  "name": "default",
4063
4072
  "description": "Default child content."
4073
+ },
4074
+ {
4075
+ "name": "actions",
4076
+ "description": "Named content for the actions region."
4064
4077
  }
4065
4078
  ],
4066
4079
  "summary": "A surface that groups related content.",
@@ -4125,6 +4138,122 @@
4125
4138
  }
4126
4139
  ]
4127
4140
  },
4141
+ {
4142
+ "tag": "ui-card-group",
4143
+ "package": "@threadlabs/looma",
4144
+ "root": "div",
4145
+ "description": "Responsive cards with shared header, content and action rows. Uses Grid for wrapping columns and Card for native subgrid alignment. Each Card supplies a header slot, default body content and an actions slot.",
4146
+ "designTokens": {
4147
+ "sources": [
4148
+ "packages/looma/src/components/ui-card-group/ui-card-group.html"
4149
+ ],
4150
+ "component": [],
4151
+ "shared": []
4152
+ },
4153
+ "attributes": [
4154
+ {
4155
+ "name": "columns",
4156
+ "property": "columns",
4157
+ "description": "Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.",
4158
+ "type": "integer"
4159
+ },
4160
+ {
4161
+ "name": "gap",
4162
+ "property": "gap",
4163
+ "description": "Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.",
4164
+ "type": "keyword",
4165
+ "default": "l",
4166
+ "options": [
4167
+ "xs",
4168
+ "s",
4169
+ "m",
4170
+ "l",
4171
+ "xl"
4172
+ ]
4173
+ },
4174
+ {
4175
+ "name": "min",
4176
+ "property": "min",
4177
+ "description": "Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.",
4178
+ "type": "keyword",
4179
+ "default": "lg",
4180
+ "options": [
4181
+ "sm",
4182
+ "md",
4183
+ "lg"
4184
+ ]
4185
+ }
4186
+ ],
4187
+ "properties": [
4188
+ {
4189
+ "name": "columns",
4190
+ "description": "Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.",
4191
+ "type": "number"
4192
+ },
4193
+ {
4194
+ "name": "gap",
4195
+ "description": "Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.",
4196
+ "type": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\"",
4197
+ "default": "l",
4198
+ "options": [
4199
+ "xs",
4200
+ "s",
4201
+ "m",
4202
+ "l",
4203
+ "xl"
4204
+ ]
4205
+ },
4206
+ {
4207
+ "name": "min",
4208
+ "description": "Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.",
4209
+ "type": "\"sm\" | \"md\" | \"lg\"",
4210
+ "default": "lg",
4211
+ "options": [
4212
+ "sm",
4213
+ "md",
4214
+ "lg"
4215
+ ]
4216
+ }
4217
+ ],
4218
+ "events": [],
4219
+ "slots": [
4220
+ {
4221
+ "name": "default",
4222
+ "description": "Default child content."
4223
+ }
4224
+ ],
4225
+ "summary": "Align card headers, content and actions across each row.",
4226
+ "group": "layout",
4227
+ "id": "@threadlabs/looma/ui-card-group",
4228
+ "title": "Card Group",
4229
+ "resource": "@threadlabs/looma/components/ui-card-group/ui-card-group.html",
4230
+ "targets": [
4231
+ "html-next",
4232
+ "vue"
4233
+ ],
4234
+ "examples": [
4235
+ {
4236
+ "id": "@threadlabs/looma/ui-card-group/01-default",
4237
+ "name": "01-default",
4238
+ "title": "Aligned card regions",
4239
+ "description": "Different heading and body lengths share header, content and action rows, then stack in a narrow container.",
4240
+ "markup": "<ui-card-group>\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Fellowship archive</ui-text>\n <ui-text>A short description of the archive.</ui-text>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Open archive</ui-button></ui-action-bar>\n </ui-card>\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Letters and records from the journey</ui-text>\n <ui-text>Read correspondence, maps and field notes collected throughout the journey. Longer descriptions leave the actions aligned.</ui-text>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"secondary\" variant=\"outline\">Read more</ui-button><ui-button slot=\"primary\"\n >Explore records</ui-button></ui-action-bar>\n </ui-card>\n</ui-card-group>",
4241
+ "resizable": false,
4242
+ "bindings": "",
4243
+ "frameworks": {}
4244
+ },
4245
+ {
4246
+ "id": "@threadlabs/looma/ui-card-group/02-column-cap",
4247
+ "name": "02-column-cap",
4248
+ "title": "Column limit and nested content",
4249
+ "description": "Grid's column limit and minimum width apply without page-specific layout rules. A nested card keeps its independent stacked layout.",
4250
+ "markup": "<ui-card-group columns=\"2\" min=\"md\" gap=\"xl\">\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Research</ui-text>\n <ui-card variant=\"subtle\" padding=\"sm\"><ui-text>A supporting note inside the card.</ui-text></ui-card>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Read notes</ui-button></ui-action-bar>\n </ui-card>\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Correspondence</ui-text>\n <ui-text>A separate collection of letters.</ui-text>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Browse letters</ui-button></ui-action-bar>\n </ui-card>\n</ui-card-group>",
4251
+ "resizable": false,
4252
+ "bindings": "",
4253
+ "frameworks": {}
4254
+ }
4255
+ ]
4256
+ },
4128
4257
  {
4129
4258
  "tag": "ui-checkbox",
4130
4259
  "package": "@threadlabs/looma",
@@ -5631,6 +5760,13 @@
5631
5760
  "type": "boolean",
5632
5761
  "default": false
5633
5762
  },
5763
+ {
5764
+ "name": "max-rows",
5765
+ "property": "maxRows",
5766
+ "description": "Visible rows of selected items and typing space in multiple mode. More than one lets the field grow and wrap before extra rows scroll vertically inside it. One or less keeps the single horizontally scrolling row; single-selection fields are unchanged.",
5767
+ "type": "integer",
5768
+ "default": 1
5769
+ },
5634
5770
  {
5635
5771
  "name": "multiple",
5636
5772
  "property": "multiple",
@@ -5880,6 +6016,12 @@
5880
6016
  "type": "boolean",
5881
6017
  "default": false
5882
6018
  },
6019
+ {
6020
+ "name": "maxRows",
6021
+ "description": "Visible rows of selected items and typing space in multiple mode. More than one lets the field grow and wrap before extra rows scroll vertically inside it. One or less keeps the single horizontally scrolling row; single-selection fields are unchanged.",
6022
+ "type": "number",
6023
+ "default": 1
6024
+ },
5883
6025
  {
5884
6026
  "name": "multiple",
5885
6027
  "description": "Lets the user choose several options. Each choice becomes a removable badge before the input, the list stays open between picks, and choosing a checked option removes it. items-change then reports the whole list of items, and selected-values-change the list of their values; use selectedValues or items, not value, in this mode.",
@@ -6835,6 +6977,16 @@
6835
6977
  "resizable": false,
6836
6978
  "bindings": "",
6837
6979
  "frameworks": {}
6980
+ },
6981
+ {
6982
+ "id": "@threadlabs/looma/ui-combobox/08-multiple-rows",
6983
+ "name": "08-multiple-rows",
6984
+ "title": "Wrap selected items before scrolling",
6985
+ "description": "maxRows lets a multiple field grow through three rows before additional selections scroll vertically inside the field. The input remains reachable by keyboard.",
6986
+ "markup": "<ui-container fill>\n <ui-combobox label=\"Topics\" multiple max-rows=\"3\" disclosure placeholder=\"Add a topic…\">\n <option value=\"research\" selected>Research and discovery</option>\n <option value=\"design\" selected>Interface design</option>\n <option value=\"content\" selected>Content strategy</option>\n <option value=\"accessibility\" selected>Accessibility review</option>\n <option value=\"delivery\">Delivery</option>\n </ui-combobox>\n</ui-container>",
6987
+ "resizable": false,
6988
+ "bindings": "",
6989
+ "frameworks": {}
6838
6990
  }
6839
6991
  ]
6840
6992
  },
@@ -22480,9 +22632,18 @@
22480
22632
  {
22481
22633
  "name": "--ui-border-width"
22482
22634
  },
22635
+ {
22636
+ "name": "--ui-motion-ease"
22637
+ },
22638
+ {
22639
+ "name": "--ui-motion-fast"
22640
+ },
22483
22641
  {
22484
22642
  "name": "--ui-space-1"
22485
22643
  },
22644
+ {
22645
+ "name": "--ui-space-2"
22646
+ },
22486
22647
  {
22487
22648
  "name": "--ui-space-3"
22488
22649
  },
@@ -22494,8 +22655,23 @@
22494
22655
  }
22495
22656
  ]
22496
22657
  },
22497
- "attributes": [],
22498
- "properties": [],
22658
+ "attributes": [
22659
+ {
22660
+ "name": "title-for",
22661
+ "property": "titleFor",
22662
+ "description": "The ID of the page heading represented by the default title slot. While that heading is visible below the sticky bar, its duplicate title is concealed. After the heading scrolls above the bar, the single-line title slides up and fades in. Leading and action slots stay available, and the bar keeps its size. Omit it for an always-visible title. Reduced motion removes the transition.",
22663
+ "type": "string",
22664
+ "default": ""
22665
+ }
22666
+ ],
22667
+ "properties": [
22668
+ {
22669
+ "name": "titleFor",
22670
+ "description": "The ID of the page heading represented by the default title slot. While that heading is visible below the sticky bar, its duplicate title is concealed. After the heading scrolls above the bar, the single-line title slides up and fades in. Leading and action slots stay available, and the bar keeps its size. Omit it for an always-visible title. Reduced motion removes the transition.",
22671
+ "type": "string",
22672
+ "default": ""
22673
+ }
22674
+ ],
22499
22675
  "events": [],
22500
22676
  "slots": [
22501
22677
  {
@@ -22544,6 +22720,16 @@
22544
22720
  "resizable": false,
22545
22721
  "bindings": "",
22546
22722
  "frameworks": {}
22723
+ },
22724
+ {
22725
+ "id": "@threadlabs/looma/ui-top-bar/02-scroll-title",
22726
+ "name": "02-scroll-title",
22727
+ "title": "Reveal the title after its heading",
22728
+ "description": "Scroll the document past its heading. The sticky title slides up and fades in once the heading leaves the visible reading area, and disappears when the heading returns. Reduced motion removes that transition.",
22729
+ "markup": "<ui-stack height=\"256\" gap=\"none\">\n <ui-scroll-area fill>\n <ui-top-bar title-for=\"top-bar-example-heading\">\n <ui-button slot=\"leading\" size=\"sm\">Back</ui-button>\n A document with a long descriptive title\n <ui-button slot=\"actions\" size=\"sm\">Save</ui-button>\n </ui-top-bar>\n <ui-container fill>\n <ui-stack gap=\"m\">\n <ui-text as=\"h2\" variant=\"heading\" id=\"top-bar-example-heading\">A document with a long descriptive title</ui-text>\n <ui-text>The heading labels the document while it is visible. Navigation and actions stay available.</ui-text>\n <ui-text>Scroll to keep reading the document and its supporting notes.</ui-text>\n <ui-text>The toolbar keeps the same height as the heading leaves the reading area.</ui-text>\n <ui-text>Return to the beginning to show the full heading again.</ui-text>\n <ui-text>The duplicate toolbar title is concealed while the heading is visible.</ui-text>\n </ui-stack>\n </ui-container>\n </ui-scroll-area>\n</ui-stack>",
22730
+ "resizable": false,
22731
+ "bindings": "",
22732
+ "frameworks": {}
22547
22733
  }
22548
22734
  ]
22549
22735
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.47.1",
3
+ "version": "0.47.3",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -0,0 +1,41 @@
1
+ /* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
2
+ @supports (-moz-appearance: none) {
3
+ :where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
4
+ :where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
5
+ }
6
+ @supports (-moz-appearance: none) {
7
+ [data-component~="ui-card-group"] { --html-next-scope-owner: "ui-card-group" !important; }
8
+ }
9
+ @scope ([data-component~="ui-card-group"]) to ([data-component], [data-slotted]) {
10
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
11
+ :scope:where([data-component~="ui-card-group"]) {
12
+ display: block !important;
13
+ min-inline-size: 0;
14
+ max-inline-size: 100%;
15
+ --_ui-card-group-layout: grid;
16
+ --_ui-card-group-rows: subgrid;
17
+ --_ui-card-group-span: span 3;
18
+ --_ui-card-group-region-layout: flex;
19
+ }
20
+ :scope:where([data-component~="ui-card-group"])[hidden] {
21
+ display: none !important;
22
+ }
23
+ }
24
+ @scope ([data-component~="ui-card-group"]) to ([data-component]) {
25
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
26
+ }
27
+ @scope ([data-slotted~="ui-card-group"]:not([data-component])) to ([data-component], [data-slotted]) {
28
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
29
+ :where([data-component~="ui-card-group"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-card-group"]))) {
30
+ display: block !important;
31
+ min-inline-size: 0;
32
+ max-inline-size: 100%;
33
+ --_ui-card-group-layout: grid;
34
+ --_ui-card-group-rows: subgrid;
35
+ --_ui-card-group-span: span 3;
36
+ --_ui-card-group-region-layout: flex;
37
+ }
38
+ :where([data-component~="ui-card-group"])[hidden]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-card-group"]))) {
39
+ display: none !important;
40
+ }
41
+ }
@@ -16,7 +16,11 @@
16
16
  --_ui-selection-context-surface: initial;
17
17
  --_ui-selection-context-border: initial;
18
18
  --_ui-selection-context-text: initial;
19
- display: flex !important;
19
+ --_ui-card-layout: var(--_ui-card-group-layout, flex);
20
+ --_ui-card-region-layout: var(--_ui-card-group-region-layout, contents);
21
+ display: var(--_ui-card-layout) !important;
22
+ grid-template-rows: var(--_ui-card-group-rows, none) !important;
23
+ grid-row: var(--_ui-card-group-span, auto) !important;
20
24
  flex-direction: column !important;
21
25
  gap: var(--ui-space-4) !important;
22
26
  box-sizing: border-box !important;
@@ -28,6 +32,20 @@
28
32
  color: var(--_ui-surface-text, var(--ui-text-primary));
29
33
  }
30
34
 
35
+ .header,
36
+ .content,
37
+ .actions {
38
+ display: var(--_ui-card-region-layout) !important;
39
+ flex-direction: column !important;
40
+ gap: inherit !important;
41
+ min-inline-size: 0;
42
+ /* Group context stops at this card; nested cards start a fresh layout. */
43
+ --_ui-card-group-layout: initial;
44
+ --_ui-card-group-rows: initial;
45
+ --_ui-card-group-span: initial;
46
+ --_ui-card-group-region-layout: initial;
47
+ }
48
+
31
49
  :scope:where([data-component~="ui-card"])[data-ui-card-state~="padding=xs"] {
32
50
  gap: var(--ui-space-1) !important;
33
51
  padding: var(--ui-space-2) !important;
@@ -283,6 +283,7 @@
283
283
  /* Multiple mode keeps one control height. Chips and the input scroll within the entry,
284
284
  while the clear and disclosure controls remain fixed at the end of the field. */
285
285
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .field {
286
+ --_item-row: 1.75rem;
286
287
  align-items: center !important;
287
288
  min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
288
289
  padding: var(--ui-space-1) !important;
@@ -300,24 +301,40 @@
300
301
  max-block-size: none;
301
302
  flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
302
303
  width: auto;
303
- min-block-size: 1.75rem;
304
+ min-block-size: var(--_item-row);
304
305
  padding: var(--ui-space-0-5) var(--ui-space-1) !important;
305
306
  }
306
307
  /* Size variants keep their control height as selections are added. */
307
308
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] .field {
309
+ --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
308
310
  min-block-size: 0;
309
311
  padding: var(--ui-space-0-5) !important;
310
312
  }
311
313
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] input {
312
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
314
+ min-block-size: var(--_item-row);
313
315
  padding: 0 var(--ui-space-1) !important;
314
316
  }
315
317
  /* A large multiple field starts at the large control height, as sm starts at the small one. */
316
318
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] .field {
319
+ --_item-row: calc(var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1));
317
320
  min-block-size: 0;
318
321
  }
319
322
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] input {
320
- min-block-size: calc(var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1));
323
+ min-block-size: var(--_item-row);
324
+ }
325
+ /* Grow through the requested rows, then keep the typing row in a bounded field.
326
+ The entry owns its scroll; clear/disclosure actions remain outside it. */
327
+ :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry.multiline {
328
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
329
+ --_entry-row: max(1.5rem, var(--_item-row));
330
+ flex-wrap: wrap !important;
331
+ align-content: flex-start !important;
332
+ max-block-size: calc(var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1));
333
+ overflow-x: hidden;
334
+ overflow-y: auto;
335
+ }
336
+ .entry.multiline .item {
337
+ min-block-size: var(--_entry-row);
321
338
  }
322
339
  .item {
323
340
  appearance: none;
@@ -361,6 +378,8 @@
361
378
  while the clear and disclosure controls remain fixed at the end of the field. */
362
379
  /* Size variants keep their control height as selections are added. */
363
380
  /* A large multiple field starts at the large control height, as sm starts at the small one. */
381
+ /* Grow through the requested rows, then keep the typing row in a bounded field.
382
+ The entry owns its scroll; clear/disclosure actions remain outside it. */
364
383
 
365
384
  /* A component that sets its display still honours the hidden attribute on its root. */
366
385
  }
@@ -638,6 +657,7 @@
638
657
  /* Multiple mode keeps one control height. Chips and the input scroll within the entry,
639
658
  while the clear and disclosure controls remain fixed at the end of the field. */
640
659
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
660
+ --_item-row: 1.75rem;
641
661
  align-items: center !important;
642
662
  min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
643
663
  padding: var(--ui-space-1) !important;
@@ -655,24 +675,40 @@
655
675
  max-block-size: none;
656
676
  flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
657
677
  width: auto;
658
- min-block-size: 1.75rem;
678
+ min-block-size: var(--_item-row);
659
679
  padding: var(--ui-space-0-5) var(--ui-space-1) !important;
660
680
  }
661
681
  /* Size variants keep their control height as selections are added. */
662
682
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
683
+ --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
663
684
  min-block-size: 0;
664
685
  padding: var(--ui-space-0-5) !important;
665
686
  }
666
687
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
667
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
688
+ min-block-size: var(--_item-row);
668
689
  padding: 0 var(--ui-space-1) !important;
669
690
  }
670
691
  /* A large multiple field starts at the large control height, as sm starts at the small one. */
671
692
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
693
+ --_item-row: calc(var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1));
672
694
  min-block-size: 0;
673
695
  }
674
696
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
675
- min-block-size: calc(var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1));
697
+ min-block-size: var(--_item-row);
698
+ }
699
+ /* Grow through the requested rows, then keep the typing row in a bounded field.
700
+ The entry owns its scroll; clear/disclosure actions remain outside it. */
701
+ :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry.multiline:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
702
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
703
+ --_entry-row: max(1.5rem, var(--_item-row));
704
+ flex-wrap: wrap !important;
705
+ align-content: flex-start !important;
706
+ max-block-size: calc(var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1));
707
+ overflow-x: hidden;
708
+ overflow-y: auto;
709
+ }
710
+ .entry.multiline:where(:scope, :scope *) .item {
711
+ min-block-size: var(--_entry-row);
676
712
  }
677
713
  .item:where(:scope, :scope *) {
678
714
  appearance: none;
@@ -39,16 +39,18 @@
39
39
  justify-items: center !important;
40
40
  margin-inline-start: auto !important;
41
41
  }
42
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
42
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
43
43
  .identity {
44
44
  display: flex !important;
45
45
  flex: 1 1 0;
46
46
  flex-wrap: wrap !important;
47
- align-items: baseline !important;
47
+ align-items: center !important;
48
48
  gap: var(--ui-space-2) var(--ui-space-6) !important;
49
49
  min-inline-size: 0;
50
50
  }
51
51
  .brand {
52
+ display: flex !important;
53
+ align-items: center !important;
52
54
  min-inline-size: 0;
53
55
  font-size: var(--ui-font-size-lg);
54
56
  font-weight: var(--ui-font-bold);
@@ -56,7 +58,7 @@
56
58
  .navigation {
57
59
  display: flex !important;
58
60
  flex-wrap: wrap !important;
59
- align-items: baseline !important;
61
+ align-items: center !important;
60
62
  gap: var(--ui-space-2) var(--ui-space-5) !important;
61
63
  min-inline-size: 0;
62
64
  font-size: var(--ui-font-size-sm);
@@ -87,7 +89,7 @@
87
89
  .inline-navigation {
88
90
  position: static;
89
91
  display: flex !important;
90
- align-items: baseline !important;
92
+ align-items: center !important;
91
93
  min-inline-size: 0;
92
94
  max-inline-size: none;
93
95
  margin: 0 !important;
@@ -272,10 +274,10 @@
272
274
  }
273
275
  }
274
276
  @scope ([data-component~="ui-site-header"]) to ([data-component]) {
275
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
277
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
276
278
  .brand > :where([data-slotted], [data-slotted] *):is(a) {
277
279
  display: inline-flex !important;
278
- align-items: baseline !important;
280
+ align-items: center !important;
279
281
  gap: var(--ui-space-3) !important;
280
282
  min-inline-size: 0;
281
283
  max-inline-size: 100%;
@@ -345,16 +347,18 @@
345
347
  justify-items: center !important;
346
348
  margin-inline-start: auto !important;
347
349
  }
348
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
350
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
349
351
  .identity:where(:scope, :scope *) {
350
352
  display: flex !important;
351
353
  flex: 1 1 0;
352
354
  flex-wrap: wrap !important;
353
- align-items: baseline !important;
355
+ align-items: center !important;
354
356
  gap: var(--ui-space-2) var(--ui-space-6) !important;
355
357
  min-inline-size: 0;
356
358
  }
357
359
  .brand:where(:scope, :scope *) {
360
+ display: flex !important;
361
+ align-items: center !important;
358
362
  min-inline-size: 0;
359
363
  font-size: var(--ui-font-size-lg);
360
364
  font-weight: var(--ui-font-bold);
@@ -362,7 +366,7 @@
362
366
  .navigation:where(:scope, :scope *) {
363
367
  display: flex !important;
364
368
  flex-wrap: wrap !important;
365
- align-items: baseline !important;
369
+ align-items: center !important;
366
370
  gap: var(--ui-space-2) var(--ui-space-5) !important;
367
371
  min-inline-size: 0;
368
372
  font-size: var(--ui-font-size-sm);
@@ -393,7 +397,7 @@
393
397
  .inline-navigation:where(:scope, :scope *) {
394
398
  position: static;
395
399
  display: flex !important;
396
- align-items: baseline !important;
400
+ align-items: center !important;
397
401
  min-inline-size: 0;
398
402
  max-inline-size: none;
399
403
  margin: 0 !important;
@@ -41,6 +41,26 @@
41
41
  min-inline-size: 0;
42
42
  flex: 1;
43
43
  }
44
+ .title.scroll-title {
45
+ overflow: hidden;
46
+ white-space: nowrap;
47
+ text-overflow: ellipsis;
48
+ opacity: 1;
49
+ transform: translateY(0);
50
+ transition: opacity var(--ui-motion-fast) var(--ui-motion-ease), transform var(--ui-motion-fast) var(--ui-motion-ease);
51
+ }
52
+ .title.scroll-title.concealed {
53
+ opacity: 0;
54
+ transform: translateY(var(--ui-space-2));
55
+ pointer-events: none;
56
+ }
57
+ @media (prefers-reduced-motion: reduce) {
58
+ .title.scroll-title,
59
+ .title.scroll-title.concealed {
60
+ transition: none;
61
+ transform: none;
62
+ }
63
+ }
44
64
 
45
65
  /* An unused region takes no space, so it adds no gap. */
46
66
  .leading:empty,
@@ -55,7 +75,10 @@
55
75
  }
56
76
  }
57
77
  @scope ([data-component~="ui-top-bar"]) to ([data-component]) {
58
- /* An unused region takes no space, so it adds no gap. */
78
+ @media (prefers-reduced-motion: reduce) {
79
+ }
80
+
81
+ /* An unused region takes no space, so it adds no gap. */
59
82
 
60
83
  /* A component that sets its display still honours the hidden attribute on its root. */
61
84
  }