@rijkshuisstijl-community/web-components 1.0.1-alpha.9 → 1.1.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,12 +1,29 @@
1
1
  import { AccordionProviderProps } from '@rijkshuisstijl-community/components-react';
2
2
  import { ActionGroupProps } from '@rijkshuisstijl-community/components-react';
3
3
  import { AlertProps } from '@rijkshuisstijl-community/components-react';
4
- import { default as default_2 } from 'react-dom/client';
4
+ import { ArticleProps } from '@rijkshuisstijl-community/components-react';
5
+ import { BlockquoteProps } from '@rijkshuisstijl-community/components-react';
6
+ import { BreadcrumbNavLinkProps } from '@rijkshuisstijl-community/components-react';
7
+ import { BreadcrumbNavProps } from '@rijkshuisstijl-community/components-react';
8
+ import { BreadcrumbNavSeparatorProps } from '@rijkshuisstijl-community/components-react';
9
+ import { ButtonProps } from '@rijkshuisstijl-community/components-react';
10
+ import { CardProps } from '@rijkshuisstijl-community/components-react';
11
+ import { CheckboxGroupProps } from '@rijkshuisstijl-community/components-react';
12
+ import { CheckboxProps } from '@rijkshuisstijl-community/components-react';
13
+ import { FormFieldCheckboxGroupProps } from '@rijkshuisstijl-community/components-react';
14
+ import { FormFieldCheckboxOptionProps } from '@rijkshuisstijl-community/components-react';
15
+ import { FormFieldRadioGroupProps } from '@rijkshuisstijl-community/components-react';
16
+ import { FormFieldRadioProps } from '@rijkshuisstijl-community/components-react';
17
+ import { FormFieldSelectProps } from '@rijkshuisstijl-community/components-react';
18
+ import { FormFieldTextareaProps } from '@rijkshuisstijl-community/components-react';
19
+ import { FormFieldTextInputProps } from '@rijkshuisstijl-community/components-react';
5
20
  import { HeroProps } from '@rijkshuisstijl-community/components-react';
21
+ import { IconProps } from '@rijkshuisstijl-community/components-react';
22
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
23
+ import { LinkProps } from '@rijkshuisstijl-community/components-react';
6
24
 
7
25
  export declare class AccordionWebComponent extends BaseWebComponent {
8
- static tagName: string;
9
- static observedAttributes: string[];
26
+ static readonly tagName: string;
10
27
  constructor();
11
28
  render(): void;
12
29
  }
@@ -15,7 +32,6 @@ export declare type AccordionWebComponentAttributes = AccordionProviderProps;
15
32
 
16
33
  export declare class ActionGroupWebComponent extends BaseWebComponent {
17
34
  static tagName: string;
18
- static observedAttributes: string[];
19
35
  constructor();
20
36
  render(): void;
21
37
  }
@@ -23,19 +39,30 @@ export declare class ActionGroupWebComponent extends BaseWebComponent {
23
39
  export declare type ActionGroupWebComponentAttributes = ActionGroupProps;
24
40
 
25
41
  export declare class AlertWebComponent extends BaseWebComponent {
26
- static tagName: string;
27
- static observedAttributes: string[];
42
+ static readonly tagName: string;
28
43
  constructor();
29
44
  render(): void;
30
45
  }
31
46
 
32
47
  export declare type AlertWebComponentAttributes = AlertProps;
33
48
 
49
+ export declare class ArticleWebComponent extends BaseWebComponent {
50
+ static readonly tagName: string;
51
+ constructor();
52
+ render(): void;
53
+ }
54
+
55
+ export declare type ArticleWebComponentAttributes = ArticleProps;
56
+
34
57
  declare abstract class BaseWebComponent extends HTMLElement {
35
- protected root: default_2.Root;
58
+ shadowRoot: ShadowRoot;
59
+ protected props: {
60
+ [key: string]: any;
61
+ };
62
+ private readonly _observer;
36
63
  static get tagName(): string;
37
- static observedAttributes: string[];
38
64
  constructor(stylesheet: string);
65
+ setupProps(): void;
39
66
  connectedCallback(): void;
40
67
  attributeChangedCallback(): void;
41
68
  disconnectedCallback(): void;
@@ -43,13 +70,174 @@ declare abstract class BaseWebComponent extends HTMLElement {
43
70
  static define(): void;
44
71
  }
45
72
 
73
+ export declare class BlockquoteWebComponent extends BaseWebComponent {
74
+ static readonly tagName: string;
75
+ constructor();
76
+ render(): void;
77
+ }
78
+
79
+ export declare type BlockquoteWebComponentAttributes = BlockquoteProps;
80
+
81
+ declare interface BreadCrumbNavElement {
82
+ [key: string]: string;
83
+ }
84
+
85
+ export declare type BreadcrumbNavLinkWebComponentAttributes = BreadcrumbNavLinkProps;
86
+
87
+ export declare type BreadcrumbNavSeparatorWebComponentAttributes = BreadcrumbNavSeparatorProps;
88
+
89
+ export declare class BreadcrumbNavWebComponent extends BaseWebComponent {
90
+ static readonly tagName: string;
91
+ private readonly allowedTypes;
92
+ constructor();
93
+ BreadcrumbNavLink({ active, classname, current, href, text, ...restProps }: BreadCrumbNavElement): JSX_2.Element;
94
+ BreadcrumbNavSeparator({ icon, ...restProps }: BreadCrumbNavElement): JSX_2.Element;
95
+ render(): void;
96
+ }
97
+
98
+ export declare type BreadcrumbNavWebComponentAttributes = BreadcrumbNavProps;
99
+
100
+ export declare class ButtonWebComponent extends BaseWebComponent {
101
+ static readonly tagName: string;
102
+ constructor();
103
+ render(): void;
104
+ }
105
+
106
+ export declare type ButtonWebComponentAttributes = ButtonProps;
107
+
108
+ export declare class CardWebComponent extends BaseWebComponent {
109
+ static readonly tagName: string;
110
+ constructor();
111
+ Button({ appearance, disabled, text, ...restProps }: {
112
+ [key: string]: string;
113
+ }): JSX_2.Element;
114
+ render(): void;
115
+ }
116
+
117
+ export declare type CardWebComponentAttributes = CardProps;
118
+
119
+ export declare class CheckboxGroupWebComponent extends BaseWebComponent {
120
+ static readonly tagName: string;
121
+ constructor();
122
+ render(): void;
123
+ }
124
+
125
+ export declare type CheckboxGroupWebComponentAttributes = CheckboxGroupProps;
126
+
127
+ export declare class CheckboxWebComponent extends BaseWebComponent {
128
+ static readonly tagName: string;
129
+ constructor();
130
+ render(): void;
131
+ }
132
+
133
+ export declare type CheckboxWebComponentAttributes = CheckboxProps;
134
+
135
+ export declare type FormFieldCheckboxGroupAttributes = FormFieldCheckboxGroupProps;
136
+
137
+ export declare class FormFieldCheckboxGroupWebComponent extends BaseWebComponent {
138
+ static readonly tagName: string;
139
+ constructor();
140
+ render(): void;
141
+ }
142
+
143
+ export declare type FormFieldCheckboxOptionAttributes = FormFieldCheckboxOptionProps;
144
+
145
+ export declare class FormFieldCheckboxOptionWebComponent extends BaseWebComponent {
146
+ static readonly tagName: string;
147
+ constructor();
148
+ render(): void;
149
+ }
150
+
151
+ export declare type FormFieldRadioAttributes = FormFieldRadioProps;
152
+
153
+ export declare type FormFieldRadioGroupAttributes = FormFieldRadioGroupProps;
154
+
155
+ export declare class FormFieldRadioGroupWebComponent extends BaseWebComponent {
156
+ static readonly tagName: string;
157
+ constructor();
158
+ render(): void;
159
+ }
160
+
161
+ export declare class FormFieldRadioWebComponent extends BaseWebComponent {
162
+ static readonly tagName: string;
163
+ constructor();
164
+ render(): void;
165
+ }
166
+
167
+ export declare type FormFieldSelectAttributes = FormFieldSelectProps;
168
+
169
+ export declare class FormFieldSelectWebComponent extends BaseWebComponent {
170
+ static readonly tagName: string;
171
+ constructor();
172
+ render(): void;
173
+ }
174
+
175
+ export declare type FormFieldTextareaAttributes = FormFieldTextareaProps;
176
+
177
+ export declare class FormFieldTextareaWebComponent extends BaseWebComponent {
178
+ static readonly tagName: string;
179
+ constructor();
180
+ render(): void;
181
+ }
182
+
183
+ export declare type FormFieldTextInputAttributes = FormFieldTextInputProps;
184
+
185
+ export declare class FormFieldTextInputWebComponent extends BaseWebComponent {
186
+ static readonly tagName: string;
187
+ constructor();
188
+ render(): void;
189
+ }
190
+
46
191
  export declare class HeroWebComponent extends BaseWebComponent {
47
- static tagName: string;
48
- static observedAttributes: string[];
192
+ static readonly tagName: string;
49
193
  constructor();
50
194
  render(): void;
51
195
  }
52
196
 
53
197
  export declare type HeroWebComponentAttributes = HeroProps;
54
198
 
199
+ export declare class IconWebComponent extends BaseWebComponent {
200
+ static readonly tagName: string;
201
+ constructor();
202
+ render(): void;
203
+ }
204
+
205
+ export declare type IconWebComponentAttributes = IconProps;
206
+
207
+ export declare class LinkWebComponent extends BaseWebComponent {
208
+ static readonly tagName: string;
209
+ constructor();
210
+ render(): void;
211
+ }
212
+
213
+ export declare type LinkWebComponentAttributes = LinkProps;
214
+
55
215
  export { }
216
+
217
+
218
+ declare global {
219
+ namespace JSX {
220
+ type WebComponentAttributes<T> = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> & T;
221
+ interface IntrinsicElements {
222
+ 'rhc-accordion': WebComponentAttributes<AccordionWebComponentAttributes>;
223
+ 'rhc-action-group': WebComponentAttributes<ActionGroupWebComponentAttributes>;
224
+ 'rhc-alert': WebComponentAttributes<AlertWebComponentAttributes>;
225
+ 'rhc-article': WebComponentAttributes<ArticleWebComponentAttributes>;
226
+ 'rhc-blockquote': WebComponentAttributes<BlockquoteWebComponentAttributes>;
227
+ 'rhc-breadcrumb-nav': WebComponentAttributes<BreadcrumbNavWebComponentAttributes>;
228
+ 'rhc-button': WebComponentAttributes<ButtonWebComponentAttributes>;
229
+ 'rhc-card': WebComponentAttributes<CardWebComponentAttributes>;
230
+ 'rhc-checkbox-group': WebComponentAttributes<CheckboxGroupWebComponentAttributes>;
231
+ 'rhc-checkbox': WebComponentAttributes<CheckboxWebComponentAttributes>;
232
+ 'rhc-form-checkbox-group': WebComponentAttributes<FormFieldCheckboxGroupAttributes>;
233
+ 'rhc-form-checkbox': WebComponentAttributes<FormFieldCheckboxOptionAttributes>;
234
+ 'rhc-form-radio': WebComponentAttributes<FormFieldRadioAttributes>;
235
+ 'rhc-form-radio-group': WebComponentAttributes<FormFieldRadioGroupAttributes>;
236
+ 'rhc-form-select': WebComponentAttributes<FormFieldSelectAttributes>;
237
+ 'rhc-form-textinput': WebComponentAttributes<FormFieldTextInputAttributes>;
238
+ 'rhc-form-textarea': WebComponentAttributes<FormFieldTextareaAttributes>;
239
+ 'rhc-hero': WebComponentAttributes<HeroWebComponentAttributes>;
240
+ 'rhc-icon': WebComponentAttributes<IconWebComponentAttributes>;
241
+ }
242
+ }
243
+ }