@rijkshuisstijl-community/web-components 1.0.1-alpha.4 → 1.0.1-alpha.5

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,5 @@
1
1
  import { AccordionProviderProps } from '@rijkshuisstijl-community/components-react';
2
+ import { ActionGroupProps } from '@rijkshuisstijl-community/components-react';
2
3
  import { default as default_2 } from 'react-dom/client';
3
4
  import { HeroProps } from '@rijkshuisstijl-community/components-react';
4
5
 
@@ -11,6 +12,15 @@ export declare class AccordionWebComponent extends BaseWebComponent {
11
12
 
12
13
  export declare type AccordionWebComponentAttributes = AccordionProviderProps;
13
14
 
15
+ export declare class ActionGroupWebComponent extends BaseWebComponent {
16
+ static tagName: string;
17
+ static observedAttributes: string[];
18
+ constructor();
19
+ render(): void;
20
+ }
21
+
22
+ export declare type ActionGroupWebComponentAttributes = ActionGroupProps;
23
+
14
24
  declare abstract class BaseWebComponent extends HTMLElement {
15
25
  protected root: default_2.Root;
16
26
  static get tagName(): string;
package/dist/index.mjs CHANGED
@@ -49378,6 +49378,19 @@ 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
+
49381
49394
  class HeroWebComponent extends BaseWebComponent {
49382
49395
  static tagName = "rhc-hero";
49383
49396
  static observedAttributes = [
@@ -49398,7 +49411,7 @@ class HeroWebComponent extends BaseWebComponent {
49398
49411
  /* @__PURE__ */ jsxRuntimeExports.jsx(
49399
49412
  Hero,
49400
49413
  {
49401
- aspectRatio: this.getAttribute("aspectRatio"),
49414
+ aspectRatio: this.getAttribute("aspectRatio") ?? void 0,
49402
49415
  borderRadiusCorner: this.getAttribute("borderRadiusCorner"),
49403
49416
  heading: this.getAttribute("heading") ?? "default heading",
49404
49417
  imageAlt: this.getAttribute("imageAlt") ?? "image alt",
@@ -49413,5 +49426,5 @@ class HeroWebComponent extends BaseWebComponent {
49413
49426
  }
49414
49427
  }
49415
49428
 
49416
- export { AccordionWebComponent, HeroWebComponent };
49429
+ export { AccordionWebComponent, ActionGroupWebComponent, HeroWebComponent };
49417
49430
  //# sourceMappingURL=index.mjs.map