@utrecht/web-component-library-stencil 1.0.0-alpha.202 → 1.0.0-alpha.205
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 +1 -1
- package/dist/cjs/utrecht-article.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-button_2.cjs.entry.js +4 -4
- package/dist/cjs/utrecht-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-document.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-eherkenning-logo.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-eidas-logo.cjs.entry.js +2 -2
- package/dist/collection/alternate-lang-nav/{bem.js → css/template.js} +1 -1
- package/dist/collection/article/{bem.js → css/template.js} +0 -0
- package/dist/collection/article/html/template.js +5 -0
- package/dist/collection/article/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/article/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/article/web-component/template.js +1 -0
- package/dist/collection/backdrop/css/template.js +28 -0
- package/dist/collection/backdrop/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/backdrop/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/backdrop/{checkerboard.js → web-component/template.js} +1 -4
- package/dist/collection/blockquote/{bem.js → css/template.js} +0 -0
- package/dist/collection/blockquote/html/template.js +6 -0
- package/dist/collection/breadcrumb/{bem.js → css/template.js} +0 -0
- package/dist/collection/breadcrumb/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/breadcrumb/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/breadcrumb/web-component/template.js +4 -0
- package/dist/collection/checkbox/{bem.js → css/template.js} +0 -0
- package/dist/collection/checkbox/html/template.js +14 -0
- package/dist/collection/checkbox/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/checkbox/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/checkbox/web-component/template.js +8 -0
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/digid-logo/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/digid-logo/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/digid-logo/web-component/template.js +1 -0
- package/dist/collection/document/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/document/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/document/web-component/template.js +1 -0
- package/dist/collection/eherkenning-logo/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/eherkenning-logo/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/eherkenning-logo/web-component/template.js +1 -0
- package/dist/collection/eidas-logo/{stencil.css → web-component/index.css} +0 -0
- package/dist/collection/eidas-logo/{stencil.js → web-component/index.stencil.js} +2 -2
- package/dist/collection/eidas-logo/web-component/template.js +1 -0
- package/dist/collection/emphasis/{bem.js → css/template.js} +0 -0
- package/dist/collection/emphasis/html/template.js +20 -0
- package/dist/collection/form-label/{bem.js → css/template.js} +0 -0
- package/dist/collection/form-label/html/template.js +5 -0
- package/dist/custom-elements/index.js +30 -30
- package/dist/esm/utrecht-article.entry.js +2 -2
- package/dist/esm/utrecht-backdrop.entry.js +2 -2
- package/dist/esm/utrecht-breadcrumb.entry.js +2 -2
- package/dist/esm/utrecht-button_2.entry.js +4 -4
- package/dist/esm/utrecht-checkbox.entry.js +2 -2
- package/dist/esm/utrecht-document.entry.js +2 -2
- package/dist/esm/utrecht-eherkenning-logo.entry.js +2 -2
- package/dist/esm/utrecht-eidas-logo.entry.js +2 -2
- package/dist/types/article/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/backdrop/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/breadcrumb/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/checkbox/{stencil.d.ts → web-component/index.stencil.d.ts} +1 -1
- package/dist/types/digid-logo/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/document/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/eherkenning-logo/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/dist/types/eidas-logo/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
- package/package.json +2 -2
- package/dist/collection/backdrop/bem.js +0 -12
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Combine it with the latest Web Components (for convenience you can use the unpkg
|
|
|
24
24
|
Then you can go ahead and see the result:
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
|
-
<utrecht-html-content>
|
|
27
|
+
<utrecht-html-content class="utrecht-theme">
|
|
28
28
|
<h1>Page styled with NL Design System</h1>
|
|
29
29
|
</utrecht-html-content>
|
|
30
30
|
```
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const indexCss = ".utrecht-article{max-inline-size:var(--utrecht-article-max-inline-size)}:host{display:block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const Article = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const Article = class {
|
|
|
14
14
|
return (index.h("article", { class: "utrecht-article" }, index.h("slot", null)));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
Article.style =
|
|
17
|
+
Article.style = indexCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_article = Article;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const indexCss = ".utrecht-backdrop{background-color:var(--utrecht-backdrop-background-color);bottom:0;color:var(--utrecht-backdrop-color);display:block;left:0;opacity:var(--utrecht-backdrop-opacity);position:absolute;right:0;top:0;user-select:none;z-index:var(--utrecht-backdrop-z-index)}.utrecht-backdrop--viewport{position:fixed}:host{display:block}:host([hidden]){display:none !important}";
|
|
9
9
|
|
|
10
10
|
const Backdrop = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -16,6 +16,6 @@ const Backdrop = class {
|
|
|
16
16
|
return (index.h("div", { class: clsx_m.clsx('utrecht-backdrop', viewport && 'utrecht-backdrop--viewport') }, index.h("slot", null)));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
Backdrop.style =
|
|
19
|
+
Backdrop.style = indexCss;
|
|
20
20
|
|
|
21
21
|
exports.utrecht_backdrop = Backdrop;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const indexCss = ".utrecht-breadcrumb{--utrecht-focus-background-color:var(--utrecht-breadcrumb-link-focus-background-color);--utrecht-link-background-color:var(--utrecht-breadcrumb-link-background-color);--utrecht-link-color:var(--utrecht-breadcrumb-link-color);--utrecht-link-focus-color:var(--utrecht-breadcrumb-link-focus-color, var(--utrecht-breadcrumb-link-color));--utrecht-link-focus-text-decoration:var(--utrecht-link-text-decoration);--utrecht-link-hover-color:var(--utrecht-breadcrumb-link-color);--utrecht-link-hover-text-decoration:var(--utrecht-link-text-decoration);--utrecht-link-visited-color:var(--utrecht-breadcrumb-link-color);--utrecht-link-visited-text-decoration:var(--utrecht-link-text-decoration);font-family:var(--utrecht-document-font-family, inherit);font-size:var(--utrecht-breadcrumb-font-size);text-transform:var(--utrecht-document-text-transform, inherit)}.utrecht-breadcrumb__list{block-size:var(--utrecht-breadcrumb-block-size);display:flex}ol.utrecht-breadcrumb__list{list-style:none;margin-block-end:0;margin-block-start:0;padding-inline-start:0}.utrecht-breadcrumb__item{block-size:100%}.utrecht-breadcrumb__link{background-color:var(--utrecht-breadcrumb-link-background-color);display:block;padding-block-end:var(--utrecht-breadcrumb-item-padding-block-end, 8px);padding-block-start:var(--utrecht-breadcrumb-item-padding-block-start, 8px);padding-inline-end:var(--utrecht-breadcrumb-item-padding-inline-end, 8px);padding-inline-start:var(--utrecht-breadcrumb-item-padding-inline-start, 8px)}.utrecht-breadcrumb--arrows{--utrecht-breadcrumb-arrow-size:24px;overflow:hidden}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link{padding-inline-end:0;position:relative}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after,.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before{border-block-end-width:var(--utrecht-breadcrumb-block-size);border-block-start-width:var(--utrecht-breadcrumb-block-size);border-color:transparent;border-style:solid;content:\" \";display:block;height:0;left:100%;margin-block-start:calc(-1 * var(--utrecht-breadcrumb-block-size));position:absolute;top:50%;width:0}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after{border-inline-start-color:var(--utrecht-breadcrumb-link-background-color);border-inline-start-width:var(--utrecht-breadcrumb-arrow-size);z-index:2}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before{border-inline-start-color:var(--utrecht-document-background-color);border-inline-start-width:var(--utrecht-breadcrumb-arrow-size);margin-block-start:calc(-1 * var(--utrecht-breadcrumb-block-size));margin-inline-start:1px;z-index:1}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link--focus,.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link:focus{background-color:var(--utrecht-breadcrumb-link-focus-background-color)}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link--focus::after,.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link:focus::after{border-inline-start-color:var(--utrecht-breadcrumb-link-focus-background-color)}.utrecht-breadcrumb--arrows .utrecht-breadcrumb__item~.utrecht-breadcrumb__item .utrecht-breadcrumb__link{padding-inline-start:calc(var(--utrecht-breadcrumb-item-padding-inline-start) + var(--utrecht-breadcrumb-arrow-size))}.utrecht-breadcrumb__item~.utrecht-breadcrumb__item{margin-inline-start:var(--utrecht-breadcrumb-item-divider-inline-size)}.utrecht-link{color:var(--utrecht-link-color, blue);text-decoration:var(--utrecht-link-text-decoration, underline);text-decoration-skip-ink:all;text-decoration-thickness:max(var(--utrecht-link-text-decoration-thickness), 1px);text-underline-offset:var(--utrecht-link-text-underline-offset)}.utrecht-link--icon-left{background-image:var(--utrecht-link-icon-left-background-image, none);background-position:0 0.25em;background-repeat:no-repeat;color:var(--utrecht-link-color, blue);font-weight:var(--utrecht-typography-weight-scale-bold-font-weight);padding-inline-start:var(--utrecht-space-block-md);text-decoration:none}.utrecht-link:visited,.utrecht-link--visited{color:var(--utrecht-link-visited-color, var(--utrecht-link-color))}.utrecht-link:hover,.utrecht-link--hover{color:var(--utrecht-link-hover-color, var(--utrecht-link-color));text-decoration:var(--utrecht-link-hover-text-decoration, var(--utrecht-link-text-decoration, underline));text-decoration-skip:none;text-decoration-skip-ink:none;text-decoration-thickness:max(var(--utrecht-link-hover-text-decoration-thickness, var(--utrecht-link-text-decoration-thickness)), 1px)}.utrecht-link:active,.utrecht-link--active{color:var(--utrecht-link-active-color, var(--utrecht-link-color))}.utrecht-link--focus,.utrecht-link:focus{color:var(--utrecht-link-focus-color, var(--utrecht-link-color));text-decoration:var(--utrecht-link-focus-text-decoration, var(--utrecht-link-text-decoration, underline));text-decoration-skip:none;text-decoration-skip-ink:none;text-decoration-thickness:max(var(--utrecht-link-focus-text-decoration-thickness, var(--utrecht-link-text-decoration-thickness)), 1px)}.utrecht-link--focus-visible,.utrecht-link:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:var(--utrecht-focus-outline-offset, 0);outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-link:focus:not(:focus-visible){box-shadow:none;outline-style:none}.utrecht-link--telephone{white-space:nowrap}:host{display:block}:host([hidden]){display:none !important}";
|
|
9
9
|
|
|
10
10
|
const Breadcrumb = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -18,6 +18,6 @@ const Breadcrumb = class {
|
|
|
18
18
|
return (index.h("nav", { class: clsx_m.clsx('utrecht-breadcrumb', variant === 'arrows' && 'utrecht-breadcrumb--arrows') }, index.h("ol", { class: "utrecht-breadcrumb__list", itemscope: true, itemtype: "https://schema.org/BreadcrumbList" }, items.map(({ href, title, current }, index$1) => (index.h("li", { key: href, class: "utrecht-breadcrumb__item", itemscope: true, itemtype: "https://schema.org/ListItem", itemprop: "itemListElement" }, index.h("a", { class: clsx_m.clsx('utrecht-breadcrumb__link', 'utrecht-link', current && 'utrecht-link--current'), href: href, "aria-current": current ? 'location' : null, itemprop: "item" }, index.h("span", { class: "utrecht-breadcrumb__text", itemprop: "name" }, title), index.h("meta", { itemprop: "position", content: index$1 + 1 }))))))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
Breadcrumb.style =
|
|
21
|
+
Breadcrumb.style = indexCss;
|
|
22
22
|
|
|
23
23
|
exports.utrecht_breadcrumb = Breadcrumb;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const stencilCss
|
|
8
|
+
const stencilCss = ".utrecht-button{background-color:var(--utrecht-button-primary-action-background-color, var(--utrecht-button-background-color));border-color:var(--utrecht-button-border-color, transparent);border-radius:var(--utrecht-button-border-radius);border-style:solid;border-width:var(--utrecht-button-border-width, 0);color:var(--utrecht-button-primary-action-color, var(--utrecht-button-color));font-family:var(--utrecht-button-font-family, var(--utrecht-document-font-family));font-size:var(--utrecht-button-font-size, var(--utrecht-document-font-family));font-weight:var(--utrecht-button-font-weight);inline-size:var(--utrecht-button-inline-size, auto);letter-spacing:var(--utrecht-button-letter-spacing);min-block-size:var(--utrecht-button-min-block-size, auto);min-inline-size:var(--utrecht-button-min-inline-size, 0);padding-block-end:var(--utrecht-button-padding-block-end);padding-block-start:var(--utrecht-button-padding-block-start);padding-inline-end:var(--utrecht-button-padding-inline-end);padding-inline-start:var(--utrecht-button-padding-inline-start);text-transform:var(--utrecht-button-text-transform);user-select:none}.utrecht-button--distanced{margin-block-end:var(--utrecht-button-margin-block-end);margin-block-start:var(--utrecht-button-margin-block-start);margin-inline-end:var(--utrecht-button-margin-inline-end);margin-inline-start:var(--utrecht-button-margin-inline-start)}.utrecht-button--submit{cursor:var(--utrecht-action-submit-cursor)}.utrecht-button--busy{cursor:var(--utrecht-action-busy-cursor)}.utrecht-button:disabled,.utrecht-button--disabled{background-color:var(--utrecht-button-disabled-background-color, var(--utrecht-button-background-color));border-color:var(--utrecht-button-disabled-border-color, var(--utrecht-button-border-color));color:var(--utrecht-button-disabled-color, var(--utrecht-button-color));cursor:var(--utrecht-action-disabled-cursor)}.utrecht-button:active:not(:disabled):not([aria-disabled=true]):not(.utrecht-button--disabled),.utrecht-button--active{background-color:var(--utrecht-button-active-background-color, var(--utrecht-button-background-color));border-color:var(--utrecht-button-active-border-color, var(--utrecht-button-border-color));color:var(--utrecht-button-active-color, var(--utrecht-button-color))}.utrecht-button--focus-visible,.utrecht-button:focus:not(:disabled):not([aria-disabled=true]):not(.utrecht-button--disabled){box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:var(--utrecht-focus-outline-offset, 0);outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-button--focus,.utrecht-button:focus:not(:disabled):not([aria-disabled=true]):not(.utrecht-button--disabled){background-color:var(--utrecht-button-focus-background-color, var(--utrecht-button-background-color));border-color:var(--utrecht-button-focus-border-color, var(--utrecht-button-border-color));color:var(--utrecht-button-focus-color, var(--utrecht-button-color))}.utrecht-button:focus:not(:focus-visible){box-shadow:none;outline-style:none}.utrecht-button--hover:not(:disabled),.utrecht-button:hover:not(:disabled):not([aria-disabled=true]):not(.utrecht-button--disabled){background-color:var(--utrecht-button-hover-background-color, var(--utrecht-button-background-color));border-color:var(--utrecht-button-hover-border-color, var(--utrecht-button-border-color));color:var(--utrecht-button-hover-color, var(--utrecht-button-color));transform:scale(var(--utrecht-button-focus-transform-scale, 1))}:host{display:inline-block}:host([hidden]){display:none !important}";
|
|
9
9
|
|
|
10
10
|
const Button = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -40,9 +40,9 @@ const Button = class {
|
|
|
40
40
|
}
|
|
41
41
|
get host() { return index.getElement(this); }
|
|
42
42
|
};
|
|
43
|
-
Button.style = stencilCss
|
|
43
|
+
Button.style = stencilCss;
|
|
44
44
|
|
|
45
|
-
const
|
|
45
|
+
const indexCss = ":host{display:inline}:host([hidden]){display:none !important}svg{height:100%;max-height:var(--utrecht-digid-logo-max-height, var(--utrecht-logo-max-height, 50px));max-width:var(--utrecht-digid-logo-max-width, var(--utrecht-logo-max-width, 50px));width:100%}";
|
|
46
46
|
|
|
47
47
|
const DigidLogo = class {
|
|
48
48
|
constructor(hostRef) {
|
|
@@ -52,7 +52,7 @@ const DigidLogo = class {
|
|
|
52
52
|
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 150 150" }, index.h("title", null, "DigiD"), index.h("path", { d: "M136 150H14c-8 0-14-6-14-14V14C0 6 6 0 14 0h122c8 0 14 6 14 14v122c0 8-6 14-14 14z" }), index.h("path", { d: "M17 115V79h10c12 0 19 6 19 17 0 13-8 19-19 19H17zm6-6h4c7 0 12-4 12-13 0-8-5-12-13-12h-3v25zM54 77c3 0 4 1 4 3s-1 4-4 4c-2 0-3-2-3-4s1-3 3-3zm3 38h-6V88h6v27zM72 109h6c6 0 9 3 9 7 0 5-4 9-14 9-8 0-11-2-11-7 0-2 1-4 4-6l-2-3c0-2 1-3 3-4-3-2-4-4-4-8 0-6 4-10 11-10l4 1h9v4h-4l2 5c0 6-4 9-12 9h-3l-1 1c0 2 1 2 3 2zm1 12c6 0 8-2 8-4s-1-2-3-2l-9-1-2 3c0 2 2 4 6 4zm6-24c0-3-2-5-5-5s-5 1-5 5 1 5 5 5c3 0 5-1 5-5z", fill: "#FFFFFF" }), index.h("path", { d: "M94 77c2 0 3 1 3 3s-1 4-3 4c-3 0-4-2-4-4s1-3 4-3zm3 38h-6V88h6v27zM105 115V79h10c12 0 18 6 18 17 0 13-7 19-19 19h-9zm6-6h4c7 0 12-4 12-13 0-8-5-12-13-12h-3v25z", fill: "#E17000" })));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
DigidLogo.style =
|
|
55
|
+
DigidLogo.style = indexCss;
|
|
56
56
|
|
|
57
57
|
exports.utrecht_button = Button;
|
|
58
58
|
exports.utrecht_digid_logo = DigidLogo;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const indexCss = ".utrecht-checkbox{margin-block-end:0;margin-block-start:0;margin-inline-end:0;margin-inline-start:0}.utrecht-checkbox--disabled,.utrecht-checkbox--html-input:disabled{cursor:var(--utrecht-action-disabled-cursor)}.utrecht-checkbox--focus-visible{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:var(--utrecht-focus-outline-offset, 0);outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-checkbox--html-input:focus{box-shadow:0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);outline-color:var(--utrecht-focus-outline-color, transparent);outline-offset:var(--utrecht-focus-outline-offset, 0);outline-style:var(--utrecht-focus-outline-style, solid);outline-width:var(--utrecht-focus-outline-width, 0)}.utrecht-checkbox--html-input:focus:not(:focus-visible){box-shadow:none;outline-style:none}:host{display:block}:host([hidden]){display:none !important}";
|
|
9
9
|
|
|
10
10
|
const Checkbox = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -27,6 +27,6 @@ const Checkbox = class {
|
|
|
27
27
|
} }));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Checkbox.style =
|
|
30
|
+
Checkbox.style = indexCss;
|
|
31
31
|
|
|
32
32
|
exports.utrecht_checkbox = Checkbox;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const indexCss = ".utrecht-document{color:var(--utrecht-document-color, inherit);font-family:var(--utrecht-document-font-family, inherit);font-size:var(--utrecht-document-font-size, inherit);font-weight:var(--utrecht-document-font-weight, inherit);line-height:var(--utrecht-document-line-height, inherit);text-rendering:optimizeLegibility}.utrecht-document :lang(ar){letter-spacing:0 !important}.utrecht-document--surface{background-color:var(--utrecht-document-background-color, inherit)}:host{display:block}:host([hidden]){display:none !important}";
|
|
8
8
|
|
|
9
9
|
const Document = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const Document = class {
|
|
|
14
14
|
return (index.h("div", { class: "utrecht-document" }, index.h("slot", null)));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
Document.style =
|
|
17
|
+
Document.style = indexCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_document = Document;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const indexCss = ":host{display:inline}:host([hidden]){display:none !important}svg{height:100%;max-height:var(--utrecht-digid-logo-max-height, var(--utrecht-logo-max-height, 50px));max-width:var(--utrecht-digid-logo-max-width, var(--utrecht-logo-max-width, 50px));width:100%}";
|
|
8
8
|
|
|
9
9
|
const EherkenningLogo = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const EherkenningLogo = class {
|
|
|
14
14
|
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "-1 0 81 80" }, index.h("title", null, "Eherkenning"), index.h("rect", { fill: "#E0E0E0", width: "80", height: "80" }), index.h("path", { "fill-rule": "evenodd", fill: "#00328C", d: "M37.363,23.178c0,2.027,0,4.055,0,6.08c-4.257,0-9.55,0-14.208,0 c-1.662,0-3.648-0.207-4.799,0.193c-1.041,0.359-1.796,1.169-2.176,2.111c-0.439,1.084-0.32,2.8-0.32,4.414c0,3.425,0,6.055,0,9.475 c0,1.531-0.159,3.325,0.191,4.479c0.316,1.042,1.316,2.194,2.561,2.496c1.318,0.319,3.094,0.064,4.672,0.064 c4.599,0,9.521,0,14.08,0c0,2.025,0,4.053,0,6.08c-6.402-0.083-12.492,0.112-18.176,0c-4.937-0.099-8.966-3.966-9.344-8.833 c-0.226-2.883,0-5.901,0-8.769c0-2.971-0.19-5.932,0-8.767c0.328-4.896,4.208-8.676,8.959-9.024c3.002-0.222,6.129,0,9.28,0 C31.145,23.178,34.26,23.178,37.363,23.178z" }), index.h("path", { "fill-rule": "evenodd", fill: "#FF0079", d: "M42.867,23.178c1.962,0,3.926,0,5.888,0c0,4.864,0,9.729,0,14.592 c-1.984,0-3.969,0-5.952,0c0-4.801,0-9.6,0-14.399C42.797,23.279,42.792,23.188,42.867,23.178z" }), index.h("path", { "fill-rule": "evenodd", fill: "#FF0079", d: "M64.434,23.178c1.941,0,3.883,0,5.824,0c0,11.798,0,23.595,0,35.393 c-1.962,0-3.926,0-5.888,0c0-4.992,0-9.984,0-14.977c-5.077,0-10.155,0-15.232,0c0.824-1.95,1.651-3.896,2.56-5.76 c4.203,0,8.405,0,12.608,0c0.15-4.693,0.021-9.664,0.064-14.464C64.365,23.279,64.36,23.188,64.434,23.178z" }), index.h("path", { "fill-rule": "evenodd", fill: "#00328C", d: "M19.89,37.77c5.376,0,10.752,0,16.129,0c-0.772,2.022-1.748,3.843-2.56,5.824 c-4.544,0-9.088,0-13.633,0c0-1.877,0-3.755,0-5.633C19.821,37.87,19.816,37.781,19.89,37.77z" }), index.h("path", { "fill-rule": "evenodd", fill: "#FF0079", d: "M42.93,43.594c1.941,0,3.883,0,5.824,0c0,4.992,0,9.984,0,14.977 c-1.984,0-3.969,0-5.952,0c0-4.93,0-9.856,0-14.783C42.8,43.678,42.851,43.62,42.93,43.594z" })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
EherkenningLogo.style =
|
|
17
|
+
EherkenningLogo.style = indexCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_eherkenning_logo = EherkenningLogo;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8c6952a4.js');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const indexCss = ":host{display:inline}:host([hidden]){display:none !important}svg{height:100%;max-height:var(--utrecht-digid-logo-max-height, var(--utrecht-logo-max-height, 50px));max-width:var(--utrecht-digid-logo-max-width, var(--utrecht-logo-max-width, 50px));width:100%}";
|
|
8
8
|
|
|
9
9
|
const EidasLogo = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,6 +14,6 @@ const EidasLogo = class {
|
|
|
14
14
|
return (index.h("svg", { viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M21 17.3383C21 18.2955 20.2291 19.0664 19.272 19.0664H1.72805C0.770872 19.0664 0 18.2955 0 17.3383V1.72805C0 0.770879 0.777296 0 1.72805 0H19.272C20.2291 0 21 0.777303 21 1.72805V17.3383Z", fill: "#2C4375" }), index.h("path", { d: "M7.88867 19.0984V15.9057C7.88867 14.5952 8.94862 13.5353 10.2591 13.5353H17.0493C18.3598 13.5353 19.4197 14.6017 19.4197 15.9057V19.0984", fill: "white" }), index.h("path", { d: "M9.38546 9.78369C9.55891 9.19911 9.83513 8.72373 10.2141 8.34472C10.5932 7.97213 11.075 7.69589 11.6724 7.51602C12.2698 7.33615 12.9765 7.24622 13.8051 7.24622C14.4989 7.24622 15.1028 7.32973 15.6231 7.49675C16.1435 7.66377 16.5932 7.92716 16.985 8.2869C17.4411 8.71089 17.7495 9.20553 17.9101 9.76442C18.0707 10.3233 18.1542 11.0299 18.1542 11.8651V17.0428C18.1542 17.486 18.0514 17.8201 17.8523 18.0385C17.6467 18.2569 17.3833 18.3661 17.0557 18.3661C16.7281 18.3661 16.4647 18.2569 16.272 18.0385C16.0792 17.8201 15.9765 17.4925 15.9765 17.0428V11.7173C15.9765 10.7987 15.803 10.1113 15.4497 9.66163C15.0964 9.21196 14.4989 8.98069 13.6445 8.98069C13.0278 8.98069 12.5525 9.0899 12.2056 9.31474C11.8651 9.53958 11.6274 9.84793 11.4925 10.2526C11.3576 10.6574 11.2934 11.1584 11.2934 11.7559V17.0428C11.2934 17.4796 11.197 17.8137 10.9979 18.0321C10.7987 18.2505 10.5353 18.3597 10.1949 18.3597C9.87367 18.3597 9.6103 18.2505 9.41758 18.0321C9.21844 17.8137 9.12207 17.4796 9.12207 17.0428V11.8779C9.12207 11.0621 9.21201 10.3683 9.38546 9.78369Z", fill: "white" }), index.h("path", { d: "M13.169 0.648804L13.683 2.0942L15.3275 2.08778L13.9913 2.98071L14.5052 4.41968L13.169 3.52675L11.8457 4.41968L12.3532 2.98071L11.0234 2.08778L12.668 2.0942L13.169 0.648804Z", fill: "#F2CD23" }), index.h("path", { d: "M18.2893 1.59314L18.7968 3.03854L20.4413 3.03211L19.1116 3.91862L19.6191 5.35759L18.2893 4.46466L16.9595 5.35759L17.4735 3.91862L16.1309 3.03211L17.7882 3.03854L18.2893 1.59314Z", fill: "#F2CD23" }), index.h("path", { d: "M3.60369 14.833L4.11118 16.2784L5.75573 16.272L4.41954 17.1585L4.93346 18.5975L3.60369 17.7045L2.27392 18.5975L2.78784 17.1585L1.45166 16.272L3.09619 16.2784L3.60369 14.833Z", fill: "#F2CD23" }), index.h("path", { d: "M4.80536 5.51819L5.31284 6.96358L6.95739 6.95716L5.62763 7.84367L6.13512 9.28264L4.80536 8.38971L3.47559 9.28264L3.98308 7.84367L2.65332 6.95716L4.30428 6.96358L4.80536 5.51819Z", fill: "#F2CD23" }), index.h("path", { d: "M8.43483 2.07495L8.93591 3.52035L10.5869 3.51392L9.25068 4.40043L9.76459 5.83941L8.43483 4.94647L7.10507 5.83941L7.61256 4.40043L6.27637 3.51392L7.92733 3.52035L8.43483 2.07495Z", fill: "#F2CD23" }), index.h("path", { d: "M3.12176 10.3234L3.62925 11.7688L5.28021 11.7623L3.94402 12.6488L4.45152 14.0878L3.12176 13.1949L1.79198 14.0878L2.3059 12.6488L0.969727 11.7623L2.61426 11.7688L3.12176 10.3234Z", fill: "#F2CD23" })));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
EidasLogo.style =
|
|
17
|
+
EidasLogo.style = indexCss;
|
|
18
18
|
|
|
19
19
|
exports.utrecht_eidas_logo = EidasLogo;
|
|
File without changes
|
|
File without changes
|
|
@@ -7,9 +7,9 @@ export class Article {
|
|
|
7
7
|
static get is() { return "utrecht-article"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
9
9
|
static get originalStyleUrls() { return {
|
|
10
|
-
"$": ["
|
|
10
|
+
"$": ["index.scss"]
|
|
11
11
|
}; }
|
|
12
12
|
static get styleUrls() { return {
|
|
13
|
-
"$": ["
|
|
13
|
+
"$": ["index.css"]
|
|
14
14
|
}; }
|
|
15
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Article = ({ content }) => `<utrecht-article>${content}</utrecht-article>`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
|
|
7
|
+
export const defaultArgs = {
|
|
8
|
+
viewport: false,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const Backdrop = ({ viewport = false }) =>
|
|
12
|
+
`<div class="${clsx('utrecht-backdrop', viewport && 'utrecht-backdrop--viewport')}"></div>`;
|
|
13
|
+
|
|
14
|
+
export const checkerboard = (story) =>
|
|
15
|
+
`<div style="
|
|
16
|
+
--checkerboard-color-1: #000000;
|
|
17
|
+
--checkerboard-color-2: #ffffff;
|
|
18
|
+
--checkerboard-size: 16px;
|
|
19
|
+
background-color: var(--checkerboard-color-2);
|
|
20
|
+
background-image: linear-gradient(45deg, var(--checkerboard-color-1) 25%, transparent 25%, transparent 75%, var(--checkerboard-color-1) 75%,var(--checkerboard-color-1)), linear-gradient(45deg, var(--checkerboard-color-1) 25%, transparent 25%, transparent 75%, var(--checkerboard-color-1) 75%, var(--checkerboard-color-1));
|
|
21
|
+
background-position: 0 0, var(--checkerboard-size) var(--checkerboard-size);
|
|
22
|
+
background-size: calc(var(--checkerboard-size) * 2) calc(var(--checkerboard-size) * 2);
|
|
23
|
+
height: 100%;
|
|
24
|
+
min-height: calc(40 * var(--checkerboard-size));
|
|
25
|
+
min-width: calc(40 * var(--checkerboard-size));
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 100%;
|
|
28
|
+
">${story()}</div>`;
|
|
File without changes
|
|
@@ -13,10 +13,10 @@ export class Backdrop {
|
|
|
13
13
|
static get is() { return "utrecht-backdrop"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
15
15
|
static get originalStyleUrls() { return {
|
|
16
|
-
"$": ["
|
|
16
|
+
"$": ["index.scss"]
|
|
17
17
|
}; }
|
|
18
18
|
static get styleUrls() { return {
|
|
19
|
-
"$": ["
|
|
19
|
+
"$": ["index.css"]
|
|
20
20
|
}; }
|
|
21
21
|
static get properties() { return {
|
|
22
22
|
"viewport": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -18,10 +18,10 @@ export class Breadcrumb {
|
|
|
18
18
|
static get is() { return "utrecht-breadcrumb"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
20
20
|
static get originalStyleUrls() { return {
|
|
21
|
-
"$": ["
|
|
21
|
+
"$": ["index.scss"]
|
|
22
22
|
}; }
|
|
23
23
|
static get styleUrls() { return {
|
|
24
|
-
"$": ["
|
|
24
|
+
"$": ["index.css"]
|
|
25
25
|
}; }
|
|
26
26
|
static get properties() { return {
|
|
27
27
|
"json": {
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const defaultArgs = {
|
|
2
|
+
checked: false,
|
|
3
|
+
disabled: false,
|
|
4
|
+
invalid: false,
|
|
5
|
+
required: false,
|
|
6
|
+
value: '',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const Checkbox = ({ checked = false, disabled = false, invalid = false, required = false, value = '' }) =>
|
|
10
|
+
`<div class="utrecht-html">
|
|
11
|
+
<input type="checkbox"${checked ? ' checked' : ''}${invalid ? ' aria-invalid="true"' : ''}${
|
|
12
|
+
disabled ? ' disabled' : ''
|
|
13
|
+
}${required ? ' required' : ''}${value ? ` value="${value}"` : ''}>
|
|
14
|
+
</div>`;
|
|
File without changes
|
|
@@ -21,10 +21,10 @@ export class Checkbox {
|
|
|
21
21
|
static get is() { return "utrecht-checkbox"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
23
23
|
static get originalStyleUrls() { return {
|
|
24
|
-
"$": ["
|
|
24
|
+
"$": ["index.scss"]
|
|
25
25
|
}; }
|
|
26
26
|
static get styleUrls() { return {
|
|
27
|
-
"$": ["
|
|
27
|
+
"$": ["index.css"]
|
|
28
28
|
}; }
|
|
29
29
|
static get properties() { return {
|
|
30
30
|
"disabled": {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const defaultArgs = {
|
|
2
|
+
checked: false,
|
|
3
|
+
disabled: false,
|
|
4
|
+
value: '',
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const Checkbox = ({ checked = false, disabled = false, value = '' } = defaultArgs) =>
|
|
8
|
+
`<utrecht-checkbox${checked ? ' checked="true"' : ''}${disabled ? ' disabled="true"' : ''} value="${value}" />`;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./article/stencil.js",
|
|
4
|
-
"./backdrop/stencil.js",
|
|
3
|
+
"./article/web-component/index.stencil.js",
|
|
4
|
+
"./backdrop/web-component/index.stencil.js",
|
|
5
5
|
"./badge-counter/stencil.js",
|
|
6
6
|
"./badge-data/stencil.js",
|
|
7
7
|
"./badge-status/stencil.js",
|
|
8
|
-
"./breadcrumb/stencil.js",
|
|
8
|
+
"./breadcrumb/web-component/index.stencil.js",
|
|
9
9
|
"./button/stencil.js",
|
|
10
|
-
"./checkbox/stencil.js",
|
|
10
|
+
"./checkbox/web-component/index.stencil.js",
|
|
11
11
|
"./custom-checkbox/stencil.js",
|
|
12
12
|
"./digid-button/stencil.js",
|
|
13
|
-
"./digid-logo/stencil.js",
|
|
14
|
-
"./document/stencil.js",
|
|
15
|
-
"./eherkenning-logo/stencil.js",
|
|
16
|
-
"./eidas-logo/stencil.js",
|
|
13
|
+
"./digid-logo/web-component/index.stencil.js",
|
|
14
|
+
"./document/web-component/index.stencil.js",
|
|
15
|
+
"./eherkenning-logo/web-component/index.stencil.js",
|
|
16
|
+
"./eidas-logo/web-component/index.stencil.js",
|
|
17
17
|
"./form-field-checkbox/stencil.js",
|
|
18
18
|
"./form-field-description/stencil.js",
|
|
19
19
|
"./form-field-textarea/stencil.js",
|
|
File without changes
|
|
@@ -15,9 +15,9 @@ export class DigidLogo {
|
|
|
15
15
|
static get is() { return "utrecht-digid-logo"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
17
17
|
static get originalStyleUrls() { return {
|
|
18
|
-
"$": ["
|
|
18
|
+
"$": ["index.scss"]
|
|
19
19
|
}; }
|
|
20
20
|
static get styleUrls() { return {
|
|
21
|
-
"$": ["
|
|
21
|
+
"$": ["index.css"]
|
|
22
22
|
}; }
|
|
23
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DigidLogo = () => `<utrecht-digid-logo></utrecht-digid-logo>`;
|
|
File without changes
|
|
@@ -7,9 +7,9 @@ export class Document {
|
|
|
7
7
|
static get is() { return "utrecht-document"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
9
9
|
static get originalStyleUrls() { return {
|
|
10
|
-
"$": ["
|
|
10
|
+
"$": ["index.scss"]
|
|
11
11
|
}; }
|
|
12
12
|
static get styleUrls() { return {
|
|
13
|
-
"$": ["
|
|
13
|
+
"$": ["index.css"]
|
|
14
14
|
}; }
|
|
15
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Document = ({ innerHTML }) => `<utrecht-document>${innerHTML}</utrecht-document>`;
|
|
File without changes
|
|
@@ -18,9 +18,9 @@ export class EherkenningLogo {
|
|
|
18
18
|
static get is() { return "utrecht-eherkenning-logo"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
20
20
|
static get originalStyleUrls() { return {
|
|
21
|
-
"$": ["
|
|
21
|
+
"$": ["index.scss"]
|
|
22
22
|
}; }
|
|
23
23
|
static get styleUrls() { return {
|
|
24
|
-
"$": ["
|
|
24
|
+
"$": ["index.css"]
|
|
25
25
|
}; }
|
|
26
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EherkenningLogo = () => `<utrecht-eherkenning-logo></utrecht-eherkenning-logo>`;
|
|
File without changes
|
|
@@ -20,9 +20,9 @@ export class EidasLogo {
|
|
|
20
20
|
static get is() { return "utrecht-eidas-logo"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
22
22
|
static get originalStyleUrls() { return {
|
|
23
|
-
"$": ["
|
|
23
|
+
"$": ["index.scss"]
|
|
24
24
|
}; }
|
|
25
25
|
static get styleUrls() { return {
|
|
26
|
-
"$": ["
|
|
26
|
+
"$": ["index.css"]
|
|
27
27
|
}; }
|
|
28
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EidasLogo = () => `<utrecht-eidas-logo></utrecht-eidas-logo>`;
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
|
File without changes
|