@utrecht/web-component-library-stencil 1.0.0-alpha.85 → 1.0.0-alpha.89
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/button/stencil.d.ts +1 -0
- package/dist/button/stencil.js +4 -1
- package/dist/cjs/{index-faf30303.js → index-b96d9af7.js} +7 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-counter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-data.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-badge-status.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-button_2.cjs.entry.js +58 -0
- package/dist/cjs/utrecht-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-contact-card-template.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-digid-button.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-document.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-form-field-description.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-form-toggle.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-heading-1.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-4.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-5.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading-6.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-heading.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-html-content.cjs.entry.js +2 -2
- package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-cross.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-filter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-instagram.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-loupe.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-whatsapp.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-zoomin.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-icon-zoomout.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-logo.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-page-footer.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-pagination.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-separator.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-sidenav.cjs.entry.js +1 -1
- package/dist/cjs/utrecht-textbox.cjs.entry.js +2 -2
- package/dist/cjs/utrecht.cjs.js +3 -3
- package/dist/collection/button/bem.js +12 -2
- package/dist/collection/button/html.js +16 -0
- package/dist/collection/button/stencil.css +12 -0
- package/dist/collection/button/stencil.js +18 -1
- package/dist/collection/checkbox/bem.js +18 -0
- package/dist/collection/checkbox/stencil.css +4 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/digid-button/bem.js +16 -0
- package/dist/collection/digid-button/stencil.css +31 -0
- package/dist/collection/digid-button/stencil.js +41 -0
- package/dist/collection/digid-logo/stencil.css +18 -0
- package/dist/collection/digid-logo/stencil.js +23 -0
- package/dist/collection/form-field-checkbox/stencil.css +4 -0
- package/dist/collection/form-field-textarea/stencil.css +1 -0
- package/dist/collection/form-field-textbox/stencil.css +1 -0
- package/dist/collection/form-toggle/stencil.css +1 -0
- package/dist/collection/html-content/stencil.css +23 -0
- package/dist/collection/radio-button/bem.js +18 -0
- package/dist/collection/textbox/stencil.css +1 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +56 -24
- package/dist/digid-button/stencil.d.ts +9 -0
- package/dist/digid-button/stencil.js +31 -0
- package/dist/digid-logo/stencil.d.ts +8 -0
- package/dist/digid-logo/stencil.js +29 -0
- package/dist/esm/{index-1f406333.js → index-26eb3bc0.js} +7 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/utrecht-article.entry.js +1 -1
- package/dist/esm/utrecht-badge-counter.entry.js +1 -1
- package/dist/esm/utrecht-badge-data.entry.js +1 -1
- package/dist/esm/utrecht-badge-status.entry.js +1 -1
- package/dist/esm/utrecht-breadcrumb.entry.js +1 -1
- package/dist/esm/utrecht-button_2.entry.js +53 -0
- package/dist/esm/utrecht-checkbox.entry.js +2 -2
- package/dist/esm/utrecht-contact-card-template.entry.js +1 -1
- package/dist/esm/utrecht-digid-button.entry.js +15 -0
- package/dist/esm/utrecht-document.entry.js +1 -1
- package/dist/esm/utrecht-form-field-checkbox.entry.js +2 -2
- package/dist/esm/utrecht-form-field-description.entry.js +1 -1
- package/dist/esm/utrecht-form-field-textarea.entry.js +2 -2
- package/dist/esm/utrecht-form-field-textbox.entry.js +2 -2
- package/dist/esm/utrecht-form-toggle.entry.js +2 -2
- package/dist/esm/utrecht-heading-1.entry.js +1 -1
- package/dist/esm/utrecht-heading-2_3.entry.js +1 -1
- package/dist/esm/utrecht-heading-4.entry.js +1 -1
- package/dist/esm/utrecht-heading-5.entry.js +1 -1
- package/dist/esm/utrecht-heading-6.entry.js +1 -1
- package/dist/esm/utrecht-heading.entry.js +1 -1
- package/dist/esm/utrecht-html-content.entry.js +2 -2
- package/dist/esm/utrecht-icon-arrow.entry.js +1 -1
- package/dist/esm/utrecht-icon-cross.entry.js +1 -1
- package/dist/esm/utrecht-icon-facebook.entry.js +1 -1
- package/dist/esm/utrecht-icon-filter.entry.js +1 -1
- package/dist/esm/utrecht-icon-instagram.entry.js +1 -1
- package/dist/esm/utrecht-icon-linkedin.entry.js +1 -1
- package/dist/esm/utrecht-icon-list.entry.js +1 -1
- package/dist/esm/utrecht-icon-loupe.entry.js +1 -1
- package/dist/esm/utrecht-icon-twitter.entry.js +1 -1
- package/dist/esm/utrecht-icon-whatsapp.entry.js +1 -1
- package/dist/esm/utrecht-icon-zoomin.entry.js +1 -1
- package/dist/esm/utrecht-icon-zoomout.entry.js +1 -1
- package/dist/esm/utrecht-logo.entry.js +1 -1
- package/dist/esm/utrecht-page-footer.entry.js +1 -1
- package/dist/esm/utrecht-pagination.entry.js +1 -1
- package/dist/esm/utrecht-separator.entry.js +1 -1
- package/dist/esm/utrecht-sidenav.entry.js +1 -1
- package/dist/esm/utrecht-textbox.entry.js +2 -2
- package/dist/esm/utrecht.js +3 -3
- package/dist/types/button/stencil.d.ts +1 -0
- package/dist/types/components.d.ts +30 -0
- package/dist/types/digid-button/stencil.d.ts +9 -0
- package/dist/types/digid-logo/stencil.d.ts +8 -0
- package/dist/utrecht/{p-4eb925ae.entry.js → p-023706f2.entry.js} +1 -1
- package/dist/utrecht/{p-7731cdfc.entry.js → p-0b5df266.entry.js} +1 -1
- package/dist/utrecht/{p-fd1b9ce0.entry.js → p-132cfd06.entry.js} +1 -1
- package/dist/utrecht/{p-5177f4f1.entry.js → p-13e4e5e9.entry.js} +1 -1
- package/dist/utrecht/{p-92f45053.js → p-17bfa2b7.js} +0 -0
- package/dist/utrecht/{p-d0413cfd.entry.js → p-201a5ed5.entry.js} +1 -1
- package/dist/utrecht/{p-2db2eb75.entry.js → p-22ccf8ac.entry.js} +1 -1
- package/dist/utrecht/p-3ba93737.entry.js +1 -0
- package/dist/utrecht/p-3f1db63a.entry.js +1 -0
- package/dist/utrecht/{p-3ecb6600.entry.js → p-3f4d1a2b.entry.js} +1 -1
- package/dist/utrecht/{p-fd7c1169.entry.js → p-43de5d0e.entry.js} +1 -1
- package/dist/utrecht/{p-48a61ec7.entry.js → p-48e2e522.entry.js} +1 -1
- package/dist/utrecht/{p-8fe69424.entry.js → p-56879b89.entry.js} +1 -1
- package/dist/utrecht/{p-3d543bd7.entry.js → p-5a8cd573.entry.js} +1 -1
- package/dist/utrecht/p-5b6fb195.entry.js +1 -0
- package/dist/utrecht/{p-67d9bd81.entry.js → p-5b773973.entry.js} +1 -1
- package/dist/utrecht/{p-88cfd39b.entry.js → p-6a91f1ce.entry.js} +1 -1
- package/dist/utrecht/{p-dc788226.entry.js → p-75f9997b.entry.js} +1 -1
- package/dist/utrecht/{p-a80a05c9.entry.js → p-837a6fdf.entry.js} +1 -1
- package/dist/utrecht/{p-f49e9d32.entry.js → p-88307e9c.entry.js} +1 -1
- package/dist/utrecht/{p-59a4c3c0.entry.js → p-8b7d7a03.entry.js} +1 -1
- package/dist/utrecht/{p-152c934f.entry.js → p-929780fe.entry.js} +1 -1
- package/dist/utrecht/{p-170e6d71.entry.js → p-946a03ad.entry.js} +1 -1
- package/dist/utrecht/{p-1549b898.entry.js → p-a5128513.entry.js} +1 -1
- package/dist/utrecht/{p-2606f67e.entry.js → p-a7272f16.entry.js} +1 -1
- package/dist/utrecht/{p-a5113af3.entry.js → p-b1425686.entry.js} +1 -1
- package/dist/utrecht/{p-ff065ee5.entry.js → p-b4185f2c.entry.js} +1 -1
- package/dist/utrecht/p-c2699171.entry.js +1 -0
- package/dist/utrecht/{p-e276040c.entry.js → p-c3c6dd79.entry.js} +1 -1
- package/dist/utrecht/{p-620bf3eb.entry.js → p-c612deb7.entry.js} +1 -1
- package/dist/utrecht/{p-f985d202.entry.js → p-ca5a1b8b.entry.js} +1 -1
- package/dist/utrecht/{p-8a2da7c8.entry.js → p-d0a14420.entry.js} +1 -1
- package/dist/utrecht/{p-6f536261.entry.js → p-d27583eb.entry.js} +1 -1
- package/dist/utrecht/{p-5d15fb5c.entry.js → p-d2a8967c.entry.js} +1 -1
- package/dist/utrecht/{p-192c5850.entry.js → p-d8528c00.entry.js} +1 -1
- package/dist/utrecht/{p-3705d6a2.entry.js → p-d9794f59.entry.js} +1 -1
- package/dist/utrecht/{p-e18c1944.entry.js → p-df90175a.entry.js} +1 -1
- package/dist/utrecht/{p-f2b24fe9.entry.js → p-e9ed28bc.entry.js} +1 -1
- package/dist/utrecht/{p-45e34b17.entry.js → p-eac56ee3.entry.js} +1 -1
- package/dist/utrecht/{p-f6290566.entry.js → p-f71978aa.entry.js} +1 -1
- package/dist/utrecht/{p-02530cfd.entry.js → p-f8291871.entry.js} +1 -1
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/package.json +7 -4
- package/dist/cjs/utrecht-button.cjs.entry.js +0 -45
- package/dist/esm/utrecht-button.entry.js +0 -41
- package/dist/utrecht/p-caac78a9.entry.js +0 -1
- package/dist/utrecht/p-cd3bd88c.entry.js +0 -1
- package/dist/utrecht/p-fde396be.entry.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license EUPL-1.2
|
|
7
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
8
|
+
*/
|
|
9
|
+
.utrecht-digid-button {
|
|
10
|
+
--utrecht-button-block-size: var(--utrecht-digid-button-block-size, 50px);
|
|
11
|
+
--utrecht-logo-max-height: var(--utrecht-digid-button-block-size, 50px);
|
|
12
|
+
--utrecht-logo-max-width: var(--utrecht-digid-button-block-size, 50px);
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
gap: var(--utrecht-space-inline-sm);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.utrecht-digid-button__logo {
|
|
18
|
+
order: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.utrecht-digid-button__button {
|
|
22
|
+
order: 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host {
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([hidden]) {
|
|
30
|
+
display: none !important;
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Rijksoverheid
|
|
4
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
5
|
+
*/
|
|
6
|
+
import { Component, h, Prop } from "@stencil/core";
|
|
7
|
+
export class DigidButton {
|
|
8
|
+
render() {
|
|
9
|
+
return (h("div", { class: "utrecht-digid-button" },
|
|
10
|
+
h("utrecht-digid-logo", { class: "utrecht-digid-button__logo" }),
|
|
11
|
+
h("utrecht-button", { class: "utrecht-digid-button__button", type: this.type || null },
|
|
12
|
+
h("slot", null))));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "utrecht-digid-button"; }
|
|
15
|
+
static get encapsulation() { return "shadow"; }
|
|
16
|
+
static get originalStyleUrls() { return {
|
|
17
|
+
"$": ["stencil.scss"]
|
|
18
|
+
}; }
|
|
19
|
+
static get styleUrls() { return {
|
|
20
|
+
"$": ["stencil.css"]
|
|
21
|
+
}; }
|
|
22
|
+
static get properties() { return {
|
|
23
|
+
"type": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "string",
|
|
28
|
+
"resolved": "string",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": false,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": ""
|
|
36
|
+
},
|
|
37
|
+
"attribute": "type",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
}; }
|
|
41
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
:host {
|
|
6
|
+
display: inline;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([hidden]) {
|
|
10
|
+
display: none !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
svg {
|
|
14
|
+
height: 100%;
|
|
15
|
+
max-height: var(--utrecht-digid-logo-max-height, var(--utrecht-logo-max-height, 50px));
|
|
16
|
+
max-width: var(--utrecht-digid-logo-max-width, var(--utrecht-logo-max-width, 50px));
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Rijksoverheid
|
|
4
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
5
|
+
*/
|
|
6
|
+
import { Component, h } from "@stencil/core";
|
|
7
|
+
export class DigidLogo {
|
|
8
|
+
render() {
|
|
9
|
+
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 150 150" },
|
|
10
|
+
h("title", null, "DigiD"),
|
|
11
|
+
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" }),
|
|
12
|
+
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" }),
|
|
13
|
+
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" })));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "utrecht-digid-logo"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get originalStyleUrls() { return {
|
|
18
|
+
"$": ["stencil.scss"]
|
|
19
|
+
}; }
|
|
20
|
+
static get styleUrls() { return {
|
|
21
|
+
"$": ["stencil.css"]
|
|
22
|
+
}; }
|
|
23
|
+
}
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
background-color: var(--utrecht-textarea-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
|
|
76
76
|
border-color: var(--utrecht-textarea-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
|
|
77
77
|
color: var(--utrecht-textarea-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
|
|
78
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.utrecht-textarea--focus, .utrecht-textarea--html-textarea:focus {
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
|
|
72
72
|
border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
|
|
73
73
|
color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
|
|
74
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
.utrecht-textbox--focus, .utrecht-textbox--html-input:focus {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
border-color: var(--utrecht-form-toggle-disabled-border-color, var(--utrecht-form-toggle-border-color, currentColor));
|
|
40
40
|
border-style: var(--utrecht-form-toggle-disabled-border-style, var(--utrecht-form-toggle-border-style, solid));
|
|
41
41
|
border-width: var(--utrecht-form-toggle-disabled-border-width, var(--utrecht-form-toggle-border-width, 1px));
|
|
42
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.utrecht-form-toggle__thumb {
|
|
@@ -73,12 +73,14 @@
|
|
|
73
73
|
*/
|
|
74
74
|
.utrecht-button, .utrecht-html button {
|
|
75
75
|
background-color: var(--utrecht-button-primary-action-background-color);
|
|
76
|
+
block-size: var(--utrecht-button-block-size, auto);
|
|
76
77
|
border-radius: var(--utrecht-button-border-radius);
|
|
77
78
|
border-width: var(--utrecht-button-border-width);
|
|
78
79
|
color: var(--utrecht-button-primary-action-color);
|
|
79
80
|
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
|
|
80
81
|
font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
|
|
81
82
|
font-weight: var(--utrecht-button-font-weight);
|
|
83
|
+
inline-size: var(--utrecht-button-inline-size, auto);
|
|
82
84
|
letter-spacing: var(--utrecht-button-letter-spacing);
|
|
83
85
|
padding-block-end: var(--utrecht-button-padding-block-end);
|
|
84
86
|
padding-block-start: var(--utrecht-button-padding-block-start);
|
|
@@ -94,10 +96,20 @@
|
|
|
94
96
|
margin-inline-start: var(--utrecht-button-margin-inline-start);
|
|
95
97
|
}
|
|
96
98
|
|
|
99
|
+
.utrecht-button--submit, .utrecht-html button[type=submit] {
|
|
100
|
+
/* lower priority specificty than busy and disabled cursor */
|
|
101
|
+
cursor: var(--utrecht-action-submit-cursor);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.utrecht-button--busy, .utrecht-html button[aria-busy=true] {
|
|
105
|
+
cursor: var(--utrecht-action-busy-cursor);
|
|
106
|
+
}
|
|
107
|
+
|
|
97
108
|
.utrecht-button:disabled, .utrecht-html button:disabled,
|
|
98
109
|
.utrecht-button--disabled {
|
|
99
110
|
background-color: var(--utrecht-button-disabled-background-color);
|
|
100
111
|
color: var(--utrecht-button-disabled-color);
|
|
112
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
.utrecht-button--focus, .utrecht-html button:focus,
|
|
@@ -136,6 +148,10 @@
|
|
|
136
148
|
margin-inline-start: 0;
|
|
137
149
|
}
|
|
138
150
|
|
|
151
|
+
.utrecht-checkbox--disabled {
|
|
152
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
153
|
+
}
|
|
154
|
+
|
|
139
155
|
/**
|
|
140
156
|
* @license EUPL-1.2
|
|
141
157
|
* Copyright (c) 2021 Robbert Broersma
|
|
@@ -515,6 +531,11 @@
|
|
|
515
531
|
margin-inline-start: 0;
|
|
516
532
|
}
|
|
517
533
|
|
|
534
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
535
|
+
.utrecht-radio-button--disabled {
|
|
536
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
537
|
+
}
|
|
538
|
+
|
|
518
539
|
/**
|
|
519
540
|
* @license EUPL-1.2
|
|
520
541
|
* Copyright (c) 2021 Robbert Broersma
|
|
@@ -669,6 +690,7 @@
|
|
|
669
690
|
background-color: var(--utrecht-textarea-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
|
|
670
691
|
border-color: var(--utrecht-textarea-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
|
|
671
692
|
color: var(--utrecht-textarea-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
|
|
693
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
672
694
|
}
|
|
673
695
|
|
|
674
696
|
.utrecht-textarea--focus, .utrecht-textarea--html-textarea:focus, .utrecht-html textarea:focus {
|
|
@@ -756,6 +778,7 @@
|
|
|
756
778
|
background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
|
|
757
779
|
border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
|
|
758
780
|
color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
|
|
781
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
759
782
|
}
|
|
760
783
|
|
|
761
784
|
.utrecht-textbox--focus, .utrecht-textbox--html-input:focus, .utrecht-html input:focus:not([type]),
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
12
|
+
|
|
13
|
+
export const RadioButton = ({ checked = false, disabled = false }) =>
|
|
14
|
+
`<input type="radio"${checked ? ' checked' : ''}${disabled ? ' disabled' : ''} class="${clsx(
|
|
15
|
+
'utrecht-radio-button',
|
|
16
|
+
checked && 'utrecht-radio-button--checked',
|
|
17
|
+
disabled && 'utrecht-radio-button--disabled',
|
|
18
|
+
)}">`;
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
|
|
36
36
|
border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
|
|
37
37
|
color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
|
|
38
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.utrecht-textbox--focus, .utrecht-textbox--html-input:focus {
|
|
@@ -50,6 +50,18 @@ export const UtrechtContactCardTemplate: {
|
|
|
50
50
|
new (): UtrechtContactCardTemplate;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
interface UtrechtDigidButton extends Components.UtrechtDigidButton, HTMLElement {}
|
|
54
|
+
export const UtrechtDigidButton: {
|
|
55
|
+
prototype: UtrechtDigidButton;
|
|
56
|
+
new (): UtrechtDigidButton;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
interface UtrechtDigidLogo extends Components.UtrechtDigidLogo, HTMLElement {}
|
|
60
|
+
export const UtrechtDigidLogo: {
|
|
61
|
+
prototype: UtrechtDigidLogo;
|
|
62
|
+
new (): UtrechtDigidLogo;
|
|
63
|
+
};
|
|
64
|
+
|
|
53
65
|
interface UtrechtDocument extends Components.UtrechtDocument, HTMLElement {}
|
|
54
66
|
export const UtrechtDocument: {
|
|
55
67
|
prototype: UtrechtDocument;
|