@public-ui/sample-react 1.7.4 → 1.7.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 (75) hide show
  1. package/dist/1474.js +1 -1
  2. package/dist/183.js +1 -1
  3. package/dist/2337.js +1 -1
  4. package/dist/2412.js +1 -1
  5. package/dist/3303.js +1 -1
  6. package/dist/3325.js +1 -1
  7. package/dist/3459.js +1 -1
  8. package/dist/3537.js +1 -1
  9. package/dist/3932.js +1 -1
  10. package/dist/4021.js +1 -1
  11. package/dist/4022.js +1 -1
  12. package/dist/4291.js +1 -1
  13. package/dist/4323.js +1 -1
  14. package/dist/4355.js +1 -1
  15. package/dist/4477.js +1 -1
  16. package/dist/4564.js +1 -1
  17. package/dist/4891.js +1 -1
  18. package/dist/5183.js +1 -1
  19. package/dist/5369.js +1 -1
  20. package/dist/5390.js +1 -1
  21. package/dist/540.js +1 -1
  22. package/dist/5866.js +1 -1
  23. package/dist/6012.js +1 -1
  24. package/dist/6068.js +1 -1
  25. package/dist/6210.js +1 -1
  26. package/dist/6320.js +1 -1
  27. package/dist/6558.js +1 -1
  28. package/dist/6655.js +1 -1
  29. package/dist/6691.js +2 -0
  30. package/dist/6908.js +1 -1
  31. package/dist/7029.js +1 -1
  32. package/dist/{8495.js → 7200.js} +2 -2
  33. package/dist/7255.js +1 -1
  34. package/dist/7447.js +1 -1
  35. package/dist/7495.js +2 -0
  36. package/dist/7715.js +1 -1
  37. package/dist/7722.js +1 -1
  38. package/dist/7801.js +1 -1
  39. package/dist/7955.js +1 -1
  40. package/dist/7958.js +1 -1
  41. package/dist/7995.js +1 -1
  42. package/dist/8065.js +1 -1
  43. package/dist/{9266.js → 8068.js} +2 -2
  44. package/dist/8073.js +1 -1
  45. package/dist/8099.js +1 -1
  46. package/dist/8111.js +1 -1
  47. package/dist/8255.js +1 -1
  48. package/dist/8291.js +1 -1
  49. package/dist/8709.js +1 -1
  50. package/dist/8761.js +1 -1
  51. package/dist/9106.js +1 -1
  52. package/dist/9734.js +1 -1
  53. package/dist/9747.js +1 -1
  54. package/dist/9792.js +1 -1
  55. package/dist/9963.js +1 -1
  56. package/dist/abgrenzung.jpg +0 -0
  57. package/dist/main.css +1 -1
  58. package/dist/main.js +6 -3
  59. package/package.json +4 -4
  60. package/public/abgrenzung.jpg +0 -0
  61. package/src/components/button-link/image.tsx +1 -1
  62. package/src/components/card/selection.tsx +3 -3
  63. package/src/components/handout/basic.tsx +1 -1
  64. package/src/components/image/basic.tsx +1 -1
  65. package/src/components/link/image.tsx +2 -2
  66. package/src/components/logo/basic.tsx +1 -1
  67. package/src/components/nav/active.tsx +7 -6
  68. package/src/components/nav/basic.tsx +1 -1
  69. package/src/components/table/with-pagination.tsx +2 -3
  70. package/dist/132.js +0 -2
  71. package/dist/6896.js +0 -2
  72. /package/dist/{132.js.LICENSE.txt → 6691.js.LICENSE.txt} +0 -0
  73. /package/dist/{6896.js.LICENSE.txt → 7200.js.LICENSE.txt} +0 -0
  74. /package/dist/{8495.js.LICENSE.txt → 7495.js.LICENSE.txt} +0 -0
  75. /package/dist/{9266.js.LICENSE.txt → 8068.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "This app contains samples for the KoliBri/Public UI",
5
5
  "license": "EUPL-1.2",
6
6
  "dependencies": {
@@ -8,9 +8,9 @@
8
8
  "@leanup/stack-react": "1.3.48",
9
9
  "@leanup/stack-webpack": "1.3.48",
10
10
  "@public-oss/kolibri-themes": "0.0.3",
11
- "@public-ui/components": "1.7.4",
12
- "@public-ui/react": "1.7.4",
13
- "@public-ui/themes": "1.7.4",
11
+ "@public-ui/components": "1.7.5",
12
+ "@public-ui/react": "1.7.5",
13
+ "@public-ui/themes": "1.7.5",
14
14
  "@types/node": "20.8.0",
15
15
  "@types/react": "18.2.23",
16
16
  "@types/react-dom": "18.2.8",
Binary file
@@ -8,7 +8,7 @@ export const ButtonLinkImage: FC = () => (
8
8
  <KolButtonLink _label="Ich bin ein Link, der als Text gerendert wird" />
9
9
  <br />
10
10
  <KolButtonLink _label="">
11
- <img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
11
+ <img alt="Darstellung des KoliBri-Theming" slot="expert" src="/abgrenzung.jpg" width="300" />
12
12
  </KolButtonLink>
13
13
  </div>
14
14
  );
@@ -20,7 +20,7 @@ export const CardSelection: FC = () => (
20
20
  </div>
21
21
  <div slot="content">
22
22
  <div>
23
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
23
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
24
24
  </div>
25
25
  </div>
26
26
  <div slot="footer">
@@ -38,7 +38,7 @@ export const CardSelection: FC = () => (
38
38
  </div>
39
39
  <div slot="content">
40
40
  <div>
41
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
41
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
42
42
  </div>
43
43
  </div>
44
44
  <div slot="footer">
@@ -56,7 +56,7 @@ export const CardSelection: FC = () => (
56
56
  </div>
57
57
  <div slot="content">
58
58
  <div>
59
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
59
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
60
60
  </div>
61
61
  </div>
62
62
  <div slot="footer">
@@ -1006,7 +1006,7 @@ export const HandoutBasic: FC = () => (
1006
1006
  </KolCard>
1007
1007
  </div>
1008
1008
  <KolVersion _version="5.0.2-test.2"></KolVersion>
1009
- {/* <KolImage _src="assets/images/abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
1009
+ {/* <KolImage _src="/abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
1010
1010
  {/* <KolIndentedText></KolIndentedText> */}
1011
1011
  {/* <KolQuote></KolQuote> */}
1012
1012
  </div>
@@ -2,4 +2,4 @@ import { FC } from 'react';
2
2
  import { KolImage } from '@public-ui/react';
3
3
  import React from 'react';
4
4
 
5
- export const ImageBasic: FC = () => <KolImage _src="https://placehold.co/100x100/cc006e/white" _alt="Beispielbild: 100 × 100" />;
5
+ export const ImageBasic: FC = () => <KolImage className="w-80%" _src="/abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />;
@@ -8,12 +8,12 @@ export const LinkImage: FC = () => (
8
8
  <KolLink _href="#" _label="Ich bin ein Link, der als Text gerendert wird" />
9
9
  <br />
10
10
  <KolLink _href="#" _label="">
11
- <img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
11
+ <img alt="Darstellung des KoliBri-Theming" slot="expert" src="/abgrenzung.jpg" width="300" />
12
12
  <KolKolibri style={{ width: '300px' }}></KolKolibri>
13
13
  </KolLink>
14
14
  <br />
15
15
  <KolLink _href="#" _label="">
16
- <img alt="Abgrenzung" slot="expert" src="https://public-ui.github.io/assets/abgrenzung.jpg" width="300" />
16
+ <img alt="Darstellung des KoliBri-Theming" slot="expert" src="/abgrenzung.jpg" width="300" />
17
17
  </KolLink>
18
18
  </div>
19
19
  );
@@ -2,4 +2,4 @@ import React, { FC } from 'react';
2
2
  import { KolLogo } from '@public-ui/react';
3
3
  import { Bundesministerium } from '@public-ui/components';
4
4
 
5
- export const LogoBasic: FC = () => <KolLogo _org={Bundesministerium['Die Bundesregierung']} style={{ width: 300 }} />;
5
+ export const LogoBasic: FC = () => <KolLogo className="w-50%" _org={Bundesministerium['Die Bundesregierung']} />;
@@ -2,14 +2,14 @@ import React from 'react';
2
2
  import { KolNav } from '@public-ui/react';
3
3
 
4
4
  import { FC, useEffect, useState } from 'react';
5
-
6
- import { useNavigate } from 'react-router';
5
+ import { ButtonOrLinkOrTextWithChildrenProps } from '@public-ui/components';
7
6
 
8
7
  export const NavActive: FC = () => {
9
- const [links, setLinks] = useState([]);
8
+ const [links, setLinks] = useState<ButtonOrLinkOrTextWithChildrenProps[]>([]);
10
9
 
11
10
  const handleLinks = (route: string) => {
12
11
  const link = links.find((link) => link._label === route);
12
+ if (!link) return;
13
13
  link._active = !link._active;
14
14
  setLinks(links);
15
15
  };
@@ -18,7 +18,7 @@ export const NavActive: FC = () => {
18
18
  setLinks([
19
19
  {
20
20
  _label: 'Main',
21
- _icons: 'fa-solid fa-house',
21
+ _icons: 'codicon codicon-home',
22
22
  _on: {
23
23
  onClick: () => handleLinks('Main'),
24
24
  },
@@ -36,7 +36,7 @@ export const NavActive: FC = () => {
36
36
  },
37
37
  },
38
38
  {
39
- _active: false,
39
+ _active: true,
40
40
  _label: 'Alert',
41
41
  _on: {
42
42
  onClick: () => handleLinks('Alert'),
@@ -44,12 +44,13 @@ export const NavActive: FC = () => {
44
44
  _children: [
45
45
  {
46
46
  _label: 'Main',
47
- _icons: 'fa-solid fa-house',
47
+ _icons: 'codicon codicon-home',
48
48
  _on: {
49
49
  onClick: () => handleLinks('/'),
50
50
  },
51
51
  },
52
52
  {
53
+ _active: true,
53
54
  _label: 'Abbr',
54
55
  _href: '/abbr',
55
56
  _on: {
@@ -9,7 +9,7 @@ export const NavBasic: FC = () => (
9
9
  _links={[
10
10
  {
11
11
  _label: 'Homepage',
12
- _icons: 'fa-solid fa-house',
12
+ _icons: 'codicon codicon-home',
13
13
  _href: '#/',
14
14
  },
15
15
  {
@@ -1,8 +1,7 @@
1
1
  import React, { FC } from 'react';
2
2
 
3
3
  import { KolTable } from '@public-ui/react';
4
- import { KoliBriTableHeaders } from '@public-ui/components';
5
- import { KoliBriTablePaginationProps } from '@public-ui/components/src';
4
+ import { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-ui/components';
6
5
  import { DATA } from './test-data';
7
6
 
8
7
  const HEADERS: KoliBriTableHeaders = {
@@ -13,7 +12,7 @@ const HEADERS: KoliBriTableHeaders = {
13
12
  ],
14
13
  ],
15
14
  };
16
- const PAGINATION: KoliBriTablePaginationProps = { _page: 2, _total: 1 };
15
+ const PAGINATION: KoliBriTablePaginationProps = { _page: 2, _max: 1 };
17
16
 
18
17
  export const TableWithPagination: FC = () => (
19
18
  <div>
package/dist/132.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 132.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[132],{132:(t,e,i)=>{i.r(e),i.d(e,{initialize:()=>s});var l=i(4320),r=i(9266);function n(t,e){try{Object.defineProperty(l.K,t,{get:function(){return e}})}catch(e){l.L.debug(`KoliBri property ${t} is already bind.`)}}const o=(t,e)=>l.L.debug(`${t} ${e?"":"not "}activated`),s=()=>{if((0,l.i)(),(0,l.e)()){(0,l.r)(),n("a11yColorContrast",r.q),n("querySelector",r.k),n("querySelectorAll",r.t),n("querySelectorColors",r.u),n("utils",(function(){return r.n})),n("parseJson",r.p),n("stringifyJson",r.v);const t=(0,l.g)().body,e=(0,l.g)().createElement("svg");if(e.setAttribute("aria-label","KoliBri-DevTools"),e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("role","toolbar"),e.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),e.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',(0,l.g)().body.appendChild(e),o("Development mode",(0,l.e)()),o("Experimental mode",(0,l.b)()),o("Color contrast analysis",(0,l.f)()),(0,l.f)()){const e=setTimeout((()=>{clearTimeout(e),setInterval((()=>{r.n.queryHtmlElementColors((0,l.g)().createElement("div"),(0,r.q)(t),!1,!1)}),1e4)}),2500)}}}}}]);
package/dist/6896.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 6896.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[6896],{1267:(t,e,o)=>{o.d(e,{A:()=>a});var n=o(9266),i=o(9704);const s=(0,o(4320).b)();class a{constructor(t,e,o){var n,a;if(this.setFormAssociatedValue=t=>{var e;const o=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==o&&""!==o||(0,i.d)(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);const n=this.tryToStringifyValue(t);this.syncValue(t,n,this.formAssociated),this.syncValue(t,n,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.name=e,s){switch(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.name){case"button":this.formAssociated=document.createElement("button");break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("aria-hidden","true"),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(a=this.host)||void 0===a||a.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,o){if(s)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return(0,i.h)(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){o&&("select"===this.name?(o.querySelectorAll("option").forEach((t=>{o.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),o.appendChild(t)}}))):"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value=""))}validateName(t){((t,e,o)=>{(0,n.d)(t,"_name",e,o)})(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&(0,i.d)("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(s&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}},2925:(t,e,o)=>{o.d(e,{I:()=>p,g:()=>h,v:()=>d});var n=o(9266),i=o(755),s=o(1817),a=o(9704),l=o(9865),r=o(2127),c=o(1267);const h=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,o="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===e&&n.push(`${t._id}-error`),!0===o&&n.push(`${t._id}-hint`),{hasError:e,hasHint:o,ariaDescribedBy:n}},d=(t,e,o)=>{(0,n.a)(t,"_hideError",e,o)};class u extends c.A{constructor(t,e,o){super(t,e,o),this.component=t}validateAlert(t){(0,n.a)(this.component,"_alert",t)}validateTouched(t){((t,e)=>{(0,n.a)(t,"_touched",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class p extends u{constructor(t,e,o){super(t,e,o),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){(0,n.d)(this.component,"_accessKey",t)}validateAdjustHeight(t){((t,e)=>{(0,n.a)(t,"_adjustHeight",e)})(this.component,t)}validateDisabled(t){(0,n.a)(this.component,"_disabled",t),!0===t&&(0,a.g)()}validateError(t){(0,n.d)(this.component,"_error",t)}validateHideLabel(t){(0,i.v)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&(0,a.a)("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){(0,n.d)(this.component,"_hint",t)}validateId(t){(0,n.d)(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||(0,a.d)("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){(0,s.a)(this.component,t)}validateOn(t){"object"==typeof t&&(0,n.s)(this.component,"_on",t)}validateSmartButton(t){(0,n.o)(t,(()=>{try{t=(0,n.p)(t)}catch(t){}(0,n.s)(this.component,"_smartButton",t)}))}validateTabIndex(t){(0,r.v)(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var e;this.component._alert=!0,this.component._touched=!0,(0,l.s)(t),(0,l.t)("blur",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onBlur)&&this.component._on.onBlur(t)}onChange(t){var e;const o=t.target.value;(0,l.s)(t),(0,l.t)("change",this.host,o),this.setFormAssociatedValue(o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o),this.valueChangeListeners.forEach((t=>t(o)))}onClick(t){var e;(0,l.s)(t),(0,l.t)("click",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onClick)&&this.component._on.onClick(t)}onFocus(t){var e;this.component._alert=!0,(0,l.s)(t),(0,l.t)("focus",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onFocus)&&this.component._on.onFocus(t)}setValue(t,e){var o;this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}},6896:(t,e,o)=>{o.d(e,{I:()=>r});var n=o(6230),i=o(9266),s=o(2180),a=o(2925);const l=(t,e)=>{const o=t;"object"==typeof o&&null!==o&&((0,s.i)(o.right,1)&&(o.right={icon:o.right}),(0,s.i)(o.left,1)&&(o.left={icon:o.left}),e.set("_icons",o))};class r extends a.I{constructor(t,e,o){super(t,e,o),this.component=t}validateIcon(t){this.validateIcons(t)}validateIcons(t){(0,i.o)(t,(()=>{try{t=(0,i.p)(t)}catch(t){}(0,i.w)(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&((0,s.i)(t.left,1)||(0,n.i)(t.left)||(0,s.i)(t.right,1)||(0,n.i)(t.right))),new Set(["KoliBriHorizontalIcon"]),t,{hooks:{beforePatch:l},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}},9865:(t,e,o)=>{function n(t){t.stopImmediatePropagation(),t.stopPropagation()}function i(t,e,o){e&&function(t,e,o){const n=t.dispatchEvent(function(t,e){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}(e,o))}(e,t,o)}o.d(e,{s:()=>n,t:()=>i})},755:(t,e,o)=>{o.d(e,{v:()=>i});var n=o(9266);const i=(t,e,o={})=>{(0,n.a)(t,"_hideLabel",e,o)}},6230:(t,e,o)=>{o.d(e,{i:()=>l,v:()=>r,w:()=>c});var n=o(9266),i=o(2180);const s=(t,e,o)=>{(0,i.c)(o)?t[e]=o:(0,i.i)(o,1)&&(t[e]={icon:o})},a=t=>{var e,o,n,a,l,r,c;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icons")){const e=null===(o=t.nextState)||void 0===o?void 0:o.get("_icons"),l=(null===(n=t.nextState)||void 0===n?void 0:n.get("_iconAlign"))||t.state._iconAlign;null===(a=t.nextState)||void 0===a||a.set("_icons",((t,e)=>{let o={};return(0,i.i)(t,1)?o="right"===e?{right:{icon:t}}:{left:{icon:t}}:"object"==typeof t&&null!==t&&(s(o,"top",t.top),s(o,"right",t.right),s(o,"bottom",t.bottom),s(o,"left",t.left)),o})(e,l))}else if(null===(l=t.nextState)||void 0===l?void 0:l.has("_iconAlign")){const e=t.state._iconAlign;null===(r=t.nextState)||void 0===r||r.set("_icons",{[e]:void 0,[null===(c=t.nextState)||void 0===c?void 0:c.get("_iconAlign")]:t.state._icons[e]})}},l=t=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,i.b)(t.style))&&(0,i.i)(t.icon,1),r=(t,e)=>{(0,n.o)(e,(()=>{try{e=(0,n.p)(e)}catch(t){}(0,n.w)(t,"_icons",(t=>null===t||(0,i.i)(t,1)||"object"==typeof t&&null!==t&&((0,i.i)(t.left,1)||l(t.left)||(0,i.i)(t.right,1)||l(t.right)||(0,i.i)(t.top,1)||l(t.top)||(0,i.i)(t.bottom,1)||l(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,o)=>{null===e&&o.set("_icons",{}),a(t)}},required:!0})}))},c=(t,e)=>{(0,n.w)(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{a(t)}}})}},1817:(t,e,o)=>{o.d(e,{a:()=>d,c:()=>r,h:()=>l,v:()=>h});var n=o(9704),i=o(9266);const s=/[a-zA-Z0-9äöüÄÖÜß]/g,a=/^\d+$/;function l(t,e=1){return function(t){var e;return"string"==typeof t&&(null===(e=t.match(s))||void 0===e?void 0:e.length)||0}(t)>=e}function r(t){return a.test(t)}const c=new Set(["string"]),h=(t,e,o={})=>{(0,i.w)(t,"_label",(t=>"string"==typeof t),c,e,function(t){var e;return{hooks:{afterPatch:(e,o,i,s)=>{var a,c;"function"==typeof(null===(a=t.hooks)||void 0===a?void 0:a.afterPatch)&&(null===(c=t.hooks)||void 0===c||c.afterPatch(e,o,i,s)),"string"==typeof e&&!1===l(e,3)&&!1===r(e)&&(0,n.a)(`The heading or label ("${e}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof e&&e.length>80&&(0,n.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=t.hooks)||void 0===e?void 0:e.beforePatch}}}(o))},d=h},2127:(t,e,o)=>{o.d(e,{v:()=>a});var n=o(9704),i=o(9266);const s={hooks:{afterPatch:t=>{-1!==t&&0!==t&&(0,n.a)("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},a=(t,e)=>{(0,i.e)(t,"_tabIndex",e,s)}}}]);