@rijkshuisstijl-community/web-components 1.0.1-alpha.5 → 1.0.1-alpha.7
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 +10 -0
- package/dist/index.mjs +23 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccordionProviderProps } from '@rijkshuisstijl-community/components-react';
|
|
2
2
|
import { ActionGroupProps } from '@rijkshuisstijl-community/components-react';
|
|
3
|
+
import { AlertProps } from '@rijkshuisstijl-community/components-react';
|
|
3
4
|
import { default as default_2 } from 'react-dom/client';
|
|
4
5
|
import { HeroProps } from '@rijkshuisstijl-community/components-react';
|
|
5
6
|
|
|
@@ -21,6 +22,15 @@ export declare class ActionGroupWebComponent extends BaseWebComponent {
|
|
|
21
22
|
|
|
22
23
|
export declare type ActionGroupWebComponentAttributes = ActionGroupProps;
|
|
23
24
|
|
|
25
|
+
export declare class AlertWebComponent extends BaseWebComponent {
|
|
26
|
+
static tagName: string;
|
|
27
|
+
static observedAttributes: string[];
|
|
28
|
+
constructor();
|
|
29
|
+
render(): void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare type AlertWebComponentAttributes = AlertProps;
|
|
33
|
+
|
|
24
34
|
declare abstract class BaseWebComponent extends HTMLElement {
|
|
25
35
|
protected root: default_2.Root;
|
|
26
36
|
static get tagName(): string;
|
package/dist/index.mjs
CHANGED
|
@@ -49391,6 +49391,28 @@ class ActionGroupWebComponent extends BaseWebComponent {
|
|
|
49391
49391
|
}
|
|
49392
49392
|
}
|
|
49393
49393
|
|
|
49394
|
+
class AlertWebComponent extends BaseWebComponent {
|
|
49395
|
+
static tagName = "rhc-alert";
|
|
49396
|
+
static observedAttributes = ["type", "heading", "headinglevel", "messagetext"];
|
|
49397
|
+
constructor() {
|
|
49398
|
+
super(stylesheet);
|
|
49399
|
+
}
|
|
49400
|
+
render() {
|
|
49401
|
+
this.root.render(
|
|
49402
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49403
|
+
Alert,
|
|
49404
|
+
{
|
|
49405
|
+
heading: this.getAttribute("heading") ?? "default heading",
|
|
49406
|
+
type: this.getAttribute("type") ?? "info",
|
|
49407
|
+
headingLevel: this.getAttribute("headingLevel") && Number(this.getAttribute("headingLevel")),
|
|
49408
|
+
textContent: this.getAttribute("messageText") ?? "This is a default alert message.",
|
|
49409
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("slot", {})
|
|
49410
|
+
}
|
|
49411
|
+
)
|
|
49412
|
+
);
|
|
49413
|
+
}
|
|
49414
|
+
}
|
|
49415
|
+
|
|
49394
49416
|
class HeroWebComponent extends BaseWebComponent {
|
|
49395
49417
|
static tagName = "rhc-hero";
|
|
49396
49418
|
static observedAttributes = [
|
|
@@ -49426,5 +49448,5 @@ class HeroWebComponent extends BaseWebComponent {
|
|
|
49426
49448
|
}
|
|
49427
49449
|
}
|
|
49428
49450
|
|
|
49429
|
-
export { AccordionWebComponent, ActionGroupWebComponent, HeroWebComponent };
|
|
49451
|
+
export { AccordionWebComponent, ActionGroupWebComponent, AlertWebComponent, HeroWebComponent };
|
|
49430
49452
|
//# sourceMappingURL=index.mjs.map
|