@utrecht/web-component-library-stencil 1.0.0-alpha.9 → 1.0.0-alpha.93
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 +28 -0
- package/dist/article/stencil.d.ts +3 -0
- package/dist/article/stencil.js +1 -1
- package/dist/badge-counter/stencil.d.ts +6 -0
- package/dist/badge-counter/stencil.js +1 -1
- package/dist/badge-data/stencil.d.ts +3 -0
- package/dist/badge-data/stencil.js +1 -1
- package/dist/badge-status/stencil.d.ts +4 -0
- package/dist/badge-status/stencil.js +1 -1
- package/dist/breadcrumb/stencil.d.ts +5 -0
- package/dist/breadcrumb/stencil.js +38 -0
- package/dist/button/stencil.d.ts +10 -0
- package/dist/button/stencil.js +40 -3
- package/dist/checkbox/stencil.d.ts +16 -0
- package/dist/checkbox/stencil.js +59 -0
- package/dist/cjs/{index-04d7da5a.js → index-b96d9af7.js} +213 -25
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/utrecht-article.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-counter.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-data.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-badge-status.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +23 -0
- package/dist/cjs/utrecht-button_2.cjs.entry.js +58 -0
- package/dist/cjs/utrecht-checkbox.cjs.entry.js +32 -0
- package/dist/cjs/utrecht-contact-card-template.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-digid-button.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-document.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-eherkenning-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-eidas-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +34 -0
- package/dist/cjs/utrecht-form-field-description.cjs.entry.js +22 -0
- package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +34 -0
- package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +39 -0
- package/dist/cjs/utrecht-form-toggle.cjs.entry.js +49 -0
- package/dist/cjs/utrecht-heading-1.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +46 -0
- package/dist/cjs/utrecht-heading-4.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-5.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading-6.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-heading.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-html-content.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-cross.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-facebook.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-filter.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-instagram.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-linkedin.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-list.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-loupe.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-whatsapp.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-zoomin.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-icon-zoomout.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-logo-button.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-logo.cjs.entry.js +19 -0
- package/dist/cjs/utrecht-page-footer.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-pagination.cjs.entry.js +38 -0
- package/dist/cjs/utrecht-separator.cjs.entry.js +3 -3
- package/dist/cjs/utrecht-sidenav.cjs.entry.js +21 -0
- package/dist/cjs/utrecht-textbox.cjs.entry.js +39 -0
- package/dist/cjs/utrecht.cjs.js +3 -3
- package/dist/collection/alternate-lang-link/bem.js +21 -0
- package/dist/collection/alternate-lang-nav/bem.js +12 -0
- package/dist/collection/article/bem.js +6 -0
- package/dist/collection/article/{bem.css → stencil.css} +12 -1
- package/dist/collection/article/stencil.js +2 -2
- package/dist/collection/badge-counter/bem.js +7 -0
- package/dist/collection/badge-counter/{bem.css → stencil.css} +13 -0
- package/dist/collection/badge-counter/stencil.js +2 -2
- package/dist/collection/badge-data/bem.js +6 -0
- package/dist/collection/badge-data/{bem.css → stencil.css} +13 -0
- package/dist/collection/badge-data/stencil.js +2 -2
- package/dist/collection/badge-status/bem.js +7 -0
- package/dist/collection/badge-status/{bem.css → stencil.css} +18 -0
- package/dist/collection/badge-status/stencil.js +2 -2
- package/dist/collection/blockquote/bem.js +24 -0
- package/dist/collection/breadcrumb/bem.js +34 -0
- package/dist/collection/breadcrumb/stencil.css +148 -0
- package/dist/collection/breadcrumb/stencil.js +62 -0
- package/dist/collection/button/bem.js +34 -0
- package/dist/collection/button/html.js +16 -0
- package/dist/collection/button/{bem.css → stencil.css} +56 -19
- package/dist/collection/button/stencil.js +92 -4
- package/dist/collection/checkbox/bem.js +18 -0
- package/dist/collection/checkbox/stencil.css +27 -0
- package/dist/collection/checkbox/stencil.js +164 -0
- package/dist/collection/collection-manifest.json +37 -2
- 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/document/{bem.css → stencil.css} +12 -1
- package/dist/collection/document/stencil.js +2 -2
- package/dist/collection/eherkenning-logo/stencil.css +18 -0
- package/dist/collection/eherkenning-logo/stencil.js +26 -0
- package/dist/collection/eidas-logo/stencil.css +18 -0
- package/dist/collection/eidas-logo/stencil.js +28 -0
- package/dist/collection/emphasis/bem.js +19 -0
- package/dist/collection/form-field-checkbox/bem.js +10 -0
- package/dist/collection/form-field-checkbox/stencil.css +76 -0
- package/dist/collection/form-field-checkbox/stencil.js +190 -0
- package/dist/collection/form-field-checkbox-group/bem.js +33 -0
- package/dist/collection/form-field-description/bem.js +14 -0
- package/dist/collection/form-field-description/stencil.css +33 -0
- package/dist/collection/form-field-description/stencil.js +44 -0
- package/dist/collection/form-field-radio/bem.js +10 -0
- package/dist/collection/form-field-radio-group/bem.js +20 -0
- package/dist/collection/form-field-textarea/stencil.css +112 -0
- package/dist/collection/form-field-textarea/stencil.js +205 -0
- package/dist/collection/form-field-textbox/stencil.css +106 -0
- package/dist/collection/form-field-textbox/stencil.js +300 -0
- package/dist/collection/form-fieldset/bem.js +10 -0
- package/dist/collection/form-label/bem.js +22 -0
- package/dist/collection/form-toggle/bem.js +47 -0
- package/dist/collection/form-toggle/stencil.css +115 -0
- package/dist/collection/form-toggle/stencil.js +149 -0
- package/dist/collection/heading/{bem.css → stencil.css} +72 -37
- package/dist/collection/heading/stencil.js +2 -2
- package/dist/collection/heading-1/bem.js +11 -0
- package/dist/collection/heading-1/stencil.css +34 -0
- package/dist/collection/heading-1/stencil.js +15 -0
- package/dist/collection/heading-2/bem.js +11 -0
- package/dist/collection/heading-2/stencil.css +34 -0
- package/dist/collection/heading-2/stencil.js +15 -0
- package/dist/collection/heading-3/bem.js +11 -0
- package/dist/collection/heading-3/stencil.css +34 -0
- package/dist/collection/heading-3/stencil.js +15 -0
- package/dist/collection/heading-4/bem.js +11 -0
- package/dist/collection/heading-4/stencil.css +34 -0
- package/dist/collection/heading-4/stencil.js +15 -0
- package/dist/collection/heading-5/bem.js +11 -0
- package/dist/collection/heading-5/stencil.css +34 -0
- package/dist/collection/heading-5/stencil.js +15 -0
- package/dist/collection/heading-6/bem.js +11 -0
- package/dist/collection/heading-6/stencil.css +34 -0
- package/dist/collection/heading-6/stencil.js +15 -0
- package/dist/collection/html-content/{html.css → stencil.css} +406 -140
- package/dist/collection/html-content/stencil.js +2 -2
- package/dist/collection/icon/arrow.stencil.js +17 -0
- package/dist/collection/icon/cross.stencil.js +17 -0
- package/dist/collection/icon/facebook.stencil.js +17 -0
- package/dist/collection/icon/filter.stencil.js +18 -0
- package/dist/collection/icon/instagram.stencil.js +19 -0
- package/dist/collection/icon/linkedin.stencil.js +18 -0
- package/dist/collection/icon/list.stencil.js +21 -0
- package/dist/collection/icon/loupe.stencil.js +17 -0
- package/dist/collection/icon/stencil.css +20 -0
- package/dist/collection/icon/twitter.stencil.js +17 -0
- package/dist/collection/icon/whatsapp.stencil.js +17 -0
- package/dist/collection/icon/zoomin.stencil.js +18 -0
- package/dist/collection/icon/zoomout.stencil.js +17 -0
- package/dist/collection/link/bem.js +38 -0
- package/dist/collection/link-list/bem.js +10 -0
- package/dist/collection/link-social/bem.js +20 -0
- package/dist/collection/logo/bem.js +33 -0
- package/dist/collection/logo/stencil.css +28 -0
- package/dist/collection/logo/stencil.js +26 -0
- package/dist/collection/logo-button/bem.js +17 -0
- package/dist/collection/logo-button/stencil.css +31 -0
- package/dist/collection/logo-button/stencil.js +41 -0
- package/dist/collection/mapcontrolbutton/bem.js +25 -0
- package/dist/collection/menulijst/bem.js +18 -0
- package/dist/collection/nav-top/bem.js +23 -0
- package/dist/collection/navigatie sidenav/bem.css +240 -0
- package/dist/collection/navigatie sidenav/bem.js +43 -0
- package/dist/collection/navigatie sidenav/stencil.js +40 -0
- package/dist/collection/navigatie topnav/bem.js +25 -0
- package/dist/collection/ordered-list/bem.js +11 -0
- package/dist/collection/page-footer/bem.js +7 -0
- package/dist/collection/page-footer/{bem.css → stencil.css} +22 -12
- package/dist/collection/page-footer/stencil.js +2 -2
- package/dist/collection/pagination/bem.js +54 -0
- package/dist/collection/pagination/stencil.css +118 -0
- package/dist/collection/pagination/stencil.js +110 -0
- package/dist/collection/paragraph/bem.js +17 -0
- package/dist/collection/paragraph/{bem.css → stencil.css} +17 -2
- package/dist/collection/paragraph/stencil.js +2 -2
- package/dist/collection/pre-heading/bem.js +15 -0
- package/dist/collection/radio-button/bem.js +18 -0
- package/dist/collection/search-bar/bem.js +15 -0
- package/dist/collection/select/bem.js +38 -0
- package/dist/collection/separator/bem.js +16 -0
- package/dist/collection/separator/{bem.css → stencil.css} +18 -4
- package/dist/collection/separator/stencil.js +2 -2
- package/dist/collection/templates/contact-card-template/stencil.css +88 -0
- package/dist/collection/templates/contact-card-template/stencil.js +25 -0
- package/dist/collection/textarea/bem.js +32 -0
- package/dist/collection/textarea/html.js +22 -0
- package/dist/collection/textbox/bem.js +34 -0
- package/dist/collection/textbox/stencil.css +70 -0
- package/dist/collection/textbox/stencil.js +297 -0
- package/dist/collection/unordered-list/bem.js +28 -0
- package/dist/custom-elements/index.d.ts +210 -0
- package/dist/custom-elements/index.js +742 -26
- 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/document/stencil.d.ts +3 -0
- package/dist/document/stencil.js +1 -1
- package/dist/eherkenning-logo/stencil.d.ts +8 -0
- package/dist/eherkenning-logo/stencil.js +32 -0
- package/dist/eidas-logo/stencil.d.ts +8 -0
- package/dist/eidas-logo/stencil.js +34 -0
- package/dist/esm/{index-7fbac151.js → index-26eb3bc0.js} +212 -26
- package/dist/esm/loader.js +3 -3
- package/dist/esm/utrecht-article.entry.js +3 -3
- package/dist/esm/utrecht-badge-counter.entry.js +3 -3
- package/dist/esm/utrecht-badge-data.entry.js +3 -3
- package/dist/esm/utrecht-badge-status.entry.js +3 -3
- package/dist/esm/utrecht-breadcrumb.entry.js +19 -0
- package/dist/esm/utrecht-button_2.entry.js +53 -0
- package/dist/esm/utrecht-checkbox.entry.js +28 -0
- package/dist/esm/utrecht-contact-card-template.entry.js +15 -0
- package/dist/esm/utrecht-digid-button.entry.js +15 -0
- package/dist/esm/utrecht-document.entry.js +3 -3
- package/dist/esm/utrecht-eherkenning-logo.entry.js +15 -0
- package/dist/esm/utrecht-eidas-logo.entry.js +15 -0
- package/dist/esm/utrecht-form-field-checkbox.entry.js +30 -0
- package/dist/esm/utrecht-form-field-description.entry.js +18 -0
- package/dist/esm/utrecht-form-field-textarea.entry.js +30 -0
- package/dist/esm/utrecht-form-field-textbox.entry.js +35 -0
- package/dist/esm/utrecht-form-toggle.entry.js +45 -0
- package/dist/esm/utrecht-heading-1.entry.js +15 -0
- package/dist/esm/utrecht-heading-2_3.entry.js +40 -0
- package/dist/esm/utrecht-heading-4.entry.js +15 -0
- package/dist/esm/utrecht-heading-5.entry.js +15 -0
- package/dist/esm/utrecht-heading-6.entry.js +15 -0
- package/dist/esm/utrecht-heading.entry.js +3 -3
- package/dist/esm/utrecht-html-content.entry.js +3 -3
- package/dist/esm/utrecht-icon-arrow.entry.js +15 -0
- package/dist/esm/utrecht-icon-cross.entry.js +15 -0
- package/dist/esm/utrecht-icon-facebook.entry.js +15 -0
- package/dist/esm/utrecht-icon-filter.entry.js +15 -0
- package/dist/esm/utrecht-icon-instagram.entry.js +15 -0
- package/dist/esm/utrecht-icon-linkedin.entry.js +15 -0
- package/dist/esm/utrecht-icon-list.entry.js +15 -0
- package/dist/esm/utrecht-icon-loupe.entry.js +15 -0
- package/dist/esm/utrecht-icon-twitter.entry.js +15 -0
- package/dist/esm/utrecht-icon-whatsapp.entry.js +15 -0
- package/dist/esm/utrecht-icon-zoomin.entry.js +15 -0
- package/dist/esm/utrecht-icon-zoomout.entry.js +15 -0
- package/dist/esm/utrecht-logo-button.entry.js +15 -0
- package/dist/esm/utrecht-logo.entry.js +15 -0
- package/dist/esm/utrecht-page-footer.entry.js +3 -3
- package/dist/esm/utrecht-pagination.entry.js +34 -0
- package/dist/esm/utrecht-separator.entry.js +3 -3
- package/dist/esm/utrecht-sidenav.entry.js +17 -0
- package/dist/esm/utrecht-textbox.entry.js +35 -0
- package/dist/esm/utrecht.js +3 -3
- package/dist/form-field-checkbox/stencil.d.ts +18 -0
- package/dist/form-field-checkbox/stencil.js +70 -0
- package/dist/form-field-description/stencil.d.ts +8 -0
- package/dist/form-field-description/stencil.js +33 -0
- package/dist/form-field-textarea/stencil.d.ts +18 -0
- package/dist/form-field-textarea/stencil.js +70 -0
- package/dist/form-field-textbox/stencil.d.ts +23 -0
- package/dist/form-field-textbox/stencil.js +90 -0
- package/dist/form-toggle/stencil.d.ts +14 -0
- package/dist/form-toggle/stencil.js +74 -0
- package/dist/heading/stencil.d.ts +7 -0
- package/dist/heading/stencil.js +1 -1
- package/dist/heading-1/stencil.d.ts +3 -0
- package/dist/heading-1/stencil.js +21 -0
- package/dist/heading-2/stencil.d.ts +3 -0
- package/dist/heading-2/stencil.js +21 -0
- package/dist/heading-3/stencil.d.ts +3 -0
- package/dist/heading-3/stencil.js +21 -0
- package/dist/heading-4/stencil.d.ts +3 -0
- package/dist/heading-4/stencil.js +21 -0
- package/dist/heading-5/stencil.d.ts +3 -0
- package/dist/heading-5/stencil.js +21 -0
- package/dist/heading-6/stencil.d.ts +3 -0
- package/dist/heading-6/stencil.js +21 -0
- package/dist/html-content/stencil.d.ts +3 -0
- package/dist/html-content/stencil.js +1 -1
- package/dist/icon/arrow.stencil.d.ts +3 -0
- package/dist/icon/arrow.stencil.js +23 -0
- package/dist/icon/cross.stencil.d.ts +3 -0
- package/dist/icon/cross.stencil.js +23 -0
- package/dist/icon/facebook.stencil.d.ts +3 -0
- package/dist/icon/facebook.stencil.js +23 -0
- package/dist/icon/filter.stencil.d.ts +3 -0
- package/dist/icon/filter.stencil.js +24 -0
- package/dist/icon/instagram.stencil.d.ts +3 -0
- package/dist/icon/instagram.stencil.js +25 -0
- package/dist/icon/linkedin.stencil.d.ts +3 -0
- package/dist/icon/linkedin.stencil.js +24 -0
- package/dist/icon/list.stencil.d.ts +3 -0
- package/dist/icon/list.stencil.js +27 -0
- package/dist/icon/loupe.stencil.d.ts +3 -0
- package/dist/icon/loupe.stencil.js +23 -0
- package/dist/icon/twitter.stencil.d.ts +3 -0
- package/dist/icon/twitter.stencil.js +23 -0
- package/dist/icon/whatsapp.stencil.d.ts +3 -0
- package/dist/icon/whatsapp.stencil.js +23 -0
- package/dist/icon/zoomin.stencil.d.ts +3 -0
- package/dist/icon/zoomin.stencil.js +24 -0
- package/dist/icon/zoomout.stencil.d.ts +3 -0
- package/dist/icon/zoomout.stencil.js +23 -0
- package/dist/logo/stencil.d.ts +7 -0
- package/dist/logo/stencil.js +32 -0
- package/dist/logo-button/stencil.d.ts +9 -0
- package/dist/logo-button/stencil.js +31 -0
- package/dist/navigatie sidenav/stencil.d.ts +4 -0
- package/dist/navigatie sidenav/stencil.js +30 -0
- package/dist/page-footer/stencil.d.ts +7 -0
- package/dist/page-footer/stencil.js +1 -1
- package/dist/pagination/stencil.d.ts +11 -0
- package/dist/pagination/stencil.js +58 -0
- package/dist/paragraph/stencil.d.ts +7 -0
- package/dist/paragraph/stencil.js +1 -1
- package/dist/separator/stencil.d.ts +3 -0
- package/dist/separator/stencil.js +1 -1
- package/dist/templates/contact-card-template/stencil.d.ts +3 -0
- package/dist/templates/contact-card-template/stencil.js +31 -0
- package/dist/textbox/stencil.d.ts +23 -0
- package/dist/textbox/stencil.js +87 -0
- package/dist/types/breadcrumb/stencil.d.ts +5 -0
- package/dist/types/button/stencil.d.ts +6 -0
- package/dist/types/checkbox/stencil.d.ts +16 -0
- package/dist/types/components.d.ts +583 -0
- package/dist/types/digid-button/stencil.d.ts +9 -0
- package/dist/types/digid-logo/stencil.d.ts +8 -0
- package/dist/types/eherkenning-logo/stencil.d.ts +8 -0
- package/dist/types/eidas-logo/stencil.d.ts +8 -0
- package/dist/types/form-field-checkbox/stencil.d.ts +18 -0
- package/dist/types/form-field-description/stencil.d.ts +8 -0
- package/dist/types/form-field-textarea/stencil.d.ts +18 -0
- package/dist/types/form-field-textbox/stencil.d.ts +23 -0
- package/dist/types/form-toggle/stencil.d.ts +14 -0
- package/dist/types/heading-1/stencil.d.ts +3 -0
- package/dist/types/heading-2/stencil.d.ts +3 -0
- package/dist/types/heading-3/stencil.d.ts +3 -0
- package/dist/types/heading-4/stencil.d.ts +3 -0
- package/dist/types/heading-5/stencil.d.ts +3 -0
- package/dist/types/heading-6/stencil.d.ts +3 -0
- package/dist/types/icon/arrow.stencil.d.ts +3 -0
- package/dist/types/icon/cross.stencil.d.ts +3 -0
- package/dist/types/icon/facebook.stencil.d.ts +3 -0
- package/dist/types/icon/filter.stencil.d.ts +3 -0
- package/dist/types/icon/instagram.stencil.d.ts +3 -0
- package/dist/types/icon/linkedin.stencil.d.ts +3 -0
- package/dist/types/icon/list.stencil.d.ts +3 -0
- package/dist/types/icon/loupe.stencil.d.ts +3 -0
- package/dist/types/icon/twitter.stencil.d.ts +3 -0
- package/dist/types/icon/whatsapp.stencil.d.ts +3 -0
- package/dist/types/icon/zoomin.stencil.d.ts +3 -0
- package/dist/types/icon/zoomout.stencil.d.ts +3 -0
- package/dist/types/logo/stencil.d.ts +7 -0
- package/dist/types/logo-button/stencil.d.ts +9 -0
- package/dist/types/navigatie sidenav/stencil.d.ts +4 -0
- package/dist/types/pagination/stencil.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +183 -182
- package/dist/types/templates/contact-card-template/stencil.d.ts +3 -0
- package/dist/types/textbox/stencil.d.ts +23 -0
- package/dist/utrecht/p-023706f2.entry.js +1 -0
- package/dist/utrecht/p-03fb5385.entry.js +1 -0
- package/dist/utrecht/p-0b5df266.entry.js +1 -0
- package/dist/utrecht/p-13e4e5e9.entry.js +1 -0
- package/dist/utrecht/p-17bfa2b7.js +1 -0
- package/dist/utrecht/p-201a5ed5.entry.js +1 -0
- package/dist/utrecht/p-22ccf8ac.entry.js +1 -0
- package/dist/utrecht/p-307b38ed.entry.js +1 -0
- package/dist/utrecht/p-3ba93737.entry.js +1 -0
- package/dist/utrecht/p-3f4d1a2b.entry.js +1 -0
- package/dist/utrecht/p-48e2e522.entry.js +1 -0
- package/dist/utrecht/p-56879b89.entry.js +1 -0
- package/dist/utrecht/p-5a8cd573.entry.js +1 -0
- package/dist/utrecht/p-5b773973.entry.js +1 -0
- package/dist/utrecht/p-6a91f1ce.entry.js +1 -0
- package/dist/utrecht/p-7155ba3f.entry.js +1 -0
- package/dist/utrecht/p-75a89b75.entry.js +1 -0
- package/dist/utrecht/p-75f9997b.entry.js +1 -0
- package/dist/utrecht/p-7d114163.entry.js +1 -0
- package/dist/utrecht/p-837a6fdf.entry.js +1 -0
- package/dist/utrecht/p-8b7d7a03.entry.js +1 -0
- package/dist/utrecht/p-929780fe.entry.js +1 -0
- package/dist/utrecht/p-946a03ad.entry.js +1 -0
- package/dist/utrecht/p-979138fb.entry.js +1 -0
- package/dist/utrecht/p-a7272f16.entry.js +1 -0
- package/dist/utrecht/p-a8f492ae.entry.js +1 -0
- package/dist/utrecht/p-b1425686.entry.js +1 -0
- package/dist/utrecht/p-b4185f2c.entry.js +1 -0
- package/dist/utrecht/p-bb7ee7c6.entry.js +1 -0
- package/dist/utrecht/p-c2699171.entry.js +1 -0
- package/dist/utrecht/p-c3c6dd79.entry.js +1 -0
- package/dist/utrecht/p-c69cf3b0.entry.js +1 -0
- package/dist/utrecht/p-ca5a1b8b.entry.js +1 -0
- package/dist/utrecht/p-d0a14420.entry.js +1 -0
- package/dist/utrecht/p-d27583eb.entry.js +1 -0
- package/dist/utrecht/p-d2a8967c.entry.js +1 -0
- package/dist/utrecht/p-d8528c00.entry.js +1 -0
- package/dist/utrecht/p-d9794f59.entry.js +1 -0
- package/dist/utrecht/p-df90175a.entry.js +1 -0
- package/dist/utrecht/{p-059d8057.entry.js → p-e9ed28bc.entry.js} +1 -1
- package/dist/utrecht/p-ea287a6a.entry.js +1 -0
- package/dist/utrecht/p-eac56ee3.entry.js +1 -0
- package/dist/utrecht/p-f71978aa.entry.js +1 -0
- package/dist/utrecht/p-f8291871.entry.js +1 -0
- package/dist/utrecht/utrecht.esm.js +1 -1
- package/package.json +15 -7
- package/dist/cjs/utrecht-button.cjs.entry.js +0 -20
- package/dist/cjs/utrecht-paragraph.cjs.entry.js +0 -20
- package/dist/esm/utrecht-button.entry.js +0 -16
- package/dist/esm/utrecht-paragraph.entry.js +0 -16
- package/dist/utrecht/p-031700e7.entry.js +0 -1
- package/dist/utrecht/p-031d1e42.entry.js +0 -1
- package/dist/utrecht/p-26a456e1.entry.js +0 -1
- package/dist/utrecht/p-487bef55.entry.js +0 -1
- package/dist/utrecht/p-5eab253d.entry.js +0 -1
- package/dist/utrecht/p-6202d2cd.entry.js +0 -1
- package/dist/utrecht/p-634c1974.js +0 -1
- package/dist/utrecht/p-79c79abf.entry.js +0 -1
- package/dist/utrecht/p-d80edc6f.entry.js +0 -1
- package/dist/utrecht/p-dbb6d147.entry.js +0 -1
- package/dist/utrecht/p-dd661d2b.entry.js +0 -1
|
@@ -0,0 +1,148 @@
|
|
|
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-breadcrumb {
|
|
10
|
+
--utrecht-focus-background-color: var(--utrecht-breadcrumb-link-focus-background-color);
|
|
11
|
+
--utrecht-link-background-color: var(--utrecht-breadcrumb-link-background-color);
|
|
12
|
+
--utrecht-link-color: var(--utrecht-breadcrumb-link-color);
|
|
13
|
+
--utrecht-link-focus-color: var(--utrecht-breadcrumb-link-focus-color, var(--utrecht-breadcrumb-link-color));
|
|
14
|
+
--utrecht-link-focus-text-decoration: var(--utrecht-link-text-decoration);
|
|
15
|
+
--utrecht-link-hover-color: var(--utrecht-breadcrumb-link-color);
|
|
16
|
+
--utrecht-link-hover-text-decoration: var(--utrecht-link-text-decoration);
|
|
17
|
+
--utrecht-link-visited-color: var(--utrecht-breadcrumb-link-color);
|
|
18
|
+
--utrecht-link-visited-text-decoration: var(--utrecht-link-text-decoration);
|
|
19
|
+
font-family: var(--utrecht-document-font-family, inherit);
|
|
20
|
+
font-size: var(--utrecht-breadcrumb-font-size);
|
|
21
|
+
text-transform: var(--utrecht-document-text-transform, inherit);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.utrecht-breadcrumb__list {
|
|
25
|
+
block-size: var(--utrecht-breadcrumb-block-size);
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
ol.utrecht-breadcrumb__list {
|
|
30
|
+
list-style: none;
|
|
31
|
+
margin-block-end: 0;
|
|
32
|
+
margin-block-start: 0;
|
|
33
|
+
padding-inline-start: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.utrecht-breadcrumb__item {
|
|
37
|
+
block-size: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.utrecht-breadcrumb__link {
|
|
41
|
+
background-color: var(--utrecht-breadcrumb-link-background-color);
|
|
42
|
+
display: block;
|
|
43
|
+
padding-block-end: var(--utrecht-breadcrumb-item-padding-block-end, 8px);
|
|
44
|
+
padding-block-start: var(--utrecht-breadcrumb-item-padding-block-start, 8px);
|
|
45
|
+
padding-inline-end: var(--utrecht-breadcrumb-item-padding-inline-end, 8px);
|
|
46
|
+
padding-inline-start: var(--utrecht-breadcrumb-item-padding-inline-start, 8px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
50
|
+
.utrecht-breadcrumb--arrows {
|
|
51
|
+
/* https://css-tricks.com/triangle-breadcrumbs/ */
|
|
52
|
+
--utrecht-breadcrumb-arrow-size: 24px;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link {
|
|
56
|
+
padding-inline-end: 0;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after,
|
|
60
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before {
|
|
61
|
+
border-block-end-width: var(--utrecht-breadcrumb-block-size);
|
|
62
|
+
border-block-start-width: var(--utrecht-breadcrumb-block-size);
|
|
63
|
+
border-color: transparent;
|
|
64
|
+
border-style: solid;
|
|
65
|
+
content: " ";
|
|
66
|
+
display: block;
|
|
67
|
+
height: 0;
|
|
68
|
+
left: 100%;
|
|
69
|
+
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-block-size));
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 50%;
|
|
72
|
+
width: 0;
|
|
73
|
+
}
|
|
74
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::after {
|
|
75
|
+
border-inline-start-color: var(--utrecht-breadcrumb-link-background-color);
|
|
76
|
+
border-inline-start-width: var(--utrecht-breadcrumb-arrow-size);
|
|
77
|
+
z-index: 2;
|
|
78
|
+
}
|
|
79
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link::before {
|
|
80
|
+
border-inline-start-color: var(--utrecht-document-background-color);
|
|
81
|
+
border-inline-start-width: var(--utrecht-breadcrumb-arrow-size);
|
|
82
|
+
margin-block-start: calc(-1 * var(--utrecht-breadcrumb-block-size));
|
|
83
|
+
margin-inline-start: 1px;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
}
|
|
86
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link--focus::after,
|
|
87
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__link:focus::after {
|
|
88
|
+
border-inline-start-color: var(--utrecht-breadcrumb-link-focus-background-color);
|
|
89
|
+
}
|
|
90
|
+
.utrecht-breadcrumb--arrows .utrecht-breadcrumb__item ~ .utrecht-breadcrumb__item .utrecht-breadcrumb__link {
|
|
91
|
+
padding-inline-start: calc( var(--utrecht-breadcrumb-item-padding-inline-start) + var(--utrecht-breadcrumb-arrow-size) );
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.utrecht-breadcrumb__item ~ .utrecht-breadcrumb__item {
|
|
95
|
+
margin-inline-start: var(--utrecht-breadcrumb-item-divider-inline-size);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @license EUPL-1.2
|
|
100
|
+
* Copyright (c) 2021 The Knights Who Say NIH! B.V.
|
|
101
|
+
* Copyright (c) 2021 Gemeente Utrecht
|
|
102
|
+
*/
|
|
103
|
+
.utrecht-link {
|
|
104
|
+
color: var(--utrecht-link-color, blue);
|
|
105
|
+
text-decoration: var(--utrecht-link-text-decoration, underline);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.utrecht-link:visited,
|
|
109
|
+
.utrecht-link--visited {
|
|
110
|
+
color: var(--utrecht-link-visited-color, var(--utrecht-link-color));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.utrecht-link:hover,
|
|
114
|
+
.utrecht-link--hover {
|
|
115
|
+
color: var(--utrecht-link-hover-color, var(--utrecht-link-color));
|
|
116
|
+
text-decoration: var(--utrecht-link-hover-text-decoration, var(--utrecht-link-text-decoration, underline));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.utrecht-link:active,
|
|
120
|
+
.utrecht-link--active {
|
|
121
|
+
color: var(--utrecht-link-active-color, var(--utrecht-link-color));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.utrecht-link:focus,
|
|
125
|
+
.utrecht-link--focus {
|
|
126
|
+
background-color: var(--utrecht-focus-background-color);
|
|
127
|
+
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
128
|
+
color: var(--utrecht-focus-color, inherit);
|
|
129
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
130
|
+
outline-offset: 0;
|
|
131
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
132
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
133
|
+
color: var(--utrecht-link-focus-color, var(--utrecht-link-color));
|
|
134
|
+
text-decoration: var(--utrecht-link-focus-text-decoration, var(--utrecht-link-text-decoration, underline));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
138
|
+
.utrecht-link--telephone {
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host {
|
|
143
|
+
display: block;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([hidden]) {
|
|
147
|
+
display: none !important;
|
|
148
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import { Component, Prop, h } from "@stencil/core";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
export class Breadcrumb {
|
|
8
|
+
render() {
|
|
9
|
+
const { json, variant } = this;
|
|
10
|
+
console.log(json);
|
|
11
|
+
const items = json ? JSON.parse(json) : [];
|
|
12
|
+
return (h("nav", { class: clsx("utrecht-breadcrumb", variant === "arrows" && "utrecht-breadcrumb--arrows") },
|
|
13
|
+
h("ol", { class: "utrecht-breadcrumb__list", itemscope: true, itemtype: "https://schema.org/BreadcrumbList" }, items.map(({ href, title, current }, index) => (h("li", { key: href, class: "utrecht-breadcrumb__item", itemscope: true, itemtype: "https://schema.org/ListItem", itemprop: "itemListElement" },
|
|
14
|
+
h("a", { class: clsx("utrecht-breadcrumb__link", "utrecht-link", current && "utrecht-link--current"), href: href, "aria-current": current ? "location" : null, itemprop: "item" },
|
|
15
|
+
h("span", { class: "utrecht-breadcrumb__text", itemprop: "name" }, title),
|
|
16
|
+
h("meta", { itemprop: "position", content: index + 1 }))))))));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "utrecht-breadcrumb"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get originalStyleUrls() { return {
|
|
21
|
+
"$": ["stencil.scss"]
|
|
22
|
+
}; }
|
|
23
|
+
static get styleUrls() { return {
|
|
24
|
+
"$": ["stencil.css"]
|
|
25
|
+
}; }
|
|
26
|
+
static get properties() { return {
|
|
27
|
+
"json": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "json",
|
|
42
|
+
"reflect": false
|
|
43
|
+
},
|
|
44
|
+
"variant": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"attribute": "variant",
|
|
59
|
+
"reflect": false
|
|
60
|
+
}
|
|
61
|
+
}; }
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Gemeente Utrecht
|
|
4
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
|
|
9
|
+
export const defaultArgs = {
|
|
10
|
+
active: false,
|
|
11
|
+
busy: false,
|
|
12
|
+
disabled: false,
|
|
13
|
+
focus: false,
|
|
14
|
+
hover: false,
|
|
15
|
+
textContent: '',
|
|
16
|
+
type: 'button',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const Button = ({
|
|
20
|
+
active = false,
|
|
21
|
+
busy = false,
|
|
22
|
+
disabled = false,
|
|
23
|
+
focus = false,
|
|
24
|
+
hover = false,
|
|
25
|
+
textContent = '',
|
|
26
|
+
type = 'button',
|
|
27
|
+
}) =>
|
|
28
|
+
`<button class="${clsx('utrecht-button', {
|
|
29
|
+
'utrecht-button--active': active,
|
|
30
|
+
'utrecht-button--busy': busy,
|
|
31
|
+
'utrecht-button--hover': hover,
|
|
32
|
+
'utrecht-button--focus': focus,
|
|
33
|
+
'utrecht-button--disabled': disabled,
|
|
34
|
+
})}"${disabled ? ' aria-disabled="true"' : ''} type="${type}">${textContent}</button>`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const defaultArgs = {
|
|
7
|
+
busy: false,
|
|
8
|
+
disabled: false,
|
|
9
|
+
textContent: '',
|
|
10
|
+
type: 'button',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const Button = ({ busy = false, disabled = false, textContent = '', type = 'button' }) =>
|
|
14
|
+
`<button type="${type || 'button'}"${busy ? ' aria-busy="true"' : ''}${
|
|
15
|
+
disabled ? ' disabled' : ''
|
|
16
|
+
}>${textContent}</button>`;
|
|
@@ -1,48 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @license EUPL-1.2
|
|
3
7
|
* Copyright (c) 2021 The Knights Who Say NIH! B.V.
|
|
4
8
|
* Copyright (c) 2021 Gemeente Utrecht
|
|
5
9
|
*/
|
|
6
10
|
.utrecht-button {
|
|
7
|
-
color: var(--utrecht-button-primary-action-color);
|
|
8
|
-
|
|
9
|
-
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
|
|
10
|
-
background-color: var(--utrecht-button-primary-action-background-color);
|
|
11
|
+
background-color: var(--utrecht-button-primary-action-background-color, var(--utrecht-button-background-color));
|
|
12
|
+
block-size: var(--utrecht-button-block-size, auto);
|
|
11
13
|
border-radius: var(--utrecht-button-border-radius);
|
|
12
14
|
border-width: var(--utrecht-button-border-width);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
color: var(--utrecht-button-primary-action-color, var(--utrecht-button-color));
|
|
16
|
+
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
|
|
17
|
+
font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
|
|
18
|
+
font-weight: var(--utrecht-button-font-weight);
|
|
19
|
+
inline-size: var(--utrecht-button-inline-size, auto);
|
|
20
|
+
letter-spacing: var(--utrecht-button-letter-spacing);
|
|
21
|
+
min-inline-size: var(--utrecht-button-min-inline-size, 0);
|
|
16
22
|
padding-block-end: var(--utrecht-button-padding-block-end);
|
|
23
|
+
padding-block-start: var(--utrecht-button-padding-block-start);
|
|
24
|
+
padding-inline-end: var(--utrecht-button-padding-inline-end);
|
|
25
|
+
padding-inline-start: var(--utrecht-button-padding-inline-start);
|
|
26
|
+
text-transform: var(--utrecht-button-text-transform);
|
|
27
|
+
user-select: none;
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
.utrecht-button--distanced {
|
|
20
|
-
margin-inline-start: var(--utrecht-button-margin-inline-start);
|
|
21
|
-
margin-inline-end: var(--utrecht-button-margin-inline-end);
|
|
22
|
-
margin-block-start: var(--utrecht-button-margin-block-start);
|
|
23
31
|
margin-block-end: var(--utrecht-button-margin-block-end);
|
|
32
|
+
margin-block-start: var(--utrecht-button-margin-block-start);
|
|
33
|
+
margin-inline-end: var(--utrecht-button-margin-inline-end);
|
|
34
|
+
margin-inline-start: var(--utrecht-button-margin-inline-start);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.utrecht-button--submit {
|
|
38
|
+
/* lower priority specificty than busy and disabled cursor */
|
|
39
|
+
cursor: var(--utrecht-action-submit-cursor);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.utrecht-button--busy {
|
|
43
|
+
cursor: var(--utrecht-action-busy-cursor);
|
|
24
44
|
}
|
|
25
45
|
|
|
26
46
|
.utrecht-button:disabled,
|
|
27
47
|
.utrecht-button--disabled {
|
|
28
|
-
color: var(--utrecht-button-disabled-color);
|
|
29
|
-
|
|
48
|
+
background-color: var(--utrecht-button-disabled-background-color, var(--utrecht-button-background-color));
|
|
49
|
+
color: var(--utrecht-button-disabled-color, var(--utrecht-button-color));
|
|
50
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.utrecht-button:active,
|
|
54
|
+
.utrecht-button--active {
|
|
55
|
+
background-color: var(--utrecht-button-active-background-color, var(--utrecht-button-background-color));
|
|
56
|
+
color: var(--utrecht-button-active-color, var(--utrecht-button-color));
|
|
30
57
|
}
|
|
31
58
|
|
|
32
59
|
.utrecht-button--focus,
|
|
33
60
|
.utrecht-button:not(.utrecht-button--disabled):focus {
|
|
34
|
-
|
|
35
|
-
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
36
|
-
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
37
|
-
color: var(--utrecht-focus-color, inherit);
|
|
61
|
+
background-color: var(--utrecht-focus-background-color);
|
|
38
62
|
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
63
|
+
color: var(--utrecht-focus-color, inherit);
|
|
64
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
39
65
|
outline-offset: 0;
|
|
40
|
-
|
|
66
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
67
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
68
|
+
background-color: var(--utrecht-button-focus-background-color, var(--utrecht-button-background-color));
|
|
69
|
+
color: var(--utrecht-button-focus-color, var(--utrecht-button-color));
|
|
41
70
|
}
|
|
42
71
|
|
|
43
72
|
.utrecht-button--hover:not(:disabled),
|
|
44
73
|
.utrecht-button:hover:not(:disabled):not(.utrecht-button--disabled) {
|
|
45
|
-
color: var(--utrecht-button-
|
|
46
|
-
|
|
74
|
+
background-color: var(--utrecht-button-hover-background-color, var(--utrecht-button-background-color));
|
|
75
|
+
color: var(--utrecht-button-hover-color, var(--utrecht-button-color));
|
|
47
76
|
transform: scale(var(--utrecht-button-focus-transform-scale, 1));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([hidden]) {
|
|
84
|
+
display: none !important;
|
|
48
85
|
}
|
|
@@ -1,19 +1,58 @@
|
|
|
1
|
-
import { Component, Prop, h } from "@stencil/core";
|
|
1
|
+
import { Component, Element, Event, Prop, h } from "@stencil/core";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
export class Button {
|
|
4
4
|
render() {
|
|
5
|
-
|
|
5
|
+
const handleReset = () => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const event = this.utrechtRequestReset.emit();
|
|
8
|
+
if (!event.defaultPrevented) {
|
|
9
|
+
(_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.closest("form")) === null || _b === void 0 ? void 0 : _b.reset();
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const handleSubmit = () => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const event = this.utrechtRequestSubmit.emit();
|
|
15
|
+
if (!event.defaultPrevented) {
|
|
16
|
+
(_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.closest("form")) === null || _b === void 0 ? void 0 : _b.requestSubmit();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const handleClick = () => {
|
|
20
|
+
if (this.type === "reset") {
|
|
21
|
+
handleReset();
|
|
22
|
+
}
|
|
23
|
+
else if (this.type === "submit") {
|
|
24
|
+
handleSubmit();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return (h("button", { class: clsx("utrecht-button", this.busy && "utrecht-button--busy", this.disabled && "utrecht-button--disabled", this.type === "submit" && "utrecht-button--submit"), "aria-busy": this.busy ? "true" : null, disabled: this.disabled, type: this.type || "button", onClick: handleClick },
|
|
6
28
|
h("slot", null)));
|
|
7
29
|
}
|
|
8
30
|
static get is() { return "utrecht-button"; }
|
|
9
31
|
static get encapsulation() { return "shadow"; }
|
|
10
32
|
static get originalStyleUrls() { return {
|
|
11
|
-
"$": ["
|
|
33
|
+
"$": ["stencil.scss"]
|
|
12
34
|
}; }
|
|
13
35
|
static get styleUrls() { return {
|
|
14
|
-
"$": ["
|
|
36
|
+
"$": ["stencil.css"]
|
|
15
37
|
}; }
|
|
16
38
|
static get properties() { return {
|
|
39
|
+
"busy": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"mutable": false,
|
|
42
|
+
"complexType": {
|
|
43
|
+
"original": "boolean",
|
|
44
|
+
"resolved": "boolean",
|
|
45
|
+
"references": {}
|
|
46
|
+
},
|
|
47
|
+
"required": false,
|
|
48
|
+
"optional": false,
|
|
49
|
+
"docs": {
|
|
50
|
+
"tags": [],
|
|
51
|
+
"text": ""
|
|
52
|
+
},
|
|
53
|
+
"attribute": "busy",
|
|
54
|
+
"reflect": false
|
|
55
|
+
},
|
|
17
56
|
"disabled": {
|
|
18
57
|
"type": "boolean",
|
|
19
58
|
"mutable": false,
|
|
@@ -30,6 +69,55 @@ export class Button {
|
|
|
30
69
|
},
|
|
31
70
|
"attribute": "disabled",
|
|
32
71
|
"reflect": false
|
|
72
|
+
},
|
|
73
|
+
"type": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "string",
|
|
78
|
+
"resolved": "string",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": ""
|
|
86
|
+
},
|
|
87
|
+
"attribute": "type",
|
|
88
|
+
"reflect": false
|
|
33
89
|
}
|
|
34
90
|
}; }
|
|
91
|
+
static get events() { return [{
|
|
92
|
+
"method": "utrechtRequestReset",
|
|
93
|
+
"name": "utrechtRequestReset",
|
|
94
|
+
"bubbles": true,
|
|
95
|
+
"cancelable": true,
|
|
96
|
+
"composed": true,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "any",
|
|
103
|
+
"resolved": "any",
|
|
104
|
+
"references": {}
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
"method": "utrechtRequestSubmit",
|
|
108
|
+
"name": "utrechtRequestSubmit",
|
|
109
|
+
"bubbles": true,
|
|
110
|
+
"cancelable": true,
|
|
111
|
+
"composed": true,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "any",
|
|
118
|
+
"resolved": "any",
|
|
119
|
+
"references": {}
|
|
120
|
+
}
|
|
121
|
+
}]; }
|
|
122
|
+
static get elementRef() { return "host"; }
|
|
35
123
|
}
|
|
@@ -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 Checkbox = ({ checked = false, disabled = false }) =>
|
|
14
|
+
`<input type="checkbox"${checked ? ' checked' : ''}${disabled ? ' disabled' : ''} class="${clsx(
|
|
15
|
+
'utrecht-checkbox',
|
|
16
|
+
checked && 'utrecht-checkbox--checked',
|
|
17
|
+
disabled && 'utrecht-checkbox--disabled',
|
|
18
|
+
)}">`;
|
|
@@ -0,0 +1,27 @@
|
|
|
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-checkbox {
|
|
10
|
+
margin-block-end: 0;
|
|
11
|
+
/* reset native margin for input[type="checkbox"] */
|
|
12
|
+
margin-block-start: 0;
|
|
13
|
+
margin-inline-end: 0;
|
|
14
|
+
margin-inline-start: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.utrecht-checkbox--disabled {
|
|
18
|
+
cursor: var(--utrecht-action-disabled-cursor);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([hidden]) {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|