@threadlabs/looma 0.47.5 → 0.47.6
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-card/ui-card.html +8 -0
- package/dist/index.js +1 -1
- package/docs/catalog.json +13 -3
- package/package.json +1 -1
- package/styles/ui-card.css +8 -0
- package/vue/UiCard.vue +8 -0
- package/vue/chunks/UiCard.js +1 -1
- package/vue/components.css +6 -0
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.6",
|
|
472
472
|
"groups": [
|
|
473
473
|
{
|
|
474
474
|
"id": "layout",
|
|
@@ -3749,7 +3749,7 @@
|
|
|
3749
3749
|
"tag": "ui-card",
|
|
3750
3750
|
"package": "@threadlabs/looma",
|
|
3751
3751
|
"root": "div",
|
|
3752
|
-
"description": "A surface that groups content with shared spacing and corners. Choose outlined, subtle or elevated; standard or expressive treatment independently follows the theme's material. Tones change colour without changing geometry.
|
|
3752
|
+
"description": "A surface that groups content with shared spacing and corners. Choose outlined, subtle or elevated; standard or expressive treatment independently follows the theme's material. Tones change colour without changing geometry. All slots are optional; content uses the default slot. Omit the header to keep the title and description together in the body. Use ActionBar in the actions slot, with the main action in its primary slot. CardGroup aligns these regions with native subgrid; ordinary cards keep their stacked layout.",
|
|
3753
3753
|
"designTokens": {
|
|
3754
3754
|
"sources": [
|
|
3755
3755
|
"packages/looma/src/components/ui-card/ui-card.html"
|
|
@@ -4142,7 +4142,7 @@
|
|
|
4142
4142
|
"tag": "ui-card-group",
|
|
4143
4143
|
"package": "@threadlabs/looma",
|
|
4144
4144
|
"root": "div",
|
|
4145
|
-
"description": "Responsive cards with shared header, content and action rows. Uses Grid for wrapping columns and Card for native subgrid alignment.
|
|
4145
|
+
"description": "Responsive cards with shared header, content and action rows. Uses Grid for wrapping columns and Card for native subgrid alignment. All Card slots are optional; content uses the default slot. Omit the header when the title and description should stay together in the body; that body starts at the card’s content edge without an empty header band. Use the header slot only when separate heading alignment is useful. Put an ActionBar in the actions slot, with the main action in its primary slot, for trailing alignment.",
|
|
4146
4146
|
"designTokens": {
|
|
4147
4147
|
"sources": [
|
|
4148
4148
|
"packages/looma/src/components/ui-card-group/ui-card-group.html"
|
|
@@ -4251,6 +4251,16 @@
|
|
|
4251
4251
|
"resizable": false,
|
|
4252
4252
|
"bindings": "",
|
|
4253
4253
|
"frameworks": {}
|
|
4254
|
+
},
|
|
4255
|
+
{
|
|
4256
|
+
"id": "@threadlabs/looma/ui-card-group/03-optional-header",
|
|
4257
|
+
"name": "03-optional-header",
|
|
4258
|
+
"title": "Body content with optional headers",
|
|
4259
|
+
"description": "Omit the header slot to keep each title and description in natural flow. ActionBar keeps primary actions at the trailing edge and aligned across cards.",
|
|
4260
|
+
"markup": "<ui-card-group columns=\"2\" min=\"md\">\n <ui-card>\n <ui-stack gap=\"s\">\n <ui-text as=\"h2\" variant=\"heading\">Archive</ui-text>\n <ui-text>A short description follows its own title.</ui-text>\n </ui-stack>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Open archive</ui-button></ui-action-bar>\n </ui-card>\n <ui-card>\n <ui-stack gap=\"s\">\n <ui-text as=\"h2\" variant=\"heading\">Letters and records from the journey</ui-text>\n <ui-text>A longer title and description remain one continuous body while the action aligns with its neighbour.</ui-text>\n </ui-stack>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Browse records</ui-button></ui-action-bar>\n </ui-card>\n</ui-card-group>",
|
|
4261
|
+
"resizable": false,
|
|
4262
|
+
"bindings": "",
|
|
4263
|
+
"frameworks": {}
|
|
4254
4264
|
}
|
|
4255
4265
|
]
|
|
4256
4266
|
},
|
package/package.json
CHANGED
package/styles/ui-card.css
CHANGED
|
@@ -46,6 +46,14 @@
|
|
|
46
46
|
--_ui-card-group-region-layout: initial;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
.header:empty {
|
|
50
|
+
display: none !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.header:empty + .content {
|
|
54
|
+
grid-row: span 2 !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="padding=xs"] {
|
|
50
58
|
gap: var(--ui-space-1) !important;
|
|
51
59
|
padding: var(--ui-space-2) !important;
|
package/vue/UiCard.vue
CHANGED
|
@@ -362,6 +362,14 @@ const hostState = computed(() =>
|
|
|
362
362
|
--_ui-card-group-region-layout: initial;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
:global(.header:empty:where([data-hn-ui-card])) {
|
|
366
|
+
display: none !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
:global(.header:empty + .content:where([data-hn-ui-card])) {
|
|
370
|
+
grid-row: span 2 !important;
|
|
371
|
+
}
|
|
372
|
+
|
|
365
373
|
:global(:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card])) {
|
|
366
374
|
gap: var(--ui-space-1) !important;
|
|
367
375
|
padding: var(--ui-space-2) !important;
|
package/vue/chunks/UiCard.js
CHANGED
package/vue/components.css
CHANGED
|
@@ -1729,6 +1729,12 @@ html[data-ui-input-modality="touch"]
|
|
|
1729
1729
|
--_ui-card-group-span: initial;
|
|
1730
1730
|
--_ui-card-group-region-layout: initial;
|
|
1731
1731
|
}
|
|
1732
|
+
.header:empty:where([data-hn-ui-card]) {
|
|
1733
|
+
display: none !important;
|
|
1734
|
+
}
|
|
1735
|
+
.header:empty + .content:where([data-hn-ui-card]) {
|
|
1736
|
+
grid-row: span 2 !important;
|
|
1737
|
+
}
|
|
1732
1738
|
:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card]) {
|
|
1733
1739
|
gap: var(--ui-space-1) !important;
|
|
1734
1740
|
padding: var(--ui-space-2) !important;
|