@public-ui/sample-react 2.0.0-rc.6 → 2.0.0-rc.8

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 (71) 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/3932.js +1 -1
  9. package/dist/4022.js +1 -1
  10. package/dist/4164.js +1 -1
  11. package/dist/4291.js +1 -1
  12. package/dist/4323.js +1 -1
  13. package/dist/4355.js +1 -1
  14. package/dist/4564.js +1 -1
  15. package/dist/4891.js +1 -1
  16. package/dist/5183.js +1 -1
  17. package/dist/5369.js +1 -1
  18. package/dist/5390.js +1 -1
  19. package/dist/540.js +1 -1
  20. package/dist/{3177.js → 5414.js} +2 -2
  21. package/dist/5717.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/{1940.js → 6077.js} +2 -2
  26. package/dist/6210.js +1 -1
  27. package/dist/6320.js +1 -1
  28. package/dist/6558.js +1 -1
  29. package/dist/6655.js +1 -1
  30. package/dist/6908.js +1 -1
  31. package/dist/7029.js +1 -1
  32. package/dist/7255.js +1 -1
  33. package/dist/7447.js +1 -1
  34. package/dist/7535.js +1 -1
  35. package/dist/{3492.js → 7648.js} +2 -2
  36. package/dist/7715.js +1 -1
  37. package/dist/7722.js +1 -1
  38. package/dist/7801.js +1 -1
  39. package/dist/7929.js +2 -0
  40. package/dist/7955.js +1 -1
  41. package/dist/7995.js +1 -1
  42. package/dist/8073.js +1 -1
  43. package/dist/8111.js +1 -1
  44. package/dist/8255.js +1 -1
  45. package/dist/8291.js +1 -1
  46. package/dist/8709.js +1 -1
  47. package/dist/8761.js +1 -1
  48. package/dist/9734.js +1 -1
  49. package/dist/9747.js +1 -1
  50. package/dist/9792.js +1 -1
  51. package/dist/9963.js +1 -1
  52. package/dist/abgrenzung.jpg +0 -0
  53. package/dist/main.css +1 -1
  54. package/dist/main.js +10 -4
  55. package/package.json +4 -4
  56. package/public/abgrenzung.jpg +0 -0
  57. package/src/components/button-link/image.tsx +1 -1
  58. package/src/components/card/selection.tsx +3 -3
  59. package/src/components/handout/basic.tsx +1 -1
  60. package/src/components/image/basic.tsx +1 -1
  61. package/src/components/link/image.tsx +2 -2
  62. package/src/components/logo/basic.tsx +1 -1
  63. package/src/components/nav/active.tsx +8 -9
  64. package/src/components/nav/basic.tsx +1 -1
  65. package/src/components/table/with-pagination.tsx +2 -3
  66. package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +1 -1
  67. package/dist/5421.js +0 -2
  68. /package/dist/{1940.js.LICENSE.txt → 5414.js.LICENSE.txt} +0 -0
  69. /package/dist/{3177.js.LICENSE.txt → 6077.js.LICENSE.txt} +0 -0
  70. /package/dist/{3492.js.LICENSE.txt → 7648.js.LICENSE.txt} +0 -0
  71. /package/dist/{5421.js.LICENSE.txt → 7929.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.8",
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": "2.0.0-rc.6",
12
- "@public-ui/react": "2.0.0-rc.6",
13
- "@public-ui/themes": "2.0.0-rc.6",
11
+ "@public-ui/components": "2.0.0-rc.8",
12
+ "@public-ui/react": "2.0.0-rc.8",
13
+ "@public-ui/themes": "2.0.0-rc.8",
14
14
  "@types/node": "20.8.9",
15
15
  "@types/react": "18.2.33",
16
16
  "@types/react-dom": "18.2.14",
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
  );
@@ -21,7 +21,7 @@ export const CardSelection: FC = () => (
21
21
  </div>
22
22
  <div>
23
23
  <div>
24
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
24
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
25
25
  </div>
26
26
  </div>
27
27
  <div>
@@ -41,7 +41,7 @@ export const CardSelection: FC = () => (
41
41
  </div>
42
42
  <div>
43
43
  <div>
44
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
44
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
45
45
  </div>
46
46
  </div>
47
47
  <div>
@@ -61,7 +61,7 @@ export const CardSelection: FC = () => (
61
61
  </div>
62
62
  <div>
63
63
  <div>
64
- <img alt="Beispielbild" src="https://via.placeholder.com/200" />
64
+ <img alt="Darstellung des KoliBri-Theming" src="/abgrenzung.jpg" width="100%" />
65
65
  </div>
66
66
  </div>
67
67
  <div>
@@ -987,7 +987,7 @@ export const HandoutBasic: FC = () => (
987
987
  </KolCard>
988
988
  </div>
989
989
  <KolVersion _label="5.0.2-test.2"></KolVersion>
990
- {/* <KolImage _src="assets/images/abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
990
+ {/* <KolImage _src="/abgrenzung.jpg" _alt="KoliBri Darstellung"></KolImage> */}
991
991
  {/* <KolIndentedText></KolIndentedText> */}
992
992
  {/* <KolQuote></KolQuote> */}
993
993
  </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,23 +2,22 @@ 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
  };
16
-
17
16
  useEffect(() => {
18
17
  setLinks([
19
18
  {
20
19
  _label: 'Main',
21
- _icons: 'fa-solid fa-house',
20
+ _icons: 'codicon codicon-home',
22
21
  _on: {
23
22
  onClick: () => handleLinks('Main'),
24
23
  },
@@ -36,7 +35,7 @@ export const NavActive: FC = () => {
36
35
  },
37
36
  },
38
37
  {
39
- _active: false,
38
+ _active: true,
40
39
  _label: 'Alert',
41
40
  _on: {
42
41
  onClick: () => handleLinks('Alert'),
@@ -44,12 +43,13 @@ export const NavActive: FC = () => {
44
43
  _children: [
45
44
  {
46
45
  _label: 'Main',
47
- _icons: 'fa-solid fa-house',
46
+ _icons: 'codicon codicon-home',
48
47
  _on: {
49
48
  onClick: () => handleLinks('/'),
50
49
  },
51
50
  },
52
51
  {
52
+ _active: true,
53
53
  _label: 'Abbr',
54
54
  _href: '/abbr',
55
55
  _on: {
@@ -83,6 +83,5 @@ export const NavActive: FC = () => {
83
83
  },
84
84
  ]);
85
85
  }, []);
86
-
87
- return <KolNav _label="Main navigation" _links={links} />;
86
+ return <KolNav _ariaLabel="Main navigation" _links={links} />;
88
87
  };
@@ -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>
@@ -4,7 +4,7 @@ import { FormValues } from './AppointmentForm';
4
4
  import { ErrorList } from './ErrorList';
5
5
  import { Field, FieldProps, useFormikContext } from 'formik';
6
6
  import { fetchAvailableTimes } from './appointmentService';
7
- import { Option } from '@public-ui/components/src';
7
+ import { Option } from '@public-ui/components';
8
8
 
9
9
  export function AvailableAppointmentsForm() {
10
10
  const form = useFormikContext<FormValues>();
package/dist/5421.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5421.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[5421],{1765:(t,e,o)=>{o.d(e,{I:()=>i});var n=o(1167);const i=({accessKey:t,label:e})=>{let[o,...i]=e.split(t);return 0===i.length&&(t=t.toUpperCase(),[o,...i]=e.split(t)),0===i.length&&(t=t.toLowerCase(),[o,...i]=e.split(t)),(0,n.h)(n.F,null,o,i.length?(0,n.h)(n.F,null,(0,n.h)("u",null,t),i.join(t)):null)}},4606:(t,e,o)=>{o.d(e,{A:()=>a});var n=o(3177),i=o(8197);const s=(0,o(1884).d)();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.g)(`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)}}},7226:(t,e,o)=>{o.d(e,{I:()=>p,g:()=>h,v:()=>d});var n=o(3177),i=o(6986),s=o(2412),a=o(8197),l=o(9865),r=o(2260),c=o(4606);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.e)()}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)}}},2274:(t,e,o)=>{o.d(e,{I:()=>r});var n=o(5741),i=o(3177),s=o(2180),a=o(7226);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})},6986:(t,e,o)=>{o.d(e,{v:()=>i});var n=o(3177);const i=(t,e,o={})=>{(0,n.a)(t,"_hideLabel",e,o)}},5741:(t,e,o)=>{o.d(e,{i:()=>a,v:()=>l});var n=o(3177),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=>"object"==typeof t&&null!==t&&(void 0===t.style||(0,i.b)(t.style))&&(0,i.i)(t.icon,1),l=(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)||a(t.left)||(0,i.i)(t.right,1)||a(t.right)||(0,i.i)(t.top,1)||a(t.top)||(0,i.i)(t.bottom,1)||a(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,o)=>{null===e&&o.set("_icons",{}),(t=>{var e,o,n;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");null===(n=t.nextState)||void 0===n||n.set("_icons",(t=>{let e={};return(0,i.i)(t,1)?e={left:{icon:t}}:"object"==typeof t&&null!==t&&(s(e,"top",t.top),s(e,"right",t.right),s(e,"bottom",t.bottom),s(e,"left",t.left)),e})(e))}})(t)}},required:!0})}))}},2412:(t,e,o)=>{o.d(e,{a:()=>d,c:()=>r,h:()=>l,v:()=>h});var n=o(8197),i=o(3177);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},2260:(t,e,o)=>{o.d(e,{v:()=>a});var n=o(8197),i=o(3177);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)}}}]);