@utrecht/web-component-library-stencil 1.0.0-alpha.210 → 1.0.0-alpha.213

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 (91) hide show
  1. package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +2 -2
  2. package/dist/cjs/utrecht-form-field-description.cjs.entry.js +2 -2
  3. package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +2 -2
  4. package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +2 -2
  5. package/dist/cjs/utrecht-heading-1.cjs.entry.js +2 -2
  6. package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +4 -4
  7. package/dist/cjs/utrecht-heading-4.cjs.entry.js +2 -2
  8. package/dist/cjs/utrecht-heading-5.cjs.entry.js +2 -2
  9. package/dist/cjs/utrecht-heading-6.cjs.entry.js +2 -2
  10. package/dist/cjs/utrecht-heading.cjs.entry.js +2 -2
  11. package/dist/cjs/utrecht-html-content.cjs.entry.js +2 -2
  12. package/dist/collection/collection-manifest.json +12 -12
  13. package/dist/collection/form-field-checkbox/{bem.js → css/template.js} +0 -0
  14. package/dist/collection/form-field-checkbox/{stencil.css → web-component/index.css} +0 -0
  15. package/dist/collection/form-field-checkbox/{stencil.js → web-component/index.stencil.js} +2 -2
  16. package/dist/collection/form-field-checkbox/web-component/template.js +18 -0
  17. package/dist/collection/form-field-checkbox-group/{bem.js → css/template.js} +0 -0
  18. package/dist/collection/form-field-description/{bem.js → css/template.js} +2 -2
  19. package/dist/collection/form-field-description/{stencil.css → web-component/index.css} +0 -0
  20. package/dist/collection/form-field-description/{stencil.js → web-component/index.stencil.js} +2 -2
  21. package/dist/collection/form-field-description/web-component/template.js +4 -0
  22. package/dist/collection/form-field-radio/{bem.js → css/template.js} +0 -0
  23. package/dist/collection/form-field-radio-group/{bem.js → css/template.js} +0 -0
  24. package/dist/collection/form-field-textarea/{stencil.css → web-component/index.css} +0 -0
  25. package/dist/collection/form-field-textarea/{stencil.js → web-component/index.stencil.js} +2 -2
  26. package/dist/collection/form-field-textarea/web-component/template.js +14 -0
  27. package/dist/collection/form-field-textbox/{stencil.css → web-component/index.css} +0 -0
  28. package/dist/collection/form-field-textbox/{stencil.js → web-component/index.stencil.js} +2 -2
  29. package/dist/collection/form-field-textbox/web-component/template.js +21 -0
  30. package/dist/collection/heading/{stencil.css → web-component/index.css} +0 -0
  31. package/dist/collection/heading/{stencil.js → web-component/index.stencil.js} +2 -2
  32. package/dist/collection/heading/web-component/template.js +4 -0
  33. package/dist/collection/heading-1/{bem.js → css/template.js} +0 -0
  34. package/dist/collection/heading-1/html/template.js +4 -0
  35. package/dist/collection/heading-1/{stencil.css → web-component/index.css} +0 -0
  36. package/dist/collection/heading-1/{stencil.js → web-component/index.stencil.js} +2 -2
  37. package/dist/collection/heading-1/web-component/template.js +4 -0
  38. package/dist/collection/heading-2/{bem.js → css/template.js} +0 -0
  39. package/dist/collection/heading-2/html/template.js +4 -0
  40. package/dist/collection/heading-2/{stencil.css → web-component/index.css} +0 -0
  41. package/dist/collection/heading-2/{stencil.js → web-component/index.stencil.js} +2 -2
  42. package/dist/collection/heading-2/web-component/template.js +4 -0
  43. package/dist/collection/heading-3/{bem.js → css/template.js} +0 -0
  44. package/dist/collection/heading-3/html/template.js +4 -0
  45. package/dist/collection/heading-3/{stencil.css → web-component/index.css} +0 -0
  46. package/dist/collection/heading-3/{stencil.js → web-component/index.stencil.js} +2 -2
  47. package/dist/collection/heading-3/web-component/template.js +4 -0
  48. package/dist/collection/heading-4/{bem.js → css/template.js} +0 -0
  49. package/dist/collection/heading-4/html/template.js +4 -0
  50. package/dist/collection/heading-4/{stencil.css → web-component/index.css} +0 -0
  51. package/dist/collection/heading-4/{stencil.js → web-component/index.stencil.js} +2 -2
  52. package/dist/collection/heading-4/web-component/template.js +4 -0
  53. package/dist/collection/heading-5/{bem.js → css/template.js} +0 -0
  54. package/dist/collection/heading-5/html/template.js +4 -0
  55. package/dist/collection/heading-5/{stencil.css → web-component/index.css} +0 -0
  56. package/dist/collection/heading-5/{stencil.js → web-component/index.stencil.js} +2 -2
  57. package/dist/collection/heading-5/web-component/template.js +4 -0
  58. package/dist/collection/heading-6/{bem.js → css/template.js} +0 -0
  59. package/dist/collection/heading-6/html/template.js +4 -0
  60. package/dist/collection/heading-6/{stencil.css → web-component/index.css} +0 -0
  61. package/dist/collection/heading-6/{stencil.js → web-component/index.stencil.js} +2 -2
  62. package/dist/collection/heading-6/web-component/template.js +4 -0
  63. package/dist/collection/html-content/{stencil.css → web-component/index.css} +0 -0
  64. package/dist/collection/html-content/{stencil.js → web-component/index.stencil.js} +2 -2
  65. package/dist/collection/html-content/web-component/template.js +1 -0
  66. package/dist/custom-elements/index.js +56 -56
  67. package/dist/esm/utrecht-form-field-checkbox.entry.js +2 -2
  68. package/dist/esm/utrecht-form-field-description.entry.js +2 -2
  69. package/dist/esm/utrecht-form-field-textarea.entry.js +2 -2
  70. package/dist/esm/utrecht-form-field-textbox.entry.js +2 -2
  71. package/dist/esm/utrecht-heading-1.entry.js +2 -2
  72. package/dist/esm/utrecht-heading-2_3.entry.js +4 -4
  73. package/dist/esm/utrecht-heading-4.entry.js +2 -2
  74. package/dist/esm/utrecht-heading-5.entry.js +2 -2
  75. package/dist/esm/utrecht-heading-6.entry.js +2 -2
  76. package/dist/esm/utrecht-heading.entry.js +2 -2
  77. package/dist/esm/utrecht-html-content.entry.js +2 -2
  78. package/dist/types/form-field-checkbox/{stencil.d.ts → web-component/index.stencil.d.ts} +1 -1
  79. package/dist/types/form-field-description/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  80. package/dist/types/form-field-textarea/{stencil.d.ts → web-component/index.stencil.d.ts} +1 -1
  81. package/dist/types/form-field-textbox/{stencil.d.ts → web-component/index.stencil.d.ts} +1 -1
  82. package/dist/types/heading/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  83. package/dist/types/heading-1/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  84. package/dist/types/heading-2/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  85. package/dist/types/heading-3/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  86. package/dist/types/heading-4/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  87. package/dist/types/heading-5/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  88. package/dist/types/heading-6/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  89. package/dist/types/html-content/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  90. package/package.json +2 -2
  91. package/dist/collection/heading/bem.js +0 -36
@@ -0,0 +1,4 @@
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>`;
@@ -26,10 +26,10 @@ export class FormFieldTextarea {
26
26
  static get is() { return "utrecht-form-field-textarea"; }
27
27
  static get encapsulation() { return "shadow"; }
28
28
  static get originalStyleUrls() { return {
29
- "$": ["stencil.scss"]
29
+ "$": ["index.scss"]
30
30
  }; }
31
31
  static get styleUrls() { return {
32
- "$": ["stencil.css"]
32
+ "$": ["index.css"]
33
33
  }; }
34
34
  static get properties() { return {
35
35
  "disabled": {
@@ -0,0 +1,14 @@
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>`;
@@ -31,10 +31,10 @@ export class FormFieldTextbox {
31
31
  static get is() { return "utrecht-form-field-textbox"; }
32
32
  static get encapsulation() { return "shadow"; }
33
33
  static get originalStyleUrls() { return {
34
- "$": ["stencil.scss"]
34
+ "$": ["index.scss"]
35
35
  }; }
36
36
  static get styleUrls() { return {
37
- "$": ["stencil.css"]
37
+ "$": ["index.css"]
38
38
  }; }
39
39
  static get properties() { return {
40
40
  "autoComplete": {
@@ -0,0 +1,21 @@
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>`;
@@ -33,10 +33,10 @@ export class Heading {
33
33
  static get is() { return "utrecht-heading"; }
34
34
  static get encapsulation() { return "shadow"; }
35
35
  static get originalStyleUrls() { return {
36
- "$": ["stencil.scss"]
36
+ "$": ["index.scss"]
37
37
  }; }
38
38
  static get styleUrls() { return {
39
- "$": ["stencil.css"]
39
+ "$": ["index.css"]
40
40
  }; }
41
41
  static get properties() { return {
42
42
  "level": {
@@ -0,0 +1,4 @@
1
+ export const Heading = ({ level, textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading level="${level}">${textContent}</utrecht-heading>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading1 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h1>${textContent}</h1>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading1 {
7
7
  static get is() { return "utrecht-heading-1"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading1 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-1>${textContent}</utrecht-heading-1>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading2 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h2>${textContent}</h2>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading2 {
7
7
  static get is() { return "utrecht-heading-2"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading2 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-2>${textContent}</utrecht-heading-2>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading3 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h3>${textContent}</h3>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading3 {
7
7
  static get is() { return "utrecht-heading-3"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading3 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-3>${textContent}</utrecht-heading-3>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading4 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h4>${textContent}</h4>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading4 {
7
7
  static get is() { return "utrecht-heading-4"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading4 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-4>${textContent}</utrecht-heading-4>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading5 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h5>${textContent}</h5>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading5 {
7
7
  static get is() { return "utrecht-heading-5"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading5 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-5>${textContent}</utrecht-heading-5>
4
+ </section>`;
@@ -0,0 +1,4 @@
1
+ export const Heading6 = ({ textContent = '' }) =>
2
+ `<section class="utrecht-html">
3
+ <h6>${textContent}</h6>
4
+ </section>`;
@@ -7,9 +7,9 @@ export class Heading6 {
7
7
  static get is() { return "utrecht-heading-6"; }
8
8
  static get encapsulation() { return "shadow"; }
9
9
  static get originalStyleUrls() { return {
10
- "$": ["stencil.scss"]
10
+ "$": ["index.scss"]
11
11
  }; }
12
12
  static get styleUrls() { return {
13
- "$": ["stencil.css"]
13
+ "$": ["index.css"]
14
14
  }; }
15
15
  }
@@ -0,0 +1,4 @@
1
+ export const Heading6 = ({ textContent = '' }) =>
2
+ `<section>
3
+ <utrecht-heading-6>${textContent}</utrecht-heading-6>
4
+ </section>`;
@@ -10,9 +10,9 @@ export class HTMLContent {
10
10
  }
11
11
  static get is() { return "utrecht-html-content"; }
12
12
  static get originalStyleUrls() { return {
13
- "$": ["stencil.scss"]
13
+ "$": ["index.scss"]
14
14
  }; }
15
15
  static get styleUrls() { return {
16
- "$": ["stencil.css"]
16
+ "$": ["index.css"]
17
17
  }; }
18
18
  }
@@ -0,0 +1 @@
1
+ export const HTMLContent = ({ content }) => `<utrecht-html-content>${content}</utrecht-html-content>`;