@public-ui/components 1.2.0-rc.4 → 1.2.0-rc.5

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 (249) hide show
  1. package/cheat-sheet.html +5 -5
  2. package/custom-elements.json +1 -1
  3. package/dist/cjs/{app-globals-13416339.js → app-globals-4d8fc232.js} +1 -1
  4. package/dist/cjs/{button-link-340ecb5a.js → button-link-0fd6230e.js} +1 -1
  5. package/dist/cjs/{controller-2dd7754e.js → controller-07758d49.js} +1 -1
  6. package/dist/cjs/{controller-3d41cd37.js → controller-27f1673e.js} +1 -1
  7. package/dist/cjs/{controller-8057d72a.js → controller-38da3f37.js} +1 -1
  8. package/dist/cjs/{controller-014d33cf.js → controller-497f1ea8.js} +1 -1
  9. package/dist/cjs/{controller-2d245df1.js → controller-76206599.js} +1 -1
  10. package/dist/cjs/{controller-9013893f.js → controller-e1ac2199.js} +1 -1
  11. package/dist/cjs/{devtools-c41d1454.js → devtools-c15b4b51.js} +1 -1
  12. package/dist/cjs/index-2fff4c22.js +4 -0
  13. package/dist/cjs/index.cjs.js +1 -1
  14. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  15. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  16. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  18. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  19. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  20. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  21. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  22. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  23. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  24. package/dist/cjs/kol-color.cjs.entry.js +1 -1
  25. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  26. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  27. package/dist/cjs/kol-heading-wc_2.cjs.entry.js +1 -1
  28. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  29. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  31. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  34. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  35. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  62. package/dist/cjs/kolibri.cjs.js +1 -1
  63. package/dist/cjs/{label-1d58a5e8.js → label-b376a163.js} +1 -1
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/{prop.validators-73fcc892.js → prop.validators-d9b1328b.js} +1 -1
  66. package/dist/cjs/{tab-index-202761a6.js → tab-index-a6ce7671.js} +1 -1
  67. package/dist/cjs/{validation-538a8883.js → validation-e7db9a4e.js} +1 -1
  68. package/dist/cjs/{validation-6007eda5.js → validation-f9584225.js} +1 -1
  69. package/dist/components/component.js +1 -1
  70. package/dist/components/component11.js +1 -1
  71. package/dist/components/component12.js +1 -1
  72. package/dist/components/component2.js +1 -1
  73. package/dist/components/component6.js +1 -1
  74. package/dist/components/component8.js +1 -1
  75. package/dist/components/component9.js +1 -1
  76. package/dist/components/kol-abbr.js +1 -1
  77. package/dist/components/kol-accordion.js +1 -1
  78. package/dist/components/kol-breadcrumb.js +1 -1
  79. package/dist/components/kol-button-group.js +1 -1
  80. package/dist/components/kol-button-link.js +1 -1
  81. package/dist/components/kol-card.js +1 -1
  82. package/dist/components/kol-color.js +1 -1
  83. package/dist/components/kol-details.js +1 -1
  84. package/dist/components/kol-heading.js +1 -1
  85. package/dist/components/kol-input-checkbox.js +1 -1
  86. package/dist/components/kol-input-color.js +1 -1
  87. package/dist/components/kol-input-date.js +1 -1
  88. package/dist/components/kol-input-email.js +1 -1
  89. package/dist/components/kol-input-file.js +1 -1
  90. package/dist/components/kol-input-password.js +1 -1
  91. package/dist/components/kol-input-range.js +1 -1
  92. package/dist/components/kol-input-text.js +1 -1
  93. package/dist/components/kol-kolibri.js +1 -1
  94. package/dist/components/kol-link-button.js +1 -1
  95. package/dist/components/kol-link-group.js +1 -1
  96. package/dist/components/kol-logo.js +1 -1
  97. package/dist/components/kol-modal.js +1 -1
  98. package/dist/components/kol-nav.js +1 -1
  99. package/dist/components/kol-skip-nav.js +1 -1
  100. package/dist/components/kol-span.js +1 -1
  101. package/dist/components/kol-spin.js +1 -1
  102. package/dist/components/kol-table.js +1 -1
  103. package/dist/components/kol-tabs.js +1 -1
  104. package/dist/components/kol-textarea.js +1 -1
  105. package/dist/components/kol-toast.js +1 -1
  106. package/dist/components/kol-version.js +1 -1
  107. package/dist/components/prop.validators.js +1 -1
  108. package/dist/components/shadow.js +1 -1
  109. package/dist/components/shadow2.js +1 -1
  110. package/dist/esm/{app-globals-aa3f785d.js → app-globals-79adbf92.js} +1 -1
  111. package/dist/esm/{button-link-ea9737b4.js → button-link-4be4e0b3.js} +1 -1
  112. package/dist/esm/{controller-d6a2e7f1.js → controller-2e2739f0.js} +1 -1
  113. package/dist/esm/{controller-604cc99d.js → controller-96790379.js} +1 -1
  114. package/dist/esm/{controller-73986a25.js → controller-cce0f1ff.js} +1 -1
  115. package/dist/esm/{controller-2dd0f2f6.js → controller-d56406c9.js} +1 -1
  116. package/dist/esm/{controller-b11e76fa.js → controller-d720adef.js} +1 -1
  117. package/dist/esm/{controller-2694f7b8.js → controller-f9fd0dec.js} +1 -1
  118. package/dist/esm/{devtools-2bc5001b.js → devtools-f6d00261.js} +1 -1
  119. package/dist/esm/index-bb963364.js +4 -0
  120. package/dist/esm/index.js +1 -1
  121. package/dist/esm/kol-abbr.entry.js +1 -1
  122. package/dist/esm/kol-accordion.entry.js +1 -1
  123. package/dist/esm/kol-alert.entry.js +1 -1
  124. package/dist/esm/kol-badge.entry.js +1 -1
  125. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  126. package/dist/esm/kol-button-group.entry.js +1 -1
  127. package/dist/esm/kol-button-link.entry.js +1 -1
  128. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  129. package/dist/esm/kol-button.entry.js +1 -1
  130. package/dist/esm/kol-card.entry.js +1 -1
  131. package/dist/esm/kol-color.entry.js +1 -1
  132. package/dist/esm/kol-details.entry.js +1 -1
  133. package/dist/esm/kol-form.entry.js +1 -1
  134. package/dist/esm/kol-heading-wc_2.entry.js +1 -1
  135. package/dist/esm/kol-heading.entry.js +1 -1
  136. package/dist/esm/kol-icon.entry.js +1 -1
  137. package/dist/esm/kol-indented-text.entry.js +1 -1
  138. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  139. package/dist/esm/kol-input-color.entry.js +1 -1
  140. package/dist/esm/kol-input-date.entry.js +1 -1
  141. package/dist/esm/kol-input-email.entry.js +1 -1
  142. package/dist/esm/kol-input-file.entry.js +1 -1
  143. package/dist/esm/kol-input-number.entry.js +1 -1
  144. package/dist/esm/kol-input-password.entry.js +1 -1
  145. package/dist/esm/kol-input-radio.entry.js +1 -1
  146. package/dist/esm/kol-input-range.entry.js +1 -1
  147. package/dist/esm/kol-input-text.entry.js +1 -1
  148. package/dist/esm/kol-kolibri.entry.js +1 -1
  149. package/dist/esm/kol-link-button.entry.js +1 -1
  150. package/dist/esm/kol-link-group.entry.js +1 -1
  151. package/dist/esm/kol-link-wc.entry.js +1 -1
  152. package/dist/esm/kol-link.entry.js +1 -1
  153. package/dist/esm/kol-logo.entry.js +1 -1
  154. package/dist/esm/kol-modal.entry.js +1 -1
  155. package/dist/esm/kol-nav.entry.js +1 -1
  156. package/dist/esm/kol-pagination.entry.js +1 -1
  157. package/dist/esm/kol-progress.entry.js +1 -1
  158. package/dist/esm/kol-select.entry.js +1 -1
  159. package/dist/esm/kol-skip-nav.entry.js +1 -1
  160. package/dist/esm/kol-span.entry.js +1 -1
  161. package/dist/esm/kol-spin.entry.js +1 -1
  162. package/dist/esm/kol-symbol.entry.js +1 -1
  163. package/dist/esm/kol-table.entry.js +1 -1
  164. package/dist/esm/kol-tabs.entry.js +1 -1
  165. package/dist/esm/kol-textarea.entry.js +1 -1
  166. package/dist/esm/kol-toast.entry.js +1 -1
  167. package/dist/esm/kol-tooltip.entry.js +1 -1
  168. package/dist/esm/kol-version.entry.js +1 -1
  169. package/dist/esm/kolibri.js +1 -1
  170. package/dist/esm/{label-99306a0b.js → label-6eef1542.js} +1 -1
  171. package/dist/esm/loader.js +1 -1
  172. package/dist/esm/{prop.validators-1e245c43.js → prop.validators-6ea5c4bf.js} +1 -1
  173. package/dist/esm/{tab-index-6bfa5761.js → tab-index-4f492046.js} +1 -1
  174. package/dist/esm/{validation-32c9a09b.js → validation-7fff73cc.js} +1 -1
  175. package/dist/esm/validation-d60955a6.js +4 -0
  176. package/dist/kolibri/{app-globals-aa3f785d.js → app-globals-79adbf92.js} +1 -1
  177. package/dist/kolibri/assets/icofont/demo.html +1 -1
  178. package/dist/kolibri/button-link-4be4e0b3.js +4 -0
  179. package/dist/kolibri/{controller-d6a2e7f1.js → controller-2e2739f0.js} +1 -1
  180. package/dist/kolibri/{controller-604cc99d.js → controller-96790379.js} +1 -1
  181. package/dist/kolibri/{controller-73986a25.js → controller-cce0f1ff.js} +1 -1
  182. package/dist/kolibri/controller-d56406c9.js +4 -0
  183. package/dist/kolibri/{controller-b11e76fa.js → controller-d720adef.js} +1 -1
  184. package/dist/kolibri/{controller-2694f7b8.js → controller-f9fd0dec.js} +1 -1
  185. package/dist/kolibri/{devtools-2bc5001b.js → devtools-f6d00261.js} +1 -1
  186. package/dist/kolibri/index-bb963364.js +4 -0
  187. package/dist/kolibri/index.esm.js +1 -1
  188. package/dist/kolibri/kol-abbr.entry.js +1 -1
  189. package/dist/kolibri/kol-accordion.entry.js +1 -1
  190. package/dist/kolibri/kol-alert.entry.js +1 -1
  191. package/dist/kolibri/kol-badge.entry.js +1 -1
  192. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  193. package/dist/kolibri/kol-button-group.entry.js +1 -1
  194. package/dist/kolibri/kol-button-link.entry.js +1 -1
  195. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  196. package/dist/kolibri/kol-button.entry.js +1 -1
  197. package/dist/kolibri/kol-card.entry.js +1 -1
  198. package/dist/kolibri/kol-color.entry.js +1 -1
  199. package/dist/kolibri/kol-details.entry.js +1 -1
  200. package/dist/kolibri/kol-form.entry.js +1 -1
  201. package/dist/kolibri/kol-heading-wc_2.entry.js +1 -1
  202. package/dist/kolibri/kol-heading.entry.js +1 -1
  203. package/dist/kolibri/kol-icon.entry.js +1 -1
  204. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  205. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  206. package/dist/kolibri/kol-input-color.entry.js +1 -1
  207. package/dist/kolibri/kol-input-date.entry.js +1 -1
  208. package/dist/kolibri/kol-input-email.entry.js +1 -1
  209. package/dist/kolibri/kol-input-file.entry.js +1 -1
  210. package/dist/kolibri/kol-input-number.entry.js +1 -1
  211. package/dist/kolibri/kol-input-password.entry.js +1 -1
  212. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  213. package/dist/kolibri/kol-input-range.entry.js +1 -1
  214. package/dist/kolibri/kol-input-text.entry.js +1 -1
  215. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  216. package/dist/kolibri/kol-link-button.entry.js +1 -1
  217. package/dist/kolibri/kol-link-group.entry.js +1 -1
  218. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  219. package/dist/kolibri/kol-link.entry.js +1 -1
  220. package/dist/kolibri/kol-logo.entry.js +1 -1
  221. package/dist/kolibri/kol-modal.entry.js +1 -1
  222. package/dist/kolibri/kol-nav.entry.js +1 -1
  223. package/dist/kolibri/kol-pagination.entry.js +1 -1
  224. package/dist/kolibri/kol-progress.entry.js +1 -1
  225. package/dist/kolibri/kol-select.entry.js +1 -1
  226. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  227. package/dist/kolibri/kol-span.entry.js +1 -1
  228. package/dist/kolibri/kol-spin.entry.js +1 -1
  229. package/dist/kolibri/kol-symbol.entry.js +1 -1
  230. package/dist/kolibri/kol-table.entry.js +1 -1
  231. package/dist/kolibri/kol-tabs.entry.js +1 -1
  232. package/dist/kolibri/kol-textarea.entry.js +1 -1
  233. package/dist/kolibri/kol-toast.entry.js +1 -1
  234. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  235. package/dist/kolibri/kol-version.entry.js +1 -1
  236. package/dist/kolibri/kolibri.esm.js +1 -1
  237. package/dist/kolibri/{label-99306a0b.js → label-6eef1542.js} +1 -1
  238. package/dist/kolibri/{prop.validators-1e245c43.js → prop.validators-6ea5c4bf.js} +1 -1
  239. package/dist/kolibri/{tab-index-6bfa5761.js → tab-index-4f492046.js} +1 -1
  240. package/dist/kolibri/{validation-32c9a09b.js → validation-7fff73cc.js} +1 -1
  241. package/dist/kolibri/{validation-02177d65.js → validation-d60955a6.js} +1 -1
  242. package/jest-test-results.json +1 -1
  243. package/package.json +1 -1
  244. package/dist/cjs/index-d04ab8f3.js +0 -4
  245. package/dist/esm/index-1d3802fa.js +0 -4
  246. package/dist/esm/validation-02177d65.js +0 -4
  247. package/dist/kolibri/button-link-ea9737b4.js +0 -4
  248. package/dist/kolibri/controller-2dd0f2f6.js +0 -4
  249. package/dist/kolibri/index-1d3802fa.js +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/components",
3
- "version": "1.2.0-rc.4",
3
+ "version": "1.2.0-rc.5",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "bugs": { "url": "https://github.com/public-ui/kolibri/issues", "email": "kolibri@itzbund.de" },
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return commonjsRequire()}},o.exports),o.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var loglevel=createCommonjsModule((function(e){var t,o;t=commonjsGlobal,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function s(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(s.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return r(e)||a.apply(this,arguments)}function h(e,o,l){var i,r=this;o=null==o?"WARN":o;var a="loglevel";function h(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===r.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),r.name=e,r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},r.methodFactory=l||c,r.getLevel=function(){return i},r.setLevel=function(o,l){if("string"==typeof o&&void 0!==r.levels[o.toUpperCase()]&&(o=r.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=r.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==l&&function(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}(o),s.call(r,o,e),typeof console===t&&o<r.levels.SILENT)return"No console available for logging"},r.setDefaultLevel=function(e){o=e,h()||r.setLevel(e,!1)},r.resetLevel=function(){r.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},r.enableAll=function(e){r.setLevel(r.levels.TRACE,e)},r.disableAll=function(e){r.setLevel(r.levels.SILENT,e)};var y=h();null==y&&(y=o),r.setLevel(y,!1)}var y=new h,f={};y.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new h(e,y.getLevel(),y.methodFactory)),t};var L=typeof window!==t?window.log:void 0;return y.noConflict=function(){return typeof window!==t&&window.log===y&&(window.log=L),y},y.getLoggers=function(){return f},y.default=y,y},e.exports?e.exports=o():t.log=o()}));const GLOBAL$1="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let warrentyWarning=!1;const THEME_NAME_PATTERN=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,isThemeNameValid=e=>"string"==typeof e&&THEME_NAME_PATTERN.test(e),validateThemeName=e=>{if(!1===isThemeNameValid(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},patchThemeTag=(e,t,o)=>{validateThemeName(e),!1===warrentyWarning&&(warrentyWarning=!0,loglevel.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLDivElement | null = document.querySelector<HTMLDivElement>('div#app');\n if (htmlDivElement instanceof HTMLDivElement) {\n const root = createRoot(htmlDivElement);\n root.render(<AppComponent />);\n }\n })\n .catch(console.warn);`)),"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi||(GLOBAL$1.A11yUi={}),"object"!=typeof GLOBAL$1.A11yUi||null===GLOBAL$1.A11yUi||"object"==typeof GLOBAL$1.A11yUi.Themes&&null!==GLOBAL$1.A11yUi.Themes||(GLOBAL$1.A11yUi.Themes={}),"object"!=typeof GLOBAL$1.A11yUi||null===GLOBAL$1.A11yUi||"object"!=typeof GLOBAL$1.A11yUi.Themes||null===GLOBAL$1.A11yUi.Themes||"object"==typeof GLOBAL$1.A11yUi.Themes[e]&&null!==GLOBAL$1.A11yUi.Themes[e]||(GLOBAL$1.A11yUi.Themes[e]={}),"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Themes&&null!==GLOBAL$1.A11yUi.Themes&&"object"==typeof GLOBAL$1.A11yUi.Themes[e]&&null!==GLOBAL$1.A11yUi.Themes[e]&&(GLOBAL$1.A11yUi.Themes[e][t]=o)},patchTheme=(e,t)=>{if(validateThemeName(e),"object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&patchThemeTag(e,o,n)}))}return e},getThemeNode=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return getThemeNode(t)}}return null},getEncroachCss=(e={})=>"string"==typeof e.themeEncroachCssMode&&("after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode)&&{mode:e.themeEncroachCssMode},isTheCurrentThemeConfigValid=()=>"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Theme&&null!==GLOBAL$1.A11yUi.Theme&&"boolean"==typeof GLOBAL$1.A11yUi.Theme.cache&&"object"==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&null!==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&"string"==typeof GLOBAL$1.A11yUi.Theme.encroachCss.mode&&"string"==typeof GLOBAL$1.A11yUi.Theme.name,getThemeDetails=e=>{if("object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Theme&&null!==GLOBAL$1.A11yUi.Theme&&"boolean"==typeof GLOBAL$1.A11yUi.Theme.cache&&"object"==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&null!==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&"string"==typeof GLOBAL$1.A11yUi.Theme.encroachCss.mode&&"string"==typeof GLOBAL$1.A11yUi.Theme.name)return GLOBAL$1.A11yUi.Theme;{const t=getThemeNode(e),o={cache:!0,encroachCss:getEncroachCss(),name:null};return t instanceof HTMLElement&&(o.cache="false"!==t.dataset.themeCache,o.encroachCss=getEncroachCss(t.dataset),o.name=t.dataset.theme||null),o}},GLOBAL=window,CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_SHEETS=new Map,HTML_STYLE_ELEMENTS=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLT_CSS_PROPERTY=/:/,getCssStyleSheet=(e,t,o)=>{if(!0===e&&CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.get(t)?.has(o))return CSS_STYLE_SHEETS.get(t)?.get(o);if(!0===e&&HTML_STYLE_ELEMENTS.has(t)&&HTML_STYLE_ELEMENTS.get(t)?.has(o))return HTML_STYLE_ELEMENTS.get(t)?.get(o);if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[t]&&null!==GLOBAL.A11yUi.Themes[t]&&"string"==typeof GLOBAL.A11yUi.Themes[t][o]){if(("GLOBAL"===o||"PROPERTIES"===o)&&!1===CSS_PROPERTIES_REGISTERED.has(t)){let e=GLOBAL.A11yUi.Themes[t][o].match(REGEX_CSS_PROPERTIES);if(Array.isArray(e)){e=e.filter((e=>REGEX_SPLT_CSS_PROPERTY.test(e)));const o=document.createElement("style");o.innerHTML=`.${t} {${e.join(";")}}`,document.querySelector("head")?.appendChild(o)}CSS_PROPERTIES_REGISTERED.add(t)}let n;try{n=new CSSStyleSheet,"function"==typeof n.replaceSync&&n.replaceSync(GLOBAL.A11yUi.Themes[t][o]),!0===e&&(!1===CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.set(t,new Map),CSS_STYLE_SHEETS.get(t)?.set(o,n))}catch(e){n=document.createElement("style"),n.innerHTML=GLOBAL.A11yUi.Themes[t][o]}return n}return null},removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},GLOBAL_A11Y_STYLE="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",patchAdopted=(e,t,o,n)=>{const l=new CSSStyleSheet;"function"==typeof l.replaceSync&&l.replaceSync(GLOBAL_A11Y_STYLE),o.unshift(l),t.adoptedStyleSheets=o,e.style.display=n},patchStyle=(e,t,o,n)=>{const l=document.createElement("style");l.innerHTML=GLOBAL_A11Y_STYLE,o.unshift(l);const i=t.firstChild;o.forEach((e=>{i instanceof HTMLElement?t.insertBefore(e,i):t.appendChild(e)})),e.style.display=n},setThemeStyleAfterHydrated=(e,t,o)=>{const n=t.cache,l=t.encroachCss,i=t.name||"default",r=getCssStyleSheet(n,i,"GLOBAL"),s=getCssStyleSheet(n,i,e.tagName),a=e.shadowRoot;if(!1!==l&&removeStyle(a),s instanceof CSSStyleSheet&&s.cssRules.length>0){const t=[],n=[...Array.from(new Set(a.adoptedStyleSheets))];!1!==l&&"before"===l?.mode&&n.forEach((e=>t.push(e))),r instanceof CSSStyleSheet&&r.cssRules.length>0&&!1===t.includes(r)&&t.push(r),s instanceof CSSStyleSheet&&s.cssRules.length>0&&!1===t.includes(s)&&t.push(s),!1!==l&&"after"===l?.mode&&n.forEach((e=>t.push(e))),patchAdopted(e,a,t,o)}else if(s instanceof HTMLStyleElement&&s.innerHTML.length>0){const t=[],n=[...Array.from(a.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];!1!==l&&"before"===l?.mode&&n.forEach((e=>t.push(e))),r instanceof HTMLStyleElement&&r.innerHTML.length>0&&!1===t.includes(r)&&t.push(r),s instanceof HTMLStyleElement&&s.innerHTML.length>0&&!1===t.includes(s)&&t.push(s),patchStyle(e,a,t,o)}else e.style.display=o},waitForHydrated=(e,t,o)=>{const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?setThemeStyleAfterHydrated(e,t,o):waitForHydrated(e,t,o)}),25)},setThemeStyle=(e,t)=>{const o=`${e.style.display}`;e.style.display="none",waitForHydrated(e,t,o)};exports.getThemeDetails=getThemeDetails,exports.patchTheme=patchTheme,exports.patchThemeTag=patchThemeTag,exports.setThemeStyle=setThemeStyle;
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return commonjsRequire()}},o.exports),o.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var loglevel=createCommonjsModule((function(e){var t,o;t=commonjsGlobal,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function s(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(s.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return r(e)||a.apply(this,arguments)}function y(e,o,l){var i,r=this;o=null==o?"WARN":o;var a="loglevel";function y(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===r.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),r.name=e,r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},r.methodFactory=l||c,r.getLevel=function(){return i},r.setLevel=function(o,l){if("string"==typeof o&&void 0!==r.levels[o.toUpperCase()]&&(o=r.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=r.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==l&&function(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}(o),s.call(r,o,e),typeof console===t&&o<r.levels.SILENT)return"No console available for logging"},r.setDefaultLevel=function(e){o=e,y()||r.setLevel(e,!1)},r.resetLevel=function(){r.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},r.enableAll=function(e){r.setLevel(r.levels.TRACE,e)},r.disableAll=function(e){r.setLevel(r.levels.SILENT,e)};var h=y();null==h&&(h=o),r.setLevel(h,!1)}var h=new y,f={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new y(e,h.getLevel(),h.methodFactory)),t};var L=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=L),h},h.getLoggers=function(){return f},h.default=h,h},e.exports?e.exports=o():t.log=o()}));const GLOBAL$1="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let warrentyWarning=!1;const THEME_NAME_PATTERN=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,isThemeNameValid=e=>"string"==typeof e&&THEME_NAME_PATTERN.test(e),validateThemeName=e=>{if(!1===isThemeNameValid(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},patchThemeTag=(e,t,o)=>{validateThemeName(e),!1===warrentyWarning&&(warrentyWarning=!0,loglevel.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLDivElement | null = document.querySelector<HTMLDivElement>('div#app');\n if (htmlDivElement instanceof HTMLDivElement) {\n const root = createRoot(htmlDivElement);\n root.render(<AppComponent />);\n }\n })\n .catch(console.warn);`)),"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi||(GLOBAL$1.A11yUi={}),"object"!=typeof GLOBAL$1.A11yUi||null===GLOBAL$1.A11yUi||"object"==typeof GLOBAL$1.A11yUi.Themes&&null!==GLOBAL$1.A11yUi.Themes||(GLOBAL$1.A11yUi.Themes={}),"object"!=typeof GLOBAL$1.A11yUi||null===GLOBAL$1.A11yUi||"object"!=typeof GLOBAL$1.A11yUi.Themes||null===GLOBAL$1.A11yUi.Themes||"object"==typeof GLOBAL$1.A11yUi.Themes[e]&&null!==GLOBAL$1.A11yUi.Themes[e]||(GLOBAL$1.A11yUi.Themes[e]={}),"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Themes&&null!==GLOBAL$1.A11yUi.Themes&&"object"==typeof GLOBAL$1.A11yUi.Themes[e]&&null!==GLOBAL$1.A11yUi.Themes[e]&&(GLOBAL$1.A11yUi.Themes[e][t]=o)},patchTheme=(e,t)=>{if(validateThemeName(e),"object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&patchThemeTag(e,o,n)}))}return e},getThemeNode=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return getThemeNode(t)}}return null},getEncroachCss=(e={})=>"string"==typeof e.themeEncroachCssMode&&("after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode)&&{mode:e.themeEncroachCssMode},isTheCurrentThemeConfigValid=()=>"object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Theme&&null!==GLOBAL$1.A11yUi.Theme&&"boolean"==typeof GLOBAL$1.A11yUi.Theme.cache&&"object"==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&null!==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&"string"==typeof GLOBAL$1.A11yUi.Theme.encroachCss.mode&&"string"==typeof GLOBAL$1.A11yUi.Theme.name,getThemeDetails=e=>{if("object"==typeof GLOBAL$1.A11yUi&&null!==GLOBAL$1.A11yUi&&"object"==typeof GLOBAL$1.A11yUi.Theme&&null!==GLOBAL$1.A11yUi.Theme&&"boolean"==typeof GLOBAL$1.A11yUi.Theme.cache&&"object"==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&null!==typeof GLOBAL$1.A11yUi.Theme.encroachCss&&"string"==typeof GLOBAL$1.A11yUi.Theme.encroachCss.mode&&"string"==typeof GLOBAL$1.A11yUi.Theme.name)return GLOBAL$1.A11yUi.Theme;{const t=getThemeNode(e),o={cache:!0,encroachCss:getEncroachCss(),name:null};return t instanceof HTMLElement&&(o.cache="false"!==t.dataset.themeCache,o.encroachCss=getEncroachCss(t.dataset),o.name=t.dataset.theme||null),o}},GLOBAL=window,CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_SHEETS=new Map,HTML_STYLE_ELEMENTS=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLT_CSS_PROPERTY=/:/,getCssStyleSheet=(e,t,o)=>{if(!0===e&&CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.get(t)?.has(o))return CSS_STYLE_SHEETS.get(t)?.get(o);if(!0===e&&HTML_STYLE_ELEMENTS.has(t)&&HTML_STYLE_ELEMENTS.get(t)?.has(o))return HTML_STYLE_ELEMENTS.get(t)?.get(o);if("object"==typeof GLOBAL.A11yUi&&null!==GLOBAL.A11yUi&&"object"==typeof GLOBAL.A11yUi.Themes&&null!==GLOBAL.A11yUi.Themes&&"object"==typeof GLOBAL.A11yUi.Themes[t]&&null!==GLOBAL.A11yUi.Themes[t]&&"string"==typeof GLOBAL.A11yUi.Themes[t][o]){if(("GLOBAL"===o||"PROPERTIES"===o)&&!1===CSS_PROPERTIES_REGISTERED.has(t)){let e=GLOBAL.A11yUi.Themes[t][o].match(REGEX_CSS_PROPERTIES);if(Array.isArray(e)){e=e.filter((e=>REGEX_SPLT_CSS_PROPERTY.test(e)));const o=document.createElement("style");o.innerHTML=`.${t} {${e.join(";")}}`,document.querySelector("head")?.appendChild(o)}CSS_PROPERTIES_REGISTERED.add(t)}let n;try{n=new CSSStyleSheet,"function"==typeof n.replaceSync&&n.replaceSync(GLOBAL.A11yUi.Themes[t][o]),!0===e&&(!1===CSS_STYLE_SHEETS.has(t)&&CSS_STYLE_SHEETS.set(t,new Map),CSS_STYLE_SHEETS.get(t)?.set(o,n))}catch(e){n=document.createElement("style"),n.innerHTML=GLOBAL.A11yUi.Themes[t][o]}return n}return null},removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},GLOBAL_A11Y_STYLE="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",patchAdopted=(e,t,o,n)=>{const l=new CSSStyleSheet;"function"==typeof l.replaceSync&&l.replaceSync(GLOBAL_A11Y_STYLE),o.unshift(l),t.adoptedStyleSheets=o,e.style.display=n},patchStyle=(e,t,o,n)=>{const l=document.createElement("style");l.innerHTML=GLOBAL_A11Y_STYLE,o.unshift(l);const i=t.firstChild;o.forEach((e=>{i instanceof HTMLElement?t.insertBefore(e,i):t.appendChild(e)})),e.style.display=n},setThemeStyleAfterHydrated=(e,t,o)=>{const n=t.cache,l=t.encroachCss,i=t.name||"default",r=getCssStyleSheet(n,i,"GLOBAL"),s=getCssStyleSheet(n,i,e.tagName),a=e.shadowRoot;if(!1!==l&&removeStyle(a),s instanceof CSSStyleSheet&&s.cssRules.length>0){const t=[],n=[...Array.from(new Set(a.adoptedStyleSheets))];!1!==l&&"before"===l?.mode&&n.forEach((e=>t.push(e))),r instanceof CSSStyleSheet&&r.cssRules.length>0&&!1===t.includes(r)&&t.push(r),s instanceof CSSStyleSheet&&s.cssRules.length>0&&!1===t.includes(s)&&t.push(s),!1!==l&&"after"===l?.mode&&n.forEach((e=>t.push(e))),patchAdopted(e,a,t,o)}else if(s instanceof HTMLStyleElement&&s.innerHTML.length>0){const t=[],n=[...Array.from(a.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];!1!==l&&"before"===l?.mode&&n.forEach((e=>t.push(e))),r instanceof HTMLStyleElement&&r.innerHTML.length>0&&!1===t.includes(r)&&t.push(r),s instanceof HTMLStyleElement&&s.innerHTML.length>0&&!1===t.includes(s)&&t.push(s),patchStyle(e,a,t,o)}else e.style.display=o},waitForHydrated=(e,t,o)=>{const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?setThemeStyleAfterHydrated(e,t,o):waitForHydrated(e,t,o)}),25)},setThemeStyle=(e,t)=>{const o=`${e.style.display}`;e.style.display="none",waitForHydrated(e,t,o)};export{patchThemeTag as a,getThemeDetails as g,patchTheme as p,setThemeStyle as s};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{u as uiUxHintMillerscheZahl}from"./a11y.tipps-ff5a1a99.js";import{c as watchJsonArrayString}from"./prop.validators-1e245c43.js";const watchNavLinks=(t,a,s)=>{watchJsonArrayString(a,"_links",(t=>"object"==typeof t&&"string"==typeof t._label),s),uiUxHintMillerscheZahl(t,a.state._links.length)};export{watchNavLinks as w};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as t}from"./prop.validators-1e245c43.js";const o=(o,e,p)=>{t(o,e,(t=>"top"===t||"right"===t||"bottom"===t||"left"===t),new Set(["TooltipAlignment {top, right, buttom, left}"]),p,{defaultValue:"top"})};export{o as w};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as t}from"./prop.validators-1e245c43.js";const o=(o,r,a)=>{t(o,r,(t=>"button"===t||"reset"===t||"submit"===t),new Set(["KoliBriButtonType {button, reset, submit}"]),a)},r=(o,r,a)=>{t(o,r,(t=>"primary"===t||"secondary"===t||"normal"===t||"danger"===t||"ghost"===t||"custom"===t),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),a,{defaultValue:"normal"})};export{o as a,r as w};
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- var e,n,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=(e=function(e){var n,o;n=t,o=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(o){return"debug"===o&&(o="log"),typeof console!==t&&("trace"===o&&n?l:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):e)}function r(t,n){for(var i=0;i<o.length;i++){var l=o[i];this[l]=i<t?e:this.methodFactory(l,t,n)}this.log=this.debug}function c(e,n,o){return function(){typeof console!==t&&(r.call(this,n,o),this[e].apply(this,arguments))}}function a(e,t,n){return s(e)||c.apply(this,arguments)}function y(e,n,i){var l,s=this;n=null==n?"WARN":n;var c="loglevel";function y(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,o=n.indexOf(encodeURIComponent(c)+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=i||a,s.getLevel=function(){return l},s.setLevel=function(n,i){if("string"==typeof n&&void 0!==s.levels[n.toUpperCase()]&&(n=s.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(l=n,!1!==i&&function(e){var n=(o[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+n+";"}catch(e){}}}(n),r.call(s,n,e),typeof console===t&&n<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){n=e,y()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(n,!1),function(){if(typeof window!==t&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=y();null==f&&(f=n),s.setLevel(f,!1)}var f=new y,h={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=h[e];return t||(t=h[e]=new y(e,f.getLevel(),f.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=p),f},f.getLoggers=function(){return h},f.default=f,f},e.exports?e.exports=o():n.log=o()},e(n={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),n.exports);const i="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let r=!1;const l=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>{if(!1===(e=>"string"==typeof e&&l.test(e))(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},c=(e,t,n)=>{f(e),!1===r&&(r=!0,o.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLDivElement | null = document.querySelector<HTMLDivElement>('div#app');\n if (htmlDivElement instanceof HTMLDivElement) {\n const root = createRoot(htmlDivElement);\n root.render(<AppComponent />);\n }\n })\n .catch(console.warn);`)),"object"==typeof i.A11yUi&&null!==i.A11yUi||(i.A11yUi={}),"object"!=typeof i.A11yUi||null===i.A11yUi||"object"==typeof i.A11yUi.Themes&&null!==i.A11yUi.Themes||(i.A11yUi.Themes={}),"object"!=typeof i.A11yUi||null===i.A11yUi||"object"!=typeof i.A11yUi.Themes||null===i.A11yUi.Themes||"object"==typeof i.A11yUi.Themes[e]&&null!==i.A11yUi.Themes[e]||(i.A11yUi.Themes[e]={}),"object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Themes&&null!==i.A11yUi.Themes&&"object"==typeof i.A11yUi.Themes[e]&&null!==i.A11yUi.Themes[e]&&(i.A11yUi.Themes[e][t]=n)},s=(e,t)=>(f(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];"string"==typeof o&&o.length>0&&c(e,n,o)})),e),u=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return u(t)}}return null},a=(e={})=>"string"==typeof e.themeEncroachCssMode&&("after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode)&&{mode:e.themeEncroachCssMode},y=e=>{if("object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Theme&&null!==i.A11yUi.Theme&&"boolean"==typeof i.A11yUi.Theme.cache&&"object"==typeof i.A11yUi.Theme.encroachCss&&null!==typeof i.A11yUi.Theme.encroachCss&&"string"==typeof i.A11yUi.Theme.encroachCss.mode&&"string"==typeof i.A11yUi.Theme.name)return i.A11yUi.Theme;{const t=u(e),n={cache:!0,encroachCss:a(),name:null};return t instanceof HTMLElement&&(n.cache="false"!==t.dataset.themeCache,n.encroachCss=a(t.dataset),n.name=t.dataset.theme||null),n}},p=window,d=new Set,w=new Map,h=new Map,m=/--[^;]+/g,b=/:/,g=(e,t,n)=>{if(!0===e&&w.has(t)&&w.get(t)?.has(n))return w.get(t)?.get(n);if(!0===e&&h.has(t)&&h.get(t)?.has(n))return h.get(t)?.get(n);if("object"==typeof p.A11yUi&&null!==p.A11yUi&&"object"==typeof p.A11yUi.Themes&&null!==p.A11yUi.Themes&&"object"==typeof p.A11yUi.Themes[t]&&null!==p.A11yUi.Themes[t]&&"string"==typeof p.A11yUi.Themes[t][n]){if(("GLOBAL"===n||"PROPERTIES"===n)&&!1===d.has(t)){let e=p.A11yUi.Themes[t][n].match(m);if(Array.isArray(e)){e=e.filter((e=>b.test(e)));const n=document.createElement("style");n.innerHTML=`.${t} {${e.join(";")}}`,document.querySelector("head")?.appendChild(n)}d.add(t)}let o;try{o=new CSSStyleSheet,"function"==typeof o.replaceSync&&o.replaceSync(p.A11yUi.Themes[t][n]),!0===e&&(!1===w.has(t)&&w.set(t,new Map),w.get(t)?.set(n,o))}catch(e){o=document.createElement("style"),o.innerHTML=p.A11yUi.Themes[t][n]}return o}return null},v="* {\n font-size: inherit;\n hyphens: auto;\n letter-spacing: inherit;\n word-break: break-word;\n word-spacing: inherit;\n}",S=(e,t,n)=>{const o=setTimeout((()=>{clearTimeout(o),e.classList.contains("hydrated")?((e,t,n)=>{const o=t.cache,i=t.encroachCss,l=t.name||"default",s=g(o,l,"GLOBAL"),r=g(o,l,e.tagName),c=e.shadowRoot;if(!1!==i&&(e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}})(c),r instanceof CSSStyleSheet&&r.cssRules.length>0){const t=[],o=[...Array.from(new Set(c.adoptedStyleSheets))];!1!==i&&"before"===i?.mode&&o.forEach((e=>t.push(e))),s instanceof CSSStyleSheet&&s.cssRules.length>0&&!1===t.includes(s)&&t.push(s),r instanceof CSSStyleSheet&&r.cssRules.length>0&&!1===t.includes(r)&&t.push(r),!1!==i&&"after"===i?.mode&&o.forEach((e=>t.push(e))),((e,t,n,o)=>{const i=new CSSStyleSheet;"function"==typeof i.replaceSync&&i.replaceSync(v),n.unshift(i),t.adoptedStyleSheets=n,e.style.display=o})(e,c,t,n)}else if(r instanceof HTMLStyleElement&&r.innerHTML.length>0){const t=[],o=[...Array.from(c.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];!1!==i&&"before"===i?.mode&&o.forEach((e=>t.push(e))),s instanceof HTMLStyleElement&&s.innerHTML.length>0&&!1===t.includes(s)&&t.push(s),r instanceof HTMLStyleElement&&r.innerHTML.length>0&&!1===t.includes(r)&&t.push(r),((e,t,n,o)=>{const i=document.createElement("style");i.innerHTML=v,n.unshift(i);const l=t.firstChild;n.forEach((e=>{l instanceof HTMLElement?t.insertBefore(e,l):t.appendChild(e)})),e.style.display=o})(e,c,t,n)}else e.style.display=n})(e,t,n):S(e,t,n)}),25)},E=(e,t)=>{const n=`${e.style.display}`;e.style.display="none",S(e,t,n)};export{c as a,y as g,s as p,E as s};