@getflip/swirl-components 0.42.0 → 0.43.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 +1 -1
- package/dist/cjs/swirl-console-layout.cjs.entry.js +2 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +22 -0
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.css +9 -0
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.js +1 -1
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.stories.js +1 -0
- package/dist/components/assets/pdfjs/pdf.worker.min.js +22 -0
- package/dist/components/swirl-console-layout.js +2 -2
- package/dist/esm/swirl-console-layout.entry.js +2 -2
- package/dist/swirl-components/{p-86ba09a4.entry.js → p-90ef5b51.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
|
@@ -217,6 +217,15 @@
|
|
|
217
217
|
flex-shrink: 0;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
.console-layout__heading-container {
|
|
221
|
+
flex-grow: 1;
|
|
222
|
+
}
|
|
223
|
+
|
|
220
224
|
.console-layout__subheading {
|
|
221
225
|
margin-top: var(--s-space-8);
|
|
222
226
|
}
|
|
227
|
+
|
|
228
|
+
.console-layout__content-header-tools {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-shrink: 0;
|
|
231
|
+
}
|
|
@@ -111,7 +111,7 @@ export class SwirlConsoleLayout {
|
|
|
111
111
|
? "<swirl-icon-close></swirl-icon-close>"
|
|
112
112
|
: "<swirl-icon-menu></swirl-icon-menu>", label: this.sidebarActive
|
|
113
113
|
? this.hideNavigationButtonLabel
|
|
114
|
-
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("swirl-heading", { as: "h1", class: "console-layout__app-name", headingId: "app-name", level: 4, text: this.appName }), this.showHelpButton && (h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, h("header", { class: "console-layout__content-header" }, this.showBackButton && (h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), h("div",
|
|
114
|
+
: this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("swirl-heading", { as: "h1", class: "console-layout__app-name", headingId: "app-name", level: 4, text: this.appName }), this.showHelpButton && (h("swirl-button", { class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { "aria-labelledby": "heading", class: "console-layout__content" }, h("header", { class: "console-layout__content-header" }, this.showBackButton && (h("swirl-button", { class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), h("div", { class: "console-layout__heading-container" }, h("swirl-heading", { as: "h2", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (h("swirl-text", { class: "console-layout__subheading", color: "subdued" }, this.subheading))), h("div", { class: "console-layout__content-header-tools" }, h("slot", { name: "content-header-tools" }))), h("div", { class: "console-layout__integration" }, h("slot", { name: "content" }))), h("div", { class: "console-layout__overlays" }, h("slot", { name: "overlays" }))))));
|
|
115
115
|
}
|
|
116
116
|
static get is() { return "swirl-console-layout"; }
|
|
117
117
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,6 +16,7 @@ const Template = (args) => {
|
|
|
16
16
|
<swirl-box padding="24" slot="navigation"><a href="#">Test</a></swirl-box>
|
|
17
17
|
<div slot="user">User</div>
|
|
18
18
|
<swirl-box center-block center-inline cover slot="content">Content</swirl-box>
|
|
19
|
+
<swirl-button intent="primary" label="Button" slot="content-header-tools" variant="flat"></swirl-button>
|
|
19
20
|
`;
|
|
20
21
|
return element;
|
|
21
22
|
};
|