@public-ui/sample-react 2.0.7 → 2.0.9

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 (292) hide show
  1. package/dist/1090.js +2 -0
  2. package/dist/1181.js +2 -0
  3. package/dist/1218.js +2 -0
  4. package/dist/1280.js +2 -0
  5. package/dist/1338.js +2 -0
  6. package/dist/1517.js +2 -0
  7. package/dist/1596.js +2 -0
  8. package/dist/{9224.js → 2079.js} +2 -2
  9. package/dist/2163.js +2 -0
  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/{3384.js → 3034.js} +2 -2
  15. package/dist/3099.js +2 -0
  16. package/dist/3145.js +2 -0
  17. package/dist/3345.js +2 -0
  18. package/dist/3388.js +2 -0
  19. package/dist/3466.js +2 -0
  20. package/dist/3580.js +2 -0
  21. package/dist/{6112.js → 3600.js} +2 -2
  22. package/dist/3619.js +2 -0
  23. package/dist/3776.js +2 -0
  24. package/dist/{2984.js → 3845.js} +2 -2
  25. package/dist/4150.js +2 -0
  26. package/dist/42.js +2 -0
  27. package/dist/4279.js +2 -0
  28. package/dist/4463.js +2 -0
  29. package/dist/4669.js +2 -0
  30. package/dist/4686.js +2 -0
  31. package/dist/4689.js +2 -0
  32. package/dist/4756.js +2 -0
  33. package/dist/5027.js +2 -0
  34. package/dist/521.js +2 -0
  35. package/dist/5324.js +2 -0
  36. package/dist/5373.js +2 -0
  37. package/dist/5518.js +2 -0
  38. package/dist/5615.js +1 -1
  39. package/dist/5853.js +2 -0
  40. package/dist/6010.js +2 -0
  41. package/dist/6308.js +2 -0
  42. package/dist/6826.js +2 -0
  43. package/dist/7170.js +2 -0
  44. package/dist/755.js +2 -0
  45. package/dist/7654.js +2 -0
  46. package/dist/8037.js +2 -0
  47. package/dist/817.js +2 -0
  48. package/dist/8180.js +2 -0
  49. package/dist/8341.js +2 -0
  50. package/dist/8612.js +2 -0
  51. package/dist/8734.js +2 -0
  52. package/dist/881.js +2 -0
  53. package/dist/8869.js +2 -0
  54. package/dist/892.js +2 -0
  55. package/dist/8948.js +2 -0
  56. package/dist/8951.js +2 -0
  57. package/dist/9150.js +2 -0
  58. package/dist/9317.js +2 -0
  59. package/dist/9330.js +2 -0
  60. package/dist/{1892.js → 9681.js} +2 -2
  61. package/dist/9700.js +2 -0
  62. package/dist/9727.js +2 -0
  63. package/dist/9797.js +2 -0
  64. package/dist/9865.js +2 -0
  65. package/dist/9886.js +2 -0
  66. package/dist/9912.js +2 -0
  67. package/dist/9912.js.LICENSE.txt +3 -0
  68. package/dist/9984.js +1 -1
  69. package/dist/main.css +1 -1
  70. package/dist/main.js +1 -17748
  71. package/dist/main.js.LICENSE.txt +2 -2
  72. package/package.json +13 -13
  73. package/src/App.tsx +15 -17
  74. package/src/components/Sidebar.tsx +1 -1
  75. package/src/components/abbr/basic.tsx +9 -5
  76. package/src/components/accordion/basic.tsx +17 -11
  77. package/src/components/accordion/headlines.tsx +26 -20
  78. package/src/components/accordion/list.tsx +13 -7
  79. package/src/components/alert/basic.tsx +16 -9
  80. package/src/components/alert/html.tsx +26 -21
  81. package/src/components/avatar/basic.tsx +14 -9
  82. package/src/components/badge/basic.tsx +13 -7
  83. package/src/components/badge/button.tsx +19 -10
  84. package/src/components/breadcrumb/basic.tsx +52 -46
  85. package/src/components/button/access-key.tsx +22 -17
  86. package/src/components/button/baselined.tsx +12 -6
  87. package/src/components/button/basic.tsx +9 -1
  88. package/src/components/button/hide-label.tsx +24 -15
  89. package/src/components/button/icons.tsx +25 -19
  90. package/src/components/button/width.tsx +21 -15
  91. package/src/components/button-group/basic.tsx +12 -6
  92. package/src/components/button-link/icons.tsx +36 -30
  93. package/src/components/button-link/image.tsx +13 -7
  94. package/src/components/card/basic.tsx +9 -3
  95. package/src/components/card/confirm.tsx +19 -13
  96. package/src/components/card/flex.tsx +36 -27
  97. package/src/components/card/routes.ts +2 -0
  98. package/src/components/card/selection.tsx +53 -47
  99. package/src/components/details/basic.tsx +26 -17
  100. package/src/components/handout/basic.tsx +9 -9
  101. package/src/components/heading/badged.tsx +38 -32
  102. package/src/components/heading/basic.tsx +14 -8
  103. package/src/components/heading/paragraph.tsx +47 -38
  104. package/src/components/icon/basic.tsx +16 -10
  105. package/src/components/image/basic.tsx +9 -2
  106. package/src/components/indented-text/basic.tsx +23 -17
  107. package/src/components/input-checkbox/basic.tsx +13 -1
  108. package/src/components/input-checkbox/button.tsx +14 -1
  109. package/src/components/input-checkbox/switch.tsx +16 -3
  110. package/src/components/input-color/basic.tsx +12 -1
  111. package/src/components/input-date/basic.tsx +14 -1
  112. package/src/components/input-email/basic.tsx +9 -1
  113. package/src/components/input-file/basic.tsx +12 -1
  114. package/src/components/input-password/basic.tsx +9 -1
  115. package/src/components/input-password/show-password.tsx +28 -19
  116. package/src/components/input-radio/basic.tsx +9 -1
  117. package/src/components/input-radio/select.tsx +9 -3
  118. package/src/components/input-range/basic.tsx +9 -1
  119. package/src/components/input-text/basic.tsx +9 -1
  120. package/src/components/input-text/blur.tsx +17 -12
  121. package/src/components/input-text/focus.tsx +14 -8
  122. package/src/components/input-text/partials/cases.tsx +3 -4
  123. package/src/components/link/basic.tsx +25 -19
  124. package/src/components/link/icons.tsx +40 -34
  125. package/src/components/link/image.tsx +18 -12
  126. package/src/components/link/target.tsx +14 -8
  127. package/src/components/link-button/basic.tsx +14 -8
  128. package/src/components/link-group/basic.tsx +9 -1
  129. package/src/components/link-group/horizontal.tsx +9 -1
  130. package/src/components/logo/basic.tsx +9 -1
  131. package/src/components/modal/basic.tsx +37 -28
  132. package/src/components/nav/basic.tsx +7 -1
  133. package/src/components/nav/horizontal.tsx +12 -3
  134. package/src/components/pagination/basic.tsx +24 -16
  135. package/src/components/progress/basic.tsx +10 -4
  136. package/src/components/quote/basic.tsx +7 -1
  137. package/src/components/quote/block.tsx +15 -6
  138. package/src/components/select/basic.tsx +12 -1
  139. package/src/components/spin/basic.tsx +9 -1
  140. package/src/components/spin/custom.tsx +9 -3
  141. package/src/components/spin/cycle.tsx +9 -1
  142. package/src/components/split-button/basic.tsx +17 -8
  143. package/src/components/table/badge-size.tsx +12 -1
  144. package/src/components/table/sort-data.tsx +14 -4
  145. package/src/components/table/with-pagination.tsx +12 -3
  146. package/src/components/tabs/basic.tsx +18 -12
  147. package/src/components/tabs/icons-only.tsx +12 -6
  148. package/src/components/textarea/adjust-height.tsx +14 -8
  149. package/src/components/textarea/basic.tsx +9 -1
  150. package/src/components/textarea/counter.tsx +7 -1
  151. package/src/components/textarea/disabled.tsx +9 -3
  152. package/src/components/textarea/placeholder.tsx +9 -3
  153. package/src/components/textarea/readonly.tsx +9 -3
  154. package/src/components/textarea/resize.tsx +13 -7
  155. package/src/components/textarea/rows.tsx +9 -3
  156. package/src/components/toast/basic.tsx +17 -11
  157. package/src/components/version/basic.tsx +9 -2
  158. package/src/components/version/context.tsx +11 -5
  159. package/src/react.main.tsx +11 -3
  160. package/src/scenarios/complex-form/component.tsx +2 -1
  161. package/src/scenarios/complex-form/kopfdaten/component.tsx +2 -1
  162. package/src/scenarios/complex-form/location/component.tsx +2 -1
  163. package/src/scenarios/complex-form/schedule/component.tsx +2 -1
  164. package/src/scenarios/disabled-interactive-elements.tsx +161 -0
  165. package/src/scenarios/routes.ts +2 -0
  166. package/src/scenarios/static-form.tsx +28 -2
  167. package/src/shares/theme.ts +3 -5
  168. package/src/shares/types.ts +1 -1
  169. package/dist/104.js +0 -2
  170. package/dist/1296.js +0 -2
  171. package/dist/1461.js +0 -2
  172. package/dist/1684.js +0 -2
  173. package/dist/1685.js +0 -2
  174. package/dist/1804.js +0 -2
  175. package/dist/1888.js +0 -2
  176. package/dist/2120.js +0 -2
  177. package/dist/2240.js +0 -2
  178. package/dist/2364.js +0 -2
  179. package/dist/2392.js +0 -2
  180. package/dist/2444.js +0 -2
  181. package/dist/2544.js +0 -2
  182. package/dist/2628.js +0 -2
  183. package/dist/2740.js +0 -2
  184. package/dist/2764.js +0 -2
  185. package/dist/2782.js +0 -2
  186. package/dist/2812.js +0 -2
  187. package/dist/3200.js +0 -2
  188. package/dist/3204.js +0 -2
  189. package/dist/352.js +0 -2
  190. package/dist/3564.js +0 -2
  191. package/dist/3920.js +0 -2
  192. package/dist/4064.js +0 -2
  193. package/dist/4136.js +0 -1
  194. package/dist/4544.js +0 -2
  195. package/dist/4728.js +0 -2
  196. package/dist/4915.js +0 -2
  197. package/dist/4988.js +0 -2
  198. package/dist/5376.js +0 -2
  199. package/dist/5456.js +0 -2
  200. package/dist/5628.js +0 -2
  201. package/dist/5744.js +0 -2
  202. package/dist/5768.js +0 -2
  203. package/dist/5839.js +0 -2
  204. package/dist/5956.js +0 -2
  205. package/dist/5972.js +0 -2
  206. package/dist/6040.js +0 -2
  207. package/dist/6476.js +0 -2
  208. package/dist/7192.js +0 -2
  209. package/dist/7312.js +0 -2
  210. package/dist/736.js +0 -2
  211. package/dist/7496.js +0 -2
  212. package/dist/7508.js +0 -2
  213. package/dist/7596.js +0 -2
  214. package/dist/7712.js +0 -2
  215. package/dist/7804.js +0 -2
  216. package/dist/7808.js +0 -2
  217. package/dist/8188.js +0 -2
  218. package/dist/8232.js +0 -2
  219. package/dist/8248.js +0 -2
  220. package/dist/828.js +0 -2
  221. package/dist/8476.js +0 -2
  222. package/dist/8524.js +0 -2
  223. package/dist/9072.js +0 -2
  224. package/dist/9088.js +0 -2
  225. package/dist/9404.js +0 -2
  226. package/dist/9424.js +0 -2
  227. package/dist/9680.js +0 -2
  228. package/dist/9888.js +0 -2
  229. /package/dist/{104.js.LICENSE.txt → 1090.js.LICENSE.txt} +0 -0
  230. /package/dist/{1296.js.LICENSE.txt → 1181.js.LICENSE.txt} +0 -0
  231. /package/dist/{1461.js.LICENSE.txt → 1218.js.LICENSE.txt} +0 -0
  232. /package/dist/{1684.js.LICENSE.txt → 1280.js.LICENSE.txt} +0 -0
  233. /package/dist/{1685.js.LICENSE.txt → 1338.js.LICENSE.txt} +0 -0
  234. /package/dist/{1804.js.LICENSE.txt → 1517.js.LICENSE.txt} +0 -0
  235. /package/dist/{1888.js.LICENSE.txt → 1596.js.LICENSE.txt} +0 -0
  236. /package/dist/{1892.js.LICENSE.txt → 2079.js.LICENSE.txt} +0 -0
  237. /package/dist/{2120.js.LICENSE.txt → 2163.js.LICENSE.txt} +0 -0
  238. /package/dist/{2240.js.LICENSE.txt → 2415.js.LICENSE.txt} +0 -0
  239. /package/dist/{2364.js.LICENSE.txt → 2594.js.LICENSE.txt} +0 -0
  240. /package/dist/{2392.js.LICENSE.txt → 2611.js.LICENSE.txt} +0 -0
  241. /package/dist/{2444.js.LICENSE.txt → 2643.js.LICENSE.txt} +0 -0
  242. /package/dist/{2544.js.LICENSE.txt → 3034.js.LICENSE.txt} +0 -0
  243. /package/dist/{2628.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
  244. /package/dist/{2740.js.LICENSE.txt → 3145.js.LICENSE.txt} +0 -0
  245. /package/dist/{2764.js.LICENSE.txt → 3345.js.LICENSE.txt} +0 -0
  246. /package/dist/{2782.js.LICENSE.txt → 3388.js.LICENSE.txt} +0 -0
  247. /package/dist/{2812.js.LICENSE.txt → 3466.js.LICENSE.txt} +0 -0
  248. /package/dist/{2984.js.LICENSE.txt → 3580.js.LICENSE.txt} +0 -0
  249. /package/dist/{3200.js.LICENSE.txt → 3600.js.LICENSE.txt} +0 -0
  250. /package/dist/{3204.js.LICENSE.txt → 3619.js.LICENSE.txt} +0 -0
  251. /package/dist/{3384.js.LICENSE.txt → 3776.js.LICENSE.txt} +0 -0
  252. /package/dist/{352.js.LICENSE.txt → 3845.js.LICENSE.txt} +0 -0
  253. /package/dist/{3564.js.LICENSE.txt → 4150.js.LICENSE.txt} +0 -0
  254. /package/dist/{3920.js.LICENSE.txt → 42.js.LICENSE.txt} +0 -0
  255. /package/dist/{4064.js.LICENSE.txt → 4279.js.LICENSE.txt} +0 -0
  256. /package/dist/{4544.js.LICENSE.txt → 4463.js.LICENSE.txt} +0 -0
  257. /package/dist/{4728.js.LICENSE.txt → 4669.js.LICENSE.txt} +0 -0
  258. /package/dist/{4915.js.LICENSE.txt → 4686.js.LICENSE.txt} +0 -0
  259. /package/dist/{4988.js.LICENSE.txt → 4689.js.LICENSE.txt} +0 -0
  260. /package/dist/{5376.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
  261. /package/dist/{5456.js.LICENSE.txt → 5027.js.LICENSE.txt} +0 -0
  262. /package/dist/{5628.js.LICENSE.txt → 521.js.LICENSE.txt} +0 -0
  263. /package/dist/{5744.js.LICENSE.txt → 5324.js.LICENSE.txt} +0 -0
  264. /package/dist/{5768.js.LICENSE.txt → 5373.js.LICENSE.txt} +0 -0
  265. /package/dist/{5839.js.LICENSE.txt → 5518.js.LICENSE.txt} +0 -0
  266. /package/dist/{5956.js.LICENSE.txt → 5853.js.LICENSE.txt} +0 -0
  267. /package/dist/{5972.js.LICENSE.txt → 6010.js.LICENSE.txt} +0 -0
  268. /package/dist/{6040.js.LICENSE.txt → 6308.js.LICENSE.txt} +0 -0
  269. /package/dist/{6112.js.LICENSE.txt → 6826.js.LICENSE.txt} +0 -0
  270. /package/dist/{6476.js.LICENSE.txt → 7170.js.LICENSE.txt} +0 -0
  271. /package/dist/{7192.js.LICENSE.txt → 755.js.LICENSE.txt} +0 -0
  272. /package/dist/{7312.js.LICENSE.txt → 7654.js.LICENSE.txt} +0 -0
  273. /package/dist/{736.js.LICENSE.txt → 8037.js.LICENSE.txt} +0 -0
  274. /package/dist/{7496.js.LICENSE.txt → 817.js.LICENSE.txt} +0 -0
  275. /package/dist/{7508.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
  276. /package/dist/{7596.js.LICENSE.txt → 8341.js.LICENSE.txt} +0 -0
  277. /package/dist/{7712.js.LICENSE.txt → 8612.js.LICENSE.txt} +0 -0
  278. /package/dist/{7804.js.LICENSE.txt → 8734.js.LICENSE.txt} +0 -0
  279. /package/dist/{7808.js.LICENSE.txt → 881.js.LICENSE.txt} +0 -0
  280. /package/dist/{8188.js.LICENSE.txt → 8869.js.LICENSE.txt} +0 -0
  281. /package/dist/{8232.js.LICENSE.txt → 892.js.LICENSE.txt} +0 -0
  282. /package/dist/{8248.js.LICENSE.txt → 8948.js.LICENSE.txt} +0 -0
  283. /package/dist/{828.js.LICENSE.txt → 8951.js.LICENSE.txt} +0 -0
  284. /package/dist/{8476.js.LICENSE.txt → 9150.js.LICENSE.txt} +0 -0
  285. /package/dist/{8524.js.LICENSE.txt → 9317.js.LICENSE.txt} +0 -0
  286. /package/dist/{9072.js.LICENSE.txt → 9330.js.LICENSE.txt} +0 -0
  287. /package/dist/{9088.js.LICENSE.txt → 9681.js.LICENSE.txt} +0 -0
  288. /package/dist/{9224.js.LICENSE.txt → 9700.js.LICENSE.txt} +0 -0
  289. /package/dist/{9404.js.LICENSE.txt → 9727.js.LICENSE.txt} +0 -0
  290. /package/dist/{9424.js.LICENSE.txt → 9797.js.LICENSE.txt} +0 -0
  291. /package/dist/{9680.js.LICENSE.txt → 9865.js.LICENSE.txt} +0 -0
  292. /package/dist/{9888.js.LICENSE.txt → 9886.js.LICENSE.txt} +0 -0
@@ -1,8 +1,17 @@
1
1
  import React from 'react';
2
-
3
2
  import { KolNav } from '@public-ui/react';
4
-
3
+ import { SampleDescription } from '../SampleDescription';
5
4
  import { LINKS } from './links';
6
5
 
7
6
  import type { FC } from 'react';
8
- export const NavHorizontal: FC = () => <KolNav _label="Main navigation" _links={LINKS} _orientation="horizontal" />;
7
+ export const NavHorizontal: FC = () => (
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ Hier ist ein Beispiel für eine horizontale Navigation. Durch anklicken des rechten + Symbols kann die Navigation erweitert und Untermenüs geöffnet
12
+ werden.
13
+ </p>
14
+ </SampleDescription>
15
+ <KolNav _label="Main navigation" _links={LINKS} _orientation="horizontal" />
16
+ </>
17
+ );
@@ -3,22 +3,30 @@ import React from 'react';
3
3
  import { KolPagination } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const PaginationBasic: FC = () => (
8
- <div className="grid gap-4">
9
- <KolPagination _max={10} _page={6} _siblingCount={0} _label="Test Paginierung 1" _on={{}} />
10
- <KolPagination _max={6} _page={6} _siblingCount={0} _boundaryCount={2} _label="Test Paginierung 2" _on={{}} />
11
- <KolPagination _max={4} _page={1} _siblingCount={0} _boundaryCount={2} _label="Test Paginierung 3" _on={{}} />
12
- <KolPagination _max={4} _page={6} _siblingCount={0} _boundaryCount={2} _hasButtons={false} _label="Test Paginierung 4" _on={{}} />
13
- <KolPagination
14
- _max={4}
15
- _page={6}
16
- _siblingCount={0}
17
- _boundaryCount={2}
18
- _hasButtons={false}
19
- _label="Test Paginierung 4"
20
- _on={{}}
21
- _pageSizeOptions={[10, 100]}
22
- />
23
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ Hier sind fünf Beispiele für eine Paginierung oder Seitennummerierung. Unten Rechts kann zwischen zwei Optionen für die Seitengröße gewechselt werden.
13
+ </p>
14
+ </SampleDescription>
15
+ <div className="grid gap-4">
16
+ <KolPagination _max={10} _page={6} _siblingCount={0} _label="Test Paginierung 1" _on={{}} />
17
+ <KolPagination _max={6} _page={6} _siblingCount={0} _boundaryCount={2} _label="Test Paginierung 2" _on={{}} />
18
+ <KolPagination _max={4} _page={1} _siblingCount={0} _boundaryCount={2} _label="Test Paginierung 3" _on={{}} />
19
+ <KolPagination _max={4} _page={6} _siblingCount={0} _boundaryCount={2} _hasButtons={false} _label="Test Paginierung 4" _on={{}} />
20
+ <KolPagination
21
+ _max={4}
22
+ _page={6}
23
+ _siblingCount={0}
24
+ _boundaryCount={2}
25
+ _hasButtons={false}
26
+ _label="Test Paginierung 4"
27
+ _on={{}}
28
+ _pageSizeOptions={[10, 100]}
29
+ />
30
+ </div>
31
+ </>
24
32
  );
@@ -3,10 +3,16 @@ import React from 'react';
3
3
  import { KolProgress } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const ProgressBasic: FC = () => (
8
- <div className="grid gap-4">
9
- <KolProgress _variant="bar" _max={100} _value={33}></KolProgress>
10
- <KolProgress _variant="cycle" _max={100} _value={33}></KolProgress>
11
- </div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist ein Fortschrittsbalken und Fortschrittskreis. Der Fortschritt verändert sich nicht.</p>
12
+ </SampleDescription>
13
+ <div className="grid gap-4">
14
+ <KolProgress _variant="bar" _max={100} _value={33}></KolProgress>
15
+ <KolProgress _variant="cycle" _max={100} _value={33}></KolProgress>
16
+ </div>
17
+ </>
12
18
  );
@@ -2,7 +2,13 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolQuote } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const QuoteBasic: FC = () => (
7
- <KolQuote _href="https://datatracker.ietf.org/doc/html/rfc1149" _quote="Avian carriers can provide high delay." _variant="inline"></KolQuote>
8
+ <>
9
+ <SampleDescription>
10
+ <p>Hier ist ein Beispiel für ein Zitat.</p>
11
+ </SampleDescription>
12
+ <KolQuote _href="https://datatracker.ietf.org/doc/html/rfc1149" _quote="Avian carriers can provide high delay." _variant="inline"></KolQuote>
13
+ </>
8
14
  );
@@ -2,18 +2,27 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolQuote } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const QuoteBlock: FC = () => (
7
- <KolQuote
8
- _label="RFC 1149"
9
- _href="https://datatracker.ietf.org/doc/html/rfc1149"
10
- _quote="Avian carriers can provide high delay, low throughput, and low altitude
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ Hier ist ein Beispiel für ein Zitat. Es wird eine Quelle durch ein Label angegeben. Durch anklicken des Labels wird man auf die Quellenwebseite
12
+ weitergeleitet.
13
+ </p>
14
+ </SampleDescription>
15
+ <KolQuote
16
+ _label="RFC 1149"
17
+ _href="https://datatracker.ietf.org/doc/html/rfc1149"
18
+ _quote="Avian carriers can provide high delay, low throughput, and low altitude
11
19
  service. The connection topology is limited to a single point-to-point path
12
20
  for each carrier, used with standard carriers, but many carriers can be used
13
21
  without significant interference with each other, outside early spring.
14
22
  This is because of the 3D ether space available to the carriers, in contrast
15
23
  to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
16
24
  avoidance system, which increases availability."
17
- _variant="block"
18
- ></KolQuote>
25
+ _variant="block"
26
+ ></KolQuote>
27
+ </>
19
28
  );
@@ -3,5 +3,16 @@ import React from 'react';
3
3
 
4
4
  import { FormWrap } from '../FormWrap';
5
5
  import { SelectVariants } from './partials/variants';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
- export const SelectBasic: FC = () => <FormWrap RefComponent={SelectVariants} />;
8
+ export const SelectBasic: FC = () => (
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ Hier sind Beispiele für verschiedene Auswahlfelder. Es gibt die Varianten Dropdownmenü und Liste mit Scrollbar. Es kann nur ein Element gleichzeitig
13
+ ausgewählt werden.
14
+ </p>
15
+ </SampleDescription>
16
+ <FormWrap RefComponent={SelectVariants} />
17
+ </>
18
+ );
@@ -3,5 +3,13 @@ import React from 'react';
3
3
  import { KolSpin } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
- export const SpinBasic: FC = () => <KolSpin _show />;
8
+ export const SpinBasic: FC = () => (
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist eine drehende Animation in Deutschlandfarben.</p>
12
+ </SampleDescription>
13
+ <KolSpin _show />
14
+ </>
15
+ );
@@ -1,4 +1,5 @@
1
1
  import './custom.css';
2
+ import { SampleDescription } from '../SampleDescription';
2
3
 
3
4
  import React from 'react';
4
5
 
@@ -7,7 +8,12 @@ import { KolSpin } from '@public-ui/react';
7
8
  import type { FC } from 'react';
8
9
 
9
10
  export const SpinCustom: FC = () => (
10
- <KolSpin _show _variant="none">
11
- <span slot="expert" className="loader"></span>
12
- </KolSpin>
11
+ <>
12
+ <SampleDescription>
13
+ <p>Hier ist ein Beispiel für eine Custom Animation.</p>
14
+ </SampleDescription>
15
+ <KolSpin _show _variant="none">
16
+ <span slot="expert" className="loader"></span>
17
+ </KolSpin>
18
+ </>
13
19
  );
@@ -3,5 +3,13 @@ import React from 'react';
3
3
  import { KolSpin } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
- export const SpinCycle: FC = () => <KolSpin _show _variant="cycle" />;
8
+ export const SpinCycle: FC = () => (
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist eine drehende Animation in verschiedenen Farben.</p>
12
+ </SampleDescription>
13
+ <KolSpin _show _variant="cycle" />
14
+ </>
15
+ );
@@ -2,6 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { ToasterService } from '@public-ui/components';
4
4
  import { KolSplitButton } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  import type { FC } from 'react';
7
8
  const toaster = ToasterService.getInstance(document);
@@ -16,13 +17,21 @@ export const SplitButtonBasic: FC = () => {
16
17
  };
17
18
 
18
19
  return (
19
- <div className="flex gap-4">
20
- <KolSplitButton _label="Nur der Pfeil öffnet" _on={{ onClick: handleButtonClick }}>
21
- Dropdown-Inhalt
22
- </KolSplitButton>
23
- <KolSplitButton _label="Schalter ohne sichtbares Label" _hideLabel _icons="codicon codicon-git-pull-request">
24
- Dropdown-Inhalt
25
- </KolSplitButton>
26
- </div>
20
+ <>
21
+ <SampleDescription>
22
+ <p>
23
+ Hier sind zwei Dropdownmenüs. Das obere Beispiel lässt sich nur durch drücken des Pfeils öffnen. Ansonsten erscheint eine Meldung. Beim unteren
24
+ Beispiel kann durch drücken auf das Icon und des Pfeils das Menü geöffnet und geschlossen werden.
25
+ </p>
26
+ </SampleDescription>
27
+ <div className="flex gap-4">
28
+ <KolSplitButton _label="Nur der Pfeil öffnet" _on={{ onClick: handleButtonClick }}>
29
+ Dropdown-Inhalt
30
+ </KolSplitButton>
31
+ <KolSplitButton _label="Schalter ohne sichtbares Label" _hideLabel _icons="codicon codicon-git-pull-request">
32
+ Dropdown-Inhalt
33
+ </KolSplitButton>
34
+ </div>
35
+ </>
27
36
  );
28
37
  };
@@ -5,6 +5,7 @@ import { KolBadge, KolTable } from '@public-ui/react';
5
5
 
6
6
  import { getRoot } from '../../shares/react-roots';
7
7
  import { DATA } from './test-data';
8
+ import { SampleDescription } from '../SampleDescription';
8
9
 
9
10
  import type { KoliBriTableHeaders } from '@public-ui/components';
10
11
  import type { Data } from './test-data';
@@ -51,4 +52,14 @@ const HEADERS: KoliBriTableHeaders = {
51
52
  ],
52
53
  };
53
54
 
54
- export const TableBadgeSize: FC = () => <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block min-w-75em" />;
55
+ export const TableBadgeSize: FC = () => (
56
+ <>
57
+ <SampleDescription>
58
+ <p>
59
+ Hier ist eine Tabelle, die durch anklicken des Knopfes sortiert werden kann. Entweder nach der Reihenfolge, nach dem ältesten Datum oder nach dem
60
+ jüngsten Datum.
61
+ </p>
62
+ </SampleDescription>
63
+ <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block min-w-75em" />
64
+ </>
65
+ );
@@ -2,11 +2,11 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolTable } from '@public-ui/react';
5
-
6
- import { DATA } from './test-data';
7
-
8
5
  import type { KoliBriTableHeaders } from '@public-ui/components';
6
+ import { DATA } from './test-data';
9
7
  import type { Data } from './test-data';
8
+ import { SampleDescription } from '../SampleDescription';
9
+
10
10
  const DATE_FORMATTER = Intl.DateTimeFormat('de-DE', {
11
11
  day: '2-digit',
12
12
  month: '2-digit',
@@ -33,4 +33,14 @@ const HEADERS: KoliBriTableHeaders = {
33
33
  ],
34
34
  };
35
35
 
36
- export const TableSortData: FC = () => <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />;
36
+ export const TableSortData: FC = () => (
37
+ <>
38
+ <SampleDescription>
39
+ <p>
40
+ Hier ist eine Tabelle, die durch anklicken des Knopfes sortiert werden kann. Entweder nach der Reihenfolge, nach dem ältesten Datum oder nach dem
41
+ jüngsten Datum.
42
+ </p>
43
+ </SampleDescription>
44
+ <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS} className="block" />
45
+ </>
46
+ );
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { KolTable } from '@public-ui/react';
5
5
 
6
6
  import { DATE_FORMATTER } from './formatter';
7
+ import { SampleDescription } from '../SampleDescription';
7
8
  import { DATA } from './test-data';
8
9
 
9
10
  import type { KoliBriTableHeaders, KoliBriTablePaginationProps } from '@public-ui/components';
@@ -19,7 +20,15 @@ const HEADERS: KoliBriTableHeaders = {
19
20
  const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
20
21
 
21
22
  export const TableWithPagination: FC = () => (
22
- <div>
23
- <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTable>
24
- </div>
23
+ <>
24
+ <SampleDescription>
25
+ <p>
26
+ Durch das Navigieren der Seitenzahlen unten kann die Tabelle umgeblättert werden. Stattdessen kann auch die komplette Tabelle mit Änderung der Einträge
27
+ pro Seite angezeigt werden.
28
+ </p>
29
+ </SampleDescription>
30
+ <div>
31
+ <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTable>
32
+ </div>
33
+ </>
25
34
  );
@@ -2,6 +2,7 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolTabs } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  const tabs = [
7
8
  {
@@ -30,18 +31,23 @@ const tabsWithoutIcons = tabs.map((tab) => ({
30
31
 
31
32
  export const TabsBasic: FC = () => (
32
33
  <>
33
- <KolTabs _tabs={tabsWithoutIcons} _label="Regular tabs">
34
- <div slot="tab-0">Inhalte von Tab 1</div>
35
- <div slot="tab-1">Inhalte von Tab 2</div>
36
- <div slot="tab-2">Inhalte von Tab 3</div>
37
- <div slot="tab-3">Inhalte von Tab 4</div>
38
- </KolTabs>
34
+ <SampleDescription>
35
+ <p>Hier sind verschiedene Varianten von Tabs. Nur der Inhalt eines Tabs wird in jeder Zeile angezeigt.</p>
36
+ </SampleDescription>
37
+ <>
38
+ <KolTabs _tabs={tabsWithoutIcons} _label="Regular tabs">
39
+ <div slot="tab-0">Inhalte von Tab 1</div>
40
+ <div slot="tab-1">Inhalte von Tab 2</div>
41
+ <div slot="tab-2">Inhalte von Tab 3</div>
42
+ <div slot="tab-3">Inhalte von Tab 4</div>
43
+ </KolTabs>
39
44
 
40
- <KolTabs _tabs={tabs} className="mt-4" _label="Tabs with icons">
41
- <div slot="tab-0">Inhalte von Tab 1</div>
42
- <div slot="tab-1">Inhalte von Tab 2</div>
43
- <div slot="tab-2">Inhalte von Tab 3</div>
44
- <div slot="tab-3">Inhalte von Tab 4</div>
45
- </KolTabs>
45
+ <KolTabs _tabs={tabs} className="mt-4" _label="Tabs with icons">
46
+ <div slot="tab-0">Inhalte von Tab 1</div>
47
+ <div slot="tab-1">Inhalte von Tab 2</div>
48
+ <div slot="tab-2">Inhalte von Tab 3</div>
49
+ <div slot="tab-3">Inhalte von Tab 4</div>
50
+ </KolTabs>
51
+ </>
46
52
  </>
47
53
  );
@@ -2,6 +2,7 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolTabs } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  const tabs = [
7
8
  {
@@ -27,10 +28,15 @@ const tabs = [
27
28
  },
28
29
  ];
29
30
  export const TabsIconsOnly: FC = () => (
30
- <KolTabs _tabs={tabs}>
31
- <div slot="tab-0">Inhalte von Tab 1</div>
32
- <div slot="tab-1">Inhalte von Tab 2</div>
33
- <div slot="tab-2">Inhalte von Tab 3</div>
34
- <div slot="tab-3">Inhalte von Tab 4</div>
35
- </KolTabs>
31
+ <>
32
+ <SampleDescription>
33
+ <p>Hier sind verschiedene Varianten von Tabs mit Icons. Nur der Inhalt eines Tabs wird gleichzeitig angezeigt.</p>
34
+ </SampleDescription>
35
+ <KolTabs _tabs={tabs}>
36
+ <div slot="tab-0">Inhalte von Tab 1</div>
37
+ <div slot="tab-1">Inhalte von Tab 2</div>
38
+ <div slot="tab-2">Inhalte von Tab 3</div>
39
+ <div slot="tab-3">Inhalte von Tab 4</div>
40
+ </KolTabs>
41
+ </>
36
42
  );
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  const VALUE = `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
8
9
  magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
@@ -12,12 +13,17 @@ et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea t
12
13
  sit amet.`;
13
14
 
14
15
  export const TextareaAdjustHeight: FC = () => (
15
- <KolForm className="row">
16
- <div className="col-sm-6">
17
- <KolTextarea _adjustHeight={true} _resize="vertical" _value={VALUE} _label="Texteingabe (horizontal)" />
18
- </div>
19
- <div className="col-sm-6">
20
- <KolTextarea _adjustHeight={true} _resize="none" _value={VALUE} _label="Texteingabe (none)" />
21
- </div>
22
- </KolForm>
16
+ <>
17
+ <SampleDescription>
18
+ <p>Hier sind zwei Freitextfelder. Im oberen kann die Größe des Textfelds angepasst werden, im unteren nicht.</p>
19
+ </SampleDescription>
20
+ <KolForm className="row">
21
+ <div className="col-sm-6">
22
+ <KolTextarea _adjustHeight={true} _resize="vertical" _value={VALUE} _label="Texteingabe (horizontal)" />
23
+ </div>
24
+ <div className="col-sm-6">
25
+ <KolTextarea _adjustHeight={true} _resize="none" _value={VALUE} _label="Texteingabe (none)" />
26
+ </div>
27
+ </KolForm>
28
+ </>
23
29
  );
@@ -3,5 +3,13 @@ import React from 'react';
3
3
 
4
4
  import { FormWrap } from '../FormWrap';
5
5
  import { TextareaVariants } from './partials/variants';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
- export const TextareaBasic: FC = () => <FormWrap RefComponent={TextareaVariants} />;
8
+ export const TextareaBasic: FC = () => (
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier sind Freitextfelder die mithilfe des Reglers unten Rechts im jeweiligen Feld in ihrer Größe angepasst werden können.</p>
12
+ </SampleDescription>
13
+ <FormWrap RefComponent={TextareaVariants} />
14
+ </>
15
+ );
@@ -2,7 +2,13 @@ import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
4
  import { KolTextarea } from '@public-ui/react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const TextareaCounter: FC = () => (
7
- <KolTextarea _hasCounter={true} _label="Textara mit Counter und Hint und Fehler" _error={'oh no'} _hint={'Hinweis'} _touched />
8
+ <>
9
+ <SampleDescription>
10
+ <p>Hier ist ein Beispiel für eine Freitextfeld mit Zeichenzähler.</p>
11
+ </SampleDescription>
12
+ <KolTextarea _hasCounter={true} _label="Textara mit Counter und Hint und Fehler" _error={'oh no'} _hint={'Hinweis'} _touched />
13
+ </>
8
14
  );
@@ -3,9 +3,15 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const TextareaDisabled: FC = () => (
8
- <KolForm>
9
- <KolTextarea _disabled _error="Es ist ein Fehler aufgetreten." _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
10
- </KolForm>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist ein Beispiel für ein deaktiviertes Textfeld.</p>
12
+ </SampleDescription>
13
+ <KolForm>
14
+ <KolTextarea _disabled _error="Es ist ein Fehler aufgetreten." _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
15
+ </KolForm>
16
+ </>
11
17
  );
@@ -3,9 +3,15 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const TextareaPlaceholder: FC = () => (
8
- <KolForm>
9
- <KolTextarea _placeholder="Hier steht ein Platzhaltertext" _label="Texteingabe" />
10
- </KolForm>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist ein Beispiel für ein Freitextfeld mit Platzhaltertext.</p>
12
+ </SampleDescription>
13
+ <KolForm>
14
+ <KolTextarea _placeholder="Hier steht ein Platzhaltertext" _label="Texteingabe" />
15
+ </KolForm>
16
+ </>
11
17
  );
@@ -3,9 +3,15 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const TextareaReadOnly: FC = () => (
8
- <KolForm>
9
- <KolTextarea _error="Es ist ein Fehler aufgetreten." _readOnly _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
10
- </KolForm>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier ist ein Beispiel für ein Textfeld, in das nicht geschrieben werden kann.</p>
12
+ </SampleDescription>
13
+ <KolForm>
14
+ <KolTextarea _error="Es ist ein Fehler aufgetreten." _readOnly _value="Kleiner Text im Eingabefeld ..." _label="Texteingabe" />
15
+ </KolForm>
16
+ </>
11
17
  );
@@ -3,12 +3,18 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
-
6
+ import { SampleDescription } from '../SampleDescription';
7
+ //Umrandung im Reactsample wird nicht angepasst bei Anpassung des Textfelds. Bug?.
7
8
  export const TextareaResize: FC = () => (
8
- <KolForm className="grid gap-4">
9
- <KolTextarea _resize="both" _label="Texteingabe (both)" />
10
- <KolTextarea _resize="vertical" _label="Texteingabe (vertical)" />
11
- <KolTextarea _resize="horizontal" _label="Texteingabe (horizontal)" />
12
- <KolTextarea _resize="none" _label="Texteingabe (none)" />
13
- </KolForm>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Diese Freitextfelder können in die beschriebenen Richtungen angepasst werden. Die Umrandung ändert sich dabei nicht.</p>
12
+ </SampleDescription>
13
+ <KolForm className="grid gap-4">
14
+ <KolTextarea _resize="both" _label="Texteingabe (both)" />
15
+ <KolTextarea _resize="vertical" _label="Texteingabe (vertical)" />
16
+ <KolTextarea _resize="horizontal" _label="Texteingabe (horizontal)" />
17
+ <KolTextarea _resize="none" _label="Texteingabe (none)" />
18
+ </KolForm>
19
+ </>
14
20
  );
@@ -3,9 +3,15 @@ import React from 'react';
3
3
  import { KolForm, KolTextarea } from '@public-ui/react';
4
4
 
5
5
  import type { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const TextareaRows: FC = () => (
8
- <KolForm>
9
- <KolTextarea _rows={10} _label="Texteingabe" />
10
- </KolForm>
9
+ <>
10
+ <SampleDescription>
11
+ <p>Hier verstehe ich es nicht. Die Rows sind nicht wie erwartet limitiert.</p>
12
+ </SampleDescription>
13
+ <KolForm>
14
+ <KolTextarea _rows={10} _label="Texteingabe" />
15
+ </KolForm>
16
+ </>
11
17
  );
@@ -4,6 +4,7 @@ import { ToasterService } from '@public-ui/components';
4
4
  import { KolButton } from '@public-ui/react';
5
5
 
6
6
  import { getRoot } from '../../shares/react-roots';
7
+ import { SampleDescription } from '../SampleDescription';
7
8
 
8
9
  import type { FC } from 'react';
9
10
  const toaster = ToasterService.getInstance(document);
@@ -65,16 +66,21 @@ export const ToastBasic: FC = () => {
65
66
  };
66
67
 
67
68
  return (
68
- <div>
69
- <KolButton _label="Show simple toast" _on={{ onClick: handleButtonClickSimple }}></KolButton>{' '}
70
- <KolButton _label="Show toast with alert variant 'msg'" _on={{ onClick: handleButtonClickVariantMessage }}></KolButton>{' '}
71
- <KolButton _label="Show complex toast" _on={{ onClick: handleButtonClickComplex }}></KolButton>
72
- <br />
73
- <br />
74
- <KolButton _label="Show toast and close after 2 seconds" _on={{ onClick: () => void handleButtonClickOpenAndClose() }}></KolButton>
75
- <br />
76
- <br />
77
- <KolButton _label="Close all toasts" _on={{ onClick: closeAll }}></KolButton>
78
- </div>
69
+ <>
70
+ <SampleDescription>
71
+ <p>Hier ist ein Beispiel für verschiedene Toasts, die beim anklicken verschiedene Popups generieren. Der untere schließt alle geöffneten Toasts.</p>
72
+ </SampleDescription>
73
+ <div>
74
+ <KolButton _label="Show simple toast" _on={{ onClick: handleButtonClickSimple }}></KolButton>{' '}
75
+ <KolButton _label="Show toast with alert variant 'msg'" _on={{ onClick: handleButtonClickVariantMessage }}></KolButton>{' '}
76
+ <KolButton _label="Show complex toast" _on={{ onClick: handleButtonClickComplex }}></KolButton>
77
+ <br />
78
+ <br />
79
+ <KolButton _label="Show toast and close after 2 seconds" _on={{ onClick: () => void handleButtonClickOpenAndClose() }}></KolButton>
80
+ <br />
81
+ <br />
82
+ <KolButton _label="Close all toasts" _on={{ onClick: closeAll }}></KolButton>
83
+ </div>
84
+ </>
79
85
  );
80
86
  };