@threadlabs/looma 0.47.3 → 0.47.5
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-icon-button/ui-icon-button.html +8 -1
- package/components/ui-toast-region/ui-toast-region.html +2 -0
- package/dist/index.js +1 -1
- package/docs/catalog.json +3 -3
- package/package.json +1 -1
- package/styles/ui-icon-button.css +8 -0
- package/styles/ui-toast-region.css +4 -0
- package/vue/UiIconButton.vue +8 -1
- package/vue/UiToastRegion.vue +4 -0
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/components.css +30 -12
package/docs/catalog.json
CHANGED
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
],
|
|
469
469
|
"schemaVersion": 1,
|
|
470
470
|
"package": "@threadlabs/looma",
|
|
471
|
-
"version": "0.47.
|
|
471
|
+
"version": "0.47.5",
|
|
472
472
|
"groups": [
|
|
473
473
|
{
|
|
474
474
|
"id": "layout",
|
|
@@ -10754,7 +10754,7 @@
|
|
|
10754
10754
|
{
|
|
10755
10755
|
"name": "match-button",
|
|
10756
10756
|
"property": "matchButton",
|
|
10757
|
-
"description": "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and touch alike. Leave it off for compact toolbar and inline icon buttons.",
|
|
10757
|
+
"description": "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and touch alike. Touch expansion stays vertical so an adjacent action keeps its own horizontal boundary. Leave it off for compact toolbar and inline icon buttons.",
|
|
10758
10758
|
"type": "boolean",
|
|
10759
10759
|
"default": false
|
|
10760
10760
|
},
|
|
@@ -10871,7 +10871,7 @@
|
|
|
10871
10871
|
},
|
|
10872
10872
|
{
|
|
10873
10873
|
"name": "matchButton",
|
|
10874
|
-
"description": "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and touch alike. Leave it off for compact toolbar and inline icon buttons.",
|
|
10874
|
+
"description": "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and touch alike. Touch expansion stays vertical so an adjacent action keeps its own horizontal boundary. Leave it off for compact toolbar and inline icon buttons.",
|
|
10875
10875
|
"type": "boolean",
|
|
10876
10876
|
"default": false
|
|
10877
10877
|
},
|
package/package.json
CHANGED
|
@@ -354,6 +354,12 @@
|
|
|
354
354
|
align-self: stretch;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
358
|
+
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after,
|
|
359
|
+
html[data-ui-input-modality="touch"] :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after {
|
|
360
|
+
inline-size: 100%;
|
|
361
|
+
}
|
|
362
|
+
|
|
357
363
|
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"] {
|
|
358
364
|
--_size: var(--ui-control-size-sm);
|
|
359
365
|
}
|
|
@@ -569,6 +575,8 @@
|
|
|
569
575
|
|
|
570
576
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
571
577
|
|
|
578
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
579
|
+
|
|
572
580
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
573
581
|
|
|
574
582
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
display: grid !important;
|
|
27
27
|
gap: var(--ui-space-2) !important;
|
|
28
28
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
29
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
30
|
+
align-content: start !important;
|
|
29
31
|
max-inline-size: 100%;
|
|
30
32
|
box-sizing: border-box !important;
|
|
31
33
|
margin: 0 !important;
|
|
@@ -220,6 +222,8 @@
|
|
|
220
222
|
display: grid !important;
|
|
221
223
|
gap: var(--ui-space-2) !important;
|
|
222
224
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
225
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
226
|
+
align-content: start !important;
|
|
223
227
|
max-inline-size: 100%;
|
|
224
228
|
box-sizing: border-box !important;
|
|
225
229
|
margin: 0 !important;
|
package/vue/UiIconButton.vue
CHANGED
|
@@ -77,7 +77,7 @@ const propValidityContract = {
|
|
|
77
77
|
required: false,
|
|
78
78
|
target: { attribute: 'data-match-button' },
|
|
79
79
|
description:
|
|
80
|
-
'Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row\'s height, on mouse and\n touch alike. Leave it off for compact toolbar and inline icon
|
|
80
|
+
'Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row\'s height, on mouse and\n touch alike. Touch expansion stays vertical so an adjacent action keeps its own horizontal boundary. Leave it off for compact toolbar and inline icon\n buttons.',
|
|
81
81
|
default: false,
|
|
82
82
|
},
|
|
83
83
|
pending: {
|
|
@@ -515,6 +515,8 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
515
515
|
|
|
516
516
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
517
517
|
|
|
518
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
519
|
+
|
|
518
520
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
519
521
|
|
|
520
522
|
/* Disabled is a flat neutral control, independent of the active variant's tone. */
|
|
@@ -904,6 +906,11 @@ useComponentHost(() => import('../components/ui-icon-button/ui-icon-button.js'),
|
|
|
904
906
|
block-size: auto;
|
|
905
907
|
align-self: stretch;
|
|
906
908
|
}
|
|
909
|
+
:global(:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after),
|
|
910
|
+
:global(html[data-ui-input-modality="touch"]
|
|
911
|
+
:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after) {
|
|
912
|
+
inline-size: 100%;
|
|
913
|
+
}
|
|
907
914
|
|
|
908
915
|
:global(:scope[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"]:where([data-hn-ui-icon-button])) {
|
|
909
916
|
--_size: var(--ui-control-size-sm);
|
package/vue/UiToastRegion.vue
CHANGED
|
@@ -361,6 +361,8 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
361
361
|
display: grid !important;
|
|
362
362
|
gap: var(--ui-space-2) !important;
|
|
363
363
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
364
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
365
|
+
align-content: start !important;
|
|
364
366
|
max-inline-size: 100%;
|
|
365
367
|
box-sizing: border-box !important;
|
|
366
368
|
margin: 0 !important;
|
|
@@ -505,6 +507,8 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
505
507
|
display: grid !important;
|
|
506
508
|
gap: var(--ui-space-2) !important;
|
|
507
509
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
510
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
511
|
+
align-content: start !important;
|
|
508
512
|
max-inline-size: 100%;
|
|
509
513
|
box-sizing: border-box !important;
|
|
510
514
|
margin: 0 !important;
|
|
@@ -110,7 +110,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
110
110
|
},
|
|
111
111
|
required: false,
|
|
112
112
|
target: { attribute: "data-match-button" },
|
|
113
|
-
description: "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and\n touch alike. Leave it off for compact toolbar and inline icon
|
|
113
|
+
description: "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, on mouse and\n touch alike. Touch expansion stays vertical so an adjacent action keeps its own horizontal boundary. Leave it off for compact toolbar and inline icon\n buttons.",
|
|
114
114
|
default: false
|
|
115
115
|
},
|
|
116
116
|
pending: {
|
|
@@ -464,6 +464,6 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
464
464
|
}]]);
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
}), [["__scopeId", "data-v-
|
|
467
|
+
}), [["__scopeId", "data-v-87630da3"]]);
|
|
468
468
|
//#endregion
|
|
469
469
|
export { UiIconButton_default as t };
|
package/vue/components.css
CHANGED
|
@@ -3817,6 +3817,8 @@ input:disabled:where(:scope, :scope *):where([data-hn-ui-combobox]),button:disab
|
|
|
3817
3817
|
|
|
3818
3818
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
3819
3819
|
|
|
3820
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
3821
|
+
|
|
3820
3822
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
3821
3823
|
|
|
3822
3824
|
/* Disabled is a flat neutral control, independent of the active variant's tone. */
|
|
@@ -4191,6 +4193,10 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4191
4193
|
block-size: auto;
|
|
4192
4194
|
align-self: stretch;
|
|
4193
4195
|
}
|
|
4196
|
+
:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after,html[data-ui-input-modality="touch"]
|
|
4197
|
+
:scope[data-ui-icon-button-state~="matchButton"]:where([data-hn-ui-icon-button])::after {
|
|
4198
|
+
inline-size: 100%;
|
|
4199
|
+
}
|
|
4194
4200
|
:scope[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"]:where([data-hn-ui-icon-button]) {
|
|
4195
4201
|
--_size: var(--ui-control-size-sm);
|
|
4196
4202
|
}
|
|
@@ -11602,7 +11608,7 @@ input:where([data-hn-ui-switch]),input:where([data-hn-ui-switch])::after {
|
|
|
11602
11608
|
}
|
|
11603
11609
|
|
|
11604
11610
|
/* Leaving slides on down and fades; the controller removes the toast when this ends. */
|
|
11605
|
-
@keyframes ui-toast-enter-
|
|
11611
|
+
@keyframes ui-toast-enter-665e4b29 {
|
|
11606
11612
|
from {
|
|
11607
11613
|
opacity: 0;
|
|
11608
11614
|
transform: translateY(-1rem);
|
|
@@ -11612,7 +11618,7 @@ to {
|
|
|
11612
11618
|
transform: translateY(0);
|
|
11613
11619
|
}
|
|
11614
11620
|
}
|
|
11615
|
-
@keyframes ui-toast-exit-
|
|
11621
|
+
@keyframes ui-toast-exit-665e4b29 {
|
|
11616
11622
|
from {
|
|
11617
11623
|
opacity: 1;
|
|
11618
11624
|
transform: translateY(0);
|
|
@@ -11622,7 +11628,7 @@ to {
|
|
|
11622
11628
|
transform: translateY(0.75rem);
|
|
11623
11629
|
}
|
|
11624
11630
|
}
|
|
11625
|
-
@keyframes ui-toast-enter-bottom-
|
|
11631
|
+
@keyframes ui-toast-enter-bottom-665e4b29 {
|
|
11626
11632
|
from {
|
|
11627
11633
|
opacity: 0;
|
|
11628
11634
|
transform: translateY(1rem);
|
|
@@ -11632,7 +11638,7 @@ to {
|
|
|
11632
11638
|
transform: translateY(0);
|
|
11633
11639
|
}
|
|
11634
11640
|
}
|
|
11635
|
-
@keyframes ui-toast-exit-bottom-
|
|
11641
|
+
@keyframes ui-toast-exit-bottom-665e4b29 {
|
|
11636
11642
|
from {
|
|
11637
11643
|
opacity: 1;
|
|
11638
11644
|
transform: translateY(0);
|
|
@@ -11664,6 +11670,8 @@ to {
|
|
|
11664
11670
|
display: grid !important;
|
|
11665
11671
|
gap: var(--ui-space-2) !important;
|
|
11666
11672
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
11673
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
11674
|
+
align-content: start !important;
|
|
11667
11675
|
max-inline-size: 100%;
|
|
11668
11676
|
box-sizing: border-box !important;
|
|
11669
11677
|
margin: 0 !important;
|
|
@@ -11724,7 +11732,7 @@ to {
|
|
|
11724
11732
|
--_ui-toast-region-shadow,
|
|
11725
11733
|
var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg)))
|
|
11726
11734
|
);
|
|
11727
|
-
animation: ui-toast-enter-
|
|
11735
|
+
animation: ui-toast-enter-665e4b29 var(--_ui-toast-region-enter-duration, 0.32s)
|
|
11728
11736
|
var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
11729
11737
|
}
|
|
11730
11738
|
.toast[data-tone="info"]:where([data-hn-ui-toast-region]) {
|
|
@@ -11748,17 +11756,17 @@ to {
|
|
|
11748
11756
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
11749
11757
|
}
|
|
11750
11758
|
.toast.closing:where([data-hn-ui-toast-region]) {
|
|
11751
|
-
animation: ui-toast-exit-
|
|
11759
|
+
animation: ui-toast-exit-665e4b29 var(--_ui-toast-region-exit-duration, 0.22s) var(--ui-motion-ease)
|
|
11752
11760
|
both;
|
|
11753
11761
|
pointer-events: none;
|
|
11754
11762
|
}
|
|
11755
11763
|
:is(:scope[data-ui-toast-region-state~="placement=bottom"], :scope[data-ui-toast-region-state~="placement=bottom-start"], :scope[data-ui-toast-region-state~="placement=bottom-end"])
|
|
11756
11764
|
.toast:where([data-hn-ui-toast-region]) {
|
|
11757
|
-
animation-name: ui-toast-enter-bottom-
|
|
11765
|
+
animation-name: ui-toast-enter-bottom-665e4b29;
|
|
11758
11766
|
}
|
|
11759
11767
|
:is(:scope[data-ui-toast-region-state~="placement=bottom"], :scope[data-ui-toast-region-state~="placement=bottom-start"], :scope[data-ui-toast-region-state~="placement=bottom-end"])
|
|
11760
11768
|
.toast.closing:where([data-hn-ui-toast-region]) {
|
|
11761
|
-
animation-name: ui-toast-exit-bottom-
|
|
11769
|
+
animation-name: ui-toast-exit-bottom-665e4b29;
|
|
11762
11770
|
}
|
|
11763
11771
|
@media (prefers-reduced-motion: reduce) {
|
|
11764
11772
|
.toast:where([data-hn-ui-toast-region]),.toast.closing:where([data-hn-ui-toast-region]) {
|
|
@@ -11796,6 +11804,8 @@ to {
|
|
|
11796
11804
|
display: grid !important;
|
|
11797
11805
|
gap: var(--ui-space-2) !important;
|
|
11798
11806
|
inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
|
|
11807
|
+
/* Prevent fixed popover grid tracks from stretching in older WebKit. */
|
|
11808
|
+
align-content: start !important;
|
|
11799
11809
|
max-inline-size: 100%;
|
|
11800
11810
|
box-sizing: border-box !important;
|
|
11801
11811
|
margin: 0 !important;
|
|
@@ -11853,7 +11863,7 @@ to {
|
|
|
11853
11863
|
--_ui-toast-region-shadow,
|
|
11854
11864
|
var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg)))
|
|
11855
11865
|
);
|
|
11856
|
-
animation: ui-toast-enter-
|
|
11866
|
+
animation: ui-toast-enter-665e4b29 var(--_ui-toast-region-enter-duration, 0.32s)
|
|
11857
11867
|
var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
11858
11868
|
}
|
|
11859
11869
|
.toast[data-tone="info"]:where(:scope, :scope *):where([data-hn-ui-toast-region]) {
|
|
@@ -11877,17 +11887,17 @@ to {
|
|
|
11877
11887
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
11878
11888
|
}
|
|
11879
11889
|
.toast.closing:where(:scope, :scope *):where([data-hn-ui-toast-region]) {
|
|
11880
|
-
animation: ui-toast-exit-
|
|
11890
|
+
animation: ui-toast-exit-665e4b29 var(--_ui-toast-region-exit-duration, 0.22s) var(--ui-motion-ease)
|
|
11881
11891
|
both;
|
|
11882
11892
|
pointer-events: none;
|
|
11883
11893
|
}
|
|
11884
11894
|
:is(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom"], :where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-start"], :where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-end"])
|
|
11885
11895
|
.toast:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region]) {
|
|
11886
|
-
animation-name: ui-toast-enter-bottom-
|
|
11896
|
+
animation-name: ui-toast-enter-bottom-665e4b29;
|
|
11887
11897
|
}
|
|
11888
11898
|
:is(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom"], :where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-start"], :where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-end"])
|
|
11889
11899
|
.toast.closing:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region]) {
|
|
11890
|
-
animation-name: ui-toast-exit-bottom-
|
|
11900
|
+
animation-name: ui-toast-exit-bottom-665e4b29;
|
|
11891
11901
|
}
|
|
11892
11902
|
@media (prefers-reduced-motion: reduce) {
|
|
11893
11903
|
.toast:where(:scope, :scope *):where([data-hn-ui-toast-region]),.toast.closing:where(:scope, :scope *):where([data-hn-ui-toast-region]) {
|
|
@@ -15110,6 +15120,12 @@ html[data-ui-input-modality="touch"]
|
|
|
15110
15120
|
align-self: stretch;
|
|
15111
15121
|
}
|
|
15112
15122
|
|
|
15123
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
15124
|
+
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after,
|
|
15125
|
+
html[data-ui-input-modality="touch"] :scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"]::after {
|
|
15126
|
+
inline-size: 100%;
|
|
15127
|
+
}
|
|
15128
|
+
|
|
15113
15129
|
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"] {
|
|
15114
15130
|
--_size: var(--ui-control-size-sm);
|
|
15115
15131
|
}
|
|
@@ -15325,6 +15341,8 @@ html[data-ui-input-modality="touch"]
|
|
|
15325
15341
|
|
|
15326
15342
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
15327
15343
|
|
|
15344
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
15345
|
+
|
|
15328
15346
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
15329
15347
|
|
|
15330
15348
|
@media (prefers-reduced-motion: reduce) {
|