@public-ui/sample-react 3.0.0-rc.1 → 3.0.0-rc.3

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 (259) hide show
  1. package/dist/1055.js +2 -0
  2. package/dist/1068.js +2 -0
  3. package/dist/1219.js +2 -0
  4. package/dist/136.js +2 -0
  5. package/dist/1416.js +2 -0
  6. package/dist/1657.js +2 -0
  7. package/dist/1676.js +2 -0
  8. package/dist/{4288.js → 1714.js} +2 -2
  9. package/dist/1718.js +2 -0
  10. package/dist/1744.js +2 -0
  11. package/dist/1791.js +1 -1
  12. package/dist/2078.js +2 -0
  13. package/dist/2115.js +2 -0
  14. package/dist/2195.js +2 -0
  15. package/dist/3021.js +2 -0
  16. package/dist/3027.js +2 -0
  17. package/dist/3186.js +2 -0
  18. package/dist/364.js +2 -0
  19. package/dist/{2450.js → 3758.js} +2 -2
  20. package/dist/3836.js +2 -0
  21. package/dist/3872.js +2 -0
  22. package/dist/3879.js +2 -0
  23. package/dist/3949.js +2 -0
  24. package/dist/4211.js +2 -0
  25. package/dist/4350.js +2 -0
  26. package/dist/4390.js +2 -0
  27. package/dist/4566.js +2 -0
  28. package/dist/4662.js +2 -0
  29. package/dist/4928.js +2 -0
  30. package/dist/5000.js +2 -0
  31. package/dist/5151.js +2 -0
  32. package/dist/5171.js +2 -0
  33. package/dist/5792.js +2 -0
  34. package/dist/5876.js +2 -0
  35. package/dist/597.js +2 -0
  36. package/dist/6018.js +2 -0
  37. package/dist/6203.js +2 -0
  38. package/dist/6420.js +2 -0
  39. package/dist/6451.js +2 -0
  40. package/dist/6480.js +2 -0
  41. package/dist/6577.js +2 -0
  42. package/dist/6983.js +2 -0
  43. package/dist/7084.js +2 -0
  44. package/dist/7225.js +2 -0
  45. package/dist/7267.js +2 -0
  46. package/dist/7958.js +2 -0
  47. package/dist/7997.js +2 -0
  48. package/dist/8069.js +2 -0
  49. package/dist/8177.js +1 -1
  50. package/dist/8212.js +2 -0
  51. package/dist/8243.js +2 -0
  52. package/dist/8283.js +2 -0
  53. package/dist/8478.js +2 -0
  54. package/dist/851.js +2 -0
  55. package/dist/8573.js +2 -0
  56. package/dist/8728.js +2 -0
  57. package/dist/8808.js +2 -0
  58. package/dist/8999.js +2 -0
  59. package/dist/9068.js +2 -0
  60. package/dist/9130.js +2 -0
  61. package/dist/9162.js +2 -0
  62. package/dist/9219.js +2 -0
  63. package/dist/9423.js +2 -0
  64. package/dist/9430.js +2 -0
  65. package/dist/9929.js +2 -0
  66. package/dist/993.js +2 -0
  67. package/dist/index.html +0 -1
  68. package/dist/main.css +1 -1
  69. package/dist/main.js +1 -1
  70. package/dist/main.js.LICENSE.txt +2 -2
  71. package/package.json +19 -19
  72. package/public/index.html +0 -1
  73. package/src/App.tsx +1 -3
  74. package/src/components/drawer/basic.tsx +2 -20
  75. package/src/components/drawer/controlled.tsx +0 -8
  76. package/src/components/form/error-list.tsx +38 -24
  77. package/src/components/handout/basic.tsx +18 -23
  78. package/src/components/input-color/partials/cases.tsx +4 -2
  79. package/src/components/input-date/partials/cases.tsx +6 -3
  80. package/src/components/input-date/partials/minMax.tsx +3 -3
  81. package/src/components/input-date/partials/variants.tsx +1 -1
  82. package/src/components/input-date/show-hide-msg.tsx +0 -1
  83. package/src/components/input-email/partials/cases.tsx +6 -3
  84. package/src/components/input-file/partials/cases.tsx +6 -3
  85. package/src/components/input-password/partials/cases.tsx +8 -5
  86. package/src/components/input-range/partials/cases.tsx +6 -3
  87. package/src/components/input-text/partials/cases.tsx +1 -1
  88. package/src/components/input-text/smart-button.tsx +14 -1
  89. package/src/components/input-text/text-formatter.tsx +1 -2
  90. package/src/components/link/access-key.tsx +1 -3
  91. package/src/components/nav/basic.tsx +8 -2
  92. package/src/components/nav/horizontal.tsx +2 -2
  93. package/src/components/pagination/basic.tsx +1 -1
  94. package/src/components/select/partials/cases.tsx +16 -1
  95. package/src/components/single-select/partials/cases.tsx +5 -4
  96. package/src/components/single-select/partials/variants.tsx +5 -5
  97. package/src/components/split-button/basic.tsx +2 -2
  98. package/src/components/table/column-alignment.tsx +12 -12
  99. package/src/components/table/complex-headers.tsx +3 -3
  100. package/src/components/table/horizontal-scrollbar.tsx +12 -6
  101. package/src/components/table/multi-sort.tsx +4 -4
  102. package/src/components/table/pagination-position.tsx +23 -5
  103. package/src/components/table/render-cell.tsx +4 -4
  104. package/src/components/table/sort-data.tsx +14 -16
  105. package/src/components/table/stateful-with-selection.tsx +5 -5
  106. package/src/components/table/stateful-with-single-selection.tsx +5 -5
  107. package/src/components/table/stateless-with-selection.tsx +6 -6
  108. package/src/components/table/stateless-with-single-selection.tsx +6 -6
  109. package/src/components/table/with-footer.tsx +3 -3
  110. package/src/components/table/with-pagination.tsx +3 -3
  111. package/src/components/textarea/partials/cases.tsx +9 -4
  112. package/src/react.main.tsx +4 -9
  113. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
  114. package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
  115. package/src/shares/routes.ts +0 -6
  116. package/src/shares/theme.ts +4 -8
  117. package/dist/1073.js +0 -2
  118. package/dist/1325.js +0 -2
  119. package/dist/1392.js +0 -2
  120. package/dist/1604.js +0 -2
  121. package/dist/175.js +0 -2
  122. package/dist/178.js +0 -2
  123. package/dist/2220.js +0 -2
  124. package/dist/2444.js +0 -2
  125. package/dist/2671.js +0 -2
  126. package/dist/2986.js +0 -2
  127. package/dist/3030.js +0 -2
  128. package/dist/3270.js +0 -2
  129. package/dist/3340.js +0 -2
  130. package/dist/3392.js +0 -2
  131. package/dist/3529.js +0 -2
  132. package/dist/3756.js +0 -2
  133. package/dist/3960.js +0 -2
  134. package/dist/399.js +0 -2
  135. package/dist/4145.js +0 -2
  136. package/dist/4539.js +0 -2
  137. package/dist/4563.js +0 -2
  138. package/dist/4571.js +0 -2
  139. package/dist/5260.js +0 -2
  140. package/dist/5301.js +0 -2
  141. package/dist/5333.js +0 -2
  142. package/dist/5523.js +0 -2
  143. package/dist/5551.js +0 -2
  144. package/dist/5575.js +0 -2
  145. package/dist/5665.js +0 -2
  146. package/dist/572.js +0 -2
  147. package/dist/5873.js +0 -2
  148. package/dist/5879.js +0 -2
  149. package/dist/5964.js +0 -2
  150. package/dist/6005.js +0 -2
  151. package/dist/618.js +0 -2
  152. package/dist/623.js +0 -2
  153. package/dist/643.js +0 -2
  154. package/dist/6610.js +0 -2
  155. package/dist/6618.js +0 -2
  156. package/dist/6711.js +0 -2
  157. package/dist/6740.js +0 -2
  158. package/dist/6786.js +0 -2
  159. package/dist/685.js +0 -2
  160. package/dist/6950.js +0 -2
  161. package/dist/7055.js +0 -2
  162. package/dist/7106.js +0 -2
  163. package/dist/7141.js +0 -2
  164. package/dist/7146.js +0 -2
  165. package/dist/7287.js +0 -2
  166. package/dist/7599.js +0 -2
  167. package/dist/7648.js +0 -2
  168. package/dist/7668.js +0 -2
  169. package/dist/7855.js +0 -2
  170. package/dist/8165.js +0 -2
  171. package/dist/8306.js +0 -2
  172. package/dist/8543.js +0 -2
  173. package/dist/866.js +0 -2
  174. package/dist/8859.js +0 -2
  175. package/dist/904.js +0 -2
  176. package/dist/9148.js +0 -2
  177. package/dist/9522.js +0 -2
  178. package/dist/9625.js +0 -2
  179. package/dist/971.js +0 -2
  180. package/dist/971.js.LICENSE.txt +0 -3
  181. package/dist/9712.js +0 -2
  182. package/dist/9712.js.LICENSE.txt +0 -3
  183. package/dist/976.js +0 -2
  184. package/dist/976.js.LICENSE.txt +0 -3
  185. package/dist/982.js +0 -2
  186. package/dist/982.js.LICENSE.txt +0 -3
  187. package/dist/986.js +0 -2
  188. package/dist/986.js.LICENSE.txt +0 -3
  189. package/src/components/button-group/basic.tsx +0 -34
  190. package/src/components/button-group/routes.ts +0 -8
  191. package/src/components/indented-text/basic.tsx +0 -37
  192. package/src/components/indented-text/routes.ts +0 -8
  193. package/src/components/link-group/basic.tsx +0 -23
  194. package/src/components/link-group/horizontal.tsx +0 -23
  195. package/src/components/link-group/routes.ts +0 -10
  196. /package/dist/{1073.js.LICENSE.txt → 1055.js.LICENSE.txt} +0 -0
  197. /package/dist/{1325.js.LICENSE.txt → 1068.js.LICENSE.txt} +0 -0
  198. /package/dist/{1392.js.LICENSE.txt → 1219.js.LICENSE.txt} +0 -0
  199. /package/dist/{1604.js.LICENSE.txt → 136.js.LICENSE.txt} +0 -0
  200. /package/dist/{175.js.LICENSE.txt → 1416.js.LICENSE.txt} +0 -0
  201. /package/dist/{178.js.LICENSE.txt → 1657.js.LICENSE.txt} +0 -0
  202. /package/dist/{2220.js.LICENSE.txt → 1676.js.LICENSE.txt} +0 -0
  203. /package/dist/{2444.js.LICENSE.txt → 1714.js.LICENSE.txt} +0 -0
  204. /package/dist/{2450.js.LICENSE.txt → 1718.js.LICENSE.txt} +0 -0
  205. /package/dist/{2671.js.LICENSE.txt → 1744.js.LICENSE.txt} +0 -0
  206. /package/dist/{2986.js.LICENSE.txt → 2078.js.LICENSE.txt} +0 -0
  207. /package/dist/{3030.js.LICENSE.txt → 2115.js.LICENSE.txt} +0 -0
  208. /package/dist/{3270.js.LICENSE.txt → 2195.js.LICENSE.txt} +0 -0
  209. /package/dist/{3340.js.LICENSE.txt → 3021.js.LICENSE.txt} +0 -0
  210. /package/dist/{3392.js.LICENSE.txt → 3027.js.LICENSE.txt} +0 -0
  211. /package/dist/{3529.js.LICENSE.txt → 3186.js.LICENSE.txt} +0 -0
  212. /package/dist/{3756.js.LICENSE.txt → 364.js.LICENSE.txt} +0 -0
  213. /package/dist/{3960.js.LICENSE.txt → 3758.js.LICENSE.txt} +0 -0
  214. /package/dist/{399.js.LICENSE.txt → 3836.js.LICENSE.txt} +0 -0
  215. /package/dist/{4145.js.LICENSE.txt → 3872.js.LICENSE.txt} +0 -0
  216. /package/dist/{4288.js.LICENSE.txt → 3879.js.LICENSE.txt} +0 -0
  217. /package/dist/{4539.js.LICENSE.txt → 3949.js.LICENSE.txt} +0 -0
  218. /package/dist/{4563.js.LICENSE.txt → 4211.js.LICENSE.txt} +0 -0
  219. /package/dist/{4571.js.LICENSE.txt → 4350.js.LICENSE.txt} +0 -0
  220. /package/dist/{5260.js.LICENSE.txt → 4390.js.LICENSE.txt} +0 -0
  221. /package/dist/{5301.js.LICENSE.txt → 4566.js.LICENSE.txt} +0 -0
  222. /package/dist/{5333.js.LICENSE.txt → 4662.js.LICENSE.txt} +0 -0
  223. /package/dist/{5523.js.LICENSE.txt → 4928.js.LICENSE.txt} +0 -0
  224. /package/dist/{5551.js.LICENSE.txt → 5000.js.LICENSE.txt} +0 -0
  225. /package/dist/{5575.js.LICENSE.txt → 5151.js.LICENSE.txt} +0 -0
  226. /package/dist/{5665.js.LICENSE.txt → 5171.js.LICENSE.txt} +0 -0
  227. /package/dist/{572.js.LICENSE.txt → 5792.js.LICENSE.txt} +0 -0
  228. /package/dist/{5873.js.LICENSE.txt → 5876.js.LICENSE.txt} +0 -0
  229. /package/dist/{5879.js.LICENSE.txt → 597.js.LICENSE.txt} +0 -0
  230. /package/dist/{5964.js.LICENSE.txt → 6018.js.LICENSE.txt} +0 -0
  231. /package/dist/{6005.js.LICENSE.txt → 6203.js.LICENSE.txt} +0 -0
  232. /package/dist/{618.js.LICENSE.txt → 6420.js.LICENSE.txt} +0 -0
  233. /package/dist/{623.js.LICENSE.txt → 6451.js.LICENSE.txt} +0 -0
  234. /package/dist/{643.js.LICENSE.txt → 6480.js.LICENSE.txt} +0 -0
  235. /package/dist/{6610.js.LICENSE.txt → 6577.js.LICENSE.txt} +0 -0
  236. /package/dist/{6618.js.LICENSE.txt → 6983.js.LICENSE.txt} +0 -0
  237. /package/dist/{6711.js.LICENSE.txt → 7084.js.LICENSE.txt} +0 -0
  238. /package/dist/{6740.js.LICENSE.txt → 7225.js.LICENSE.txt} +0 -0
  239. /package/dist/{6786.js.LICENSE.txt → 7267.js.LICENSE.txt} +0 -0
  240. /package/dist/{685.js.LICENSE.txt → 7958.js.LICENSE.txt} +0 -0
  241. /package/dist/{6950.js.LICENSE.txt → 7997.js.LICENSE.txt} +0 -0
  242. /package/dist/{7055.js.LICENSE.txt → 8069.js.LICENSE.txt} +0 -0
  243. /package/dist/{7106.js.LICENSE.txt → 8212.js.LICENSE.txt} +0 -0
  244. /package/dist/{7141.js.LICENSE.txt → 8243.js.LICENSE.txt} +0 -0
  245. /package/dist/{7146.js.LICENSE.txt → 8283.js.LICENSE.txt} +0 -0
  246. /package/dist/{7287.js.LICENSE.txt → 8478.js.LICENSE.txt} +0 -0
  247. /package/dist/{7599.js.LICENSE.txt → 851.js.LICENSE.txt} +0 -0
  248. /package/dist/{7648.js.LICENSE.txt → 8573.js.LICENSE.txt} +0 -0
  249. /package/dist/{7668.js.LICENSE.txt → 8728.js.LICENSE.txt} +0 -0
  250. /package/dist/{7855.js.LICENSE.txt → 8808.js.LICENSE.txt} +0 -0
  251. /package/dist/{8165.js.LICENSE.txt → 8999.js.LICENSE.txt} +0 -0
  252. /package/dist/{8306.js.LICENSE.txt → 9068.js.LICENSE.txt} +0 -0
  253. /package/dist/{8543.js.LICENSE.txt → 9130.js.LICENSE.txt} +0 -0
  254. /package/dist/{866.js.LICENSE.txt → 9162.js.LICENSE.txt} +0 -0
  255. /package/dist/{8859.js.LICENSE.txt → 9219.js.LICENSE.txt} +0 -0
  256. /package/dist/{904.js.LICENSE.txt → 9423.js.LICENSE.txt} +0 -0
  257. /package/dist/{9148.js.LICENSE.txt → 9430.js.LICENSE.txt} +0 -0
  258. /package/dist/{9522.js.LICENSE.txt → 9929.js.LICENSE.txt} +0 -0
  259. /package/dist/{9625.js.LICENSE.txt → 993.js.LICENSE.txt} +0 -0
package/dist/9712.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 9712.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[9712],{5539:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(3651),o=n(9510),a=n(8474),l=n(3804);const s=(t,e)=>{const n=t;"object"==typeof n&&null!==n&&((0,l.i)(n.right,1)&&(n.right={icon:n.right}),(0,l.i)(n.left,1)&&(n.left={icon:n.left}),e.set("_icons",n))};class r extends i.I{constructor(t,e,n){super(t,e,n),this.component=t}validateIcons(t){(0,a.o)(t,(()=>{try{t=(0,a.p)(t)}catch(t){}(0,a.w)(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&((0,l.i)(t.left,1)||(0,o.i)(t.left)||(0,l.i)(t.right,1)||(0,o.i)(t.right))),new Set(["KoliBriHorizontalIcon"]),t,{hooks:{beforePatch:s},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}},9510:(t,e,n)=>{n.d(e,{i:()=>l,v:()=>s});var i=n(8474),o=n(3804);const a=(t,e,n)=>{(0,o.b)(n)?t[e]=n:(0,o.i)(n,1)&&(t[e]={icon:n})},l=t=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,o.a)(t.style))&&(void 0===t.label||(0,o.i)(t.label))&&(0,o.i)(t.icon,1),s=(t,e,n={})=>{(0,i.o)(e,(()=>{var s;try{e=(0,i.p)(e)}catch(t){}(0,i.w)(t,"_icons",(t=>{const e="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||e||(0,o.i)(t,1)||"object"==typeof t&&null!==t&&((0,o.i)(t.left,1)||l(t.left)||(0,o.i)(t.right,1)||l(t.right)||(0,o.i)(t.top,1)||l(t.top)||(0,o.i)(t.bottom,1)||l(t.bottom))}),new Set(["KoliBriIcon"]),e,Object.assign(Object.assign({},n),{defaultValue:{},hooks:{afterPatch:null===(s=n.hooks)||void 0===s?void 0:s.afterPatch,beforePatch:(t,e,i,l)=>{var s,r;"function"==typeof(null===(s=n.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(r=n.hooks)||void 0===r||r.beforePatch(t,e,i,l)),(t=>{var e,n,i;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icons")){const e=null===(n=t.nextState)||void 0===n?void 0:n.get("_icons");null===(i=t.nextState)||void 0===i||i.set("_icons",(t=>{let e={};return(0,o.i)(t,1)?e={left:{icon:t}}:"object"==typeof t&&null!==t&&(a(e,"top",t.top),a(e,"right",t.right),a(e,"bottom",t.bottom),a(e,"left",t.left)),e})(e))}})(i)}}}))}))}},9712:(t,e,n)=>{n.r(e),n.d(e,{kol_input_color:()=>v});var i=n(6916),o=n(8395),a=n(3651),l=n(5539),s=n(8975),r=n(8474),d=n(3179),c=n(4293),h=n(5475),u=(t,e,n)=>new Promise(((i,o)=>{var a=t=>{try{s(n.next(t))}catch(t){o(t)}},l=t=>{try{s(n.throw(t))}catch(t){o(t)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(a,l);s((n=n.apply(t,e)).next())}));const p=["on","off"];class b extends l.I{constructor(t,e,n){super(t,e,n),this.component=t}validateAutoComplete(t){(0,r.w)(this.component,"_autoComplete",(t=>"string"==typeof t&&p.includes(t)),new Set(p),t)}validateSuggestions(t){(0,s.v)(this.component,t)}validateValue(t){(0,r.i)(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const v=class{getValue(){return u(this,null,(function*(){var t;return null===(t=this.inputRef)||void 0===t?void 0:t.value}))}focus(){return u(this,null,(function*(){yield this.kolFocus()}))}kolFocus(){return u(this,null,(function*(){var t;null===(t=this.inputRef)||void 0===t||t.focus()}))}render(){const{ariaDescribedBy:t}=(0,a.g)(this.state),e=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,n=(0,h.s)(this.state._label);return(0,i.h)(i.H,{key:"cc4ee39787658f9d5cfc43c0e08be817dc1d96b7",class:"kol-input-color"},(0,i.h)(d.i,{key:"535e254a7e240fb76ff0a637620d815b851257d2",class:{color:!0,"hide-label":!!this.state._hideLabel},_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_disabled:this.state._disabled,_msg:this.state._msg,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_hideError:this.state._hideError,_id:this.state._id,_label:this.state._label,_shortKey:this.state._shortKey,_suggestions:this.state._suggestions,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.inputRef)||void 0===t?void 0:t.focus()},role:"presentation"},(0,i.h)("span",{key:"628bfe9f200332037df20093b54074fc12fb3209",slot:"label"},n?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?(0,i.h)(i.F,null,(0,i.h)(c.I,{badgeText:(0,h.b)(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",(0,i.h)("span",{class:"access-key-hint","aria-hidden":"true"},(0,h.b)(this.state._accessKey,this.state._shortKey))):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{key:"6de7c5b0a28d8626345e4c2721c77f1b96cf4a24",slot:"input"},(0,i.h)("input",Object.assign({key:"87fdd010eb5a1d335fa2105846630ce4f18fa4ad",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:e?`${this.state._id}-list`:void 0,name:this.state._name,slot:"input",type:"color",value:this.state._value},this.controller.onFacade,{onFocus:t=>{this.controller.onFacade.onFocus(t),this.inputHasFocus=!0},onBlur:t=>{this.controller.onFacade.onBlur(t),this.inputHasFocus=!1}})))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.inputRef=t},this._accessKey=void 0,this._alert=void 0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._shortKey=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hideError:!1,_id:`id-${(0,o.n)()}`,_label:"",_suggestions:[]},this.inputHasFocus=!1,this.controller=new b(this,"color",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad()}static get delegatesFocus(){return!0}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n /* input[type='checkbox'], */\n /* input[type='radio'], */\n /* input[type='range'], */\n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n select,\n select[multiple] option,\n textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n width: 100%;\n }\n /* needed hack for vertical alignment */\n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n /* needed hack for vertical alignment */\n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n .input {\n background-color: white;\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n }\n input:not([type=checkbox], [type=radio]),\n select:not([multiple], [size]) {\n height: 2.75em;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n display: flex;\n align-items: center;\n }\n .input > .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input.required .input-tooltip .kol-span__label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n div.input {\n cursor: pointer;\n }\n}"}},8975:(t,e,n)=>{n.d(e,{v:()=>o});var i=n(8474);const o=(t,e)=>{(0,i.g)(t,"_suggestions",(t=>"string"==typeof t||"number"==typeof t),e,void 0,{hooks:{afterPatch:t=>{Array.isArray(t)&&t.length&&(0,i.a)("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})}}}]);
@@ -1,3 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
package/dist/976.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 976.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[976],{9616:(e,n,t)=>{t.d(n,{K:()=>r});var i=t(6948),o=t(6916),l=t(3928),a=t(3179),s=t(6581);const r=(e,n)=>{const{id:t,class:r,label:c,level:d=1,disabled:h,open:p,onClick:u,HeadingProps:b={},HeadingButtonProps:f={},ContentProps:v={}}=e,g=(0,i._)(e,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),m=p?"remove":"add";return(0,o.h)("div",Object.assign({id:t,class:(0,l.c)("collapsible",{"collapsible--disabled":!0===h,"collapsible--open":!0===p},r)},g),(0,o.h)(s.K,{ref:null==b?void 0:b.ref,level:d,class:(0,l.c)("collapsible__heading",null==b?void 0:b.class)},(0,o.h)(a.a,{class:(0,l.c)("collapsible__heading-button",null==f?void 0:f.class),ref:null==f?void 0:f.ref,slot:"expert",_ariaControls:`${t}-control`,_ariaExpanded:p,_disabled:h,_icons:(null==f?void 0:f._icons)||`codicon codicon-${m}`,_label:c,_on:{onClick:u}})),(0,o.h)("div",{class:(0,l.c)("collapsible__wrapper",null==v?void 0:v.wrapperClass)},(0,o.h)("div",{class:(0,l.c)("collapsible__wrapper-animation",null==v?void 0:v.animationClass)},(0,o.h)("div",{"aria-hidden":!1===p?"true":void 0,class:(0,l.c)("collapsible__content",null==v?void 0:v.class),id:`${t}-control`},n))))}},6581:(e,n,t)=>{t.d(n,{K:()=>d});var i=t(6948),o=t(6916),l=t(3928);const a=1;function s(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const r=(e,n)=>{var{class:t,level:r=a,variant:c}=e,d=(0,i._)(e,["class","level","variant"]);const h=s(r),p=c||h;return(0,o.h)(h,Object.assign({class:(0,l.c)("kol-headline",`kol-headline--${p}`,t)},d),n)},c=(e,n)=>{var{class:t,level:r=a}=e,c=(0,i._)(e,["class","level"]);const d=function(e){return 1===e?"span":s(e)}(r+1);return(0,o.h)(d,Object.assign({class:(0,l.c)("kol-headline kol-headline--group kol-headline--secondary",t)},c),n)},d=(e,n)=>{var{secondaryHeadline:t,level:s=a,class:d,HeadingGroupProps:h={},SecondaryHeadlineProps:p={}}=e,u=(0,i._)(e,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const b=Object.assign({level:s},u);if(!t)return(0,o.h)(r,Object.assign({class:(0,l.c)(d,"kol-headline--single")},b),n);const{class:f}=h,v=(0,i._)(h,["class"]),g=Object.assign({class:(0,l.c)("kol-heading-group",f)},v);return(0,o.h)("hgroup",Object.assign({},g),(0,o.h)(r,Object.assign({class:(0,l.c)(d,"kol-headline--group","kol-headline--primary")},b),n),(0,o.h)(c,Object.assign({level:s},p),t))}},3928:(e,n,t)=>{function i(e){var n,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(t=i(e[n]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,n,t=0,o="",l=arguments.length;t<l;t++)(e=arguments[t])&&(n=i(e))&&(o&&(o+=" "),o+=n);return o}t.d(n,{c:()=>o})},8395:(e,n,t)=>{t.d(n,{i:()=>s,n:()=>c,r:()=>r});var i=t(6916),o=t(5475),l=t(4192);const a=()=>{let e=(0,l.d)().KoliBri;return void 0===e&&(e={},Object.defineProperty((0,l.d)(),"KoliBri",{value:e,writable:!1})),e},s=()=>{(()=>{const e=(0,l.g)().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const n=e.getAttribute("content");"string"==typeof n&&((0,l.s)(n.includes("dev-mode=true")),(0,l.b)(n.includes("experimental-mode=true")),(0,l.c)(n.includes("color-contrast-analysis=true")))}})(),l.L.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${i.E.kolibriVersion}\n\t`,{forceLog:!0})},r=()=>{!0!==a().adviceShown&&(Object.defineProperty(a(),"adviceShown",{get:function(){return!0}}),l.L.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let c=()=>Math.floor(16777215*Math.random()).toString(16);"test"===o.p&&(c=()=>"nonce")},3758:(e,n,t)=>{t.d(n,{v:()=>o});var i=t(8474);const o=(e,n)=>{(0,i.b)(e,"_disabled",n,{hooks:{afterPatch:e=>{!0===e&&(0,i.c)()}}})}},9671:(e,n,t)=>{function i(e){e.stopImmediatePropagation(),e.stopPropagation()}function o(e,n,t){n&&function(e,n,t){const i=e.dispatchEvent(function(e,n){return new CustomEvent(`kol-${e}`,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}(n,t))}(n,e,t)}function l(e){e.preventDefault(),i(e)}t.d(n,{p:()=>l,s:()=>i,t:()=>o})},976:(e,n,t)=>{t.r(n),t.d(n,{kol_details:()=>u});var i=t(6916),o=t(8395),l=t(4808),a=t(9671),s=t(9616),r=t(8474),c=t(3758),d=t(6861),h=t(1168),p=(e,n,t)=>new Promise(((i,o)=>{var l=e=>{try{s(t.next(e))}catch(e){o(e)}},a=e=>{try{s(t.throw(e))}catch(e){o(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(l,a);s((t=t.apply(e,n)).next())}));const u=class{constructor(e){(0,i.r)(this,e),this.nonce=(0,o.n)(),this.catchRef=e=>{this.buttonWcRef=e},this.handleOnClick=e=>{this._open=!this._open,clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var n,t;(0,a.t)("toggle",this.host,this._open),null===(t=null===(n=this.state._on)||void 0===n?void 0:n.onToggle)||void 0===t||t.call(n,e,Boolean(this._open))}),25)},this._disabled=!1,this._label=void 0,this._level=1,this._on=void 0,this._open=!1,this.state={_label:"",_level:1,_on:{}}}focus(){return p(this,null,(function*(){yield this.kolFocus()}))}kolFocus(){return p(this,null,(function*(){var e;yield null===(e=this.buttonWcRef)||void 0===e?void 0:e.kolFocus()}))}render(){const{_open:e,_label:n,_disabled:t}=this.state,o="kol-details",l={id:this.nonce,label:n,open:e,disabled:t,level:1,onClick:this.handleOnClick,class:o,HeadingProps:{class:`${o}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${o}__heading-button`,_icons:"codicon codicon-chevron-right"},ContentProps:{class:`${o}__content indented-text`,wrapperClass:`${o}__wrapper`,animationClass:`${o}__wrapper-animation`}};return(0,i.h)(s.K,Object.assign({key:"7fb8c20c5e69011a0eb22ff59d813475d42c2e82"},l),(0,i.h)("slot",{key:"a274e0d3cabf99b220277ef91366d291aaa91d88"}))}validateDisabled(e){(0,c.v)(this,e)}validateLabel(e){(0,d.v)(this,e,{required:!0})}validateLevel(e){(0,l.w)(this,e)}validateOn(e){var n;n=e,(0,r.w)(this,"_on",(e=>"object"==typeof e&&null!==e),new Set(["DetailsCallbacksPropType {Events.onToggle}"]),n)}validateOpen(e){(0,h.v)(this,e)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open)}get host(){return(0,i.g)(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};u.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\n@layer kol-component {\n .collapsible {\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\n /*\n * Inside a button, the caption text is always centered.\n * So we have to align the text to the left.\n */\n }\n .collapsible__wrapper {\n display: grid;\n grid-template-rows: 0fr;\n overflow: hidden;\n transition: grid-template-rows 0.3s;\n }\n .collapsible__wrapper-animation {\n min-height: 0;\n transition: visibility 0.3s;\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\n visibility: hidden;\n }\n .collapsible--open .collapsible__wrapper {\n grid-template-rows: 1fr;\n }\n .collapsible--open .collapsible__wrapper-animation {\n visibility: visible;\n }\n @media (prefers-reduced-motion) {\n .collapsible__wrapper-animation, .collapsible__wrapper {\n transition-duration: 0s;\n }\n }\n @media print {\n :not(.collapsible--open) .collapsible__wrapper-animation {\n display: none;\n }\n }\n .collapsible__heading-button button .kol-span {\n justify-items: start;\n }\n}\n@layer kol-component {\n .kol-details {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-details__heading-button {\n display: flex;\n }\n .kol-details__heading-button .kol-button {\n min-height: auto;\n }\n .kol-details__heading-button .kol-button .kol-span__label {\n border-bottom-color: grey;\n border-bottom-style: solid;\n }\n .collapsible--open .kol-details__heading-button .kol-icon::part(icon) {\n transform: rotate(90deg);\n }\n}"}},6861:(e,n,t)=>{t.d(n,{a:()=>h,b:()=>s,c:()=>r,h:()=>o,v:()=>d});var i=t(8474);const o=[0,1,2,3,4,5,6],l=/[a-zA-Z0-9äöüÄÖÜß]/g,a=/^\d+$/;function s(e,n=1){return function(e){var n;return"string"==typeof e&&(null===(n=e.match(l))||void 0===n?void 0:n.length)||0}(e)>=n}function r(e){return a.test(e)}const c=new Set(["string"]),d=(e,n,t={})=>{(0,i.w)(e,"_label",(e=>"string"==typeof e),c,n,function(e){var n;return Object.assign(Object.assign({},e),{hooks:{afterPatch:(n,t,o,l)=>{var a,c;"function"==typeof(null===(a=e.hooks)||void 0===a?void 0:a.afterPatch)&&(null===(c=e.hooks)||void 0===c||c.afterPatch(n,t,o,l)),"string"==typeof n&&!1===s(n,3)&&!1===r(n)&&(0,i.a)(`The heading or label ("${n}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof n&&n.length>80&&(0,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(n=e.hooks)||void 0===n?void 0:n.beforePatch}})}(t))},h=d},1168:(e,n,t)=>{t.d(n,{v:()=>o});var i=t(8474);const o=(e,n,t)=>{(0,i.b)(e,"_open",n,t)}},5475:(e,n,t)=>{t.d(n,{b:()=>a,h:()=>o,p:()=>i,s:()=>l});let i="development";try{i="production"}catch(e){i="production"}const o=(e,n,t)=>{if(e&&n&&"string"==typeof t){const i=e.querySelector(`[slot="${t}"]`);i&&n.appendChild(i)}},l=e=>""===e,a=(e,n)=>e||n||""},6948:(e,n,t)=>{function i(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}t.d(n,{_:()=>i}),"function"==typeof SuppressedError&&SuppressedError},4808:(e,n,t)=>{t.d(n,{w:()=>l});var i=t(6861),o=t(8474);const l=(e,n)=>{(0,o.w)(e,"_level",(e=>"number"==typeof e&&i.h.includes(e)),new Set([`Number {${i.h.join(", ")}`]),n,{defaultValue:1,required:!0})}}}]);
@@ -1,3 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
package/dist/982.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 982.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[982],{5539:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(3651),a=n(9510),o=n(8474),l=n(3804);const s=(t,e)=>{const n=t;"object"==typeof n&&null!==n&&((0,l.i)(n.right,1)&&(n.right={icon:n.right}),(0,l.i)(n.left,1)&&(n.left={icon:n.left}),e.set("_icons",n))};class r extends i.I{constructor(t,e,n){super(t,e,n),this.component=t}validateIcons(t){(0,o.o)(t,(()=>{try{t=(0,o.p)(t)}catch(t){}(0,o.w)(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&((0,l.i)(t.left,1)||(0,a.i)(t.left)||(0,l.i)(t.right,1)||(0,a.i)(t.right))),new Set(["KoliBriHorizontalIcon"]),t,{hooks:{beforePatch:s},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}},843:(t,e,n)=>{n.d(e,{v:()=>a});var i=n(8474);const a=(t,e,n)=>{(0,i.b)(t,"_hasCounter",e,n)}},9510:(t,e,n)=>{n.d(e,{i:()=>l,v:()=>s});var i=n(8474),a=n(3804);const o=(t,e,n)=>{(0,a.b)(n)?t[e]=n:(0,a.i)(n,1)&&(t[e]={icon:n})},l=t=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,a.a)(t.style))&&(void 0===t.label||(0,a.i)(t.label))&&(0,a.i)(t.icon,1),s=(t,e,n={})=>{(0,i.o)(e,(()=>{var s;try{e=(0,i.p)(e)}catch(t){}(0,i.w)(t,"_icons",(t=>{const e="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||e||(0,a.i)(t,1)||"object"==typeof t&&null!==t&&((0,a.i)(t.left,1)||l(t.left)||(0,a.i)(t.right,1)||l(t.right)||(0,a.i)(t.top,1)||l(t.top)||(0,a.i)(t.bottom,1)||l(t.bottom))}),new Set(["KoliBriIcon"]),e,Object.assign(Object.assign({},n),{defaultValue:{},hooks:{afterPatch:null===(s=n.hooks)||void 0===s?void 0:s.afterPatch,beforePatch:(t,e,i,l)=>{var s,r;"function"==typeof(null===(s=n.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(r=n.hooks)||void 0===r||r.beforePatch(t,e,i,l)),(t=>{var e,n,i;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icons")){const e=null===(n=t.nextState)||void 0===n?void 0:n.get("_icons");null===(i=t.nextState)||void 0===i||i.set("_icons",(t=>{let e={};return(0,a.i)(t,1)?e={left:{icon:t}}:"object"==typeof t&&null!==t&&(o(e,"top",t.top),o(e,"right",t.right),o(e,"bottom",t.bottom),o(e,"left",t.left)),e})(e))}})(i)}}}))}))}},982:(t,e,n)=>{n.r(e),n.d(e,{kol_textarea:()=>f});var i=n(6916),a=n(8395),o=n(3651),l=n(5539),s=n(843),r=n(8474),h=n(9352),d=n(7369),c=n(3179),u=n(4293),p=n(5475),v=(t,e,n)=>new Promise(((i,a)=>{var o=t=>{try{s(n.next(t))}catch(t){a(t)}},l=t=>{try{s(n.throw(t))}catch(t){a(t)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,l);s((n=n.apply(t,e)).next())}));const _=["vertical","none"];class b extends l.I{constructor(t,e,n){super(t,e,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&this.component._value.length>0&&(this.component.state._currentLength=this.component._value.length)},this.component=t}validateHasCounter(t){(0,s.v)(this.component,t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validateMaxLength(t){(0,r.k)(this.component,"_maxLength",t,{hooks:{afterPatch:this.afterSyncCharCounter},min:0})}validatePlaceholder(t){(0,r.i)(this.component,"_placeholder",t)}validateReadOnly(t){(0,r.b)(this.component,"_readOnly",t)}validateResize(t){(0,r.w)(this.component,"_resize",(t=>"string"==typeof t&&_.includes(t)),new Set(`String {${_.join(", ")}`),t,{defaultValue:"vertical"})}validateRequired(t){(0,r.b)(this.component,"_required",t)}validateRows(t){(0,h.v)(this.component,t)}validateSpellCheck(t){(0,d.v)(this.component,t)}validateValue(t){(0,r.i)(this.component,"_value",t,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateResize(this.component._resize),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateSpellCheck(this.component._spellCheck),this.validateValue(this.component._value)}}const m=t=>{t.style.overflow="hidden";const e=t.rows,n=t.clientHeight/e;t.rows=1;const i=Math.round(t.scrollHeight/n);return t.rows=e,i},f=class{getValue(){return v(this,null,(function*(){var t;return null===(t=this.textareaRef)||void 0===t?void 0:t.value}))}focus(){return v(this,null,(function*(){yield this.kolFocus()}))}kolFocus(){return v(this,null,(function*(){var t;null===(t=this.textareaRef)||void 0===t||t.focus()}))}render(){const{ariaDescribedBy:t}=(0,o.g)(this.state),e=(0,p.s)(this.state._label);return(0,i.h)(i.H,{key:"4f12758951bae68039475202310f4ef48ce8a455",class:{"kol-textarea":!0,"has-value":this.state._hasValue}},(0,i.h)(c.i,{key:"1615fb8c5cebb82bf0029160b898e09d0611b676",class:{textarea:!0,"hide-label":!!this.state._hideLabel,"has-counter":!!this.state._hasCounter},_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_currentLength:this.state._currentLength,_disabled:this.state._disabled,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_maxLength:this.state._maxLength,_msg:this.state._msg,_readOnly:this.state._readOnly,_required:this.state._required,_shortKey:this.state._shortKey,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.textareaRef)||void 0===t?void 0:t.focus()},role:"presentation"},(0,i.h)("span",{key:"ce5b4ccf898a4bce1a06b08754c808b3347c893f",slot:"label"},e?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?(0,i.h)(i.F,null,(0,i.h)(u.I,{badgeText:(0,p.b)(this.state._accessKey||this.state._shortKey),label:this.state._label})," ",(0,i.h)("span",{class:"access-key-hint","aria-hidden":"true"},(0,p.b)(this.state._accessKey||this.state._shortKey))):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{key:"322d1d1a4feca8f06d0b6c9c8da50e596e59361e",slot:"input"},(0,i.h)("textarea",Object.assign({key:"425c50e400eb2b3c94056c3ce153123436244f9c",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,maxlength:this.state._maxLength,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,rows:this.state._rows,placeholder:this.state._placeholder,spellcheck:this.state._spellCheck},this.controller.onFacade,{onInput:this.onInput,onFocus:t=>{this.controller.onFacade.onFocus(t),this.inputHasFocus=!0},onBlur:t=>{this.controller.onFacade.onBlur(t),this.inputHasFocus=!1},style:{resize:this.state._resize},value:this.state._value})))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.textareaRef=t},this.onInput=t=>{this.textareaRef instanceof HTMLTextAreaElement&&((0,r.s)(this,"_currentLength",this.textareaRef.value.length),this.state._adjustHeight&&(this._rows=m(this.textareaRef)),this.controller.onFacade.onInput(t))},this._accessKey=void 0,this._adjustHeight=!1,this._alert=void 0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._maxLength=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_adjustHeight:!1,_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${(0,a.n)()}`,_label:"",_resize:"vertical"},this.inputHasFocus=!1,this.controller=new b(this,"textarea",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAdjustHeight(t){this.controller.validateAdjustHeight(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateResize(t){this.controller.validateResize(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSpellCheck(t){this.controller.validateSpellCheck(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentDidLoad(){setTimeout((()=>{var t;!0===this._adjustHeight&&this.textareaRef?this._rows=(null===(t=this.state)||void 0===t?void 0:t._rows)&&this.state._rows>m(this.textareaRef)?this.state._rows:m(this.textareaRef):this._rows||(this._rows=1)}),0)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}static get delegatesFocus(){return!0}get host(){return(0,i.g)(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_adjustHeight:["validateAdjustHeight"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_spellCheck:["validateSpellCheck"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};f.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n /* input[type='checkbox'], */\n /* input[type='radio'], */\n /* input[type='range'], */\n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n select,\n select[multiple] option,\n textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n width: 100%;\n }\n /* needed hack for vertical alignment */\n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n /* needed hack for vertical alignment */\n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n .input {\n background-color: white;\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n }\n input:not([type=checkbox], [type=radio]),\n select:not([multiple], [size]) {\n height: 2.75em;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n display: flex;\n align-items: center;\n }\n .input > .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input.required .input-tooltip .kol-span__label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}"}},9352:(t,e,n)=>{n.d(e,{v:()=>a});var i=n(8474);const a=(t,e)=>{(0,i.k)(t,"_rows",e,{min:1})}},7369:(t,e,n)=>{n.d(e,{v:()=>a});var i=n(8474);const a=(t,e)=>{(0,i.b)(t,"_spellCheck",e,{defaultValue:void 0})}}}]);
@@ -1,3 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
package/dist/986.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 986.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[986],{986:(n,e,t)=>{t.r(e),t.d(e,{kol_tree_item:()=>a});var i=t(6916),o=t(3179),l=(n,e,t)=>new Promise(((i,o)=>{var l=n=>{try{r(t.next(n))}catch(n){o(n)}},a=n=>{try{r(t.throw(n))}catch(n){o(n)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(l,a);r((t=t.apply(n,e)).next())}));const a=class{constructor(n){(0,i.r)(this,n),this._active=void 0,this._label=void 0,this._open=void 0,this._href=void 0}focusLink(){return l(this,null,(function*(){this.element&&(yield this.element.focusLink())}))}expand(){return l(this,null,(function*(){this.element&&(yield this.element.expand())}))}collapse(){return l(this,null,(function*(){this.element&&(yield this.element.collapse())}))}isOpen(){return l(this,null,(function*(){var n,e;return null!==(e=yield null===(n=this.element)||void 0===n?void 0:n.isOpen())&&void 0!==e&&e}))}render(){return(0,i.h)(o.r,{key:"775c275ba629d0d7c586b0284f3944a0d3b9b408",class:"kol-tree-item",_active:this._active,_label:this._label,_open:this._open,_href:this._href,ref:n=>this.element=n},(0,i.h)("slot",{key:"3897c03fc266de30ad5e829ab838bdd2a05d7c0d"}))}};a.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .tree-link.first-level > a {\n padding-left: calc(6rem / var(--kolibri-root-font-size, 16));\n }\n .tree-link > a {\n padding-right: calc(6rem / var(--kolibri-root-font-size, 16));\n padding-left: calc((22.4rem / var(--kolibri-root-font-size, 16)) * var(--level));\n padding-top: calc(6.4rem / var(--kolibri-root-font-size, 16));\n padding-bottom: calc(6.4rem / var(--kolibri-root-font-size, 16));\n }\n a .kol-span {\n place-items: unset;\n }\n}"}}}]);
@@ -1,3 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolBadge, KolButton, KolButtonGroup } from '@public-ui/react';
4
- import { SampleDescription } from '../SampleDescription';
5
-
6
- import type { FC } from 'react';
7
- import { useToasterService } from '../../hooks/useToasterService';
8
-
9
- export const ButtonGroupBasic: FC = () => {
10
- const { dummyClickEventHandler } = useToasterService();
11
-
12
- const dummyEventHandler = {
13
- onClick: dummyClickEventHandler,
14
- };
15
-
16
- return (
17
- <>
18
- <SampleDescription>
19
- <p>KolButtonGroup shows multiple KolButton-elements visually grouped together.</p>
20
-
21
- <p>
22
- <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
23
- </p>
24
- </SampleDescription>
25
-
26
- <KolButtonGroup>
27
- <KolButton _label="Active" _variant="primary" _on={dummyEventHandler}></KolButton>
28
- <KolButton _label="Not active" _disabled></KolButton>
29
- <KolButton _label="Active" _icons="codicon codicon-home" _variant="danger" _on={dummyEventHandler}></KolButton>
30
- <KolButton _label="Active" _icons="codicon codicon-trash" _hideLabel _variant="ghost" _on={dummyEventHandler}></KolButton>
31
- </KolButtonGroup>
32
- </>
33
- );
34
- };
@@ -1,8 +0,0 @@
1
- import { Routes } from '../../shares/types';
2
- import { ButtonGroupBasic } from './basic';
3
-
4
- export const BUTTON_GROUP_ROUTES: Routes = {
5
- 'button-group': {
6
- basic: ButtonGroupBasic,
7
- },
8
- };
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
-
3
- import { KolBadge, KolIndentedText } from '@public-ui/react';
4
-
5
- import type { FC } from 'react';
6
- import { SampleDescription } from '../SampleDescription';
7
-
8
- export const IndentedTextBasic: FC = () => (
9
- <>
10
- <SampleDescription>
11
- <p>
12
- KolIndentedText renders the given slot content, styled as indented text. The sample shows two regular paragraphs with an indented paragraph in between.
13
- </p>
14
- <p>
15
- <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
16
- </p>
17
- </SampleDescription>
18
-
19
- <div className="grid gap-4">
20
- <p>
21
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
22
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
23
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
24
- </p>
25
- <KolIndentedText>
26
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
28
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
29
- </KolIndentedText>
30
- <p>
31
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
32
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
33
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.
34
- </p>
35
- </div>
36
- </>
37
- );
@@ -1,8 +0,0 @@
1
- import { Routes } from '../../shares/types';
2
- import { IndentedTextBasic } from './basic';
3
-
4
- export const INDENTED_ROUTES: Routes = {
5
- 'indented-text': {
6
- basic: IndentedTextBasic,
7
- },
8
- };
@@ -1,23 +0,0 @@
1
- import type { FC } from 'react';
2
- import React from 'react';
3
-
4
- import { KolBadge, KolLinkGroup } from '@public-ui/react';
5
- import { SampleDescription } from '../SampleDescription';
6
-
7
- const links = [
8
- { _label: 'Link 1', _href: '#/back-page' },
9
- { _label: 'Link 2', _href: '#/back-page' },
10
- { _label: 'Link 3', _href: '#/back-page' },
11
- ];
12
- export const LinkGroupBasic: FC = () => (
13
- <>
14
- <SampleDescription>
15
- <p>KolLinkGroup renders a list of the given links.</p>
16
- <p>
17
- <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
18
- </p>
19
- </SampleDescription>
20
-
21
- <KolLinkGroup _links={links} _label="" />
22
- </>
23
- );
@@ -1,23 +0,0 @@
1
- import type { FC } from 'react';
2
- import React from 'react';
3
-
4
- import { KolBadge, KolLinkGroup } from '@public-ui/react';
5
- import { SampleDescription } from '../SampleDescription';
6
-
7
- const links = [
8
- { _label: 'Link 1', _href: '#/back-page' },
9
- { _label: 'Link 2', _href: '#/back-page' },
10
- { _label: 'Link 3', _href: '#/back-page' },
11
- ];
12
- export const LinkGroupHorizontal: FC = () => (
13
- <>
14
- <SampleDescription>
15
- <p>KolLinkGroup renders a list of the given links. This sample shows the horizontal alignment.</p>
16
- <p>
17
- <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
18
- </p>
19
- </SampleDescription>
20
-
21
- <KolLinkGroup _links={links} _orientation="horizontal" _label="" />
22
- </>
23
- );
@@ -1,10 +0,0 @@
1
- import { Routes } from '../../shares/types';
2
- import { LinkGroupBasic } from './basic';
3
- import { LinkGroupHorizontal } from './horizontal';
4
-
5
- export const LINK_GROUP_ROUTES: Routes = {
6
- 'link-group': {
7
- basic: LinkGroupBasic,
8
- horizontal: LinkGroupHorizontal,
9
- },
10
- };