@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/vue/UiCard.vue CHANGED
@@ -250,7 +250,9 @@ const hostState = computed(() =>
250
250
  :data-ui-card-state="hostState || undefined"
251
251
  ref="@html-next/root"
252
252
  >
253
- <slot />
253
+ <div class="header" data-hn-ui-card><slot name="header" /></div>
254
+ <div class="content" data-hn-ui-card><slot /></div>
255
+ <div class="actions" data-hn-ui-card><slot name="actions" /></div>
254
256
  </section>
255
257
  <article
256
258
  v-else-if="checkedProps.as === 'article'"
@@ -268,7 +270,9 @@ const hostState = computed(() =>
268
270
  :data-ui-card-state="hostState || undefined"
269
271
  ref="@html-next/root"
270
272
  >
271
- <slot />
273
+ <div class="header" data-hn-ui-card><slot name="header" /></div>
274
+ <div class="content" data-hn-ui-card><slot /></div>
275
+ <div class="actions" data-hn-ui-card><slot name="actions" /></div>
272
276
  </article>
273
277
  <aside
274
278
  v-else-if="checkedProps.as === 'aside'"
@@ -286,7 +290,9 @@ const hostState = computed(() =>
286
290
  :data-ui-card-state="hostState || undefined"
287
291
  ref="@html-next/root"
288
292
  >
289
- <slot />
293
+ <div class="header" data-hn-ui-card><slot name="header" /></div>
294
+ <div class="content" data-hn-ui-card><slot /></div>
295
+ <div class="actions" data-hn-ui-card><slot name="actions" /></div>
290
296
  </aside>
291
297
  <div
292
298
  v-else
@@ -304,7 +310,9 @@ const hostState = computed(() =>
304
310
  :data-ui-card-state="hostState || undefined"
305
311
  ref="@html-next/root"
306
312
  >
307
- <slot />
313
+ <div class="header" data-hn-ui-card><slot name="header" /></div>
314
+ <div class="content" data-hn-ui-card><slot /></div>
315
+ <div class="actions" data-hn-ui-card><slot name="actions" /></div>
308
316
  </div>
309
317
  </template>
310
318
 
@@ -324,7 +332,11 @@ const hostState = computed(() =>
324
332
  --_ui-selection-context-surface: initial;
325
333
  --_ui-selection-context-border: initial;
326
334
  --_ui-selection-context-text: initial;
327
- display: flex !important;
335
+ --_ui-card-layout: var(--_ui-card-group-layout, flex);
336
+ --_ui-card-region-layout: var(--_ui-card-group-region-layout, contents);
337
+ display: var(--_ui-card-layout) !important;
338
+ grid-template-rows: var(--_ui-card-group-rows, none) !important;
339
+ grid-row: var(--_ui-card-group-span, auto) !important;
328
340
  flex-direction: column !important;
329
341
  gap: var(--ui-space-4) !important;
330
342
  box-sizing: border-box !important;
@@ -336,6 +348,20 @@ const hostState = computed(() =>
336
348
  color: var(--_ui-surface-text, var(--ui-text-primary));
337
349
  }
338
350
 
351
+ :global(.header:where([data-hn-ui-card])),
352
+ :global(.content:where([data-hn-ui-card])),
353
+ :global(.actions:where([data-hn-ui-card])) {
354
+ display: var(--_ui-card-region-layout) !important;
355
+ flex-direction: column !important;
356
+ gap: inherit !important;
357
+ min-inline-size: 0;
358
+ /* Group context stops at this card; nested cards start a fresh layout. */
359
+ --_ui-card-group-layout: initial;
360
+ --_ui-card-group-rows: initial;
361
+ --_ui-card-group-span: initial;
362
+ --_ui-card-group-region-layout: initial;
363
+ }
364
+
339
365
  :global(:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card])) {
340
366
  gap: var(--ui-space-1) !important;
341
367
  padding: var(--ui-space-2) !important;
@@ -0,0 +1,41 @@
1
+ import type { PropType } from 'vue';
2
+ import { type InputBindings } from './props.js';
3
+ declare var __VLS_7: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_7) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ columns: {
9
+ type: PropType<number | null>;
10
+ };
11
+ gap: {
12
+ type: PropType<"xs" | "s" | "m" | "l" | "xl" | null>;
13
+ };
14
+ min: {
15
+ type: PropType<"sm" | "md" | "lg" | null>;
16
+ };
17
+ "\0htmlNextInputStatus": {
18
+ type: PropType<InputBindings>;
19
+ };
20
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ columns: {
22
+ type: PropType<number | null>;
23
+ };
24
+ gap: {
25
+ type: PropType<"xs" | "s" | "m" | "l" | "xl" | null>;
26
+ };
27
+ min: {
28
+ type: PropType<"sm" | "md" | "lg" | null>;
29
+ };
30
+ "\0htmlNextInputStatus": {
31
+ type: PropType<InputBindings>;
32
+ };
33
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ import { t as UiCardGroup_default } from "./chunks/UiCardGroup.js";
2
+ export { UiCardGroup_default as default };
@@ -0,0 +1,168 @@
1
+ <!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
2
+ <script setup lang="ts">
3
+ import { computed, watchSyncEffect } from 'vue'
4
+ import type { PropType } from 'vue'
5
+ import { checkHydratedRoot, nativeAttrs, useReflectedProp } from './host'
6
+ import {
7
+ BINDING_INPUTS_PROP,
8
+ checkedProp,
9
+ checkPropInput,
10
+ type InputBindings,
11
+ READY_INPUT,
12
+ requireInputStatus,
13
+ UNRESOLVED_INPUT,
14
+ vPropValidity,
15
+ vuePropInputs,
16
+ } from './props'
17
+ import UiGrid from './UiGrid.vue'
18
+
19
+ defineOptions({ inheritAttrs: false })
20
+
21
+ const propValidityContract = {
22
+ props: {
23
+ columns: {
24
+ type: { kind: 'terminal', name: 'integer' },
25
+ required: false,
26
+ target: { attribute: 'columns' },
27
+ description:
28
+ 'Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.',
29
+ },
30
+ gap: {
31
+ type: { kind: 'terminal', name: 'keyword' },
32
+ required: false,
33
+ target: { attribute: 'gap' },
34
+ description:
35
+ 'Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.',
36
+ values: ['xs', 's', 'm', 'l', 'xl'],
37
+ default: 'l',
38
+ },
39
+ min: {
40
+ type: { kind: 'terminal', name: 'keyword' },
41
+ required: false,
42
+ target: { attribute: 'min' },
43
+ description:
44
+ 'Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.',
45
+ values: ['sm', 'md', 'lg'],
46
+ default: 'lg',
47
+ },
48
+ },
49
+ } as const
50
+ const props = defineProps({
51
+ columns: { type: null as unknown as PropType<number | null> },
52
+ gap: { type: null as unknown as PropType<'xs' | 's' | 'm' | 'l' | 'xl' | null> },
53
+ min: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null> },
54
+ [BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
55
+ })
56
+ const acceptedProps: Record<string, unknown> = { columns: null, gap: 'l', min: 'lg' }
57
+ const inputTracking = vuePropInputs(
58
+ acceptedProps,
59
+ { gap: 'l', min: 'lg' },
60
+ (name, value, source, values) => {
61
+ switch (name) {
62
+ case 'columns':
63
+ return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
64
+ case 'gap':
65
+ return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
66
+ case 'min':
67
+ return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
68
+ default:
69
+ return { ok: false }
70
+ }
71
+ },
72
+ () => {
73
+ void checkedProps.value
74
+ },
75
+ )
76
+ const propInputs = inputTracking.inputs
77
+ const checkedProps = computed(() => {
78
+ void inputTracking.version.value
79
+ return ({
80
+ columns: propInputs.value<number | null>(
81
+ 'columns',
82
+ props['columns'],
83
+ props[BINDING_INPUTS_PROP],
84
+ ),
85
+ gap: propInputs.value<'xs' | 's' | 'm' | 'l' | 'xl' | null>(
86
+ 'gap',
87
+ props['gap'],
88
+ props[BINDING_INPUTS_PROP],
89
+ ) as 'xs' | 's' | 'm' | 'l' | 'xl',
90
+ min: propInputs.value<'sm' | 'md' | 'lg' | null>(
91
+ 'min',
92
+ props['min'],
93
+ props[BINDING_INPUTS_PROP],
94
+ ) as 'sm' | 'md' | 'lg',
95
+ })
96
+ })
97
+ const inputStatus = (name: string, handlesError: boolean) => {
98
+ void checkedProps.value
99
+ void inputTracking.version.value
100
+ return requireInputStatus(propInputs.status(name), handlesError)
101
+ }
102
+ void checkedProps.value
103
+ watchSyncEffect(() => {
104
+ void checkedProps.value
105
+ })
106
+ const reflectedProp = useReflectedProp()
107
+
108
+ checkHydratedRoot('div', 'ui-card-group')
109
+ </script>
110
+
111
+ <template>
112
+ <div
113
+ class="ui-card-group"
114
+ v-bind="nativeAttrs($attrs)"
115
+ data-hn
116
+ data-hn-ui-card-group
117
+ v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
118
+ :data-ui-card-group-prop-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
119
+ :data-ui-card-group-prop-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
120
+ :data-ui-card-group-prop-min="reflectedProp('min', 'min', checkedProps.min, undefined, false)"
121
+ >
122
+ <UiGrid
123
+ class="ui-grid"
124
+ :gap="checkedProps.gap"
125
+ :min="checkedProps.min"
126
+ :columns="checkedProps.columns"
127
+ v-bind="{
128
+ [BINDING_INPUTS_PROP]: {
129
+ gap: () => ({ value: checkedProps.gap, status: inputStatus('gap', true) }),
130
+ min: () => ({ value: checkedProps.min, status: inputStatus('min', true) }),
131
+ columns: () => ({ value: checkedProps.columns, status: inputStatus('columns', true) }),
132
+ },
133
+ }"
134
+ ><slot /></UiGrid>
135
+ </div>
136
+ </template>
137
+
138
+ <style scoped>
139
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
140
+ @scope (.ui-card-group) to ([data-hn]) {
141
+ :global(:scope:where([data-hn-ui-card-group])) {
142
+ display: block !important;
143
+ min-inline-size: 0;
144
+ max-inline-size: 100%;
145
+ --_ui-card-group-layout: grid;
146
+ --_ui-card-group-rows: subgrid;
147
+ --_ui-card-group-span: span 3;
148
+ --_ui-card-group-region-layout: flex;
149
+ }
150
+ :global(:scope[hidden]:where([data-hn-ui-card-group])) {
151
+ display: none !important;
152
+ }
153
+ }
154
+ @scope ([data-slotted~="ui-card-group"]:not([data-hn])) to ([data-hn], [data-slotted]) {
155
+ :global(:where(.ui-card-group):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-card-group"]))):where([data-hn-ui-card-group])) {
156
+ display: block !important;
157
+ min-inline-size: 0;
158
+ max-inline-size: 100%;
159
+ --_ui-card-group-layout: grid;
160
+ --_ui-card-group-rows: subgrid;
161
+ --_ui-card-group-span: span 3;
162
+ --_ui-card-group-region-layout: flex;
163
+ }
164
+ :global(:where(.ui-card-group)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-card-group"]))):where([data-hn-ui-card-group])) {
165
+ display: none !important;
166
+ }
167
+ }
168
+ </style>
@@ -92,6 +92,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
92
92
  loading: {
93
93
  type: PropType<boolean | null>;
94
94
  };
95
+ maxRows: {
96
+ type: PropType<number | null>;
97
+ };
95
98
  multiple: {
96
99
  type: PropType<boolean | null>;
97
100
  };
@@ -334,6 +337,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
334
337
  loading: {
335
338
  type: PropType<boolean | null>;
336
339
  };
340
+ maxRows: {
341
+ type: PropType<number | null>;
342
+ };
337
343
  multiple: {
338
344
  type: PropType<boolean | null>;
339
345
  };
@@ -10,6 +10,7 @@ import {
10
10
  isInteger,
11
11
  KeyedBoundary,
12
12
  nativeAttrs,
13
+ number,
13
14
  uniqueKeys,
14
15
  useComponentHost,
15
16
  useReflectedProp,
@@ -184,6 +185,14 @@ const propValidityContract = {
184
185
  'Marks the suggestion list busy while the consumer loads options. It announces loading and suppresses the empty state and create offer until cleared.',
185
186
  default: false,
186
187
  },
188
+ maxRows: {
189
+ type: { kind: 'terminal', name: 'integer' },
190
+ required: false,
191
+ target: { attribute: 'maxrows' },
192
+ description:
193
+ '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.\n One or less keeps the single horizontally scrolling row; single-selection fields are unchanged.',
194
+ default: 1,
195
+ },
187
196
  multiple: {
188
197
  type: { kind: 'terminal', name: 'boolean' },
189
198
  required: false,
@@ -318,6 +327,7 @@ const props = defineProps({
318
327
  label: { type: null as unknown as PropType<string | null> },
319
328
  labelVisibility: { type: null as unknown as PropType<'visible' | 'sr-only' | null> },
320
329
  loading: { type: null as unknown as PropType<boolean | null> },
330
+ maxRows: { type: null as unknown as PropType<number | null> },
321
331
  multiple: { type: null as unknown as PropType<boolean | null> },
322
332
  muted: { type: null as unknown as PropType<boolean | null> },
323
333
  name: { type: null as unknown as PropType<string | null> },
@@ -348,6 +358,7 @@ const acceptedProps: Record<string, unknown> = {
348
358
  label: '',
349
359
  labelVisibility: 'visible',
350
360
  loading: false,
361
+ maxRows: 1,
351
362
  multiple: false,
352
363
  muted: false,
353
364
  name: '',
@@ -376,6 +387,7 @@ const inputTracking = vuePropInputs(acceptedProps, {
376
387
  label: '',
377
388
  labelVisibility: 'visible',
378
389
  loading: false,
390
+ maxRows: 1,
379
391
  multiple: false,
380
392
  muted: false,
381
393
  name: '',
@@ -455,6 +467,8 @@ const inputTracking = vuePropInputs(acceptedProps, {
455
467
  return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
456
468
  case 'loading':
457
469
  return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
470
+ case 'maxRows':
471
+ return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
458
472
  case 'multiple':
459
473
  return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
460
474
  case 'muted':
@@ -581,6 +595,11 @@ const checkedProps = computed(() => {
581
595
  props['loading'],
582
596
  props[BINDING_INPUTS_PROP],
583
597
  ) as boolean,
598
+ maxRows: propInputs.value<number | null>(
599
+ 'maxRows',
600
+ props['maxRows'],
601
+ props[BINDING_INPUTS_PROP],
602
+ ) as number,
584
603
  multiple: propInputs.value<boolean | null>(
585
604
  'multiple',
586
605
  props['multiple'],
@@ -1730,6 +1749,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
1730
1749
  'label',
1731
1750
  'labelVisibility',
1732
1751
  'loading',
1752
+ 'maxRows',
1733
1753
  'multiple',
1734
1754
  'muted',
1735
1755
  'name',
@@ -1803,6 +1823,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
1803
1823
  :data-ui-combobox-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
1804
1824
  :data-ui-combobox-prop-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
1805
1825
  :data-ui-combobox-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
1826
+ :data-ui-combobox-prop-max-rows="reflectedProp('maxRows', 'max-rows', checkedProps.maxRows, undefined, false)"
1806
1827
  :data-ui-combobox-prop-multiple="reflectedProp('multiple', 'multiple', checkedProps.multiple, undefined, false)"
1807
1828
  :data-ui-combobox-prop-muted="reflectedProp('muted', 'muted', checkedProps.muted, undefined, false)"
1808
1829
  :data-ui-combobox-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
@@ -1827,7 +1848,17 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
1827
1848
  *</template></label>
1828
1849
  <div class="control" data-hn-ui-combobox>
1829
1850
  <div class="field" data-hn-ui-combobox ref="fieldElement">
1830
- <div class="entry" data-hn-ui-combobox>
1851
+ <div
1852
+ class="entry"
1853
+ data-hn-ui-combobox
1854
+ :class="{
1855
+ multiline: checkedProps.multiple
1856
+ && (number(checkedProps.maxRows) === undefined || number(1) === undefined
1857
+ ? undefined
1858
+ : number(checkedProps.maxRows)! > number(1)!),
1859
+ }"
1860
+ :style="{ '--_max-rows': checkedProps.maxRows?.toString() }"
1861
+ >
1831
1862
  <span class="start" data-hn-ui-combobox><slot name="start" /></span>{{ ' ' }}<template
1832
1863
  v-if="checkedProps.multiple"
1833
1864
  >{{ ' ' }}<KeyedBoundary><button
@@ -2080,6 +2111,8 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2080
2111
  while the clear and disclosure controls remain fixed at the end of the field. */
2081
2112
  /* Size variants keep their control height as selections are added. */
2082
2113
  /* A large multiple field starts at the large control height, as sm starts at the small one. */
2114
+ /* Grow through the requested rows, then keep the typing row in a bounded field.
2115
+ The entry owns its scroll; clear/disclosure actions remain outside it. */
2083
2116
 
2084
2117
  /* A component that sets its display still honours the hidden attribute on its root. */
2085
2118
 
@@ -2378,6 +2411,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2378
2411
  }
2379
2412
  }
2380
2413
  :global(:scope[data-ui-combobox-state~="multiple"] .field:where([data-hn-ui-combobox])) {
2414
+ --_item-row: 1.75rem;
2381
2415
  align-items: center !important;
2382
2416
  min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
2383
2417
  padding: var(--ui-space-1) !important;
@@ -2396,28 +2430,45 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2396
2430
  max-block-size: none;
2397
2431
  flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
2398
2432
  width: auto;
2399
- min-block-size: 1.75rem;
2433
+ min-block-size: var(--_item-row);
2400
2434
  padding: var(--ui-space-0-5) var(--ui-space-1) !important;
2401
2435
  }
2402
2436
  :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
2403
2437
  .field:where([data-hn-ui-combobox])) {
2438
+ --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2404
2439
  min-block-size: 0;
2405
2440
  padding: var(--ui-space-0-5) !important;
2406
2441
  }
2407
2442
  :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
2408
2443
  input:where([data-hn-ui-combobox])) {
2409
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2444
+ min-block-size: var(--_item-row);
2410
2445
  padding: 0 var(--ui-space-1) !important;
2411
2446
  }
2412
2447
  :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
2413
2448
  .field:where([data-hn-ui-combobox])) {
2449
+ --_item-row: calc(
2450
+ var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2451
+ );
2414
2452
  min-block-size: 0;
2415
2453
  }
2416
2454
  :global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
2417
2455
  input:where([data-hn-ui-combobox])) {
2418
- min-block-size: calc(
2419
- var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2456
+ min-block-size: var(--_item-row);
2457
+ }
2458
+ :global(:scope[data-ui-combobox-state~="multiple"]
2459
+ .entry.multiline:where([data-hn-ui-combobox])) {
2460
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
2461
+ --_entry-row: max(1.5rem, var(--_item-row));
2462
+ flex-wrap: wrap !important;
2463
+ align-content: flex-start !important;
2464
+ max-block-size: calc(
2465
+ var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
2420
2466
  );
2467
+ overflow-x: hidden;
2468
+ overflow-y: auto;
2469
+ }
2470
+ :global(.entry.multiline .item:where([data-hn-ui-combobox])) {
2471
+ min-block-size: var(--_entry-row);
2421
2472
  }
2422
2473
  :global(.item:where([data-hn-ui-combobox])) {
2423
2474
  appearance: none;
@@ -2753,6 +2804,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2753
2804
  }
2754
2805
  :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2755
2806
  .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2807
+ --_item-row: 1.75rem;
2756
2808
  align-items: center !important;
2757
2809
  min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
2758
2810
  padding: var(--ui-space-1) !important;
@@ -2773,28 +2825,45 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
2773
2825
  max-block-size: none;
2774
2826
  flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
2775
2827
  width: auto;
2776
- min-block-size: 1.75rem;
2828
+ min-block-size: var(--_item-row);
2777
2829
  padding: var(--ui-space-0-5) var(--ui-space-1) !important;
2778
2830
  }
2779
2831
  :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2780
2832
  .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2833
+ --_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2781
2834
  min-block-size: 0;
2782
2835
  padding: var(--ui-space-0-5) !important;
2783
2836
  }
2784
2837
  :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
2785
2838
  input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2786
- min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
2839
+ min-block-size: var(--_item-row);
2787
2840
  padding: 0 var(--ui-space-1) !important;
2788
2841
  }
2789
2842
  :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2790
2843
  .field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2844
+ --_item-row: calc(
2845
+ var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2846
+ );
2791
2847
  min-block-size: 0;
2792
2848
  }
2793
2849
  :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
2794
2850
  input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2795
- min-block-size: calc(
2796
- var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
2851
+ min-block-size: var(--_item-row);
2852
+ }
2853
+ :global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
2854
+ .entry.multiline:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
2855
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
2856
+ --_entry-row: max(1.5rem, var(--_item-row));
2857
+ flex-wrap: wrap !important;
2858
+ align-content: flex-start !important;
2859
+ max-block-size: calc(
2860
+ var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
2797
2861
  );
2862
+ overflow-x: hidden;
2863
+ overflow-y: auto;
2864
+ }
2865
+ :global(.entry.multiline:where(:scope, :scope *) .item:where([data-hn-ui-combobox])) {
2866
+ min-block-size: var(--_entry-row);
2798
2867
  }
2799
2868
  :global(.item:where(:scope, :scope *):where([data-hn-ui-combobox])) {
2800
2869
  appearance: none;
@@ -291,7 +291,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
291
291
  </template>
292
292
 
293
293
  <style scoped>
294
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
294
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
295
295
  /* One live navigation stays inline until its native mobile dialog opens. */
296
296
  /* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
297
297
  @scope (.ui-site-header) to ([data-hn]) {
@@ -331,18 +331,20 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
331
331
  display: flex !important;
332
332
  flex: 1 1 0;
333
333
  flex-wrap: wrap !important;
334
- align-items: baseline !important;
334
+ align-items: center !important;
335
335
  gap: var(--ui-space-2) var(--ui-space-6) !important;
336
336
  min-inline-size: 0;
337
337
  }
338
338
  :global(.brand:where([data-hn-ui-site-header])) {
339
+ display: flex !important;
340
+ align-items: center !important;
339
341
  min-inline-size: 0;
340
342
  font-size: var(--ui-font-size-lg);
341
343
  font-weight: var(--ui-font-bold);
342
344
  }
343
345
  :global(.brand > :where(:not([data-hn-ui-site-header])):is(a)) {
344
346
  display: inline-flex !important;
345
- align-items: baseline !important;
347
+ align-items: center !important;
346
348
  gap: var(--ui-space-3) !important;
347
349
  min-inline-size: 0;
348
350
  max-inline-size: 100%;
@@ -352,7 +354,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
352
354
  :global(.navigation:where([data-hn-ui-site-header])) {
353
355
  display: flex !important;
354
356
  flex-wrap: wrap !important;
355
- align-items: baseline !important;
357
+ align-items: center !important;
356
358
  gap: var(--ui-space-2) var(--ui-space-5) !important;
357
359
  min-inline-size: 0;
358
360
  font-size: var(--ui-font-size-sm);
@@ -397,7 +399,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
397
399
  :global(.inline-navigation:where([data-hn-ui-site-header])) {
398
400
  position: static;
399
401
  display: flex !important;
400
- align-items: baseline !important;
402
+ align-items: center !important;
401
403
  min-inline-size: 0;
402
404
  max-inline-size: none;
403
405
  margin: 0 !important;
@@ -641,11 +643,13 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
641
643
  display: flex !important;
642
644
  flex: 1 1 0;
643
645
  flex-wrap: wrap !important;
644
- align-items: baseline !important;
646
+ align-items: center !important;
645
647
  gap: var(--ui-space-2) var(--ui-space-6) !important;
646
648
  min-inline-size: 0;
647
649
  }
648
650
  :global(.brand:where(:scope, :scope *):where([data-hn-ui-site-header])) {
651
+ display: flex !important;
652
+ align-items: center !important;
649
653
  min-inline-size: 0;
650
654
  font-size: var(--ui-font-size-lg);
651
655
  font-weight: var(--ui-font-bold);
@@ -653,7 +657,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
653
657
  :global(.navigation:where(:scope, :scope *):where([data-hn-ui-site-header])) {
654
658
  display: flex !important;
655
659
  flex-wrap: wrap !important;
656
- align-items: baseline !important;
660
+ align-items: center !important;
657
661
  gap: var(--ui-space-2) var(--ui-space-5) !important;
658
662
  min-inline-size: 0;
659
663
  font-size: var(--ui-font-size-sm);
@@ -685,7 +689,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
685
689
  :global(.inline-navigation:where(:scope, :scope *):where([data-hn-ui-site-header])) {
686
690
  position: static;
687
691
  display: flex !important;
688
- align-items: baseline !important;
692
+ align-items: center !important;
689
693
  min-inline-size: 0;
690
694
  max-inline-size: none;
691
695
  margin: 0 !important;
package/vue/UiTopBar.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { PropType } from 'vue';
2
+ import { type InputBindings } from './props.js';
1
3
  declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
2
4
  type __VLS_Slots = {} & {
3
5
  leading?: (props: typeof __VLS_1) => any;
@@ -8,7 +10,21 @@ type __VLS_Slots = {} & {
8
10
  } & {
9
11
  actions?: (props: typeof __VLS_7) => any;
10
12
  };
11
- declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
+ titleFor: {
15
+ type: PropType<string | null>;
16
+ };
17
+ "\0htmlNextInputStatus": {
18
+ type: PropType<InputBindings>;
19
+ };
20
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ titleFor: {
22
+ type: PropType<string | null>;
23
+ };
24
+ "\0htmlNextInputStatus": {
25
+ type: PropType<InputBindings>;
26
+ };
27
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
29
  declare const _default: typeof __VLS_export;
14
30
  export default _default;