@rijkshuisstijl-community/web-components 1.1.1 → 1.1.2

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/README.md ADDED
@@ -0,0 +1,54 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ # Rijkshuisstijl Community Componenten - Web Components
4
+
5
+ _Dit project wordt **niet** gesteund door het Ministerie van Algemene Zaken._
6
+
7
+ **Het toepassen van design-elementen uit dit project is strikt verboden voor organisaties die geen deel uitmaken van de
8
+ centrale overheid van Nederland.**
9
+
10
+ Deze package is onderdeel van het [Rijkshuisstijl Community](../../README.md) project.
11
+
12
+ ## Aan de slag met Web Components
13
+
14
+ Om de Web Components van de Rijkshuisstijl-community te gebruiken, installeer je het [web-components npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/web-components).
15
+
16
+ ```bash
17
+ npm install --save-dev @rijkshuisstijl-community/web-components
18
+ ```
19
+
20
+ Dit installeert de Web Components. Om deze componenten te gebruiken, importeer je ze in je project en plaats je ze in de HTML.
21
+
22
+ Importeer de Web Components in je project:
23
+
24
+ ```js
25
+ import '@rijkshuisstijl-community/web-components';
26
+ ```
27
+
28
+ Vervolgens kun je de componenten in je HTML gebruiken:
29
+
30
+ ```html
31
+ <rhc-button>Click Here!</rhc-button>
32
+ ```
33
+
34
+ ### Thema toepassen
35
+
36
+ De Web Components hebben geen eigen styling. Om de Rijkshuisstijl aan je project toe te voegen, installeer je het [design-tokens npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/design-tokens).
37
+
38
+ ```bash
39
+ npm install --save-dev @rijkshuisstijl-community/design-tokens
40
+ ```
41
+
42
+ Dit pakket bevat de CSS-variabelen van het design systeem. Importeer het `index.css`-bestand uit de `dist` map van het
43
+ pakket, en omring het deel van je applicatie waar je het thema wilt toepassen met de Rijkshuisstijl-thema: `rhc-theme`.
44
+
45
+ ```html
46
+ <link rel="stylesheet" href="node_modules/@rijkshuisstijl-community/design-tokens/dist/index.css" />
47
+ <link rel="stylesheet" href="node_modules/@rijkshuisstijl-community/components-css/dist/index.css" />
48
+
49
+ <div class="rhc-theme">
50
+ <rhc-button>Click Here!</rhc-button>
51
+ </div>
52
+ ```
53
+
54
+ Bekijk de [packages/font/README.md](packages/font/README.md) voor de meerdere manieren om de lettertypen te installeren voor jouw project.
package/dist/index.d.ts CHANGED
@@ -213,31 +213,3 @@ export declare class LinkWebComponent extends BaseWebComponent {
213
213
  export declare type LinkWebComponentAttributes = LinkProps;
214
214
 
215
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
- }