@public-ui/sample-react 1.7.25 → 1.7.26-rc.1

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 (186) hide show
  1. package/dist/1069.js +1 -1
  2. package/dist/1085.js +1 -1
  3. package/dist/1184.js +1 -1
  4. package/dist/1222.js +1 -1
  5. package/dist/1237.js +2 -0
  6. package/dist/1278.js +1 -1
  7. package/dist/1325.js +1 -1
  8. package/dist/1333.js +1 -1
  9. package/dist/1661.js +1 -1
  10. package/dist/1703.js +1 -1
  11. package/dist/1711.js +1 -1
  12. package/dist/1792.js +1 -1
  13. package/dist/1793.js +1 -1
  14. package/dist/1878.js +1 -1
  15. package/dist/1957.js +1 -1
  16. package/dist/2195.js +1 -1
  17. package/dist/2305.js +1 -1
  18. package/dist/2538.js +1 -1
  19. package/dist/279.js +1 -1
  20. package/dist/2830.js +1 -1
  21. package/dist/3180.js +1 -1
  22. package/dist/3332.js +1 -1
  23. package/dist/3344.js +1 -1
  24. package/dist/3596.js +1 -1
  25. package/dist/3714.js +1 -1
  26. package/dist/3974.js +1 -1
  27. package/dist/4014.js +1 -1
  28. package/dist/4102.js +1 -1
  29. package/dist/4218.js +1 -1
  30. package/dist/4404.js +1 -1
  31. package/dist/{2214.js → 4614.js} +2 -2
  32. package/dist/4941.js +1 -1
  33. package/dist/500.js +1 -1
  34. package/dist/5139.js +1 -1
  35. package/dist/5164.js +1 -1
  36. package/dist/5484.js +1 -1
  37. package/dist/5540.js +1 -1
  38. package/dist/5756.js +1 -1
  39. package/dist/6682.js +1 -1
  40. package/dist/6781.js +1 -1
  41. package/dist/7245.js +1 -1
  42. package/dist/7263.js +1 -1
  43. package/dist/{2328.js → 7300.js} +1 -1
  44. package/dist/7512.js +1 -1
  45. package/dist/7856.js +1 -1
  46. package/dist/8002.js +1 -1
  47. package/dist/8049.js +1 -1
  48. package/dist/8189.js +1 -1
  49. package/dist/8264.js +1 -1
  50. package/dist/8389.js +1 -1
  51. package/dist/8515.js +1 -1
  52. package/dist/8557.js +1 -1
  53. package/dist/8588.js +1 -1
  54. package/dist/8724.js +1 -1
  55. package/dist/882.js +1 -1
  56. package/dist/895.js +1 -1
  57. package/dist/8993.js +1 -1
  58. package/dist/902.js +1 -1
  59. package/dist/9175.js +1 -1
  60. package/dist/9202.js +1 -1
  61. package/dist/9460.js +2 -0
  62. package/dist/9558.js +1 -1
  63. package/dist/9567.js +1 -1
  64. package/dist/9833.js +1 -1
  65. package/dist/9961.js +1 -1
  66. package/dist/9962.js +1 -1
  67. package/dist/index.html +2 -2
  68. package/dist/main.css +1 -1
  69. package/dist/main.js +1 -1
  70. package/package.json +8 -4
  71. package/public/index.html +2 -2
  72. package/src/components/SampleDescription.tsx +16 -9
  73. package/src/components/Sidebar.tsx +4 -4
  74. package/src/components/abbr/basic.tsx +5 -0
  75. package/src/components/accordion/basic.tsx +21 -11
  76. package/src/components/accordion/headlines.tsx +26 -20
  77. package/src/components/accordion/routes.ts +0 -5
  78. package/src/components/alert/basic.tsx +15 -1
  79. package/src/components/alert/card-msg.tsx +15 -6
  80. package/src/components/alert/html.tsx +7 -3
  81. package/src/components/avatar/basic.tsx +13 -6
  82. package/src/components/badge/basic.tsx +14 -7
  83. package/src/components/badge/button.tsx +7 -0
  84. package/src/components/breadcrumb/basic.tsx +53 -46
  85. package/src/components/button/basic.tsx +13 -2
  86. package/src/components/button/icons.tsx +26 -19
  87. package/src/components/button/routes.ts +0 -3
  88. package/src/components/button/width.tsx +22 -15
  89. package/src/components/button-group/basic.tsx +18 -7
  90. package/src/components/button-link/basic.tsx +26 -16
  91. package/src/components/button-link/icons.tsx +37 -30
  92. package/src/components/button-link/image.tsx +14 -7
  93. package/src/components/card/basic.tsx +12 -5
  94. package/src/components/card/routes.ts +0 -9
  95. package/src/components/details/basic.tsx +21 -12
  96. package/src/components/heading/badged.tsx +28 -20
  97. package/src/components/heading/basic.tsx +14 -8
  98. package/src/components/heading/paragraph.tsx +44 -38
  99. package/src/components/icon/basic.tsx +16 -10
  100. package/src/components/image/basic.tsx +9 -1
  101. package/src/components/indented-text/basic.tsx +25 -17
  102. package/src/components/input-checkbox/basic.tsx +9 -1
  103. package/src/components/input-checkbox/button.tsx +9 -1
  104. package/src/components/input-checkbox/switch.tsx +9 -1
  105. package/src/components/input-color/basic.tsx +9 -1
  106. package/src/components/input-date/basic.tsx +9 -1
  107. package/src/components/input-email/basic.tsx +9 -1
  108. package/src/components/input-file/basic.tsx +9 -1
  109. package/src/components/input-number/basic.tsx +13 -1
  110. package/src/components/input-password/basic.tsx +9 -1
  111. package/src/components/input-password/show-password.tsx +26 -19
  112. package/src/components/input-radio/basic.tsx +9 -1
  113. package/src/components/input-radio/horizontal.tsx +5 -5
  114. package/src/components/input-radio/routes.ts +0 -3
  115. package/src/components/input-range/basic.tsx +12 -1
  116. package/src/components/input-text/basic.tsx +9 -1
  117. package/src/components/input-text/focus.tsx +14 -8
  118. package/src/components/input-text/hide-errors.tsx +4 -1
  119. package/src/components/input-text/routes.ts +0 -2
  120. package/src/components/kolibri/basic.tsx +5 -0
  121. package/src/components/link/basic.tsx +25 -17
  122. package/src/components/link/icons.tsx +40 -34
  123. package/src/components/link/image.tsx +18 -12
  124. package/src/components/link/target.tsx +16 -8
  125. package/src/components/link-button/basic.tsx +14 -8
  126. package/src/components/link-group/basic.tsx +13 -2
  127. package/src/components/link-group/horizontal.tsx +13 -2
  128. package/src/components/logo/basic.tsx +13 -2
  129. package/src/components/modal/basic.tsx +9 -2
  130. package/src/components/nav/aria-current.tsx +24 -15
  131. package/src/components/nav/basic.tsx +64 -55
  132. package/src/components/nav/horizontal.tsx +58 -52
  133. package/src/components/nav/routes.ts +0 -3
  134. package/src/components/pagination/basic.tsx +15 -6
  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 +12 -6
  138. package/src/components/select/basic.tsx +9 -1
  139. package/src/components/skip-nav/basic.tsx +7 -11
  140. package/src/components/spin/basic.tsx +10 -1
  141. package/src/components/spin/custom.tsx +13 -3
  142. package/src/components/spin/cycle.tsx +10 -1
  143. package/src/components/split-button/basic.tsx +9 -2
  144. package/src/components/table/column-alignment.tsx +4 -0
  145. package/src/components/table/horizontal-scrollbar.tsx +7 -0
  146. package/src/components/table/render-cell.tsx +9 -1
  147. package/src/components/table/routes.ts +0 -3
  148. package/src/components/table/sort-date.tsx +9 -1
  149. package/src/components/table/with-pagination.tsx +1 -4
  150. package/src/components/tabs/basic.tsx +4 -0
  151. package/src/components/tabs/icons-only.tsx +12 -6
  152. package/src/components/textarea/adjust-height.tsx +12 -8
  153. package/src/components/textarea/basic.tsx +10 -1
  154. package/src/components/textarea/counter.tsx +10 -1
  155. package/src/components/textarea/resize.tsx +15 -6
  156. package/src/components/textarea/routes.ts +0 -9
  157. package/src/components/textarea/rows.tsx +12 -3
  158. package/src/components/toast/basic.tsx +17 -10
  159. package/src/components/toast-legacy/basic.tsx +17 -8
  160. package/src/components/version/basic.tsx +10 -1
  161. package/src/components/version/context.tsx +12 -5
  162. package/src/react.main.tsx +1 -1
  163. package/src/scenarios/appointment-form/AppointmentForm.tsx +53 -43
  164. package/src/scenarios/custom-tooltip-width.tsx +10 -1
  165. package/src/scenarios/static-form.tsx +1 -1
  166. package/src/shares/constants.ts +1 -0
  167. package/dist/3454.js +0 -2
  168. package/dist/4689.js +0 -2
  169. package/dist/9192.js +0 -2
  170. package/dist/9192.js.LICENSE.txt +0 -3
  171. package/src/components/accordion/header.tsx +0 -17
  172. package/src/components/accordion/list.tsx +0 -32
  173. package/src/components/button/hide-label.tsx +0 -31
  174. package/src/components/card/confirm.tsx +0 -19
  175. package/src/components/card/flex.tsx +0 -44
  176. package/src/components/card/selection.tsx +0 -70
  177. package/src/components/input-radio/select.tsx +0 -18
  178. package/src/components/input-text/blur.tsx +0 -14
  179. package/src/components/nav/active.tsx +0 -89
  180. package/src/components/table/badge-size.tsx +0 -51
  181. package/src/components/textarea/disabled.tsx +0 -10
  182. package/src/components/textarea/placeholder.tsx +0 -10
  183. package/src/components/textarea/readonly.tsx +0 -10
  184. /package/dist/{2214.js.LICENSE.txt → 1237.js.LICENSE.txt} +0 -0
  185. /package/dist/{3454.js.LICENSE.txt → 4614.js.LICENSE.txt} +0 -0
  186. /package/dist/{4689.js.LICENSE.txt → 9460.js.LICENSE.txt} +0 -0
@@ -1,9 +1,20 @@
1
1
  import React, { FC } from 'react';
2
- import { KolLinkGroup } from '@public-ui/react';
2
+ import { KolBadge, KolLinkGroup } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
5
  const links = [
5
6
  { _label: 'Link 1', _href: '#/back-page' },
6
7
  { _label: 'Link 2', _href: '#/back-page' },
7
8
  { _label: 'Link 3', _href: '#/back-page' },
8
9
  ];
9
- export const LinkGroupHorizontal: FC = () => <KolLinkGroup _links={links} _orientation="horizontal" />;
10
+ export const LinkGroupHorizontal: FC = () => (
11
+ <>
12
+ <SampleDescription>
13
+ <p>KolLinkGroup renders a list of the given links. This sample shows the horizontal alignment.</p>
14
+ <p>
15
+ <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
16
+ </p>
17
+ </SampleDescription>
18
+ <KolLinkGroup _links={links} _orientation="horizontal" />
19
+ </>
20
+ );
@@ -1,5 +1,16 @@
1
1
  import React, { FC } from 'react';
2
- import { KolLogo } from '@public-ui/react';
2
+ import { KolBadge, KolLogo } from '@public-ui/react';
3
3
  import { Bundesministerium } from '@public-ui/components';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
- export const LogoBasic: FC = () => <KolLogo className="w-50%" _org={Bundesministerium['Die Bundesregierung']} />;
6
+ export const LogoBasic: FC = () => (
7
+ <>
8
+ <SampleDescription>
9
+ <p>KolLogo renders the logo for supported organizations.</p>
10
+ <p>
11
+ <KolBadge _label="The component is deprecated and won't be available anymore in KoliBri version 3." _color="#db5461" />
12
+ </p>
13
+ </SampleDescription>
14
+ <KolLogo className="w-50%" _org={Bundesministerium['Die Bundesregierung']} />
15
+ </>
16
+ );
@@ -1,11 +1,18 @@
1
1
  import React, { FC, useRef } from 'react';
2
2
  import { KolButton, KolCard, KolModal } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
5
  export const ModalBasic: FC = () => {
5
6
  const modalElement = useRef<HTMLKolModalElement>(null);
6
7
 
7
8
  return (
8
- <div>
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ KolModal renders content in a popover, disabling interactivity with elements behind it. In the sample, the modal can be opened and closed using the
13
+ buttons &quot;Open modal&quot; and &quot;Close modal&quot;.
14
+ </p>
15
+ </SampleDescription>
9
16
  <KolModal _ariaLabel="" _width="80%" ref={modalElement} _on={{ onClose: () => console.log('Modal closed') }}>
10
17
  <KolCard _heading="Ich bin ein Modal" style={{ width: '100%' }}>
11
18
  <div slot="content">
@@ -32,6 +39,6 @@ export const ModalBasic: FC = () => {
32
39
  },
33
40
  }}
34
41
  />
35
- </div>
42
+ </>
36
43
  );
37
44
  };
@@ -2,21 +2,30 @@ 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
- _ariaLabel="Main navigation"
9
- _links={[
10
- {
11
- _label: 'Homepage',
12
- _href: '#/back-page',
13
- },
14
- {
15
- _label: '2 Navigation point',
16
- _href: '#/back-page',
17
- _active: true,
18
- },
19
- ]}
20
- _ariaCurrentValue="page"
21
- />
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ This sample shows KolNav with a link to the current page. This makes the component automatically assign <code>aria-current=&quot;page&quot;</code>
12
+ to it.
13
+ </p>
14
+ </SampleDescription>
15
+ <KolNav
16
+ _ariaLabel="Main navigation"
17
+ _links={[
18
+ {
19
+ _label: 'Homepage',
20
+ _href: '#/back-page',
21
+ },
22
+ {
23
+ _label: '2 Navigation point',
24
+ _href: '#/back-page',
25
+ _active: true,
26
+ },
27
+ ]}
28
+ _ariaCurrentValue="page"
29
+ />
30
+ </>
22
31
  );
@@ -2,61 +2,70 @@ 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 NavBasic: FC = () => (
7
- <KolNav
8
- _ariaLabel="Main navigation"
9
- _links={[
10
- {
11
- _label: 'Homepage',
12
- _icons: 'codicon codicon-home',
13
- _href: '#/back-page',
14
- },
15
- {
16
- _label: '2 Navigation point',
17
- _href: '#/back-page',
18
- },
19
- {
20
- _active: true,
21
- _label: '3 Navigation point',
22
- _href: '#/back-page',
23
- _children: [
24
- {
25
- _label: '3.1 Navigation point',
26
- _href: '#/back-page',
27
- },
28
- {
29
- _label: '3.2 Navigation point',
30
- _href: '#/back-page',
31
- _target: 'asdasd',
32
- },
33
- {
34
- _active: true,
35
- _label: '3.3 Navigation point',
36
- _href: '#/back-page',
37
- _icons: 'fa-solid fa-cat',
38
- _children: [
39
- {
40
- _active: true,
41
- _label: '3.3.1 Navigation point (active)',
42
- _href: '#/back-page',
43
- },
44
- { _label: '3.3.2 Navigation point', _href: '#/back-page' },
45
- ],
46
- },
47
- {
48
- _label: '3.4 Navigation point',
49
- _href: '#/back-page',
50
- _children: [
51
- { _label: '3.4.1 Navigation point', _href: '#/back-page' },
52
- { _label: '3.4.2 Navigation point', _href: '#/back-page' },
53
- ],
54
- },
55
- { _label: '3.5 Navigation point', _href: '#/back-page' },
56
- ],
57
- },
58
- { _label: '4 Navigation point', _href: '#/back-page' },
59
- ]}
60
- _hasCompactButton
61
- />
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ KolNav renders a navigation. In this sample, icons for the navigation elements can be shown or hidden using a checkbox and the navigation can be
12
+ collapsed, showing only icons and no text labels.
13
+ </p>
14
+ </SampleDescription>
15
+ <KolNav
16
+ _ariaLabel="Main navigation"
17
+ _links={[
18
+ {
19
+ _label: 'Homepage',
20
+ _icons: 'codicon codicon-home',
21
+ _href: '#/back-page',
22
+ },
23
+ {
24
+ _label: '2 Navigation point',
25
+ _href: '#/back-page',
26
+ },
27
+ {
28
+ _active: true,
29
+ _label: '3 Navigation point',
30
+ _href: '#/back-page',
31
+ _children: [
32
+ {
33
+ _label: '3.1 Navigation point',
34
+ _href: '#/back-page',
35
+ },
36
+ {
37
+ _label: '3.2 Navigation point',
38
+ _href: '#/back-page',
39
+ _target: 'asdasd',
40
+ },
41
+ {
42
+ _active: true,
43
+ _label: '3.3 Navigation point',
44
+ _href: '#/back-page',
45
+ _icons: 'fa-solid fa-cat',
46
+ _children: [
47
+ {
48
+ _active: true,
49
+ _label: '3.3.1 Navigation point (active)',
50
+ _href: '#/back-page',
51
+ },
52
+ { _label: '3.3.2 Navigation point', _href: '#/back-page' },
53
+ ],
54
+ },
55
+ {
56
+ _label: '3.4 Navigation point',
57
+ _href: '#/back-page',
58
+ _children: [
59
+ { _label: '3.4.1 Navigation point', _href: '#/back-page' },
60
+ { _label: '3.4.2 Navigation point', _href: '#/back-page' },
61
+ ],
62
+ },
63
+ { _label: '3.5 Navigation point', _href: '#/back-page' },
64
+ ],
65
+ },
66
+ { _label: '4 Navigation point', _href: '#/back-page' },
67
+ ]}
68
+ _hasCompactButton
69
+ />
70
+ </>
62
71
  );
@@ -2,58 +2,64 @@ 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 NavHorizontal: FC = () => (
7
- <KolNav
8
- _ariaLabel="Main navigation"
9
- _links={[
10
- {
11
- _label: 'Homepage',
12
- _href: '#/back-page',
13
- },
14
- {
15
- _label: '2 Navigation point',
16
- _href: '#/back-page',
17
- },
18
- {
19
- _active: true,
20
- _label: '3 Navigation point',
21
- _href: '#/back-page',
22
- _children: [
23
- {
24
- _label: '3.1 Navigation point',
25
- },
26
- {
27
- _label: '3.2 Navigation point',
28
- _href: '#/back-page',
29
- _target: 'asdasd',
30
- },
31
- {
32
- _active: true,
33
- _label: '3.3 Navigation point',
34
- _href: '#/back-page',
35
- _children: [
36
- {
37
- _active: true,
38
- _label: '3.3.1 Navigation point (active)',
39
- _href: '#/back-page',
40
- },
41
- { _label: '3.3.2 Navigation point', _href: '#/back-page' },
42
- ],
43
- },
44
- {
45
- _label: '3.4 Navigation point',
46
- _href: '#/back-page',
47
- _children: [
48
- { _label: '3.4.1 Navigation point', _href: '#/back-page' },
49
- { _label: '3.4.2 Navigation point', _href: '#/back-page' },
50
- ],
51
- },
52
- { _label: '3.5 Navigation point', _href: '#/back-page' },
53
- ],
54
- },
55
- { _label: '4 Navigation point', _href: '#/back-page' },
56
- ]}
57
- _orientation="horizontal"
58
- />
8
+ <>
9
+ <SampleDescription>
10
+ <p>This sample shows KolNav with horizontal alignment.</p>
11
+ </SampleDescription>
12
+ <KolNav
13
+ _ariaLabel="Main navigation"
14
+ _links={[
15
+ {
16
+ _label: 'Homepage',
17
+ _href: '#/back-page',
18
+ },
19
+ {
20
+ _label: '2 Navigation point',
21
+ _href: '#/back-page',
22
+ },
23
+ {
24
+ _active: true,
25
+ _label: '3 Navigation point',
26
+ _href: '#/back-page',
27
+ _children: [
28
+ {
29
+ _label: '3.1 Navigation point',
30
+ },
31
+ {
32
+ _label: '3.2 Navigation point',
33
+ _href: '#/back-page',
34
+ _target: 'asdasd',
35
+ },
36
+ {
37
+ _active: true,
38
+ _label: '3.3 Navigation point',
39
+ _href: '#/back-page',
40
+ _children: [
41
+ {
42
+ _active: true,
43
+ _label: '3.3.1 Navigation point (active)',
44
+ _href: '#/back-page',
45
+ },
46
+ { _label: '3.3.2 Navigation point', _href: '#/back-page' },
47
+ ],
48
+ },
49
+ {
50
+ _label: '3.4 Navigation point',
51
+ _href: '#/back-page',
52
+ _children: [
53
+ { _label: '3.4.1 Navigation point', _href: '#/back-page' },
54
+ { _label: '3.4.2 Navigation point', _href: '#/back-page' },
55
+ ],
56
+ },
57
+ { _label: '3.5 Navigation point', _href: '#/back-page' },
58
+ ],
59
+ },
60
+ { _label: '4 Navigation point', _href: '#/back-page' },
61
+ ]}
62
+ _orientation="horizontal"
63
+ />
64
+ </>
59
65
  );
@@ -1,7 +1,5 @@
1
1
  import { Routes } from '../../shares/types';
2
2
 
3
- import { NavActive } from './active';
4
-
5
3
  import { NavAriaCurrent } from './aria-current';
6
4
 
7
5
  import { NavBasic } from './basic';
@@ -11,7 +9,6 @@ import { NavHorizontal } from './horizontal';
11
9
  export const NAV_ROUTES: Routes = {
12
10
  nav: {
13
11
  basic: NavBasic,
14
- active: NavActive,
15
12
  'aria-current': NavAriaCurrent,
16
13
  horizontal: NavHorizontal,
17
14
  },
@@ -2,12 +2,21 @@ import React from 'react';
2
2
  import { KolPagination } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const PaginationBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <KolPagination _max={10} _page={6} _siblingCount={0} _label="Test Paginierung 1" />
9
- <KolPagination _max={10} _page={6} _siblingCount={2} _variant="danger" _label="Test Paginierung 2" />
10
- <KolPagination _max={10} _page={6} _siblingCount={0} _boundaryCount={2} _variant="ghost" _label="Test Paginierung 3" />
11
- <KolPagination _max={6} _page={6} _siblingCount={0} _boundaryCount={2} _variant="ghost" _label="Test Paginierung 3" />
12
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>
11
+ KolPagination renders a pagination for datasets. The sample shows the different states and variations of a pagination and the option to change the page
12
+ size.
13
+ </p>
14
+ </SampleDescription>
15
+ <div className="grid gap-4">
16
+ <KolPagination _max={10} _page={6} _siblingCount={0} _label="Test Paginierung 1" />
17
+ <KolPagination _max={10} _page={6} _siblingCount={2} _variant="danger" _label="Test Paginierung 2" />
18
+ <KolPagination _max={10} _page={6} _siblingCount={0} _boundaryCount={2} _variant="ghost" _label="Test Paginierung 3" />
19
+ <KolPagination _max={6} _page={6} _siblingCount={0} _boundaryCount={2} _variant="ghost" _label="Test Paginierung 3" />
20
+ </div>
21
+ </>
13
22
  );
@@ -2,10 +2,16 @@ import React from 'react';
2
2
  import { KolProgress } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  export const ProgressBasic: FC = () => (
7
- <div className="grid gap-4">
8
- <KolProgress _variant="bar" _max={100} _value={33}></KolProgress>
9
- <KolProgress _variant="cycle" _max={100} _value={33}></KolProgress>
10
- </div>
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolProgress renders a progress indicator. The sample shows the variants &quot;bar&quot; and &quot;cycle&quot;.</p>
11
+ </SampleDescription>
12
+ <div className="grid gap-4">
13
+ <KolProgress _variant="bar" _max={100} _value={33}></KolProgress>
14
+ <KolProgress _variant="cycle" _max={100} _value={33}></KolProgress>
15
+ </div>
16
+ </>
11
17
  );
@@ -1,6 +1,12 @@
1
1
  import React, { FC } from 'react';
2
2
  import { KolQuote } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
5
  export const QuoteBasic: FC = () => (
5
- <KolQuote _href="https://datatracker.ietf.org/doc/html/rfc1149" _quote="Avian carriers can provide high delay." _variant="inline"></KolQuote>
6
+ <>
7
+ <SampleDescription>
8
+ <p>KolQuote renders a quote with optional citation. This sample shows a quote in the variant &quot;inline&quot; with a link for citation.</p>
9
+ </SampleDescription>
10
+ <KolQuote _href="https://datatracker.ietf.org/doc/html/rfc1149" _quote="Avian carriers can provide high delay." _variant="inline"></KolQuote>
11
+ </>
6
12
  );
@@ -1,17 +1,23 @@
1
1
  import React, { FC } from 'react';
2
2
  import { KolQuote } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
5
  export const QuoteBlock: FC = () => (
5
- <KolQuote
6
- _label="RFC 1149"
7
- _href="https://datatracker.ietf.org/doc/html/rfc1149"
8
- _quote="Avian carriers can provide high delay, low throughput, and low altitude
6
+ <>
7
+ <SampleDescription>
8
+ <p>This sample shows a quote in the &quot;block&quot; variant.</p>
9
+ </SampleDescription>
10
+ <KolQuote
11
+ _label="RFC 1149"
12
+ _href="https://datatracker.ietf.org/doc/html/rfc1149"
13
+ _quote="Avian carriers can provide high delay, low throughput, and low altitude
9
14
  service. The connection topology is limited to a single point-to-point path
10
15
  for each carrier, used with standard carriers, but many carriers can be used
11
16
  without significant interference with each other, outside early spring.
12
17
  This is because of the 3D ether space available to the carriers, in contrast
13
18
  to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
14
19
  avoidance system, which increases availability."
15
- _variant="block"
16
- ></KolQuote>
20
+ _variant="block"
21
+ ></KolQuote>
22
+ </>
17
23
  );
@@ -1,5 +1,13 @@
1
1
  import React, { FC } from 'react';
2
2
  import { FormWrap } from '../FormWrap';
3
3
  import { SelectVariants } from './partials/variants';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
- export const SelectBasic: FC = () => <FormWrap RefComponent={SelectVariants} />;
6
+ export const SelectBasic: FC = () => (
7
+ <>
8
+ <SampleDescription>
9
+ <p>KolSelect renders a select field. The sample shows KolSelect in a form context with all variations and states.</p>
10
+ </SampleDescription>
11
+ <FormWrap RefComponent={SelectVariants} />
12
+ </>
13
+ );
@@ -1,17 +1,13 @@
1
- import React from 'react';
2
- import { KolIndentedText, KolSkipNav } from '@public-ui/react';
3
-
4
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
+ import { KolSkipNav } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
5
4
 
6
5
  export const SkipNavBasic: FC = () => (
7
6
  <div className="grid gap-4">
8
- <KolIndentedText>
9
- <p>
10
- <b>Links sind unsichtbar geschalten</b>
11
- <br />
12
- Um die Links zu sehen, am besten einmal in diesen Bereich klicken und Tab-Taste drücken.
13
- </p>
14
- </KolIndentedText>
7
+ <SampleDescription>
8
+ <p>KolSkipNav renders a list of navigation links that are visually hidden by default and only visible on focus.</p>
9
+ <p>For testing purposes, click into the example and press the tab-key in order to focus the first link.</p>
10
+ </SampleDescription>
15
11
  <KolSkipNav
16
12
  _ariaLabel="Versteckte Navigation"
17
13
  _links={[
@@ -2,5 +2,14 @@ import React from 'react';
2
2
  import { KolSpin } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
- export const SpinBasic: FC = () => <KolSpin _show />;
7
+ export const SpinBasic: FC = () => (
8
+ <>
9
+ <SampleDescription>
10
+ <p>KolSpin renders a loading indicator. This sample shows the default variant &quot;dot&quot;.</p>
11
+ </SampleDescription>
12
+
13
+ <KolSpin _show />
14
+ </>
15
+ );
@@ -3,9 +3,19 @@ import { KolSpin } from '@public-ui/react';
3
3
  import './custom.css';
4
4
 
5
5
  import { FC } from 'react';
6
+ import { SampleDescription } from '../SampleDescription';
6
7
 
7
8
  export const SpinCustom: FC = () => (
8
- <KolSpin _show _variant="none">
9
- <span slot="expert" className="loader"></span>
10
- </KolSpin>
9
+ <>
10
+ <SampleDescription>
11
+ <p>
12
+ This sample shows a custom loading animation. Using the expert slot, it is possible to insert custom animations. Custom animations are not necessarily
13
+ barrier-free.
14
+ </p>
15
+ </SampleDescription>
16
+
17
+ <KolSpin _show _variant="none">
18
+ <span slot="expert" className="loader"></span>
19
+ </KolSpin>
20
+ </>
11
21
  );
@@ -2,5 +2,14 @@ import React from 'react';
2
2
  import { KolSpin } from '@public-ui/react';
3
3
 
4
4
  import { FC } from 'react';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
- export const SpinCycle: FC = () => <KolSpin _show _variant="cycle" />;
7
+ export const SpinCycle: FC = () => (
8
+ <>
9
+ <SampleDescription>
10
+ <p>This sample shows the KolSpin variant &quot;cycle&quot;.</p>
11
+ </SampleDescription>
12
+
13
+ <KolSpin _show _variant="cycle" />
14
+ </>
15
+ );
@@ -1,9 +1,16 @@
1
1
  import React, { FC } from 'react';
2
2
  import { KolSplitButton } from '@public-ui/react';
3
+ import { SampleDescription } from '../SampleDescription';
3
4
 
4
5
  export const SplitButtonBasic: FC = () => {
5
6
  return (
6
- <div className="grid gap-4">
7
+ <>
8
+ <SampleDescription>
9
+ <p>
10
+ SplitButton renders a button with an additional context-menu, that can be opened by clicking the arrow icon. The first sample shows the button with an
11
+ assigned action. In the second sample no action is assigned and clicking the button opens the context menu instead.
12
+ </p>
13
+ </SampleDescription>
7
14
  <KolSplitButton _label="Nur der Pfeil öffnet" _on={{ onClick: console.log }}>
8
15
  Drowndown-Inhalt
9
16
  </KolSplitButton>
@@ -13,6 +20,6 @@ export const SplitButtonBasic: FC = () => {
13
20
  <KolSplitButton _label="schon offen" _show>
14
21
  Dropdown initial sichtbar
15
22
  </KolSplitButton>
16
- </div>
23
+ </>
17
24
  );
18
25
  };
@@ -1,6 +1,7 @@
1
1
  import React, { FC } from 'react';
2
2
 
3
3
  import { KolTable, KolHeading } from '@public-ui/react';
4
+ import { SampleDescription } from '../SampleDescription';
4
5
 
5
6
  const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }];
6
7
  type Data = (typeof DATA)[0];
@@ -8,6 +9,9 @@ const genericNonSorter = (data: Data[]): Data[] => data;
8
9
 
9
10
  export const TableColumnAlignment: FC = () => (
10
11
  <>
12
+ <SampleDescription>
13
+ <p>This sample shows KolTable with columns headers and data in different text alignments.</p>
14
+ </SampleDescription>
11
15
  <KolHeading _label="Simple table" _level={3}></KolHeading>
12
16
  <KolTable
13
17
  _label="Table for demonstration purposes with different text align properties"
@@ -2,6 +2,7 @@ import React, { FC, useState } from 'react';
2
2
 
3
3
  import { KolHeading, KolInputCheckbox, KolTable } from '@public-ui/react';
4
4
  import { KoliBriTableHeaders } from '@public-ui/components/src';
5
+ import { SampleDescription } from '../SampleDescription';
5
6
 
6
7
  const DATA = [{ small: 'Small Example', large: 'Larger Example' }];
7
8
  const HEADERS: KoliBriTableHeaders = {
@@ -18,6 +19,12 @@ export const TableHorizontalScrollbar: FC = () => {
18
19
 
19
20
  return (
20
21
  <>
22
+ <SampleDescription>
23
+ <p>
24
+ This sample shows KolTable with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and
25
+ to scroll it using arrow keys.
26
+ </p>
27
+ </SampleDescription>
21
28
  <KolHeading _label="Table with scrollbar" _level={2} />
22
29
 
23
30
  <KolTable