@getflip/swirl-components 0.35.0 → 0.37.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 +183 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-action-list_3.cjs.entry.js +7 -2
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-circle_3.cjs.entry.js +55 -0
- package/dist/cjs/swirl-inline-notification.cjs.entry.js +24 -0
- package/dist/cjs/swirl-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.css +3 -2
- package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.css +65 -0
- package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.js +92 -0
- package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.stories.js +22 -0
- package/dist/collection/components/swirl-separator/swirl-separator.css +0 -2
- package/dist/collection/components/swirl-separator/swirl-separator.js +35 -1
- package/dist/collection/components/swirl-table-cell/swirl-table-cell.css +0 -8
- package/dist/collection/components/swirl-table-column/swirl-table-column.css +0 -9
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-console-layout.js +1 -1
- package/dist/components/swirl-icon-check-circle.js +1 -35
- package/dist/{esm/swirl-icon-check-circle.entry.js → components/swirl-icon-check-circle2.js} +26 -8
- package/dist/components/swirl-icon-info.js +1 -35
- package/dist/{esm/swirl-icon-info.entry.js → components/swirl-icon-info2.js} +26 -8
- package/dist/components/swirl-icon-warning.js +1 -35
- package/dist/{esm/swirl-icon-warning.entry.js → components/swirl-icon-warning2.js} +26 -8
- package/dist/components/swirl-inline-notification.d.ts +11 -0
- package/dist/components/swirl-inline-notification.js +73 -0
- package/dist/components/swirl-separator2.js +10 -3
- package/dist/components/swirl-table-cell.js +1 -1
- package/dist/components/swirl-table-column.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-action-list_3.entry.js +7 -2
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-console-layout.entry.js +1 -1
- package/dist/esm/swirl-icon-check-circle_3.entry.js +49 -0
- package/dist/esm/swirl-inline-notification.entry.js +20 -0
- package/dist/esm/swirl-table-cell.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +1 -1
- package/dist/swirl-components/p-3ddaceac.entry.js +1 -0
- package/dist/swirl-components/{p-da4958ec.entry.js → p-428a2076.entry.js} +1 -1
- package/dist/swirl-components/p-73a4a99a.entry.js +1 -0
- package/dist/swirl-components/p-7d7f11e8.entry.js +1 -0
- package/dist/swirl-components/{p-c2167151.entry.js → p-94c348ae.entry.js} +1 -1
- package/dist/swirl-components/p-cbcc0e42.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-inline-notification/swirl-inline-notification.d.ts +8 -0
- package/dist/types/components/swirl-inline-notification/swirl-inline-notification.stories.d.ts +13 -0
- package/dist/types/components/swirl-separator/swirl-separator.d.ts +2 -0
- package/dist/types/components.d.ts +25 -0
- package/package.json +1 -1
- package/vscode-data.json +75 -1
- package/dist/cjs/swirl-icon-check-circle.cjs.entry.js +0 -23
- package/dist/cjs/swirl-icon-info.cjs.entry.js +0 -23
- package/dist/cjs/swirl-icon-warning.cjs.entry.js +0 -23
- package/dist/swirl-components/p-27566da1.entry.js +0 -1
- package/dist/swirl-components/p-50430bab.entry.js +0 -1
- package/dist/swirl-components/p-6d136f16.entry.js +0 -1
- package/dist/swirl-components/p-b490d8f3.entry.js +0 -1
- package/dist/swirl-components/p-fa18c6f8.entry.js +0 -1
|
@@ -21,12 +21,14 @@
|
|
|
21
21
|
"./components/swirl-form-group/swirl-form-group.js",
|
|
22
22
|
"./components/swirl-heading/swirl-heading.js",
|
|
23
23
|
"./components/swirl-inline-error/swirl-inline-error.js",
|
|
24
|
+
"./components/swirl-inline-notification/swirl-inline-notification.js",
|
|
24
25
|
"./components/swirl-link/swirl-link.js",
|
|
25
26
|
"./components/swirl-option-list-item/swirl-option-list-item.js",
|
|
26
27
|
"./components/swirl-pagination/swirl-pagination.js",
|
|
27
28
|
"./components/swirl-popover/swirl-popover.js",
|
|
28
29
|
"./components/swirl-progress-indicator/swirl-progress-indicator.js",
|
|
29
30
|
"./components/swirl-radio/swirl-radio.js",
|
|
31
|
+
"./components/swirl-separator/swirl-separator.js",
|
|
30
32
|
"./components/swirl-skeleton-box/swirl-skeleton-box.js",
|
|
31
33
|
"./components/swirl-skeleton-text/swirl-skeleton-text.js",
|
|
32
34
|
"./components/swirl-spinner/swirl-spinner.js",
|
|
@@ -172,7 +174,6 @@
|
|
|
172
174
|
"./components/swirl-resource-list-item/swirl-resource-list-item.js",
|
|
173
175
|
"./components/swirl-search/swirl-search.js",
|
|
174
176
|
"./components/swirl-select/swirl-select.js",
|
|
175
|
-
"./components/swirl-separator/swirl-separator.js",
|
|
176
177
|
"./components/swirl-shell-layout/swirl-shell-layout.js",
|
|
177
178
|
"./components/swirl-shell-navigation-item/swirl-shell-navigation-item.js",
|
|
178
179
|
"./components/swirl-tab/swirl-tab.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
@media (max-width: 767px) {
|
|
28
28
|
|
|
29
29
|
.console-layout--sidebar-active .console-layout__sidebar {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
transform: translate3d(0, 0, 0);
|
|
31
|
+
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.06)
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
|
|
163
163
|
.console-layout__content {
|
|
164
164
|
display: flex;
|
|
165
|
+
min-width: 0;
|
|
165
166
|
padding: var(--s-space-16);
|
|
166
167
|
background-color: var(--s-background-default);
|
|
167
168
|
flex-direction: column;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host * {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.inline-notification {
|
|
10
|
+
display: flex;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
padding: var(--s-space-12);
|
|
13
|
+
border-radius: var(--s-border-radius-sm);
|
|
14
|
+
gap: var(--s-space-8);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (min-width: 768px) {
|
|
18
|
+
|
|
19
|
+
.inline-notification {
|
|
20
|
+
padding: var(--s-space-16)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inline-notification--intent-info {
|
|
25
|
+
background-color: var(--s-surface-info-subdued);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.inline-notification--intent-info .inline-notification__icon {
|
|
29
|
+
color: var(--s-icon-info);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.inline-notification--intent-critical {
|
|
33
|
+
background-color: var(--s-surface-critical-subdued);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.inline-notification--intent-critical .inline-notification__icon {
|
|
37
|
+
color: var(--s-icon-critical);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.inline-notification--intent-warning {
|
|
41
|
+
background-color: var(--s-surface-warning-subdued);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.inline-notification--intent-warning .inline-notification__icon {
|
|
45
|
+
color: var(--s-icon-warning);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.inline-notification--intent-success {
|
|
49
|
+
background-color: var(--s-surface-success-subdued);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inline-notification--intent-success .inline-notification__icon {
|
|
53
|
+
color: var(--s-icon-success);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.inline-notification__icon {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.inline-notification__content {
|
|
61
|
+
position: relative;
|
|
62
|
+
top: 0.0625rem;
|
|
63
|
+
font-size: var(--s-font-size-sm);
|
|
64
|
+
line-height: var(--s-line-height-sm);
|
|
65
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
export class SwirlInlineNotification {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.heading = undefined;
|
|
6
|
+
this.importance = "status";
|
|
7
|
+
this.intent = "info";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const className = classnames("inline-notification", `inline-notification--intent-${this.intent}`);
|
|
11
|
+
return (h(Host, null, h("div", { "aria-describedby": "content", class: className, role: this.importance, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: "inline-notification__icon" }, this.intent === "critical" && (h("swirl-icon-error", { size: 20 })), this.intent === "success" && (h("swirl-icon-check-circle", { size: 20 })), this.intent === "warning" && (h("swirl-icon-warning", { size: 20 })), this.intent === "info" && (h("swirl-icon-info", { size: 20 }))), h("span", { class: "inline-notification__content", id: "content" }, h("swirl-text", { class: "inline-notification__heading", size: "sm", weight: "semibold" }, this.heading), h("slot", null)))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "swirl-inline-notification"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["swirl-inline-notification.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["swirl-inline-notification.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"heading": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": true,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "heading",
|
|
42
|
+
"reflect": false
|
|
43
|
+
},
|
|
44
|
+
"importance": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "SwirlInlineNotificationAriaRole",
|
|
49
|
+
"resolved": "\"alert\" | \"status\"",
|
|
50
|
+
"references": {
|
|
51
|
+
"SwirlInlineNotificationAriaRole": {
|
|
52
|
+
"location": "local",
|
|
53
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-inline-notification/swirl-inline-notification.tsx"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": true,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": ""
|
|
62
|
+
},
|
|
63
|
+
"attribute": "importance",
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"defaultValue": "\"status\""
|
|
66
|
+
},
|
|
67
|
+
"intent": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "SwirlInlineNotificationIntent",
|
|
72
|
+
"resolved": "\"critical\" | \"info\" | \"success\" | \"warning\"",
|
|
73
|
+
"references": {
|
|
74
|
+
"SwirlInlineNotificationIntent": {
|
|
75
|
+
"location": "local",
|
|
76
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-inline-notification/swirl-inline-notification.tsx"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": true,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"attribute": "intent",
|
|
87
|
+
"reflect": false,
|
|
88
|
+
"defaultValue": "\"info\""
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
package/dist/collection/components/swirl-inline-notification/swirl-inline-notification.stories.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./swirl-inline-notification.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
component: "swirl-inline-notification",
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
page: Docs,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
title: "Components/SwirlInlineNotification",
|
|
11
|
+
};
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
const element = generateStoryElement("swirl-inline-notification", args);
|
|
14
|
+
element.innerHTML = `
|
|
15
|
+
Lorem ipsum dolor sit amet. <swirl-link href="#" label="With a link."></swirl-link>
|
|
16
|
+
`;
|
|
17
|
+
return element;
|
|
18
|
+
};
|
|
19
|
+
export const SwirlInlineNotification = Template.bind({});
|
|
20
|
+
SwirlInlineNotification.args = {
|
|
21
|
+
heading: "Notification title",
|
|
22
|
+
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SwirlSeparator {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.spacing = "8";
|
|
5
|
+
}
|
|
3
6
|
render() {
|
|
4
|
-
|
|
7
|
+
const styles = {
|
|
8
|
+
paddingTop: `var(--s-space-${this.spacing})`,
|
|
9
|
+
paddingBottom: `var(--s-space-${this.spacing})`,
|
|
10
|
+
};
|
|
11
|
+
return (h(Host, { class: "separator", role: "separator", style: styles }, h("span", { class: "separator__line" })));
|
|
5
12
|
}
|
|
6
13
|
static get is() { return "swirl-separator"; }
|
|
7
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,4 +22,31 @@ export class SwirlSeparator {
|
|
|
15
22
|
"$": ["swirl-separator.css"]
|
|
16
23
|
};
|
|
17
24
|
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"spacing": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "SwirlSeparatorSpacing",
|
|
32
|
+
"resolved": "\"0\" | \"12\" | \"16\" | \"2\" | \"24\" | \"32\" | \"4\" | \"8\"",
|
|
33
|
+
"references": {
|
|
34
|
+
"SwirlSeparatorSpacing": {
|
|
35
|
+
"location": "local",
|
|
36
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-separator/swirl-separator.tsx"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": true,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "spacing",
|
|
47
|
+
"reflect": false,
|
|
48
|
+
"defaultValue": "\"8\""
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
18
52
|
}
|
|
@@ -24,14 +24,6 @@
|
|
|
24
24
|
box-shadow: var(--swirl-table-sticky-left-shadow);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:host(:first-child) {
|
|
28
|
-
border-left: var(--s-border-width-default) solid var(--s-border-default);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host(:last-child) {
|
|
32
|
-
border-right: var(--s-border-width-default) solid var(--s-border-default);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
27
|
:host * {
|
|
36
28
|
box-sizing: border-box;
|
|
37
29
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
flex-grow: 1;
|
|
10
10
|
flex-shrink: 1;
|
|
11
11
|
align-items: center;
|
|
12
|
-
border-top: var(--s-border-width-default) solid var(--s-border-default);
|
|
13
12
|
border-bottom: var(--s-border-width-default) solid var(--s-border-default);
|
|
14
13
|
color: var(--s-text-subdued);
|
|
15
14
|
background-color: var(--s-background-default);
|
|
@@ -23,14 +22,6 @@
|
|
|
23
22
|
gap: var(--s-space-8);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
:host(:first-child) {
|
|
27
|
-
border-left: var(--s-border-width-default) solid var(--s-border-default);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host(:last-child) {
|
|
31
|
-
border-right: var(--s-border-width-default) solid var(--s-border-default);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
25
|
:host(.table-column--has-shadow-right) {
|
|
35
26
|
box-shadow: var(--swirl-table-sticky-right-shadow);
|
|
36
27
|
}
|