@utrecht/web-component-library-stencil 1.0.0-alpha.316 → 1.0.0-alpha.317

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.
Files changed (94) hide show
  1. package/dist/collection/navigatie sidenav/web-component/index.stencil.js +5 -0
  2. package/dist/components/navigatie sidenav/web-component/index.stencil.d.ts +5 -0
  3. package/dist/components/navigatie sidenav/web-component/index.stencil.js +5 -0
  4. package/dist/types/navigatie sidenav/web-component/index.stencil.d.ts +5 -0
  5. package/package.json +3 -3
  6. package/dist/collection/blockquote/css/template.js +0 -24
  7. package/dist/collection/blockquote/html/template.js +0 -6
  8. package/dist/collection/digid-logo/web-component/template.js +0 -1
  9. package/dist/collection/document/web-component/template.js +0 -1
  10. package/dist/collection/eherkenning-logo/web-component/template.js +0 -1
  11. package/dist/collection/eidas-logo/web-component/template.js +0 -1
  12. package/dist/collection/emphasis/css/template.js +0 -19
  13. package/dist/collection/emphasis/html/template.js +0 -20
  14. package/dist/collection/favicon/html/template.js +0 -1
  15. package/dist/collection/form-field-checkbox/css/template.js +0 -10
  16. package/dist/collection/form-field-checkbox/web-component/template.js +0 -18
  17. package/dist/collection/form-field-checkbox-group/css/template.js +0 -33
  18. package/dist/collection/form-field-description/css/template.js +0 -15
  19. package/dist/collection/form-field-description/web-component/template.js +0 -4
  20. package/dist/collection/form-field-radio/css/template.js +0 -10
  21. package/dist/collection/form-field-radio-group/css/template.js +0 -20
  22. package/dist/collection/form-field-textarea/web-component/template.js +0 -14
  23. package/dist/collection/form-field-textbox/web-component/template.js +0 -21
  24. package/dist/collection/form-fieldset/css/template.js +0 -10
  25. package/dist/collection/form-fieldset/html/template.js +0 -12
  26. package/dist/collection/form-label/css/template.js +0 -22
  27. package/dist/collection/form-label/html/template.js +0 -5
  28. package/dist/collection/form-toggle/css/template.js +0 -47
  29. package/dist/collection/form-toggle/web-component/template.js +0 -7
  30. package/dist/collection/heading/web-component/template.js +0 -4
  31. package/dist/collection/heading-1/css/template.js +0 -11
  32. package/dist/collection/heading-1/html/template.js +0 -4
  33. package/dist/collection/heading-1/web-component/template.js +0 -4
  34. package/dist/collection/heading-2/css/template.js +0 -11
  35. package/dist/collection/heading-2/html/template.js +0 -4
  36. package/dist/collection/heading-2/web-component/template.js +0 -4
  37. package/dist/collection/heading-3/css/template.js +0 -11
  38. package/dist/collection/heading-3/html/template.js +0 -4
  39. package/dist/collection/heading-3/web-component/template.js +0 -4
  40. package/dist/collection/heading-4/css/template.js +0 -11
  41. package/dist/collection/heading-4/html/template.js +0 -4
  42. package/dist/collection/heading-4/web-component/template.js +0 -4
  43. package/dist/collection/heading-5/css/template.js +0 -11
  44. package/dist/collection/heading-5/html/template.js +0 -4
  45. package/dist/collection/heading-5/web-component/template.js +0 -4
  46. package/dist/collection/heading-6/css/template.js +0 -11
  47. package/dist/collection/heading-6/html/template.js +0 -4
  48. package/dist/collection/heading-6/web-component/template.js +0 -4
  49. package/dist/collection/html-content/web-component/template.js +0 -1
  50. package/dist/collection/icon/web-component/template.js +0 -7
  51. package/dist/collection/link-button/css/template.js +0 -45
  52. package/dist/collection/link-list/css/template.js +0 -10
  53. package/dist/collection/link-social/css/template.js +0 -20
  54. package/dist/collection/logo/css/template.js +0 -33
  55. package/dist/collection/logo/web-component/template.js +0 -1
  56. package/dist/collection/logo-button/css/template.js +0 -17
  57. package/dist/collection/logo-button/web-component/template.js +0 -1
  58. package/dist/collection/mapcontrolbutton/css/template.js +0 -34
  59. package/dist/collection/menulijst/css/template.js +0 -18
  60. package/dist/collection/navigatie sidenav/css/template.js +0 -69
  61. package/dist/collection/navigatie sidenav/web-component/template.js +0 -1
  62. package/dist/collection/navigatie topnav/css/template.js +0 -26
  63. package/dist/collection/ordered-list/css/template.js +0 -11
  64. package/dist/collection/ordered-list/html/template.js +0 -17
  65. package/dist/collection/page-footer/css/template.js +0 -7
  66. package/dist/collection/page-footer/web-component/template.js +0 -1
  67. package/dist/collection/page-header/css/template.js +0 -6
  68. package/dist/collection/page-header/web-component/template.js +0 -1
  69. package/dist/collection/pagination/css/template.js +0 -54
  70. package/dist/collection/pagination/web-component/template.js +0 -7
  71. package/dist/collection/paragraph/css/template.js +0 -22
  72. package/dist/collection/paragraph/html/template.js +0 -11
  73. package/dist/collection/pre-heading/css/template.js +0 -15
  74. package/dist/collection/radio-button/css/template.js +0 -19
  75. package/dist/collection/radio-button/html/template.js +0 -19
  76. package/dist/collection/search-bar/css/template.js +0 -15
  77. package/dist/collection/select/css/template.js +0 -39
  78. package/dist/collection/select/html/template.js +0 -26
  79. package/dist/collection/separator/css/template.js +0 -16
  80. package/dist/collection/separator/html/template.js +0 -4
  81. package/dist/collection/separator/web-component/template.js +0 -1
  82. package/dist/collection/surface/css/template.js +0 -8
  83. package/dist/collection/table/html/template.js +0 -41
  84. package/dist/collection/table/web-component/template.js +0 -23
  85. package/dist/collection/templates/contact-card-template/css/template.js +0 -30
  86. package/dist/collection/templates/contact-card-template/web-component/template.js +0 -1
  87. package/dist/collection/textarea/css/template.js +0 -35
  88. package/dist/collection/textarea/html/template.js +0 -20
  89. package/dist/collection/textbox/css/template.js +0 -37
  90. package/dist/collection/textbox/html/template.js +0 -36
  91. package/dist/collection/textbox/web-component/template.js +0 -20
  92. package/dist/collection/toptask-link/css/template.js +0 -33
  93. package/dist/collection/toptask-nav/css/template.js +0 -52
  94. package/dist/collection/url/css/template.js +0 -14
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2022 Gemeente Utrecht
4
+ * Copyright (c) 2020-2022 Frameless B.V.
5
+ */
1
6
  import { Component, h, Prop } from '@stencil/core';
2
7
  import clsx from 'clsx';
3
8
  export class Sidenav {
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2022 Gemeente Utrecht
4
+ * Copyright (c) 2020-2022 Frameless B.V.
5
+ */
1
6
  export declare class Sidenav {
2
7
  json: string;
3
8
  render(): any;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2022 Gemeente Utrecht
4
+ * Copyright (c) 2020-2022 Frameless B.V.
5
+ */
1
6
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
7
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
8
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2022 Gemeente Utrecht
4
+ * Copyright (c) 2020-2022 Frameless B.V.
5
+ */
1
6
  export declare class Sidenav {
2
7
  json: string;
3
8
  render(): any;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.316",
2
+ "version": "1.0.0-alpha.317",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -31,7 +31,7 @@
31
31
  "@stencil/react-output-target": "0.3.1",
32
32
  "@stencil/sass": "1.5.2",
33
33
  "@stencil/vue-output-target": "0.6.2",
34
- "@utrecht/icon": "1.0.0-alpha.205",
34
+ "@utrecht/icon": "1.0.0-alpha.206",
35
35
  "chokidar-cli": "3.0.0",
36
36
  "node-sass-package-importer": "5.3.2",
37
37
  "npm-run-all": "4.1.5",
@@ -51,5 +51,5 @@
51
51
  "watch:build": "stencil build --watch",
52
52
  "generate": "stencil generate"
53
53
  },
54
- "gitHead": "7924812476e4f47fc63b99a34e913d790d38a080"
54
+ "gitHead": "40f94d1ad0325a155b00186d2844b30cf98e7169"
55
55
  }
@@ -1,24 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const defaultArgs = {
9
- textContent: '',
10
- attribution: null,
11
- distanced: false,
12
- };
13
-
14
- export const Blockquote = ({ textContent = '', attribution = null, distanced = false }) =>
15
- `<blockquote class="${clsx('utrecht-blockquote', { 'utrecht-blockquote--distanced': distanced })}">
16
- <div class="utrecht-blockquote__content">
17
- <p>${textContent}</p>${
18
- attribution
19
- ? `
20
- <div class="utrecht-blockquote__attribution">${attribution}</div>`
21
- : ''
22
- }
23
- </div>
24
- </blockquote>`;
@@ -1,6 +0,0 @@
1
- export const Blockquote = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <blockquote>
4
- <p>${textContent}</p>
5
- </blockquote>
6
- </section>`;
@@ -1 +0,0 @@
1
- export const DigidLogo = () => `<utrecht-digid-logo></utrecht-digid-logo>`;
@@ -1 +0,0 @@
1
- export const Document = ({ innerHTML }) => `<utrecht-document>${innerHTML}</utrecht-document>`;
@@ -1 +0,0 @@
1
- export const EherkenningLogo = () => `<utrecht-eherkenning-logo></utrecht-eherkenning-logo>`;
@@ -1 +0,0 @@
1
- export const EidasLogo = () => `<utrecht-eidas-logo></utrecht-eidas-logo>`;
@@ -1,19 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const defaultArgs = {
9
- stressed: false,
10
- strong: false,
11
- textContent: '',
12
- };
13
-
14
- export const Emphasis = ({ textContent = '', stressed = false, strong = false }) =>
15
- `<span class="${clsx(
16
- 'utrecht-emphasis',
17
- stressed && 'utrecht-emphasis--stressed',
18
- strong && 'utrecht-emphasis--strong',
19
- )}">${textContent}</span>`;
@@ -1,20 +0,0 @@
1
- export const defaultArgs = {
2
- stressed: false,
3
- strong: false,
4
- textContent: '',
5
- };
6
-
7
- export const StressedTemplate = ({ textContent = '' }) => `<em>${textContent}</em>`;
8
-
9
- export const StrongTemplate = ({ textContent = '' }) => `<strong>${textContent}</strong>`;
10
-
11
- export const Emphasis = ({ textContent = '', stressed = false, strong = false }) => {
12
- let formatted = textContent;
13
- if (stressed) {
14
- formatted = StressedTemplate({ textContent: formatted });
15
- }
16
- if (strong) {
17
- formatted = StrongTemplate({ textContent: formatted });
18
- }
19
- return `<div class="utrecht-html">${formatted}</div>`;
20
- };
@@ -1 +0,0 @@
1
- export const Favicon = ({ href = '' }) => `<link rel="icon" href="${href}">`;
@@ -1,10 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- export const FormFieldCheckbox = ({ label = '' }) =>
7
- `<div class="utrecht-form-field utrecht-form-field--checkbox utrecht-form-field--distanced">
8
- <input type="checkbox" class="utrecht-form-field__input utrecht-checkbox" id="id-ce0239e2">
9
- <label class="utrecht-form-field__label utrecht-form-field__label--checkbox utrecht-form-label utrecht-form-label--checkbox" for="id-ce0239e2">${label}</label>
10
- </div>`;
@@ -1,18 +0,0 @@
1
- export const defaultArgs = {
2
- checked: false,
3
- disabled: false,
4
- invalid: false,
5
- label: '',
6
- required: false,
7
- };
8
-
9
- export const FormFieldCheckbox = ({
10
- checked = false,
11
- disabled = false,
12
- invalid = false,
13
- label = '',
14
- required = false,
15
- }) =>
16
- `<utrecht-form-field-checkbox${checked ? ' checked="true"' : ''}${disabled ? ' disabled="true"' : ''}${
17
- invalid ? ' invalid="true"' : ''
18
- }${required ? ' required="true"' : ''}>${label}</utrecht-form-field-checkbox>`;
@@ -1,33 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Gemeente Utrecht
4
- * Copyright (c) 2021 Robbert Broersma
5
- */
6
-
7
- export const FormFieldCheckboxGroup = ({
8
- label,
9
- options,
10
- groupLabelId = 'group-label',
11
- }) => `<div class="utrecht-form-field-checkbox-group utrecht-form-field-checkbox-group--distanced" role="group" aria-labelledby="${groupLabelId}">
12
- <div class="utrecht-form-field-checkbox-group__label utrecht-form-label" id="${groupLabelId}">${label}</div>
13
- ${options
14
- .map((option, index) => ({
15
- ...option,
16
- id: options.id || `option-${index}`,
17
- }))
18
- .map(
19
- ({
20
- id,
21
- label,
22
- name,
23
- value,
24
- checked,
25
- }) => `<div class="utrecht-form-field utrecht-form-field--checkbox utrecht-form-field--distanced">
26
- <input type="checkbox" class="utrecht-form-field__input utrecht-checkbox" id="${id}" value="${value}"${
27
- checked ? ' checked' : ''
28
- } name="${name}">
29
- <label class="utrecht-form-field__label utrecht-form-field__label--checkbox utrecht-form-label utrecht-form-label--checkbox" for="${id}">${label}</label>
30
- </div>`,
31
- )
32
- .join('\n')}
33
- </div>`;
@@ -1,15 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const FormFieldDescription = ({ id = null, innerHTML = '', status = null, distanced = false }) =>
9
- `<div${id ? ` id="${id}"` : ''} class="${clsx(
10
- 'utrecht-form-field-description',
11
- distanced && 'utrecht-form-field-description--distanced',
12
- status === 'invalid' && 'utrecht-form-field-description--invalid',
13
- status === 'valid' && 'utrecht-form-field-description--valid',
14
- status === 'warning' && 'utrecht-form-field-description--warning',
15
- )}">${innerHTML}</div>`;
@@ -1,4 +0,0 @@
1
- export const FormFieldDescription = ({ id = null, innerHTML = '', status = null }) =>
2
- `<utrecht-form-field-description id="${id}"${
3
- status ? ` status="${status}"` : ''
4
- }>${innerHTML}</utrecht-form-field-description>`;
@@ -1,10 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- export const FormFieldRadio = ({ label = '' }) =>
7
- `<div class="utrecht-form-field-radio utrecht-form-field-radio--distanced">
8
- <input type="radio" class="utrecht-form-field-radio__input utrecht-radio-button" id="id-ce0239e2">
9
- <label class="utrecht-form-field-radio__label utrecht-form-label utrecht-form-label--radio" for="id-ce0239e2">${label}</label>
10
- </div>`;
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- export const FormFieldRadioGroup = ({ label, name, options }) =>
7
- `<div class="utrecht-form-field-radio-group utrecht-form-field-radio-group--distanced" role="radiogroup" aria-labelledby="id-9e42cd3e">
8
- <div class="utrecht-form-field-radio-group__label utrecht-form-label" id="id-9e42cd3e">${label}</div>
9
- ${options
10
- .map(
11
- ({ checked, label, value }, index) => `
12
- <div class="utrecht-form-field-radio utrecht-form-field-radio--distanced">
13
- <input type="radio" name="${name}" value="${value}" class="utrecht-form-field-radio__input utrecht-radio-button" id="option-${index}"${
14
- checked ? ' checked' : ''
15
- }>
16
- <label class="utrecht-form-field-radio__label utrecht-form-label utrecht-form-label--radio" for="option-${index}">${label}</label>
17
- </div>`,
18
- )
19
- .join('\n')}
20
- </div>`;
@@ -1,14 +0,0 @@
1
- export const FormFieldTextarea = ({
2
- disabled = false,
3
- invalid = false,
4
- label = '',
5
- placeholder = '',
6
- readOnly = false,
7
- required = false,
8
- value = '',
9
- }) =>
10
- `<utrecht-form-field-textarea${disabled ? ' disabled="true"' : ''}${invalid ? ' invalid="true"' : ''}${
11
- placeholder ? ` placeholder="${placeholder}"` : ''
12
- }${readOnly ? ' readonly="true"' : ''}${required ? ' required="true"' : ''}${
13
- value ? ` value="${value}"` : ''
14
- }>${label}</utrecht-form-field-textarea>`;
@@ -1,21 +0,0 @@
1
- export const FormFieldTextbox = ({
2
- autoComplete = '',
3
- disabled = false,
4
- invalid = false,
5
- label = '',
6
- min = '',
7
- max = '',
8
- pattern = '',
9
- placeholder = '',
10
- readOnly = false,
11
- required = false,
12
- type = '',
13
- value = '',
14
- }) =>
15
- `<utrecht-form-field-textbox${autoComplete ? ` autocomplete="${autoComplete}"` : ''}${
16
- disabled ? ' disabled="true"' : ''
17
- }${invalid ? ' invalid="true"' : ''}${min !== '' ? ` min="${min}"` : ''}${max !== '' ? ` max="${max}"` : ''}${
18
- pattern ? ` pattern="${pattern}"` : ''
19
- }${placeholder ? ` placeholder="${placeholder}"` : ''}${readOnly ? ' readonly="true"' : ''}${
20
- required ? ' required="true"' : ''
21
- }${value ? ` value="${value}"` : ''}${type ? ` type="${type}"` : ''}>${label}</utrecht-form-field-textbox>`;
@@ -1,10 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- export const FormFieldset = ({ content = '', legend = '' }) =>
7
- `<div class="utrecht-form-fieldset">
8
- ${legend ? `<div class="utrecht-form-fieldset__legend utrecht-form-fieldset__legend--distanced">${legend}</div>` : ''}
9
- ${content}
10
- </div>`;
@@ -1,12 +0,0 @@
1
- export const defaultArgs = {
2
- innerHTML: '',
3
- legend: '',
4
- };
5
-
6
- export const FormFieldset = ({ innerHTML = '', legend = '' }) =>
7
- `<div class="utrecht-html">
8
- <fieldset>
9
- ${legend ? `<legend>${legend}</legend>` : ''}
10
- ${innerHTML}
11
- </fieldset>
12
- </div>`;
@@ -1,22 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const defaultArgs = {
9
- checked: false,
10
- disabled: false,
11
- textContent: '',
12
- type: null,
13
- };
14
-
15
- export const FormLabel = ({ checked = false, disabled = false, textContent = '', type = null }) =>
16
- `<span class="${clsx(
17
- 'utrecht-form-label',
18
- type === 'checkbox' && 'utrecht-form-label--checkbox',
19
- checked && 'utrecht-form-label--checked',
20
- disabled && 'utrecht-form-label--disabled',
21
- type === 'radio' && 'utrecht-form-label--radio',
22
- )}">${textContent}</span>`;
@@ -1,5 +0,0 @@
1
- export const FormLabel = ({ textContent = '', type = null }) =>
2
- `<div class="utrecht-html">
3
- <input type="${type}" id="${type}">
4
- <label for="${type}">${textContent}</label>
5
- </div>`;
@@ -1,47 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const defaultArgs = {
9
- checked: false,
10
- disabled: false,
11
- focus: false,
12
- hover: false,
13
- };
14
-
15
- export const FormToggle = ({ checked = false, disabled = false, hover = false, focus = false }) =>
16
- `<div class="${clsx(
17
- 'utrecht-form-toggle',
18
- checked && 'utrecht-form-toggle--checked',
19
- !checked && 'utrecht-form-toggle--not-checked',
20
- disabled && 'utrecht-form-toggle--disabled',
21
- focus && 'utrecht-form-toggle--focus',
22
- hover && 'utrecht-form-toggle--hover',
23
- )}" role="switch" tabindex="0"${checked ? ' aria-checked="true"' : ''}${disabled ? ' aria-disabled="true"' : ''}>
24
- <div class="${clsx(
25
- 'utrecht-form-toggle__track',
26
- checked && 'utrecht-form-toggle__track--checked',
27
- !checked && 'utrecht-form-toggle__track--not-checked',
28
- disabled && 'utrecht-form-toggle__track--disabled',
29
- )}">
30
- <div class="${clsx(
31
- 'utrecht-form-toggle__thumb',
32
- checked && 'utrecht-form-toggle__thumb--checked',
33
- !checked && 'utrecht-form-toggle__thumb--not-checked',
34
- disabled && 'utrecht-form-toggle__thumb--disabled',
35
- )}"></div>
36
- </div>
37
- </div>`;
38
-
39
- export const FormToggleCheckbox = ({ checked = false, disabled = false, id }) =>
40
- `<div class="${clsx('utrecht-form-toggle', 'utrecht-form-toggle--html-checkbox')}">
41
- <input id="${id}" type="checkbox" class="utrecht-form-toggle__checkbox"${checked ? ' checked' : ''}${
42
- disabled ? ' disabled' : ''
43
- }>
44
- <label for="${id}" class="${clsx('utrecht-form-toggle__track')}">
45
- <div class="${clsx('utrecht-form-toggle__thumb')}"></div>
46
- </label>
47
- </div>`;
@@ -1,7 +0,0 @@
1
- export const defaultArgs = {
2
- checked: false,
3
- disabled: false,
4
- };
5
-
6
- export const FormToggle = ({ checked = false, disabled = false }) =>
7
- `<utrecht-form-toggle${checked ? ' checked="true"' : ''}${disabled ? ' disabled="true"' : ''}></utrecht-form-toggle>`;
@@ -1,4 +0,0 @@
1
- export const Heading = ({ level, textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading level="${level}">${textContent}</utrecht-heading>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading1 = ({ textContent = '', distanced = false }) =>
9
- `<h1 class="${clsx('utrecht-heading-1', {
10
- 'utrecht-heading-1--distanced': distanced,
11
- })}">${textContent}</h1>`;
@@ -1,4 +0,0 @@
1
- export const Heading1 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h1>${textContent}</h1>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading1 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-1>${textContent}</utrecht-heading-1>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading2 = ({ textContent = '', distanced = false }) =>
9
- `<h2 class="${clsx('utrecht-heading-2', {
10
- 'utrecht-heading-2--distanced': distanced,
11
- })}">${textContent}</h2>`;
@@ -1,4 +0,0 @@
1
- export const Heading2 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h2>${textContent}</h2>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading2 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-2>${textContent}</utrecht-heading-2>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading3 = ({ textContent = '', distanced = false }) =>
9
- `<h3 class="${clsx('utrecht-heading-3', {
10
- 'utrecht-heading-3--distanced': distanced,
11
- })}">${textContent}</h3>`;
@@ -1,4 +0,0 @@
1
- export const Heading3 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h3>${textContent}</h3>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading3 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-3>${textContent}</utrecht-heading-3>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading4 = ({ textContent = '', distanced = false }) =>
9
- `<h4 class="${clsx('utrecht-heading-4', {
10
- 'utrecht-heading-4--distanced': distanced,
11
- })}">${textContent}</h4>`;
@@ -1,4 +0,0 @@
1
- export const Heading4 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h4>${textContent}</h4>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading4 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-4>${textContent}</utrecht-heading-4>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading5 = ({ textContent = '', distanced = false }) =>
9
- `<h5 class="${clsx('utrecht-heading-5', {
10
- 'utrecht-heading-5--distanced': distanced,
11
- })}">${textContent}</h5>`;
@@ -1,4 +0,0 @@
1
- export const Heading5 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h5>${textContent}</h5>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading5 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-5>${textContent}</utrecht-heading-5>
4
- </section>`;
@@ -1,11 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const Heading6 = ({ textContent = '', distanced = false }) =>
9
- `<h6 class="${clsx('utrecht-heading-6', {
10
- 'utrecht-heading-6--distanced': distanced,
11
- })}">${textContent}</h6>`;
@@ -1,4 +0,0 @@
1
- export const Heading6 = ({ textContent = '' }) =>
2
- `<section class="utrecht-html">
3
- <h6>${textContent}</h6>
4
- </section>`;
@@ -1,4 +0,0 @@
1
- export const Heading6 = ({ textContent = '' }) =>
2
- `<section>
3
- <utrecht-heading-6>${textContent}</utrecht-heading-6>
4
- </section>`;
@@ -1 +0,0 @@
1
- export const HTMLContent = ({ content }) => `<utrecht-html-content>${content}</utrecht-html-content>`;
@@ -1,7 +0,0 @@
1
- export const IconExample = ({
2
- color = 'blue',
3
- icon = 'utrecht-icon-arrow',
4
- size = 12,
5
- }) => `<div style="--utrecht-icon-color: ${color}; --utrecht-icon-size: ${size}px;">
6
- <${icon}></${icon}>
7
- </div>`;
@@ -1,45 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2022 Robbert Broersma
4
- */
5
-
6
- import clsx from 'clsx';
7
-
8
- export const defaultArgs = {
9
- active: false,
10
- external: false,
11
- focus: false,
12
- focusVisible: false,
13
- hover: false,
14
- inline: false,
15
- href: '',
16
- textContent: '',
17
- };
18
-
19
- export const LinkButton = ({
20
- active = false,
21
- external = false,
22
- href = '',
23
- focus = false,
24
- focusVisible = false,
25
- hover = false,
26
- inline = false,
27
- textContent = '',
28
- }) => {
29
- const stateClassNames = {
30
- 'utrecht-link-button--active': active,
31
- 'utrecht-link-button--focus': focus,
32
- 'utrecht-link-button--focus-visible': focusVisible,
33
- 'utrecht-link-button--hover': hover,
34
- };
35
- return href
36
- ? `<a href="${href}" class="${clsx('utrecht-link-button', stateClassNames)}"${
37
- external ? ' rel="external noopener noreferrer"' : ''
38
- }>${textContent}</a>`
39
- : `<button class="${clsx(
40
- 'utrecht-link-button',
41
- 'utrecht-link-button--html-button',
42
- inline && 'utrecht-link-button--inline',
43
- stateClassNames,
44
- )}">${textContent}</button>`;
45
- };