@threadlabs/looma 0.22.13 → 0.23.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/components/shared/icons.js +6 -0
- package/components/ui-avatar/ui-avatar.html +3 -3
- package/components/ui-avatar-group/ui-avatar-group.html +1 -1
- package/components/ui-badge/ui-badge.html +1 -1
- package/components/ui-button/ui-button.html +3 -3
- package/components/ui-callout/ui-callout.html +3 -2
- package/components/ui-card/ui-card.html +23 -4
- package/components/ui-checkbox/ui-checkbox.html +3 -3
- package/components/ui-combobox/ui-combobox.html +8 -8
- package/components/ui-context-menu/ui-context-menu.html +2 -2
- package/components/ui-description-list/ui-description-list.html +1 -1
- package/components/ui-dialog/ui-dialog.html +3 -3
- package/components/ui-disclosure/ui-disclosure.html +43 -3
- package/components/ui-editable/ui-editable.html +2 -2
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +2 -2
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +6 -6
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +11 -11
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +5 -5
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +4 -4
- package/components/ui-floating-action-button/ui-floating-action-button.html +2 -2
- package/components/ui-icon/ui-icon.html +6 -0
- package/components/ui-icon-button/ui-icon-button.html +1 -1
- package/components/ui-input/ui-input.html +9 -4
- package/components/ui-input-group/ui-input-group.html +21 -6
- package/components/ui-list/ui-list.html +1 -1
- package/components/ui-list-item/ui-list-item.html +20 -4
- package/components/ui-listbox/ui-listbox.html +3 -3
- package/components/ui-menu/ui-menu.html +2 -2
- package/components/ui-menu-item/ui-menu-item.html +4 -4
- package/components/ui-meter/ui-meter.html +1 -1
- package/components/ui-nav-item/ui-nav-item.html +46 -14
- package/components/ui-popover/ui-popover.html +16 -1
- package/components/ui-radio/ui-radio.html +2 -2
- package/components/ui-scroll-area/ui-scroll-area.html +12 -0
- package/components/ui-search-result-row/ui-search-result-row.html +24 -5
- package/components/ui-search-shell/ui-search-shell.html +4 -4
- package/components/ui-section/ui-section.html +3 -3
- package/components/ui-select/ui-select.html +6 -2
- package/components/ui-separator/ui-separator.html +2 -2
- package/components/ui-sidebar/ui-sidebar.html +3 -3
- package/components/ui-stack/ui-stack.html +6 -3
- package/components/ui-status-message/ui-status-message.html +1 -1
- package/components/ui-switch/ui-switch.html +3 -3
- package/components/ui-table/ui-table.html +3 -3
- package/components/ui-tabs/ui-tabs.html +7 -7
- package/components/ui-text/ui-text.html +12 -0
- package/components/ui-textarea/ui-textarea.html +6 -2
- package/components/ui-toast/ui-toast.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +5 -5
- package/components/ui-tooltip/ui-tooltip.html +15 -15
- package/components/ui-top-bar/ui-top-bar.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +27 -8
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +55 -2
- package/editor/extensions/index.d.ts +1 -0
- package/editor/extensions/index.js +2 -2
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/extensions/relative-links.d.ts +8 -0
- package/editor/icons.d.ts +6 -0
- package/editor/index.js +9 -3
- package/package.json +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +3 -3
- package/styles/ui-badge.css +1 -1
- package/styles/ui-button.css +3 -3
- package/styles/ui-callout.css +3 -2
- package/styles/ui-card.css +19 -2
- package/styles/ui-checkbox.css +3 -3
- package/styles/ui-combobox.css +8 -8
- package/styles/ui-context-menu.css +2 -2
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +3 -3
- package/styles/ui-disclosure.css +42 -2
- package/styles/ui-editable.css +2 -2
- package/styles/ui-editor-insert-table-grid.css +5 -5
- package/styles/ui-editor-mention-menu.css +2 -2
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +6 -6
- package/styles/ui-editor-table-context-menu.css +2 -2
- package/styles/ui-editor-table-overlay.css +11 -11
- package/styles/ui-editor-table-toolbar.css +5 -5
- package/styles/ui-editor-toolbar.css +4 -4
- package/styles/ui-floating-action-button.css +2 -2
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-input-group.css +19 -6
- package/styles/ui-input.css +9 -4
- package/styles/ui-list-item.css +23 -4
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +3 -3
- package/styles/ui-menu-item.css +4 -4
- package/styles/ui-menu.css +2 -2
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +46 -12
- package/styles/ui-popover.css +14 -1
- package/styles/ui-radio.css +2 -2
- package/styles/ui-scroll-area.css +10 -0
- package/styles/ui-search-result-row.css +25 -5
- package/styles/ui-search-shell.css +4 -4
- package/styles/ui-section.css +3 -3
- package/styles/ui-select.css +6 -2
- package/styles/ui-separator.css +2 -2
- package/styles/ui-sidebar.css +3 -3
- package/styles/ui-stack.css +3 -0
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +3 -3
- package/styles/ui-table.css +3 -3
- package/styles/ui-tabs.css +7 -7
- package/styles/ui-text.css +8 -0
- package/styles/ui-textarea.css +6 -2
- package/styles/ui-toast-region.css +5 -5
- package/styles/ui-toast.css +2 -2
- package/styles/ui-tooltip.css +15 -15
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +32 -8
- package/tokens.css +30 -9
- package/vanilla/UiCard.d.ts +2 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -0
- package/vanilla/UiDisclosure.js +10 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -0
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiNavItem.d.ts +2 -0
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -0
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -0
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -0
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiText.d.ts +2 -0
- package/vanilla/UiText.js +1 -1
- package/vue/UiAvatar.vue +3 -3
- package/vue/UiAvatarGroup.vue +1 -1
- package/vue/UiBadge.vue +2 -1
- package/vue/UiButton.vue +3 -3
- package/vue/UiCallout.vue +2 -2
- package/vue/UiCard.d.ts +12 -3
- package/vue/UiCard.vue +51 -7
- package/vue/UiCheckbox.vue +3 -3
- package/vue/UiCombobox.vue +11 -8
- package/vue/UiContextMenu.vue +2 -2
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +4 -3
- package/vue/UiDisclosure.d.ts +13 -2
- package/vue/UiDisclosure.vue +61 -4
- package/vue/UiEditable.vue +2 -2
- package/vue/UiEditorInsertTableGrid.vue +5 -5
- package/vue/UiEditorMentionMenu.vue +2 -2
- package/vue/UiEditorSlashMenu.vue +6 -6
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +2 -2
- package/vue/UiEditorTableOverlay.vue +11 -11
- package/vue/UiEditorTableToolbar.vue +5 -5
- package/vue/UiEditorToolbar.vue +6 -4
- package/vue/UiFloatingActionButton.vue +2 -2
- package/vue/UiIcon.vue +31 -0
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiInput.vue +8 -4
- package/vue/UiInputGroup.d.ts +9 -0
- package/vue/UiInputGroup.vue +39 -8
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +20 -4
- package/vue/UiListbox.vue +3 -3
- package/vue/UiMenu.vue +3 -2
- package/vue/UiMenuItem.vue +4 -4
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.d.ts +18 -0
- package/vue/UiNavItem.vue +96 -12
- package/vue/UiPopover.d.ts +9 -0
- package/vue/UiPopover.vue +45 -3
- package/vue/UiRadio.vue +2 -2
- package/vue/UiScrollArea.d.ts +9 -0
- package/vue/UiScrollArea.vue +35 -2
- package/vue/UiSearchResultRow.d.ts +9 -0
- package/vue/UiSearchResultRow.vue +51 -6
- package/vue/UiSearchShell.vue +4 -4
- package/vue/UiSection.vue +3 -3
- package/vue/UiSelect.vue +3 -2
- package/vue/UiSeparator.vue +4 -2
- package/vue/UiSidebar.vue +5 -3
- package/vue/UiStack.d.ts +3 -3
- package/vue/UiStack.vue +10 -4
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.vue +3 -3
- package/vue/UiTable.vue +3 -3
- package/vue/UiTabs.vue +8 -7
- package/vue/UiText.d.ts +18 -0
- package/vue/UiText.vue +70 -0
- package/vue/UiTextarea.vue +2 -2
- package/vue/UiToast.vue +4 -2
- package/vue/UiToastRegion.vue +5 -5
- package/vue/UiTooltip.vue +19 -15
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTreeItem.vue +31 -8
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +39 -3
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +27 -4
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiIcon.js +92 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +59 -22
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +65 -6
- package/vue/chunks/UiPopover.js +37 -5
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiScrollArea.js +66 -23
- package/vue/chunks/UiSearchResultRow.js +28 -2
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiStack.js +3 -2
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +92 -4
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +1431 -1429
- package/vue/editor/LoomaEditor.d.ts +11 -0
- package/vue/editor/index.js +261 -145
package/vanilla/UiNavItem.d.ts
CHANGED
|
@@ -8,9 +8,11 @@ export interface UiNavItemElement extends HTMLElement {
|
|
|
8
8
|
export interface UiNavItemProps {
|
|
9
9
|
as?: "button" | "a" | null;
|
|
10
10
|
current?: "true" | "false" | "page" | "step" | "location" | null;
|
|
11
|
+
density?: "comfortable" | "compact" | null;
|
|
11
12
|
href?: string | null;
|
|
12
13
|
rel?: string | null;
|
|
13
14
|
target?: string | null;
|
|
15
|
+
variant?: "surface" | "line" | null;
|
|
14
16
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
15
17
|
children?: readonly (string | Node)[];
|
|
16
18
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
package/vanilla/UiNavItem.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { componentRootIndex, manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
3
3
|
import "../styles/ui-nav-item.css";
|
|
4
4
|
|
|
5
|
-
const definition = {...{"contract":{"tag":"ui-nav-item","props":{"as":{"type":{"kind":"terminal","name":"keyword"},"values":["button","a"],"required":false,"target":{"attribute":"as"},"default":"button"},"current":{"type":{"kind":"terminal","name":"keyword"},"values":["true","false","page","step","location"],"required":false,"target":{"attribute":"current"},"default":"false"},"href":{"type":"string","required":false,"target":{"attribute":"href"}},"rel":{"type":"string","required":false,"target":{"attribute":"rel"}},"target":{"type":"string","required":false,"target":{"attribute":"target"}}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"a","attributes":[{"kind":"attribute","name":"href","expression":"href","expressionPlan":{"source":"href","ast":{"kind":"id","name":"href"},"dependencies":["href"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"when","test":"as = 'a'","testPlan":{"source":"as = 'a'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"a"}},"dependencies":["as"]}}},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"button","choices":["a","button"]}},source:{file:import.meta.url},css:""};
|
|
5
|
+
const definition = {...{"contract":{"tag":"ui-nav-item","props":{"as":{"type":{"kind":"terminal","name":"keyword"},"values":["button","a"],"required":false,"target":{"attribute":"as"},"default":"button"},"current":{"type":{"kind":"terminal","name":"keyword"},"values":["true","false","page","step","location"],"required":false,"target":{"attribute":"current"},"default":"false"},"density":{"type":{"kind":"terminal","name":"keyword"},"values":["comfortable","compact"],"required":false,"target":{"attribute":"density"},"default":"comfortable"},"href":{"type":"string","required":false,"target":{"attribute":"href"}},"rel":{"type":"string","required":false,"target":{"attribute":"rel"}},"target":{"type":"string","required":false,"target":{"attribute":"target"}},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["surface","line"],"required":false,"target":{"attribute":"variant"},"default":"surface"}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"a","attributes":[{"kind":"attribute","name":"href","expression":"href","expressionPlan":{"source":"href","ast":{"kind":"id","name":"href"},"dependencies":["href"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"when","test":"as = 'a'","testPlan":{"source":"as = 'a'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"a"}},"dependencies":["as"]}}},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"button","choices":["a","button"]}},source:{file:import.meta.url},css:""};
|
|
6
6
|
|
|
7
7
|
export function createUiNavItem(options = {}) {
|
|
8
8
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
package/vanilla/UiPopover.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface UiPopoverProps {
|
|
|
11
11
|
for?: string | null;
|
|
12
12
|
open?: boolean | null;
|
|
13
13
|
placement?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end" | null;
|
|
14
|
+
size?: "content" | "sm" | "md" | "lg" | null;
|
|
14
15
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
15
16
|
children?: readonly (string | Node)[];
|
|
16
17
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
package/vanilla/UiPopover.js
CHANGED
|
@@ -3,7 +3,7 @@ import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
|
3
3
|
import * as controller from "../components/ui-popover/ui-popover.js";
|
|
4
4
|
import "../styles/ui-popover.css";
|
|
5
5
|
|
|
6
|
-
const definition = {...{"contract":{"tag":"ui-popover","props":{"for":{"type":"string","required":false,"target":{"attribute":"for"},"default":""},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false},"placement":{"type":{"kind":"terminal","name":"keyword"},"values":["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],"required":false,"target":{"attribute":"placement"},"default":"bottom-start"}}},"template":{"kind":"element","name":"span","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"surface"}],"children":[{"kind":"slot"}]}]},"declarations":[{"kind":"state","name":"internalOpen","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"open","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"reason","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["action","programmatic","light-dismiss","escape"]},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"close","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"reason","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["action","programmatic","light-dismiss","escape"]},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
|
|
6
|
+
const definition = {...{"contract":{"tag":"ui-popover","props":{"for":{"type":"string","required":false,"target":{"attribute":"for"},"default":""},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false},"placement":{"type":{"kind":"terminal","name":"keyword"},"values":["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],"required":false,"target":{"attribute":"placement"},"default":"bottom-start"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["content","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"content"}}},"template":{"kind":"element","name":"span","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"surface"}],"children":[{"kind":"slot"}]}]},"declarations":[{"kind":"state","name":"internalOpen","type":"boolean","value":"false","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"open","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"reason","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["action","programmatic","light-dismiss","escape"]},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"close","type":"object","shape":{"kind":"object","fields":[{"name":"open","type":{"kind":"terminal","name":"boolean"},"optional":false},{"name":"reason","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["action","programmatic","light-dismiss","escape"]},"optional":false},{"name":"trigger","type":{"kind":"constrained","base":{"kind":"terminal","name":"keyword"},"values":["keyboard","pointer","programmatic"]},"optional":false}],"open":false},"bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
|
|
7
7
|
|
|
8
8
|
export function createUiPopover(options = {}) {
|
|
9
9
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -7,6 +7,7 @@ export interface UiScrollAreaElement extends HTMLDivElement {
|
|
|
7
7
|
}
|
|
8
8
|
export interface UiScrollAreaProps {
|
|
9
9
|
orientation?: "vertical" | "horizontal" | null;
|
|
10
|
+
size?: "content" | "sm" | "md" | "lg" | null;
|
|
10
11
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
11
12
|
children?: readonly (string | Node)[];
|
|
12
13
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
package/vanilla/UiScrollArea.js
CHANGED
|
@@ -3,7 +3,7 @@ import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
|
3
3
|
import * as controller from "../components/ui-scroll-area/ui-scroll-area.js";
|
|
4
4
|
import "../styles/ui-scroll-area.css";
|
|
5
5
|
|
|
6
|
-
const definition = {...{"contract":{"tag":"ui-scroll-area","props":{"orientation":{"type":{"kind":"terminal","name":"keyword"},"values":["vertical","horizontal"],"required":false,"target":{"attribute":"orientation"},"default":"vertical"}}},"template":{"kind":"element","name":"div","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"slot"}],"ref":"content"}]},"declarations":[],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
|
|
6
|
+
const definition = {...{"contract":{"tag":"ui-scroll-area","props":{"orientation":{"type":{"kind":"terminal","name":"keyword"},"values":["vertical","horizontal"],"required":false,"target":{"attribute":"orientation"},"default":"vertical"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["content","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"content"}}},"template":{"kind":"element","name":"div","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"slot"}],"ref":"content"}]},"declarations":[],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
|
|
7
7
|
|
|
8
8
|
export function createUiScrollArea(options = {}) {
|
|
9
9
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -6,6 +6,7 @@ export interface UiSearchResultRowElement extends HTMLButtonElement {
|
|
|
6
6
|
removeEventListener<K extends keyof UiSearchResultRowEventMap>(type: K, listener: (this: UiSearchResultRowElement, event: UiSearchResultRowEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
7
7
|
}
|
|
8
8
|
export interface UiSearchResultRowProps {
|
|
9
|
+
density?: "comfortable" | "compact" | null;
|
|
9
10
|
disabled?: boolean | null;
|
|
10
11
|
selected?: boolean | null;
|
|
11
12
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
3
3
|
import "../styles/ui-search-result-row.css";
|
|
4
4
|
|
|
5
|
-
const definition = {...{"contract":{"tag":"ui-search-result-row","props":{"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"selected":{"type":"boolean","required":false,"target":{"attribute":"aria-current"},"default":false}}},"template":{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-current","expression":"selected","expressionPlan":{"source":"selected","ast":{"kind":"id","name":"selected"},"dependencies":["selected"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"title"}],"children":[{"kind":"slot","fallback":[],"name":"title"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"meta"}],"children":[{"kind":"slot","fallback":[],"name":"meta"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"excerpt"}],"children":[{"kind":"slot","fallback":[],"name":"excerpt"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"trailing"}],"children":[{"kind":"slot","fallback":[],"name":"trailing"}]}]},"declarations":[],"root":{"kind":"native","element":"button","choices":["button"]}},source:{file:import.meta.url},css:""};
|
|
5
|
+
const definition = {...{"contract":{"tag":"ui-search-result-row","props":{"density":{"type":{"kind":"terminal","name":"keyword"},"values":["comfortable","compact"],"required":false,"target":{"attribute":"density"},"default":"comfortable"},"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"selected":{"type":"boolean","required":false,"target":{"attribute":"aria-current"},"default":false}}},"template":{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-current","expression":"selected","expressionPlan":{"source":"selected","ast":{"kind":"id","name":"selected"},"dependencies":["selected"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"title"}],"children":[{"kind":"slot","fallback":[],"name":"title"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"meta"}],"children":[{"kind":"slot","fallback":[],"name":"meta"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"excerpt"}],"children":[{"kind":"slot","fallback":[],"name":"excerpt"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"trailing"}],"children":[{"kind":"slot","fallback":[],"name":"trailing"}]}]},"declarations":[],"root":{"kind":"native","element":"button","choices":["button"]}},source:{file:import.meta.url},css:""};
|
|
6
6
|
|
|
7
7
|
export function createUiSearchResultRow(options = {}) {
|
|
8
8
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
package/vanilla/UiStack.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface UiStackElement extends HTMLDivElement {
|
|
|
7
7
|
}
|
|
8
8
|
export interface UiStackProps {
|
|
9
9
|
align?: "start" | "center" | "end" | "stretch" | null;
|
|
10
|
-
gap?: "xs" | "s" | "m" | "l" | "xl" | null;
|
|
10
|
+
gap?: "none" | "xs" | "s" | "m" | "l" | "xl" | null;
|
|
11
11
|
justify?: "start" | "center" | "end" | "between" | null;
|
|
12
12
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
13
13
|
children?: readonly (string | Node)[];
|
package/vanilla/UiStack.js
CHANGED
|
@@ -25,7 +25,7 @@ export function createUiStack(options = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
manageGeneratedProps(element, [
|
|
27
27
|
{ name: "align", attribute: "data-align", value: componentProps["align"], type: ["start","center","end","stretch"], required: false },
|
|
28
|
-
{ name: "gap", attribute: "data-gap", value: componentProps["gap"], type: ["xs","s","m","l","xl"], required: false },
|
|
28
|
+
{ name: "gap", attribute: "data-gap", value: componentProps["gap"], type: ["none","xs","s","m","l","xl"], required: false },
|
|
29
29
|
{ name: "justify", attribute: "data-justify", value: componentProps["justify"], type: ["start","center","end","between"], required: false },
|
|
30
30
|
]);
|
|
31
31
|
return element;
|
package/vanilla/UiText.d.ts
CHANGED
|
@@ -8,11 +8,13 @@ export interface UiTextElement extends HTMLElement {
|
|
|
8
8
|
export interface UiTextProps {
|
|
9
9
|
align?: "start" | "center" | null;
|
|
10
10
|
as?: "p" | "span" | "div" | "small" | "strong" | "label" | "h2" | "h3" | "h4" | "h5" | "h6" | null;
|
|
11
|
+
font?: "inherit" | "sans" | null;
|
|
11
12
|
size?: "inherit" | "xs" | "sm" | "md" | "lg" | null;
|
|
12
13
|
tone?: "default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null;
|
|
13
14
|
truncate?: boolean | null;
|
|
14
15
|
variant?: "body" | "eyebrow" | "code" | null;
|
|
15
16
|
weight?: "inherit" | "normal" | "medium" | "semibold" | null;
|
|
17
|
+
wrap?: "normal" | "anywhere" | null;
|
|
16
18
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
17
19
|
children?: readonly (string | Node)[];
|
|
18
20
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
package/vanilla/UiText.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { componentRootIndex, manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
3
3
|
import "../styles/ui-text.css";
|
|
4
4
|
|
|
5
|
-
const definition = {...{"contract":{"tag":"ui-text","props":{"align":{"type":{"kind":"terminal","name":"keyword"},"values":["start","center"],"required":false,"target":{"attribute":"align"},"default":"start"},"as":{"type":{"kind":"terminal","name":"keyword"},"values":["p","span","div","small","strong","label","h2","h3","h4","h5","h6"],"required":false,"target":{"attribute":"as"},"default":"p"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["inherit","xs","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"inherit"},"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["default","secondary","muted","accent","danger","success","info","warning"],"required":false,"target":{"attribute":"tone"},"default":"default"},"truncate":{"type":"boolean","required":false,"target":{"attribute":"truncate"},"default":false},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["body","eyebrow","code"],"required":false,"target":{"attribute":"variant"},"default":"body"},"weight":{"type":{"kind":"terminal","name":"keyword"},"values":["inherit","normal","medium","semibold"],"required":false,"target":{"attribute":"weight"},"default":"inherit"}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"span","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'span'","testPlan":{"source":"as = 'span'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"span"}},"dependencies":["as"]}}},{"kind":"element","name":"div","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'div'","testPlan":{"source":"as = 'div'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"div"}},"dependencies":["as"]}}},{"kind":"element","name":"small","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'small'","testPlan":{"source":"as = 'small'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"small"}},"dependencies":["as"]}}},{"kind":"element","name":"strong","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'strong'","testPlan":{"source":"as = 'strong'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"strong"}},"dependencies":["as"]}}},{"kind":"element","name":"label","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'label'","testPlan":{"source":"as = 'label'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"label"}},"dependencies":["as"]}}},{"kind":"element","name":"h2","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h2'","testPlan":{"source":"as = 'h2'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h2"}},"dependencies":["as"]}}},{"kind":"element","name":"h3","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h3'","testPlan":{"source":"as = 'h3'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h3"}},"dependencies":["as"]}}},{"kind":"element","name":"h4","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h4'","testPlan":{"source":"as = 'h4'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h4"}},"dependencies":["as"]}}},{"kind":"element","name":"h5","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h5'","testPlan":{"source":"as = 'h5'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h5"}},"dependencies":["as"]}}},{"kind":"element","name":"h6","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h6'","testPlan":{"source":"as = 'h6'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h6"}},"dependencies":["as"]}}},{"kind":"element","name":"p","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"p","choices":["span","div","small","strong","label","h2","h3","h4","h5","h6","p"]}},source:{file:import.meta.url},css:""};
|
|
5
|
+
const definition = {...{"contract":{"tag":"ui-text","props":{"align":{"type":{"kind":"terminal","name":"keyword"},"values":["start","center"],"required":false,"target":{"attribute":"align"},"default":"start"},"as":{"type":{"kind":"terminal","name":"keyword"},"values":["p","span","div","small","strong","label","h2","h3","h4","h5","h6"],"required":false,"target":{"attribute":"as"},"default":"p"},"font":{"type":{"kind":"terminal","name":"keyword"},"values":["inherit","sans"],"required":false,"target":{"attribute":"font"},"default":"inherit"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["inherit","xs","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"inherit"},"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["default","secondary","muted","accent","danger","success","info","warning"],"required":false,"target":{"attribute":"tone"},"default":"default"},"truncate":{"type":"boolean","required":false,"target":{"attribute":"truncate"},"default":false},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["body","eyebrow","code"],"required":false,"target":{"attribute":"variant"},"default":"body"},"weight":{"type":{"kind":"terminal","name":"keyword"},"values":["inherit","normal","medium","semibold"],"required":false,"target":{"attribute":"weight"},"default":"inherit"},"wrap":{"type":{"kind":"terminal","name":"keyword"},"values":["normal","anywhere"],"required":false,"target":{"attribute":"wrap"},"default":"normal"}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"span","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'span'","testPlan":{"source":"as = 'span'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"span"}},"dependencies":["as"]}}},{"kind":"element","name":"div","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'div'","testPlan":{"source":"as = 'div'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"div"}},"dependencies":["as"]}}},{"kind":"element","name":"small","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'small'","testPlan":{"source":"as = 'small'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"small"}},"dependencies":["as"]}}},{"kind":"element","name":"strong","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'strong'","testPlan":{"source":"as = 'strong'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"strong"}},"dependencies":["as"]}}},{"kind":"element","name":"label","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'label'","testPlan":{"source":"as = 'label'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"label"}},"dependencies":["as"]}}},{"kind":"element","name":"h2","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h2'","testPlan":{"source":"as = 'h2'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h2"}},"dependencies":["as"]}}},{"kind":"element","name":"h3","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h3'","testPlan":{"source":"as = 'h3'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h3"}},"dependencies":["as"]}}},{"kind":"element","name":"h4","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h4'","testPlan":{"source":"as = 'h4'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h4"}},"dependencies":["as"]}}},{"kind":"element","name":"h5","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h5'","testPlan":{"source":"as = 'h5'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h5"}},"dependencies":["as"]}}},{"kind":"element","name":"h6","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'h6'","testPlan":{"source":"as = 'h6'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"h6"}},"dependencies":["as"]}}},{"kind":"element","name":"p","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"p","choices":["span","div","small","strong","label","h2","h3","h4","h5","h6","p"]}},source:{file:import.meta.url},css:""};
|
|
6
6
|
|
|
7
7
|
export function createUiText(options = {}) {
|
|
8
8
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
package/vue/UiAvatar.vue
CHANGED
|
@@ -357,7 +357,7 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
|
|
|
357
357
|
inline-size: 2.5rem;
|
|
358
358
|
block-size: 2.5rem;
|
|
359
359
|
border-radius: var(--ui-avatar-radius, var(--ui-radius-round));
|
|
360
|
-
border:
|
|
360
|
+
border: var(--ui-border-width) solid
|
|
361
361
|
var(
|
|
362
362
|
--ui-avatar-border,
|
|
363
363
|
color-mix(in srgb, var(--ui-accent-solid) 35%, var(--ui-surface-default))
|
|
@@ -399,8 +399,8 @@ useComponentHost(() => import('../components/ui-avatar/ui-avatar.js'), {
|
|
|
399
399
|
/* An outline, not a dot: the avatar clips its content to the circle, and an outline is drawn
|
|
400
400
|
outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
|
|
401
401
|
[data-component~="ui-avatar"][data-ui-avatar-state~="active"] {
|
|
402
|
-
outline:
|
|
403
|
-
outline-offset:
|
|
402
|
+
outline: var(--ui-border-width) solid var(--ui-avatar-active-ring, var(--ui-accent-solid));
|
|
403
|
+
outline-offset: var(--ui-border-width);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
.image,
|
package/vue/UiAvatarGroup.vue
CHANGED
|
@@ -285,7 +285,7 @@ useComponentHost(() => import('../components/ui-avatar-group/ui-avatar-group.js'
|
|
|
285
285
|
inline-size: 2.5rem;
|
|
286
286
|
block-size: 2.5rem;
|
|
287
287
|
border-radius: var(--ui-radius-round);
|
|
288
|
-
border:
|
|
288
|
+
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
289
289
|
background: var(--ui-surface-elevated);
|
|
290
290
|
color: var(--ui-text-primary);
|
|
291
291
|
box-shadow:
|
package/vue/UiBadge.vue
CHANGED
|
@@ -253,7 +253,8 @@ const hostState = computed(() =>
|
|
|
253
253
|
max-width: 100%;
|
|
254
254
|
padding: var(--ui-badge-padding-block, var(--ui-space-0-5))
|
|
255
255
|
var(--ui-badge-padding-inline, var(--ui-space-2));
|
|
256
|
-
border:
|
|
256
|
+
border: var(--ui-border-width) solid
|
|
257
|
+
var(--ui-badge-border, var(--_badge-color-border, var(--_badge-border)));
|
|
257
258
|
border-radius: var(--ui-radius-round);
|
|
258
259
|
background: var(--_badge-outline-surface);
|
|
259
260
|
color: var(--ui-badge-text, var(--_badge-color-text, var(--_badge-text)));
|
package/vue/UiButton.vue
CHANGED
|
@@ -601,7 +601,7 @@ function attribute(value: unknown): any {
|
|
|
601
601
|
appearance: none;
|
|
602
602
|
min-block-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
603
603
|
border-style: solid;
|
|
604
|
-
border-width:
|
|
604
|
+
border-width: var(--ui-border-width);
|
|
605
605
|
border-color: var(--ui-button-border, var(--_tone));
|
|
606
606
|
border-radius: var(--ui-button-radius, var(--ui-action-radius, var(--ui-radius-md)));
|
|
607
607
|
background-color: var(--ui-button-surface, oklch(from var(--_tone) l c h / 5%));
|
|
@@ -877,8 +877,8 @@ html[data-ui-input-modality="touch"]
|
|
|
877
877
|
[data-component~="ui-button"][data-ui-button-state~="variant=link"]:focus-visible {
|
|
878
878
|
box-shadow: none;
|
|
879
879
|
/* Fallback keeps the ring if the token is missing: an unresolved var() would void the outline. */
|
|
880
|
-
outline:
|
|
881
|
-
outline-offset:
|
|
880
|
+
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
881
|
+
outline-offset: var(--ui-focus-width);
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
package/vue/UiCallout.vue
CHANGED
|
@@ -243,9 +243,9 @@ const hostState = computed(() =>
|
|
|
243
243
|
padding-block: var(--ui-callout-padding-block, var(--ui-space-2));
|
|
244
244
|
padding-inline-start: var(--ui-callout-padding-inline, var(--ui-space-2));
|
|
245
245
|
padding-inline-end: var(--ui-callout-padding-inline, var(--ui-space-3));
|
|
246
|
-
border: var(--ui-callout-border-width,
|
|
246
|
+
border: var(--ui-callout-border-width, var(--ui-border-width)) solid
|
|
247
247
|
color-mix(in srgb, var(--ui-callout-border, var(--_callout-border)) 35%, transparent);
|
|
248
|
-
border-inline-start: var(--ui-callout-leading-border-width,
|
|
248
|
+
border-inline-start: var(--ui-callout-leading-border-width, var(--ui-accent-line-width)) solid
|
|
249
249
|
var(--ui-callout-border, var(--_callout-border));
|
|
250
250
|
border-radius: var(--ui-radius-md);
|
|
251
251
|
background: var(--ui-callout-surface, var(--_callout-surface));
|
package/vue/UiCard.d.ts
CHANGED
|
@@ -15,7 +15,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
padding: {
|
|
18
|
-
type: PropType<"sm" | "md" | "lg" | null>;
|
|
18
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | null>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<"content" | "sm" | "md" | "lg" | null>;
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
21
25
|
tone: {
|
|
@@ -32,7 +36,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
36
|
default: string;
|
|
33
37
|
};
|
|
34
38
|
padding: {
|
|
35
|
-
type: PropType<"sm" | "md" | "lg" | null>;
|
|
39
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | null>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
type: PropType<"content" | "sm" | "md" | "lg" | null>;
|
|
36
44
|
default: string;
|
|
37
45
|
};
|
|
38
46
|
tone: {
|
|
@@ -44,10 +52,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
44
52
|
default: string;
|
|
45
53
|
};
|
|
46
54
|
}>> & Readonly<{}>, {
|
|
55
|
+
size: "sm" | "md" | "content" | "lg" | null;
|
|
47
56
|
tone: "neutral" | "danger" | null;
|
|
48
57
|
variant: "subtle" | "outlined" | "elevated" | null;
|
|
49
58
|
as: "div" | "article" | "aside" | "section" | null;
|
|
50
|
-
padding: "sm" | "md" | "lg" | null;
|
|
59
|
+
padding: "xs" | "sm" | "md" | "lg" | null;
|
|
51
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
61
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
62
|
declare const _default: typeof __VLS_export;
|
package/vue/UiCard.vue
CHANGED
|
@@ -23,10 +23,19 @@ const propValidityContract = {
|
|
|
23
23
|
required: false,
|
|
24
24
|
target: { attribute: 'padding' },
|
|
25
25
|
description:
|
|
26
|
-
'The space inside the card: sm is snug (0.75rem), md is the default (1.5rem), and lg is roomy (2rem).',
|
|
27
|
-
values: ['sm', 'md', 'lg'],
|
|
26
|
+
'The space inside the card: xs is compact (0.5rem), sm is snug (0.75rem), md is the default (1.5rem), and lg is roomy (2rem).',
|
|
27
|
+
values: ['xs', 'sm', 'md', 'lg'],
|
|
28
28
|
default: 'md',
|
|
29
29
|
},
|
|
30
|
+
size: {
|
|
31
|
+
type: { kind: 'terminal', name: 'keyword' },
|
|
32
|
+
required: false,
|
|
33
|
+
target: { attribute: 'size' },
|
|
34
|
+
description:
|
|
35
|
+
'Optional size preset. content keeps the existing intrinsic sizing; the other sizes constrain the surface for compact, medium, or large content.',
|
|
36
|
+
values: ['content', 'sm', 'md', 'lg'],
|
|
37
|
+
default: 'content',
|
|
38
|
+
},
|
|
30
39
|
tone: {
|
|
31
40
|
type: { kind: 'terminal', name: 'keyword' },
|
|
32
41
|
required: false,
|
|
@@ -52,7 +61,11 @@ const props = defineProps({
|
|
|
52
61
|
type: null as unknown as PropType<'div' | 'section' | 'article' | 'aside' | null>,
|
|
53
62
|
default: 'div',
|
|
54
63
|
},
|
|
55
|
-
padding: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null>, default: 'md' },
|
|
64
|
+
padding: { type: null as unknown as PropType<'xs' | 'sm' | 'md' | 'lg' | null>, default: 'md' },
|
|
65
|
+
size: {
|
|
66
|
+
type: null as unknown as PropType<'content' | 'sm' | 'md' | 'lg' | null>,
|
|
67
|
+
default: 'content',
|
|
68
|
+
},
|
|
56
69
|
tone: { type: null as unknown as PropType<'neutral' | 'danger' | null>, default: 'neutral' },
|
|
57
70
|
variant: {
|
|
58
71
|
type: null as unknown as PropType<'outlined' | 'subtle' | 'elevated' | null>,
|
|
@@ -62,6 +75,7 @@ const props = defineProps({
|
|
|
62
75
|
const acceptedProps: Record<string, unknown> = {
|
|
63
76
|
as: 'div',
|
|
64
77
|
padding: 'md',
|
|
78
|
+
size: 'content',
|
|
65
79
|
tone: 'neutral',
|
|
66
80
|
variant: 'outlined',
|
|
67
81
|
}
|
|
@@ -73,13 +87,20 @@ const checkedProps = computed(() => ({
|
|
|
73
87
|
'as',
|
|
74
88
|
acceptedProps,
|
|
75
89
|
) as 'div' | 'section' | 'article' | 'aside',
|
|
76
|
-
padding: checkedProp<'sm' | 'md' | 'lg'>(
|
|
90
|
+
padding: checkedProp<'xs' | 'sm' | 'md' | 'lg'>(
|
|
77
91
|
props['padding'],
|
|
78
92
|
{ kind: 'terminal', name: 'keyword' },
|
|
79
93
|
false,
|
|
80
94
|
'padding',
|
|
81
95
|
acceptedProps,
|
|
82
|
-
) as 'sm' | 'md' | 'lg',
|
|
96
|
+
) as 'xs' | 'sm' | 'md' | 'lg',
|
|
97
|
+
size: checkedProp<'content' | 'sm' | 'md' | 'lg'>(
|
|
98
|
+
props['size'],
|
|
99
|
+
{ kind: 'terminal', name: 'keyword' },
|
|
100
|
+
false,
|
|
101
|
+
'size',
|
|
102
|
+
acceptedProps,
|
|
103
|
+
) as 'content' | 'sm' | 'md' | 'lg',
|
|
83
104
|
tone: checkedProp<'neutral' | 'danger'>(
|
|
84
105
|
props['tone'],
|
|
85
106
|
{ kind: 'terminal', name: 'keyword' },
|
|
@@ -166,6 +187,8 @@ const hostState = computed(() =>
|
|
|
166
187
|
&& `variant=${encodeURIComponent(checkedProps.value.variant)}`,
|
|
167
188
|
checkedProps.value.tone && 'tone',
|
|
168
189
|
checkedProps.value.tone != null && `tone=${encodeURIComponent(checkedProps.value.tone)}`,
|
|
190
|
+
checkedProps.value.size && 'size',
|
|
191
|
+
checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
|
|
169
192
|
].filter(Boolean).join(' ')
|
|
170
193
|
)
|
|
171
194
|
</script>
|
|
@@ -178,6 +201,7 @@ const hostState = computed(() =>
|
|
|
178
201
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
179
202
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
180
203
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
204
|
+
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
181
205
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
182
206
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
183
207
|
:data-ui-card-state="hostState || undefined"
|
|
@@ -192,6 +216,7 @@ const hostState = computed(() =>
|
|
|
192
216
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
193
217
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
194
218
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
219
|
+
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
195
220
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
196
221
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
197
222
|
:data-ui-card-state="hostState || undefined"
|
|
@@ -206,6 +231,7 @@ const hostState = computed(() =>
|
|
|
206
231
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
207
232
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
208
233
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
234
|
+
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
209
235
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
210
236
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
211
237
|
:data-ui-card-state="hostState || undefined"
|
|
@@ -220,6 +246,7 @@ const hostState = computed(() =>
|
|
|
220
246
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
221
247
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
222
248
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
249
|
+
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
223
250
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
224
251
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
225
252
|
:data-ui-card-state="hostState || undefined"
|
|
@@ -239,12 +266,16 @@ const hostState = computed(() =>
|
|
|
239
266
|
box-sizing: border-box;
|
|
240
267
|
min-inline-size: 0;
|
|
241
268
|
padding: var(--ui-space-5);
|
|
242
|
-
border:
|
|
269
|
+
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
243
270
|
border-radius: var(--ui-radius-lg);
|
|
244
271
|
background: var(--ui-surface-raised);
|
|
245
272
|
color: var(--ui-text-primary);
|
|
246
273
|
}
|
|
247
274
|
|
|
275
|
+
[data-component~="ui-card"][data-ui-card-state~="padding=xs"] {
|
|
276
|
+
gap: var(--ui-space-1);
|
|
277
|
+
padding: var(--ui-space-2);
|
|
278
|
+
}
|
|
248
279
|
[data-component~="ui-card"][data-ui-card-state~="padding=sm"] {
|
|
249
280
|
gap: var(--ui-space-2);
|
|
250
281
|
padding: var(--ui-space-3);
|
|
@@ -266,10 +297,23 @@ const hostState = computed(() =>
|
|
|
266
297
|
|
|
267
298
|
[data-component~="ui-card"][data-ui-card-state~="tone=danger"] {
|
|
268
299
|
border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
|
|
269
|
-
border-inline-start:
|
|
300
|
+
border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
|
|
270
301
|
background: var(--ui-danger-soft);
|
|
271
302
|
}
|
|
272
303
|
|
|
304
|
+
[data-component~="ui-card"][data-ui-card-state~="size=sm"] {
|
|
305
|
+
inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
306
|
+
max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
307
|
+
}
|
|
308
|
+
[data-component~="ui-card"][data-ui-card-state~="size=md"] {
|
|
309
|
+
inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
310
|
+
max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
311
|
+
}
|
|
312
|
+
[data-component~="ui-card"][data-ui-card-state~="size=lg"] {
|
|
313
|
+
inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
314
|
+
max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
315
|
+
}
|
|
316
|
+
|
|
273
317
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
274
318
|
[data-component~="ui-card"][hidden] {
|
|
275
319
|
display: none;
|
package/vue/UiCheckbox.vue
CHANGED
|
@@ -384,7 +384,7 @@ input {
|
|
|
384
384
|
inline-size: var(--_ui-checkbox-size, 1.125rem);
|
|
385
385
|
block-size: var(--_ui-checkbox-size, 1.125rem);
|
|
386
386
|
margin: 0.125em 0 0;
|
|
387
|
-
border:
|
|
387
|
+
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
388
388
|
border-radius: var(--ui-radius-sm);
|
|
389
389
|
background: var(--ui-control-surface, var(--ui-surface-default));
|
|
390
390
|
box-shadow: var(--ui-control-inset);
|
|
@@ -461,8 +461,8 @@ input:hover:enabled {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
input:focus-visible {
|
|
464
|
-
outline:
|
|
465
|
-
outline-offset:
|
|
464
|
+
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
465
|
+
outline-offset: var(--ui-focus-width);
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
[data-component~="ui-checkbox"][data-ui-checkbox-state~="invalid"] input {
|
package/vue/UiCombobox.vue
CHANGED
|
@@ -1747,7 +1747,7 @@ label {
|
|
|
1747
1747
|
flex: 1 1 auto;
|
|
1748
1748
|
display: flex;
|
|
1749
1749
|
min-inline-size: 0;
|
|
1750
|
-
border:
|
|
1750
|
+
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-default));
|
|
1751
1751
|
border-radius: var(--_ui-combobox-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
1752
1752
|
background: var(--ui-control-surface, var(--ui-surface-default));
|
|
1753
1753
|
box-shadow: var(--ui-control-inset);
|
|
@@ -1866,7 +1866,8 @@ button:hover:enabled {
|
|
|
1866
1866
|
button:focus-visible {
|
|
1867
1867
|
outline: none;
|
|
1868
1868
|
background: var(--ui-surface-muted);
|
|
1869
|
-
box-shadow: inset 0 0 0
|
|
1869
|
+
box-shadow: inset 0 0 0 var(--ui-focus-width)
|
|
1870
|
+
color-mix(in srgb, var(--ui-focus-ring) 45%, transparent);
|
|
1870
1871
|
}
|
|
1871
1872
|
input:disabled, button:disabled {
|
|
1872
1873
|
color: var(--ui-disabled-text);
|
|
@@ -1890,7 +1891,7 @@ input:disabled, button:disabled {
|
|
|
1890
1891
|
overflow: auto;
|
|
1891
1892
|
margin: 0;
|
|
1892
1893
|
padding: var(--ui-space-1);
|
|
1893
|
-
border:
|
|
1894
|
+
border: var(--ui-border-width) solid
|
|
1894
1895
|
var(--_ui-combobox-popup-border, var(--ui-overlay-border, var(--ui-border-strong)));
|
|
1895
1896
|
border-radius: var(--_ui-combobox-popup-radius, var(--ui-overlay-radius, var(--ui-radius-md)));
|
|
1896
1897
|
background: var(
|
|
@@ -1912,7 +1913,7 @@ input:disabled, button:disabled {
|
|
|
1912
1913
|
}
|
|
1913
1914
|
.primary {
|
|
1914
1915
|
display: block;
|
|
1915
|
-
color: var(--_ui-combobox-option-text,
|
|
1916
|
+
color: var(--_ui-combobox-option-text, inherit);
|
|
1916
1917
|
font-weight: 500;
|
|
1917
1918
|
}
|
|
1918
1919
|
/* A row with a tag or a description: the label and its tag on one line, the description under them. */
|
|
@@ -2003,7 +2004,7 @@ input:disabled, button:disabled {
|
|
|
2003
2004
|
}
|
|
2004
2005
|
[data-component~="ui-combobox"][data-ui-combobox-state~="multiple"][data-component~="ui-combobox"][data-ui-combobox-state~="size=sm"]
|
|
2005
2006
|
input {
|
|
2006
|
-
min-block-size: calc(var(--_row) -
|
|
2007
|
+
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
|
|
2007
2008
|
padding: 0 var(--ui-space-1);
|
|
2008
2009
|
}
|
|
2009
2010
|
/* A large multiple field starts at the large control height, as sm starts at the small one. */
|
|
@@ -2013,7 +2014,9 @@ input:disabled, button:disabled {
|
|
|
2013
2014
|
}
|
|
2014
2015
|
[data-component~="ui-combobox"][data-ui-combobox-state~="multiple"][data-component~="ui-combobox"][data-ui-combobox-state~="size=lg"]
|
|
2015
2016
|
input {
|
|
2016
|
-
min-block-size: calc(
|
|
2017
|
+
min-block-size: calc(
|
|
2018
|
+
var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
|
|
2019
|
+
);
|
|
2017
2020
|
}
|
|
2018
2021
|
.item {
|
|
2019
2022
|
appearance: none;
|
|
@@ -2031,8 +2034,8 @@ input:disabled, button:disabled {
|
|
|
2031
2034
|
cursor: default;
|
|
2032
2035
|
}
|
|
2033
2036
|
.item:focus-visible {
|
|
2034
|
-
outline:
|
|
2035
|
-
outline-offset:
|
|
2037
|
+
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
2038
|
+
outline-offset: var(--ui-border-width);
|
|
2036
2039
|
}
|
|
2037
2040
|
.item:disabled {
|
|
2038
2041
|
color: var(--ui-disabled-text);
|
package/vue/UiContextMenu.vue
CHANGED
|
@@ -245,7 +245,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
245
245
|
--_ui-context-menu-surface,
|
|
246
246
|
var(--ui-overlay-surface, var(--ui-surface-elevated))
|
|
247
247
|
);
|
|
248
|
-
border:
|
|
248
|
+
border: var(--ui-border-width) solid
|
|
249
249
|
var(--_ui-context-menu-border, var(--ui-overlay-border, var(--ui-border-strong)));
|
|
250
250
|
border-radius: var(--_ui-context-menu-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
251
251
|
box-shadow: var(
|
|
@@ -270,7 +270,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
270
270
|
block-size: 0;
|
|
271
271
|
margin: var(--ui-space-1) 0;
|
|
272
272
|
border: 0;
|
|
273
|
-
border-block-start:
|
|
273
|
+
border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
.menu:popover-open {
|