@threadlabs/looma 0.47.4 → 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/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) {
|
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);
|
|
@@ -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
|
}
|
|
@@ -15114,6 +15120,12 @@ html[data-ui-input-modality="touch"]
|
|
|
15114
15120
|
align-self: stretch;
|
|
15115
15121
|
}
|
|
15116
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
|
+
|
|
15117
15129
|
:scope:where([data-component~="ui-icon-button"])[data-ui-icon-button-state~="matchButton"][data-ui-icon-button-state~="size=sm"] {
|
|
15118
15130
|
--_size: var(--ui-control-size-sm);
|
|
15119
15131
|
}
|
|
@@ -15329,6 +15341,8 @@ html[data-ui-input-modality="touch"]
|
|
|
15329
15341
|
|
|
15330
15342
|
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
15331
15343
|
|
|
15344
|
+
/* A paired action may grow vertically for touch, without intercepting its neighbour. */
|
|
15345
|
+
|
|
15332
15346
|
/* Native toggle state persists after pointer release, including during loading. */
|
|
15333
15347
|
|
|
15334
15348
|
@media (prefers-reduced-motion: reduce) {
|