@aurodesignsystem-dev/auro-toast 0.0.0-pr121.2 → 0.0.0-pr121.21
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/README.md +7 -3
- package/demo/api.js +4 -0
- package/demo/api.md +243 -37
- package/demo/api.min.js +91 -6
- package/demo/basic.min.js +294 -38
- package/demo/index.md +10 -2
- package/dist/{auro-toaster-Bll35Bgq.js → auro-toaster-C16e0fNp.js} +39 -37
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -88,10 +88,18 @@ export type AuroToastProps = {
|
|
|
88
88
|
"noIcon"?: AuroToast['noIcon'];
|
|
89
89
|
/** Sets the time in milliseconds until the toast hides. */
|
|
90
90
|
"timeTilHide"?: AuroToast['timeTilHide'];
|
|
91
|
+
/** The id of the element that triggered the toast.
|
|
92
|
+
When the toast is manually closed, focus will return to this element.
|
|
93
|
+
Takes precedence over the triggerElement property if both are set. */
|
|
94
|
+
"trigger"?: AuroToast['trigger'];
|
|
91
95
|
/** Component will render visually based on which variant value is set. */
|
|
92
96
|
"variant"?: AuroToast['variant'];
|
|
93
97
|
/** Sets state of toast to visible */
|
|
94
98
|
"visible"?: AuroToast['visible'];
|
|
99
|
+
/** A direct reference to the element that triggered the toast.
|
|
100
|
+
When the toast is manually closed, focus will return to this element.
|
|
101
|
+
Use the trigger attribute instead if you prefer a declarative approach. */
|
|
102
|
+
"triggerElement"?: AuroToast['triggerElement'];
|
|
95
103
|
|
|
96
104
|
/** Notifies that the toast has been closed */
|
|
97
105
|
"ononToastClose"?: (e: CustomEvent<object>) => void;
|
|
@@ -111,8 +119,14 @@ export type AuroToastProps = {
|
|
|
111
119
|
* - `disableAutoHide`: Prevents the toast from auto-hiding on the default time.
|
|
112
120
|
* - `noIcon`: Removes icon from the toast UI.
|
|
113
121
|
* - `timeTilHide`: Sets the time in milliseconds until the toast hides.
|
|
122
|
+
* - `trigger`: The id of the element that triggered the toast.
|
|
123
|
+
* When the toast is manually closed, focus will return to this element.
|
|
124
|
+
* Takes precedence over the triggerElement property if both are set.
|
|
114
125
|
* - `variant`: Component will render visually based on which variant value is set.
|
|
115
126
|
* - `visible`: Sets state of toast to visible
|
|
127
|
+
* - `triggerElement`: A direct reference to the element that triggered the toast.
|
|
128
|
+
* When the toast is manually closed, focus will return to this element.
|
|
129
|
+
* Use the trigger attribute instead if you prefer a declarative approach. (property only)
|
|
116
130
|
*
|
|
117
131
|
* ## Events
|
|
118
132
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AuroToast,a as AuroToaster}from"./auro-toaster-
|
|
1
|
+
export{A as AuroToast,a as AuroToaster}from"./auro-toaster-C16e0fNp.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as i,a as t}from"./auro-toaster-
|
|
1
|
+
import{A as i,a as t}from"./auro-toaster-C16e0fNp.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register(),t.register();
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-toast",
|
|
10
|
-
"version": "0.0.0-pr121.
|
|
10
|
+
"version": "0.0.0-pr121.21",
|
|
11
11
|
"description": "auro-toast HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"@aurodesignsystem/auro-library": "^5.5.4",
|
|
33
33
|
"@aurodesignsystem/design-tokens": "^8.7.0",
|
|
34
34
|
"@aurodesignsystem/webcorestylesheets": "^10.1.4",
|
|
35
|
-
"husky": "^9.1.7"
|
|
35
|
+
"husky": "^9.1.7",
|
|
36
|
+
"sinon": "^21.1.2"
|
|
36
37
|
},
|
|
37
38
|
"browserslist": [
|
|
38
39
|
"last 2 Chrome versions",
|