@rijkshuisstijl-community/web-components 1.0.1-alpha.4 → 1.0.1-alpha.6
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 +20 -0
- package/dist/index.mjs +37 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AccordionProviderProps } from '@rijkshuisstijl-community/components-react';
|
|
2
|
+
import { ActionGroupProps } from '@rijkshuisstijl-community/components-react';
|
|
3
|
+
import { AlertProps } from '@rijkshuisstijl-community/components-react';
|
|
2
4
|
import { default as default_2 } from 'react-dom/client';
|
|
3
5
|
import { HeroProps } from '@rijkshuisstijl-community/components-react';
|
|
4
6
|
|
|
@@ -11,6 +13,24 @@ export declare class AccordionWebComponent extends BaseWebComponent {
|
|
|
11
13
|
|
|
12
14
|
export declare type AccordionWebComponentAttributes = AccordionProviderProps;
|
|
13
15
|
|
|
16
|
+
export declare class ActionGroupWebComponent extends BaseWebComponent {
|
|
17
|
+
static tagName: string;
|
|
18
|
+
static observedAttributes: string[];
|
|
19
|
+
constructor();
|
|
20
|
+
render(): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare type ActionGroupWebComponentAttributes = ActionGroupProps;
|
|
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
|
+
|
|
14
34
|
declare abstract class BaseWebComponent extends HTMLElement {
|
|
15
35
|
protected root: default_2.Root;
|
|
16
36
|
static get tagName(): string;
|
package/dist/index.mjs
CHANGED
|
@@ -49378,6 +49378,41 @@ class AccordionWebComponent extends BaseWebComponent {
|
|
|
49378
49378
|
}
|
|
49379
49379
|
}
|
|
49380
49380
|
|
|
49381
|
+
class ActionGroupWebComponent extends BaseWebComponent {
|
|
49382
|
+
static tagName = "rhc-action-group";
|
|
49383
|
+
static observedAttributes = ["direction"];
|
|
49384
|
+
constructor() {
|
|
49385
|
+
super(stylesheet);
|
|
49386
|
+
}
|
|
49387
|
+
render() {
|
|
49388
|
+
this.root.render(
|
|
49389
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ButtonGroup, { direction: this.getAttribute("direction") ?? void 0, children: /* @__PURE__ */ jsxRuntimeExports.jsx("slot", {}) })
|
|
49390
|
+
);
|
|
49391
|
+
}
|
|
49392
|
+
}
|
|
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
|
+
|
|
49381
49416
|
class HeroWebComponent extends BaseWebComponent {
|
|
49382
49417
|
static tagName = "rhc-hero";
|
|
49383
49418
|
static observedAttributes = [
|
|
@@ -49398,7 +49433,7 @@ class HeroWebComponent extends BaseWebComponent {
|
|
|
49398
49433
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
49399
49434
|
Hero,
|
|
49400
49435
|
{
|
|
49401
|
-
aspectRatio: this.getAttribute("aspectRatio"),
|
|
49436
|
+
aspectRatio: this.getAttribute("aspectRatio") ?? void 0,
|
|
49402
49437
|
borderRadiusCorner: this.getAttribute("borderRadiusCorner"),
|
|
49403
49438
|
heading: this.getAttribute("heading") ?? "default heading",
|
|
49404
49439
|
imageAlt: this.getAttribute("imageAlt") ?? "image alt",
|
|
@@ -49413,5 +49448,5 @@ class HeroWebComponent extends BaseWebComponent {
|
|
|
49413
49448
|
}
|
|
49414
49449
|
}
|
|
49415
49450
|
|
|
49416
|
-
export { AccordionWebComponent, HeroWebComponent };
|
|
49451
|
+
export { AccordionWebComponent, ActionGroupWebComponent, AlertWebComponent, HeroWebComponent };
|
|
49417
49452
|
//# sourceMappingURL=index.mjs.map
|