@utrecht/web-component-library-stencil 1.0.0-alpha.2 → 1.0.0-alpha.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (696) hide show
  1. package/README.md +51 -0
  2. package/dist/cjs/{index-04d7da5a.js → index-8c6952a4.js} +307 -75
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/utrecht-article.cjs.entry.js +19 -0
  5. package/dist/cjs/utrecht-backdrop.cjs.entry.js +21 -0
  6. package/dist/cjs/utrecht-badge-counter.cjs.entry.js +5 -5
  7. package/dist/cjs/utrecht-badge-data.cjs.entry.js +3 -3
  8. package/dist/cjs/utrecht-badge-status.cjs.entry.js +3 -3
  9. package/dist/cjs/utrecht-breadcrumb.cjs.entry.js +23 -0
  10. package/dist/cjs/utrecht-button_2.cjs.entry.js +58 -0
  11. package/dist/cjs/utrecht-checkbox.cjs.entry.js +32 -0
  12. package/dist/cjs/utrecht-contact-card-template.cjs.entry.js +19 -0
  13. package/dist/cjs/utrecht-custom-checkbox.cjs.entry.js +52 -0
  14. package/dist/cjs/utrecht-digid-button.cjs.entry.js +19 -0
  15. package/dist/cjs/utrecht-document.cjs.entry.js +3 -3
  16. package/dist/cjs/utrecht-eherkenning-logo.cjs.entry.js +19 -0
  17. package/dist/cjs/utrecht-eidas-logo.cjs.entry.js +19 -0
  18. package/dist/cjs/utrecht-form-field-checkbox.cjs.entry.js +34 -0
  19. package/dist/cjs/utrecht-form-field-description.cjs.entry.js +22 -0
  20. package/dist/cjs/utrecht-form-field-textarea.cjs.entry.js +34 -0
  21. package/dist/cjs/utrecht-form-field-textbox.cjs.entry.js +39 -0
  22. package/dist/cjs/utrecht-form-toggle.cjs.entry.js +48 -0
  23. package/dist/cjs/utrecht-heading-1.cjs.entry.js +19 -0
  24. package/dist/cjs/utrecht-heading-2_3.cjs.entry.js +46 -0
  25. package/dist/cjs/utrecht-heading-4.cjs.entry.js +19 -0
  26. package/dist/cjs/utrecht-heading-5.cjs.entry.js +19 -0
  27. package/dist/cjs/utrecht-heading-6.cjs.entry.js +19 -0
  28. package/dist/cjs/utrecht-heading.cjs.entry.js +3 -3
  29. package/dist/cjs/utrecht-html-content.cjs.entry.js +3 -3
  30. package/dist/cjs/utrecht-icon-afval.cjs.entry.js +19 -0
  31. package/dist/cjs/utrecht-icon-arrow.cjs.entry.js +19 -0
  32. package/dist/cjs/utrecht-icon-checkmark.cjs.entry.js +19 -0
  33. package/dist/cjs/utrecht-icon-cross.cjs.entry.js +19 -0
  34. package/dist/cjs/utrecht-icon-error.cjs.entry.js +19 -0
  35. package/dist/cjs/utrecht-icon-facebook.cjs.entry.js +19 -0
  36. package/dist/cjs/utrecht-icon-filter.cjs.entry.js +19 -0
  37. package/dist/cjs/utrecht-icon-information.cjs.entry.js +19 -0
  38. package/dist/cjs/utrecht-icon-instagram.cjs.entry.js +19 -0
  39. package/dist/cjs/utrecht-icon-linkedin.cjs.entry.js +19 -0
  40. package/dist/cjs/utrecht-icon-list.cjs.entry.js +19 -0
  41. package/dist/cjs/utrecht-icon-loupe.cjs.entry.js +19 -0
  42. package/dist/cjs/utrecht-icon-melding.cjs.entry.js +19 -0
  43. package/dist/cjs/utrecht-icon-paspoort.cjs.entry.js +19 -0
  44. package/dist/cjs/utrecht-icon-rijbewijs.cjs.entry.js +19 -0
  45. package/dist/cjs/utrecht-icon-toeslag.cjs.entry.js +19 -0
  46. package/dist/cjs/utrecht-icon-trouwen.cjs.entry.js +19 -0
  47. package/dist/cjs/utrecht-icon-twitter.cjs.entry.js +19 -0
  48. package/dist/cjs/utrecht-icon-verhuizen.cjs.entry.js +19 -0
  49. package/dist/cjs/utrecht-icon-warning.cjs.entry.js +19 -0
  50. package/dist/cjs/utrecht-icon-whatsapp.cjs.entry.js +19 -0
  51. package/dist/cjs/utrecht-icon-zoomin.cjs.entry.js +19 -0
  52. package/dist/cjs/utrecht-icon-zoomout.cjs.entry.js +19 -0
  53. package/dist/cjs/utrecht-logo-button.cjs.entry.js +19 -0
  54. package/dist/cjs/utrecht-logo.cjs.entry.js +19 -0
  55. package/dist/cjs/utrecht-page-content.cjs.entry.js +19 -0
  56. package/dist/cjs/utrecht-page-footer.cjs.entry.js +19 -0
  57. package/dist/cjs/utrecht-page-header.cjs.entry.js +19 -0
  58. package/dist/cjs/utrecht-page.cjs.entry.js +19 -0
  59. package/dist/cjs/utrecht-pagination.cjs.entry.js +38 -0
  60. package/dist/cjs/utrecht-separator.cjs.entry.js +3 -3
  61. package/dist/cjs/utrecht-sidenav.cjs.entry.js +21 -0
  62. package/dist/cjs/utrecht-textbox.cjs.entry.js +39 -0
  63. package/dist/cjs/utrecht.cjs.js +3 -3
  64. package/dist/collection/alternate-lang-nav/bem.js +12 -0
  65. package/dist/collection/article/bem.js +6 -0
  66. package/dist/collection/article/stencil.css +19 -0
  67. package/dist/collection/article/stencil.js +15 -0
  68. package/dist/collection/backdrop/bem.js +12 -0
  69. package/dist/collection/backdrop/checkerboard.js +20 -0
  70. package/dist/collection/backdrop/stencil.css +33 -0
  71. package/dist/collection/backdrop/stencil.js +40 -0
  72. package/dist/collection/badge-counter/bem.js +7 -0
  73. package/dist/collection/badge-counter/{bem.css → stencil.css} +16 -2
  74. package/dist/collection/badge-counter/stencil.js +5 -5
  75. package/dist/collection/badge-data/bem.js +6 -0
  76. package/dist/collection/badge-data/{bem.css → stencil.css} +15 -1
  77. package/dist/collection/badge-data/stencil.js +3 -3
  78. package/dist/collection/badge-status/bem.js +7 -0
  79. package/dist/collection/badge-status/{bem.css → stencil.css} +20 -1
  80. package/dist/collection/badge-status/stencil.js +3 -3
  81. package/dist/collection/blockquote/bem.js +24 -0
  82. package/dist/collection/breadcrumb/bem.js +41 -0
  83. package/dist/collection/breadcrumb/stencil.css +242 -0
  84. package/dist/collection/breadcrumb/stencil.js +62 -0
  85. package/dist/collection/button/bem.js +37 -0
  86. package/dist/collection/button/html.js +17 -0
  87. package/dist/collection/button/stencil.css +106 -0
  88. package/dist/collection/button/stencil.js +93 -5
  89. package/dist/collection/checkbox/bem.js +19 -0
  90. package/dist/collection/checkbox/stencil.css +55 -0
  91. package/dist/collection/checkbox/stencil.js +164 -0
  92. package/dist/collection/collection-manifest.json +57 -4
  93. package/dist/collection/custom-checkbox/bem.js +46 -0
  94. package/dist/collection/custom-checkbox/stencil.css +184 -0
  95. package/dist/collection/custom-checkbox/stencil.js +205 -0
  96. package/dist/collection/digid-button/bem.js +16 -0
  97. package/dist/collection/digid-button/stencil.css +32 -0
  98. package/dist/collection/digid-button/stencil.js +41 -0
  99. package/dist/collection/digid-logo/stencil.css +18 -0
  100. package/dist/collection/digid-logo/stencil.js +23 -0
  101. package/dist/collection/document/stencil.css +33 -0
  102. package/dist/collection/document/stencil.js +3 -3
  103. package/dist/collection/eherkenning-logo/stencil.css +18 -0
  104. package/dist/collection/eherkenning-logo/stencil.js +26 -0
  105. package/dist/collection/eidas-logo/stencil.css +18 -0
  106. package/dist/collection/eidas-logo/stencil.js +28 -0
  107. package/dist/collection/emphasis/bem.js +19 -0
  108. package/dist/collection/form-field-checkbox/bem.js +10 -0
  109. package/dist/collection/form-field-checkbox/stencil.css +106 -0
  110. package/dist/collection/form-field-checkbox/stencil.js +190 -0
  111. package/dist/collection/form-field-checkbox-group/bem.js +33 -0
  112. package/dist/collection/form-field-description/bem.js +15 -0
  113. package/dist/collection/form-field-description/stencil.css +39 -0
  114. package/dist/collection/form-field-description/stencil.js +44 -0
  115. package/dist/collection/form-field-radio/bem.js +10 -0
  116. package/dist/collection/form-field-radio-group/bem.js +20 -0
  117. package/dist/collection/form-field-textarea/stencil.css +128 -0
  118. package/dist/collection/form-field-textarea/stencil.js +205 -0
  119. package/dist/collection/form-field-textbox/stencil.css +133 -0
  120. package/dist/collection/form-field-textbox/stencil.js +300 -0
  121. package/dist/collection/form-fieldset/bem.js +10 -0
  122. package/dist/collection/form-label/bem.js +22 -0
  123. package/dist/collection/form-toggle/bem.js +47 -0
  124. package/dist/collection/form-toggle/stencil.css +115 -0
  125. package/dist/collection/form-toggle/stencil.js +148 -0
  126. package/dist/collection/heading/bem.js +36 -0
  127. package/dist/collection/heading/{bem.css → stencil.css} +72 -37
  128. package/dist/collection/heading/stencil.js +3 -3
  129. package/dist/collection/heading-1/bem.js +11 -0
  130. package/dist/collection/heading-1/stencil.css +34 -0
  131. package/dist/collection/heading-1/stencil.js +15 -0
  132. package/dist/collection/heading-2/bem.js +11 -0
  133. package/dist/collection/heading-2/stencil.css +34 -0
  134. package/dist/collection/heading-2/stencil.js +15 -0
  135. package/dist/collection/heading-3/bem.js +11 -0
  136. package/dist/collection/heading-3/stencil.css +34 -0
  137. package/dist/collection/heading-3/stencil.js +15 -0
  138. package/dist/collection/heading-4/bem.js +11 -0
  139. package/dist/collection/heading-4/stencil.css +34 -0
  140. package/dist/collection/heading-4/stencil.js +15 -0
  141. package/dist/collection/heading-5/bem.js +11 -0
  142. package/dist/collection/heading-5/stencil.css +34 -0
  143. package/dist/collection/heading-5/stencil.js +15 -0
  144. package/dist/collection/heading-6/bem.js +11 -0
  145. package/dist/collection/heading-6/stencil.css +34 -0
  146. package/dist/collection/heading-6/stencil.js +15 -0
  147. package/dist/collection/html-content/stencil.css +1203 -0
  148. package/dist/collection/html-content/stencil.js +3 -3
  149. package/dist/collection/icon/afval.stencil.js +19 -0
  150. package/dist/collection/icon/afval.svg +7 -0
  151. package/dist/collection/icon/arrow.stencil.js +17 -0
  152. package/dist/collection/icon/arrow.svg +9 -0
  153. package/dist/collection/icon/checkmark.stencil.js +16 -0
  154. package/dist/collection/icon/checkmark.svg +9 -0
  155. package/dist/collection/icon/cross.stencil.js +17 -0
  156. package/dist/collection/icon/cross.svg +9 -0
  157. package/dist/collection/icon/dist/afval.svg +1 -0
  158. package/dist/collection/icon/dist/arrow.svg +1 -0
  159. package/dist/collection/icon/dist/checkmark.svg +1 -0
  160. package/dist/collection/icon/dist/cross.svg +1 -0
  161. package/dist/collection/icon/dist/error.svg +1 -0
  162. package/dist/collection/icon/dist/facebook.svg +1 -0
  163. package/dist/collection/icon/dist/filter.svg +1 -0
  164. package/dist/collection/icon/dist/information.svg +1 -0
  165. package/dist/collection/icon/dist/instagram.svg +1 -0
  166. package/dist/collection/icon/dist/linkedin.svg +1 -0
  167. package/dist/collection/icon/dist/list.svg +1 -0
  168. package/dist/collection/icon/dist/loupe.svg +1 -0
  169. package/dist/collection/icon/dist/melding.svg +1 -0
  170. package/dist/collection/icon/dist/paspoort.svg +1 -0
  171. package/dist/collection/icon/dist/rijbewijs.svg +1 -0
  172. package/dist/collection/icon/dist/toeslag.svg +1 -0
  173. package/dist/collection/icon/dist/trouwen.svg +1 -0
  174. package/dist/collection/icon/dist/twitter.svg +1 -0
  175. package/dist/collection/icon/dist/verhuizen.svg +1 -0
  176. package/dist/collection/icon/dist/warning.svg +1 -0
  177. package/dist/collection/icon/dist/whatsapp.svg +1 -0
  178. package/dist/collection/icon/dist/zoomin.svg +1 -0
  179. package/dist/collection/icon/dist/zoomout.svg +1 -0
  180. package/dist/collection/icon/error.stencil.js +18 -0
  181. package/dist/collection/icon/error.svg +15 -0
  182. package/dist/collection/icon/facebook.stencil.js +17 -0
  183. package/dist/collection/icon/facebook.svg +9 -0
  184. package/dist/collection/icon/filter.stencil.js +18 -0
  185. package/dist/collection/icon/filter.svg +6 -0
  186. package/dist/collection/icon/information.stencil.js +19 -0
  187. package/dist/collection/icon/information.svg +14 -0
  188. package/dist/collection/icon/instagram.stencil.js +19 -0
  189. package/dist/collection/icon/instagram.svg +16 -0
  190. package/dist/collection/icon/linkedin.stencil.js +18 -0
  191. package/dist/collection/icon/linkedin.svg +14 -0
  192. package/dist/collection/icon/list.stencil.js +21 -0
  193. package/dist/collection/icon/list.svg +9 -0
  194. package/dist/collection/icon/loupe.stencil.js +17 -0
  195. package/dist/collection/icon/loupe.svg +11 -0
  196. package/dist/collection/icon/melding.stencil.js +17 -0
  197. package/dist/collection/icon/melding.svg +5 -0
  198. package/dist/collection/icon/paspoort.stencil.js +17 -0
  199. package/dist/collection/icon/paspoort.svg +5 -0
  200. package/dist/collection/icon/rijbewijs.stencil.js +20 -0
  201. package/dist/collection/icon/rijbewijs.svg +8 -0
  202. package/dist/collection/icon/stencil.css +20 -0
  203. package/dist/collection/icon/toeslag.stencil.js +17 -0
  204. package/dist/collection/icon/toeslag.svg +5 -0
  205. package/dist/collection/icon/trouwen.stencil.js +16 -0
  206. package/dist/collection/icon/trouwen.svg +4 -0
  207. package/dist/collection/icon/twitter.stencil.js +17 -0
  208. package/dist/collection/icon/twitter.svg +9 -0
  209. package/dist/collection/icon/verhuizen.stencil.js +21 -0
  210. package/dist/collection/icon/verhuizen.svg +9 -0
  211. package/dist/collection/icon/warning.stencil.js +19 -0
  212. package/dist/collection/icon/warning.svg +19 -0
  213. package/dist/collection/icon/whatsapp.stencil.js +17 -0
  214. package/dist/collection/icon/whatsapp.svg +9 -0
  215. package/dist/collection/icon/zoomin.stencil.js +18 -0
  216. package/dist/collection/icon/zoomin.svg +13 -0
  217. package/dist/collection/icon/zoomout.stencil.js +17 -0
  218. package/dist/collection/icon/zoomout.svg +9 -0
  219. package/dist/collection/link/css/template.js +57 -0
  220. package/dist/collection/link/html/template.js +11 -0
  221. package/dist/collection/link-list/bem.js +10 -0
  222. package/dist/collection/link-social/bem.js +20 -0
  223. package/dist/collection/logo/bem.js +33 -0
  224. package/dist/collection/logo/stencil.css +33 -0
  225. package/dist/collection/logo/stencil.js +26 -0
  226. package/dist/collection/logo-button/bem.js +17 -0
  227. package/dist/collection/logo-button/stencil.css +31 -0
  228. package/dist/collection/logo-button/stencil.js +41 -0
  229. package/dist/collection/mapcontrolbutton/bem.js +34 -0
  230. package/dist/collection/menulijst/bem.js +18 -0
  231. package/dist/collection/nav-top/bem.js +24 -0
  232. package/dist/collection/navigatie sidenav/bem.css +185 -0
  233. package/dist/collection/navigatie sidenav/bem.js +69 -0
  234. package/dist/collection/navigatie sidenav/stencil.js +45 -0
  235. package/dist/collection/navigatie topnav/bem.js +26 -0
  236. package/dist/collection/node_modules/@trysound/sax/lib/sax.js +1413 -0
  237. package/dist/collection/node_modules/commander/index.js +2217 -0
  238. package/dist/collection/node_modules/css-tree/data/index.js +103 -0
  239. package/dist/collection/node_modules/css-tree/dist/csstree.js +12606 -0
  240. package/dist/collection/node_modules/css-tree/dist/csstree.min.js +1 -0
  241. package/dist/collection/node_modules/css-tree/lib/common/List.js +576 -0
  242. package/dist/collection/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
  243. package/dist/collection/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
  244. package/dist/collection/node_modules/css-tree/lib/common/TokenStream.js +219 -0
  245. package/dist/collection/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
  246. package/dist/collection/node_modules/css-tree/lib/convertor/create.js +28 -0
  247. package/dist/collection/node_modules/css-tree/lib/convertor/index.js +3 -0
  248. package/dist/collection/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
  249. package/dist/collection/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
  250. package/dist/collection/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
  251. package/dist/collection/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
  252. package/dist/collection/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
  253. package/dist/collection/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
  254. package/dist/collection/node_modules/css-tree/lib/generator/create.js +66 -0
  255. package/dist/collection/node_modules/css-tree/lib/generator/index.js +4 -0
  256. package/dist/collection/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
  257. package/dist/collection/node_modules/css-tree/lib/index.js +1 -0
  258. package/dist/collection/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
  259. package/dist/collection/node_modules/css-tree/lib/lexer/error.js +127 -0
  260. package/dist/collection/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
  261. package/dist/collection/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
  262. package/dist/collection/node_modules/css-tree/lib/lexer/generic.js +585 -0
  263. package/dist/collection/node_modules/css-tree/lib/lexer/index.js +3 -0
  264. package/dist/collection/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
  265. package/dist/collection/node_modules/css-tree/lib/lexer/match.js +639 -0
  266. package/dist/collection/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
  267. package/dist/collection/node_modules/css-tree/lib/lexer/search.js +65 -0
  268. package/dist/collection/node_modules/css-tree/lib/lexer/structure.js +163 -0
  269. package/dist/collection/node_modules/css-tree/lib/lexer/trace.js +79 -0
  270. package/dist/collection/node_modules/css-tree/lib/parser/create.js +304 -0
  271. package/dist/collection/node_modules/css-tree/lib/parser/index.js +4 -0
  272. package/dist/collection/node_modules/css-tree/lib/parser/sequence.js +54 -0
  273. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
  274. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
  275. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
  276. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
  277. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
  278. package/dist/collection/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
  279. package/dist/collection/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
  280. package/dist/collection/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
  281. package/dist/collection/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
  282. package/dist/collection/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
  283. package/dist/collection/node_modules/css-tree/lib/syntax/create.js +77 -0
  284. package/dist/collection/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
  285. package/dist/collection/node_modules/css-tree/lib/syntax/function/var.js +43 -0
  286. package/dist/collection/node_modules/css-tree/lib/syntax/index.js +21 -0
  287. package/dist/collection/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
  288. package/dist/collection/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
  289. package/dist/collection/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
  290. package/dist/collection/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
  291. package/dist/collection/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
  292. package/dist/collection/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
  293. package/dist/collection/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
  294. package/dist/collection/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
  295. package/dist/collection/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
  296. package/dist/collection/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
  297. package/dist/collection/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
  298. package/dist/collection/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
  299. package/dist/collection/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
  300. package/dist/collection/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
  301. package/dist/collection/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
  302. package/dist/collection/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
  303. package/dist/collection/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
  304. package/dist/collection/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
  305. package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
  306. package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
  307. package/dist/collection/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
  308. package/dist/collection/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
  309. package/dist/collection/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
  310. package/dist/collection/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
  311. package/dist/collection/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
  312. package/dist/collection/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
  313. package/dist/collection/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
  314. package/dist/collection/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
  315. package/dist/collection/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
  316. package/dist/collection/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
  317. package/dist/collection/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
  318. package/dist/collection/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
  319. package/dist/collection/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
  320. package/dist/collection/node_modules/css-tree/lib/syntax/node/String.js +18 -0
  321. package/dist/collection/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
  322. package/dist/collection/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
  323. package/dist/collection/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
  324. package/dist/collection/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
  325. package/dist/collection/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
  326. package/dist/collection/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
  327. package/dist/collection/node_modules/css-tree/lib/syntax/node/index.js +42 -0
  328. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
  329. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
  330. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
  331. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
  332. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
  333. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
  334. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
  335. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
  336. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
  337. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
  338. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
  339. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
  340. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
  341. package/dist/collection/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
  342. package/dist/collection/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
  343. package/dist/collection/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
  344. package/dist/collection/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
  345. package/dist/collection/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
  346. package/dist/collection/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
  347. package/dist/collection/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
  348. package/dist/collection/node_modules/css-tree/lib/tokenizer/const.js +40 -0
  349. package/dist/collection/node_modules/css-tree/lib/tokenizer/index.js +591 -0
  350. package/dist/collection/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
  351. package/dist/collection/node_modules/css-tree/lib/utils/clone.js +21 -0
  352. package/dist/collection/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
  353. package/dist/collection/node_modules/css-tree/lib/utils/names.js +104 -0
  354. package/dist/collection/node_modules/css-tree/lib/walker/create.js +284 -0
  355. package/dist/collection/node_modules/css-tree/lib/walker/index.js +4 -0
  356. package/dist/collection/node_modules/mdn-data/api/index.js +3 -0
  357. package/dist/collection/node_modules/mdn-data/css/index.js +8 -0
  358. package/dist/collection/node_modules/mdn-data/index.js +5 -0
  359. package/dist/collection/node_modules/mdn-data/l10n/index.js +3 -0
  360. package/dist/collection/node_modules/source-map/dist/source-map.debug.js +3234 -0
  361. package/dist/collection/node_modules/source-map/dist/source-map.js +3233 -0
  362. package/dist/collection/node_modules/source-map/dist/source-map.min.js +2 -0
  363. package/dist/collection/node_modules/source-map/lib/array-set.js +121 -0
  364. package/dist/collection/node_modules/source-map/lib/base64-vlq.js +140 -0
  365. package/dist/collection/node_modules/source-map/lib/base64.js +67 -0
  366. package/dist/collection/node_modules/source-map/lib/binary-search.js +111 -0
  367. package/dist/collection/node_modules/source-map/lib/mapping-list.js +79 -0
  368. package/dist/collection/node_modules/source-map/lib/quick-sort.js +114 -0
  369. package/dist/collection/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  370. package/dist/collection/node_modules/source-map/lib/source-map-generator.js +425 -0
  371. package/dist/collection/node_modules/source-map/lib/source-node.js +413 -0
  372. package/dist/collection/node_modules/source-map/lib/util.js +488 -0
  373. package/dist/collection/node_modules/source-map/source-map.js +8 -0
  374. package/dist/collection/node_modules/svgo/dist/svgo.browser.js +1 -0
  375. package/dist/collection/node_modules/svgo/lib/css-tools.js +239 -0
  376. package/dist/collection/node_modules/svgo/lib/parser.js +259 -0
  377. package/dist/collection/node_modules/svgo/lib/path.js +347 -0
  378. package/dist/collection/node_modules/svgo/lib/stringifier.js +326 -0
  379. package/dist/collection/node_modules/svgo/lib/style.js +283 -0
  380. package/dist/collection/node_modules/svgo/lib/svgo/coa.js +517 -0
  381. package/dist/collection/node_modules/svgo/lib/svgo/config.js +138 -0
  382. package/dist/collection/node_modules/svgo/lib/svgo/css-class-list.js +72 -0
  383. package/dist/collection/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
  384. package/dist/collection/node_modules/svgo/lib/svgo/css-style-declaration.js +232 -0
  385. package/dist/collection/node_modules/svgo/lib/svgo/jsAPI.js +443 -0
  386. package/dist/collection/node_modules/svgo/lib/svgo/plugins.js +109 -0
  387. package/dist/collection/node_modules/svgo/lib/svgo/tools.js +137 -0
  388. package/dist/collection/node_modules/svgo/lib/svgo-node.js +106 -0
  389. package/dist/collection/node_modules/svgo/lib/svgo.js +83 -0
  390. package/dist/collection/node_modules/svgo/lib/xast.js +102 -0
  391. package/dist/collection/node_modules/svgo/plugins/_applyTransforms.js +335 -0
  392. package/dist/collection/node_modules/svgo/plugins/_collections.js +2168 -0
  393. package/dist/collection/node_modules/svgo/plugins/_path.js +816 -0
  394. package/dist/collection/node_modules/svgo/plugins/_transforms.js +379 -0
  395. package/dist/collection/node_modules/svgo/plugins/addAttributesToSVGElement.js +87 -0
  396. package/dist/collection/node_modules/svgo/plugins/addClassesToSVGElement.js +87 -0
  397. package/dist/collection/node_modules/svgo/plugins/cleanupAttrs.js +55 -0
  398. package/dist/collection/node_modules/svgo/plugins/cleanupEnableBackground.js +75 -0
  399. package/dist/collection/node_modules/svgo/plugins/cleanupIDs.js +297 -0
  400. package/dist/collection/node_modules/svgo/plugins/cleanupListOfValues.js +154 -0
  401. package/dist/collection/node_modules/svgo/plugins/cleanupNumericValues.js +113 -0
  402. package/dist/collection/node_modules/svgo/plugins/collapseGroups.js +135 -0
  403. package/dist/collection/node_modules/svgo/plugins/convertColors.js +152 -0
  404. package/dist/collection/node_modules/svgo/plugins/convertEllipseToCircle.js +39 -0
  405. package/dist/collection/node_modules/svgo/plugins/convertPathData.js +1023 -0
  406. package/dist/collection/node_modules/svgo/plugins/convertShapeToPath.js +175 -0
  407. package/dist/collection/node_modules/svgo/plugins/convertStyleToAttrs.js +132 -0
  408. package/dist/collection/node_modules/svgo/plugins/convertTransform.js +432 -0
  409. package/dist/collection/node_modules/svgo/plugins/inlineStyles.js +379 -0
  410. package/dist/collection/node_modules/svgo/plugins/mergePaths.js +104 -0
  411. package/dist/collection/node_modules/svgo/plugins/mergeStyles.js +93 -0
  412. package/dist/collection/node_modules/svgo/plugins/minifyStyles.js +148 -0
  413. package/dist/collection/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +130 -0
  414. package/dist/collection/node_modules/svgo/plugins/moveGroupAttrsToElems.js +62 -0
  415. package/dist/collection/node_modules/svgo/plugins/plugins.js +56 -0
  416. package/dist/collection/node_modules/svgo/plugins/prefixIds.js +241 -0
  417. package/dist/collection/node_modules/svgo/plugins/preset-default.js +80 -0
  418. package/dist/collection/node_modules/svgo/plugins/removeAttributesBySelector.js +99 -0
  419. package/dist/collection/node_modules/svgo/plugins/removeAttrs.js +159 -0
  420. package/dist/collection/node_modules/svgo/plugins/removeComments.js +31 -0
  421. package/dist/collection/node_modules/svgo/plugins/removeDesc.js +41 -0
  422. package/dist/collection/node_modules/svgo/plugins/removeDimensions.js +43 -0
  423. package/dist/collection/node_modules/svgo/plugins/removeDoctype.js +42 -0
  424. package/dist/collection/node_modules/svgo/plugins/removeEditorsNSData.js +68 -0
  425. package/dist/collection/node_modules/svgo/plugins/removeElementsByAttr.js +78 -0
  426. package/dist/collection/node_modules/svgo/plugins/removeEmptyAttrs.js +33 -0
  427. package/dist/collection/node_modules/svgo/plugins/removeEmptyContainers.js +58 -0
  428. package/dist/collection/node_modules/svgo/plugins/removeEmptyText.js +57 -0
  429. package/dist/collection/node_modules/svgo/plugins/removeHiddenElems.js +318 -0
  430. package/dist/collection/node_modules/svgo/plugins/removeMetadata.js +29 -0
  431. package/dist/collection/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
  432. package/dist/collection/node_modules/svgo/plugins/removeOffCanvasPaths.js +138 -0
  433. package/dist/collection/node_modules/svgo/plugins/removeRasterImages.js +33 -0
  434. package/dist/collection/node_modules/svgo/plugins/removeScriptElement.js +29 -0
  435. package/dist/collection/node_modules/svgo/plugins/removeStyleElement.js +29 -0
  436. package/dist/collection/node_modules/svgo/plugins/removeTitle.js +29 -0
  437. package/dist/collection/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +218 -0
  438. package/dist/collection/node_modules/svgo/plugins/removeUnusedNS.js +61 -0
  439. package/dist/collection/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
  440. package/dist/collection/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +144 -0
  441. package/dist/collection/node_modules/svgo/plugins/removeViewBox.js +51 -0
  442. package/dist/collection/node_modules/svgo/plugins/removeXMLNS.js +30 -0
  443. package/dist/collection/node_modules/svgo/plugins/removeXMLProcInst.js +30 -0
  444. package/dist/collection/node_modules/svgo/plugins/reusePaths.js +113 -0
  445. package/dist/collection/node_modules/svgo/plugins/sortAttrs.js +113 -0
  446. package/dist/collection/node_modules/svgo/plugins/sortDefsChildren.js +60 -0
  447. package/dist/collection/ordered-list/bem.js +11 -0
  448. package/dist/collection/page/bem.js +6 -0
  449. package/dist/collection/page/stencil.css +30 -0
  450. package/dist/collection/page/stencil.js +20 -0
  451. package/dist/collection/page-content/bem.js +10 -0
  452. package/dist/collection/page-content/stencil.css +31 -0
  453. package/dist/collection/page-content/stencil.js +20 -0
  454. package/dist/collection/page-footer/bem.js +7 -0
  455. package/dist/collection/page-footer/stencil.css +50 -0
  456. package/dist/collection/page-footer/stencil.js +19 -0
  457. package/dist/collection/page-header/bem.js +6 -0
  458. package/dist/collection/page-header/stencil.css +30 -0
  459. package/dist/collection/page-header/stencil.js +20 -0
  460. package/dist/collection/pagination/bem.js +54 -0
  461. package/dist/collection/pagination/stencil.css +118 -0
  462. package/dist/collection/pagination/stencil.js +110 -0
  463. package/dist/collection/paragraph/css/template.js +22 -0
  464. package/dist/collection/paragraph/html/template.js +11 -0
  465. package/dist/collection/paragraph/{bem.css → web-component/index.css} +18 -3
  466. package/dist/collection/paragraph/{stencil.js → web-component/index.stencil.js} +5 -5
  467. package/dist/collection/paragraph/web-component/template.js +12 -0
  468. package/dist/collection/pre-heading/bem.js +15 -0
  469. package/dist/collection/radio-button/bem.js +19 -0
  470. package/dist/collection/search-bar/bem.js +15 -0
  471. package/dist/collection/select/bem.js +39 -0
  472. package/dist/collection/separator/bem.js +16 -0
  473. package/dist/collection/separator/{bem.css → stencil.css} +18 -4
  474. package/dist/collection/separator/stencil.js +3 -3
  475. package/dist/collection/templates/contact-card-template/stencil.css +178 -0
  476. package/dist/collection/templates/contact-card-template/stencil.js +25 -0
  477. package/dist/collection/textarea/bem.js +35 -0
  478. package/dist/collection/textarea/html.js +20 -0
  479. package/dist/collection/textbox/bem.js +37 -0
  480. package/dist/collection/textbox/stencil.css +96 -0
  481. package/dist/collection/textbox/stencil.js +297 -0
  482. package/dist/collection/toptask-link/bem.js +33 -0
  483. package/dist/collection/toptask-nav/bem.js +19 -0
  484. package/dist/collection/unordered-list/bem.js +28 -0
  485. package/dist/collection/url/bem.js +14 -0
  486. package/dist/custom-elements/index.d.ts +318 -0
  487. package/dist/custom-elements/index.js +1100 -64
  488. package/dist/esm/{index-7fbac151.js → index-86b2856e.js} +306 -76
  489. package/dist/esm/loader.js +3 -3
  490. package/dist/esm/polyfills/css-shim.js +1 -1
  491. package/dist/esm/utrecht-article.entry.js +15 -0
  492. package/dist/esm/utrecht-backdrop.entry.js +17 -0
  493. package/dist/esm/utrecht-badge-counter.entry.js +5 -5
  494. package/dist/esm/utrecht-badge-data.entry.js +3 -3
  495. package/dist/esm/utrecht-badge-status.entry.js +3 -3
  496. package/dist/esm/utrecht-breadcrumb.entry.js +19 -0
  497. package/dist/esm/utrecht-button_2.entry.js +53 -0
  498. package/dist/esm/utrecht-checkbox.entry.js +28 -0
  499. package/dist/esm/utrecht-contact-card-template.entry.js +15 -0
  500. package/dist/esm/utrecht-custom-checkbox.entry.js +48 -0
  501. package/dist/esm/utrecht-digid-button.entry.js +15 -0
  502. package/dist/esm/utrecht-document.entry.js +3 -3
  503. package/dist/esm/utrecht-eherkenning-logo.entry.js +15 -0
  504. package/dist/esm/utrecht-eidas-logo.entry.js +15 -0
  505. package/dist/esm/utrecht-form-field-checkbox.entry.js +30 -0
  506. package/dist/esm/utrecht-form-field-description.entry.js +18 -0
  507. package/dist/esm/utrecht-form-field-textarea.entry.js +30 -0
  508. package/dist/esm/utrecht-form-field-textbox.entry.js +35 -0
  509. package/dist/esm/utrecht-form-toggle.entry.js +44 -0
  510. package/dist/esm/utrecht-heading-1.entry.js +15 -0
  511. package/dist/esm/utrecht-heading-2_3.entry.js +40 -0
  512. package/dist/esm/utrecht-heading-4.entry.js +15 -0
  513. package/dist/esm/utrecht-heading-5.entry.js +15 -0
  514. package/dist/esm/utrecht-heading-6.entry.js +15 -0
  515. package/dist/esm/utrecht-heading.entry.js +3 -3
  516. package/dist/esm/utrecht-html-content.entry.js +3 -3
  517. package/dist/esm/utrecht-icon-afval.entry.js +15 -0
  518. package/dist/esm/utrecht-icon-arrow.entry.js +15 -0
  519. package/dist/esm/utrecht-icon-checkmark.entry.js +15 -0
  520. package/dist/esm/utrecht-icon-cross.entry.js +15 -0
  521. package/dist/esm/utrecht-icon-error.entry.js +15 -0
  522. package/dist/esm/utrecht-icon-facebook.entry.js +15 -0
  523. package/dist/esm/utrecht-icon-filter.entry.js +15 -0
  524. package/dist/esm/utrecht-icon-information.entry.js +15 -0
  525. package/dist/esm/utrecht-icon-instagram.entry.js +15 -0
  526. package/dist/esm/utrecht-icon-linkedin.entry.js +15 -0
  527. package/dist/esm/utrecht-icon-list.entry.js +15 -0
  528. package/dist/esm/utrecht-icon-loupe.entry.js +15 -0
  529. package/dist/esm/utrecht-icon-melding.entry.js +15 -0
  530. package/dist/esm/utrecht-icon-paspoort.entry.js +15 -0
  531. package/dist/esm/utrecht-icon-rijbewijs.entry.js +15 -0
  532. package/dist/esm/utrecht-icon-toeslag.entry.js +15 -0
  533. package/dist/esm/utrecht-icon-trouwen.entry.js +15 -0
  534. package/dist/esm/utrecht-icon-twitter.entry.js +15 -0
  535. package/dist/esm/utrecht-icon-verhuizen.entry.js +15 -0
  536. package/dist/esm/utrecht-icon-warning.entry.js +15 -0
  537. package/dist/esm/utrecht-icon-whatsapp.entry.js +15 -0
  538. package/dist/esm/utrecht-icon-zoomin.entry.js +15 -0
  539. package/dist/esm/utrecht-icon-zoomout.entry.js +15 -0
  540. package/dist/esm/utrecht-logo-button.entry.js +15 -0
  541. package/dist/esm/utrecht-logo.entry.js +15 -0
  542. package/dist/esm/utrecht-page-content.entry.js +15 -0
  543. package/dist/esm/utrecht-page-footer.entry.js +15 -0
  544. package/dist/esm/utrecht-page-header.entry.js +15 -0
  545. package/dist/esm/utrecht-page.entry.js +15 -0
  546. package/dist/esm/utrecht-pagination.entry.js +34 -0
  547. package/dist/esm/utrecht-separator.entry.js +3 -3
  548. package/dist/esm/utrecht-sidenav.entry.js +17 -0
  549. package/dist/esm/utrecht-textbox.entry.js +35 -0
  550. package/dist/esm/utrecht.js +3 -3
  551. package/dist/types/article/stencil.d.ts +3 -0
  552. package/dist/types/backdrop/stencil.d.ts +4 -0
  553. package/dist/types/breadcrumb/stencil.d.ts +5 -0
  554. package/dist/types/button/stencil.d.ts +6 -0
  555. package/dist/types/checkbox/stencil.d.ts +16 -0
  556. package/dist/types/components.d.ts +833 -0
  557. package/dist/types/custom-checkbox/stencil.d.ts +17 -0
  558. package/dist/types/digid-button/stencil.d.ts +9 -0
  559. package/dist/types/digid-logo/stencil.d.ts +8 -0
  560. package/dist/types/eherkenning-logo/stencil.d.ts +8 -0
  561. package/dist/types/eidas-logo/stencil.d.ts +8 -0
  562. package/dist/types/form-field-checkbox/stencil.d.ts +18 -0
  563. package/dist/types/form-field-description/stencil.d.ts +8 -0
  564. package/dist/types/form-field-textarea/stencil.d.ts +18 -0
  565. package/dist/types/form-field-textbox/stencil.d.ts +23 -0
  566. package/dist/types/form-toggle/stencil.d.ts +14 -0
  567. package/dist/types/heading-1/stencil.d.ts +3 -0
  568. package/dist/types/heading-2/stencil.d.ts +3 -0
  569. package/dist/types/heading-3/stencil.d.ts +3 -0
  570. package/dist/types/heading-4/stencil.d.ts +3 -0
  571. package/dist/types/heading-5/stencil.d.ts +3 -0
  572. package/dist/types/heading-6/stencil.d.ts +3 -0
  573. package/dist/types/icon/afval.stencil.d.ts +3 -0
  574. package/dist/types/icon/arrow.stencil.d.ts +3 -0
  575. package/dist/types/icon/checkmark.stencil.d.ts +3 -0
  576. package/dist/types/icon/cross.stencil.d.ts +3 -0
  577. package/dist/types/icon/error.stencil.d.ts +3 -0
  578. package/dist/types/icon/facebook.stencil.d.ts +3 -0
  579. package/dist/types/icon/filter.stencil.d.ts +3 -0
  580. package/dist/types/icon/information.stencil.d.ts +3 -0
  581. package/dist/types/icon/instagram.stencil.d.ts +3 -0
  582. package/dist/types/icon/linkedin.stencil.d.ts +3 -0
  583. package/dist/types/icon/list.stencil.d.ts +3 -0
  584. package/dist/types/icon/loupe.stencil.d.ts +3 -0
  585. package/dist/types/icon/melding.stencil.d.ts +3 -0
  586. package/dist/types/icon/paspoort.stencil.d.ts +3 -0
  587. package/dist/types/icon/rijbewijs.stencil.d.ts +3 -0
  588. package/dist/types/icon/toeslag.stencil.d.ts +3 -0
  589. package/dist/types/icon/trouwen.stencil.d.ts +3 -0
  590. package/dist/types/icon/twitter.stencil.d.ts +3 -0
  591. package/dist/types/icon/verhuizen.stencil.d.ts +3 -0
  592. package/dist/types/icon/warning.stencil.d.ts +3 -0
  593. package/dist/types/icon/whatsapp.stencil.d.ts +3 -0
  594. package/dist/types/icon/zoomin.stencil.d.ts +3 -0
  595. package/dist/types/icon/zoomout.stencil.d.ts +3 -0
  596. package/dist/types/logo/stencil.d.ts +7 -0
  597. package/dist/types/logo-button/stencil.d.ts +9 -0
  598. package/dist/types/navigatie sidenav/stencil.d.ts +4 -0
  599. package/dist/types/page/stencil.d.ts +7 -0
  600. package/dist/types/page-content/stencil.d.ts +7 -0
  601. package/dist/types/page-footer/stencil.d.ts +7 -0
  602. package/dist/types/page-header/stencil.d.ts +7 -0
  603. package/dist/types/pagination/stencil.d.ts +11 -0
  604. package/dist/types/paragraph/{stencil.d.ts → web-component/index.stencil.d.ts} +0 -0
  605. package/dist/types/stencil-public-runtime.d.ts +189 -186
  606. package/dist/types/templates/contact-card-template/stencil.d.ts +3 -0
  607. package/dist/types/textbox/stencil.d.ts +23 -0
  608. package/dist/utrecht/p-02a37490.entry.js +1 -0
  609. package/dist/utrecht/p-06370f11.entry.js +1 -0
  610. package/dist/utrecht/p-0babe0e1.entry.js +1 -0
  611. package/dist/utrecht/p-0bd956aa.entry.js +1 -0
  612. package/dist/utrecht/p-10ed9dbc.entry.js +1 -0
  613. package/dist/utrecht/p-1d6f6429.entry.js +1 -0
  614. package/dist/utrecht/p-1e2310d5.entry.js +1 -0
  615. package/dist/utrecht/p-206407ec.entry.js +1 -0
  616. package/dist/utrecht/p-22b0b0ab.entry.js +1 -0
  617. package/dist/utrecht/p-24f6df95.entry.js +1 -0
  618. package/dist/utrecht/p-28d9ca01.entry.js +1 -0
  619. package/dist/utrecht/p-2cf9a940.entry.js +1 -0
  620. package/dist/utrecht/p-33460a3c.entry.js +1 -0
  621. package/dist/utrecht/p-3d9f0a68.entry.js +1 -0
  622. package/dist/utrecht/p-450b6c65.entry.js +1 -0
  623. package/dist/utrecht/p-45462b1b.entry.js +1 -0
  624. package/dist/utrecht/p-494a2de2.entry.js +1 -0
  625. package/dist/utrecht/p-4992cc17.entry.js +1 -0
  626. package/dist/utrecht/p-52b840b4.entry.js +1 -0
  627. package/dist/utrecht/p-5a1ae611.entry.js +1 -0
  628. package/dist/utrecht/p-64b8a7bd.entry.js +1 -0
  629. package/dist/utrecht/p-6c34702d.entry.js +1 -0
  630. package/dist/utrecht/p-706f3a46.entry.js +1 -0
  631. package/dist/utrecht/p-78c8320a.entry.js +1 -0
  632. package/dist/utrecht/p-7a694b68.entry.js +1 -0
  633. package/dist/utrecht/p-7bb345f1.entry.js +1 -0
  634. package/dist/utrecht/p-7e3395e4.entry.js +1 -0
  635. package/dist/utrecht/p-844a51cd.entry.js +1 -0
  636. package/dist/utrecht/p-847f24f7.entry.js +1 -0
  637. package/dist/utrecht/p-8ca6b8b1.js +1 -0
  638. package/dist/utrecht/p-8d742d31.entry.js +1 -0
  639. package/dist/utrecht/p-9f71d7ad.entry.js +1 -0
  640. package/dist/utrecht/p-a3ba8266.entry.js +1 -0
  641. package/dist/utrecht/p-a6e74d71.entry.js +1 -0
  642. package/dist/utrecht/p-a9446486.entry.js +1 -0
  643. package/dist/utrecht/p-aa3e8f73.entry.js +1 -0
  644. package/dist/utrecht/p-aa7f0306.entry.js +1 -0
  645. package/dist/utrecht/p-afd9a538.entry.js +1 -0
  646. package/dist/utrecht/p-b34cf79e.entry.js +1 -0
  647. package/dist/utrecht/p-b51a7258.entry.js +1 -0
  648. package/dist/utrecht/p-b7635555.entry.js +1 -0
  649. package/dist/utrecht/p-b97f0d95.entry.js +1 -0
  650. package/dist/utrecht/p-c0b17517.entry.js +1 -0
  651. package/dist/utrecht/p-c1cefe13.entry.js +1 -0
  652. package/dist/utrecht/p-c7c1b303.entry.js +1 -0
  653. package/dist/utrecht/p-ce352a8d.entry.js +1 -0
  654. package/dist/utrecht/p-cf06abf1.entry.js +1 -0
  655. package/dist/utrecht/p-d503851f.entry.js +1 -0
  656. package/dist/utrecht/p-d7c2ff02.entry.js +1 -0
  657. package/dist/utrecht/p-dad5dcf5.entry.js +1 -0
  658. package/dist/utrecht/p-dbfb3e72.entry.js +1 -0
  659. package/dist/utrecht/p-e24992e2.entry.js +1 -0
  660. package/dist/utrecht/p-e425fabc.entry.js +1 -0
  661. package/dist/utrecht/p-e94ddc39.entry.js +1 -0
  662. package/dist/utrecht/p-ea583d80.entry.js +1 -0
  663. package/dist/utrecht/p-edcc904a.entry.js +1 -0
  664. package/dist/utrecht/p-f430397a.entry.js +1 -0
  665. package/dist/utrecht/p-f5aec0d3.entry.js +1 -0
  666. package/dist/utrecht/p-f6477f7f.entry.js +1 -0
  667. package/dist/utrecht/p-fa00a874.entry.js +1 -0
  668. package/dist/utrecht/utrecht.esm.js +1 -1
  669. package/loader/index.d.ts +0 -1
  670. package/package.json +17 -8
  671. package/dist/badge-counter/stencil.js +0 -37
  672. package/dist/badge-data/stencil.js +0 -25
  673. package/dist/badge-status/stencil.js +0 -28
  674. package/dist/button/stencil.js +0 -25
  675. package/dist/cjs/utrecht-button.cjs.entry.js +0 -20
  676. package/dist/cjs/utrecht-paragraph.cjs.entry.js +0 -20
  677. package/dist/collection/button/bem.css +0 -48
  678. package/dist/collection/document/bem.css +0 -12
  679. package/dist/collection/html-content/html.css +0 -557
  680. package/dist/document/stencil.js +0 -21
  681. package/dist/esm/utrecht-button.entry.js +0 -16
  682. package/dist/esm/utrecht-paragraph.entry.js +0 -16
  683. package/dist/heading/stencil.js +0 -50
  684. package/dist/html-content/stencil.js +0 -25
  685. package/dist/paragraph/stencil.js +0 -25
  686. package/dist/separator/stencil.js +0 -20
  687. package/dist/utrecht/p-031700e7.entry.js +0 -1
  688. package/dist/utrecht/p-031d1e42.entry.js +0 -1
  689. package/dist/utrecht/p-059d8057.entry.js +0 -1
  690. package/dist/utrecht/p-26a456e1.entry.js +0 -1
  691. package/dist/utrecht/p-3548fa7a.entry.js +0 -1
  692. package/dist/utrecht/p-487bef55.entry.js +0 -1
  693. package/dist/utrecht/p-5eab253d.entry.js +0 -1
  694. package/dist/utrecht/p-634c1974.js +0 -1
  695. package/dist/utrecht/p-79c79abf.entry.js +0 -1
  696. package/dist/utrecht/p-dbb6d147.entry.js +0 -1
@@ -0,0 +1,133 @@
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-form-field-textbox {
10
+ font-family: var(--utrecht-document-font-family, inherit);
11
+ }
12
+
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ .utrecht-form-label {
18
+ color: var(--utrecht-form-label-color);
19
+ font-size: var(--utrecht-form-label-font-size);
20
+ font-weight: var(--utrecht-form-label-font-weight);
21
+ }
22
+
23
+ .utrecht-form-label--checkbox {
24
+ color: var(--utrecht-form-label-checkbox-color, var(--utrecht-form-label-color));
25
+ font-weight: var(--utrecht-form-label-checkbox-font-weight, var(--utrecht-form-label-font-weight));
26
+ }
27
+
28
+ .utrecht-form-label--checked {
29
+ font-weight: var(--utrecht-form-label-checked-font-weight, var(--utrecht-form-label-font-weight));
30
+ }
31
+
32
+ .utrecht-form-label--disabled {
33
+ cursor: var(--utrecht-action-disabled-cursor);
34
+ font-weight: var(--utrecht-form-label-disabled-color, var(--utrecht-form-label-color));
35
+ }
36
+
37
+ .utrecht-form-label--radio {
38
+ color: var(--utrecht-form-label-checkbox-color, var(--utrecht-form-label-color));
39
+ font-weight: var(--utrecht-form-label-radio-font-weight, var(--utrecht-form-label-font-weight));
40
+ }
41
+
42
+ /**
43
+ * @license EUPL-1.2
44
+ * Copyright (c) 2021 Robbert Broersma
45
+ */
46
+ /**
47
+ * @license EUPL-1.2
48
+ * Copyright (c) 2021 Gemeente Utrecht
49
+ * Copyright (c) 2021 Robbert Broersma
50
+ */
51
+ /* stylelint-disable-next-line block-no-empty */
52
+ .utrecht-textbox {
53
+ background-color: var(--utrecht-textbox-background-color, var(--utrecht-form-input-background-color));
54
+ border-width: var(--utrecht-textbox-border-width, var(--utrecht-form-input-border-width));
55
+ border-bottom-width: var(--utrecht-textbox-border-bottom-width, var(--utrecht-textbox-border-width, var(--utrecht-form-input-border-width)));
56
+ border-color: var(--utrecht-textbox-border-color, var(--utrecht-form-input-border-color));
57
+ border-radius: var(--utrecht-textbox-border-radius, var(--utrecht-form-input-border-radius, 0));
58
+ border-style: solid;
59
+ box-sizing: border-box;
60
+ color: var(--utrecht-textbox-color, var(--utrecht-form-input-color));
61
+ font-family: var(--utrecht-textbox-font-family, var(--utrecht-form-input-font-family));
62
+ font-size: var(--utrecht-textbox-font-size, var(--utrecht-form-input-font-size, 1em));
63
+ max-inline-size: var(--utrecht-textbox-max-inline-size, var(--utrecht-form-input-max-inline-size));
64
+ padding-block-end: var(--utrecht-textbox-padding-block-end, var(--utrecht-form-input-padding-block-end));
65
+ padding-block-start: var(--utrecht-textbox-padding-block-start, var(--utrecht-form-input-padding-block-start));
66
+ padding-inline-end: var(--utrecht-textbox-padding-inline-end, var(--utrecht-form-input-padding-inline-end));
67
+ padding-inline-start: var(--utrecht-textbox-padding-inline-start, var(--utrecht-form-input-padding-inline-start));
68
+ width: 100%;
69
+ }
70
+
71
+ .utrecht-textbox--invalid, .utrecht-textbox--html-input:invalid, .utrecht-textbox--html-input[aria-invalid=true] {
72
+ background-color: var(--utrecht-textbox-invalid-background-color, var(--utrecht-form-input-invalid-background-color, var(--utrecht-textbox-background-color, var(--utrecht-form-input-background-color))));
73
+ border-color: var(--utrecht-textbox-invalid-border-color, var(--utrecht-form-input-invalid-border-color, var(--utrecht-textbox-border-color, var(--utrecht-form-input-border-color))));
74
+ border-width: var(--utrecht-textbox-invalid-border-width, var(--utrecht-form-input-invalid-border-width, var(--utrecht-textbox-border-width, var(--utrecht-form-input-border-width))));
75
+ }
76
+
77
+ .utrecht-textbox--disabled, .utrecht-textbox--html-input:disabled {
78
+ background-color: var(--utrecht-textbox-disabled-background-color, var(--utrecht-form-input-disabled-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
79
+ border-color: var(--utrecht-textbox-disabled-border-color, var(--utrecht-form-input-disabled-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
80
+ color: var(--utrecht-textbox-disabled-color, var(--utrecht-form-input-disabled-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
81
+ cursor: var(--utrecht-action-disabled-cursor);
82
+ }
83
+
84
+ .utrecht-textbox--focus, .utrecht-textbox--html-input:focus {
85
+ background-color: var(--utrecht-textbox-focus-background-color, var(--utrecht-form-input-focus-background-color, var(--utrecht-textarea-background-color, var(--utrecht-form-input-background-color))));
86
+ border-color: var(--utrecht-textbox-focus-border-color, var(--utrecht-form-input-focus-border-color, var(--utrecht-textarea-border-color, var(--utrecht-form-input-border-color))));
87
+ color: var(--utrecht-textbox-focus-color, var(--utrecht-form-input-focus-color, var(--utrecht-textarea-color, var(--utrecht-form-input-color))));
88
+ }
89
+
90
+ .utrecht-textbox--focus-visible, .utrecht-textbox--html-input:focus {
91
+ box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
92
+ outline-color: var(--utrecht-focus-outline-color, transparent);
93
+ outline-offset: var(--utrecht-focus-outline-offset, 0);
94
+ outline-style: var(--utrecht-focus-outline-style, solid);
95
+ outline-width: var(--utrecht-focus-outline-width, 0);
96
+ }
97
+
98
+ .utrecht-textbox--read-only, .utrecht-textbox--html-input:read-only {
99
+ border-color: var(--utrecht-textbox-read-only-border-color, var(--utrecht-form-input-read-only-border-color, var(--utrecht-textbox-border-color, var(--utrecht-form-input-border-color))));
100
+ color: var(--utrecht-textbox-read-only-color, var(--utrecht-form-input-read-only-color, var(--utrecht-textbox-color, var(--utrecht-form-input-color))));
101
+ }
102
+
103
+ .utrecht-textbox__placeholder, .utrecht-textbox--html-input::placeholder {
104
+ color: var(--utrecht-textbox-placeholder-color, var(--utrecht-form-input-placeholder-color, var(--utrecht-textbox-color, var(--utrecht-form-input-color))));
105
+ font-style: var(--utrecht-form-input-placeholder-font-style);
106
+ opacity: 100%;
107
+ }
108
+
109
+ .utrecht-textbox--numeric {
110
+ font-variant-numeric: lining-nums tabular-nums;
111
+ }
112
+
113
+ .utrecht-textbox--password {
114
+ font-variant-ligatures: none;
115
+ font-variant-numeric: slashed-zero;
116
+ }
117
+
118
+ .utrecht-textbox--url {
119
+ font-variant-ligatures: none;
120
+ }
121
+
122
+ .utrecht-textbox--html-input:focus:not(:focus-visible) {
123
+ /* undo focus ring */
124
+ box-shadow: none;
125
+ outline-style: none;
126
+ }
127
+ :host {
128
+ display: block;
129
+ }
130
+
131
+ :host([hidden]) {
132
+ display: none !important;
133
+ }
@@ -0,0 +1,300 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { Component, Event, h, Prop } from '@stencil/core';
6
+ import clsx from 'clsx';
7
+ export class FormFieldTextbox {
8
+ constructor() {
9
+ this.autoComplete = '';
10
+ this.disabled = false;
11
+ this.invalid = false;
12
+ this.min = '';
13
+ this.max = '';
14
+ this.pattern = '';
15
+ this.placeholder = '';
16
+ this.readOnly = false;
17
+ this.required = false;
18
+ this.type = '';
19
+ this.value = '';
20
+ }
21
+ render() {
22
+ const { autoComplete, disabled, invalid, min, max, pattern, placeholder, readOnly, required, type, value } = this;
23
+ return (h("div", { class: "utrecht-form-field-textbox" },
24
+ h("input", { id: "input", class: clsx('utrecht-textbox', 'utrecht-textbox--html-input', disabled && 'utrecht-textbox--disabled', invalid && 'utrecht-textbox--invalid', readOnly && 'utrecht-textbox--readonly'), type: type || 'text', autoComplete: autoComplete ? autoComplete : null, disabled: disabled, min: min ? min : null, max: max ? max : null, pattern: pattern ? pattern : null, placeholder: placeholder || null, readonly: readOnly, required: required, value: value, onBlur: (evt) => this.utrechtBlur.emit(evt), onChange: (evt) => this.utrechtChange.emit(evt), onFocus: (evt) => this.utrechtFocus.emit(evt), onInput: (evt) => {
25
+ this.value = evt.target.value;
26
+ this.utrechtInput.emit(evt);
27
+ } }),
28
+ h("label", { class: "utrecht-form-field-textbox__label utrecht-form-label", htmlFor: "input" },
29
+ h("slot", null))));
30
+ }
31
+ static get is() { return "utrecht-form-field-textbox"; }
32
+ static get encapsulation() { return "shadow"; }
33
+ static get originalStyleUrls() { return {
34
+ "$": ["stencil.scss"]
35
+ }; }
36
+ static get styleUrls() { return {
37
+ "$": ["stencil.css"]
38
+ }; }
39
+ static get properties() { return {
40
+ "autoComplete": {
41
+ "type": "string",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "string",
45
+ "resolved": "string",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": ""
53
+ },
54
+ "attribute": "autocomplete",
55
+ "reflect": true,
56
+ "defaultValue": "''"
57
+ },
58
+ "disabled": {
59
+ "type": "boolean",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "boolean",
63
+ "resolved": "boolean",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": ""
71
+ },
72
+ "attribute": "disabled",
73
+ "reflect": true,
74
+ "defaultValue": "false"
75
+ },
76
+ "invalid": {
77
+ "type": "boolean",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "boolean",
81
+ "resolved": "boolean",
82
+ "references": {}
83
+ },
84
+ "required": false,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": ""
89
+ },
90
+ "attribute": "invalid",
91
+ "reflect": true,
92
+ "defaultValue": "false"
93
+ },
94
+ "min": {
95
+ "type": "string",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "string",
99
+ "resolved": "string",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "attribute": "min",
109
+ "reflect": false,
110
+ "defaultValue": "''"
111
+ },
112
+ "max": {
113
+ "type": "string",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "string",
117
+ "resolved": "string",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": false,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": ""
125
+ },
126
+ "attribute": "max",
127
+ "reflect": false,
128
+ "defaultValue": "''"
129
+ },
130
+ "pattern": {
131
+ "type": "string",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "string",
135
+ "resolved": "string",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": false,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": ""
143
+ },
144
+ "attribute": "pattern",
145
+ "reflect": false,
146
+ "defaultValue": "''"
147
+ },
148
+ "placeholder": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "attribute": "placeholder",
163
+ "reflect": false,
164
+ "defaultValue": "''"
165
+ },
166
+ "readOnly": {
167
+ "type": "boolean",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "boolean",
171
+ "resolved": "boolean",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": ""
179
+ },
180
+ "attribute": "readonly",
181
+ "reflect": true,
182
+ "defaultValue": "false"
183
+ },
184
+ "required": {
185
+ "type": "boolean",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "boolean",
189
+ "resolved": "boolean",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": ""
197
+ },
198
+ "attribute": "required",
199
+ "reflect": true,
200
+ "defaultValue": "false"
201
+ },
202
+ "type": {
203
+ "type": "string",
204
+ "mutable": false,
205
+ "complexType": {
206
+ "original": "string",
207
+ "resolved": "string",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": false,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": ""
215
+ },
216
+ "attribute": "type",
217
+ "reflect": true,
218
+ "defaultValue": "''"
219
+ },
220
+ "value": {
221
+ "type": "string",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "string",
225
+ "resolved": "string",
226
+ "references": {}
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": ""
233
+ },
234
+ "attribute": "value",
235
+ "reflect": false,
236
+ "defaultValue": "''"
237
+ }
238
+ }; }
239
+ static get events() { return [{
240
+ "method": "utrechtBlur",
241
+ "name": "utrechtBlur",
242
+ "bubbles": true,
243
+ "cancelable": true,
244
+ "composed": true,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": ""
248
+ },
249
+ "complexType": {
250
+ "original": "any",
251
+ "resolved": "any",
252
+ "references": {}
253
+ }
254
+ }, {
255
+ "method": "utrechtChange",
256
+ "name": "utrechtChange",
257
+ "bubbles": true,
258
+ "cancelable": true,
259
+ "composed": true,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "complexType": {
265
+ "original": "any",
266
+ "resolved": "any",
267
+ "references": {}
268
+ }
269
+ }, {
270
+ "method": "utrechtFocus",
271
+ "name": "utrechtFocus",
272
+ "bubbles": true,
273
+ "cancelable": true,
274
+ "composed": true,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": ""
278
+ },
279
+ "complexType": {
280
+ "original": "any",
281
+ "resolved": "any",
282
+ "references": {}
283
+ }
284
+ }, {
285
+ "method": "utrechtInput",
286
+ "name": "utrechtInput",
287
+ "bubbles": true,
288
+ "cancelable": true,
289
+ "composed": true,
290
+ "docs": {
291
+ "tags": [],
292
+ "text": ""
293
+ },
294
+ "complexType": {
295
+ "original": "any",
296
+ "resolved": "any",
297
+ "references": {}
298
+ }
299
+ }]; }
300
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+
6
+ export const FormFieldset = ({ content = '', legend = '' }) =>
7
+ `<div class="utrecht-form-fieldset">
8
+ ${legend ? `<div class="utrecht-form-fieldset__legend utrecht-form-fieldset__legend--distanced">${legend}</div>` : ''}
9
+ ${content}
10
+ </div>`;
@@ -0,0 +1,22 @@
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
+ textContent: '',
12
+ type: null,
13
+ };
14
+
15
+ export const FormLabel = ({ checked = false, disabled = false, textContent = '', type = null }) =>
16
+ `<span class="${clsx(
17
+ 'utrecht-form-label',
18
+ type === 'checkbox' && 'utrecht-form-label--checkbox',
19
+ checked && 'utrecht-form-label--checked',
20
+ disabled && 'utrecht-form-label--disabled',
21
+ type === 'radio' && 'utrecht-form-label--radio',
22
+ )}">${textContent}</span>`;
@@ -0,0 +1,47 @@
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
+ focus: false,
12
+ hover: false,
13
+ };
14
+
15
+ export const FormToggle = ({ checked = false, disabled = false, hover = false, focus = false }) =>
16
+ `<div class="${clsx(
17
+ 'utrecht-form-toggle',
18
+ checked && 'utrecht-form-toggle--checked',
19
+ !checked && 'utrecht-form-toggle--not-checked',
20
+ disabled && 'utrecht-form-toggle--disabled',
21
+ focus && 'utrecht-form-toggle--focus',
22
+ hover && 'utrecht-form-toggle--hover',
23
+ )}" role="switch" tabindex="0"${checked ? ' aria-checked="true"' : ''}${disabled ? ' aria-disabled="true"' : ''}>
24
+ <div class="${clsx(
25
+ 'utrecht-form-toggle__track',
26
+ checked && 'utrecht-form-toggle__track--checked',
27
+ !checked && 'utrecht-form-toggle__track--not-checked',
28
+ disabled && 'utrecht-form-toggle__track--disabled',
29
+ )}">
30
+ <div class="${clsx(
31
+ 'utrecht-form-toggle__thumb',
32
+ checked && 'utrecht-form-toggle__thumb--checked',
33
+ !checked && 'utrecht-form-toggle__thumb--not-checked',
34
+ disabled && 'utrecht-form-toggle__thumb--disabled',
35
+ )}"></div>
36
+ </div>
37
+ </div>`;
38
+
39
+ export const FormToggleCheckbox = ({ checked = false, disabled = false, id }) =>
40
+ `<div class="${clsx('utrecht-form-toggle', 'utrecht-form-toggle--html-checkbox')}">
41
+ <input id="${id}" type="checkbox" class="utrecht-form-toggle__checkbox"${checked ? ' checked' : ''}${
42
+ disabled ? ' disabled' : ''
43
+ }>
44
+ <label for="${id}" class="${clsx('utrecht-form-toggle__track')}">
45
+ <div class="${clsx('utrecht-form-toggle__thumb')}"></div>
46
+ </label>
47
+ </div>`;
@@ -0,0 +1,115 @@
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-form-toggle {
10
+ align-items: center;
11
+ border-color: var(--utrecht-form-toggle-border-color, currentColor);
12
+ border-radius: var(--utrecht-form-toggle-border-radius, 999rem);
13
+ border-style: var(--utrecht-form-toggle-border-style, solid);
14
+ border-width: var(--utrecht-form-toggle-border-width, 1px);
15
+ color: var(--utrecht-form-toggle-color);
16
+ display: flex;
17
+ height: var(--utrecht-form-toggle-height, 2em);
18
+ padding-block-end: var(--utrecht-form-toggle-padding-block-end);
19
+ padding-block-start: var(--utrecht-form-toggle-padding-block-start);
20
+ padding-inline-end: var(--utrecht-form-toggle-padding-inline-end);
21
+ padding-inline-start: var(--utrecht-form-toggle-padding-inline-start);
22
+ position: relative;
23
+ user-select: none;
24
+ width: var(--utrecht-form-toggle-width, 6em);
25
+ }
26
+
27
+ .utrecht-form-toggle--focus, .utrecht-form-toggle:not(.utrecht-form-toggle--disabled):focus {
28
+ border-color: var(--utrecht-form-toggle-focus-border-color, var(--utrecht-form-toggle-border-color, currentColor));
29
+ border-style: var(--utrecht-form-toggle-focus-border-style, var(--utrecht-form-toggle-border-style, solid));
30
+ border-width: var(--utrecht-form-toggle-focus-border-width, var(--utrecht-form-toggle-border-width, 1px));
31
+ }
32
+
33
+ .utrecht-form-toggle--hover, .utrecht-form-toggle:not(.utrecht-form-toggle--disabled):hover {
34
+ background-color: var(--utrecht-form-toggle-hover-background-color, var(--utrecht-form-toggle-background-color));
35
+ color: var(--utrecht-form-toggle-hover-color, var(--utrecht-form-toggle-color));
36
+ }
37
+
38
+ .utrecht-form-toggle--disabled {
39
+ border-color: var(--utrecht-form-toggle-disabled-border-color, var(--utrecht-form-toggle-border-color, currentColor));
40
+ border-style: var(--utrecht-form-toggle-disabled-border-style, var(--utrecht-form-toggle-border-style, solid));
41
+ border-width: var(--utrecht-form-toggle-disabled-border-width, var(--utrecht-form-toggle-border-width, 1px));
42
+ cursor: var(--utrecht-action-disabled-cursor);
43
+ }
44
+
45
+ .utrecht-form-toggle__thumb {
46
+ /* To have a circle or square by default (1:1 aspect ratio) we use the `min-inline-size` design token for both `inline` and `block` direction. */
47
+ background-color: var(--utrecht-form-toggle-thumb-background-color, currentColor);
48
+ border-radius: var(--utrecht-form-toggle-thumb-border-radius, 50%);
49
+ box-shadow: var(--utrecht-form-toggle-thumb-box-shadow);
50
+ margin-inline-end: var(--utrecht-form-toggle-thumb-margin-inline-end, 0);
51
+ margin-inline-start: var(--utrecht-form-toggle-thumb-margin-inline-start, 0);
52
+ min-block-size: var(--utrecht-form-toggle-thumb-min-inline-size, 1.5em);
53
+ min-inline-size: var(--utrecht-form-toggle-thumb-min-inline-size, 1.5em);
54
+ z-index: 20;
55
+ }
56
+
57
+ .utrecht-form-toggle__thumb--checked, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:checked ~ .utrecht-form-toggle__track .utrecht-form-toggle__thumb {
58
+ margin-inline-start: auto;
59
+ }
60
+
61
+ .utrecht-form-toggle__thumb--not-checked, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:not(:checked) ~ .utrecht-form-toggle__track .utrecht-form-toggle__thumb {
62
+ margin-inline-end: auto;
63
+ }
64
+
65
+ .utrecht-form-toggle__thumb--disabled, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:disabled ~ .utrecht-form-toggle__track .utrecht-form-toggle__thumb {
66
+ background-color: var(--utrecht-form-toggle-thumb-disabled-background-color, #aaa);
67
+ box-shadow: var(--utrecht-form-toggle-thumb-disabled-box-shadow, 0);
68
+ }
69
+
70
+ .utrecht-form-toggle__track {
71
+ align-items: center;
72
+ background-color: var(--utrecht-form-toggle-accent-color);
73
+ border-radius: var(--utrecht-form-toggle-track-border-radius, var(--utrecht-form-toggle-border-radius));
74
+ display: flex;
75
+ height: 100%;
76
+ width: 100%;
77
+ }
78
+
79
+ .utrecht-form-toggle__track--checked, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:checked ~ .utrecht-form-toggle__track {
80
+ background-color: var(--utrecht-form-toggle-checked-accent-color, var(--utrecht-form-toggle-accent-color));
81
+ }
82
+
83
+ .utrecht-form-toggle__track--disabled, .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:disabled ~ .utrecht-form-toggle__track {
84
+ background-color: var(--utrecht-form-toggle-background-disabled-background-color, #ddd);
85
+ color: var(--utrecht-form-toggle-disabled-color, black);
86
+ }
87
+
88
+ .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox {
89
+ /* Source: https://kittygiraudel.com/snippets/sr-only-class/ */
90
+ border: 0 !important;
91
+ clip: rect(1px, 1px, 1px, 1px) !important;
92
+ -webkit-clip-path: inset(50%) !important;
93
+ clip-path: inset(50%) !important;
94
+ height: 1px !important;
95
+ /* stylelint-disable-next-line property-disallowed-list */
96
+ margin: -1px !important;
97
+ overflow: hidden !important;
98
+ /* stylelint-disable-next-line property-disallowed-list */
99
+ padding: 0 !important;
100
+ position: absolute !important;
101
+ white-space: nowrap !important;
102
+ width: 1px !important;
103
+ }
104
+ .utrecht-form-toggle--html-checkbox .utrecht-form-toggle__checkbox:focus ~ .utrecht-form-toggle__track {
105
+ outline-color: var(--utrecht-form-toggle-focus-border-color, var(--utrecht-form-toggle-border-color, currentColor));
106
+ outline-style: var(--utrecht-form-toggle-focus-border-style, var(--utrecht-form-toggle-border-style, solid));
107
+ outline-width: var(--utrecht-form-toggle-focus-border-width, var(--utrecht-form-toggle-border-width, 1px));
108
+ }
109
+ :host {
110
+ display: inline-block;
111
+ }
112
+
113
+ :host([hidden]) {
114
+ display: none !important;
115
+ }