@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
|
@@ -1,20 +1,13 @@
|
|
|
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 Gemeente Utrecht
|
|
4
8
|
* Copyright (c) 2021 Robbert Broersma
|
|
5
9
|
*/
|
|
6
|
-
|
|
7
10
|
.utrecht-page-footer {
|
|
8
|
-
font-family: var(--utrecht-document-font-family);
|
|
9
|
-
font-size: var(--utrecht-document-font-size);
|
|
10
|
-
background-color: var(--utrecht-page-footer-background-color);
|
|
11
|
-
background-image: var(--utrecht-page-footer-background-image);
|
|
12
|
-
color: var(--utrecht-page-footer-color);
|
|
13
|
-
padding-block-start: var(--utrecht-page-footer-padding-block-start);
|
|
14
|
-
padding-inline-end: var(--utrecht-page-footer-padding-inline-end);
|
|
15
|
-
padding-block-end: var(--utrecht-page-footer-padding-block-end);
|
|
16
|
-
padding-inline-start: var(--utrecht-page-footer-padding-inline-start);
|
|
17
|
-
|
|
18
11
|
--utrecht-document-color: currentColor;
|
|
19
12
|
--utrecht-heading-color: currentColor;
|
|
20
13
|
--utrecht-link-color: currentColor;
|
|
@@ -22,11 +15,28 @@
|
|
|
22
15
|
--utrecht-link-hover-color: currentColor;
|
|
23
16
|
--utrecht-link-active-color: currentColor;
|
|
24
17
|
--utrecht-link-visited-color: currentColor;
|
|
18
|
+
background-color: var(--utrecht-page-footer-background-color);
|
|
19
|
+
background-image: var(--utrecht-page-footer-background-image);
|
|
20
|
+
color: var(--utrecht-page-footer-color);
|
|
21
|
+
font-family: var(--utrecht-document-font-family);
|
|
22
|
+
font-size: var(--utrecht-document-font-size);
|
|
23
|
+
padding-block-end: var(--utrecht-page-footer-padding-block-end);
|
|
24
|
+
padding-block-start: var(--utrecht-page-footer-padding-block-start);
|
|
25
|
+
padding-inline-end: var(--utrecht-page-footer-padding-inline-end);
|
|
26
|
+
padding-inline-start: var(--utrecht-page-footer-padding-inline-start);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.utrecht-page-footer__address--reset-address {
|
|
28
30
|
/* reset <address> */
|
|
29
31
|
font-style: inherit;
|
|
30
|
-
margin-block-start: 0;
|
|
31
32
|
margin-block-end: 0;
|
|
33
|
+
margin-block-start: 0;
|
|
32
34
|
}
|
|
35
|
+
|
|
36
|
+
:host {
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([hidden]) {
|
|
41
|
+
display: none !important;
|
|
42
|
+
}
|
|
@@ -11,9 +11,9 @@ export class PageFooter {
|
|
|
11
11
|
static get is() { return "utrecht-page-footer"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
13
13
|
static get originalStyleUrls() { return {
|
|
14
|
-
"$": ["
|
|
14
|
+
"$": ["stencil.scss"]
|
|
15
15
|
}; }
|
|
16
16
|
static get styleUrls() { return {
|
|
17
|
-
"$": ["
|
|
17
|
+
"$": ["stencil.css"]
|
|
18
18
|
}; }
|
|
19
19
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
distanced: false,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const LinkTemplate = ({ disabled = false, href = '', rel = null, textContent = '', title = '' }) =>
|
|
13
|
+
`<${disabled ? 'span' : 'a'} href="${href}" class="${clsx(
|
|
14
|
+
'utrecht-pagination__relative-link',
|
|
15
|
+
disabled && 'utrecht-pagination__relative-link--disabled',
|
|
16
|
+
rel === 'next' && 'utrecht-pagination__relative-link--next',
|
|
17
|
+
rel === 'prev' && 'utrecht-pagination__relative-link--prev',
|
|
18
|
+
)}"${rel ? ` rel="${rel}"` : ''}${title ? ` aria-label="${title}"` : ''}>${textContent}</${disabled ? 'span' : 'a'}>`;
|
|
19
|
+
|
|
20
|
+
export const ItemTemplate = ({ current = false, href = '', rel = null, textContent = '' }) =>
|
|
21
|
+
`<a class="${clsx(
|
|
22
|
+
'utrecht-pagination__page-link',
|
|
23
|
+
current && 'utrecht-pagination__page-link--current',
|
|
24
|
+
)}" href="${href}"${current ? ' aria-current="true"' : ''}${rel ? ` rel="${rel}"` : ''}>${textContent}</a>`;
|
|
25
|
+
|
|
26
|
+
export const Pagination = ({ currentIndex = -1, distanced = false, links = [], next = null, prev = null }) =>
|
|
27
|
+
`<nav class="${clsx(
|
|
28
|
+
'utrecht-pagination',
|
|
29
|
+
distanced && 'utrecht-pagination--distanced',
|
|
30
|
+
)}"><span class="utrecht-pagination__before">${
|
|
31
|
+
prev ? LinkTemplate({ ...prev, rel: 'prev', textContent: 'Vorige' }) : ''
|
|
32
|
+
}</span><span role="group" class="utrecht-pagination__pages">${links
|
|
33
|
+
.sort((a, b) => (a.index === b.index ? 0 : a.index > b.index ? 1 : -1))
|
|
34
|
+
.map((link, arrayIndex) => {
|
|
35
|
+
const index = typeof link.index === 'number' ? link.index : arrayIndex;
|
|
36
|
+
return {
|
|
37
|
+
index,
|
|
38
|
+
current: typeof currentIndex === 'number' && index === currentIndex,
|
|
39
|
+
rel:
|
|
40
|
+
typeof currentIndex === 'number'
|
|
41
|
+
? index === currentIndex + 1
|
|
42
|
+
? 'next'
|
|
43
|
+
: index === currentIndex - 1
|
|
44
|
+
? 'prev'
|
|
45
|
+
: null
|
|
46
|
+
: null,
|
|
47
|
+
textContent: link.index || index,
|
|
48
|
+
...link,
|
|
49
|
+
};
|
|
50
|
+
})
|
|
51
|
+
.map((link) => ItemTemplate(link))
|
|
52
|
+
.join('')}</span><span class="utrecht-pagination__before">${
|
|
53
|
+
next ? LinkTemplate({ ...next, rel: 'next', textContent: 'Volgende' }) : ''
|
|
54
|
+
}</span></nav>`;
|
|
@@ -0,0 +1,118 @@
|
|
|
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-pagination {
|
|
10
|
+
font-family: var(--utrecht-pagination-font-family, var(--utrecht-document-font-family));
|
|
11
|
+
font-size: var(--utrecht-pagination-font-size, var(--utrecht-document-font-family));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.utrecht-pagination--distanced {
|
|
15
|
+
margin-block-end: var(--utrecht-pagination-margin-block-end);
|
|
16
|
+
margin-block-start: var(--utrecht-pagination-margin-block-start);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.utrecht-pagination__relative-link {
|
|
20
|
+
background-color: var(--utrecht-pagination-relative-link-background-color);
|
|
21
|
+
border-color: var(--utrecht-pagination-relative-link-border-color);
|
|
22
|
+
border-radius: var(--utrecht-pagination-relative-link-border-radius);
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-width: var(--utrecht-pagination-relative-link-border-width, 0);
|
|
25
|
+
color: var(--utrecht-pagination-relative-link-color);
|
|
26
|
+
display: inline-block;
|
|
27
|
+
font-weight: var(--utrecht-pagination-relative-link-font-weight);
|
|
28
|
+
padding-block-end: var(--utrecht-pagination-relative-link-padding-block-end);
|
|
29
|
+
padding-block-start: var(--utrecht-pagination-relative-link-padding-block-start);
|
|
30
|
+
padding-inline-end: var(--utrecht-pagination-relative-link-padding-inline-end);
|
|
31
|
+
padding-inline-start: var(--utrecht-pagination-relative-link-padding-inline-start);
|
|
32
|
+
text-decoration: var(--utrecht-pagination-relative-link-text-decoration);
|
|
33
|
+
text-transform: var(--utrecht-pagination-relative-link-text-transform);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.utrecht-pagination__relative-link--next {
|
|
37
|
+
margin-inline-start: var(--utrecht-pagination-relative-link-distanced-margin-inline-start);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.utrecht-pagination__relative-link--prev {
|
|
41
|
+
margin-inline-end: var(--utrecht-pagination-relative-link-distanced-margin-inline-end);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.utrecht-pagination__relative-link--disabled {
|
|
45
|
+
background-color: var(--utrecht-pagination-relative-link-disabled-background-color, var(--utrecht-pagination-relative-link-background-color));
|
|
46
|
+
color: var(--utrecht-pagination-relative-link-disabled-color, var(--utrecht-pagination-relative-link-color));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.utrecht-pagination__relative-link--focus,
|
|
50
|
+
.utrecht-pagination__relative-link:focus {
|
|
51
|
+
background-color: var(--utrecht-focus-background-color);
|
|
52
|
+
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
53
|
+
color: var(--utrecht-focus-color, inherit);
|
|
54
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
55
|
+
outline-offset: 0;
|
|
56
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
57
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.utrecht-pagination__relative-link--hover,
|
|
61
|
+
.utrecht-pagination__relative-link:hover {
|
|
62
|
+
background-color: var(--utrecht-pagination-relative-link-hover-background-color, var(--utrecht-pagination-relative-link-background-color));
|
|
63
|
+
border-color: var(--utrecht-pagination-relative-link-hover-border-color, var(--utrecht-pagination-relative-link-border-color));
|
|
64
|
+
color: var(--utrecht-pagination-relative-link-hover-color, var(--utrecht-pagination-relative-link-color));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.utrecht-pagination__page-link {
|
|
68
|
+
background-color: var(--utrecht-pagination-page-link-background-color);
|
|
69
|
+
border-color: var(--utrecht-pagination-page-link-border-color, 0);
|
|
70
|
+
border-radius: var(--utrecht-pagination-page-link-border-radius);
|
|
71
|
+
border-style: solid;
|
|
72
|
+
border-width: var(--utrecht-pagination-page-link-border-width);
|
|
73
|
+
color: var(--utrecht-pagination-page-link-color);
|
|
74
|
+
display: inline-block;
|
|
75
|
+
font-weight: var(--utrecht-pagination-page-link-font-weight);
|
|
76
|
+
padding-block-end: var(--utrecht-pagination-page-link-padding-block-end);
|
|
77
|
+
padding-block-start: var(--utrecht-pagination-page-link-padding-block-start);
|
|
78
|
+
padding-inline-end: var(--utrecht-pagination-page-link-padding-inline-end);
|
|
79
|
+
padding-inline-start: var(--utrecht-pagination-page-link-padding-inline-start);
|
|
80
|
+
text-decoration: var(--utrecht-pagination-page-link-text-decoration);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.utrecht-pagination__page-link--current {
|
|
84
|
+
background-color: var(--utrecht-pagination-page-link-current-background-color);
|
|
85
|
+
border-color: var(--utrecht-pagination-page-link-current-border-color);
|
|
86
|
+
color: var(--utrecht-pagination-page-link-current-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.utrecht-pagination__page-link--distanced,
|
|
90
|
+
.utrecht-pagination__page-link ~ .utrecht-pagination__page-link {
|
|
91
|
+
margin-inline-start: var(--utrecht-pagination-page-link-distanced-margin-inline-start);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.utrecht-pagination__page-link--hover,
|
|
95
|
+
.utrecht-pagination__page-link:hover {
|
|
96
|
+
background-color: var(--utrecht-pagination-page-link-hover-background-color, var(--utrecht-pagination-page-link-background-color));
|
|
97
|
+
border-color: var(--utrecht-pagination-page-link-hover-border-color, var(--utrecht-pagination-page-link-border-color));
|
|
98
|
+
color: var(--utrecht-pagination-page-link-hover-color, var(--utrecht-pagination-page-link-color));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.utrecht-pagination__page-link--focus,
|
|
102
|
+
.utrecht-pagination__page-link:focus {
|
|
103
|
+
background-color: var(--utrecht-focus-background-color);
|
|
104
|
+
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
105
|
+
color: var(--utrecht-focus-color, inherit);
|
|
106
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
107
|
+
outline-offset: 0;
|
|
108
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
109
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host {
|
|
113
|
+
display: block;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([hidden]) {
|
|
117
|
+
display: none !important;
|
|
118
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 Pagination {
|
|
8
|
+
render() {
|
|
9
|
+
const { currentIndex } = this;
|
|
10
|
+
const links = typeof this.links === "string" ? JSON.parse(this.links) : null;
|
|
11
|
+
const next = typeof this.next === "string" ? JSON.parse(this.next) : null;
|
|
12
|
+
const prev = typeof this.prev === "string" ? JSON.parse(this.next) : null;
|
|
13
|
+
const RelativeLink = ({ disabled = false, href = "", rel = null, textContent = "", title = "" }) => disabled ? (h("span", { class: clsx("utrecht-pagination__relative-link", disabled && "utrecht-pagination__relative-link--disabled", rel === "next" && "utrecht-pagination__relative-link--next", rel === "prev" && "utrecht-pagination__relative-link--prev"), "aria-label": title || null }, textContent)) : (h("a", { href: href, class: clsx("utrecht-pagination__relative-link", disabled && "utrecht-pagination__relative-link--disabled", rel === "next" && "utrecht-pagination__relative-link--next", rel === "prev" && "utrecht-pagination__relative-link--prev"), rel: rel, "aria-label": title || null }, textContent));
|
|
14
|
+
const PageLink = ({ current = false, href = "", rel = null, textContent = "" }) => (h("a", { class: clsx("utrecht-pagination__page-link", current && "utrecht-pagination__page-link--current"), href: href, "aria-current": current ? "true" : null, rel: rel }, textContent));
|
|
15
|
+
return (h("nav", { class: "utrecht-pagination" },
|
|
16
|
+
h("span", { class: "utrecht-pagination__before" }, prev ? RelativeLink(Object.assign(Object.assign({}, prev), { rel: "prev", textContent: "Vorige" })) : ""),
|
|
17
|
+
h("span", { role: "group", class: "utrecht-pagination__pages" }, links
|
|
18
|
+
.sort((a, b) => (a.index === b.index ? 0 : a.index > b.index ? 1 : -1))
|
|
19
|
+
.map((link, arrayIndex) => {
|
|
20
|
+
const index = typeof link.index === "number" ? link.index : arrayIndex;
|
|
21
|
+
return Object.assign({ index, current: typeof currentIndex === "number" && index === currentIndex, rel: typeof currentIndex === "number"
|
|
22
|
+
? index === currentIndex + 1
|
|
23
|
+
? "next"
|
|
24
|
+
: index === currentIndex - 1
|
|
25
|
+
? "prev"
|
|
26
|
+
: null
|
|
27
|
+
: null, textContent: link.index || index }, link);
|
|
28
|
+
})
|
|
29
|
+
.map((link) => PageLink(link))),
|
|
30
|
+
h("span", { class: "utrecht-pagination__before" }, next ? RelativeLink(Object.assign(Object.assign({}, next), { rel: "next", textContent: "Volgende" })) : "")));
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "utrecht-pagination"; }
|
|
33
|
+
static get encapsulation() { return "shadow"; }
|
|
34
|
+
static get originalStyleUrls() { return {
|
|
35
|
+
"$": ["stencil.scss"]
|
|
36
|
+
}; }
|
|
37
|
+
static get styleUrls() { return {
|
|
38
|
+
"$": ["stencil.css"]
|
|
39
|
+
}; }
|
|
40
|
+
static get properties() { return {
|
|
41
|
+
"links": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": false,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "string",
|
|
46
|
+
"resolved": "string",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": ""
|
|
54
|
+
},
|
|
55
|
+
"attribute": "links",
|
|
56
|
+
"reflect": false
|
|
57
|
+
},
|
|
58
|
+
"next": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "string",
|
|
63
|
+
"resolved": "string",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"attribute": "next",
|
|
73
|
+
"reflect": false
|
|
74
|
+
},
|
|
75
|
+
"prev": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "string",
|
|
80
|
+
"resolved": "string",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": ""
|
|
88
|
+
},
|
|
89
|
+
"attribute": "prev",
|
|
90
|
+
"reflect": false
|
|
91
|
+
},
|
|
92
|
+
"currentIndex": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "number",
|
|
97
|
+
"resolved": "number",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": ""
|
|
105
|
+
},
|
|
106
|
+
"attribute": "current-index",
|
|
107
|
+
"reflect": false
|
|
108
|
+
}
|
|
109
|
+
}; }
|
|
110
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
lead: false,
|
|
10
|
+
textContent: '',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const Paragraph = ({ distanced = false, textContent = '', lead = false }) =>
|
|
14
|
+
`<p class="${clsx('utrecht-paragraph', {
|
|
15
|
+
'utrecht-paragraph--distanced': distanced,
|
|
16
|
+
'utrecht-paragraph--lead': lead,
|
|
17
|
+
})}">${textContent}</p>`;
|
|
@@ -1,22 +1,37 @@
|
|
|
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
|
*/
|
|
5
|
-
|
|
6
9
|
.utrecht-paragraph {
|
|
7
10
|
color: var(--utrecht-document-color, inherit);
|
|
8
11
|
font-family: var(--utrecht-paragraph-font-family, var(--utrecht-document-font-family, inherit));
|
|
9
12
|
font-size: var(--utrecht-paragraph-font-size, var(--utrecht-document-font-size, inherit));
|
|
10
13
|
font-weight: var(--utrecht-paragraph-font-weight, inherit);
|
|
11
14
|
line-height: var(--utrecht-paragraph-line-height, var(--utrecht-document-line-height, inherit));
|
|
15
|
+
margin-block-end: 0;
|
|
16
|
+
margin-block-start: 0;
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
.utrecht-paragraph--lead {
|
|
20
|
+
color: var(--utrecht-paragraph-lead-color, var(--utrecht-document-color, inherit));
|
|
15
21
|
font-size: var(--utrecht-paragraph-lead-font-size, inherit);
|
|
16
22
|
font-weight: var(--utrecht-paragraph-lead-font-weight, inherit);
|
|
17
23
|
line-height: var(--utrecht-paragraph-lead-line-height, inherit);
|
|
18
24
|
}
|
|
25
|
+
|
|
19
26
|
.utrecht-paragraph--distanced {
|
|
20
|
-
margin-block-start: var(--utrecht-paragraph-margin-block-start);
|
|
21
27
|
margin-block-end: var(--utrecht-paragraph-margin-block-end);
|
|
28
|
+
margin-block-start: var(--utrecht-paragraph-margin-block-start);
|
|
22
29
|
}
|
|
30
|
+
|
|
31
|
+
:host {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
@@ -8,10 +8,10 @@ export class Paragraph {
|
|
|
8
8
|
static get is() { return "utrecht-paragraph"; }
|
|
9
9
|
static get encapsulation() { return "shadow"; }
|
|
10
10
|
static get originalStyleUrls() { return {
|
|
11
|
-
"$": ["
|
|
11
|
+
"$": ["stencil.scss"]
|
|
12
12
|
}; }
|
|
13
13
|
static get styleUrls() { return {
|
|
14
|
-
"$": ["
|
|
14
|
+
"$": ["stencil.css"]
|
|
15
15
|
}; }
|
|
16
16
|
static get properties() { return {
|
|
17
17
|
"lead": {
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
distanced: false,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const PreHeading = ({ textContent = '', distanced = false }) =>
|
|
13
|
+
`<div class="${clsx('utrecht-pre-heading', {
|
|
14
|
+
'utrecht-pre-heading--distanced': distanced,
|
|
15
|
+
})}">${textContent}</div>`;
|
|
@@ -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
|
+
)}">`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Gemeente Utrecht
|
|
4
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export const SearchBar = ({
|
|
8
|
+
buttonLabel,
|
|
9
|
+
formLabel,
|
|
10
|
+
inputLabel,
|
|
11
|
+
value,
|
|
12
|
+
}) => `<form class="utrecht-search-bar" role="search" aria-label="${formLabel}">
|
|
13
|
+
<input type="search" class="utrecht-search-bar__input utrecht-textbox utrecht-textbox utrecht-textbox--html-input" name="q" autocomplete="off" spellcheck="false" value="${value}" aria-label="${inputLabel}">
|
|
14
|
+
<button type="submit" value="Zoeken" class="utrecht-search-bar__button utrecht-button">${buttonLabel}</button>
|
|
15
|
+
</form>`;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
disabled: false,
|
|
11
|
+
focus: false,
|
|
12
|
+
invalid: false,
|
|
13
|
+
options: [],
|
|
14
|
+
required: false,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const Select = ({ disabled = false, focus = false, invalid = false, options = [], required = false }) =>
|
|
18
|
+
`<select${invalid ? ' aria-invalid="true"' : ''}${disabled ? ' disabled' : ''}${
|
|
19
|
+
required ? ' required' : ''
|
|
20
|
+
} class="${clsx('utrecht-select', {
|
|
21
|
+
'utrecht-select--disabled': disabled,
|
|
22
|
+
'utrecht-select--focus': focus,
|
|
23
|
+
'utrecht-select--invalid': invalid,
|
|
24
|
+
'utrecht-select--required': required,
|
|
25
|
+
})}">
|
|
26
|
+
${options
|
|
27
|
+
.map(
|
|
28
|
+
({ label, selected, value }) =>
|
|
29
|
+
`<option${selected ? ' selected' : ''}${value ? ` value="${value}"` : ''}>${label}</option>`,
|
|
30
|
+
)
|
|
31
|
+
.join('\n ')}
|
|
32
|
+
</select>`;
|
|
33
|
+
|
|
34
|
+
export const exampleOptions = [
|
|
35
|
+
{ value: '1', label: 'Option #1' },
|
|
36
|
+
{ value: '2', label: 'Option #2', selected: true },
|
|
37
|
+
{ value: '3', label: 'Option #3' },
|
|
38
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
distanced: false,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Separator = ({ distanced = false }) =>
|
|
13
|
+
`<div role="separator" aria-orientation="horizontal" class="${clsx(
|
|
14
|
+
'utrecht-separator',
|
|
15
|
+
distanced && 'utrecht-separator--distanced',
|
|
16
|
+
)}"></div>`;
|
|
@@ -1,14 +1,28 @@
|
|
|
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 Gemeente Utrecht
|
|
4
8
|
* Copyright (c) 2021 Robbert Broersma
|
|
5
9
|
* Copyright (c) 2021 The Knights Who Say NIH! B.V.
|
|
6
10
|
*/
|
|
7
|
-
|
|
8
11
|
.utrecht-separator {
|
|
9
|
-
border-style: solid;
|
|
10
12
|
border-color: var(--utrecht-separator-color);
|
|
11
|
-
border-
|
|
12
|
-
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-width: 0 0 var(--utrecht-separator-block-size) 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.utrecht-separator--distanced {
|
|
13
18
|
margin-block-end: var(--utrecht-separator-margin-block-end);
|
|
19
|
+
margin-block-start: var(--utrecht-separator-margin-block-start);
|
|
14
20
|
}
|
|
21
|
+
|
|
22
|
+
:host {
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([hidden]) {
|
|
27
|
+
display: none !important;
|
|
28
|
+
}
|
|
@@ -6,9 +6,9 @@ export class Separator {
|
|
|
6
6
|
static get is() { return "utrecht-separator"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
8
8
|
static get originalStyleUrls() { return {
|
|
9
|
-
"$": ["
|
|
9
|
+
"$": ["stencil.scss"]
|
|
10
10
|
}; }
|
|
11
11
|
static get styleUrls() { return {
|
|
12
|
-
"$": ["
|
|
12
|
+
"$": ["stencil.css"]
|
|
13
13
|
}; }
|
|
14
14
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license EUPL-1.2
|
|
7
|
+
* Copyright (c) 2021 The Knights Who Say NIH! B.V.
|
|
8
|
+
* Copyright (c) 2021 Gemeente Utrecht
|
|
9
|
+
*/
|
|
10
|
+
.utrecht-link {
|
|
11
|
+
color: var(--utrecht-link-color, blue);
|
|
12
|
+
text-decoration: var(--utrecht-link-text-decoration, underline);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.utrecht-link:visited,
|
|
16
|
+
.utrecht-link--visited {
|
|
17
|
+
color: var(--utrecht-link-visited-color, var(--utrecht-link-color));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.utrecht-link:hover,
|
|
21
|
+
.utrecht-link--hover {
|
|
22
|
+
color: var(--utrecht-link-hover-color, var(--utrecht-link-color));
|
|
23
|
+
text-decoration: var(--utrecht-link-hover-text-decoration, var(--utrecht-link-text-decoration, underline));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.utrecht-link:active,
|
|
27
|
+
.utrecht-link--active {
|
|
28
|
+
color: var(--utrecht-link-active-color, var(--utrecht-link-color));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.utrecht-link:focus,
|
|
32
|
+
.utrecht-link--focus {
|
|
33
|
+
background-color: var(--utrecht-focus-background-color);
|
|
34
|
+
box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
|
|
35
|
+
color: var(--utrecht-focus-color, inherit);
|
|
36
|
+
outline-color: var(--utrecht-focus-outline-color, transparent);
|
|
37
|
+
outline-offset: 0;
|
|
38
|
+
outline-style: var(--utrecht-focus-outline-style, solid);
|
|
39
|
+
outline-width: var(--utrecht-focus-outline-width, 0);
|
|
40
|
+
color: var(--utrecht-link-focus-color, var(--utrecht-link-color));
|
|
41
|
+
text-decoration: var(--utrecht-link-focus-text-decoration, var(--utrecht-link-text-decoration, underline));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
45
|
+
.utrecht-link--telephone {
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @license EUPL-1.2
|
|
51
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
52
|
+
*/
|
|
53
|
+
.utrecht-contact-card {
|
|
54
|
+
--utrecht-document-color: currentColor;
|
|
55
|
+
--utrecht-heading-color: currentColor;
|
|
56
|
+
--utrecht-link-color: currentColor;
|
|
57
|
+
--utrecht-link-focus-color: currentColor;
|
|
58
|
+
--utrecht-link-hover-color: currentColor;
|
|
59
|
+
--utrecht-link-active-color: currentColor;
|
|
60
|
+
--utrecht-link-visited-color: currentColor;
|
|
61
|
+
--utrecht-heading-2-text-transform: uppercase;
|
|
62
|
+
--utrecht-heading-2-font-size: var(--utrecht-typography-scale-md-font-size);
|
|
63
|
+
--utrecht-contact-card-background-color: hsl(207 60% 91%);
|
|
64
|
+
--utrecht-contact-card-background-color-2: hsl(207 60% 96%);
|
|
65
|
+
background-color: #dae9f6;
|
|
66
|
+
background-image: linear-gradient(45deg, var(--utrecht-contact-card-background-color), var(--utrecht-contact-card-background-color) 50%, var(--utrecht-contact-card-background-color-2) 50%, var(--utrecht-contact-card-background-color-2));
|
|
67
|
+
background-position-x: 66%;
|
|
68
|
+
background-size: 200%;
|
|
69
|
+
color: var(--utrecht-color-black);
|
|
70
|
+
padding-block-end: var(--utrecht-space-block-lg);
|
|
71
|
+
padding-block-start: var(--utrecht-space-block-lg);
|
|
72
|
+
padding-inline-end: var(--utrecht-space-inline-lg);
|
|
73
|
+
padding-inline-start: var(--utrecht-space-inline-lg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.utrecht-contact-card__content {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.utrecht-contact-card__section {
|
|
82
|
+
margin-block-start: var(--utrecht-space-row-lg);
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.utrecht-contact-card__telephone {
|
|
87
|
+
--utrecht-paragraph-font-size: var(--utrecht-typography-scale-2xl-font-size);
|
|
88
|
+
}
|