@threadlabs/looma 0.47.2 → 0.47.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/docs/catalog.json CHANGED
@@ -50,6 +50,11 @@
50
50
  "package": "@threadlabs/looma",
51
51
  "resource": "@threadlabs/looma/components/ui-card/ui-card.html"
52
52
  },
53
+ {
54
+ "tag": "ui-card-group",
55
+ "package": "@threadlabs/looma",
56
+ "resource": "@threadlabs/looma/components/ui-card-group/ui-card-group.html"
57
+ },
53
58
  {
54
59
  "tag": "ui-checkbox",
55
60
  "package": "@threadlabs/looma",
@@ -463,7 +468,7 @@
463
468
  ],
464
469
  "schemaVersion": 1,
465
470
  "package": "@threadlabs/looma",
466
- "version": "0.47.2",
471
+ "version": "0.47.4",
467
472
  "groups": [
468
473
  {
469
474
  "id": "layout",
@@ -3744,7 +3749,7 @@
3744
3749
  "tag": "ui-card",
3745
3750
  "package": "@threadlabs/looma",
3746
3751
  "root": "div",
3747
- "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. Supply a header slot, default body content and an actions slot. CardGroup aligns these regions with native subgrid; ordinary cards keep their stacked layout.",
3748
3753
  "designTokens": {
3749
3754
  "sources": [
3750
3755
  "packages/looma/src/components/ui-card/ui-card.html"
@@ -4058,9 +4063,17 @@
4058
4063
  ],
4059
4064
  "events": [],
4060
4065
  "slots": [
4066
+ {
4067
+ "name": "header",
4068
+ "description": "Named content for the header region."
4069
+ },
4061
4070
  {
4062
4071
  "name": "default",
4063
4072
  "description": "Default child content."
4073
+ },
4074
+ {
4075
+ "name": "actions",
4076
+ "description": "Named content for the actions region."
4064
4077
  }
4065
4078
  ],
4066
4079
  "summary": "A surface that groups related content.",
@@ -4125,6 +4138,122 @@
4125
4138
  }
4126
4139
  ]
4127
4140
  },
4141
+ {
4142
+ "tag": "ui-card-group",
4143
+ "package": "@threadlabs/looma",
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. Each Card supplies a header slot, default body content and an actions slot.",
4146
+ "designTokens": {
4147
+ "sources": [
4148
+ "packages/looma/src/components/ui-card-group/ui-card-group.html"
4149
+ ],
4150
+ "component": [],
4151
+ "shared": []
4152
+ },
4153
+ "attributes": [
4154
+ {
4155
+ "name": "columns",
4156
+ "property": "columns",
4157
+ "description": "Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.",
4158
+ "type": "integer"
4159
+ },
4160
+ {
4161
+ "name": "gap",
4162
+ "property": "gap",
4163
+ "description": "Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.",
4164
+ "type": "keyword",
4165
+ "default": "l",
4166
+ "options": [
4167
+ "xs",
4168
+ "s",
4169
+ "m",
4170
+ "l",
4171
+ "xl"
4172
+ ]
4173
+ },
4174
+ {
4175
+ "name": "min",
4176
+ "property": "min",
4177
+ "description": "Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.",
4178
+ "type": "keyword",
4179
+ "default": "lg",
4180
+ "options": [
4181
+ "sm",
4182
+ "md",
4183
+ "lg"
4184
+ ]
4185
+ }
4186
+ ],
4187
+ "properties": [
4188
+ {
4189
+ "name": "columns",
4190
+ "description": "Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.",
4191
+ "type": "number"
4192
+ },
4193
+ {
4194
+ "name": "gap",
4195
+ "description": "Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.",
4196
+ "type": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\"",
4197
+ "default": "l",
4198
+ "options": [
4199
+ "xs",
4200
+ "s",
4201
+ "m",
4202
+ "l",
4203
+ "xl"
4204
+ ]
4205
+ },
4206
+ {
4207
+ "name": "min",
4208
+ "description": "Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.",
4209
+ "type": "\"sm\" | \"md\" | \"lg\"",
4210
+ "default": "lg",
4211
+ "options": [
4212
+ "sm",
4213
+ "md",
4214
+ "lg"
4215
+ ]
4216
+ }
4217
+ ],
4218
+ "events": [],
4219
+ "slots": [
4220
+ {
4221
+ "name": "default",
4222
+ "description": "Default child content."
4223
+ }
4224
+ ],
4225
+ "summary": "Align card headers, content and actions across each row.",
4226
+ "group": "layout",
4227
+ "id": "@threadlabs/looma/ui-card-group",
4228
+ "title": "Card Group",
4229
+ "resource": "@threadlabs/looma/components/ui-card-group/ui-card-group.html",
4230
+ "targets": [
4231
+ "html-next",
4232
+ "vue"
4233
+ ],
4234
+ "examples": [
4235
+ {
4236
+ "id": "@threadlabs/looma/ui-card-group/01-default",
4237
+ "name": "01-default",
4238
+ "title": "Aligned card regions",
4239
+ "description": "Different heading and body lengths share header, content and action rows, then stack in a narrow container.",
4240
+ "markup": "<ui-card-group>\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Fellowship archive</ui-text>\n <ui-text>A short description of the archive.</ui-text>\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-text slot=\"header\" as=\"h2\" variant=\"heading\">Letters and records from the journey</ui-text>\n <ui-text>Read correspondence, maps and field notes collected throughout the journey. Longer descriptions leave the actions aligned.</ui-text>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"secondary\" variant=\"outline\">Read more</ui-button><ui-button slot=\"primary\"\n >Explore records</ui-button></ui-action-bar>\n </ui-card>\n</ui-card-group>",
4241
+ "resizable": false,
4242
+ "bindings": "",
4243
+ "frameworks": {}
4244
+ },
4245
+ {
4246
+ "id": "@threadlabs/looma/ui-card-group/02-column-cap",
4247
+ "name": "02-column-cap",
4248
+ "title": "Column limit and nested content",
4249
+ "description": "Grid's column limit and minimum width apply without page-specific layout rules. A nested card keeps its independent stacked layout.",
4250
+ "markup": "<ui-card-group columns=\"2\" min=\"md\" gap=\"xl\">\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Research</ui-text>\n <ui-card variant=\"subtle\" padding=\"sm\"><ui-text>A supporting note inside the card.</ui-text></ui-card>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Read notes</ui-button></ui-action-bar>\n </ui-card>\n <ui-card>\n <ui-text slot=\"header\" as=\"h2\" variant=\"heading\">Correspondence</ui-text>\n <ui-text>A separate collection of letters.</ui-text>\n <ui-action-bar slot=\"actions\"><ui-button slot=\"primary\" preset=\"primary\">Browse letters</ui-button></ui-action-bar>\n </ui-card>\n</ui-card-group>",
4251
+ "resizable": false,
4252
+ "bindings": "",
4253
+ "frameworks": {}
4254
+ }
4255
+ ]
4256
+ },
4128
4257
  {
4129
4258
  "tag": "ui-checkbox",
4130
4259
  "package": "@threadlabs/looma",
@@ -5261,12 +5390,6 @@
5261
5390
  {
5262
5391
  "name": "--ui-accent-solid"
5263
5392
  },
5264
- {
5265
- "name": "--ui-badge-min-block-size",
5266
- "fallbacks": [
5267
- "1.5rem"
5268
- ]
5269
- },
5270
5393
  {
5271
5394
  "name": "--ui-border-default"
5272
5395
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.47.2",
3
+ "version": "0.47.4",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -0,0 +1,41 @@
1
+ /* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
2
+ @supports (-moz-appearance: none) {
3
+ :where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
4
+ :where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
5
+ }
6
+ @supports (-moz-appearance: none) {
7
+ [data-component~="ui-card-group"] { --html-next-scope-owner: "ui-card-group" !important; }
8
+ }
9
+ @scope ([data-component~="ui-card-group"]) to ([data-component], [data-slotted]) {
10
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
11
+ :scope:where([data-component~="ui-card-group"]) {
12
+ display: block !important;
13
+ min-inline-size: 0;
14
+ max-inline-size: 100%;
15
+ --_ui-card-group-layout: grid;
16
+ --_ui-card-group-rows: subgrid;
17
+ --_ui-card-group-span: span 3;
18
+ --_ui-card-group-region-layout: flex;
19
+ }
20
+ :scope:where([data-component~="ui-card-group"])[hidden] {
21
+ display: none !important;
22
+ }
23
+ }
24
+ @scope ([data-component~="ui-card-group"]) to ([data-component]) {
25
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
26
+ }
27
+ @scope ([data-slotted~="ui-card-group"]:not([data-component])) to ([data-component], [data-slotted]) {
28
+ /* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
29
+ :where([data-component~="ui-card-group"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-card-group"]))) {
30
+ display: block !important;
31
+ min-inline-size: 0;
32
+ max-inline-size: 100%;
33
+ --_ui-card-group-layout: grid;
34
+ --_ui-card-group-rows: subgrid;
35
+ --_ui-card-group-span: span 3;
36
+ --_ui-card-group-region-layout: flex;
37
+ }
38
+ :where([data-component~="ui-card-group"])[hidden]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-card-group"]))) {
39
+ display: none !important;
40
+ }
41
+ }
@@ -16,7 +16,11 @@
16
16
  --_ui-selection-context-surface: initial;
17
17
  --_ui-selection-context-border: initial;
18
18
  --_ui-selection-context-text: initial;
19
- display: flex !important;
19
+ --_ui-card-layout: var(--_ui-card-group-layout, flex);
20
+ --_ui-card-region-layout: var(--_ui-card-group-region-layout, contents);
21
+ display: var(--_ui-card-layout) !important;
22
+ grid-template-rows: var(--_ui-card-group-rows, none) !important;
23
+ grid-row: var(--_ui-card-group-span, auto) !important;
20
24
  flex-direction: column !important;
21
25
  gap: var(--ui-space-4) !important;
22
26
  box-sizing: border-box !important;
@@ -28,6 +32,20 @@
28
32
  color: var(--_ui-surface-text, var(--ui-text-primary));
29
33
  }
30
34
 
35
+ .header,
36
+ .content,
37
+ .actions {
38
+ display: var(--_ui-card-region-layout) !important;
39
+ flex-direction: column !important;
40
+ gap: inherit !important;
41
+ min-inline-size: 0;
42
+ /* Group context stops at this card; nested cards start a fresh layout. */
43
+ --_ui-card-group-layout: initial;
44
+ --_ui-card-group-rows: initial;
45
+ --_ui-card-group-span: initial;
46
+ --_ui-card-group-region-layout: initial;
47
+ }
48
+
31
49
  :scope:where([data-component~="ui-card"])[data-ui-card-state~="padding=xs"] {
32
50
  gap: var(--ui-space-1) !important;
33
51
  padding: var(--ui-space-2) !important;
@@ -325,7 +325,8 @@
325
325
  /* Grow through the requested rows, then keep the typing row in a bounded field.
326
326
  The entry owns its scroll; clear/disclosure actions remain outside it. */
327
327
  :scope:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry.multiline {
328
- --_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
328
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
329
+ --_entry-row: max(1.5rem, var(--_item-row));
329
330
  flex-wrap: wrap !important;
330
331
  align-content: flex-start !important;
331
332
  max-block-size: calc(var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1));
@@ -698,7 +699,8 @@
698
699
  /* Grow through the requested rows, then keep the typing row in a bounded field.
699
700
  The entry owns its scroll; clear/disclosure actions remain outside it. */
700
701
  :where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry.multiline:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
701
- --_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
702
+ /* The field owns its nominal row size; nested badges keep their own sizing hooks. */
703
+ --_entry-row: max(1.5rem, var(--_item-row));
702
704
  flex-wrap: wrap !important;
703
705
  align-content: flex-start !important;
704
706
  max-block-size: calc(var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1));
@@ -39,16 +39,18 @@
39
39
  justify-items: center !important;
40
40
  margin-inline-start: auto !important;
41
41
  }
42
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
42
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
43
43
  .identity {
44
44
  display: flex !important;
45
45
  flex: 1 1 0;
46
46
  flex-wrap: wrap !important;
47
- align-items: baseline !important;
47
+ align-items: center !important;
48
48
  gap: var(--ui-space-2) var(--ui-space-6) !important;
49
49
  min-inline-size: 0;
50
50
  }
51
51
  .brand {
52
+ display: flex !important;
53
+ align-items: center !important;
52
54
  min-inline-size: 0;
53
55
  font-size: var(--ui-font-size-lg);
54
56
  font-weight: var(--ui-font-bold);
@@ -56,7 +58,7 @@
56
58
  .navigation {
57
59
  display: flex !important;
58
60
  flex-wrap: wrap !important;
59
- align-items: baseline !important;
61
+ align-items: center !important;
60
62
  gap: var(--ui-space-2) var(--ui-space-5) !important;
61
63
  min-inline-size: 0;
62
64
  font-size: var(--ui-font-size-sm);
@@ -87,7 +89,7 @@
87
89
  .inline-navigation {
88
90
  position: static;
89
91
  display: flex !important;
90
- align-items: baseline !important;
92
+ align-items: center !important;
91
93
  min-inline-size: 0;
92
94
  max-inline-size: none;
93
95
  margin: 0 !important;
@@ -272,10 +274,10 @@
272
274
  }
273
275
  }
274
276
  @scope ([data-component~="ui-site-header"]) to ([data-component]) {
275
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
277
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
276
278
  .brand > :where([data-slotted], [data-slotted] *):is(a) {
277
279
  display: inline-flex !important;
278
- align-items: baseline !important;
280
+ align-items: center !important;
279
281
  gap: var(--ui-space-3) !important;
280
282
  min-inline-size: 0;
281
283
  max-inline-size: 100%;
@@ -345,16 +347,18 @@
345
347
  justify-items: center !important;
346
348
  margin-inline-start: auto !important;
347
349
  }
348
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
350
+ /* Brand, navigation and actions centre their own containers, including mixed font sizes. */
349
351
  .identity:where(:scope, :scope *) {
350
352
  display: flex !important;
351
353
  flex: 1 1 0;
352
354
  flex-wrap: wrap !important;
353
- align-items: baseline !important;
355
+ align-items: center !important;
354
356
  gap: var(--ui-space-2) var(--ui-space-6) !important;
355
357
  min-inline-size: 0;
356
358
  }
357
359
  .brand:where(:scope, :scope *) {
360
+ display: flex !important;
361
+ align-items: center !important;
358
362
  min-inline-size: 0;
359
363
  font-size: var(--ui-font-size-lg);
360
364
  font-weight: var(--ui-font-bold);
@@ -362,7 +366,7 @@
362
366
  .navigation:where(:scope, :scope *) {
363
367
  display: flex !important;
364
368
  flex-wrap: wrap !important;
365
- align-items: baseline !important;
369
+ align-items: center !important;
366
370
  gap: var(--ui-space-2) var(--ui-space-5) !important;
367
371
  min-inline-size: 0;
368
372
  font-size: var(--ui-font-size-sm);
@@ -393,7 +397,7 @@
393
397
  .inline-navigation:where(:scope, :scope *) {
394
398
  position: static;
395
399
  display: flex !important;
396
- align-items: baseline !important;
400
+ align-items: center !important;
397
401
  min-inline-size: 0;
398
402
  max-inline-size: none;
399
403
  margin: 0 !important;
@@ -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/vanilla/UiCard.js CHANGED
@@ -2,15 +2,23 @@
2
2
  import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-card.css";
4
4
 
5
- const T0 = ["",[],4];
5
+ const T0 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
6
6
  const T1 = ["",[]];
7
- const T2 = ["",[],4];
7
+ const T2 = ["",[]];
8
8
  const T3 = ["",[]];
9
- const T4 = ["",[],4];
9
+ const T4 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
10
10
  const T5 = ["",[]];
11
- const T6 = ["",[],4];
11
+ const T6 = ["",[]];
12
12
  const T7 = ["",[]];
13
- let P0, P1, P2, P3, P4, P5, P6, P7;
13
+ const T8 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
14
+ const T9 = ["",[]];
15
+ const T10 = ["",[]];
16
+ const T11 = ["",[]];
17
+ const T12 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
18
+ const T13 = ["",[]];
19
+ const T14 = ["",[]];
20
+ const T15 = ["",[]];
21
+ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15;
14
22
  const S = { n: [], t: [], f: import.meta.url, g: "ui-card", b: generatedInputs };
15
23
  const A = [["section",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["article",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["div",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]]];
16
24
  const Q = [[],[],[],[]];
@@ -60,6 +68,14 @@ export function createUiCard(options = {}, html) {
60
68
  };
61
69
  const p1 = (r, c, d) => {
62
70
  };
71
+ const m2 = (d) => {
72
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
73
+ const r = { n };
74
+ p2(r, -1, d);
75
+ return r;
76
+ };
77
+ const p2 = (r, c, d) => {
78
+ };
63
79
  const m3 = (d) => {
64
80
  const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
65
81
  const r = { n };
@@ -76,6 +92,14 @@ export function createUiCard(options = {}, html) {
76
92
  };
77
93
  const p5 = (r, c, d) => {
78
94
  };
95
+ const m6 = (d) => {
96
+ const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
97
+ const r = { n };
98
+ p6(r, -1, d);
99
+ return r;
100
+ };
101
+ const p6 = (r, c, d) => {
102
+ };
79
103
  const m7 = (d) => {
80
104
  const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
81
105
  const r = { n };
@@ -84,10 +108,62 @@ export function createUiCard(options = {}, html) {
84
108
  };
85
109
  const p7 = (r, c, d) => {
86
110
  };
111
+ const m9 = (d) => {
112
+ const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
113
+ const r = { n };
114
+ p9(r, -1, d);
115
+ return r;
116
+ };
117
+ const p9 = (r, c, d) => {
118
+ };
119
+ const m10 = (d) => {
120
+ const n = (P10 ??= buildTemplate(T10)).cloneNode(true);
121
+ const r = { n };
122
+ p10(r, -1, d);
123
+ return r;
124
+ };
125
+ const p10 = (r, c, d) => {
126
+ };
127
+ const m11 = (d) => {
128
+ const n = (P11 ??= buildTemplate(T11)).cloneNode(true);
129
+ const r = { n };
130
+ p11(r, -1, d);
131
+ return r;
132
+ };
133
+ const p11 = (r, c, d) => {
134
+ };
135
+ const m13 = (d) => {
136
+ const n = (P13 ??= buildTemplate(T13)).cloneNode(true);
137
+ const r = { n };
138
+ p13(r, -1, d);
139
+ return r;
140
+ };
141
+ const p13 = (r, c, d) => {
142
+ };
143
+ const m14 = (d) => {
144
+ const n = (P14 ??= buildTemplate(T14)).cloneNode(true);
145
+ const r = { n };
146
+ p14(r, -1, d);
147
+ return r;
148
+ };
149
+ const p14 = (r, c, d) => {
150
+ };
151
+ const m15 = (d) => {
152
+ const n = (P15 ??= buildTemplate(T15)).cloneNode(true);
153
+ const r = { n };
154
+ p15(r, -1, d);
155
+ return r;
156
+ };
157
+ const p15 = (r, c, d) => {
158
+ };
87
159
  const m0 = (n, d) => {
88
160
  n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
89
- const t0 = n.firstChild;
90
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
161
+ const t0 = n.firstChild.nextSibling;
162
+ const t1 = t0.firstChild;
163
+ const t2 = t0.nextSibling.nextSibling;
164
+ const t3 = t2.firstChild;
165
+ const t4 = t2.nextSibling.nextSibling.firstChild;
166
+ const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
91
167
  p0(r, -1, d);
92
168
  return r;
93
169
  };
@@ -97,62 +173,98 @@ export function createUiCard(options = {}, html) {
97
173
  const s0 = x0;
98
174
  if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
99
175
  }
100
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
176
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
101
177
  if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
102
178
  else if (r.b0 !== undefined) p1(r.b0, c, d);
179
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
180
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
181
+ else if (r.b1 !== undefined) p2(r.b1, c, d);
182
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
183
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
184
+ else if (r.b2 !== undefined) p3(r.b2, c, d);
103
185
  };
104
- const m2 = (n, d) => {
105
- n.append((P2 ??= buildTemplate(T2)).cloneNode(true));
106
- const t0 = n.firstChild;
107
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
108
- p2(r, -1, d);
186
+ const m4 = (n, d) => {
187
+ n.append((P4 ??= buildTemplate(T4)).cloneNode(true));
188
+ const t0 = n.firstChild.nextSibling;
189
+ const t1 = t0.firstChild;
190
+ const t2 = t0.nextSibling.nextSibling;
191
+ const t3 = t2.firstChild;
192
+ const t4 = t2.nextSibling.nextSibling.firstChild;
193
+ const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
194
+ p4(r, -1, d);
109
195
  return r;
110
196
  };
111
- const p2 = (r, c, d) => {
197
+ const p4 = (r, c, d) => {
112
198
  if (c & 62) {
113
199
  const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
114
200
  const s0 = x0;
115
201
  if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
116
202
  }
117
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
118
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m3(d); at.before(r.b0.n); } }
119
- else if (r.b0 !== undefined) p3(r.b0, c, d);
203
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
204
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
205
+ else if (r.b0 !== undefined) p5(r.b0, c, d);
206
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
207
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m6(d); at.before(r.b1.n); } }
208
+ else if (r.b1 !== undefined) p6(r.b1, c, d);
209
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
210
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m7(d); at.before(r.b2.n); } }
211
+ else if (r.b2 !== undefined) p7(r.b2, c, d);
120
212
  };
121
- const m4 = (n, d) => {
122
- n.append((P4 ??= buildTemplate(T4)).cloneNode(true));
123
- const t0 = n.firstChild;
124
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
125
- p4(r, -1, d);
213
+ const m8 = (n, d) => {
214
+ n.append((P8 ??= buildTemplate(T8)).cloneNode(true));
215
+ const t0 = n.firstChild.nextSibling;
216
+ const t1 = t0.firstChild;
217
+ const t2 = t0.nextSibling.nextSibling;
218
+ const t3 = t2.firstChild;
219
+ const t4 = t2.nextSibling.nextSibling.firstChild;
220
+ const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
221
+ p8(r, -1, d);
126
222
  return r;
127
223
  };
128
- const p4 = (r, c, d) => {
224
+ const p8 = (r, c, d) => {
129
225
  if (c & 62) {
130
226
  const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
131
227
  const s0 = x0;
132
228
  if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
133
229
  }
134
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
135
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
136
- else if (r.b0 !== undefined) p5(r.b0, c, d);
230
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
231
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
232
+ else if (r.b0 !== undefined) p9(r.b0, c, d);
233
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
234
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m10(d); at.before(r.b1.n); } }
235
+ else if (r.b1 !== undefined) p10(r.b1, c, d);
236
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
237
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m11(d); at.before(r.b2.n); } }
238
+ else if (r.b2 !== undefined) p11(r.b2, c, d);
137
239
  };
138
- const m6 = (n, d) => {
139
- n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
140
- const t0 = n.firstChild;
141
- const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
142
- p6(r, -1, d);
240
+ const m12 = (n, d) => {
241
+ n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
242
+ const t0 = n.firstChild.nextSibling;
243
+ const t1 = t0.firstChild;
244
+ const t2 = t0.nextSibling.nextSibling;
245
+ const t3 = t2.firstChild;
246
+ const t4 = t2.nextSibling.nextSibling.firstChild;
247
+ const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
248
+ p12(r, -1, d);
143
249
  return r;
144
250
  };
145
- const p6 = (r, c, d) => {
251
+ const p12 = (r, c, d) => {
146
252
  if (c & 62) {
147
253
  const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
148
254
  const s0 = x0;
149
255
  if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
150
256
  }
151
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
152
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m7(d); at.before(r.b0.n); } }
153
- else if (r.b0 !== undefined) p7(r.b0, c, d);
257
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
258
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m13(d); at.before(r.b0.n); } }
259
+ else if (r.b0 !== undefined) p13(r.b0, c, d);
260
+ if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
261
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
262
+ else if (r.b1 !== undefined) p14(r.b1, c, d);
263
+ if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
264
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
265
+ else if (r.b2 !== undefined) p15(r.b2, c, d);
154
266
  };
155
- const M = [m0, m2, m4, m6], N = [p0, p2, p4, p6];
267
+ const M = [m0, m4, m8, m12], N = [p0, p4, p8, p12];
156
268
  let R;
157
269
  const p = (c, d) => {
158
270
  if (R === null) return;