@threadlabs/looma 0.44.2 → 0.44.4
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 +1 -0
- package/components/ui-badge/ui-badge.html +7 -6
- package/components/ui-button/ui-button.html +47 -2
- package/components/ui-card/ui-card.html +6 -6
- package/components/ui-color-picker/ui-color-picker.html +12 -5
- package/components/ui-color-picker/ui-color-picker.js +20 -6
- package/components/ui-dialog/ui-dialog.html +5 -6
- package/components/ui-icon/ui-icon.html +1 -0
- package/components/ui-icon-button/ui-icon-button.html +59 -4
- package/components/ui-menu/ui-menu.html +5 -6
- package/components/ui-number-input/ui-number-input.html +7 -0
- package/components/ui-popover/ui-popover.html +5 -6
- package/components/ui-slider/ui-slider.html +6 -0
- package/components/ui-tooltip/ui-tooltip.html +8 -5
- package/components/ui-tree-item/ui-tree-item.html +7 -1
- package/dist/index.js +1 -1
- package/docs/README.md +8 -4
- package/docs/catalog.json +469 -3704
- package/docs/customizer-render.mjs +55 -36
- package/docs/customizer.js +48 -33
- package/docs/fonts.mjs +28 -0
- package/docs/theme.mjs +39 -14
- package/editor/file-uploads.d.ts +3 -1
- package/editor/icons.d.ts +1 -0
- package/editor/index.js +2 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +11 -10
- package/styles/ui-button.css +47 -2
- package/styles/ui-card.css +4 -4
- package/styles/ui-color-picker.css +105 -2
- package/styles/ui-dialog.css +10 -12
- package/styles/ui-icon-button.css +59 -4
- package/styles/ui-menu.css +5 -6
- package/styles/ui-number-input.css +6 -0
- package/styles/ui-popover.css +5 -6
- package/styles/ui-slider.css +3 -0
- package/styles/ui-tooltip.css +8 -5
- package/styles/ui-tree-item.css +12 -2
- package/theme-system.css +28 -16
- package/tokens.css +7 -0
- package/vanilla/UiColorPicker.d.ts +1 -0
- package/vanilla/UiColorPicker.js +32 -28
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiNumberInput.d.ts +1 -0
- package/vanilla/UiNumberInput.js +53 -43
- package/vanilla/UiSlider.d.ts +1 -0
- package/vanilla/UiSlider.js +65 -57
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiBadge.vue +7 -9
- package/vue/UiButton.vue +56 -2
- package/vue/UiCard.vue +13 -5
- package/vue/UiColorPicker.d.ts +6 -0
- package/vue/UiColorPicker.vue +156 -6
- package/vue/UiDialog.vue +22 -12
- package/vue/UiIcon.vue +1 -0
- package/vue/UiIconButton.vue +62 -4
- package/vue/UiMenu.vue +11 -6
- package/vue/UiNumberInput.d.ts +6 -0
- package/vue/UiNumberInput.vue +47 -1
- package/vue/UiPopover.vue +11 -6
- package/vue/UiSlider.d.ts +6 -0
- package/vue/UiSlider.vue +37 -1
- package/vue/UiTooltip.vue +11 -5
- package/vue/UiTreeItem.vue +19 -3
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiColorPicker.js +60 -11
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiIcon.js +5 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiNumberInput.js +31 -2
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiSlider.js +33 -2
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTreeItem.js +3 -3
- package/vue/chunks/compact.js +1 -1
- package/vue/components.css +457 -84
- package/vue/editor/index.js +109 -57
- package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +0 -9
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +0 -1
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +0 -81
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +0 -24
package/vue/UiIconButton.vue
CHANGED
|
@@ -531,6 +531,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
531
531
|
--_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
532
532
|
--_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
|
|
533
533
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
534
|
+
--_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
|
|
535
|
+
--_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
534
536
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
535
537
|
--_ui-action-start: 1px;
|
|
536
538
|
--_ui-action-edge: var(
|
|
@@ -569,6 +571,11 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
569
571
|
);
|
|
570
572
|
--_solid-active-surface: var(--ui-accent-secondary-active, var(--ui-accent-secondary-hover));
|
|
571
573
|
--_tone-highlight: var(--ui-accent-secondary-highlight, none);
|
|
574
|
+
--_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
|
|
575
|
+
--_tone-outline-border: var(
|
|
576
|
+
--ui-accent-secondary-outline-border,
|
|
577
|
+
var(--ui-accent-secondary-subtle-text)
|
|
578
|
+
);
|
|
572
579
|
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
573
580
|
--_icon-button-border: var(--ui-accent-secondary-subtle-text);
|
|
574
581
|
--_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
|
|
@@ -592,6 +599,11 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
592
599
|
);
|
|
593
600
|
--_solid-active-surface: var(--ui-accent-tertiary-active, var(--ui-accent-tertiary-hover));
|
|
594
601
|
--_tone-highlight: var(--ui-accent-tertiary-highlight, none);
|
|
602
|
+
--_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
|
|
603
|
+
--_tone-outline-border: var(
|
|
604
|
+
--ui-accent-tertiary-outline-border,
|
|
605
|
+
var(--ui-accent-tertiary-subtle-text)
|
|
606
|
+
);
|
|
595
607
|
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
596
608
|
--_icon-button-border: var(--ui-accent-tertiary-subtle-text);
|
|
597
609
|
--_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
|
|
@@ -612,6 +624,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
612
624
|
--_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
613
625
|
--_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
|
|
614
626
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
627
|
+
--_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
|
|
628
|
+
--_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
615
629
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
616
630
|
--_icon-button-border: var(--ui-accent-subtle-text);
|
|
617
631
|
--_icon-button-hover-border: var(--ui-accent-subtle-text);
|
|
@@ -629,6 +643,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
629
643
|
--_solid-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
630
644
|
--_solid-active-surface: var(--ui-danger-active, var(--ui-danger-hover));
|
|
631
645
|
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
646
|
+
--_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
|
|
647
|
+
--_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
|
|
632
648
|
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
633
649
|
--_icon-button-border: var(--ui-danger-subtle-text);
|
|
634
650
|
--_icon-button-hover-border: var(--ui-danger-subtle-text);
|
|
@@ -649,6 +665,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
649
665
|
--_solid-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
650
666
|
--_solid-active-surface: var(--ui-success-active, var(--ui-success-hover));
|
|
651
667
|
--_tone-highlight: var(--ui-success-highlight, none);
|
|
668
|
+
--_tone-hover-highlight: var(--ui-success-hover-highlight, none);
|
|
669
|
+
--_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
|
|
652
670
|
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
653
671
|
--_icon-button-border: var(--ui-success-subtle-text);
|
|
654
672
|
--_icon-button-hover-border: var(--ui-success-subtle-text);
|
|
@@ -669,6 +687,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
669
687
|
--_solid-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
670
688
|
--_solid-active-surface: var(--ui-warning-active, var(--ui-warning-hover));
|
|
671
689
|
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
690
|
+
--_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
|
|
691
|
+
--_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
|
|
672
692
|
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
673
693
|
--_icon-button-border: var(--ui-warning-subtle-text);
|
|
674
694
|
--_icon-button-hover-border: var(--ui-warning-subtle-text);
|
|
@@ -689,6 +709,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
689
709
|
--_solid-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
690
710
|
--_solid-active-surface: var(--ui-info-active, var(--ui-info-hover));
|
|
691
711
|
--_tone-highlight: var(--ui-info-highlight, none);
|
|
712
|
+
--_tone-hover-highlight: var(--ui-info-hover-highlight, none);
|
|
713
|
+
--_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
|
|
692
714
|
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
693
715
|
--_icon-button-border: var(--ui-info-subtle-text);
|
|
694
716
|
--_icon-button-hover-border: var(--ui-info-subtle-text);
|
|
@@ -709,6 +731,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
709
731
|
--_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
710
732
|
--_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
|
|
711
733
|
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
734
|
+
--_tone-hover-highlight: var(--ui-neutral-highlight, var(--_tone-highlight));
|
|
735
|
+
--_tone-outline-border: var(--ui-control-border);
|
|
712
736
|
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
713
737
|
--_icon-button-outline-surface: transparent;
|
|
714
738
|
--_icon-button-border: var(--ui-control-border);
|
|
@@ -879,9 +903,7 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
879
903
|
);
|
|
880
904
|
background-image: var(--ui-surface-highlight, none);
|
|
881
905
|
color: var(--ui-icon-button-outline-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
882
|
-
box-shadow:
|
|
883
|
-
var(--ui-action-shadow, var(--_ui-action-shadow)),
|
|
884
|
-
var(--_tone-glow);
|
|
906
|
+
box-shadow: var(--ui-neutral-shadow);
|
|
885
907
|
}
|
|
886
908
|
|
|
887
909
|
:global(:scope[data-appearance="solid"]:where([data-hn-ui-icon-button])) {
|
|
@@ -917,6 +939,37 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
917
939
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
918
940
|
}
|
|
919
941
|
|
|
942
|
+
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-icon-button])) {
|
|
943
|
+
--_outline-wash: oklch(
|
|
944
|
+
from var(--ui-icon-button-text, var(--_icon-button-text, var(--ui-accent-subtle-text)))
|
|
945
|
+
l c h / calc(4% * var(--ui-tonal-opacity, 1))
|
|
946
|
+
);
|
|
947
|
+
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
948
|
+
background-color: var(
|
|
949
|
+
--ui-icon-button-outline-surface,
|
|
950
|
+
var(--_icon-button-outline-surface, transparent)
|
|
951
|
+
);
|
|
952
|
+
background-image:
|
|
953
|
+
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
954
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
958
|
+
--_outline-wash: oklch(
|
|
959
|
+
from var(--ui-icon-button-text, var(--_icon-button-text, var(--ui-accent-subtle-text)))
|
|
960
|
+
l c h / calc(9% * var(--ui-tonal-opacity, 1))
|
|
961
|
+
);
|
|
962
|
+
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
963
|
+
border-color: var(
|
|
964
|
+
--ui-icon-button-hover-border,
|
|
965
|
+
color-mix(
|
|
966
|
+
in srgb,
|
|
967
|
+
var(--_icon-button-text, var(--ui-accent-subtle-text)) 35%,
|
|
968
|
+
var(--_tone-outline-border)
|
|
969
|
+
)
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
|
|
920
973
|
:global(:scope[data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
921
974
|
border-color: var(
|
|
922
975
|
--ui-icon-button-hover-border,
|
|
@@ -925,6 +978,10 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
925
978
|
}
|
|
926
979
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
927
980
|
background-color: var(--ui-icon-button-hover-surface, var(--ui-neutral-hover));
|
|
981
|
+
--_outline-wash: oklch(from var(--ui-text) l c h / 5%);
|
|
982
|
+
background-image:
|
|
983
|
+
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
984
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
928
985
|
}
|
|
929
986
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
930
987
|
background-color: var(--ui-icon-button-active-surface, var(--ui-neutral-active));
|
|
@@ -936,6 +993,7 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
936
993
|
--ui-icon-button-solid-hover-surface,
|
|
937
994
|
var(--_icon-button-solid-hover-surface, var(--ui-accent-hover))
|
|
938
995
|
);
|
|
996
|
+
background-image: var(--_tone-hover-highlight);
|
|
939
997
|
}
|
|
940
998
|
|
|
941
999
|
:global(:scope[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button])) {
|
|
@@ -995,7 +1053,7 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
995
1053
|
|
|
996
1054
|
:global(:scope[data-appearance="outline"]:focus-visible:where([data-hn-ui-icon-button])) {
|
|
997
1055
|
box-shadow:
|
|
998
|
-
var(--ui-
|
|
1056
|
+
var(--ui-neutral-shadow),
|
|
999
1057
|
var(--ui-focus-halo);
|
|
1000
1058
|
}
|
|
1001
1059
|
|
package/vue/UiMenu.vue
CHANGED
|
@@ -413,7 +413,10 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
413
413
|
);
|
|
414
414
|
--_ui-material-content-color: var(
|
|
415
415
|
--_ui-menu-surface,
|
|
416
|
-
var(
|
|
416
|
+
var(
|
|
417
|
+
--_ui-material-underpaint,
|
|
418
|
+
var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))
|
|
419
|
+
)
|
|
417
420
|
);
|
|
418
421
|
--_ui-material-rim-color: color-mix(
|
|
419
422
|
in srgb,
|
|
@@ -421,11 +424,13 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
421
424
|
transparent
|
|
422
425
|
);
|
|
423
426
|
background:
|
|
424
|
-
var(
|
|
427
|
+
var(
|
|
428
|
+
--ui-material-highlight,
|
|
429
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
430
|
+
) padding-box,
|
|
425
431
|
linear-gradient(var(--_ui-material-content-color), var(--_ui-material-content-color))
|
|
426
432
|
padding-box,
|
|
427
|
-
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box
|
|
428
|
-
var(--_ui-material-content-color) padding-box;
|
|
433
|
+
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box;
|
|
429
434
|
border-width: calc(var(--ui-border-width) + var(--_ui-material-rim));
|
|
430
435
|
border-color: var(
|
|
431
436
|
--_ui-menu-border,
|
|
@@ -462,13 +467,13 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
462
467
|
|
|
463
468
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
464
469
|
:global(:scope:not([inline]) .surface:where([data-hn-ui-menu])) {
|
|
465
|
-
background: var(--_ui-material-content-color);
|
|
470
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
466
471
|
}
|
|
467
472
|
}
|
|
468
473
|
|
|
469
474
|
@media (prefers-reduced-transparency: reduce) {
|
|
470
475
|
:global(:scope:not([inline]) .surface:where([data-hn-ui-menu])) {
|
|
471
|
-
background: var(--_ui-material-content-color);
|
|
476
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
472
477
|
-webkit-backdrop-filter: none;
|
|
473
478
|
backdrop-filter: none;
|
|
474
479
|
}
|
package/vue/UiNumberInput.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { type InputBindings } from './props.js';
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
compact: {
|
|
5
|
+
type: PropType<boolean | null>;
|
|
6
|
+
};
|
|
4
7
|
disabled: {
|
|
5
8
|
type: PropType<boolean | null>;
|
|
6
9
|
};
|
|
@@ -40,6 +43,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
43
|
}>) => any;
|
|
41
44
|
"update:value": (value: string) => any;
|
|
42
45
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
compact: {
|
|
47
|
+
type: PropType<boolean | null>;
|
|
48
|
+
};
|
|
43
49
|
disabled: {
|
|
44
50
|
type: PropType<boolean | null>;
|
|
45
51
|
};
|
package/vue/UiNumberInput.vue
CHANGED
|
@@ -37,6 +37,14 @@ defineOptions({ inheritAttrs: false })
|
|
|
37
37
|
|
|
38
38
|
const propValidityContract = {
|
|
39
39
|
props: {
|
|
40
|
+
compact: {
|
|
41
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
42
|
+
required: false,
|
|
43
|
+
target: { attribute: 'hidden' },
|
|
44
|
+
description:
|
|
45
|
+
'Shows just the exact field, retaining arrow-key stepping and arithmetic without separate step buttons.',
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
40
48
|
disabled: {
|
|
41
49
|
type: { kind: 'terminal', name: 'boolean' },
|
|
42
50
|
required: false,
|
|
@@ -109,6 +117,7 @@ const propValidityContract = {
|
|
|
109
117
|
},
|
|
110
118
|
} as const
|
|
111
119
|
const props = defineProps({
|
|
120
|
+
compact: { type: null as unknown as PropType<boolean | null> },
|
|
112
121
|
disabled: { type: null as unknown as PropType<boolean | null> },
|
|
113
122
|
label: { type: null as unknown as PropType<string | null> },
|
|
114
123
|
max: { type: null as unknown as PropType<number | null> },
|
|
@@ -121,6 +130,7 @@ const props = defineProps({
|
|
|
121
130
|
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
122
131
|
})
|
|
123
132
|
const acceptedProps: Record<string, unknown> = {
|
|
133
|
+
compact: false,
|
|
124
134
|
disabled: false,
|
|
125
135
|
label: 'Value',
|
|
126
136
|
max: 1000000,
|
|
@@ -132,6 +142,7 @@ const acceptedProps: Record<string, unknown> = {
|
|
|
132
142
|
value: '0',
|
|
133
143
|
}
|
|
134
144
|
const inputTracking = vuePropInputs(acceptedProps, {
|
|
145
|
+
compact: false,
|
|
135
146
|
disabled: false,
|
|
136
147
|
label: 'Value',
|
|
137
148
|
max: 1000000,
|
|
@@ -143,6 +154,8 @@ const inputTracking = vuePropInputs(acceptedProps, {
|
|
|
143
154
|
value: '0',
|
|
144
155
|
}, (name, value, source, values) => {
|
|
145
156
|
switch (name) {
|
|
157
|
+
case 'compact':
|
|
158
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
146
159
|
case 'disabled':
|
|
147
160
|
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
148
161
|
case 'label':
|
|
@@ -171,6 +184,11 @@ const propInputs = inputTracking.inputs
|
|
|
171
184
|
const checkedProps = computed(() => {
|
|
172
185
|
void inputTracking.version.value
|
|
173
186
|
return ({
|
|
187
|
+
compact: propInputs.value<boolean | null>(
|
|
188
|
+
'compact',
|
|
189
|
+
props['compact'],
|
|
190
|
+
props[BINDING_INPUTS_PROP],
|
|
191
|
+
) as boolean,
|
|
174
192
|
disabled: propInputs.value<boolean | null>(
|
|
175
193
|
'disabled',
|
|
176
194
|
props['disabled'],
|
|
@@ -247,6 +265,13 @@ const declarationStatus = (name: string) => declarationStatuses[name]!()
|
|
|
247
265
|
display.start()
|
|
248
266
|
checkHydratedRoot('span', 'ui-number-input')
|
|
249
267
|
|
|
268
|
+
/** The values the styles' :host() and :state() rules test. */
|
|
269
|
+
const hostState = computed(() =>
|
|
270
|
+
[
|
|
271
|
+
checkedProps.value.compact && 'compact',
|
|
272
|
+
].filter(Boolean).join(' ')
|
|
273
|
+
)
|
|
274
|
+
|
|
250
275
|
const isInputDetail = (
|
|
251
276
|
detail: unknown,
|
|
252
277
|
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
@@ -284,7 +309,18 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
284
309
|
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
285
310
|
: null
|
|
286
311
|
},
|
|
287
|
-
propNames: [
|
|
312
|
+
propNames: [
|
|
313
|
+
'compact',
|
|
314
|
+
'disabled',
|
|
315
|
+
'label',
|
|
316
|
+
'max',
|
|
317
|
+
'min',
|
|
318
|
+
'name',
|
|
319
|
+
'size',
|
|
320
|
+
'step',
|
|
321
|
+
'unit',
|
|
322
|
+
'value',
|
|
323
|
+
],
|
|
288
324
|
propValidity: (name: string) =>
|
|
289
325
|
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
290
326
|
state: { display },
|
|
@@ -298,6 +334,7 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
298
334
|
v-bind="nativeAttrs($attrs)"
|
|
299
335
|
data-hn
|
|
300
336
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
337
|
+
:data-ui-number-input-prop-compact="reflectedProp('compact', 'compact', checkedProps.compact, undefined, false)"
|
|
301
338
|
:data-ui-number-input-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
302
339
|
:data-ui-number-input-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
303
340
|
:data-ui-number-input-prop-max="reflectedProp('max', 'max', checkedProps.max, undefined, false)"
|
|
@@ -307,6 +344,7 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
307
344
|
:data-ui-number-input-prop-step="reflectedProp('step', 'step', checkedProps.step, undefined, false)"
|
|
308
345
|
:data-ui-number-input-prop-unit="reflectedProp('unit', 'unit', checkedProps.unit, undefined, false)"
|
|
309
346
|
:data-ui-number-input-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
347
|
+
:data-ui-number-input-state="hostState || undefined"
|
|
310
348
|
ref="root"
|
|
311
349
|
><template
|
|
312
350
|
v-for="boundInput in [evaluateInput(
|
|
@@ -318,6 +356,7 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
318
356
|
data-number-step="decrease"
|
|
319
357
|
:match-button="true"
|
|
320
358
|
type="button"
|
|
359
|
+
:hidden="checkedProps.compact"
|
|
321
360
|
:size="checkedProps.size"
|
|
322
361
|
:disabled="checkedProps.disabled"
|
|
323
362
|
:label="boundInput.value"
|
|
@@ -356,6 +395,7 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
356
395
|
data-number-step="increase"
|
|
357
396
|
:match-button="true"
|
|
358
397
|
type="button"
|
|
398
|
+
:hidden="checkedProps.compact"
|
|
359
399
|
:size="checkedProps.size"
|
|
360
400
|
:disabled="checkedProps.disabled"
|
|
361
401
|
:label="boundInputSnapshot.value"
|
|
@@ -379,6 +419,9 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
379
419
|
padding: 0 !important;
|
|
380
420
|
min-inline-size: 0;
|
|
381
421
|
}
|
|
422
|
+
:global(:scope[data-ui-number-input-state~="compact"]) {
|
|
423
|
+
inline-size: 5rem;
|
|
424
|
+
}
|
|
382
425
|
:global(:scope[hidden]) {
|
|
383
426
|
display: none !important;
|
|
384
427
|
}
|
|
@@ -392,6 +435,9 @@ useComponentHost(() => import('../components/ui-number-input/ui-number-input.js'
|
|
|
392
435
|
padding: 0 !important;
|
|
393
436
|
min-inline-size: 0;
|
|
394
437
|
}
|
|
438
|
+
:global(:where(.ui-number-input)[data-ui-number-input-state~="compact"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-number-input"])))) {
|
|
439
|
+
inline-size: 5rem;
|
|
440
|
+
}
|
|
395
441
|
:global(:where(.ui-number-input)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-number-input"])))) {
|
|
396
442
|
display: none !important;
|
|
397
443
|
}
|
package/vue/UiPopover.vue
CHANGED
|
@@ -355,7 +355,10 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
355
355
|
);
|
|
356
356
|
--_ui-material-content-color: var(
|
|
357
357
|
--_ui-popover-surface,
|
|
358
|
-
var(
|
|
358
|
+
var(
|
|
359
|
+
--_ui-material-underpaint,
|
|
360
|
+
var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))
|
|
361
|
+
)
|
|
359
362
|
);
|
|
360
363
|
--_ui-material-rim-color: color-mix(
|
|
361
364
|
in srgb,
|
|
@@ -363,11 +366,13 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
363
366
|
transparent
|
|
364
367
|
);
|
|
365
368
|
background:
|
|
366
|
-
var(
|
|
369
|
+
var(
|
|
370
|
+
--ui-material-highlight,
|
|
371
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
372
|
+
) padding-box,
|
|
367
373
|
linear-gradient(var(--_ui-material-content-color), var(--_ui-material-content-color))
|
|
368
374
|
padding-box,
|
|
369
|
-
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box
|
|
370
|
-
var(--_ui-material-content-color) padding-box;
|
|
375
|
+
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box;
|
|
371
376
|
border-width: calc(var(--ui-border-width) + var(--_ui-material-rim));
|
|
372
377
|
border-color: var(
|
|
373
378
|
--_ui-popover-border,
|
|
@@ -404,13 +409,13 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
404
409
|
|
|
405
410
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
406
411
|
:global(.surface:where([data-hn-ui-popover])) {
|
|
407
|
-
background: var(--_ui-material-content-color);
|
|
412
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
408
413
|
}
|
|
409
414
|
}
|
|
410
415
|
|
|
411
416
|
@media (prefers-reduced-transparency: reduce) {
|
|
412
417
|
:global(.surface:where([data-hn-ui-popover])) {
|
|
413
|
-
background: var(--_ui-material-content-color);
|
|
418
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
414
419
|
-webkit-backdrop-filter: none;
|
|
415
420
|
backdrop-filter: none;
|
|
416
421
|
}
|
package/vue/UiSlider.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { type InputBindings } from './props.js';
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
compact: {
|
|
5
|
+
type: PropType<boolean | null>;
|
|
6
|
+
};
|
|
4
7
|
disabled: {
|
|
5
8
|
type: PropType<boolean | null>;
|
|
6
9
|
};
|
|
@@ -40,6 +43,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
43
|
}>) => any;
|
|
41
44
|
"update:value": (value: number) => any;
|
|
42
45
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
compact: {
|
|
47
|
+
type: PropType<boolean | null>;
|
|
48
|
+
};
|
|
43
49
|
disabled: {
|
|
44
50
|
type: PropType<boolean | null>;
|
|
45
51
|
};
|
package/vue/UiSlider.vue
CHANGED
|
@@ -35,6 +35,14 @@ defineOptions({ inheritAttrs: false })
|
|
|
35
35
|
|
|
36
36
|
const propValidityContract = {
|
|
37
37
|
props: {
|
|
38
|
+
compact: {
|
|
39
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
40
|
+
required: false,
|
|
41
|
+
target: { attribute: 'compact' },
|
|
42
|
+
description:
|
|
43
|
+
'Pairs a short exact field with the track, without separate step buttons. Keyboard stepping and arithmetic remain available.',
|
|
44
|
+
default: false,
|
|
45
|
+
},
|
|
38
46
|
disabled: {
|
|
39
47
|
type: { kind: 'terminal', name: 'boolean' },
|
|
40
48
|
required: false,
|
|
@@ -103,6 +111,7 @@ const propValidityContract = {
|
|
|
103
111
|
},
|
|
104
112
|
} as const
|
|
105
113
|
const props = defineProps({
|
|
114
|
+
compact: { type: null as unknown as PropType<boolean | null> },
|
|
106
115
|
disabled: { type: null as unknown as PropType<boolean | null> },
|
|
107
116
|
label: { type: null as unknown as PropType<string | null> },
|
|
108
117
|
max: { type: null as unknown as PropType<number | null> },
|
|
@@ -115,6 +124,7 @@ const props = defineProps({
|
|
|
115
124
|
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
116
125
|
})
|
|
117
126
|
const acceptedProps: Record<string, unknown> = {
|
|
127
|
+
compact: false,
|
|
118
128
|
disabled: false,
|
|
119
129
|
label: 'Value',
|
|
120
130
|
max: 100,
|
|
@@ -126,6 +136,7 @@ const acceptedProps: Record<string, unknown> = {
|
|
|
126
136
|
value: 0,
|
|
127
137
|
}
|
|
128
138
|
const inputTracking = vuePropInputs(acceptedProps, {
|
|
139
|
+
compact: false,
|
|
129
140
|
disabled: false,
|
|
130
141
|
label: 'Value',
|
|
131
142
|
max: 100,
|
|
@@ -137,6 +148,8 @@ const inputTracking = vuePropInputs(acceptedProps, {
|
|
|
137
148
|
value: 0,
|
|
138
149
|
}, (name, value, source, values) => {
|
|
139
150
|
switch (name) {
|
|
151
|
+
case 'compact':
|
|
152
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
140
153
|
case 'disabled':
|
|
141
154
|
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
142
155
|
case 'label':
|
|
@@ -165,6 +178,11 @@ const propInputs = inputTracking.inputs
|
|
|
165
178
|
const checkedProps = computed(() => {
|
|
166
179
|
void inputTracking.version.value
|
|
167
180
|
return ({
|
|
181
|
+
compact: propInputs.value<boolean | null>(
|
|
182
|
+
'compact',
|
|
183
|
+
props['compact'],
|
|
184
|
+
props[BINDING_INPUTS_PROP],
|
|
185
|
+
) as boolean,
|
|
168
186
|
disabled: propInputs.value<boolean | null>(
|
|
169
187
|
'disabled',
|
|
170
188
|
props['disabled'],
|
|
@@ -251,6 +269,7 @@ checkHydratedRoot('span', 'ui-slider')
|
|
|
251
269
|
/** The values the styles' :host() and :state() rules test. */
|
|
252
270
|
const hostState = computed(() =>
|
|
253
271
|
[
|
|
272
|
+
checkedProps.value.compact && 'compact',
|
|
254
273
|
checkedProps.value.size && 'size',
|
|
255
274
|
checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
|
|
256
275
|
].filter(Boolean).join(' ')
|
|
@@ -294,7 +313,18 @@ useComponentHost(() => import('../components/ui-slider/ui-slider.js'), {
|
|
|
294
313
|
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
295
314
|
: null
|
|
296
315
|
},
|
|
297
|
-
propNames: [
|
|
316
|
+
propNames: [
|
|
317
|
+
'compact',
|
|
318
|
+
'disabled',
|
|
319
|
+
'label',
|
|
320
|
+
'max',
|
|
321
|
+
'min',
|
|
322
|
+
'name',
|
|
323
|
+
'size',
|
|
324
|
+
'step',
|
|
325
|
+
'unit',
|
|
326
|
+
'value',
|
|
327
|
+
],
|
|
298
328
|
propValidity: (name: string) =>
|
|
299
329
|
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
300
330
|
refs: { range: rangeElement },
|
|
@@ -309,6 +339,7 @@ useComponentHost(() => import('../components/ui-slider/ui-slider.js'), {
|
|
|
309
339
|
v-bind="nativeAttrs($attrs)"
|
|
310
340
|
data-hn
|
|
311
341
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
342
|
+
:data-ui-slider-prop-compact="reflectedProp('compact', 'compact', checkedProps.compact, undefined, false)"
|
|
312
343
|
:data-ui-slider-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
313
344
|
:data-ui-slider-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
314
345
|
:data-ui-slider-prop-max="reflectedProp('max', 'max', checkedProps.max, undefined, false)"
|
|
@@ -344,6 +375,7 @@ useComponentHost(() => import('../components/ui-slider/ui-slider.js'), {
|
|
|
344
375
|
><UiNumberInput
|
|
345
376
|
class="ui-number-input"
|
|
346
377
|
data-slider-exact=""
|
|
378
|
+
:compact="checkedProps.compact"
|
|
347
379
|
:value="boundInput.value"
|
|
348
380
|
:unit="checkedProps.unit"
|
|
349
381
|
:min="checkedProps.min"
|
|
@@ -354,6 +386,7 @@ useComponentHost(() => import('../components/ui-slider/ui-slider.js'), {
|
|
|
354
386
|
:label="checkedProps.label"
|
|
355
387
|
v-bind="{
|
|
356
388
|
[BINDING_INPUTS_PROP]: {
|
|
389
|
+
compact: () => ({ value: checkedProps.compact, status: inputStatus('compact', true) }),
|
|
357
390
|
value: () => boundInput,
|
|
358
391
|
unit: () => ({ value: checkedProps.unit, status: inputStatus('unit', true) }),
|
|
359
392
|
min: () => ({ value: checkedProps.min, status: inputStatus('min', true) }),
|
|
@@ -378,6 +411,9 @@ useComponentHost(() => import('../components/ui-slider/ui-slider.js'), {
|
|
|
378
411
|
padding: 0 !important;
|
|
379
412
|
min-inline-size: 0;
|
|
380
413
|
}
|
|
414
|
+
:global(:scope[data-ui-slider-state~="compact"]) {
|
|
415
|
+
grid-template-columns: minmax(3rem, 1fr) 5rem !important;
|
|
416
|
+
}
|
|
381
417
|
:global(input) {
|
|
382
418
|
inline-size: 100%;
|
|
383
419
|
min-inline-size: 0;
|
package/vue/UiTooltip.vue
CHANGED
|
@@ -422,7 +422,10 @@ useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
|
422
422
|
);
|
|
423
423
|
--_ui-material-content-color: var(
|
|
424
424
|
--_ui-tooltip-surface,
|
|
425
|
-
var(
|
|
425
|
+
var(
|
|
426
|
+
--_ui-material-underpaint,
|
|
427
|
+
var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))
|
|
428
|
+
)
|
|
426
429
|
);
|
|
427
430
|
--_ui-material-rim-color: color-mix(
|
|
428
431
|
in srgb,
|
|
@@ -430,10 +433,13 @@ useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
|
430
433
|
transparent
|
|
431
434
|
);
|
|
432
435
|
background:
|
|
436
|
+
var(
|
|
437
|
+
--ui-material-highlight,
|
|
438
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
439
|
+
) padding-box,
|
|
433
440
|
linear-gradient(var(--_ui-material-content-color), var(--_ui-material-content-color))
|
|
434
441
|
padding-box,
|
|
435
|
-
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box
|
|
436
|
-
var(--_ui-material-content-color) padding-box;
|
|
442
|
+
linear-gradient(var(--_ui-material-rim-color), var(--_ui-material-rim-color)) border-box;
|
|
437
443
|
border-width: calc(var(--ui-border-width) + var(--_ui-material-rim));
|
|
438
444
|
border-color: var(
|
|
439
445
|
--_ui-tooltip-border,
|
|
@@ -469,13 +475,13 @@ useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
|
469
475
|
|
|
470
476
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
471
477
|
:global(.surface:where([data-hn-ui-tooltip])) {
|
|
472
|
-
background: var(--_ui-material-content-color);
|
|
478
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
473
479
|
}
|
|
474
480
|
}
|
|
475
481
|
|
|
476
482
|
@media (prefers-reduced-transparency: reduce) {
|
|
477
483
|
:global(.surface:where([data-hn-ui-tooltip])) {
|
|
478
|
-
background: var(--_ui-material-content-color);
|
|
484
|
+
background: oklch(from var(--_ui-material-content-color) l c h / 1);
|
|
479
485
|
-webkit-backdrop-filter: none;
|
|
480
486
|
backdrop-filter: none;
|
|
481
487
|
}
|
package/vue/UiTreeItem.vue
CHANGED
|
@@ -450,10 +450,10 @@ checkHydratedRoot('div', 'ui-tree-item')
|
|
|
450
450
|
/** The values the styles' :host() and :state() rules test. */
|
|
451
451
|
const hostState = computed(() =>
|
|
452
452
|
[
|
|
453
|
+
isContainer.value && 'isContainer',
|
|
453
454
|
checkedProps.value.selected && 'selected',
|
|
454
455
|
checkedProps.value.disabled && 'disabled',
|
|
455
456
|
checkedProps.value.actionsVisible && 'actionsVisible',
|
|
456
|
-
isContainer.value && 'isContainer',
|
|
457
457
|
].filter(Boolean).join(' ')
|
|
458
458
|
)
|
|
459
459
|
|
|
@@ -755,6 +755,7 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
755
755
|
font-size: var(--_ui-tree-item-font-size, var(--ui-font-size-sm));
|
|
756
756
|
border-radius: var(--ui-selection-radius);
|
|
757
757
|
color: var(--ui-text-secondary);
|
|
758
|
+
cursor: default;
|
|
758
759
|
transition:
|
|
759
760
|
background-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
760
761
|
color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
@@ -762,6 +763,14 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
762
763
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
|
|
763
764
|
min-block-size var(--ui-motion-base) var(--ui-motion-ease);
|
|
764
765
|
}
|
|
766
|
+
:global(:scope[data-ui-tree-item-state~="isContainer"]:not([disabled])
|
|
767
|
+
> .row:where([data-hn-ui-tree-item])),
|
|
768
|
+
:global(:scope[data-selection-mode="single"]:not([disabled])
|
|
769
|
+
> .row:where([data-hn-ui-tree-item])),
|
|
770
|
+
:global(:scope[data-selection-mode="multiple"]:not([disabled])
|
|
771
|
+
> .row:where([data-hn-ui-tree-item])) {
|
|
772
|
+
cursor: pointer;
|
|
773
|
+
}
|
|
765
774
|
:global(.row:hover:where([data-hn-ui-tree-item])),
|
|
766
775
|
:global(.row:focus-within:where([data-hn-ui-tree-item])) {
|
|
767
776
|
color: var(--ui-text-primary);
|
|
@@ -866,7 +875,6 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
866
875
|
|
|
867
876
|
:global(.disclosure:hover:where([data-hn-ui-tree-item])) {
|
|
868
877
|
color: var(--ui-text-primary);
|
|
869
|
-
background: var(--ui-surface-elevated);
|
|
870
878
|
}
|
|
871
879
|
|
|
872
880
|
:global(.disclosure-icon:where([data-hn-ui-tree-item])) {
|
|
@@ -1348,6 +1356,7 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
1348
1356
|
font-size: var(--_ui-tree-item-font-size, var(--ui-font-size-sm));
|
|
1349
1357
|
border-radius: var(--ui-selection-radius);
|
|
1350
1358
|
color: var(--ui-text-secondary);
|
|
1359
|
+
cursor: default;
|
|
1351
1360
|
transition:
|
|
1352
1361
|
background-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1353
1362
|
color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
@@ -1355,6 +1364,14 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
1355
1364
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1356
1365
|
min-block-size var(--ui-motion-base) var(--ui-motion-ease);
|
|
1357
1366
|
}
|
|
1367
|
+
:global(:where(.ui-tree-item)[data-ui-tree-item-state~="isContainer"]:not([disabled])
|
|
1368
|
+
> .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
|
|
1369
|
+
:global(:where(.ui-tree-item)[data-selection-mode="single"]:not([disabled])
|
|
1370
|
+
> .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])),
|
|
1371
|
+
:global(:where(.ui-tree-item)[data-selection-mode="multiple"]:not([disabled])
|
|
1372
|
+
> .row:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-tree-item"]))):where([data-hn-ui-tree-item])) {
|
|
1373
|
+
cursor: pointer;
|
|
1374
|
+
}
|
|
1358
1375
|
:global(.row:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])),
|
|
1359
1376
|
:global(.row:focus-within:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
|
|
1360
1377
|
color: var(--ui-text-primary);
|
|
@@ -1473,7 +1490,6 @@ useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
|
1473
1490
|
|
|
1474
1491
|
:global(.disclosure:hover:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
|
|
1475
1492
|
color: var(--ui-text-primary);
|
|
1476
|
-
background: var(--ui-surface-elevated);
|
|
1477
1493
|
}
|
|
1478
1494
|
|
|
1479
1495
|
:global(.disclosure-icon:where(:scope, :scope *):where([data-hn-ui-tree-item])) {
|