@public-ui/sample-react 2.0.0 → 2.0.2

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 (178) hide show
  1. package/dist/{5183.js → 1090.js} +2 -2
  2. package/dist/1181.js +2 -0
  3. package/dist/{5866.js → 1218.js} +2 -2
  4. package/dist/{7255.js → 1338.js} +2 -2
  5. package/dist/1399.js +2 -0
  6. package/dist/1517.js +2 -0
  7. package/dist/{7447.js → 1596.js} +2 -2
  8. package/dist/{7380.js → 2079.js} +2 -2
  9. package/dist/{4564.js → 2163.js} +2 -2
  10. package/dist/2415.js +2 -0
  11. package/dist/2594.js +2 -0
  12. package/dist/2611.js +2 -0
  13. package/dist/2643.js +2 -0
  14. package/dist/{2738.js → 3034.js} +2 -2
  15. package/dist/3035.js +2 -0
  16. package/dist/3145.js +2 -0
  17. package/dist/3345.js +2 -0
  18. package/dist/{5862.js → 3388.js} +2 -2
  19. package/dist/{7995.js → 3466.js} +2 -2
  20. package/dist/{8255.js → 3580.js} +2 -2
  21. package/dist/3619.js +2 -0
  22. package/dist/{7801.js → 3776.js} +2 -2
  23. package/dist/4114.js +2 -0
  24. package/dist/4150.js +2 -0
  25. package/dist/42.js +2 -0
  26. package/dist/{3932.js → 4279.js} +2 -2
  27. package/dist/{4891.js → 4463.js} +2 -2
  28. package/dist/4563.js +2 -0
  29. package/dist/{8065.js → 4669.js} +2 -2
  30. package/dist/{8073.js → 4686.js} +2 -2
  31. package/dist/4756.js +2 -0
  32. package/dist/{6558.js → 5027.js} +2 -2
  33. package/dist/521.js +2 -0
  34. package/dist/{6813.js → 5324.js} +2 -2
  35. package/dist/5373.js +2 -0
  36. package/dist/{5869.js → 5440.js} +2 -2
  37. package/dist/5496.js +2 -0
  38. package/dist/5518.js +2 -0
  39. package/dist/{9734.js → 5615.js} +2 -2
  40. package/dist/{5717.js → 5767.js} +2 -2
  41. package/dist/5853.js +2 -0
  42. package/dist/{4022.js → 6010.js} +2 -2
  43. package/dist/6308.js +2 -0
  44. package/dist/7170.js +2 -0
  45. package/dist/{3429.js → 7432.js} +2 -2
  46. package/dist/755.js +2 -0
  47. package/dist/7654.js +2 -0
  48. package/dist/{8709.js → 8037.js} +1 -1
  49. package/dist/817.js +2 -0
  50. package/dist/8612.js +2 -0
  51. package/dist/{7734.js → 8734.js} +2 -2
  52. package/dist/881.js +2 -0
  53. package/dist/{7858.js → 8869.js} +2 -2
  54. package/dist/892.js +2 -0
  55. package/dist/{9963.js → 8948.js} +2 -2
  56. package/dist/8951.js +2 -0
  57. package/dist/9317.js +2 -0
  58. package/dist/{9895.js → 9330.js} +2 -2
  59. package/dist/{6908.js → 9727.js} +2 -2
  60. package/dist/{4355.js → 9797.js} +2 -2
  61. package/dist/{4195.js → 9865.js} +2 -2
  62. package/dist/{8061.js → 9886.js} +2 -2
  63. package/dist/{5139.js → 9962.js} +2 -2
  64. package/dist/{7955.js → 9984.js} +2 -2
  65. package/dist/main.css +1 -1
  66. package/dist/main.js +315 -301
  67. package/dist/main.js.LICENSE.txt +2 -4
  68. package/package.json +15 -15
  69. package/src/components/badge/basic.tsx +5 -9
  70. package/src/components/badge/button.tsx +16 -12
  71. package/src/components/heading/badged.tsx +5 -5
  72. package/src/components/input-radio/partials/cases.tsx +1 -1
  73. package/src/components/kolibri/basic.tsx +16 -2
  74. package/src/components/kolibri/routes.ts +0 -4
  75. package/src/components/nav/aria-current.tsx +25 -15
  76. package/src/components/nav/basic.tsx +1 -3
  77. package/src/components/nav/horizontal.tsx +0 -3
  78. package/src/components/nav/routes.ts +0 -6
  79. package/src/components/split-button/basic.tsx +13 -2
  80. package/src/react.main.tsx +11 -5
  81. package/src/scenarios/inputs-get-value.tsx +2 -2
  82. package/dist/1130.js +0 -2
  83. package/dist/1474.js +0 -2
  84. package/dist/183.js +0 -2
  85. package/dist/2337.js +0 -2
  86. package/dist/2412.js +0 -2
  87. package/dist/3303.js +0 -2
  88. package/dist/3325.js +0 -2
  89. package/dist/3459.js +0 -2
  90. package/dist/4164.js +0 -2
  91. package/dist/4291.js +0 -2
  92. package/dist/4323.js +0 -2
  93. package/dist/4916.js +0 -2
  94. package/dist/5369.js +0 -2
  95. package/dist/5390.js +0 -2
  96. package/dist/540.js +0 -2
  97. package/dist/5860.js +0 -2
  98. package/dist/6012.js +0 -2
  99. package/dist/6068.js +0 -2
  100. package/dist/6210.js +0 -2
  101. package/dist/6320.js +0 -2
  102. package/dist/7029.js +0 -2
  103. package/dist/7535.js +0 -2
  104. package/dist/7715.js +0 -2
  105. package/dist/7722.js +0 -2
  106. package/dist/8111.js +0 -2
  107. package/dist/8291.js +0 -2
  108. package/dist/8316.js +0 -2
  109. package/dist/8761.js +0 -2
  110. package/dist/9747.js +0 -2
  111. package/dist/9792.js +0 -2
  112. package/dist/9972.js +0 -2
  113. package/src/components/kolibri/animated.tsx +0 -4
  114. package/src/components/kolibri/no-label.tsx +0 -4
  115. package/src/components/nav/active.tsx +0 -87
  116. /package/dist/{1130.js.LICENSE.txt → 1090.js.LICENSE.txt} +0 -0
  117. /package/dist/{1474.js.LICENSE.txt → 1181.js.LICENSE.txt} +0 -0
  118. /package/dist/{183.js.LICENSE.txt → 1218.js.LICENSE.txt} +0 -0
  119. /package/dist/{2337.js.LICENSE.txt → 1338.js.LICENSE.txt} +0 -0
  120. /package/dist/{2412.js.LICENSE.txt → 1399.js.LICENSE.txt} +0 -0
  121. /package/dist/{2738.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
  122. /package/dist/{3303.js.LICENSE.txt → 1596.js.LICENSE.txt} +0 -0
  123. /package/dist/{3325.js.LICENSE.txt → 2079.js.LICENSE.txt} +0 -0
  124. /package/dist/{3429.js.LICENSE.txt → 2163.js.LICENSE.txt} +0 -0
  125. /package/dist/{3459.js.LICENSE.txt → 2415.js.LICENSE.txt} +0 -0
  126. /package/dist/{3932.js.LICENSE.txt → 2594.js.LICENSE.txt} +0 -0
  127. /package/dist/{4022.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
  128. /package/dist/{4164.js.LICENSE.txt → 2643.js.LICENSE.txt} +0 -0
  129. /package/dist/{4195.js.LICENSE.txt → 3034.js.LICENSE.txt} +0 -0
  130. /package/dist/{4291.js.LICENSE.txt → 3035.js.LICENSE.txt} +0 -0
  131. /package/dist/{4323.js.LICENSE.txt → 3145.js.LICENSE.txt} +0 -0
  132. /package/dist/{4355.js.LICENSE.txt → 3345.js.LICENSE.txt} +0 -0
  133. /package/dist/{4564.js.LICENSE.txt → 3388.js.LICENSE.txt} +0 -0
  134. /package/dist/{4891.js.LICENSE.txt → 3466.js.LICENSE.txt} +0 -0
  135. /package/dist/{4916.js.LICENSE.txt → 3580.js.LICENSE.txt} +0 -0
  136. /package/dist/{5139.js.LICENSE.txt → 3619.js.LICENSE.txt} +0 -0
  137. /package/dist/{5183.js.LICENSE.txt → 3776.js.LICENSE.txt} +0 -0
  138. /package/dist/{5369.js.LICENSE.txt → 4114.js.LICENSE.txt} +0 -0
  139. /package/dist/{5390.js.LICENSE.txt → 4150.js.LICENSE.txt} +0 -0
  140. /package/dist/{540.js.LICENSE.txt → 42.js.LICENSE.txt} +0 -0
  141. /package/dist/{5717.js.LICENSE.txt → 4279.js.LICENSE.txt} +0 -0
  142. /package/dist/{5860.js.LICENSE.txt → 4463.js.LICENSE.txt} +0 -0
  143. /package/dist/{5862.js.LICENSE.txt → 4563.js.LICENSE.txt} +0 -0
  144. /package/dist/{5866.js.LICENSE.txt → 4669.js.LICENSE.txt} +0 -0
  145. /package/dist/{5869.js.LICENSE.txt → 4686.js.LICENSE.txt} +0 -0
  146. /package/dist/{6012.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
  147. /package/dist/{6068.js.LICENSE.txt → 5027.js.LICENSE.txt} +0 -0
  148. /package/dist/{6210.js.LICENSE.txt → 521.js.LICENSE.txt} +0 -0
  149. /package/dist/{6320.js.LICENSE.txt → 5324.js.LICENSE.txt} +0 -0
  150. /package/dist/{6558.js.LICENSE.txt → 5373.js.LICENSE.txt} +0 -0
  151. /package/dist/{6813.js.LICENSE.txt → 5440.js.LICENSE.txt} +0 -0
  152. /package/dist/{6908.js.LICENSE.txt → 5496.js.LICENSE.txt} +0 -0
  153. /package/dist/{7029.js.LICENSE.txt → 5518.js.LICENSE.txt} +0 -0
  154. /package/dist/{7255.js.LICENSE.txt → 5615.js.LICENSE.txt} +0 -0
  155. /package/dist/{7380.js.LICENSE.txt → 5767.js.LICENSE.txt} +0 -0
  156. /package/dist/{7447.js.LICENSE.txt → 5853.js.LICENSE.txt} +0 -0
  157. /package/dist/{7535.js.LICENSE.txt → 6010.js.LICENSE.txt} +0 -0
  158. /package/dist/{7715.js.LICENSE.txt → 6308.js.LICENSE.txt} +0 -0
  159. /package/dist/{7722.js.LICENSE.txt → 7170.js.LICENSE.txt} +0 -0
  160. /package/dist/{7734.js.LICENSE.txt → 7432.js.LICENSE.txt} +0 -0
  161. /package/dist/{7801.js.LICENSE.txt → 755.js.LICENSE.txt} +0 -0
  162. /package/dist/{7858.js.LICENSE.txt → 7654.js.LICENSE.txt} +0 -0
  163. /package/dist/{7955.js.LICENSE.txt → 817.js.LICENSE.txt} +0 -0
  164. /package/dist/{7995.js.LICENSE.txt → 8612.js.LICENSE.txt} +0 -0
  165. /package/dist/{8061.js.LICENSE.txt → 8734.js.LICENSE.txt} +0 -0
  166. /package/dist/{8065.js.LICENSE.txt → 881.js.LICENSE.txt} +0 -0
  167. /package/dist/{8073.js.LICENSE.txt → 8869.js.LICENSE.txt} +0 -0
  168. /package/dist/{8111.js.LICENSE.txt → 892.js.LICENSE.txt} +0 -0
  169. /package/dist/{8255.js.LICENSE.txt → 8948.js.LICENSE.txt} +0 -0
  170. /package/dist/{8291.js.LICENSE.txt → 8951.js.LICENSE.txt} +0 -0
  171. /package/dist/{8316.js.LICENSE.txt → 9317.js.LICENSE.txt} +0 -0
  172. /package/dist/{8761.js.LICENSE.txt → 9330.js.LICENSE.txt} +0 -0
  173. /package/dist/{9734.js.LICENSE.txt → 9727.js.LICENSE.txt} +0 -0
  174. /package/dist/{9747.js.LICENSE.txt → 9797.js.LICENSE.txt} +0 -0
  175. /package/dist/{9792.js.LICENSE.txt → 9865.js.LICENSE.txt} +0 -0
  176. /package/dist/{9895.js.LICENSE.txt → 9886.js.LICENSE.txt} +0 -0
  177. /package/dist/{9963.js.LICENSE.txt → 9962.js.LICENSE.txt} +0 -0
  178. /package/dist/{9972.js.LICENSE.txt → 9984.js.LICENSE.txt} +0 -0
@@ -2,8 +2,6 @@
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
4
 
5
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
6
-
7
5
  /**
8
6
  * @license React
9
7
  * react-dom.production.min.js
@@ -35,7 +33,7 @@
35
33
  */
36
34
 
37
35
  /**
38
- * @remix-run/router v1.13.1
36
+ * @remix-run/router v1.14.0
39
37
  *
40
38
  * Copyright (c) Remix Software Inc.
41
39
  *
@@ -46,7 +44,7 @@
46
44
  */
47
45
 
48
46
  /**
49
- * React Router v6.20.1
47
+ * React Router v6.21.0
50
48
  *
51
49
  * Copyright (c) Remix Software Inc.
52
50
  *
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "This app contains samples for the KoliBri/Public UI",
5
5
  "license": "EUPL-1.2",
6
6
  "dependencies": {
7
- "@leanup/stack": "1.3.48",
8
- "@leanup/stack-react": "1.3.48",
9
- "@leanup/stack-webpack": "1.3.48",
7
+ "@leanup/stack": "1.3.49",
8
+ "@leanup/stack-react": "1.3.49",
9
+ "@leanup/stack-webpack": "1.3.49",
10
10
  "@public-oss/kolibri-themes": "0.0.3",
11
- "@public-ui/components": "2.0.0",
12
- "@public-ui/react": "2.0.0",
13
- "@public-ui/themes": "2.0.0",
14
- "@types/node": "20.10.3",
15
- "@types/react": "18.2.41",
16
- "@types/react-dom": "18.2.17",
11
+ "@public-ui/components": "2.0.2",
12
+ "@public-ui/react": "2.0.2",
13
+ "@public-ui/themes": "2.0.2",
14
+ "@types/node": "20.10.5",
15
+ "@types/react": "18.2.45",
16
+ "@types/react-dom": "18.2.18",
17
17
  "@unocss/preset-uno": "0.58.0",
18
18
  "@unocss/webpack": "0.58.0",
19
19
  "ajv": "8.12.0",
20
- "chromedriver": "119.0.1",
20
+ "chromedriver": "120.0.0",
21
21
  "cpy-cli": "5.0.0",
22
22
  "eslint-plugin-jsx-a11y": "6.8.0",
23
23
  "eslint-plugin-react": "7.33.2",
@@ -26,13 +26,13 @@
26
26
  "npm-run-all": "4.1.5",
27
27
  "react": "18.2.0",
28
28
  "react-dom": "18.2.0",
29
- "react-router": "6.20.1",
30
- "react-router-dom": "6.20.1",
29
+ "react-router": "6.21.0",
30
+ "react-router-dom": "6.21.0",
31
31
  "rimraf": "3.0.2",
32
32
  "ts-prune": "0.10.3",
33
- "typescript": "5.3.2",
33
+ "typescript": "5.3.3",
34
34
  "world_countries_lists": "2.8.2",
35
- "yup": "1.3.2"
35
+ "yup": "1.3.3"
36
36
  },
37
37
  "files": [
38
38
  ".eslintignore",
@@ -3,16 +3,12 @@ import { KolBadge } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
5
 
6
- const PROPS = {
7
- _label: 'Label',
8
- };
9
-
10
6
  export const BadgeBasic: FC = () => (
11
7
  <div className="flex gap-2">
12
- <KolBadge {...PROPS}></KolBadge>
13
- <KolBadge _color="#86ffc6" {...PROPS}></KolBadge>
14
- <KolBadge _color="#06539e" {...PROPS}></KolBadge>
15
- <KolBadge _color="#ae0000" {...PROPS}></KolBadge>
16
- <KolBadge _color="#8b008b" {...PROPS}></KolBadge>
8
+ <KolBadge _label="schwarz"></KolBadge>
9
+ <KolBadge _color="#86ffc6" _label="türkis"></KolBadge>
10
+ <KolBadge _color="#06539e" _label="blau"></KolBadge>
11
+ <KolBadge _color="#ae0000" _label="rot"></KolBadge>
12
+ <KolBadge _color="#8b008b" _label="lila"></KolBadge>
17
13
  </div>
18
14
  );
@@ -1,25 +1,29 @@
1
1
  import React from 'react';
2
- import { KolBadge } from '@public-ui/react';
2
+ import { KolBadge, KolHeading } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
5
 
6
- const PROPS = {
7
- _label: 'Label',
6
+ const createBadgeProps = (label: string) => ({
8
7
  _smartButton: {
9
8
  _icons: 'codicon codicon-close',
10
- _label: 'Entfernen',
9
+ _label: `Entfernen von ${label}`,
11
10
  _on: {
12
11
  onClick: () => alert('clicked'),
13
12
  },
14
13
  },
15
- };
14
+ });
16
15
 
17
16
  export const BadgeButton: FC = () => (
18
- <div className="flex gap-2">
19
- <KolBadge {...PROPS}></KolBadge>
20
- <KolBadge _color="#86ffc6" {...PROPS}></KolBadge>
21
- <KolBadge _color="#06539e" {...PROPS}></KolBadge>
22
- <KolBadge _color="#ae0000" {...PROPS}></KolBadge>
23
- <KolBadge _color="#8b008b" {...PROPS}></KolBadge>
24
- </div>
17
+ <>
18
+ <div className="mb-4">
19
+ <KolHeading _label="Badge" _level={2} />
20
+ </div>
21
+ <div className="flex gap-2">
22
+ <KolBadge _label="schwarz" {...createBadgeProps('schwarz')}></KolBadge>
23
+ <KolBadge _label="türkis" _color="#86ffc6" {...createBadgeProps('türkis')}></KolBadge>
24
+ <KolBadge _label="blau" _color="#06539e" {...createBadgeProps('blau')}></KolBadge>
25
+ <KolBadge _label="rot" _color="#ae0000" {...createBadgeProps('rot')}></KolBadge>
26
+ <KolBadge _label="lila" _color="#8b008b" {...createBadgeProps('lila')}></KolBadge>
27
+ </div>
28
+ </>
25
29
  );
@@ -7,27 +7,27 @@ export const HeadingBadged: FC = () => (
7
7
  <div className="grid gap-4">
8
8
  <KolHeading _label="" _level={1}>
9
9
  <span slot="expert">
10
- Eine Überschrift mit einem <KolBadge _color="#f00" _label="Label"></KolBadge>
10
+ Eine Überschrift mit einem <KolBadge _label="Label"></KolBadge>
11
11
  </span>
12
12
  </KolHeading>
13
13
  <KolHeading _label="" _level={2}>
14
14
  <span slot="expert">
15
- Eine Überschrift mit einem <KolBadge _color="#0f0" _label="Label"></KolBadge>
15
+ Eine Überschrift mit einem <KolBadge _color="#86ffc6" _label="Label"></KolBadge>
16
16
  </span>
17
17
  </KolHeading>
18
18
  <KolHeading _label="" _level={3}>
19
19
  <span slot="expert">
20
- Eine Überschrift mit einem <KolBadge _color="#00f" _label="Label"></KolBadge>
20
+ Eine Überschrift mit einem <KolBadge _color="#06539e" _label="Label"></KolBadge>
21
21
  </span>
22
22
  </KolHeading>
23
23
  <KolHeading _label="" _level={4}>
24
24
  <span slot="expert">
25
- Eine Überschrift mit einem <KolBadge _color="#800080" _label="Label"></KolBadge>
25
+ Eine Überschrift mit einem <KolBadge _color="#ae0000" _label="Label"></KolBadge>
26
26
  </span>
27
27
  </KolHeading>
28
28
  <KolHeading _label="" _level={5}>
29
29
  <span slot="expert">
30
- Eine Überschrift mit einem <KolBadge _color="#ff0" _label="Label"></KolBadge>
30
+ Eine Überschrift mit einem <KolBadge _color="#8b008b" _label="Label"></KolBadge>
31
31
  </span>
32
32
  </KolHeading>
33
33
  <KolHeading _label="" _level={6}>
@@ -10,7 +10,7 @@ export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.K
10
10
  <div className="grid gap-4">
11
11
  <KolInputRadio
12
12
  {...props}
13
- _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
13
+ _options="[{'disabled':true,'label':'Frau (disabled)','value':'Frau'},{'label':'Herr'},{'label':'Firma','value':'Firma'}]"
14
14
  _label="Anrede"
15
15
  />
16
16
  <KolInputRadio
@@ -1,4 +1,18 @@
1
1
  import React, { FC } from 'react';
2
- import { KolKolibri } from '@public-ui/react';
2
+ import { KolKolibri, KolHeading } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
- export const KolibriBasic: FC = () => <KolKolibri style={{ width: 300 }} />;
5
+ export const KolibriBasic: FC = () => (
6
+ <>
7
+ <SampleDescription>
8
+ <p>Das KoliBri-Logo in verschiedenen Varianten</p>
9
+ </SampleDescription>
10
+
11
+ <KolHeading class="block" _level={3} _label="Regular" />
12
+ <KolKolibri class="block" style={{ width: 300 }} />
13
+ <KolHeading class="block" _level={3} _label="Ohne Label" />
14
+ <KolKolibri class="block" style={{ width: 300 }} _labeled={false} />
15
+ <KolHeading class="block" _level={3} _label="Individuelle Farbe" />
16
+ <KolKolibri class="block" style={{ width: 300 }} _color="#cc006e" />
17
+ </>
18
+ );
@@ -1,13 +1,9 @@
1
1
  import { Routes } from '../../shares/types';
2
2
 
3
3
  import { KolibriBasic } from './basic';
4
- import { KolibriAnimated } from './animated';
5
- import { KolibriNoLabel } from './no-label';
6
4
 
7
5
  export const KOLIBRI_ROUTES: Routes = {
8
6
  kolibri: {
9
7
  basic: KolibriBasic,
10
- animated: KolibriAnimated,
11
- 'no-label': KolibriNoLabel,
12
8
  },
13
9
  };
@@ -2,21 +2,31 @@ import React from 'react';
2
2
  import { KolNav } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const NavAriaCurrent: FC = () => (
7
- <KolNav
8
- _label="Main navigation"
9
- _links={[
10
- {
11
- _label: 'Homepage',
12
- _href: '#/',
13
- },
14
- {
15
- _label: '2 Navigation point',
16
- _href: '#/untermenu',
17
- _active: true,
18
- },
19
- ]}
20
- _ariaCurrentValue="page"
21
- />
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ Dieses Beispiel zeigt eine Navigation, bei welcher der zweite Link auf die aktuelle Seite verweist. Dadurch wird ihm automatisch das Attribut{' '}
12
+ <code>aria-current=&quot;page&quot;</code> zugewiesen.
13
+ </p>
14
+ </SampleDescription>
15
+
16
+ <KolNav
17
+ class="block w-sm"
18
+ _label="Main navigation"
19
+ _links={[
20
+ {
21
+ _label: 'Homepage',
22
+ _href: '#/',
23
+ },
24
+ {
25
+ _label: 'Nav - aria-current (Aktuelle Seite)',
26
+ _href: '#/nav/aria-current',
27
+ _active: true,
28
+ },
29
+ ]}
30
+ />
31
+ </>
22
32
  );
@@ -5,6 +5,7 @@ import { FC } from 'react';
5
5
 
6
6
  export const NavBasic: FC = () => (
7
7
  <KolNav
8
+ class="block w-sm"
8
9
  _label="Main navigation"
9
10
  _links={[
10
11
  {
@@ -17,7 +18,6 @@ export const NavBasic: FC = () => (
17
18
  _href: '#/untermenu',
18
19
  },
19
20
  {
20
- _active: true,
21
21
  _label: '3 Navigation point',
22
22
  _href: '#abc',
23
23
  _children: [
@@ -31,13 +31,11 @@ export const NavBasic: FC = () => (
31
31
  _target: 'asdasd',
32
32
  },
33
33
  {
34
- _active: true,
35
34
  _label: '3.3 Navigation point',
36
35
  _href: '#abc',
37
36
  _icons: 'fa-solid fa-cat',
38
37
  _children: [
39
38
  {
40
- _active: true,
41
39
  _label: '3.3.1 Navigation point (active)',
42
40
  _href: '#abc',
43
41
  },
@@ -16,7 +16,6 @@ export const NavHorizontal: FC = () => (
16
16
  _href: '#/nav/horizontal',
17
17
  },
18
18
  {
19
- _active: true,
20
19
  _label: '3 Navigation point',
21
20
  _href: '#/nav/horizontal',
22
21
  _children: [
@@ -29,12 +28,10 @@ export const NavHorizontal: FC = () => (
29
28
  _target: 'asdasd',
30
29
  },
31
30
  {
32
- _active: true,
33
31
  _label: '3.3 Navigation point',
34
32
  _href: '#/nav/horizontal',
35
33
  _children: [
36
34
  {
37
- _active: true,
38
35
  _label: '3.3.1 Navigation point (active)',
39
36
  _href: '#abc',
40
37
  },
@@ -1,17 +1,11 @@
1
1
  import { Routes } from '../../shares/types';
2
-
3
- import { NavActive } from './active';
4
-
5
2
  import { NavAriaCurrent } from './aria-current';
6
-
7
3
  import { NavBasic } from './basic';
8
-
9
4
  import { NavHorizontal } from './horizontal';
10
5
 
11
6
  export const NAV_ROUTES: Routes = {
12
7
  nav: {
13
8
  basic: NavBasic,
14
- active: NavActive,
15
9
  'aria-current': NavAriaCurrent,
16
10
  horizontal: NavHorizontal,
17
11
  },
@@ -1,13 +1,24 @@
1
+ import { ToasterService } from '@public-ui/components';
1
2
  import React, { FC } from 'react';
2
3
  import { KolSplitButton } from '@public-ui/react';
3
4
 
5
+ const toaster = ToasterService.getInstance(document);
6
+
4
7
  export const SplitButtonBasic: FC = () => {
8
+ const handleButtonClick = () => {
9
+ void toaster.enqueue({
10
+ description: 'The Button has been clicked.',
11
+ label: `Button Clicked`,
12
+ type: 'info',
13
+ });
14
+ };
15
+
5
16
  return (
6
17
  <div className="grid gap-4">
7
- <KolSplitButton _label="Nur der Pfeil öffnet" _on={{ onClick: console.log }}>
18
+ <KolSplitButton _label="Nur der Pfeil öffnet" className="w-200px" _on={{ onClick: handleButtonClick }}>
8
19
  Drowndown-Inhalt
9
20
  </KolSplitButton>
10
- <KolSplitButton _label="ohne label" _hide-label _icons="codicon codicon-git-pull-request">
21
+ <KolSplitButton _label="ohne label" _hide-label _icons="codicon codicon-git-pull-request" className="w-200px">
11
22
  Drowndown-Inhalt
12
23
  </KolSplitButton>
13
24
  </div>
@@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client';
3
3
  import { HashRouter as Router } from 'react-router-dom';
4
4
 
5
5
  import { defineCustomElements } from '@public-ui/components/dist/loader';
6
- import type { Generic } from '@a11y-ui/core';
6
+ import type { Generic } from 'adopted-style-sheets';
7
7
  import { register } from '@public-ui/components';
8
8
  import { BAMF, BMF, BZStv1, DEFAULT, DESYv1, DESYv2, ECL_EC, ECL_EU, ITZBund, MAPZ, ZOLLv2, ZOLLv3 } from '@public-ui/themes';
9
9
  import { TH } from '@public-oss/kolibri-themes';
@@ -35,12 +35,18 @@ void (async () => {
35
35
 
36
36
  /**
37
37
  * You should patch the theme after the components and your default theme are registered.
38
- *
38
+ **
39
39
  * ↓ That is a tiny sample!
40
40
  */
41
- // KoliBriDevHelper.patchTheme('my-theme', {
42
- // 'KOL-BUTTON': 'button{border:2px solid red;}',
43
- // });
41
+ // KoliBriDevHelper.patchTheme(
42
+ // 'default',
43
+ // {
44
+ // 'KOL-BUTTON': 'button{border:2px solid red;}',
45
+ // },
46
+ // {
47
+ // append: true,
48
+ // },
49
+ // );
44
50
 
45
51
  const htmlDivElement = document.querySelector('div#app');
46
52
  if (htmlDivElement instanceof HTMLDivElement) {
@@ -70,8 +70,8 @@ export const InputsGetValue: FC = () => {
70
70
  <EventTargetContext.Provider value={eventTarget}>
71
71
  <SampleDescription>
72
72
  <p>
73
- This sample show how the input components <code>getValue()</code> method works. It&apos;s called when clicking the &quout;getValue()&quout; button
74
- and prints the current value right next to itself.
73
+ This sample show how the input components <code>getValue()</code> method works. It&apos;s called when clicking the &quot;getValue()&quot; button and
74
+ prints the current value right next to itself.
75
75
  </p>
76
76
  </SampleDescription>
77
77
 
package/dist/1130.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1130.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1130],{1130:(e,t,a)=>{switch(location.pathname){case"/dev/toaster.html":a.e(5860).then(a.bind(a,5860));break;case"/dev/reprod-accordion-does-not-toggle-with-open.html":a.e(7380).then(a.bind(a,7380));break;case"/dev/details-synced-open-state.html":a.e(2738).then(a.bind(a,2738))}}}]);
package/dist/1474.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1474.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1474],{7822:(t,e,n)=>{n.d(e,{I:()=>a});var i=n(7429);const a=({accessKey:t,label:e})=>{let[n,...a]=e.split(t);return 0===a.length&&(t=t.toUpperCase(),[n,...a]=e.split(t)),0===a.length&&(t=t.toLowerCase(),[n,...a]=e.split(t)),(0,i.h)(i.F,null,n,a.length?(0,i.h)(i.F,null,(0,i.h)("u",null,t),a.join(t)):null)}},3978:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(5869),a=n(5628);const o=(0,n(6278).d)();class s{constructor(t,e,n){var i,s;if(this.setFormAssociatedValue=t=>{var e;const n=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==n&&""!==n||(0,a.d)(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);const i=this.tryToStringifyValue(t);this.syncValue(t,i,this.formAssociated),this.syncValue(t,i,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(n),this.name=e,o){switch(null===(i=this.host)||void 0===i||i.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===(s=this.host)||void 0===s||s.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,n){if(o)try{if("boolean"!=typeof(n="object"==typeof n&&null!==n?JSON.stringify(n):n)&&"number"!=typeof n&&"string"!=typeof n)throw new Error("Invalid value type: "+typeof n);null==e||e.setAttribute(t,`${n}`)}catch(n){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,a.g)(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,n){n&&("select"===this.name?(n.querySelectorAll("option").forEach((t=>{n.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",""),n.appendChild(t)}}))):"string"==typeof e?(n.setAttribute("value",e),n.value=e):(n.removeAttribute("value"),n.value=""))}validateName(t){((t,e,n)=>{(0,i.d)(t,"_name",e,n)})(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&(0,a.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(o&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}},6433:(t,e,n)=>{n.d(e,{I:()=>u,g:()=>d});var i=n(5869),a=n(8609),o=n(6789),s=n(5628),l=n(347),r=n(7108),h=n(3978);const d=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,n="string"==typeof t._hint&&t._hint.length>0,i=[];return!0===e&&i.push(`${t._id}-error`),!0===n&&i.push(`${t._id}-hint`),{hasError:e,hasHint:n,ariaDescribedBy:i}};class c extends h.A{constructor(t,e,n){super(t,e,n),this.component=t}validateAlert(t){(0,i.a)(this.component,"_alert",t)}validateTouched(t){((t,e)=>{(0,i.a)(t,"_touched",e)})(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class u extends c{constructor(t,e,n){super(t,e,n),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,i.d)(this.component,"_accessKey",t)}validateAdjustHeight(t){((t,e)=>{(0,i.a)(t,"_adjustHeight",e)})(this.component,t)}validateDisabled(t){(0,i.a)(this.component,"_disabled",t),!0===t&&(0,s.e)()}validateError(t){(0,i.d)(this.component,"_error",t)}validateHideError(t){((t,e,n)=>{(0,i.a)(t,"_hideError",e,n)})(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&(0,s.a)("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){(0,a.v)(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&(0,s.a)("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){(0,i.d)(this.component,"_hint",t)}validateId(t){(0,i.d)(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||(0,s.d)("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){(0,o.a)(this.component,t)}validateOn(t){"object"==typeof t&&(0,i.s)(this.component,"_on",t)}validateSmartButton(t){(0,i.o)(t,(()=>{try{t=(0,i.p)(t)}catch(t){}(0,i.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.validateHideError(this.component._hideError),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 n=t.target.value;(0,l.t)("change",this.host,n),this.setFormAssociatedValue(n),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,n),this.valueChangeListeners.forEach((t=>t(n)))}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)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}},347:(t,e,n)=>{function i(t){t.stopImmediatePropagation(),t.stopPropagation()}function a(t,e,n){e&&function(t,e,n){const i=t.dispatchEvent(function(t,e){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}(e,n))}(e,t,n)}n.d(e,{s:()=>i,t:()=>a})},8609:(t,e,n)=>{n.d(e,{v:()=>a});var i=n(5869);const a=(t,e,n={})=>{(0,i.a)(t,"_hideLabel",e,n)}},1474:(t,e,n)=>{n.r(e),n.d(e,{kol_textarea:()=>u});var i=n(7429),a=n(6278),o=n(5869),s=n(6088),l=n(6433),r=n(7822),h=n(3651);const d=["both","horizontal","vertical","none"];class c 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,o.a)(this.component,"_hasCounter",t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validateMaxLength(t){(0,o.e)(this.component,"_maxLength",t,{hooks:{afterPatch:this.afterSyncCharCounter},min:0})}validatePlaceholder(t){(0,o.d)(this.component,"_placeholder",t)}validateReadOnly(t){(0,o.a)(this.component,"_readOnly",t)}validateResize(t){(0,o.w)(this.component,"_resize",(t=>"string"==typeof t&&d.includes(t)),new Set(`String {${d.join(", ")}`),t)}validateRequired(t){(0,o.a)(this.component,"_required",t)}validateRows(t){(0,h.v)(this.component,t)}validateValue(t){(0,o.d)(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.validateValue(this.component._value)}}const u=class{getValue(){return t=this,null,e=function*(){var t;return null===(t=this.ref)||void 0===t?void 0:t.value},new Promise(((n,i)=>{var a=t=>{try{s(e.next(t))}catch(t){i(t)}},o=t=>{try{s(e.throw(t))}catch(t){i(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(a,o);s((e=e.apply(t,null)).next())}));var t,e}render(){const{ariaDescribedBy:t}=(0,l.g)(this.state),e=(0,s.s)(this.state._label);return(0,i.h)(i.H,{class:{"has-value":this.state._hasValue}},(0,i.h)("kol-input",{class:{textarea:!0,"hide-label":!!this.state._hideLabel,"has-counter":!!this.state._hasCounter},_accessKey:this.state._accessKey,_alert:this.state._alert,_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:this.state._id,_label:this.state._label,_maxLength:this.state._maxLength,_readOnly:this.state._readOnly,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},(0,i.h)("span",{slot:"label"},e?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey?(0,i.h)(i.F,null,(0,i.h)(r.I,{accessKey:this.state._accessKey,label:this.state._label})," ",(0,i.h)("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{slot:"input"},(0,i.h)("textarea",Object.assign({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:"false"},this.controller.onFacade,{onKeyUp:this.onKeyUp,style:{resize:this.state._resize},value:this.state._value})))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.ref=t,(0,s.a)(this.host,this.ref)},this.onKeyUp=()=>{this.ref instanceof HTMLTextAreaElement&&((0,o.s)(this,"_currentLength",this.ref.value.length),this.state._adjustHeight&&(this._rows=(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})(this.ref)))},this._accessKey=void 0,this._adjustHeight=!1,this._alert=!0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._id=void 0,this._label=void 0,this._maxLength=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._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.controller=new c(this,"textarea",this.host)}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)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMaxLength(t){this.controller.validateMaxLength(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)}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._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}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"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_resize:["validateResize"],_required:["validateRequired"],_rows:["validateRows"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};u.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, option, select, textarea, .input-label) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n"}},6789:(t,e,n)=>{n.d(e,{a:()=>c,c:()=>r,h:()=>l,v:()=>d});var i=n(5628),a=n(5869);const o=/[a-zA-Z0-9äöüÄÖÜß]/g,s=/^\d+$/;function l(t,e=1){return function(t){var e;return"string"==typeof t&&(null===(e=t.match(o))||void 0===e?void 0:e.length)||0}(t)>=e}function r(t){return s.test(t)}const h=new Set(["string"]),d=(t,e,n={})=>{(0,a.w)(t,"_label",(t=>"string"==typeof t),h,e,function(t){var e;return{hooks:{afterPatch:(e,n,a,o)=>{var s,h;"function"==typeof(null===(s=t.hooks)||void 0===s?void 0:s.afterPatch)&&(null===(h=t.hooks)||void 0===h||h.afterPatch(e,n,a,o)),"string"==typeof e&&!1===l(e,3)&&!1===r(e)&&(0,i.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,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(e=t.hooks)||void 0===e?void 0:e.beforePatch}}}(n))},c=d},3651:(t,e,n)=>{n.d(e,{v:()=>a});var i=n(5869);const a=(t,e)=>{(0,i.e)(t,"_rows",e,{min:1})}},7108:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(5628),a=n(5869);const o={hooks:{afterPatch:t=>{-1!==t&&0!==t&&(0,i.a)("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},s=(t,e)=>{(0,a.e)(t,"_tabIndex",e,o)}}}]);
package/dist/183.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 183.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[183],{183:(t,n,e)=>{e.r(n),e.d(n,{kol_link_group:()=>h});var i=e(7429),a=e(6789),l=e(5869),o=e(6297),s=e(7404);const r=t=>{const n=[];return t.links.map(((e,a)=>{n.push((0,i.h)("li",{key:a,class:{ident:a>0&&"vertical"===t.orientation,"list-none":0===a&&"horizontal"===t.orientation},style:{listStyleType:t.listStyleType}},(0,i.h)("kol-link",Object.assign({},e))))})),n},h=class{constructor(t){(0,i.r)(this,t),this.isUl=!0,this._listStyleType=void 0,this._label=void 0,this._links=void 0,this._orientation="vertical",this.state={_label:"…",_listStyleType:"disc",_links:[],_orientation:"vertical"}}render(){return(0,i.h)("nav",{"aria-label":this.state._label,class:{vertical:"vertical"===this.state._orientation,horizontal:"horizontal"===this.state._orientation}},!1===this.isUl?(0,i.h)("ol",null,(0,i.h)(r,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType})):(0,i.h)("ul",null,(0,i.h)(r,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType})))}validateLabel(t,n,e=!1){e||(0,o.r)(this.state._label),(0,a.v)(this,t),(0,o.a)(this.state._label)}validateListStyleType(t){(0,l.w)(this,"_listStyleType",(t=>{switch(t){case"disc":case"circle":case"square":case"none":return this.isUl=!0,!0;case"decimal":case"decimal-leading-zero":case"lower-alpha":case"lower-latin":case"lower-greek":case"lower-roman":case"upper-alpha":case"upper-latin":case"upper-roman":return this.isUl=!1,!0;default:return!1}}),new Set(["https://www.w3schools.com/tags/tag_ol.asp"]),t)}validateLinks(t){(0,s.w)("KolLinkGroup",this,t)}validateOrientation(t){(0,l.w)(this,"_orientation",(t=>"horizontal"===t||"vertical"===t),new Set(["Orientation {horizontal, vertical}"]),t,{defaultValue:"vertical"})}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateListStyleType(this._listStyleType),this.validateLinks(this._links),this.validateOrientation(this._orientation)}disconnectedCallback(){(0,o.r)(this.state._label)}static get watchers(){return{_label:["validateLabel"],_listStyleType:["validateListStyleType"],_links:["validateLinks"],_orientation:["validateOrientation"]}}};h.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tul {\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tnav.horizontal ul {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\n\tnav.horizontal li {\n\t\tmargin-left: 1.25rem;\n\t\tmargin-right: 0.25rem;\n\t}\n\n\tnav.horizontal li:first-child {\n\t\tmargin-left: 0;\n\t}\n\n\tnav.horizontal li:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\tnav.vertical li {\n\t\tmargin-left: 1.75rem;\n\t\tmargin-right: 0.5rem;\n\t}\n\n\tli.list-none {\n\t\tlist-style-type: none !important;\n\t\tmargin-left: 0;\n\t}\n}\n"}},6789:(t,n,e)=>{e.d(n,{a:()=>d,c:()=>r,h:()=>s,v:()=>c});var i=e(5628),a=e(5869);const l=/[a-zA-Z0-9äöüÄÖÜß]/g,o=/^\d+$/;function s(t,n=1){return function(t){var n;return"string"==typeof t&&(null===(n=t.match(l))||void 0===n?void 0:n.length)||0}(t)>=n}function r(t){return o.test(t)}const h=new Set(["string"]),c=(t,n,e={})=>{(0,a.w)(t,"_label",(t=>"string"==typeof t),h,n,function(t){var n;return{hooks:{afterPatch:(n,e,a,l)=>{var o,h;"function"==typeof(null===(o=t.hooks)||void 0===o?void 0:o.afterPatch)&&(null===(h=t.hooks)||void 0===h||h.afterPatch(n,e,a,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=t.hooks)||void 0===n?void 0:n.beforePatch}}}(e))},d=c},6297:(t,n,e)=>{e.d(n,{a:()=>a,r:()=>l});const i=new Set;function a(t){i.has(t)?console.error(`There already is a nav element with the label "${t}"`):i.add(t)}function l(t){i.delete(t)}},7404:(t,n,e)=>{e.d(n,{w:()=>l});var i=e(5628),a=e(5869);const l=(t,n,e)=>{(0,a.c)(n,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),e),(0,i.c)(t,n.state._links.length)}}}]);
package/dist/2337.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 2337.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[2337],{2337:(t,e,n)=>{n.r(e),n.d(e,{kol_input_file:()=>p});var i=n(7429),a=n(6278),l=n(347),o=n(6088),s=n(6433),r=n(5869),d=n(7273),h=n(7822);class c extends d.I{constructor(t,e,n){super(t,e,n),this.component=t}validateAccept(t){(0,r.d)(this.component,"_accept",t)}validateMultiple(t){(0,r.a)(this.component,"_multiple",t)}validateRequired(t){(0,r.a)(this.component,"_required",t)}validateValue(t){(0,r.d)(this.component,"_value",t),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateValue(this.component._value)}}const p=class{getValue(){return t=this,null,e=function*(){var t;return null===(t=this.ref)||void 0===t?void 0:t.files},new Promise(((n,i)=>{var a=t=>{try{o(e.next(t))}catch(t){i(t)}},l=t=>{try{o(e.throw(t))}catch(t){i(t)}},o=t=>t.done?n(t.value):Promise.resolve(t.value).then(a,l);o((e=e.apply(t,null)).next())}));var t,e}render(){const{ariaDescribedBy:t}=(0,s.g)(this.state),e=(0,o.s)(this.state._label);return(0,i.h)(i.H,null,(0,i.h)("kol-input",{class:{file:!0,"hide-label":!!this.state._hideLabel},_accessKey:this.state._accessKey,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},(0,i.h)("span",{slot:"label"},e?(0,i.h)("slot",{name:"expert"}):"string"==typeof this.state._accessKey?(0,i.h)(i.F,null,(0,i.h)(h.I,{accessKey:this.state._accessKey,label:this.state._label})," ",(0,i.h)("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{slot:"input"},(0,i.h)("input",Object.assign({ref:this.catchRef,title:"",accept:this.state._accept,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,multiple:this.state._multiple,name:this.state._name,required:this.state._required,spellcheck:"false",type:"file",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})))))}constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.ref=t,(0,o.a)(this.host,this.ref)},this.onChange=t=>{var e;if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const n=this.ref.files;(0,l.s)(t),(0,l.t)("change",this.host,n),this.controller.setFormAssociatedValue(n),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,n)}},this._accept=void 0,this._accessKey=void 0,this._alert=!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._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${(0,a.n)()}`,_label:""},this.controller=new c(this,"input-file",this.host)}validateAccept(t){this.controller.validateAccept(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(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)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(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._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return(0,i.g)(this)}static get watchers(){return{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};p.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, option, select, textarea, .input-label) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\tlabel input[type='file']::-webkit-file-upload-button {\n\t\tdisplay: none;\n\t}\n\n\tlabel input[type='file']:before {\n\t\tcontent: 'Datei auswählen';\n\t}\n\n\tlabel input[multiple]:before {\n\t\tcontent: 'Dateien auswählen';\n\t}\n\n\tdiv.input {\n\t\tcursor: pointer;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n"}}}]);
package/dist/2412.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 2412.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[2412],{347:(t,n,e)=>{function i(t){t.stopImmediatePropagation(),t.stopPropagation()}function o(t,n,e){n&&function(t,n,e){const i=t.dispatchEvent(function(t,n){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}(n,e))}(n,t,e)}e.d(n,{s:()=>i,t:()=>o})},2412:(t,n,e)=>{e.r(n),e.d(n,{kol_details:()=>d});var i=e(7429),o=e(6789),s=e(8318),a=e(347),l=e(5869),h=e(6088);class r{constructor(t,n,e){this.detailsElement=t,this.summaryElement=n,this.contentElement=e,this.isClosing=!1,this.isExpanding=!1,this.summaryElement.addEventListener("click",this.handleSummaryClick.bind(this))}handleSummaryClick(t){t.preventDefault(),this.isClosing||!this.detailsElement.open?this.open():(this.isExpanding||this.detailsElement.open)&&this.collapse()}open(){this.detailsElement.open=!0,window.requestAnimationFrame(this.expand.bind(this))}expand(){this.isExpanding=!0,this.animateContentHeight("expand")}collapse(){this.isClosing=!0,this.animateContentHeight("collapse")}animateContentHeight(t){let n="expand"===t?0:this.contentElement.offsetHeight,e="expand"===t?this.contentElement.offsetHeight:0;this.animation&&(n=this.contentElement.offsetHeight,this.animation.cancel(),"expand"===t&&(e=this.contentElement.offsetHeight)),this.animation=this.contentElement.animate({height:[`${n}px`,`${e}px`]},{duration:matchMedia("(prefers-reduced-motion)").matches?0:250,easing:"ease-out"}),this.animation.addEventListener("finish",(()=>{this.onAnimationFinish()}),{once:!0}),this.animation.addEventListener("cancel",(()=>{"expand"===t?this.isExpanding=!1:this.isClosing=!1}),{once:!0})}onAnimationFinish(){this.detailsElement.open=this.isExpanding,this.animation=void 0,this.isClosing=!1,this.isExpanding=!1}}const d=class{constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.summaryElement=t,(0,h.a)(this.host,this.summaryElement)},this.handleToggle=t=>{clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var n,e,i,o;Boolean(null===(n=this.detailsElement)||void 0===n?void 0:n.open)!==this.state._open&&(this._open=Boolean(null===(e=this.detailsElement)||void 0===e?void 0:e.open),(0,a.t)("toggle",this.host,this._open),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onToggle)&&(null===(o=this.state._on)||void 0===o||o.onToggle(t,this._open)))}),25)},this._label=void 0,this._on=void 0,this._open=!1,this.state={_label:"…",_on:{}}}render(){return(0,i.h)(i.H,null,(0,i.h)("details",{ref:t=>{this.detailsElement=t},onToggle:this.handleToggle},(0,i.h)("summary",{ref:this.catchRef},(0,i.h)("kol-icon",{_label:"",_icons:"codicon codicon-chevron-right",class:"icon "+(this.state._open?"is-open":"")}),(0,i.h)("span",null,this.state._label)),(0,i.h)("div",{"aria-hidden":!1===this.state._open?"true":void 0,class:"content",ref:t=>this.contentElement=t},(0,i.h)("kol-indented-text",null,(0,i.h)("slot",null)))))}validateLabel(t){(0,o.v)(this,t)}validateOn(t){"object"==typeof t&&null!==t&&"function"==typeof t.onToggle&&(0,l.s)(this,"_on",t)}validateOpen(t){(0,s.v)(this,t)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateOpen(this._open)}componentDidLoad(){if(this.detailsElement&&this.summaryElement&&this.contentElement){const t=new r(this.detailsElement,this.summaryElement,this.contentElement);this.state._open&&t.open()}}get host(){return(0,i.g)(this)}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}}};d.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\t.content {\n\t\toverflow: hidden;\n\t}\n\n\tdetails > kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n\n\t.icon.is-open::part(icon) {\n\t\ttransform: rotate(90deg);\n\t}\n}\n"}},6789:(t,n,e)=>{e.d(n,{a:()=>c,c:()=>h,h:()=>l,v:()=>d});var i=e(5628),o=e(5869);const s=/[a-zA-Z0-9äöüÄÖÜß]/g,a=/^\d+$/;function l(t,n=1){return function(t){var n;return"string"==typeof t&&(null===(n=t.match(s))||void 0===n?void 0:n.length)||0}(t)>=n}function h(t){return a.test(t)}const r=new Set(["string"]),d=(t,n,e={})=>{(0,o.w)(t,"_label",(t=>"string"==typeof t),r,n,function(t){var n;return{hooks:{afterPatch:(n,e,o,s)=>{var a,r;"function"==typeof(null===(a=t.hooks)||void 0===a?void 0:a.afterPatch)&&(null===(r=t.hooks)||void 0===r||r.afterPatch(n,e,o,s)),"string"==typeof n&&!1===l(n,3)&&!1===h(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=t.hooks)||void 0===n?void 0:n.beforePatch}}}(e))},c=d},8318:(t,n,e)=>{e.d(n,{v:()=>o});var i=e(5869);const o=(t,n,e)=>{(0,i.a)(t,"_open",n,e)}}}]);
package/dist/3303.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 3303.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[3303],{3303:(t,n,e)=>{e.r(n),e.d(n,{kol_skip_nav:()=>s});var i=e(7429),a=e(6789),o=e(6297),l=e(7404);const s=class{constructor(t){(0,i.r)(this,t),this._label=void 0,this._links=void 0,this.state={_label:"…",_links:[]}}render(){return(0,i.h)("nav",{"aria-label":this.state._label},(0,i.h)("ul",null,this.state._links.map(((t,n)=>(0,i.h)("li",{key:n},(0,i.h)("kol-link-wc",Object.assign({},t)))))))}validateLabel(t,n,e=!1){e||(0,o.r)(this.state._label),(0,a.v)(this,t),(0,o.a)(this.state._label)}validateLinks(t){(0,l.w)("KolSkipNav",this,t)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){(0,o.r)(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};s.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tul {\n\t\tdisplay: grid;\n\t\tlist-style: none;\n\t\tplace-items: center;\n\t}\n\n\tul li {\n\t\theight: 0;\n\t}\n\n\tkol-link-wc a {\n\t\tleft: -99999px;\n\t\toverflow: hidden;\n\t\tposition: absolute;\n\t\tz-index: 9999999;\n\t\tline-height: 1em;\n\t}\n\n\tkol-link-wc a:focus {\n\t\tbackground-color: #fff;\n\t\tleft: unset;\n\t\tposition: unset;\n\t}\n}\n"}},6789:(t,n,e)=>{e.d(n,{a:()=>c,c:()=>r,h:()=>s,v:()=>d});var i=e(5628),a=e(5869);const o=/[a-zA-Z0-9äöüÄÖÜß]/g,l=/^\d+$/;function s(t,n=1){return function(t){var n;return"string"==typeof t&&(null===(n=t.match(o))||void 0===n?void 0:n.length)||0}(t)>=n}function r(t){return l.test(t)}const h=new Set(["string"]),d=(t,n,e={})=>{(0,a.w)(t,"_label",(t=>"string"==typeof t),h,n,function(t){var n;return{hooks:{afterPatch:(n,e,a,o)=>{var l,h;"function"==typeof(null===(l=t.hooks)||void 0===l?void 0:l.afterPatch)&&(null===(h=t.hooks)||void 0===h||h.afterPatch(n,e,a,o)),"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=t.hooks)||void 0===n?void 0:n.beforePatch}}}(e))},c=d},6297:(t,n,e)=>{e.d(n,{a:()=>a,r:()=>o});const i=new Set;function a(t){i.has(t)?console.error(`There already is a nav element with the label "${t}"`):i.add(t)}function o(t){i.delete(t)}},7404:(t,n,e)=>{e.d(n,{w:()=>o});var i=e(5628),a=e(5869);const o=(t,n,e)=>{(0,a.c)(n,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),e),(0,i.c)(t,n.state._links.length)}}}]);