@threadlabs/looma 0.1.27 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RLELJVBL.js → chunk-JXSHRMYW.js} +32 -33
- package/dist/{chunk-YHXJC5M5.js → chunk-M7FPK6GN.js} +17 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/looma.cjs.js +1 -1
- package/dist/cjs/{positioning-i0WrCAdF.js → positioning-D5q9DM-0.js} +19 -12
- package/dist/cjs/ui-affordance-scope.cjs.entry.js +1 -1
- package/dist/cjs/ui-chip_2.cjs.entry.js +190 -498
- package/dist/cjs/ui-combobox.cjs.entry.js +708 -0
- package/dist/cjs/ui-context-menu.cjs.entry.js +2 -2
- package/dist/cjs/ui-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ui-disclosure.cjs.entry.js +1 -1
- package/dist/cjs/ui-editable.cjs.entry.js +3 -3
- package/dist/cjs/ui-floating-action-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-form-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ui-input.cjs.entry.js +1 -1
- package/dist/cjs/ui-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-menu.cjs.entry.js +3 -3
- package/dist/cjs/ui-popover.cjs.entry.js +3 -3
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio.cjs.entry.js +1 -1
- package/dist/cjs/ui-search-result-row.cjs.entry.js +1 -1
- package/dist/cjs/ui-search-shell.cjs.entry.js +1 -1
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +2 -2
- package/dist/cjs/ui-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ui-toast-region.cjs.entry.js +2 -2
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-tree-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-tree.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/ui-combobox/ui-combobox.css +23 -0
- package/dist/collection/components/ui-combobox/ui-combobox.js +298 -21
- package/dist/collection/components/ui-context-menu/ui-context-menu.js +1 -1
- package/dist/collection/components/ui-dialog/ui-dialog.css +1 -0
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-disclosure/ui-disclosure.js +1 -1
- package/dist/collection/components/ui-editable/ui-editable.js +3 -3
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +1 -1
- package/dist/collection/components/ui-form-field/ui-form-field.js +1 -1
- package/dist/collection/components/ui-icon-button/ui-icon-button.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -1
- package/dist/collection/components/ui-menu/ui-menu.css +7 -2
- package/dist/collection/components/ui-menu/ui-menu.js +1 -1
- package/dist/collection/components/ui-menu-item/ui-menu-item.js +1 -1
- package/dist/collection/components/ui-popover/ui-popover.css +6 -2
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-radio/ui-radio.js +1 -1
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +1 -1
- package/dist/collection/components/ui-search-shell/ui-search-shell.js +1 -1
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-switch/ui-switch.js +2 -2
- package/dist/collection/components/ui-tabs/ui-tabs.js +1 -1
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-toast-region/ui-toast-region.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/collection/components/ui-top-bar/ui-top-bar.js +1 -1
- package/dist/collection/components/ui-tree/ui-tree.js +1 -1
- package/dist/collection/components/ui-tree-item/ui-tree-item.js +2 -2
- package/dist/collection/overlay/positioning.js +21 -14
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DZRtXH6j.js → p-DWN2m6ta.js} +1 -1
- package/dist/components/p-DYiNETk6.js +1 -0
- package/dist/components/p-Drw41pSY.js +1 -0
- package/dist/components/ui-affordance-scope.js +1 -1
- package/dist/components/ui-combobox.js +1 -1
- package/dist/components/ui-context-menu.js +1 -1
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-disclosure.js +1 -1
- package/dist/components/ui-editable.js +1 -1
- package/dist/components/ui-floating-action-button.js +1 -1
- package/dist/components/ui-form-field.js +1 -1
- package/dist/components/ui-icon-button.js +1 -1
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-menu-item.js +1 -1
- package/dist/components/ui-menu.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-radio.js +1 -1
- package/dist/components/ui-search-result-row.js +1 -1
- package/dist/components/ui-search-shell.js +1 -1
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-toast-region.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/components/ui-top-bar.js +1 -1
- package/dist/components/ui-tree-item.js +1 -1
- package/dist/components/ui-tree.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/looma.js +1 -1
- package/dist/esm/{positioning-Bu0dmLBE.js → positioning-Drmwg-C1.js} +19 -12
- package/dist/esm/ui-affordance-scope.entry.js +1 -1
- package/dist/esm/ui-chip_2.entry.js +193 -501
- package/dist/esm/ui-combobox.entry.js +706 -0
- package/dist/esm/ui-context-menu.entry.js +2 -2
- package/dist/esm/ui-dialog.entry.js +2 -2
- package/dist/esm/ui-disclosure.entry.js +1 -1
- package/dist/esm/ui-editable.entry.js +3 -3
- package/dist/esm/ui-floating-action-button.entry.js +1 -1
- package/dist/esm/ui-form-field.entry.js +1 -1
- package/dist/esm/ui-icon-button.entry.js +1 -1
- package/dist/esm/ui-input.entry.js +1 -1
- package/dist/esm/ui-menu-item.entry.js +1 -1
- package/dist/esm/ui-menu.entry.js +3 -3
- package/dist/esm/ui-popover.entry.js +3 -3
- package/dist/esm/ui-radio-group.entry.js +1 -1
- package/dist/esm/ui-radio.entry.js +1 -1
- package/dist/esm/ui-search-result-row.entry.js +1 -1
- package/dist/esm/ui-search-shell.entry.js +1 -1
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +2 -2
- package/dist/esm/ui-tabs.entry.js +1 -1
- package/dist/esm/ui-textarea.entry.js +1 -1
- package/dist/esm/ui-toast-region.entry.js +2 -2
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-tree-item.entry.js +2 -2
- package/dist/esm/ui-tree.entry.js +1 -1
- package/dist/index.cjs +525 -550
- package/dist/index.js +27 -14
- package/dist/looma/looma.esm.js +1 -1
- package/dist/looma/{p-9a82c523.entry.js → p-1249a806.entry.js} +1 -1
- package/dist/looma/p-1c00670f.entry.js +1 -0
- package/dist/looma/p-22842f8c.entry.js +1 -0
- package/dist/looma/{p-1e1de77f.entry.js → p-2915d5c0.entry.js} +1 -1
- package/dist/looma/{p-72338f53.entry.js → p-32c85198.entry.js} +1 -1
- package/dist/looma/{p-b75aff63.entry.js → p-37ec2b4b.entry.js} +1 -1
- package/dist/looma/{p-2f3c1b57.entry.js → p-3b2961a6.entry.js} +1 -1
- package/dist/looma/{p-e07e6ac2.entry.js → p-3f60f4c8.entry.js} +1 -1
- package/dist/looma/{p-9551ebf6.entry.js → p-424d6719.entry.js} +1 -1
- package/dist/looma/{p-6cc3180b.entry.js → p-4caccfce.entry.js} +1 -1
- package/dist/looma/p-55e06e2e.entry.js +1 -0
- package/dist/looma/{p-a939c00f.entry.js → p-56dac38a.entry.js} +1 -1
- package/dist/looma/p-5cbbf7a0.entry.js +1 -0
- package/dist/looma/{p-f431dc13.entry.js → p-6f20d470.entry.js} +1 -1
- package/dist/looma/{p-b68762f2.entry.js → p-7c0b5364.entry.js} +1 -1
- package/dist/looma/{p-e82f104c.entry.js → p-8bdd9495.entry.js} +1 -1
- package/dist/looma/{p-df696cca.entry.js → p-9cfbf722.entry.js} +1 -1
- package/dist/looma/p-Drmwg-C1.js +1 -0
- package/dist/looma/{p-607c3056.entry.js → p-b6ede6bb.entry.js} +1 -1
- package/dist/looma/p-b6fb6ba3.entry.js +1 -0
- package/dist/looma/{p-da6e2d01.entry.js → p-b76e2111.entry.js} +1 -1
- package/dist/looma/{p-1a12eb5c.entry.js → p-d372b0db.entry.js} +1 -1
- package/dist/looma/p-d46317e0.entry.js +1 -0
- package/dist/looma/{p-20387ffa.entry.js → p-d4825822.entry.js} +1 -1
- package/dist/looma/{p-8a5e3fe1.entry.js → p-d5c3954f.entry.js} +1 -1
- package/dist/looma/p-e604e906.entry.js +1 -0
- package/dist/looma/{p-e406656e.entry.js → p-f1f7c5cb.entry.js} +1 -1
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +35 -4
- package/dist/types/components.d.ts +56 -153
- package/dist/{ui-affordance-scope.entry-7H6GIQEK.js → ui-affordance-scope.entry-VR7FLAWG.js} +2 -2
- package/dist/{ui-avatar-group.entry-QB25IUWA.js → ui-avatar-group.entry-L3UKOY3U.js} +1 -1
- package/dist/{ui-avatar.entry-L377CWPR.js → ui-avatar.entry-VM5OHEFQ.js} +1 -1
- package/dist/{ui-badge.entry-QHC3KI5S.js → ui-badge.entry-ZTM4OPUD.js} +1 -1
- package/dist/{ui-button.entry-MZGTPU22.js → ui-button.entry-CIPUSV5B.js} +1 -1
- package/dist/{ui-callout.entry-2D4LO74K.js → ui-callout.entry-OBFCI2O7.js} +1 -1
- package/dist/{ui-checkbox.entry-B2O5DREC.js → ui-checkbox.entry-XT6ET56H.js} +1 -1
- package/dist/{ui-tooltip.entry-VG4AWEBD.js → ui-chip_2.entry-32SHCLV6.js} +19 -4
- package/dist/{ui-chip_2.entry-OOSON72O.js → ui-combobox.entry-ONBBPQ2C.js} +170 -31
- package/dist/{ui-context-menu.entry-UY76G7HM.js → ui-context-menu.entry-RXNUOK24.js} +3 -3
- package/dist/{ui-dialog.entry-345V7IJ3.js → ui-dialog.entry-IJXNUARC.js} +3 -3
- package/dist/{ui-disclosure.entry-RUU7VNDN.js → ui-disclosure.entry-5QS7UDRH.js} +2 -2
- package/dist/{ui-editable.entry-WWFFHOMP.js → ui-editable.entry-D7LOQN2H.js} +3 -3
- package/dist/{ui-floating-action-button.entry-Y2TLDJO4.js → ui-floating-action-button.entry-XQZCTZQT.js} +2 -2
- package/dist/{ui-form-field.entry-C63GZMQR.js → ui-form-field.entry-A654LJZE.js} +2 -2
- package/dist/{ui-icon-button.entry-35MJYYEI.js → ui-icon-button.entry-MJ7F7ZIH.js} +2 -2
- package/dist/{ui-input.entry-3FAXEH5M.js → ui-input.entry-B2XM7JQU.js} +2 -2
- package/dist/{ui-menu-item.entry-3J42XLCJ.js → ui-menu-item.entry-JULYSFVW.js} +2 -2
- package/dist/{ui-menu.entry-YDABO3OO.js → ui-menu.entry-ORRWW7HD.js} +4 -4
- package/dist/{ui-popover.entry-YP7R6FQO.js → ui-popover.entry-W67V4UPA.js} +4 -4
- package/dist/{ui-radio-group.entry-TYXAN7G5.js → ui-radio-group.entry-KCFOR27M.js} +2 -2
- package/dist/{ui-radio.entry-JW7HX3LW.js → ui-radio.entry-I2P4V5E3.js} +2 -2
- package/dist/{ui-search-result-row.entry-MKQYGNFO.js → ui-search-result-row.entry-GHODLSLR.js} +2 -2
- package/dist/{ui-search-shell.entry-KHIQTT4J.js → ui-search-shell.entry-PDB5UN4B.js} +2 -2
- package/dist/{ui-select.entry-R235Y3IL.js → ui-select.entry-D3CZHCKB.js} +2 -2
- package/dist/{ui-switch.entry-BJ6FIEPB.js → ui-switch.entry-WUDRL4H5.js} +3 -3
- package/dist/{ui-tabs.entry-ZBP3FLR2.js → ui-tabs.entry-MW64GKIJ.js} +2 -2
- package/dist/{ui-textarea.entry-2YW7TCEU.js → ui-textarea.entry-VHRBYY6G.js} +2 -2
- package/dist/{ui-toast-region.entry-ZSCMMIKQ.js → ui-toast-region.entry-ET75RWYP.js} +3 -3
- package/dist/{ui-top-bar.entry-CZW3MLC6.js → ui-top-bar.entry-QIYA3LD3.js} +2 -2
- package/dist/{ui-tree-item.entry-CU2SWAOK.js → ui-tree-item.entry-BDB7VEUS.js} +3 -3
- package/dist/{ui-tree.entry-M6KXK7GJ.js → ui-tree.entry-GSC7BPRN.js} +2 -2
- package/package.json +1 -1
- package/styles.css +6 -4
- package/vue/{chunk-2DDIBSFD.js → chunk-ROMBQS2L.js} +32 -89
- package/vue/editor/index.js +1 -1
- package/vue/index.d.ts +30 -107
- package/vue/index.js +1 -3
- package/dist/cjs/ui-multi-combobox.cjs.entry.js +0 -190
- package/dist/cjs/ui-tooltip.cjs.entry.js +0 -241
- package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.css +0 -33
- package/dist/collection/components/ui-multi-combobox/ui-multi-combobox.js +0 -553
- package/dist/components/p-BKzrrab4.js +0 -1
- package/dist/components/p-D0wBI-9r.js +0 -1
- package/dist/components/p-DOulVJT7.js +0 -1
- package/dist/components/ui-multi-combobox.d.ts +0 -11
- package/dist/components/ui-multi-combobox.js +0 -1
- package/dist/esm/ui-multi-combobox.entry.js +0 -188
- package/dist/esm/ui-tooltip.entry.js +0 -239
- package/dist/looma/p-071c139c.entry.js +0 -1
- package/dist/looma/p-0fd60103.entry.js +0 -1
- package/dist/looma/p-4fc9917f.entry.js +0 -1
- package/dist/looma/p-66c6b6dd.entry.js +0 -1
- package/dist/looma/p-77dcfa6f.entry.js +0 -1
- package/dist/looma/p-85a6716e.entry.js +0 -1
- package/dist/looma/p-8f102407.entry.js +0 -1
- package/dist/looma/p-Bu0dmLBE.js +0 -1
- package/dist/looma/p-caa37be2.entry.js +0 -1
- package/dist/types/components/ui-multi-combobox/ui-multi-combobox.d.ts +0 -51
- package/dist/ui-multi-combobox.entry-XXLS4V3I.js +0 -196
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { CalloutTone } from "./components/ui-callout/ui-callout";
|
|
9
|
+
import { MultiComboboxCreate, MultiComboboxItem, MultiComboboxItemChange } from "./field/multi-combobox";
|
|
9
10
|
import { ComboboxChange, ComboboxConfig, ComboboxOption, ComboboxValidationState } from "./field/combobox";
|
|
10
11
|
import { EditableChange } from "./field/editable";
|
|
11
12
|
import { AnchoredPlacement } from "./overlay/positioning";
|
|
12
|
-
import { MultiComboboxCreate, MultiComboboxItem, MultiComboboxItemChange } from "./field/multi-combobox";
|
|
13
13
|
export { CalloutTone } from "./components/ui-callout/ui-callout";
|
|
14
|
+
export { MultiComboboxCreate, MultiComboboxItem, MultiComboboxItemChange } from "./field/multi-combobox";
|
|
14
15
|
export { ComboboxChange, ComboboxConfig, ComboboxOption, ComboboxValidationState } from "./field/combobox";
|
|
15
16
|
export { EditableChange } from "./field/editable";
|
|
16
17
|
export { AnchoredPlacement } from "./overlay/positioning";
|
|
17
|
-
export { MultiComboboxCreate, MultiComboboxItem, MultiComboboxItemChange } from "./field/multi-combobox";
|
|
18
18
|
export namespace Components {
|
|
19
19
|
interface UiAffordanceScope {
|
|
20
20
|
/**
|
|
@@ -118,6 +118,8 @@ export namespace Components {
|
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* A single editable field with contextual suggestions, optional help and field validation.
|
|
121
|
+
* With `multiple`, it becomes a multi-value tag field: `value` holds the selected
|
|
122
|
+
* items, chips render before the cursor, and add/remove/create item events fire.
|
|
121
123
|
*/
|
|
122
124
|
interface UiCombobox {
|
|
123
125
|
/**
|
|
@@ -161,6 +163,11 @@ export namespace Components {
|
|
|
161
163
|
* @default 'visible'
|
|
162
164
|
*/
|
|
163
165
|
"labelVisibility": 'visible' | 'sr-only';
|
|
166
|
+
/**
|
|
167
|
+
* Render selected values as removable chips before the cursor. `value` becomes the item list.
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
"multiple": boolean;
|
|
164
171
|
/**
|
|
165
172
|
* @default ''
|
|
166
173
|
*/
|
|
@@ -185,14 +192,19 @@ export namespace Components {
|
|
|
185
192
|
* @default 'md'
|
|
186
193
|
*/
|
|
187
194
|
"size": 'sm' | 'md';
|
|
195
|
+
/**
|
|
196
|
+
* Characters that commit the current query and leave the input ready for the next item (multiple only).
|
|
197
|
+
* @default []
|
|
198
|
+
*/
|
|
199
|
+
"tokenSeparators": readonly string[];
|
|
188
200
|
/**
|
|
189
201
|
* Validate for submission. Caller submits only non-pending, non-error output.
|
|
190
202
|
*/
|
|
191
203
|
"validate": () => Promise<ComboboxValidationState>;
|
|
192
204
|
/**
|
|
193
|
-
* Controlled canonical value. Undefined selects uncontrolled mode; null means no selection.
|
|
205
|
+
* Controlled canonical value. Undefined selects uncontrolled mode; null means no selection. With `multiple`, this is the controlled list of selected items instead.
|
|
194
206
|
*/
|
|
195
|
-
"value"?: string | null;
|
|
207
|
+
"value"?: string | null | readonly MultiComboboxItem[];
|
|
196
208
|
}
|
|
197
209
|
interface UiContextMenu {
|
|
198
210
|
/**
|
|
@@ -362,54 +374,6 @@ export namespace Components {
|
|
|
362
374
|
*/
|
|
363
375
|
"value": string;
|
|
364
376
|
}
|
|
365
|
-
/**
|
|
366
|
-
* A multi-value combobox with removable, customizable selected items.
|
|
367
|
-
*/
|
|
368
|
-
interface UiMultiCombobox {
|
|
369
|
-
/**
|
|
370
|
-
* @default {}
|
|
371
|
-
*/
|
|
372
|
-
"config": ComboboxConfig;
|
|
373
|
-
/**
|
|
374
|
-
* @default ''
|
|
375
|
-
*/
|
|
376
|
-
"defaultQuery": string;
|
|
377
|
-
/**
|
|
378
|
-
* @default false
|
|
379
|
-
*/
|
|
380
|
-
"disabled": boolean;
|
|
381
|
-
"focusInput": () => Promise<void>;
|
|
382
|
-
/**
|
|
383
|
-
* @default []
|
|
384
|
-
*/
|
|
385
|
-
"items": readonly MultiComboboxItem[];
|
|
386
|
-
/**
|
|
387
|
-
* @default ''
|
|
388
|
-
*/
|
|
389
|
-
"label": string;
|
|
390
|
-
/**
|
|
391
|
-
* @default ''
|
|
392
|
-
*/
|
|
393
|
-
"name": string;
|
|
394
|
-
/**
|
|
395
|
-
* @default ''
|
|
396
|
-
*/
|
|
397
|
-
"placeholder": string;
|
|
398
|
-
"query"?: string;
|
|
399
|
-
/**
|
|
400
|
-
* @default false
|
|
401
|
-
*/
|
|
402
|
-
"readOnly": boolean;
|
|
403
|
-
/**
|
|
404
|
-
* @default false
|
|
405
|
-
*/
|
|
406
|
-
"required": boolean;
|
|
407
|
-
/**
|
|
408
|
-
* Characters that commit the current query and leave the input ready for the next item.
|
|
409
|
-
* @default []
|
|
410
|
-
*/
|
|
411
|
-
"tokenSeparators": readonly string[];
|
|
412
|
-
}
|
|
413
377
|
interface UiPopover {
|
|
414
378
|
/**
|
|
415
379
|
* @default false
|
|
@@ -690,10 +654,6 @@ export interface UiEditableCustomEvent<T> extends CustomEvent<T> {
|
|
|
690
654
|
detail: T;
|
|
691
655
|
target: HTMLUiEditableElement;
|
|
692
656
|
}
|
|
693
|
-
export interface UiMultiComboboxCustomEvent<T> extends CustomEvent<T> {
|
|
694
|
-
detail: T;
|
|
695
|
-
target: HTMLUiMultiComboboxElement;
|
|
696
|
-
}
|
|
697
657
|
export interface UiTooltipCustomEvent<T> extends CustomEvent<T> {
|
|
698
658
|
detail: T;
|
|
699
659
|
target: HTMLUiTooltipElement;
|
|
@@ -755,15 +715,20 @@ declare global {
|
|
|
755
715
|
};
|
|
756
716
|
interface HTMLUiComboboxElementEventMap {
|
|
757
717
|
"query-change": { query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' };
|
|
758
|
-
"value-change": ComboboxChange;
|
|
718
|
+
"value-change": ComboboxChange | readonly MultiComboboxItem[];
|
|
759
719
|
"free-entry": ComboboxChange;
|
|
760
720
|
"create-entry": ComboboxChange;
|
|
761
721
|
"dependency-invalidate": ComboboxChange;
|
|
762
722
|
"validation-change": ComboboxValidationState;
|
|
763
723
|
"options-change": readonly ComboboxOption[];
|
|
724
|
+
"add-item": MultiComboboxItemChange;
|
|
725
|
+
"remove-item": MultiComboboxItemChange;
|
|
726
|
+
"create-item": MultiComboboxCreate;
|
|
764
727
|
}
|
|
765
728
|
/**
|
|
766
729
|
* A single editable field with contextual suggestions, optional help and field validation.
|
|
730
|
+
* With `multiple`, it becomes a multi-value tag field: `value` holds the selected
|
|
731
|
+
* items, chips render before the cursor, and add/remove/create item events fire.
|
|
767
732
|
*/
|
|
768
733
|
interface HTMLUiComboboxElement extends Components.UiCombobox, HTMLStencilElement {
|
|
769
734
|
addEventListener<K extends keyof HTMLUiComboboxElementEventMap>(type: K, listener: (this: HTMLUiComboboxElement, ev: UiComboboxCustomEvent<HTMLUiComboboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -853,30 +818,6 @@ declare global {
|
|
|
853
818
|
prototype: HTMLUiMenuItemElement;
|
|
854
819
|
new (): HTMLUiMenuItemElement;
|
|
855
820
|
};
|
|
856
|
-
interface HTMLUiMultiComboboxElementEventMap {
|
|
857
|
-
"query-change": { query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' };
|
|
858
|
-
"add-item": MultiComboboxItemChange;
|
|
859
|
-
"remove-item": MultiComboboxItemChange;
|
|
860
|
-
"create-item": MultiComboboxCreate;
|
|
861
|
-
"options-change": readonly ComboboxOption[];
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* A multi-value combobox with removable, customizable selected items.
|
|
865
|
-
*/
|
|
866
|
-
interface HTMLUiMultiComboboxElement extends Components.UiMultiCombobox, HTMLStencilElement {
|
|
867
|
-
addEventListener<K extends keyof HTMLUiMultiComboboxElementEventMap>(type: K, listener: (this: HTMLUiMultiComboboxElement, ev: UiMultiComboboxCustomEvent<HTMLUiMultiComboboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
868
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
869
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
870
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
871
|
-
removeEventListener<K extends keyof HTMLUiMultiComboboxElementEventMap>(type: K, listener: (this: HTMLUiMultiComboboxElement, ev: UiMultiComboboxCustomEvent<HTMLUiMultiComboboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
872
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
873
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
874
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
875
|
-
}
|
|
876
|
-
var HTMLUiMultiComboboxElement: {
|
|
877
|
-
prototype: HTMLUiMultiComboboxElement;
|
|
878
|
-
new (): HTMLUiMultiComboboxElement;
|
|
879
|
-
};
|
|
880
821
|
interface HTMLUiPopoverElement extends Components.UiPopover, HTMLStencilElement {
|
|
881
822
|
}
|
|
882
823
|
var HTMLUiPopoverElement: {
|
|
@@ -993,7 +934,6 @@ declare global {
|
|
|
993
934
|
"ui-input": HTMLUiInputElement;
|
|
994
935
|
"ui-menu": HTMLUiMenuElement;
|
|
995
936
|
"ui-menu-item": HTMLUiMenuItemElement;
|
|
996
|
-
"ui-multi-combobox": HTMLUiMultiComboboxElement;
|
|
997
937
|
"ui-popover": HTMLUiPopoverElement;
|
|
998
938
|
"ui-radio": HTMLUiRadioElement;
|
|
999
939
|
"ui-radio-group": HTMLUiRadioGroupElement;
|
|
@@ -1113,6 +1053,8 @@ declare namespace LocalJSX {
|
|
|
1113
1053
|
}
|
|
1114
1054
|
/**
|
|
1115
1055
|
* A single editable field with contextual suggestions, optional help and field validation.
|
|
1056
|
+
* With `multiple`, it becomes a multi-value tag field: `value` holds the selected
|
|
1057
|
+
* items, chips render before the cursor, and add/remove/create item events fire.
|
|
1116
1058
|
*/
|
|
1117
1059
|
interface UiCombobox {
|
|
1118
1060
|
/**
|
|
@@ -1152,11 +1094,24 @@ declare namespace LocalJSX {
|
|
|
1152
1094
|
* @default 'visible'
|
|
1153
1095
|
*/
|
|
1154
1096
|
"labelVisibility"?: 'visible' | 'sr-only';
|
|
1097
|
+
/**
|
|
1098
|
+
* Render selected values as removable chips before the cursor. `value` becomes the item list.
|
|
1099
|
+
* @default false
|
|
1100
|
+
*/
|
|
1101
|
+
"multiple"?: boolean;
|
|
1155
1102
|
/**
|
|
1156
1103
|
* @default ''
|
|
1157
1104
|
*/
|
|
1158
1105
|
"name"?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Multiple mode: a suggestion or exact-match token was committed as a new item.
|
|
1108
|
+
*/
|
|
1109
|
+
"onAdd-item"?: (event: UiComboboxCustomEvent<MultiComboboxItemChange>) => void;
|
|
1159
1110
|
"onCreate-entry"?: (event: UiComboboxCustomEvent<ComboboxChange>) => void;
|
|
1111
|
+
/**
|
|
1112
|
+
* Multiple mode: an unmatched query was submitted for creation.
|
|
1113
|
+
*/
|
|
1114
|
+
"onCreate-item"?: (event: UiComboboxCustomEvent<MultiComboboxCreate>) => void;
|
|
1160
1115
|
"onDependency-invalidate"?: (event: UiComboboxCustomEvent<ComboboxChange>) => void;
|
|
1161
1116
|
"onFree-entry"?: (event: UiComboboxCustomEvent<ComboboxChange>) => void;
|
|
1162
1117
|
/**
|
|
@@ -1164,8 +1119,15 @@ declare namespace LocalJSX {
|
|
|
1164
1119
|
*/
|
|
1165
1120
|
"onOptions-change"?: (event: UiComboboxCustomEvent<readonly ComboboxOption[]>) => void;
|
|
1166
1121
|
"onQuery-change"?: (event: UiComboboxCustomEvent<{ query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' }>) => void;
|
|
1122
|
+
/**
|
|
1123
|
+
* Multiple mode: a selected item was removed via chip keyboard controls.
|
|
1124
|
+
*/
|
|
1125
|
+
"onRemove-item"?: (event: UiComboboxCustomEvent<MultiComboboxItemChange>) => void;
|
|
1167
1126
|
"onValidation-change"?: (event: UiComboboxCustomEvent<ComboboxValidationState>) => void;
|
|
1168
|
-
|
|
1127
|
+
/**
|
|
1128
|
+
* Single mode: the ComboboxChange. Multiple mode: the full current item list on any change.
|
|
1129
|
+
*/
|
|
1130
|
+
"onValue-change"?: (event: UiComboboxCustomEvent<ComboboxChange | readonly MultiComboboxItem[]>) => void;
|
|
1169
1131
|
/**
|
|
1170
1132
|
* @default ''
|
|
1171
1133
|
*/
|
|
@@ -1187,9 +1149,14 @@ declare namespace LocalJSX {
|
|
|
1187
1149
|
*/
|
|
1188
1150
|
"size"?: 'sm' | 'md';
|
|
1189
1151
|
/**
|
|
1190
|
-
*
|
|
1152
|
+
* Characters that commit the current query and leave the input ready for the next item (multiple only).
|
|
1153
|
+
* @default []
|
|
1154
|
+
*/
|
|
1155
|
+
"tokenSeparators"?: readonly string[];
|
|
1156
|
+
/**
|
|
1157
|
+
* Controlled canonical value. Undefined selects uncontrolled mode; null means no selection. With `multiple`, this is the controlled list of selected items instead.
|
|
1191
1158
|
*/
|
|
1192
|
-
"value"?: string | null;
|
|
1159
|
+
"value"?: string | null | readonly MultiComboboxItem[];
|
|
1193
1160
|
}
|
|
1194
1161
|
interface UiContextMenu {
|
|
1195
1162
|
/**
|
|
@@ -1360,58 +1327,6 @@ declare namespace LocalJSX {
|
|
|
1360
1327
|
*/
|
|
1361
1328
|
"value"?: string;
|
|
1362
1329
|
}
|
|
1363
|
-
/**
|
|
1364
|
-
* A multi-value combobox with removable, customizable selected items.
|
|
1365
|
-
*/
|
|
1366
|
-
interface UiMultiCombobox {
|
|
1367
|
-
/**
|
|
1368
|
-
* @default {}
|
|
1369
|
-
*/
|
|
1370
|
-
"config"?: ComboboxConfig;
|
|
1371
|
-
/**
|
|
1372
|
-
* @default ''
|
|
1373
|
-
*/
|
|
1374
|
-
"defaultQuery"?: string;
|
|
1375
|
-
/**
|
|
1376
|
-
* @default false
|
|
1377
|
-
*/
|
|
1378
|
-
"disabled"?: boolean;
|
|
1379
|
-
/**
|
|
1380
|
-
* @default []
|
|
1381
|
-
*/
|
|
1382
|
-
"items"?: readonly MultiComboboxItem[];
|
|
1383
|
-
/**
|
|
1384
|
-
* @default ''
|
|
1385
|
-
*/
|
|
1386
|
-
"label"?: string;
|
|
1387
|
-
/**
|
|
1388
|
-
* @default ''
|
|
1389
|
-
*/
|
|
1390
|
-
"name"?: string;
|
|
1391
|
-
"onAdd-item"?: (event: UiMultiComboboxCustomEvent<MultiComboboxItemChange>) => void;
|
|
1392
|
-
"onCreate-item"?: (event: UiMultiComboboxCustomEvent<MultiComboboxCreate>) => void;
|
|
1393
|
-
"onOptions-change"?: (event: UiMultiComboboxCustomEvent<readonly ComboboxOption[]>) => void;
|
|
1394
|
-
"onQuery-change"?: (event: UiMultiComboboxCustomEvent<{ query: string; display: string; trigger: 'keyboard' | 'pointer' | 'programmatic' }>) => void;
|
|
1395
|
-
"onRemove-item"?: (event: UiMultiComboboxCustomEvent<MultiComboboxItemChange>) => void;
|
|
1396
|
-
/**
|
|
1397
|
-
* @default ''
|
|
1398
|
-
*/
|
|
1399
|
-
"placeholder"?: string;
|
|
1400
|
-
"query"?: string;
|
|
1401
|
-
/**
|
|
1402
|
-
* @default false
|
|
1403
|
-
*/
|
|
1404
|
-
"readOnly"?: boolean;
|
|
1405
|
-
/**
|
|
1406
|
-
* @default false
|
|
1407
|
-
*/
|
|
1408
|
-
"required"?: boolean;
|
|
1409
|
-
/**
|
|
1410
|
-
* Characters that commit the current query and leave the input ready for the next item.
|
|
1411
|
-
* @default []
|
|
1412
|
-
*/
|
|
1413
|
-
"tokenSeparators"?: readonly string[];
|
|
1414
|
-
}
|
|
1415
1330
|
interface UiPopover {
|
|
1416
1331
|
/**
|
|
1417
1332
|
* @default false
|
|
@@ -1727,8 +1642,9 @@ declare namespace LocalJSX {
|
|
|
1727
1642
|
"label": string;
|
|
1728
1643
|
"placeholder": string;
|
|
1729
1644
|
"name": string;
|
|
1730
|
-
"value": string | null;
|
|
1645
|
+
"value": string | null | readonly MultiComboboxItem[];
|
|
1731
1646
|
"defaultValue": string;
|
|
1647
|
+
"multiple": boolean;
|
|
1732
1648
|
"query": string;
|
|
1733
1649
|
"defaultQuery": string;
|
|
1734
1650
|
"disabled": boolean;
|
|
@@ -1796,16 +1712,6 @@ declare namespace LocalJSX {
|
|
|
1796
1712
|
"disabled": boolean;
|
|
1797
1713
|
"value": string;
|
|
1798
1714
|
}
|
|
1799
|
-
interface UiMultiComboboxAttributes {
|
|
1800
|
-
"label": string;
|
|
1801
|
-
"placeholder": string;
|
|
1802
|
-
"query": string;
|
|
1803
|
-
"defaultQuery": string;
|
|
1804
|
-
"disabled": boolean;
|
|
1805
|
-
"readOnly": boolean;
|
|
1806
|
-
"required": boolean;
|
|
1807
|
-
"name": string;
|
|
1808
|
-
}
|
|
1809
1715
|
interface UiPopoverAttributes {
|
|
1810
1716
|
"open": boolean;
|
|
1811
1717
|
"defaultOpen": boolean;
|
|
@@ -1911,7 +1817,6 @@ declare namespace LocalJSX {
|
|
|
1911
1817
|
"ui-input": Omit<UiInput, keyof UiInputAttributes> & { [K in keyof UiInput & keyof UiInputAttributes]?: UiInput[K] } & { [K in keyof UiInput & keyof UiInputAttributes as `attr:${K}`]?: UiInputAttributes[K] } & { [K in keyof UiInput & keyof UiInputAttributes as `prop:${K}`]?: UiInput[K] };
|
|
1912
1818
|
"ui-menu": Omit<UiMenu, keyof UiMenuAttributes> & { [K in keyof UiMenu & keyof UiMenuAttributes]?: UiMenu[K] } & { [K in keyof UiMenu & keyof UiMenuAttributes as `attr:${K}`]?: UiMenuAttributes[K] } & { [K in keyof UiMenu & keyof UiMenuAttributes as `prop:${K}`]?: UiMenu[K] };
|
|
1913
1819
|
"ui-menu-item": Omit<UiMenuItem, keyof UiMenuItemAttributes> & { [K in keyof UiMenuItem & keyof UiMenuItemAttributes]?: UiMenuItem[K] } & { [K in keyof UiMenuItem & keyof UiMenuItemAttributes as `attr:${K}`]?: UiMenuItemAttributes[K] } & { [K in keyof UiMenuItem & keyof UiMenuItemAttributes as `prop:${K}`]?: UiMenuItem[K] };
|
|
1914
|
-
"ui-multi-combobox": Omit<UiMultiCombobox, keyof UiMultiComboboxAttributes> & { [K in keyof UiMultiCombobox & keyof UiMultiComboboxAttributes]?: UiMultiCombobox[K] } & { [K in keyof UiMultiCombobox & keyof UiMultiComboboxAttributes as `attr:${K}`]?: UiMultiComboboxAttributes[K] } & { [K in keyof UiMultiCombobox & keyof UiMultiComboboxAttributes as `prop:${K}`]?: UiMultiCombobox[K] };
|
|
1915
1820
|
"ui-popover": Omit<UiPopover, keyof UiPopoverAttributes> & { [K in keyof UiPopover & keyof UiPopoverAttributes]?: UiPopover[K] } & { [K in keyof UiPopover & keyof UiPopoverAttributes as `attr:${K}`]?: UiPopoverAttributes[K] } & { [K in keyof UiPopover & keyof UiPopoverAttributes as `prop:${K}`]?: UiPopover[K] };
|
|
1916
1821
|
"ui-radio": Omit<UiRadio, keyof UiRadioAttributes> & { [K in keyof UiRadio & keyof UiRadioAttributes]?: UiRadio[K] } & { [K in keyof UiRadio & keyof UiRadioAttributes as `attr:${K}`]?: UiRadioAttributes[K] } & { [K in keyof UiRadio & keyof UiRadioAttributes as `prop:${K}`]?: UiRadio[K] };
|
|
1917
1822
|
"ui-radio-group": Omit<UiRadioGroup, keyof UiRadioGroupAttributes> & { [K in keyof UiRadioGroup & keyof UiRadioGroupAttributes]?: UiRadioGroup[K] } & { [K in keyof UiRadioGroup & keyof UiRadioGroupAttributes as `attr:${K}`]?: UiRadioGroupAttributes[K] } & { [K in keyof UiRadioGroup & keyof UiRadioGroupAttributes as `prop:${K}`]?: UiRadioGroup[K] };
|
|
@@ -1948,6 +1853,8 @@ declare module "@stencil/core" {
|
|
|
1948
1853
|
"ui-chip": LocalJSX.IntrinsicElements["ui-chip"] & JSXBase.HTMLAttributes<HTMLUiChipElement>;
|
|
1949
1854
|
/**
|
|
1950
1855
|
* A single editable field with contextual suggestions, optional help and field validation.
|
|
1856
|
+
* With `multiple`, it becomes a multi-value tag field: `value` holds the selected
|
|
1857
|
+
* items, chips render before the cursor, and add/remove/create item events fire.
|
|
1951
1858
|
*/
|
|
1952
1859
|
"ui-combobox": LocalJSX.IntrinsicElements["ui-combobox"] & JSXBase.HTMLAttributes<HTMLUiComboboxElement>;
|
|
1953
1860
|
"ui-context-menu": LocalJSX.IntrinsicElements["ui-context-menu"] & JSXBase.HTMLAttributes<HTMLUiContextMenuElement>;
|
|
@@ -1963,10 +1870,6 @@ declare module "@stencil/core" {
|
|
|
1963
1870
|
"ui-input": LocalJSX.IntrinsicElements["ui-input"] & JSXBase.HTMLAttributes<HTMLUiInputElement>;
|
|
1964
1871
|
"ui-menu": LocalJSX.IntrinsicElements["ui-menu"] & JSXBase.HTMLAttributes<HTMLUiMenuElement>;
|
|
1965
1872
|
"ui-menu-item": LocalJSX.IntrinsicElements["ui-menu-item"] & JSXBase.HTMLAttributes<HTMLUiMenuItemElement>;
|
|
1966
|
-
/**
|
|
1967
|
-
* A multi-value combobox with removable, customizable selected items.
|
|
1968
|
-
*/
|
|
1969
|
-
"ui-multi-combobox": LocalJSX.IntrinsicElements["ui-multi-combobox"] & JSXBase.HTMLAttributes<HTMLUiMultiComboboxElement>;
|
|
1970
1873
|
"ui-popover": LocalJSX.IntrinsicElements["ui-popover"] & JSXBase.HTMLAttributes<HTMLUiPopoverElement>;
|
|
1971
1874
|
"ui-radio": LocalJSX.IntrinsicElements["ui-radio"] & JSXBase.HTMLAttributes<HTMLUiRadioElement>;
|
|
1972
1875
|
"ui-radio-group": LocalJSX.IntrinsicElements["ui-radio-group"] & JSXBase.HTMLAttributes<HTMLUiRadioGroupElement>;
|
package/dist/{ui-affordance-scope.entry-7H6GIQEK.js → ui-affordance-scope.entry-VR7FLAWG.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_AFFORDANCE_NEAR_RADIUS,
|
|
3
3
|
createProximityCoordinator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M7FPK6GN.js";
|
|
5
5
|
import {
|
|
6
6
|
Host,
|
|
7
7
|
getElement,
|
|
8
8
|
h,
|
|
9
9
|
registerInstance
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JXSHRMYW.js";
|
|
11
11
|
|
|
12
12
|
// dist/esm/ui-affordance-scope.entry.js
|
|
13
13
|
var uiAffordanceScopeCss = () => `:host{display:contents;--ui-affordance-scope-engaged:0}:host([data-ui-interaction='engaged']){--ui-affordance-scope-engaged:1}`;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getElement,
|
|
4
4
|
h,
|
|
5
5
|
registerInstance
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JXSHRMYW.js";
|
|
7
7
|
|
|
8
8
|
// dist/esm/ui-avatar-group.entry.js
|
|
9
9
|
var uiAvatarGroupCss = () => `:host{display:flex;align-items:center;flex-direction:row-reverse;gap:0}::slotted(*){margin-inline-end:-0.5rem;flex-shrink:0}::slotted(*:last-of-type){margin-inline-end:0}.overflow{margin-inline-end:-0.5rem;display:inline-flex;align-items:center;justify-content:center;inline-size:2.5rem;block-size:2.5rem;border-radius:999px;border:1px solid var(--ui-border-default);background:var(--ui-surface-muted);color:var(--ui-text-secondary);font:inherit;font-size:0.75rem;font-weight:600;flex-shrink:0}`;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Host,
|
|
3
3
|
h,
|
|
4
4
|
registerInstance
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JXSHRMYW.js";
|
|
6
6
|
|
|
7
7
|
// dist/esm/ui-badge.entry.js
|
|
8
8
|
var uiBadgeCss = () => `:host{--ui-badge-surface:var(--ui-surface-muted);--ui-badge-text:var(--ui-text-secondary);--ui-badge-border:var(--ui-border-default);--ui-badge-font-size:var(--ui-font-size-xs);--ui-badge-font-weight:var(--ui-font-normal);--ui-badge-line-height:var(--ui-line-height-tight);--ui-badge-padding-block:var(--ui-space-0-5);--ui-badge-padding-inline:var(--ui-space-2);display:inline-flex;max-width:100%}.badge__surface{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:var(--ui-badge-padding-block) var(--ui-badge-padding-inline);border:1px solid var(--ui-badge-border);border-radius:var(--ui-radius-round);background:var(--ui-badge-surface);color:var(--ui-badge-text);font-family:var(--ui-font-family-sans);font-size:var(--ui-badge-font-size);font-weight:var(--ui-badge-font-weight);line-height:var(--ui-badge-line-height);white-space:nowrap}:host([data-tone='accent']) .badge__surface{--ui-badge-surface:var(--ui-accent-solid);--ui-badge-border:var(--ui-accent-solid);--ui-badge-text:var(--ui-text-on-accent)}:host([data-tone='danger']) .badge__surface{--ui-badge-surface:var(--ui-danger-solid);--ui-badge-border:var(--ui-danger-solid);--ui-badge-text:var(--ui-text-on-accent)}:host([data-tone='success']) .badge__surface{--ui-badge-surface:var(--ui-success-solid);--ui-badge-border:var(--ui-success-solid);--ui-badge-text:var(--ui-text-on-accent)}:host([data-tone='warning']) .badge__surface{--ui-badge-surface:var(--ui-warning-solid);--ui-badge-border:var(--ui-warning-solid);--ui-badge-text:var(--ui-text-primary)}:host([data-tone='info']) .badge__surface{--ui-badge-surface:var(--ui-info-solid);--ui-badge-border:var(--ui-info-solid);--ui-badge-text:var(--ui-text-on-accent)}:host([data-variant='subtle'][data-tone='accent']) .badge__surface{--ui-badge-surface:var(--ui-accent-soft);--ui-badge-border:var(--ui-accent-soft);--ui-badge-text:var(--ui-accent-solid)}:host([data-variant='subtle'][data-tone='danger']) .badge__surface{--ui-badge-surface:var(--ui-danger-soft);--ui-badge-border:var(--ui-danger-soft);--ui-badge-text:var(--ui-danger-solid)}:host([data-variant='subtle'][data-tone='success']) .badge__surface{--ui-badge-surface:var(--ui-success-soft);--ui-badge-border:var(--ui-success-soft);--ui-badge-text:var(--ui-success-solid)}:host([data-variant='subtle'][data-tone='warning']) .badge__surface{--ui-badge-surface:var(--ui-warning-soft);--ui-badge-border:var(--ui-warning-soft);--ui-badge-text:var(--ui-warning-solid)}:host([data-variant='subtle'][data-tone='info']) .badge__surface{--ui-badge-surface:var(--ui-info-soft);--ui-badge-border:var(--ui-info-soft);--ui-badge-text:var(--ui-info-solid)}`;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getElement,
|
|
7
7
|
h,
|
|
8
8
|
registerInstance
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JXSHRMYW.js";
|
|
10
10
|
|
|
11
11
|
// dist/esm/ui-button.entry.js
|
|
12
12
|
var uiButtonCss = () => `:host{display:inline-flex;vertical-align:middle;color:var(--ui-action-secondary-text, var(--ui-text-primary))}:host([data-variant='solid']){color:var(--ui-action-primary-text, var(--ui-text-on-accent))}:host([data-variant='outline']) ::slotted(button),::slotted(button){appearance:none;min-block-size:var(--ui-button-min-block-size, 2.5rem);border:1px solid var(--ui-control-border, var(--ui-border-default));border-radius:var(--ui-button-radius, var(--ui-radius-2));background:var(--ui-action-secondary-surface, var(--ui-surface-default));color:inherit;font:inherit;font-weight:var(--ui-font-medium, 500);line-height:var(--ui-line-height-tight);padding:var(--ui-space-2) var(--ui-space-3);cursor:pointer;transition:background-color var(--ui-motion-fast) var(--ui-motion-ease), border-color var(--ui-motion-fast) var(--ui-motion-ease), color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease), transform var(--ui-motion-fast) var(--ui-motion-ease);margin:0}:host([data-size='sm']) ::slotted(button){padding:var(--ui-space-1) var(--ui-space-2);font-size:0.875rem}:host([data-size='lg']) ::slotted(button){min-block-size:var(--ui-control-min-block-size, 2.75rem);padding:var(--ui-space-3) var(--ui-space-4);font-size:1rem}::slotted(button:hover:enabled){background:var(--ui-action-secondary-surface-hover, var(--ui-surface-muted));border-color:var(--ui-control-border-hover, var(--ui-border-strong))}::slotted(button:active:enabled){background:var(--ui-surface-subtle)}:host([data-variant='solid']) ::slotted(button){border-color:var(--ui-action-primary-surface, var(--ui-accent-solid));background:var(--ui-action-primary-surface, var(--ui-accent-solid));color:var(--ui-action-primary-text, var(--ui-text-on-accent));box-shadow:var(--ui-button-solid-shadow, inset 0 1px rgb(255 255 255 / 0.16), var(--ui-shadow-xs))}:host([data-variant='solid']) ::slotted(button:hover:enabled){background:var(--ui-action-primary-surface-hover, var(--ui-accent-hover));border-color:var(--ui-action-primary-surface-hover, var(--ui-accent-hover));box-shadow:var(--ui-shadow-sm);transform:translateY(-1px)}:host([data-variant='solid']) ::slotted(button:active:enabled){background:var(--ui-action-primary-surface-active, var(--ui-accent-active));border-color:var(--ui-action-primary-surface-active, var(--ui-accent-active));box-shadow:none;transform:translateY(0)}:host([data-variant='destructive']) ::slotted(button){border-color:var(--ui-danger-solid);background:var(--ui-danger-solid);color:var(--ui-text-on-accent);box-shadow:var(--ui-button-destructive-shadow, inset 0 1px rgb(255 255 255 / 0.14), var(--ui-shadow-xs))}:host([data-variant='destructive']) ::slotted(button:hover:enabled){background:var(--ui-danger-hover);border-color:var(--ui-danger-hover);box-shadow:var(--ui-shadow-sm);transform:translateY(-1px)}:host([data-variant='destructive']) ::slotted(button:active:enabled){box-shadow:none;transform:translateY(0)}:host([data-variant='ghost']) ::slotted(button){border-color:transparent;background:transparent}:host([data-variant='ghost']) ::slotted(button:hover:enabled){background:var(--ui-surface-muted);border-color:transparent}:host([data-variant='ghost']) ::slotted(button:active:enabled){background:var(--ui-surface-subtle);border-color:transparent}::slotted(button:focus-visible){outline:2px solid var(--ui-focus-ring);outline-offset:2px}:host([data-disabled='true']),:host([disabled]){opacity:0.6;cursor:not-allowed}::slotted(button:disabled){cursor:not-allowed}`;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Host,
|
|
6
6
|
h,
|
|
7
7
|
registerInstance
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JXSHRMYW.js";
|
|
9
9
|
|
|
10
10
|
// dist/esm/ui-callout.entry.js
|
|
11
11
|
var uiCalloutCss = () => `:host{--ui-callout-surface:var(--ui-info-soft);--ui-callout-text:var(--ui-text-primary);--ui-callout-border:var(--ui-info-solid);--ui-callout-icon:var(--ui-info-solid);--ui-callout-padding-block:var(--ui-space-2);--ui-callout-padding-inline:var(--ui-space-3);--ui-callout-icon-column:1rem;--ui-callout-gap:var(--ui-space-2);--ui-callout-icon-size:1rem;--ui-callout-border-width:1px;--ui-callout-leading-border-width:4px;display:block;max-width:100%}.callout__surface{display:grid;grid-template-columns:var(--ui-callout-icon-column) minmax(0, 1fr);gap:var(--ui-callout-gap);align-items:start;padding:var(--ui-callout-padding-block) var(--ui-callout-padding-inline);border:var(--ui-callout-border-width) solid color-mix(in srgb, var(--ui-callout-border) 35%, transparent);border-inline-start:var(--ui-callout-leading-border-width) solid var(--ui-callout-border);border-radius:var(--ui-radius-2);background:var(--ui-callout-surface);color:var(--ui-callout-text);font-family:var(--ui-font-family-sans);font-size:var(--ui-font-size-sm);font-weight:var(--ui-font-normal);line-height:var(--ui-line-height-md)}.icon{display:grid;place-items:center;inline-size:var(--ui-callout-icon-column);block-size:var(--ui-callout-icon-column);color:var(--ui-callout-icon)}.icon svg{inline-size:var(--ui-callout-icon-size);block-size:var(--ui-callout-icon-size)}.content{min-inline-size:0}:host([data-tone='note']){--ui-callout-surface:var(--ui-surface-muted);--ui-callout-border:var(--ui-border-strong);--ui-callout-icon:var(--ui-text-secondary)}:host([data-tone='warning']){--ui-callout-surface:var(--ui-warning-soft);--ui-callout-border:var(--ui-warning-solid);--ui-callout-icon:var(--ui-warning-solid)}:host([data-tone='success']){--ui-callout-surface:var(--ui-success-soft);--ui-callout-border:var(--ui-success-solid);--ui-callout-icon:var(--ui-success-solid)}:host([data-tone='error']){--ui-callout-surface:var(--ui-danger-soft);--ui-callout-border:var(--ui-danger-solid);--ui-callout-icon:var(--ui-danger-solid)}`;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getElement,
|
|
12
12
|
h,
|
|
13
13
|
registerInstance
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JXSHRMYW.js";
|
|
15
15
|
|
|
16
16
|
// dist/esm/ui-checkbox.entry.js
|
|
17
17
|
var uiCheckboxCss = () => `:host{display:inline-flex;align-items:center;gap:var(--ui-space-2);color:var(--ui-text-primary)}:host([aria-disabled='true']),:host([data-disabled='true']){opacity:0.6;cursor:not-allowed}::slotted(input[type='checkbox']){accent-color:var(--ui-accent-solid);width:1.125em;height:1.125em;cursor:pointer}::slotted(input[type='checkbox']:focus-visible){outline:2px solid var(--ui-accent-solid);outline-offset:2px}`;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-TL4FIE7X.js";
|
|
5
5
|
import {
|
|
6
6
|
createAnchoredSurface
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M7FPK6GN.js";
|
|
8
8
|
import {
|
|
9
9
|
controlledOrDefault,
|
|
10
10
|
isControlled
|
|
@@ -18,9 +18,23 @@ import {
|
|
|
18
18
|
getElement,
|
|
19
19
|
h,
|
|
20
20
|
registerInstance
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JXSHRMYW.js";
|
|
22
22
|
|
|
23
|
-
// dist/esm/ui-
|
|
23
|
+
// dist/esm/ui-chip_2.entry.js
|
|
24
|
+
var uiChipCss = () => `:host{--ui-chip-surface:var(--ui-surface-subtle);--ui-chip-text:var(--ui-text-secondary);--ui-chip-border:var(--ui-border-default);--ui-chip-font-size:var(--ui-font-size-xs);--ui-chip-font-weight:var(--ui-font-normal);--ui-chip-line-height:var(--ui-line-height-tight);--ui-chip-padding-block:var(--ui-space-0-5);--ui-chip-padding-inline:var(--ui-space-2);--ui-chip-notch:var(--ui-space-1);display:inline-flex;min-width:0;max-width:100%}:host([data-size='sm']){--ui-chip-font-size:var(--ui-font-size-sm)}.chip__surface{display:inline-flex;align-items:center;box-sizing:border-box;min-width:0;max-width:100%;padding:var(--ui-chip-padding-block) var(--ui-chip-padding-inline);border:1px solid var(--ui-chip-border);background:var(--ui-chip-surface);color:var(--ui-chip-text) !important;font-family:var(--ui-font-family-sans) !important;font-size:var(--ui-chip-font-size) !important;font-weight:var(--ui-chip-font-weight) !important;line-height:var(--ui-chip-line-height) !important}.chip__label{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-appearance='pill']) .chip__surface{border-radius:var(--ui-radius-round)}:host([data-appearance='tag']) .chip__surface{border:0;padding-inline-end:calc(var(--ui-chip-padding-inline) + var(--ui-chip-notch));clip-path:polygon(0 0, calc(100% - var(--ui-chip-notch)) 0, 100% 50%, calc(100% - var(--ui-chip-notch)) 100%, 0 100%)}`;
|
|
25
|
+
var UIChip = class {
|
|
26
|
+
constructor(hostRef) {
|
|
27
|
+
registerInstance(this, hostRef);
|
|
28
|
+
}
|
|
29
|
+
/** `tag` has a square leading edge and an angled trailing edge; `pill` is fully rounded. */
|
|
30
|
+
appearance = "tag";
|
|
31
|
+
/** Compact typography size. */
|
|
32
|
+
size = "xs";
|
|
33
|
+
render() {
|
|
34
|
+
return h(Host, { key: "970cb48cf8d70c47feaab90fe428c09f0d052a03", "data-appearance": this.appearance, "data-size": this.size }, h("span", { key: "6d8c6104d2869520097a2a61bd2a887b363b4912", class: "chip__surface" }, h("span", { key: "638fb68ff5dffa629576c9e1079bb3169f2adb4f", class: "chip__label" }, h("slot", { key: "8b31f2130e202e18d7717aee6add6bc6e7f119b5" }))));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
UIChip.style = uiChipCss();
|
|
24
38
|
var uiTooltipCss = () => `:host{position:fixed;inset:auto;margin:0;display:inline-block;box-sizing:border-box;padding:0;border:0;border-radius:0;background:transparent;opacity:0;transform:translateY(4px);transition:opacity var(--ui-motion-fast) var(--ui-motion-ease), transform var(--ui-motion-fast) var(--ui-motion-ease), display var(--ui-motion-fast) allow-discrete, overlay var(--ui-motion-fast) allow-discrete}.tooltip__surface{box-sizing:border-box;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-2);background:var(--ui-surface-elevated);color:var(--ui-text-primary);padding:var(--ui-space-2) var(--ui-space-3);font-size:var(--ui-font-size-sm);box-shadow:var(--ui-shadow-md)}:host(:popover-open){opacity:1;transform:translateY(0)}@starting-style{:host(:popover-open){opacity:0;transform:translateY(4px)}}:host([hidden]){display:none !important}@media (prefers-reduced-motion: reduce){:host{transition:none}}`;
|
|
25
39
|
var UITooltip = class {
|
|
26
40
|
constructor(hostRef) {
|
|
@@ -232,7 +246,7 @@ var UITooltip = class {
|
|
|
232
246
|
}
|
|
233
247
|
}
|
|
234
248
|
render() {
|
|
235
|
-
return h(Host, { key: "
|
|
249
|
+
return h(Host, { key: "fd4d81febd147b846aca66e94f25d56f14b171dc", role: "tooltip", hidden: !this.internalOpen, "data-open": this.internalOpen ? "" : void 0 }, h("div", { key: "d31ac8c0e087becd7e60459f2cd894a9b15e95fa", class: "tooltip__surface" }, h("slot", { key: "06e7aac9b6992a9cf0f92c9d356b97d18fb2da8b" })));
|
|
236
250
|
}
|
|
237
251
|
static get watchers() {
|
|
238
252
|
return {
|
|
@@ -253,5 +267,6 @@ var UITooltip = class {
|
|
|
253
267
|
};
|
|
254
268
|
UITooltip.style = uiTooltipCss();
|
|
255
269
|
export {
|
|
270
|
+
UIChip as ui_chip,
|
|
256
271
|
UITooltip as ui_tooltip
|
|
257
272
|
};
|