@aurodesignsystem-dev/auro-alert 0.0.0-pr121.0 → 0.0.0-pr123.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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  import type { AuroAlert } from "src/auro-alert.js";
3
2
 
4
3
  /**
@@ -21,13 +20,14 @@ import type { AuroAlert } from "src/auro-alert.js";
21
20
  */
22
21
  export type ScopedElements<
23
22
  Prefix extends string = "",
24
- Suffix extends string = ""
23
+ Suffix extends string = "",
25
24
  > = {
26
- [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
25
+ [
26
+ Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`
27
+ ]: CustomElements[Key];
27
28
  };
28
29
 
29
30
  type BaseProps<T extends HTMLElement> = {
30
-
31
31
  /** Content added between the opening and closing tags of the element */
32
32
  children?: any;
33
33
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -50,6 +50,8 @@ type BaseProps<T extends HTMLElement> = {
50
50
  key?: string | number;
51
51
  /** Specifies the language of the element. */
52
52
  lang?: string;
53
+ /** Defines the element's semantic role for accessibility APIs. */
54
+ role?: string;
53
55
  /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
54
56
  part?: string;
55
57
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -70,127 +72,187 @@ type BaseProps<T extends HTMLElement> = {
70
72
  popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
71
73
  /** Specifies the action to be performed on a popover element being controlled by a control element. */
72
74
  popovertargetaction?: "show" | "hide" | "toggle";
73
-
74
- } ;
75
-
76
- type BaseEvents = {
77
-
78
-
79
75
  };
80
76
 
81
-
77
+ type BaseEvents = {};
82
78
 
83
79
  export type AuroAlertProps = {
84
80
  /** If present, the component will be hidden both visually and from screen readers */
85
- "hidden"?: AuroAlert['hidden'];
81
+ hidden?: AuroAlert["hidden"];
82
+ /** If present, the component will be hidden from screen readers, but seen visually */
83
+ hiddenaudible?: AuroAlert["hiddenAudible"];
86
84
  /** If present, the component will be hidden from screen readers, but seen visually */
87
- "hiddenAudible"?: AuroAlert['hiddenAudible'];
85
+ hiddenAudible?: AuroAlert["hiddenAudible"];
88
86
  /** If present, the component will be hidden visually, but still read by screen readers */
89
- "hiddenVisually"?: AuroAlert['hiddenVisually'];
90
- /** */
91
- "iconTag"?: AuroAlert['iconTag'];
87
+ hiddenvisually?: AuroAlert["hiddenVisually"];
88
+ /** If present, the component will be hidden visually, but still read by screen readers */
89
+ hiddenVisually?: AuroAlert["hiddenVisually"];
90
+ /** Removes icon from alert UI when `type` attribute is set */
91
+ noicon?: AuroAlert["noIcon"];
92
92
  /** Removes icon from alert UI when `type` attribute is set */
93
- "noIcon"?: AuroAlert['noIcon'];
94
- /** */
95
- "role"?: AuroAlert['role'];
93
+ noIcon?: AuroAlert["noIcon"];
96
94
  /** Component will render visually based on which type value is set */
97
- "type"?: AuroAlert['type'];
98
-
95
+ type?: AuroAlert["type"];
96
+ };
99
97
 
100
- }
98
+ export type AuroAlertSolidJsProps = {
99
+ /** If present, the component will be hidden both visually and from screen readers */
100
+ "prop:hidden"?: AuroAlert["hidden"];
101
+ /** If present, the component will be hidden from screen readers, but seen visually */
102
+ "bool:hiddenaudible"?: AuroAlert["hiddenAudible"];
103
+ /** If present, the component will be hidden from screen readers, but seen visually */
104
+ "prop:hiddenAudible"?: AuroAlert["hiddenAudible"];
105
+ /** If present, the component will be hidden visually, but still read by screen readers */
106
+ "bool:hiddenvisually"?: AuroAlert["hiddenVisually"];
107
+ /** If present, the component will be hidden visually, but still read by screen readers */
108
+ "prop:hiddenVisually"?: AuroAlert["hiddenVisually"];
109
+ /** Removes icon from alert UI when `type` attribute is set */
110
+ "bool:noicon"?: AuroAlert["noIcon"];
111
+ /** Removes icon from alert UI when `type` attribute is set */
112
+ "prop:noIcon"?: AuroAlert["noIcon"];
113
+ /** Component will render visually based on which type value is set */
114
+ "prop:type"?: AuroAlert["type"];
101
115
 
102
- export type CustomElements = {
116
+ /** Set the innerHTML of the element */
117
+ innerHTML?: string;
118
+ /** Set the textContent of the element */
119
+ textContent?: string | number;
120
+ };
103
121
 
122
+ export type CustomElements = {
123
+ /**
124
+ * The `auro-alert` element is used to provide contextual feedback messages for typical user actions.
125
+ *
126
+ * ## Attributes & Properties
127
+ *
128
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
129
+ *
130
+ * - `hidden`: If present, the component will be hidden both visually and from screen readers
131
+ * - `hiddenaudible`/`hiddenAudible`: If present, the component will be hidden from screen readers, but seen visually
132
+ * - `hiddenvisually`/`hiddenVisually`: If present, the component will be hidden visually, but still read by screen readers
133
+ * - `noicon`/`noIcon`: Removes icon from alert UI when `type` attribute is set
134
+ * - `type`: Component will render visually based on which type value is set
135
+ *
136
+ * ## Slots
137
+ *
138
+ * Areas where markup can be added to the component.
139
+ *
140
+ * - `(default)`: Provide text for the alert. If using multiple lines, separate each line with `<p>` tags.
141
+ *
142
+ * ## Methods
143
+ *
144
+ * Methods that can be called to access component functionality.
145
+ *
146
+ * - `register(name?: string = "auro-alert") => void`: This will register this element with the browser.
147
+ *
148
+ * ## CSS Parts
149
+ *
150
+ * Custom selectors for styling elements within the component.
151
+ *
152
+ * - `alert`: Use for customizing the style of the alert container
153
+ * - `alert-content`: Use for customizing the style of the alert content
154
+ */
155
+ "auro-alert": Partial<AuroAlertProps & BaseProps<AuroAlert> & BaseEvents>;
156
+ };
104
157
 
158
+ export type CustomElementsSolidJs = {
105
159
  /**
106
- * The `auro-alert` element is used to provide contextual feedback messages for typical user actions.
107
- *
108
- * ## Attributes & Properties
109
- *
110
- * Component attributes and properties that can be applied to the element or by using JavaScript.
111
- *
112
- * - `hidden`: If present, the component will be hidden both visually and from screen readers
113
- * - `hiddenAudible`: If present, the component will be hidden from screen readers, but seen visually
114
- * - `hiddenVisually`: If present, the component will be hidden visually, but still read by screen readers
115
- * - `iconTag`: undefined
116
- * - `noIcon`: Removes icon from alert UI when `type` attribute is set
117
- * - `role`: undefined
118
- * - `type`: Component will render visually based on which type value is set
119
- *
120
- * ## Slots
121
- *
122
- * Areas where markup can be added to the component.
123
- *
124
- * - `(default)`: Provide text for the alert. If using multiple lines, separate each line with `<p>` tags.
125
- *
126
- * ## Methods
127
- *
128
- * Methods that can be called to access component functionality.
129
- *
130
- * - `register(name?: string = "auro-alert") => void`: This will register this element with the browser.
131
- *
132
- * ## CSS Parts
133
- *
134
- * Custom selectors for styling elements within the component.
135
- *
136
- * - `alert`: Use for customizing the style of the alert container
137
- * - `alert-content`: Use for customizing the style of the alert content
138
- */
139
- "auro-alert": Partial<AuroAlertProps & BaseProps<AuroAlert> & BaseEvents>;
140
- }
160
+ * The `auro-alert` element is used to provide contextual feedback messages for typical user actions.
161
+ *
162
+ * ## Attributes & Properties
163
+ *
164
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
165
+ *
166
+ * - `hidden`: If present, the component will be hidden both visually and from screen readers
167
+ * - `hiddenaudible`/`hiddenAudible`: If present, the component will be hidden from screen readers, but seen visually
168
+ * - `hiddenvisually`/`hiddenVisually`: If present, the component will be hidden visually, but still read by screen readers
169
+ * - `noicon`/`noIcon`: Removes icon from alert UI when `type` attribute is set
170
+ * - `type`: Component will render visually based on which type value is set
171
+ *
172
+ * ## Slots
173
+ *
174
+ * Areas where markup can be added to the component.
175
+ *
176
+ * - `(default)`: Provide text for the alert. If using multiple lines, separate each line with `<p>` tags.
177
+ *
178
+ * ## Methods
179
+ *
180
+ * Methods that can be called to access component functionality.
181
+ *
182
+ * - `register(name?: string = "auro-alert") => void`: This will register this element with the browser.
183
+ *
184
+ * ## CSS Parts
185
+ *
186
+ * Custom selectors for styling elements within the component.
187
+ *
188
+ * - `alert`: Use for customizing the style of the alert container
189
+ * - `alert-content`: Use for customizing the style of the alert content
190
+ */
191
+ "auro-alert": Partial<
192
+ AuroAlertProps & AuroAlertSolidJsProps & BaseProps<AuroAlert> & BaseEvents
193
+ >;
194
+ };
141
195
 
142
- export type CustomCssProperties = {
196
+ export type CustomCssProperties = {};
143
197
 
198
+ declare module "react" {
199
+ namespace JSX {
200
+ interface IntrinsicElements extends CustomElements {}
201
+ }
144
202
  }
145
203
 
204
+ declare module "react/jsx-runtime" {
205
+ namespace JSX {
206
+ interface IntrinsicElements extends CustomElements {}
207
+ }
208
+ }
146
209
 
147
- declare module 'react' {
210
+ declare module "react/jsx-dev-runtime" {
148
211
  namespace JSX {
149
212
  interface IntrinsicElements extends CustomElements {}
150
213
  }
151
-
152
214
  }
153
215
 
154
- declare module 'preact' {
216
+ declare module "preact" {
155
217
  namespace JSX {
156
218
  interface IntrinsicElements extends CustomElements {}
157
219
  }
158
-
159
220
  }
160
221
 
161
- declare module '@builder.io/qwik' {
222
+ declare module "@builder.io/qwik" {
162
223
  namespace JSX {
163
224
  interface IntrinsicElements extends CustomElements {}
164
225
  }
165
-
166
226
  }
167
227
 
168
- declare module '@stencil/core' {
228
+ declare module "@stencil/core" {
169
229
  namespace JSX {
170
230
  interface IntrinsicElements extends CustomElements {}
171
231
  }
172
-
173
232
  }
174
233
 
175
- declare module 'hono/jsx' {
234
+ declare module "hono/jsx" {
176
235
  namespace JSX {
177
236
  interface IntrinsicElements extends CustomElements {}
178
237
  }
179
-
180
238
  }
181
239
 
182
- declare module 'react-native' {
240
+ declare module "react-native" {
183
241
  namespace JSX {
184
242
  interface IntrinsicElements extends CustomElements {}
185
243
  }
186
-
244
+ }
245
+
246
+ declare module "solid-js" {
247
+ namespace JSX {
248
+ interface IntrinsicElements extends CustomElementsSolidJs {}
249
+ }
187
250
  }
188
251
 
189
252
  declare global {
190
253
  namespace JSX {
191
254
  interface IntrinsicElements extends CustomElements {}
192
255
  }
193
-
194
256
  }
195
257
  declare global {
196
258
  namespace svelteHTML {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{A as AuroAlert}from"./auro-alert-C5hNY0oc.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
1
+ export{A as AuroAlert}from"./auro-alert-Cxqj9ihp.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
@@ -1 +1 @@
1
- import{A as i}from"./auro-alert-C5hNY0oc.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register();
1
+ import{A as i}from"./auro-alert-Cxqj9ihp.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register();
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "================================================================================"
9
9
  ],
10
10
  "name": "@aurodesignsystem-dev/auro-alert",
11
- "version": "0.0.0-pr121.0",
11
+ "version": "0.0.0-pr123.0",
12
12
  "description": "auro-alert HTML custom element",
13
13
  "repository": {
14
14
  "type": "git",
@@ -22,15 +22,15 @@
22
22
  "node": ">=20"
23
23
  },
24
24
  "dependencies": {
25
- "lit": "^3.3.2"
25
+ "lit": "^3.3.3"
26
26
  },
27
27
  "devDependencies": {
28
- "@aurodesignsystem/auro-cli": "^3.5.1",
28
+ "@aurodesignsystem/auro-cli": "^5.0.0",
29
29
  "@aurodesignsystem/auro-config": "^1.3.1",
30
- "@aurodesignsystem/auro-icon": "^9.1.1",
31
- "@aurodesignsystem/auro-library": "^5.5.4",
32
- "@aurodesignsystem/design-tokens": "^8.12.1",
33
- "@aurodesignsystem/webcorestylesheets": "^10.1.4",
30
+ "@aurodesignsystem/auro-icon": "^9.2.0",
31
+ "@aurodesignsystem/auro-library": "^5.14.4",
32
+ "@aurodesignsystem/design-tokens": "^9.4.1",
33
+ "@aurodesignsystem/webcorestylesheets": "^12.0.1",
34
34
  "husky": "^9.1.7"
35
35
  },
36
36
  "browserslist": [
@@ -51,7 +51,8 @@
51
51
  "web components"
52
52
  ],
53
53
  "scripts": {
54
- "build": "auro build",
54
+ "build": "auro build && npm run cem:check",
55
+ "cem:check": "auro cem-check --strict",
55
56
  "build:version": "node ./scripts/version.mjs",
56
57
  "dev": "auro dev -w -s",
57
58
  "dev:open": "auro dev -w -s --open",
@@ -82,6 +83,7 @@
82
83
  "files": [
83
84
  "dist/**/*",
84
85
  "demo/**/*",
86
+ "custom-elements.json",
85
87
  "CHANGELOG.md",
86
88
  "README.md",
87
89
  "LICENSE",