@getflip/swirl-components 0.228.0 → 0.229.0
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.json +70 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-app-layout_5.cjs.entry.js +2 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-resource-list/swirl-resource-list.js +26 -1
- package/dist/collection/components/swirl-resource-list/swirl-resource-list.spec.js +1 -1
- package/dist/collection/components/swirl-text/swirl-text.spec.js +2 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-resource-list2.js +3 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-app-layout_5.entry.js +2 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/swirl-components/{p-763c5694.entry.js → p-64cb4629.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-resource-list/swirl-resource-list.d.ts +2 -0
- package/dist/types/components.d.ts +8 -4
- package/package.json +1 -1
- package/vscode-data.json +39 -0
|
@@ -83,6 +83,7 @@ export class SwirlResourceList {
|
|
|
83
83
|
this.assistiveTextItemMoved = "Item moved. New position:";
|
|
84
84
|
this.controllingElement = undefined;
|
|
85
85
|
this.label = undefined;
|
|
86
|
+
this.spacing = "0";
|
|
86
87
|
this.assistiveText = undefined;
|
|
87
88
|
this.listId = uuid();
|
|
88
89
|
}
|
|
@@ -232,7 +233,7 @@ export class SwirlResourceList {
|
|
|
232
233
|
this.assistiveText = `${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging) + 1}`;
|
|
233
234
|
}
|
|
234
235
|
render() {
|
|
235
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: '5275305a537d6591f88aca3e719eb625a81af46e', onKeyDown: this.onKeyDown }, h("swirl-visually-hidden", { key: '2bfd1debd362806e9f66b9f0ced478eceba8b4ee', role: "alert" }, this.assistiveText), h("swirl-box", { key: 'b473aac22f978d47aa2d7734ac1c0228efb11210', paddingInlineEnd: "8", paddingInlineStart: "8" }, h("swirl-stack", { key: '757cc4a34325eb8298437a43b3f2aeeb895fb74a', "aria-label": this.label, class: "resource-list", id: this.listId, ref: (el) => (this.gridEl = el), role: "grid", spacing: this.spacing }, h("slot", { key: '833d2dace730d044e9f65f95e874c118a70ae25e' })))));
|
|
236
237
|
}
|
|
237
238
|
static get is() { return "swirl-resource-list"; }
|
|
238
239
|
static get encapsulation() { return "scoped"; }
|
|
@@ -355,6 +356,30 @@ export class SwirlResourceList {
|
|
|
355
356
|
},
|
|
356
357
|
"attribute": "label",
|
|
357
358
|
"reflect": false
|
|
359
|
+
},
|
|
360
|
+
"spacing": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"mutable": false,
|
|
363
|
+
"complexType": {
|
|
364
|
+
"original": "SwirlStackSpacing",
|
|
365
|
+
"resolved": "\"0\" | \"12\" | \"16\" | \"2\" | \"24\" | \"32\" | \"4\" | \"40\" | \"48\" | \"64\" | \"8\"",
|
|
366
|
+
"references": {
|
|
367
|
+
"SwirlStackSpacing": {
|
|
368
|
+
"location": "import",
|
|
369
|
+
"path": "../swirl-stack/swirl-stack",
|
|
370
|
+
"id": "src/components/swirl-stack/swirl-stack.tsx::SwirlStackSpacing"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"required": false,
|
|
375
|
+
"optional": true,
|
|
376
|
+
"docs": {
|
|
377
|
+
"tags": [],
|
|
378
|
+
"text": ""
|
|
379
|
+
},
|
|
380
|
+
"attribute": "spacing",
|
|
381
|
+
"reflect": false,
|
|
382
|
+
"defaultValue": "\"0\""
|
|
358
383
|
}
|
|
359
384
|
};
|
|
360
385
|
}
|
|
@@ -48,7 +48,7 @@ describe("swirl-resource-list", () => {
|
|
|
48
48
|
<swirl-resource-list label="Label">
|
|
49
49
|
<swirl-visually-hidden role="alert"></swirl-visually-hidden>
|
|
50
50
|
<swirl-box paddinginlineend="8" paddinginlinestart="8">
|
|
51
|
-
<swirl-stack aria-label="Label" class="resource-list" id="${id}" role="grid">
|
|
51
|
+
<swirl-stack aria-label="Label" class="resource-list" id="${id}" role="grid" spacing="0">
|
|
52
52
|
<swirl-resource-list-item description="With a description" label="This is a resource item" media="<swirl-avatar label="John Doe" src="https://picsum.photos/id/433/144/144"></swirl-avatar>"></swirl-resource-list-item>
|
|
53
53
|
<swirl-resource-list-item description="With a description" label="This is a resource item" media="<swirl-avatar label="John Doe" src="https://picsum.photos/id/103/144/144"></swirl-avatar>"></swirl-resource-list-item>
|
|
54
54
|
</swirl-stack>
|
|
@@ -16,7 +16,7 @@ describe("swirl-text", () => {
|
|
|
16
16
|
});
|
|
17
17
|
expect(page.root).toEqualHtml(`
|
|
18
18
|
<swirl-text align="center" color="critical" font-style="italic" size="lg" weight="medium">
|
|
19
|
-
<p class="text text--align-center text--color-critical text--font-family-text text--font-style-italic text--size-lg text--truncate-direction-end text--weight-medium" style="white-space: normal;">
|
|
19
|
+
<p class="text text--align-center text--color-critical text--font-family-text text--font-style-italic text--responsive text--size-lg text--truncate-direction-end text--weight-medium" style="white-space: normal;">
|
|
20
20
|
Est, odio dis scelerisque risus sagittis lorem rhoncus. Vivamus tristique habitant vitae cursus nisl. Sed adipiscing proin suspendisse aliquam maecenas faucibus mauris purus. Tortor ut habitant erat adipiscing nulla pretium, cursus tortor. Amet viverra et platea lacus, nec molestie tincidunt.
|
|
21
21
|
</p>
|
|
22
22
|
</swirl-text>
|
|
@@ -37,7 +37,7 @@ describe("swirl-text", () => {
|
|
|
37
37
|
});
|
|
38
38
|
expect(page.root).toEqualHtml(`
|
|
39
39
|
<swirl-text as="span">
|
|
40
|
-
<span class="text text--align-start text--color-default text--font-family-text text--font-style-normal text--size-base text--truncate-direction-end text--weight-normal" style="white-space: normal;">
|
|
40
|
+
<span class="text text--align-start text--color-default text--font-family-text text--font-style-normal text--responsive text--size-base text--truncate-direction-end text--weight-normal" style="white-space: normal;">
|
|
41
41
|
Est, odio dis scelerisque risus sagittis lorem rhoncus. Vivamus tristique habitant vitae cursus nisl. Sed adipiscing proin suspendisse aliquam maecenas faucibus mauris purus. Tortor ut habitant erat adipiscing nulla pretium, cursus tortor. Amet viverra et platea lacus, nec molestie tincidunt.
|
|
42
42
|
</span>
|
|
43
43
|
</swirl-text>
|