@threadlabs/looma 0.32.1 → 0.33.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/README.md +15 -0
- package/bin/looma-docs.mjs +3 -0
- package/components/shared/icons.js +1 -0
- package/components/shared/overlay.js +1 -1
- package/components/ui-action-bar/ui-action-bar.html +11 -11
- package/components/ui-affordance-scope/ui-affordance-scope.html +2 -2
- package/components/ui-avatar/ui-avatar.html +8 -8
- package/components/ui-avatar-group/ui-avatar-group.html +14 -14
- package/components/ui-avatar-group/ui-avatar-group.js +3 -2
- package/components/ui-badge/ui-badge.html +43 -43
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +13 -13
- package/components/ui-breadcrumbs/ui-breadcrumbs.html +8 -8
- package/components/ui-button/ui-button.html +32 -29
- package/components/ui-callout/ui-callout.html +9 -9
- package/components/ui-card/ui-card.html +11 -11
- package/components/ui-checkbox/ui-checkbox.html +52 -33
- package/components/ui-cluster/ui-cluster.html +21 -21
- package/components/ui-color-picker/ui-color-picker.html +135 -0
- package/components/ui-color-picker/ui-color-picker.js +76 -0
- package/components/ui-combobox/ui-combobox.html +43 -43
- package/components/ui-container/ui-container.html +7 -7
- package/components/ui-context-menu/ui-context-menu.html +9 -9
- package/components/ui-cover/ui-cover.html +8 -8
- package/components/ui-description-item/ui-description-item.html +7 -7
- package/components/ui-description-list/ui-description-list.html +4 -4
- package/components/ui-dialog/ui-dialog.html +26 -26
- package/components/ui-disclosure/ui-disclosure.html +23 -23
- package/components/ui-editable/ui-editable.html +16 -16
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +9 -9
- package/components/ui-editor-link-form/ui-editor-link-form.html +1 -2
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +23 -23
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +10 -10
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +29 -29
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +5 -5
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +11 -11
- package/components/ui-editor-surface/ui-editor-surface.html +2 -2
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +25 -25
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +13 -13
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +31 -31
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +13 -13
- package/components/ui-floating-action-button/ui-floating-action-button.html +8 -8
- package/components/ui-form-field/ui-form-field.html +15 -15
- package/components/ui-form-field/ui-form-field.js +12 -4
- package/components/ui-grid/ui-grid.html +4 -4
- package/components/ui-icon/ui-icon.html +3 -2
- package/components/ui-icon-button/ui-icon-button.html +15 -14
- package/components/ui-image/ui-image.html +14 -14
- package/components/ui-input/ui-input.html +8 -8
- package/components/ui-input-group/ui-input-group.html +18 -18
- package/components/ui-list/ui-list.html +11 -11
- package/components/ui-list-item/ui-list-item.html +18 -18
- package/components/ui-listbox/ui-listbox.html +10 -10
- package/components/ui-menu/ui-menu.html +18 -17
- package/components/ui-menu-group/ui-menu-group.html +4 -4
- package/components/ui-menu-item/ui-menu-item.html +20 -20
- package/components/ui-meter/ui-meter.html +5 -5
- package/components/ui-nav-item/ui-nav-item.html +20 -20
- package/components/ui-page-header/ui-page-header.html +18 -17
- package/components/ui-popover/ui-popover.html +8 -8
- package/components/ui-radio/ui-radio.html +25 -17
- package/components/ui-radio-group/ui-radio-group.html +10 -10
- package/components/ui-reel/ui-reel.html +5 -5
- package/components/ui-scroll-area/ui-scroll-area.html +10 -10
- package/components/ui-search-result-row/ui-search-result-row.html +19 -19
- package/components/ui-search-shell/ui-search-shell.html +22 -22
- package/components/ui-section/ui-section.html +24 -23
- package/components/ui-select/ui-select.html +10 -10
- package/components/ui-separator/ui-separator.html +2 -2
- package/components/ui-sidebar/ui-sidebar.html +8 -8
- package/components/ui-spinner/ui-spinner.html +6 -6
- package/components/ui-stack/ui-stack.html +12 -12
- package/components/ui-status-message/ui-status-message.html +17 -17
- package/components/ui-swatch/ui-swatch.html +2 -2
- package/components/ui-switch/ui-switch.html +36 -26
- package/components/ui-switcher/ui-switcher.html +7 -7
- package/components/ui-table/ui-table.html +6 -6
- package/components/ui-tabs/ui-tabs.html +16 -15
- package/components/ui-text/ui-text.html +3 -2
- package/components/ui-textarea/ui-textarea.html +10 -10
- package/components/ui-toast/ui-toast.html +9 -9
- package/components/ui-toast-region/ui-toast-region.html +12 -12
- package/components/ui-tooltip/ui-tooltip.html +15 -15
- package/components/ui-top-bar/ui-top-bar.html +11 -11
- package/components/ui-tree/ui-tree.html +5 -5
- package/components/ui-tree-item/ui-tree-item.html +36 -36
- package/dist/index.js +46 -45
- package/docs/README.md +116 -0
- package/docs/card.html +63 -0
- package/docs/card.js +32 -0
- package/docs/catalog-view.js +18 -0
- package/docs/catalog-view.mjs +11 -0
- package/docs/catalog.json +22974 -0
- package/docs/catalog.mjs +131 -0
- package/docs/cli.mjs +26 -0
- package/docs/commands.mjs +94 -0
- package/docs/customizer-render.mjs +40 -0
- package/docs/customizer.js +118 -0
- package/docs/documentation.css +8 -0
- package/docs/examples/ui-action-bar/examples/01-form-footer.behavior.js +7 -0
- package/docs/examples/ui-button/examples/08-loading.behavior.js +21 -0
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +30 -0
- package/docs/examples/ui-combobox/examples/06-selected-values.behavior.js +11 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +34 -0
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +15 -0
- package/docs/examples/ui-toast/examples/02-danger.behavior.js +2 -0
- package/docs/examples/ui-tree/examples/03-max-depth-2-and-hover-expand-delay-300.behavior.js +30 -0
- package/docs/examples/ui-tree/examples/06-move-without-dragging.behavior.js +2 -0
- package/docs/examples/ui-tree/examples/07-multiple-selection.behavior.js +16 -0
- package/docs/examples/ui-tree-item/examples/02-container.behavior.js +1 -0
- package/docs/index.d.ts +54 -0
- package/docs/index.mjs +4 -0
- package/docs/local-server.mjs +68 -0
- package/docs/preview.js +20 -0
- package/docs/reference.html +1 -0
- package/docs/reference.js +36 -0
- package/docs/render.mjs +84 -0
- package/docs/site.mjs +198 -0
- package/docs/store.mjs +92 -0
- package/docs/theme.mjs +100 -0
- package/docs/workspace.mjs +32 -0
- package/package.json +28 -3
- package/styles/ui-action-bar.css +11 -11
- package/styles/ui-affordance-scope.css +2 -2
- package/styles/ui-avatar-group.css +14 -14
- package/styles/ui-avatar.css +8 -8
- package/styles/ui-badge.css +41 -41
- package/styles/ui-breadcrumb-item.css +13 -13
- package/styles/ui-breadcrumbs.css +8 -8
- package/styles/ui-button.css +30 -28
- package/styles/ui-callout.css +9 -9
- package/styles/ui-card.css +11 -11
- package/styles/ui-checkbox.css +52 -33
- package/styles/ui-cluster.css +21 -21
- package/styles/ui-color-picker.css +120 -0
- package/styles/ui-combobox.css +86 -86
- package/styles/ui-container.css +7 -7
- package/styles/ui-context-menu.css +9 -9
- package/styles/ui-cover.css +8 -8
- package/styles/ui-description-item.css +7 -7
- package/styles/ui-description-list.css +4 -4
- package/styles/ui-dialog.css +52 -52
- package/styles/ui-disclosure.css +23 -23
- package/styles/ui-editable.css +16 -16
- package/styles/ui-editor-insert-table-grid.css +9 -9
- package/styles/ui-editor-mention-menu-item.css +10 -10
- package/styles/ui-editor-mention-menu.css +23 -23
- package/styles/ui-editor-slash-menu-group.css +5 -5
- package/styles/ui-editor-slash-menu-item.css +11 -11
- package/styles/ui-editor-slash-menu.css +29 -29
- package/styles/ui-editor-surface.css +2 -2
- package/styles/ui-editor-table-context-menu.css +25 -25
- package/styles/ui-editor-table-overlay.css +13 -13
- package/styles/ui-editor-table-toolbar.css +31 -31
- package/styles/ui-editor-toolbar.css +13 -13
- package/styles/ui-floating-action-button.css +8 -8
- package/styles/ui-form-field.css +13 -13
- package/styles/ui-grid.css +4 -4
- package/styles/ui-icon-button.css +13 -13
- package/styles/ui-icon.css +2 -2
- package/styles/ui-image.css +14 -14
- package/styles/ui-input-group.css +18 -18
- package/styles/ui-input.css +8 -8
- package/styles/ui-list-item.css +18 -18
- package/styles/ui-list.css +11 -11
- package/styles/ui-listbox.css +20 -20
- package/styles/ui-menu-group.css +4 -4
- package/styles/ui-menu-item.css +20 -20
- package/styles/ui-menu.css +16 -16
- package/styles/ui-meter.css +5 -5
- package/styles/ui-nav-item.css +20 -20
- package/styles/ui-page-header.css +18 -17
- package/styles/ui-popover.css +8 -8
- package/styles/ui-radio-group.css +10 -10
- package/styles/ui-radio.css +26 -18
- package/styles/ui-reel.css +5 -5
- package/styles/ui-scroll-area.css +10 -10
- package/styles/ui-search-result-row.css +19 -19
- package/styles/ui-search-shell.css +22 -22
- package/styles/ui-section.css +24 -23
- package/styles/ui-select.css +10 -10
- package/styles/ui-separator.css +2 -2
- package/styles/ui-sidebar.css +8 -8
- package/styles/ui-spinner.css +6 -6
- package/styles/ui-stack.css +12 -12
- package/styles/ui-status-message.css +17 -17
- package/styles/ui-swatch.css +2 -2
- package/styles/ui-switch.css +36 -28
- package/styles/ui-switcher.css +7 -7
- package/styles/ui-table.css +6 -6
- package/styles/ui-tabs.css +11 -11
- package/styles/ui-text.css +3 -2
- package/styles/ui-textarea.css +10 -10
- package/styles/ui-toast-region.css +24 -24
- package/styles/ui-toast.css +18 -18
- package/styles/ui-tooltip.css +15 -15
- package/styles/ui-top-bar.css +11 -11
- package/styles/ui-tree-item.css +71 -71
- package/styles/ui-tree.css +5 -5
- package/theme-system.css +80 -0
- package/tokens.css +14 -3
- package/vanilla/UiColorPicker.d.ts +30 -0
- package/vanilla/UiColorPicker.js +77 -0
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/index.js +1 -0
- package/vue/UiActionBar.vue +11 -11
- package/vue/UiAffordanceScope.vue +2 -2
- package/vue/UiAvatar.vue +8 -8
- package/vue/UiAvatarGroup.vue +14 -14
- package/vue/UiBadge.vue +43 -42
- package/vue/UiBreadcrumbItem.vue +13 -13
- package/vue/UiBreadcrumbs.vue +8 -8
- package/vue/UiButton.vue +34 -29
- package/vue/UiCallout.vue +9 -9
- package/vue/UiCard.vue +11 -11
- package/vue/UiCheckbox.vue +57 -34
- package/vue/UiCluster.vue +21 -21
- package/vue/UiColorPicker.d.ts +65 -0
- package/vue/UiColorPicker.js +2 -0
- package/vue/UiColorPicker.vue +422 -0
- package/vue/UiCombobox.vue +86 -86
- package/vue/UiContainer.vue +7 -7
- package/vue/UiContextMenu.vue +9 -9
- package/vue/UiCover.vue +8 -8
- package/vue/UiDescriptionItem.vue +7 -7
- package/vue/UiDescriptionList.vue +4 -4
- package/vue/UiDialog.vue +52 -52
- package/vue/UiDisclosure.vue +23 -23
- package/vue/UiEditable.vue +16 -16
- package/vue/UiEditorInsertTableGrid.vue +9 -9
- package/vue/UiEditorMentionMenu.vue +23 -23
- package/vue/UiEditorMentionMenuItem.vue +10 -10
- package/vue/UiEditorSlashMenu.vue +29 -29
- package/vue/UiEditorSlashMenuGroup.vue +5 -5
- package/vue/UiEditorSlashMenuItem.vue +11 -11
- package/vue/UiEditorSurface.vue +2 -2
- package/vue/UiEditorTableContextMenu.vue +25 -25
- package/vue/UiEditorTableOverlay.vue +13 -13
- package/vue/UiEditorTableToolbar.vue +31 -31
- package/vue/UiEditorToolbar.vue +13 -13
- package/vue/UiFloatingActionButton.vue +8 -8
- package/vue/UiFormField.vue +14 -14
- package/vue/UiGrid.vue +4 -4
- package/vue/UiIcon.vue +6 -2
- package/vue/UiIconButton.vue +14 -14
- package/vue/UiImage.vue +14 -14
- package/vue/UiInput.vue +9 -8
- package/vue/UiInputGroup.vue +18 -18
- package/vue/UiList.vue +11 -11
- package/vue/UiListItem.vue +18 -18
- package/vue/UiListbox.vue +20 -20
- package/vue/UiMenu.vue +16 -16
- package/vue/UiMenuGroup.vue +4 -4
- package/vue/UiMenuItem.vue +20 -20
- package/vue/UiMeter.vue +5 -5
- package/vue/UiNavItem.vue +20 -20
- package/vue/UiPageHeader.vue +18 -17
- package/vue/UiPopover.vue +8 -8
- package/vue/UiRadio.vue +28 -17
- package/vue/UiRadioGroup.vue +10 -10
- package/vue/UiReel.vue +5 -5
- package/vue/UiScrollArea.vue +10 -10
- package/vue/UiSearchResultRow.vue +19 -19
- package/vue/UiSearchShell.vue +22 -22
- package/vue/UiSection.vue +24 -23
- package/vue/UiSelect.vue +11 -10
- package/vue/UiSeparator.vue +2 -2
- package/vue/UiSidebar.vue +8 -8
- package/vue/UiSpinner.vue +6 -6
- package/vue/UiStack.vue +12 -12
- package/vue/UiStatusMessage.vue +17 -17
- package/vue/UiSwatch.vue +2 -2
- package/vue/UiSwitch.vue +38 -25
- package/vue/UiSwitcher.vue +7 -7
- package/vue/UiTable.vue +6 -6
- package/vue/UiTabs.vue +13 -13
- package/vue/UiText.vue +3 -2
- package/vue/UiTextarea.vue +10 -10
- package/vue/UiToast.vue +18 -18
- package/vue/UiToastRegion.vue +24 -24
- package/vue/UiTooltip.vue +15 -15
- package/vue/UiTopBar.vue +11 -11
- package/vue/UiTree.vue +5 -5
- package/vue/UiTreeItem.vue +73 -71
- 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 +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +2 -2
- 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/UiColorPicker.js +326 -0
- 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/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkForm.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/UiEditorSurface.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 +2 -2
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +5 -1
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.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/UiSwatch.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 +3 -3
- 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 +1857 -1654
- package/vue/editor/index.js +28 -11
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -2
package/vue/UiCheckbox.vue
CHANGED
|
@@ -382,15 +382,15 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
382
382
|
@keyframes ui-checkbox-check {
|
|
383
383
|
from {
|
|
384
384
|
opacity: 0;
|
|
385
|
-
transform: translateY(-0.
|
|
385
|
+
transform: translateY(calc(var(--_ui-checkbox-size) * -0.09 / 1.125)) rotate(45deg) scale(0.55);
|
|
386
386
|
}
|
|
387
387
|
65% {
|
|
388
388
|
opacity: 1;
|
|
389
|
-
transform: translateY(-0.
|
|
389
|
+
transform: translateY(calc(var(--_ui-checkbox-size) * -0.09 / 1.125)) rotate(45deg) scale(1.12);
|
|
390
390
|
}
|
|
391
391
|
to {
|
|
392
392
|
opacity: 1;
|
|
393
|
-
transform: translateY(-0.
|
|
393
|
+
transform: translateY(calc(var(--_ui-checkbox-size) * -0.09 / 1.125)) rotate(45deg) scale(1);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
@@ -403,29 +403,47 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
403
403
|
@scope (.ui-checkbox) to ([data-hn]) {
|
|
404
404
|
:global(:scope:where([data-hn-ui-checkbox])) {
|
|
405
405
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
406
|
-
--_ui-checkbox-size: var(--ui-checkbox-size);
|
|
406
|
+
--_ui-checkbox-size: var(--ui-checkbox-size, var(--ui-choice-mark-size));
|
|
407
407
|
--_ui-checkbox-invalid-border: var(
|
|
408
408
|
--ui-checkbox-invalid-border,
|
|
409
409
|
var(--ui-field-danger, var(--ui-danger-solid))
|
|
410
410
|
);
|
|
411
411
|
|
|
412
|
-
display: inline-flex;
|
|
413
|
-
align-items: flex-start;
|
|
414
|
-
|
|
412
|
+
display: inline-flex !important;
|
|
413
|
+
align-items: flex-start !important;
|
|
414
|
+
flex-direction: row !important;
|
|
415
|
+
flex-wrap: nowrap !important;
|
|
416
|
+
justify-content: flex-start !important;
|
|
417
|
+
padding: 0 !important;
|
|
418
|
+
gap: var(--ui-checkbox-gap, var(--ui-space-2)) !important;
|
|
415
419
|
max-inline-size: 100%;
|
|
416
420
|
color: var(--ui-text-primary);
|
|
421
|
+
line-height: var(--ui-line-height-md) !important;
|
|
417
422
|
cursor: pointer;
|
|
418
423
|
}
|
|
419
424
|
:global(.text:where([data-hn-ui-checkbox])) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
425
|
+
font: inherit !important;
|
|
426
|
+
align-self: auto !important;
|
|
427
|
+
order: 1 !important;
|
|
428
|
+
position: static !important;
|
|
429
|
+
transform: none !important;
|
|
430
|
+
padding: 0 !important;
|
|
431
|
+
margin: 0 !important;
|
|
432
|
+
display: flex !important;
|
|
433
|
+
flex-direction: column !important;
|
|
434
|
+
gap: var(--ui-space-1) !important;
|
|
423
435
|
min-inline-size: 0;
|
|
424
436
|
}
|
|
425
437
|
|
|
426
438
|
:global(.label:where([data-hn-ui-checkbox])) {
|
|
439
|
+
position: static !important;
|
|
440
|
+
transform: none !important;
|
|
441
|
+
margin: 0 !important;
|
|
442
|
+
padding-inline: 0 !important;
|
|
443
|
+
font: inherit !important;
|
|
427
444
|
min-inline-size: 0;
|
|
428
|
-
line-height: var(--ui-line-height-md);
|
|
445
|
+
line-height: var(--ui-line-height-md) !important;
|
|
446
|
+
padding-block: max(0px, calc((var(--_ui-checkbox-size, 1.125rem) - 1lh) / 2)) !important;
|
|
429
447
|
}
|
|
430
448
|
|
|
431
449
|
:global(.description:where([data-hn-ui-checkbox])) {
|
|
@@ -435,19 +453,25 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
435
453
|
}
|
|
436
454
|
|
|
437
455
|
:global(.description:empty:where([data-hn-ui-checkbox])) {
|
|
438
|
-
display: none;
|
|
456
|
+
display: none !important;
|
|
439
457
|
}
|
|
440
458
|
|
|
441
459
|
:global(input:where([data-hn-ui-checkbox])) {
|
|
442
460
|
appearance: none;
|
|
443
461
|
-webkit-appearance: none;
|
|
444
|
-
position: relative;
|
|
462
|
+
position: relative !important;
|
|
463
|
+
transform: none !important;
|
|
464
|
+
order: 0 !important;
|
|
465
|
+
box-sizing: border-box !important;
|
|
466
|
+
padding: 0 !important;
|
|
445
467
|
flex: 0 0 auto;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
468
|
+
align-self: auto !important;
|
|
469
|
+
inline-size: var(--_ui-checkbox-size, 1.125rem) !important;
|
|
470
|
+
block-size: var(--_ui-checkbox-size, 1.125rem) !important;
|
|
471
|
+
font: inherit !important;
|
|
472
|
+
margin: max(0px, calc((1lh - var(--_ui-checkbox-size, 1.125rem)) / 2)) 0 0 !important;
|
|
449
473
|
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
450
|
-
border-radius: var(--ui-radius-sm);
|
|
474
|
+
border-radius: min(var(--ui-radius-sm), calc(var(--_ui-checkbox-size, 1.125rem) / 4));
|
|
451
475
|
background: var(--ui-control-surface, var(--ui-surface-default));
|
|
452
476
|
box-shadow: var(--ui-control-inset);
|
|
453
477
|
cursor: pointer;
|
|
@@ -461,7 +485,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
461
485
|
content: "";
|
|
462
486
|
position: absolute;
|
|
463
487
|
opacity: 0;
|
|
464
|
-
transition: opacity
|
|
488
|
+
transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
|
|
465
489
|
}
|
|
466
490
|
|
|
467
491
|
:global(input:checked:where([data-hn-ui-checkbox])),
|
|
@@ -472,23 +496,24 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
472
496
|
}
|
|
473
497
|
:global(input:checked:where([data-hn-ui-checkbox])::after) {
|
|
474
498
|
inset: 0;
|
|
475
|
-
margin: auto;
|
|
476
|
-
inline-size: 0.
|
|
477
|
-
block-size: 0.
|
|
499
|
+
margin: auto !important;
|
|
500
|
+
inline-size: calc(var(--_ui-checkbox-size) * 0.28 / 1.125);
|
|
501
|
+
block-size: calc(var(--_ui-checkbox-size) * 0.5 / 1.125);
|
|
478
502
|
/* Longhands, not `border: solid var(...)`: lowering drops a shorthand that omits a
|
|
479
503
|
component, which left the tick with no style and no colour. */
|
|
480
504
|
border-style: solid;
|
|
481
505
|
border-color: var(--ui-text-on-accent);
|
|
482
|
-
border-width: 0 0.
|
|
506
|
+
border-width: 0 calc(var(--_ui-checkbox-size) * 0.125 / 1.125)
|
|
507
|
+
calc(var(--_ui-checkbox-size) * 0.125 / 1.125) 0;
|
|
483
508
|
opacity: 1;
|
|
484
|
-
transform: translateY(-0.
|
|
485
|
-
animation: ui-checkbox-check
|
|
486
|
-
both;
|
|
509
|
+
transform: translateY(calc(var(--_ui-checkbox-size) * -0.09 / 1.125)) rotate(45deg);
|
|
510
|
+
animation: ui-checkbox-check var(--ui-motion-base)
|
|
511
|
+
var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
487
512
|
}
|
|
488
513
|
|
|
489
514
|
:global(input:indeterminate:where([data-hn-ui-checkbox])::after) {
|
|
490
|
-
inset: 50% 0.
|
|
491
|
-
block-size: 0.
|
|
515
|
+
inset: 50% calc(var(--_ui-checkbox-size) * 0.23 / 1.125) auto;
|
|
516
|
+
block-size: calc(var(--_ui-checkbox-size) * 0.125 / 1.125);
|
|
492
517
|
border-radius: var(--ui-radius-round);
|
|
493
518
|
background: var(--ui-text-on-accent);
|
|
494
519
|
opacity: 1;
|
|
@@ -542,12 +567,10 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
542
567
|
:global(:scope[data-ui-checkbox-state~="size=lg"]:where([data-hn-ui-checkbox])) {
|
|
543
568
|
--_line: calc(var(--_font) * var(--ui-line-height-md));
|
|
544
569
|
font-size: var(--_font);
|
|
545
|
-
padding-block:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
:global(:scope[data-ui-checkbox-state~="size=lg"] input:where([data-hn-ui-checkbox])) {
|
|
550
|
-
margin-top: calc((var(--_line) - var(--_ui-checkbox-size, 1.125rem)) / 2);
|
|
570
|
+
padding-block: max(
|
|
571
|
+
0px,
|
|
572
|
+
calc((var(--_row) - max(var(--_line), var(--_ui-checkbox-size, 1.125rem))) / 2)
|
|
573
|
+
) !important;
|
|
551
574
|
}
|
|
552
575
|
|
|
553
576
|
@media (pointer: coarse) {
|
|
@@ -556,7 +579,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
556
579
|
}
|
|
557
580
|
}
|
|
558
581
|
:global(:scope[hidden]:where([data-hn-ui-checkbox])) {
|
|
559
|
-
display: none;
|
|
582
|
+
display: none !important;
|
|
560
583
|
}
|
|
561
584
|
}
|
|
562
585
|
</style>
|
package/vue/UiCluster.vue
CHANGED
|
@@ -233,38 +233,38 @@ const hostState = computed(() =>
|
|
|
233
233
|
@scope (.ui-cluster) to ([data-hn]) {
|
|
234
234
|
:global(:scope:where([data-hn-ui-cluster])) {
|
|
235
235
|
--_layout-gap: var(--ui-space-3);
|
|
236
|
-
display: flex;
|
|
237
|
-
flex-wrap: wrap;
|
|
238
|
-
align-items: center;
|
|
239
|
-
gap: var(--ui-cluster-gap, var(--_layout-gap));
|
|
236
|
+
display: flex !important;
|
|
237
|
+
flex-wrap: wrap !important;
|
|
238
|
+
align-items: center !important;
|
|
239
|
+
gap: var(--ui-cluster-gap, var(--_layout-gap)) !important;
|
|
240
240
|
min-inline-size: 0;
|
|
241
241
|
max-inline-size: 100%;
|
|
242
|
-
margin: 0;
|
|
242
|
+
margin: 0 !important;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
:global(:scope[data-ui-cluster-state~="fixed"]:where([data-hn-ui-cluster])) {
|
|
246
246
|
flex: none;
|
|
247
247
|
}
|
|
248
248
|
:global(:scope[data-ui-cluster-state~="padding=s"]:where([data-hn-ui-cluster])) {
|
|
249
|
-
padding: var(--ui-space-2);
|
|
249
|
+
padding: var(--ui-space-2) !important;
|
|
250
250
|
}
|
|
251
251
|
:global(:scope[data-ui-cluster-state~="padding=m"]:where([data-hn-ui-cluster])) {
|
|
252
|
-
padding: var(--ui-space-3);
|
|
252
|
+
padding: var(--ui-space-3) !important;
|
|
253
253
|
}
|
|
254
254
|
:global(:scope[data-ui-cluster-state~="padding=l"]:where([data-hn-ui-cluster])) {
|
|
255
|
-
padding: var(--ui-space-4);
|
|
255
|
+
padding: var(--ui-space-4) !important;
|
|
256
256
|
}
|
|
257
257
|
:global(:scope[data-ui-cluster-state~="paddingEnd=s"]:where([data-hn-ui-cluster])) {
|
|
258
|
-
padding-inline-end: var(--ui-space-2);
|
|
258
|
+
padding-inline-end: var(--ui-space-2) !important;
|
|
259
259
|
}
|
|
260
260
|
:global(:scope[data-ui-cluster-state~="paddingEnd=m"]:where([data-hn-ui-cluster])) {
|
|
261
|
-
padding-inline-end: var(--ui-space-3);
|
|
261
|
+
padding-inline-end: var(--ui-space-3) !important;
|
|
262
262
|
}
|
|
263
263
|
:global(:scope[data-ui-cluster-state~="paddingEnd=l"]:where([data-hn-ui-cluster])) {
|
|
264
|
-
padding-inline-end: var(--ui-space-4);
|
|
264
|
+
padding-inline-end: var(--ui-space-4) !important;
|
|
265
265
|
}
|
|
266
266
|
:global(:scope[data-ui-cluster-state~="paddingEnd=xl"]:where([data-hn-ui-cluster])) {
|
|
267
|
-
padding-inline-end: calc(var(--ui-space-4) * 4);
|
|
267
|
+
padding-inline-end: calc(var(--ui-space-4) * 4) !important;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
:global(:scope[data-ui-cluster-state~="gap=xs"]:where([data-hn-ui-cluster])) {
|
|
@@ -283,31 +283,31 @@ const hostState = computed(() =>
|
|
|
283
283
|
--_layout-gap: var(--ui-space-6);
|
|
284
284
|
}
|
|
285
285
|
:global(:scope[data-ui-cluster-state~="align=start"]:where([data-hn-ui-cluster])) {
|
|
286
|
-
align-items: flex-start;
|
|
286
|
+
align-items: flex-start !important;
|
|
287
287
|
}
|
|
288
288
|
:global(:scope[data-ui-cluster-state~="align=end"]:where([data-hn-ui-cluster])) {
|
|
289
|
-
align-items: flex-end;
|
|
289
|
+
align-items: flex-end !important;
|
|
290
290
|
}
|
|
291
291
|
:global(:scope[data-ui-cluster-state~="align=baseline"]:where([data-hn-ui-cluster])) {
|
|
292
|
-
align-items: baseline;
|
|
292
|
+
align-items: baseline !important;
|
|
293
293
|
}
|
|
294
294
|
:global(:scope[data-ui-cluster-state~="align=stretch"]:where([data-hn-ui-cluster])) {
|
|
295
|
-
align-items: stretch;
|
|
295
|
+
align-items: stretch !important;
|
|
296
296
|
}
|
|
297
297
|
:global(:scope[data-ui-cluster-state~="justify=center"]:where([data-hn-ui-cluster])) {
|
|
298
|
-
justify-content: center;
|
|
298
|
+
justify-content: center !important;
|
|
299
299
|
}
|
|
300
300
|
:global(:scope[data-ui-cluster-state~="justify=end"]:where([data-hn-ui-cluster])) {
|
|
301
|
-
justify-content: flex-end;
|
|
301
|
+
justify-content: flex-end !important;
|
|
302
302
|
}
|
|
303
303
|
:global(:scope[data-ui-cluster-state~="justify=between"]:where([data-hn-ui-cluster])) {
|
|
304
|
-
justify-content: space-between;
|
|
304
|
+
justify-content: space-between !important;
|
|
305
305
|
}
|
|
306
306
|
:global(:scope[data-ui-cluster-state~="wrap=nowrap"]:where([data-hn-ui-cluster])) {
|
|
307
|
-
flex-wrap: nowrap;
|
|
307
|
+
flex-wrap: nowrap !important;
|
|
308
308
|
}
|
|
309
309
|
:global(:scope[hidden]:where([data-hn-ui-cluster])) {
|
|
310
|
-
display: none;
|
|
310
|
+
display: none !important;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type InputBindings } from './props.js';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
disabled: {
|
|
5
|
+
type: PropType<boolean | null>;
|
|
6
|
+
};
|
|
7
|
+
label: {
|
|
8
|
+
type: PropType<string | null>;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: PropType<string | null>;
|
|
12
|
+
};
|
|
13
|
+
round: {
|
|
14
|
+
type: PropType<boolean | null>;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<"sm" | "md" | "lg" | null>;
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
type: PropType<string | null>;
|
|
21
|
+
};
|
|
22
|
+
"\0htmlNextInputStatus": {
|
|
23
|
+
type: PropType<InputBindings>;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
input: (event: CustomEvent<{
|
|
27
|
+
readonly value: string;
|
|
28
|
+
}>) => any;
|
|
29
|
+
change: (event: CustomEvent<{
|
|
30
|
+
readonly value: string;
|
|
31
|
+
}>) => any;
|
|
32
|
+
"update:value": (value: string) => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
disabled: {
|
|
35
|
+
type: PropType<boolean | null>;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: PropType<string | null>;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: PropType<string | null>;
|
|
42
|
+
};
|
|
43
|
+
round: {
|
|
44
|
+
type: PropType<boolean | null>;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<"sm" | "md" | "lg" | null>;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
type: PropType<string | null>;
|
|
51
|
+
};
|
|
52
|
+
"\0htmlNextInputStatus": {
|
|
53
|
+
type: PropType<InputBindings>;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onInput?: ((event: CustomEvent<{
|
|
57
|
+
readonly value: string;
|
|
58
|
+
}>) => any) | undefined;
|
|
59
|
+
onChange?: ((event: CustomEvent<{
|
|
60
|
+
readonly value: string;
|
|
61
|
+
}>) => any) | undefined;
|
|
62
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
63
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|