@justeattakeaway/pie-toast 0.12.13 → 0.12.15
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/custom-elements.json +7 -7
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/custom-elements.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": {
|
|
61
61
|
"text": "DefaultProps"
|
|
62
62
|
},
|
|
63
|
-
"default": "{\n message: '',\n isOpen: true,\n variant: 'neutral',\n isStrong: false,\n isDismissible: false,\n isMultiline: false,\n duration: 5000,\n}"
|
|
63
|
+
"default": "{\r\n message: '',\r\n isOpen: true,\r\n variant: 'neutral',\r\n isStrong: false,\r\n isDismissible: false,\r\n isMultiline: false,\r\n duration: 5000,\r\n}"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
"exports": [
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"kind": "method",
|
|
219
219
|
"name": "abortAndCleanEventListeners",
|
|
220
220
|
"privacy": "private",
|
|
221
|
-
"description": "If the _abortController is set, it aborts all event\nlisteners in this controller and the controller turns into null."
|
|
221
|
+
"description": "If the _abortController is set, it aborts all event\r\nlisteners in this controller and the controller turns into null."
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
"kind": "method",
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"kind": "method",
|
|
261
261
|
"name": "createAutoDismissEventListeners",
|
|
262
262
|
"privacy": "private",
|
|
263
|
-
"description": "It creates all event listeners to handle the auto-dismiss capability\nas well the controller responsible to remove the events when needed."
|
|
263
|
+
"description": "It creates all event listeners to handle the auto-dismiss capability\r\nas well the controller responsible to remove the events when needed."
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
"kind": "method",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"kind": "method",
|
|
293
293
|
"name": "renderFooter",
|
|
294
294
|
"privacy": "private",
|
|
295
|
-
"description": "Template for the footer area.\nIt should display only when isMultiline is true as well if has action button.\nCalled within the main render function."
|
|
295
|
+
"description": "Template for the footer area.\r\nIt should display only when isMultiline is true as well if has action button.\r\nCalled within the main render function."
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"kind": "method",
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
"text": "TemplateResult"
|
|
304
304
|
}
|
|
305
305
|
},
|
|
306
|
-
"description": "Template for the close button element. Called within the\nmain render function."
|
|
306
|
+
"description": "Template for the close button element. Called within the\r\nmain render function."
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
"kind": "method",
|
|
@@ -323,13 +323,13 @@
|
|
|
323
323
|
"description": "The message to be displayed."
|
|
324
324
|
}
|
|
325
325
|
],
|
|
326
|
-
"description": "Template for the toast message. Called within the\nmain render function."
|
|
326
|
+
"description": "Template for the toast message. Called within the\r\nmain render function."
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"kind": "method",
|
|
330
330
|
"name": "closeToastComponent",
|
|
331
331
|
"privacy": "private",
|
|
332
|
-
"description": "Util method responsible to close the component.\nIt handles the action when user clicks in the close button and triggers an event when is executed."
|
|
332
|
+
"description": "Util method responsible to close the component.\r\nIt handles the action when user clicks in the close button and triggers an event when is executed."
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
"kind": "method",
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const g = class g extends $ {
|
|
|
14
14
|
this.getAttribute("v") || this.setAttribute("v", g.v);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
g.v = "0.12.
|
|
17
|
+
g.v = "0.12.15";
|
|
18
18
|
let m = g;
|
|
19
19
|
const C = "*,*:after,*:before{box-sizing:inherit}:host{display:block}.c-toast{--toast-border-radius: var(--dt-radius-rounded-b);--toast-background-color: var(--dt-color-container-inverse);--toast-font-color: var(--dt-color-content-inverse);--toast-font-size: calc(var(--dt-font-body-s-size) * 1px);--toast-line-height: calc(var(--dt-font-body-s-line-height) * 1px);--toast-icon-fill: var(--dt-color-content-default);display:flex;flex-direction:column;justify-content:center;min-height:48px;max-height:122px;min-width:300px;max-width:420px;padding:var(--dt-spacing-b) var(--dt-spacing-c) var(--dt-spacing-b) var(--dt-spacing-d);border-radius:var(--toast-border-radius);background-color:var(--toast-background-color);box-shadow:var(--dt-elevation-below-20);color:var(--toast-font-color);font-size:var(--toast-font-size);line-height:var(--toast-line-height)}.c-toast--info{--toast-icon-fill: var(--dt-color-support-info-inverse)}.c-toast--info.c-toast--strong{--toast-background-color: var(--dt-color-support-info);--toast-icon-fill: var(--dt-color-content-inverse)}.c-toast--warning{--toast-icon-fill: var(--dt-color-support-warning-inverse)}.c-toast--warning.c-toast--strong{--toast-background-color: var(--dt-color-support-warning);--toast-icon-fill: var(--dt-color-content-dark);--toast-font-color: var(--dt-color-content-dark)}.c-toast--success{--toast-icon-fill: var(--dt-color-support-positive-inverse)}.c-toast--success.c-toast--strong{--toast-background-color: var(--dt-color-support-positive);--toast-icon-fill: var(--dt-color-content-inverse)}.c-toast--error{--toast-icon-fill: var(--dt-color-support-error-inverse)}.c-toast--error.c-toast--strong{--toast-background-color: var(--dt-color-support-error);--toast-icon-fill: var(--dt-color-content-light);--toast-font-color: var(--dt-color-content-light)}.c-toast-contentArea{display:flex;gap:var(--dt-spacing-b);justify-content:space-between}.c-toast-messageArea{display:flex;align-items:center;gap:var(--dt-spacing-b);padding:6px var(--dt-spacing-a) 6px 0;overflow:hidden}.c-toast-messageArea span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.c-toast-actionsArea{display:flex;gap:var(--dt-spacing-b);flex-shrink:0}.c-toast--multiline .c-toast-contentArea{align-items:flex-start;gap:0}.c-toast--multiline .c-toast-messageArea{align-items:flex-start;padding-block-end:var(--dt-spacing-b)}.c-toast--multiline .c-toast-messageArea span{max-height:60px;white-space:inherit;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.c-toast-footer{display:flex;justify-content:flex-end}.c-toast-icon{color:var(--toast-icon-fill)}", _ = ["neutral", "info", "warning", "success", "error"], s = "pie-toast", i = "c-toast", O = `${s}-close`, E = `${s}-open`, T = `${s}-leading-action-click`, p = {
|
|
20
20
|
message: "",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-toast",
|
|
3
3
|
"description": "PIE Design System Toast built using Web Components",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.15",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
47
47
|
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
48
|
-
"@justeattakeaway/pie-css": "0.
|
|
48
|
+
"@justeattakeaway/pie-css": "0.26.0",
|
|
49
49
|
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
50
50
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@justeattakeaway/pie-button": "1.10.
|
|
54
|
-
"@justeattakeaway/pie-icon-button": "2.3.
|
|
55
|
-
"@justeattakeaway/pie-icons-webc": "1.
|
|
56
|
-
"@justeattakeaway/pie-webc-core": "
|
|
53
|
+
"@justeattakeaway/pie-button": "1.10.1",
|
|
54
|
+
"@justeattakeaway/pie-icon-button": "2.3.5",
|
|
55
|
+
"@justeattakeaway/pie-icons-webc": "1.18.1",
|
|
56
|
+
"@justeattakeaway/pie-webc-core": "6.0.0"
|
|
57
57
|
},
|
|
58
58
|
"volta": {
|
|
59
59
|
"extends": "../../../package.json"
|