@threadlabs/looma 0.20.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
- package/components/ui-button/ui-button.html +10 -10
- package/components/ui-checkbox/ui-checkbox.html +5 -5
- package/components/ui-combobox/ui-combobox.html +42 -40
- package/components/ui-dialog/ui-dialog.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +3 -3
- package/components/ui-editable/ui-editable.html +5 -5
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +6 -6
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +5 -5
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +2 -2
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +7 -7
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +17 -17
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +15 -15
- package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
- package/components/ui-icon/ui-icon.html +13 -4
- package/components/ui-icon-button/ui-icon-button.html +4 -4
- package/components/ui-input/ui-input.html +1 -1
- package/components/ui-list-item/ui-list-item.html +1 -1
- package/components/ui-listbox/ui-listbox.html +24 -15
- package/components/ui-menu-group/ui-menu-group.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +7 -7
- package/components/ui-meter/ui-meter.html +5 -5
- package/components/ui-nav-item/ui-nav-item.html +5 -5
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-result-row/ui-search-result-row.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +1 -1
- package/components/ui-separator/ui-separator.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-spinner/ui-spinner.html +4 -4
- package/components/ui-status-message/ui-status-message.html +3 -3
- package/components/ui-switch/ui-switch.html +10 -1
- package/components/ui-tabs/ui-tabs.html +5 -5
- package/components/ui-textarea/ui-textarea.html +9 -1
- package/components/ui-toast/ui-toast.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +11 -3
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +17 -17
- package/components/ui-tree-item/ui-tree-item.js +4 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +2 -2
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +1 -1
- package/vue/UiAvatarGroup.vue +1 -1
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +1 -1
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +1 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.vue +1 -1
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +1 -1
- package/vue/UiDisclosure.vue +1 -1
- package/vue/UiEditable.vue +1 -1
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +1 -1
- package/vue/UiEditorTableToolbar.vue +1 -1
- package/vue/UiEditorToolbar.vue +1 -1
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.vue +1 -1
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +1 -1
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +1 -1
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.vue +1 -1
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +1 -1
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +1 -1
- package/vue/UiToastRegion.vue +1 -1
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +2 -2
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.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/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- 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/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- 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/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- 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/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +1193 -1193
- package/vue/host.ts +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
widths.</prop>
|
|
7
7
|
<prop name="label" type="string" default="">The button's accessible name. The button usually holds only an icon, so name the action it performs.</prop>
|
|
8
8
|
</defs>
|
|
9
|
-
<button type="button" :aria-label="label" :disabled="disabled"><slot></slot></button>
|
|
9
|
+
<button type="button" from:aria-label="label" from:disabled="disabled"><slot></slot></button>
|
|
10
10
|
<style>
|
|
11
11
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
12
12
|
@property --ui-floating-action-button-inset-block-end {
|
|
@@ -78,10 +78,19 @@
|
|
|
78
78
|
<span aria-hidden="true">
|
|
79
79
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" focusable="false">
|
|
80
80
|
<g $each="shape of shapes">
|
|
81
|
-
<path $if="shape.tag = 'path'" :d="shape.d"></path>
|
|
82
|
-
<circle $if="shape.tag = 'circle'" :cx="shape.cx" :cy="shape.cy" :r="shape.r"></circle>
|
|
83
|
-
<rect
|
|
84
|
-
|
|
81
|
+
<path $if="shape.tag = 'path'" from:d="shape.d"></path>
|
|
82
|
+
<circle $if="shape.tag = 'circle'" from:cx="shape.cx" from:cy="shape.cy" from:r="shape.r"></circle>
|
|
83
|
+
<rect
|
|
84
|
+
$if="shape.tag = 'rect'"
|
|
85
|
+
from:x="shape.x"
|
|
86
|
+
from:y="shape.y"
|
|
87
|
+
from:width="shape.width"
|
|
88
|
+
from:height="shape.height"
|
|
89
|
+
from:rx="shape.rx"
|
|
90
|
+
from:ry="shape.ry"
|
|
91
|
+
>
|
|
92
|
+
</rect>
|
|
93
|
+
<line $if="shape.tag = 'line'" from:x1="shape.x1" from:y1="shape.y1" from:x2="shape.x2" from:y2="shape.y2"></line>
|
|
85
94
|
</g>
|
|
86
95
|
</svg>
|
|
87
96
|
</span>
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
<prop name="round" type="boolean" default="false">Use a fully circular shape.</prop>
|
|
21
21
|
</defs>
|
|
22
22
|
<button
|
|
23
|
-
:disabled="disabled"
|
|
23
|
+
from:disabled="disabled"
|
|
24
24
|
type="button"
|
|
25
|
-
:aria-label="label"
|
|
26
|
-
:aria-disabled="{ true: 'true', false: null }[format('%s', loading or pending)]"
|
|
27
|
-
:aria-busy="loading or pending"
|
|
25
|
+
from:aria-label="label"
|
|
26
|
+
from:aria-disabled="{ true: 'true', false: null }[format('%s', loading or pending)]"
|
|
27
|
+
from:aria-busy="loading or pending"
|
|
28
28
|
>
|
|
29
29
|
<ui-spinner $if="loading or pending" size="sm"></ui-spinner>
|
|
30
30
|
<span class="content"><slot></slot></span>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
coarse pointer, sm grows to the 44px touch minimum and keeps body-size text. Change it after render through this option; the element's size property is
|
|
37
37
|
the native one.</prop>
|
|
38
38
|
</defs>
|
|
39
|
-
<input :type="type" :value="value" :disabled="disabled" :readonly="readonly" :required="required" :aria-invalid="invalid">
|
|
39
|
+
<input from:type="type" from:value="value" from:disabled="disabled" from:readonly="readonly" from:required="required" from:aria-invalid="invalid">
|
|
40
40
|
<style>
|
|
41
41
|
/* This component's hooks style the element they are set on, and never a nested one. An Input
|
|
42
42
|
Group sets --_ui-default-input-* for the input inside it, below the input's own hooks. */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
>Marks the item as the current one, such as the site you are in: it takes the selected surface and aria-current="true", which assistive technology
|
|
8
8
|
announces. Set it on one item at a time.</prop>
|
|
9
9
|
</defs>
|
|
10
|
-
<li :aria-current="current">
|
|
10
|
+
<li from:aria-current="current">
|
|
11
11
|
<span class="leading"><slot name="leading"></slot></span>
|
|
12
12
|
<span class="content">
|
|
13
13
|
<span class="title"><slot></slot></span>
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
</defs>
|
|
26
26
|
<div
|
|
27
27
|
role="listbox"
|
|
28
|
-
:tabindex="{ true: '-1', false: '0' }[format('%s', disabled)]"
|
|
29
|
-
:aria-multiselectable="multiple"
|
|
30
|
-
:aria-disabled="disabled"
|
|
31
|
-
:aria-required="required"
|
|
32
|
-
:aria-invalid="invalid or validationError"
|
|
28
|
+
from:tabindex="{ true: '-1', false: '0' }[format('%s', disabled)]"
|
|
29
|
+
from:aria-multiselectable="multiple"
|
|
30
|
+
from:aria-disabled="disabled"
|
|
31
|
+
from:aria-required="required"
|
|
32
|
+
from:aria-invalid="invalid or validationError"
|
|
33
33
|
style:--_rows="rows"
|
|
34
34
|
>
|
|
35
35
|
<ui-scroll-area class="choices" $ref="choices">
|
|
@@ -40,28 +40,37 @@
|
|
|
40
40
|
class:active="choice.index = active"
|
|
41
41
|
role="option"
|
|
42
42
|
data-ui-choice-option
|
|
43
|
-
:data-multiple="multiple"
|
|
44
|
-
:id="format('%s-option-%s', uid, choice.index)"
|
|
45
|
-
:data-index="choice.index"
|
|
46
|
-
:aria-selected="choice.selected"
|
|
47
|
-
:aria-disabled="choice.disabled"
|
|
43
|
+
from:data-multiple="multiple"
|
|
44
|
+
from:id="format('%s-option-%s', uid, choice.index)"
|
|
45
|
+
from:data-index="choice.index"
|
|
46
|
+
from:aria-selected="choice.selected"
|
|
47
|
+
from:aria-disabled="choice.disabled"
|
|
48
48
|
>
|
|
49
49
|
<span $value="choice.label"></span>
|
|
50
50
|
</div>
|
|
51
51
|
</ui-scroll-area>
|
|
52
|
-
<select
|
|
52
|
+
<select
|
|
53
|
+
class="fallback"
|
|
54
|
+
$ref="options"
|
|
55
|
+
from:size="rows"
|
|
56
|
+
from:multiple="multiple"
|
|
57
|
+
from:disabled="disabled"
|
|
58
|
+
from:required="required"
|
|
59
|
+
from:name="name"
|
|
60
|
+
aria-label="Choices"
|
|
61
|
+
>
|
|
53
62
|
<slot></slot>
|
|
54
63
|
</select>
|
|
55
64
|
<template $if="name and not disabled">
|
|
56
|
-
<input $each="selected of selection" type="hidden" :name="name" :value="selected">
|
|
65
|
+
<input $each="selected of selection" type="hidden" from:name="name" from:value="selected">
|
|
57
66
|
</template>
|
|
58
67
|
<input
|
|
59
68
|
class="validity"
|
|
60
69
|
$ref="validity"
|
|
61
70
|
type="checkbox"
|
|
62
|
-
:required="required and not hasSelection and not disabled"
|
|
63
|
-
:checked="hasSelection"
|
|
64
|
-
:disabled="disabled"
|
|
71
|
+
from:required="required and not hasSelection and not disabled"
|
|
72
|
+
from:checked="hasSelection"
|
|
73
|
+
from:disabled="disabled"
|
|
65
74
|
aria-hidden="true"
|
|
66
75
|
tabindex="-1"
|
|
67
76
|
>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<defs>
|
|
3
3
|
<prop name="label" type="string" default="">Visible heading and accessible name for this group of menu items.</prop>
|
|
4
4
|
</defs>
|
|
5
|
-
<div role="group" :aria-label="label">
|
|
5
|
+
<div role="group" from:aria-label="label">
|
|
6
6
|
<div class="heading" $if="label" $value="label"></div>
|
|
7
7
|
<slot></slot>
|
|
8
8
|
</div>
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
$when="href and type = 'action'"
|
|
24
24
|
role="menuitem"
|
|
25
25
|
tabindex="-1"
|
|
26
|
-
:aria-disabled="disabled"
|
|
27
|
-
:data-value="value"
|
|
28
|
-
:href="{ true: null, false: href }[format('%s', disabled)]"
|
|
26
|
+
from:aria-disabled="disabled"
|
|
27
|
+
from:data-value="value"
|
|
28
|
+
from:href="{ true: null, false: href }[format('%s', disabled)]"
|
|
29
29
|
>
|
|
30
30
|
<span class="label"><slot></slot></span>
|
|
31
31
|
<span class="shortcut" aria-hidden="true"><slot name="shortcut"></slot></span>
|
|
32
32
|
</a>
|
|
33
33
|
<div
|
|
34
34
|
$else
|
|
35
|
-
:role="{ action: 'menuitem', checkbox: 'menuitemcheckbox', radio: 'menuitemradio' }[type]"
|
|
36
|
-
:aria-checked="{ action: null, checkbox: internalChecked, radio: internalChecked }[type]"
|
|
35
|
+
from:role="{ action: 'menuitem', checkbox: 'menuitemcheckbox', radio: 'menuitemradio' }[type]"
|
|
36
|
+
from:aria-checked="{ action: null, checkbox: internalChecked, radio: internalChecked }[type]"
|
|
37
37
|
tabindex="-1"
|
|
38
|
-
:aria-disabled="disabled"
|
|
39
|
-
:data-value="value"
|
|
38
|
+
from:aria-disabled="disabled"
|
|
39
|
+
from:data-value="value"
|
|
40
40
|
>
|
|
41
41
|
<span class="indicator" aria-hidden="true">
|
|
42
42
|
<ui-icon $if="type = 'checkbox' and internalChecked" name="check"></ui-icon>
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
<span
|
|
29
29
|
role="meter"
|
|
30
30
|
aria-valuemin="0"
|
|
31
|
-
:aria-valuemax="max"
|
|
32
|
-
:aria-valuenow="amount"
|
|
33
|
-
:aria-valuetext="{ true: valueText, false: format('%s%', whole) }[format('%s', valueText != '')]"
|
|
34
|
-
:aria-label="{ true: label, false: null }[format('%s', label != '')]"
|
|
35
|
-
:data-ui-meter-segments="{ true: segments, false: null }[format('%s', segments > 1)]"
|
|
31
|
+
from:aria-valuemax="max"
|
|
32
|
+
from:aria-valuenow="amount"
|
|
33
|
+
from:aria-valuetext="{ true: valueText, false: format('%s%', whole) }[format('%s', valueText != '')]"
|
|
34
|
+
from:aria-label="{ true: label, false: null }[format('%s', label != '')]"
|
|
35
|
+
from:data-ui-meter-segments="{ true: segments, false: null }[format('%s', segments > 1)]"
|
|
36
36
|
>
|
|
37
37
|
<span class="fill" style:inline-size="format('%s%', percent)"></span>
|
|
38
38
|
</span>
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
<template $match>
|
|
19
19
|
<a
|
|
20
20
|
$when="as = 'a'"
|
|
21
|
-
:href="href"
|
|
22
|
-
:target="target"
|
|
23
|
-
:rel="rel"
|
|
24
|
-
:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]"
|
|
21
|
+
from:href="href"
|
|
22
|
+
from:target="target"
|
|
23
|
+
from:rel="rel"
|
|
24
|
+
from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]"
|
|
25
25
|
>
|
|
26
26
|
<span class="indicator" aria-hidden="true"></span>
|
|
27
27
|
<span class="leading"><slot name="leading"></slot></span>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<span class="description"><slot name="description"></slot></span>
|
|
31
31
|
</span>
|
|
32
32
|
</a>
|
|
33
|
-
<button $else type="button" :aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]">
|
|
33
|
+
<button $else type="button" from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]">
|
|
34
34
|
<span class="indicator" aria-hidden="true"></span>
|
|
35
35
|
<span class="leading"><slot name="leading"></slot></span>
|
|
36
36
|
<span class="content">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</event>
|
|
25
25
|
</defs>
|
|
26
26
|
<label>
|
|
27
|
-
<input type="radio" $ref="input" .checked="internalChecked" :disabled="disabled" :required="required" :value="value" :name="name">
|
|
27
|
+
<input type="radio" $ref="input" .checked="internalChecked" from:disabled="disabled" from:required="required" from:value="value" from:name="name">
|
|
28
28
|
<span class="text">
|
|
29
29
|
<span class="label"><slot></slot></span>
|
|
30
30
|
<span class="description" $ref="description" aria-hidden="true"><slot name="description"></slot></span>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<prop name="trigger" required type="keyword" values="keyboard, pointer, programmatic"></prop>
|
|
31
31
|
</event>
|
|
32
32
|
</defs>
|
|
33
|
-
<fieldset role="radiogroup" :aria-required="required" :aria-invalid="invalid" :disabled="disabled">
|
|
33
|
+
<fieldset role="radiogroup" from:aria-required="required" from:aria-invalid="invalid" from:disabled="disabled">
|
|
34
34
|
<legend><template $value="label"></template></legend>
|
|
35
35
|
<slot></slot>
|
|
36
36
|
</fieldset>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
>Marks the row as the current result: it gets the hover surface and aria-current="true", which assistive technology announces as current. Set it on one row
|
|
7
7
|
at a time, such as the result the arrow keys have moved to.</prop>
|
|
8
8
|
</defs>
|
|
9
|
-
<button type="button" :disabled="disabled" :aria-current="selected">
|
|
9
|
+
<button type="button" from:disabled="disabled" from:aria-current="selected">
|
|
10
10
|
<span class="leading"><slot name="leading"></slot></span>
|
|
11
11
|
<span class="content">
|
|
12
12
|
<span class="title"><slot name="title"></slot></span>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</event>
|
|
16
16
|
</defs>
|
|
17
17
|
<div>
|
|
18
|
-
<dialog $ref="dialog" :aria-label="label">
|
|
18
|
+
<dialog $ref="dialog" from:aria-label="label">
|
|
19
19
|
<div class="panel">
|
|
20
20
|
<div class="search"><slot name="search"></slot></div>
|
|
21
21
|
<div class="status"><slot name="status"></slot></div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<section>
|
|
12
12
|
<span class="head">
|
|
13
13
|
<span class="copy">
|
|
14
|
-
<h2 class="heading" :hidden="not heading"><template $value="heading"></template></h2>
|
|
14
|
+
<h2 class="heading" from:hidden="not heading"><template $value="heading"></template></h2>
|
|
15
15
|
<span class="description"><slot name="description"></slot></span>
|
|
16
16
|
</span>
|
|
17
17
|
<span class="actions"><slot name="actions"></slot></span>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
with roomier padding. Under a coarse pointer, sm grows to the 44px touch minimum and keeps body-size text. It is not the native size attribute: a select
|
|
13
13
|
is always a single-choice dropdown. Change it after render through this option; the element's size property is the native one.</prop>
|
|
14
14
|
</defs>
|
|
15
|
-
<select :disabled="disabled" :required="required" :aria-invalid="invalid"><slot></slot></select>
|
|
15
|
+
<select from:disabled="disabled" from:required="required" from:aria-invalid="invalid"><slot></slot></select>
|
|
16
16
|
<style>
|
|
17
17
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
18
18
|
@property --ui-select-border {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<prop name="orientation" type="keyword" values="horizontal, vertical" default="horizontal"
|
|
4
4
|
>Whether the separator divides stacked content (horizontal) or inline content (vertical).</prop>
|
|
5
5
|
</defs>
|
|
6
|
-
<hr :aria-orientation="orientation">
|
|
6
|
+
<hr from:aria-orientation="orientation">
|
|
7
7
|
<style>
|
|
8
8
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
9
9
|
@property --ui-separator-color {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
aria-orientation="vertical"
|
|
32
32
|
tabindex="0"
|
|
33
33
|
data-ui-affordance="resize"
|
|
34
|
-
:aria-label="resizeLabel"
|
|
35
|
-
:hidden="not resizable or drawer or internalCollapsed"
|
|
34
|
+
from:aria-label="resizeLabel"
|
|
35
|
+
from:hidden="not resizable or drawer or internalCollapsed"
|
|
36
36
|
>
|
|
37
37
|
<span class="guide" aria-hidden="true"></span>
|
|
38
38
|
</div>
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
</defs>
|
|
8
8
|
<span
|
|
9
9
|
class="ring"
|
|
10
|
-
:role="{ true: 'status', false: null }[format('%s', label != '')]"
|
|
11
|
-
:aria-label="{ true: label, false: null }[format('%s', label != '')]"
|
|
12
|
-
:aria-live="{ true: 'polite', false: null }[format('%s', label != '')]"
|
|
13
|
-
:aria-hidden="{ true: null, false: 'true' }[format('%s', label != '')]"
|
|
10
|
+
from:role="{ true: 'status', false: null }[format('%s', label != '')]"
|
|
11
|
+
from:aria-label="{ true: label, false: null }[format('%s', label != '')]"
|
|
12
|
+
from:aria-live="{ true: 'polite', false: null }[format('%s', label != '')]"
|
|
13
|
+
from:aria-hidden="{ true: null, false: 'true' }[format('%s', label != '')]"
|
|
14
14
|
>
|
|
15
15
|
<svg viewBox="0 0 50 50" fill="none" aria-hidden="true" focusable="false">
|
|
16
16
|
<circle class="track" cx="25" cy="25" r="20"></circle>
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
>Where it sits. inline takes its place in the view's flow; panel sits it on a dashed surface, for an empty area in a page; fill centres it in all the space
|
|
9
9
|
it is given, for a whole view that is loading or failed.</prop>
|
|
10
10
|
</defs>
|
|
11
|
-
<div :role="{ true: 'alert', false: 'status' }[format('%s', kind = 'error')]">
|
|
12
|
-
<ui-spinner size="sm" :hidden="kind != 'loading'"></ui-spinner>
|
|
11
|
+
<div from:role="{ true: 'alert', false: 'status' }[format('%s', kind = 'error')]">
|
|
12
|
+
<ui-spinner size="sm" from:hidden="kind != 'loading'"></ui-spinner>
|
|
13
13
|
<span class="copy">
|
|
14
|
-
<strong class="heading" :hidden="not heading"><template $value="heading"></template></strong>
|
|
14
|
+
<strong class="heading" from:hidden="not heading"><template $value="heading"></template></strong>
|
|
15
15
|
<span class="message"><slot></slot></span>
|
|
16
16
|
</span>
|
|
17
17
|
<span class="action"><slot name="action"></slot></span>
|
|
@@ -21,7 +21,16 @@
|
|
|
21
21
|
</event>
|
|
22
22
|
</defs>
|
|
23
23
|
<label>
|
|
24
|
-
<input
|
|
24
|
+
<input
|
|
25
|
+
type="checkbox"
|
|
26
|
+
role="switch"
|
|
27
|
+
$ref="input"
|
|
28
|
+
.checked="internalChecked"
|
|
29
|
+
from:disabled="disabled"
|
|
30
|
+
from:required="required"
|
|
31
|
+
from:name="name"
|
|
32
|
+
from:value="value"
|
|
33
|
+
>
|
|
25
34
|
<span class="text">
|
|
26
35
|
<span class="label"><slot></slot></span>
|
|
27
36
|
<span class="description" $ref="description" aria-hidden="true"><slot name="description"></slot></span>
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
</event>
|
|
24
24
|
</defs>
|
|
25
25
|
<div>
|
|
26
|
-
<div class="list" $ref="list" role="tablist" :aria-label="label" :aria-orientation="orientation">
|
|
26
|
+
<div class="list" $ref="list" role="tablist" from:aria-label="label" from:aria-orientation="orientation">
|
|
27
27
|
<slot name="tab">
|
|
28
28
|
<button
|
|
29
29
|
$each="tab of tabs"
|
|
30
30
|
$key="tab.id"
|
|
31
31
|
type="button"
|
|
32
32
|
role="tab"
|
|
33
|
-
:id="format('%s-tab', tab.id)"
|
|
34
|
-
:value="tab.id"
|
|
35
|
-
:aria-controls="tab.id"
|
|
36
|
-
:aria-selected="tab.id = internalValue"
|
|
33
|
+
from:id="format('%s-tab', tab.id)"
|
|
34
|
+
from:value="tab.id"
|
|
35
|
+
from:aria-controls="tab.id"
|
|
36
|
+
from:aria-selected="tab.id = internalValue"
|
|
37
37
|
$value="tab.label"
|
|
38
38
|
>
|
|
39
39
|
</button>
|
|
@@ -15,7 +15,15 @@
|
|
|
15
15
|
>Padding and type size, matching Input's sizes so a textarea sits with fields of the same size; rows sets its height. sm has tighter padding and smaller
|
|
16
16
|
text, for compact forms; lg has roomier padding. Under a coarse pointer, sm keeps body-size text.</prop>
|
|
17
17
|
</defs>
|
|
18
|
-
<textarea
|
|
18
|
+
<textarea
|
|
19
|
+
from:value="value"
|
|
20
|
+
from:disabled="disabled"
|
|
21
|
+
from:readonly="readonly"
|
|
22
|
+
from:required="required"
|
|
23
|
+
from:aria-invalid="invalid"
|
|
24
|
+
from:rows="rows"
|
|
25
|
+
style:--_rows="rows"
|
|
26
|
+
></textarea>
|
|
19
27
|
<style>
|
|
20
28
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
21
29
|
@property --ui-textarea-focus-shadow {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
<prop name="trigger" required type="keyword" values="keyboard, pointer, programmatic"></prop>
|
|
13
13
|
</event>
|
|
14
14
|
</defs>
|
|
15
|
-
<div :role="{ neutral: 'status', info: 'status', success: 'status', warning: 'status', danger: 'alert' }[tone]">
|
|
15
|
+
<div from:role="{ neutral: 'status', info: 'status', success: 'status', warning: 'status', danger: 'alert' }[tone]">
|
|
16
16
|
<div class="message"><slot></slot></div>
|
|
17
17
|
<div class="action" $ref="action"><slot name="action"></slot></div>
|
|
18
|
-
<ui-icon-button class="dismiss" size="sm" variant="ghost" :round="true" label="Dismiss notification">
|
|
18
|
+
<ui-icon-button class="dismiss" size="sm" variant="ghost" from:round="true" label="Dismiss notification">
|
|
19
19
|
<ui-icon name="x"></ui-icon>
|
|
20
20
|
</ui-icon-button>
|
|
21
21
|
</div>
|
|
@@ -28,10 +28,18 @@
|
|
|
28
28
|
</defs>
|
|
29
29
|
<div role="region" aria-label="Notifications" aria-live="polite" popover="manual">
|
|
30
30
|
<slot></slot>
|
|
31
|
-
<div
|
|
31
|
+
<div
|
|
32
|
+
$each="toast of toasts"
|
|
33
|
+
$key="toast.id"
|
|
34
|
+
class="toast"
|
|
35
|
+
class:closing="toast.closing"
|
|
36
|
+
from:id="toast.id"
|
|
37
|
+
from:role="toast.role"
|
|
38
|
+
from:data-tone="toast.tone"
|
|
39
|
+
>
|
|
32
40
|
<span class="message" $value="toast.message"></span>
|
|
33
|
-
<span class="dismiss" :data-toast="toast.id">
|
|
34
|
-
<ui-icon-button size="sm" variant="ghost" :round="true" :label="format('Dismiss %s', toast.message)">
|
|
41
|
+
<span class="dismiss" from:data-toast="toast.id">
|
|
42
|
+
<ui-icon-button size="sm" variant="ghost" from:round="true" from:label="format('Dismiss %s', toast.message)">
|
|
35
43
|
<ui-icon name="x"></ui-icon>
|
|
36
44
|
</ui-icon-button>
|
|
37
45
|
</span>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<prop name="trigger" required type="keyword" values="keyboard, pointer, programmatic"></prop>
|
|
33
33
|
</event>
|
|
34
34
|
</defs>
|
|
35
|
-
<span role="tooltip" :hidden="not internalOpen"><div class="surface"><slot></slot></div></span>
|
|
35
|
+
<span role="tooltip" from:hidden="not internalOpen"><div class="surface"><slot></slot></div></span>
|
|
36
36
|
<style>
|
|
37
37
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
38
38
|
@property --ui-tooltip-arrow-size {
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
</defs>
|
|
53
53
|
<div
|
|
54
54
|
role="treeitem"
|
|
55
|
-
:aria-label="label"
|
|
56
|
-
:aria-level="structuralLevel"
|
|
57
|
-
:aria-selected="selected"
|
|
58
|
-
:aria-disabled="disabled"
|
|
59
|
-
:data-item-id="itemId"
|
|
60
|
-
:data-drag-type="dragType"
|
|
61
|
-
:data-drop-scope="dropScope"
|
|
62
|
-
:data-accepts="accepts"
|
|
63
|
-
:data-drop-depth="dropDepth"
|
|
64
|
-
:data-subtree-depth="subtreeDepth"
|
|
55
|
+
from:aria-label="label"
|
|
56
|
+
from:aria-level="structuralLevel"
|
|
57
|
+
from:aria-selected="selected"
|
|
58
|
+
from:aria-disabled="disabled"
|
|
59
|
+
from:data-item-id="itemId"
|
|
60
|
+
from:data-drag-type="dragType"
|
|
61
|
+
from:data-drop-scope="dropScope"
|
|
62
|
+
from:data-accepts="accepts"
|
|
63
|
+
from:data-drop-depth="dropDepth"
|
|
64
|
+
from:data-subtree-depth="subtreeDepth"
|
|
65
65
|
>
|
|
66
66
|
<div class="row" $ref="row">
|
|
67
67
|
<button
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
$ref="dragHandle"
|
|
71
71
|
type="button"
|
|
72
72
|
draggable="true"
|
|
73
|
-
:aria-label="format('Drag %s to reorder', label)"
|
|
73
|
+
from:aria-label="format('Drag %s to reorder', label)"
|
|
74
74
|
>
|
|
75
75
|
<svg
|
|
76
76
|
aria-hidden="true"
|
|
@@ -90,23 +90,23 @@
|
|
|
90
90
|
<circle cx="15" cy="19" r="1"></circle>
|
|
91
91
|
</svg>
|
|
92
92
|
</button>
|
|
93
|
-
<button class="disclosure" $ref="disclosure" type="button" :disabled="disabled" :hidden="not isContainer">
|
|
93
|
+
<button class="disclosure" $ref="disclosure" type="button" from:disabled="disabled" from:hidden="not isContainer">
|
|
94
94
|
<span class="disclosure-icon" aria-hidden="true"></span>
|
|
95
95
|
</button>
|
|
96
96
|
<label class="selection-hit"><input
|
|
97
97
|
class="selection-checkbox"
|
|
98
98
|
type="checkbox"
|
|
99
99
|
tabindex="-1"
|
|
100
|
-
:checked="selected"
|
|
101
|
-
:disabled="disabled"
|
|
102
|
-
:aria-label="format('Select %s', label)"
|
|
100
|
+
from:checked="selected"
|
|
101
|
+
from:disabled="disabled"
|
|
102
|
+
from:aria-label="format('Select %s', label)"
|
|
103
103
|
></label>
|
|
104
104
|
<span class="leading" $ref="leading"><slot name="leading"></slot></span>
|
|
105
105
|
<span class="label" $ref="label"><span class="label-text" $ref="labelText"><slot name="label"><template $value="label"></template></slot></span></span>
|
|
106
106
|
<span class="actions" $ref="actions"><slot name="actions"></slot></span>
|
|
107
107
|
<span class="drop-indicator row-drop-indicator" aria-hidden="true"></span>
|
|
108
108
|
</div>
|
|
109
|
-
<div class="children" $ref="children" role="group" :hidden="not (isContainer and internalExpanded)"><slot></slot></div>
|
|
109
|
+
<div class="children" $ref="children" role="group" from:hidden="not (isContainer and internalExpanded)"><slot></slot></div>
|
|
110
110
|
<span class="drop-indicator subtree-drop-indicator" aria-hidden="true"></span>
|
|
111
111
|
</div>
|
|
112
112
|
<style>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
position: relative;
|
|
147
147
|
display: block;
|
|
148
148
|
min-inline-size: 0;
|
|
149
|
-
margin-inline-start: calc(var(--
|
|
149
|
+
margin-inline-start: calc(var(--_ui-tree-item-indent-step, 0) * var(--_ui-tree-indent, 16px));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.row {
|
|
@@ -55,7 +55,10 @@ export default function controller(host) {
|
|
|
55
55
|
if (host.state.lazy && expanded && childItems().length === 0) element.setAttribute("aria-busy", "true");
|
|
56
56
|
else element.removeAttribute("aria-busy");
|
|
57
57
|
element.tabIndex = host.state.disabled || !host.state.tabStop ? -1 : 0;
|
|
58
|
-
|
|
58
|
+
const depth = Number(host.state.structuralLevel ?? 1) - 1;
|
|
59
|
+
element.style.setProperty("--ui-tree-item-depth", String(depth));
|
|
60
|
+
// Nested items already sit inside their parent's indented box. Add just one local step.
|
|
61
|
+
element.style.setProperty("--_ui-tree-item-indent-step", depth > 0 ? "1" : "0");
|
|
59
62
|
disclosure.setAttribute("aria-expanded", String(expanded));
|
|
60
63
|
disclosure.setAttribute("aria-label", `${expanded ? "Collapse" : "Expand"} ${name}`);
|
|
61
64
|
};
|